@vkontakte/videoplayer 1.1.73-dev.ecbcbb4c.0 → 1.1.74-dev.2444f53a.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.esm.js CHANGED
@@ -1,59 +1,59 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.73-dev.ecbcbb4c.0
3
- * Tue, 30 Sep 2025 08:23:33 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-73/doc/
2
+ * @vkontakte/videoplayer v1.1.74-dev.2444f53a.0
3
+ * Tue, 14 Oct 2025 09:36:40 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-74/doc/
5
5
  */
6
- var P_=Object.defineProperty,A_=Object.defineProperties;var M_=Object.getOwnPropertyDescriptors;var Cv=Object.getOwnPropertySymbols;var L_=Object.prototype.hasOwnProperty,V_=Object.prototype.propertyIsEnumerable;var Tv=t=>{throw TypeError(t)};var Yu=(t,e,i)=>e in t?P_(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,z=(t,e)=>{for(var i in e||(e={}))L_.call(e,i)&&Yu(t,i,e[i]);if(Cv)for(var i of Cv(e))V_.call(e,i)&&Yu(t,i,e[i]);return t},Bt=(t,e)=>A_(t,M_(e));var Zn=(t,e,i)=>Yu(t,typeof e!="symbol"?e+"":e,i),Zu=(t,e,i)=>e.has(t)||Tv("Cannot "+i);var Ni=(t,e,i)=>(Zu(t,e,"read from private field"),i?i.call(t):e.get(t)),Ps=(t,e,i)=>e.has(t)?Tv("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Ba=(t,e,i,o)=>(Zu(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Ev=(t,e,i)=>(Zu(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 As="[",Ms="[!",Ys="]",Jr={};var eo=Symbol(),Tn=Symbol("filename"),Iv=Symbol("hmr"),kv="http://www.w3.org/1999/xhtml",uc="http://www.w3.org/2000/svg";var Xu="@attach";var pc=!0;var Av,Mv,Pv=(Mv=(Av=globalThis.process)==null?void 0:Av.env)==null?void 0:Mv.NODE_ENV,Ve=Pv&&!Pv.toLowerCase().startsWith("prod");var Xn=Array.isArray,Lv=Array.prototype.indexOf,Cl=Array.from,Ju=Object.keys,ao=Object.defineProperty,Go=Object.getOwnPropertyDescriptor,fc=Object.getOwnPropertyDescriptors,ep=Object.prototype,Vv=Array.prototype,Zs=Object.getPrototypeOf,tp=Object.isExtensible;function Ls(t){return typeof t=="function"}var de=()=>{};function Rv(t){return t()}function Vs(t){for(var e=0;e<t.length;e++)t[e]()}var Do=Symbol("$state"),Da=Symbol("legacy props"),Nv=Symbol(""),mc=Symbol("proxy path"),vc=1,Ha=3,Jn=8;function gc(t){return t===this.v}function Fa(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Ov(t,e){return t!==e}function Ua(t){return!Fa(t,this.v)}function Bv(){if(Ve){let t=new Error(`derived_references_self
6
+ var z0=Object.defineProperty,W0=Object.defineProperties;var K0=Object.getOwnPropertyDescriptors;var Hv=Object.getOwnPropertySymbols;var q0=Object.prototype.hasOwnProperty,Q0=Object.prototype.propertyIsEnumerable;var Uv=t=>{throw TypeError(t)};var sp=(t,e,i)=>e in t?z0(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,K=(t,e)=>{for(var i in e||(e={}))q0.call(e,i)&&sp(t,i,e[i]);if(Hv)for(var i of Hv(e))Q0.call(e,i)&&sp(t,i,e[i]);return t},Ht=(t,e)=>W0(t,K0(e));var or=(t,e,i)=>sp(t,typeof e!="symbol"?e+"":e,i),ap=(t,e,i)=>e.has(t)||Uv("Cannot "+i);var Vi=(t,e,i)=>(ap(t,e,"read from private field"),i?i.call(t):e.get(t)),Vs=(t,e,i)=>e.has(t)?Uv("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Na=(t,e,i,o)=>(ap(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),zv=(t,e,i)=>(ap(t,e,"access private method"),i);var Tt=(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 Rs="[",Os="[!",Zs="]",os={};var Xi=Symbol(),kn=Symbol("filename"),Wv=Symbol("hmr"),Kv="http://www.w3.org/1999/xhtml",hc="http://www.w3.org/2000/svg";var lp="@attach";var _c=!0;var Qv,Gv,qv=(Gv=(Qv=globalThis.process)==null?void 0:Qv.env)==null?void 0:Gv.NODE_ENV,Pe=qv&&!qv.toLowerCase().startsWith("prod");var nr=Array.isArray,jv=Array.prototype.indexOf,Il=Array.from,dp=Object.keys,no=Object.defineProperty,Jo=Object.getOwnPropertyDescriptor,bc=Object.getOwnPropertyDescriptors,cp=Object.prototype,Yv=Array.prototype,Xs=Object.getPrototypeOf,up=Object.isExtensible;function Ns(t){return typeof t=="function"}var de=()=>{};function Zv(t){return t()}function Bs(t){for(var e=0;e<t.length;e++)t[e]()}var Do=Symbol("$state"),Ba=Symbol("legacy props"),Xv=Symbol(""),$c=Symbol("proxy path"),yc=1,Da=3,rr=8;function xc(t){return t===this.v}function Fa(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Jv(t,e){return t!==e}function Ha(t){return!Fa(t,this.v)}function eg(){if(Pe){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 Dv(t){if(Ve){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 tg(t){if(Pe){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 Hv(){if(Ve){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 Fv(t){if(Ve){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 ig(){if(Pe){let t=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function og(t){if(Pe){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 Uv(){if(Ve){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 ng(){if(Pe){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 zv(){if(Ve){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 rg(){if(Pe){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 Wv(){if(Ve){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 Kv(t){if(Ve){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 sg(){if(Pe){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 ag(t){if(Pe){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 qv(t){if(Ve){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 lg(t){if(Pe){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 Qv(t){if(Ve){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 dg(t){if(Pe){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 Gv(){if(Ve){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 jv(){if(Ve){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 Yv(){if(Ve){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 es=!1,ts=!1;function Zv(){es=!0}var Tl=null;function ps(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(Pe){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 ug(){if(Pe){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 pg(){if(Pe){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 ns=!1,rs=!1;function fg(){ns=!0}var kl=null;function vs(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;ao(e,"stack",{value:n.join(`
25
- `)}),ao(e,"name",{value:`${t}Error`})}return e}function Nr(t,e){return t.label=e,hc(t.v,e),t}function hc(t,e){var i;return(i=t==null?void 0:t[mc])==null||i.call(t,e),t}function za(t){if(Ve){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;no(e,"stack",{value:n.join(`
25
+ `)}),no(e,"name",{value:`${t}Error`})}return e}function Br(t,e){return t.label=e,wc(t.v,e),t}function wc(t,e){var i;return(i=t==null?void 0:t[$c])==null||i.call(t,e),t}function Ua(t){if(Pe){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 El(t){Nt=t}var er=null;function Il(t){er=t}function Wa(t){return np("getContext").get(t)}function Ka(t,e){return np("setContext").set(t,e),e}function kl(){return np("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};es&&!e&&(Nt.l={s:null,u:null,r1:[],r2:Sr(!1)}),Ho(()=>{o.d=!0}),Ve&&(Nt.function=i,er=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=gt,o=It;e.e=null;try{for(var n=0;n<a.length;n++){var s=a[n];lo(s.effect),zi(s.reaction),Eo(s.fn)}}finally{lo(i),zi(o)}}Nt=e.p,Ve&&(er=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function is(){return!es||Nt!==null&&Nt.l===null}function np(t){var e;return Nt===null&&za(t),(e=Nt.c)!=null?e:Nt.c=new Map(N_(Nt)||void 0)}function N_(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var O_=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function oi(t){if(typeof t!="object"||t===null||Do in t)return t;let e=Zs(t);if(e!==ep&&e!==Vv)return t;var i=new Map,o=Xn(t),n=Y(0),s=Ve&&ts?ps("CreatedAt"):null,l=It,d=f=>{var v=It;zi(l);var p=f();return zi(v),p};o&&i.set("length",Y(t.length,s));var a="";function u(f){a=f,Nr(n,`${a} version`);for(let[v,p]of i)Nr(p,Xs(a,v))}return new Proxy(t,{defineProperty(f,v,p){(!("value"in p)||p.configurable===!1||p.enumerable===!1||p.writable===!1)&&Gv();var x=i.get(v);return x===void 0?x=d(()=>{var w=Y(p.value,s);return i.set(v,w),Ve&&typeof v=="string"&&Nr(w,Xs(a,v)),w}):O(x,p.value,!0),!0},deleteProperty(f,v){var p=i.get(v);if(p===void 0){if(v in f){let y=d(()=>Y(eo,s));i.set(v,y),rp(n),Ve&&Nr(y,Xs(a,v))}}else{if(o&&typeof v=="string"){var x=i.get("length"),w=Number(v);Number.isInteger(w)&&w<x.v&&O(x,w)}O(p,eo),rp(n)}return!0},get(f,v,p){var S;if(v===Do)return t;if(Ve&&v===mc)return u;var x=i.get(v),w=v in f;if(x===void 0&&(!w||(S=Go(f,v))!=null&&S.writable)&&(x=d(()=>{var T=oi(w?f[v]:eo),E=Y(T,s);return Ve&&Nr(E,Xs(a,v)),E}),i.set(v,x)),x!==void 0){var y=r(x);return y===eo?void 0:y}return Reflect.get(f,v,p)},getOwnPropertyDescriptor(f,v){var p=Reflect.getOwnPropertyDescriptor(f,v);if(p&&"value"in p){var x=i.get(v);x&&(p.value=r(x))}else if(p===void 0){var w=i.get(v),y=w==null?void 0:w.v;if(w!==void 0&&y!==eo)return{enumerable:!0,configurable:!0,value:y,writable:!0}}return p},has(f,v){var y;if(v===Do)return!0;var p=i.get(v),x=p!==void 0&&p.v!==eo||Reflect.has(f,v);if(p!==void 0||gt!==null&&(!x||(y=Go(f,v))!=null&&y.writable)){p===void 0&&(p=d(()=>{var S=x?oi(f[v]):eo,T=Y(S,s);return Ve&&Nr(T,Xs(a,v)),T}),i.set(v,p));var w=r(p);if(w===eo)return!1}return x},set(f,v,p,x){var R;var w=i.get(v),y=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,eo):S in f&&(T=d(()=>Y(eo,s)),i.set(S+"",T),Ve&&Nr(T,Xs(a,S)))}if(w===void 0)(!y||(R=Go(f,v))!=null&&R.writable)&&(w=d(()=>Y(void 0,s)),O(w,oi(p)),i.set(v,w),Ve&&Nr(w,Xs(a,v)));else{y=w.v!==eo;var E=d(()=>oi(p));O(w,E)}var V=Reflect.getOwnPropertyDescriptor(f,v);if(V!=null&&V.set&&V.set.call(x,p),!y){if(o&&typeof v=="string"){var k=i.get("length"),I=Number(v);Number.isInteger(I)&&I>=k.v&&O(k,I+1)}rp(n)}return!0},ownKeys(f){r(n);var v=Reflect.ownKeys(f).filter(w=>{var y=i.get(w);return y===void 0||y.v!==eo});for(var[p,x]of i)x.v!==eo&&!(p in f)&&v.push(p);return v},setPrototypeOf(){jv()}})}function Xs(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:O_.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function rp(t,e=1){O(t,t.v+e)}function qa(t){try{if(t!==null&&typeof t=="object"&&Do in t)return t[Do]}catch(e){}return t}function sp(t,e){return Object.is(qa(t),qa(e))}function Or(t){var e=2050,i=It!==null&&(It.f&2)!==0?It:null;gt===null||i!==null&&(i.f&256)!==0?e|=256:gt.f|=1048576;let o={ctx:Nt,deps:null,effects:null,equals:gc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:gt};return Ve&&ts&&(o.created=ps("CreatedAt")),o}function g(t){let e=Or(t);return $c(e),e}function Br(t){let e=Or(t);return e.equals=Ua,e}function _c(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Wi(e[i])}}var ap=[];function B_(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function cp(t){var e,i=gt;if(lo(B_(t)),Ve){let o=Js;lp(new Set);try{ap.includes(t)&&Bv(),ap.push(t),_c(t),e=bc(t)}finally{lo(i),lp(o),ap.pop()}}else try{_c(t),e=bc(t)}finally{lo(i)}return e}function up(t){var e=cp(t);if(t.equals(e)||(t.v=e,t.wv=Pl()),!fs){var i=(ms||(t.f&256)!==0)&&t.deps!==null?4096:1024;_n(t,i)}}var Js=new Set,Qa=new Map;function lp(t){Js=t}function Sr(t,e){var i={f:0,v:t,reactions:null,equals:gc,rv:0,wv:0};return Ve&&ts&&(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=Sr(t,e);return $c(i),i}function os(t,e=!1,i=!0){var n,s;let o=Sr(t);return e||(o.equals=Ua),es&&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;It!==null&&(!or||(It.f&262144)!==0)&&is()&&(It.f&262162)!==0&&!((n=Uo)!=null&&n[1].includes(t)&&Uo[0]===It)&&Yv();let o=i?oi(e):e;return Ve&&hc(o,t.label),Ga(t,o)}function Ga(t,e){if(!t.equals(e)){var i=t.v;if(fs?Qa.set(t,e):Qa.set(t,i),t.v=e,Ve&&ts&&(t.updated=ps("UpdatedAt"),gt!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&cp(t),_n(t,(t.f&256)===0?1024:4096)),t.wv=Pl(),Jv(t,2048),is()&&gt!==null&&(gt.f&1024)!==0&&(gt.f&96)===0&&(ir===null?eg([t]):ir.push(t)),Ve&&Js.size>0){let o=Array.from(Js);for(let n of o)(n.f&1024)!==0&&_n(n,4096),ta(n)&&ja(n);Js.clear()}}return e}function Jv(t,e){var i=t.reactions;if(i!==null)for(var o=is(),n=i.length,s=0;s<n;s++){var l=i[s],d=l.f;if((d&2048)===0&&!(!o&&l===gt)){if(Ve&&(d&262144)!==0){Js.add(l);continue}_n(l,e),(d&1280)!==0&&((d&2)!==0?Jv(l,4096):Ml(l))}}}var Ya="font-weight: bold",Za="font-weight: normal";function tg(t,e,i){Ve?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 Bt=null;function Al(t){Bt=t}var sr=null;function Pl(t){sr=t}function za(t){return mp("getContext").get(t)}function Wa(t,e){return mp("setContext").set(t,e),e}function Ll(){return mp("getAllContexts")}function z(t,e=!1,i){var o=Bt={p:Bt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};ns&&!e&&(Bt.l={s:null,u:null,r1:[],r2:Er(!1)}),Fo(()=>{o.d=!0}),Pe&&(Bt.function=i,sr=i)}function W(t){var l,d;let e=Bt;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=$t,o=Lt;e.e=null;try{for(var n=0;n<a.length;n++){var s=a[n];ro(s.effect),Ui(s.reaction),$o(s.fn)}}finally{ro(i),Ui(o)}}Bt=e.p,Pe&&(sr=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function ss(){return!ns||Bt!==null&&Bt.l===null}function mp(t){var e;return Bt===null&&Ua(t),(e=Bt.c)!=null?e:Bt.c=new Map(j0(Bt)||void 0)}function j0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var Y0=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function ni(t){if(typeof t!="object"||t===null||Do in t)return t;let e=Xs(t);if(e!==cp&&e!==Yv)return t;var i=new Map,o=nr(t),n=J(0),s=Pe&&rs?vs("CreatedAt"):null,l=Lt,d=f=>{var m=Lt;Ui(l);var p=f();return Ui(m),p};o&&i.set("length",J(t.length,s));var a="";function u(f){a=f,Br(n,`${a} version`);for(let[m,p]of i)Br(p,Js(a,m))}return new Proxy(t,{defineProperty(f,m,p){(!("value"in p)||p.configurable===!1||p.enumerable===!1||p.writable===!1)&&cg();var x=i.get(m);return x===void 0?x=d(()=>{var y=J(p.value,s);return i.set(m,y),Pe&&typeof m=="string"&&Br(y,Js(a,m)),y}):N(x,p.value,!0),!0},deleteProperty(f,m){var p=i.get(m);if(p===void 0){if(m in f){let w=d(()=>J(Xi,s));i.set(m,w),vp(n),Pe&&Br(w,Js(a,m))}}else{if(o&&typeof m=="string"){var x=i.get("length"),y=Number(m);Number.isInteger(y)&&y<x.v&&N(x,y)}N(p,Xi),vp(n)}return!0},get(f,m,p){var T;if(m===Do)return t;if(Pe&&m===$c)return u;var x=i.get(m),y=m in f;if(x===void 0&&(!y||(T=Jo(f,m))!=null&&T.writable)&&(x=d(()=>{var S=ni(y?f[m]:Xi),E=J(S,s);return Pe&&Br(E,Js(a,m)),E}),i.set(m,x)),x!==void 0){var w=r(x);return w===Xi?void 0:w}return Reflect.get(f,m,p)},getOwnPropertyDescriptor(f,m){var p=Reflect.getOwnPropertyDescriptor(f,m);if(p&&"value"in p){var x=i.get(m);x&&(p.value=r(x))}else if(p===void 0){var y=i.get(m),w=y==null?void 0:y.v;if(y!==void 0&&w!==Xi)return{enumerable:!0,configurable:!0,value:w,writable:!0}}return p},has(f,m){var w;if(m===Do)return!0;var p=i.get(m),x=p!==void 0&&p.v!==Xi||Reflect.has(f,m);if(p!==void 0||$t!==null&&(!x||(w=Jo(f,m))!=null&&w.writable)){p===void 0&&(p=d(()=>{var T=x?ni(f[m]):Xi,S=J(T,s);return Pe&&Br(S,Js(a,m)),S}),i.set(m,p));var y=r(p);if(y===Xi)return!1}return x},set(f,m,p,x){var B;var y=i.get(m),w=m in f;if(o&&m==="length")for(var T=p;T<y.v;T+=1){var S=i.get(T+"");S!==void 0?N(S,Xi):T in f&&(S=d(()=>J(Xi,s)),i.set(T+"",S),Pe&&Br(S,Js(a,T)))}if(y===void 0)(!w||(B=Jo(f,m))!=null&&B.writable)&&(y=d(()=>J(void 0,s)),N(y,ni(p)),i.set(m,y),Pe&&Br(y,Js(a,m)));else{w=y.v!==Xi;var E=d(()=>ni(p));N(y,E)}var V=Reflect.getOwnPropertyDescriptor(f,m);if(V!=null&&V.set&&V.set.call(x,p),!w){if(o&&typeof m=="string"){var I=i.get("length"),L=Number(m);Number.isInteger(L)&&L>=I.v&&N(I,L+1)}vp(n)}return!0},ownKeys(f){r(n);var m=Reflect.ownKeys(f).filter(y=>{var w=i.get(y);return w===void 0||w.v!==Xi});for(var[p,x]of i)x.v!==Xi&&!(p in f)&&m.push(p);return m},setPrototypeOf(){ug()}})}function Js(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:Y0.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function vp(t,e=1){N(t,t.v+e)}function Ka(t){try{if(t!==null&&typeof t=="object"&&Do in t)return t[Do]}catch(e){}return t}function gp(t,e){return Object.is(Ka(t),Ka(e))}function Dr(t){var e=2050,i=Lt!==null&&(Lt.f&2)!==0?Lt:null;$t===null||i!==null&&(i.f&256)!==0?e|=256:$t.f|=1048576;let o={ctx:Bt,deps:null,effects:null,equals:xc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:$t};return Pe&&rs&&(o.created=vs("CreatedAt")),o}function g(t){let e=Dr(t);return Tc(e),e}function Fr(t){let e=Dr(t);return e.equals=Ha,e}function Sc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)zi(e[i])}}var hp=[];function Z0(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function $p(t){var e,i=$t;if(ro(Z0(t)),Pe){let o=ea;_p(new Set);try{hp.includes(t)&&eg(),hp.push(t),Sc(t),e=Cc(t)}finally{ro(i),_p(o),hp.pop()}}else try{Sc(t),e=Cc(t)}finally{ro(i)}return e}function yp(t){var e=$p(t);if(t.equals(e)||(t.v=e,t.wv=Ml()),!gs){var i=(hs||(t.f&256)!==0)&&t.deps!==null?4096:1024;fn(t,i)}}var ea=new Set,qa=new Map;function _p(t){ea=t}function Er(t,e){var i={f:0,v:t,reactions:null,equals:xc,rv:0,wv:0};return Pe&&rs&&(i.created=e!=null?e:vs("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function J(t,e){let i=Er(t,e);return Tc(i),i}function as(t,e=!1,i=!0){var n,s;let o=Er(t);return e||(o.equals=Ha),ns&&i&&Bt!==null&&Bt.l!==null&&((s=(n=Bt.l).s)!=null?s:n.s=[]).push(o),o}function N(t,e,i=!1){var n;Lt!==null&&(!dr||(Lt.f&262144)!==0)&&ss()&&(Lt.f&262162)!==0&&!((n=Uo)!=null&&n[1].includes(t)&&Uo[0]===Lt)&&pg();let o=i?ni(e):e;return Pe&&wc(o,t.label),Qa(t,o)}function Qa(t,e){if(!t.equals(e)){var i=t.v;if(gs?qa.set(t,e):qa.set(t,i),t.v=e,Pe&&rs&&(t.updated=vs("UpdatedAt"),$t!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&$p(t),fn(t,(t.f&256)===0?1024:4096)),t.wv=Ml(),vg(t,2048),ss()&&$t!==null&&($t.f&1024)!==0&&($t.f&96)===0&&(lr===null?gg([t]):lr.push(t)),Pe&&ea.size>0){let o=Array.from(ea);for(let n of o)(n.f&1024)!==0&&fn(n,4096),ia(n)&&Ga(n);ea.clear()}}return e}function vg(t,e){var i=t.reactions;if(i!==null)for(var o=ss(),n=i.length,s=0;s<n;s++){var l=i[s],d=l.f;if((d&2048)===0&&!(!o&&l===$t)){if(Pe&&(d&262144)!==0){ea.add(l);continue}fn(l,e),(d&1280)!==0&&((d&2)!==0?vg(l,4096):Rl(l))}}}var ja="font-weight: bold",Ya="font-weight: normal";function hg(t,e,i){Pe?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`,Ya,Za):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function ig(t){Ve?console.warn(`%c[svelte] hydration_html_changed
29
+ https://svelte.dev/e/hydration_attribute_changed`,ja,Ya):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function _g(t){Pe?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`,Ya,Za):console.warn("https://svelte.dev/e/hydration_html_changed")}function Rs(t){Ve?console.warn(`%c[svelte] hydration_mismatch
31
+ https://svelte.dev/e/hydration_html_changed`,ja,Ya):console.warn("https://svelte.dev/e/hydration_html_changed")}function Ds(t){Pe?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`,Ya,Za):console.warn("https://svelte.dev/e/hydration_mismatch")}function og(){Ve?console.warn(`%c[svelte] lifecycle_double_unmount
33
+ https://svelte.dev/e/hydration_mismatch`,ja,Ya):console.warn("https://svelte.dev/e/hydration_mismatch")}function bg(){Pe?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`,Ya,Za):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function ng(){Ve?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",Ya,Za):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function yc(t){Ve?console.warn(`%c[svelte] state_proxy_equality_mismatch
35
+ https://svelte.dev/e/lifecycle_double_unmount`,ja,Ya):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function $g(){Pe?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",ja,Ya):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Ec(t){Pe?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`,Ya,Za):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var et=!1;function co(t){et=t}var ht;function yi(t){if(t===null)throw Rs(),Jr;return ht=t}function Ki(){return yi(zo(ht))}function h(t){if(et){if(zo(ht)!==null)throw Rs(),Jr;ht=t}}function Ee(t=1){if(et){for(var e=t,i=ht;e--;)i=zo(i);ht=i}}function ia(){for(var t=0,e=ht;;){if(e.nodeType===Jn){var i=e.data;if(i===Ys){if(t===0)return e;t-=1}else(i===As||i===Ms)&&(t+=1)}var o=zo(e);e.remove(),e=o}}function xc(t){if(!t||t.nodeType!==Jn)throw Rs(),Jr;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(qa(this[a])===s){yc("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(qa(this[a])===s){yc("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(qa(this[a])===s){yc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var oa,sg,Ll,ag,lg;function wc(){if(oa===void 0){oa=window,sg=document,Ll=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;ag=Go(e,"firstChild").get,lg=Go(e,"nextSibling").get,tp(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),tp(i)&&(i.__t=void 0),Ve&&(t.__svelte_meta=null,rg())}}function bn(t=""){return document.createTextNode(t)}function Si(t){return ag.call(t)}function zo(t){return lg.call(t)}function _(t,e){if(!et)return Si(t);var i=Si(ht);if(i===null)i=ht.appendChild(bn());else if(e&&i.nodeType!==Ha){var o=bn();return i==null||i.before(o),yi(o),o}return yi(i),i}function he(t,e){var n,s;if(!et){var i=Si(t);return i.nodeType===8&&i.data===""?zo(i):i}if(e&&((n=ht)==null?void 0:n.nodeType)!==Ha){var o=bn();return(s=ht)==null||s.before(o),yi(o),o}return ht}function P(t,e=1,i=!1){let o=et?ht:t;for(var n;e--;)n=o,o=zo(o);if(!et)return o;if(i&&(o==null?void 0:o.nodeType)!==Ha){var s=bn();return o===null?n==null||n.after(s):o.before(s),yi(s),s}return yi(o),o}function Vl(t){t.textContent=""}function mp(t){gt===null&&It===null&&Fv(t),It!==null&&(It.f&256)!==0&&gt===null&&Hv(),fs&&Dv(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 na(t,e,i,o=!0){var a;var n=gt;if(Ve)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(Ve&&(s.component_function=er),i)try{ja(s),s.f|=32768}catch(u){throw Wi(s),u}else e!==null&&Ml(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),It!==null&&(It.f&2)!==0)){var d=It;((a=d.effects)!=null?a:d.effects=[]).push(s)}return s}function Ho(t){let e=na(8,null,!1);return _n(e,1024),e.teardown=t,e}function Qe(t){var n;mp("$effect");var e=gt!==null&&(gt.f&32)!==0&&Nt!==null&&!Nt.m;if(Ve&&ao(t,"name",{value:"$effect"}),e){var i=Nt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:gt,reaction:It})}else{var o=Eo(t);return o}}function Ol(t){return mp("$effect.pre"),Ve&&ao(t,"name",{value:"$effect.pre"}),Wo(t)}function Tc(t){let e=na(64,t,!0);return()=>{Wi(e)}}function cg(t){let e=na(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Pn(e,()=>{Wi(e),o(void 0)}):(Wi(e),o(void 0))})}function Eo(t){return na(4,t,!1)}function Wo(t){return na(8,t,!0)}function B(t,e=[],i=Or){if(Ve)return Wo(()=>{var n=gt,s=()=>t(...l.map(r));ao(n.fn,"name",{value:"{expression}"}),ao(s,"name",{value:"{expression}"});let l=e.map(i);qi(s)});let o=e.map(i);return qi(()=>t(...o.map(r)))}function qi(t,e=0){return na(24|e,t,!0)}function Oi(t,e=!0){return na(40,t,!0,e)}function vp(t){var e=t.teardown;if(e!==null){let i=fs,o=It;pp(!0),zi(null);try{e.call(null)}finally{pp(i),zi(o)}}}function gp(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:Wi(i,e),i=o}}function ug(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Wi(e),e=i}}function Wi(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),gp(t,e&&!i),Bl(t,0),_n(t,16384);var o=t.transitions;if(o!==null)for(let s of o)s.stop();vp(t);var n=t.parent;n!==null&&n.first!==null&&_p(t),Ve&&(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:zo(t);t.remove(),t=i}}function _p(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 Pn(t,e){var i=[];Ec(t,i,!0),bp(i,()=>{Wi(t),e&&e()})}function bp(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function Ec(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;Ec(o,e,s?i:!1),o=n}}}function gs(t){pg(t,!0)}function pg(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;pg(i,n?e:!1),i=o}if(t.transitions!==null)for(let s of t.transitions)(s.is_global||e)&&s.in()}}var Dl=[],$p=[];function fg(){var t=Dl;Dl=[],Vs(t)}function H_(){var t=$p;$p=[],Vs(t)}function $n(t){Dl.length===0&&queueMicrotask(fg),Dl.push(t)}function mg(){Dl.length>0&&fg(),$p.length>0&&H_()}function gg(t){var e=gt;if(Ve&&t instanceof Error&&F_(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else Hl(t,e)}function Hl(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var vg=new WeakSet;function F_(t,e){var l,d;if(vg.has(t))return;vg.add(t);let i=Go(t,"message");if(!(i&&!i.configurable)){for(var o=Ll?" ":" ",n=`
37
+ https://svelte.dev/e/state_proxy_equality_mismatch`,ja,Ya):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Xe=!1;function so(t){Xe=t}var yt;function bi(t){if(t===null)throw Ds(),os;return yt=t}function Wi(){return bi(zo(yt))}function h(t){if(Xe){if(zo(yt)!==null)throw Ds(),os;yt=t}}function ye(t=1){if(Xe){for(var e=t,i=yt;e--;)i=zo(i);yt=i}}function oa(){for(var t=0,e=yt;;){if(e.nodeType===rr){var i=e.data;if(i===Zs){if(t===0)return e;t-=1}else(i===Rs||i===Os)&&(t+=1)}var o=zo(e);e.remove(),e=o}}function Ic(t){if(!t||t.nodeType!==rr)throw Ds(),os;return t.data}function yg(){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(Ka(this[a])===s){Ec("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(Ka(this[a])===s){Ec("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(Ka(this[a])===s){Ec("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var na,xg,Ol,wg,Sg;function kc(){if(na===void 0){na=window,xg=document,Ol=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;wg=Jo(e,"firstChild").get,Sg=Jo(e,"nextSibling").get,up(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),up(i)&&(i.__t=void 0),Pe&&(t.__svelte_meta=null,yg())}}function mn(t=""){return document.createTextNode(t)}function Ci(t){return wg.call(t)}function zo(t){return Sg.call(t)}function _(t,e){if(!Xe)return Ci(t);var i=Ci(yt);if(i===null)i=yt.appendChild(mn());else if(e&&i.nodeType!==Da){var o=mn();return i==null||i.before(o),bi(o),o}return bi(i),i}function fe(t,e){var n,s;if(!Xe){var i=Ci(t);return i.nodeType===8&&i.data===""?zo(i):i}if(e&&((n=yt)==null?void 0:n.nodeType)!==Da){var o=mn();return(s=yt)==null||s.before(o),bi(o),o}return yt}function k(t,e=1,i=!1){let o=Xe?yt:t;for(var n;e--;)n=o,o=zo(o);if(!Xe)return o;if(i&&(o==null?void 0:o.nodeType)!==Da){var s=mn();return o===null?n==null||n.after(s):o.before(s),bi(s),s}return bi(o),o}function Nl(t){t.textContent=""}function Sp(t){$t===null&&Lt===null&&og(t),Lt!==null&&(Lt.f&256)!==0&&$t===null&&ig(),gs&&tg(t)}function X0(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function ra(t,e,i,o=!0){var a;var n=$t;if(Pe)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var s={ctx:Bt,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(Pe&&(s.component_function=sr),i)try{Ga(s),s.f|=32768}catch(u){throw zi(s),u}else e!==null&&Rl(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&&X0(s,n),Lt!==null&&(Lt.f&2)!==0)){var d=Lt;((a=d.effects)!=null?a:d.effects=[]).push(s)}return s}function Fo(t){let e=ra(8,null,!1);return fn(e,1024),e.teardown=t,e}function ze(t){var n;Sp("$effect");var e=$t!==null&&($t.f&32)!==0&&Bt!==null&&!Bt.m;if(Pe&&no(t,"name",{value:"$effect"}),e){var i=Bt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:$t,reaction:Lt})}else{var o=$o(t);return o}}function Fl(t){return Sp("$effect.pre"),Pe&&no(t,"name",{value:"$effect.pre"}),Wo(t)}function Lc(t){let e=ra(64,t,!0);return()=>{zi(e)}}function Tg(t){let e=ra(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Mn(e,()=>{zi(e),o(void 0)}):(zi(e),o(void 0))})}function $o(t){return ra(4,t,!1)}function Wo(t){return ra(8,t,!0)}function D(t,e=[],i=Dr){if(Pe)return Wo(()=>{var n=$t,s=()=>t(...l.map(r));no(n.fn,"name",{value:"{expression}"}),no(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 ra(24|e,t,!0)}function Ri(t,e=!0){return ra(40,t,!0,e)}function Cp(t){var e=t.teardown;if(e!==null){let i=gs,o=Lt;xp(!0),Ui(null);try{e.call(null)}finally{xp(i),Ui(o)}}}function Tp(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 Eg(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&&(Ep(t.nodes_start,t.nodes_end),i=!0),Tp(t,e&&!i),Hl(t,0),fn(t,16384);var o=t.transitions;if(o!==null)for(let s of o)s.stop();Cp(t);var n=t.parent;n!==null&&n.first!==null&&Ip(t),Pe&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Ep(t,e){for(;t!==null;){var i=t===e?null:zo(t);t.remove(),t=i}}function Ip(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 Mn(t,e){var i=[];Mc(t,i,!0),kp(i,()=>{zi(t),e&&e()})}function kp(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function Mc(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;Mc(o,e,s?i:!1),o=n}}}function bs(t){Ig(t,!0)}function Ig(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;Ig(i,n?e:!1),i=o}if(t.transitions!==null)for(let s of t.transitions)(s.is_global||e)&&s.in()}}var Ul=[],Ap=[];function kg(){var t=Ul;Ul=[],Bs(t)}function J0(){var t=Ap;Ap=[],Bs(t)}function vn(t){Ul.length===0&&queueMicrotask(kg),Ul.push(t)}function Ag(){Ul.length>0&&kg(),Ap.length>0&&J0()}function Lg(t){var e=$t;if(Pe&&t instanceof Error&&e_(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else zl(t,e)}function zl(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var Pg=new WeakSet;function e_(t,e){var l,d;if(Pg.has(t))return;Pg.add(t);let i=Jo(t,"message");if(!(i&&!i.configurable)){for(var o=Ol?" ":" ",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[Tn].split("/").pop()}`,s=s.p;ao(t,"message",{value:t.message+`
39
+ ${o}in ${(d=s.function)==null?void 0:d[kn].split("/").pop()}`,s=s.p;no(t,"message",{value:t.message+`
40
40
  ${n}
41
- `}),t.stack&&ao(t,"stack",{value:t.stack.split(`
41
+ `}),t.stack&&no(t,"stack",{value:t.stack.split(`
42
42
  `).filter(a=>!a.includes("svelte/src/internal")).join(`
43
- `)})}}var ra=!1,Xa=null,sa=!1,fs=!1;function pp(t){fs=t}var Fl=[],Ul=[],It=null,or=!1;function zi(t){It=t}var gt=null;function lo(t){gt=t}var Uo=null;function $c(t){It!==null&&It.f&2097152&&(Uo===null?Uo=[It,[t]]:Uo[1].push(t))}var yn=null,nr=0,ir=null;function eg(t){ir=t}var bg=1,kc=0,ms=!1,Pc=null;function Pl(){return++bg}function ta(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],ta(s)&&up(s),s.wv>t.wv)return!0}(!o||gt!==null&&!ms)&&_n(t,1024)}return!1}function $g(t,e,i=!0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var s=o[n];Uo!=null&&Uo[1].includes(t)&&Uo[0]===It||((s.f&2)!==0?$g(s,e,!1):e===s&&(i?_n(s,2048):(s.f&1024)!==0&&_n(s,4096),Ml(s)))}}function bc(t){var x,w;var e=yn,i=nr,o=ir,n=It,s=ms,l=Uo,d=Nt,a=or,u=t.f;yn=null,nr=0,ir=null,ms=(u&256)!==0&&(or||!sa||It===null),It=(u&96)===0?t:null,Uo=null,El(t.ctx),or=!1,kc++,t.f|=2097152;try{var f=(0,t.fn)(),v=t.deps;if(yn!==null){var p;if(Bl(t,nr),v!==null&&nr>0)for(v.length=nr+yn.length,p=0;p<yn.length;p++)v[nr+p]=yn[p];else t.deps=v=yn;if(!ms||(u&2)!==0&&t.reactions!==null)for(p=nr;p<v.length;p++)((w=(x=v[p]).reactions)!=null?w:x.reactions=[]).push(t)}else v!==null&&nr<v.length&&(Bl(t,nr),v.length=nr);if(is()&&ir!==null&&!or&&v!==null&&(t.f&6146)===0)for(p=0;p<ir.length;p++)$g(ir[p],t);return n!==null&&n!==t&&(kc++,ir!==null&&(o===null?o=ir:o.push(...ir))),f}catch(y){gg(y)}finally{yn=e,nr=i,ir=o,It=n,ms=s,Uo=l,El(d),or=a,t.f^=2097152}}function U_(t,e){let i=e.reactions;if(i!==null){var o=Lv.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&&(yn===null||!yn.includes(e))&&(_n(e,4096),(e.f&768)===0&&(e.f^=512),_c(e),Bl(e,0))}function Bl(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)U_(t,i[o])}function ja(t){var e=t.f;if((e&16384)===0){_n(t,1024);var i=gt,o=sa;if(gt=t,sa=!0,Ve){var n=er;Il(t.component_function)}try{(e&16)!==0?ug(t):gp(t),vp(t);var s=bc(t);if(t.teardown=typeof s=="function"?s:null,t.wv=bg,Ve&&ts&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=Pl(),l.set_during_effect=!1);Ve&&Ul.push(t)}finally{sa=o,gt=i,Ve&&Il(n)}}}function hg(){console.error("Last ten effects were: ",Ul.slice(-10).map(t=>t.fn)),Ul=[]}function z_(){try{Uv()}catch(t){if(Ve&&ao(t,"stack",{value:""}),Xa!==null)if(Ve)try{Hl(t,Xa)}catch(e){throw hg(),e}else Hl(t,Xa);else throw Ve&&hg(),t}}function xp(){var t=sa;try{var e=0;for(sa=!0;Fl.length>0;){e++>1e3&&z_();var i=Fl,o=i.length;Fl=[];for(var n=0;n<o;n++){var s=K_(i[n]);W_(s)}Qa.clear()}}finally{ra=!1,sa=t,Xa=null,Ve&&(Ul=[])}}function W_(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&ta(o)&&(ja(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?_p(o):o.fn=null))}}function Ml(t){ra||(ra=!0,queueMicrotask(xp));for(var e=Xa=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Fl.push(e)}function K_(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:ta(i)&&ja(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 Ja(t){var e;for(t&&(ra=!0,xp(),ra=!0,e=t());;){if(mg(),Fl.length===0)return ra=!1,Xa=null,Ve&&(Ul=[]),e;ra=!0,xp()}}function Io(){return xt(this,null,function*(){yield Promise.resolve(),Ja()})}function r(t){var e=t.f,i=(e&2)!==0;if(Pc!==null&&Pc.add(t),It!==null&&!or){if(!(Uo!=null&&Uo[1].includes(t))||Uo[0]!==It){var o=It.deps;t.rv<kc&&(t.rv=kc,yn===null&&o!==null&&o[nr]===t?nr++:yn===null?yn=[t]:(!ms||!yn.includes(t))&&yn.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,ta(n)&&up(n)),Ve&&ts&&!or&&Tl!==null&&It!==null&&Tl.reaction===It)if(t.trace)t.trace();else{var l=ps("TracedAt");if(l){var d=Tl.entries.get(t);d===void 0&&(d={traces:[]},Tl.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&&Qa.has(t)?Qa.get(t):t.v}function wt(t){var e=or;try{return or=!0,t()}finally{or=e}}var q_=-7169;function _n(t,e){t.f=t.f&q_|e}function Mc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Do in t)Ac(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Do in i&&Ac(i)}}}function Ac(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{Ac(t[o],e)}catch(n){}let i=Zs(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=fc(i);for(let n in o){let s=o[n].get;if(s)try{s.call(t)}catch(l){}}}}}function wp(t,e){if(e){let i=document.body;t.autofocus=!0,$n(()=>{document.activeElement===i&&t.focus()})}}function zl(t){var e=It,i=gt;zi(null),lo(null);try{return t()}finally{zi(e),lo(i)}}var Sp=new Set,Lc=new Set;function aa(t){if(!et)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Cp(t,e,i,o={}){function n(s){if(o.capture||el.call(e,s),!s.cancelBubble)return zl(()=>i==null?void 0:i.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?$n(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function St(t,e,i,o,n){var s={capture:o,passive:n},l=Cp(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Ho(()=>{e.removeEventListener(t,l,s)})}function ct(t){for(var e=0;e<t.length;e++)Sp.add(t[e]);for(var i of Lc)i(t)}function el(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){ao(t,"currentTarget",{configurable:!0,get(){return s||i}});var f=It,v=gt;zi(null),lo(null);try{for(var p,x=[];s!==null;){var w=s.assignedSlot||s.parentNode||s.host||null;try{var y=s["__"+o];if(y!=null&&(!s.disabled||t.target===s))if(Xn(y)){var[S,...T]=y;S.apply(s,[t,...T])}else y.call(s,t)}catch(V){p?x.push(V):p=V}if(t.cancelBubble||w===e||w===null)break;s=w}if(p){for(let V of x)queueMicrotask(()=>{throw V});throw p}}finally{t.__root=e,delete t.currentTarget,zi(f),lo(v)}}}var G_;function yg(){G_=void 0}function tl(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function ko(t,e){var i=gt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function M(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,s=!t.startsWith("<!>");return()=>{if(et)return ko(ht,null),ht;n===void 0&&(n=tl(s?t:"<!>"+t),i||(n=Si(n)));var l=o||Ll?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=Si(l),a=l.lastChild;ko(d,a)}else ko(l,l);return l}}function Z_(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(et)return ko(ht,null),ht;if(!l){var d=tl(s),a=Si(d);if(n)for(l=document.createDocumentFragment();Si(a);)l.appendChild(Si(a));else l=Si(a)}var u=l.cloneNode(!0);if(n){var f=Si(u),v=u.lastChild;ko(f,v)}else ko(u,u);return u}}function Ie(t,e){return Z_(t,e,"svg")}function ns(t=""){if(!et){var e=bn(t+"");return ko(e,e),e}var i=ht;return i.nodeType!==Ha&&(i.before(i=bn()),yi(i)),ko(i,i),i}function qe(){if(et)return ko(ht,null),ht;var t=document.createDocumentFragment(),e=document.createComment(""),i=bn();return t.append(e,i),ko(e,i),t}function $(t,e){if(et){gt.nodes_end=ht,Ki();return}t!==null&&t.before(e)}var X_=/\r/g;function wg(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 Sg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var J_=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Cg(t){return J_.includes(t)}var e0=["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 t0={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 Tg(t){var e;return t=t.toLowerCase(),(e=t0[t])!=null?e:t}var b9=[...e0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var i0=["touchstart","touchmove"];function Eg(t){return i0.includes(t)}var o0=["$state","$state.raw","$derived","$derived.by"],$9=[...o0,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var n0=["textarea","script","style","title"];function Ig(t){return n0.includes(t)}function Vc(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Wl=!0;function Rc(t){Wl=t}function be(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 rs(t,e){return kg(t,e)}function Ep(t,e){var l;wc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=et,n=ht;try{for(var s=Si(i);s&&(s.nodeType!==Jn||s.data!==As);)s=zo(s);if(!s)throw Jr;co(!0),yi(s),Ki();let d=kg(t,Bt(z({},e),{anchor:s}));if(ht===null||ht.nodeType!==Jn||ht.data!==Ys)throw Rs(),Jr;return co(!1),d}catch(d){if(d===Jr)return e.recover===!1&&zv(),wc(),Vl(i),co(!1),rs(t,e);throw d}finally{co(o),yi(n),yg()}}var il=new Map;function kg(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 x=v[p];if(!d.has(x)){d.add(x);var w=Eg(x);e.addEventListener(x,el,{passive:w});var y=il.get(x);y===void 0?(document.addEventListener(x,el,{passive:w}),il.set(x,1)):il.set(x,y+1)}}};a(Cl(Sp)),Lc.add(a);var u=void 0,f=cg(()=>{var v=i!=null?i:e.appendChild(bn());return Oi(()=>{if(s){F({});var p=Nt;p.c=s}n&&(o.$$events=n),et&&ko(v,null),Wl=l,u=t(v,o)||{},Wl=!0,et&&(gt.nodes_end=ht),s&&U()}),()=>{var w;for(var p of d){e.removeEventListener(p,el);var x=il.get(p);--x===0?(document.removeEventListener(p,el),il.delete(p)):il.set(p,x)}Lc.delete(a),v!==i&&((w=v.parentNode)==null||w.removeChild(v))}});return Tp.set(u,f),u}var Tp=new WeakMap;function la(t,e){let i=Tp.get(t);return i?(Tp.delete(t),i(e)):(Ve&&og(),Promise.resolve())}function ye(t,e,...i){var o=t,n=de,s;qi(()=>{n!==(n=e())&&(s&&(Wi(s),s=null),Ve&&n==null&&Wv(),s=Oi(()=>n(o,...i)))},65536),et&&(o=ht)}if(Ve){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Qv(e)},set:o=>{i=o}})}};l0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var l0;function Lt(t){Nt===null&&za("onMount"),es&&Nt.l!==null?a0(Nt).m.push(t):Qe(()=>{let e=wt(t);if(typeof e=="function")return e})}function Zo(t){Nt===null&&za("onDestroy"),Lt(()=>()=>wt(t))}function a0(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var Pg=new Map;function Ag(t,e){var i=Pg.get(t);i||(i=new Set,Pg.set(t,i)),i.add(e)}function L(t,e,[i,o]=[0,0]){et&&i===0&&Ki();var n=t,s=null,l=null,d=eo,a=i>0?65536:0,u=!1;let f=(p,x=!0)=>{u=!0,v(x,p)},v=(p,x)=>{if(d===(d=p))return;let w=!1;if(et&&o!==-1){if(i===0){let S=xc(n);S===As?o=0:S===Ms?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=ia(),yi(n),co(!1),w=!0,o=-1)}d?(s?gs(s):x&&(s=Oi(()=>x(n))),l&&Pn(l,()=>{l=null})):(l?gs(l):x&&(l=Oi(()=>x(n,[i+1,o]))),s&&Pn(s,()=>{s=null})),w&&co(!0)};qi(()=>{u=!1,e(f),u||v(null,null)},a),et&&(n=ht)}function da(t,e,i){et&&Ki();var o=t,n=eo,s,l=is()?Ov:Fa;qi(()=>{l(n,n=e())&&(s&&Pn(s),s=Oi(()=>i(o)))}),et&&(o=ht)}var Os=null;function Pp(t){Os=t}function Kl(t,e){return e}function u0(t,e,i,o){for(var n=[],s=e.length,l=0;l<s;l++)Ec(e[l].e,n,!0);var d=s>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;Vl(a),a.append(i),o.clear(),Ns(t,e[0].prev,e[s-1].next)}bp(n,()=>{for(var u=0;u<s;u++){var f=e[u];d||(o.delete(f.k),Ns(t,f.prev,f.next)),Wi(f.e,!d)}})}function Mi(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=et?yi(Si(u)):u.appendChild(bn())}et&&Ki();var f=null,v=!1,p=Br(()=>{var x=i();return Xn(x)?x:x==null?[]:Cl(x)});qi(()=>{var x=r(p),w=x.length;if(v&&w===0)return;v=w===0;let y=!1;if(et){var S=xc(l)===Ms;S!==(w===0)&&(l=ia(),yi(l),co(!1),y=!0)}if(et){for(var T=null,E,V=0;V<w;V++){if(ht.nodeType===Jn&&ht.data===Ys){l=ht,y=!0,co(!1);break}var k=x[V],I=o(k,V);E=Vg(ht,d,T,null,k,I,V,n,e,i),d.items.set(I,E),T=E}w>0&&yi(ia())}et||p0(x,d,l,n,e,o,i),s!==null&&(w===0?f?gs(f):f=Oi(()=>s(l)):f!==null&&Pn(f,()=>{f=null})),y&&co(!0),r(p)}),et&&(l=ht)}function p0(t,e,i,o,n,s,l){var oe,pe,$e,me;var d=(n&8)!==0,a=(n&3)!==0,u=t.length,f=e.items,v=e.first,p=v,x,w=null,y,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&&((oe=k.a)==null||oe.measure(),(y!=null?y:y=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=Vg(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&&f0(k,E,I,n),(k.e.f&8192)!==0&&(gs(k.e),d&&((pe=k.a)==null||pe.unfix(),(y!=null?y:y=new Set).delete(k))),k!==p){if(x!==void 0&&x.has(k)){if(S.length<T.length){var X=T[0],D;w=X.prev;var H=S[0],W=S[S.length-1];for(D=0;D<S.length;D+=1)Mg(S[D],X,i);for(D=0;D<T.length;D+=1)x.delete(T[D]);Ns(e,H.prev,W.next),Ns(e,w,H),Ns(e,W,X),p=X,w=W,I-=1,S=[],T=[]}else x.delete(k),Mg(k,p,i),Ns(e,k.prev,k.next),Ns(e,k,w===null?e.first:w.next),Ns(e,w,k),w=k;continue}for(S=[],T=[];p!==null&&p.k!==V;)(p.e.f&8192)===0&&(x!=null?x:x=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||x!==void 0){for(var ee=x===void 0?[]:Cl(x);p!==null;)(p.e.f&8192)===0&&ee.push(p),p=p.next;var j=ee.length;if(j>0){var ue=(n&4)!==0&&u===0?i:null;if(d){for(I=0;I<j;I+=1)($e=ee[I].a)==null||$e.measure();for(I=0;I<j;I+=1)(me=ee[I].a)==null||me.fix()}u0(e,ee,ue,f)}}d&&$n(()=>{var Ae;if(y!==void 0)for(k of y)(Ae=k.a)==null||Ae.apply()}),gt.first=e.first&&e.first.e,gt.last=w&&w.e}function f0(t,e,i,o){(o&1)!==0&&Ga(t.v,e),(o&2)!==0?Ga(t.i,i):t.i=i}function Vg(t,e,i,o,n,s,l,d,a,u){var f=Os,v=(a&1)!==0,p=(a&16)===0,x=v?p?os(n,!1,!1):Sr(n):n,w=(a&2)===0?l:Sr(l);Ve&&v&&(x.trace=()=>{var S=typeof w=="number"?l:w.v;u()[S]});var y={i:w,v:x,k:s,a:null,e:null,prev:i,next:o};Os=y;try{return y.e=Oi(()=>d(t,x,w,u),et),y.e.prev=i&&i.e,y.e.next=o&&o.e,i===null?e.first=y:(i.next=y,i.e.next=y.e),o!==null&&(o.prev=y,o.e.prev=y.e),y}finally{Os=f}}function Mg(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=zo(s);n.before(s),s=l}}function Ns(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 m0(t,e,i){var s,l;if(!e||e===wg(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=er)!=null&&l[Tn]&&(o=`in ${er[Tn]}`),ig(Vc(o))}function ql(t,e,i=!1,o=!1,n=!1){var s=t,l="";B(()=>{var x;var d=gt;if(l===(l=(x=e())!=null?x:"")){et&&Ki();return}if(d.nodes_start!==null&&(hp(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(et){for(var a=ht.data,u=Ki(),f=u;u!==null&&(u.nodeType!==Jn||u.data!=="");)f=u,u=zo(u);if(u===null)throw Rs(),Jr;Ve&&!n&&m0(u.parentNode,a,l),ko(ht,f),s=yi(u);return}var v=l+"";i?v=`<svg>${v}</svg>`:o&&(v=`<math>${v}</math>`);var p=tl(v);if((i||o)&&(p=Si(p)),ko(Si(p),p.lastChild),i||o)for(;Si(p);)s.before(Si(p));else s.before(p)}})}function Li(t,e,i){et&&Ki();var o=t,n,s;qi(()=>{n!==(n=e())&&(s&&(Pn(s),s=null),n&&(s=Oi(()=>i(o,n))))},65536),et&&(o=ht)}function ca(t,e,i,o,n,s){var w;let l=et;et&&Ki();var d=Ve&&s&&((w=Nt)==null?void 0:w.function[Tn]),a,u,f=null;et&&ht.nodeType===vc&&(f=ht,Ki());var v=et?ht:t,p,x=Os;qi(()=>{let y=e()||null;var S=n?n():i||y==="svg"?uc:null;if(y!==a){var T=Os;Pp(x),p&&(y===null?Pn(p,()=>{p=null,u=null}):y===u?gs(p):(Wi(p),Rc(!1))),y&&y!==u&&(p=Oi(()=>{if(f=et?f:S?document.createElementNS(S,y):document.createElement(y),Ve&&s&&(f.__svelte_meta={loc:{file:d,line:s[0],column:s[1]}}),ko(f,f),o){et&&Ig(y)&&f.append(document.createComment(""));var E=et?Si(f):f.appendChild(bn());et&&(E===null?co(!1):yi(E)),o(f,E)}gt.nodes_end=f,v.before(f)})),a=y,a&&(u=a),Rc(!0),Pp(T)}},65536),l&&(co(!0),yi(v))}var Mp;function Rg(t){return Mp=t.target,new Ap(t)}var hs,Cr,Ap=class{constructor(e){Ps(this,hs);Ps(this,Cr);var s,l;var i=new Map,o=(d,a)=>{var u=os(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===Da?!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)}});Ba(this,Cr,(e.hydrate?Ep:rs)(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)&&Ja(),Ba(this,hs,n.$$events);for(let d of Object.keys(Ni(this,Cr)))d==="$set"||d==="$destroy"||d==="$on"||ao(this,d,{get(){return Ni(this,Cr)[d]},set(a){Ni(this,Cr)[d]=a},enumerable:!0});Ni(this,Cr).$set=d=>{Object.assign(n,d)},Ni(this,Cr).$destroy=()=>{la(Ni(this,Cr))}}$set(e){Ni(this,Cr).$set(e)}$on(e,i){Ni(this,hs)[e]=Ni(this,hs)[e]||[];let o=(...n)=>i.call(this,...n);return Ni(this,hs)[e].push(o),()=>{Ni(this,hs)[e]=Ni(this,hs)[e].filter(n=>n!==o)}}$destroy(){Ni(this,Cr).$destroy()}};hs=new WeakMap,Cr=new WeakMap;function q(t,e){$n(()=>{var n,s,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(s=Mp)==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),Ve&&Ag(e.hash,d)}})}function _s(t,e){var i=void 0,o;qi(()=>{i!==(i=e())&&(o&&(Wi(o),o=null),i&&(o=Oi(()=>{Eo(()=>i(t))})))})}function Ng(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=Ng(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Og(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Ng(t))&&(o&&(o+=" "),o+=e);return o}function Ql(t){return typeof t=="object"?Og(t):t!=null?t:""}var Bg=[...`
44
- \r\f\xA0\v\uFEFF`];function Hg(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||Bg.includes(o[l-1]))&&(d===o.length||Bg.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function Dg(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 Lp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Fg(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(Lp)),n&&a.push(...Object.keys(n).map(Lp));var u=0,f=-1;let y=t.length;for(var v=0;v<y;v++){var p=t[v];if(d?p==="/"&&t[v-1]==="*"&&(d=!1):s?s===p&&(s=!1):p==="/"&&t[v+1]==="*"?d=!0:p==='"'||p==="'"?s=p:p==="("?l++:p===")"&&l--,!d&&s===!1&&l===0){if(p===":"&&f===-1)f=v;else if(p===";"||v===y-1){if(f!==-1){var x=Lp(t.substring(u,f).trim());if(!a.includes(x)){p!==";"&&v++;var w=t.substring(u,v).trim();i+=" "+w+";"}}u=v+1,f=-1}}}}return o&&(i+=Dg(o)),n&&(i+=Dg(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(et||l!==i||l===void 0){var d=Hg(i,o,s);(!et||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 Vp(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(et||n!==e){var s=Fg(e,o);(!et||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}else o&&(Array.isArray(o)?(Vp(t,i==null?void 0:i[0],o[0]),Vp(t,i==null?void 0:i[1],o[1],"important")):Vp(t,i,o));return o}function Gl(t,e,i){if(t.multiple){if(e==null)return;if(!Xn(e))return ng();for(var o of t.options)o.selected=e.includes(Ug(o));return}for(o of t.options){var n=Ug(o);if(sp(n,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Rp(t){var e=new MutationObserver(()=>{Gl(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Ho(()=>{e.disconnect()})}function Ug(t){return"__value"in t?t.__value:t.value}var ol=Symbol("class"),nl=Symbol("style"),Kg=Symbol("is custom element"),qg=Symbol("is html");function Qg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function We(t,e,i,o){var n=jg(t);if(et&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||x0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Nv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Yg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Gg(t,e,i,o,n=!1){var k;var s=jg(t),l=s[Kg],d=!s[qg];let a=et&&l;a&&co(!1);var u=e||{},f=t.tagName==="OPTION";for(var v in e)v in i||(i[v]=null);i.class?i.class=Ql(i.class):(o||i[ol])&&(i.class=null),i[nl]&&((k=i.style)!=null||(i.style=null));var p=Yg(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 x=t.namespaceURI==="http://www.w3.org/1999/xhtml";te(t,x,R,o,e==null?void 0:e[ol],i[ol]),u[I]=R,u[ol]=i[ol];continue}if(I==="style"){rt(t,R,e==null?void 0:e[nl],i[nl]),u[I]=R,u[nl]=i[nl];continue}var w=u[I];if(!(R===w&&!(R===void 0&&t.hasAttribute(I)))){u[I]=R;var y=I[0]+I[1];if(y!=="$$")if(y==="on"){let X={},D="$$"+I,H=I.slice(2);var S=Cg(H);if(Sg(H)&&(H=H.slice(0,-7),X.capture=!0),!S&&w){if(R!=null)continue;t.removeEventListener(H,u[D],X),u[D]=null}if(R!=null)if(S)t[`__${H}`]=R,ct([H]);else{let W=function(ee){u[I].call(this,ee)};var V=W;u[D]=Cp(H,t,W,X)}else S&&(t[`__${H}`]=void 0)}else if(I==="style")We(t,I,R);else if(I==="autofocus")wp(t,!!R);else if(!l&&(I==="__value"||I==="value"&&R!=null))t.value=t.__value=R;else if(I==="selected"&&f)Qg(t,R);else{var T=I;d||(T=Tg(T));var E=T==="defaultValue"||T==="defaultChecked";if(R==null&&!l&&!E)if(s[I]=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(I);else E||p.includes(T)&&(l||typeof R!="string")?t[T]=R:typeof R!="function"&&We(t,T,R,n)}}}return a&&co(!0),u}function Me(t,e,i=[],o,n=!1,s=Or){let l=i.map(s);var d=void 0,a={},u=t.nodeName==="SELECT",f=!1;if(qi(()=>{var p=e(...l.map(r)),x=Gg(t,d,p,o,n);f&&u&&"value"in p&&Gl(t,p.value,!1);for(let y of Object.getOwnPropertySymbols(a))p[y]||Wi(a[y]);for(let y of Object.getOwnPropertySymbols(p)){var w=p[y];y.description===Xu&&(!d||w!==d[y])&&(a[y]&&Wi(a[y]),a[y]=Oi(()=>_s(t,()=>w))),x[y]=w}d=x}),u){var v=t;Eo(()=>{Gl(v,d.value),Rp(v)})}f=!0}function jg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Kg]:t.nodeName.includes("-"),[qg]:t.namespaceURI===kv}}var zg=new Map;function Yg(t){var e=zg.get(t.nodeName);if(e)return e;zg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=fc(o);for(var s in i)i[s].set&&e.push(s);o=Zs(o)}return e}function x0(t,e,i){var o;Ve&&(e==="srcset"&&w0(t,i)||Np((o=t.getAttribute(e))!=null?o:"",i)||tg(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Np(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Wg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function w0(t,e){var i=Wg(t.srcset),o=Wg(e);return o.length===i.length&&o.every(([n,s],l)=>s===i[l][1]&&(Np(i[l][0],n)||Np(n,i[l][0])))}var S0=pc?()=>performance.now():()=>Date.now(),Fr={tick:t=>(pc?requestAnimationFrame:de)(t),now:()=>S0(),tasks:new Set};function Zg(){let t=Fr.now();Fr.tasks.forEach(e=>{e.c(t)||(Fr.tasks.delete(e),e.f())}),Fr.tasks.size!==0&&Fr.tick(Zg)}function Xg(t){let e;return Fr.tasks.size===0&&Fr.tick(Zg),{promise:new Promise(i=>{Fr.tasks.add(e={c:t,f:i})}),abort(){Fr.tasks.delete(e)}}}function Nc(t,e){zl(()=>{t.dispatchEvent(new CustomEvent(e))})}function I0(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 Jg(t){let e={},i=t.split(";");for(let o of i){let[n,s]=o.split(":");if(!n||s===void 0)break;let l=I0(n.trim());e[l]=s.trim()}return e}var k0=t=>t;function Bp(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,x;function w(){var R;var k=It,I=gt;zi(null),lo(null);try{return u!=null?u:u=i()(e,(R=o==null?void 0:o())!=null?R:{},{direction:a})}finally{zi(k),lo(I)}}var y={is_global:d,in(){var k;if(e.inert=f,!n){x==null||x.abort(),(k=x==null?void 0:x.reset)==null||k.call(x);return}s||p==null||p.abort(),Nc(e,"introstart"),p=Op(e,w(),x,1,()=>{Nc(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,Nc(e,"outrostart"),x=Op(e,w(),p,0,()=>{Nc(e,"outroend"),k==null||k()})},stop:()=>{p==null||p.abort(),x==null||x.abort()}},S=gt;if(((V=S.transitions)!=null?V:S.transitions=[]).push(y),n&&Wl){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&&Eo(()=>{wt(()=>y.in())})}}function Op(t,e,i,o,n){var s=o===1;if(Ls(e)){var l,d=!1;return $n(()=>{if(!d){var S=e({direction:s?"in":"out"});l=Op(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=k0}=e;var p=[];if(s&&i===void 0&&(f&&f(0,1),u)){var x=Jg(u(0,1));p.push(x,x)}var w=()=>1-o,y=t.animate(p,{duration:a,fill:"forwards"});return y.onfinish=()=>{var H;y.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 X=S+T*v(R/I),D=Jg(u(X,1-X));V.push(D),k||(k=D.overflow==="hidden")}k&&(t.style.overflow="hidden"),w=()=>{var W=y.currentTime;return S+T*v(W/E)},f&&Xg(()=>{if(y.playState!=="running")return!1;var W=w();return f(W,1-W),!0})}y=t.animate(V,{duration:E,fill:"forwards"}),y.onfinish=()=>{w=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=de)},deactivate:()=>{n=de},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var Bs,rl,jl,Bc,eh,Dc=class Dc{constructor(e){Ps(this,Bc);Ps(this,Bs,new WeakMap);Ps(this,rl);Ps(this,jl);Ba(this,jl,e)}observe(e,i){var o=Ni(this,Bs).get(e)||new Set;return o.add(i),Ni(this,Bs).set(e,o),Ev(this,Bc,eh).call(this).observe(e,Ni(this,jl)),()=>{var n=Ni(this,Bs).get(e);n.delete(i),n.size===0&&(Ni(this,Bs).delete(e),Ni(this,rl).unobserve(e))}}};Bs=new WeakMap,rl=new WeakMap,jl=new WeakMap,Bc=new WeakSet,eh=function(){var e;return(e=Ni(this,rl))!=null?e:Ba(this,rl,new ResizeObserver(i=>{for(var o of i){Dc.entries.set(o.target,o);for(var n of Ni(this,Bs).get(o.target)||[])n(o)}}))},Zn(Dc,"entries",new WeakMap);var Dp=Dc;var P0=new Dp({box:"border-box"});function rr(t,e,i){var o=P0.observe(t,()=>i(t[e]));Eo(()=>(wt(()=>i(t[e])),o))}function th(t,e){return t===e||(t==null?void 0:t[Do])===e}function ot(t={},e,i,o){return Eo(()=>{var n,s;return Wo(()=>{n=s,s=(o==null?void 0:o())||[],wt(()=>{t!==i(...s)&&(e(t,...s),n&&th(i(...n),t)&&e(null,...n))})}),()=>{$n(()=>{s&&th(i(...s),t)&&e(null,...s)})}}),t}function Ur(t=!1){let e=Nt,i=e.l.u;if(!i)return;let o=()=>Mc(e.s);if(t){let n=0,s={},l=Or(()=>{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&&Ol(()=>{ih(e,o),Vs(i.b)}),Qe(()=>{let n=wt(()=>i.m.map(Rv));return()=>{for(let s of n)typeof s=="function"&&s()}}),i.a.length&&Qe(()=>{ih(e,o),Vs(i.a)})}function ih(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}function Yl(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 sl=[];function Tr(t,e){return{subscribe:ae(t,e).subscribe}}function ae(t,e=de){let i=null,o=new Set;function n(d){if(Fa(t,d)&&(t=d,i)){let a=!sl.length;for(let u of o)u[1](),sl.push(u,t);if(a){for(let u=0;u<sl.length;u+=2)sl[u][0](sl[u+1]);sl.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 Ci(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 Tr(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},x=n.map((w,y)=>Yl(w,S=>{u[y]=S,f&=~(1<<y),a&&p()},()=>{f|=1<<y}));return a=!0,p(),function(){Vs(x),v(),a=!1}})}function xe(t){let e;return Yl(t,i=>e=i)(),e}var Hc=!1,Hp=Symbol();function C(t,e,i){var s;let o=(s=i[e])!=null?s:i[e]={store:null,source:os(void 0),unsubscribe:de};if(o.store!==t&&!(Hp 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=Yl(t,l=>{n?o.source.v=l:O(o.source,l)}),n=!1}return t&&Hp in i?xe(t):r(o.source)}function Ue(){let t={};function e(){Ho(()=>{for(var i in t)t[i].unsubscribe();ao(t,Hp,{enumerable:!1,value:!0})})}return[t,e]}function Fp(t){var e=Hc;try{return Hc=!1,[t(),Hc]}finally{Hc=e}}var O0={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ve&&qv(`${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(Ve?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},O0)}var B0={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ls(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];Ls(n)&&(n=n());let s=Go(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(Ls(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Go(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Do||e===Da)return!1;for(let i of t.props)if(Ls(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Ls(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},B0)}function oh(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=!es||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,u;l?[u,a]=Fp(()=>t[e]):u=t[e];var f=Do in t||Da in t,v=l&&((D=(X=Go(t,e))==null?void 0:X.set)!=null?D:f&&e in t&&(H=>t[e]=H))||void 0,p=o,x=!0,w=!1,y=()=>(w=!0,x&&(x=!1,d?p=wt(o):p=o),p);u===void 0&&o!==void 0&&(v&&s&&Kv(e),u=y(),v&&v(u));var S;if(s)S=()=>{var H=t[e];return H===void 0?y():(x=!0,w=!1,H)};else{var T=(n?Or:Br)(()=>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=os(u),R=Or(()=>{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=Ua),function(H,W){if(Pc!==null&&(V=k,S(),r(I)),arguments.length>0){let ee=W?r(R):s&&l?oi(H):H;if(!R.equals(ee)){if(V=!0,O(I,ee),w&&p!==void 0&&(p=ee),oh(R))return H;wt(()=>r(R))}return H}return oh(R)?R.v:r(R)}}var D0;typeof HTMLElement=="function"&&(D0=class extends HTMLElement{constructor(e,i,o){super();Zn(this,"$$ctor");Zn(this,"$$s");Zn(this,"$$c");Zn(this,"$$cn",!1);Zn(this,"$$d",{});Zn(this,"$$r",!1);Zn(this,"$$p_d",{});Zn(this,"$$l",{});Zn(this,"$$l_u",new Map);Zn(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),$(l,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=H0(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]=Up(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=Rg({component:this.$$ctor,target:this.shadowRoot||this,props:Bt(z({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=Tc(()=>{Wo(()=>{var s;this.$$r=!0;for(let l of Ju(this.$$c)){if(!((s=this.$$p_d[l])!=null&&s.reflect))continue;this.$$d[l]=this.$$c[l];let d=Up(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]=Up(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 Ju(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Up(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 H0(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var nh="5";var rh,sh,ah;typeof window!="undefined"&&((ah=(sh=(rh=window.__svelte)!=null?rh:window.__svelte={}).v)!=null?ah:sh.v=new Set).add(nh);import{areValidLiveRecordSources as k5,clientChecker as av}from"@vkontakte/videoplayer-core/es2015";import"@vkontakte/videoplayer-core/es2015";import{noop as u_,safeStorage as P5,throttleFn as A5}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as M5}from"@vkontakte/videoplayer-statistics/es2015";import{InterfaceLanguage as F0,fillWithDefault as U0,VideoQuality as lh}from"@vkontakte/videoplayer-shared/es2015";var z0={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:F0.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:lh.Q_480P,highQualityLimit:lh.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,interactiveHistoryEndChapterFix:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,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=>U0(t,z0),ch=t=>Ka("ui-config",t),kt=()=>Wa("ui-config");var Zl="vk_player_debug_panel_opened";var uh="videoplayer",ph="videoplayer";var ss={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},fh=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),mh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),vh=new Set(["ShiftRight","ShiftLeft"]);var gh=["TIMELINE"],Xl=[...gh,"GRAPH_BUTTON"],zp=[...gh,"PLAY_BUTTON"],Jl=[...Xl,"PLAY_BUTTON"];var as=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(as||{}),pa={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as hh,VERSION as W0}from"@vkontakte/videoplayer-shared/es2015";import{VERSION as K0}from"@vkontakte/videoplayer-core/es2015";import{VERSION as q0}from"@vkontakte/videoplayer-statistics/es2015";var Fc="prod",al="1.1.73-dev.ecbcbb4c.0";var fa=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var _h=Symbol("storeContext"),bh=Symbol("microStoresContext"),$h=(t,e)=>{Ka(_h,t),Ka(bh,e),Fc==="dev"&&(window.app={store:t,microStores:e})},ke=()=>{let t=Wa(_h);return hh(t,"Store context is empty!"),t},vo=()=>{let t=Wa(bh);return hh(t,"MicroStores context is empty!"),t},ii=(t,e)=>zc(t,t.getValue(),e),zc=(t,e,i)=>Tr(e,o=>{let n=t.subscribe(s=>{o(s),i==null||i(s)});return()=>n.unsubscribe()}),yh=(t,e,i,o)=>{var R,X,D,H,W,ee,j,ue;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=`${al} (core: ${K0}, stat: ${q0}, shared: ${W0})`,v=xe(i.state.errorLog$),p=v.length?`
45
- `+v.map((oe,pe)=>{var re;let $e=`${pe}) Type: ${oe.id}
46
- `,me=`Message: ${oe.message} (${oe.thrown})
47
- `,Ae=`Trace: ${(re=oe.thrown)==null?void 0:re.stack}
48
- `;return $e+me+Ae}).join(`
49
- `):void 0,x=i.state.isAudioDisabled?"disabled":xe(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),y=t.info.currentAudioStream$.getValue(),S=[];w&&S.push(`Video: ${(W=w==null?void 0:w.codec)!=null?W:""}`+(w!=null&&w.hdr?" (HDR)":"")),y&&S.push(`Audio: ${(ee=y==null?void 0:y.codec)!=null?ee:""}`+(y!=null&&y.language?` (${y.language})`:""));let T=n.currentQuality$.getValue(),E="";if(T){let oe=n.availableQualitiesFps$.getValue()[T];E=oe?`${oe}fps`:""}let V=(ue=(j=n.currentBuffer$.getValue())==null?void 0:j.end)!=null?ue:0,k=Math.max(V-xe(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: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:S.join(", "),Quality:`${u} ${T} ${E}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:x,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(I).filter(([oe,pe])=>pe!==void 0).map(([oe,pe])=>`${oe}: ${pe}`).join(`
50
- `)},xh=(t,e,i)=>{var X,D,H,W;let o=t.info,{width:n,height:s}=xe(i.ui.playerSize),l={version:al,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 x=o.throughputEstimation$.getValue();x&&(l.speed=x);let w=o.videoBitrate$.getValue();w&&(l.bitrate=w);let y=o.liveLatency$.getValue();y&&(l.liveLatency=y);let S=o.currentVideoSegmentLength$.getValue();S&&(l.currentVideoSegmentLength=S);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let E=xe(i.vsid);typeof E=="string"&&(l.vsid=E);let V=(X=t.info.currentVideoStream$.getValue())==null?void 0:X.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},wh=(t,e)=>fa(t,e,"mp4"),Sh=t=>!t.type,Ch=t=>!!t.type,Th=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},Uc=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}};import{isNullable as Qp,safeStorage as Bi}from"@vkontakte/videoplayer-shared/es2015";import"@vkontakte/videoplayer-core/es2015";var Eh="vk_player_prefer_traffic_saving_enabled",Ih="vk_player_preferred_volume",kh="vk_player_prefer_volume_mute",Gp="vk_player_preferred_quality",Wp="vk_player_preferred_default_quality_settings",Kp="vk_player_preferred_quality_settings_by_video",Ph="vk_player_preferred_stream_language",Ah="vk_player_preferred_rate",Mh="vk_player_preferred_autoplay_next",qp="vk_player_preferred_subtitles_language",Lh="vk_player_user_video_prefs",Vh=t=>t>1?1:t<0?0:t,jp=t=>Bi.set(Ih,Vh(t).toString(10)),Wc=()=>{let t=Bi.get(Ih);return Qp(t)?void 0:Vh(parseFloat(t))},Yp=(t,e)=>Bi.set(Gp,JSON.stringify({videoId:t,value:e})),Kc=()=>Bi.remove(Gp),Zp=t=>{let e=Bi.get(Gp);if(Qp(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Kc();return}return o},Xp=(t,e)=>{e?Bi.set(t,"true"):Bi.remove(t)},Jp=t=>Bi.get(t)==="true",ef=t=>Xp(kh,t),Rh=()=>Jp(kh),ed=t=>Xp(Eh,t),tf=()=>Jp(Eh),Nh=()=>Bi.get(Ph),of=t=>Bi.set(Ph,t),nf=()=>Bi.get(qp),rf=t=>{t?Bi.set(qp,t):Bi.remove(qp)},Oh=t=>Bi.set(Ah,JSON.stringify({rate:t})),Bh=()=>{let t=Bi.get(Ah);if(Qp(t))return;let{rate:e}=JSON.parse(t);return e},Dh=t=>Xp(Mh,t),Hh=()=>Jp(Mh),Q0=()=>{let t=f=>{Bi.set(Wp,JSON.stringify(f))},e=()=>{try{let f=Bi.get(Wp);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=Bi.get(Kp);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{Bi.set(Kp,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=()=>{Bi.remove(Kp)},l=()=>{Bi.remove(Wp)},d=(f,v="as-default")=>{f.type==="exact_quality"||v==="to-video"?o(f):t(f)},a=f=>{let v=n(f);if(v){switch(v.type){case"traffic_saving":ed(!0);break;case"exact_quality":Yp(f,v.quality)}s(),l()}},u=f=>{let v=Zp(f);if(v){o({type:"exact_quality",videoId:f,quality:v});return}tf()&&t({type:"traffic_saving",videoId:f}),ed(!1),Kc()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:nf,savePreferredSubtitlesLanguage:rf}},{getPreferredQualitySettings:Fh,migrateSettingsToLegacyWay:Uh,savePreferredQualitySettings:qc,savePreferredDefaultQualitySettings:QM,removePreferredQualitySettingsByVideo:GM,getPreferredDefaultQualitySettings:Qc}=Q0(),G0=3,j0=3,zh=()=>{let t=Bi.get(Lh);if(t)try{return JSON.parse(t)}catch(e){return null}return null},Gc=(t,e)=>{var n,s;let i=zh();return(s=(n=i==null?void 0:i[t])==null?void 0:n[e])!=null?s:null},sf=(t,e,i)=>{var l,d,a;let o=(l=zh())!=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=Y0(o);Bi.set(Lh,JSON.stringify(s))};function Y0(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(j0),e.reduce((o,[n])=>(o[n]=Z0(t[n]),o),{})}function Z0(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(G0),Object.fromEntries(e)}import{PlaybackState as l_}from"@vkontakte/videoplayer-core/es2015";var X0=Ie('<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 td(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=X0();Me(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);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ee(2),h(o),$(t,o)}import{isNullable as qh,InterfaceLanguage as Qh}from"@vkontakte/videoplayer-shared/es2015";var J0={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 sa=!1,Za=null,aa=!1,gs=!1;function xp(t){gs=t}var Wl=[],Kl=[],Lt=null,dr=!1;function Ui(t){Lt=t}var $t=null;function ro(t){$t=t}var Uo=null;function Tc(t){Lt!==null&&Lt.f&2097152&&(Uo===null?Uo=[Lt,[t]]:Uo[1].push(t))}var gn=null,cr=0,lr=null;function gg(t){lr=t}var Rg=1,Rc=0,hs=!1,Oc=null;function Ml(){return++Rg}function ia(t){var m,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&&$t!==null&&!hs,a=i.length;if(l||d){var u=t,f=u.parent;for(n=0;n<a;n++)s=i[n],(l||!((m=s==null?void 0:s.reactions)!=null&&m.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],ia(s)&&yp(s),s.wv>t.wv)return!0}(!o||$t!==null&&!hs)&&fn(t,1024)}return!1}function Og(t,e,i=!0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var s=o[n];Uo!=null&&Uo[1].includes(t)&&Uo[0]===Lt||((s.f&2)!==0?Og(s,e,!1):e===s&&(i?fn(s,2048):(s.f&1024)!==0&&fn(s,4096),Rl(s)))}}function Cc(t){var x,y;var e=gn,i=cr,o=lr,n=Lt,s=hs,l=Uo,d=Bt,a=dr,u=t.f;gn=null,cr=0,lr=null,hs=(u&256)!==0&&(dr||!aa||Lt===null),Lt=(u&96)===0?t:null,Uo=null,Al(t.ctx),dr=!1,Rc++,t.f|=2097152;try{var f=(0,t.fn)(),m=t.deps;if(gn!==null){var p;if(Hl(t,cr),m!==null&&cr>0)for(m.length=cr+gn.length,p=0;p<gn.length;p++)m[cr+p]=gn[p];else t.deps=m=gn;if(!hs||(u&2)!==0&&t.reactions!==null)for(p=cr;p<m.length;p++)((y=(x=m[p]).reactions)!=null?y:x.reactions=[]).push(t)}else m!==null&&cr<m.length&&(Hl(t,cr),m.length=cr);if(ss()&&lr!==null&&!dr&&m!==null&&(t.f&6146)===0)for(p=0;p<lr.length;p++)Og(lr[p],t);return n!==null&&n!==t&&(Rc++,lr!==null&&(o===null?o=lr:o.push(...lr))),f}catch(w){Lg(w)}finally{gn=e,cr=i,lr=o,Lt=n,hs=s,Uo=l,Al(d),dr=a,t.f^=2097152}}function t_(t,e){let i=e.reactions;if(i!==null){var o=jv.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&&(gn===null||!gn.includes(e))&&(fn(e,4096),(e.f&768)===0&&(e.f^=512),Sc(e),Hl(e,0))}function Hl(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)t_(t,i[o])}function Ga(t){var e=t.f;if((e&16384)===0){fn(t,1024);var i=$t,o=aa;if($t=t,aa=!0,Pe){var n=sr;Pl(t.component_function)}try{(e&16)!==0?Eg(t):Tp(t),Cp(t);var s=Cc(t);if(t.teardown=typeof s=="function"?s:null,t.wv=Rg,Pe&&rs&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=Ml(),l.set_during_effect=!1);Pe&&Kl.push(t)}finally{aa=o,$t=i,Pe&&Pl(n)}}}function Mg(){console.error("Last ten effects were: ",Kl.slice(-10).map(t=>t.fn)),Kl=[]}function i_(){try{ng()}catch(t){if(Pe&&no(t,"stack",{value:""}),Za!==null)if(Pe)try{zl(t,Za)}catch(e){throw Mg(),e}else zl(t,Za);else throw Pe&&Mg(),t}}function Lp(){var t=aa;try{var e=0;for(aa=!0;Wl.length>0;){e++>1e3&&i_();var i=Wl,o=i.length;Wl=[];for(var n=0;n<o;n++){var s=n_(i[n]);o_(s)}qa.clear()}}finally{sa=!1,aa=t,Za=null,Pe&&(Kl=[])}}function o_(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&ia(o)&&(Ga(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Ip(o):o.fn=null))}}function Rl(t){sa||(sa=!0,queueMicrotask(Lp));for(var e=Za=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Wl.push(e)}function n_(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:ia(i)&&Ga(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 Xa(t){var e;for(t&&(sa=!0,Lp(),sa=!0,e=t());;){if(Ag(),Wl.length===0)return sa=!1,Za=null,Pe&&(Kl=[]),e;sa=!0,Lp()}}function yo(){return Tt(this,null,function*(){yield Promise.resolve(),Xa()})}function r(t){var e=t.f,i=(e&2)!==0;if(Oc!==null&&Oc.add(t),Lt!==null&&!dr){if(!(Uo!=null&&Uo[1].includes(t))||Uo[0]!==Lt){var o=Lt.deps;t.rv<Rc&&(t.rv=Rc,gn===null&&o!==null&&o[cr]===t?cr++:gn===null?gn=[t]:(!hs||!gn.includes(t))&&gn.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,ia(n)&&yp(n)),Pe&&rs&&!dr&&kl!==null&&Lt!==null&&kl.reaction===Lt)if(t.trace)t.trace();else{var l=vs("TracedAt");if(l){var d=kl.entries.get(t);d===void 0&&(d={traces:[]},kl.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 gs&&qa.has(t)?qa.get(t):t.v}function Et(t){var e=dr;try{return dr=!0,t()}finally{dr=e}}var r_=-7169;function fn(t,e){t.f=t.f&r_|e}function Bc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Do in t)Nc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Do in i&&Nc(i)}}}function Nc(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{Nc(t[o],e)}catch(n){}let i=Xs(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=bc(i);for(let n in o){let s=o[n].get;if(s)try{s.call(t)}catch(l){}}}}}function Mp(t,e){if(e){let i=document.body;t.autofocus=!0,vn(()=>{document.activeElement===i&&t.focus()})}}function ql(t){var e=Lt,i=$t;Ui(null),ro(null);try{return t()}finally{Ui(e),ro(i)}}var Vp=new Set,Dc=new Set;function la(t){if(!Xe)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 Rp(t,e,i,o={}){function n(s){if(o.capture||Ja.call(e,s),!s.cancelBubble)return ql(()=>i==null?void 0:i.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?vn(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function kt(t,e,i,o,n){var s={capture:o,passive:n},l=Rp(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Fo(()=>{e.removeEventListener(t,l,s)})}function ct(t){for(var e=0;e<t.length;e++)Vp.add(t[e]);for(var i of Dc)i(t)}function Ja(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){no(t,"currentTarget",{configurable:!0,get(){return s||i}});var f=Lt,m=$t;Ui(null),ro(null);try{for(var p,x=[];s!==null;){var y=s.assignedSlot||s.parentNode||s.host||null;try{var w=s["__"+o];if(w!=null&&(!s.disabled||t.target===s))if(nr(w)){var[T,...S]=w;T.apply(s,[t,...S])}else w.call(s,t)}catch(V){p?x.push(V):p=V}if(t.cancelBubble||y===e||y===null)break;s=y}if(p){for(let V of x)queueMicrotask(()=>{throw V});throw p}}finally{t.__root=e,delete t.currentTarget,Ui(f),ro(m)}}}var a_;function Ng(){a_=void 0}function el(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function xo(t,e){var i=$t;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function P(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,s=!t.startsWith("<!>");return()=>{if(Xe)return xo(yt,null),yt;n===void 0&&(n=el(s?t:"<!>"+t),i||(n=Ci(n)));var l=o||Ol?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=Ci(l),a=l.lastChild;xo(d,a)}else xo(l,l);return l}}function c_(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(Xe)return xo(yt,null),yt;if(!l){var d=el(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),m=u.lastChild;xo(f,m)}else xo(u,u);return u}}function xe(t,e){return c_(t,e,"svg")}function ls(t=""){if(!Xe){var e=mn(t+"");return xo(e,e),e}var i=yt;return i.nodeType!==Da&&(i.before(i=mn()),bi(i)),xo(i,i),i}function Fe(){if(Xe)return xo(yt,null),yt;var t=document.createDocumentFragment(),e=document.createComment(""),i=mn();return t.append(e,i),xo(e,i),t}function $(t,e){if(Xe){$t.nodes_end=yt,Wi();return}t!==null&&t.before(e)}var u_=/\r/g;function Dg(t){t=t.replace(u_,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Fg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var p_=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Hg(t){return p_.includes(t)}var f_=["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 m_={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 Ug(t){var e;return t=t.toLowerCase(),(e=m_[t])!=null?e:t}var FC=[...f_,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var v_=["touchstart","touchmove"];function zg(t){return v_.includes(t)}var g_=["$state","$state.raw","$derived","$derived.by"],HC=[...g_,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var h_=["textarea","script","style","title"];function Wg(t){return h_.includes(t)}function Fc(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Ql=!0;function Hc(t){Ql=t}function ve(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function zr(t,e){return Kg(t,e)}function Np(t,e){var l;kc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=Xe,n=yt;try{for(var s=Ci(i);s&&(s.nodeType!==rr||s.data!==Rs);)s=zo(s);if(!s)throw os;so(!0),bi(s),Wi();let d=Kg(t,Ht(K({},e),{anchor:s}));if(yt===null||yt.nodeType!==rr||yt.data!==Zs)throw Ds(),os;return so(!1),d}catch(d){if(d===os)return e.recover===!1&&rg(),kc(),Nl(i),so(!1),zr(t,e);throw d}finally{so(o),bi(n),Ng()}}var tl=new Map;function Kg(t,{target:e,anchor:i,props:o={},events:n,context:s,intro:l=!0}){kc();var d=new Set,a=m=>{for(var p=0;p<m.length;p++){var x=m[p];if(!d.has(x)){d.add(x);var y=zg(x);e.addEventListener(x,Ja,{passive:y});var w=tl.get(x);w===void 0?(document.addEventListener(x,Ja,{passive:y}),tl.set(x,1)):tl.set(x,w+1)}}};a(Il(Vp)),Dc.add(a);var u=void 0,f=Tg(()=>{var m=i!=null?i:e.appendChild(mn());return Ri(()=>{if(s){z({});var p=Bt;p.c=s}n&&(o.$$events=n),Xe&&xo(m,null),Ql=l,u=t(m,o)||{},Ql=!0,Xe&&($t.nodes_end=yt),s&&W()}),()=>{var y;for(var p of d){e.removeEventListener(p,Ja);var x=tl.get(p);--x===0?(document.removeEventListener(p,Ja),tl.delete(p)):tl.set(p,x)}Dc.delete(a),m!==i&&((y=m.parentNode)==null||y.removeChild(m))}});return Op.set(u,f),u}var Op=new WeakMap;function da(t,e){let i=Op.get(t);return i?(Op.delete(t),i(e)):(Pe&&bg(),Promise.resolve())}function ge(t,e,...i){var o=t,n=de,s;Ki(()=>{n!==(n=e())&&(s&&(zi(s),s=null),Pe&&n==null&&sg(),s=Ri(()=>n(o,...i)))},65536),Xe&&(o=yt)}if(Pe){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;dg(e)},set:o=>{i=o}})}};y_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var y_;function Rt(t){Bt===null&&Ua("onMount"),ns&&Bt.l!==null?$_(Bt).m.push(t):ze(()=>{let e=Et(t);if(typeof e=="function")return e})}function on(t){Bt===null&&Ua("onDestroy"),Rt(()=>()=>Et(t))}function $_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var qg=new Map;function Qg(t,e){var i=qg.get(t);i||(i=new Set,qg.set(t,i)),i.add(e)}function R(t,e,[i,o]=[0,0]){Xe&&i===0&&Wi();var n=t,s=null,l=null,d=Xi,a=i>0?65536:0,u=!1;let f=(p,x=!0)=>{u=!0,m(x,p)},m=(p,x)=>{if(d===(d=p))return;let y=!1;if(Xe&&o!==-1){if(i===0){let T=Ic(n);T===Rs?o=0:T===Os?o=1/0:(o=parseInt(T.substring(1)),o!==o&&(o=d?1/0:-1))}let w=o>i;!!d===w&&(n=oa(),bi(n),so(!1),y=!0,o=-1)}d?(s?bs(s):x&&(s=Ri(()=>x(n))),l&&Mn(l,()=>{l=null})):(l?bs(l):x&&(l=Ri(()=>x(n,[i+1,o]))),s&&Mn(s,()=>{s=null})),y&&so(!0)};Ki(()=>{u=!1,e(f),u||m(null,null)},a),Xe&&(n=yt)}function $s(t,e,i){Xe&&Wi();var o=t,n=Xi,s,l=ss()?Jv:Fa;Ki(()=>{l(n,n=e())&&(s&&Mn(s),s=Ri(()=>i(o)))}),Xe&&(o=yt)}var Hs=null;function Fp(t){Hs=t}function Gl(t,e){return e}function S_(t,e,i,o){for(var n=[],s=e.length,l=0;l<s;l++)Mc(e[l].e,n,!0);var d=s>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;Nl(a),a.append(i),o.clear(),Fs(t,e[0].prev,e[s-1].next)}kp(n,()=>{for(var u=0;u<s;u++){var f=e[u];d||(o.delete(f.k),Fs(t,f.prev,f.next)),zi(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=Xe?bi(Ci(u)):u.appendChild(mn())}Xe&&Wi();var f=null,m=!1,p=Fr(()=>{var x=i();return nr(x)?x:x==null?[]:Il(x)});Ki(()=>{var x=r(p),y=x.length;if(m&&y===0)return;m=y===0;let w=!1;if(Xe){var T=Ic(l)===Os;T!==(y===0)&&(l=oa(),bi(l),so(!1),w=!0)}if(Xe){for(var S=null,E,V=0;V<y;V++){if(yt.nodeType===rr&&yt.data===Zs){l=yt,w=!0,so(!1);break}var I=x[V],L=o(I,V);E=Yg(yt,d,S,null,I,L,V,n,e,i),d.items.set(L,E),S=E}y>0&&bi(oa())}Xe||C_(x,d,l,n,e,o,i),s!==null&&(y===0?f?bs(f):f=Ri(()=>s(l)):f!==null&&Mn(f,()=>{f=null})),w&&so(!0),r(p)}),Xe&&(l=yt)}function C_(t,e,i,o,n,s,l){var ie,me,pe,ue;var d=(n&8)!==0,a=(n&3)!==0,u=t.length,f=e.items,m=e.first,p=m,x,y=null,w,T=[],S=[],E,V,I,L;if(d)for(L=0;L<u;L+=1)E=t[L],V=s(E,L),I=f.get(V),I!==void 0&&((ie=I.a)==null||ie.measure(),(w!=null?w:w=new Set).add(I));for(L=0;L<u;L+=1){if(E=t[L],V=s(E,L),I=f.get(V),I===void 0){var B=p?p.e.nodes_start:i;y=Yg(B,e,y,y===null?e.first:y.next,E,V,L,o,n,l),f.set(V,y),T=[],S=[],p=y.next;continue}if(a&&T_(I,E,L,n),(I.e.f&8192)!==0&&(bs(I.e),d&&((me=I.a)==null||me.unfix(),(w!=null?w:w=new Set).delete(I))),I!==p){if(x!==void 0&&x.has(I)){if(T.length<S.length){var F=S[0],H;y=F.prev;var U=T[0],Z=T[T.length-1];for(H=0;H<T.length;H+=1)Gg(T[H],F,i);for(H=0;H<S.length;H+=1)x.delete(S[H]);Fs(e,U.prev,Z.next),Fs(e,y,U),Fs(e,Z,F),p=F,y=Z,L-=1,T=[],S=[]}else x.delete(I),Gg(I,p,i),Fs(e,I.prev,I.next),Fs(e,I,y===null?e.first:y.next),Fs(e,y,I),y=I;continue}for(T=[],S=[];p!==null&&p.k!==V;)(p.e.f&8192)===0&&(x!=null?x:x=new Set).add(p),S.push(p),p=p.next;if(p===null)continue;I=p}T.push(I),y=I,p=I.next}if(p!==null||x!==void 0){for(var re=x===void 0?[]:Il(x);p!==null;)(p.e.f&8192)===0&&re.push(p),p=p.next;var G=re.length;if(G>0){var be=(n&4)!==0&&u===0?i:null;if(d){for(L=0;L<G;L+=1)(pe=re[L].a)==null||pe.measure();for(L=0;L<G;L+=1)(ue=re[L].a)==null||ue.fix()}S_(e,re,be,f)}}d&&vn(()=>{var Le;if(w!==void 0)for(I of w)(Le=I.a)==null||Le.apply()}),$t.first=e.first&&e.first.e,$t.last=y&&y.e}function T_(t,e,i,o){(o&1)!==0&&Qa(t.v,e),(o&2)!==0?Qa(t.i,i):t.i=i}function Yg(t,e,i,o,n,s,l,d,a,u){var f=Hs,m=(a&1)!==0,p=(a&16)===0,x=m?p?as(n,!1,!1):Er(n):n,y=(a&2)===0?l:Er(l);Pe&&m&&(x.trace=()=>{var T=typeof y=="number"?l:y.v;u()[T]});var w={i:y,v:x,k:s,a:null,e:null,prev:i,next:o};Hs=w;try{return w.e=Ri(()=>d(t,x,y,u),Xe),w.e.prev=i&&i.e,w.e.next=o&&o.e,i===null?e.first=w:(i.next=w,i.e.next=w.e),o!==null&&(o.prev=w,o.e.prev=w.e),w}finally{Hs=f}}function Gg(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=zo(s);n.before(s),s=l}}function Fs(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 E_(t,e,i){var s,l;if(!e||e===Dg(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=sr)!=null&&l[kn]&&(o=`in ${sr[kn]}`),_g(Fc(o))}function jl(t,e,i=!1,o=!1,n=!1){var s=t,l="";D(()=>{var x;var d=$t;if(l===(l=(x=e())!=null?x:"")){Xe&&Wi();return}if(d.nodes_start!==null&&(Ep(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(Xe){for(var a=yt.data,u=Wi(),f=u;u!==null&&(u.nodeType!==rr||u.data!=="");)f=u,u=zo(u);if(u===null)throw Ds(),os;Pe&&!n&&E_(u.parentNode,a,l),xo(yt,f),s=bi(u);return}var m=l+"";i?m=`<svg>${m}</svg>`:o&&(m=`<math>${m}</math>`);var p=el(m);if((i||o)&&(p=Ci(p)),xo(Ci(p),p.lastChild),i||o)for(;Ci(p);)s.before(Ci(p));else s.before(p)}})}function Ai(t,e,i){Xe&&Wi();var o=t,n,s;Ki(()=>{n!==(n=e())&&(s&&(Mn(s),s=null),n&&(s=Ri(()=>i(o,n))))},65536),Xe&&(o=yt)}function ca(t,e,i,o,n,s){var y;let l=Xe;Xe&&Wi();var d=Pe&&s&&((y=Bt)==null?void 0:y.function[kn]),a,u,f=null;Xe&&yt.nodeType===yc&&(f=yt,Wi());var m=Xe?yt:t,p,x=Hs;Ki(()=>{let w=e()||null;var T=n?n():i||w==="svg"?hc:null;if(w!==a){var S=Hs;Fp(x),p&&(w===null?Mn(p,()=>{p=null,u=null}):w===u?bs(p):(zi(p),Hc(!1))),w&&w!==u&&(p=Ri(()=>{if(f=Xe?f:T?document.createElementNS(T,w):document.createElement(w),Pe&&s&&(f.__svelte_meta={loc:{file:d,line:s[0],column:s[1]}}),xo(f,f),o){Xe&&Wg(w)&&f.append(document.createComment(""));var E=Xe?Ci(f):f.appendChild(mn());Xe&&(E===null?so(!1):bi(E)),o(f,E)}$t.nodes_end=f,m.before(f)})),a=w,a&&(u=a),Hc(!0),Fp(S)}},65536),l&&(so(!0),bi(m))}var Up;function Zg(t){return Up=t.target,new Hp(t)}var ys,Ir,Hp=class{constructor(e){Vs(this,ys);Vs(this,Ir);var s,l;var i=new Map,o=(d,a)=>{var u=as(a,!1,!1);return i.set(d,u),u};let n=new Proxy(Ht(K({},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===Ba?!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 N((f=i.get(a))!=null?f:o(a,u),u),Reflect.set(d,a,u)}});Na(this,Ir,(e.hydrate?Np:zr)(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)&&Xa(),Na(this,ys,n.$$events);for(let d of Object.keys(Vi(this,Ir)))d==="$set"||d==="$destroy"||d==="$on"||no(this,d,{get(){return Vi(this,Ir)[d]},set(a){Vi(this,Ir)[d]=a},enumerable:!0});Vi(this,Ir).$set=d=>{Object.assign(n,d)},Vi(this,Ir).$destroy=()=>{da(Vi(this,Ir))}}$set(e){Vi(this,Ir).$set(e)}$on(e,i){Vi(this,ys)[e]=Vi(this,ys)[e]||[];let o=(...n)=>i.call(this,...n);return Vi(this,ys)[e].push(o),()=>{Vi(this,ys)[e]=Vi(this,ys)[e].filter(n=>n!==o)}}$destroy(){Vi(this,Ir).$destroy()}};ys=new WeakMap,Ir=new WeakMap;function q(t,e){vn(()=>{var n,s,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(s=Up)==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),Pe&&Qg(e.hash,d)}})}function xs(t,e){var i=void 0,o;Ki(()=>{i!==(i=e())&&(o&&(zi(o),o=null),i&&(o=Ri(()=>{$o(()=>i(t))})))})}function Xg(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=Xg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Jg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Xg(t))&&(o&&(o+=" "),o+=e);return o}function Yl(t){return typeof t=="object"?Jg(t):t!=null?t:""}var eh=[...`
44
+ \r\f\xA0\v\uFEFF`];function ih(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||eh.includes(o[l-1]))&&(d===o.length||eh.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function th(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 zp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function oh(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(zp)),n&&a.push(...Object.keys(n).map(zp));var u=0,f=-1;let w=t.length;for(var m=0;m<w;m++){var p=t[m];if(d?p==="/"&&t[m-1]==="*"&&(d=!1):s?s===p&&(s=!1):p==="/"&&t[m+1]==="*"?d=!0:p==='"'||p==="'"?s=p:p==="("?l++:p===")"&&l--,!d&&s===!1&&l===0){if(p===":"&&f===-1)f=m;else if(p===";"||m===w-1){if(f!==-1){var x=zp(t.substring(u,f).trim());if(!a.includes(x)){p!==";"&&m++;var y=t.substring(u,m).trim();i+=" "+y+";"}}u=m+1,f=-1}}}}return o&&(i+=th(o)),n&&(i+=th(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function se(t,e,i,o,n,s){var l=t.__className;if(Xe||l!==i||l===void 0){var d=ih(i,o,s);(!Xe||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 Wp(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 dt(t,e,i,o){var n=t.__style;if(Xe||n!==e){var s=oh(e,o);(!Xe||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}else o&&(Array.isArray(o)?(Wp(t,i==null?void 0:i[0],o[0]),Wp(t,i==null?void 0:i[1],o[1],"important")):Wp(t,i,o));return o}function Zl(t,e,i){if(t.multiple){if(e==null)return;if(!nr(e))return $g();for(var o of t.options)o.selected=e.includes(nh(o));return}for(o of t.options){var n=nh(o);if(gp(n,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Kp(t){var e=new MutationObserver(()=>{Zl(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Fo(()=>{e.disconnect()})}function nh(t){return"__value"in t?t.__value:t.value}var il=Symbol("class"),ol=Symbol("style"),ah=Symbol("is custom element"),lh=Symbol("is html");function dh(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Ne(t,e,i,o){var n=uh(t);if(Xe&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||R_(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Xv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&ph(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function ch(t,e,i,o,n=!1){var I;var s=uh(t),l=s[ah],d=!s[lh];let a=Xe&&l;a&&so(!1);var u=e||{},f=t.tagName==="OPTION";for(var m in e)m in i||(i[m]=null);i.class?i.class=Yl(i.class):(o||i[il])&&(i.class=null),i[ol]&&((I=i.style)!=null||(i.style=null));var p=ph(t);for(let L in i){let B=i[L];if(f&&L==="value"&&B==null){t.value=t.__value="",u[L]=B;continue}if(L==="class"){var x=t.namespaceURI==="http://www.w3.org/1999/xhtml";se(t,x,B,o,e==null?void 0:e[il],i[il]),u[L]=B,u[il]=i[il];continue}if(L==="style"){dt(t,B,e==null?void 0:e[ol],i[ol]),u[L]=B,u[ol]=i[ol];continue}var y=u[L];if(!(B===y&&!(B===void 0&&t.hasAttribute(L)))){u[L]=B;var w=L[0]+L[1];if(w!=="$$")if(w==="on"){let F={},H="$$"+L,U=L.slice(2);var T=Hg(U);if(Fg(U)&&(U=U.slice(0,-7),F.capture=!0),!T&&y){if(B!=null)continue;t.removeEventListener(U,u[H],F),u[H]=null}if(B!=null)if(T)t[`__${U}`]=B,ct([U]);else{let Z=function(re){u[L].call(this,re)};var V=Z;u[H]=Rp(U,t,Z,F)}else T&&(t[`__${U}`]=void 0)}else if(L==="style")Ne(t,L,B);else if(L==="autofocus")Mp(t,!!B);else if(!l&&(L==="__value"||L==="value"&&B!=null))t.value=t.__value=B;else if(L==="selected"&&f)dh(t,B);else{var S=L;d||(S=Ug(S));var E=S==="defaultValue"||S==="defaultChecked";if(B==null&&!l&&!E)if(s[L]=null,S==="value"||S==="checked"){let F=t,H=e===void 0;if(S==="value"){let U=F.defaultValue;F.removeAttribute(S),F.defaultValue=U,F.value=F.__value=H?U:null}else{let U=F.defaultChecked;F.removeAttribute(S),F.defaultChecked=U,F.checked=H?U:!1}}else t.removeAttribute(L);else E||p.includes(S)&&(l||typeof B!="string")?t[S]=B:typeof B!="function"&&Ne(t,S,B,n)}}}return a&&so(!0),u}function Ie(t,e,i=[],o,n=!1,s=Dr){let l=i.map(s);var d=void 0,a={},u=t.nodeName==="SELECT",f=!1;if(Ki(()=>{var p=e(...l.map(r)),x=ch(t,d,p,o,n);f&&u&&"value"in p&&Zl(t,p.value,!1);for(let w of Object.getOwnPropertySymbols(a))p[w]||zi(a[w]);for(let w of Object.getOwnPropertySymbols(p)){var y=p[w];w.description===lp&&(!d||y!==d[w])&&(a[w]&&zi(a[w]),a[w]=Ri(()=>xs(t,()=>y))),x[w]=y}d=x}),u){var m=t;$o(()=>{Zl(m,d.value),Kp(m)})}f=!0}function uh(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[ah]:t.nodeName.includes("-"),[lh]:t.namespaceURI===Kv}}var rh=new Map;function ph(t){var e=rh.get(t.nodeName);if(e)return e;rh.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=bc(o);for(var s in i)i[s].set&&e.push(s);o=Xs(o)}return e}function R_(t,e,i){var o;Pe&&(e==="srcset"&&O_(t,i)||qp((o=t.getAttribute(e))!=null?o:"",i)||hg(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function qp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function sh(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function O_(t,e){var i=sh(t.srcset),o=sh(e);return o.length===i.length&&o.every(([n,s],l)=>s===i[l][1]&&(qp(i[l][0],n)||qp(n,i[l][0])))}var N_=_c?()=>performance.now():()=>Date.now(),Wr={tick:t=>(_c?requestAnimationFrame:de)(t),now:()=>N_(),tasks:new Set};function fh(){let t=Wr.now();Wr.tasks.forEach(e=>{e.c(t)||(Wr.tasks.delete(e),e.f())}),Wr.tasks.size!==0&&Wr.tick(fh)}function mh(t){let e;return Wr.tasks.size===0&&Wr.tick(fh),{promise:new Promise(i=>{Wr.tasks.add(e={c:t,f:i})}),abort(){Wr.tasks.delete(e)}}}function Uc(t,e){ql(()=>{t.dispatchEvent(new CustomEvent(e))})}function H_(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 vh(t){let e={},i=t.split(";");for(let o of i){let[n,s]=o.split(":");if(!n||s===void 0)break;let l=H_(n.trim());e[l]=s.trim()}return e}var U_=t=>t;function Gp(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,m=e.style.overflow,p,x;function y(){var B;var I=Lt,L=$t;Ui(null),ro(null);try{return u!=null?u:u=i()(e,(B=o==null?void 0:o())!=null?B:{},{direction:a})}finally{Ui(I),ro(L)}}var w={is_global:d,in(){var I;if(e.inert=f,!n){x==null||x.abort(),(I=x==null?void 0:x.reset)==null||I.call(x);return}s||p==null||p.abort(),Uc(e,"introstart"),p=Qp(e,y(),x,1,()=>{Uc(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=m})},out(I){if(!s){I==null||I(),u=void 0;return}e.inert=!0,Uc(e,"outrostart"),x=Qp(e,y(),p,0,()=>{Uc(e,"outroend"),I==null||I()})},stop:()=>{p==null||p.abort(),x==null||x.abort()}},T=$t;if(((V=T.transitions)!=null?V:T.transitions=[]).push(w),n&&Ql){var S=d;if(!S){for(var E=T.parent;E&&(E.f&65536)!==0;)for(;(E=E.parent)&&(E.f&16)===0;);S=!E||(E.f&32768)!==0}S&&$o(()=>{Et(()=>w.in())})}}function Qp(t,e,i,o,n){var s=o===1;if(Ns(e)){var l,d=!1;return vn(()=>{if(!d){var T=e({direction:s?"in":"out"});l=Qp(t,T,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:m=U_}=e;var p=[];if(s&&i===void 0&&(f&&f(0,1),u)){var x=vh(u(0,1));p.push(x,x)}var y=()=>1-o,w=t.animate(p,{duration:a,fill:"forwards"});return w.onfinish=()=>{var U;w.cancel();var T=(U=i==null?void 0:i.t())!=null?U:1-o;i==null||i.abort();var S=o-T,E=e.duration*Math.abs(S),V=[];if(E>0){var I=!1;if(u)for(var L=Math.ceil(E/16.666666666666668),B=0;B<=L;B+=1){var F=T+S*m(B/L),H=vh(u(F,1-F));V.push(H),I||(I=H.overflow==="hidden")}I&&(t.style.overflow="hidden"),y=()=>{var Z=w.currentTime;return T+S*m(Z/E)},f&&mh(()=>{if(w.playState!=="running")return!1;var Z=y();return f(Z,1-Z),!0})}w=t.animate(V,{duration:E,fill:"forwards"}),w.onfinish=()=>{y=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{w&&(w.cancel(),w.effect=null,w.onfinish=de)},deactivate:()=>{n=de},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>y()}}var Us,nl,Xl,Wc,gh,Kc=class Kc{constructor(e){Vs(this,Wc);Vs(this,Us,new WeakMap);Vs(this,nl);Vs(this,Xl);Na(this,Xl,e)}observe(e,i){var o=Vi(this,Us).get(e)||new Set;return o.add(i),Vi(this,Us).set(e,o),zv(this,Wc,gh).call(this).observe(e,Vi(this,Xl)),()=>{var n=Vi(this,Us).get(e);n.delete(i),n.size===0&&(Vi(this,Us).delete(e),Vi(this,nl).unobserve(e))}}};Us=new WeakMap,nl=new WeakMap,Xl=new WeakMap,Wc=new WeakSet,gh=function(){var e;return(e=Vi(this,nl))!=null?e:Na(this,nl,new ResizeObserver(i=>{for(var o of i){Kc.entries.set(o.target,o);for(var n of Vi(this,Us).get(o.target)||[])n(o)}}))},or(Kc,"entries",new WeakMap);var jp=Kc;var z_=new jp({box:"border-box"});function ur(t,e,i){var o=z_.observe(t,()=>i(t[e]));$o(()=>(Et(()=>i(t[e])),o))}function hh(t,e){return t===e||(t==null?void 0:t[Do])===e}function st(t={},e,i,o){return $o(()=>{var n,s;return Wo(()=>{n=s,s=(o==null?void 0:o())||[],Et(()=>{t!==i(...s)&&(e(t,...s),n&&hh(i(...n),t)&&e(null,...n))})}),()=>{vn(()=>{s&&hh(i(...s),t)&&e(null,...s)})}}),t}function Kr(t=!1){let e=Bt,i=e.l.u;if(!i)return;let o=()=>Bc(e.s);if(t){let n=0,s={},l=Dr(()=>{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&&Fl(()=>{_h(e,o),Bs(i.b)}),ze(()=>{let n=Et(()=>i.m.map(Zv));return()=>{for(let s of n)typeof s=="function"&&s()}}),i.a.length&&ze(()=>{_h(e,o),Bs(i.a)})}function _h(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}function Jl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),de;let o=Et(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var rl=[];function kr(t,e){return{subscribe:le(t,e).subscribe}}function le(t,e=de){let i=null,o=new Set;function n(d){if(Fa(t,d)&&(t=d,i)){let a=!rl.length;for(let u of o)u[1](),rl.push(u,t);if(a){for(let u=0;u<rl.length;u+=2)rl[u][0](rl[u+1]);rl.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 $i(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 kr(i,(l,d)=>{let a=!1,u=[],f=0,m=de,p=()=>{if(f)return;m();let y=e(o?u[0]:u,l,d);s?l(y):m=typeof y=="function"?y:de},x=n.map((y,w)=>Jl(y,T=>{u[w]=T,f&=~(1<<w),a&&p()},()=>{f|=1<<w}));return a=!0,p(),function(){Bs(x),m(),a=!1}})}function _e(t){let e;return Jl(t,i=>e=i)(),e}var qc=!1,Yp=Symbol();function C(t,e,i){var s;let o=(s=i[e])!=null?s:i[e]={store:null,source:as(void 0),unsubscribe:de};if(o.store!==t&&!(Yp 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=Jl(t,l=>{n?o.source.v=l:N(o.source,l)}),n=!1}return t&&Yp in i?_e(t):r(o.source)}function Be(){let t={};function e(){Fo(()=>{for(var i in t)t[i].unsubscribe();no(t,Yp,{enumerable:!1,value:!0})})}return[t,e]}function Zp(t){var e=qc;try{return qc=!1,[t(),qc]}finally{qc=e}}var Y_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Pe&&lg(`${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 Me(t,e,i){return new Proxy(Pe?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},Y_)}var Z_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ns(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];Ns(n)&&(n=n());let s=Jo(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(Ns(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Jo(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Do||e===Ba)return!1;for(let i of t.props)if(Ns(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Ns(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 ws(...t){return new Proxy({props:t},Z_)}function bh(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function v(t,e,i,o){var F,H;var n=(i&1)!==0,s=!ns||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,u;l?[u,a]=Zp(()=>t[e]):u=t[e];var f=Do in t||Ba in t,m=l&&((H=(F=Jo(t,e))==null?void 0:F.set)!=null?H:f&&e in t&&(U=>t[e]=U))||void 0,p=o,x=!0,y=!1,w=()=>(y=!0,x&&(x=!1,d?p=Et(o):p=o),p);u===void 0&&o!==void 0&&(m&&s&&ag(e),u=w(),m&&m(u));var T;if(s)T=()=>{var U=t[e];return U===void 0?w():(x=!0,y=!1,U)};else{var S=(n?Dr:Fr)(()=>t[e]);S.f|=131072,T=()=>{var U=r(S);return U!==void 0&&(p=void 0),U===void 0?p:U}}if((i&4)===0&&s)return T;if(m){var E=t.$$legacy;return function(U,Z){return arguments.length>0?((!s||!Z||E||a)&&m(Z?T():U),U):T()}}var V=!1,I=!1,L=as(u),B=Dr(()=>{var U=T(),Z=r(L);return V?(V=!1,I=!0,Z):(I=!1,L.v=U)});return l&&r(B),n||(B.equals=Ha),function(U,Z){if(Oc!==null&&(V=I,T(),r(L)),arguments.length>0){let re=Z?r(B):s&&l?ni(U):U;if(!B.equals(re)){if(V=!0,N(L,re),y&&p!==void 0&&(p=re),bh(B))return U;Et(()=>r(B))}return U}return bh(B)?B.v:r(B)}}var X_;typeof HTMLElement=="function"&&(X_=class extends HTMLElement{constructor(e,i,o){super();or(this,"$$ctor");or(this,"$$s");or(this,"$$c");or(this,"$$cn",!1);or(this,"$$d",{});or(this,"$$r",!1);or(this,"$$p_d",{});or(this,"$$l",{});or(this,"$$l_u",new Map);or(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let 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 Tt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(s){return l=>{let d=document.createElement("slot");s!=="default"&&(d.name=s),$(l,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=J_(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]=Xp(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=Zg({component:this.$$ctor,target:this.shadowRoot||this,props:Ht(K({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=Lc(()=>{Wo(()=>{var s;this.$$r=!0;for(let l of dp(this.$$c)){if(!((s=this.$$p_d[l])!=null&&s.reflect))continue;this.$$d[l]=this.$$c[l];let d=Xp(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]=Xp(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 dp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Xp(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 J_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var $h="5";var yh,xh,wh;typeof window!="undefined"&&((wh=(xh=(yh=window.__svelte)!=null?yh:window.__svelte={}).v)!=null?wh:xh.v=new Set).add($h);import{areValidLiveRecordSources as G5,clientChecker as bv}from"@vkontakte/videoplayer-core/es2015";import"@vkontakte/videoplayer-core/es2015";import{noop as E0,safeStorage as j5,throttleFn as Y5}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as Z5}from"@vkontakte/videoplayer-statistics/es2015";import{InterfaceLanguage as eb,fillWithDefault as tb,VideoQuality as Sh}from"@vkontakte/videoplayer-shared/es2015";var ib={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:eb.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:Sh.Q_480P,highQualityLimit:Sh.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,interactiveHistoryEndChapterFix:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1,usePerformanceFix:!1,userVideoPrefs:!1,savePreferredStatesOnUserActionOnly:!1,useLoopSetting:!1,doubleForwardAvailable:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,paramsOverride:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1,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",doubleForwardActivationTime:600,playbackStatusAnimationDuration:1e3,playbackStatusNextVideoAnimationDuration:1e3},Ch=t=>tb(t,ib),Th=t=>Wa("ui-config",t),At=()=>za("ui-config");var ed="vk_player_debug_panel_opened";var Eh="videoplayer",Ih="videoplayer";var ds={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},kh=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Ah=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Ph=new Set(["ShiftRight","ShiftLeft"]);var Lh=["TIMELINE"],td=[...Lh,"GRAPH_BUTTON"],Jp=[...Lh,"PLAY_BUTTON"],id=[...td,"PLAY_BUTTON"];var cs=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(cs||{}),pa={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Mh,VERSION as ob}from"@vkontakte/videoplayer-shared/es2015";import{VERSION as nb}from"@vkontakte/videoplayer-core/es2015";import{VERSION as rb}from"@vkontakte/videoplayer-statistics/es2015";var Qc="prod",sl="1.1.74-dev.2444f53a.0";var fa=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Vh=Symbol("storeContext"),Rh=Symbol("microStoresContext"),Oh=(t,e)=>{Wa(Vh,t),Wa(Rh,e),Qc==="dev"&&(window.app={store:t,microStores:e})},Ce=()=>{let t=za(Vh);return Mh(t,"Store context is empty!"),t},vo=()=>{let t=za(Rh);return Mh(t,"MicroStores context is empty!"),t},ri=(t,e)=>jc(t,t.getValue(),e),jc=(t,e,i)=>kr(e,o=>{let n=t.subscribe(s=>{o(s),i==null||i(s)});return()=>n.unsubscribe()}),Nh=(t,e,i,o)=>{var F,H,U,Z,re,G,be,ie,me;let n=t.info,{width:s,height:l}=_e(i.ui.playerSize),d=(H=(F=n.throughputEstimation$.getValue())==null?void 0:F.toFixed(0))!=null?H:0,a=(Z=(U=n.rttEstimation$.getValue())==null?void 0:U.toFixed(0))!=null?Z:0,u=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${sl} (core: ${nb}, stat: ${rb}, shared: ${ob})`,m=_e(i.state.errorLog$),p=m.length?`
45
+ `+m.map((pe,ue)=>{var Re;let Le=`${ue}) Type: ${pe.id}
46
+ `,Ve=`Message: ${pe.message} (${pe.thrown})
47
+ `,ae=`Trace: ${(Re=pe.thrown)==null?void 0:Re.stack}
48
+ `;return Le+Ve+ae}).join(`
49
+ `):void 0,x=i.state.isAudioDisabled?"disabled":_e(i.state.isAudioAvailable$)?void 0:"unavailable",y=t.info.currentVideoStream$.getValue(),w=t.info.currentAudioStream$.getValue(),T=[];y&&T.push(`Video: ${(re=y==null?void 0:y.codec)!=null?re:""}`+(y!=null&&y.hdr?" (HDR)":"")),w&&T.push(`Audio: ${(G=w==null?void 0:w.codec)!=null?G:""}`+(w!=null&&w.language?` (${w.language})`:""));let S=n.currentQuality$.getValue(),E="";if(S){let pe=n.availableQualitiesFps$.getValue()[S];E=pe?`${pe}fps`:""}let V=n.httpConnectionType$.getValue(),I=(ie=(be=n.currentBuffer$.getValue())==null?void 0:be.end)!=null?ie:0,L=Math.max(I-_e(i.state.positionExact$),0),B={Version:f,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:_e(i.vsid),"Content host":n.hostname$.getValue(),"Connection type":V?V+(n.httpConnectionReused$.getValue()?" (reused)":""):"",Throughput:`${d}Kbps @ ${a}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":e!=null&&e.sources?Object.keys(e.sources).join(", "):"",Streams:T.join(", "),Quality:`${u} ${S!=null?S:""} ${E}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:x,Position:`${_e(i.state.positionExact$)}s`,Buffer:`${L}s`,State:`${_e(i.playerPhase)} ${(me=n.playbackState$.getValue())!=null?me:""}`,"Player size":`${s}x${l}`,URL:window.location.href,Errors:p};return Object.entries(B).filter(([pe,ue])=>ue!==void 0).map(([pe,ue])=>`${pe}: ${ue}`).join(`
50
+ `)},Bh=(t,e,i)=>{var F,H,U,Z;let o=t.info,{width:n,height:s}=_e(i.ui.playerSize),l={version:sl,viewport:`${n}x${s}`,volume:Math.round(_e(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(),m=o.isLive$.getValue(),p=o.liveBufferTime$.getValue();f&&(m&&p?l.buffer=f.end-p:l.buffer=Math.max(f.end-_e(i.state.positionExact$),0)),l.position=_e(i.state.positionExact$);let x=o.throughputEstimation$.getValue();x&&(l.speed=x);let y=o.videoBitrate$.getValue();y&&(l.bitrate=y);let w=o.liveLatency$.getValue();w&&(l.liveLatency=w);let T=o.currentVideoSegmentLength$.getValue();T&&(l.currentVideoSegmentLength=T);let S=o.currentAudioSegmentLength$.getValue();S&&(l.currentAudioSegmentLength=S);let E=_e(i.vsid);typeof E=="string"&&(l.vsid=E);let V=(F=t.info.currentVideoStream$.getValue())==null?void 0:F.codec;V&&(l.videoCodec=V);let I=(H=t.info.currentAudioStream$.getValue())==null?void 0:H.codec;I&&(l.audioCodec=I),((U=t.info.currentVideoStream$.getValue())==null?void 0:U.hdr)&&(l.hdr=!0);let B=(Z=t.info.currentAudioStream$.getValue())==null?void 0:Z.language;return B&&(l.audioLanguage=B),l},Dh=(t,e)=>fa(t,e,"mp4"),Fh=t=>!t.type,Hh=t=>!!t.type,Uh=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},Gc=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return Tt(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}};import{isNullable as nf,safeStorage as Oi}from"@vkontakte/videoplayer-shared/es2015";import"@vkontakte/videoplayer-core/es2015";var zh="vk_player_prefer_traffic_saving_enabled",Wh="vk_player_preferred_volume",Kh="vk_player_prefer_volume_mute",rf="vk_player_preferred_quality",ef="vk_player_preferred_default_quality_settings",tf="vk_player_preferred_quality_settings_by_video",qh="vk_player_preferred_stream_language",Qh="vk_player_preferred_rate",Gh="vk_player_preferred_autoplay_next",of="vk_player_preferred_subtitles_language",jh="vk_player_user_video_prefs",Yh=t=>t>1?1:t<0?0:t,sf=t=>Oi.set(Wh,Yh(t).toString(10)),Yc=()=>{let t=Oi.get(Wh);return nf(t)?void 0:Yh(parseFloat(t))},af=(t,e)=>Oi.set(rf,JSON.stringify({videoId:t,value:e})),Zc=()=>Oi.remove(rf),lf=t=>{let e=Oi.get(rf);if(nf(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Zc();return}return o},df=(t,e)=>{e?Oi.set(t,"true"):Oi.remove(t)},cf=t=>Oi.get(t)==="true",uf=t=>df(Kh,t),Zh=()=>cf(Kh),od=t=>df(zh,t),pf=()=>cf(zh),Xh=()=>Oi.get(qh),ff=t=>Oi.set(qh,t),mf=()=>Oi.get(of),vf=t=>{t?Oi.set(of,t):Oi.remove(of)},Jh=t=>Oi.set(Qh,JSON.stringify({rate:t})),e1=()=>{let t=Oi.get(Qh);if(nf(t))return;let{rate:e}=JSON.parse(t);return e},t1=t=>df(Gh,t),i1=()=>cf(Gh),sb=()=>{let t=f=>{Oi.set(ef,JSON.stringify(f))},e=()=>{try{let f=Oi.get(ef);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=Oi.get(tf);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{Oi.set(tf,JSON.stringify(f))},n=f=>{u(f);let m=f?i():null;if(m&&(m==null?void 0:m.videoId)===f)return Ht(K({},m),{appliesTo:"to-video"});m&&s();let p=e();return p?Ht(K({},p),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},s=()=>{Oi.remove(tf)},l=()=>{Oi.remove(ef)},d=(f,m="as-default")=>{f.type==="exact_quality"||m==="to-video"?o(f):t(f)},a=f=>{let m=n(f);if(m){switch(m.type){case"traffic_saving":od(!0);break;case"exact_quality":af(f,m.quality)}s(),l()}},u=f=>{let m=lf(f);if(m){o({type:"exact_quality",videoId:f,quality:m});return}pf()&&t({type:"traffic_saving",videoId:f}),od(!1),Zc()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:mf,savePreferredSubtitlesLanguage:vf}},{getPreferredQualitySettings:o1,migrateSettingsToLegacyWay:n1,savePreferredQualitySettings:Xc,savePreferredDefaultQualitySettings:mM,removePreferredQualitySettingsByVideo:vM,getPreferredDefaultQualitySettings:Jc}=sb(),ab=3,lb=3,r1=()=>{let t=Oi.get(jh);if(t)try{return JSON.parse(t)}catch(e){return null}return null},eu=(t,e)=>{var n,s;let i=r1();return(s=(n=i==null?void 0:i[t])==null?void 0:n[e])!=null?s:null},gf=(t,e,i)=>{var l,d,a;let o=(l=r1())!=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=db(o);Oi.set(jh,JSON.stringify(s))};function db(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(lb),e.reduce((o,[n])=>(o[n]=cb(t[n]),o),{})}function cb(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(ab),Object.fromEntries(e)}import{PlaybackState as S0}from"@vkontakte/videoplayer-core/es2015";var ub=xe('<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 nd(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=ub();Ie(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img"},i));var n=_(o);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(2),h(o),$(t,o)}import{isNullable as l1,InterfaceLanguage as d1}from"@vkontakte/videoplayer-shared/es2015";var pb={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`},Wh=J0;var eb={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`,double_forward_label:"2x"},s1=pb;var fb={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.`},Kh=eb;var $s=new Map;$s.set(Qh.EN,Kh);$s.set(Qh.RU,Wh);var Gh=new Map,af=({language:t,pack:e,fallback:i})=>{if($s.has(t)){let o=$s.get(t);$s.set(t,z(z({},o),e))}else $s.set(t,e);Gh.set(t,i)},lf=t=>$s.has(t),df=(t,e,i,o)=>{var l;let n=$s.get(t),s=n==null?void 0:n[e];if(qh(s)){let d=(l=Gh.get(t))!=null?l:o,a=d?$s.get(d):void 0;s=a==null?void 0:a[e]}return qh(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=xe(i),n=kt();return df(o,t,e,n.defaultLanguage)};import"@vkontakte/videoplayer-core/es2015";var ll;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(ll||(ll={}));var tb=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ib=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,ob=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,jc="?",nb="X-Sentry-Auth",rb=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function sb(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=tb.exec(i[s]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||jc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=ob.exec(i[s]))n={filename:o[2],function:o[1]||jc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=ib.exec(i[s]))s===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||jc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=jc),e.push(n)}return e.length?{value:jh(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function jh(t){return(t&&t.message||"No error message").split(`
56
- `).filter(i=>!!i)[0]}function ab(t){try{let e=sb(t);if(e)return e}catch(e){}return{value:jh(t),type:t&&t.name,stacktrace:{frames:[]}}}function lb(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Yc=class{constructor(e){if(e&&e.dsn){let i=rb.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:[ab(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(nb,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:lb(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Yh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function db(){return window}var Zc=class t extends Yc{constructor(e,i=db()){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=>Yh(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=>Yh(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}};import{isNonNullable as Xc,Subscription as cb}from"@vkontakte/videoplayer-shared/es2015";var Jc=null,ma=class{constructor(e,i,o={}){!Jc&&e.dsn&&(this.sentryClient=new Zc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new cb,this.options=e,this.context=o,Jc=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Jc=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:x}=i;if(Xc(x)&&v.includes(x)||Xc(p)&&f.includes(p))return;if(Math.random()<=d||Xc(x)&&u.includes(x)||Xc(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?ll.fatal:ll.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return Jc}};var ys=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(ys||{});var eu=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()},tu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),Zh=(t,e)=>e?!!(e!=null&&e.webkitSupportsFullscreen)&&!!(e!=null&&e.webkitEnterFullscreen):t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,Xh=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},Ds=()=>!!id(),iu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},ou=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Jh=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))};import{clientChecker as e1}from"@vkontakte/videoplayer-core/es2015";var t1=()=>({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:e1.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:e1.device.isApple?K("hotkey_map_item_next_episode_mac_value"):K("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as ub,ValueSubject as cf}from"@vkontakte/videoplayer-shared/es2015";var va=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:ub(this.onResize.bind(this),300)};this.info={isActive$:new cf(!1),isEnabled$:new cf(!1),type:0};this.info.isEnabled$=new cf(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,this.eventHandlers.resize.cancel(),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 ga(t){return t instanceof va}import{devNull as i1,now as o1}from"@vkontakte/videoplayer-shared/es2015";Zv();function pf(t,e){F(e,!1);let i=ke();Lt(()=>{i.getAdmanWrapper().startPostroll()}),Ur(),U()}import{noop as pb}from"@vkontakte/videoplayer-shared/es2015";var fb=(t,e,i)=>{t.stopPropagation(),r(e)&&i()()},mb=M('<div class="skip svelte-1k4i25s"> <svg class="icon svelte-1k4i25s" width="7" height="12" viewBox="0 0 7 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"></path></svg></div>'),vb=M("<div><!></div>"),gb={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 ff(t,e){F(e,!0),q(t,gb);let[i,o]=Ue(),n=()=>C(u,"$isMobile",i),s=m(e,"position",3,0),l=m(e,"secondsToWatchBeforeSkip",3,0),d=m(e,"skipAd",3,pb),u=ke().ui.isMobile,f=g(()=>s()>0&&s()>=l());var v=vb();let p;v.__click=[fb,f,d];var x=_(v);{var w=S=>{var T=mb(),E=_(T);Ee(),h(T),B(V=>be(E,`${V!=null?V:""} `),[()=>K("skip_ads_now")]),$(S,T)},y=S=>{var T=ns();B(E=>be(T,E),[()=>K("skip_ads_after",{time:Math.ceil(l()-s()).toFixed(0)})]),$(S,T)};L(x,S=>{r(f)?S(w):S(y,!1)})}h(v),B(S=>p=te(v,1,"container svelte-1k4i25s",null,p,S),[()=>({"container-mobile":n(),skippable:r(f)})]),$(t,v),U(),o()}ct(["click"]);var hb=M('<button class="svelte-1wy3dql"> </button>'),_b={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 mf(t,e){F(e,!1),q(t,_b),Ur();var i=hb(),o=_(i,!0);h(i),B(n=>be(o,n),[()=>K("visit_advertiser")],Br),$(t,i),U()}var bb=M('<div class="top-gradient-mobile svelte-354ajf"></div>'),$b=M('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),yb={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.`,double_forward_label:"2x"},a1=fb;var Ss=new Map;Ss.set(d1.EN,a1);Ss.set(d1.RU,s1);var c1=new Map,hf=({language:t,pack:e,fallback:i})=>{if(Ss.has(t)){let o=Ss.get(t);Ss.set(t,K(K({},o),e))}else Ss.set(t,e);c1.set(t,i)},_f=t=>Ss.has(t),bf=(t,e,i,o)=>{var l;let n=Ss.get(t),s=n==null?void 0:n[e];if(l1(s)){let d=(l=c1.get(t))!=null?l:o,a=d?Ss.get(d):void 0;s=a==null?void 0:a[e]}return l1(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}=Ce(),o=_e(i),n=At();return bf(o,t,e,n.defaultLanguage)};import"@vkontakte/videoplayer-core/es2015";var al;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(al||(al={}));var mb=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,vb=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,gb=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,tu="?",hb="X-Sentry-Auth",_b=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function bb(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=mb.exec(i[s]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||tu,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=gb.exec(i[s]))n={filename:o[2],function:o[1]||tu,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=vb.exec(i[s]))s===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||tu,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=tu),e.push(n)}return e.length?{value:u1(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function u1(t){return(t&&t.message||"No error message").split(`
56
+ `).filter(i=>!!i)[0]}function $b(t){try{let e=bb(t);if(e)return e}catch(e){}return{value:u1(t),type:t&&t.name,stacktrace:{frames:[]}}}function yb(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var iu=class{constructor(e){if(e&&e.dsn){let i=_b.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 Ht(K({},this.getRequestBlank()),{exception:{values:[$b(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(hb,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:yb(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function p1(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function xb(){return window}var ou=class t extends iu{constructor(e,i=xb()){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",K({},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",K({},e)),this}setUser(e){return this.setKeyState("user",K({},e)),this}clone(){let e=new t(Ht(K({},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:[K({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send(Ht(K({},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=>p1(i,o))):!1}getRequestBlank(){return K(Ht(K({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(K({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=>p1(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 Ht(K({},i),{[o]:s||d?[...s||[],...d||[]]:K(K({},typeof n!="string"?n:{}),typeof l!="string"?l:{})})},this._state)}setKeyState(e,i){this._state[e]=i}};import{isNonNullable as nu,Subscription as wb}from"@vkontakte/videoplayer-shared/es2015";var ru=null,ma=class{constructor(e,i,o={}){!ru&&e.dsn&&(this.sentryClient=new ou({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new wb,this.options=e,this.context=o,ru=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),ru=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:m}=l,{errorType:p,category:x}=i;if(nu(x)&&m.includes(x)||nu(p)&&f.includes(p))return;if(Math.random()<=d||nu(x)&&u.includes(x)||nu(p)&&a.includes(p)){Object.keys(i).length&&n.setTags(K({version:this.version},i)),(Object.keys(s).length||Object.keys(o).length)&&n.setExtras(K(K({},s),o));try{p&&n.captureMessage(p,i.fatal?al.fatal:al.error),n.report(e)}catch(w){console.error(w)}}}static getInstance(){return ru}};var us=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(us||{});var su=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()},au=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),f1=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,m1=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},rd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},zs=()=>!!rd(),lu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},du=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},v1=t=>{let e=window.screen;return(n=>Tt(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))};import{clientChecker as g1}from"@vkontakte/videoplayer-core/es2015";var h1=()=>({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:g1.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:g1.device.isApple?Q("hotkey_map_item_next_episode_mac_value"):Q("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as Sb,ValueSubject as $f}from"@vkontakte/videoplayer-shared/es2015";var va=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:Sb(this.onResize.bind(this),300)};this.info={isActive$:new $f(!1),isEnabled$:new $f(!1),type:0};this.info.isEnabled$=new $f(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}revealPictureInPicture(){return Tt(this,null,function*(){this.isRequested&&(this.removeEventHandlers(),yield this.request(),this.addEventHandlers())})}request(){return Tt(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 Tt(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=K({},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 Tt(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,this.eventHandlers.resize.cancel(),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 ga(t){return t instanceof va}import{devNull as _1,now as b1}from"@vkontakte/videoplayer-shared/es2015";fg();function xf(t,e){z(e,!1);let i=Ce();Rt(()=>{i.getAdmanWrapper().startPostroll()}),Kr(),W()}import{noop as Cb}from"@vkontakte/videoplayer-shared/es2015";var Tb=(t,e,i)=>{t.stopPropagation(),r(e)&&i()()},Eb=P('<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>'),Ib=P("<div><!></div>"),kb={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 wf(t,e){z(e,!0),q(t,kb);let[i,o]=Be(),n=()=>C(u,"$isMobile",i),s=v(e,"position",3,0),l=v(e,"secondsToWatchBeforeSkip",3,0),d=v(e,"skipAd",3,Cb),u=Ce().ui.isMobile,f=g(()=>s()>0&&s()>=l());var m=Ib();let p;m.__click=[Tb,f,d];var x=_(m);{var y=T=>{var S=Eb(),E=_(S);ye(),h(S),D(V=>ve(E,`${V!=null?V:""} `),[()=>Q("skip_ads_now")]),$(T,S)},w=T=>{var S=ls();D(E=>ve(S,E),[()=>Q("skip_ads_after",{time:Math.ceil(l()-s()).toFixed(0)})]),$(T,S)};R(x,T=>{r(f)?T(y):T(w,!1)})}h(m),D(T=>p=se(m,1,"container svelte-1k4i25s",null,p,T),[()=>({"container-mobile":n(),skippable:r(f)})]),$(t,m),W(),o()}ct(["click"]);var Ab=P('<button class="svelte-1wy3dql"> </button>'),Pb={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 Sf(t,e){z(e,!1),q(t,Pb),Kr();var i=Ab(),o=_(i,!0);h(i),D(n=>ve(o,n),[()=>Q("visit_advertiser")],Fr),$(t,i),W()}var Lb=P('<div class="top-gradient-mobile svelte-354ajf"></div>'),Mb=P('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),Vb={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.`},Kh=eb;var $s=new Map;$s.set(Qh.EN,Kh)
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 nd(t,e){F(e,!0),q(t,yb);let[i,o]=Ue(),n=()=>C(D,"$canSkipAd",i),s=()=>C(X,"$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),x=m(e,"adsAutoplayParam",3,void 0),w=m(e,"duration",3,0),y=ke(),S=kt(),T=y.state.isEnded$,E=y.ui.isMobile,V=S.ads.isMobileGoToSiteButton,k=Y(void 0),I=Y(void 0),R=!1,X=y.ads.playbackState,D=y.ads.canSkip,H=y.ads.position,W=y.ads.secondsToWatchBeforeSkip,ee=g(()=>n()&&s()!=="inactive"),j=g(()=>l()&&s()!=="inactive"&&V);Lt(()=>{var Le;let De=y.getAdmanWrapper();if(i1.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[o1(),f()]}),!f()){De.onAdmanLoadingError();return}let le=Pe=>{De.initAdman(Pe),R=!0},ge=new AbortController,ie=()=>{ge.abort()},{width:ve,height:Fe}=xe(y.ui.playerSize),fe=xe(y.ui.isFullscreen),st=(Le=x())!=null?Le:xe(y.ui.isAutoplay),Z={width:ve,height:Fe,isFullscreen:fe,isAutoplay:st,adsContainer:r(k),adsVideoElement:r(I),slotId:f(),params:v(),previewParam:p(),duration:w()};return window.AdmanHTML?le(Z):De.loadAdman(ge.signal).then(()=>{le(Z)}).catch(()=>{De.onAdmanLoadingError()}),()=>{i1.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[o1(),f()]}),!R&&ie()}});var ue=$b(),oe=_(ue);{var pe=De=>{var le=bb();$(De,le)};L(oe,De=>{l()&&De(pe)})}var $e=P(oe,2);ot($e,De=>O(I,De),()=>r(I));var me=P($e,2);{var Ae=De=>{ff(De,{get position(){return d()},get secondsToWatchBeforeSkip(){return a()},get skipAd(){return y.actions.internal.skipAd}})};L(me,De=>{r(ee)&&De(Ae)})}var re=P(me,2);{var Ne=De=>{pf(De,{})};L(re,De=>{u()&&De(Ne)})}var se=P(re,2);{var N=De=>{mf(De,{})};L(se,De=>{r(j)&&De(N)})}h(ue),ot(ue,De=>O(k,De),()=>r(k)),$(t,ue),U(),o()}var xn=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 xb=Ie('<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 vf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=xb();Me(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);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ee(2),h(o),$(t,o)}var wb=Ie('<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 gf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=wb();Me(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);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ee(2),h(o),$(t,o)}function rd(t,e){let i=m(e,"isActive",3,!1);var o=qe(),n=he(o);{var s=d=>{gf(d,{})},l=d=>{vf(d,{})};L(n,d=>{i()?d(s):d(l,!1)})}$(t,o)}var Sb=M('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),Cb=M('<div class="live-icon svelte-1s15d2i"><!></div>'),Tb=M('<span class="text svelte-1s15d2i"> </span>'),Eb=M("<div><!> <!></div>"),Ib={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 ad(t,e){z(e,!0),q(t,Vb);let[i,o]=Be(),n=()=>C(F,"$canSkipAd",i),s=()=>C(B,"$adPlaybackState",i),l=()=>C(S,"$isMobile",i),d=()=>C(H,"$adPosition",i),a=()=>C(U,"$secondsToWatchBeforeSkipAd",i),u=()=>C(T,"$isVideoEnded",i),f=v(e,"adsSlotId",3,void 0),m=v(e,"adsParams",3,void 0),p=v(e,"adsAutoplayParam",3,void 0),x=v(e,"duration",3,0),y=Ce(),w=At(),T=y.state.isEnded$,S=y.ui.isMobile,E=w.ads.isMobileGoToSiteButton,V=J(void 0),I=J(void 0),L=!1,B=y.ads.playbackState,F=y.ads.canSkip,H=y.ads.position,U=y.ads.secondsToWatchBeforeSkip,Z=g(()=>n()&&s()!=="inactive"),re=g(()=>l()&&s()!=="inactive"&&E);Rt(()=>{var we;let X=y.getAdmanWrapper();if(_1.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[b1(),f()]}),!f()){X.onAdmanLoadingError();return}let M=Te=>{X.initAdman(Te),L=!0},at=new AbortController,De=()=>{at.abort()},{width:j,height:oe}=_e(y.ui.playerSize),Oe=_e(y.ui.isFullscreen),Ze=(we=p())!=null?we:_e(y.ui.isAutoplay),$e=w.ads.paramsOverride,te={width:j,height:oe,isFullscreen:Oe,isAutoplay:Ze,adsContainer:r(V),adsVideoElement:r(I),slotId:f(),params:m(),paramsOverride:$e,duration:x()};return window.AdmanHTML?M(te):X.loadAdman(at.signal).then(()=>{M(te)}).catch(()=>{X.onAdmanLoadingError()}),()=>{_1.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[b1(),f()]}),!L&&De()}});var G=Mb(),be=_(G);{var ie=X=>{var M=Lb();$(X,M)};R(be,X=>{l()&&X(ie)})}var me=k(be,2);st(me,X=>N(I,X),()=>r(I));var pe=k(me,2);{var ue=X=>{wf(X,{get position(){return d()},get secondsToWatchBeforeSkip(){return a()},get skipAd(){return y.actions.internal.skipAd}})};R(pe,X=>{r(Z)&&X(ue)})}var Le=k(pe,2);{var Ve=X=>{xf(X,{})};R(Le,X=>{u()&&X(Ve)})}var ae=k(Le,2);{var Re=X=>{Sf(X,{})};R(ae,X=>{r(re)&&X(Re)})}h(G),st(G,X=>N(V,X),()=>r(V)),$(t,G),W(),o()}var hn=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 Rb=xe('<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 Cf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Rb();Ie(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img"},i));var n=_(o);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(2),h(o),$(t,o)}var Ob=xe('<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 Tf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Ob();Ie(o,()=>K({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);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(2),h(o),$(t,o)}function ld(t,e){let i=v(e,"isActive",3,!1);var o=Fe(),n=fe(o);{var s=d=>{Tf(d,{})},l=d=>{Cf(d,{})};R(n,d=>{i()?d(s):d(l,!1)})}$(t,o)}var Nb=P('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),Bb=P('<div class="live-icon svelte-1s15d2i"><!></div>'),Db=P('<span class="text svelte-1s15d2i"> </span>'),Fb=P("<div><!> <!></div>"),Hb={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.`},Kh=eb;var $s=new Map;$s.set(Qh.EN,Kh)
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 sd(t,e){q(t,Ib);let i=m(e,"withEqualizer",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1);var s=Eb();let l;var d=_(s);{var a=p=>{var x=Sb();$(p,x)};L(d,p=>{i()&&p(a)})}var u=P(d,2);{var f=p=>{var x=Cb(),w=_(x);rd(w,{isActive:!0}),h(x),$(p,x)},v=p=>{var x=Tb(),w=_(x,!0);h(x),B(()=>be(w,e.time)),$(p,x)};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()})]),$(t,s)}var dl=(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=M('<div role="timer" data-testid="thumb-timer"><!></div>'),Pb={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 ad(t,e){F(e,!0),q(t,Pb);let[i,o]=Ue(),n=()=>C(f,"$disabled",i),s=m(e,"isHidden",3,!1),l=m(e,"isLive",3,!1),d=m(e,"isPlaying",3,!1),a=kt(),u=g(()=>xn(e.duration-e.position)),f=ae(!1);var v=kb();let p;var x=_(v);sd(x,{get time(){return r(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),h(v),_s(v,()=>dl(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()})]),$(t,v),U(),o()}var cl=t=>{if(!navigator.clipboard){n1(t);return}navigator.clipboard.writeText(t).catch(()=>n1(t))};function n1(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)}}}import{ChromecastState as Fb}from"@vkontakte/videoplayer-core/es2015";import{clientChecker as r1}from"@vkontakte/videoplayer-core/es2015";var hf="focus-hidden";var Er=t=>{t.stopPropagation(),t.preventDefault()},_f=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(hf)},Mb=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},Lb=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},Vb=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},Rb=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},s1=t=>t.code==="Escape",Nb=t=>t.code==="ArrowLeft",ld=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},a1=t=>{Vb(t)?(Er(t),Lb(t.target)):Rb(t)&&(Er(t),Mb(t.target))},Us=t=>!r1.device.isAndroid&&(t==null?void 0:t.detail)===0||r1.device.isAndroid&&(t==null?void 0:t.pointerType)==="",ul=(t,e,i)=>xt(null,null,function*(){yield Io(),t&&!t.classList.contains("opened")&&!e&&xe(i)&&(yield Io(),i.set(!1),t.focus())}),l1=(t,e,i)=>xt(null,null,function*(){yield Io(),t&&!e&&xe(i)&&(i.set(!1),t.focus())}),dd=(t,e,i,o=!1)=>xt(null,null,function*(){if(yield Io(),!!t&&e&&!o){let s=t.children[0];s==null||s.classList.toggle(hf,!i),s==null||s.focus()}}),d1=(t,e)=>xt(null,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),nu=(t,e)=>{a1(t),_f(t.target),s1(t)&&(Er(t),e())},ru=(t,e)=>xt(null,null,function*(){ld(t,["ArrowRight"])&&(Er(t),e())}),c1=(t,e,i)=>xt(null,null,function*(){if(a1(t),Nb(t)){Er(t),e();return}s1(t)&&(Er(t),i())}),pl=(t,e)=>{ld(t)&&(Er(t),e())},u1=(t,e,i)=>{if(ld(t))Er(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),Er(t);return}o==="ArrowRight"&&!e&&(i(!0),Er(t))}},p1=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},f1=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}};import{isNullable as su,isValidURL as Ub}from"@vkontakte/videoplayer-shared/es2015";var zr={"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};import{noop as m1}from"@vkontakte/videoplayer-shared/es2015";var Bb=(t,e)=>{pl(t,()=>e())},Db=M('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),Hb={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 bf(t,e){F(e,!0),q(t,Hb);let i=m(e,"onClick",3,m1),o=m(e,"closeContextMenu",3,m1),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var s=Db();s.__click=n,s.__keydown=[Bb,n];var l=_(s,!0);h(s),B(()=>{var d;We(s,"aria-label",(d=e.ariaLabel)!=null?d:e.label),We(s,"data-testid",e.id),be(l,e.label)}),$(t,s),U()}ct(["click","keydown"]);var _a=(t,e)=>t.weight-e.weight;var cd=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(cd||{});var zb=(t,e)=>{nu(t,e)},Wb=t=>{t.preventDefault()},Kb=M('<ul role="menu" class="svelte-1p5ukkp"></ul>'),qb={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 $f(t,e){F(e,!0),q(t,qb);let[i,o]=Ue(),n=()=>C(ee,"$isLive$",i),s=()=>C(pe,"$isPiPEnabled$",i),l=()=>C(W,"$chromecastState$",i),d=()=>C($e,"$pictureInPictureApiIsActive$",i),a=()=>C(oe,"$isLooped$",i),u=()=>C(j,"$positionExact$",i),f=()=>C(X,"$additionalContextMenuItems$",i),v=m(e,"visible",3,!1),p=m(e,"position",19,()=>({top:0,left:0})),x=m(e,"playerContainerRef",3,void 0),w=m(e,"controlsContainerRef",3,void 0),y=m(e,"menuElementRef",15,void 0),S=Y(0),T=Y(0),E=ke(),{pictureInPicture$:V}=vo(),k=kt(),I=E.ui.contextMenu.visible$,R=E.ui.debugPanelVisible,X=E.ui.additionalContextMenuItems$,D=E.ui.t,H=E.actions.internal.togglePictureInPicture,W=E.state.chromecastState$,ee=E.state.isLive$,j=E.state.positionExact$,ue=E.state.isInteractive,oe=E.state.looped$,{isEnabled$:pe,isActive$:$e}=V,me=g(()=>{var Re;return k.features.copyVideoLink&&((Re=E.callbacks)==null?void 0:Re.onCopyVideoLink)}),Ae=g(()=>r(me)&&!n()&&!ue),re=g(()=>{var Re;return!!((Re=E.callbacks)!=null&&Re.onCopyEmbedCodeClicked)}),Ne=g(()=>s()&&l()!==Fb.CONNECTED&&!ue),se=g(()=>!ue),N=g(()=>k.features.videoRotate&&!ue),De=g(()=>k.showSupport&&!d()),le=g(()=>k.features.saveTraceInfoToFile),ge=()=>{var Re;I.set(!1),(Re=e.returnFocus)==null||Re.call(e)},ie=(Re,je)=>{if(!y()||!x()||!w())return;let He=y().getBoundingClientRect(),Xe=x().getBoundingClientRect();O(S,Re-Xe.left),O(T,je-Xe.top),r(S)+He.width>Xe.width&&O(S,Xe.width-He.width),r(T)+He.height>Xe.height&&O(T,Xe.height-He.height),O(S,Math.max(r(S),0),!0),O(T,Math.max(r(T),0),!0)};Qe(()=>{xt(null,null,function*(){if(y()&&x()&&w()){yield Io();let{top:je,left:He,bottom:Xe,right:Pt}=p(),Kt=He!=null?He:0,tt=je!=null?je:0,bi=y().getBoundingClientRect();su(He)&&!su(Pt)&&(Kt=Pt-bi.width),su(je)&&!su(Xe)&&(tt=Xe-bi.height),Kt=Math.max(Kt,0),tt=Math.max(tt,0),ie(Kt,tt)}})});let ve=()=>{E.actions.internal.videoRotate()},Fe=()=>{Ub(e.supportLink)&&window.open(e.supportLink,"_blank"),E.actions.internal.reportProblem(),E.actions.internal.pause()},fe=()=>{let Re=E.actions.internal.getDebugTextData();if(k.features.saveDebugInfoToFile){let je=new Blob([...Re],{type:"plain/text"}),He=window.URL.createObjectURL(je);fa(He,"vk_player_debug_info","txt")}else cl(E.actions.internal.getDebugTextData())},st=()=>{let Re=E.actions.internal.getTraceTextData(),je=new Blob([...Re],{type:"application/json"}),He=window.URL.createObjectURL(je);fa(He,"vk_player_trace_info","json")},Z=()=>{R.set(!0)},Le=()=>xt(null,null,function*(){var Re;try{H()}finally{(Re=e.returnFocus)==null||Re.call(e)}}),Pe=()=>{E.actions.internal.setLooped(!a())},Ke=()=>{var Re,je;if(r(re)){let He=(je=(Re=E.callbacks)==null?void 0:Re.onCopyEmbedCodeClicked)==null?void 0:je.call(Re);He&&cl(He)}},lt=(Re=!1)=>{var je,He;if((je=E.callbacks)!=null&&je.onCopyVideoLink){let Xe=(He=E.callbacks)==null?void 0:He.onCopyVideoLink(Re,u());Xe&&cl(Xe)}},mt=g(()=>k.features.saveDebugInfoToFile?D("menu_save_debug"):D("menu_copy_debug")),vt=g(()=>r(me)?{id:"copy-link",weight:zr["copy-link"],label:D("menu_copy_video_link"),onClick:()=>lt()}:void 0),Ct=g(()=>r(Ae)?{id:"copy-link-timestamp",weight:zr["copy-link-timestamp"],label:D("menu_copy_video_link_with_timestamp"),onClick:()=>lt(!0)}:void 0),Ye=g(()=>r(re)?{id:"copy-embed-code",weight:zr["copy-embed-code"],label:D("menu_copy_embed_code"),onClick:Ke}:void 0),Ut=g(()=>r(Ne)?{id:"pip",weight:zr.pip,label:d()?D("menu_pip_close"):D("menu_pip"),onClick:Le}:void 0),ti=g(()=>r(se)?{id:"video-loop",weight:zr["video-loop"],label:a()?D("menu_video_loop_off"):D("menu_video_loop_on"),ariaLabel:D("aria_label_menu_loop"),onClick:Pe}:void 0),jt=g(()=>r(N)?{id:"rotate",weight:zr.rotate,label:D("menu_video_rotate"),ariaLabel:D("aria_label_menu_rotate"),onClick:ve}:void 0),Wt=g(()=>r(De)?{id:"report",weight:zr.report,label:D("menu_report"),ariaLabel:`${D("menu_report")}. ${D("aria_label_new_tab_alert")}`,onClick:Fe}:void 0),ne=g(()=>({id:"save-debug",weight:zr["save-debug"],label:r(mt),onClick:fe})),Ht=g(()=>r(le)?{id:"save-trace",weight:zr["save-trace"],label:D("menu_save_debug"),onClick:st}:void 0),Se=g(()=>({id:"debug-info",weight:zr["debug-info"],label:D("menu_debug_overlay"),ariaLabel:D("aria_label_menu_debug_overlay"),onClick:Z})),_e=g(()=>[r(vt),r(Ct),r(Ye),r(Ut),r(ti),r(jt),r(Wt),r(ne),r(Ht),r(Se),...f()].filter(Re=>!!Re).sort(_a));var ce=qe(),Be=he(ce);{var ze=Re=>{var je=Kb();je.__contextmenu=[Wb],je.__keydown=[zb,ge],Mi(je,21,()=>r(_e),He=>He.id,(He,Xe)=>{bf(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(je),ot(je,He=>y(He),()=>y()),B(()=>{var He,Xe;return rt(je,`top: ${(He=r(T))!=null?He:""}px; left: ${(Xe=r(S))!=null?Xe:""}px;`)}),$(Re,je)};L(Be,Re=>{v()&&Re(ze)})}$(t,ce),U(),o()}ct(["contextmenu","keydown"]);var au=class{constructor(e){this.value=e,this.next=null}};var fl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new au(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 Qb=M('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),Gb={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 ud(t,e){F(e,!0),q(t,Gb);let i=m(e,"values",19,()=>[]),o=Y(void 0),n=Y(null),s=16,l=120,d=60,a=l/d;Lt(()=>{r(o).width=l,r(o).height=s,O(n,r(o).getContext("2d"),!0)});function u(p,x,w,y,S){S===0&&(S=1),p.fillStyle="#fff",p.fillRect(x,w,y,S)}Qe(()=>{let p="";if(r(n)){let x=i()[0];for(let y=1;y<i().length;y++)i()[y]>x&&(x=i()[y]);r(n).clearRect(0,0,l,s);let w=d-1;for(let y=i().length-1;y>=0;y--){let S=w*a,T=x>0?s*(i()[y]/x):0;u(r(n),S,0,a,T),p=T+" "+p,w--}}});var f=Qb(),v=_(f);ot(v,p=>O(o,p),()=>r(o)),h(f),$(t,f),U()}import{safeStorage as v1}from"@vkontakte/videoplayer-shared/es2015";var jb=(t,e)=>{t.stopPropagation(),v1.remove(Zl),e.set(!1)},Yb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),Zb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),Xb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),Jb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),e$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),t$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),i$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),o$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),n$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),r$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),s$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),a$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),l$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),d$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),c$=M('<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>'),u$={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 pd(t,e){F(e,!0),q(t,u$);let[i,o]=Ue(),n=()=>C(d,"$isMobile",i),s=ke(),l=s.ui.debugPanelVisible,d=s.ui.isMobile,a=Y(oi(s.actions.internal.getDebugPanelData())),u=s.actions.internal.getVideoElement(),f=Y(0),v=Y(0),p=Y(0),x=new fl(60),w=new fl(60),y=new fl(60),S=Y(oi([])),T=Y(oi([])),E=Y(oi([])),V=K("aria_label_debug_panel");Lt(()=>{v1.set(Zl,"true"),s.actions.internal.startLogging(),u&&(O(v,u.getVideoPlaybackQuality().droppedVideoFrames,!0),O(f,u.getVideoPlaybackQuality().totalVideoFrames,!0));let Se=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 ce=u.getVideoPlaybackQuality().totalVideoFrames;O(p,ce-r(f)),O(f,ce,!0),x.push(r(p)),r(a).speed&&w.push(r(a).speed),r(a).bitrate&&y.push(r(a).bitrate),O(S,x.getValuesFromBottom(),!0),O(T,w.getValuesFromBottom(),!0),O(E,y.getValuesFromBottom(),!0)}},1e3)),()=>{s.actions.internal.stopLogging(),clearInterval(Se),_e&&clearInterval(_e)}});var k=c$();let I;var R=_(k);R.__click=[jb,l];var X=P(R,2),D=_(X),H=P(_(D),2),W=_(H,!0);h(H),h(D);var ee=P(D,2);{var j=Se=>{var _e=Yb(),ce=P(_(_e),2),Be=_(ce,!0);h(ce),h(_e),B(()=>be(Be,r(a).id)),$(Se,_e)};L(ee,Se=>{r(a).id&&Se(j)})}var ue=P(ee,2);{var oe=Se=>{var _e=Zb(),ce=P(_(_e),2),Be=_(ce,!0);h(ce),h(_e),B(()=>be(Be,r(a).vsid)),$(Se,_e)};L(ue,Se=>{r(a).vsid&&Se(oe)})}var pe=P(ue,2);{var $e=Se=>{var _e=Xb(),ce=P(_(_e),2),Be=_(ce,!0);h(ce),h(_e),B(()=>be(Be,r(a).provider)),$(Se,_e)};L(pe,Se=>{r(a).provider&&Se($e)})}var me=P(pe,2);{var Ae=Se=>{var _e=Jb(),ce=P(_(_e),2),Be=_(ce);h(ce),h(_e),B(()=>{var ze,Re;return be(Be,`Video: ${(ze=r(a).videoCodec||"")!=null?ze:""} ${r(a).hdr?"(HDR)":""}
137
+ }.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function dd(t,e){q(t,Hb);let i=v(e,"withEqualizer",3,!1),o=v(e,"isLive",3,!1),n=v(e,"isPlaying",3,!1);var s=Fb();let l;var d=_(s);{var a=p=>{var x=Nb();$(p,x)};R(d,p=>{i()&&p(a)})}var u=k(d,2);{var f=p=>{var x=Bb(),y=_(x);ld(y,{isActive:!0}),h(x),$(p,x)},m=p=>{var x=Db(),y=_(x,!0);h(x),D(()=>ve(y,e.time)),$(p,x)};R(u,p=>{o()?p(f):p(m,!1)})}h(s),D(p=>l=se(s,1,"wrapper svelte-1s15d2i",null,l,p),[()=>({live:o(),playing:n()})]),$(t,s)}var ll=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var Ub=P('<div role="timer" data-testid="thumb-timer"><!></div>'),zb={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 cd(t,e){z(e,!0),q(t,zb);let[i,o]=Be(),n=()=>C(f,"$disabled",i),s=v(e,"isHidden",3,!1),l=v(e,"isLive",3,!1),d=v(e,"isPlaying",3,!1),a=At(),u=g(()=>hn(e.duration-e.position)),f=le(!1);var m=Ub();let p;var x=_(m);dd(x,{get time(){return r(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),h(m),xs(m,()=>ll(s()&&a.features.usePerformanceFix,f,a.disableInvisibleComponentsTimeout)),D(y=>p=se(m,1,"thumb-timer svelte-c6gowj",null,p,y),[()=>({"out-of-flow":n(),hidden:s()})]),$(t,m),W(),o()}var dl=t=>{if(!navigator.clipboard){$1(t);return}navigator.clipboard.writeText(t).catch(()=>$1(t))};function $1(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)}}}import{ChromecastState as e$}from"@vkontakte/videoplayer-core/es2015";import{clientChecker as y1}from"@vkontakte/videoplayer-core/es2015";var Ef="focus-hidden";var Ar=t=>{t.stopPropagation(),t.preventDefault()},If=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(Ef)},Kb=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},qb=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},Qb=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},Gb=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},x1=t=>t.code==="Escape",jb=t=>t.code==="ArrowLeft",ud=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},w1=t=>{Qb(t)?(Ar(t),qb(t.target)):Gb(t)&&(Ar(t),Kb(t.target))},qs=t=>!y1.device.isAndroid&&(t==null?void 0:t.detail)===0||y1.device.isAndroid&&(t==null?void 0:t.pointerType)==="",cl=(t,e,i)=>Tt(null,null,function*(){yield yo(),t&&!t.classList.contains("opened")&&!e&&_e(i)&&(yield yo(),i.set(!1),t.focus())}),S1=(t,e,i)=>Tt(null,null,function*(){yield yo(),t&&!e&&_e(i)&&(i.set(!1),t.focus())}),pd=(t,e,i,o=!1)=>Tt(null,null,function*(){if(yield yo(),!!t&&e&&!o){let s=t.children[0];s==null||s.classList.toggle(Ef,!i),s==null||s.focus()}}),C1=(t,e)=>Tt(null,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),cu=(t,e)=>{w1(t),If(t.target),x1(t)&&(Ar(t),e())},uu=(t,e)=>Tt(null,null,function*(){ud(t,["ArrowRight"])&&(Ar(t),e())}),T1=(t,e,i)=>Tt(null,null,function*(){if(w1(t),jb(t)){Ar(t),e();return}x1(t)&&(Ar(t),i())}),ul=(t,e)=>{ud(t)&&(Ar(t),e())},E1=(t,e,i)=>{if(ud(t))Ar(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),Ar(t);return}o==="ArrowRight"&&!e&&(i(!0),Ar(t))}},I1=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},k1=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}};import{isNullable as pu,isValidURL as t$}from"@vkontakte/videoplayer-shared/es2015";var qr={"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};import{noop as A1}from"@vkontakte/videoplayer-shared/es2015";var Zb=(t,e)=>{ul(t,()=>e())},Xb=P('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),Jb={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 kf(t,e){z(e,!0),q(t,Jb);let i=v(e,"onClick",3,A1),o=v(e,"closeContextMenu",3,A1),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var s=Xb();s.__click=n,s.__keydown=[Zb,n];var l=_(s,!0);h(s),D(()=>{var d;Ne(s,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Ne(s,"data-testid",e.id),ve(l,e.label)}),$(t,s),W()}ct(["click","keydown"]);var _a=(t,e)=>t.weight-e.weight;var fd=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(fd||{});var i$=(t,e)=>{cu(t,e)},o$=t=>{t.preventDefault()},n$=P('<ul role="menu" class="svelte-1p5ukkp"></ul>'),r$={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 Af(t,e){z(e,!0),q(t,r$);let[i,o]=Be(),n=()=>C(me,"$playerPhase",i),s=()=>C(re,"$isLive$",i),l=()=>C(pe,"$isPiPEnabled$",i),d=()=>C(Z,"$chromecastState$",i),a=()=>C(ue,"$pictureInPictureApiIsActive$",i),u=()=>C(ie,"$isLooped$",i),f=()=>C(G,"$positionExact$",i),m=()=>C(F,"$additionalContextMenuItems$",i),p=v(e,"visible",3,!1),x=v(e,"position",19,()=>({top:0,left:0})),y=v(e,"playerContainerRef",3,void 0),w=v(e,"menuElementRef",15,void 0),T=J(0),S=J(0),E=Ce(),{pictureInPicture$:V}=vo(),I=At(),L=E.ui.contextMenu.visible$,B=E.ui.debugPanelVisible,F=E.ui.additionalContextMenuItems$,H=E.ui.t,U=E.actions.internal.togglePictureInPicture,Z=E.state.chromecastState$,re=E.state.isLive$,G=E.state.positionExact$,be=E.state.isInteractive,ie=E.state.looped$,me=E.playerPhase,{isEnabled$:pe,isActive$:ue}=V,Le=g(()=>n()==="video"),Ve=g(()=>!!s()&&r(Le)),ae=g(()=>["thumb","LiveWaitingStart","LiveWaitingRecover","LiveWaitingRecord"].includes(n())),Re=g(()=>{var Qe;return I.features.copyVideoLink&&((Qe=E.callbacks)==null?void 0:Qe.onCopyVideoLink)}),X=g(()=>r(Re)&&!r(ae)&&!be&&!r(Ve)),M=g(()=>{var Qe;return!!((Qe=E.callbacks)!=null&&Qe.onCopyEmbedCodeClicked)}),at=g(()=>l()&&d()!==e$.CONNECTED&&!be&&r(Le)),De=g(()=>!be&&!r(ae)&&!r(Ve)),j=g(()=>I.features.videoRotate&&!be&&!r(ae)),oe=g(()=>I.showSupport&&!a()),Oe=g(()=>I.features.saveTraceInfoToFile),Ze=()=>{var Qe;L.set(!1),(Qe=e.returnFocus)==null||Qe.call(e)},$e=(Qe,je)=>{if(!w()||!y())return;let tt=w().getBoundingClientRect(),Vt=y().getBoundingClientRect();N(T,Qe-Vt.left),N(S,je-Vt.top),r(T)+tt.width>Vt.width&&N(T,Vt.width-tt.width),r(S)+tt.height>Vt.height&&N(S,Vt.height-tt.height),N(T,Math.max(r(T),0),!0),N(S,Math.max(r(S),0),!0)};ze(()=>{Tt(null,null,function*(){if(w()&&y()){yield yo();let{top:je,left:tt,bottom:Vt,right:Wt}=x(),ai=tt!=null?tt:0,li=je!=null?je:0,qi=w().getBoundingClientRect();pu(tt)&&!pu(Wt)&&(ai=Wt-qi.width),pu(je)&&!pu(Vt)&&(li=Vt-qi.height),ai=Math.max(ai,0),li=Math.max(li,0),$e(ai,li)}})});let te=()=>{E.actions.internal.videoRotate()},we=()=>{t$(e.supportLink)&&window.open(e.supportLink,"_blank"),E.actions.internal.reportProblem(),E.actions.internal.pause()},Te=()=>{let Qe=E.actions.internal.getDebugTextData();if(I.features.saveDebugInfoToFile){let je=new Blob([...Qe],{type:"plain/text"}),tt=window.URL.createObjectURL(je);fa(tt,"vk_player_debug_info","txt")}else dl(E.actions.internal.getDebugTextData())},Ke=()=>{let Qe=E.actions.internal.getTraceTextData(),je=new Blob([...Qe],{type:"application/json"}),tt=window.URL.createObjectURL(je);fa(tt,"vk_player_trace_info","json")},it=()=>{B.set(!0)},ht=()=>Tt(null,null,function*(){var Qe;try{U()}finally{(Qe=e.returnFocus)==null||Qe.call(e)}}),pt=()=>{E.actions.internal.setLooped(!u())},_t=()=>{var Qe,je;if(r(M)){let tt=(je=(Qe=E.callbacks)==null?void 0:Qe.onCopyEmbedCodeClicked)==null?void 0:je.call(Qe);tt&&dl(tt)}},Je=(Qe=!1)=>{var je,tt;if((je=E.callbacks)!=null&&je.onCopyVideoLink){let Vt=(tt=E.callbacks)==null?void 0:tt.onCopyVideoLink(Qe,f());Vt&&dl(Vt)}},zt=g(()=>I.features.saveDebugInfoToFile?H("menu_save_debug"):H("menu_copy_debug")),Yt=g(()=>r(Re)?{id:"copy-link",weight:qr["copy-link"],label:H("menu_copy_video_link"),onClick:()=>Je()}:void 0),Zt=g(()=>r(X)?{id:"copy-link-timestamp",weight:qr["copy-link-timestamp"],label:H("menu_copy_video_link_with_timestamp"),onClick:()=>Je(!0)}:void 0),Xt=g(()=>r(M)?{id:"copy-embed-code",weight:qr["copy-embed-code"],label:H("menu_copy_embed_code"),onClick:_t}:void 0),ke=g(()=>r(at)?{id:"pip",weight:qr.pip,label:a()?H("menu_pip_close"):H("menu_pip"),onClick:ht}:void 0),Jt=g(()=>r(De)?{id:"video-loop",weight:qr["video-loop"],label:u()?H("menu_video_loop_off"):H("menu_video_loop_on"),ariaLabel:H("aria_label_menu_loop"),onClick:pt}:void 0),he=g(()=>r(j)?{id:"rotate",weight:qr.rotate,label:H("menu_video_rotate"),ariaLabel:H("aria_label_menu_rotate"),onClick:te}:void 0),Ee=g(()=>r(oe)?{id:"report",weight:qr.report,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,onClick:we}:void 0),ce=g(()=>({id:"save-debug",weight:qr["save-debug"],label:r(zt),onClick:Te})),Ue=g(()=>r(Oe)?{id:"save-trace",weight:qr["save-trace"],label:H("menu_save_debug"),onClick:Ke}:void 0),We=g(()=>({id:"debug-info",weight:qr["debug-info"],label:H("menu_debug_overlay"),ariaLabel:H("aria_label_menu_debug_overlay"),onClick:it})),Se=g(()=>[r(Yt),r(Zt),r(Xt),r(ke),r(Jt),r(he),r(Ee),r(ce),r(Ue),r(We),...m()].filter(Qe=>!!Qe).sort(_a));var lt=Fe(),qe=fe(lt);{var bt=Qe=>{var je=n$();je.__contextmenu=[o$],je.__keydown=[i$,Ze],ki(je,21,()=>r(Se),tt=>tt.id,(tt,Vt)=>{kf(tt,{get id(){return r(Vt).id},get label(){return r(Vt).label},get ariaLabel(){return r(Vt).ariaLabel},get onClick(){return r(Vt).onClick},closeContextMenu:Ze})}),h(je),st(je,tt=>w(tt),()=>w()),D((tt,Vt,Wt)=>{var ai,li;Ne(je,"data-playerphase",n()),Ne(je,"data-live",tt),Ne(je,"data-playinglive",Vt),Ne(je,"data-somemessageshown",Wt),dt(je,`top: ${(ai=r(S))!=null?ai:""}px; left: ${(li=r(T))!=null?li:""}px;`)},[()=>String(s()),()=>String(r(Ve)),()=>String(r(ae))]),$(Qe,je)};R(qe,Qe=>{p()&&Qe(bt)})}$(t,lt),W(),o()}ct(["contextmenu","keydown"]);var fu=class{constructor(e){this.value=e,this.next=null}};var pl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new fu(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 s$=P('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),a$={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){z(e,!0),q(t,a$);let i=v(e,"values",19,()=>[]),o=J(void 0),n=J(null),s=16,l=120,d=60,a=l/d;Rt(()=>{r(o).width=l,r(o).height=s,N(n,r(o).getContext("2d"),!0)});function u(p,x,y,w,T){T===0&&(T=1),p.fillStyle="#fff",p.fillRect(x,y,w,T)}ze(()=>{let p="";if(r(n)){let x=i()[0];for(let w=1;w<i().length;w++)i()[w]>x&&(x=i()[w]);r(n).clearRect(0,0,l,s);let y=d-1;for(let w=i().length-1;w>=0;w--){let T=y*a,S=x>0?s*(i()[w]/x):0;u(r(n),T,0,a,S),p=S+" "+p,y--}}});var f=s$(),m=_(f);st(m,p=>N(o,p),()=>r(o)),h(f),$(t,f),W()}import{safeStorage as P1}from"@vkontakte/videoplayer-shared/es2015";var l$=(t,e)=>{t.stopPropagation(),P1.remove(ed),e.set(!1)},d$=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),c$=P('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),u$=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),p$=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),f$=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),m$=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),v$=P('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),g$=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),h$=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),_$=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),b$=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),$$=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),y$=P('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),x$=P('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),w$=P('<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>'),S$={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 vd(t,e){z(e,!0),q(t,S$);let[i,o]=Be(),n=()=>C(d,"$isMobile",i),s=Ce(),l=s.ui.debugPanelVisible,d=s.ui.isMobile,a=J(ni(s.actions.internal.getDebugPanelData())),u=s.actions.internal.getVideoElement(),f=J(0),m=J(0),p=J(0),x=new pl(60),y=new pl(60),w=new pl(60),T=J(ni([])),S=J(ni([])),E=J(ni([])),V=Q("aria_label_debug_panel");Rt(()=>{P1.set(ed,"true"),s.actions.internal.startLogging(),u&&(N(m,u.getVideoPlaybackQuality().droppedVideoFrames,!0),N(f,u.getVideoPlaybackQuality().totalVideoFrames,!0));let he=window.setInterval(()=>{N(a,s.actions.internal.getDebugPanelData(),!0)},500),Ee;return u&&(Ee=window.setInterval(()=>{if(u){N(m,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let ce=u.getVideoPlaybackQuality().totalVideoFrames;N(p,ce-r(f)),N(f,ce,!0),x.push(r(p)),r(a).speed&&y.push(r(a).speed),r(a).bitrate&&w.push(r(a).bitrate),N(T,x.getValuesFromBottom(),!0),N(S,y.getValuesFromBottom(),!0),N(E,w.getValuesFromBottom(),!0)}},1e3)),()=>{s.actions.internal.stopLogging(),clearInterval(he),Ee&&clearInterval(Ee)}});var I=w$();let L;var B=_(I);B.__click=[l$,l];var F=k(B,2),H=_(F),U=k(_(H),2),Z=_(U,!0);h(U),h(H);var re=k(H,2);{var G=he=>{var Ee=d$(),ce=k(_(Ee),2),Ue=_(ce,!0);h(ce),h(Ee),D(()=>ve(Ue,r(a).id)),$(he,Ee)};R(re,he=>{r(a).id&&he(G)})}var be=k(re,2);{var ie=he=>{var Ee=c$(),ce=k(_(Ee),2),Ue=_(ce,!0);h(ce),h(Ee),D(()=>ve(Ue,r(a).vsid)),$(he,Ee)};R(be,he=>{r(a).vsid&&he(ie)})}var me=k(be,2);{var pe=he=>{var Ee=u$(),ce=k(_(Ee),2),Ue=_(ce,!0);h(ce),h(Ee),D(()=>ve(Ue,r(a).provider)),$(he,Ee)};R(me,he=>{r(a).provider&&he(pe)})}var ue=k(me,2);{var Le=he=>{var Ee=p$(),ce=k(_(Ee),2),Ue=_(ce);h(ce),h(Ee),D(()=>{var We,Se;return ve(Ue,`Video: ${(We=r(a).videoCodec||"")!=null?We:""} ${r(a).hdr?"(HDR)":""}
139
139
  &
140
- Audio: ${(Re=r(a).audioCodec||"")!=null?Re:""} ${r(a).audioLanguage?`(${r(a).audioLanguage})`:""}`)}),$(Se,_e)};L(me,Se=>{(r(a).videoCodec||r(a).audioCodec)&&Se(Ae)})}var re=P(me,2);{var Ne=Se=>{var _e=e$(),ce=P(_(_e),2),Be=_(ce,!0);h(ce),h(_e),B(()=>be(Be,r(a).viewport)),$(Se,_e)};L(re,Se=>{r(a).viewport&&Se(Ne)})}var se=P(re,2);{var N=Se=>{var _e=t$(),ce=P(_(_e),2),Be=_(ce,!0);h(ce),h(_e),B(()=>be(Be,r(a).videoSize)),$(Se,_e)};L(se,Se=>{r(a).videoSize&&Se(N)})}var De=P(se,2);{var le=Se=>{var _e=i$(),ce=P(_(_e),2),Be=_(ce,!0);h(ce),h(_e),B(()=>be(Be,r(a).cdn)),$(Se,_e)};L(De,Se=>{r(a).cdn&&Se(le)})}var ge=P(De,2);{var ie=Se=>{var _e=o$(),ce=P(_(_e),2),Be=_(ce);h(ce),h(_e),B(()=>{var ze;return be(Be,`${(ze=r(a).volume)!=null?ze:""} %`)}),$(Se,_e)};L(ge,Se=>{r(a).volume&&Se(ie)})}var ve=P(ge,2);{var Fe=Se=>{var _e=n$(),ce=P(_(_e),2),Be=_(ce);h(ce),h(_e),B(ze=>be(Be,`${ze!=null?ze:""} s`),[()=>r(a).position.toFixed(2)]),$(Se,_e)};L(ve,Se=>{r(a).position&&Se(Fe)})}var fe=P(ve,2);{var st=Se=>{var _e=r$(),ce=P(_(_e),2),Be=_(ce);h(ce),h(_e),B(ze=>be(Be,`${ze!=null?ze:""} s`),[()=>r(a).buffer.toFixed(2)]),$(Se,_e)};L(fe,Se=>{r(a).buffer&&Se(st)})}var Z=P(fe,2);{var Le=Se=>{var _e=s$(),ce=P(_(_e),2),Be=_(ce);h(ce),h(_e),B(ze=>be(Be,`${ze!=null?ze:""} s`),[()=>r(a).liveLatency.toFixed(2)]),$(Se,_e)};L(Z,Se=>{r(a).liveLatency&&Se(Le)})}var Pe=P(Z,2);{var Ke=Se=>{var _e=a$(),ce=P(_(_e),2),Be=_(ce,!0);h(ce),h(_e),B(ze=>be(Be,ze),[()=>[{value:r(a).currentVideoSegmentLength,title:"Video:"},{value:r(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:ze})=>ze).map(({value:ze,title:Re})=>`${Re} ${((ze!=null?ze:0)/1e3).toFixed(2)} s`).join(" & ")]),$(Se,_e)};L(Pe,Se=>{(r(a).currentVideoSegmentLength||r(a).currentAudioSegmentLength)&&Se(Ke)})}var lt=P(Pe,2),mt=P(_(lt),2),vt=_(mt);h(mt),h(lt);var Ct=P(lt,2);{var Ye=Se=>{var _e=l$(),ce=P(_(_e),2);ud(ce,{get values(){return r(T)}});var Be=P(ce,2),ze=_(Be);h(Be),h(_e),B(Re=>be(ze,`${Re!=null?Re:""} Kbps`),[()=>r(a).speed.toFixed(2)]),$(Se,_e)};L(Ct,Se=>{r(a).speed&&Se(Ye)})}var Ut=P(Ct,2);{var ti=Se=>{var _e=d$(),ce=P(_(_e),2);ud(ce,{get values(){return r(E)}});var Be=P(ce,2),ze=_(Be);h(Be),h(_e),B(Re=>be(ze,`${Re!=null?Re:""} Kbps`),[()=>r(a).bitrate.toFixed(2)]),$(Se,_e)};L(Ut,Se=>{r(a).bitrate&&Se(ti)})}var jt=P(Ut,2),Wt=P(_(jt),2);ud(Wt,{get values(){return r(S)}});var ne=P(Wt,2),Ht=_(ne,!0);h(ne),h(jt),h(X),h(k),B(Se=>{var _e,ce;I=te(k,1,"container svelte-4deykz",null,I,Se),We(k,"aria-label",V),be(W,r(a).version),be(vt,`${(_e=r(v))!=null?_e:""} / ${(ce=r(f))!=null?ce:""} frames`),be(Ht,r(p))},[()=>({"container-mobile":n()})]),$(t,k),U(),o()}ct(["click"]);import{noop as p$}from"@vkontakte/videoplayer-shared/es2015";var f$=(t,e)=>{t.stopPropagation(),e()()},m$=M('<div class="close svelte-1ome55p"></div>'),v$={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 ba(t,e){F(e,!0),q(t,v$);let i=m(e,"onClick",3,p$);var o=m$();o.__click=[f$,i],$(t,o),U()}ct(["click"]);import{noop as g$}from"@vkontakte/videoplayer-shared/es2015";var h$=M('<div class="timer svelte-8jhsry"><canvas class="timer-canvas svelte-8jhsry" width="100" height="100"></canvas> <svg class="timer-play-icon svelte-8jhsry" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill-rule="nonzero"><path class="_play" d="m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z" fill="var(--btn-color, #fff)"></path></g></g></svg></div>'),_$={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 fd(t,e){F(e,!0),q(t,_$);let i=m(e,"isRunning",3,!0),o=m(e,"onTimerEnded",3,g$),n=5e3,s=Y(void 0),l,d,a=0,u;Qe(()=>{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()())};Lt(()=>{l=r(s).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),Zo(()=>{f()});var p=h$(),x=_(p);ot(x,w=>O(s,w),()=>r(s)),Ee(2),h(p),$(t,p),U()}var b$=(t,e,i)=>{e(!1),i()},$$=M('<div class="overlay svelte-jfbaax"></div> <div class="next-video svelte-jfbaax"><div class="top svelte-jfbaax"><div class="caption svelte-jfbaax"> </div> <!></div> <div class="row svelte-jfbaax"><div class="column svelte-jfbaax"><div class="thumb svelte-jfbaax"><div></div> <!></div></div> <div class="column svelte-jfbaax"><div class="title svelte-jfbaax"> </div></div></div></div>',1),y$={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 yf(t,e){F(e,!0),q(t,y$);let[i,o]=Ue(),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,x=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(u(!1),p())},y=()=>{e.clickCloseIcon(),x()};Lt(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var S=qe(),T=he(S);{var E=V=>{var k=$$(),I=P(he(k),2),R=_(I),X=_(R),D=_(X,!0);h(X);var H=P(X,2);ba(H,{onClick:y}),h(R);var W=P(R,2);W.__click=[b$,u,v];var ee=_(W),j=_(ee),ue=_(j);let oe;var pe=P(ue,2);{var $e=Ne=>{let se=g(()=>s()&&n());fd(Ne,{get isRunning(){return r(se)},onTimerEnded:w})};L(pe,Ne=>{n()&&Ne($e)})}h(j),h(ee);var me=P(ee,2),Ae=_(me),re=_(Ae,!0);h(Ae),h(me),h(W),h(I),B((Ne,se)=>{be(D,Ne),rt(j,`background-image: url('${e.thumb}')`),oe=te(ue,1,"thumb-overlay svelte-jfbaax",null,oe,se),be(re,e.title)},[()=>K("end_screen_next_video"),()=>({withOpacity:n()})]),$(V,k)};L(T,V=>{e.isHide||V(E)})}$(t,S),U(),o()}ct(["click"]);import{PlaybackState as $a}from"@vkontakte/videoplayer-core/es2015";import{checkNever as w$}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as An}from"@vkontakte/videoplayer-statistics/es2015";var xf=(t,e)=>Math.min(+(t+e).toFixed(2),1),wf=(t,e)=>Math.max(+(t-e).toFixed(2),0),lu=(t,e,i)=>{let o=xf(e,i);e<1?t.actions.internal.setVolume(o):xe(t.state.muted$)&&t.actions.internal.setMuted(!1)},du=(t,e,i)=>{let o=wf(e,i);e>0&&t.actions.internal.setVolume(o)};var zs=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var S$=(t,e)=>{e(t)},C$=M('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),T$={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Sf(t,e){var jt,Wt;F(e,!0),q(t,T$);let[i,o]=Ue(),n=()=>C(D,"$playbackState$",i),s=()=>C(H,"$adPlaybackState",i),l=()=>C(ue,"$disabledControls$",i),d=()=>C(W,"$positionExact$",i),a=()=>C(ee,"$duration$",i),u=()=>C(ie,"$isAudioAvailable$",i),f=()=>C(j,"$volume$",i),v=()=>C(me,"$availablePlaybackRates$",i),p=()=>C($e,"$currentPlaybackRate$",i),x=()=>C(Fe,"$isInteractiveTime$",i),w=()=>C(fe,"$showInteractiveTimeIndicatorTooltip$",i),y=()=>C(N,"$isEnded$",i),S=()=>C(oe,"$muted$",i),T=()=>C(pe,"$currentSubtitle$",i),E=()=>C(De,"$overlayContainer$",i),V=m(e,"nextButtonActive",3,!1),k=m(e,"prevButtonActive",3,!1),I=ke(),R=kt(),X=I.getLogger().createComponentLog("KeyboardControls component"),D=I.state.playbackState$,H=I.ads.playbackState,W=I.state.positionExact$,ee=I.state.duration$,j=I.state.volume$,ue=I.ui.controls.disabledControls$,oe=I.state.muted$,pe=I.state.currentSubtitle$,$e=I.state.currentPlaybackRate$,me=I.state.availablePlaybackRates$,Ae=I.ui.contextMenu.openedByHotKey$,re=I.ui.contextMenu.lastActiveElem$,Ne=I.ui.contextMenu.visible$,se=I.ui.contextMenu.position$,N=I.state.isEnded$,De=I.ui.overlayContainer$,le=(jt=I.callbacks)==null?void 0:jt.onAudioDoesNotExistHint,ge=(Wt=I.callbacks)==null?void 0:Wt.onAudioDisabledHint,ie=I.state.isAudioAvailable$,ve=I.state.isAudioDisabled,Fe=I.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:fe}=vo(),st=0,Z=!0,Le=Y(void 0),Pe=ne=>(ne!==Z&&(Z=ne,st=0),st+=1,(R.controls.seekStepKeyboard+R.controls.seekStepKeyboard*st)/1e3),Ke=(ne,Ht=!1)=>{var bi,Ti;let Se=ne.target,_e=(bi=Se==null?void 0:Se.getAttribute("role"))==null?void 0:bi.includes("menuitem"),ce=Se.classList.contains("btn"),Be=ne.code;if(ce&&Be==="Space")return!1;let ze=mh.has(Be);if(_e&&ze)return!1;let Re=!fh.has(Be);if(ne.ctrlKey&&Re||ne.altKey&&Re||ne.metaKey)return!1;let je=_e&&Be==="Escape";vh.has(Be)||je||e.hideContextMenu();let He=n()===$a.PLAYING||n()===$a.PAUSED,Xe=e.isAds&&(s()==="paused"||s()==="playing"),Pt=!Xe&&!l().has("TIMELINE");if(!(He||Xe))return!1;X({message:`key down, code: ${Be}, isExternal = ${Ht}`});let Kt=!1,tt=()=>{Kt=!0,Ht||ne.preventDefault()};switch(Be){case"KeyJ":case"ArrowLeft":{if(!Pt)break;if(ne.ctrlKey||ne.altKey){let dt=I.actions.internal.getPrevEpisode();I.actions.internal.seekToPrevEpisode(dt),dt&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:dt.text}),tt()}else{let dt=ne.shiftKey?Pe(!1):R.controls.seekStepKeyboard/1e3,qt=Math.max(d()-dt,0);d()>0&&(I.actions.internal.seekTime(qt,An.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:dt.toString()}),tt())}break}case"KeyL":case"ArrowRight":{if(!Pt)break;if(ne.ctrlKey||ne.altKey){let dt=I.actions.internal.getNextEpisode();I.actions.internal.seekToNextEpisode(dt),dt&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:dt.text}),tt()}else{let dt=ne.shiftKey?Pe(!0):R.controls.seekStepKeyboard/1e3,qt=Math.min(d()+dt,a());Math.round(d())<Math.round(a())&&(I.actions.internal.seekTime(qt,An.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:dt.toString()}),tt())}break}case"ArrowUp":{if(zs({isAudioDisabled:ve,audioDisabledHintCallback:ge,isAudioAvailable:u(),audioIsNotExistHintCallback:le,isAds:e.isAds})){let dt=f(),qt=R.controls.volumeStepKeyboard,ni=dt<=1;if(lu(I,dt,qt),ni){let ri=Math.round(xf(dt,qt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:ri}})}}tt();break}case"ArrowDown":{if(zs({isAudioDisabled:ve,audioDisabledHintCallback:ge,isAudioAvailable:u(),audioIsNotExistHintCallback:le,isAds:e.isAds})){let dt=f(),qt=R.controls.volumeStepKeyboard,ni=dt>=0;if(du(I,dt,qt),ni){let ri=Math.round(wf(dt,qt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:ri}})}}tt();break}case"Comma":{if(ne.shiftKey){I.actions.internal.decrementPlaybackRate();let dt=v().find(qt=>qt.value===p());e.showHotKeyHelpers({type:"RATE_DOWN",text:dt==null?void 0:dt.displayValue}),tt()}else{if(Xe||n()!==$a.PAUSED)break;let dt=Math.max(d()-R.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(dt,An.DOUBLE_TAP),tt())}break}case"Period":{if(ne.shiftKey){I.actions.internal.incrementPlaybackRate();let dt=v().find(qt=>qt.value===p());e.showHotKeyHelpers({type:"RATE_UP",text:dt==null?void 0:dt.displayValue}),tt()}else{if(Xe||n()!==$a.PAUSED)break;let dt=Math.min(d()+R.controls.seekStepFrame/1e3,a());d()<a()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(dt,An.DOUBLE_TAP),tt())}break}case"KeyK":case"Space":if(!l().has("PLAY_BUTTON"))if(x()&&w()&&fe.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{I.actions.internal.togglePlay();let dt="PLAY";n()===$a.PAUSED?dt="PAUSE":y()&&(dt="REPLAY"),e.showHotKeyHelpers({type:dt})}tt();break;case"KeyM":{zs({isAudioDisabled:ve,audioDisabledHintCallback:ge,isAudioAvailable:u(),audioIsNotExistHintCallback:le,isAds:e.isAds})&&(e.showHotKeyHelpers({type:S()?"VOLUME":"MUTE"}),I.actions.internal.toggleMuted()),tt();break}case"KeyF":e.toggleFullscreen(),tt();break;case"KeyC":I.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(Ti=T())==null?void 0:Ti.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),tt();break;case"KeyI":I.actions.internal.togglePictureInPicture(),tt();break;case"Digit1":case"Numpad1":if(ne.shiftKey){let dt=f1(E());se.set(dt),re.set(Se),Ae.set(!0),Ne.set(!0),tt();break}e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.1,An.DOUBLE_TAP),tt();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.2,An.DOUBLE_TAP),tt();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.3,An.DOUBLE_TAP),tt();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.4,An.DOUBLE_TAP),tt();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.5,An.DOUBLE_TAP),tt();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.6,An.DOUBLE_TAP),tt();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.7,An.DOUBLE_TAP),tt();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.8,An.DOUBLE_TAP),tt();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.9,An.DOUBLE_TAP),tt();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(0,An.DOUBLE_TAP),tt();break;case"Slash":{ne.shiftKey&&R.features.hotKeyMapModal&&(e.showKeyMap(),tt());break}case"KeyN":ne.shiftKey&&V()&&(I.actions.internal.nextVideoClick(),tt());break;case"KeyP":ne.shiftKey&&k()&&(I.actions.internal.prevVideoClick(),tt());break;case"ShiftLeft":case"ShiftRight":tt();break;case"Tab":case"Escape":case"Enter":break;default:w$(Be);break}return Kt},lt=ne=>{let Ht=ne.code;if(ne.ctrlKey||ne.altKey||ne.metaKey)return;let Se=n()===$a.PLAYING||n()===$a.PAUSED,_e=e.isAds&&(s()==="paused"||s()==="playing");if(Se||_e)switch(Ht){case"ShiftLeft":case"ShiftRight":st=0;break}},mt=K("aria_label_video_player"),vt=()=>{var ne;return(ne=r(Le))==null?void 0:ne.focus()},Ct=ne=>ne.type==="keydown"?Ke(ne,!0):(ne.type==="keyup"&&lt(ne),!1);var Ye=C$();Ye.__keyup=lt,Ye.__keydown=[S$,Ke];var Ut=_(Ye);ye(Ut,()=>{var ne;return(ne=e.children)!=null?ne:de}),h(Ye),ot(Ye,ne=>O(Le,ne),()=>r(Le)),B(()=>We(Ye,"aria-label",mt)),$(t,Ye);var ti=U({focus:vt,handleExternalKeyboardEvent:Ct});return o(),ti}ct(["keyup","keydown"]);var E$=M('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),I$={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: ${(Se=r(a).audioCodec||"")!=null?Se:""} ${r(a).audioLanguage?`(${r(a).audioLanguage})`:""}`)}),$(he,Ee)};R(ue,he=>{(r(a).videoCodec||r(a).audioCodec)&&he(Le)})}var Ve=k(ue,2);{var ae=he=>{var Ee=f$(),ce=k(_(Ee),2),Ue=_(ce,!0);h(ce),h(Ee),D(()=>ve(Ue,r(a).viewport)),$(he,Ee)};R(Ve,he=>{r(a).viewport&&he(ae)})}var Re=k(Ve,2);{var X=he=>{var Ee=m$(),ce=k(_(Ee),2),Ue=_(ce,!0);h(ce),h(Ee),D(()=>ve(Ue,r(a).videoSize)),$(he,Ee)};R(Re,he=>{r(a).videoSize&&he(X)})}var M=k(Re,2);{var at=he=>{var Ee=v$(),ce=k(_(Ee),2),Ue=_(ce,!0);h(ce),h(Ee),D(()=>ve(Ue,r(a).cdn)),$(he,Ee)};R(M,he=>{r(a).cdn&&he(at)})}var De=k(M,2);{var j=he=>{var Ee=g$(),ce=k(_(Ee),2),Ue=_(ce);h(ce),h(Ee),D(()=>{var We;return ve(Ue,`${(We=r(a).volume)!=null?We:""} %`)}),$(he,Ee)};R(De,he=>{r(a).volume&&he(j)})}var oe=k(De,2);{var Oe=he=>{var Ee=h$(),ce=k(_(Ee),2),Ue=_(ce);h(ce),h(Ee),D(We=>ve(Ue,`${We!=null?We:""} s`),[()=>r(a).position.toFixed(2)]),$(he,Ee)};R(oe,he=>{r(a).position&&he(Oe)})}var Ze=k(oe,2);{var $e=he=>{var Ee=_$(),ce=k(_(Ee),2),Ue=_(ce);h(ce),h(Ee),D(We=>ve(Ue,`${We!=null?We:""} s`),[()=>r(a).buffer.toFixed(2)]),$(he,Ee)};R(Ze,he=>{r(a).buffer&&he($e)})}var te=k(Ze,2);{var we=he=>{var Ee=b$(),ce=k(_(Ee),2),Ue=_(ce);h(ce),h(Ee),D(We=>ve(Ue,`${We!=null?We:""} s`),[()=>r(a).liveLatency.toFixed(2)]),$(he,Ee)};R(te,he=>{r(a).liveLatency&&he(we)})}var Te=k(te,2);{var Ke=he=>{var Ee=$$(),ce=k(_(Ee),2),Ue=_(ce,!0);h(ce),h(Ee),D(We=>ve(Ue,We),[()=>[{value:r(a).currentVideoSegmentLength,title:"Video:"},{value:r(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:We})=>We).map(({value:We,title:Se})=>`${Se} ${((We!=null?We:0)/1e3).toFixed(2)} s`).join(" & ")]),$(he,Ee)};R(Te,he=>{(r(a).currentVideoSegmentLength||r(a).currentAudioSegmentLength)&&he(Ke)})}var it=k(Te,2),ht=k(_(it),2),pt=_(ht);h(ht),h(it);var _t=k(it,2);{var Je=he=>{var Ee=y$(),ce=k(_(Ee),2);md(ce,{get values(){return r(S)}});var Ue=k(ce,2),We=_(Ue);h(Ue),h(Ee),D(Se=>ve(We,`${Se!=null?Se:""} Kbps`),[()=>r(a).speed.toFixed(2)]),$(he,Ee)};R(_t,he=>{r(a).speed&&he(Je)})}var zt=k(_t,2);{var Yt=he=>{var Ee=x$(),ce=k(_(Ee),2);md(ce,{get values(){return r(E)}});var Ue=k(ce,2),We=_(Ue);h(Ue),h(Ee),D(Se=>ve(We,`${Se!=null?Se:""} Kbps`),[()=>r(a).bitrate.toFixed(2)]),$(he,Ee)};R(zt,he=>{r(a).bitrate&&he(Yt)})}var Zt=k(zt,2),Xt=k(_(Zt),2);md(Xt,{get values(){return r(T)}});var ke=k(Xt,2),Jt=_(ke,!0);h(ke),h(Zt),h(F),h(I),D(he=>{var Ee,ce;L=se(I,1,"container svelte-4deykz",null,L,he),Ne(I,"aria-label",V),ve(Z,r(a).version),ve(pt,`${(Ee=r(m))!=null?Ee:""} / ${(ce=r(f))!=null?ce:""} frames`),ve(Jt,r(p))},[()=>({"container-mobile":n()})]),$(t,I),W(),o()}ct(["click"]);import{noop as C$}from"@vkontakte/videoplayer-shared/es2015";var T$=(t,e)=>{t.stopPropagation(),e()()},E$=P('<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 ba(t,e){z(e,!0),q(t,I$);let i=v(e,"onClick",3,C$);var o=E$();o.__click=[T$,i],$(t,o),W()}ct(["click"]);import{noop as k$}from"@vkontakte/videoplayer-shared/es2015";var A$=P('<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 gd(t,e){z(e,!0),q(t,P$);let i=v(e,"isRunning",3,!0),o=v(e,"onTimerEnded",3,k$),n=5e3,s=J(void 0),l,d,a=0,u;ze(()=>{i()&&Et(()=>{d=Date.now(),a=requestAnimationFrame(m)})});let f=()=>{a&&(cancelAnimationFrame(a),a=0)},m=()=>{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(m)):o()())};Rt(()=>{l=r(s).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),on(()=>{f()});var p=A$(),x=_(p);st(x,y=>N(s,y),()=>r(s)),ye(2),h(p),$(t,p),W()}var L$=(t,e,i)=>{e(!1),i()},M$=P('<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),V$={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 Pf(t,e){z(e,!0),q(t,V$);let[i,o]=Be(),n=()=>C(d,"$autoplayNextEnabled$",i),s=()=>C(a,"$timerNextVideoRunning$",i),l=Ce(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,m=l.actions.internal.nextVideoAnnouncementClick,p=l.actions.internal.nextVideoAnnouncementAuto,x=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{n()&&(u(!1),p())},w=()=>{e.clickCloseIcon(),x()};Rt(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var T=Fe(),S=fe(T);{var E=V=>{var I=M$(),L=k(fe(I),2),B=_(L),F=_(B),H=_(F,!0);h(F);var U=k(F,2);ba(U,{onClick:w}),h(B);var Z=k(B,2);Z.__click=[L$,u,m];var re=_(Z),G=_(re),be=_(G);let ie;var me=k(be,2);{var pe=ae=>{let Re=g(()=>s()&&n());gd(ae,{get isRunning(){return r(Re)},onTimerEnded:y})};R(me,ae=>{n()&&ae(pe)})}h(G),h(re);var ue=k(re,2),Le=_(ue),Ve=_(Le,!0);h(Le),h(ue),h(Z),h(L),D((ae,Re)=>{ve(H,ae),dt(G,`background-image: url('${e.thumb}')`),ie=se(be,1,"thumb-overlay svelte-jfbaax",null,ie,Re),ve(Ve,e.title)},[()=>Q("end_screen_next_video"),()=>({withOpacity:n()})]),$(V,I)};R(S,V=>{e.isHide||V(E)})}$(t,T),W(),o()}ct(["click"]);import{PlaybackState as $a}from"@vkontakte/videoplayer-core/es2015";import{checkNever as O$}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as Vn}from"@vkontakte/videoplayer-statistics/es2015";var Lf=(t,e)=>Math.min(+(t+e).toFixed(2),1),Mf=(t,e)=>Math.max(+(t-e).toFixed(2),0),mu=(t,e,i)=>{let o=Lf(e,i);e<1&&t.actions.internal.setVolume(o)},vu=(t,e,i)=>{let o=Mf(e,i);e>0&&t.actions.internal.setVolume(o)};var Qs=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var N$=(t,e)=>{e(t)},B$=P('<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 Vf(t,e){var Ue,We;z(e,!0),q(t,D$);let[i,o]=Be(),n=()=>C(me,"$disabledControls$",i),s=()=>C(we,"$isInteractiveTime$",i),l=()=>C(Te,"$showInteractiveTimeIndicatorTooltip$",i),d=()=>C(Z,"$playbackState$",i),a=()=>C(j,"$isEnded$",i),u=()=>C(at,"$doubleForwardAvailable$",i),f=()=>C(M,"$doubleForwardOn$",i),m=()=>C(oe,"$overlayContainer$",i),p=()=>C(re,"$adPlaybackState",i),x=()=>C(G,"$positionExact$",i),y=()=>C(be,"$duration$",i),w=()=>C($e,"$isAudioAvailable$",i),T=()=>C(ie,"$volume$",i),S=()=>C(Ve,"$availablePlaybackRates$",i),E=()=>C(Le,"$currentPlaybackRate$",i),V=()=>C(pe,"$muted$",i),I=()=>C(ue,"$currentSubtitle$",i),L=v(e,"nextButtonActive",3,!1),B=v(e,"prevButtonActive",3,!1),F=Ce(),H=At(),U=F.getLogger().createComponentLog("KeyboardControls component"),Z=F.state.playbackState$,re=F.ads.playbackState,G=F.state.positionExact$,be=F.state.duration$,ie=F.state.volume$,me=F.ui.controls.disabledControls$,pe=F.state.muted$,ue=F.state.currentSubtitle$,Le=F.state.currentPlaybackRate$,Ve=F.state.availablePlaybackRates$,ae=F.ui.contextMenu.openedByHotKey$,Re=F.ui.contextMenu.lastActiveElem$,X=F.ui.contextMenu.visible$,M=F.ui.doubleForwardOn$,at=F.ui.doubleForwardAvailable$,De=F.ui.contextMenu.position$,j=F.state.isEnded$,oe=F.ui.overlayContainer$,Oe=(Ue=F.callbacks)==null?void 0:Ue.onAudioDoesNotExistHint,Ze=(We=F.callbacks)==null?void 0:We.onAudioDisabledHint,$e=F.state.isAudioAvailable$,te=F.state.isAudioDisabled,we=F.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Te}=vo(),Ke=0,it=!0,ht=J(void 0),pt=Se=>(Se!==it&&(it=Se,Ke=0),Ke+=1,(H.controls.seekStepKeyboard+H.controls.seekStepKeyboard*Ke)/1e3),_t=!0,Je=({type:Se,repeat:lt,disableDoubleForward:qe})=>{let bt=()=>{if(!n().has("PLAY_BUTTON"))if(s()&&l()&&Te.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{F.actions.internal.togglePlay();let je="PLAY";d()===$a.PAUSED?je="PAUSE":a()&&(je="REPLAY"),e.showHotKeyHelpers({type:je})}},Qe=Se==="down";if(!u()||qe){Qe&&bt(),_t=!0;return}if(Qe)_t=!1;else if(_t)return;if(Qe){!lt&&e.startDoubleForwardActivationTimer();return}f()||bt(),e.stopDoubleForward(),_t=!0},zt=Se=>{let lt=k1(m());De.set(lt),Re.set(Se.target),ae.set(!0),X.set(!0)},Yt=(Se,lt=!1)=>{var Qi,Pt;let qe=Se.target,bt=(Qi=qe==null?void 0:qe.getAttribute("role"))==null?void 0:Qi.includes("menuitem"),Qe=qe.classList.contains("btn"),je=Se.code;if(Qe&&je==="Space")return!1;let tt=Ah.has(je);if(bt&&tt)return!1;let Vt=!kh.has(je);if(Se.ctrlKey&&Vt||Se.altKey&&Vt||Se.metaKey)return!1;let Wt=bt&&je==="Escape";Ph.has(je)||Wt||e.hideContextMenu();let ai=d()===$a.PLAYING||d()===$a.PAUSED,li=e.isAds&&(p()==="paused"||p()==="playing"),qi=!li&&!n().has("TIMELINE"),ao=Se.shiftKey&&["Digit1","Numpad1"].includes(je);if(!ao&&!(ai||li))return!1;U({message:`key down, code: ${je}, isExternal = ${lt}`});let oi=!1,ft=()=>{oi=!0,lt||Se.preventDefault()};if(ao)return zt(Se),ft(),!0;switch(je){case"KeyJ":case"ArrowLeft":{if(!qi)break;if(Se.ctrlKey||Se.altKey){let nt=F.actions.internal.getPrevEpisode();F.actions.internal.seekToPrevEpisode(nt),nt&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:nt.text}),ft()}else{let nt=Se.shiftKey?pt(!1):H.controls.seekStepKeyboard/1e3,ei=Math.max(x()-nt,0);x()>0&&(F.actions.internal.seekTime(ei,Vn.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:nt.toString()}),ft())}break}case"KeyL":case"ArrowRight":{if(!qi)break;if(Se.ctrlKey||Se.altKey){let nt=F.actions.internal.getNextEpisode();F.actions.internal.seekToNextEpisode(nt),nt&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:nt.text}),ft()}else{let nt=Se.shiftKey?pt(!0):H.controls.seekStepKeyboard/1e3,ei=Math.min(x()+nt,y());Math.round(x())<Math.round(y())&&(F.actions.internal.seekTime(ei,Vn.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:nt.toString()}),ft())}break}case"ArrowUp":{if(Qs({isAudioDisabled:te,audioDisabledHintCallback:Ze,isAudioAvailable:w(),audioIsNotExistHintCallback:Oe,isAds:e.isAds})){let nt=T(),ei=H.controls.volumeStepKeyboard,to=nt<=1;if(mu(F,nt,ei),to){let Ct=Math.round(Lf(nt,ei)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ct}})}}ft();break}case"ArrowDown":{if(Qs({isAudioDisabled:te,audioDisabledHintCallback:Ze,isAudioAvailable:w(),audioIsNotExistHintCallback:Oe,isAds:e.isAds})){let nt=T(),ei=H.controls.volumeStepKeyboard,to=nt>=0;if(vu(F,nt,ei),to){let Ct=Math.round(Mf(nt,ei)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ct}})}}ft();break}case"Comma":{if(Se.shiftKey){if(!f()){F.actions.internal.decrementPlaybackRate();let nt=S().find(ei=>ei.value===E());e.showHotKeyHelpers({type:"RATE_DOWN",text:nt==null?void 0:nt.displayValue}),ft()}}else{if(li||d()!==$a.PAUSED)break;let nt=Math.max(x()-H.controls.seekStepFrame/1e3,0);x()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),F.actions.internal.clearDelayedBufferingCheckTimeout(),F.actions.internal.seekTime(nt,Vn.DOUBLE_TAP),ft())}break}case"Period":{if(Se.shiftKey){if(!f()){F.actions.internal.incrementPlaybackRate();let nt=S().find(ei=>ei.value===E());e.showHotKeyHelpers({type:"RATE_UP",text:nt==null?void 0:nt.displayValue}),ft()}}else{if(li||d()!==$a.PAUSED)break;let nt=Math.min(x()+H.controls.seekStepFrame/1e3,y());x()<y()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),F.actions.internal.clearDelayedBufferingCheckTimeout(),F.actions.internal.seekTime(nt,Vn.DOUBLE_TAP),ft())}break}case"KeyK":case"Space":Je({type:"down",repeat:Se.repeat,disableDoubleForward:"KeyK"===je}),ft();break;case"KeyM":{Qs({isAudioDisabled:te,audioDisabledHintCallback:Ze,isAudioAvailable:w(),audioIsNotExistHintCallback:Oe,isAds:e.isAds})&&(e.showHotKeyHelpers({type:V()?"VOLUME":"MUTE"}),F.actions.internal.toggleMuted()),ft();break}case"KeyF":e.toggleFullscreen(),ft();break;case"KeyC":F.actions.internal.toggleSubtitle(),I().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(Pt=I())==null?void 0:Pt.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),ft();break;case"KeyI":F.actions.internal.togglePictureInPicture(),ft();break;case"Digit1":case"Numpad1":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.1,Vn.DOUBLE_TAP),ft();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.2,Vn.DOUBLE_TAP),ft();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.3,Vn.DOUBLE_TAP),ft();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.4,Vn.DOUBLE_TAP),ft();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.5,Vn.DOUBLE_TAP),ft();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.6,Vn.DOUBLE_TAP),ft();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.7,Vn.DOUBLE_TAP),ft();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.8,Vn.DOUBLE_TAP),ft();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.9,Vn.DOUBLE_TAP),ft();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(0,Vn.DOUBLE_TAP),ft();break;case"Slash":{Se.shiftKey&&H.features.hotKeyMapModal&&(e.showKeyMap(),ft());break}case"KeyN":Se.shiftKey&&L()&&(F.actions.internal.nextVideoClick(),ft());break;case"KeyP":Se.shiftKey&&B()&&(F.actions.internal.prevVideoClick(),ft());break;case"ShiftLeft":case"ShiftRight":ft();break;case"Tab":case"Escape":case"Enter":break;default:O$(je);break}return oi},Zt=Se=>{let lt=Se.code;if(Se.ctrlKey||Se.altKey||Se.metaKey)return;let qe=d()===$a.PLAYING||d()===$a.PAUSED,bt=e.isAds&&(p()==="paused"||p()==="playing");if(qe||bt)switch(lt){case"ShiftLeft":case"ShiftRight":Ke=0;break;case"Space":Je({type:"up"});break}},Xt=Q("aria_label_video_player"),ke=()=>{var Se;return(Se=r(ht))==null?void 0:Se.focus()},Jt=Se=>Se.type==="keydown"?Yt(Se,!0):(Se.type==="keyup"&&Zt(Se),!1);var he=B$();he.__keyup=Zt,he.__keydown=[N$,Yt];var Ee=_(he);ge(Ee,()=>{var Se;return(Se=e.children)!=null?Se:de}),h(he),st(he,Se=>N(ht,Se),()=>r(ht)),D(()=>Ne(he,"aria-label",Xt)),$(t,he);var ce=W({focus:ke,handleExternalKeyboardEvent:Jt});return o(),ce}ct(["keyup","keydown"]);var F$=P('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),H$={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,29 +150,34 @@ Try switching the\xA0quality to\xA0Auto.`},Kh=eb;var $s=new Map;$s.set(Qh.EN,Kh)
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 ya(t,e){q(t,I$);let i=m(e,"style",3,"");var o=E$();B(()=>rt(o,i())),$(t,o)}var k$=Ie('<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 Cf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=k$();Me(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);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ee(2),h(o),$(t,o)}import{noop as ml}from"@vkontakte/videoplayer-shared/es2015";var P$=t=>{t.stopPropagation()},A$=M("<button><!></button>"),M$={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;}
153
+ animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function ya(t,e){q(t,H$);let i=v(e,"style",3,"");var o=F$();D(()=>dt(o,i())),$(t,o)}var U$=xe('<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 Rf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=U$();Ie(o,()=>K({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);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(2),h(o),$(t,o)}import{noop as fl}from"@vkontakte/videoplayer-shared/es2015";var z$=t=>{t.stopPropagation()},W$=P("<button><!></button>"),K$={hash:"svelte-8rib52",code:`.btn.svelte-8rib52 {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;
154
+ /**
155
+ * \u0412 \u0441\u0430\u0444\u0430\u0440\u0438 \u043F\u0440\u0438 \u0445\u043E\u0432\u0435\u0440\u0435 \u043F\u043E\u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u043E\u043F\u0430\u0441\u0438\u0442\u0438, \u0432\u0438\u0434\u0438\u043C\u043E, \u0441\u0430\u0444\u0430\u0440\u0438 \u043A\u0440\u0438\u0432\u043E \u0432\u044B\u043D\u043E\u0441\u0438\u0442 \u044D\u0442\u043E \u0432 \u043E\u0442\u0434\u0435\u043B\u044C\u043D\u044B\u0439 \u0441\u043B\u043E\u0439
156
+ * \u0438\u0437 \u0437\u0430 \u044D\u0442\u043E\u0433\u043E \u043C\u043E\u0436\u0435\u0442 \u043E\u0431\u0440\u0435\u0437\u0430\u0442\u044C\u0441\u044F \u0448\u0438\u043B\u0434\u0438\u043A \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0430, \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u0432\u044B\u043B\u0430\u0437\u0438\u0435\u0442 \u0437\u0430 \u043F\u0440\u0435\u0434\u0435\u043B\u044B \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430.
157
+ * \u0424\u043E\u0440\u0441 \u0432\u044B\u043D\u043E\u0441\u0430 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 \u0432 \u0441\u043B\u043E\u0439, \u043A\u0430\u043A \u0442\u043E \u043F\u043E\u043C\u043E\u0433\u0430\u0435\u0442 \u0441\u0430\u0444\u0430\u0440\u0438.
158
+ */will-change:opacity;}
154
159
 
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;}
160
+ /* \u041D\u0438\u0436\u0435 \u0438\u0434\u0443\u0442 \u0430\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u044B\u0435 \u0438 \u0441\u043F\u0435\u0446\u0438\u0444\u0438\u043A \u043A\u043B\u0430\u0441\u0441\u044B \u0434\u043B\u044F \u043A\u043D\u043E\u043F\u043E\u043A \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043C\u043E\u0436\u043D\u043E \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u044C \u0447\u0435\u0440\u0435\u0437 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 className */.w-max.svelte-8rib52 {width:100%;}.btn--live.svelte-8rib52 {padding:10px 4px;}.btn-jc-l.svelte-8rib52 {justify-content:left;}
156
161
 
157
162
  /* mobile */
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 Ot(t,e){F(e,!0),q(t,M$);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,ml),x=m(e,"focus",3,ml),w=m(e,"blur",3,ml),y=g(()=>p()===ml?null:k=>{k.stopPropagation(),p()(k)}),S=g(()=>x()===ml?null:k=>{k.preventDefault(),x()()}),T=g(()=>w()===ml?null:k=>{k.preventDefault(),w()()});var E=A$();E.__pointerdown=[P$],E.__click=function(...k){var I;(I=r(y))==null||I.apply(this,k)};var V=_(E);ye(V,()=>{var k;return(k=e.children)!=null?k:de}),h(E),ot(E,k=>a(k),()=>a()),B(()=>{var k,I,R,X,D,H,W,ee;te(E,1,`btn ${(k=i())!=null?k:""}`,"svelte-ut3f27"),rt(E,o()||null),E.disabled=(I=n())!=null?I:null,We(E,"aria-hidden",(R=l())!=null?R:null),We(E,"aria-label",(X=d())!=null?X:null),We(E,"aria-keyshortcuts",(D=u())!=null?D:null),We(E,"aria-expanded",(H=f())!=null?H:null),We(E,"data-testid",(W=s())!=null?W:null),We(E,"tabindex",v()),We(E,"role",e.role),We(E,"aria-checked",(ee=e.areaChecked)!=null?ee:null)}),St("focus",E,function(...k){var I;(I=r(S))==null||I.apply(this,k)}),St("blur",E,function(...k){var I;(I=r(T))==null||I.apply(this,k)}),$(t,E),U()}ct(["pointerdown","click"]);var L$=M('<div class="modal-header svelte-ijitjb"><h3 class="modal-title svelte-ijitjb"> </h3> <!></div>'),V$=M('<div class="modal-overlay svelte-ijitjb"><div class="modal-container svelte-ijitjb"><!> <div class="modal-scroll svelte-ijitjb"><div class="modal-main svelte-ijitjb"><!></div></div></div></div>'),R$={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 Tf(t,e){F(e,!0),q(t,R$);let i=m(e,"showHeader",3,!0),o=m(e,"showCloseCross",3,!0),n=K("hotkey_map_modal_close_btn_text");var s=V$(),l=_(s),d=_(l);{var a=p=>{var x=L$(),w=_(x),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)=>{Cf(V,{})},$$slots:{default:!0}})};L(S,E=>{o()&&E(T)})}h(x),B(()=>be(y,e.title)),$(p,x)};L(d,p=>{i()&&p(a)})}var u=P(d,2),f=_(u),v=_(f);ye(v,()=>{var p;return(p=e.children)!=null?p:de}),h(f),h(u),h(l),h(s),$(t,s),U()}var N$=new Set(["BR"]),g1=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;N$.has(l)||(n=s.parentElement)==null||n.removeChild(s)}return e.innerHTML};var O$=M('<li class="hot-key-map-item svelte-quklnq"><span class="hot-key-map-item-description svelte-quklnq"><!></span> <span class="hot-key-map-item-value svelte-quklnq"> </span></li>'),B$=M('<div class="hot-key-map-group svelte-quklnq"><h5 class="hot-key-map-group-title svelte-quklnq"> </h5> <ul class="hot-key-map-group-items svelte-quklnq"></ul></div>'),D$=M('<div class="hot-key-map svelte-quklnq"></div>'),H$={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,
163
+ /* container mobile */.btn-m.svelte-8rib52 {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-8rib52 {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-8rib52 svg {transform:scale(2);}.btn-m--prev.svelte-8rib52,
164
+ .btn-m--next.svelte-8rib52 {position:absolute;width:50px;height:50px;}.btn-m--prev.svelte-8rib52 {right:calc(100% + 35px);}.btn-m--next.svelte-8rib52 {left:calc(100% + 35px);}.btn.svelte-8rib52:disabled {cursor:default;
165
+ /* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}.btn.svelte-8rib52:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-8rib52:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-8rib52 {padding-right:0;}.pl-0.svelte-8rib52 {padding-left:0;}`};function Dt(t,e){z(e,!0),q(t,K$);let i=v(e,"className",3,""),o=v(e,"style",3,""),n=v(e,"disabled",3,void 0),s=v(e,"testId",3,void 0),l=v(e,"ariaHidden",3,void 0),d=v(e,"ariaLabel",3,void 0),a=v(e,"ref",15,void 0),u=v(e,"ariaKeyShortCut",3,void 0),f=v(e,"ariaExpanded",3,void 0),m=v(e,"tabIndex",3,0),p=v(e,"click",3,fl),x=v(e,"focus",3,fl),y=v(e,"blur",3,fl),w=g(()=>p()===fl?null:I=>{I.stopPropagation(),p()(I)}),T=g(()=>x()===fl?null:I=>{I.preventDefault(),x()()}),S=g(()=>y()===fl?null:I=>{I.preventDefault(),y()()});var E=W$();E.__pointerdown=[z$],E.__click=function(...I){var L;(L=r(w))==null||L.apply(this,I)};var V=_(E);ge(V,()=>{var I;return(I=e.children)!=null?I:de}),h(E),st(E,I=>a(I),()=>a()),D(()=>{var I,L,B,F,H,U,Z,re;se(E,1,`btn ${(I=i())!=null?I:""}`,"svelte-8rib52"),dt(E,o()||null),E.disabled=(L=n())!=null?L:null,Ne(E,"aria-hidden",(B=l())!=null?B:null),Ne(E,"aria-label",(F=d())!=null?F:null),Ne(E,"aria-keyshortcuts",(H=u())!=null?H:null),Ne(E,"aria-expanded",(U=f())!=null?U:null),Ne(E,"data-testid",(Z=s())!=null?Z:null),Ne(E,"tabindex",m()),Ne(E,"role",e.role),Ne(E,"aria-checked",(re=e.areaChecked)!=null?re:null)}),kt("focus",E,function(...I){var L;(L=r(T))==null||L.apply(this,I)}),kt("blur",E,function(...I){var L;(L=r(S))==null||L.apply(this,I)}),$(t,E),W()}ct(["pointerdown","click"]);var q$=P('<div class="modal-header svelte-ijitjb"><h3 class="modal-title svelte-ijitjb"> </h3> <!></div>'),Q$=P('<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>'),G$={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 Of(t,e){z(e,!0),q(t,G$);let i=v(e,"showHeader",3,!0),o=v(e,"showCloseCross",3,!0),n=Q("hotkey_map_modal_close_btn_text");var s=Q$(),l=_(s),d=_(l);{var a=p=>{var x=q$(),y=_(x),w=_(y,!0);h(y);var T=k(y,2);{var S=E=>{Dt(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return n},children:(V,I)=>{Rf(V,{})},$$slots:{default:!0}})};R(T,E=>{o()&&E(S)})}h(x),D(()=>ve(w,e.title)),$(p,x)};R(d,p=>{i()&&p(a)})}var u=k(d,2),f=_(u),m=_(f);ge(m,()=>{var p;return(p=e.children)!=null?p:de}),h(f),h(u),h(l),h(s),$(t,s),W()}var j$=new Set(["BR"]),L1=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$=P('<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$=P('<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$=P('<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,
161
166
  .hot-key-map-item.svelte-quklnq {padding:12px 0;margin:0;width:100%;}.hot-key-map-group-items.svelte-quklnq {box-sizing:border-box;list-style:none;padding:0;margin:0;}.hot-key-map-item.svelte-quklnq {box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width: 156px;--videoplayer-hotkey-item-value-padding-left: 24px;}.hot-key-map-item-description.svelte-quklnq {color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px;}.hot-key-map-item-value.svelte-quklnq {color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px;}.hot-key-map-item-description.svelte-quklnq,
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 Ef(t,e){F(e,!1),q(t,H$);let[i,o]=Ue(),n=()=>C(l,"$data",i),s=ke(),{data:l,show:d}=s.ui.modals.hotKeyMap,a=()=>{d.set(!1)};Ur(),Tf(t,{get title(){return n().title},onClose:a,children:(u,f)=>{var v=D$();Mi(v,5,()=>n().groups,({title:p,items:x})=>p,(p,x)=>{let w=()=>r(x).title,y=()=>r(x).items;var S=B$(),T=_(S),E=_(T,!0);h(T);var V=P(T,2);Mi(V,5,y,({description:k,value:I})=>I,(k,I)=>{let R=()=>r(I).description,X=()=>r(I).value;var D=O$(),H=_(D),W=_(H);ql(W,()=>g1(R())),h(H);var ee=P(H,2),j=_(ee,!0);h(ee),h(D),B(()=>be(j,X())),$(k,D)}),h(V),h(S),B(()=>be(E,w())),$(p,S)}),h(v),$(u,v)},$$slots:{default:!0}}),U(),o()}import{noop as z1}from"@vkontakte/videoplayer-shared/es2015";import{ChromecastState as O1,PlaybackState as pm}from"@vkontakte/videoplayer-core/es2015";import"@vkontakte/videoplayer-shared/es2015";var F$=M('<div class="pillow svelte-1oe0j8n"><!></div>'),U$={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 If(t,e){q(t,U$);var i=F$(),o=_(i);ye(o,()=>{var n;return(n=e.children)!=null?n:de}),h(i),$(t,i)}import{VideoQuality as gd}from"@vkontakte/videoplayer-shared/es2015";var z$=Ie('<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 kf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=z$();Me(o,()=>z({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:de}),Ee(2),h(o),$(t,o)}var W$=Ie('<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 Pf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=W$();Me(o,()=>z({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:de}),Ee(2),h(o),$(t,o)}var K$=Ie('<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 Af(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=K$();Me(o,()=>z({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:de}),Ee(),h(o),$(t,o)}var q$=Ie('<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 md(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=q$();Me(o,()=>z({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:de}),Ee(),h(o),$(t,o)}var Q$=Ie('<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 vd(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Q$();Me(o,()=>z({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:de}),Ee(2),h(o),$(t,o)}var cu=t=>{switch(t){case gd.Q_720P:return Af;case gd.Q_1080P:return md;case gd.Q_1440P:return vd;case gd.Q_2160P:return kf;case gd.Q_4320P:return Pf}};var G$=Ie('<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 Mf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=G$();Me(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);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ee(),h(o),$(t,o)}var j$=Ie('<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 Lf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=j$();Me(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);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ee(2),h(o),$(t,o)}var Y$=M('<div aria-hidden="true"><!> <!></div>'),Z$={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 hd(t,e){F(e,!0),q(t,Z$);let i=m(e,"isMobile",3,!1),o=m(e,"currentQuality",3,void 0),n=g(()=>cu(o())),s=g(()=>!!r(n)&&[md,vd].includes(r(n)));var l=qe(),d=he(l);{var a=f=>{Mf(f,{})},u=f=>{var v=Y$();let p;var x=_(v);{var w=T=>{If(T,{children:(E,V)=>{var k=qe(),I=he(k);Li(I,()=>r(n),(R,X)=>{X(R,{})}),$(E,k)},$$slots:{default:!0}})};L(x,T=>{r(n)&&T(w)})}var y=P(x,2);let S=g(()=>r(n)?"settings-icon--labeled":"settings-icon");Lf(y,{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)})]),$(f,v)};L(d,f=>{i()?f(a):f(u,!1)})}$(t,l),U()}var X$=M('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),J$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function vl(t,e){F(e,!0),q(t,J$);let[i,o]=Ue(),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,x=d.ui.t,w=Y(void 0);Qe(()=>{r(w)&&wt(()=>{e.ref$.set(r(w))})});let y=x("aria_label_settings");function S(E){return xt(this,null,function*(){let V=Us(E);n()?v():f(V,Io)})}let T=g(()=>n()?"opened":"");Ot(t,{get className(){return r(T)},testId:"btn-settings",click:S,get ariaLabel(){return y},get ariaExpanded(){return n()},get ref(){return r(w)},set ref(E){O(w,E,!0)},children:(E,V)=>{var k=X$(),I=_(k);hd(I,{get isMobile(){return s()},get currentQuality(){return l()}}),h(k),$(E,k)},$$slots:{default:!0}}),U(),o()}var e2=Ie('<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 Vf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=e2();Me(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);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ee(),h(o),$(t,o)}var t2=Ie('<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 _d(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=t2();Me(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);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ee(),h(o),$(t,o)}function Rf(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 ss.KeyC},role:"button",children:(l,d)=>{var a=qe(),u=he(a);{var f=p=>{Vf(p,{})},v=p=>{_d(p,{})};L(u,p=>{i()?p(f):p(v,!1)})}$(l,a)},$$slots:{default:!0}}),U()}var i2=M('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),o2=M('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),n2={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 bd(t,e){F(e,!0),q(t,n2);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=kt(),d=ae(!1),a=g(()=>xn(e.duration)),u=g(()=>xn(e.position));var f=o2();let v;var p=_(f),x=_(p,!0);h(p);var w=P(p,2);{var y=S=>{var T=i2(),E=_(T,!0);h(T),B(()=>be(E,r(a))),$(S,T)};L(w,S=>{n()&&S(y)})}h(f),_s(f,()=>dl(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),ot(f,S=>s(S),()=>s()),B(S=>{v=te(f,1,"time svelte-sz9er7",null,v,S),be(x,r(u))},[()=>({mobile:i()})]),$(t,f),U()}import{noop as uu}from"@vkontakte/videoplayer-shared/es2015";var r2=Ie('<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>'),s2={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),
167
+ .hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function Nf(t,e){z(e,!1),q(t,J$);let[i,o]=Be(),n=()=>C(l,"$data",i),s=Ce(),{data:l,show:d}=s.ui.modals.hotKeyMap,a=()=>{d.set(!1)};Kr(),Of(t,{get title(){return n().title},onClose:a,children:(u,f)=>{var m=X$();ki(m,5,()=>n().groups,({title:p,items:x})=>p,(p,x)=>{let y=()=>r(x).title,w=()=>r(x).items;var T=Z$(),S=_(T),E=_(S,!0);h(S);var V=k(S,2);ki(V,5,w,({description:I,value:L})=>L,(I,L)=>{let B=()=>r(L).description,F=()=>r(L).value;var H=Y$(),U=_(H),Z=_(U);jl(Z,()=>L1(B())),h(U);var re=k(U,2),G=_(re,!0);h(re),h(H),D(()=>ve(G,F())),$(I,H)}),h(V),h(T),D(()=>ve(E,y())),$(p,T)}),h(m),$(u,m)},$$slots:{default:!0}}),W(),o()}import{noop as n0}from"@vkontakte/videoplayer-shared/es2015";import{ChromecastState as X1,PlaybackState as xm}from"@vkontakte/videoplayer-core/es2015";import"@vkontakte/videoplayer-shared/es2015";var e2=P('<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 Bf(t,e){q(t,t2);var i=e2(),o=_(i);ge(o,()=>{var n;return(n=e.children)!=null?n:de}),h(i),$(t,i)}import{VideoQuality as bd}from"@vkontakte/videoplayer-shared/es2015";var i2=xe('<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 Df(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=i2();Ie(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var n=_(o);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(2),h(o),$(t,o)}var o2=xe('<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 Ff(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=o2();Ie(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var n=_(o);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(2),h(o),$(t,o)}var n2=xe('<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 Hf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=n2();Ie(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var n=_(o);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(),h(o),$(t,o)}var r2=xe('<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 hd(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=r2();Ie(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img"},i));var n=_(o);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(),h(o),$(t,o)}var s2=xe('<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 _d(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=s2();Ie(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img"},i));var n=_(o);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(2),h(o),$(t,o)}var gu=t=>{switch(t){case bd.Q_720P:return Hf;case bd.Q_1080P:return hd;case bd.Q_1440P:return _d;case bd.Q_2160P:return Df;case bd.Q_4320P:return Ff}};var a2=xe('<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 Uf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=a2();Ie(o,()=>K({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);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(),h(o),$(t,o)}var l2=xe('<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 zf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=l2();Ie(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img"},i));var n=_(o);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(2),h(o),$(t,o)}var d2=P('<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 $d(t,e){z(e,!0),q(t,c2);let i=v(e,"isMobile",3,!1),o=v(e,"currentQuality",3,void 0),n=g(()=>gu(o())),s=g(()=>!!r(n)&&[hd,_d].includes(r(n)));var l=Fe(),d=fe(l);{var a=f=>{Uf(f,{})},u=f=>{var m=d2();let p;var x=_(m);{var y=S=>{Bf(S,{children:(E,V)=>{var I=Fe(),L=fe(I);Ai(L,()=>r(n),(B,F)=>{F(B,{})}),$(E,I)},$$slots:{default:!0}})};R(x,S=>{r(n)&&S(y)})}var w=k(x,2);let T=g(()=>r(n)?"settings-icon--labeled":"settings-icon");zf(w,{get"data-testid"(){return r(T)},fill:"var(--btn-color, #fff)"}),h(m),D(S=>p=se(m,1,"icon svelte-8t5w85",null,p,S),[()=>({triple:r(s)})]),$(f,m)};R(d,f=>{i()?f(a):f(u,!1)})}$(t,l),W()}var u2=P('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),p2={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function ml(t,e){z(e,!0),q(t,p2);let[i,o]=Be(),n=()=>C(u,"$settingsMenuVisible",i),s=()=>C(p,"$isMobile",i),l=()=>C(a,"$currentQuality",i),d=Ce(),a=d.state.currentQuality$,u=d.ui.settingsMenu.visible$,f=d.actions.internal.openSettingsMenu,m=d.actions.internal.closeSettingsMenu,p=d.ui.isMobile,x=d.ui.t,y=J(void 0);ze(()=>{r(y)&&Et(()=>{e.ref$.set(r(y))})});let w=x("aria_label_settings");function T(E){return Tt(this,null,function*(){let V=qs(E);n()?m():f(V,yo)})}let S=g(()=>n()?"opened":"");Dt(t,{get className(){return r(S)},testId:"btn-settings",click:T,get ariaLabel(){return w},get ariaExpanded(){return n()},get ref(){return r(y)},set ref(E){N(y,E,!0)},children:(E,V)=>{var I=u2(),L=_(I);$d(L,{get isMobile(){return s()},get currentQuality(){return l()}}),h(I),$(E,I)},$$slots:{default:!0}}),W(),o()}var f2=xe('<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 Wf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=f2();Ie(o,()=>K({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);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(),h(o),$(t,o)}var m2=xe('<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 yd(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=m2();Ie(o,()=>K({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);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(),h(o),$(t,o)}function Kf(t,e){z(e,!0);let i=v(e,"isSubtitlesEnabled",3,!1),n=Ce().ui.t,s=g(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Dt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(s)},get click(){return e.click},get ariaKeyShortCut(){return ds.KeyC},role:"button",children:(l,d)=>{var a=Fe(),u=fe(a);{var f=p=>{Wf(p,{})},m=p=>{yd(p,{})};R(u,p=>{i()?p(f):p(m,!1)})}$(l,a)},$$slots:{default:!0}}),W()}var v2=P('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),g2=P('<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 xd(t,e){z(e,!0),q(t,h2);let i=v(e,"isMobile",3,!1),o=v(e,"isHidden",3,!1),n=v(e,"showDuration",3,!0),s=v(e,"ref",15),l=At(),d=le(!1),a=g(()=>hn(e.duration)),u=g(()=>hn(e.position));var f=g2();let m;var p=_(f),x=_(p,!0);h(p);var y=k(p,2);{var w=T=>{var S=v2(),E=_(S,!0);h(S),D(()=>ve(E,r(a))),$(T,S)};R(y,T=>{n()&&T(w)})}h(f),xs(f,()=>ll(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),st(f,T=>s(T),()=>s()),D(T=>{m=se(f,1,"time svelte-sz9er7",null,m,T),ve(x,r(u))},[()=>({mobile:i()})]),$(t,f),W()}import{noop as hu}from"@vkontakte/videoplayer-shared/es2015";var _2=xe('<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),
163
168
  .icon[data-value='off'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:visible;}.icon[data-value='mid'].svelte-v40k9i .wave2:where(.svelte-v40k9i),
164
- .icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function Ws(t,e){q(t,s2);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=r2();B(()=>{var d;We(l,"data-value",r(s)),We(l,"data-testid",`volume-${(d=r(s))!=null?d:""}-icon`)}),$(t,l)}import{isNonNullable as _1,noop as Mn}from"@vkontakte/videoplayer-shared/es2015";import{noop as Of}from"@vkontakte/videoplayer-shared/es2015";import{noop as l2}from"@vkontakte/videoplayer-shared/es2015";var a2=M('<div class="overlay"><!></div>');function Nf(t,e){F(e,!0);let[i,o]=Ue(),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))};Qe(()=>{u(n())}),Lt(()=>(u(n()),()=>a(n())));var f=a2(),v=_(f);ye(v,()=>{var p;return(p=e.children)!=null?p:de}),h(f),ot(f,p=>O(d,p),()=>r(d)),$(t,f),U(),o()}var d2=M('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),c2=M("<div><!></div> <!>",1),u2={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 xa(t,e){F(e,!0),q(t,u2);let[i,o]=Ue(),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),x=m(e,"placement",3,"top"),w=m(e,"onVisibilityChange",3,l2),y=5,S=Y(void 0),T=Y(void 0),E,V=Y(0),k=Y(0),I=Y(0),R=Y(0),X=kt(),D=ke(),H=D.ui.playerSize,W=D.ui.overlayContainer$;Qe(()=>{wt(()=>{w()(a())})});let ee=D.getLogger().createComponentLog("Tooltip component"),j=()=>{if(!n()||!r(T)||!r(S))return;O(k,y);let Z=n().getBoundingClientRect(),Le=r(S).getBoundingClientRect(),Pe=Le.width,Ke=r(T).clientWidth,lt=s().width,mt=(Pe-Ke)/2,vt=Le.left+u()-Z.left,Ct=vt+mt,Ye=Le.top+f()-Z.top,Ut=Ke/2-y,ti=Ct<8,jt=Ct+Ke>lt-8;ti&&(Ct=8,Ut=vt+Le.width/2-2.5*y),jt&&(Ct=lt-8-Ke,Ut=Le.left-Z.left+Le.width/2-Ct-y),O(I,Ct,!0),O(R,Ye),O(V,Ut,!0)},ue=()=>{!n()||!r(T)||!r(S)||O(k,-y)},oe=()=>{if(!n()||!r(T)||!r(S))return;O(V,y);let Z=n().getBoundingClientRect(),Le=r(S).getBoundingClientRect(),Pe=Le.height,Ke=r(T).clientHeight,lt=(Pe-Ke)/2+Ke,mt=Le.left+u()-Z.left-r(T).clientWidth,vt=2,Ct=mt-y;Ct<8&&(Ct=8);let Ut=Le.top+f()-Z.top+lt,ti=vt-lt/2,jt=vt-y;O(I,Ct,!0),O(R,Ut),O(k,ti),O(V,jt)},pe=()=>{!n()||!r(T)||!r(S)||O(V,-y)},$e=()=>{switch(x()){case"top":j();break;case"bottom":ue();break;case"left":oe();break;default:pe()}},me=()=>{try{if(!n()||!r(S))return;$e(),a(!0)}catch(Z){ee({message:String(Z)})}},Ae=()=>{a(!1)},re=()=>{r(T)&&(E||(E=window.setTimeout(me,X.controls.hideTimeoutTooltips)),a()&&me())},Ne=()=>{Ae(),window.clearTimeout(E),E=void 0},se=(Z,Le,Pe)=>{let Ke="";switch(x()){case"top":Ke=`transform: translate(${Z}px, ${Le}px);`;break;case"bottom":Ke=`transform: translate(${Z}px, ${Le}px); top: auto; bottom: 100%;`;break;case"left":Ke=`transform: translate(${Z}px, ${Le}px); left: 0; right: auto;`;break;default:Ke=`transform: translate(${Z}px, ${Le}px);`}return Ke+=` max-width: ${p()===void 0?"auto":`${p()}px`};`,Ke+=` opacity: ${Pe?1:0}; visibility: ${Pe?"visible":"hidden"}`,Ke},N=(Z,Le)=>{let Pe="";switch(x()){case"top":Pe=`transform: translate(${Z}px, ${Le}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Pe=`transform: translate(${Z}px, ${Le}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Pe=`transform: translate(${Z}px, ${Le}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Pe=`transform: translate(${Z}px, ${Le}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Pe},De=g(()=>se(r(I),r(R),a())),le=g(()=>N(r(V),r(k)));Lt($e),Zo(()=>window.clearTimeout(E));var ge=c2(),ie=he(ge);let ve;ie.__mousemove=re,ie.__mousedown=Ne,ie.__mouseup=function(...Z){var Le;(Le=e.disableMouseupTooltipShow?void 0:re)==null||Le.apply(this,Z)};var Fe=_(ie);ye(Fe,()=>{var Z;return(Z=e.children)!=null?Z:de}),h(ie),ot(ie,Z=>O(S,Z),()=>r(S));var fe=P(ie,2);{var st=Z=>{Nf(Z,{children:(Le,Pe)=>{var Ke=d2(),lt=_(Ke),mt=_(lt,!0);h(lt);var vt=P(lt,2);h(Ke),ot(Ke,Ct=>O(T,Ct),()=>r(T)),B(()=>{rt(Ke,r(De)),be(mt,d()),rt(vt,r(le))}),$(Le,Ke)},$$slots:{default:!0}})};L(fe,Z=>{d()&&!l()&&Z(st)})}B(Z=>ve=te(ie,1,"tooltip-wrapper svelte-hxlyne",null,ve,Z),[()=>({"full-width":v()})]),St("mouseenter",ie,re),St("mouseleave",ie,Ne),$(t,ge),U(),o()}ct(["mousemove","mousedown","mouseup"]);var h1=t=>{t.stopPropagation()},p2=M("<div><!></div>"),f2={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 Po(t,e){F(e,!0),q(t,f2);let[i,o]=Ue(),n=()=>C(u,"$isGraphOpened$",i),s=()=>C(a,"$isMobile",i),l=ke(),d=vo(),a=l.ui.isMobile,u=d.graphIsOpened$,f=l.ui.t,v=m(e,"className",3,""),p=m(e,"disabled",3,!1),x=m(e,"hasTooltip",3,!0),w=m(e,"ref",15,void 0),y=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,Of),X=m(e,"initialTranslateXPx",3,0),D=m(e,"initialTranslateYPx",19,()=>-18),H=m(e,"mouseEnter",3,Of),W=m(e,"mouseLeave",3,Of),ee=g(()=>p()?n()?f("tooltip_disabled_when_graph_on"):k():T());var j=p2();j.__pointerdown=[h1],j.__click=[h1];var ue=_(j);{var oe=$e=>{xa($e,{get content(){return r(ee)},get translateX(){return X()},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:(me,Ae)=>{var re=qe(),Ne=he(re);ye(Ne,()=>{var se;return(se=e.children)!=null?se:de}),$(me,re)},$$slots:{default:!0}})},pe=$e=>{var me=qe(),Ae=he(me);ye(Ae,()=>{var re;return(re=e.children)!=null?re:de}),$($e,me)};L(ue,$e=>{x()&&r(ee)&&!s()?$e(oe):$e(pe,!1)})}h(j),ot(j,$e=>w($e),()=>w()),B(()=>{var $e;te(j,1,`btn-container ${($e=v())!=null?$e:""}`,"svelte-p9r045"),We(j,"aria-hidden",I()||null)}),St("mouseenter",j,function(...$e){var me;(me=H())==null||me.apply(this,$e)}),St("mouseleave",j,function(...$e){var me;(me=W())==null||me.apply(this,$e)}),rr(j,"clientWidth",y),$(t,j),U(),o()}ct(["pointerdown","click"]);var m2=Ie('<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 $d(t,e){"use strict";var i=m2(),o=_(i),n=P(o);h(i),B(()=>{We(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),We(o,"fill-opacity",e.completed?1:.24),We(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),$(t,i)}var v2=M("<div><!></div>"),g2={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 Bf(t,e){F(e,!0),q(t,g2);let o=ke().ui.t,n=Y(0),s=g(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Po(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=v2();let u;var f=_(a);let v=g(()=>!!e.videoEpisode.completed);$d(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})]),rr(a,"clientWidth",p=>O(n,p)),$(l,a)},$$slots:{default:!0}}),U()}var h2=M('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),_2=M('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),b2={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,
169
+ .icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function Gs(t,e){q(t,b2);let i=v(e,"volume",3,1),o=v(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();D(()=>{var d;Ne(l,"data-value",r(s)),Ne(l,"data-testid",`volume-${(d=r(s))!=null?d:""}-icon`)}),$(t,l)}import{isNonNullable as V1,noop as Rn}from"@vkontakte/videoplayer-shared/es2015";import{noop as Qf}from"@vkontakte/videoplayer-shared/es2015";import{noop as y2}from"@vkontakte/videoplayer-shared/es2015";var $2=P('<div class="overlay"><!></div>');function qf(t,e){z(e,!0);let[i,o]=Be(),n=()=>C(l,"$overlayContainer$",i),l=Ce().ui.overlayContainer$,d=J(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))};ze(()=>{u(n())}),Rt(()=>(u(n()),()=>a(n())));var f=$2(),m=_(f);ge(m,()=>{var p;return(p=e.children)!=null?p:de}),h(f),st(f,p=>N(d,p),()=>r(d)),$(t,f),W(),o()}var x2=P('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),w2=P("<div><!></div> <!>",1),S2={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 xa(t,e){z(e,!0),q(t,S2);let[i,o]=Be(),n=()=>C(Z,"$overlayContainer$",i),s=()=>C(U,"$containerSize",i),l=v(e,"isMobile",3,!1),d=v(e,"content",3,""),a=v(e,"active",15,!1),u=v(e,"translateX",3,0),f=v(e,"translateY",3,0),m=v(e,"isFullWidthWrapper",3,!1),p=v(e,"maxTooltipWidth",3,void 0),x=v(e,"placement",3,"top"),y=v(e,"onVisibilityChange",3,y2),w=5,T=J(void 0),S=J(void 0),E,V=J(0),I=J(0),L=J(0),B=J(0),F=At(),H=Ce(),U=H.ui.playerSize,Z=H.ui.overlayContainer$;ze(()=>{Et(()=>{y()(a())})});let re=H.getLogger().createComponentLog("Tooltip component"),G=()=>{if(!n()||!r(S)||!r(T))return;N(I,w);let te=n().getBoundingClientRect(),we=r(T).getBoundingClientRect(),Te=we.width,Ke=r(S).clientWidth,it=s().width,ht=(Te-Ke)/2,pt=we.left+u()-te.left,_t=pt+ht,Je=we.top+f()-te.top,zt=Ke/2-w,Yt=_t<8,Zt=_t+Ke>it-8;Yt&&(_t=8,zt=pt+we.width/2-2.5*w),Zt&&(_t=it-8-Ke,zt=we.left-te.left+we.width/2-_t-w),N(L,_t,!0),N(B,Je),N(V,zt,!0)},be=()=>{!n()||!r(S)||!r(T)||N(I,-w)},ie=()=>{if(!n()||!r(S)||!r(T))return;N(V,w);let te=n().getBoundingClientRect(),we=r(T).getBoundingClientRect(),Te=we.height,Ke=r(S).clientHeight,it=(Te-Ke)/2+Ke,ht=we.left+u()-te.left-r(S).clientWidth,pt=2,_t=ht-w;_t<8&&(_t=8);let zt=we.top+f()-te.top+it,Yt=pt-it/2,Zt=pt-w;N(L,_t,!0),N(B,zt),N(I,Yt),N(V,Zt)},me=()=>{!n()||!r(S)||!r(T)||N(V,-w)},pe=()=>{switch(x()){case"top":G();break;case"bottom":be();break;case"left":ie();break;default:me()}},ue=()=>{try{if(!n()||!r(T))return;pe(),a(!0)}catch(te){re({message:String(te)})}},Le=()=>{a(!1)},Ve=()=>{r(S)&&(E||(E=window.setTimeout(ue,F.controls.hideTimeoutTooltips)),a()&&ue())},ae=()=>{Le(),window.clearTimeout(E),E=void 0},Re=(te,we,Te)=>{let Ke="";switch(x()){case"top":Ke=`transform: translate(${te}px, ${we}px);`;break;case"bottom":Ke=`transform: translate(${te}px, ${we}px); top: auto; bottom: 100%;`;break;case"left":Ke=`transform: translate(${te}px, ${we}px); left: 0; right: auto;`;break;default:Ke=`transform: translate(${te}px, ${we}px);`}return Ke+=` max-width: ${p()===void 0?"auto":`${p()}px`};`,Ke+=` opacity: ${Te?1:0}; visibility: ${Te?"visible":"hidden"}`,Ke},X=(te,we)=>{let Te="";switch(x()){case"top":Te=`transform: translate(${te}px, ${we}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Te=`transform: translate(${te}px, ${we}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Te=`transform: translate(${te}px, ${we}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Te=`transform: translate(${te}px, ${we}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Te},M=g(()=>Re(r(L),r(B),a())),at=g(()=>X(r(V),r(I)));Rt(pe),on(()=>window.clearTimeout(E));var De=w2(),j=fe(De);let oe;j.__mousemove=Ve,j.__mousedown=ae,j.__mouseup=function(...te){var we;(we=e.disableMouseupTooltipShow?void 0:Ve)==null||we.apply(this,te)};var Oe=_(j);ge(Oe,()=>{var te;return(te=e.children)!=null?te:de}),h(j),st(j,te=>N(T,te),()=>r(T));var Ze=k(j,2);{var $e=te=>{qf(te,{children:(we,Te)=>{var Ke=x2(),it=_(Ke),ht=_(it,!0);h(it);var pt=k(it,2);h(Ke),st(Ke,_t=>N(S,_t),()=>r(S)),D(()=>{dt(Ke,r(M)),ve(ht,d()),dt(pt,r(at))}),$(we,Ke)},$$slots:{default:!0}})};R(Ze,te=>{d()&&!l()&&te($e)})}D(te=>oe=se(j,1,"tooltip-wrapper svelte-hxlyne",null,oe,te),[()=>({"full-width":m()})]),kt("mouseenter",j,Ve),kt("mouseleave",j,ae),$(t,De),W(),o()}ct(["mousemove","mousedown","mouseup"]);var M1=t=>{t.stopPropagation()},C2=P("<div><!></div>"),T2={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 wo(t,e){z(e,!0),q(t,T2);let[i,o]=Be(),n=()=>C(u,"$isGraphOpened$",i),s=()=>C(a,"$isMobile",i),l=Ce(),d=vo(),a=l.ui.isMobile,u=d.graphIsOpened$,f=l.ui.t,m=v(e,"className",3,""),p=v(e,"disabled",3,!1),x=v(e,"hasTooltip",3,!0),y=v(e,"ref",15,void 0),w=v(e,"width",15,void 0),T=v(e,"isFullWidthTooltip",3,!0),S=v(e,"tooltipContent",3,""),E=v(e,"tooltipActive",3,!1),V=v(e,"tooltipPlacement",3,"top"),I=v(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),L=v(e,"isAriaHidden",3,!1),B=v(e,"onTooltipVisibilityChange",3,Qf),F=v(e,"initialTranslateXPx",3,0),H=v(e,"initialTranslateYPx",19,()=>-18),U=v(e,"mouseEnter",3,Qf),Z=v(e,"mouseLeave",3,Qf),re=g(()=>p()?n()?f("tooltip_disabled_when_graph_on"):I():S());var G=C2();G.__pointerdown=[M1],G.__click=[M1];var be=_(G);{var ie=pe=>{xa(pe,{get content(){return r(re)},get translateX(){return F()},get translateY(){return H()},get isFullWidthWrapper(){return T()},get active(){return E()},get placement(){return V()},get onVisibilityChange(){return B()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},children:(ue,Le)=>{var Ve=Fe(),ae=fe(Ve);ge(ae,()=>{var Re;return(Re=e.children)!=null?Re:de}),$(ue,Ve)},$$slots:{default:!0}})},me=pe=>{var ue=Fe(),Le=fe(ue);ge(Le,()=>{var Ve;return(Ve=e.children)!=null?Ve:de}),$(pe,ue)};R(be,pe=>{x()&&r(re)&&!s()?pe(ie):pe(me,!1)})}h(G),st(G,pe=>y(pe),()=>y()),D(()=>{var pe;se(G,1,`btn-container ${(pe=m())!=null?pe:""}`,"svelte-p9r045"),Ne(G,"aria-hidden",L()||null)}),kt("mouseenter",G,function(...pe){var ue;(ue=U())==null||ue.apply(this,pe)}),kt("mouseleave",G,function(...pe){var ue;(ue=Z())==null||ue.apply(this,pe)}),ur(G,"clientWidth",w),$(t,G),W(),o()}ct(["pointerdown","click"]);var E2=xe('<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=E2(),o=_(i),n=k(o);h(i),D(()=>{Ne(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Ne(o,"fill-opacity",e.completed?1:.24),Ne(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),$(t,i)}var I2=P("<div><!></div>"),k2={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 Gf(t,e){z(e,!0),q(t,k2);let o=Ce().ui.t,n=J(0),s=g(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));wo(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 m=g(()=>!!e.videoEpisode.completed);wd(f,{get completed(){return r(m)}}),h(a),D(p=>{u=se(a,1,"interactive-episode-icon svelte-bklhpe",null,u,p),dt(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),ur(a,"clientWidth",p=>N(n,p)),$(l,a)},$$slots:{default:!0}}),W()}var A2=P('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),P2=P('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),L2={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,
165
170
  .video-episode-loaded.svelte-1u6kv8l,
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 Df(t,e){q(t,b2);let i=m(e,"videoEpisodes",19,()=>[]);var o=_2();Mi(o,21,i,n=>n.from,(n,s)=>{var l=h2();let d;var a=_(l),u=_(a),f=P(u,2);let v;h(a),h(l),B((p,x)=>{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,x),rt(f,`transform: translateX(${r(s).filledWidth/r(s).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),$(n,l)}),h(o),$(t,o)}function $2(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 y2(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 x2(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 w2(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function S2(t,e,i,o,n,s){let l=e(t.clientX,t.clientY);i()&&o()(l),O(n,!1),s()(l)}var C2=M("<div></div>"),T2=M('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),E2=M('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),I2={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 {
171
+ .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 jf(t,e){q(t,L2);let i=v(e,"videoEpisodes",19,()=>[]);var o=P2();ki(o,21,i,n=>n.from,(n,s)=>{var l=A2();let d;var a=_(l),u=_(a),f=k(u,2);let m;h(a),h(l),D((p,x)=>{d=se(l,1,"video-episode svelte-1u6kv8l",null,d,p),dt(l,`left: ${r(s).from}%; width: ${r(s).width}%`),dt(u,`transform: translateX(${r(s).loadedWidth/r(s).width*100}%)`),m=se(f,1,"video-episode-filled svelte-1u6kv8l",null,m,x),dt(f,`transform: translateX(${r(s).filledWidth/r(s).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),$(n,l)}),h(o),$(t,o)}function M2(t,e,i,o,n,s,l){if(t.preventDefault(),e()&&N(i,e().getBoundingClientRect(),!0),o()||r(n)||!e())return;N(n,!0);let d=s(t.clientX,t.clientY);l()(d),e().setPointerCapture(t.pointerId)}function V2(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 R2(t,e,i,o,n){if(t.preventDefault(),e()||!r(i))return;N(i,!1);let s=o(t.clientX,t.clientY);n()(s)}function O2(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),N(n,!1),s()(l)}var B2=P("<div></div>"),D2=P('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),F2=P('<!> <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 {
167
172
  /* 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,
168
173
  .slider.square.svelte-1tpemng > .bars:where(.svelte-1tpemng),
169
174
  .slider.square.svelte-1tpemng .loaded:where(.svelte-1tpemng),
170
175
  .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),
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 wa(t,e){F(e,!0),q(t,I2);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),x=m(e,"disabled",3,!1),w=m(e,"hideHandel",3,!1),y=m(e,"onPointerDown",3,Mn),S=m(e,"onHandleMove",3,Mn),T=m(e,"onPointerUp",3,Mn),E=m(e,"onPointerEnter",3,Mn),V=m(e,"onPointerMove",3,Mn),k=m(e,"onPointerLeave",3,Mn),I=m(e,"onMouseEnter",3,Mn),R=m(e,"onMouseLeave",3,Mn),X=m(e,"onWheelUp",3,Mn),D=m(e,"onWheelDown",3,Mn),H=m(e,"onWheelLeft",3,Mn),W=m(e,"onWheelRight",3,Mn),ee=m(e,"onDisabledClick",3,Mn),j=m(e,"loadedProgress",3,0),ue=m(e,"filledProgress",3,0),oe=m(e,"handleProgress",3,0),pe=m(e,"ariaLabel",3,""),$e=m(e,"ariaValueMin",3,void 0),me=m(e,"ariaValueMax",3,void 0),Ae=m(e,"ariaValueNow",3,void 0),re=m(e,"ariaValueText",3,""),Ne=m(e,"onContextMenu",3,Mn),se=kt(),N=Y(void 0),De=Y(!1),le=g(()=>{var ce;return(ce=me())!=null?ce:0}),ge=g(()=>{var ce;return _1(f())&&((ce=f()[f().length-1])==null?void 0:ce.time)<r(le)}),ie=g(()=>_1(f())&&f().length&&r(ge)&&r(le)?Ke(j()*100,ue()*100):[]);function ve(ce){if(ce.preventDefault(),i()&&O(N,i().getBoundingClientRect(),!0),x())return;let Be=Le(ce.clientX,ce.clientY),ze=Pe(ce.clientX);E()(Be,ze,r(N).width)}function Fe(ce){ce.preventDefault(),!x()&&k()()}function fe(){I()()}function st(){R()()}function Z(ce){x()||v()&&(ce.preventDefault(),ce.deltaY<0?X()():ce.deltaY>0?D()():ce.deltaX>0?W()():H()())}function Le(ce,Be){return l()?Math.max(0,Math.min(1,(r(N).height-(Be-r(N).top))/r(N).height)):Math.min(Math.max(ce-r(N).x,0),r(N).width)/r(N).width}function Pe(ce){return Math.min(Math.max(ce-r(N).x,0),r(N).width)}function Ke(ce,Be){let ze=se.features.episodesClustering&&!p()?se.episodeMinWidthPc:0,Re=[],je=f()[0].time/r(le)*100,He=0,Xe=0;for(let tt=1;tt<f().length;tt++)He=f()[tt].time/r(le)*100,He-je>ze&&(Re.push({from:je,width:Math.max(0,He-je),loadedWidth:Math.max(0,Math.min(He,ce)-je),filledWidth:Math.max(0,Math.min(He,Be)-je),interactive:f()[tt-1].interactive,completed:f()[tt-1].completed}),je=f()[tt].time/r(le)*100,Xe++);let Pt={from:je,width:Math.max(0,100-je),loadedWidth:Math.max(0,Math.min(ce,100)-je),filledWidth:Math.max(0,Math.min(Be,100)-je),interactive:f()[Xe].interactive,completed:f()[Xe].completed};100-je<ze?(Xe-=1,Re[Xe].width+=100-je,Re[Xe].loadedWidth+=Math.max(0,Math.min(ce,100)-je),Re[Xe].filledWidth+=Math.max(0,Math.min(Be,100)-je)):Re[Xe]=Pt;let Kt=f()[0].time;if(Kt!==0){let tt=Kt/r(le)*100;Re.unshift({from:0,width:tt,loadedWidth:Math.min(tt,ce),filledWidth:Math.min(tt,Be)})}return Re}function lt(ce){return Math.max(0,Math.min(100,ce*100))}var mt=E2(),vt=he(mt);{var Ct=ce=>{var Be=C2();let ze;Mi(Be,21,()=>r(ie),Re=>Re.from,(Re,je)=>{var He=qe(),Xe=he(He);{var Pt=Kt=>{Bf(Kt,{get videoEpisode(){return r(je)},get disabled(){return x()}})};L(Xe,Kt=>{r(je).interactive&&Kt(Pt)})}$(Re,He)}),h(Be),B(Re=>ze=te(Be,1,"interactive-icons svelte-1tpemng",null,ze,Re),[()=>({mobile:a(),hidden:a()&&!r(De)})]),$(ce,Be)};L(vt,ce=>{p()&&ce(Ct)})}var Ye=P(vt,2);let Ut;Ye.__pointerdown=[$2,i,N,x,De,Le,y],Ye.__pointermove=[y2,x,Le,Pe,V,N,De,S],Ye.__pointerup=[x2,x,De,Le,T],Ye.__click=[w2,x,ee,Le],Ye.__contextmenu=[S2,Le,x,ee,De,Ne];var ti=_(Ye);{var jt=ce=>{Df(ce,{get videoEpisodes(){return r(ie)},get disabled(){return x()},get isMobile(){return a()}})},Wt=ce=>{var Be=T2(),ze=_(Be),Re=P(ze,2);let je;h(Be),B((He,Xe,Pt)=>{rt(ze,He),je=te(Re,1,"filled svelte-1tpemng",null,je,Xe),rt(Re,Pt)},[()=>`transform: translateX(${lt(j())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${lt(ue())}%);`]),$(ce,Be)};L(ti,ce=>{r(ie).length?ce(jt):ce(Wt,!1)})}var ne=P(ti,2);let Ht;var Se=_(ne);let _e;h(ne),h(Ye),ot(Ye,ce=>i(ce),()=>i()),B((ce,Be,ze,Re)=>{var je,He;Ut=te(Ye,1,`slider ${(je=o())!=null?je:""}`,"svelte-1tpemng",Ut,ce),We(Ye,"aria-label",pe()),We(Ye,"aria-valuemin",$e()),We(Ye,"aria-valuemax",me()),We(Ye,"aria-valuenow",Ae()),We(Ye,"aria-valuetext",re()),We(Ye,"data-testid",(He=n())!=null?He:null),Ht=te(ne,1,"handleWrap svelte-1tpemng",null,Ht,Be),rt(ne,ze),_e=te(Se,1,"handle svelte-1tpemng",null,_e,Re)},[()=>({disabled:x(),"slider-dragging":r(De),hidden:s(),"slider-vertical":l(),"no-handle":w(),square:u()}),()=>({hidden:w()}),()=>`transform: translateX(${lt(oe())}%);`,()=>({"active-live":d()})]),St("pointerenter",Ye,ve),St("pointerleave",Ye,Fe),St("mouseenter",Ye,fe),St("mouseleave",Ye,st),St("wheel",Ye,Z),$(t,mt),U()}ct(["pointerdown","pointermove","pointerup","click","contextmenu"]);var to=(t,e)=>pa[t]>=pa[e],b1=(t,e)=>pa[t]<pa[e],Ks=(t,e)=>pa[t]<=pa[e],$1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var P2=M("<div><!></div>"),A2=M("<div><!> <!></div>"),M2={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 Hf(t,e){var Z,Le;F(e,!0),q(t,M2);let[i,o]=Ue(),n=()=>C(E,"$isAudioAvailable$",i),s=()=>C(v,"$muted$",i),l=()=>C(f,"$volume$",i),d=()=>C(y,"$currentGridType$",i),a=ke(),u=kt(),f=a.state.volume$,v=a.state.muted$,{setVolume:p,startVolumeChanging:x,stopVolumeChanging:w}=a.actions.internal,y=a.ui.currentGridType$,S=(Z=a.callbacks)==null?void 0:Z.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,X=g(()=>e.isAds||n()),D=g(()=>!r(X)||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")),ee=g(()=>r(D)?k("tooltip_volume"):k("tooltip_volume_muted")),j=g(()=>r(D)?0:l()),ue=!1,oe=g(()=>e.isAds?!1:V?!T:n()?!1:!S);function pe(Pe){x(),p(Pe)}function $e(){lu(a,l(),u.controls.volumeStepWheel)}function me(){du(a,l(),u.controls.volumeStepWheel)}function Ae(Pe){p(Pe)}function re(Pe){p(Pe),w()}function Ne(){ue=!0}function se(){ue=!1,le()}function N(){clearTimeout(R),O(I,!0)}function De(){le()}function le(){R=window.setTimeout(()=>{ue||O(I,!1)},u.controls.volumeBarTimeout)}function ge(Pe){Pe.preventDefault(),Pe.deltaY<0?$e():Pe.deltaY>0&&me()}var ie=A2();let ve;var Fe=_(ie);xa(Fe,{get content(){return r(W)},translateY:-18,children:(Pe,Ke)=>{let lt=g(()=>r(H)?"btn-volume-vertical":"btn-volume-horizontal");Ot(Pe,{className:"btn-full-opacity",get disabled(){return r(oe)},get testId(){return r(lt)},get ariaLabel(){return r(ee)},get click(){return e.click},get ariaKeyShortCut(){return ss.KeyM},role:"button",children:(mt,vt)=>{Ws(mt,{get volume(){return l()},get muted(){return r(D)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var fe=P(Fe,2);{var st=Pe=>{var Ke=P2();let lt;var mt=_(Ke);let vt=g(()=>r(H)?"volumeBar-slider-vertical":""),Ct=g(()=>r(H)&&!r(I)),Ye=g(()=>r(H)?Ne:uu),Ut=g(()=>r(H)?se:uu),ti=g(()=>Math.round(r(j)*100)),jt=g(()=>`${Math.round(r(j)*100)}%`),Wt=g(()=>r(H)?"volume-slider-vertical":"volume-slider");wa(mt,{get className(){return r(vt)},get isHidden(){return r(Ct)},get isVertical(){return r(H)},withWheelHandler:!0,onWheelUp:$e,onWheelDown:me,onPointerDown:pe,onHandleMove:Ae,onPointerUp:re,get onPointerEnter(){return r(Ye)},get onPointerLeave(){return r(Ut)},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(jt)},get filledProgress(){return r(j)},get handleProgress(){return r(j)},get testId(){return r(Wt)}}),h(Ke),B(ne=>lt=te(Ke,1,"volumeBar svelte-1auih1j",null,lt,ne),[()=>({"volumeBar-vertical":r(H)})]),$(Pe,Ke)};L(fe,Pe=>{r(X)&&Pe(st)})}h(ie),B(Pe=>ve=te(ie,1,"volumeBar-container svelte-1auih1j",null,ve,Pe),[()=>({vertical:r(H)})]),St("mouseenter",ie,function(...Pe){var Ke;(Ke=r(H)?N:uu)==null||Ke.apply(this,Pe)}),St("mouseleave",ie,function(...Pe){var Ke;(Ke=r(H)?De:uu)==null||Ke.apply(this,Pe)}),St("wheel",ie,ge),$(t,ie),U(),o()}import{noop as R2}from"@vkontakte/videoplayer-shared/es2015";var L2=Ie('<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 Ff(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=L2();Me(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);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ee(),h(o),$(t,o)}var V2={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
172
- svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function Uf(t,e){q(t,V2);let i=m(e,"isFullscreen",8,!1),o=Br(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Ff(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function yd(t,e){F(e,!0);let i=m(e,"isFullscreen",3,!1),o=m(e,"click",3,R2),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=Us(u);s.set(f),o()()},get ariaKeyShortCut(){return ss.KeyF},role:"button",children:(u,f)=>{Uf(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),U()}var N2=Ie('<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 zf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=N2();Me(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);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ee(),h(o),$(t,o)}var O2=Ie('<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 Wf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=O2();Me(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);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ee(4),h(o),$(t,o)}var B2={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
176
+ .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 wa(t,e){z(e,!0),q(t,H2);let i=v(e,"ref",15,void 0),o=v(e,"className",3,""),n=v(e,"testId",3,void 0),s=v(e,"isHidden",3,!1),l=v(e,"isVertical",3,!1),d=v(e,"isActiveLive",3,!1),a=v(e,"isMobile",3,!1),u=v(e,"squareBorders",3,!1),f=v(e,"videoEpisodes",19,()=>[]),m=v(e,"withWheelHandler",3,!1),p=v(e,"isInteractive",3,!1),x=v(e,"disabled",3,!1),y=v(e,"hideHandel",3,!1),w=v(e,"onPointerDown",3,Rn),T=v(e,"onHandleMove",3,Rn),S=v(e,"onPointerUp",3,Rn),E=v(e,"onPointerEnter",3,Rn),V=v(e,"onPointerMove",3,Rn),I=v(e,"onPointerLeave",3,Rn),L=v(e,"onMouseEnter",3,Rn),B=v(e,"onMouseLeave",3,Rn),F=v(e,"onWheelUp",3,Rn),H=v(e,"onWheelDown",3,Rn),U=v(e,"onWheelLeft",3,Rn),Z=v(e,"onWheelRight",3,Rn),re=v(e,"onDisabledClick",3,Rn),G=v(e,"loadedProgress",3,0),be=v(e,"filledProgress",3,0),ie=v(e,"handleProgress",3,0),me=v(e,"ariaLabel",3,""),pe=v(e,"ariaValueMin",3,void 0),ue=v(e,"ariaValueMax",3,void 0),Le=v(e,"ariaValueNow",3,void 0),Ve=v(e,"ariaValueText",3,""),ae=v(e,"onContextMenu",3,Rn),Re=At(),X=J(void 0),M=J(!1),at=g(()=>{var ce;return(ce=ue())!=null?ce:0}),De=g(()=>{var ce;return V1(f())&&((ce=f()[f().length-1])==null?void 0:ce.time)<r(at)}),j=g(()=>V1(f())&&f().length&&r(De)&&r(at)?Ke(G()*100,be()*100):[]);function oe(ce){if(ce.preventDefault(),i()&&N(X,i().getBoundingClientRect(),!0),x())return;let Ue=we(ce.clientX,ce.clientY),We=Te(ce.clientX);E()(Ue,We,r(X).width)}function Oe(ce){ce.preventDefault(),!x()&&I()()}function Ze(){L()()}function $e(){B()()}function te(ce){x()||m()&&(ce.preventDefault(),ce.deltaY<0?F()():ce.deltaY>0?H()():ce.deltaX>0?Z()():U()())}function we(ce,Ue){return l()?Math.max(0,Math.min(1,(r(X).height-(Ue-r(X).top))/r(X).height)):Math.min(Math.max(ce-r(X).x,0),r(X).width)/r(X).width}function Te(ce){return Math.min(Math.max(ce-r(X).x,0),r(X).width)}function Ke(ce,Ue){let We=Re.features.episodesClustering&&!p()?Re.episodeMinWidthPc:0,Se=[],lt=f()[0].time/r(at)*100,qe=0,bt=0;for(let tt=1;tt<f().length;tt++)qe=f()[tt].time/r(at)*100,qe-lt>We&&(Se.push({from:lt,width:Math.max(0,qe-lt),loadedWidth:Math.max(0,Math.min(qe,ce)-lt),filledWidth:Math.max(0,Math.min(qe,Ue)-lt),interactive:f()[tt-1].interactive,completed:f()[tt-1].completed}),lt=f()[tt].time/r(at)*100,bt++);let Qe={from:lt,width:Math.max(0,100-lt),loadedWidth:Math.max(0,Math.min(ce,100)-lt),filledWidth:Math.max(0,Math.min(Ue,100)-lt),interactive:f()[bt].interactive,completed:f()[bt].completed};100-lt<We?(bt-=1,Se[bt].width+=100-lt,Se[bt].loadedWidth+=Math.max(0,Math.min(ce,100)-lt),Se[bt].filledWidth+=Math.max(0,Math.min(Ue,100)-lt)):Se[bt]=Qe;let je=f()[0].time;if(je!==0){let tt=je/r(at)*100;Se.unshift({from:0,width:tt,loadedWidth:Math.min(tt,ce),filledWidth:Math.min(tt,Ue)})}return Se}function it(ce){return Math.max(0,Math.min(100,ce*100))}var ht=F2(),pt=fe(ht);{var _t=ce=>{var Ue=B2();let We;ki(Ue,21,()=>r(j),Se=>Se.from,(Se,lt)=>{var qe=Fe(),bt=fe(qe);{var Qe=je=>{Gf(je,{get videoEpisode(){return r(lt)},get disabled(){return x()}})};R(bt,je=>{r(lt).interactive&&je(Qe)})}$(Se,qe)}),h(Ue),D(Se=>We=se(Ue,1,"interactive-icons svelte-1tpemng",null,We,Se),[()=>({mobile:a(),hidden:a()&&!r(M)})]),$(ce,Ue)};R(pt,ce=>{p()&&ce(_t)})}var Je=k(pt,2);let zt;Je.__pointerdown=[M2,i,X,x,M,we,w],Je.__pointermove=[V2,x,we,Te,V,X,M,T],Je.__pointerup=[R2,x,M,we,S],Je.__click=[O2,x,re,we],Je.__contextmenu=[N2,we,x,re,M,ae];var Yt=_(Je);{var Zt=ce=>{jf(ce,{get videoEpisodes(){return r(j)},get disabled(){return x()},get isMobile(){return a()}})},Xt=ce=>{var Ue=D2(),We=_(Ue),Se=k(We,2);let lt;h(Ue),D((qe,bt,Qe)=>{dt(We,qe),lt=se(Se,1,"filled svelte-1tpemng",null,lt,bt),dt(Se,Qe)},[()=>`transform: translateX(${it(G())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${it(be())}%);`]),$(ce,Ue)};R(Yt,ce=>{r(j).length?ce(Zt):ce(Xt,!1)})}var ke=k(Yt,2);let Jt;var he=_(ke);let Ee;h(ke),h(Je),st(Je,ce=>i(ce),()=>i()),D((ce,Ue,We,Se)=>{var lt,qe;zt=se(Je,1,`slider ${(lt=o())!=null?lt:""}`,"svelte-1tpemng",zt,ce),Ne(Je,"aria-label",me()),Ne(Je,"aria-valuemin",pe()),Ne(Je,"aria-valuemax",ue()),Ne(Je,"aria-valuenow",Le()),Ne(Je,"aria-valuetext",Ve()),Ne(Je,"data-testid",(qe=n())!=null?qe:null),Jt=se(ke,1,"handleWrap svelte-1tpemng",null,Jt,Ue),dt(ke,We),Ee=se(he,1,"handle svelte-1tpemng",null,Ee,Se)},[()=>({disabled:x(),"slider-dragging":r(M),hidden:s(),"slider-vertical":l(),"no-handle":y(),square:u()}),()=>({hidden:y()}),()=>`transform: translateX(${it(ie())}%);`,()=>({"active-live":d()})]),kt("pointerenter",Je,oe),kt("pointerleave",Je,Oe),kt("mouseenter",Je,Ze),kt("mouseleave",Je,$e),kt("wheel",Je,te),$(t,ht),W()}ct(["pointerdown","pointermove","pointerup","click","contextmenu"]);var Ji=(t,e)=>pa[t]>=pa[e],R1=(t,e)=>pa[t]<pa[e],js=(t,e)=>pa[t]<=pa[e],O1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var z2=P("<div><!></div>"),W2=P("<div><!> <!></div>"),K2={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 Yf(t,e){var te,we;z(e,!0),q(t,K2);let[i,o]=Be(),n=()=>C(E,"$isAudioAvailable$",i),s=()=>C(m,"$muted$",i),l=()=>C(f,"$volume$",i),d=()=>C(w,"$currentGridType$",i),a=Ce(),u=At(),f=a.state.volume$,m=a.state.muted$,{setVolume:p,startVolumeChanging:x,stopVolumeChanging:y}=a.actions.internal,w=a.ui.currentGridType$,T=(te=a.callbacks)==null?void 0:te.onAudioDoesNotExistHint,S=(we=a.callbacks)==null?void 0:we.onAudioDisabledHint,E=a.state.isAudioAvailable$,V=a.state.isAudioDisabled,I=a.ui.t,L=J(!1),B,F=g(()=>e.isAds||n()),H=g(()=>!r(F)||s()||l()===0),U=g(()=>js(d(),"s")),Z=g(()=>r(U)?"":r(H)?!n()||V?I("tooltip_sound_unavailable"):I("tooltip_volume"):I("tooltip_volume_muted")),re=g(()=>r(H)?I("tooltip_volume"):I("tooltip_volume_muted")),G=g(()=>r(H)?0:l()),be=!1,ie=g(()=>e.isAds?!1:V?!S:n()?!1:!T);function me(Te){x(),p(Te)}function pe(){mu(a,l(),u.controls.volumeStepWheel)}function ue(){vu(a,l(),u.controls.volumeStepWheel)}function Le(Te){p(Te)}function Ve(Te){p(Te),y()}function ae(){be=!0}function Re(){be=!1,at()}function X(){clearTimeout(B),N(L,!0)}function M(){at()}function at(){B=window.setTimeout(()=>{be||N(L,!1)},u.controls.volumeBarTimeout)}function De(Te){Te.preventDefault(),Te.deltaY<0?pe():Te.deltaY>0&&ue()}var j=W2();let oe;var Oe=_(j);xa(Oe,{get content(){return r(Z)},translateY:-18,children:(Te,Ke)=>{let it=g(()=>r(U)?"btn-volume-vertical":"btn-volume-horizontal");Dt(Te,{className:"btn-full-opacity",get disabled(){return r(ie)},get testId(){return r(it)},get ariaLabel(){return r(re)},get click(){return e.click},get ariaKeyShortCut(){return ds.KeyM},role:"button",children:(ht,pt)=>{Gs(ht,{get volume(){return l()},get muted(){return r(H)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Ze=k(Oe,2);{var $e=Te=>{var Ke=z2();let it;var ht=_(Ke);let pt=g(()=>r(U)?"volumeBar-slider-vertical":""),_t=g(()=>r(U)&&!r(L)),Je=g(()=>r(U)?ae:hu),zt=g(()=>r(U)?Re:hu),Yt=g(()=>Math.round(r(G)*100)),Zt=g(()=>`${Math.round(r(G)*100)}%`),Xt=g(()=>r(U)?"volume-slider-vertical":"volume-slider");wa(ht,{get className(){return r(pt)},get isHidden(){return r(_t)},get isVertical(){return r(U)},withWheelHandler:!0,onWheelUp:pe,onWheelDown:ue,onPointerDown:me,onHandleMove:Le,onPointerUp:Ve,get onPointerEnter(){return r(Je)},get onPointerLeave(){return r(zt)},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(Yt)},get ariaValueText(){return r(Zt)},get filledProgress(){return r(G)},get handleProgress(){return r(G)},get testId(){return r(Xt)}}),h(Ke),D(ke=>it=se(Ke,1,"volumeBar svelte-1auih1j",null,it,ke),[()=>({"volumeBar-vertical":r(U)})]),$(Te,Ke)};R(Ze,Te=>{r(F)&&Te($e)})}h(j),D(Te=>oe=se(j,1,"volumeBar-container svelte-1auih1j",null,oe,Te),[()=>({vertical:r(U)})]),kt("mouseenter",j,function(...Te){var Ke;(Ke=r(U)?X:hu)==null||Ke.apply(this,Te)}),kt("mouseleave",j,function(...Te){var Ke;(Ke=r(U)?M:hu)==null||Ke.apply(this,Te)}),kt("wheel",j,De),$(t,j),W(),o()}import{noop as G2}from"@vkontakte/videoplayer-shared/es2015";var q2=xe('<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 Zf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=q2();Ie(o,()=>K({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);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(),h(o),$(t,o)}var Q2={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
177
+ svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function Xf(t,e){q(t,Q2);let i=v(e,"isFullscreen",8,!1),o=Fr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Zf(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function Sd(t,e){z(e,!0);let i=v(e,"isFullscreen",3,!1),o=v(e,"click",3,G2),n=Ce(),s=n.ui.isFullscreenOpenedByKeyboard,l=n.ui.t,d=g(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Dt(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:u=>{let f=qs(u);s.set(f),o()()},get ariaKeyShortCut(){return ds.KeyF},role:"button",children:(u,f)=>{Xf(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),W()}var j2=xe('<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 Jf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=j2();Ie(o,()=>K({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);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(),h(o),$(t,o)}var Y2=xe('<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 em(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Y2();Ie(o,()=>K({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);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(4),h(o),$(t,o)}var Z2={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
173
178
  svg[data-testid="vk-video-logo-icon--short"] ._en,
174
179
  svg[data-testid="vk-video-logo-icon"] ._en,
175
- svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function Kf(t,e){q(t,B2);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`);Wf(t,{get width(){return r(l)},height:"24",get viewBox(){return r(a)},get"data-testid"(){return r(d)}})}function xd(t,e){F(e,!0);let[i,o]=Ue(),n=()=>C(x,"$isMobile",i),s=()=>C(p,"$currentGridType$",i),l=()=>C(y,"$isCyrillicRelatedInterface$",i),d=m(e,"ref",15,void 0),a=m(e,"logoClickable",3,!1),u=m(e,"targetUrl",3,""),f=kt(),v=ke(),p=v.ui.currentGridType$,x=v.ui.isMobile,w=v.ui.t,y=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,X;e.click(),(R=v.callbacks)!=null&&R.onLogoClicked?(X=v.callbacks)==null||X.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,X)=>{var D=qe(),H=he(D);{var W=j=>{Kf(j,{get short(){return r(E)},get isCyrillic(){return l()}})},ee=j=>{zf(j,{})};L(H,j=>{r(T)?j(W):j(ee,!1)})}$(R,D)},$$slots:{default:!0}}),U(),o()}import{ChromecastState as z2}from"@vkontakte/videoplayer-core/es2015";import{ChromecastState as y1}from"@vkontakte/videoplayer-core/es2015";var H2=Ie('<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>'),F2=Ie('<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>'),U2={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) {
180
+ svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function tm(t,e){q(t,Z2);let i=v(e,"short",3,!1),o=v(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`);em(t,{get width(){return r(l)},height:"24",get viewBox(){return r(a)},get"data-testid"(){return r(d)}})}function Cd(t,e){z(e,!0);let[i,o]=Be(),n=()=>C(x,"$isMobile",i),s=()=>C(p,"$currentGridType$",i),l=()=>C(w,"$isCyrillicRelatedInterface$",i),d=v(e,"ref",15,void 0),a=v(e,"logoClickable",3,!1),u=v(e,"targetUrl",3,""),f=At(),m=Ce(),p=m.ui.currentGridType$,x=m.ui.isMobile,y=m.ui.t,w=m.isCyrillicRelatedInterface$,T=g(()=>f.logoType==="vk_video"?y("tooltip_vk_video_logo"):y("tooltip_vk_logo")),S=g(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),E=g(()=>(n()||js(s(),"l"))&&r(S)),V=()=>{var B,F;e.click(),(B=m.callbacks)!=null&&B.onLogoClicked?(F=m.callbacks)==null||F.onLogoClicked():u()&&window.open(u(),"_blank")},I=g(()=>!a()),L=g(()=>r(S)?"btn-vk-video-logo":"btn-vk-logo");Dt(t,{className:"btn-full-opacity",get disabled(){return r(I)},click:V,get testId(){return r(L)},get ariaLabel(){return r(T)},get ref(){return d()},set ref(B){d(B)},children:(B,F)=>{var H=Fe(),U=fe(H);{var Z=G=>{tm(G,{get short(){return r(E)},get isCyrillic(){return l()}})},re=G=>{Jf(G,{})};R(U,G=>{r(S)?G(Z):G(re,!1)})}$(B,H)},$$slots:{default:!0}}),W(),o()}import{ChromecastState as iy}from"@vkontakte/videoplayer-core/es2015";import{ChromecastState as N1}from"@vkontakte/videoplayer-core/es2015";var J2=xe('<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>'),ey=xe('<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>'),ty={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) {
176
181
  animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
177
182
  animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
178
183
  animation-name: svelte-8z1bf5-wave3;}
@@ -220,9 +225,9 @@ Try switching the\xA0quality to\xA0Auto.`},Kh=eb;var $s=new Map;$s.set(Qh.EN,Kh)
220
225
  100% {
221
226
  opacity: 1;
222
227
  }
223
- }`};function qf(t,e){F(e,!0),q(t,U2);let i=m(e,"isMobile",3,!1),o=g(()=>e.iconState===y1.CONNECTED),n=g(()=>e.iconState===y1.CONNECTING);var s=qe(),l=he(s);{var d=u=>{var f=H2(),v=_(f),p=_(v),x=_(p);Ee(),h(p);var w=P(p);Ee(),h(v);var y=P(v),S=_(y),T=_(S);h(S),Ee(),h(y),h(f),B(()=>{We(x,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),We(w,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),We(T,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),$(u,f)},a=u=>{var f=F2();let v;var p=_(f),x=P(_(p),5);let w;h(p),h(f),B((y,S)=>{v=te(f,0,"svelte-8z1bf5",null,v,y),w=te(x,0,"svelte-8z1bf5",null,w,S)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),$(u,f)};L(l,u=>{i()?u(d):u(a,!1)})}$(t,s),U()}import{noop as W2}from"@vkontakte/videoplayer-shared/es2015";function wd(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"click",3,W2),l=ke().ui.t,d=g(()=>e.state===z2.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)=>{qf(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),U()}var K2=M('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),q2={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 Qf(t,e){q(t,q2);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=K2(),x=_(p);let w;var y=_(x);ye(y,()=>{var S;return(S=e.children)!=null?S:de}),h(x),ot(x,S=>O(u,S),()=>r(u)),h(p),ot(p,S=>O(a,S),()=>r(a)),B(S=>{rt(p,`transform: translate(${r(v)}px, ${s()}px);`),w=te(x,1,"tooltip svelte-5ygsa2",null,w,S),rt(x,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),$(t,p)}var pu=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var x1=t=>!!(Math.round(Math.abs(t)/90)%2),w1=t=>Math.abs(t)/90%4===1;var Q2=M('<div class="preview svelte-1wqg760"></div>'),G2=M('<div class="time svelte-1wqg760"> </div>'),j2=M('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),Y2={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 Gf(t,e){F(e,!0),q(t,Y2);let[i,o]=Ue(),n=()=>C(w,"$rotateAlpha",i),s=()=>C(y,"$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),x=ke(),w=x.ui.rotateAlpha,y=x.ui.playerSize,S=Y(0),T=Y(0),E=Y(""),V=Y(0),k=Y(0),I=Y(0),R=Y(0),X=g(()=>pu(f(),v(),u())),D=g(()=>x1(n())),H=g(()=>w1(n())),W=g(ue),ee=g(()=>(r(H)?1:-1)*(r(S)/2-r(T)/2)),j=g(()=>r(ee)*-1);Qe(()=>{(ie=>{O(S,ie.width,!0),O(T,ie.height,!0)})(pe())}),Qe(()=>{(ie=>{O(E,ie.imgSrc,!0),O(V,ie.imgWidth,!0),O(k,ie.imgHeight,!0),O(I,ie.imgOffsetX,!0),O(R,ie.imgOffsetY,!0)})($e(f()))});function ue(){var fe;let ie=a()?l.MOBILE:l.DESKTOP,{isVertical:ve}=oe(),Fe=30;return(fe=r(X))!=null&&fe.text&&(Fe+=16),(ve||r(D))&&(Fe+=18,Fe+=50),Math.min(Math.max(s().height-Fe,0),ie)}function oe(){let ie=e.previewThumbsData.frameWidth,ve=e.previewThumbsData.frameHeight,Fe=ve>ie;return{width:ie,height:ve,isHorizontal:!Fe,isVertical:Fe}}function pe(){let{height:ie,isHorizontal:ve,isVertical:Fe,width:fe}=oe();return ve&&(ie=ie/fe*r(W),fe=r(W)),Fe&&(fe=fe/ie*r(W),ie=r(W)),{width:fe,height:ie}}function $e(ie){let ve;e.previewThumbsData.isUV?ve=Math.floor(v()*ie/e.previewThumbsData.frequency):ve=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*ie)));let Fe=Math.floor(ve/e.previewThumbsData.countPerImage),fe=Math.floor(ve%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),st=ve%e.previewThumbsData.countPerRow,Z=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Fe===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 Le=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Fe===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 Pe=r(S)*Le,Ke=r(T)*Z,lt=-st*r(S),mt=-fe*r(T);return{imgSrc:e.previewThumbsData.links[Fe],imgWidth:Pe,imgHeight:Ke,imgOffsetX:lt,imgOffsetY:mt}}var me=j2();let Ae;var re=_(me);{var Ne=ie=>{var ve=Q2();B(()=>rt(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;
224
- transform: rotate(${n()}deg) ${r(D)?`translate(${r(ee)}px, ${r(j)}px)`:""};
225
- `)),$(ie,ve)};L(re,ie=>{r(E)&&ie(Ne)})}var se=P(re,2),N=_(se);{var De=ie=>{var ve=qe(),Fe=he(ve);{var fe=Z=>{var Le=ns();B(Pe=>be(Le,Pe),[()=>K("tooltip_episode_unfinished")]),$(Z,Le)},st=Z=>{var Le=ns();B(()=>be(Le,r(X).text||"")),$(Z,Le)};L(Fe,Z=>{p()&&r(X).completed===!1?Z(fe):Z(st,!1)})}$(ie,ve)};L(N,ie=>{r(X)&&ie(De)})}h(se);var le=P(se,2);{var ge=ie=>{var ve=G2(),Fe=_(ve,!0);h(ve),B(()=>be(Fe,d())),$(ie,ve)};L(le,ie=>{p()||ie(ge)})}h(me),B(ie=>{Ae=te(me,1,"timeline-preview svelte-1wqg760",null,Ae,ie),rt(me,`width: ${r(D)?r(T):r(S)}px;`)},[()=>({mobile:a()})]),$(t,me),U(),o()}var Z2=M('<span class="time svelte-1jr6obn"> </span>'),X2=M("<!> <!>",1),J2={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 jf(t,e){var ce,Be,ze,Re,je;F(e,!0),q(t,J2);let[i,o]=Ue(),n=()=>C(ee,"$interactiveEpisodes$",i),s=()=>C(I,"$duration$",i),l=()=>C(k,"$position$",i),d=()=>C(oe,"$isInteractiveExpectation$",i),a=()=>C(ue,"$isInteractiveTime$",i),u=()=>C(R,"$isLive$",i),f=()=>C(D,"$isMobile",i),v=()=>C(X,"$isActiveLive$",i),p=()=>C(V,"$bufferedProgress$",i),x=()=>C(me,"$disabledControls$",i),w=m(e,"showTimeline",3,!1),y=m(e,"withEpisodes",3,!0),S=m(e,"ref",15,void 0),T=ke(),E=kt(),V=T.state.bufferedProgress$,k=T.state.positionWithScrubbing$,I=T.state.duration$,R=T.state.isLive$,X=T.state.isActiveLive$,D=T.ui.isMobile,H=E.features.episodes&&y()?T.actions.internal.getVideoEpisodes():void 0,W=T.actions.internal.getPreviewThumbsData(),ee=T.state.interactiveEpisodes$,j=T.state.isInteractive,ue=T.state.isInteractiveTime$,oe=T.state.isInteractiveExpectation$,pe=T.actions.internal.correctSeekTimeToInteractive,$e=(ce=T.callbacks)==null?void 0:ce.onDisabledTimelineClick,me=T.ui.controls.disabledControls$,Ae=(ze=(Be=T.callbacks)==null?void 0:Be.uiInfo)==null?void 0:ze.onTimelineMouseEnter,re=(je=(Re=T.callbacks)==null?void 0:Re.uiInfo)==null?void 0:je.onTimelineMouseLeave,Ne=T.ui.t,se=E.features.interactiveResponsiveUi,N=g(()=>j?n():H),De=g(()=>xn(s())),le=g(()=>xn(l())),ge=g(()=>l()/s()),ie=g(()=>d()||a()),ve=Y(!1),Fe=Y(""),fe=Y(0),st=Y(0),Z=Y(0),Le=g(()=>({containerWidth:r(st),translateXPx:r(fe),translateYPx:j&&W?-36:-16,active:r(ve)&&w()&&!r(ie)&&!se,pointer:!E.features.timelinePreview||!W||u()})),Pe=Ne("aria_timeline"),Ke=g(()=>Ne("aria_timeline_value",{position:r(le),duration:r(De)}));function lt(He){return!pe||!j?He:pe(He*s())/s()}function mt(He){T.actions.internal.startScrubbing(lt(He))}function vt(He){a()||T.actions.internal.progressScrubbing(lt(He))}function Ct(He){T.actions.internal.completeScrubbing(lt(He)),O(ve,!1)}function Ye(He,Xe,Pt){jt(He,Xe,Pt),O(ve,!0)}function Ut(He,Xe,Pt){jt(He,Xe,Pt),O(ve,!0)}function ti(){O(ve,!1)}function jt(He,Xe,Pt){O(Z,lt(He),!0),O(fe,Xe,!0),Pt&&O(st,Pt,!0),O(Fe,Wt(He),!0)}function Wt(He){let Xe=xn((u()?1-He:He)*s());return u()?`-${Xe}`:Xe}var ne=X2(),Ht=he(ne);Qf(Ht,bs(()=>r(Le),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(He,Xe)=>{var Pt=qe(),Kt=he(Pt);{var tt=Ti=>{Gf(Ti,{get time(){return r(Fe)},get isMobile(){return f()},get videoEpisodes(){return r(N)},get previewThumbsData(){return W},get progress(){return r(Z)},get duration(){return s()},get isInteractive(){return j}})},bi=Ti=>{var dt=Z2(),qt=_(dt,!0);h(dt),B(()=>be(qt,r(Fe))),$(Ti,dt)};L(Kt,Ti=>{E.features.timelinePreview&&W&&!u()?Ti(tt):Ti(bi,!1)})}$(He,Pt)},$$slots:{default:!0}}));var Se=P(Ht,2);let _e=g(()=>x().has("TIMELINE"));wa(Se,{className:"timeline-slider",get isActiveLive(){return v()},get isMobile(){return f()},get ariaLabel(){return Pe},ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return l()},get ariaValueText(){return r(Ke)},get loadedProgress(){return p()},get filledProgress(){return r(ge)},get handleProgress(){return r(ge)},get videoEpisodes(){return r(N)},onPointerDown:mt,onHandleMove:vt,onPointerMove:Ut,onPointerUp:Ct,onPointerEnter:Ye,onPointerLeave:ti,get onMouseEnter(){return Ae},get onMouseLeave(){return re},get onDisabledClick(){return $e},get isInteractive(){return j},get disabled(){return r(_e)},get hideHandel(){return a()},testId:"progress_bar",onContextMenu:Ct,get ref(){return S()},set ref(He){S(He)}}),$(t,ne),U(),o()}var ey={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 Sd(t,e){F(e,!0),q(t,ey);let[i,o]=Ue(),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(()=>xn(l())),v=g(()=>xn(s())),p=g(()=>s()/l()),x=g(()=>u("aria_timeline_value",{position:r(v),duration:r(f)})),w=g(()=>Math.round(r(p)*100));wa(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return r(w)},get ariaValueText(){return r(x)},get filledProgress(){return r(p)},hideHandel:!0,get squareBorders(){return n()}}),U(),o()}var ty=M("<div><!></div>"),iy=M("<div></div>"),oy={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 Sa(t,e){F(e,!0),q(t,oy);let[i,o]=Ue(),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),x=m(e,"ref",15,void 0),w=ke(),y=kt(),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=qe(),X=he(R);{var D=W=>{var ee=ty();let j;var ue=_(ee);{var oe=$e=>{Sd($e,{get position(){return d()},get duration(){return a()}})},pe=$e=>{jf($e,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return r(I)},get withEpisodes(){return e.withEpisodes},get ref(){return x()},set ref(me){x(me)}})};L(ue,$e=>{u()?$e(oe):$e(pe,!1)})}h(ee),_s(ee,()=>dl(f()&&y.features.usePerformanceFix,k,y.disableInvisibleComponentsTimeout)),B($e=>j=te(ee,1,"timeline svelte-41cp6d",null,j,$e),[()=>({withoutPadding:!p(),mobile:s(),"out-of-flow":l()})]),$(W,ee)},H=W=>{var ee=iy();let j;B(ue=>j=te(ee,1,"timeline-stub svelte-41cp6d",null,j,ue),[()=>({mobile:s()})]),$(W,ee)};L(X,W=>{r(I)?W(D):W(H,!1)})}$(t,R),U(),o()}import{noop as sy}from"@vkontakte/videoplayer-shared/es2015";var ny=Ie('<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 Yf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=ny();Me(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);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ee(3),h(o),$(t,o)}var ry=Ie('<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 Zf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=ry();Me(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);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ee(),h(o),$(t,o)}var ay=M('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),ly=M('<span class="text svelte-1yhs2ga"> </span>'),dy=M('<span class="text count svelte-1yhs2ga"> </span>'),cy=M("<!> <!>",1),uy={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 Cd(t,e){var oe,pe,$e;F(e,!0),q(t,uy);let[i,o]=Ue(),n=()=>C(w,"$currentGridType$",i),s=()=>C(y,"$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=(oe=v.callbacks)==null?void 0:oe.onEpisodeChanged)!=null?pe:sy,x=!!(($e=v.callbacks)!=null&&$e.onEpisodeClicked),w=v.ui.currentGridType$,y=v.ui.episodes.openedByKeyboard$,S=v.ui.episodes.panelOpened$,T=v.ui.isMobile,E=v.ui.t,V=Y(void 0),k=me=>{var re,Ne,se;if(!!((re=v.callbacks)!=null&&re.onEpisodeClicked)){let N=Us(me);y.set(N),S.set(!0),(se=(Ne=v.callbacks)==null?void 0:Ne.onEpisodeClicked)==null||se.call(Ne,N)}},I=Y(null),R=g(()=>a()/u());Qe(()=>{var Ae;let me=pu(r(R),u(),f());me?((Ae=r(I))==null?void 0:Ae.time)!==me.time&&(p(me),O(I,me,!0)):O(I,null)});let X=g(()=>{var me;return((me=r(I))==null?void 0:me.text)||""}),D=g(()=>to(n(),"xl")?"FULL":to(n(),"m")&&b1(n(),"xl")?"COUNT":"SHORT"),H=g(()=>`${E("tooltip_episodes")}: ${r(X)}`),W=(me,Ae,re)=>xt(null,null,function*(){yield Io(),(me==null?void 0:me.getAttribute("aria-expanded"))==="false"&&Ae&&!re&&wt(()=>{y.set(!1),me.focus()})});Qe(()=>{W(r(V),s(),l())});var ee=qe(),j=he(ee);{var ue=me=>{let Ae=g(()=>d()?"px-0":""),re=g(()=>!x);Ot(me,{get className(){var Ne;return`w-max btn-full-opacity btn-jc-l ${(Ne=r(Ae))!=null?Ne:""}`},testId:"btn-episodes",click:k,get disabled(){return r(re)},get ariaExpanded(){return l()},get ariaLabel(){return r(H)},get ref(){return r(V)},set ref(Ne){O(V,Ne,!0)},children:(Ne,se)=>{var N=qe(),De=he(N);{var le=ie=>{var ve=ay(),Fe=he(ve),fe=_(Fe,!0);h(Fe);var st=P(Fe,2),Z=_(st);Zf(Z,{}),h(st),B(()=>be(fe,r(X))),$(ie,ve)},ge=ie=>{var ve=cy(),Fe=he(ve);Yf(Fe,{});var fe=P(Fe,2);{var st=Le=>{var Pe=ly(),Ke=_(Pe,!0);h(Pe),B(()=>be(Ke,r(X))),$(Le,Pe)},Z=(Le,Pe)=>{{var Ke=lt=>{var mt=dy(),vt=_(mt,!0);h(mt),B(()=>be(vt,f().length)),$(lt,mt)};L(Le,lt=>{r(D)==="COUNT"&&lt(Ke)},Pe)}};L(fe,Le=>{r(D)==="FULL"?Le(st):Le(Z,!1)})}$(ie,ve)};L(De,ie=>{d()?ie(le):ie(ge,!1)})}$(Ne,N)},$$slots:{default:!0}})};L(j,me=>{r(I)&&me(ue)})}$(t,ee),U(),o()}import{debounceFn as B1}from"@vkontakte/videoplayer-shared/es2015";import{ChromecastState as by,PlaybackState as Ed,Player as $y,PredefinedQualityLimits as ds,VideoFormat as Id,clientChecker as P1}from"@vkontakte/videoplayer-core/es2015";import{assertNonNullable as sr,getHighestQuality as yy,InterfaceLanguage as xy,isInvariantQuality as wy,isNonNullable as Sy,loadVKLangPack as Cy,Logger as Ty,map as A1,merge as Ey,Observable as M1,Subject as $u,Subscription as om,TracerFactory as Iy,ValueSubject as ky,VideoQuality as Py,devNull as Ay,now as My,filter as Ly,once as Vy}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as ws}from"@vkontakte/videoplayer-statistics/es2015";import{detectEmbed as py,devNull as Jt,now as ei}from"@vkontakte/videoplayer-shared/es2015";import{addScript as fy,Subject as Xo,clearVideoElement as my}from"@vkontakte/videoplayer-shared/es2015";var S1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var vy="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",fu=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 Xo,loadStarted$:new Xo,loadEnded$:new Xo,loadError$:new Xo,ready$:new Xo,slotRequested$:new Xo,started$:new Xo,timeRemained$:new Xo,paused$:new Xo,resumed$:new Xo,ended$:new Xo,empty$:new Xo,skipped$:new Xo,clicked$:new Xo,closed$:new Xo,error$:new Xo};this.loadAdman=e=>(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[ei()]}),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?(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[ei()]}),i(),this.events.loadEnded$.next()):(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[ei()]}),o())};fy(vy,e,this.loadTimeout).then(()=>{Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[ei()]}),window.AdmanHTML?(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[ei()]}),i(),this.events.loadEnded$.next()):(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[ei()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout))}).catch(l=>{Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[ei()]}),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?(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[ei()]}),i(),this.events.loadEnded$.next()):(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[ei()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[ei()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[ei()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[ei()]}),!d&&(window.AdmanHTML?(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[ei()]}),i(),this.events.loadEnded$.next()):(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[ei()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout)))},l).finally(()=>{clearTimeout(n),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[ei()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[ei(),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=>{var o;((o=this.adsState)!=null&&o.playbackState?xe(this.adsState.playbackState):void 0)!=="inactive"&&(this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized"))};this.onAdPaused=()=>{var e;Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[ei()]}),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;Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[ei()]}),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(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[ei()]}),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;Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[ei()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[ei()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[ei()]}),this.log({message:"ad completed"}),this.currentAdSection?(this.events.ended$.next(this.currentAdSection),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0)):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[ei()]}),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")=>{Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[ei()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog(),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0)};this.log=e.createComponentLog("AdmanWrapper"),Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[ei()]}),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(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[ei(),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,x=this.playerState&&xe(this.playerState.vsid);x&&(this.isVsidOriginal?p=x:p=parseInt(x,36));let{isEmbed:w,immediateOrigin:y}=py(),S=(V=w?y: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:S1(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){Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(k)],numbers:[ei()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,s;if(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[ei()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.log({message:`switch to video, isPostroll: ${i}`});else{let l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(s=(n=this.actions).switchFromAdsToVideo)==null||s.call(n,!i)}}setPostrollPassed(e){var i;(i=this.adsState)==null||i.postrollPassed.set(e),this.log({message:"postroll passed"})}togglePlay(){var e;if(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[ei()]}),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(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[ei()]}),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(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[ei()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&this.stopWatchDog(),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[ei()]}),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(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[ei()]}),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(Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[ei()]}),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;Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[ei()]}),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&&my(this.videoElement),this.isDestroyed=!0}};var C1=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 Xf=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 Jf,{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}},Jf=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}},T1=Xf;import{isNonNullable as em}from"@vkontakte/videoplayer-shared/es2015";var Ca,Vi,tm=0,im=!1,E1="",I1=(t,e=0,i=0)=>t<e&&t<i,vu=(t,e=0,i=0)=>t>=e&&t<=i,gy=(t,e=0,i=0)=>t>e&&t>i,k1=(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})=>vu(t,u,f));let s=t>=tm,l=t<tm;if(tm=t,l&&(im=!1),em(Ca)&&vu(t,Ca.startTime,Ca.endTime)&&E1===e.value)return Ca;if(!em(Vi)&&(n!=null&&n.length)&&!im){Vi=n.find(({startTime:u,endTime:f})=>vu(t,u,f)||s&&I1(t,u,f)),Ca=void 0,!em(Vi)&&n[n.length-1].endTime<t&&(im=!0);return}else{if(vu(t,Vi==null?void 0:Vi.startTime,Vi==null?void 0:Vi.endTime))return Ca=Vi,Vi=void 0,E1=e.value,Ca;(s&&gy(t,Vi==null?void 0:Vi.startTime,Vi==null?void 0:Vi.endTime)||l&&I1(t,Vi==null?void 0:Vi.startTime,Vi==null?void 0:Vi.endTime))&&(Vi=void 0)}};var gu={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"},hy={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"},Td=t=>{var e,i;return(i=(e=gu[t])!=null?e:gu[hy[t]])!=null?i:void 0};import{Subscription as _y}from"@vkontakte/videoplayer-shared/es2015";import"@vkontakte/videoplayer-statistics/es2015";var hu=class{constructor(e,i,o,n=new _y){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 _u=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(_u||{});var ls=t=>t!=null?t:0,xs=(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(ls(i==null?void 0:i.top)-ls(o==null?void 0:o.top)),left:Math.round(ls(i==null?void 0:i.left)-ls(o==null?void 0:o.left)),bottom:Math.round(ls(i==null?void 0:i.bottom)-ls(o==null?void 0:o.top)),right:Math.round(ls(i==null?void 0:i.right)-ls(o==null?void 0:o.left))}},gl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:ls(e==null?void 0:e.width),height:ls(e==null?void 0:e.height)}};var bu="off";var L1=({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:x,player:w,disabledControls:y,isInteractive:S,interactiveRanges$:T,isInteractiveTime$:E,replayInteractive:V,stopPlayer:k,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:R,additionalButtons:X,additionalSettingsMenuItems:D,additionalContextMenuItems:H,playPrevVideo:W,playNextVideo:ee,looped:j=!1,statistics:ue,saveRate:oe,internalsExposure:pe,playerView:$e,playerId:me})=>{var xv,wv,Sv;let Ae=Bt(z({},x),{configName:[...(xv=x.configName)!=null?xv:[],"ui"],isAudioDisabled:l,live:Bt(z({},(wv=x.live)!=null?wv:{}),{isLiveCatchUpMode:!!n})}),re=p,Ne=Iy.createRootTracer(re.features.tracer),se=Ne.createComponentTracer("Store"),N=w||new $y(Ae,Ne,{playerId:me});pe==null||pe.expose({corePlayer:N});let De=new Ty,le=new fu(De,{loadTimeout:re.ads.loadTimeout,initTimeout:re.ads.initTimeout,runtimeTimeout:re.ads.runtimeTimeout,useAdmanFromNPM:re.ads.useAdmanFromNPM,volumeMultiplier:re.ads.volumeMultiplier,isVsidOriginal:re.ads.isVsidOriginal,usePuid:re.ads.usePuid}),ge=ma.getInstance(),ie=u==null?void 0:u.pictureInPictureApi,ve=u==null?void 0:u.annotationsApi,Fe=u==null?void 0:u.slotsApi,fe=De.createComponentLog("Store"),st,Z,Le={},Pe=new Uc,Ke=new om,lt=ue&&ue.oneStat?ii(ue.oneStat.vsid$):Tr(void 0),mt=ae(Ds()),vt=ae(!1),Ct=()=>Zh(document,P1.device.isIOS?Es():null),Ye=(Sv=ie==null?void 0:ie.info.isActive$)!=null?Sv:new ky(!1),Ut=ae(0),ti=ae(!1),jt=ae(!1),Wt=ae([]),ne=Ey(N.events.fatalError$,N.events.managedError$).subscribe(c=>Wt.update(b=>[...b,c])),Ht=Tr(!1,c=>{let b=N.events.fatalError$.subscribe(()=>c(!0));return()=>b.unsubscribe()}),Se=c=>xt(null,null,function*(){var J;let b=Object.values(xy).includes(c);if(re.downloadVKLanguages&&(b&&re.updateBuiltinLanguages||!lf(c))){let Te;try{Te=yield Cy(c,uh,ph)}catch(nt){(J=ue==null?void 0:ue.oneStat)==null||J.logError({errorType:"VKLangPack",fatal:!1}),ge==null||ge.report(nt,{errorType:"VKLangPack",fatal:!1})}Te&&(af({language:c,pack:Te,fallback:re.defaultLanguage}),_e.set(c))}lf(c)&&_e.set(c)}),_e=ae(t),ce=ae(e);Se(t);let Be=(c,b)=>{let A=xe(_e);return df(A,c,b,re.defaultLanguage)},ze=ae("thumb");ze.subscribe(c=>{c==="ads"&&N.info.playbackState$.getValue()&&He()});let Re=(()=>{let c=Ci([Ht,ze],([b,A])=>b?"crashed":A);return Bt(z({},c),{is:b=>xe(c)===b})})(),je=ae(),He=()=>{je.set({muted:N.info.muted$.getValue()})},Xe=(()=>{let c=ae(new Set(y));return Bt(z({},c),{add:b=>{c.update(A=>new Set([...A].concat(b)))},remove:b=>{c.update(A=>{let J=[...A];return new Set(Array.isArray(b)?J.filter(Te=>!b.includes(Te)):J.filter(Te=>Te!==b))})},includes:b=>{let A=xe(c);return Array.isArray(b)?b.every(J=>A.has(J)):A.has(b)}})})(),Pt=ae({width:0,height:0});se.log("create store"),fe({message:"create store"});let Kt=c=>{let b=c.container,A=()=>{ri=new MutationObserver(Te=>{let{removedNodes:nt}=Te[0];nt.length&&b.append(N.experimental.element$.getValue())}),ri.observe(b,{childList:!0})},J=N.experimental.element$.getValue();if(J)b.append(J),A();else{let Te=N.experimental.element$.pipe(Ly(nt=>!!nt),Vy()).subscribe(nt=>{b.append(nt),A()});Ke.add(Te)}},tt=c=>{fe({message:`init video, config: ${JSON.stringify(c)}`}),S?Kt(c):(Ay.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[My()]}),N.initVideo(c)),se.log("init video",{isInteractive:S}),c.subtitles&&N.setExternalTextTracks(c.subtitles),st=c},bi=new $u,Ti=c=>bi.next(c),dt=new $u,qt=new $u,ni=new $u,ri=null,Ao={actionRewind$:dt,actionSeek$:qt,inPiP$:Ye,inFullscreen$:new M1(c=>mt.subscribe(b=>c.next(b))),actionSetSubtitle$:ni,nextMovie$:bi},Mo={actionSeek$:qt,playerSize$:new M1(c=>Pt.subscribe(b=>c.next(b)))};if(ue){let{oneStat:c,thinOneStat:b,mediascopePixel:A,statSubscription:J}=ue;c&&(S||J.add(c.attachTo(N)),J.add(c.attachToUi(Ao)),J.add(c.attachToAds(le.events)),c.authorize(s).catch(Te=>{fe({message:`onestat auth error ${String(Te)}`})}),A&&A.attachTo(N)),b&&(J.add(b.attachTo(N,le.events)),J.add(b.attachToUi(Mo)),J.add(b.attachToAds(le.events)),b.authorize(s))}if(ge){let c=new om,b=(A,J)=>c.add(A.subscribe(J));if(b(N.events.managedError$,A=>{ge.logIError(A)}),b(N.events.fatalError$,A=>{ge.logIError(A,!0)}),ue){let{oneStat:A}=ue;A&&b(A.experimental.error$,J=>{ge.logIError(J)})}ge.sentrySubscription.add(c)}let go=()=>{if(P1.device.isIOS&&Z)try{Xh(Z)}catch(c){fe({message:`exitIosSafariFullscreen failed: ${c}`})}};Ke.add(N.experimental.element$.subscribe(c=>{c&&(Z=c,c.classList.add("player-media"),ga(ie)&&ie.updateVideoElement(),S&&c.setAttribute("pip","false"),$e==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(N.events.ended$.subscribe(()=>{var c;go(),(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 b,A;ga(ie)&&(yield ie==null?void 0:ie.revealPictureInPicture());let c=N.info.muted$.getValue();(b=a==null?void 0:a.onStarted)==null||b.call(a),(A=Le.onStarted)==null||A.call(Le,c)}))).add(N.events.willSeek$.subscribe(({from:c,to:b})=>{var A;(A=a==null?void 0:a.onSeek)==null||A.call(a,c,b)})).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 A;let b=N.info.duration$.getValue();isFinite(b)&&b>0&&((A=a==null?void 0:a.onTimeupdate)==null||A.call(a,b,c),le.setPosition(c,b))})).add(N.events.fatalError$.subscribe(c=>{var b;(b=a==null?void 0:a.onCrashed)==null||b.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.fetcherRecoverableError$.subscribe(c=>{var b;(b=a==null?void 0:a.onRecoverableError)==null||b.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.loadedMetadata$.subscribe(()=>{ti.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{jt.set(c)})).add(N.info.isEnded$.subscribe(c=>{S&&(c?(E!=null&&E.getValue()&&Xe.add(Jl),Xe.add("PLAY_BUTTON")):Xe.remove("PLAY_BUTTON"))})).add(N.info.liveTime$.subscribe(c=>{var b;(b=a==null?void 0:a.onLiveTime)==null||b.call(a,c)})).add(N.info.isStalled$.subscribe(c=>{var b;(b=a==null?void 0:a.onStalledChanged)==null||b.call(a,c)})).add(N.info.isLiveEnded$.subscribe(c=>{var b;return c&&((b=a==null?void 0:a.onLiveEnded)==null?void 0:b.call(a))})).add(le.events.loadStarted$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:b.call(c)})).add(le.events.loadEnded$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:b.call(c)})).add(le.events.loadError$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadError)==null?void 0:b.call(c)})).add(le.events.init$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onInit)==null?void 0:b.call(c)})).add(le.events.ready$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onReady)==null?void 0:b.call(c)})).add(le.events.started$.subscribe(c=>{var b,A;return(A=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onStarted)==null?void 0:A.call(b,c)})).add(le.events.timeRemained$.subscribe(c=>{var b,A;return(A=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onTimeRemained)==null?void 0:A.call(b,c)})).add(le.events.ended$.subscribe(c=>{var b,A;return(A=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onCompleted)==null?void 0:A.call(b,c)})).add(le.events.empty$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onEmpty)==null?void 0:b.call(c)})).add(le.events.clicked$.subscribe(c=>{var b,A;return(A=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onClicked)==null?void 0:A.call(b,c)})).add(le.events.closed$.subscribe(c=>{var b,A;return(A=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onClosed)==null?void 0:A.call(b,c)})).add(le.events.error$.subscribe(c=>{var b,A;return(A=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onError)==null?void 0:A.call(b,c)})).add(le.events.paused$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onPaused)==null?void 0:b.call(c)})).add(le.events.resumed$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onResumed)==null?void 0:b.call(c)}));let zt=new om,ui=()=>{var nt,Vt,Rt;let{debugLog:c}=re,b,A="#9df7b7",J="#efd169";if(c&&c!==!0){let{colors:Dt}=c;b=c.tag,A=(nt=Dt==null?void 0:Dt[0])!=null?nt:A,J=(Rt=(Vt=Dt==null?void 0:Dt[1])!=null?Vt:Dt==null?void 0:Dt[0])!=null?Rt:J}let Te=b?`: ${b}`:"";zt.add(N.events.log$.subscribe(Dt=>{console.debug(`%c sdk${Te} `,`background:${A};`,`sdk component: ${Dt.component}`,Dt.message)})).add(De.log$.subscribe(Dt=>{console.debug(`%c ui${Te} `,`background:${J};`,`ui component: ${Dt.component}.`,Dt.message)}))},At=()=>{zt.unsubscribe()},pt=(c,b)=>{se.log("start camera manual rotation",{mx:c,my:b}),N.startCameraManualRotation(c,b)},xi=(c=!1)=>{se.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},ho=(c,b,A)=>{se.log("move camera focus px",{xpx:c,ypx:b,dt:A}),N.moveCameraFocusPX(c,b,A)},Qi=()=>{N.holdCamera()},di=()=>{N.releaseCamera()},Ko=Tr(N.info.position$.getValue(),c=>{let b,A,J=()=>{let Te=N.info.playbackState$.getValue(),nt=N.info.isLive$.getValue(),Vt=N.info.duration$.getValue(),Rt=N.info.position$.getValue();if(Te&&[Ed.PLAYING,Ed.PAUSED].includes(Te)){let Dt=nt?Rt-Vt:N.getExactTime();Dt!==A&&c(Dt),A=Dt}b=requestAnimationFrame(J)};return J(),()=>cancelAnimationFrame(b)}),en=ii(N.info.playbackState$),Q=ii(N.info.currentBuffer$),we=ii(N.info.isEnded$),ft=ii(N.info.isLive$),Ft=re.features.playbackRate?ii(N.info.canChangePlaybackSpeed$):Tr(!1),_t=ii(N.info.liveBufferTime$),Yt=ii(N.info.volume$),pi=ii(N.info.muted$),_o=zc(N.info.predefinedQualityLimitType$.pipe(A1(c=>c===ds.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===ds.TRAFFIC_SAVING),fi=zc(N.info.predefinedQualityLimitType$.pipe(A1(c=>c===ds.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===ds.HIGH_QUALITY),Tt=ii(N.info.autoQualityLimitingAvailable$),$i=ii(N.info.availableQualities$),tn=ii(N.info.availableQualitiesFps$),on=ii(N.info.chromecastState$),Rn=ii(N.info.chromecastDeviceName$),mi=ii(N.info.currentFormat$),Lo=ii(N.info.throughputEstimation$),Nn=ii(N.info.videoBitrate$),ar=ii(N.info.intrinsicVideoSize$),Ei=ii(N.info.duration$),On=ii(N.info.isAudioAvailable$),Di=null,bo=N.info.isBuffering$,lr=Tr(bo.getValue(),c=>{let b=bo.subscribe(A=>{A&&Di===null?Di=window.setTimeout(()=>{c(bo.getValue()),Di=null},re.loaderDelay):c(A)});return()=>{b.unsubscribe(),Di&&clearTimeout(Di)}}),nn=()=>{Di&&clearTimeout(Di),Di=null},Bn=Ci([Ei,ft],([c,b])=>b?-c:c),dr=Ci([en],([c])=>c===Ed.PLAYING),Ir=ii(N.info.atLiveEdge$),kr=ii(N.info.atLiveDurationEdge$),cr=ii(N.info.position$),ur=Ci([cr,Ei],([c,b])=>isFinite(c)&&isFinite(b)&&!!b),qo=Ci([on],([c])=>c===by.CONNECTED),Pr=ii(N.info.availableVideoStreams$),Ri=re.features.audioLanguages?ii(N.info.availableAudioStreams$):Tr([]),Dn=ii(N.info.currentVideoStream$),wn=ii(N.info.currentAudioStream$),pr=c=>{c.language&&of(c.language),N.setVideoStream(c)},fr=(c,b)=>{N.setAudioStream(c),ki(b)&&(c.language&&of(c.language),re.features.userVideoPrefs&&i&&sf(re.userSalt,String(i),{audioTrackId:c.id}))},mr=c=>{let b;if(c.length===1&&(b=c.at(0)),b!=null||(b=c.find(J=>"isDefault"in J&&J.isDefault)),re.features.userVideoPrefs&&i){let J=Gc(re.userSalt,String(i));if(J!=null&&J.audioTrackId){let Te=c.find(nt=>nt.id===J.audioTrackId);b=Te!=null?Te:b}}let A=Nh();return A&&(b!=null||(b=c.find(({language:J})=>A===J))),b!=null||(b=c.at(0)),b},Hn=!1;Ke.add(N.info.availableAudioStreams$.subscribe(c=>{if(!Hn&&c.length){let b=mr(c);b&&(N.setAudioStream(b),Hn=!0)}}));let vr=!1;Ke.add(N.info.availableVideoStreams$.subscribe(c=>{if(!vr&&c.length){let b=mr(c);b&&(N.setVideoStream(b),vr=!0)}}));let Fn=ae(void 0),gr=ii(N.info.isAutoQualityEnabled$,c=>c&&Fn.set(void 0)),hr=ii(N.info.currentQuality$,()=>Fn.set(void 0)),Vo=Ci([Fn,hr],([c,b])=>c!=null?c:b),_r=Ci(mi,c=>c!==Id.MPEG),ut=Ci([$i,tn,gr,Vo,_r],([c,b,A,J,Te])=>{let nt=[];Te&&nt.push({value:"auto",displayValue:Be("auto_quality_option"),selected:A});let Vt=c.filter(Rt=>!wy(Rt));for(let Rt of Vt){let Dt=b[Rt];nt.push({value:Rt,displayValue:`${Rt}${Dt?C1(Dt):""}`,selected:A?!1:Rt===J})}return nt}),si=ii(N.info.currentPlaybackRate$),rn=Ci([si,Ir,kr],([c,b,A])=>{let J=A||S?1:re.controls.playbackRateMin,Te=b?1:re.controls.playbackRateMax,nt=re.controls.playbackRateStep,Vt=[];for(let Rt=J;Rt<=Te;Rt+=nt)Vt.push({value:Rt,displayValue:Rt===1?Be("playback_rate_1"):Be("playback_rate",{multiplier:Rt.toString(10)}),selected:c===Rt});return Vt}),Ii={displayValue:Be("subtitles_off"),value:bu,language:""},Gi=ae(z({},Ii)),sn=re.features.subtitles?ii(N.info.availableTextTracks$):Tr([]),$o=Th(),an=Ci([sn,Gi],([c,b],A)=>{var nt;let J=[],Te=c.find(({id:Vt})=>Vt===b.value);if(Te!=null&&Te.url){let[,Vt]=(nt=$o.find(Te.url))!=null?nt:[];if(Vt){A(Vt);return}Pe.download(Te.url).then(Rt=>{if(!Rt||Pe.isDestroyed())return;let Dt=new T1,ks=Te.language;if(ks){let I_=!!Te.isAuto,k_=Dt.parse(Rt,ks);J.push({lang:ks,subtitles:k_,isAuto:I_,id:Te.id})}$o.add(Te.url,J),xe(Gi).value===b.value&&A(J)}).catch(Rt=>{var Dt;(Dt=ue==null?void 0:ue.oneStat)==null||Dt.logError({errorType:"Subtitles download",fatal:!1}),ge==null||ge.report(Rt,{errorType:"Subtitles download",fatal:!1})})}A(J)}),ln=Ci([si,dr,Gi],([c,b,A],J)=>{let Vt;if(N.info.isLive$.getValue()&&b&&A.value!==Ii.value){let Dt=()=>{let ks=1e3/(3*c);Vt=setTimeout(Dt,ks),J(Date.now())};return Dt(),()=>clearTimeout(Vt)}}),dn=Ci([sn,Gi],([c,b])=>{if(!c.length)return[];let A=[];for(let{language:J,isAuto:Te,id:nt}of c){let Vt=J&&Td(J);J&&Vt&&A.push({displayValue:Te?Be("subtitles_auto",{language:Vt}):Vt,value:nt,selected:(b==null?void 0:b.value)===nt,isAuto:Te,language:J})}return A.length?(A.unshift(Bt(z({},Ii),{selected:(b==null?void 0:b.value)===Ii.value})),A):[]}),cn={available:[],prev:[]},qr=()=>{var b,A;let c=N.experimental.getCurrentTime$.getValue();return(A=(b=c==null?void 0:c())!=null?b:Z==null?void 0:Z.currentTime)!=null?A:0},Qr=Ci([Ko,Gi,an,ln],([c,b,A,J])=>{var nt;let Te=N.info.isLive$.getValue();if(Te&&cn.prev!==A){let Vt=A.find(({id:Dt})=>Dt===b.value),Rt=cn.prev.find(({id:Dt})=>Dt===b.value);if(Vt){let Dt=Bt(z({},Vt),{subtitles:[...(nt=Rt==null?void 0:Rt.subtitles)!=null?nt:[],...Vt.subtitles]});cn.available=[Dt],cn.prev=A}}if(b&&b.value!==Ii.value){let Vt=Te?qr():c,Rt=Te?cn.available:A;return k1(Vt,b,Rt,Te)}}),Ar=Ci([Qr],([c])=>c!=null&&c.texts?c.texts:[]);Ke.add(Gi.subscribe(c=>{var b,A;if(c.value===Ii.value)(b=a==null?void 0:a.onSubtitleOff)==null||b.call(a);else{let J=Object.entries(gu).find(([Te,nt])=>nt===c.displayValue);(A=a==null?void 0:a.onSubtitleOn)==null||A.call(a,J?J[0]:"",c.value)}}));let Gr=ae(!0),Un=Ci([Q,Bn,cr,_t],([c,b,A,J])=>{var Rt;let Te=(Rt=c==null?void 0:c.end)!=null?Rt:0;if(!J)return Te/b;let Vt=-A+J-b;return(Te-Vt)/b}),br=ii(N.info.availableSources$),yo=Ci([br],([c])=>Object.keys((c==null?void 0:c[Id.MPEG])||{}).length>0),zn=()=>{var A,J,Te;let c=Object.keys(((J=(A=N.info.availableSources$)==null?void 0:A.getValue())==null?void 0:J[Id.MPEG])||{}),b=yy(c)||Py.Q_144P;return(Te=st.sources[Id.MPEG])==null?void 0:Te[b]},Zt=()=>{var b;let c=zn();if(c)se.log("download video",{url:c}),wh(c,((b=st==null?void 0:st.meta)==null?void 0:b.title)||"video");else{let A="There is no URL for download video";se.log("download video",{message:A}),fe({message:A})}},uo=()=>{fe({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?po(ai(),!1):ji(!c,!1)},jr=()=>{var c;if(Mt.ui.settingsMenu.visible$.set(!1),!xe(Mt.ui.settingsSubMenu.visible$)){let b=xe(Mt.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&b){let J=gl(b),Te={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:J,position:Te,name:"settings"})}}se.log("close settings menu")},Yr=(c,b=()=>Promise.resolve())=>xt(null,null,function*(){var Te;Mt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Mt.ui.settingsMenu.visible$.set(!0),yield b();let A=xe(Mt.ui.settingsMenu.ref$),J=Es();if((Te=a==null?void 0:a.uiInfo)!=null&&Te.onSettingsMenu&&A&&J){let Vt=gl(A),Rt=xs(A,J);a.uiInfo.onSettingsMenu({visible:!0,size:Vt,position:Rt,name:"settings"})}se.log("open settings menu",{wasOpenedByKeyboard:c})}),Mr=(c,b=!1)=>{var nt;Mt.ui.settingsSubMenu.visible$.set(!1);let A=xe(Mt.ui.settingsMenu.ref$),J=Es(),Te=xe(Mt.ui.settingsMenu.visible$);if((nt=a==null?void 0:a.uiInfo)!=null&&nt.onSettingsMenu&&A&&J)if(Te&&!b){let Rt=gl(A),Dt=xs(A,J);a.uiInfo.onSettingsMenu({visible:!0,size:Rt,position:Dt,name:"settings"})}else{let Rt=gl(c),Dt={top:0,left:0,bottom:0,right:0},ks=xe(Mt.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:Rt,position:Dt,name:ks})}se.log("close settings sub menu")},at=(c,b)=>{var J;Mt.ui.settingsSubMenu.visible$.set(!0),Mt.ui.settingsSubMenu.ref$.set(b),Mt.ui.settingsSubMenu.name$.set(c);let A=Es();if((J=a==null?void 0:a.uiInfo)!=null&&J.onSettingsMenu&&b&&A){let nt=gl(b),Vt=xs(b,A);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:nt,position:Vt})}se.log("open settings sub menu",{name:c})},ai=()=>{var b;let c=Math.max(re.volumeMinRestore,(b=Wc())!=null?b:0);return c===0?re.volumeDefault:c},ki=c=>{let b=re.features.savePreferredStatesOnUserActionOnly;return!b||b&&!c},po=(c,b)=>{let A=c===0?ai():c,J=N.info.muted$.getValue();fe({message:`set volume, volume: ${c}, preferredVolume: ${A}`});let Te=!l||Re.is("ads");J&&c>0&&Te&&(J=!1,ki(b)&&ef(!1)),N.setVolume(c,J),le.setVolume(c),ki(b)&&jp(A)},ji=(c,b)=>{let A=N.info.volume$.getValue();fe({message:`set muted, currentVolume: ${A}, mute: ${c}`});let J=Re.is("ads");if(N.setMuted(c,J),le.setVolume(c?0:A),ki(b)&&(!J||!c)&&ef(c),!c&&A===0){let Te=ai();N.setVolume(Te),ki(b)&&jp(Te),le.setVolume(Te)}},xo=ae(!1),Yi=c=>{var b,A;se.log("set looped",{isLooped:c}),xo.set(c),N.setLooped(c),(A=(b=a==null?void 0:a.uiInfo)==null?void 0:b.onLoopedChanged)==null||A.call(b,c)};Yi(j);let Wn=()=>{var c,b;(b=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||b.call(c)},wi=(c,b=!1)=>{var A;fe({message:`set autoplayNextEnabled, value: ${c}`}),se.log("set autoplay next enabled",{autoplayNextEnabled:c}),Mt.ui.autoplayNextEnabled$.set(c),Dh(c),b&&((A=a==null?void 0:a.onSetAutoplayNextEnabled)==null||A.call(a,c))},Kn=c=>{fe({message:`set timerNextVideoRunning, value: ${c}`}),se.log("set timer next video running",{timerNextVideoRunning:c}),Mt.ui.timerNextVideoRunning$.set(c)},qn=(c=!0)=>{var J;let b=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{b=(J=a==null?void 0:a.onPrevVideoClick)==null?void 0:J.call(a)}catch(Te){fe({message:"onPrevVideoClick callback failed to execute"})}if(!b)return;c&&Lr("prev")||W()},cs=(c=!0)=>{var J;let b=!0;if(c&&(a!=null&&a.onNextVideoClick))try{b=(J=a==null?void 0:a.onNextVideoClick)==null?void 0:J.call(a)}catch(Te){fe({message:"onNextVideoClick callback failed to execute"})}if(!b)return;c&&Lr("next")||ee()},Lr=c=>{let{isMobile:b,features:{playbackStatusNextVideoShow:A,playbackStatusShow:J}}=re;return A&&J&&!b?(Mt.ui.aboutToGoNextVideo.set(c),Mt.ui.userActionsDisabled.set(!0),!0):!1},us=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},oo=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},Qn=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},$r=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},Zr=()=>{N.prepare()},it=()=>{sr(Mt);let c=xe(Mt.ui.controls.disabledControls$),b=xe(Mt.playerPhase),A={playerPhase:b,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(fe({message:"toggle play"}),b==="ads"){A.action="play",se.log("toggle adman play",A),le.togglePlay();return}let J=()=>{var nt;fe({message:"toggle play, call player.play"}),A.action="play",N.play(),(nt=a==null?void 0:a.onPlay)==null||nt.call(a)},Te=()=>{var nt;fe({message:"toggle play, call player.pause"}),A.action="pause",N.pause(),(nt=a==null?void 0:a.onPause)==null||nt.call(a)};if(N.info.isEnded$.getValue()){if(fe({message:"toggle play, video ended, seek to 0"}),dt.next(),qt.next(ws.REWIND),S){V==null||V();return}N.seekTime(0),J()}else N.info.playbackState$.getValue()!==Ed.PLAYING?J():Te();se.log("toggle play",A)},Et=(c,{changeReason:b="default",appliesTo:A="to-video"}={},J)=>{fe({message:`set quality, quality: ${c}`}),se.log("set quality",{quality:c}),N.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Te}=re.features;Kc(),c!=="auto"?(Te?(qc({type:"exact_quality",quality:c,videoId:i},A),N.setPredefinedQualityLimits(ds.UNKNOWN)):Yp(i,c),Fn.set(c),N.setQuality(c)):Te&&b==="default"&&(wo("auto_quality",A,J),xe(_o)&&vi(!1,void 0,J),xe(fi)&&no(!1,void 0,J))},vi=(c,b="as-default",A)=>{fe({message:`set trafficSavingEnabled, value: ${c}`}),se.log("set traffic saving enabled",{trafficSavingEnabled:c});let J=c?ds.TRAFFIC_SAVING:ds.UNKNOWN;re.features.qualityDetailsSubMenuEnabled?(fo(J,b,A),ed(!1)):(N.setPredefinedQualityLimits(J),ki(A)&&ed(c))},no=(c,b="as-default",A)=>{fe({message:`set highQualityEnabled, value: ${c}`}),se.log("set high quality enabled",{highQualityEnabled:c}),fo(c?ds.HIGH_QUALITY:ds.UNKNOWN,b,A)},fo=(c,b,A)=>{c!==ds.UNKNOWN&&(xe(Tt)&&!xe(gr)&&Et("auto",{appliesTo:b,changeReason:"limit-changed"},A),wo(c,b,A)),N.setPredefinedQualityLimits(c)},wo=(c,b,A)=>{ki(A)&&(qc({type:c,videoId:i},b),b==="as-default"&&qc({type:c,videoId:i},"to-video"))},Zi=c=>{se.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),re.features.saveRate&&oe&&!N.info.isLive$.getValue()&&Oh(c)},Qo=()=>{let c=xe(rn),b=c.findIndex(({selected:J})=>J);if(b===c.length-1)return;let A=c[b+1];Zi(A.value)},un=()=>{let c=xe(rn),b=c.findIndex(({selected:J})=>J);if(b===0)return;let A=c[b-1];Zi(A.value)},Sn=(c=Bt(z({},Ii),{selected:!1}),b)=>{se.log("set subtitles",z({},c)),c.value!==Ii.value&&ni.next(c.isAuto?c.value+"_auto":c.value),Gi.set(c),ki(b)&&(rf(c.value===Ii.value?void 0:c.language),re.features.userVideoPrefs&&i&&sf(re.userSalt,String(i),{subtitleTrackId:c.value===Ii.value?void 0:c.value}))},Hi=c=>{se.log("toggle subtitles");let b=xe(Gi);(b==null?void 0:b.value)===Ii.value?Gn(c):jn(c)},Ro=(c,b)=>{se.log("change subtitle",{enabled:c}),c?Gn(!0,b):jn(!0)},Gn=(c,b)=>{se.log("subtitle on");let A=xe(dn),J=xe(_e),Te;b&&(Te=A.find(nt=>nt.value===b)),Te!=null||(Te=A.filter(nt=>nt.value!==Ii.value).find(nt=>nt.value===J)||A[1]),Sn(Te,c)},jn=c=>{se.log("subtitle off"),Sn(void 0,c)};N.info.availableTextTracks$.subscribe(c=>{var A;function b(){let J=[];for(let{language:Te,isAuto:nt,id:Vt}of c){let Rt=Te&&Td(Te);Te&&Rt&&J.push({id:Vt,language:Te,title:nt?Be("subtitles_auto",{language:Rt}):Rt})}return J}(A=a==null?void 0:a.onAvailableSubtitlesChanged)==null||A.call(a,b())});let pn=ae(!0),Vr=c=>{pn.set(c)},fn=(c,b,A=!0)=>{var J;if(fe({message:`seek to time, time: ${c}`}),se.log("seek to time",{time:c,action:b,forcePrecise:A}),qt.next(b),N.info.isLive$.getValue()){let Te=N.info.duration$.getValue(),nt=Math.min(0,Te+c);N.seekTime(nt,A)}else{if(E!=null&&E.getValue())return;N.info.isEnded$.getValue()&&(fe({message:"seek after ended, call callbacks.onPlay"}),(J=a==null?void 0:a.onPlay)==null||J.call(a)),N.seekTime(yv(c),A)}},Xr=c=>{fe({message:`seek to episode start time: ${c}`}),se.log("seek to episode start time",{time:c}),fn(c,ws.EPISODE,!0)},So=(c,b)=>{fe({message:`seek to percent, percent: ${c}`}),se.log("seek to percent",{percent:c,action:b});let A=xe(Bn)*c;fn(A,b,!1)},Cn=c=>{fe({message:`seek external, time: ${c}`}),se.log("seek external",{time:c}),qt.next(ws.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},Ze=c=>{var J,Te;let b=(J=c.max)!=null?J:"none",A=(Te=c.min)!=null?Te:"none";fe({message:`set auto quality limitation. Max: ${b}. Min: ${A}`}),se.log("set auto quality limits",{max:b,min:A}),N.setAutoQualityLimits(c)},Xt=c=>{fe({message:`seek external to episode start time: ${c}`}),se.log("seek external to episode start time",{time:c}),fn(c,ws.EPISODE,!0)},Ai=c=>{fe({message:`set playback rate to: ${c}`}),se.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},Co=ae(void 0),To=ae(!1),Ce=c=>{fe({message:`start scrubbing, progress: ${c}`}),se.log("start scrubbing",{progress:c}),To.set(!0),bt(c)},bt=c=>{Co.set(c)},li,Pi,Xi=()=>{Co.set(void 0),To.set(!1)},ro=()=>{clearTimeout(Pi),clearTimeout(li),li=window.setTimeout(()=>{Xi()},500),Z==null||Z.removeEventListener("seeked",ro)},Je=c=>{fe({message:`complete scrubbing, progress: ${c}`}),se.log("complete scrubbing",{progress:c}),So(c,ws.SLIDER),xe(Mt.ui.isMobile)&&xe(Mt.state.currentFormat$)===Id.HLS?(Z==null||Z.addEventListener("seeked",ro),Pi=window.setTimeout(()=>{ro()},300)):Xi()},Qt=Ci([Ko,Bn,Co],([c,b,A],J)=>{J(Sy(A)?A*b:c)}),Fi=ae(!1),No=()=>{Fi.set(!0)},mn=()=>{Fi.set(!1)},Yn=Ci([Pt],([{width:c}],b)=>{let A=$1(c);b(A)}),yr=ae(!1),Rr=X.filter(c=>Sh(c)),Ji=Ci([Yn,yr],([c,b])=>b?Rr.filter(A=>!A.hideOnMobile):Rr.filter(A=>{var J;return!((J=A.hideOnDesktopGridTypes)!=null&&J.includes(c))})),gi=ae(X.filter(c=>Ch(c))),vn=Ci([gi,Yn],([c,b])=>c.filter(A=>{var J;return!((J=A.hideOnDesktopGridTypes)!=null&&J.includes(b))})),xr=Ci([vn,Ji],([c,b])=>[...re.features.additionalButtonsDesktopControlPanelRight?c.filter(A=>A.type==="desktop-control-panel-right"):[],...re.features.additionalButtons?b.map((A,J)=>{var Te;return{id:J,weight:J,type:"desktop-control-panel-right",testId:A.testId,icon:A.iconUrl,onClick:A.onClick,ariaLabel:(Te=A.ariaLabel)!=null?Te:A.tooltip,tooltipText:A.tooltip}}):[]]),Oo=ae(D),mo=Ci([Oo],([c])=>re.features.additionalSettingsMenuItems?c.map(b=>b.type==="SWITCH"?Bt(z({},b),{onClick:b.onChangeEnabled}):b):[]),Na=(c,b)=>{let A=xe(gi).map(J=>J.id!==c?J:z(z({},J),b));gi.set(A)},$t=c=>{let b=xe(gi);if(b.some(A=>A.id===c.id)){fe({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),gi.set(b)},yt=c=>{let b=xe(gi);if(!b.some(A=>A.id===c)){fe({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}b=b.filter(A=>A.id!==c),gi.set(b)},so=c=>{qt.next(ws.LIVE),fe({message:"live switch to low latency "+c}),se.log("live switch to low latency "+c),N.setLiveLowLatency(c)},gn=(c,b)=>{let A=xe(Oo).map(J=>J.id!==c?J:z(z({},J),b));Oo.set(A)},Ui=c=>{let b=xe(Oo);if(b.some(A=>A.id===c.id)){fe({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),Oo.set(b)},hi=c=>{let b=xe(Oo);if(!b.some(A=>A.id===c)){fe({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}b=b.filter(A=>A.id!==c),Oo.set(b)},_i=ae(H),js=Ci([_i],([c])=>re.features.additionalContextMenuItems?c:[]),Oa=(c,b)=>{let A=xe(_i).map(J=>J.id!==c?J:z(z({},J),b));_i.set(A)},Uu=c=>{let b=xe(_i);if(b.some(A=>A.id===c.id)){fe({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),_i.set(b)},tc=c=>{let b=xe(_i);if(!b.some(A=>A.id===c)){fe({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}b=b.filter(A=>A.id!==c),_i.set(b)},zu=Ci([yr,Ht],([c,b],A)=>{A(c&&b)}),ic=()=>{qt.next(ws.LIVE),fe({message:"switch to active live"}),se.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==Ed.PLAYING&&Mt.actions.internal.togglePlay()},Wu=()=>{se.log("skip adman"),le.skip()},oc=(c=!0)=>{var J;sr(Mt),fe({message:`switch from ads to video, callPlay: ${c}`}),se.log("switch from ads to video",{callPlay:c}),ze.set("video"),c&&N.play(),l&&ji(!0,!0);let b=(J=xe(je))==null?void 0:J.muted,A=!N.info.muted$.getValue();b!==void 0&&!A&&ji(b,!0),je.set(void 0)},Ku=()=>{sr(Mt),fe({message:"switch from video to ads"}),se.log("switch from video to ads"),Mt.actions.internal.pause(),go(),ze.set("ads")},nc=c=>{sr(Mt);let b=c?"LiveWaitingStart":"thumb";se.log("set live waiting start",{state:c,playerPhase:b}),ze.set(b)},qu=c=>{sr(Mt);let b=c?"LiveWaitingRecover":"thumb";se.log("set live waiting recover",{state:c,playerPhase:b}),ze.set(b)},rc=c=>{sr(Mt);let b=c?"LiveWaitingRecord":"thumb";se.log("set live waiting record",{state:c,playerPhase:b}),ze.set(b)},sc=()=>(sr(Mt),se.log("get debug text data"),yh(N,st,Mt,Ne.getTraceId())),ac=()=>(sr(Mt),JSON.stringify(Ne.getFinishedSpans())),Qu=()=>(sr(Mt),xh(N,st,Mt)),Es=()=>Z,Gu=()=>{fe({message:"toggle chromecast"}),se.log("toggle chromecast"),N.toggleChromecast()},Sl=c=>{var A;if(sr(Mt),N.info.isEnded$.getValue())return;let b=!c;if(xe(Mt.playerPhase)==="ads"){fe({message:`pause ads, internalCall: ${b}`}),se.log("pause ads",{internalCall:b}),le.pause();return}fe({message:`pause video, internalCall: ${b}`}),se.log("pause video",{internalCall:b}),b&&((A=a==null?void 0:a.onPause)==null||A.call(a)),N.pause()},lc=c=>{var A;sr(Mt);let b=!c;if(xe(Mt.playerPhase)==="ads"){fe({message:`play ads, internalCall: ${b}`}),se.log("play ads",{internalCall:b}),le.play();return}fe({message:`play video, internalCall: ${b}`}),se.log("play video",{internalCall:b}),b&&((A=a==null?void 0:a.onPlay)==null||A.call(a)),N.play()},ju=c=>{sr(Mt);let b=!c;if(xe(Mt.playerPhase)==="ads"){fe({message:"player cannot be stopped during ads via external method"});return}fe({message:`player will be stopped, internalCall: ${b}`}),k==null||k()},dc=(c,b)=>{sr(Mt),fe({message:`first start, show ads: ${c}, internalCall: ${!b}`}),se.log("first start",{showAds:c,external:b}),c?ze.set("ads"):(ze.set("video"),b?N.play():Mt.actions.internal.togglePlay())},Ge=()=>(fe({message:"getting time codes"}),f),ci=()=>{let c=Ge();if(!c||[0,1].includes(c.length))return;let b=N.info.position$.getValue();return c.find(A=>A.time>b)},Bo=c=>{let b=c;b||(b=ci());let A=N.info.position$.getValue();se.log("seek to next episode",z({currentTime:A},b)),b&&(fe({message:"seek to next episode"}),fn(b.time,ws.EPISODE,!0))},Is=()=>{let c=Ge();if(!c||[0,1].includes(c.length))return;let b=N.info.position$.getValue(),A=c.findIndex(Te=>Te.time>b),J=A===-1?c.length-2:A-2;if(!(J<0))return c[J]},hn=c=>{let b=c;b||(b=Is());let A=N.info.position$.getValue();se.log("seek to prev episode",z({currentTime:A},b)),b&&(fe({message:"seek to prev episode"}),fn(b.time,ws.EPISODE,!0))},x_=()=>(fe({message:"getting preview thumbs data"}),se.log("get preview thumbs data",z({},v)),v),w_=()=>xt(null,null,function*(){let c=ie==null?void 0:ie.isActive(),b="none";ie!=null&&ie.isActive()?(b="exit",yield ie==null?void 0:ie.exit()):(b="request",yield ie==null?void 0:ie.request()),se.log("toggle picture in picture",{isActive:c,action:b})}),S_=(c=-90)=>{se.log("rotate video",{alphaDiff:c}),Ut.update(b=>b+c)},cc=ae([]);T==null||T.subscribe(c=>{let b=[];for(let A=0;A<c.length;A++){let{range:[J,Te],subjects:nt}=c[A];A===0&&J!==0&&b.push({time:0,text:"",interactive:!1,completed:!0}),b.push({time:J/1e3,text:"",interactive:!0,completed:re.features.interactiveTimeOpenUri?!nt.length||nt.every(Vt=>Vt.isRemoved):!nt.length}),Te!==1/0&&b.push({time:Te/1e3,text:"",interactive:!1,completed:!0})}cc.set(b)});let C_=ae(!1);E==null||E.subscribe(c=>{c&&xe(To)&&Xi()});let yv=c=>{if(!S)return c;let b=xe(cc),A=xe(Bn),Te=xe(cr)/A,nt=b.find(Vt=>Vt.interactive&&!Vt.completed&&Vt.time>Te);return typeof(nt==null?void 0:nt.time)=="number"?Math.min(c,nt.time-.05):c},T_=()=>{Mt.ui.episodes.panelOpened$.set(!1)},E_=()=>{se.log("destroy store"),clearTimeout(Pi),clearTimeout(li),Ke.unsubscribe(),zt.unsubscribe(),N.destroy(),le.destroy(),ue==null||ue.destroy(),ge==null||ge.destroy(),ne.unsubscribe(),ri==null||ri.disconnect(),ri=null,Pe.destroy()},Mt={interfaceLanguage$:_e,isCyrillicRelatedInterface$:ce,initVideo:tt,videoId:i,isClip:o,playerPhase:Re,vsid:lt,state:{positionExact$:Ko,positionWithScrubbing$:Qt,duration$:Bn,playbackState$:en,isPlaying$:dr,isLoaderVisible:lr,bufferedProgress$:Un,isLive$:ft,canChangePlaybackSpeed$:Ft,isActiveLive$:Ir,isOldestAvailableLive$:kr,isRewindableLive$:ur,isEnded$:we,muted$:pi,volume$:Yt,trafficSavingEnabled$:_o,highQualityEnabled$:fi,autoQualityLimitingAvailable$:Tt,availableVideoStreams$:Pr,availableAudioStreams$:Ri,videoStream$:Dn,audioStream$:wn,currentQuality$:Vo,isAutoQualityEnabled$:gr,availableQualities$:ut,currentPlaybackRate$:si,availablePlaybackRates$:rn,currentSubtitle$:Gi,availableTextTracks$:sn,availableSubtitlesList$:dn,currentSubtitleCaptions$:Ar,isAutoSubtitleCaptionVisible$:Gr,chromecastState$:on,chromecastDeviceName$:Rn,chromecastConnected$:qo,currentFormat$:mi,throughputEstimation$:Lo,videoBitrate$:Nn,videoSize$:ar,errorLog$:Wt,crashed$:Ht,isAudioAvailable$:On,isAudioDisabled:!!l,canDownload:re.features.download&&!!d,availableSources$:br,hasMpegSources$:yo,isInteractive:S,showInteractiveGraph:re.features.interactiveGraph,showSeekToInteractive:re.features.seekToInteractive,showPlayPrevChapter:re.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:re.features.interactiveTimeIndicator&&!!xe(cc).length,interactiveEpisodes$:cc,isInteractiveTime$:E?ii(E):ae(!1),isInteractiveExpectation$:C_,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:R,looped$:xo,loadedMetadata$:ti,isAutoQualityAvailable$:_r},ui:{t:Be,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:X.length?X.reduce(c=>[...c,ae(void 0)],[]):[],disabledControls$:Xe},modals:{hotKeyMap:{show:ae(!1),data:ae({title:"",closeBtnText:"",groups:[]})}},isFullscreen:mt,isFullscreenOpenedByKeyboard:vt,rotateAlpha:Ut,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:Pt,isMobile:yr,mobileNotReportControlHidden$:zu,icon3DVideoVisible:ae(!1),scrubbingInProgress:To,volumeChangingInProgress:Fi,is3DVideo:jt,currentGridType$:Yn,additionalButtonsDeprecated$:Ji,additionalDesktopControlPanelRightButtons$:xr,additionalSettingsMenuItems$:mo,additionalContextMenuItems$:js,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:pn,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:ie,annotationsApi:ve,slotsApi:Fe},actions:{internal:{preload:Zr,firstStart:c=>dc(c,!1),play:()=>lc(!1),pause:()=>Sl(!1),togglePlay:it,toggleMuted:uo,openSettingsMenu:Yr,closeSettingsMenu:jr,openSettingsSubMenu:at,closeSettingsSubMenu:Mr,setVolume:c=>po(c,!1),setMuted:c=>ji(c,!1),startVolumeChanging:No,stopVolumeChanging:mn,setVideoStream:pr,setAudioStream:c=>fr(c,!1),setQuality:(c,b)=>Et(c,b,!1),setTrafficSavingEnabled:(c,b)=>vi(c,b,!1),setHighQualityEnabled:(c,b)=>no(c,b,!1),setPlaybackRate:Zi,incrementPlaybackRate:Qo,decrementPlaybackRate:un,setSubtitle:c=>Sn(c,!1),toggleSubtitle:()=>Hi(!1),togglePictureInPicture:w_,startScrubbing:Ce,progressScrubbing:bt,completeScrubbing:Je,toggleChromecast:Gu,switchToActiveLive:ic,switchFromAdsToVideo:oc,switchFromVideoToAds:Ku,skipAd:Wu,setLiveWaitingStart:nc,setLiveWaitingRecover:qu,setLiveWaitingRecord:rc,getDebugTextData:sc,getTraceTextData:ac,getDebugPanelData:Qu,getVideoElement:Es,seekTime:(c,b,A)=>fn(c,b,A),clearDelayedBufferingCheckTimeout:nn,seekEpisodeStartTime:Xr,seekToPercent:So,getNextEpisode:ci,seekToNextEpisode:Bo,getPrevEpisode:Is,seekToPrevEpisode:hn,startLogging:ui,stopLogging:At,startCameraManualRotation:pt,stopCameraManualRotation:xi,moveCameraFocusPX:ho,holdCamera:Qi,releaseCamera:di,getVideoEpisodes:Ge,getPreviewThumbsData:x_,downloadVideo:Zt,addLanguage:af,setLanguage:Se,nextMovie:Ti,videoRotate:S_,correctSeekTimeToInteractive:yv,replayInteractive:V,setLooped:Yi,reportProblem:Wn,setAutoplayNextEnabled:wi,setTimerNextVideoRunning:Kn,prevVideoClick:qn,nextVideoClick:cs,nextVideoAnnouncementShow:us,nextVideoAnnouncementClick:oo,nextVideoAnnouncementAuto:Qn,nextVideoAnnouncementCancel:$r,checkFullscreenSupport:Ct},external:{firstStart:c=>dc(c,!0),play:()=>lc(!0),pause:()=>Sl(!0),stop:()=>ju(!0),seekTime:c=>Cn(c),seekEpisodeStartTime:c=>Xt(c),setPlaybackRate:c=>Ai(c),setAutoQualityLimits:c=>Ze(c),setMuted:c=>ji(c,!0),toggleSubtitle:()=>Hi(!0),changeSubtitle:Ro,setVolume:c=>po(c,!0),returnFocusToEpisodes:T_,updateAdditionalSettingsItem:gn,addAdditionalSettingsItem:Ui,removeAdditionalSettingsItem:hi,updateAdditionalContextItem:Oa,addAdditionalContextItem:Uu,removeAdditionalContextItem:tc,updateAdditionalButton:Na,addAdditionalButton:$t,removeAdditionalButton:yt,setLiveLowLatency:so,hideControls:()=>Vr(!1),showControls:()=>Vr(!0),setQuality:c=>Et(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>vi(c,"to-video",!0),setHighQualityEnabled:c=>no(c,"to-video",!0)}},callbacks:a,setUiCallbacks:c=>{Le=z({},c)},getAdmanWrapper:()=>le,getLogger:()=>De,getPlayer:()=>N,destroy:E_};return Mt};function Ln(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}=xs(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 Ry=["disabledControls$","additionalButtons"],Ny=["interactiveTimeIndicator"],_l=(t,e,i,o)=>{if(t){for(let[n,s]of Object.entries(e))if(!Ry.includes(n)){let l=o||Ny.includes(n);s.set(Ln(t,i,n,l))}}};var yu=(t,e,i)=>xt(null,null,function*(){yield Io(),e&&i&&(i.focus(),t.set(!1))});var Oy=Ie('<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 nm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Oy();Me(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);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ee(),h(o),$(t,o)}function rm(t,e){F(e,!0);let[i,o]=Ue(),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$,x=Y(void 0);Qe(()=>{r(x)&&wt(()=>{p.set(r(x))})});let w=E=>{let V=Us(E),k=p1(r(x));v.set(k),u.set(V),a.set(!n())},y=()=>{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:y,blur:S,get ariaExpanded(){return n()},get ref(){return r(x)},set ref(E){O(x,E,!0)},children:(E,V)=>{nm(E,{})},$$slots:{default:!0}}),U(),o()}var By=t=>{t.stopPropagation()},Dy=M("<div><!> <div></div> <div></div></div>"),Hy={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;}
228
+ }`};function im(t,e){z(e,!0),q(t,ty);let i=v(e,"isMobile",3,!1),o=g(()=>e.iconState===N1.CONNECTED),n=g(()=>e.iconState===N1.CONNECTING);var s=Fe(),l=fe(s);{var d=u=>{var f=J2(),m=_(f),p=_(m),x=_(p);ye(),h(p);var y=k(p);ye(),h(m);var w=k(m),T=_(w),S=_(T);h(T),ye(),h(w),h(f),D(()=>{Ne(x,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Ne(y,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Ne(S,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),$(u,f)},a=u=>{var f=ey();let m;var p=_(f),x=k(_(p),5);let y;h(p),h(f),D((w,T)=>{m=se(f,0,"svelte-8z1bf5",null,m,w),y=se(x,0,"svelte-8z1bf5",null,y,T)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),$(u,f)};R(l,u=>{i()?u(d):u(a,!1)})}$(t,s),W()}import{noop as oy}from"@vkontakte/videoplayer-shared/es2015";function Td(t,e){z(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"click",3,oy),l=Ce().ui.t,d=g(()=>e.state===iy.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Dt(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)=>{im(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),W()}var ny=P('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),ry={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 om(t,e){q(t,ry);let i=v(e,"active",3,!1),o=v(e,"pointer",3,!1),n=v(e,"translateXPx",3,0),s=v(e,"translateYPx",3,0),l=v(e,"leftOffset",3,0),d=v(e,"rightOffset",3,0),a=J(void 0),u=J(void 0);function f(T){if(!r(u))return 0;let{width:S}=r(u).getBoundingClientRect(),E=S/2;return T<E?E+l():T>e.containerWidth-E?e.containerWidth-E-d():T}let m=g(()=>f(n()));var p=ny(),x=_(p);let y;var w=_(x);ge(w,()=>{var T;return(T=e.children)!=null?T:de}),h(x),st(x,T=>N(u,T),()=>r(u)),h(p),st(p,T=>N(a,T),()=>r(a)),D(T=>{dt(p,`transform: translate(${r(m)}px, ${s()}px);`),y=se(x,1,"tooltip svelte-5ygsa2",null,y,T),dt(x,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),$(t,p)}var _u=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var B1=t=>!!(Math.round(Math.abs(t)/90)%2),D1=t=>Math.abs(t)/90%4===1;var sy=P('<div class="preview svelte-1wqg760"></div>'),ay=P('<div class="time svelte-1wqg760"> </div>'),ly=P('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),dy={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 nm(t,e){z(e,!0),q(t,dy);let[i,o]=Be(),n=()=>C(y,"$rotateAlpha",i),s=()=>C(w,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=v(e,"time",3,""),a=v(e,"isMobile",3,!1),u=v(e,"videoEpisodes",19,()=>[]),f=v(e,"progress",3,0),m=v(e,"duration",3,0),p=v(e,"isInteractive",3,!1),x=Ce(),y=x.ui.rotateAlpha,w=x.ui.playerSize,T=J(0),S=J(0),E=J(""),V=J(0),I=J(0),L=J(0),B=J(0),F=g(()=>_u(f(),m(),u())),H=g(()=>B1(n())),U=g(()=>D1(n())),Z=g(be),re=g(()=>(r(U)?1:-1)*(r(T)/2-r(S)/2)),G=g(()=>r(re)*-1);ze(()=>{(j=>{N(T,j.width,!0),N(S,j.height,!0)})(me())}),ze(()=>{(j=>{N(E,j.imgSrc,!0),N(V,j.imgWidth,!0),N(I,j.imgHeight,!0),N(L,j.imgOffsetX,!0),N(B,j.imgOffsetY,!0)})(pe(f()))});function be(){var Ze;let j=a()?l.MOBILE:l.DESKTOP,{isVertical:oe}=ie(),Oe=30;return(Ze=r(F))!=null&&Ze.text&&(Oe+=16),(oe||r(H))&&(Oe+=18,Oe+=50),Math.min(Math.max(s().height-Oe,0),j)}function ie(){let j=e.previewThumbsData.frameWidth,oe=e.previewThumbsData.frameHeight,Oe=oe>j;return{width:j,height:oe,isHorizontal:!Oe,isVertical:Oe}}function me(){let{height:j,isHorizontal:oe,isVertical:Oe,width:Ze}=ie();return oe&&(j=j/Ze*r(Z),Ze=r(Z)),Oe&&(Ze=Ze/j*r(Z),j=r(Z)),{width:Ze,height:j}}function pe(j){let oe;e.previewThumbsData.isUV?oe=Math.floor(m()*j/e.previewThumbsData.frequency):oe=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*j)));let Oe=Math.floor(oe/e.previewThumbsData.countPerImage),Ze=Math.floor(oe%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),$e=oe%e.previewThumbsData.countPerRow,te=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Oe===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(te=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&te++);let we=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Oe===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(we=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Te=r(T)*we,Ke=r(S)*te,it=-$e*r(T),ht=-Ze*r(S);return{imgSrc:e.previewThumbsData.links[Oe],imgWidth:Te,imgHeight:Ke,imgOffsetX:it,imgOffsetY:ht}}var ue=ly();let Le;var Ve=_(ue);{var ae=j=>{var oe=sy();D(()=>dt(oe,`width: ${r(T)}px; height: ${r(S)}px; background-image: url(${r(E)}); background-size: ${r(V)}px ${r(I)}px; background-position: ${r(L)}px ${r(B)}px;
229
+ transform: rotate(${n()}deg) ${r(H)?`translate(${r(re)}px, ${r(G)}px)`:""};
230
+ `)),$(j,oe)};R(Ve,j=>{r(E)&&j(ae)})}var Re=k(Ve,2),X=_(Re);{var M=j=>{var oe=Fe(),Oe=fe(oe);{var Ze=te=>{var we=ls();D(Te=>ve(we,Te),[()=>Q("tooltip_episode_unfinished")]),$(te,we)},$e=te=>{var we=ls();D(()=>ve(we,r(F).text||"")),$(te,we)};R(Oe,te=>{p()&&r(F).completed===!1?te(Ze):te($e,!1)})}$(j,oe)};R(X,j=>{r(F)&&j(M)})}h(Re);var at=k(Re,2);{var De=j=>{var oe=ay(),Oe=_(oe,!0);h(oe),D(()=>ve(Oe,d())),$(j,oe)};R(at,j=>{p()||j(De)})}h(ue),D(j=>{Le=se(ue,1,"timeline-preview svelte-1wqg760",null,Le,j),dt(ue,`width: ${r(H)?r(S):r(T)}px;`)},[()=>({mobile:a()})]),$(t,ue),W(),o()}var cy=P('<span class="time svelte-1jr6obn"> </span>'),uy=P("<!> <!>",1),py={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 rm(t,e){var ce,Ue,We,Se,lt;z(e,!0),q(t,py);let[i,o]=Be(),n=()=>C(re,"$interactiveEpisodes$",i),s=()=>C(L,"$duration$",i),l=()=>C(I,"$position$",i),d=()=>C(ie,"$isInteractiveExpectation$",i),a=()=>C(be,"$isInteractiveTime$",i),u=()=>C(B,"$isLive$",i),f=()=>C(H,"$isMobile",i),m=()=>C(F,"$isActiveLive$",i),p=()=>C(V,"$bufferedProgress$",i),x=()=>C(ue,"$disabledControls$",i),y=v(e,"showTimeline",3,!1),w=v(e,"withEpisodes",3,!0),T=v(e,"ref",15,void 0),S=Ce(),E=At(),V=S.state.bufferedProgress$,I=S.state.positionWithScrubbing$,L=S.state.duration$,B=S.state.isLive$,F=S.state.isActiveLive$,H=S.ui.isMobile,U=E.features.episodes&&w()?S.actions.internal.getVideoEpisodes():void 0,Z=S.actions.internal.getPreviewThumbsData(),re=S.state.interactiveEpisodes$,G=S.state.isInteractive,be=S.state.isInteractiveTime$,ie=S.state.isInteractiveExpectation$,me=S.actions.internal.correctSeekTimeToInteractive,pe=(ce=S.callbacks)==null?void 0:ce.onDisabledTimelineClick,ue=S.ui.controls.disabledControls$,Le=(We=(Ue=S.callbacks)==null?void 0:Ue.uiInfo)==null?void 0:We.onTimelineMouseEnter,Ve=(lt=(Se=S.callbacks)==null?void 0:Se.uiInfo)==null?void 0:lt.onTimelineMouseLeave,ae=S.ui.t,Re=E.features.interactiveResponsiveUi,X=g(()=>G?n():U),M=g(()=>hn(s())),at=g(()=>hn(l())),De=g(()=>l()/s()),j=g(()=>d()||a()),oe=J(!1),Oe=J(""),Ze=J(0),$e=J(0),te=J(0),we=g(()=>({containerWidth:r($e),translateXPx:r(Ze),translateYPx:G&&Z?-36:-16,active:r(oe)&&y()&&!r(j)&&!Re,pointer:!E.features.timelinePreview||!Z||u()})),Te=ae("aria_timeline"),Ke=g(()=>ae("aria_timeline_value",{position:r(at),duration:r(M)}));function it(qe){return!me||!G?qe:me(qe*s())/s()}function ht(qe){S.actions.internal.startScrubbing(it(qe))}function pt(qe){a()||S.actions.internal.progressScrubbing(it(qe))}function _t(qe){S.actions.internal.completeScrubbing(it(qe)),N(oe,!1)}function Je(qe,bt,Qe){Zt(qe,bt,Qe),N(oe,!0)}function zt(qe,bt,Qe){Zt(qe,bt,Qe),N(oe,!0)}function Yt(){N(oe,!1)}function Zt(qe,bt,Qe){N(te,it(qe),!0),N(Ze,bt,!0),Qe&&N($e,Qe,!0),N(Oe,Xt(qe),!0)}function Xt(qe){let bt=hn((u()?1-qe:qe)*s());return u()?`-${bt}`:bt}var ke=uy(),Jt=fe(ke);om(Jt,ws(()=>r(we),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(qe,bt)=>{var Qe=Fe(),je=fe(Qe);{var tt=Wt=>{nm(Wt,{get time(){return r(Oe)},get isMobile(){return f()},get videoEpisodes(){return r(X)},get previewThumbsData(){return Z},get progress(){return r(te)},get duration(){return s()},get isInteractive(){return G}})},Vt=Wt=>{var ai=cy(),li=_(ai,!0);h(ai),D(()=>ve(li,r(Oe))),$(Wt,ai)};R(je,Wt=>{E.features.timelinePreview&&Z&&!u()?Wt(tt):Wt(Vt,!1)})}$(qe,Qe)},$$slots:{default:!0}}));var he=k(Jt,2);let Ee=g(()=>x().has("TIMELINE"));wa(he,{className:"timeline-slider",get isActiveLive(){return m()},get isMobile(){return f()},get ariaLabel(){return Te},ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return l()},get ariaValueText(){return r(Ke)},get loadedProgress(){return p()},get filledProgress(){return r(De)},get handleProgress(){return r(De)},get videoEpisodes(){return r(X)},onPointerDown:ht,onHandleMove:pt,onPointerMove:zt,onPointerUp:_t,onPointerEnter:Je,onPointerLeave:Yt,get onMouseEnter(){return Le},get onMouseLeave(){return Ve},get onDisabledClick(){return pe},get isInteractive(){return G},get disabled(){return r(Ee)},get hideHandel(){return a()},testId:"progress_bar",onContextMenu:_t,get ref(){return T()},set ref(qe){T(qe)}}),$(t,ke),W(),o()}var fy={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 Ed(t,e){z(e,!0),q(t,fy);let[i,o]=Be(),n=()=>C(a,"$isMobile",i),s=v(e,"position",3,0),l=v(e,"duration",3,0),d=Ce(),a=d.ui.isMobile,u=d.ui.t,f=g(()=>hn(l())),m=g(()=>hn(s())),p=g(()=>s()/l()),x=g(()=>u("aria_timeline_value",{position:r(m),duration:r(f)})),y=g(()=>Math.round(r(p)*100));wa(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return r(y)},get ariaValueText(){return r(x)},get filledProgress(){return r(p)},hideHandel:!0,get squareBorders(){return n()}}),W(),o()}var my=P("<div><!></div>"),vy=P("<div></div>"),gy={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 Sa(t,e){z(e,!0),q(t,gy);let[i,o]=Be(),n=()=>C(T,"$isLive$",i),s=()=>C(V,"$isMobile",i),l=()=>C(I,"$disabled",i),d=()=>C(E,"$adPosition",i),a=()=>C(S,"$adDuration",i),u=v(e,"isAds",3,!1),f=v(e,"isHidden",3,!1),m=v(e,"timelineNotAvailable",3,!1),p=v(e,"needPadding",3,!0),x=v(e,"ref",15,void 0),y=Ce(),w=At(),T=y.state.isLive$,S=y.ads.duration,E=y.ads.position,V=y.ui.isMobile,I=le(!1),L=g(()=>!m()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||u()));var B=Fe(),F=fe(B);{var H=Z=>{var re=my();let G;var be=_(re);{var ie=pe=>{Ed(pe,{get position(){return d()},get duration(){return a()}})},me=pe=>{rm(pe,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return r(L)},get withEpisodes(){return e.withEpisodes},get ref(){return x()},set ref(ue){x(ue)}})};R(be,pe=>{u()?pe(ie):pe(me,!1)})}h(re),xs(re,()=>ll(f()&&w.features.usePerformanceFix,I,w.disableInvisibleComponentsTimeout)),D(pe=>G=se(re,1,"timeline svelte-41cp6d",null,G,pe),[()=>({withoutPadding:!p(),mobile:s(),"out-of-flow":l()})]),$(Z,re)},U=Z=>{var re=vy();let G;D(be=>G=se(re,1,"timeline-stub svelte-41cp6d",null,G,be),[()=>({mobile:s()})]),$(Z,re)};R(F,Z=>{r(L)?Z(H):Z(U,!1)})}$(t,B),W(),o()}import{noop as by}from"@vkontakte/videoplayer-shared/es2015";var hy=xe('<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 sm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=hy();Ie(o,()=>K({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);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(3),h(o),$(t,o)}var _y=xe('<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 am(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=_y();Ie(o,()=>K({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);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(),h(o),$(t,o)}var $y=P('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),yy=P('<span class="text svelte-1yhs2ga"> </span>'),xy=P('<span class="text count svelte-1yhs2ga"> </span>'),wy=P("<!> <!>",1),Sy={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 Id(t,e){var ie,me,pe;z(e,!0),q(t,Sy);let[i,o]=Be(),n=()=>C(y,"$currentGridType$",i),s=()=>C(w,"$openedByKeyboard$",i),l=()=>C(T,"$panelOpened$",i),d=()=>C(S,"$isMobile",i),a=v(e,"position",3,0),u=v(e,"duration",3,0),f=v(e,"timeCodes",19,()=>[]),m=Ce(),p=(me=(ie=m.callbacks)==null?void 0:ie.onEpisodeChanged)!=null?me:by,x=!!((pe=m.callbacks)!=null&&pe.onEpisodeClicked),y=m.ui.currentGridType$,w=m.ui.episodes.openedByKeyboard$,T=m.ui.episodes.panelOpened$,S=m.ui.isMobile,E=m.ui.t,V=J(void 0),I=ue=>{var Ve,ae,Re;if(!!((Ve=m.callbacks)!=null&&Ve.onEpisodeClicked)){let X=qs(ue);w.set(X),T.set(!0),(Re=(ae=m.callbacks)==null?void 0:ae.onEpisodeClicked)==null||Re.call(ae,X)}},L=J(null),B=g(()=>a()/u());ze(()=>{var Le;let ue=_u(r(B),u(),f());ue?((Le=r(L))==null?void 0:Le.time)!==ue.time&&(p(ue),N(L,ue,!0)):N(L,null)});let F=g(()=>{var ue;return((ue=r(L))==null?void 0:ue.text)||""}),H=g(()=>Ji(n(),"xl")?"FULL":Ji(n(),"m")&&R1(n(),"xl")?"COUNT":"SHORT"),U=g(()=>`${E("tooltip_episodes")}: ${r(F)}`),Z=(ue,Le,Ve)=>Tt(null,null,function*(){yield yo(),(ue==null?void 0:ue.getAttribute("aria-expanded"))==="false"&&Le&&!Ve&&Et(()=>{w.set(!1),ue.focus()})});ze(()=>{Z(r(V),s(),l())});var re=Fe(),G=fe(re);{var be=ue=>{let Le=g(()=>d()?"px-0":""),Ve=g(()=>!x);Dt(ue,{get className(){var ae;return`w-max btn-full-opacity btn-jc-l ${(ae=r(Le))!=null?ae:""}`},testId:"btn-episodes",click:I,get disabled(){return r(Ve)},get ariaExpanded(){return l()},get ariaLabel(){return r(U)},get ref(){return r(V)},set ref(ae){N(V,ae,!0)},children:(ae,Re)=>{var X=Fe(),M=fe(X);{var at=j=>{var oe=$y(),Oe=fe(oe),Ze=_(Oe,!0);h(Oe);var $e=k(Oe,2),te=_($e);am(te,{}),h($e),D(()=>ve(Ze,r(F))),$(j,oe)},De=j=>{var oe=wy(),Oe=fe(oe);sm(Oe,{});var Ze=k(Oe,2);{var $e=we=>{var Te=yy(),Ke=_(Te,!0);h(Te),D(()=>ve(Ke,r(F))),$(we,Te)},te=(we,Te)=>{{var Ke=it=>{var ht=xy(),pt=_(ht,!0);h(ht),D(()=>ve(pt,f().length)),$(it,ht)};R(we,it=>{r(H)==="COUNT"&&it(Ke)},Te)}};R(Ze,we=>{r(H)==="FULL"?we($e):we(te,!1)})}$(j,oe)};R(M,j=>{d()?j(at):j(De,!1)})}$(ae,X)},$$slots:{default:!0}})};R(G,ue=>{r(L)&&ue(be)})}$(t,re),W(),o()}import{debounceFn as J1}from"@vkontakte/videoplayer-shared/es2015";import{ChromecastState as My,PlaybackState as Ad,Player as Vy,PredefinedQualityLimits as fs,VideoFormat as Pd,clientChecker as q1}from"@vkontakte/videoplayer-core/es2015";import{assertNonNullable as pr,getHighestQuality as Ry,InterfaceLanguage as Oy,isInvariantQuality as Ny,isNonNullable as By,loadVKLangPack as Dy,Logger as Fy,map as Q1,merge as Hy,Observable as Tu,Subject as Eu,Subscription as fm,TracerFactory as Uy,ValueSubject as zy,VideoQuality as Wy,devNull as Ky,now as qy,filter as Qy,once as Gy}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as Ts}from"@vkontakte/videoplayer-statistics/es2015";import{detectEmbed as Cy,devNull as ti,isNonNullable as Ty,now as ii}from"@vkontakte/videoplayer-shared/es2015";import{addScript as Ey,Subject as nn,clearVideoElement as Iy}from"@vkontakte/videoplayer-shared/es2015";var F1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var ky="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",bu=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 nn,loadStarted$:new nn,loadEnded$:new nn,loadError$:new nn,ready$:new nn,slotRequested$:new nn,started$:new nn,timeRemained$:new nn,paused$:new nn,resumed$:new nn,ended$:new nn,empty$:new nn,skipped$:new nn,clicked$:new nn,closed$:new nn,error$:new nn};this.loadAdman=e=>(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[ii()]}),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?(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[ii()]}),i(),this.events.loadEnded$.next()):(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[ii()]}),o())};Ey(ky,e,this.loadTimeout).then(()=>{ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[ii()]}),window.AdmanHTML?(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[ii()]}),i(),this.events.loadEnded$.next()):(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[ii()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout))}).catch(l=>{ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[ii()]}),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?(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[ii()]}),i(),this.events.loadEnded$.next()):(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[ii()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[ii()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[ii()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[ii()]}),!d&&(window.AdmanHTML?(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[ii()]}),i(),this.events.loadEnded$.next()):(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[ii()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout)))},l).finally(()=>{clearTimeout(n),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[ii()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[ii(),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=>{var o;((o=this.adsState)!=null&&o.playbackState?_e(this.adsState.playbackState):void 0)!=="inactive"&&(this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized"))};this.onAdPaused=()=>{var e;ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[ii()]}),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;ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[ii()]}),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(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[ii()]}),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;ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[ii()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[ii()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[ii()]}),this.log({message:"ad completed"}),this.currentAdSection?(this.events.ended$.next(this.currentAdSection),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0)):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[ii()]}),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")=>{ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[ii()]}),this.log({message:e}),this.events.error$.next(e),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[ii()]}),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(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[ii(),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={},paramsOverride:f={},duration:m}=e,p,x=this.playerState&&_e(this.playerState.vsid);x&&(this.isVsidOriginal?p=x:p=parseInt(x,36));let{isEmbed:y,immediateOrigin:w}=Cy(),T=(V=y?w:window.location.href)!=null?V:window.location.href,S=K(K(Ht(K(Ht(K({},u),{dl:encodeURIComponent(T),autoplay:s?1:0,player_width:i,player_height:o}),p?{request_id:p}:{}),{duration:m}),this.usePuid?{puid10:F1(i,o),puid11:n?0:1}:{}),f);S=Object.fromEntries(Object.entries(S).filter(([I,L])=>Ty(L)));let E={slot:a,wrapper:l,videoEl:d,videoQuality:o,params:S,browser:{mobile:!1}};try{let I=new window.AdmanHTML;I.setDebug(!1),I.onReady(this.onAdsReady),I.onStarted(this.onAdStarted),I.onPlayed(this.onAdPlayed),I.onPaused(this.onAdPaused),I.adMidrollPoint(this.onAdMidrollPoint),I.onClosed(this.onAdClosed),I.onSkipped(this.onAdSkipped),I.onClicked(this.onAdClicked),I.onTimeRemained(this.onAdTimeRemained),I.onCompleted(this.onAdCompleted),I.onError(this.onAdError),I.init(E),this.adman=I,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(E)}`})}catch(I){ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(I)],numbers:[ii()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,s;if(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[ii()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.log({message:`switch to video, isPostroll: ${i}`});else{let l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(s=(n=this.actions).switchFromAdsToVideo)==null||s.call(n,!i)}}setPostrollPassed(e){var i;(i=this.adsState)==null||i.postrollPassed.set(e),this.log({message:"postroll passed"})}togglePlay(){var e;if(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[ii()]}),this.adsState){this.log({message:"toggle play"});let i=_e(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(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[ii()]}),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(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[ii()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&this.stopWatchDog(),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[ii()]}),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(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[ii()]}),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(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[ii()]}),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,m,p;ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[ii()]}),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),(m=this.adman)==null||m.onError(void 0),(p=this.adman)==null||p.destroy(),this.videoElement&&Iy(this.videoElement),this.isDestroyed=!0}};var H1=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 lm=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 $u,{startTime:f,endTime:m}=u.parse(a);l.startTime=f,l.endTime=m}else if(a.trim()!==""){let u=new dm,{texts:f}=u.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},$u=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}},dm=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,m)=>{let p=l.indexOf(m,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 $u;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}},U1=lm;import{isNonNullable as cm}from"@vkontakte/videoplayer-shared/es2015";var Ca,Pi,um=0,pm=!1,z1="",W1=(t,e=0,i=0)=>t<e&&t<i,yu=(t,e=0,i=0)=>t>=e&&t<=i,Ay=(t,e=0,i=0)=>t>e&&t>i,K1=(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})=>yu(t,u,f));let s=t>=um,l=t<um;if(um=t,l&&(pm=!1),cm(Ca)&&yu(t,Ca.startTime,Ca.endTime)&&z1===e.value)return Ca;if(!cm(Pi)&&(n!=null&&n.length)&&!pm){Pi=n.find(({startTime:u,endTime:f})=>yu(t,u,f)||s&&W1(t,u,f)),Ca=void 0,!cm(Pi)&&n[n.length-1].endTime<t&&(pm=!0);return}else{if(yu(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime))return Ca=Pi,Pi=void 0,z1=e.value,Ca;(s&&Ay(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime)||l&&W1(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime))&&(Pi=void 0)}};var xu={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"},Py={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"},kd=t=>{var e,i;return(i=(e=xu[t])!=null?e:xu[Py[t]])!=null?i:void 0};import{Subscription as Ly}from"@vkontakte/videoplayer-shared/es2015";import"@vkontakte/videoplayer-statistics/es2015";var wu=class{constructor(e,i,o,n=new Ly){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 Su=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Su||{});var ps=t=>t!=null?t:0,Cs=(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(ps(i==null?void 0:i.top)-ps(o==null?void 0:o.top)),left:Math.round(ps(i==null?void 0:i.left)-ps(o==null?void 0:o.left)),bottom:Math.round(ps(i==null?void 0:i.bottom)-ps(o==null?void 0:o.top)),right:Math.round(ps(i==null?void 0:i.right)-ps(o==null?void 0:o.left))}},vl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:ps(e==null?void 0:e.width),height:ps(e==null?void 0:e.height)}};var Cu="off";var G1=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:s,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:u,videoEpisodes:f,previewThumbsData:m,uiConfig:p,coreConfig:x,player:y,disabledControls:w,isInteractive:T,interactiveRanges$:S,isInteractiveTime$:E,replayInteractive:V,stopPlayer:I,hasInteractiveBranches:L,playPrevChapterDisabledTooltip:B,additionalButtons:F,additionalSettingsMenuItems:H,additionalContextMenuItems:U,playPrevVideo:Z,playNextVideo:re,onVideoChanged:G,looped:be=!1,statistics:ie,saveRate:me,internalsExposure:pe,playerView:ue,playerId:Le})=>{var Bv,Dv,Fv;let Ve=Ht(K({},x),{configName:[...(Bv=x.configName)!=null?Bv:[],"ui"],isAudioDisabled:l,live:Ht(K({},(Dv=x.live)!=null?Dv:{}),{isLiveCatchUpMode:!!n})}),ae=p,Re=Uy.createRootTracer(ae.features.tracer),X=Re.createComponentTracer("Store"),M=y||new Vy(Ve,Re,{playerId:Le});pe==null||pe.expose({corePlayer:M});let at=new Fy,De=new bu(at,{loadTimeout:ae.ads.loadTimeout,initTimeout:ae.ads.initTimeout,runtimeTimeout:ae.ads.runtimeTimeout,useAdmanFromNPM:ae.ads.useAdmanFromNPM,volumeMultiplier:ae.ads.volumeMultiplier,isVsidOriginal:ae.ads.isVsidOriginal,usePuid:ae.ads.usePuid}),j=ma.getInstance(),oe=u==null?void 0:u.pictureInPictureApi,Oe=u==null?void 0:u.annotationsApi,Ze=u==null?void 0:u.slotsApi,$e=at.createComponentLog("Store"),te,we,Te={},Ke=new Gc,it=new fm,ht="",pt=le(!1),_t=ie&&ie.oneStat?ri(ie.oneStat.vsid$):kr(void 0),Je=le(zs()),zt=le(!1),Yt=()=>f1(document,q1.device.isIOS),Zt=(Fv=oe==null?void 0:oe.info.isActive$)!=null?Fv:new zy(!1),Xt=le(0),ke=le(!1),Jt=le(!1),he=le([]),Ee=Hy(M.events.fatalError$,M.events.managedError$).subscribe(c=>he.update(b=>[...b,c])),ce=kr(!1,c=>{let b=M.events.fatalError$.subscribe(()=>c(!0));return()=>b.unsubscribe()}),Ue=c=>Tt(null,null,function*(){var ne;let b=Object.values(Oy).includes(c);if(ae.downloadVKLanguages&&(b&&ae.updateBuiltinLanguages||!_f(c))){let Ae;try{Ae=yield Dy(c,Eh,Ih)}catch(ot){(ne=ie==null?void 0:ie.oneStat)==null||ne.logError({errorType:"VKLangPack",fatal:!1}),j==null||j.report(ot,{errorType:"VKLangPack",fatal:!1})}Ae&&(hf({language:c,pack:Ae,fallback:ae.defaultLanguage}),We.set(c))}_f(c)&&We.set(c)}),We=le(t),Se=le(e);Ue(t);let lt=(c,b)=>{let A=_e(We);return bf(A,c,b,ae.defaultLanguage)},qe=le("thumb");qe.subscribe(c=>{c==="ads"&&M.info.playbackState$.getValue()&&je()});let bt=(()=>{let c=$i([ce,qe],([b,A])=>b?"crashed":A);return Ht(K({},c),{is:b=>_e(c)===b})})(),Qe=le(),je=()=>{Qe.set({muted:M.info.muted$.getValue()})},tt=(()=>{let c=le(new Set(w));return Ht(K({},c),{add:b=>{c.update(A=>new Set([...A].concat(b)))},remove:b=>{c.update(A=>{let ne=[...A];return new Set(Array.isArray(b)?ne.filter(Ae=>!b.includes(Ae)):ne.filter(Ae=>Ae!==b))})},includes:b=>{let A=_e(c);return Array.isArray(b)?b.every(ne=>A.has(ne)):A.has(b)}})})(),Vt=le({width:0,height:0}),Wt=null,ai=M.info.isBuffering$,li=kr(ai.getValue(),c=>{let b=ai.subscribe(A=>{A&&Wt===null?Wt=window.setTimeout(()=>{c(ai.getValue()),Wt=null},ae.loaderDelay):c(A)});return()=>{b.unsubscribe(),Wt&&clearTimeout(Wt)}});X.log("create store"),$e({message:"create store"});let qi=c=>{let b=c.container,A=()=>{ei=new MutationObserver(Ae=>{let{removedNodes:ot}=Ae[0];ot.length&&b.append(M.experimental.element$.getValue())}),ei.observe(b,{childList:!0})},ne=M.experimental.element$.getValue();if(ne)b.append(ne),A();else{let Ae=M.experimental.element$.pipe(Qy(ot=>!!ot),Gy()).subscribe(ot=>{b.append(ot),A()});it.add(Ae)}},ao=c=>{$e({message:`init video, config: ${JSON.stringify(c)}`}),T?qi(c):(Ky.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[qy()]}),M.initVideo(c)),X.log("init video",{isInteractive:T}),c.subtitles&&M.setExternalTextTracks(c.subtitles),te=c,ht=c.subtitlesForcedLanguage||""},oi=new Eu,ft=c=>oi.next(c),Qi=new Eu,Pt=new Eu,nt=new Eu,ei=null,to={actionRewind$:Qi,actionSeek$:Pt,inPiP$:Zt,inFullscreen$:new Tu(c=>Je.subscribe(b=>c.next(b))),actionSetSubtitle$:nt,nextMovie$:oi},Ct={actionSeek$:Pt,playerSize$:new Tu(c=>Vt.subscribe(b=>c.next(b))),inPiP$:Zt,inFullscreen$:new Tu(c=>Je.subscribe(b=>c.next(b))),isLoaderVisible$:new Tu(c=>li.subscribe(b=>c.next(b)))};if(ie){let{oneStat:c,thinOneStat:b,mediascopePixel:A,statSubscription:ne}=ie;c&&(T||ne.add(c.attachTo(M)),ne.add(c.attachToUi(to)),ne.add(c.attachToAds(De.events)),c.authorize(s).catch(Ae=>{$e({message:`onestat auth error ${String(Ae)}`})}),A&&A.attachTo(M)),b&&(ne.add(b.attachTo(M,De.events)),ne.add(b.attachToUi(Ct)),ne.add(b.attachToAds(De.events)),b.updateContext({isMobile:_e(pt)}),b.authorize(s))}if(j){let c=new fm,b=(A,ne)=>c.add(A.subscribe(ne));if(b(M.events.managedError$,A=>{j.logIError(A)}),b(M.events.fatalError$,A=>{j.logIError(A,!0)}),ie){let{oneStat:A}=ie;A&&b(A.experimental.error$,ne=>{j.logIError(ne)})}j.sentrySubscription.add(c)}let ut=()=>{if(q1.device.isIOS&&we)try{m1(we)}catch(c){$e({message:`exitIosSafariFullscreen failed: ${c}`})}};it.add(M.experimental.element$.subscribe(c=>{c&&(we=c,c.classList.add("player-media"),ga(oe)&&oe.updateVideoElement(),T&&c.setAttribute("pip","false"),ue==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(M.events.ended$.subscribe(()=>{var c;ut(),(c=a==null?void 0:a.onEnded)==null||c.call(a)})).add(M.events.looped$.subscribe(()=>{var c;(c=a==null?void 0:a.onLooped)==null||c.call(a)})).add(M.events.started$.subscribe(()=>Tt(null,null,function*(){var b,A;ga(oe)&&(yield oe==null?void 0:oe.revealPictureInPicture());let c=M.info.muted$.getValue();(b=a==null?void 0:a.onStarted)==null||b.call(a),(A=Te.onStarted)==null||A.call(Te,c)}))).add(M.events.willSeek$.subscribe(({from:c,to:b})=>{var A;(A=a==null?void 0:a.onSeek)==null||A.call(a,c,b)})).add(M.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=a==null?void 0:a.onAutoplaySoundProhibited)==null||c.call(a)})).add(M.info.position$.subscribe(c=>{var A;let b=M.info.duration$.getValue();isFinite(b)&&b>0&&((A=a==null?void 0:a.onTimeupdate)==null||A.call(a,b,c),De.setPosition(c,b))})).add(M.events.fatalError$.subscribe(c=>{var b;(b=a==null?void 0:a.onCrashed)==null||b.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(M.events.fetcherRecoverableError$.subscribe(c=>{var b;(b=a==null?void 0:a.onRecoverableError)==null||b.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(M.events.loadedMetadata$.subscribe(()=>{ke.set(!0)})).add(M.info.is3DVideo$.subscribe(c=>{Jt.set(c)})).add(M.info.isEnded$.subscribe(c=>{T&&(c?(E!=null&&E.getValue()&&tt.add(id),tt.add("PLAY_BUTTON")):tt.remove("PLAY_BUTTON"))})).add(M.info.liveTime$.subscribe(c=>{var b;(b=a==null?void 0:a.onLiveTime)==null||b.call(a,c)})).add(M.info.isStalled$.subscribe(c=>{var b;(b=a==null?void 0:a.onStalledChanged)==null||b.call(a,c)})).add(M.info.isLiveEnded$.subscribe(c=>{var b;return c&&((b=a==null?void 0:a.onLiveEnded)==null?void 0:b.call(a))})).add(De.events.loadStarted$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:b.call(c)})).add(De.events.loadEnded$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:b.call(c)})).add(De.events.loadError$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadError)==null?void 0:b.call(c)})).add(De.events.init$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onInit)==null?void 0:b.call(c)})).add(De.events.ready$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onReady)==null?void 0:b.call(c)})).add(De.events.started$.subscribe(c=>{var b,A;return(A=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onStarted)==null?void 0:A.call(b,c)})).add(De.events.timeRemained$.subscribe(c=>{var b,A;return(A=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onTimeRemained)==null?void 0:A.call(b,c)})).add(De.events.ended$.subscribe(c=>{var b,A;return(A=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onCompleted)==null?void 0:A.call(b,c)})).add(De.events.empty$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onEmpty)==null?void 0:b.call(c)})).add(De.events.clicked$.subscribe(c=>{var b,A;return(A=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onClicked)==null?void 0:A.call(b,c)})).add(De.events.closed$.subscribe(c=>{var b,A;return(A=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onClosed)==null?void 0:A.call(b,c)})).add(De.events.error$.subscribe(c=>{var b,A;return(A=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onError)==null?void 0:A.call(b,c)})).add(De.events.paused$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onPaused)==null?void 0:b.call(c)})).add(De.events.resumed$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onResumed)==null?void 0:b.call(c)}));let Ot=new fm,So=()=>{var ot,It,Nt;let{debugLog:c}=ae,b,A="#9df7b7",ne="#efd169";if(c&&c!==!0){let{colors:Ut}=c;b=c.tag,A=(ot=Ut==null?void 0:Ut[0])!=null?ot:A,ne=(Nt=(It=Ut==null?void 0:Ut[1])!=null?It:Ut==null?void 0:Ut[0])!=null?Nt:ne}let Ae=b?`: ${b}`:"";Ot.add(M.events.log$.subscribe(Ut=>{console.debug(`%c sdk${Ae} `,`background:${A};`,`sdk component: ${Ut.component}`,Ut.message)})).add(at.log$.subscribe(Ut=>{console.debug(`%c ui${Ae} `,`background:${ne};`,`ui component: ${Ut.component}.`,Ut.message)}))},Co=()=>{Ot.unsubscribe()},Ko=(c,b)=>{X.log("start camera manual rotation",{mx:c,my:b}),M.startCameraManualRotation(c,b)},Bn=(c=!1)=>{X.log("stop camera manual rotation",{immediate:c}),M.stopCameraManualRotation(c)},O=(c,b,A)=>{X.log("move camera focus px",{xpx:c,ypx:b,dt:A}),M.moveCameraFocusPX(c,b,A)},et=()=>{M.holdCamera()},Qt=()=>{M.releaseCamera()},Gt=kr(M.info.position$.getValue(),c=>{let b,A,ne=()=>{let Ae=M.info.playbackState$.getValue(),ot=M.info.isLive$.getValue(),It=M.info.duration$.getValue(),Nt=M.info.position$.getValue();if(Ae&&[Ad.PLAYING,Ad.PAUSED].includes(Ae)){let Ut=ot?Nt-It:M.getExactTime();Ut!==A&&c(Ut),A=Ut}b=requestAnimationFrame(ne)};return ne(),()=>cancelAnimationFrame(b)}),gt=ri(M.info.playbackState$),si=ri(M.info.currentBuffer$),yi=ri(M.info.isEnded$),_i=ri(M.info.isLive$),xt=ae.features.playbackRate?ri(M.info.canChangePlaybackSpeed$):kr(!1),Ei=ri(M.info.liveBufferTime$),lo=ri(M.info.volume$),_n=ri(M.info.muted$),bn=jc(M.info.predefinedQualityLimitType$.pipe(Q1(c=>c===fs.TRAFFIC_SAVING)),M.info.predefinedQualityLimitType$.getValue()===fs.TRAFFIC_SAVING),gi=jc(M.info.predefinedQualityLimitType$.pipe(Q1(c=>c===fs.HIGH_QUALITY)),M.info.predefinedQualityLimitType$.getValue()===fs.HIGH_QUALITY),co=ri(M.info.autoQualityLimitingAvailable$),fr=ri(M.info.availableQualities$),uo=ri(M.info.availableQualitiesFps$),io=ri(M.info.chromecastState$),Dn=ri(M.info.chromecastDeviceName$),qo=ri(M.info.currentFormat$),To=ri(M.info.throughputEstimation$),mr=ri(M.info.videoBitrate$),Fn=ri(M.info.intrinsicVideoSize$),vr=ri(M.info.duration$),ms=ri(M.info.isAudioAvailable$),jr=()=>{Wt&&clearTimeout(Wt),Wt=null},$n=$i([vr,_i],([c,b])=>b?-c:c),Hn=$i([gt],([c])=>c===Ad.PLAYING),yn=ri(M.info.atLiveEdge$),Qo=ri(M.info.atLiveDurationEdge$),Go=ri(M.info.position$),Un=$i([Go,vr],([c,b])=>isFinite(c)&&isFinite(b)&&!!b),gr=$i([io],([c])=>c===My.CONNECTED),Yr=ri(M.info.availableVideoStreams$),po=ae.features.audioLanguages?ri(M.info.availableAudioStreams$):kr([]),Zr=ri(M.info.currentVideoStream$),zn=ri(M.info.currentAudioStream$),xn=c=>{c.language&&ff(c.language),M.setVideoStream(c)},Wn=(c,b)=>{M.setAudioStream(c),Gi(b)&&(c.language&&ff(c.language),ae.features.userVideoPrefs&&i&&gf(ae.userSalt,String(i),{audioTrackId:c.id}))},hr=c=>{let b;if(c.length===1&&(b=c.at(0)),b!=null||(b=c.find(ne=>"isDefault"in ne&&ne.isDefault)),ae.features.userVideoPrefs&&i){let ne=eu(ae.userSalt,String(i));if(ne!=null&&ne.audioTrackId){let Ae=c.find(ot=>ot.id===ne.audioTrackId);b=Ae!=null?Ae:b}}let A=Xh();return A&&(b!=null||(b=c.find(({language:ne})=>A===ne))),b!=null||(b=c.at(0)),b},Kn=c=>{X.log("change audio stream",{id:c});let b=M.info.availableAudioStreams$.getValue().find(A=>A.id===c);b&&Wn(b,!0)},go=!1;it.add(M.info.availableAudioStreams$.subscribe(c=>{if(!go&&c.length){let b=hr(c);b&&(M.setAudioStream(b),go=!0)}})),po.subscribe(c=>{var b;(b=a==null?void 0:a.onAvailableAudioStreamsChanged)==null||b.call(a,c.map(({label:A="",id:ne="",language:Ae=""})=>({label:A,language:Ae,id:ne})))}),zn.subscribe(c=>{var b;return c&&((b=a==null?void 0:a.onAudioStreamChanged)==null?void 0:b.call(a,c.id))});let Xr=!1;it.add(M.info.availableVideoStreams$.subscribe(c=>{if(!Xr&&c.length){let b=hr(c);b&&(M.setVideoStream(b),Xr=!0)}}));let wn=le(void 0),mt=ri(M.info.isAutoQualityEnabled$,c=>c&&wn.set(void 0)),ci=ri(M.info.currentQuality$,()=>wn.set(void 0)),sn=$i([wn,ci],([c,b])=>c!=null?c:b),Sn=$i(qo,c=>c!==Pd.MPEG),Pr=$i([fr,uo,mt,sn,Sn],([c,b,A,ne,Ae])=>{let ot=[];Ae&&ot.push({value:"auto",displayValue:lt("auto_quality_option"),selected:A});let It=c.filter(Nt=>!Ny(Nt));for(let Nt of It){let Ut=b[Nt];ot.push({value:Nt,displayValue:`${Nt}${Ut?H1(Ut):""}`,selected:A?!1:Nt===ne})}return ot}),Eo=ri(M.info.currentPlaybackRate$),an=$i([Eo,yn,Qo],([c,b,A])=>{let ne=A||T?1:ae.controls.playbackRateMin,Ae=b?1:ae.controls.playbackRateMax,ot=ae.controls.playbackRateStep,It=[];for(let Nt=ne;Nt<=Ae;Nt+=ot)It.push({value:Nt,displayValue:Nt===1?lt("playback_rate_1"):lt("playback_rate",{multiplier:Nt.toString(10)}),selected:c===Nt});return It}),hi={displayValue:lt("subtitles_off"),value:Cu,language:""},Ii=le(K({},hi)),Io=ae.features.subtitles?ri(M.info.availableTextTracks$):kr([]),qn=Uh(),_r=$i([Io,Ii],([c,b],A)=>{var ot;let ne=[],Ae=c.find(({id:It})=>It===b.value);if(Ae!=null&&Ae.url){let[,It]=(ot=qn.find(Ae.url))!=null?ot:[];if(It){A(It);return}Ke.download(Ae.url).then(Nt=>{if(!Nt||Ke.isDestroyed())return;let Ut=new U1,Ms=Ae.language;if(Ms){let H0=!!Ae.isAuto,U0=Ut.parse(Nt,Ms);ne.push({lang:Ms,subtitles:U0,isAuto:H0,id:Ae.id})}qn.add(Ae.url,ne),_e(Ii).value===b.value&&A(ne)}).catch(Nt=>{var Ut;(Ut=ie==null?void 0:ie.oneStat)==null||Ut.logError({errorType:"Subtitles download",fatal:!1}),j==null||j.report(Nt,{errorType:"Subtitles download",fatal:!1})})}A(ne)}),Lr=$i([Eo,Hn,Ii],([c,b,A],ne)=>{let It;if(M.info.isLive$.getValue()&&b&&A.value!==hi.value){let Ut=()=>{let Ms=1e3/(3*c);It=setTimeout(Ut,Ms),ne(Date.now())};return Ut(),()=>clearTimeout(It)}}),br=$i([Io,Ii],([c,b])=>{if(!c.length)return[];let A=[];for(let{language:ne,isAuto:Ae,id:ot}of c){let It=ne&&kd(ne);ne&&It&&A.push({displayValue:Ae?lt("subtitles_auto",{language:It}):It,value:ot,selected:(b==null?void 0:b.value)===ot,isAuto:Ae,language:ne})}return A.length?(A.unshift(Ht(K({},hi),{selected:(b==null?void 0:b.value)===hi.value})),A):[]}),Qn={available:[],prev:[]},Gn=()=>{var b,A;let c=M.experimental.getCurrentTime$.getValue();return(A=(b=c==null?void 0:c())!=null?b:we==null?void 0:we.currentTime)!=null?A:0},ko=$i([Gt,Ii,_r,Lr],([c,b,A,ne])=>{var ot;let Ae=M.info.isLive$.getValue();if(Ae&&Qn.prev!==A){let It=A.find(({id:Ut})=>Ut===b.value),Nt=Qn.prev.find(({id:Ut})=>Ut===b.value);if(It){let Ut=Ht(K({},It),{subtitles:[...(ot=Nt==null?void 0:Nt.subtitles)!=null?ot:[],...It.subtitles]});Qn.available=[Ut],Qn.prev=A}}if(b&&b.value!==hi.value){let It=Ae?Gn():c,Nt=Ae?Qn.available:A;return K1(It,b,Nt,Ae)}}),jn=$i([ko],([c])=>c!=null&&c.texts?c.texts:[]);it.add(Ii.subscribe(c=>{var b,A;if(c.value===hi.value)(b=a==null?void 0:a.onSubtitleOff)==null||b.call(a);else{let ne=Object.entries(xu).find(([Ae,ot])=>ot===c.displayValue);(A=a==null?void 0:a.onSubtitleOn)==null||A.call(a,ne?ne[0]:"",c.value)}}));let $r=le(!0),di=$i([si,$n,Go,Ei],([c,b,A,ne])=>{var Nt;let Ae=(Nt=c==null?void 0:c.end)!=null?Nt:0;if(!ne)return Ae/b;let It=-A+ne-b;return(Ae-It)/b}),ln=ri(M.info.availableSources$),yr=$i([ln],([c])=>Object.keys((c==null?void 0:c[Pd.MPEG])||{}).length>0),Cn=()=>{var A,ne,Ae;let c=Object.keys(((ne=(A=M.info.availableSources$)==null?void 0:A.getValue())==null?void 0:ne[Pd.MPEG])||{}),b=Ry(c)||Wy.Q_144P;return(Ae=te.sources[Pd.MPEG])==null?void 0:Ae[b]},vt=()=>{var b;let c=Cn();if(c)X.log("download video",{url:c}),Dh(c,((b=te==null?void 0:te.meta)==null?void 0:b.title)||"video");else{let A="There is no URL for download video";X.log("download video",{message:A}),$e({message:A})}},fi=()=>{$e({message:"toggle muted"});let c=M.info.muted$.getValue();M.info.volume$.getValue()===0&&!c?ji(Ni(),!1):Yo(!c,!1)},oo=()=>{var c;if(Ft.ui.settingsMenu.visible$.set(!1),!_e(Ft.ui.settingsSubMenu.visible$)){let b=_e(Ft.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&b){let ne=vl(b),Ae={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:ne,position:Ae,name:"settings"})}}X.log("close settings menu")},jo=(c,b=()=>Promise.resolve())=>Tt(null,null,function*(){var Ae;Ft.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Ft.ui.settingsMenu.visible$.set(!0),yield b();let A=_e(Ft.ui.settingsMenu.ref$),ne=Oa();if((Ae=a==null?void 0:a.uiInfo)!=null&&Ae.onSettingsMenu&&A&&ne){let It=vl(A),Nt=Cs(A,ne);a.uiInfo.onSettingsMenu({visible:!0,size:It,position:Nt,name:"settings"})}X.log("open settings menu",{wasOpenedByKeyboard:c})}),mi=(c,b=!1)=>{var ot;Ft.ui.settingsSubMenu.visible$.set(!1);let A=_e(Ft.ui.settingsMenu.ref$),ne=Oa(),Ae=_e(Ft.ui.settingsMenu.visible$);if((ot=a==null?void 0:a.uiInfo)!=null&&ot.onSettingsMenu&&A&&ne)if(Ae&&!b){let Nt=vl(A),Ut=Cs(A,ne);a.uiInfo.onSettingsMenu({visible:!0,size:Nt,position:Ut,name:"settings"})}else{let Nt=vl(c),Ut={top:0,left:0,bottom:0,right:0},Ms=_e(Ft.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:Nt,position:Ut,name:Ms})}X.log("close settings sub menu")},dn=(c,b)=>{var ne;Ft.ui.settingsSubMenu.visible$.set(!0),Ft.ui.settingsSubMenu.ref$.set(b),Ft.ui.settingsSubMenu.name$.set(c);let A=Oa();if((ne=a==null?void 0:a.uiInfo)!=null&&ne.onSettingsMenu&&b&&A){let ot=vl(b),It=Cs(b,A);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:ot,position:It})}X.log("open settings sub menu",{name:c})},Ni=()=>{var b;let c=Math.max(ae.volumeMinRestore,(b=Yc())!=null?b:0);return c===0?ae.volumeDefault:c},Gi=c=>{let b=ae.features.savePreferredStatesOnUserActionOnly;return!b||b&&!c},ji=(c,b)=>{let A=c===0?Ni():c,ne=M.info.muted$.getValue();$e({message:`set volume, volume: ${c}, preferredVolume: ${A}`});let Ae=!l||bt.is("ads");ne&&c>0&&Ae&&(ne=!1,Gi(b)&&uf(!1)),M.setVolume(c,ne),De.setVolume(c),Gi(b)&&sf(A)},Yo=(c,b)=>{let A=M.info.volume$.getValue();$e({message:`set muted, currentVolume: ${A}, mute: ${c}`});let ne=bt.is("ads");if(M.setMuted(c,ne),De.setVolume(c?0:A),Gi(b)&&(!ne||!c)&&uf(c),!c&&A===0){let Ae=Ni();M.setVolume(Ae),Gi(b)&&sf(Ae),De.setVolume(Ae)}},Tn=le(!1),Mr=c=>{var b,A;X.log("set looped",{isLooped:c}),Tn.set(c),M.setLooped(c),(A=(b=a==null?void 0:a.uiInfo)==null?void 0:b.onLoopedChanged)==null||A.call(b,c)};Mr(be);let Zo=()=>{var c,b;(b=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||b.call(c)},Vr=(c,b=!1)=>{var A;$e({message:`set autoplayNextEnabled, value: ${c}`}),X.log("set autoplay next enabled",{autoplayNextEnabled:c}),Ft.ui.autoplayNextEnabled$.set(c),t1(c),b&&((A=a==null?void 0:a.onSetAutoplayNextEnabled)==null||A.call(a,c))},cn=c=>{$e({message:`set timerNextVideoRunning, value: ${c}`}),X.log("set timer next video running",{timerNextVideoRunning:c}),Ft.ui.timerNextVideoRunning$.set(c)},Ao=(c=!0)=>{var A;let b=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{b=(A=a==null?void 0:a.onPrevVideoClick)==null?void 0:A.call(a)}catch(ne){$e({message:"onPrevVideoClick callback failed to execute"})}G(!0),b&&Z()},Yn=(c=!0)=>{var A;let b=!0;if(c&&(a!=null&&a.onNextVideoClick))try{b=(A=a==null?void 0:a.onNextVideoClick)==null?void 0:A.call(a)}catch(ne){$e({message:"onNextVideoClick callback failed to execute"})}G(!1),b&&re()},Rr=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},Zn=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},rt=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},Mt=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},xi=()=>{M.prepare()},fo=()=>{pr(Ft);let c=_e(Ft.ui.controls.disabledControls$),b=_e(Ft.playerPhase),A={playerPhase:b,isInteractive:T,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if($e({message:"toggle play"}),b==="ads"){A.action="play",X.log("toggle adman play",A),De.togglePlay();return}let ne=()=>{var ot;$e({message:"toggle play, call player.play"}),A.action="play",M.play(),(ot=a==null?void 0:a.onPlay)==null||ot.call(a)},Ae=()=>{var ot;$e({message:"toggle play, call player.pause"}),A.action="pause",M.pause(),(ot=a==null?void 0:a.onPause)==null||ot.call(a)};if(M.info.isEnded$.getValue()){if($e({message:"toggle play, video ended, seek to 0"}),Qi.next(),Pt.next(Ts.REWIND),T){V==null||V();return}M.seekTime(0),ne()}else M.info.playbackState$.getValue()!==Ad.PLAYING?ne():Ae();X.log("toggle play",A)},Li=(c,{changeReason:b="default",appliesTo:A="to-video"}={},ne)=>{$e({message:`set quality, quality: ${c}`}),X.log("set quality",{quality:c}),M.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Ae}=ae.features;Zc(),c!=="auto"?(Ae?(Xc({type:"exact_quality",quality:c,videoId:i},A),M.setPredefinedQualityLimits(fs.UNKNOWN)):af(i,c),wn.set(c),M.setQuality(c)):Ae&&b==="default"&&(En("auto_quality",A,ne),_e(bn)&&Yi(!1,void 0,ne),_e(gi)&&Mi(!1,void 0,ne))},Yi=(c,b="as-default",A)=>{$e({message:`set trafficSavingEnabled, value: ${c}`}),X.log("set traffic saving enabled",{trafficSavingEnabled:c});let ne=c?fs.TRAFFIC_SAVING:fs.UNKNOWN;ae.features.qualityDetailsSubMenuEnabled?(ho(ne,b,A),od(!1)):(M.setPredefinedQualityLimits(ne),Gi(A)&&od(c))},Mi=(c,b="as-default",A)=>{$e({message:`set highQualityEnabled, value: ${c}`}),X.log("set high quality enabled",{highQualityEnabled:c}),ho(c?fs.HIGH_QUALITY:fs.UNKNOWN,b,A)},ho=(c,b,A)=>{c!==fs.UNKNOWN&&(_e(co)&&!_e(mt)&&Li("auto",{appliesTo:b,changeReason:"limit-changed"},A),En(c,b,A)),M.setPredefinedQualityLimits(c)},En=(c,b,A)=>{Gi(A)&&(Xc({type:c,videoId:i},b),b==="as-default"&&Xc({type:c,videoId:i},"to-video"))},Po=(c,b=!0)=>{X.log("set playback rate",{playbackRate:c}),M.setPlaybackRate(c),ae.features.saveRate&&me&&!M.info.isLive$.getValue()&&b&&Jh(c)},Lo=()=>{let c=_e(an),b=c.findIndex(({selected:ne})=>ne);if(b===c.length-1)return;let A=c[b+1];Po(A.value)},Mo=()=>{let c=_e(an),b=c.findIndex(({selected:ne})=>ne);if(b===0)return;let A=c[b-1];Po(A.value)},Xn=(c=Ht(K({},hi),{selected:!1}),b)=>{X.log("set subtitles",K({},c)),c.value!==hi.value&&nt.next(c.isAuto?c.value+"_auto":c.value),Ii.set(c),Gi(b)&&(vf(c.value===hi.value?void 0:c.language),ae.features.userVideoPrefs&&i&&gf(ae.userSalt,String(i),{subtitleTrackId:c.value===hi.value?void 0:c.value}))},In=c=>{X.log("toggle subtitles");let b=_e(Ii);(b==null?void 0:b.value)===hi.value?wr(c):Jn(c)},xr=(c,b)=>{X.log("change subtitle",{enabled:c}),c?wr(!0,b):Jn(!0)},wr=(c,b)=>{X.log("subtitle on");let A=_e(br),ne=_e(We),Ae=ht!=null?ht:ne,ot;b&&(ot=A.find(It=>It.value===b)),ot!=null||(ot=A.filter(It=>It.value!==hi.value).find(It=>It.language===Ae)),Xn(ot!=null?ot:A[1],c)},Jn=c=>{X.log("subtitle off"),Xn(void 0,c)};it.add(M.info.availableTextTracks$.subscribe(c=>{var A;function b(){let ne=[];for(let{language:Ae,isAuto:ot,id:It}of c){let Nt=Ae&&kd(Ae);Ae&&Nt&&ne.push({id:It,language:Ae,title:ot?lt("subtitles_auto",{language:Nt}):Nt})}return ne}(A=a==null?void 0:a.onAvailableSubtitlesChanged)==null||A.call(a,b())}));let Or=le(!0),Jr=c=>{Or.set(c)},He=(c,b,A=!0)=>{var ne;if($e({message:`seek to time, time: ${c}`}),X.log("seek to time",{time:c,action:b,forcePrecise:A}),Pt.next(b),M.info.isLive$.getValue()){let Ae=M.info.duration$.getValue(),ot=Math.min(0,Ae+c);M.seekTime(ot,A)}else{if(E!=null&&E.getValue())return;M.info.isEnded$.getValue()&&($e({message:"seek after ended, call callbacks.onPlay"}),(ne=a==null?void 0:a.onPlay)==null||ne.call(a)),M.seekTime(Rv(c),A)}},jt=c=>{$e({message:`seek to episode start time: ${c}`}),X.log("seek to episode start time",{time:c}),He(c,Ts.EPISODE,!0)},wi=(c,b)=>{$e({message:`seek to percent, percent: ${c}`}),X.log("seek to percent",{percent:c,action:b});let A=_e($n)*c;He(A,b,!1)},un=c=>{$e({message:`seek external, time: ${c}`}),X.log("seek external",{time:c}),Pt.next(Ts.UNKNOWN),M.seekTime(M.info.isLive$.getValue()?-c:c)},Vo=c=>{var ne,Ae;let b=(ne=c.max)!=null?ne:"none",A=(Ae=c.min)!=null?Ae:"none";$e({message:`set auto quality limitation. Max: ${b}. Min: ${A}`}),X.log("set auto quality limits",{max:b,min:A}),M.setAutoQualityLimits(c)},Ro=c=>{$e({message:`seek external to episode start time: ${c}`}),X.log("seek external to episode start time",{time:c}),He(c,Ts.EPISODE,!0)},Oo=c=>{$e({message:`set playback rate to: ${c}`}),X.log("set playback rate external",{playbackRate:c}),M.setPlaybackRate(c)},er=le(void 0),es=le(!1),Ps=c=>{$e({message:`start scrubbing, progress: ${c}`}),X.log("start scrubbing",{progress:c}),es.set(!0),Sr(c)},Sr=c=>{er.set(c)},ts,ee,Ye=()=>{er.set(void 0),es.set(!1)},Kt=()=>{clearTimeout(ee),clearTimeout(ts),ts=window.setTimeout(()=>{Ye()},500),we==null||we.removeEventListener("seeked",Kt)},vi=c=>{$e({message:`complete scrubbing, progress: ${c}`}),X.log("complete scrubbing",{progress:c}),wi(c,Ts.SLIDER),_e(Ft.ui.isMobile)&&_e(Ft.state.currentFormat$)===Pd.HLS?(we==null||we.addEventListener("seeked",Kt),ee=window.setTimeout(()=>{Kt()},300)):Ye()},Bi=$i([Gt,$n,er],([c,b,A],ne)=>{ne(By(A)?A*b:c)}),Di=le(!1),Fi=()=>{Di.set(!0)},tr=()=>{Di.set(!1)},Ti=$i([Vt],([{width:c}],b)=>{let A=O1(c);b(A)}),Si=F.filter(c=>Fh(c)),No=$i([Ti,pt],([c,b])=>b?Si.filter(A=>!A.hideOnMobile):Si.filter(A=>{var ne;return!((ne=A.hideOnDesktopGridTypes)!=null&&ne.includes(c))})),_o=le(F.filter(c=>Hh(c))),Cr=$i([_o,Ti],([c,b])=>c.filter(A=>{var ne;return!((ne=A.hideOnDesktopGridTypes)!=null&&ne.includes(b))})),bo=$i([Cr,No],([c,b])=>[...ae.features.additionalButtonsDesktopControlPanelRight?c.filter(A=>A.type==="desktop-control-panel-right"):[],...ae.features.additionalButtons?b.map((A,ne)=>{var Ae;return{id:ne,weight:ne,type:"desktop-control-panel-right",testId:A.testId,icon:A.iconUrl,onClick:A.onClick,ariaLabel:(Ae=A.ariaLabel)!=null?Ae:A.tooltip,tooltipText:A.tooltip}}):[]]),ir=le(H),St=$i([ir],([c])=>ae.features.additionalSettingsMenuItems?c.map(b=>b.type==="SWITCH"?Ht(K({},b),{onClick:b.onChangeEnabled}):b):[]),wt=(c,b)=>{let A=_e(_o).map(ne=>ne.id!==c?ne:K(K({},ne),b));_o.set(A)},mo=c=>{let b=_e(_o);if(b.some(A=>A.id===c.id)){$e({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),_o.set(b)},Xo=c=>{let b=_e(_o);if(!b.some(A=>A.id===c)){$e({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}b=b.filter(A=>A.id!==c),_o.set(b)},Zi=c=>{Pt.next(Ts.LIVE),$e({message:"live switch to low latency "+c}),X.log("live switch to low latency "+c),M.setLiveLowLatency(c)},ui=(c,b)=>{let A=_e(ir).map(ne=>ne.id!==c?ne:K(K({},ne),b));ir.set(A)},Hi=c=>{let b=_e(ir);if(b.some(A=>A.id===c.id)){$e({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),ir.set(b)},Ls=c=>{let b=_e(ir);if(!b.some(A=>A.id===c)){$e({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}b=b.filter(A=>A.id!==c),ir.set(b)},Nr=le(U),sc=$i([Nr],([c])=>ae.features.additionalContextMenuItems?c:[]),ju=(c,b)=>{let A=_e(Nr).map(ne=>ne.id!==c?ne:K(K({},ne),b));Nr.set(A)},ac=c=>{let b=_e(Nr);if(b.some(A=>A.id===c.id)){$e({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),Nr.set(b)},Yu=c=>{let b=_e(Nr);if(!b.some(A=>A.id===c)){$e({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}b=b.filter(A=>A.id!==c),Nr.set(b)},lc=$i([pt,ce],([c,b],A)=>{A(c&&b)}),Zu=()=>{Pt.next(Ts.LIVE),$e({message:"switch to active live"}),X.log("switch to active live"),M.seekTime(0),M.info.playbackState$.getValue()!==Ad.PLAYING&&Ft.actions.internal.togglePlay()},dc=()=>{X.log("skip adman"),De.skip()},Xu=(c=!0)=>{var ne;pr(Ft),$e({message:`switch from ads to video, callPlay: ${c}`}),X.log("switch from ads to video",{callPlay:c}),qe.set("video"),c&&M.play(),l&&Yo(!0,!0);let b=(ne=_e(Qe))==null?void 0:ne.muted,A=!M.info.muted$.getValue();b!==void 0&&!A&&Yo(b,!0),Qe.set(void 0)},cc=()=>{pr(Ft),$e({message:"switch from video to ads"}),X.log("switch from video to ads"),Ft.actions.internal.pause(),ut(),qe.set("ads")},Ju=c=>{pr(Ft);let b=c?"LiveWaitingStart":"thumb";X.log("set live waiting start",{state:c,playerPhase:b}),qe.set(b)},uc=c=>{pr(Ft);let b=c?"LiveWaitingRecover":"thumb";X.log("set live waiting recover",{state:c,playerPhase:b}),qe.set(b)},ep=c=>{pr(Ft);let b=c?"LiveWaitingRecord":"thumb";X.log("set live waiting record",{state:c,playerPhase:b}),qe.set(b)},pc=()=>(pr(Ft),X.log("get debug text data"),Nh(M,te,Ft,Re.getTraceId())),tp=()=>(pr(Ft),JSON.stringify(Re.getFinishedSpans())),fc=()=>(pr(Ft),Bh(M,te,Ft)),Oa=()=>we,mc=()=>{$e({message:"toggle chromecast"}),X.log("toggle chromecast"),M.toggleChromecast()},wl=c=>{var A;if(pr(Ft),M.info.isEnded$.getValue())return;let b=!c;if(_e(Ft.playerPhase)==="ads"){$e({message:`pause ads, internalCall: ${b}`}),X.log("pause ads",{internalCall:b}),De.pause();return}$e({message:`pause video, internalCall: ${b}`}),X.log("pause video",{internalCall:b}),b&&((A=a==null?void 0:a.onPause)==null||A.call(a)),M.pause()},Sl=c=>{var A;pr(Ft);let b=!c;if(_e(Ft.playerPhase)==="ads"){$e({message:`play ads, internalCall: ${b}`}),X.log("play ads",{internalCall:b}),De.play();return}$e({message:`play video, internalCall: ${b}`}),X.log("play video",{internalCall:b}),b&&((A=a==null?void 0:a.onPlay)==null||A.call(a)),M.play()},ip=c=>{pr(Ft);let b=!c;if(_e(Ft.playerPhase)==="ads"){$e({message:"player cannot be stopped during ads via external method"});return}$e({message:`player will be stopped, internalCall: ${b}`}),I==null||I()},Cl=(c,b)=>{pr(Ft),$e({message:`first start, show ads: ${c}, internalCall: ${!b}`}),X.log("first start",{showAds:c,external:b}),c?qe.set("ads"):(qe.set("video"),b?M.play():Ft.actions.internal.togglePlay())},Tl=()=>($e({message:"getting time codes"}),f),El=()=>{let c=Tl();if(!c||[0,1].includes(c.length))return;let b=M.info.position$.getValue();return c.find(A=>A.time>b)},op=c=>{let b=c;b||(b=El());let A=M.info.position$.getValue();X.log("seek to next episode",K({currentTime:A},b)),b&&($e({message:"seek to next episode"}),He(b.time,Ts.EPISODE,!0))},vc=()=>{let c=Tl();if(!c||[0,1].includes(c.length))return;let b=M.info.position$.getValue(),A=c.findIndex(Ae=>Ae.time>b),ne=A===-1?c.length-2:A-2;if(!(ne<0))return c[ne]},np=c=>{let b=c;b||(b=vc());let A=M.info.position$.getValue();X.log("seek to prev episode",K({currentTime:A},b)),b&&($e({message:"seek to prev episode"}),He(b.time,Ts.EPISODE,!0))},Ge=()=>($e({message:"getting preview thumbs data"}),X.log("get preview thumbs data",K({},m)),m),pi=()=>Tt(null,null,function*(){let c=oe==null?void 0:oe.isActive(),b="none";oe!=null&&oe.isActive()?(b="exit",yield oe==null?void 0:oe.exit()):(b="request",yield oe==null?void 0:oe.request()),X.log("toggle picture in picture",{isActive:c,action:b})}),Bo=(c=-90)=>{X.log("rotate video",{alphaDiff:c}),Xt.update(b=>b+c)},is=le([]);S==null||S.subscribe(c=>{let b=[];for(let A=0;A<c.length;A++){let{range:[ne,Ae],subjects:ot}=c[A];A===0&&ne!==0&&b.push({time:0,text:"",interactive:!1,completed:!0}),b.push({time:ne/1e3,text:"",interactive:!0,completed:ae.features.interactiveTimeOpenUri?!ot.length||ot.every(It=>It.isRemoved):!ot.length}),Ae!==1/0&&b.push({time:Ae/1e3,text:"",interactive:!1,completed:!0})}is.set(b)});let pn=le(!1);E==null||E.subscribe(c=>{c&&_e(es)&&Ye()});let Rv=c=>{if(!T)return c;let b=_e(is),A=_e($n),Ae=_e(Go)/A,ot=b.find(It=>It.interactive&&!It.completed&&It.time>Ae);return typeof(ot==null?void 0:ot.time)=="number"?Math.min(c,ot.time-.05):c},B0=()=>{Ft.ui.episodes.panelOpened$.set(!1)},D0=()=>{X.log("destroy store"),clearTimeout(ee),clearTimeout(ts),it.unsubscribe(),Ot.unsubscribe(),M.destroy(),De.destroy(),ie==null||ie.destroy(),j==null||j.destroy(),Ee.unsubscribe(),ei==null||ei.disconnect(),ei=null,Ke.destroy()},F0=$i([yn,bt,xt],([c,b,A])=>p.features.doubleForwardAvailable&&!c&&b==="video"&&A),rp=le(!1),Ov=2,gc=null,Nv=c=>{if(!_e(Hn)&&c)return;let b=M.info.currentPlaybackRate$.getValue();c?b!==Ov&&(gc=b,Po(Ov,!1),rp.set(!0)):(gc&&Po(gc,!1),rp.set(!1),gc=null)};bt.subscribe(c=>{c!=="video"&&Nv(!1)});let Ft={interfaceLanguage$:We,isCyrillicRelatedInterface$:Se,initVideo:ao,videoId:i,isClip:o,playerPhase:bt,vsid:_t,state:{positionExact$:Gt,positionWithScrubbing$:Bi,duration$:$n,playbackState$:gt,isPlaying$:Hn,isLoaderVisible:li,bufferedProgress$:di,isLive$:_i,canChangePlaybackSpeed$:xt,isActiveLive$:yn,isOldestAvailableLive$:Qo,isRewindableLive$:Un,isEnded$:yi,muted$:_n,volume$:lo,trafficSavingEnabled$:bn,highQualityEnabled$:gi,autoQualityLimitingAvailable$:co,availableVideoStreams$:Yr,availableAudioStreams$:po,videoStream$:Zr,audioStream$:zn,currentQuality$:sn,isAutoQualityEnabled$:mt,availableQualities$:Pr,currentPlaybackRate$:Eo,availablePlaybackRates$:an,currentSubtitle$:Ii,availableTextTracks$:Io,availableSubtitlesList$:br,currentSubtitleCaptions$:jn,isAutoSubtitleCaptionVisible$:$r,chromecastState$:io,chromecastDeviceName$:Dn,chromecastConnected$:gr,currentFormat$:qo,throughputEstimation$:To,videoBitrate$:mr,videoSize$:Fn,errorLog$:he,crashed$:ce,isAudioAvailable$:ms,isAudioDisabled:!!l,canDownload:ae.features.download&&!!d,availableSources$:ln,hasMpegSources$:yr,isInteractive:T,showInteractiveGraph:ae.features.interactiveGraph,showSeekToInteractive:ae.features.seekToInteractive,showPlayPrevChapter:ae.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ae.features.interactiveTimeIndicator&&!!_e(is).length,interactiveEpisodes$:is,isInteractiveTime$:E?ri(E):le(!1),isInteractiveExpectation$:pn,hasInteractiveBranches:L,playPrevChapterDisabledTooltip:B,looped$:Tn,loadedMetadata$:ke,isAutoQualityAvailable$:Sn},ui:{t:lt,controlsVisible:le(!1),touched:le(!1),controls:{prevButton:le(void 0),playButton:le(void 0),replayButton:le(void 0),nextButton:le(void 0),playPrevChapterButton:le(void 0),seekToInteractiveButton:le(void 0),interactiveGraphButton:le(void 0),liveButton:le(void 0),time:le(void 0),episodes:le(void 0),volume:le(void 0),subtitles:le(void 0),settings:le(void 0),context:le(void 0),chromecast:le(void 0),pip:le(void 0),fullscreen:le(void 0),vkLogo:le(void 0),interactiveTimeIndicator:le(void 0),timeline:le(void 0),autoplayNextToggle:le(void 0),additionalButtons:F.length?F.reduce(c=>[...c,le(void 0)],[]):[],disabledControls$:tt},modals:{hotKeyMap:{show:le(!1),data:le({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Je,isFullscreenOpenedByKeyboard:zt,rotateAlpha:Xt,isAutoplay:le(!1),debugPanelVisible:le(!1),episodes:{panelOpened$:le(!1),openedByKeyboard$:le(!1)},contextMenu:{visible$:le(!1),btnRef$:le(void 0),openedByBtnKeyboard$:le(!1),openedByHotKey$:le(!1),lastActiveElem$:le(void 0),showContextMenuBtn$:le(!1),position$:le({top:0,left:0})},playerSize:Vt,isMobile:pt,mobileNotReportControlHidden$:lc,icon3DVideoVisible:le(!1),scrubbingInProgress:es,volumeChangingInProgress:Di,is3DVideo:Jt,currentGridType$:Ti,additionalButtonsDeprecated$:No,additionalDesktopControlPanelRightButtons$:bo,additionalSettingsMenuItems$:St,additionalContextMenuItems$:sc,interactiveHideMobileControls:le(!1),overlayContainer$:le(void 0),startedByKeyboard$:le(!1),autoplayNextEnabled$:le(!1),timerNextVideoRunning$:le(!0),settingsMenu:{visible$:le(!1),ref$:le(void 0),openedByBtnKeyboard$:le(!1)},settingsSubMenu:{visible$:le(!1),ref$:le(void 0),name$:le(void 0)},userActionsDisabled:le(!1),hiddenControls:{volume:le(!1),vkLogo:le(!1),pip:le(!1),chromecast:le(!1),settings:le(!1)},isControlsAvailable:Or,controlBlocks:{topLeft:le(void 0),topRight:le(void 0),middle:le(void 0),bottom:le(void 0),bottomLeft:le(void 0),bottomRight:le(void 0)},videoTitleInfo:le(void 0),doubleForwardOn$:rp,doubleForwardAvailable$:F0},ads:{position:le(0),duration:le(0),playbackState:le("inactive"),canSkip:le(!1),secondsToWatchBeforeSkip:le(0),postrollPassed:le(!1)},webApi:{pictureInPictureApi:oe,annotationsApi:Oe,slotsApi:Ze},actions:{internal:{preload:xi,firstStart:c=>Cl(c,!1),play:()=>Sl(!1),pause:()=>wl(!1),togglePlay:fo,toggleMuted:fi,openSettingsMenu:jo,closeSettingsMenu:oo,openSettingsSubMenu:dn,closeSettingsSubMenu:mi,setVolume:c=>ji(c,!1),setMuted:c=>Yo(c,!1),startVolumeChanging:Fi,stopVolumeChanging:tr,setVideoStream:xn,setAudioStream:c=>Wn(c,!1),setQuality:(c,b)=>Li(c,b,!1),setTrafficSavingEnabled:(c,b)=>Yi(c,b,!1),setHighQualityEnabled:(c,b)=>Mi(c,b,!1),setPlaybackRate:Po,incrementPlaybackRate:Lo,decrementPlaybackRate:Mo,setSubtitle:c=>Xn(c,!1),toggleSubtitle:()=>In(!1),togglePictureInPicture:pi,startScrubbing:Ps,progressScrubbing:Sr,completeScrubbing:vi,toggleChromecast:mc,switchToActiveLive:Zu,switchFromAdsToVideo:Xu,switchFromVideoToAds:cc,skipAd:dc,setLiveWaitingStart:Ju,setLiveWaitingRecover:uc,setLiveWaitingRecord:ep,getDebugTextData:pc,getTraceTextData:tp,getDebugPanelData:fc,getVideoElement:Oa,seekTime:(c,b,A)=>He(c,b,A),clearDelayedBufferingCheckTimeout:jr,seekEpisodeStartTime:jt,seekToPercent:wi,getNextEpisode:El,seekToNextEpisode:op,getPrevEpisode:vc,seekToPrevEpisode:np,startLogging:So,stopLogging:Co,startCameraManualRotation:Ko,stopCameraManualRotation:Bn,moveCameraFocusPX:O,holdCamera:et,releaseCamera:Qt,getVideoEpisodes:Tl,getPreviewThumbsData:Ge,downloadVideo:vt,addLanguage:hf,setLanguage:Ue,nextMovie:ft,videoRotate:Bo,correctSeekTimeToInteractive:Rv,replayInteractive:V,setLooped:Mr,reportProblem:Zo,setAutoplayNextEnabled:Vr,setTimerNextVideoRunning:cn,prevVideoClick:Ao,nextVideoClick:Yn,nextVideoAnnouncementShow:Rr,nextVideoAnnouncementClick:Zn,nextVideoAnnouncementAuto:rt,nextVideoAnnouncementCancel:Mt,checkFullscreenSupport:Yt,changeDoubleForwardOn:Nv},external:{firstStart:c=>Cl(c,!0),play:()=>Sl(!0),pause:()=>wl(!0),stop:()=>ip(!0),seekTime:c=>un(c),seekEpisodeStartTime:c=>Ro(c),setPlaybackRate:c=>Oo(c),setAutoQualityLimits:c=>Vo(c),setMuted:c=>Yo(c,!0),toggleSubtitle:()=>In(!0),changeSubtitle:xr,setVolume:c=>ji(c,!0),returnFocusToEpisodes:B0,updateAdditionalSettingsItem:ui,addAdditionalSettingsItem:Hi,removeAdditionalSettingsItem:Ls,updateAdditionalContextItem:ju,addAdditionalContextItem:ac,removeAdditionalContextItem:Yu,updateAdditionalButton:wt,addAdditionalButton:mo,removeAdditionalButton:Xo,setLiveLowLatency:Zi,hideControls:()=>Jr(!1),showControls:()=>Jr(!0),setQuality:c=>Li(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>Yi(c,"to-video",!0),setHighQualityEnabled:c=>Mi(c,"to-video",!0),changeAudioStream:Kn}},callbacks:a,setUiCallbacks:c=>{Te=K({},c)},getAdmanWrapper:()=>De,getLogger:()=>at,getPlayer:()=>M,destroy:D0};return Ft};function On(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}=Cs(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 jy=["disabledControls$","additionalButtons"],Yy=["interactiveTimeIndicator"],hl=(t,e,i,o)=>{if(t){for(let[n,s]of Object.entries(e))if(!jy.includes(n)){let l=o||Yy.includes(n);s.set(On(t,i,n,l))}}};var Iu=(t,e,i)=>Tt(null,null,function*(){yield yo(),e&&i&&(i.focus(),t.set(!1))});var Zy=xe('<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 mm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Zy();Ie(o,()=>K({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);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(),h(o),$(t,o)}function vm(t,e){z(e,!0);let[i,o]=Be(),n=()=>C(a,"$contextMenuVisible$",i),s=v(e,"disabled",3,!1),l=v(e,"ariaLabel",3,""),d=Ce(),a=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,m=d.ui.contextMenu.position$,p=d.ui.contextMenu.btnRef$,x=J(void 0);ze(()=>{r(x)&&Et(()=>{p.set(r(x))})});let y=E=>{let V=qs(E),I=I1(r(x));m.set(I),u.set(V),a.set(!n())},w=()=>{f.set(!0)},T=()=>{f.set(!1)},S=g(()=>n()?"opened":"");Dt(t,{get className(){return r(S)},testId:"btn-context-menu",get disabled(){return s()},get ariaLabel(){return l()},click:y,focus:w,blur:T,get ariaExpanded(){return n()},get ref(){return r(x)},set ref(E){N(x,E,!0)},children:(E,V)=>{mm(E,{})},$$slots:{default:!0}}),W(),o()}var Xy=t=>{t.stopPropagation()},Jy=P("<div><!> <div></div> <div></div></div>"),e4={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;}
226
231
 
227
232
  @media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
228
233
  }
@@ -247,16 +252,16 @@ Try switching the\xA0quality to\xA0Auto.`},Kh=eb;var $s=new Map;$s.set(Qh.EN,Kh)
247
252
  opacity: 0;
248
253
  }
249
254
  }.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);
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 kd(t,e){var ie;F(e,!0),q(t,Hy);let[i,o]=Ue(),n=()=>C(S,"$isMobile",i),s=()=>C(k,"$areControlsVisible",i),l=()=>C(R,"$currentGridType$",i),d=()=>C(E,"$isInteractiveTime$",i),a=()=>C(y,"$interactiveControlsOpacity$",i),u=()=>C(V,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>C(T,"$isFullscreen",i),v=m(e,"ref",15,void 0),p=Y(void 0),x=ke(),w=vo(),{interactiveControlsOpacity$:y}=w,S=x.ui.isMobile,T=x.ui.isFullscreen,E=x.state.isInteractiveTime$,V=w.showInteractiveTimeIndicatorTooltip$,k=x.ui.controlsVisible,I=(ie=x.callbacks)==null?void 0:ie.onInteractiveTimeIndicatorClick,R=x.ui.currentGridType$,X=g(()=>!n()&&s()),D=g(()=>Ks(l(),"s")),H=g(()=>!d()||!!a()||r(X)),W=Y(!1);Qe(()=>{O(W,r(H),!0)});let ee=()=>{O(W,!0)},j=()=>{var ve;ue(),(ve=r(p))==null||ve.addEventListener("animationiteration",ee,{once:!0})},ue=()=>{var ve;O(W,!1),(ve=r(p))==null||ve.removeEventListener("animationiteration",ee)},oe=ve=>{V.set(ve)},pe=g(()=>u()&&!r(H));Qe(()=>{u()?j():ue()});let $e=()=>{r(H)||(V.set(!0),I==null||I())};Zo(()=>{V.clearTimeout(),ue()});let me=()=>{V.set(!1)},Ae=K("tooltip_interactive_interaction_time_indicator");var re=Dy();let Ne;re.__mousemove=[By],re.__click=$e;var se=_(re);Po(se,{get tooltipContent(){return Ae},get tooltipActive(){return r(pe)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:oe,get ref(){return v()},set ref(ve){v(ve)},children:(ve,Fe)=>{$d(ve,{completed:!0})},$$slots:{default:!0}});var N=P(se,2);let De;ot(N,ve=>v(ve),()=>v());var le=P(N,2);let ge;ot(le,ve=>O(p,ve),()=>r(p)),h(re),B((ve,Fe,fe)=>{Ne=te(re,1,"interactive-episode-icon-animated svelte-od3veb",null,Ne,ve),De=te(N,1,"ref-block svelte-od3veb",null,De,Fe),ge=te(le,1,"pulse svelte-od3veb",null,ge,fe)},[()=>({mobile:n(),fullscreen:f(),invisible:r(H),"icon-small":r(D)}),()=>({hidden:r(H)}),()=>({paused:r(W)})]),St("mouseleave",re,me),$(t,re),U(),o()}ct(["mousemove","click"]);function xu(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);Po(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);Li(f,()=>r(u),(v,p)=>{p(v,bs(()=>{var x;return(x=e.buttonComponentProps)!=null?x:{}}))}),$(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 Uy=Ie('<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 sm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Uy();Me(o,()=>z({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:de}),Ee(),h(o),$(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");sm(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 zy=M('<div class="icon-background-mobile svelte-xtk2k4"></div>'),Wy=M("<!> <!>",1),Ky={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 Ta(t,e){F(e,!0),q(t,Ky);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=Wy(),x=he(p);{var w=T=>{var E=zy();$(T,E)};L(x,T=>{o()&&T(w)})}var y=P(x,2);let S=g(()=>e.type==="prev");qs(y,{get isMobile(){return o()},get isPrev(){return r(S)}}),$(f,p)},$$slots:{default:!0}}),U()}var qy=Ie('<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 Pd(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=qy();Me(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);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ee(),h(o),$(t,o)}import{noop as Qy}from"@vkontakte/videoplayer-shared/es2015";var Gy=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),jy=M("<!> <div><!></div>",1),Yy={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 bl(t,e){F(e,!0),q(t,Yy);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,Qy),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 ss.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,f)=>{var v=jy(),p=he(v);{var x=T=>{var E=Gy();$(T,E)};L(p,T=>{o()&&T(x)})}var w=P(p,2);let y;var S=_(w);Pd(S,{}),h(w),B(T=>y=te(w,1,"svelte-1ot3duq",null,y,T),[()=>({mobile:o()})]),$(u,v)},$$slots:{default:!0}}),U()}var Zy=Ie('<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 Wr(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=Zy(),d=_(l);h(l),B(()=>{We(l,"width",i()),We(l,"height",o()),We(l,"viewBox",n()),We(d,"fill",s())}),$(t,l)}var Xy=Ie('<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=Xy(),d=_(l);h(l),B(()=>{We(l,"width",i()),We(l,"height",o()),We(l,"viewBox",n()),We(d,"fill",s())}),$(t,l)}import{noop as Jy}from"@vkontakte/videoplayer-shared/es2015";var e4=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),t4=M("<!> <div><!></div>",1),i4={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 $l(t,e){F(e,!0),q(t,i4);let[i,o]=Ue(),n=()=>C(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=vo(),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,Jy),x=ke().ui.t,{toggle:w}=s,y=g(()=>w),S=g(()=>n()!==null),T=g(()=>r(S)?n():a()),E=g(()=>r(T)?x("tooltip_pause"):x("tooltip_play")),V=g(()=>r(T)?Cs:Wr),k=g(()=>`${d()?"btn-m--play":""} ${f()}`),I=g(()=>r(S)?r(y):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 ss.KeyK},get ref(){return l()},set ref(R){l(R)},children:(R,X)=>{var D=t4();let H=g(()=>r(V));var W=he(D);{var ee=pe=>{var $e=e4();$(pe,$e)};L(W,pe=>{d()&&pe(ee)})}var j=P(W,2);let ue;var oe=_(j);Li(oe,()=>r(H),(pe,$e)=>{$e(pe,{})}),h(j),B(pe=>ue=te(j,1,"svelte-1ot3duq",null,ue,pe),[()=>({mobile:d()})]),$(R,D)},$$slots:{default:!0}}),U(),o()}var o4=Ie('<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 am(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=o4();Me(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);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ee(),h(o),$(t,o)}function Ad(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)=>{am(d,{})},$$slots:{default:!0}}),U()}var n4=M('<span class="gutter svelte-et3q1q"><span><!></span></span>'),r4={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 Md(t,e){F(e,!0),q(t,r4);let[i,o]=Ue(),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(x){s(x)},children:(x,w)=>{var y=n4(),S=_(y);let T;var E=_(S);{var V=I=>{Wr(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(y),B(I=>T=te(S,1,"toggler svelte-et3q1q",null,T,I),[()=>({enabled:n()})]),$(x,y)},$$slots:{default:!0}}),U(),o()}var s4=Ie('<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 lm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=s4();Me(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);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ee(2),h(o),$(t,o)}function Ld(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)=>{lm(d,{})},$$slots:{default:!0}}),U()}var a4=Ie('<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 dm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=a4();Me(o,()=>z({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:de}),Ee(2),h(o),$(t,o)}var l4={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function cm(t,e){q(t,l4);let i=m(e,"isOpened",3,!1),o=g(()=>i()?"graph-close-icon":"graph-open-icon");dm(t,{get"data-testid"(){return r(o)}})}function Vd(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());cm(f,{get isOpened(){return r(p)}})},$$slots:{default:!0}}),U()}import{PlaybackState as V1}from"@vkontakte/videoplayer-core/es2015";function Rd(t,e){F(e,!0);let[i,o]=Ue(),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()===V1.PAUSED&&v()}),x=g(()=>s()?"":"btn--live btn-full-opacity"),w=g(()=>l()?"btn-live":"btn-live-offset"),y=g(()=>l()&&n()===V1.PLAYING);Ot(t,{get className(){return r(x)},get testId(){return r(w)},get disabled(){return r(y)},get ariaLabel(){return d()},get click(){return r(p)},children:(S,T)=>{rd(S,{get isActive(){return l()}})},$$slots:{default:!0}}),U(),o()}import{noop as R1}from"@vkontakte/videoplayer-shared/es2015";var d4=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),c4=M('<img class="icon" aria-hidden="true"/>');function Ea(t,e){"use strict";let i=Y(!1),o=()=>{O(i,!0)};var n=qe(),s=he(n);{var l=a=>{var u=d4();$(a,u)},d=a=>{var u=c4();B(()=>We(u,"src",e.icon)),St("error",u,o),aa(u),$(a,u)};L(s,a=>{r(i)?a(l):a(d,!1)})}$(t,n)}function um(t,e){F(e,!0);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,R1),n=m(e,"ref",15),s=g(()=>o()===R1),l=g(()=>r(s)||i()),d=g(()=>r(s)?"btn-full-opacity":"");Po(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)=>{Ea(v,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),U()}var N1=t=>!!t.buttonComponent;var Ts={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var wu=(t,e,i,o)=>{if(t)for(let[n,s]of Object.entries(e))s.set(Ln(t,i,n,o))};var f4=M('<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),m4={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 fm(t,e){var mo,Na;F(e,!0),q(t,m4);let[i,o]=Ue(),n=()=>C(ho,"$disabledControls$",i),s=()=>C(_t,"$adPlaybackState",i),l=()=>C(Kt,"$playbackState$",i),d=()=>C(xi,"$currentSubtitle$",i),a=()=>C(Ti,"$isEnded$",i),u=()=>C(_o,"$currentGridType$",i),f=()=>C(dt,"$isLive$",i),v=()=>C(At,"$chromecastState$",i),p=()=>C(ri,"$isPictureInPictureActive",i),x=()=>C(Ao,"$pictureInPictureType$",i),w=()=>C(pt,"$availableSubtitlesList$",i),y=()=>C(Ko,"$contextMenuOpenedByKeyboard$",i),S=()=>C(di,"$showContextMenuBtn$",i),T=()=>C(pi,"$playerSize",i),E=()=>C(ni,"$isRewindableLive$",i),V=()=>C(qt,"$isActiveLive$",i),k=()=>C(lr,"$graphIsOpened$",i),I=()=>C(Qi,"$contextMenuVisible$",i),R=()=>C(Yt,"$isFullscreen",i),X=()=>C(Tt,"$autoplayNextEnabled",i),D=()=>C(r(jr),"$prevButton",i),H=()=>C(r(Yr),"$replayButton",i),W=()=>C(r(Mr),"$playButton",i),ee=()=>C(r(at),"$nextButton",i),j=()=>C(r(ai),"$playPrevChapterButton",i),ue=()=>C(r(ki),"$seekToInteractiveButton",i),oe=()=>C(r(po),"$interactiveGraphButton",i),pe=()=>C(r(ji),"$liveButton",i),$e=()=>C(r(xo),"$time",i),me=()=>C(r(Yi),"$episodes",i),Ae=()=>C(r(Wn),"$vkLogo",i),re=()=>C(r(wi),"$volume",i),Ne=()=>C(r(Kn),"$subtitles",i),se=()=>C(r(qn),"$settings",i),N=()=>C(r(cs),"$context",i),De=()=>C(r(Lr),"$fullscreen",i),le=()=>C(r(us),"$chromecast",i),ge=()=>C(fi,"$additionalDesktopControlPanelRightButtons$",i),ie=()=>C(Lo,"$isInteractiveTime$",i),ve=()=>C(Mo,"$settingsMenuVisible",i),Fe=()=>C(vi,"$settingButtonRef$",i),fe=()=>C(en,"$startedByKeyboard$",i),st=()=>C(tt,"$isAudioAvailable$",i),Z=()=>C(Wt,"$fakeIsPlaying$",i),Le=()=>C(bo,"$seekToInteractiveDisabledTooltip$",i),Pe=()=>C(Ft,"$adPosition",i),Ke=()=>C(Pt,"$position$",i),lt=()=>C(ft,"$adDuration",i),mt=()=>C(Xe,"$duration$",i),vt=m(e,"playerControlsWrapperRef",15,void 0),Ct=m(e,"playerControlsRef",15,void 0),Ye=m(e,"isAds",3,!1),Ut=m(e,"logoTargetUrl",3,""),ti=m(e,"isOneVideoPlaylist",3,!1),jt=m(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Wt}=vo(),ne=ke(),Ht=vo(),Se=kt(),_e=ne.actions.internal.toggleMuted,ce=ne.actions.internal.togglePlay,Be=ne.actions.internal.pause,ze=ne.actions.internal.toggleSubtitle,Re=ne.actions.internal.checkFullscreenSupport,je=(mo=ne.callbacks)==null?void 0:mo.onAudioDoesNotExistHint,He=(Na=ne.callbacks)==null?void 0:Na.onAudioDisabledHint,Xe=ne.state.duration$,Pt=ne.state.positionWithScrubbing$,Kt=ne.state.playbackState$,tt=ne.state.isAudioAvailable$,bi=ne.state.isAudioDisabled,Ti=ne.state.isEnded$,dt=ne.state.isLive$,qt=ne.state.isActiveLive$,ni=ne.state.isRewindableLive$,{isActive$:ri,type$:Ao}=Ht.pictureInPicture$,Mo=ne.ui.settingsMenu.visible$,go=ne.ui.settingsMenu.openedByBtnKeyboard$,zt=ne.ui.controls,ui=ne.actions.internal.getVideoEpisodes(),At=ne.state.chromecastState$,pt=ne.state.availableSubtitlesList$,xi=ne.state.currentSubtitle$,ho=zt.disabledControls$,Qi=ne.ui.contextMenu.visible$,di=ne.ui.contextMenu.showContextMenuBtn$,Ko=ne.ui.contextMenu.openedByBtnKeyboard$,en=ne.ui.startedByKeyboard$,Q=ne.ui.controlBlocks,we=ne.ui.t,ft=ne.ads.duration,Ft=ne.ads.position,_t=ne.ads.playbackState,Yt=ne.ui.isFullscreen,pi=ne.ui.playerSize,_o=ne.ui.currentGridType$,fi=ne.ui.additionalDesktopControlPanelRightButtons$,Tt=ne.ui.autoplayNextEnabled$,$i=ne.actions.internal.getVideoElement,tn=ne.actions.internal.replayInteractive,on=ne.actions.internal.prevVideoClick,Rn=ne.actions.internal.nextVideoClick,mi=ne.state.isInteractive,Lo=ne.state.isInteractiveTime$,Nn=ne.state.showInteractiveGraph,ar=ne.state.showSeekToInteractive,Ei=ne.state.showPlayPrevChapter,On=ne.state.showInteractiveTimeIndicator,Di=ne.state.playPrevChapterDisabledTooltip,bo=Ht.seekToInteractiveDisabledTooltip$,lr=Ht.graphIsOpened$,nn=Se.features.interactiveResponsiveUi,Bn=g(()=>n().has("EPISODE_BUTTON")),dr=g(()=>n().has("GRAPH_BUTTON")),Ir=g(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),kr=g(()=>n().has("PLAY_BUTTON")),cr=g(()=>n().has("REPLAY_BUTTON")),ur=g(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),qo=()=>ne.actions.internal.toggleChromecast(),Pr=g(()=>Ye()?s()==="playing":l()===pm.PLAYING),Ri=g(()=>d().value!=="off"),Dn=g(()=>a()&&!Ye()||mi),wn=g(()=>nn?r(Dn)&&to(u(),"m"):r(Dn)),pr=g(()=>!a()||mi||Ye()),fr=g(()=>to(u(),"m")),mr=g(()=>e.showNextPrevButtons&&to(u(),"m")&&!Ye()&&e.nextButtonActive),Hn=g(()=>e.showNextPrevButtons&&to(u(),"m")&&!Ye()&&e.prevButtonActive),vr=g(()=>!Ye()&&!!f()),Fn=g(()=>v()!==O1.NOT_AVAILABLE&&!(p()&&x()===1)&&to(u(),"m")&&!mi),gr=g(()=>e.showAutoplayNext&&!ti()&&to(u(),"s")),hr=g(()=>w().length>0&&to(u(),"m")),Vo=g(()=>y()||S()),_r=g(()=>to(u(),"s")&&!Ye()),ut=g(()=>!e.logoHidden&&!Ye()),si=g(()=>Se.features.fullscreen&&Re()&&(e.logoHidden||to(u(),nn?"xs":"s"))&&!(p()&&x()===1)&&(mi?jt():!0)),rn=g(()=>(!f()||Ye())&&!(Se.features.interactiveHideTime&&mi)),Ii=g(()=>T().width>100),Gi=g(()=>Nn&&to(u(),"m")),sn=g(()=>nn?ar&&to(u(),"s"):ar),$o=g(()=>nn?Ei&&to(u(),"s"):Ei),an=g(()=>!Ye()&&!f()&&!!(ui!=null&&ui.length)&&r(fr)&&!r(Bn)),ln=g(()=>!E()||!!V()),dn=g(()=>k()?we("tooltip_interactive_graph_on"):we("tooltip_interactive_graph_off")),cn=g(()=>I()?we("tooltip_context_menu_close"):we("tooltip_context_menu_open")),qr=($t,yt)=>$t?yt&&yt===pm.PAUSED?we("tooltip_play"):"":we("tooltip_live"),Qr=g(()=>qr(r(ln),l())),Ar=g(()=>Se.logoType==="vk_video"?we("tooltip_vk_video_logo"):we("tooltip_vk_logo")),Gr=g(()=>r(Ri)?we("tooltip_subtitles_on"):we("tooltip_subtitles_off")),Un=g(()=>R()?we("tooltip_fullscreen_on"):we("tooltip_fullscreen_off")),br=g(()=>v()===O1.CONNECTED?we("tooltip_chromecast_on"):we("tooltip_chromecast_off")),yo=g(()=>X()?we("tooltip_autoplay_on"):we("tooltip_autoplay_off")),zn=Y(0),Zt=oi({}),uo=oi({}),jr=g(()=>zt.prevButton),Yr=g(()=>zt.replayButton),Mr=g(()=>zt.playButton),at=g(()=>zt.nextButton),ai=g(()=>zt.playPrevChapterButton),ki=g(()=>zt.seekToInteractiveButton),po=g(()=>zt.interactiveGraphButton),ji=g(()=>zt.liveButton),xo=g(()=>zt.time),Yi=g(()=>zt.episodes),Wn=g(()=>zt.vkLogo),wi=g(()=>zt.volume),Kn=g(()=>zt.subtitles),qn=g(()=>zt.settings),cs=g(()=>zt.context),Lr=g(()=>zt.fullscreen),us=g(()=>zt.chromecast),oo=g(()=>({prevButton:D()?D().right-D().left:0,replayButton:H()?H().right-H().left:0,playButton:W()?W().right-W().left:0,nextButton:ee()?ee().right-ee().left:0,playPrevChapterButton:j()?j().right-j().left:0,seekToInteractiveButton:ue()?ue().right-ue().left:0,interactiveGraphButton:oe()?oe().right-oe().left:0,liveButton:pe()?pe().right-pe().left:0,time:$e()?$e().right-$e().left:0,episodes:me()?me().right-me().left:0,vkLogo:Ae()?Ae().right-Ae().left:0,volume:re()?re().right-re().left:0,subtitles:Ne()?Ne().right-Ne().left:0,settings:se()?se().right-se().left:0,context:N()?N().right-N().left:0,fullscreen:De()?De().right-De().left:0,chromecast:le()?le().right-le().left:0,additionalButtons:ge().length?ge().reduce($t=>[...$t,40],[]):[]})),Qn=Y(0);Qe(()=>{(!r(Qn)||r(Qn)<r(oo).time)&&wt(()=>O(Qn,r(oo).time,!0))});let $r=Y(!1);Qe(()=>{let $t=0;r(an)&&(to(u(),"xl")?$t=r(oo).time:$t=60);let yt=r(oo).prevButton+r(oo).playButton+r(oo).nextButton+r(oo).seekToInteractiveButton+r(oo).interactiveGraphButton+r(oo).liveButton+r(Qn)+$t;O($r,r(rn)&&r(zn)>=yt,!0)});let Zr=g(()=>r($r)&&to(u(),"m")),it=B1(_l,260),Et=B1(wu,260);Qe(()=>{T(),ie(),it($i(),zt,Zt,e.showControls),Et($i(),Q,uo,e.showControls)}),Qe(()=>{uo.bottom=vt()});let vi=ae();Qe(()=>{ve(),Fe()&&wt(()=>ul(Fe(),ve(),go))});let no;Qe(()=>{fe(),wt(()=>yu(en,fe(),no))});function fo(){zs({isAudioDisabled:bi,isAudioAvailable:st(),isAds:Ye(),audioIsNotExistHintCallback:je,audioDisabledHintCallback:He})&&_e()}let wo=mi?tn:ce,Zi=g(()=>Z()!==null),Qo=g(()=>r(Zi)?Z():r(Pr)),un=g(()=>r(Qo)?we("tooltip_pause"):we("tooltip_play")),Sn=we("tooltip_episodes"),Hi=g(()=>{var $t,yt,so,gn;return r(Hn)?{id:"prevButton",type:"desktop-control-panel-left",weight:Ss.prevButton,buttonComponent:Ta,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:on.bind(null,!0)},tooltipEnabled:!((yt=($t=ne.callbacks)==null?void 0:$t.uiInfo)!=null&&yt.onPrevButtonMouseEnter)&&!((gn=(so=ne.callbacks)==null?void 0:so.uiInfo)!=null&&gn.onPrevButtonMouseLeave),mouseEnter:()=>{var Ui,hi,_i;(_i=(hi=(Ui=ne.callbacks)==null?void 0:Ui.uiInfo)==null?void 0:hi.onPrevButtonMouseEnter)==null||_i.call(hi,Ln($i(),Zt,"prevButton",e.showControls))},mouseLeave:()=>{var Ui,hi,_i;(_i=(hi=(Ui=ne.callbacks)==null?void 0:Ui.uiInfo)==null?void 0:hi.onPrevButtonMouseLeave)==null||_i.call(hi,Ln($i(),Zt,"prevButton",e.showControls))},tooltipText:we("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Ro=g(()=>r(wn)?{id:"replayButton",type:"desktop-control-panel-left",weight:Ss.replayButton,buttonComponent:bl,buttonComponentProps:{disabled:r(cr),click:wo},tooltipText:we("tooltip_restart"),disabled:r(cr)}:void 0),Gn=g(()=>r(pr)?{id:"playButton",type:"desktop-control-panel-left",weight:Ss.playButton,buttonComponent:$l,buttonComponentProps:{disabled:r(kr),isPlaying:r(Pr),click:ce},tooltipText:r(un),disabled:r(kr)}:void 0),jn=g(()=>{var $t,yt,so,gn;return r(mr)?{id:"nextButton",type:"desktop-control-panel-left",weight:Ss.nextButton,buttonComponent:Ta,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:Rn.bind(null,!0)},tooltipEnabled:!((yt=($t=ne.callbacks)==null?void 0:$t.uiInfo)!=null&&yt.onNextButtonMouseEnter)&&!((gn=(so=ne.callbacks)==null?void 0:so.uiInfo)!=null&&gn.onNextButtonMouseLeave),mouseEnter:()=>{var Ui,hi,_i;(_i=(hi=(Ui=ne.callbacks)==null?void 0:Ui.uiInfo)==null?void 0:hi.onNextButtonMouseEnter)==null||_i.call(hi,Ln($i(),Zt,"nextButton",e.showControls))},mouseLeave:()=>{var Ui,hi,_i;(_i=(hi=(Ui=ne.callbacks)==null?void 0:Ui.uiInfo)==null?void 0:hi.onNextButtonMouseLeave)==null||_i.call(hi,Ln($i(),Zt,"nextButton",e.showControls))},tooltipText:we("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),pn=g(()=>mi&&r($o)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Ss.playPrevChapterButton,buttonComponent:Ad,buttonComponentProps:{disabled:r(ur),click:e.playPrevChapter},tooltipText:we("tooltip_interactive_go_back"),disabledTooltipContent:we(Di),disabled:r(ur)}:void 0),Vr=g(()=>mi&&r(sn)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Ss.seekToInteractiveButton,buttonComponent:Ld,buttonComponentProps:{disabled:r(Ir),click:e.seekToInteractive},tooltipText:we("tooltip_interactive_seek"),disabled:r(Ir),disabledTooltipContent:we(Le())}:void 0),fn=g(()=>mi&&r(Gi)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Ss.interactiveGraphButton,buttonComponent:Vd,buttonComponentProps:{disabled:r(dr),click:lr.toggle,graphIsOpened:k()},tooltipText:r(dn)}:void 0),Xr=g(()=>r(vr)?{id:"liveButton",type:"desktop-control-panel-left",weight:Ss.liveButton,buttonComponent:Rd,buttonComponentProps:{isLiveActive:r(ln),ariaLabel:r(Qr)},tooltipText:r(Qr),disabled:r(ln)&&l()===pm.PLAYING}:void 0),So=g(()=>[r(Hi),r(Ro),r(Gn),r(jn),r(pn),r(Vr),r(fn),r(Xr)].filter($t=>!!$t).sort(_a)),Cn=g(()=>r(ut)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Ts.vkLogo,buttonComponent:xd,buttonComponentProps:{targetUrl:Ut(),logoClickable:e.logoClickable,click:Be},tooltipText:r(Ar),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Ze=g(()=>r(gr)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Ts.autoplayNext,buttonComponent:Md,tooltipText:r(yo)}:void 0),Xt=g(()=>({id:"volume",type:"desktop-control-panel-right",weight:Ts.volume,buttonComponent:Hf,buttonComponentProps:{click:fo,isAds:Ye()}})),Ai=g(()=>r(hr)?{id:"subtitles",type:"desktop-control-panel-right",weight:Ts.subtitles,buttonComponent:Rf,buttonComponentProps:{isSubtitlesEnabled:r(Ri),click:ze},tooltipText:r(Gr)}:void 0),Co=g(()=>r(_r)?{id:"settings",type:"desktop-control-panel-right",weight:Ts.settings,buttonComponent:vl,buttonComponentProps:{ref$:vi},tooltipText:ve()?void 0:we("tooltip_settings_off")}:void 0),To=g(()=>Se.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Ts.context,buttonComponent:rm,buttonComponentProps:{ariaLabel:we("aria_label_context_menu")},className:r(Vo)?"":"out-of-view",tooltipText:r(cn)}:void 0),Ce=g(()=>r(si)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Ts.fullscreen,buttonComponent:yd,buttonComponentProps:{isFullscreen:R(),click:e.toggleFullscreen},tooltipText:r(Un)}:void 0),bt=g(()=>r(Fn)?{id:"chromecast",type:"desktop-control-panel-right",weight:Ts.chromecast,buttonComponent:wd,buttonComponentProps:{state:v(),click:qo},tooltipText:r(br)}:void 0),li=g(()=>[r(Cn),r(Ze),r(Xt),r(Ai),r(Co),r(To),r(Ce),r(bt),...ge()].filter($t=>!!$t).sort(_a));var Pi=f4(),Xi=he(Pi);let ro;var Je=_(Xi);let Qt=g(()=>!e.showControls),Fi=g(()=>!r(Ii));Sa(Je,{get isHidden(){return r(Qt)},get timelineNotAvailable(){return r(Fi)},get isAds(){return Ye()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return E()},get ref(){return Zt.timeline},set ref($t){Zt.timeline=$t}});var No=P(Je,2),mn=_(No),Yn=_(mn);Mi(Yn,17,()=>r(So),$t=>$t.id,($t,yt)=>{xu($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 Zt[r(yt).id]},set ref(so){Zt[r(yt).id]=so}})});var yr=P(Yn,2);{var Rr=$t=>{let yt=g(()=>!e.showControls),so=g(()=>Ye()?Pe():Ke()),gn=g(()=>Ye()?lt():mt());bd($t,{get isHidden(){return r(yt)},isMobile:!1,get showDuration(){return r(Zr)},get position(){return r(so)},get duration(){return r(gn)},get ref(){return Zt.time},set ref(Ui){Zt.time=Ui}})};L(yr,$t=>{r(rn)&&$t(Rr)})}var Ji=P(yr,2);let gi=g(()=>!r(an));Po(Ji,{className:"w-max",get disabled(){return r(gi)},get tooltipContent(){return Sn},get ref(){return Zt.episodes},set ref($t){Zt.episodes=$t},children:($t,yt)=>{var so=qe(),gn=he(so);{var Ui=hi=>{Cd(hi,{get position(){return Ke()},get duration(){return mt()},get timeCodes(){return ui}})};L(gn,hi=>{r(an)&&hi(Ui)})}$($t,so)},$$slots:{default:!0}}),h(mn);var vn=P(mn,2);Mi(vn,21,()=>r(li),$t=>$t.id,($t,yt)=>{var so=qe(),gn=he(so);{var Ui=_i=>{xu(_i,{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 Zt[r(yt).id]},set ref(js){Zt[r(yt).id]=js}})},hi=_i=>{let js=g(()=>!!r(yt).disabled);um(_i,{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 Zt[r(yt).id]},set ref(Oa){Zt[r(yt).id]=Oa}})};L(gn,_i=>{N1(r(yt))?_i(Ui):_i(hi,!1)})}$($t,so)}),h(vn),h(No),ot(No,$t=>Ct($t),()=>Ct()),h(Xi),ot(Xi,$t=>vt($t),()=>vt());var xr=P(Xi,2);{var Oo=$t=>{kd($t,{get ref(){return Zt.interactiveTimeIndicator},set ref(yt){Zt.interactiveTimeIndicator=yt}})};L(xr,$t=>{On&&$t(Oo)})}B($t=>ro=te(Xi,1,"wrapper-bottom svelte-f6e8ix",null,ro,$t),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),rr(mn,"clientWidth",$t=>O(zn,$t)),$(t,Pi),U(),o()}import{ChromecastState as H1,PlaybackState as F1}from"@vkontakte/videoplayer-core/es2015";import{noop as D1}from"@vkontakte/videoplayer-shared/es2015";var v4=M('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),g4=M('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),h4={hash:"svelte-167ouw6",code:".icon.svelte-167ouw6 {width:24px !important;height:24px !important;}.inner.svelte-167ouw6 {width:16px;height:16px;background-color:var(--white);}"};function mm(t,e){q(t,h4);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,D1),n=g(()=>o()===D1),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=qe(),p=he(v);{var x=y=>{var S=v4();$(y,S)},w=y=>{var S=g4();B(()=>We(S,"src",e.iconUrl)),St("error",S,d),aa(S),$(y,S)};L(p,y=>{r(l)?y(x):y(w,!1)})}$(u,v)},$$slots:{default:!0}})}var _4=Ie('<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 vm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=_4();Me(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);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ee(),h(o),$(t,o)}import{noop as b4}from"@vkontakte/videoplayer-shared/es2015";var $4=M('<div class="container svelte-yslgu" aria-hidden="true"><!></div>'),y4={hash:"svelte-yslgu",code:".container.svelte-yslgu {display:flex;align-items:center;}"};function Su(t,e){F(e,!0),q(t,y4);let i=m(e,"muted",3,!1),o=m(e,"click",3,b4),n=m(e,"ref",15,void 0),l=ke().ui.t,d=g(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),a=g(()=>i()?vm: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=$4();let x=g(()=>r(a));var w=_(p);Li(w,()=>r(x),(y,S)=>{S(y,{})}),h(p),$(f,p)},$$slots:{default:!0}}),U()}var x4=Ie('<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 gm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=x4();Me(o,()=>z({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:de}),Ee(3),h(o),$(t,o)}var w4={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 hm(t,e){q(t,w4);let i=m(e,"isActive",3,!1),o=g(()=>i()?"color: #2688EB;":"color: #fff;"),n=g(()=>i()?"pip-icon--active":"pip-icon");gm(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}import{noop as S4}from"@vkontakte/videoplayer-shared/es2015";function _m(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isPictureInPictureActive",3,!1),n=m(e,"click",3,S4),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)=>{hm(l,{get isActive(){return o()}})},$$slots:{default:!0}}),U()}import{debounceFn as U1}from"@vkontakte/videoplayer-shared/es2015";var C4=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},T4=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},E4=M("<div><!></div>"),I4=M("<div><!></div>"),k4=M("<div><!></div>"),P4=M("<!> <!> <!>",1),A4=M("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),M4=M('<div class="wrapper-middle svelte-68kopu"><!></div>'),L4=M("<div><!></div> <!> <div><!></div>",1),V4=M('<div aria-hidden="true">\xB7</div> <!>',1),R4=M('<!> <!> <div><div><div><div class="controls-group contain svelte-68kopu"><!> <!> <!> <!></div> <div class="controls-group svelte-68kopu"><!> <!> <!></div></div> <!></div></div> <!>',1),N4={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);}
255
+ 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 Ld(t,e){var j;z(e,!0),q(t,e4);let[i,o]=Be(),n=()=>C(T,"$isMobile",i),s=()=>C(I,"$areControlsVisible",i),l=()=>C(B,"$currentGridType$",i),d=()=>C(E,"$isInteractiveTime$",i),a=()=>C(w,"$interactiveControlsOpacity$",i),u=()=>C(V,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>C(S,"$isFullscreen",i),m=v(e,"ref",15,void 0),p=J(void 0),x=Ce(),y=vo(),{interactiveControlsOpacity$:w}=y,T=x.ui.isMobile,S=x.ui.isFullscreen,E=x.state.isInteractiveTime$,V=y.showInteractiveTimeIndicatorTooltip$,I=x.ui.controlsVisible,L=(j=x.callbacks)==null?void 0:j.onInteractiveTimeIndicatorClick,B=x.ui.currentGridType$,F=g(()=>!n()&&s()),H=g(()=>js(l(),"s")),U=g(()=>!d()||!!a()||r(F)),Z=J(!1);ze(()=>{N(Z,r(U),!0)});let re=()=>{N(Z,!0)},G=()=>{var oe;be(),(oe=r(p))==null||oe.addEventListener("animationiteration",re,{once:!0})},be=()=>{var oe;N(Z,!1),(oe=r(p))==null||oe.removeEventListener("animationiteration",re)},ie=oe=>{V.set(oe)},me=g(()=>u()&&!r(U));ze(()=>{u()?G():be()});let pe=()=>{r(U)||(V.set(!0),L==null||L())};on(()=>{V.clearTimeout(),be()});let ue=()=>{V.set(!1)},Le=Q("tooltip_interactive_interaction_time_indicator");var Ve=Jy();let ae;Ve.__mousemove=[Xy],Ve.__click=pe;var Re=_(Ve);wo(Re,{get tooltipContent(){return Le},get tooltipActive(){return r(me)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:ie,get ref(){return m()},set ref(oe){m(oe)},children:(oe,Oe)=>{wd(oe,{completed:!0})},$$slots:{default:!0}});var X=k(Re,2);let M;st(X,oe=>m(oe),()=>m());var at=k(X,2);let De;st(at,oe=>N(p,oe),()=>r(p)),h(Ve),D((oe,Oe,Ze)=>{ae=se(Ve,1,"interactive-episode-icon-animated svelte-od3veb",null,ae,oe),M=se(X,1,"ref-block svelte-od3veb",null,M,Oe),De=se(at,1,"pulse svelte-od3veb",null,De,Ze)},[()=>({mobile:n(),fullscreen:f(),invisible:r(U),"icon-small":r(H)}),()=>({hidden:r(U)}),()=>({paused:r(Z)})]),kt("mouseleave",Ve,ue),$(t,Ve),W(),o()}ct(["mousemove","click"]);function ku(t,e){z(e,!0);let i=v(e,"tooltipEnabled",3,!0),o=v(e,"disabled",3,!1),n=v(e,"className",3,void 0),s=v(e,"ref",15);wo(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=Fe();let u=g(()=>e.buttonComponent);var f=fe(a);Ai(f,()=>r(u),(m,p)=>{p(m,ws(()=>{var x;return(x=e.buttonComponentProps)!=null?x:{}}))}),$(l,a)},$$slots:{default:!0}}),W()}var Es={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var i4=xe('<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 gm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=i4();Ie(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img"},i));var n=_(o);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(),h(o),$(t,o)}function Md(t,e){let i=v(e,"isPrev",3,!1),o=v(e,"isMobile",3,!1),n=v(e,"width",3,"24"),s=v(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");gm(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 o4=P('<div class="icon-background-mobile svelte-xtk2k4"></div>'),n4=P("<!> <!>",1),r4={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 Ta(t,e){z(e,!0),q(t,r4);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"disabled",3,!1),l=Ce().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}`);Dt(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,m)=>{var p=n4(),x=fe(p);{var y=S=>{var E=o4();$(S,E)};R(x,S=>{o()&&S(y)})}var w=k(x,2);let T=g(()=>e.type==="prev");Md(w,{get isMobile(){return o()},get isPrev(){return r(T)}}),$(f,p)},$$slots:{default:!0}}),W()}var s4=xe('<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 Vd(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=s4();Ie(o,()=>K({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);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(),h(o),$(t,o)}import{noop as a4}from"@vkontakte/videoplayer-shared/es2015";var l4=P('<div class="icon-background-mobile svelte-1ot3duq"></div>'),d4=P("<!> <div><!></div>",1),c4={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 _l(t,e){z(e,!0),q(t,c4);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"disabled",3,!1),s=v(e,"className",3,""),l=v(e,"click",3,a4),d=Q("tooltip_restart"),a=g(()=>`${o()?"btn-m--play":""} ${s()}`);Dt(t,{get className(){return r(a)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return n()},get click(){return l()},get ariaKeyShortCut(){return ds.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,f)=>{var m=d4(),p=fe(m);{var x=S=>{var E=l4();$(S,E)};R(p,S=>{o()&&S(x)})}var y=k(p,2);let w;var T=_(y);Vd(T,{}),h(y),D(S=>w=se(y,1,"svelte-1ot3duq",null,w,S),[()=>({mobile:o()})]),$(u,m)},$$slots:{default:!0}}),W()}var u4=xe('<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 Qr(t,e){"use strict";let i=v(e,"width",3,"24"),o=v(e,"height",3,"24"),n=v(e,"viewBox",3,"0 0 24 24"),s=v(e,"fill",3,"var(--btn-color)");var l=u4(),d=_(l);h(l),D(()=>{Ne(l,"width",i()),Ne(l,"height",o()),Ne(l,"viewBox",n()),Ne(d,"fill",s())}),$(t,l)}var p4=xe('<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 Is(t,e){"use strict";let i=v(e,"width",3,"24"),o=v(e,"height",3,"24"),n=v(e,"viewBox",3,"0 0 24 24"),s=v(e,"fill",3,"var(--btn-color)");var l=p4(),d=_(l);h(l),D(()=>{Ne(l,"width",i()),Ne(l,"height",o()),Ne(l,"viewBox",n()),Ne(d,"fill",s())}),$(t,l)}import{noop as f4}from"@vkontakte/videoplayer-shared/es2015";var m4=P('<div class="icon-background-mobile svelte-1ot3duq"></div>'),v4=P("<!> <div><!></div>",1),g4={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 bl(t,e){z(e,!0),q(t,g4);let[i,o]=Be(),n=()=>C(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=vo(),l=v(e,"ref",15,void 0),d=v(e,"isMobile",3,!1),a=v(e,"isPlaying",3,!1),u=v(e,"disabled",3,!1),f=v(e,"className",3,""),m=v(e,"click",3,f4),x=Ce().ui.t,{toggle:y}=s,w=g(()=>y),T=g(()=>n()!==null),S=g(()=>r(T)?n():a()),E=g(()=>r(S)?x("tooltip_pause"):x("tooltip_play")),V=g(()=>r(S)?Is:Qr),I=g(()=>`${d()?"btn-m--play":""} ${f()}`),L=g(()=>r(T)?r(w):m());Dt(t,{get className(){return r(I)},testId:"btn-play",get click(){return r(L)},get disabled(){return u()},get ariaLabel(){return r(E)},get ariaKeyShortCut(){return ds.KeyK},get ref(){return l()},set ref(B){l(B)},children:(B,F)=>{var H=v4();let U=g(()=>r(V));var Z=fe(H);{var re=me=>{var pe=m4();$(me,pe)};R(Z,me=>{d()&&me(re)})}var G=k(Z,2);let be;var ie=_(G);Ai(ie,()=>r(U),(me,pe)=>{pe(me,{})}),h(G),D(me=>be=se(G,1,"svelte-1ot3duq",null,be,me),[()=>({mobile:d()})]),$(B,H)},$$slots:{default:!0}}),W(),o()}var h4=xe('<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 hm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=h4();Ie(o,()=>K({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);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(),h(o),$(t,o)}function Rd(t,e){z(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),s=Q("tooltip_interactive_go_back"),l=g(()=>o()?"hidden":"");Dt(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)=>{hm(d,{})},$$slots:{default:!0}}),W()}var _4=P('<span class="gutter svelte-et3q1q"><span><!></span></span>'),b4={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 Od(t,e){z(e,!0),q(t,b4);let[i,o]=Be(),n=()=>C(a,"$autoplayNextEnabled$",i),s=v(e,"ref",15,void 0),l=Ce(),d=l.ui.t,a=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,f=()=>{u(!n(),!0)},m=d("aria_label_autoplay"),p=g(()=>n()?"true":"false");Dt(t,{click:f,get ariaLabel(){return m},role:"switch",get areaChecked(){return r(p)},get ref(){return s()},set ref(x){s(x)},children:(x,y)=>{var w=_4(),T=_(w);let S;var E=_(T);{var V=L=>{Qr(L,{width:"14",height:"14",fill:"#000"})},I=L=>{Is(L,{width:"14",height:"14",fill:"#000"})};R(E,L=>{n()?L(V):L(I,!1)})}h(T),h(w),D(L=>S=se(T,1,"toggler svelte-et3q1q",null,S,L),[()=>({enabled:n()})]),$(x,w)},$$slots:{default:!0}}),W(),o()}var $4=xe('<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 _m(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=$4();Ie(o,()=>K({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);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(2),h(o),$(t,o)}function Nd(t,e){z(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),s=Q("tooltip_interactive_seek"),l=g(()=>o()?"hidden":"");Dt(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)=>{_m(d,{})},$$slots:{default:!0}}),W()}var y4=xe('<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 bm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=y4();Ie(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img"},i));var n=_(o);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(2),h(o),$(t,o)}var x4={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function $m(t,e){q(t,x4);let i=v(e,"isOpened",3,!1),o=g(()=>i()?"graph-close-icon":"graph-open-icon");bm(t,{get"data-testid"(){return r(o)}})}function Bd(t,e){z(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),s=v(e,"graphIsOpened",3,!1),d=Ce().ui.t,a=g(()=>s()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=g(()=>o()?"hidden":"");Dt(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,m)=>{let p=g(()=>!!s());$m(f,{get isOpened(){return r(p)}})},$$slots:{default:!0}}),W()}import{PlaybackState as j1}from"@vkontakte/videoplayer-core/es2015";function Dd(t,e){z(e,!0);let[i,o]=Be(),n=()=>C(u,"$playbackState$",i),s=v(e,"isMobile",3,!1),l=v(e,"isLiveActive",3,!1),d=v(e,"ariaLabel",3,""),a=Ce(),u=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,m=a.actions.internal.togglePlay,p=g(()=>()=>{if(!l()){f();return}n()===j1.PAUSED&&m()}),x=g(()=>s()?"":"btn--live btn-full-opacity"),y=g(()=>l()?"btn-live":"btn-live-offset"),w=g(()=>l()&&n()===j1.PLAYING);Dt(t,{get className(){return r(x)},get testId(){return r(y)},get disabled(){return r(w)},get ariaLabel(){return d()},get click(){return r(p)},children:(T,S)=>{ld(T,{get isActive(){return l()}})},$$slots:{default:!0}}),W(),o()}import{noop as Y1}from"@vkontakte/videoplayer-shared/es2015";var w4=P('<div class="icon icon-error-stub"><div class="inner"></div></div>'),S4=P('<img class="icon" aria-hidden="true"/>');function Ea(t,e){"use strict";let i=J(!1),o=()=>{N(i,!0)};var n=Fe(),s=fe(n);{var l=a=>{var u=w4();$(a,u)},d=a=>{var u=S4();D(()=>Ne(u,"src",e.icon)),kt("error",u,o),la(u),$(a,u)};R(s,a=>{r(i)?a(l):a(d,!1)})}$(t,n)}function ym(t,e){z(e,!0);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,Y1),n=v(e,"ref",15),s=g(()=>o()===Y1),l=g(()=>r(s)||i()),d=g(()=>r(s)?"btn-full-opacity":"");wo(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 m;return(m=e.testId)!=null?m:e.id});Dt(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:(m,p)=>{Ea(m,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),W()}var Z1=t=>!!t.buttonComponent;var ks={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var Au=(t,e,i,o)=>{if(t)for(let[n,s]of Object.entries(e))s.set(On(t,i,n,o))};var E4=P('<div><!> <div class="controls svelte-1iiubm3" data-testid="player_controls"><div class="controls-left svelte-1iiubm3"><!> <!> <!></div> <div class="controls-right svelte-1iiubm3"></div></div></div> <!>',1),I4={hash:"svelte-1iiubm3",code:".wrapper-bottom.svelte-1iiubm3 {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-1iiubm3::before {content:'';height:var(--controls-gradient-height);background:var(--controls-gradient);position:absolute;width:100%;}.wrapper-bottom.svelte-1iiubm3 > :where(.svelte-1iiubm3) {pointer-events:auto;}.controls.svelte-1iiubm3 {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-1iiubm3, .controls-right.svelte-1iiubm3 {display:flex;align-content:center;}.controls-left.svelte-1iiubm3 {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-1iiubm3 > *:not(:first-child), .controls-right.svelte-1iiubm3 > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-1iiubm3 {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1iiubm3 {transition:none;}"};function wm(t,e){var bo,ir;z(e,!0),q(t,I4);let[i,o]=Be(),n=()=>C(ut,"$disabledControls$",i),s=()=>C(Gt,"$adPlaybackState",i),l=()=>C(je,"$playbackState$",i),d=()=>C(Ct,"$currentSubtitle$",i),a=()=>C(Wt,"$isEnded$",i),u=()=>C(yi,"$currentGridType$",i),f=()=>C(ai,"$isLive$",i),m=()=>C(ei,"$chromecastState$",i),p=()=>C(ao,"$isPictureInPictureActive",i),x=()=>C(oi,"$pictureInPictureType$",i),y=()=>C(to,"$availableSubtitlesList$",i),w=()=>C(Co,"$contextMenuOpenedByKeyboard$",i),T=()=>C(So,"$showContextMenuBtn$",i),S=()=>C(si,"$playerSize",i),E=()=>C(qi,"$isRewindableLive$",i),V=()=>C(li,"$isActiveLive$",i),I=()=>C(mr,"$graphIsOpened$",i),L=()=>C(Ot,"$contextMenuVisible$",i),B=()=>C(gt,"$isFullscreen",i),F=()=>C(xt,"$autoplayNextEnabled",i),H=()=>C(r(yr),"$prevButton",i),U=()=>C(r(Cn),"$replayButton",i),Z=()=>C(r(vt),"$playButton",i),re=()=>C(r(fi),"$nextButton",i),G=()=>C(r(oo),"$playPrevChapterButton",i),be=()=>C(r(jo),"$seekToInteractiveButton",i),ie=()=>C(r(mi),"$interactiveGraphButton",i),me=()=>C(r(dn),"$liveButton",i),pe=()=>C(r(Ni),"$time",i),ue=()=>C(r(Gi),"$episodes",i),Le=()=>C(r(ji),"$vkLogo",i),Ve=()=>C(r(Yo),"$volume",i),ae=()=>C(r(Tn),"$subtitles",i),Re=()=>C(r(Mr),"$settings",i),X=()=>C(r(Zo),"$context",i),M=()=>C(r(Vr),"$fullscreen",i),at=()=>C(r(cn),"$chromecast",i),De=()=>C(_i,"$additionalDesktopControlPanelRightButtons$",i),j=()=>C(co,"$isInteractiveTime$",i),oe=()=>C(ft,"$settingsMenuVisible",i),Oe=()=>C(xi,"$settingButtonRef$",i),Ze=()=>C(Ko,"$startedByKeyboard$",i),$e=()=>C(tt,"$isAudioAvailable$",i),te=()=>C(Xt,"$fakeIsPlaying$",i),we=()=>C(To,"$seekToInteractiveDisabledTooltip$",i),Te=()=>C(Qt,"$adPosition",i),Ke=()=>C(Qe,"$position$",i),it=()=>C(et,"$adDuration",i),ht=()=>C(bt,"$duration$",i),pt=v(e,"playerControlsWrapperRef",15,void 0),_t=v(e,"playerControlsRef",15,void 0),Je=v(e,"isAds",3,!1),zt=v(e,"logoTargetUrl",3,""),Yt=v(e,"isOneVideoPlaylist",3,!1),Zt=v(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Xt}=vo(),ke=Ce(),Jt=vo(),he=At(),Ee=ke.actions.internal.toggleMuted,ce=ke.actions.internal.togglePlay,Ue=ke.actions.internal.pause,We=ke.actions.internal.toggleSubtitle,Se=ke.actions.internal.checkFullscreenSupport,lt=(bo=ke.callbacks)==null?void 0:bo.onAudioDoesNotExistHint,qe=(ir=ke.callbacks)==null?void 0:ir.onAudioDisabledHint,bt=ke.state.duration$,Qe=ke.state.positionWithScrubbing$,je=ke.state.playbackState$,tt=ke.state.isAudioAvailable$,Vt=ke.state.isAudioDisabled,Wt=ke.state.isEnded$,ai=ke.state.isLive$,li=ke.state.isActiveLive$,qi=ke.state.isRewindableLive$,{isActive$:ao,type$:oi}=Jt.pictureInPicture$,ft=ke.ui.settingsMenu.visible$,Qi=ke.ui.settingsMenu.openedByBtnKeyboard$,Pt=ke.ui.controls,nt=ke.actions.internal.getVideoEpisodes(),ei=ke.state.chromecastState$,to=ke.state.availableSubtitlesList$,Ct=ke.state.currentSubtitle$,ut=Pt.disabledControls$,Ot=ke.ui.contextMenu.visible$,So=ke.ui.contextMenu.showContextMenuBtn$,Co=ke.ui.contextMenu.openedByBtnKeyboard$,Ko=ke.ui.startedByKeyboard$,Bn=ke.ui.controlBlocks,O=ke.ui.t,et=ke.ads.duration,Qt=ke.ads.position,Gt=ke.ads.playbackState,gt=ke.ui.isFullscreen,si=ke.ui.playerSize,yi=ke.ui.currentGridType$,_i=ke.ui.additionalDesktopControlPanelRightButtons$,xt=ke.ui.autoplayNextEnabled$,Ei=ke.actions.internal.getVideoElement,lo=ke.actions.internal.replayInteractive,_n=ke.actions.internal.prevVideoClick,bn=ke.actions.internal.nextVideoClick,gi=ke.state.isInteractive,co=ke.state.isInteractiveTime$,fr=ke.state.showInteractiveGraph,uo=ke.state.showSeekToInteractive,io=ke.state.showPlayPrevChapter,Dn=ke.state.showInteractiveTimeIndicator,qo=ke.state.playPrevChapterDisabledTooltip,To=Jt.seekToInteractiveDisabledTooltip$,mr=Jt.graphIsOpened$,Fn=he.features.interactiveResponsiveUi,vr=g(()=>n().has("EPISODE_BUTTON")),ms=g(()=>n().has("GRAPH_BUTTON")),jr=g(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),$n=g(()=>n().has("PLAY_BUTTON")),Hn=g(()=>n().has("REPLAY_BUTTON")),yn=g(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),Qo=()=>ke.actions.internal.toggleChromecast(),Go=g(()=>Je()?s()==="playing":l()===xm.PLAYING),Un=g(()=>d().value!=="off"),gr=g(()=>a()&&!Je()||gi),Yr=g(()=>Fn?r(gr)&&Ji(u(),"m"):r(gr)),po=g(()=>!a()||gi||Je()),Zr=g(()=>Ji(u(),"m")),zn=g(()=>e.showNextPrevButtons&&Ji(u(),"m")&&!Je()&&e.nextButtonActive),xn=g(()=>e.showNextPrevButtons&&Ji(u(),"m")&&!Je()&&e.prevButtonActive),Wn=g(()=>!Je()&&!!f()),hr=g(()=>m()!==X1.NOT_AVAILABLE&&!(p()&&x()===1)&&Ji(u(),"m")&&!gi),Kn=g(()=>e.showAutoplayNext&&!Yt()&&Ji(u(),"s")),go=g(()=>y().length>0&&Ji(u(),"m")),Xr=g(()=>w()||T()),wn=g(()=>Ji(u(),"s")&&!Je()),mt=g(()=>!e.logoHidden&&!Je()),ci=g(()=>he.features.fullscreen&&Se()&&(e.logoHidden||Ji(u(),Fn?"xs":"s"))&&!(p()&&x()===1)&&(gi?Zt():!0)),sn=g(()=>(!f()||Je())&&!(he.features.interactiveHideTime&&gi)),Sn=g(()=>S().width>100),Pr=g(()=>fr&&Ji(u(),"m")),Eo=g(()=>Fn?uo&&Ji(u(),"s"):uo),an=g(()=>Fn?io&&Ji(u(),"s"):io),hi=g(()=>!Je()&&!f()&&!!(nt!=null&&nt.length)&&r(Zr)&&!r(vr)),Ii=g(()=>!E()||!!V()),Io=g(()=>I()?O("tooltip_interactive_graph_on"):O("tooltip_interactive_graph_off")),qn=g(()=>L()?O("tooltip_context_menu_close"):O("tooltip_context_menu_open")),_r=(St,wt)=>St?wt&&wt===xm.PAUSED?O("tooltip_play"):"":O("tooltip_live"),Lr=g(()=>_r(r(Ii),l())),br=g(()=>he.logoType==="vk_video"?O("tooltip_vk_video_logo"):O("tooltip_vk_logo")),Qn=g(()=>r(Un)?O("tooltip_subtitles_on"):O("tooltip_subtitles_off")),Gn=g(()=>B()?O("tooltip_fullscreen_on"):O("tooltip_fullscreen_off")),ko=g(()=>m()===X1.CONNECTED?O("tooltip_chromecast_on"):O("tooltip_chromecast_off")),jn=g(()=>F()?O("tooltip_autoplay_on"):O("tooltip_autoplay_off")),$r=J(0),di=ni({}),ln=ni({}),yr=g(()=>Pt.prevButton),Cn=g(()=>Pt.replayButton),vt=g(()=>Pt.playButton),fi=g(()=>Pt.nextButton),oo=g(()=>Pt.playPrevChapterButton),jo=g(()=>Pt.seekToInteractiveButton),mi=g(()=>Pt.interactiveGraphButton),dn=g(()=>Pt.liveButton),Ni=g(()=>Pt.time),Gi=g(()=>Pt.episodes),ji=g(()=>Pt.vkLogo),Yo=g(()=>Pt.volume),Tn=g(()=>Pt.subtitles),Mr=g(()=>Pt.settings),Zo=g(()=>Pt.context),Vr=g(()=>Pt.fullscreen),cn=g(()=>Pt.chromecast),Ao=g(()=>({prevButton:H()?H().right-H().left:0,replayButton:U()?U().right-U().left:0,playButton:Z()?Z().right-Z().left:0,nextButton:re()?re().right-re().left:0,playPrevChapterButton:G()?G().right-G().left:0,seekToInteractiveButton:be()?be().right-be().left:0,interactiveGraphButton:ie()?ie().right-ie().left:0,liveButton:me()?me().right-me().left:0,time:pe()?pe().right-pe().left:0,episodes:ue()?ue().right-ue().left:0,vkLogo:Le()?Le().right-Le().left:0,volume:Ve()?Ve().right-Ve().left:0,subtitles:ae()?ae().right-ae().left:0,settings:Re()?Re().right-Re().left:0,context:X()?X().right-X().left:0,fullscreen:M()?M().right-M().left:0,chromecast:at()?at().right-at().left:0,additionalButtons:De().length?De().reduce(St=>[...St,40],[]):[]})),Yn=J(0);ze(()=>{(!r(Yn)||r(Yn)<r(Ao).time)&&Et(()=>N(Yn,r(Ao).time,!0))});let Rr=J(!1);ze(()=>{let St=0;r(hi)&&(Ji(u(),"xl")?St=r(Ao).time:St=60);let wt=r(Ao).prevButton+r(Ao).playButton+r(Ao).nextButton+r(Ao).seekToInteractiveButton+r(Ao).interactiveGraphButton+r(Ao).liveButton+r(Yn)+St;N(Rr,r(sn)&&r($r)>=wt,!0)});let Zn=g(()=>r(Rr)&&Ji(u(),"m")),rt=J1(hl,260),Mt=J1(Au,260);ze(()=>{S(),j(),rt(Ei(),Pt,di,e.showControls),Mt(Ei(),Bn,ln,e.showControls)}),ze(()=>{ln.bottom=pt()});let xi=le();ze(()=>{oe(),Oe()&&Et(()=>cl(Oe(),oe(),Qi))});let fo;ze(()=>{Ze(),Et(()=>Iu(Ko,Ze(),fo))});function Li(){Qs({isAudioDisabled:Vt,isAudioAvailable:$e(),isAds:Je(),audioIsNotExistHintCallback:lt,audioDisabledHintCallback:qe})&&Ee()}let Yi=gi?lo:ce,Mi=g(()=>te()!==null),ho=g(()=>r(Mi)?te():r(Go)),En=g(()=>r(ho)?O("tooltip_pause"):O("tooltip_play")),Po=O("tooltip_episodes"),Lo=g(()=>{var St,wt,mo,Xo;return r(xn)?{id:"prevButton",type:"desktop-control-panel-left",weight:Es.prevButton,buttonComponent:Ta,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:_n.bind(null,!0)},tooltipEnabled:!((wt=(St=ke.callbacks)==null?void 0:St.uiInfo)!=null&&wt.onPrevButtonMouseEnter)&&!((Xo=(mo=ke.callbacks)==null?void 0:mo.uiInfo)!=null&&Xo.onPrevButtonMouseLeave),mouseEnter:()=>{var Zi,ui,Hi;(Hi=(ui=(Zi=ke.callbacks)==null?void 0:Zi.uiInfo)==null?void 0:ui.onPrevButtonMouseEnter)==null||Hi.call(ui,On(Ei(),di,"prevButton",e.showControls))},mouseLeave:()=>{var Zi,ui,Hi;(Hi=(ui=(Zi=ke.callbacks)==null?void 0:Zi.uiInfo)==null?void 0:ui.onPrevButtonMouseLeave)==null||Hi.call(ui,On(Ei(),di,"prevButton",e.showControls))},tooltipText:O("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Mo=g(()=>r(Yr)?{id:"replayButton",type:"desktop-control-panel-left",weight:Es.replayButton,buttonComponent:_l,buttonComponentProps:{disabled:r(Hn),click:Yi},tooltipText:O("tooltip_restart"),disabled:r(Hn)}:void 0),Xn=g(()=>r(po)?{id:"playButton",type:"desktop-control-panel-left",weight:Es.playButton,buttonComponent:bl,buttonComponentProps:{disabled:r($n),isPlaying:r(Go),click:ce},tooltipText:r(En),disabled:r($n)}:void 0),In=g(()=>{var St,wt,mo,Xo;return r(zn)?{id:"nextButton",type:"desktop-control-panel-left",weight:Es.nextButton,buttonComponent:Ta,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:bn.bind(null,!0)},tooltipEnabled:!((wt=(St=ke.callbacks)==null?void 0:St.uiInfo)!=null&&wt.onNextButtonMouseEnter)&&!((Xo=(mo=ke.callbacks)==null?void 0:mo.uiInfo)!=null&&Xo.onNextButtonMouseLeave),mouseEnter:()=>{var Zi,ui,Hi;(Hi=(ui=(Zi=ke.callbacks)==null?void 0:Zi.uiInfo)==null?void 0:ui.onNextButtonMouseEnter)==null||Hi.call(ui,On(Ei(),di,"nextButton",e.showControls))},mouseLeave:()=>{var Zi,ui,Hi;(Hi=(ui=(Zi=ke.callbacks)==null?void 0:Zi.uiInfo)==null?void 0:ui.onNextButtonMouseLeave)==null||Hi.call(ui,On(Ei(),di,"nextButton",e.showControls))},tooltipText:O("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),xr=g(()=>gi&&r(an)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Es.playPrevChapterButton,buttonComponent:Rd,buttonComponentProps:{disabled:r(yn),click:e.playPrevChapter},tooltipText:O("tooltip_interactive_go_back"),disabledTooltipContent:O(qo),disabled:r(yn)}:void 0),wr=g(()=>gi&&r(Eo)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Es.seekToInteractiveButton,buttonComponent:Nd,buttonComponentProps:{disabled:r(jr),click:e.seekToInteractive},tooltipText:O("tooltip_interactive_seek"),disabled:r(jr),disabledTooltipContent:O(we())}:void 0),Jn=g(()=>gi&&r(Pr)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Es.interactiveGraphButton,buttonComponent:Bd,buttonComponentProps:{disabled:r(ms),click:mr.toggle,graphIsOpened:I()},tooltipText:r(Io)}:void 0),Or=g(()=>r(Wn)?{id:"liveButton",type:"desktop-control-panel-left",weight:Es.liveButton,buttonComponent:Dd,buttonComponentProps:{isLiveActive:r(Ii),ariaLabel:r(Lr)},tooltipText:r(Lr),disabled:r(Ii)&&l()===xm.PLAYING}:void 0),Jr=g(()=>[r(Lo),r(Mo),r(Xn),r(In),r(xr),r(wr),r(Jn),r(Or)].filter(St=>!!St).sort(_a)),He=g(()=>r(mt)?{id:"vkLogo",type:"desktop-control-panel-right",weight:ks.vkLogo,buttonComponent:Cd,buttonComponentProps:{targetUrl:zt(),logoClickable:e.logoClickable,click:Ue},tooltipText:r(br),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),jt=g(()=>r(Kn)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:ks.autoplayNext,buttonComponent:Od,tooltipText:r(jn)}:void 0),wi=g(()=>({id:"volume",type:"desktop-control-panel-right",weight:ks.volume,buttonComponent:Yf,buttonComponentProps:{click:Li,isAds:Je()}})),un=g(()=>r(go)?{id:"subtitles",type:"desktop-control-panel-right",weight:ks.subtitles,buttonComponent:Kf,buttonComponentProps:{isSubtitlesEnabled:r(Un),click:We},tooltipText:r(Qn)}:void 0),Vo=g(()=>r(wn)?{id:"settings",type:"desktop-control-panel-right",weight:ks.settings,buttonComponent:ml,buttonComponentProps:{ref$:xi},tooltipText:oe()?void 0:O("tooltip_settings_off")}:void 0),Ro=g(()=>he.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:ks.context,buttonComponent:vm,buttonComponentProps:{ariaLabel:O("aria_label_context_menu")},className:r(Xr)?"":"out-of-view",tooltipText:r(qn)}:void 0),Oo=g(()=>r(ci)?{id:"fullscreen",type:"desktop-control-panel-right",weight:ks.fullscreen,buttonComponent:Sd,buttonComponentProps:{isFullscreen:B(),click:e.toggleFullscreen},tooltipText:r(Gn)}:void 0),er=g(()=>r(hr)?{id:"chromecast",type:"desktop-control-panel-right",weight:ks.chromecast,buttonComponent:Td,buttonComponentProps:{state:m(),click:Qo},tooltipText:r(ko)}:void 0),es=g(()=>[r(He),r(jt),r(wi),r(un),r(Vo),r(Ro),r(Oo),r(er),...De()].filter(St=>!!St).sort(_a));var Ps=E4(),Sr=fe(Ps);let ts;var ee=_(Sr);let Ye=g(()=>!e.showControls),Kt=g(()=>!r(Sn));Sa(ee,{get isHidden(){return r(Ye)},get timelineNotAvailable(){return r(Kt)},get isAds(){return Je()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return E()},get ref(){return di.timeline},set ref(St){di.timeline=St}});var vi=k(ee,2),Bi=_(vi),Di=_(Bi);ki(Di,17,()=>r(Jr),St=>St.id,(St,wt)=>{ku(St,{get buttonComponent(){return r(wt).buttonComponent},get buttonComponentProps(){return r(wt).buttonComponentProps},get tooltipText(){return r(wt).tooltipText},get disabledTooltipContent(){return r(wt).disabledTooltipContent},get disabled(){return r(wt).disabled},get className(){return r(wt).className},get tooltipEnabled(){return r(wt).tooltipEnabled},get mouseEnter(){return r(wt).mouseEnter},get mouseLeave(){return r(wt).mouseLeave},get ref(){return di[r(wt).id]},set ref(mo){di[r(wt).id]=mo}})});var Fi=k(Di,2);{var tr=St=>{let wt=g(()=>!e.showControls),mo=g(()=>Je()?Te():Ke()),Xo=g(()=>Je()?it():ht());xd(St,{get isHidden(){return r(wt)},isMobile:!1,get showDuration(){return r(Zn)},get position(){return r(mo)},get duration(){return r(Xo)},get ref(){return di.time},set ref(Zi){di.time=Zi}})};R(Fi,St=>{r(sn)&&St(tr)})}var Ti=k(Fi,2);let Si=g(()=>!r(hi));wo(Ti,{className:"w-max",get disabled(){return r(Si)},get tooltipContent(){return Po},get ref(){return di.episodes},set ref(St){di.episodes=St},children:(St,wt)=>{var mo=Fe(),Xo=fe(mo);{var Zi=ui=>{Id(ui,{get position(){return Ke()},get duration(){return ht()},get timeCodes(){return nt}})};R(Xo,ui=>{r(hi)&&ui(Zi)})}$(St,mo)},$$slots:{default:!0}}),h(Bi);var No=k(Bi,2);ki(No,21,()=>r(es),St=>St.id,(St,wt)=>{var mo=Fe(),Xo=fe(mo);{var Zi=Hi=>{ku(Hi,{get buttonComponent(){return r(wt).buttonComponent},get buttonComponentProps(){return r(wt).buttonComponentProps},get tooltipText(){return r(wt).tooltipText},get disabledTooltipContent(){return r(wt).disabledTooltipContent},get disabled(){return r(wt).disabled},get className(){return r(wt).className},get ref(){return di[r(wt).id]},set ref(Ls){di[r(wt).id]=Ls}})},ui=Hi=>{let Ls=g(()=>!!r(wt).disabled);ym(Hi,{get id(){return r(wt).id},get testId(){return r(wt).testId},get icon(){return r(wt).icon},get ariaLabel(){return r(wt).ariaLabel},get tooltipText(){return r(wt).tooltipText},get disabledTooltipContent(){return r(wt).disabledTooltipContent},get disabled(){return r(Ls)},get onClick(){return r(wt).onClick},get disableMouseupTooltipShow(){return r(wt).disableMouseupTooltipShow},get ref(){return di[r(wt).id]},set ref(Nr){di[r(wt).id]=Nr}})};R(Xo,Hi=>{Z1(r(wt))?Hi(Zi):Hi(ui,!1)})}$(St,mo)}),h(No),h(vi),st(vi,St=>_t(St),()=>_t()),h(Sr),st(Sr,St=>pt(St),()=>pt());var _o=k(Sr,2);{var Cr=St=>{Ld(St,{get ref(){return di.interactiveTimeIndicator},set ref(wt){di.interactiveTimeIndicator=wt}})};R(_o,St=>{Dn&&St(Cr)})}D(St=>ts=se(Sr,1,"wrapper-bottom svelte-1iiubm3",null,ts,St),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),ur(Bi,"clientWidth",St=>N($r,St)),$(t,Ps),W(),o()}import{ChromecastState as t0,PlaybackState as i0}from"@vkontakte/videoplayer-core/es2015";import{noop as e0}from"@vkontakte/videoplayer-shared/es2015";var k4=P('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),A4=P('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),P4={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 Sm(t,e){q(t,P4);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,e0),n=g(()=>o()===e0),s=g(()=>r(n)||i()),l=J(!1),d=()=>{N(l,!0)},a=g(()=>r(n)?"btn-full-opacity":"");Dt(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 m=Fe(),p=fe(m);{var x=w=>{var T=k4();$(w,T)},y=w=>{var T=A4();D(()=>Ne(T,"src",e.iconUrl)),kt("error",T,d),la(T),$(w,T)};R(p,w=>{r(l)?w(x):w(y,!1)})}$(u,m)},$$slots:{default:!0}})}var L4=xe('<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 Cm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=L4();Ie(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img"},i));var n=_(o);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(),h(o),$(t,o)}import{noop as M4}from"@vkontakte/videoplayer-shared/es2015";var V4=P('<div class="container svelte-yslgu" aria-hidden="true"><!></div>'),R4={hash:"svelte-yslgu",code:".container.svelte-yslgu {display:flex;align-items:center;}"};function Pu(t,e){z(e,!0),q(t,R4);let i=v(e,"muted",3,!1),o=v(e,"click",3,M4),n=v(e,"ref",15,void 0),l=Ce().ui.t,d=g(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),a=g(()=>i()?Cm:Gs),u=g(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Dt(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,m)=>{var p=V4();let x=g(()=>r(a));var y=_(p);Ai(y,()=>r(x),(w,T)=>{T(w,{})}),h(p),$(f,p)},$$slots:{default:!0}}),W()}var O4=xe('<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 Tm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=O4();Ie(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img"},i));var n=_(o);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(3),h(o),$(t,o)}var N4={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
256
+ svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function Em(t,e){q(t,N4);let i=v(e,"isActive",3,!1),o=g(()=>i()?"color: #2688EB;":"color: #fff;"),n=g(()=>i()?"pip-icon--active":"pip-icon");Tm(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}import{noop as B4}from"@vkontakte/videoplayer-shared/es2015";function Im(t,e){z(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"isPictureInPictureActive",3,!1),n=v(e,"click",3,B4),s=Q("menu_pip");Dt(t,{testId:"btn-pip",get ariaLabel(){return s},get click(){return n()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{Em(l,{get isActive(){return o()}})},$$slots:{default:!0}}),W()}import{debounceFn as o0}from"@vkontakte/videoplayer-shared/es2015";var D4=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},F4=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},H4=P("<div><!></div>"),U4=P("<div><!></div>"),z4=P("<div><!></div>"),W4=P("<!> <!> <!>",1),K4=P("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),q4=P('<div class="wrapper-middle svelte-tg0ura"><!></div>'),Q4=P("<div><!></div> <!> <div><!></div>",1),G4=P('<div aria-hidden="true">\xB7</div> <!>',1),j4=P('<!> <!> <div><div><div class="controls mobile svelte-tg0ura"><div class="controls-group contain svelte-tg0ura"><!> <!> <!> <!></div> <div class="controls-group svelte-tg0ura"><!> <!> <!></div></div> <!></div></div> <!>',1),Y4={hash:"svelte-tg0ura",code:`.wrapper-bottom.svelte-tg0ura {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px;}.wrapper-bottom.svelte-tg0ura::before {content:'';height:var(--controls-gradient-height);background:var(--controls-gradient);position:absolute;width:100%;}.wrapper-bottom.svelte-tg0ura > :where(.svelte-tg0ura) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-tg0ura {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-tg0ura {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;z-index:var(--controls-container-z-index);}.wrapper-top-right.svelte-tg0ura {position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex;z-index:var(--controls-container-z-index);}.wrapper-top-left.svelte-tg0ura {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-tg0ura,
257
+ .wrapper-middle-left-second.svelte-tg0ura,
258
+ .wrapper-middle-right.svelte-tg0ura {position:absolute;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.wrapper-middle-left.svelte-tg0ura {left:12px;}.wrapper-middle-left-second.svelte-tg0ura {left:64px;}.wrapper-middle-right.svelte-tg0ura {right:12px;}.controls.svelte-tg0ura {width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box;justify-content:space-between;}.controls-group.svelte-tg0ura {display:flex;}.controls-group.contain.svelte-tg0ura {min-width:0;}.controls-group.svelte-tg0ura > *:not(:first-child) {margin-left:8px;}.hidden.svelte-tg0ura {visibility:hidden;opacity:0;}.controls-hidden.svelte-tg0ura {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-tg0ura {transition:none;}.overlay-mobile.svelte-tg0ura {position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.3);pointer-events:none;transition:opacity var(--controls-transition-duration);}
254
259
 
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);}
260
+ @media screen and (orientation: portrait) {.wrapper-top-right.fullscreen.svelte-tg0ura {top:16px;}.wrapper-top-left.fullscreen.svelte-tg0ura {top:16px;}.controls-wrapper.fullscreen.svelte-tg0ura {position:absolute;bottom:30px;width:calc(100% - 8px);}
256
261
  }
257
262
 
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 bm(t,e){var $r,Zr;F(e,!0),q(t,N4);let[i,o]=Ue(),n=()=>C(tn,"$seekToInteractiveDisabledTooltip$",i),s=()=>C(xi,"$disabledControls$",i),l=()=>C(Ht,"$playbackState$",i),d=()=>C(en,"$adPlaybackState",i),a=()=>C(ce,"$isEnded$",i),u=()=>C(we,"$playerSize",i),f=()=>C(Xe,"$scrubbingInProgress",i),v=()=>C(At,"$chromecastState$",i),p=()=>C(Kt,"$isPictureInPictureActive",i),x=()=>C(tt,"$pictureInPictureType$",i),w=()=>C(Pt,"$mobileNotReportControlHidden$",i),y=()=>C(go,"$chromecastHidden",i),S=()=>C(jt,"$playerPhase",i),T=()=>C(Ao,"$pipHidden",i),E=()=>C(Qi,"$currentGridType$",i),V=()=>C(ni,"$vkLogoHidden",i),k=()=>C(qt,"$volumeHidden",i),I=()=>C(Be,"$isLive$",i),R=()=>C(bi,"$settingsMenuVisible",i),X=()=>C(He,"$isRewindableLive$",i),D=()=>C(je,"$isActiveLive$",i),H=()=>C(Se,"$isAudioAvailable$",i),W=()=>C(Re,"$muted$",i),ee=()=>C(ze,"$volume$",i),j=()=>C(pi,"$isInteractiveTime$",i),ue=()=>C(dn,"$settingButtonRef$",i),oe=()=>C(ho,"$startedByKeyboard$",i),pe=()=>C(Q,"$isFullscreen",i),$e=()=>C(ft,"$additionalButtons$",i),me=()=>C(ri,"$autoplayNextToggleHidden",i),Ae=()=>C(pt,"$crashed$",i),re=()=>C(Mo,"$settingsHidden",i),Ne=()=>C(on,"$graphIsOpened$",i),se=()=>C(Ko,"$adPosition",i),N=()=>C(di,"$adDuration",i),De=()=>C(ne,"$position$",i),le=()=>C(Wt,"$duration$",i),ge=m(e,"playerControlsWrapperRef",15,void 0),ie=m(e,"playerControlsRef",15,void 0),ve=m(e,"isAds",3,!1),Fe=m(e,"logoTargetUrl",3,""),fe=m(e,"isOneVideoPlaylist",3,!1),st=m(e,"customFullscreenSupported",3,!0),Z=ke(),Le=vo(),Pe=kt(),Ke=Z.actions.internal.toggleMuted,lt=Z.actions.internal.togglePlay,mt=Z.actions.internal.pause,vt=Z.actions.internal.prevVideoClick,Ct=Z.actions.internal.nextVideoClick,Ye=Z.actions.internal.checkFullscreenSupport,Ut=($r=Z.callbacks)==null?void 0:$r.onAudioDoesNotExistHint,ti=(Zr=Z.callbacks)==null?void 0:Zr.onAudioDisabledHint,jt=Z.playerPhase,Wt=Z.state.duration$,ne=Z.state.positionWithScrubbing$,Ht=Z.state.playbackState$,Se=Z.state.isAudioAvailable$,_e=Z.state.isAudioDisabled,ce=Z.state.isEnded$,Be=Z.state.isLive$,ze=Z.state.volume$,Re=Z.state.muted$,je=Z.state.isActiveLive$,He=Z.state.isRewindableLive$,Xe=Z.ui.scrubbingInProgress,Pt=Z.ui.mobileNotReportControlHidden$,{isActive$:Kt,type$:tt}=Le.pictureInPicture$,bi=Z.ui.settingsMenu.visible$,Ti=Z.ui.settingsMenu.openedByBtnKeyboard$,dt=Z.ui.controls,{volume:qt,vkLogo:ni,autoplayNextToggle:ri,pip:Ao,settings:Mo,chromecast:go}=Z.ui.hiddenControls,zt=Z.actions.internal.getVideoEpisodes(),ui=Z.webApi.pictureInPictureApi,At=Z.state.chromecastState$,pt=Z.state.crashed$,xi=dt.disabledControls$,ho=Z.ui.startedByKeyboard$,Qi=Z.ui.currentGridType$,di=Z.ads.duration,Ko=Z.ads.position,en=Z.ads.playbackState,Q=Z.ui.isFullscreen,we=Z.ui.playerSize,ft=Z.ui.additionalButtonsDeprecated$,Ft=Z.actions.internal.getVideoElement,_t=Z.actions.internal.replayInteractive,Yt=Z.state.isInteractive,pi=Z.state.isInteractiveTime$,_o=Z.state.showInteractiveGraph,fi=Z.state.showSeekToInteractive,Tt=Z.state.showPlayPrevChapter,$i=Z.state.showInteractiveTimeIndicator,tn=Le.seekToInteractiveDisabledTooltip$,on=Le.graphIsOpened$,Rn=Z.ui.controlBlocks,mi=g(()=>K(Z.state.playPrevChapterDisabledTooltip)),Lo=g(()=>K(n())),Nn=g(()=>s().has("EPISODE_BUTTON")),ar=g(()=>s().has("GRAPH_BUTTON")),Ei=g(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),On=g(()=>s().has("PLAY_BUTTON")),Di=g(()=>s().has("REPLAY_BUTTON")),bo=g(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),lr=g(()=>l()===F1.PLAYING),nn=g(()=>d()==="paused"),Bn=g(()=>a()&&!ve()&&!Yt),dr=g(()=>!a()||ve()),Ir=g(()=>e.showNextPrevButtons&&!ve()&&e.prevButtonActive),kr=g(()=>e.showNextPrevButtons&&!ve()&&e.nextButtonActive),cr=g(()=>u().width>300),ur=g(()=>u().width>400),qo=g(f),Pr=g(()=>v()!==H1.NOT_AVAILABLE&&!(p()&&x()===1)&&!w()&&!Yt&&!y()),Ri=g(()=>S()==="LiveWaitingStart"),Dn=g(()=>!!ui&&v()!==H1.CONNECTED&&!w()&&(x()===1&&r(Ri)||!r(Ri))&&!r(qo)&&!Yt&&!T()),wn=Y(!1);Lt(()=>{let it=ui==null?void 0:ui.info.isActive$.subscribe(Et=>O(wn,Et,!0));return()=>it==null?void 0:it.unsubscribe()});let pr=g(()=>!r(qo)&&to(E(),"s")),fr=g(()=>!e.logoHidden&&u().width>350&&!V()),mr=g(()=>Pe.features.fullscreen&&Ye()&&!(p()&&x()===1)&&(Yt?st():!0)&&!r(qo)&&!r(wn)),Hn=g(()=>!k()&&!r(qo)),vr=g(()=>(!I()||ve())&&u().width>260&&!r(qo)&&!(Pe.features.interactiveHideTime&&Yt)),Fn=g(()=>R()||e.showControls),gr=g(()=>!ve()&&!I()&&!!(zt!=null&&zt.length)&&r(cr)&&!r(Nn)&&!r(qo)),hr=g(()=>!X()||!!D()),Vo=g(()=>_o&&to(E(),"m")),_r=g(()=>!H()||W()||ee()===0),ut=oi({}),si=oi({}),rn=U1(_l,260),Ii=U1(wu,260);Qe(()=>{u(),j(),rn(Ft(),dt,ut,e.showControls),Ii(Ft(),Rn,si,e.showControls)});let Gi=()=>Z.actions.internal.toggleChromecast();function sn(){return xt(this,null,function*(){ui!=null&&ui.isActive()?yield ui==null?void 0:ui.exit():yield ui==null?void 0:ui.request()})}function $o(){zs({isAudioDisabled:_e,audioDisabledHintCallback:ti,isAudioAvailable:H(),audioIsNotExistHintCallback:Ut,isAds:ve()})&&Ke()}let an=Y(""),ln=(it,Et)=>{if(!it){O(an,K("tooltip_live"),!0);return}Et&&Et===F1.PAUSED&&O(an,K("tooltip_play"),!0)};Qe(()=>{ln(r(hr),l())});let dn=ae();Qe(()=>{ue()&&ul(ue(),R(),Ti)}),Qe(()=>{yu(ho,oe(),ut.playButton)});var cn=R4(),qr=he(cn);{var Qr=it=>{var Et=A4(),vi=he(Et);let no;var fo=P(vi,2);let wo;ot(fo,Je=>si.topLeft=Je,()=>si==null?void 0:si.topLeft);var Zi=P(fo,2);let Qo;var un=_(Zi);Mi(un,1,$e,({iconUrl:Je,ariaLabel:Qt,testId:Fi,onClick:No,tooltip:mn})=>Je,(Je,Qt)=>{let Fi=()=>r(Qt).iconUrl,No=()=>r(Qt).ariaLabel,mn=()=>r(Qt).testId,Yn=()=>r(Qt).onClick,yr=()=>r(Qt).tooltip,Rr=g(()=>{var Ji;return(Ji=No())!=null?Ji:yr()});mm(Je,{get iconUrl(){return Fi()},get ariaLabel(){return r(Rr)},get testId(){return mn()},get onClick(){return Yn()}})});var Sn=P(un,2);{var Hi=Je=>{Md(Je,{get ref(){return ut.autoplayNextToggle},set ref(Qt){ut.autoplayNextToggle=Qt}})};L(Sn,Je=>{e.showAutoplayNext&&!fe()&&!me()&&Je(Hi)})}var Ro=P(Sn,2);{var Gn=Je=>{wd(Je,{isMobile:!0,click:Gi,get state(){return v()},get ref(){return ut.chromecast},set ref(Qt){ut.chromecast=Qt}})};L(Ro,Je=>{r(Pr)&&Je(Gn)})}var jn=P(Ro,2);{var pn=Je=>{_m(Je,{click:sn,get isPictureInPictureActive(){return p()},get ref(){return ut.pip},set ref(Qt){ut.pip=Qt}})};L(jn,Je=>{r(Dn)&&Je(pn)})}var Vr=P(jn,2);{var fn=Je=>{vl(Je,{get ref$(){return dn}})};L(Vr,Je=>{Ae()&&!re()&&Je(fn)})}var Xr=P(Vr,2);{var So=Je=>{xd(Je,{get click(){return mt},get targetUrl(){return Fe()},get logoClickable(){return e.logoClickable},get ref(){return ut.vkLogo},set ref(Qt){ut.vkLogo=Qt}})};L(Xr,Je=>{r(fr)&&Je(So)})}h(Zi),ot(Zi,Je=>si.topRight=Je,()=>si==null?void 0:si.topRight);var Cn=P(Zi,2);let Ze;var Xt=_(Cn);{var Ai=Je=>{let Qt=g(()=>vt.bind(null,!0));Ta(Je,{get click(){return r(Qt)},type:"prev",isMobile:!0,get ref(){return ut.prevButton},set ref(Fi){ut.prevButton=Fi}})};L(Xt,Je=>{r(Ir)&&Je(Ai)})}var Co=P(Xt,2);{var To=Je=>{$l(Je,{get disabled(){return r(On)},get click(){return lt},isMobile:!0,get isPlaying(){return r(lr)},get ref(){return ut.playButton},set ref(Qt){ut.playButton=Qt}})};L(Co,Je=>{r(dr)&&Je(To)})}var Ce=P(Co,2);{var bt=Je=>{bl(Je,{get disabled(){return r(Di)},get click(){return lt},isMobile:!0,get ref(){return ut.replayButton},set ref(Qt){ut.replayButton=Qt}})};L(Ce,Je=>{r(Bn)&&Je(bt)})}var li=P(Ce,2);{var Pi=Je=>{let Qt=g(()=>Ct.bind(null,!0));Ta(Je,{get click(){return r(Qt)},type:"next",isMobile:!0,get ref(){return ut.nextButton},set ref(Fi){ut.nextButton=Fi}})};L(li,Je=>{r(kr)&&Je(Pi)})}h(Cn),ot(Cn,Je=>si.middle=Je,()=>si==null?void 0:si.middle);var Xi=P(Cn,2);{var ro=Je=>{var Qt=P4(),Fi=he(Qt);{var No=Ji=>{var gi=E4();let vn;gi.__click=[C4,bo,e,mi];var xr=_(gi);let Oo=g(()=>!e.showControls);Ad(xr,{get hidden(){return r(Oo)},get disabled(){return r(bo)},get click(){return e.playPrevChapter},get ref(){return ut.playPrevChapterButton},set ref(mo){ut.playPrevChapterButton=mo}}),h(gi),B(mo=>vn=te(gi,1,"wrapper-middle-left svelte-68kopu",null,vn,mo),[()=>({fullscreen:pe(),hidden:!e.showControls})]),$(Ji,gi)};L(Fi,Ji=>{Tt&&Ji(No)})}var mn=P(Fi,2);{var Yn=Ji=>{var gi=I4();let vn;var xr=_(gi);let Oo=g(()=>!e.showControls&&!Ne());Vd(xr,{get hidden(){return r(Oo)},get disabled(){return r(ar)},get click(){return on.toggle},get graphIsOpened(){return Ne()},get ref(){return ut.interactiveGraphButton},set ref(mo){ut.interactiveGraphButton=mo}}),h(gi),B(mo=>vn=te(gi,1,Ql(Tt?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-68kopu",vn,mo),[()=>({fullscreen:pe(),hidden:!e.showControls&&!Ne()})]),$(Ji,gi)};L(mn,Ji=>{r(Vo)&&Ji(Yn)})}var yr=P(mn,2);{var Rr=Ji=>{var gi=k4();let vn;gi.__click=[T4,Ei,e,Lo];var xr=_(gi);let Oo=g(()=>!e.showControls);Ld(xr,{get hidden(){return r(Oo)},get disabled(){return r(Ei)},get click(){return e.seekToInteractive},get ref(){return ut.seekToInteractiveButton},set ref(mo){ut.seekToInteractiveButton=mo}}),h(gi),B(mo=>vn=te(gi,1,"wrapper-middle-right svelte-68kopu",null,vn,mo),[()=>({fullscreen:pe(),hidden:!e.showControls})]),$(Ji,gi)};L(yr,Ji=>{fi&&Ji(Rr)})}$(Je,Qt)};L(Xi,Je=>{Yt&&!f()&&Je(ro)})}B((Je,Qt,Fi,No)=>{no=te(vi,1,"overlay-mobile svelte-68kopu",null,no,Je),wo=te(fo,1,"wrapper-top-left svelte-68kopu",null,wo,Qt),Qo=te(Zi,1,"wrapper-top-right svelte-68kopu",null,Qo,Fi),Ze=te(Cn,1,"wrapper-middle svelte-68kopu",null,Ze,No)},[()=>({hidden:!r(Fn)}),()=>({hidden:!e.showControls,fullscreen:pe()}),()=>({hidden:!e.showControls&&!w(),fullscreen:pe()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),$(it,Et)};L(qr,it=>{ve()||it(Qr)})}var Ar=P(qr,2);{var Gr=it=>{var Et=L4(),vi=he(Et);let no;var fo=_(vi);Su(fo,{get muted(){return W()},click:$o,get ref(){return ut.volume},set ref(Hi){ut.volume=Hi}}),h(vi);var wo=P(vi,2);{var Zi=Hi=>{var Ro=M4(),Gn=_(Ro);let jn=g(()=>!r(nn));$l(Gn,{get disabled(){return r(On)},get click(){return lt},isMobile:!0,get isPlaying(){return r(jn)},get ref(){return ut.playButton},set ref(pn){ut.playButton=pn}}),h(Ro),$(Hi,Ro)};L(wo,Hi=>{r(nn)&&Hi(Zi)})}var Qo=P(wo,2);let un;var Sn=_(Qo);Sd(Sn,{get position(){return se()},get duration(){return N()}}),h(Qo),B((Hi,Ro)=>{no=te(vi,1,"wrapper-top-right svelte-68kopu",null,no,Hi),un=te(Qo,1,"wrapper-bottom ads-timeline-mobile svelte-68kopu",null,un,Ro)},[()=>({fullscreen:pe()}),()=>({fullscreen:pe()})]),$(it,Et)};L(Ar,it=>{ve()&&d()!=="inactive"&&it(Gr)})}var Un=P(Ar,2);let br;var yo=_(Un);let zn;var Zt=_(yo);te(Zt,1,"controls svelte-68kopu",null,{},{mobile:!0});var uo=_(Zt),jr=_(uo);{var Yr=it=>{Po(it,{get disabled(){return r(Di)},get ref(){return ut.replayButton},set ref(Et){ut.replayButton=Et},children:(Et,vi)=>{bl(Et,{get disabled(){return r(Di)},get click(){return _t}})},$$slots:{default:!0}})};L(jr,it=>{Yt&&it(Yr)})}var Mr=P(jr,2);{var at=it=>{Po(it,{get ref(){return ut.liveButton},set ref(Et){ut.liveButton=Et},children:(Et,vi)=>{Rd(Et,{get isLiveActive(){return r(hr)},isMobile:!0,get ariaLabel(){return r(an)}})},$$slots:{default:!0}})};L(Mr,it=>{!ve()&&I()&&it(at)})}var ai=P(Mr,2);{var ki=it=>{let Et=g(()=>ve()?se():De()),vi=g(()=>ve()?N():le()),no=g(()=>!e.showControls);bd(it,{get showDuration(){return r(ur)},get position(){return r(Et)},get duration(){return r(vi)},isMobile:!0,get isHidden(){return r(no)},get ref(){return ut.time},set ref(fo){ut.time=fo}})};L(ai,it=>{r(vr)&&it(ki)})}var po=P(ai,2);let ji=g(()=>!r(gr));Po(po,{className:"w-max",get disabled(){return r(ji)},get ref(){return ut.episodes},set ref(it){ut.episodes=it},children:(it,Et)=>{var vi=qe(),no=he(vi);{var fo=wo=>{var Zi=V4(),Qo=P(he(Zi),2);Cd(Qo,{get position(){return De()},get duration(){return le()},get timeCodes(){return zt}}),$(wo,Zi)};L(no,wo=>{r(gr)&&wo(fo)})}$(it,vi)},$$slots:{default:!0}}),h(uo),ot(uo,it=>si.bottomRight=it,()=>si==null?void 0:si.bottomRight);var xo=P(uo,2),Yi=_(xo);{var Wn=it=>{Po(it,{get ref(){return ut.volume},set ref(Et){ut.volume=Et},children:(Et,vi)=>{Su(Et,{get muted(){return r(_r)},click:$o})},$$slots:{default:!0}})};L(Yi,it=>{r(Hn)&&it(Wn)})}var wi=P(Yi,2);{var Kn=it=>{Po(it,{get ref(){return ut.settings},set ref(Et){ut.settings=Et},children:(Et,vi)=>{vl(Et,{get ref$(){return dn}})},$$slots:{default:!0}})};L(wi,it=>{r(pr)&&it(Kn)})}var qn=P(wi,2);{var cs=it=>{Po(it,{get ref(){return ut.fullscreen},set ref(Et){ut.fullscreen=Et},children:(Et,vi)=>{yd(Et,{get click(){return e.toggleFullscreen},get isFullscreen(){return pe()}})},$$slots:{default:!0}})};L(qn,it=>{r(mr)&&it(cs)})}h(xo),ot(xo,it=>si.bottomRight=it,()=>si==null?void 0:si.bottomRight),h(Zt),ot(Zt,it=>ie(it),()=>ie());var Lr=P(Zt,2);let us=g(()=>!e.showControls);Sa(Lr,{get isHidden(){return r(us)},get isAds(){return ve()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return X()},get ref(){return ut.timeline},set ref(it){ut.timeline=it}}),h(yo),h(Un),ot(Un,it=>ge(it),()=>ge());var oo=P(Un,2);{var Qn=it=>{kd(it,{get ref(){return ut.interactiveTimeIndicator},set ref(Et){ut.interactiveTimeIndicator=Et}})};L(oo,it=>{$i&&it(Qn)})}B((it,Et)=>{br=te(Un,1,"wrapper-bottom svelte-68kopu",null,br,it),zn=te(yo,1,"controls-wrapper svelte-68kopu",null,zn,Et)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:pe()})]),$(t,cn),U(),o()}ct(["click"]);function Nd(t,e){F(e,!0);let[i,o]=Ue(),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),x=m(e,"endScreenShown",3,!1),w=m(e,"onDisabledPlayPrevChapterClick",3,z1),y=m(e,"onDisabledSeekToInteractiveClick",3,z1),T=ke().ui.isMobile,E=Y(!1);Lt(()=>{let R=setTimeout(()=>O(E,!0),0);return()=>clearTimeout(R)});var V=qe(),k=he(V);{var I=R=>{var X=qe(),D=he(X);{var H=ee=>{bm(ee,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return v()},get customFullscreenSupported(){return p()},get endScreenShown(){return x()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return y()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(j){l(j)},get playerControlsRef(){return d()},set playerControlsRef(j){d(j)}})},W=ee=>{fm(ee,{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,ee=>{n()?ee(H):ee(W,!1)})}$(R,X)};L(k,R=>{r(E)&&R(I)})}$(t,V),U(),o()}var O4=Ie('<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 $m(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=O4();Me(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);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ee(2),h(o),$(t,o)}function ym(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);$m(t,{get style(){return r(o)}})}var B4=Ie('<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 xm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=B4();Me(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);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ee(2),h(o),$(t,o)}var D4=Ie('<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 wm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=D4();Me(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);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ee(2),h(o),$(t,o)}function Cu(t,e){let i=m(e,"isOff",3,!1);var o=qe(),n=he(o);{var s=d=>{wm(d,{})},l=d=>{xm(d,{})};L(n,d=>{i()?d(s):d(l,!1)})}$(t,o)}var H4=Ie('<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 Sm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=H4();Me(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);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ee(2),h(o),$(t,o)}function Cm(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);Sm(t,{get style(){return r(o)}})}var F4=Ie('<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 Tm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=F4();Me(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);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ee(2),h(o),$(t,o)}function Em(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);Tm(t,{get style(){return r(o)}})}var U4=M('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),z4=M('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),W4=M("<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;
263
+ @media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-tg0ura {top:12px;left:44px;}.wrapper-top-right.fullscreen.svelte-tg0ura {top:12px;right:44px;}.wrapper-middle-left.fullscreen.svelte-tg0ura {left:44px;}.wrapper-middle-left-second.fullscreen.svelte-tg0ura {left:96px;}.wrapper-middle-right.fullscreen.svelte-tg0ura {right:44px;}.controls-wrapper.fullscreen.svelte-tg0ura {position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px);}
264
+ }`};function km(t,e){var Rr,Zn;z(e,!0),q(t,Y4);let[i,o]=Be(),n=()=>C(lo,"$seekToInteractiveDisabledTooltip$",i),s=()=>C(Ct,"$disabledControls$",i),l=()=>C(Jt,"$playbackState$",i),d=()=>C(Ko,"$adPlaybackState",i),a=()=>C(ce,"$isEnded$",i),u=()=>C(O,"$playerSize",i),f=()=>C(bt,"$scrubbingInProgress",i),m=()=>C(ei,"$chromecastState$",i),p=()=>C(je,"$isPictureInPictureActive",i),x=()=>C(tt,"$pictureInPictureType$",i),y=()=>C(Qe,"$mobileNotReportControlHidden$",i),w=()=>C(Qi,"$chromecastHidden",i),T=()=>C(Zt,"$playerPhase",i),S=()=>C(oi,"$pipHidden",i),E=()=>C(Ot,"$currentGridType$",i),V=()=>C(qi,"$vkLogoHidden",i),I=()=>C(li,"$volumeHidden",i),L=()=>C(Ue,"$isLive$",i),B=()=>C(Vt,"$settingsMenuVisible",i),F=()=>C(qe,"$isRewindableLive$",i),H=()=>C(lt,"$isActiveLive$",i),U=()=>C(he,"$isAudioAvailable$",i),Z=()=>C(Se,"$muted$",i),re=()=>C(We,"$volume$",i),G=()=>C(si,"$isInteractiveTime$",i),be=()=>C(Io,"$settingButtonRef$",i),ie=()=>C(ut,"$startedByKeyboard$",i),me=()=>C(Bn,"$isFullscreen",i),pe=()=>C(et,"$additionalButtons$",i),ue=()=>C(ao,"$autoplayNextToggleHidden",i),Le=()=>C(to,"$crashed$",i),Ve=()=>C(ft,"$settingsHidden",i),ae=()=>C(_n,"$graphIsOpened$",i),Re=()=>C(Co,"$adPosition",i),X=()=>C(So,"$adDuration",i),M=()=>C(ke,"$position$",i),at=()=>C(Xt,"$duration$",i),De=v(e,"playerControlsWrapperRef",15,void 0),j=v(e,"playerControlsRef",15,void 0),oe=v(e,"isAds",3,!1),Oe=v(e,"logoTargetUrl",3,""),Ze=v(e,"isOneVideoPlaylist",3,!1),$e=v(e,"customFullscreenSupported",3,!0),te=Ce(),we=vo(),Te=At(),Ke=te.actions.internal.toggleMuted,it=te.actions.internal.togglePlay,ht=te.actions.internal.pause,pt=te.actions.internal.prevVideoClick,_t=te.actions.internal.nextVideoClick,Je=te.actions.internal.checkFullscreenSupport,zt=(Rr=te.callbacks)==null?void 0:Rr.onAudioDoesNotExistHint,Yt=(Zn=te.callbacks)==null?void 0:Zn.onAudioDisabledHint,Zt=te.playerPhase,Xt=te.state.duration$,ke=te.state.positionWithScrubbing$,Jt=te.state.playbackState$,he=te.state.isAudioAvailable$,Ee=te.state.isAudioDisabled,ce=te.state.isEnded$,Ue=te.state.isLive$,We=te.state.volume$,Se=te.state.muted$,lt=te.state.isActiveLive$,qe=te.state.isRewindableLive$,bt=te.ui.scrubbingInProgress,Qe=te.ui.mobileNotReportControlHidden$,{isActive$:je,type$:tt}=we.pictureInPicture$,Vt=te.ui.settingsMenu.visible$,Wt=te.ui.settingsMenu.openedByBtnKeyboard$,ai=te.ui.controls,{volume:li,vkLogo:qi,autoplayNextToggle:ao,pip:oi,settings:ft,chromecast:Qi}=te.ui.hiddenControls,Pt=te.actions.internal.getVideoEpisodes(),nt=te.webApi.pictureInPictureApi,ei=te.state.chromecastState$,to=te.state.crashed$,Ct=ai.disabledControls$,ut=te.ui.startedByKeyboard$,Ot=te.ui.currentGridType$,So=te.ads.duration,Co=te.ads.position,Ko=te.ads.playbackState,Bn=te.ui.isFullscreen,O=te.ui.playerSize,et=te.ui.additionalButtonsDeprecated$,Qt=te.actions.internal.getVideoElement,Gt=te.actions.internal.replayInteractive,gt=te.state.isInteractive,si=te.state.isInteractiveTime$,yi=te.state.showInteractiveGraph,_i=te.state.showSeekToInteractive,xt=te.state.showPlayPrevChapter,Ei=te.state.showInteractiveTimeIndicator,lo=we.seekToInteractiveDisabledTooltip$,_n=we.graphIsOpened$,bn=te.ui.controlBlocks,gi=g(()=>Q(te.state.playPrevChapterDisabledTooltip)),co=g(()=>Q(n())),fr=g(()=>s().has("EPISODE_BUTTON")),uo=g(()=>s().has("GRAPH_BUTTON")),io=g(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),Dn=g(()=>s().has("PLAY_BUTTON")),qo=g(()=>s().has("REPLAY_BUTTON")),To=g(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),mr=g(()=>l()===i0.PLAYING),Fn=g(()=>d()==="paused"),vr=g(()=>a()&&!oe()&&!gt),ms=g(()=>!a()||oe()),jr=g(()=>e.showNextPrevButtons&&!oe()&&e.prevButtonActive),$n=g(()=>e.showNextPrevButtons&&!oe()&&e.nextButtonActive),Hn=g(()=>u().width>300),yn=g(()=>u().width>400),Qo=g(f),Go=g(()=>m()!==t0.NOT_AVAILABLE&&!(p()&&x()===1)&&!y()&&!gt&&!w()),Un=g(()=>T()==="LiveWaitingStart"),gr=g(()=>!!nt&&m()!==t0.CONNECTED&&!y()&&(x()===1&&r(Un)||!r(Un))&&!r(Qo)&&!gt&&!S()),Yr=J(!1);Rt(()=>{let rt=nt==null?void 0:nt.info.isActive$.subscribe(Mt=>N(Yr,Mt,!0));return()=>rt==null?void 0:rt.unsubscribe()});let po=g(()=>!r(Qo)&&Ji(E(),"s")),Zr=g(()=>!e.logoHidden&&u().width>350&&!V()),zn=g(()=>Te.features.fullscreen&&Je()&&!(p()&&x()===1)&&(gt?$e():!0)&&!r(Qo)&&!r(Yr)),xn=g(()=>!I()&&!r(Qo)),Wn=g(()=>(!L()||oe())&&u().width>260&&!r(Qo)&&!(Te.features.interactiveHideTime&&gt)),hr=g(()=>B()||e.showControls),Kn=g(()=>!oe()&&!L()&&!!(Pt!=null&&Pt.length)&&r(Hn)&&!r(fr)&&!r(Qo)),go=g(()=>!F()||!!H()),Xr=g(()=>yi&&Ji(E(),"m")),wn=g(()=>!U()||Z()||re()===0),mt=ni({}),ci=ni({}),sn=o0(hl,260),Sn=o0(Au,260);ze(()=>{u(),G(),sn(Qt(),ai,mt,e.showControls),Sn(Qt(),bn,ci,e.showControls)});let Pr=()=>te.actions.internal.toggleChromecast();function Eo(){return Tt(this,null,function*(){nt!=null&&nt.isActive()?yield nt==null?void 0:nt.exit():yield nt==null?void 0:nt.request()})}function an(){Qs({isAudioDisabled:Ee,audioDisabledHintCallback:Yt,isAudioAvailable:U(),audioIsNotExistHintCallback:zt,isAds:oe()})&&Ke()}let hi=J(""),Ii=(rt,Mt)=>{if(!rt){N(hi,Q("tooltip_live"),!0);return}Mt&&Mt===i0.PAUSED&&N(hi,Q("tooltip_play"),!0)};ze(()=>{Ii(r(go),l())});let Io=le();ze(()=>{be()&&cl(be(),B(),Wt)}),ze(()=>{Iu(ut,ie(),mt.playButton)}),ze(()=>{ci.bottom=De()});var qn=j4(),_r=fe(qn);{var Lr=rt=>{var Mt=K4(),xi=fe(Mt);let fo;var Li=k(xi,2);let Yi;st(Li,ee=>ci.topLeft=ee,()=>ci==null?void 0:ci.topLeft);var Mi=k(Li,2);let ho;var En=_(Mi);ki(En,1,pe,({iconUrl:ee,ariaLabel:Ye,testId:Kt,onClick:vi,tooltip:Bi})=>ee,(ee,Ye)=>{let Kt=()=>r(Ye).iconUrl,vi=()=>r(Ye).ariaLabel,Bi=()=>r(Ye).testId,Di=()=>r(Ye).onClick,Fi=()=>r(Ye).tooltip,tr=g(()=>{var Ti;return(Ti=vi())!=null?Ti:Fi()});Sm(ee,{get iconUrl(){return Kt()},get ariaLabel(){return r(tr)},get testId(){return Bi()},get onClick(){return Di()}})});var Po=k(En,2);{var Lo=ee=>{Od(ee,{get ref(){return mt.autoplayNextToggle},set ref(Ye){mt.autoplayNextToggle=Ye}})};R(Po,ee=>{e.showAutoplayNext&&!Ze()&&!ue()&&ee(Lo)})}var Mo=k(Po,2);{var Xn=ee=>{Td(ee,{isMobile:!0,click:Pr,get state(){return m()},get ref(){return mt.chromecast},set ref(Ye){mt.chromecast=Ye}})};R(Mo,ee=>{r(Go)&&ee(Xn)})}var In=k(Mo,2);{var xr=ee=>{Im(ee,{click:Eo,get isPictureInPictureActive(){return p()},get ref(){return mt.pip},set ref(Ye){mt.pip=Ye}})};R(In,ee=>{r(gr)&&ee(xr)})}var wr=k(In,2);{var Jn=ee=>{ml(ee,{get ref$(){return Io}})};R(wr,ee=>{Le()&&!Ve()&&ee(Jn)})}var Or=k(wr,2);{var Jr=ee=>{Cd(ee,{get click(){return ht},get targetUrl(){return Oe()},get logoClickable(){return e.logoClickable},get ref(){return mt.vkLogo},set ref(Ye){mt.vkLogo=Ye}})};R(Or,ee=>{r(Zr)&&ee(Jr)})}h(Mi),st(Mi,ee=>ci.topRight=ee,()=>ci==null?void 0:ci.topRight);var He=k(Mi,2);let jt;var wi=_(He);{var un=ee=>{let Ye=g(()=>pt.bind(null,!0));Ta(ee,{get click(){return r(Ye)},type:"prev",isMobile:!0,get ref(){return mt.prevButton},set ref(Kt){mt.prevButton=Kt}})};R(wi,ee=>{r(jr)&&ee(un)})}var Vo=k(wi,2);{var Ro=ee=>{bl(ee,{get disabled(){return r(Dn)},get click(){return it},isMobile:!0,get isPlaying(){return r(mr)},get ref(){return mt.playButton},set ref(Ye){mt.playButton=Ye}})};R(Vo,ee=>{r(ms)&&ee(Ro)})}var Oo=k(Vo,2);{var er=ee=>{_l(ee,{get disabled(){return r(qo)},get click(){return it},isMobile:!0,get ref(){return mt.replayButton},set ref(Ye){mt.replayButton=Ye}})};R(Oo,ee=>{r(vr)&&ee(er)})}var es=k(Oo,2);{var Ps=ee=>{let Ye=g(()=>_t.bind(null,!0));Ta(ee,{get click(){return r(Ye)},type:"next",isMobile:!0,get ref(){return mt.nextButton},set ref(Kt){mt.nextButton=Kt}})};R(es,ee=>{r($n)&&ee(Ps)})}h(He),st(He,ee=>ci.middle=ee,()=>ci==null?void 0:ci.middle);var Sr=k(He,2);{var ts=ee=>{var Ye=W4(),Kt=fe(Ye);{var vi=Ti=>{var Si=H4();let No;Si.__click=[D4,To,e,gi];var _o=_(Si);let Cr=g(()=>!e.showControls);Rd(_o,{get hidden(){return r(Cr)},get disabled(){return r(To)},get click(){return e.playPrevChapter},get ref(){return mt.playPrevChapterButton},set ref(bo){mt.playPrevChapterButton=bo}}),h(Si),D(bo=>No=se(Si,1,"wrapper-middle-left svelte-tg0ura",null,No,bo),[()=>({fullscreen:me(),hidden:!e.showControls})]),$(Ti,Si)};R(Kt,Ti=>{xt&&Ti(vi)})}var Bi=k(Kt,2);{var Di=Ti=>{var Si=U4();let No;var _o=_(Si);let Cr=g(()=>!e.showControls&&!ae());Bd(_o,{get hidden(){return r(Cr)},get disabled(){return r(uo)},get click(){return _n.toggle},get graphIsOpened(){return ae()},get ref(){return mt.interactiveGraphButton},set ref(bo){mt.interactiveGraphButton=bo}}),h(Si),D(bo=>No=se(Si,1,Yl(xt?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-tg0ura",No,bo),[()=>({fullscreen:me(),hidden:!e.showControls&&!ae()})]),$(Ti,Si)};R(Bi,Ti=>{r(Xr)&&Ti(Di)})}var Fi=k(Bi,2);{var tr=Ti=>{var Si=z4();let No;Si.__click=[F4,io,e,co];var _o=_(Si);let Cr=g(()=>!e.showControls);Nd(_o,{get hidden(){return r(Cr)},get disabled(){return r(io)},get click(){return e.seekToInteractive},get ref(){return mt.seekToInteractiveButton},set ref(bo){mt.seekToInteractiveButton=bo}}),h(Si),D(bo=>No=se(Si,1,"wrapper-middle-right svelte-tg0ura",null,No,bo),[()=>({fullscreen:me(),hidden:!e.showControls})]),$(Ti,Si)};R(Fi,Ti=>{_i&&Ti(tr)})}$(ee,Ye)};R(Sr,ee=>{gt&&!f()&&ee(ts)})}D((ee,Ye,Kt,vi)=>{fo=se(xi,1,"overlay-mobile svelte-tg0ura",null,fo,ee),Yi=se(Li,1,"wrapper-top-left svelte-tg0ura",null,Yi,Ye),ho=se(Mi,1,"wrapper-top-right svelte-tg0ura",null,ho,Kt),jt=se(He,1,"wrapper-middle svelte-tg0ura",null,jt,vi)},[()=>({hidden:!r(hr)}),()=>({hidden:!e.showControls,fullscreen:me()}),()=>({hidden:!e.showControls&&!y(),fullscreen:me()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),$(rt,Mt)};R(_r,rt=>{oe()||rt(Lr)})}var br=k(_r,2);{var Qn=rt=>{var Mt=Q4(),xi=fe(Mt);let fo;var Li=_(xi);Pu(Li,{get muted(){return Z()},click:an,get ref(){return mt.volume},set ref(Lo){mt.volume=Lo}}),h(xi);var Yi=k(xi,2);{var Mi=Lo=>{var Mo=q4(),Xn=_(Mo);let In=g(()=>!r(Fn));bl(Xn,{get disabled(){return r(Dn)},get click(){return it},isMobile:!0,get isPlaying(){return r(In)},get ref(){return mt.playButton},set ref(xr){mt.playButton=xr}}),h(Mo),$(Lo,Mo)};R(Yi,Lo=>{r(Fn)&&Lo(Mi)})}var ho=k(Yi,2);let En;var Po=_(ho);Ed(Po,{get position(){return Re()},get duration(){return X()}}),h(ho),D((Lo,Mo)=>{fo=se(xi,1,"wrapper-top-right svelte-tg0ura",null,fo,Lo),En=se(ho,1,"wrapper-bottom ads-timeline-mobile svelte-tg0ura",null,En,Mo)},[()=>({fullscreen:me()}),()=>({fullscreen:me()})]),$(rt,Mt)};R(br,rt=>{oe()&&d()!=="inactive"&&rt(Qn)})}var Gn=k(br,2);let ko;var jn=_(Gn);let $r;var di=_(jn),ln=_(di),yr=_(ln);{var Cn=rt=>{wo(rt,{get disabled(){return r(qo)},get ref(){return mt.replayButton},set ref(Mt){mt.replayButton=Mt},children:(Mt,xi)=>{_l(Mt,{get disabled(){return r(qo)},get click(){return Gt}})},$$slots:{default:!0}})};R(yr,rt=>{gt&&rt(Cn)})}var vt=k(yr,2);{var fi=rt=>{wo(rt,{get ref(){return mt.liveButton},set ref(Mt){mt.liveButton=Mt},children:(Mt,xi)=>{Dd(Mt,{get isLiveActive(){return r(go)},isMobile:!0,get ariaLabel(){return r(hi)}})},$$slots:{default:!0}})};R(vt,rt=>{!oe()&&L()&&rt(fi)})}var oo=k(vt,2);{var jo=rt=>{let Mt=g(()=>oe()?Re():M()),xi=g(()=>oe()?X():at()),fo=g(()=>!e.showControls);xd(rt,{get showDuration(){return r(yn)},get position(){return r(Mt)},get duration(){return r(xi)},isMobile:!0,get isHidden(){return r(fo)},get ref(){return mt.time},set ref(Li){mt.time=Li}})};R(oo,rt=>{r(Wn)&&rt(jo)})}var mi=k(oo,2);let dn=g(()=>!r(Kn));wo(mi,{className:"w-max",get disabled(){return r(dn)},get ref(){return mt.episodes},set ref(rt){mt.episodes=rt},children:(rt,Mt)=>{var xi=Fe(),fo=fe(xi);{var Li=Yi=>{var Mi=G4(),ho=k(fe(Mi),2);Id(ho,{get position(){return M()},get duration(){return at()},get timeCodes(){return Pt}}),$(Yi,Mi)};R(fo,Yi=>{r(Kn)&&Yi(Li)})}$(rt,xi)},$$slots:{default:!0}}),h(ln),st(ln,rt=>ci.bottomLeft=rt,()=>ci==null?void 0:ci.bottomLeft);var Ni=k(ln,2),Gi=_(Ni);{var ji=rt=>{wo(rt,{get ref(){return mt.volume},set ref(Mt){mt.volume=Mt},children:(Mt,xi)=>{Pu(Mt,{get muted(){return r(wn)},click:an})},$$slots:{default:!0}})};R(Gi,rt=>{r(xn)&&rt(ji)})}var Yo=k(Gi,2);{var Tn=rt=>{wo(rt,{get ref(){return mt.settings},set ref(Mt){mt.settings=Mt},children:(Mt,xi)=>{ml(Mt,{get ref$(){return Io}})},$$slots:{default:!0}})};R(Yo,rt=>{r(po)&&rt(Tn)})}var Mr=k(Yo,2);{var Zo=rt=>{wo(rt,{get ref(){return mt.fullscreen},set ref(Mt){mt.fullscreen=Mt},children:(Mt,xi)=>{Sd(Mt,{get click(){return e.toggleFullscreen},get isFullscreen(){return me()}})},$$slots:{default:!0}})};R(Mr,rt=>{r(zn)&&rt(Zo)})}h(Ni),st(Ni,rt=>ci.bottomRight=rt,()=>ci==null?void 0:ci.bottomRight),h(di),st(di,rt=>j(rt),()=>j());var Vr=k(di,2);let cn=g(()=>!e.showControls);Sa(Vr,{get isHidden(){return r(cn)},get isAds(){return oe()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return F()},get ref(){return mt.timeline},set ref(rt){mt.timeline=rt}}),h(jn),h(Gn),st(Gn,rt=>De(rt),()=>De());var Ao=k(Gn,2);{var Yn=rt=>{Ld(rt,{get ref(){return mt.interactiveTimeIndicator},set ref(Mt){mt.interactiveTimeIndicator=Mt}})};R(Ao,rt=>{Ei&&rt(Yn)})}D((rt,Mt)=>{ko=se(Gn,1,"wrapper-bottom mobile svelte-tg0ura",null,ko,rt),$r=se(jn,1,"controls-wrapper svelte-tg0ura",null,$r,Mt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:me()})]),$(t,qn),W(),o()}ct(["click"]);function Fd(t,e){z(e,!0);let[i,o]=Be(),n=()=>C(S,"$isMobile",i),s=v(e,"bottomNoSmooth",3,!1),l=v(e,"playerControlsWrapperRef",15,void 0),d=v(e,"playerControlsRef",15,void 0),a=v(e,"isAds",3,!1),u=v(e,"logoTargetUrl",3,""),f=v(e,"showAutoplayNext",3,!1),m=v(e,"isOneVideoPlaylist",3,!1),p=v(e,"customFullscreenSupported",3,!0),x=v(e,"endScreenShown",3,!1),y=v(e,"onDisabledPlayPrevChapterClick",3,n0),w=v(e,"onDisabledSeekToInteractiveClick",3,n0),S=Ce().ui.isMobile,E=J(!1);Rt(()=>{let B=setTimeout(()=>N(E,!0),0);return()=>clearTimeout(B)});var V=Fe(),I=fe(V);{var L=B=>{var F=Fe(),H=fe(F);{var U=re=>{km(re,{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 m()},get customFullscreenSupported(){return p()},get endScreenShown(){return x()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return y()},get onDisabledSeekToInteractiveClick(){return w()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(G){l(G)},get playerControlsRef(){return d()},set playerControlsRef(G){d(G)}})},Z=re=>{wm(re,{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 m()},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(G){l(G)},get playerControlsRef(){return d()},set playerControlsRef(G){d(G)}})};R(H,re=>{n()?re(U):re(Z,!1)})}$(B,F)};R(I,B=>{r(E)&&B(L)})}$(t,V),W(),o()}var Z4=xe('<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 Am(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Z4();Ie(o,()=>K({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);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(2),h(o),$(t,o)}function Pm(t,e){let i=v(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);Am(t,{get style(){return r(o)}})}var X4=xe('<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 Lm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=X4();Ie(o,()=>K({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);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(2),h(o),$(t,o)}var J4=xe('<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 Mm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=J4();Ie(o,()=>K({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);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(2),h(o),$(t,o)}function Lu(t,e){let i=v(e,"isOff",3,!1);var o=Fe(),n=fe(o);{var s=d=>{Mm(d,{})},l=d=>{Lm(d,{})};R(n,d=>{i()?d(s):d(l,!1)})}$(t,o)}var e3=xe('<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 Vm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=e3();Ie(o,()=>K({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);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(2),h(o),$(t,o)}function Rm(t,e){let i=v(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);Vm(t,{get style(){return r(o)}})}var t3=xe('<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 Om(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=t3();Ie(o,()=>K({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);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(2),h(o),$(t,o)}function Nm(t,e){let i=v(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);Om(t,{get style(){return r(o)}})}var i3=P('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),o3=P('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),n3=P("<div><!></div>"),r3={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;
260
265
  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"],
261
266
  .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"],
262
267
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
@@ -271,23 +276,23 @@ Try switching the\xA0quality to\xA0Auto.`},Kh=eb;var $s=new Map;$s.set(Qh.EN,Kh)
271
276
  @keyframes svelte-1ad3n06-fadeOut {
272
277
  0% {opacity:1;}
273
278
  100% {opacity:0;}
274
- }`};function Im(t,e){F(e,!0),q(t,K4);let[i,o]=Ue(),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=W4();let x;var w=_(p);{var y=S=>{var T=z4(),E=he(T),V=_(E);{var k=ge=>{let ie=g(()=>r(f)==="FORWARD_SEEK");ym(ge,{get reversed(){return r(ie)}})};L(V,ge=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(f))&&ge(k)})}var I=P(V,2);{var R=ge=>{Cs(ge,{})};L(I,ge=>{r(f)==="PAUSE"&&ge(R)})}var X=P(I,2);{var D=ge=>{Wr(ge,{})};L(X,ge=>{r(f)==="PLAY"&&ge(D)})}var H=P(X,2);{var W=ge=>{Pd(ge,{})};L(H,ge=>{r(f)==="REPLAY"&&ge(W)})}var ee=P(H,2);{var j=ge=>{Cu(ge,{isOff:!0})};L(ee,ge=>{r(f)==="SUBTITLES_OFF"&&ge(j)})}var ue=P(ee,2);{var oe=ge=>{Cu(ge,{})};L(ue,ge=>{r(f)==="SUBTITLES_ON"&&ge(oe)})}var pe=P(ue,2);{var $e=ge=>{let ie=g(()=>r(f)==="RATE_UP");Cm(ge,{get reversed(){return r(ie)}})};L(pe,ge=>{["RATE_DOWN","RATE_UP"].includes(r(f))&&ge($e)})}var me=P(pe,2);{var Ae=ge=>{let ie=g(()=>r(f)==="EPISODE_NEXT");Em(ge,{get reversed(){return r(ie)}})};L(me,ge=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(f))&&ge(Ae)})}var re=P(me,2);{var Ne=ge=>{Ws(ge,{volume:0})};L(re,ge=>{r(f)==="MUTE"&&ge(Ne)})}var se=P(re,2);{var N=ge=>{Ws(ge,{volume:1})};L(se,ge=>{r(f)==="VOLUME"&&ge(N)})}h(E);var De=P(E,2);{var le=ge=>{var ie=U4(),ve=_(ie,!0);h(ie),B(()=>be(ve,r(v))),$(ge,ie)};L(De,ge=>{r(v)&&ge(le)})}$(S,T)};L(w,S=>{!r(d)&&r(f)&&S(y)})}h(p),B(S=>x=te(p,1,"hot-key-helpers-container svelte-1ad3n06",null,x,S),[()=>({hidden:r(d),"hot-key-helpers-container--left":r(a),"hot-key-helpers-container--right":r(u)})]),$(t,p),U(),o()}var q4=Ie('<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 km(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=q4();Me(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);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ee(),h(o),$(t,o)}var Q4=Ie('<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 Pm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Q4();Me(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);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ee(),h(o),$(t,o)}function Qs(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=qe(),a=he(d);{var u=v=>{let p=g(()=>r(s)?"chevron-icon--down":"chevron-icon--up");km(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");Pm(v,{get style(){return r(l)},get"data-testid"(){return r(p)}})};L(a,v=>{r(n)?v(u):v(f,!1)})}$(t,d),U()}var G4=(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}},j4=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},Y4=M('<div tabindex="0" role="button"><div class="button-block svelte-1yzc86r" aria-hidden="true"><div class="button-row svelte-1yzc86r"><div class="button button-up svelte-1yzc86r"><!></div> <div class="button button-right svelte-1yzc86r"><!></div></div> <div class="button-row svelte-1yzc86r"><div class="button button-left svelte-1yzc86r"><!></div> <div class="button button-down svelte-1yzc86r"><!></div></div></div></div>'),Z4={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 Od(t,e){F(e,!0),q(t,Z4);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=Y4();let p;v.__keydown=[G4,n,s,l,a,d],v.__keyup=[j4,n,u];var x=_(v),w=_(x),y=_(w);y.__mousedown=s,y.__mouseup=u;var S=_(y);Qs(S,{direction:"up",useBtnColor:!0}),h(y);var T=P(y,2);T.__mousedown=d,T.__mouseup=u;var E=_(T);Qs(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);Qs(I,{direction:"up",useBtnColor:!0}),h(k);var R=P(k,2);R.__mousedown=l,R.__mouseup=u;var X=_(R);Qs(X,{direction:"up",useBtnColor:!0}),h(R),h(V),h(x),h(v),B(D=>{p=te(v,1,"immersive-controls svelte-1yzc86r",null,p,D),We(v,"aria-label",f)},[()=>({"m-shifted":i()})]),St("mouseleave",y,u),St("mouseleave",T,u),St("mouseleave",k,u),St("mouseleave",R,u),$(t,v),U()}ct(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as K1,Subscription as X4,filterChanged as J4,filter as e3}from"@vkontakte/videoplayer-shared/es2015";var W1=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var Tu=class{constructor(){this.flickeringTimeout=W1(1e3);this.subscriptions=new X4;this.isAuto=!1;this.isLive=!1;this.captions$=new K1([]);this.captionsPrepared$=new K1([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(e3(()=>this.isEnabled()),J4()).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 t3=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),i3=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),o3=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),n3=M('<div><span class="caption svelte-c2x749"><!></span></div>'),r3=M("<div><!></div>"),s3={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 ka(t,e){F(e,!0),q(t,s3);let[i,o]=Ue(),n=()=>C(v,"$currentSubtitle$",i),s=()=>C(x,"$isLive$",i),l=()=>C(w,"$isFullscreen",i),d=()=>C(p,"$isAutoSubtitleCaptionVisible$",i),a=m(e,"isMobile",3,!1),u=ke(),f=kt(),v=u.state.currentSubtitle$,p=u.state.isAutoSubtitleCaptionVisible$,x=u.state.isLive$,w=u.ui.isFullscreen,y=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);Qe(()=>{var W,ee,j;(W=r(V))==null||W.setIsAuto(r(y)),(ee=r(V))==null||ee.setIsLive(r(S)),(j=r(V))==null||j.setCaptions(e.captions)});let k=Y(oi([[]]));Lt(()=>{O(V,new Tu().subscribe(),!0);let W=r(V).captionsPrepared$.subscribe(ee=>{O(k,ee,!0)});return()=>{var ee;(ee=r(V))==null||ee.destroy(),W.unsubscribe()}}),Lt(()=>{if(r(y)){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=r3();let X;var D=_(R);{var H=W=>{var ee=n3();let j;var ue=_(ee),oe=_(ue);{var pe=me=>{var Ae=t3(),re=_(Ae),Ne=_(re,!0);h(re),h(Ae),B(se=>{var N;rt(re,`font-size: ${(N=r(E))!=null?N:""}px`),be(Ne,se)},[()=>K("subtitles_auto_caption")]),$(me,Ae)},$e=(me,Ae)=>{{var re=se=>{var N=qe(),De=he(N);Mi(De,17,()=>r(k),Kl,(le,ge)=>{var ie=i3(),ve=_(ie);Mi(ve,21,()=>r(ge),({value:Fe,timeAppeared:fe})=>fe,(Fe,fe)=>{let st=()=>r(fe).value,Z=()=>r(fe).timeAppeared;var Le=qe(),Pe=he(Le);{var Ke=lt=>{var mt=ns();B(()=>be(mt,st())),$(lt,mt)};L(Pe,lt=>{(!Z()||Z()<=e.position)&&lt(Ke)})}$(Fe,Le)}),h(ve),h(ie),B(()=>{var Fe;return rt(ve,`font-size: ${(Fe=r(E))!=null?Fe:""}px`)}),$(le,ie)}),$(se,N)},Ne=se=>{var N=qe(),De=he(N);Mi(De,17,()=>e.captions,({value:le})=>le,(le,ge)=>{let ie=()=>r(ge).value;var ve=o3(),Fe=_(ve),fe=_(Fe,!0);h(Fe),h(ve),B(()=>{var st;rt(Fe,`font-size: ${(st=r(E))!=null?st:""}px`),be(fe,ie())}),$(le,ve)}),$(se,N)};L(me,se=>{var N;r(y)&&((N=r(k))!=null&&N.length)?se(re):se(Ne,!1)},Ae)}};L(oe,me=>{r(y)&&d()?me(pe):me($e,!1)})}h(ue),h(ee),B(me=>{var Ae;j=te(ee,1,"subtitles-caption svelte-c2x749",null,j,me),rt(ee,`--subtitles-caption-margin: ${(Ae=r(I))!=null?Ae:""}%`)},[()=>({mobile:a()})]),$(W,ee)};L(D,W=>{var ee;(e.captions.length||(ee=r(k))!=null&&ee.length)&&W(H)})}h(R),B(W=>X=te(R,1,"subtitles-container svelte-c2x749",null,X,W),[()=>({shifted:e.shifted,auto:r(y)&&!r(S)&&!d()})]),$(t,R),U(),o()}var a3=M('<div class="text svelte-raurnb"> </div>'),l3=M('<div><div class="icon_wrapper svelte-raurnb"><svg class="icon svelte-raurnb" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)"></path><path d="M0 0h24v24H0z"></path></g></svg></div> <!></div>'),d3={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 Bd(t,e){F(e,!0),q(t,d3);let i=kt();var o=l3();let n;var s=P(_(o),2);{var l=d=>{var a=a3(),u=_(a);h(a),B(()=>{var f;return be(u,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(f=e.chromecastDeviceName)!=null?f:""}`)}),$(d,a)};L(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})]),$(t,o),U()}var c3=Ie('<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 Am(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=c3();Me(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);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ee(),h(o),$(t,o)}var u3=M('<div class="container svelte-13zpvm8"><!></div>'),p3={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 Pa(t){q(t,p3);var e=u3(),i=_(e);Am(i,{}),h(e),$(t,e)}var f3=M('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),m3=M("<div><!></div>"),v3={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,
279
+ }`};function Bm(t,e){z(e,!0),q(t,r3);let[i,o]=Be(),n=()=>C(e.data,"$data",i),s=Ce(),{features:l}=At(),d=s.ui.t,a=g(()=>!n()),u=g(()=>{var S;return((S=n())==null?void 0:S.type)==="BACKWARD_SEEK"}),f=g(()=>{var S;return((S=n())==null?void 0:S.type)==="FORWARD_SEEK"}),m=g(()=>{var S;return(S=n())==null?void 0:S.type}),p=g(()=>{var S,E;return(S=n())!=null&&S.t?d(n().t.key,{value:n().t.value||""}):(E=n())==null?void 0:E.text});var x=n3();let y;var w=_(x);{var T=S=>{var E=o3(),V=fe(E),I=_(V);{var L=j=>{let oe=g(()=>r(m)==="FORWARD_SEEK");Pm(j,{get reversed(){return r(oe)}})};R(I,j=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(m))&&j(L)})}var B=k(I,2);{var F=j=>{Is(j,{})};R(B,j=>{r(m)==="PAUSE"&&!l.playbackStatusShow&&j(F)})}var H=k(B,2);{var U=j=>{Qr(j,{})};R(H,j=>{r(m)==="PLAY"&&!l.playbackStatusShow&&j(U)})}var Z=k(H,2);{var re=j=>{Vd(j,{})};R(Z,j=>{r(m)==="REPLAY"&&!l.playbackStatusShow&&j(re)})}var G=k(Z,2);{var be=j=>{Lu(j,{isOff:!0})};R(G,j=>{r(m)==="SUBTITLES_OFF"&&j(be)})}var ie=k(G,2);{var me=j=>{Lu(j,{})};R(ie,j=>{r(m)==="SUBTITLES_ON"&&j(me)})}var pe=k(ie,2);{var ue=j=>{let oe=g(()=>r(m)==="RATE_UP");Rm(j,{get reversed(){return r(oe)}})};R(pe,j=>{["RATE_DOWN","RATE_UP"].includes(r(m))&&j(ue)})}var Le=k(pe,2);{var Ve=j=>{let oe=g(()=>r(m)==="EPISODE_NEXT");Nm(j,{get reversed(){return r(oe)}})};R(Le,j=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(m))&&j(Ve)})}var ae=k(Le,2);{var Re=j=>{Gs(j,{volume:0})};R(ae,j=>{r(m)==="MUTE"&&j(Re)})}var X=k(ae,2);{var M=j=>{Gs(j,{volume:1})};R(X,j=>{r(m)==="VOLUME"&&j(M)})}h(V);var at=k(V,2);{var De=j=>{var oe=i3(),Oe=_(oe,!0);h(oe),D(()=>ve(Oe,r(p))),$(j,oe)};R(at,j=>{r(p)&&j(De)})}$(S,E)};R(w,S=>{!r(a)&&r(m)&&S(T)})}h(x),D(S=>y=se(x,1,"hot-key-helpers-container svelte-1ad3n06",null,y,S),[()=>({hidden:r(a),"hot-key-helpers-container--left":r(u),"hot-key-helpers-container--right":r(f)})]),$(t,x),W(),o()}var s3=xe('<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 Dm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=s3();Ie(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i));var n=_(o);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(),h(o),$(t,o)}var a3=xe('<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 Fm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=a3();Ie(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i));var n=_(o);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(),h(o),$(t,o)}function Ys(t,e){z(e,!0);let i=v(e,"direction",3,"left"),o=v(e,"useBtnColor",3,!1),n=g(()=>["up","down"].includes(i())),s=g(()=>["right","down"].includes(i())),l=g(()=>(()=>{let m="";return r(s)&&(m+="transform: rotate(180deg);"),o()&&(m+="color: var(--btn-color, #fff);"),m.length?m:void 0})());var d=Fe(),a=fe(d);{var u=m=>{let p=g(()=>r(s)?"chevron-icon--down":"chevron-icon--up");Dm(m,{get style(){return r(l)},get"data-testid"(){return r(p)}})},f=m=>{let p=g(()=>r(s)?"chevron-icon--right":"chevron-icon--left");Fm(m,{get style(){return r(l)},get"data-testid"(){return r(p)}})};R(a,m=>{r(n)?m(u):m(f,!1)})}$(t,d),W()}var l3=(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}},d3=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},c3=P('<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>'),u3={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 Hd(t,e){z(e,!0),q(t,u3);let i=v(e,"isShifted",3,!1),o=Ce(),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 m=c3();let p;m.__keydown=[l3,n,s,l,a,d],m.__keyup=[d3,n,u];var x=_(m),y=_(x),w=_(y);w.__mousedown=s,w.__mouseup=u;var T=_(w);Ys(T,{direction:"up",useBtnColor:!0}),h(w);var S=k(w,2);S.__mousedown=d,S.__mouseup=u;var E=_(S);Ys(E,{direction:"up",useBtnColor:!0}),h(S),h(y);var V=k(y,2),I=_(V);I.__mousedown=a,I.__mouseup=u;var L=_(I);Ys(L,{direction:"up",useBtnColor:!0}),h(I);var B=k(I,2);B.__mousedown=l,B.__mouseup=u;var F=_(B);Ys(F,{direction:"up",useBtnColor:!0}),h(B),h(V),h(x),h(m),D(H=>{p=se(m,1,"immersive-controls svelte-1yzc86r",null,p,H),Ne(m,"aria-label",f)},[()=>({"m-shifted":i()})]),kt("mouseleave",w,u),kt("mouseleave",S,u),kt("mouseleave",I,u),kt("mouseleave",B,u),$(t,m),W()}ct(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as s0,Subscription as p3,filterChanged as f3,filter as m3}from"@vkontakte/videoplayer-shared/es2015";var r0=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var Mu=class{constructor(){this.flickeringTimeout=r0(1e3);this.subscriptions=new p3;this.isAuto=!1;this.isLive=!1;this.captions$=new s0([]);this.captionsPrepared$=new s0([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(m3(()=>this.isEnabled()),f3()).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 v3=P('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),g3=P('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),h3=P('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),_3=P('<div><span class="caption svelte-c2x749"><!></span></div>'),b3=P("<div><!></div>"),$3={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;
280
+ /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function ka(t,e){z(e,!0),q(t,$3);let[i,o]=Be(),n=()=>C(m,"$currentSubtitle$",i),s=()=>C(x,"$isLive$",i),l=()=>C(y,"$isFullscreen",i),d=()=>C(p,"$isAutoSubtitleCaptionVisible$",i),a=v(e,"isMobile",3,!1),u=Ce(),f=At(),m=u.state.currentSubtitle$,p=u.state.isAutoSubtitleCaptionVisible$,x=u.state.isLive$,y=u.ui.isFullscreen,w=g(()=>!!n().isAuto),T=g(()=>!!s()),S=g(()=>e.playerSize.width*.02),E=g(()=>a()&&!l()||r(S)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:r(S)),V=J(null);ze(()=>{var Z,re,G;(Z=r(V))==null||Z.setIsAuto(r(w)),(re=r(V))==null||re.setIsLive(r(T)),(G=r(V))==null||G.setCaptions(e.captions)});let I=J(ni([[]]));Rt(()=>{N(V,new Mu().subscribe(),!0);let Z=r(V).captionsPrepared$.subscribe(re=>{N(I,re,!0)});return()=>{var re;(re=r(V))==null||re.destroy(),Z.unsubscribe()}}),Rt(()=>{if(r(w)){let Z=window.setTimeout(()=>{p.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(Z)}}else p.set(!1)});let L=g(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var B=b3();let F;var H=_(B);{var U=Z=>{var re=_3();let G;var be=_(re),ie=_(be);{var me=ue=>{var Le=v3(),Ve=_(Le),ae=_(Ve,!0);h(Ve),h(Le),D(Re=>{var X;dt(Ve,`font-size: ${(X=r(E))!=null?X:""}px`),ve(ae,Re)},[()=>Q("subtitles_auto_caption")]),$(ue,Le)},pe=(ue,Le)=>{{var Ve=Re=>{var X=Fe(),M=fe(X);ki(M,17,()=>r(I),Gl,(at,De)=>{var j=g3(),oe=_(j);ki(oe,21,()=>r(De),({value:Oe,timeAppeared:Ze})=>Ze,(Oe,Ze)=>{let $e=()=>r(Ze).value,te=()=>r(Ze).timeAppeared;var we=Fe(),Te=fe(we);{var Ke=it=>{var ht=ls();D(()=>ve(ht,$e())),$(it,ht)};R(Te,it=>{(!te()||te()<=e.position)&&it(Ke)})}$(Oe,we)}),h(oe),h(j),D(()=>{var Oe;return dt(oe,`font-size: ${(Oe=r(E))!=null?Oe:""}px`)}),$(at,j)}),$(Re,X)},ae=Re=>{var X=Fe(),M=fe(X);ki(M,17,()=>e.captions,({value:at})=>at,(at,De)=>{let j=()=>r(De).value;var oe=h3(),Oe=_(oe),Ze=_(Oe,!0);h(Oe),h(oe),D(()=>{var $e;dt(Oe,`font-size: ${($e=r(E))!=null?$e:""}px`),ve(Ze,j())}),$(at,oe)}),$(Re,X)};R(ue,Re=>{var X;r(w)&&((X=r(I))!=null&&X.length)?Re(Ve):Re(ae,!1)},Le)}};R(ie,ue=>{r(w)&&d()?ue(me):ue(pe,!1)})}h(be),h(re),D(ue=>{var Le;G=se(re,1,"subtitles-caption svelte-c2x749",null,G,ue),dt(re,`--subtitles-caption-margin: ${(Le=r(L))!=null?Le:""}%`)},[()=>({mobile:a()})]),$(Z,re)};R(H,Z=>{var re;(e.captions.length||(re=r(I))!=null&&re.length)&&Z(U)})}h(B),D(Z=>F=se(B,1,"subtitles-container svelte-c2x749",null,F,Z),[()=>({shifted:e.shifted,auto:r(w)&&!r(T)&&!d()})]),$(t,B),W(),o()}var y3=P('<div class="text svelte-raurnb"> </div>'),x3=P('<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>'),w3={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 Ud(t,e){z(e,!0),q(t,w3);let i=At();var o=x3();let n;var s=k(_(o),2);{var l=d=>{var a=y3(),u=_(a);h(a),D(()=>{var f;return ve(u,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(f=e.chromecastDeviceName)!=null?f:""}`)}),$(d,a)};R(s,d=>{e.chromecastDeviceName&&d(l)})}h(o),D(d=>{n=se(o,1,"wrapper svelte-raurnb",null,n,d),dt(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),$(t,o),W()}var S3=xe('<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 Hm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=S3();Ie(o,()=>K({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);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(),h(o),$(t,o)}var C3=P('<div class="container svelte-13zpvm8"><!></div>'),T3={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 Aa(t){q(t,T3);var e=C3(),i=_(e);Hm(i,{}),h(e),$(t,e)}var E3=P('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),I3=P("<div><!></div>"),k3={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,
276
281
  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,
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 Aa(t,e){F(e,!0),q(t,v3);let i=m(e,"iconVisible",3,!0),o=ke(),n=kt(),s=o.ui.startedByKeyboard$,l=K("tooltip_play"),d=x=>{var y;let w=x.code;["Enter","Space"].includes(w)&&(x.stopPropagation(),x.preventDefault(),s.set(!0),(y=e.startVideo)==null||y.call(e))},a=x=>{var w;x.stopPropagation(),(w=e.startVideo)==null||w.call(e)};var u=m3();let f;u.__click=a;var v=_(u);{var p=x=>{var w=f3();w.__keydown=d;var y=P(_(w),2);Wr(y,{}),h(w),B(()=>We(w,"aria-label",l)),$(x,w)};L(v,x=>{i()&&x(p)})}return h(u),B(x=>{f=te(u,1,"container svelte-1ciju45",null,f,x),rt(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),$(t,u),U({handlePressKey:d,handleClick:a})}ct(["click","keydown"]);var g3=M('<div data-testid="video_title"><span> </span></div>'),h3={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(
282
+ 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 Pa(t,e){z(e,!0),q(t,k3);let i=v(e,"iconVisible",3,!0),o=Ce(),n=At(),s=o.ui.startedByKeyboard$,l=Q("tooltip_play"),d=x=>{var w;let y=x.code;["Enter","Space"].includes(y)&&(x.stopPropagation(),x.preventDefault(),s.set(!0),(w=e.startVideo)==null||w.call(e))},a=x=>{var y;x.stopPropagation(),(y=e.startVideo)==null||y.call(e)};var u=I3();let f;u.__click=a,u.__contextmenu=function(...x){var y;(y=e.onContextMenu)==null||y.apply(this,x)};var m=_(u);{var p=x=>{var y=E3();y.__keydown=d;var w=k(_(y),2);Qr(w,{}),h(y),D(()=>Ne(y,"aria-label",l)),$(x,y)};R(m,x=>{i()&&x(p)})}return h(u),D(x=>{f=se(u,1,"container svelte-1ciju45",null,f,x),dt(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),$(t,u),W({handlePressKey:d,handleClick:a})}ct(["click","contextmenu","keydown"]);var A3=P('<div data-testid="video_title"><span> </span></div>'),P3={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(
278
283
  0deg,
279
284
  rgba(0, 0, 0, 0) 0%,
280
285
  rgba(0, 0, 0, 0.02) 19%,
281
286
  rgba(0, 0, 0, 0.1) 34%,
282
287
  rgba(0, 0, 0, 0.4) 60%,
283
288
  rgba(0, 0, 0, 0.6) 100%
284
- );}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function Mm(t,e){F(e,!0),q(t,h3);let i=m(e,"title",3,""),o=m(e,"isHidden",3,!1),n=m(e,"ref",15),s=Y(void 0);Lt(()=>{var v;requestAnimationFrame(()=>{var p;(p=e.onVisibilityChanged)==null||p.call(e,!0)});function f(p){var x;p.propertyName==="transform"&&((x=e.onVisibilityChanged)==null||x.call(e,!o()))}return(v=r(s))==null||v.addEventListener("transitionend",f),()=>{var p;return(p=r(s))==null?void 0:p.removeEventListener("transitionend",f)}});var l=g3();let d;var a=_(l),u=_(a,!0);h(a),ot(a,f=>n(f),()=>n()),h(l),ot(l,f=>O(s,f),()=>r(s)),B(f=>{d=te(l,1,"title svelte-14hk510",null,d,f),be(u,i())},[()=>({hidden:o()})]),$(t,l),U()}import{throttleFn as S3}from"@vkontakte/videoplayer-shared/es2015";var _3=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),b3=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),$3=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),y3=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div>'),x3=M("<div><!> <!> <!> <!></div>"),w3={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 Lm(t,e){F(e,!0),q(t,w3);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 ee=Math.floor(D/60)%60;O(n,u(ee),!0);let j=D%60;O(s,u(j),!0)},x=()=>{let D=Math.floor(Date.now()/1e3),H=e.startTime-D;p(H),H>=1?l=requestAnimationFrame(x):e.onTimerOver()};Lt(()=>{l=requestAnimationFrame(x)}),Zo(()=>{cancelAnimationFrame(l)});var w=x3();let y;var S=_(w);{var T=D=>{var H=_3(),W=he(H);let ee;var j=_(W),ue=_(j,!0);h(j);var oe=P(j,2),pe=_(oe,!0);h(oe),h(W);var $e=P(W,2),me=_($e,!0);h($e),B((Ae,re,Ne)=>{ee=rt(W,"",ee,{width:Ae}),be(ue,r(i)),be(pe,re),be(me,Ne)},[()=>v(r(i)),()=>K("waiting_live_day_value"),()=>K("waiting_live_colon")]),$(D,H)};L(S,D=>{r(i)&&D(T)})}var E=P(S,2);{var V=D=>{var H=b3(),W=he(H);let ee;var j=_(W),ue=_(j,!0);h(j);var oe=P(j,2),pe=_(oe,!0);h(oe),h(W);var $e=P(W,2),me=_($e,!0);h($e),B((Ae,re,Ne)=>{ee=rt(W,"",ee,{width:Ae}),be(ue,r(o)),be(pe,re),be(me,Ne)},[()=>v(r(o)),()=>K("waiting_live_hour_value"),()=>K("waiting_live_colon")]),$(D,H)};L(E,D=>{r(o)&&D(V)})}var k=P(E,2);{var I=D=>{var H=$3(),W=he(H);let ee;var j=_(W),ue=_(j,!0);h(j);var oe=P(j,2),pe=_(oe,!0);h(oe),h(W);var $e=P(W,2),me=_($e,!0);h($e),B((Ae,re,Ne)=>{ee=rt(W,"",ee,{width:Ae}),be(ue,r(n)),be(pe,re),be(me,Ne)},[()=>v(r(n)),()=>K("waiting_live_minute_value"),()=>K("waiting_live_colon")]),$(D,H)};L(k,D=>{r(n)&&D(I)})}var R=P(k,2);{var X=D=>{var H=y3();let W;var ee=_(H),j=_(ee,!0);h(ee);var ue=P(ee,2),oe=_(ue,!0);h(ue),h(H),B((pe,$e)=>{W=rt(H,"",W,{width:pe}),be(j,r(s)),be(oe,$e)},[()=>v(r(s)),()=>K("waiting_live_second_value")]),$(D,H)};L(R,D=>{r(s)&&D(X)})}h(w),B(D=>y=te(w,1,"timer__container svelte-gt98rn",null,y,D),[()=>({small:e.isSmallSize})]),$(t,w),U()}var C3=M('<div class="waiting svelte-17m8dcd"><span> </span></div>'),T3=M('<div class="upcoming-timer timer svelte-17m8dcd"><span> </span> <!></div>'),E3=M('<div class="waiting-container svelte-17m8dcd"><!></div>'),I3={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 Dd(t,e){F(e,!0),q(t,I3);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?S3(()=>{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;Qe(()=>{r(a),r(d),r(o),v==null||v()}),Zo(()=>{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=E3(),x=_(p);{var w=S=>{var T=C3(),E=_(T);let V;var k=_(E,!0);h(E),h(T),ot(T,I=>O(n,I),()=>r(n)),B((I,R)=>{V=te(E,1,"waiting__title svelte-17m8dcd",null,V,I),be(k,R)},[()=>({medium:r(f),small:r(u)}),()=>K("waiting_live_upcoming_title")]),$(S,T)},y=S=>{var T=T3(),E=_(T);let V;var k=_(E,!0);h(E);var I=P(E,2);let R=g(()=>r(u)||r(f)),X=g(()=>i()||0);Lm(I,{get isSmallSize(){return r(R)},get startTime(){return r(X)},onTimerOver:()=>O(o,!0)}),h(T),ot(T,D=>O(s,D),()=>r(s)),B((D,H)=>{V=te(E,1,"timer__title svelte-17m8dcd",null,V,D),be(k,H)},[()=>({medium:r(f),small:r(u)}),()=>K("waiting_live_timer_title")]),$(S,T)};L(x,S=>{r(o)?S(w):S(y,!1)})}h(p),B(()=>rt(p,`background-image: url(${e.thumbUrl})`)),rr(p,"clientWidth",S=>O(d,S)),rr(p,"clientHeight",S=>O(a,S)),$(t,p),U()}var k3=M('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),P3={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 Ma(t,e){F(e,!0),q(t,P3);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=k3(),l=_(s),d=_(l);ya(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()}')`),be(u,r(n))}),$(t,s),U()}var A3=Ie('<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 Vm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=A3();Me(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);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ee(),h(o),$(t,o)}var M3=M('<div class="select-icon svelte-124aexk"><!></div>'),L3={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function Hd(t){q(t,L3);var e=M3(),i=_(e);Vm(i,{}),h(e),$(t,e)}var V3=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},R3=(t,e)=>{pl(t,()=>e.item.selectItem(e.item.value))},N3=M("<p> </p>"),O3=M('<p class="sublabel svelte-1t7rx2m"> </p>'),B3=M('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),D3={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;
289
+ );}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function Um(t,e){z(e,!0),q(t,P3);let i=v(e,"title",3,""),o=v(e,"isHidden",3,!1),n=v(e,"ref",15),s=J(void 0);Rt(()=>{var m;requestAnimationFrame(()=>{var p;(p=e.onVisibilityChanged)==null||p.call(e,!0)});function f(p){var x;p.propertyName==="transform"&&((x=e.onVisibilityChanged)==null||x.call(e,!o()))}return(m=r(s))==null||m.addEventListener("transitionend",f),()=>{var p;return(p=r(s))==null?void 0:p.removeEventListener("transitionend",f)}});var l=A3();let d;var a=_(l),u=_(a,!0);h(a),st(a,f=>n(f),()=>n()),h(l),st(l,f=>N(s,f),()=>r(s)),D(f=>{d=se(l,1,"title svelte-14hk510",null,d,f),ve(u,i())},[()=>({hidden:o()})]),$(t,l),W()}import{throttleFn as B3}from"@vkontakte/videoplayer-shared/es2015";var L3=P('<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),M3=P('<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),V3=P('<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),R3=P('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div>'),O3=P("<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 zm(t,e){z(e,!0),q(t,N3);let i=J(""),o=J(""),n=J(""),s=J(""),l,d=32,a=d/2,u=H=>String(H).padStart(2,"0"),f=H=>Math.max(H.length,1),m=H=>`${(e.isSmallSize?a:d)*f(H)}px`,p=H=>{let U=Math.floor(H/86400);U&&(H-=U*86400,N(i,u(U),!0));let Z=Math.floor(H/3600);N(o,u(Z),!0);let re=Math.floor(H/60)%60;N(n,u(re),!0);let G=H%60;N(s,u(G),!0)},x=()=>{let H=Math.floor(Date.now()/1e3),U=e.startTime-H;p(U),U>=1?l=requestAnimationFrame(x):e.onTimerOver()};Rt(()=>{l=requestAnimationFrame(x)}),on(()=>{cancelAnimationFrame(l)});var y=O3();let w;var T=_(y);{var S=H=>{var U=L3(),Z=fe(U);let re;var G=_(Z),be=_(G,!0);h(G);var ie=k(G,2),me=_(ie,!0);h(ie),h(Z);var pe=k(Z,2),ue=_(pe,!0);h(pe),D((Le,Ve,ae)=>{re=dt(Z,"",re,{width:Le}),ve(be,r(i)),ve(me,Ve),ve(ue,ae)},[()=>m(r(i)),()=>Q("waiting_live_day_value"),()=>Q("waiting_live_colon")]),$(H,U)};R(T,H=>{r(i)&&H(S)})}var E=k(T,2);{var V=H=>{var U=M3(),Z=fe(U);let re;var G=_(Z),be=_(G,!0);h(G);var ie=k(G,2),me=_(ie,!0);h(ie),h(Z);var pe=k(Z,2),ue=_(pe,!0);h(pe),D((Le,Ve,ae)=>{re=dt(Z,"",re,{width:Le}),ve(be,r(o)),ve(me,Ve),ve(ue,ae)},[()=>m(r(o)),()=>Q("waiting_live_hour_value"),()=>Q("waiting_live_colon")]),$(H,U)};R(E,H=>{r(o)&&H(V)})}var I=k(E,2);{var L=H=>{var U=V3(),Z=fe(U);let re;var G=_(Z),be=_(G,!0);h(G);var ie=k(G,2),me=_(ie,!0);h(ie),h(Z);var pe=k(Z,2),ue=_(pe,!0);h(pe),D((Le,Ve,ae)=>{re=dt(Z,"",re,{width:Le}),ve(be,r(n)),ve(me,Ve),ve(ue,ae)},[()=>m(r(n)),()=>Q("waiting_live_minute_value"),()=>Q("waiting_live_colon")]),$(H,U)};R(I,H=>{r(n)&&H(L)})}var B=k(I,2);{var F=H=>{var U=R3();let Z;var re=_(U),G=_(re,!0);h(re);var be=k(re,2),ie=_(be,!0);h(be),h(U),D((me,pe)=>{Z=dt(U,"",Z,{width:me}),ve(G,r(s)),ve(ie,pe)},[()=>m(r(s)),()=>Q("waiting_live_second_value")]),$(H,U)};R(B,H=>{r(s)&&H(F)})}h(y),D(H=>w=se(y,1,"timer__container svelte-gt98rn",null,w,H),[()=>({small:e.isSmallSize})]),$(t,y),W()}var D3=P('<div class="waiting svelte-17m8dcd"><span> </span></div>'),F3=P('<div class="upcoming-timer timer svelte-17m8dcd"><span> </span> <!></div>'),H3=P('<div class="waiting-container svelte-17m8dcd"><!></div>'),U3={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 zd(t,e){z(e,!0),q(t,U3);let i=v(e,"startTime",3,0),o=g(()=>i()<Math.floor(Date.now()/1e3)),n=J(void 0),s=J(void 0),l=0,d=J(void 0),a=J(void 0),u=g(()=>{var T,S;return((T=r(d))!=null?T:1/0)<=509||((S=r(a))!=null?S:1/0)<=320}),f=g(()=>{var T,S;return!r(u)&&(((T=r(d))!=null?T:1/0)<=699||((S=r(a))!=null?S:1/0)<=599)}),m=e.onUpcomingLiveViewStateChanged?B3(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let T={type:r(o)?"expired":"default",size:r(u)?"s":r(f)?"m":"l"},S=r(o)?r(n):r(s);e.onUpcomingLiveViewStateChanged(T,S)})},300):void 0;ze(()=>{r(a),r(d),r(o),m==null||m()}),on(()=>{if(cancelAnimationFrame(l),m==null||m.cancel(),e.onUpcomingLiveViewStateChanged){let T={type:r(o)?"expired":"default",size:r(u)?"s":r(f)?"m":"l"};e.onUpcomingLiveViewStateChanged(T)}});var p=H3();p.__contextmenu=function(...T){var S;(S=e.onContextMenu)==null||S.apply(this,T)};var x=_(p);{var y=T=>{var S=D3(),E=_(S);let V;var I=_(E,!0);h(E),h(S),st(S,L=>N(n,L),()=>r(n)),D((L,B)=>{V=se(E,1,"waiting__title svelte-17m8dcd",null,V,L),ve(I,B)},[()=>({medium:r(f),small:r(u)}),()=>Q("waiting_live_upcoming_title")]),$(T,S)},w=T=>{var S=F3(),E=_(S);let V;var I=_(E,!0);h(E);var L=k(E,2);let B=g(()=>r(u)||r(f)),F=g(()=>i()||0);zm(L,{get isSmallSize(){return r(B)},get startTime(){return r(F)},onTimerOver:()=>N(o,!0)}),h(S),st(S,H=>N(s,H),()=>r(s)),D((H,U)=>{V=se(E,1,"timer__title svelte-17m8dcd",null,V,H),ve(I,U)},[()=>({medium:r(f),small:r(u)}),()=>Q("waiting_live_timer_title")]),$(T,S)};R(x,T=>{r(o)?T(y):T(w,!1)})}h(p),D(()=>dt(p,`background-image: url(${e.thumbUrl})`)),ur(p,"clientWidth",T=>N(d,T)),ur(p,"clientHeight",T=>N(a,T)),$(t,p),W()}ct(["contextmenu"]);var z3=P('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),W3={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 La(t,e){z(e,!0),q(t,W3);let i=v(e,"thumbUrl",3,""),o={recover:Q("waiting_live_recover_title"),record:Q("waiting_record_title")},n=g(()=>o[e.kind]||"");var s=z3();s.__contextmenu=function(...f){var m;(m=e.onContextMenu)==null||m.apply(this,f)};var l=_(s),d=_(l);ya(d,{style:"position: static; transform: translate(0, 0)"});var a=k(d,2),u=_(a,!0);h(a),h(l),h(s),D(()=>{dt(s,`background-image: url('${i()}')`),ve(u,r(n))}),$(t,s),W()}ct(["contextmenu"]);var K3=xe('<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 Wm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=K3();Ie(o,()=>K({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);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(),h(o),$(t,o)}var q3=P('<div class="select-icon svelte-124aexk"><!></div>'),Q3={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function Wd(t){q(t,Q3);var e=q3(),i=_(e);Wm(i,{}),h(e),$(t,e)}var G3=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},j3=(t,e)=>{ul(t,()=>e.item.selectItem(e.item.value))},Y3=P("<p> </p>"),Z3=P('<p class="sublabel svelte-1t7rx2m"> </p>'),X3=P('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),J3={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;
285
290
 
286
291
  /**
287
292
  * \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
288
293
  * \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.
289
294
  */margin-left:calc(var(--icon-padding) + var(--select-icon-width));}.label.svelte-1t7rx2m,
290
- .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function Rm(t,e){F(e,!0),q(t,D3);let i=m(e,"isMobile",3,!1);var o=B3();let n;o.__click=[V3,e],o.__keydown=[R3,e];var s=_(o);{var l=w=>{Hd(w,{})};L(s,w=>{e.item.selected&&w(l)})}var d=P(s,2);let a;var u=_(d);{var f=w=>{var y=qe(),S=he(y);Li(S,()=>e.item.valueComponent,(T,E)=>{E(T,bs(()=>{var V;return(V=e.item.valueComponentParams)!=null?V:{}}))}),$(w,y)},v=w=>{var y=N3();let S;var T=_(y,!0);h(y),B(E=>{var V;S=te(y,1,"label svelte-1t7rx2m",null,S,E),be(T,(V=e.item.label)!=null?V:e.item.value)},[()=>({mobile:i()})]),$(w,y)};L(u,w=>{e.item.valueComponent?w(f):w(v,!1)})}var p=P(u,2);{var x=w=>{var y=O3(),S=_(y,!0);h(y),B(()=>be(S,e.item.sublabel)),$(w,y)};L(p,w=>{e.item.sublabel&&w(x)})}h(d),h(o),B((w,y,S)=>{n=te(o,1,"item",null,n,w),We(o,"data-value",e.item.value),We(o,"aria-label",y),We(o,"data-testid",e.item.dataTestid),a=te(d,1,"menu-item-value svelte-1t7rx2m",null,a,S),We(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,y;return(y=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?y:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),$(t,o),U()}ct(["click","keydown"]);var H3=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Nm(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(()=>y=>ru(y,r(n)));var l=H3();let d;l.__click=function(...y){var S;(S=r(n))==null||S.apply(this,y)},l.__keydown=function(...y){var S;(S=r(s))==null||S.apply(this,y)};var a=_(l);{var u=y=>{Hd(y,{})};L(a,y=>{e.item.selected&&y(u)})}var f=P(a,2);let v;var p=_(f);{var x=y=>{var S=qe();let T=g(()=>e.item.valueComponent);var E=he(S);Li(E,()=>r(T),(V,k)=>{k(V,bs(()=>{var I;return(I=e.item.valueComponentParams)!=null?I:{}}))}),$(y,S)},w=y=>{var S=ns();B(()=>be(S,e.item.label)),$(y,S)};L(p,y=>{e.item.valueComponent?y(x):y(w,!1)})}h(f),h(l),ot(l,y=>o(o()[e.item.id]=y,!0),()=>{var y;return(y=o())==null?void 0:y[e.item.id]}),B((y,S)=>{var T;d=te(l,1,"item",null,d,y),We(l,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),We(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()})]),$(t,l),U()}ct(["click","keydown"]);var Kr={"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 U3=(t,e)=>{c1(t,e.returnFromSubMenu,e.closeSettingsMenu)},z3=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},W3=(t,e)=>{ld(t)&&(Er(t),e.returnFromSubMenu())},K3=M('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),q3={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
295
+ .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function Km(t,e){z(e,!0),q(t,J3);let i=v(e,"isMobile",3,!1);var o=X3();let n;o.__click=[G3,e],o.__keydown=[j3,e];var s=_(o);{var l=y=>{Wd(y,{})};R(s,y=>{e.item.selected&&y(l)})}var d=k(s,2);let a;var u=_(d);{var f=y=>{var w=Fe(),T=fe(w);Ai(T,()=>e.item.valueComponent,(S,E)=>{E(S,ws(()=>{var V;return(V=e.item.valueComponentParams)!=null?V:{}}))}),$(y,w)},m=y=>{var w=Y3();let T;var S=_(w,!0);h(w),D(E=>{var V;T=se(w,1,"label svelte-1t7rx2m",null,T,E),ve(S,(V=e.item.label)!=null?V:e.item.value)},[()=>({mobile:i()})]),$(y,w)};R(u,y=>{e.item.valueComponent?y(f):y(m,!1)})}var p=k(u,2);{var x=y=>{var w=Z3(),T=_(w,!0);h(w),D(()=>ve(T,e.item.sublabel)),$(y,w)};R(p,y=>{e.item.sublabel&&y(x)})}h(d),h(o),D((y,w,T)=>{n=se(o,1,"item",null,n,y),Ne(o,"data-value",e.item.value),Ne(o,"aria-label",w),Ne(o,"data-testid",e.item.dataTestid),a=se(d,1,"menu-item-value svelte-1t7rx2m",null,a,T),Ne(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var y,w;return(w=(y=e.item.ariaLabel)!=null?y:e.item.label)!=null?w:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),$(t,o),W()}ct(["click","keydown"]);var ex=P('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function qm(t,e){z(e,!0);let i=v(e,"isMobile",3,!1),o=v(e,"refMenuItems",15),n=g(()=>()=>e.openSubMenuList(e.item.children)),s=g(()=>w=>uu(w,r(n)));var l=ex();let d;l.__click=function(...w){var T;(T=r(n))==null||T.apply(this,w)},l.__keydown=function(...w){var T;(T=r(s))==null||T.apply(this,w)};var a=_(l);{var u=w=>{Wd(w,{})};R(a,w=>{e.item.selected&&w(u)})}var f=k(a,2);let m;var p=_(f);{var x=w=>{var T=Fe();let S=g(()=>e.item.valueComponent);var E=fe(T);Ai(E,()=>r(S),(V,I)=>{I(V,ws(()=>{var L;return(L=e.item.valueComponentParams)!=null?L:{}}))}),$(w,T)},y=w=>{var T=ls();D(()=>ve(T,e.item.label)),$(w,T)};R(p,w=>{e.item.valueComponent?w(x):w(y,!1)})}h(f),h(l),st(l,w=>o(o()[e.item.id]=w,!0),()=>{var w;return(w=o())==null?void 0:w[e.item.id]}),D((w,T)=>{var S;d=se(l,1,"item",null,d,w),Ne(l,"aria-label",(S=e.item.ariaLabel)!=null?S:e.item.label),Ne(l,"data-testid",e.item.id),m=se(f,1,"menu-item-value",null,m,T)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),$(t,l),W()}ct(["click","keydown"]);var Gr={"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 ix=(t,e)=>{T1(t,e.returnFromSubMenu,e.closeSettingsMenu)},ox=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},nx=(t,e)=>{ud(t)&&(Ar(t),e.returnFromSubMenu())},rx=P('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),sx={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
291
296
  /*\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 {
292
297
  /**
293
298
  * \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.
@@ -297,18 +302,18 @@ Try switching the\xA0quality to\xA0Auto.`},Kh=eb;var $s=new Map;$s.set(Qh.EN,Kh)
297
302
  var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
298
303
  1px
299
304
  );}.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,
300
- .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function Bm(t,e){F(e,!0),q(t,q3);let[i,o]=Ue(),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);Lt(()=>{let j=e.items.findIndex(ue=>ue.selected);u().children[j+1].focus()});let f=ke(),v=f.ui.isFullscreen,p=f.ui.playerSize,x=Y(void 0),w=Y(0),y=Y(0),S=g(()=>l()&&n()?`max-height: ${Math.round(s().height*.6)}px`:l()?"":`max-height: ${s().height-32-r(y)-d()}px; overflow: auto;`),T=g(()=>Math.max(e.minWidth,r(w)));var E=K3();let V;var k=_(E);let I;k.__keydown=[U3,e];var R=_(k);let X;R.__click=[z3,e],R.__keydown=[W3,e];var D=_(R);Qs(D,{direction:"left"});var H=P(D,2),W=_(H,!0);h(H),h(R),ot(R,j=>O(x,j),()=>r(x));var ee=P(R,2);Mi(ee,17,()=>e.items,Kl,(j,ue)=>{var oe=qe(),pe=he(oe);{var $e=Ae=>{Rm(Ae,{get item(){return r(ue)},get isMobile(){return l()}})},me=(Ae,re)=>{{var Ne=se=>{Nm(se,{get isMobile(){return l()},get item(){return r(ue)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};L(Ae,se=>{r(ue).type==="OPEN_SUB_MENU"&&se(Ne)},re)}};L(pe,Ae=>{r(ue).type==="SELECT_VALUE"?Ae($e):Ae(me,!1)})}$(j,oe)}),h(k),ot(k,j=>u(j),()=>u()),h(E),B((j,ue,oe)=>{V=te(E,1,"sub-menu menu svelte-7dfsuh",null,V,j),We(E,"data-testid",`sub-menu-${e.id}`),rt(E,`min-width: ${r(T)}px`),I=te(k,1,"items svelte-7dfsuh",null,I,ue),rt(k,r(S)),X=te(R,1,"item header back svelte-7dfsuh",null,X,oe),We(R,"aria-label",a()),be(W,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),rr(R,"clientWidth",j=>O(w,j)),rr(R,"clientHeight",j=>O(y,j)),$(t,E),U(),o()}ct(["keydown","click"]);import{noop as Q3}from"@vkontakte/videoplayer-shared/es2015";var G3=(t,e)=>ru(t,e()),j3=(t,e)=>{t.stopPropagation(),e()()},Y3=M('<div class="value svelte-1ikfjte"> </div>'),Z3=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),X3={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function Dm(t,e){F(e,!0),q(t,X3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,Q3),n=m(e,"valueComponent",3,void 0),s=m(e,"ref",15);var l=Z3();let d;l.__click=[j3,o],l.__keydown=[G3,o];var a=_(l),u=_(a);{var f=T=>{Ea(T,{get icon(){return e.icon}})},v=T=>{var E=qe();let V=g(()=>e.icon);var k=he(E);Li(k,()=>r(V),(I,R)=>{R(I,{})}),$(T,E)};L(u,T=>{typeof e.icon=="string"?T(f):T(v,!1)})}h(a);var p=P(a,2),x=_(p,!0);h(p);var w=P(p,2);{var y=T=>{var E=qe();let V=g(n);var k=he(E);Li(k,()=>r(V),(I,R)=>{R(I,{})}),$(T,E)},S=T=>{var E=Y3(),V=_(E,!0);h(E),B(()=>be(V,e.value)),$(T,E)};L(w,T=>{n()?T(y):T(S,!1)})}h(l),ot(l,T=>s(T),()=>s()),B(T=>{d=te(l,1,"item",null,d,T),We(l,"aria-label",e.ariaLabel),We(l,"data-testid",e.id),be(x,e.label)},[()=>({mobile:i()})]),$(t,l),U()}ct(["click","keydown"]);import{noop as Q1}from"@vkontakte/videoplayer-shared/es2015";var J3=(t,e)=>{pl(t,()=>e())},ex=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),tx=M('<img class="icon" aria-hidden="true"/>'),ix=M('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),ox={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Hm(t,e){F(e,!0),q(t,ox);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,Q1),n=m(e,"closeSettings",3,Q1),s=Y(!1),l=()=>{O(s,!0)},d=S=>{S==null||S.stopPropagation(),o()(),n()()};var a=ix();let u;a.__click=d,a.__keydown=[J3,d];var f=_(a),v=_(f);{var p=S=>{var T=qe(),E=he(T);{var V=I=>{var R=ex();$(I,R)},k=I=>{var R=tx();B(()=>We(R,"src",e.icon)),St("error",R,l),aa(R),$(I,R)};L(E,I=>{r(s)?I(V):I(k,!1)})}$(S,T)},x=S=>{var T=qe();let E=g(()=>e.icon);var V=he(T);Li(V,()=>r(E),(k,I)=>{I(k,{})}),$(S,T)};L(v,S=>{typeof e.icon=="string"?S(p):S(x,!1)})}h(f);var w=P(f,2),y=_(w,!0);h(w),h(a),B(S=>{var T;u=te(a,1,"item",null,u,S),We(a,"aria-label",(T=e.ariaLabel)!=null?T:e.label),We(a,"data-testid",e.id),be(y,e.label)},[()=>({mobile:i()})]),$(t,a),U()}ct(["click","keydown"]);import{noop as sx}from"@vkontakte/videoplayer-shared/es2015";var nx=M('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),rx={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 Fm(t,e){q(t,rx);let i=m(e,"enabled",3,!1);var o=nx(),n=_(o);let s;Ee(2),h(o),B(l=>s=te(n,1,"toggle svelte-17wbjko",null,s,l),[()=>({on:i()})]),$(t,o)}var ax=(t,e,i)=>{u1(t,e(),o=>i()(o))},lx=(t,e,i)=>{t.stopPropagation(),e()(!i())},dx=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),cx=M('<li role="menuitem" tabindex="0"><!></li>');function Um(t,e){F(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,sx),n=m(e,"enabled",3,!1),s=m(e,"tooltipText",3,void 0),l=m(e,"maxTooltipWidth",3,void 0);var d=cx();let a;d.__click=[lx,o,n],d.__keydown=[ax,n,o];var u=_(d);xa(u,{get content(){return s()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,v)=>{var p=dx();let x;var w=_(p),y=_(w);{var S=I=>{Ea(I,{get icon(){return e.icon}})},T=I=>{var R=qe();let X=g(()=>e.icon);var D=he(R);Li(D,()=>r(X),(H,W)=>{W(H,{})}),$(I,R)};L(y,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);Fm(k,{get enabled(){return n()}}),h(p),B(I=>{x=te(p,1,"switch-wrapper",null,x,I),be(V,e.label)},[()=>({mobile:i()})]),$(f,p)},$$slots:{default:!0}}),h(d),B(f=>{var v;a=te(d,1,"item switch-item",null,a,f),We(d,"aria-label",(v=e.ariaLabel)!=null?v:e.label),We(d,"data-testid",e.id)},[()=>({mobile:i()})]),$(t,d),U()}ct(["click","keydown"]);import{isValidURL as Vx,VideoQuality as n_}from"@vkontakte/videoplayer-shared/es2015";var G1=()=>{let t=Y(oi([])),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 ux=M('<div class="quality-icon svelte-t2qk8t"><!></div>'),px=M('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),fx={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 La(t,e){F(e,!0),q(t,fx);let i=m(e,"isSubCase",3,!1),o=g(()=>cu(e.quality));var n=px(),s=_(n);let l;var d=_(s,!0);h(s);var a=P(s,2);{var u=f=>{var v=ux();let p=g(()=>r(o));var x=_(v);Li(x,()=>r(p),(w,y)=>{y(w,{})}),h(v),$(f,v)};L(a,f=>{r(o)&&!e.isMobile&&f(u)})}h(n),B(f=>{l=te(s,1,"svelte-t2qk8t",null,l,f),be(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),$(t,n),U()}import{VideoQuality as mx}from"@vkontakte/videoplayer-shared/es2015";import{VideoQuality as j1}from"@vkontakte/videoplayer-core/es2015";var Y1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},Z1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=Y1({quality:t,availableQualities:e});return i?t===j1.INVARIANT?K("auto_quality_invariant"):K("auto_quality",{actual:o}):o},X1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===j1.INVARIANT?i:`${i}${Y1({quality:t,availableQualities:e})}`:"...";var vx=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),gx={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function yl(t,e){F(e,!0),q(t,gx);let[i,o]=Ue(),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()!==mx.INVARIANT?v:"")),x=g(()=>X1({prefix:r(p),quality:n(),availableQualities:s(),onlyPrefix:!e.selected}));var w=vx(),y=_(w);let S=g(()=>e.selected?n():void 0);La(y,{get quality(){return r(S)},get label(){return r(x)},get isMobile(){return l()},isSubCase:!0}),h(w),$(t,w),U(),o()}var hx=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")},_x={br:!0,span:!0},zm=(t,e={})=>{var d,a,u,f,v,p,x;if(!t)return t;let i=z(z({},_x),e),o=Object.keys(i);if(!o.length)return t;let n=hx(o),s=[],l=0;for(let w of t.matchAll(n)){let y=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+y.length;continue}let E=(v=w.groups)!=null&&v.childrenhtml?zm(w.groups.childrenhtml,i):"",V=(p=w.groups)!=null&&p.childrenhtml?y.replace(new RegExp((x=w.groups)==null?void 0:x.childrenhtml),()=>E||""):y;s.push(t.slice(l,T),V),l=T+y.length}return l===0?t:(s.push(t.slice(l)),s.join(""))};function Fd(t,e){F(e,!1);let i=m(e,"message",8),o=zm(i());Ur();var n=qe(),s=he(n);{var l=d=>{var a=qe(),u=he(a);ql(u,()=>o),$(d,a)};L(s,d=>{o&&d(l)})}$(t,n),U()}var bx=M('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),$x={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 Wm(t,e){F(e,!1),q(t,$x),Ur();var i=bx(),o=_(i);let n=Br(()=>K("quality_applience",{action:`<span>${K("quality_applience_action")}</span>`}));Fd(o,{get message(){return r(n)}}),h(i),$(t,i),U()}var e_=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:yl,valueComponentParams:{prefix:K("other_quality"),selected:o},children:"QUALITY"}},Km=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:K("auto_quality_limit"),valueComponent:e?yl:void 0,valueComponentParams:{prefix:K("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),t_=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Wm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),qm=({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?yl:void 0,valueComponentParams:{prefix:K("high_quality"),selected:i},sublabel:K("high_quality_description")}),Qm=({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?yl:void 0,valueComponentParams:{prefix:K("traffic_saving_quality"),selected:i},sublabel:K("traffic_saving_quality_description")});var Eu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Iu=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(l=Td(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=Eu(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=Eu(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=Eu(t,d);return K("audio_stream_display_language_index",{language:n,index:a})}}let s=Eu(t,e);return K("audio_stream_display_unknown",{index:s})};var yx={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,s=[];return i&&s.push({handler:Km,selected:e&&!o&&!n||!1}),s.push({handler:Qm,selected:o},{handler:qm,selected:n}),{title:K("submenu_quality"),id:"QUALITY_DETAILS",items:[t_(t),...s.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),e_(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:La,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:Km,selected:((i=Qc())==null?void 0:i.type)==="auto_quality"},{handler:Qm,selected:((o=Qc())==null?void 0:o.type)==="traffic_saving"},{handler:qm,selected:((n=Qc())==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:Iu(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}))})},i_=({subMenuId:t,context:e})=>t?[yx[t](e)]:[];var xx=Ie('<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 Gm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=xx();Me(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);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ee(),h(o),$(t,o)}var wx=Ie('<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 jm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=wx();Me(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);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ee(),h(o),$(t,o)}var Sx=Ie('<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 Ym(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Sx();Me(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);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ee(),h(o),$(t,o)}var Cx=Ie('<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 Zm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Cx();Me(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);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ee(),h(o),$(t,o)}var Tx=Ie('<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 Xm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Tx();Me(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);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ee(),h(o),$(t,o)}var Ex=Ie('<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 ku(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Ex();Me(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);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ee(),h(o),$(t,o)}var Ix=Ie('<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 Jm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Ix();Me(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);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ee(),h(o),$(t,o)}var kx=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),Px={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function ev(t,e){F(e,!0),q(t,Px);let[i,o]=Ue(),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,x=g(()=>Z1({quality:n(),availableQualities:s(),isAutoQualityEnabled:l()}));var w=kx(),y=_(w);La(y,{get quality(){return n()},get label(){return r(x)},get isMobile(){return d()}}),h(w),$(t,w),U(),o()}var Mx={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:hd,label:K("menu_quality"),value:e,valueComponent:ev,weight:Kr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Kr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:K("aria_label_submenu_traffic_saving"),icon:Gm,label:K("menu_traffic_saving"),enabled:t,tooltipText:K("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=Iu(t,e);return{id:"AUDIO_LANGUAGES",weight:Kr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:K("aria_label_menu_audio_languages",{actual:i}),icon:jm,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:Kr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:K("aria_label_menu_rate",{actual:i}),icon:Ym,label:K("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Kr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:K("aria_label_menu_subtitle",{actual:t.displayValue}),icon:_d,label:K("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Kr.download,type:"CLICK",onClick:t,label:K("download_video_caption"),ariaLabel:K("aria_label_menu_download"),icon:Zm}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Kr.report,type:"CLICK",onClick:t,label:K("menu_report"),ariaLabel:`${K("menu_report")}. ${K("aria_label_new_tab_alert")}`,icon:Xm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Kr["copy-data"],type:"CLICK",onClick:t,label:K("menu_copy_debug"),ariaLabel:K("menu_copy_debug"),icon:ku,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Kr["save-trace-info"],type:"CLICK",onClick:t,label:K("menu_save_debug"),ariaLabel:K("menu_save_debug"),icon:ku,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Kr["debug-info"],type:"CLICK",onClick:t,ariaLabel:K("aria_label_menu_debug_overlay"),label:K("menu_debug_overlay"),icon:Jm,isHiddenFor:["desktop"]})},o_=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>Mx[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(_a)};var Rx=(t,e)=>{nu(t,e)},Nx=M('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),Ox=M('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),Bx=M("<div><!> <!></div>"),Dx={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 {
305
+ .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function Gm(t,e){z(e,!0),q(t,sx);let[i,o]=Be(),n=()=>C(m,"$isFullscreen",i),s=()=>C(p,"$playerSize",i),l=v(e,"isMobile",3,!1),d=v(e,"playerControlsHeight",3,0),a=v(e,"ariaLabelReturnFromSubMenu",19,()=>Q("aria_label_submenu_back")),u=v(e,"listRef",15);Rt(()=>{let G=e.items.findIndex(be=>be.selected);u().children[G+1].focus()});let f=Ce(),m=f.ui.isFullscreen,p=f.ui.playerSize,x=J(void 0),y=J(0),w=J(0),T=g(()=>l()&&n()?`max-height: ${Math.round(s().height*.6)}px`:l()?"":`max-height: ${s().height-32-r(w)-d()}px; overflow: auto;`),S=g(()=>Math.max(e.minWidth,r(y)));var E=rx();let V;var I=_(E);let L;I.__keydown=[ix,e];var B=_(I);let F;B.__click=[ox,e],B.__keydown=[nx,e];var H=_(B);Ys(H,{direction:"left"});var U=k(H,2),Z=_(U,!0);h(U),h(B),st(B,G=>N(x,G),()=>r(x));var re=k(B,2);ki(re,17,()=>e.items,Gl,(G,be)=>{var ie=Fe(),me=fe(ie);{var pe=Le=>{Km(Le,{get item(){return r(be)},get isMobile(){return l()}})},ue=(Le,Ve)=>{{var ae=Re=>{qm(Re,{get isMobile(){return l()},get item(){return r(be)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};R(Le,Re=>{r(be).type==="OPEN_SUB_MENU"&&Re(ae)},Ve)}};R(me,Le=>{r(be).type==="SELECT_VALUE"?Le(pe):Le(ue,!1)})}$(G,ie)}),h(I),st(I,G=>u(G),()=>u()),h(E),D((G,be,ie)=>{V=se(E,1,"sub-menu menu svelte-7dfsuh",null,V,G),Ne(E,"data-testid",`sub-menu-${e.id}`),dt(E,`min-width: ${r(S)}px`),L=se(I,1,"items svelte-7dfsuh",null,L,be),dt(I,r(T)),F=se(B,1,"item header back svelte-7dfsuh",null,F,ie),Ne(B,"aria-label",a()),ve(Z,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),ur(B,"clientWidth",G=>N(y,G)),ur(B,"clientHeight",G=>N(w,G)),$(t,E),W(),o()}ct(["keydown","click"]);import{noop as ax}from"@vkontakte/videoplayer-shared/es2015";var lx=(t,e)=>uu(t,e()),dx=(t,e)=>{t.stopPropagation(),e()()},cx=P('<div class="value svelte-1ikfjte"> </div>'),ux=P('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),px={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function jm(t,e){z(e,!0),q(t,px);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,ax),n=v(e,"valueComponent",3,void 0),s=v(e,"ref",15);var l=ux();let d;l.__click=[dx,o],l.__keydown=[lx,o];var a=_(l),u=_(a);{var f=S=>{Ea(S,{get icon(){return e.icon}})},m=S=>{var E=Fe();let V=g(()=>e.icon);var I=fe(E);Ai(I,()=>r(V),(L,B)=>{B(L,{})}),$(S,E)};R(u,S=>{typeof e.icon=="string"?S(f):S(m,!1)})}h(a);var p=k(a,2),x=_(p,!0);h(p);var y=k(p,2);{var w=S=>{var E=Fe();let V=g(n);var I=fe(E);Ai(I,()=>r(V),(L,B)=>{B(L,{})}),$(S,E)},T=S=>{var E=cx(),V=_(E,!0);h(E),D(()=>ve(V,e.value)),$(S,E)};R(y,S=>{n()?S(w):S(T,!1)})}h(l),st(l,S=>s(S),()=>s()),D(S=>{d=se(l,1,"item",null,d,S),Ne(l,"aria-label",e.ariaLabel),Ne(l,"data-testid",e.id),ve(x,e.label)},[()=>({mobile:i()})]),$(t,l),W()}ct(["click","keydown"]);import{noop as l0}from"@vkontakte/videoplayer-shared/es2015";var fx=(t,e)=>{ul(t,()=>e())},mx=P('<div class="icon icon-error-stub"><div class="inner"></div></div>'),vx=P('<img class="icon" aria-hidden="true"/>'),gx=P('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),hx={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Ym(t,e){z(e,!0),q(t,hx);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,l0),n=v(e,"closeSettings",3,l0),s=J(!1),l=()=>{N(s,!0)},d=T=>{T==null||T.stopPropagation(),o()(),n()()};var a=gx();let u;a.__click=d,a.__keydown=[fx,d];var f=_(a),m=_(f);{var p=T=>{var S=Fe(),E=fe(S);{var V=L=>{var B=mx();$(L,B)},I=L=>{var B=vx();D(()=>Ne(B,"src",e.icon)),kt("error",B,l),la(B),$(L,B)};R(E,L=>{r(s)?L(V):L(I,!1)})}$(T,S)},x=T=>{var S=Fe();let E=g(()=>e.icon);var V=fe(S);Ai(V,()=>r(E),(I,L)=>{L(I,{})}),$(T,S)};R(m,T=>{typeof e.icon=="string"?T(p):T(x,!1)})}h(f);var y=k(f,2),w=_(y,!0);h(y),h(a),D(T=>{var S;u=se(a,1,"item",null,u,T),Ne(a,"aria-label",(S=e.ariaLabel)!=null?S:e.label),Ne(a,"data-testid",e.id),ve(w,e.label)},[()=>({mobile:i()})]),$(t,a),W()}ct(["click","keydown"]);import{noop as $x}from"@vkontakte/videoplayer-shared/es2015";var _x=P('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),bx={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 Zm(t,e){q(t,bx);let i=v(e,"enabled",3,!1);var o=_x(),n=_(o);let s;ye(2),h(o),D(l=>s=se(n,1,"toggle svelte-17wbjko",null,s,l),[()=>({on:i()})]),$(t,o)}var yx=(t,e,i)=>{E1(t,e(),o=>i()(o))},xx=(t,e,i)=>{t.stopPropagation(),e()(!i())},wx=P('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),Sx=P('<li role="menuitem" tabindex="0"><!></li>');function Xm(t,e){z(e,!0);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,$x),n=v(e,"enabled",3,!1),s=v(e,"tooltipText",3,void 0),l=v(e,"maxTooltipWidth",3,void 0);var d=Sx();let a;d.__click=[xx,o,n],d.__keydown=[yx,n,o];var u=_(d);xa(u,{get content(){return s()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,m)=>{var p=wx();let x;var y=_(p),w=_(y);{var T=L=>{Ea(L,{get icon(){return e.icon}})},S=L=>{var B=Fe();let F=g(()=>e.icon);var H=fe(B);Ai(H,()=>r(F),(U,Z)=>{Z(U,{})}),$(L,B)};R(w,L=>{typeof e.icon=="string"?L(T):L(S,!1)})}h(y);var E=k(y,2),V=_(E,!0);h(E);var I=k(E,2);Zm(I,{get enabled(){return n()}}),h(p),D(L=>{x=se(p,1,"switch-wrapper",null,x,L),ve(V,e.label)},[()=>({mobile:i()})]),$(f,p)},$$slots:{default:!0}}),h(d),D(f=>{var m;a=se(d,1,"item switch-item",null,a,f),Ne(d,"aria-label",(m=e.ariaLabel)!=null?m:e.label),Ne(d,"data-testid",e.id)},[()=>({mobile:i()})]),$(t,d),W()}ct(["click","keydown"]);import{isValidURL as Gx,VideoQuality as b0}from"@vkontakte/videoplayer-shared/es2015";var d0=()=>{let t=J(ni([])),e=g(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{N(t,r(t).slice(0,-1),!0)},popAllSubMenus:()=>{N(t,[],!0)}}};var Cx=P('<div class="quality-icon svelte-t2qk8t"><!></div>'),Tx=P('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),Ex={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 Ma(t,e){z(e,!0),q(t,Ex);let i=v(e,"isSubCase",3,!1),o=g(()=>gu(e.quality));var n=Tx(),s=_(n);let l;var d=_(s,!0);h(s);var a=k(s,2);{var u=f=>{var m=Cx();let p=g(()=>r(o));var x=_(m);Ai(x,()=>r(p),(y,w)=>{w(y,{})}),h(m),$(f,m)};R(a,f=>{r(o)&&!e.isMobile&&f(u)})}h(n),D(f=>{l=se(s,1,"svelte-t2qk8t",null,l,f),ve(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),$(t,n),W()}import{VideoQuality as Ix}from"@vkontakte/videoplayer-shared/es2015";import{VideoQuality as c0}from"@vkontakte/videoplayer-core/es2015";var u0=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},p0=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=u0({quality:t,availableQualities:e});return i?t===c0.INVARIANT?Q("auto_quality_invariant"):Q("auto_quality",{actual:o}):o},f0=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===c0.INVARIANT?i:`${i}${u0({quality:t,availableQualities:e})}`:"...";var kx=P('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),Ax={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function $l(t,e){z(e,!0),q(t,Ax);let[i,o]=Be(),n=()=>C(a,"$currentQuality$",i),s=()=>C(u,"$availableQualities$",i),l=()=>C(f,"$isMobile$",i),d=Ce(),a=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,m=" \xB7 ",p=g(()=>e.prefix+(e.selected&&n()!==Ix.INVARIANT?m:"")),x=g(()=>f0({prefix:r(p),quality:n(),availableQualities:s(),onlyPrefix:!e.selected}));var y=kx(),w=_(y);let T=g(()=>e.selected?n():void 0);Ma(w,{get quality(){return r(T)},get label(){return r(x)},get isMobile(){return l()},isSubCase:!0}),h(y),$(t,y),W(),o()}var Px=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")},Lx={br:!0,span:!0},Jm=(t,e={})=>{var d,a,u,f,m,p,x;if(!t)return t;let i=K(K({},Lx),e),o=Object.keys(i);if(!o.length)return t;let n=Px(o),s=[],l=0;for(let y of t.matchAll(n)){let w=y[0],T=((d=y.groups)==null?void 0:d.keyhtml)||((a=y.groups)==null?void 0:a.keyi18n)||((u=y.groups)==null?void 0:u.keyhtmlself)||((f=y.groups)==null?void 0:f.keyi18nself)||"",{index:S}=y;if(!i[T]){s.push(t.slice(l,S)),l=S+w.length;continue}let E=(m=y.groups)!=null&&m.childrenhtml?Jm(y.groups.childrenhtml,i):"",V=(p=y.groups)!=null&&p.childrenhtml?w.replace(new RegExp((x=y.groups)==null?void 0:x.childrenhtml),()=>E||""):w;s.push(t.slice(l,S),V),l=S+w.length}return l===0?t:(s.push(t.slice(l)),s.join(""))};function Kd(t,e){z(e,!1);let i=v(e,"message",8),o=Jm(i());Kr();var n=Fe(),s=fe(n);{var l=d=>{var a=Fe(),u=fe(a);jl(u,()=>o),$(d,a)};R(s,d=>{o&&d(l)})}$(t,n),W()}var Mx=P('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),Vx={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 ev(t,e){z(e,!1),q(t,Vx),Kr();var i=Mx(),o=_(i);let n=Fr(()=>Q("quality_applience",{action:`<span>${Q("quality_applience_action")}</span>`}));Kd(o,{get message(){return r(n)}}),h(i),$(t,i),W()}var v0=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:$l,valueComponentParams:{prefix:Q("other_quality"),selected:o},children:"QUALITY"}},tv=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:Q("auto_quality_limit"),valueComponent:e?$l:void 0,valueComponentParams:{prefix:Q("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),g0=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:ev,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),iv=({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?$l:void 0,valueComponentParams:{prefix:Q("high_quality"),selected:i},sublabel:Q("high_quality_description")}),ov=({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?$l:void 0,valueComponentParams:{prefix:Q("traffic_saving_quality"),selected:i},sublabel:Q("traffic_saving_quality_description")});var Vu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Ru=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(l=kd(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=Vu(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=Vu(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=Vu(t,d);return Q("audio_stream_display_language_index",{language:n,index:a})}}let s=Vu(t,e);return Q("audio_stream_display_unknown",{index:s})};var Rx={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,s=[];return i&&s.push({handler:tv,selected:e&&!o&&!n||!1}),s.push({handler:ov,selected:o},{handler:iv,selected:n}),{title:Q("submenu_quality"),id:"QUALITY_DETAILS",items:[g0(t),...s.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),v0(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:Ma,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:tv,selected:((i=Jc())==null?void 0:i.type)==="auto_quality"},{handler:ov,selected:((o=Jc())==null?void 0:o.type)==="traffic_saving"},{handler:iv,selected:((n=Jc())==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:Ru(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===Cu?"sub_off":void 0}))})},h0=({subMenuId:t,context:e})=>t?[Rx[t](e)]:[];var Ox=xe('<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 nv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Ox();Ie(o,()=>K({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);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(),h(o),$(t,o)}var Nx=xe('<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 rv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Nx();Ie(o,()=>K({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);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(),h(o),$(t,o)}var Bx=xe('<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 sv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Bx();Ie(o,()=>K({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);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(),h(o),$(t,o)}var Dx=xe('<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 av(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Dx();Ie(o,()=>K({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);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(),h(o),$(t,o)}var Fx=xe('<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 lv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Fx();Ie(o,()=>K({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);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(),h(o),$(t,o)}var Hx=xe('<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 Ou(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Hx();Ie(o,()=>K({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);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(),h(o),$(t,o)}var Ux=xe('<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 dv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Ux();Ie(o,()=>K({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);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(),h(o),$(t,o)}var zx=P('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),Wx={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function cv(t,e){z(e,!0),q(t,Wx);let[i,o]=Be(),n=()=>C(u,"$currentQuality$",i),s=()=>C(f,"$availableQualities$",i),l=()=>C(m,"$isAutoQualityEnabled$",i),d=()=>C(p,"$isMobile$",i),a=Ce(),u=a.state.currentQuality$,f=a.state.availableQualities$,m=a.state.isAutoQualityEnabled$,p=a.ui.isMobile,x=g(()=>p0({quality:n(),availableQualities:s(),isAutoQualityEnabled:l()}));var y=zx(),w=_(y);Ma(w,{get quality(){return n()},get label(){return r(x)},get isMobile(){return d()}}),h(y),$(t,y),W(),o()}var qx={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:$d,label:Q("menu_quality"),value:e,valueComponent:cv,weight:Gr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Gr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:Q("aria_label_submenu_traffic_saving"),icon:nv,label:Q("menu_traffic_saving"),enabled:t,tooltipText:Q("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=Ru(t,e);return{id:"AUDIO_LANGUAGES",weight:Gr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:Q("aria_label_menu_audio_languages",{actual:i}),icon:rv,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:Gr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:Q("aria_label_menu_rate",{actual:i}),icon:sv,label:Q("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Gr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:Q("aria_label_menu_subtitle",{actual:t.displayValue}),icon:yd,label:Q("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Gr.download,type:"CLICK",onClick:t,label:Q("download_video_caption"),ariaLabel:Q("aria_label_menu_download"),icon:av}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Gr.report,type:"CLICK",onClick:t,label:Q("menu_report"),ariaLabel:`${Q("menu_report")}. ${Q("aria_label_new_tab_alert")}`,icon:lv,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Gr["copy-data"],type:"CLICK",onClick:t,label:Q("menu_copy_debug"),ariaLabel:Q("menu_copy_debug"),icon:Ou,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Gr["save-trace-info"],type:"CLICK",onClick:t,label:Q("menu_save_debug"),ariaLabel:Q("menu_save_debug"),icon:Ou,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Gr["debug-info"],type:"CLICK",onClick:t,ariaLabel:Q("aria_label_menu_debug_overlay"),label:Q("menu_debug_overlay"),icon:dv,isHiddenFor:["desktop"]})},_0=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>qx[n](e)),...i.map(n=>Ht(K({},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(_a)};var jx=(t,e)=>{cu(t,e)},Yx=P('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),Zx=P('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),Xx=P("<div><!> <!></div>"),Jx={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 {
301
306
  /* \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),
302
307
  .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),
303
308
  .settings-menu.svelte-17or3al .switch-wrapper {padding:0 32px 0 18px;}.settings-menu.svelte-17or3al .item.mobile:not(.switch-item),
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 Ud(t,e){F(e,!0),q(t,Dx);let[i,o]=Ue(),n=()=>C(fe,"$settingsMenuVisible",i),s=()=>C(st,"$settingsMenuOpenedByKeyboard",i),l=()=>C(Ct,"$debugPanelVisible",i),d=()=>C(Le,"$isMobile",i),a=()=>C(vt,"$playerSize",i),u=()=>C(Fe,"$hasMpegSources$",i),f=()=>C(Pe,"$mobileNotReportControlHidden$",i),v=()=>C(Ne,"$autoQualityLimitingAvailable$",i),p=()=>C(ie,"$availableSubtitlesList$",i),x=()=>C(Ke,"$isLiveWithPlaybackSpeed",i),w=()=>C(me,"$availableAudioStreams$",i),y=()=>C(le,"$availablePlaybackRates$",i),S=()=>C($e,"$currentAudioStream$",i),T=()=>C(De,"$currentPlaybackRate$",i),E=()=>C(lt,"$trafficSavingEnabled",i),V=()=>C(Ae,"$currentQuality$",i),k=()=>C(se,"$isAutoQualityEnabled$",i),I=()=>C(ge,"$currentSubtitle$",i),R=()=>C(Ut,"$additionalSettingsMenuItems$",i),X=()=>C(N,"$isAutoQualityAvailable$",i),D=()=>C(re,"$availableQualities$",i),H=()=>C(mt,"$highQualityEnabled",i),W=m(e,"ref",15,void 0),ee=m(e,"playerControlsHeight",3,0),j=oi({}),ue=oi({}),oe=ke(),pe=kt(),$e=oe.state.audioStream$,me=oe.state.availableAudioStreams$,Ae=oe.state.currentQuality$,re=oe.state.availableQualities$,Ne=oe.state.autoQualityLimitingAvailable$,se=oe.state.isAutoQualityEnabled$,N=oe.state.isAutoQualityAvailable$,De=oe.state.currentPlaybackRate$,le=oe.state.availablePlaybackRates$,ge=oe.state.currentSubtitle$,ie=oe.state.availableSubtitlesList$,ve=oe.state.canDownload,Fe=oe.state.hasMpegSources$,fe=oe.ui.settingsMenu.visible$,st=oe.ui.settingsMenu.openedByBtnKeyboard$,Z=oe.ui.settingsMenu.ref$,Le=oe.ui.isMobile,Pe=oe.ui.mobileNotReportControlHidden$,Ke=oe.state.canChangePlaybackSpeed$,lt=oe.state.trafficSavingEnabled$,mt=oe.state.highQualityEnabled$,vt=oe.ui.playerSize,Ct=oe.ui.debugPanelVisible,Ye=oe.state.isInteractiveTime$,Ut=oe.ui.additionalSettingsMenuItems$,ti=oe.ui.t,jt=oe.actions.internal.downloadVideo,Wt=oe.actions.internal.closeSettingsMenu,ne=oe.actions.internal.openSettingsSubMenu,Ht=oe.actions.internal.closeSettingsSubMenu,Se=Y(!1),_e=Y(void 0),ce=G1();Qe(()=>{!n()&&ce.current&&(Ht(ue[ce.current]),ce.popAllSubMenus())}),Qe(()=>{n()||O(_e,void 0)}),Qe(()=>{!ce.current&&r(_e)&&d1(j,r(_e))}),Qe(()=>{W()&&Z.set(W())});function Be(we){return xt(this,null,function*(){var Ft;ce.pushSubMenu(we),yield Io(),ne(we,ue[we]);let ft=(Ft=W())==null?void 0:Ft.firstElementChild;ft&&_f(ft)})}function ze(we){var ft;we==null||we.stopPropagation(),s()||(ft=e.returnFocus)==null||ft.call(e),Wt(),O(Se,!1)}function Re(we,ft){oe.actions.internal.setQuality(we,{appliesTo:ft}),ze()}function je(we){oe.actions.internal.setAudioStream(we),ze()}function He(we,ft){oe.actions.internal.setTrafficSavingEnabled(we,ft),pe.features.qualityDetailsSubMenuEnabled&&ze()}function Xe(we,ft){oe.actions.internal.setHighQualityEnabled(we,ft),ze()}function Pt(we){oe.actions.internal.setPlaybackRate(we),ze()}function Kt(we){oe.actions.internal.setSubtitle(we),ze()}function tt(){jt()}function bi(){Vx(e.supportLink)&&window.open(e.supportLink,"_blank"),oe.actions.internal.reportProblem(),oe.actions.internal.pause()}function Ti(){cl(oe.actions.internal.getDebugTextData())}let dt=()=>{let we=oe.actions.internal.getTraceTextData(),ft=new Blob([...we],{type:"application/json"}),Ft=window.URL.createObjectURL(ft);fa(Ft,"vk_player_trace_info","json")};function qt(){Ct.set(!l())}function ni(){O(Se,!0)}function ri(){O(Se,!1)}function Ao(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-ee()}px; overflow: auto;`}let Mo=g(()=>ve&&u()&&!f()),go=g(()=>pe.features.trafficSaving&&!f()&&v()&&!pe.features.qualityDetailsSubMenuEnabled),zt=g(()=>p().length>0&&!f()),ui=g(()=>!!x()&&!f()),At=g(()=>pe.features.audioLanguages&&w().length>=2&&!f()),pt=g(()=>!f());Lt(()=>Ye.subscribe(we=>{we&&!d()&&!r(Se)&&!s()&&ze()}));let xi=g(()=>{let we=[r(pt)&&"QUALITY_SETTINGS",r(At)&&"AUDIO_LANGUAGES",r(ui)&&"PLAYBACK_RATE",r(zt)&&"SUBTITLES",r(go)&&"TRAFFIC_SAVING_SWITCH",r(Mo)&&"DOWNLOAD",pe.showSupport&&"SHOW_SUPPORT","COPY_DATA",pe.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(ft=>!!ft);return o_({items:we,context:{qualityDetailsSubMenuEnabled:pe.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:y(),currentAudioStream:S(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:Pt,trafficSavingEnabled:E(),toggleTrafficSaving:He,currentQuality:V()||n_.INVARIANT,isAutoQualityEnabled:k()||!1,currentSubtitle:I(),isMobile:d(),onDownloadClick:tt,onCopyDataClick:Ti,onReportProblemClick:bi,onSaveTraceDataClick:dt,toggleShowDebugInfo:qt},additionalSettingsMenuItems:R()})}),ho=g(()=>i_({subMenuId:ce.current,context:{availablePlaybackRates:y(),selectPlaybackRate:Pt,trafficSavingEnabled:E(),toggleTrafficSaving:He,currentQuality:V()||n_.INVARIANT,isAutoQualityEnabled:k()||!1,isAutoQualityAvailable:X()||!1,availableQualities:D(),highQualityEnabled:H(),toggleHighQuality:Xe,availableAudioStreams:w(),availableSubtitlesList:p(),closeSettingsMenu:Wt,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:je,selectQuality:Re,selectSubtitle:Kt}}));var Qi=Bx();let di;var Ko=_(Qi);{var en=we=>{var ft=Ox();let Ft;ft.__keydown=[Rx,Wt];var _t=_(ft);{var Yt=fi=>{var Tt=Nx();let $i;var tn=_(Tt),on=_(tn,!0);h(tn);var Rn=P(tn,2);Rn.__click=ze,h(Tt),B((mi,Lo)=>{$i=te(Tt,1,"item header svelte-17or3al",null,$i,mi),be(on,Lo)},[()=>({mobile:d()}),()=>ti("submenu_settings")]),$(fi,Tt)};L(_t,fi=>{d()&&fi(Yt)})}var pi=P(_t,2);let _o;Mi(pi,21,()=>r(xi),fi=>fi.id,(fi,Tt)=>{var $i=qe(),tn=he($i);{var on=mi=>{Dm(mi,{get isMobile(){return d()},get id(){return r(Tt).id},get icon(){return r(Tt).icon},get label(){return r(Tt).label},get ariaLabel(){return r(Tt).ariaLabel},get value(){return r(Tt).value},get valueComponent(){return r(Tt).valueComponent},onClick:()=>{Be(r(Tt).children),O(_e,r(Tt).id,!0)},get ref(){return j[r(Tt).id]},set ref(Lo){j[r(Tt).id]=Lo}})},Rn=(mi,Lo)=>{{var Nn=Ei=>{Hm(Ei,{get isMobile(){return d()},get id(){return r(Tt).id},get onClick(){return r(Tt).onClick},get icon(){return r(Tt).icon},get label(){return r(Tt).label},get ariaLabel(){return r(Tt).ariaLabel},closeSettings:ze})},ar=(Ei,On)=>{{var Di=bo=>{Um(bo,{get isMobile(){return d()},get id(){return r(Tt).id},get onClick(){return r(Tt).onClick},get icon(){return r(Tt).icon},get label(){return r(Tt).label},get ariaLabel(){return r(Tt).ariaLabel},get enabled(){return r(Tt).enabled},get tooltipText(){return r(Tt).tooltipText},get maxTooltipWidth(){return r(Tt).maxTooltipWidth}})};L(Ei,bo=>{r(Tt).type==="SWITCH"&&bo(Di)},On)}};L(mi,Ei=>{r(Tt).type==="CLICK"?Ei(Nn):Ei(ar,!1)},Lo)}};L(tn,mi=>{r(Tt).type==="OPEN_SUB_MENU"?mi(on):mi(Rn,!1)})}$(fi,$i)}),h(pi),ot(pi,fi=>W(fi),()=>W()),h(ft),B((fi,Tt,$i)=>{Ft=te(ft,1,"settings-menu menu svelte-17or3al",null,Ft,fi),_o=te(pi,1,"items",null,_o,Tt),rt(pi,$i)},[()=>({desktop:!d(),mobile:d(),hidden:!!ce.current}),()=>({mobile:d()}),Ao]),St("mouseenter",ft,ni),St("mouseleave",ft,ri),$(we,ft)};L(Ko,we=>{n()&&we(en)})}var Q=P(Ko,2);Mi(Q,17,()=>r(ho),we=>we.id,(we,ft)=>{let Ft=g(()=>{var _t;return(_t=r(ft).minWidth)!=null?_t:137});Bm(we,{get isMobile(){return d()},get playerControlsHeight(){return ee()},get returnFromSubMenu(){return ce.popSubMenu},get id(){return r(ft).id},get title(){return r(ft).title},get closeSettingsMenu(){return Wt},openSubMenuList:Be,get items(){return r(ft).items},get minWidth(){return r(Ft)},get refMenuItems(){return j},get listRef(){return ue[r(ft).id]},set listRef(_t){ue[r(ft).id]=_t}})}),h(Qi),B(we=>di=te(Qi,1,"settings-menu-container svelte-17or3al",null,di,we),[()=>({mobile:d(),hidden:!n()})]),$(t,Qi),U(),o()}ct(["keydown","click"]);var Hx=t=>t;function r_(t,{delay:e=0,duration:i=400,easing:o=Hx}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:s=>`opacity: ${s*n}`}}var Fx=M('<button class="button svelte-1sbbskl"> </button>'),Ux={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 tv(t,e){q(t,Ux);var i=Fx();i.__click=function(...n){var s;(s=e.onClick)==null||s.apply(this,n)};var o=_(i,!0);h(i),B(()=>be(o,e.label)),$(t,i)}ct(["click"]);var zx=M('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),Wx={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
309
+ .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 qd(t,e){z(e,!0),q(t,Jx);let[i,o]=Be(),n=()=>C(Ze,"$settingsMenuVisible",i),s=()=>C($e,"$settingsMenuOpenedByKeyboard",i),l=()=>C(_t,"$debugPanelVisible",i),d=()=>C(we,"$isMobile",i),a=()=>C(pt,"$playerSize",i),u=()=>C(Oe,"$hasMpegSources$",i),f=()=>C(Te,"$mobileNotReportControlHidden$",i),m=()=>C(ae,"$autoQualityLimitingAvailable$",i),p=()=>C(j,"$availableSubtitlesList$",i),x=()=>C(Ke,"$isLiveWithPlaybackSpeed",i),y=()=>C(ue,"$availableAudioStreams$",i),w=()=>C(at,"$availablePlaybackRates$",i),T=()=>C(pe,"$currentAudioStream$",i),S=()=>C(M,"$currentPlaybackRate$",i),E=()=>C(it,"$trafficSavingEnabled",i),V=()=>C(Le,"$currentQuality$",i),I=()=>C(Re,"$isAutoQualityEnabled$",i),L=()=>C(De,"$currentSubtitle$",i),B=()=>C(zt,"$additionalSettingsMenuItems$",i),F=()=>C(X,"$isAutoQualityAvailable$",i),H=()=>C(Ve,"$availableQualities$",i),U=()=>C(ht,"$highQualityEnabled",i),Z=v(e,"ref",15,void 0),re=v(e,"playerControlsHeight",3,0),G=ni({}),be=ni({}),ie=Ce(),me=At(),pe=ie.state.audioStream$,ue=ie.state.availableAudioStreams$,Le=ie.state.currentQuality$,Ve=ie.state.availableQualities$,ae=ie.state.autoQualityLimitingAvailable$,Re=ie.state.isAutoQualityEnabled$,X=ie.state.isAutoQualityAvailable$,M=ie.state.currentPlaybackRate$,at=ie.state.availablePlaybackRates$,De=ie.state.currentSubtitle$,j=ie.state.availableSubtitlesList$,oe=ie.state.canDownload,Oe=ie.state.hasMpegSources$,Ze=ie.ui.settingsMenu.visible$,$e=ie.ui.settingsMenu.openedByBtnKeyboard$,te=ie.ui.settingsMenu.ref$,we=ie.ui.isMobile,Te=ie.ui.mobileNotReportControlHidden$,Ke=ie.state.canChangePlaybackSpeed$,it=ie.state.trafficSavingEnabled$,ht=ie.state.highQualityEnabled$,pt=ie.ui.playerSize,_t=ie.ui.debugPanelVisible,Je=ie.state.isInteractiveTime$,zt=ie.ui.additionalSettingsMenuItems$,Yt=ie.ui.t,Zt=ie.actions.internal.downloadVideo,Xt=ie.actions.internal.closeSettingsMenu,ke=ie.actions.internal.openSettingsSubMenu,Jt=ie.actions.internal.closeSettingsSubMenu,he=J(!1),Ee=J(void 0),ce=d0();ze(()=>{!n()&&ce.current&&(Jt(be[ce.current]),ce.popAllSubMenus())}),ze(()=>{n()||N(Ee,void 0)}),ze(()=>{!ce.current&&r(Ee)&&C1(G,r(Ee))}),ze(()=>{Z()&&te.set(Z())});function Ue(O){return Tt(this,null,function*(){var Qt;ce.pushSubMenu(O),yield yo(),ke(O,be[O]);let et=(Qt=Z())==null?void 0:Qt.firstElementChild;et&&If(et)})}function We(O){var et;O==null||O.stopPropagation(),s()||(et=e.returnFocus)==null||et.call(e),Xt(),N(he,!1)}function Se(O,et){ie.actions.internal.setQuality(O,{appliesTo:et}),We()}function lt(O){ie.actions.internal.setAudioStream(O),We()}function qe(O,et){ie.actions.internal.setTrafficSavingEnabled(O,et),me.features.qualityDetailsSubMenuEnabled&&We()}function bt(O,et){ie.actions.internal.setHighQualityEnabled(O,et),We()}function Qe(O){ie.actions.internal.setPlaybackRate(O),We()}function je(O){ie.actions.internal.setSubtitle(O),We()}function tt(){Zt()}function Vt(){Gx(e.supportLink)&&window.open(e.supportLink,"_blank"),ie.actions.internal.reportProblem(),ie.actions.internal.pause()}function Wt(){dl(ie.actions.internal.getDebugTextData())}let ai=()=>{let O=ie.actions.internal.getTraceTextData(),et=new Blob([...O],{type:"application/json"}),Qt=window.URL.createObjectURL(et);fa(Qt,"vk_player_trace_info","json")};function li(){_t.set(!l())}function qi(){N(he,!0)}function ao(){N(he,!1)}function oi(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-re()}px; overflow: auto;`}let ft=g(()=>oe&&u()&&!f()),Qi=g(()=>me.features.trafficSaving&&!f()&&m()&&!me.features.qualityDetailsSubMenuEnabled),Pt=g(()=>p().length>0&&!f()),nt=g(()=>!!x()&&!f()),ei=g(()=>me.features.audioLanguages&&y().length>=2&&!f()),to=g(()=>!f());Rt(()=>Je.subscribe(O=>{O&&!d()&&!r(he)&&!s()&&We()}));let Ct=g(()=>{let O=[r(to)&&"QUALITY_SETTINGS",r(ei)&&"AUDIO_LANGUAGES",r(nt)&&"PLAYBACK_RATE",r(Pt)&&"SUBTITLES",r(Qi)&&"TRAFFIC_SAVING_SWITCH",r(ft)&&"DOWNLOAD",me.showSupport&&"SHOW_SUPPORT","COPY_DATA",me.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(et=>!!et);return _0({items:O,context:{qualityDetailsSubMenuEnabled:me.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:w(),currentAudioStream:T(),availableAudioStreams:y(),currentPlaybackRate:S(),selectPlaybackRate:Qe,trafficSavingEnabled:E(),toggleTrafficSaving:qe,currentQuality:V()||b0.INVARIANT,isAutoQualityEnabled:I()||!1,currentSubtitle:L(),isMobile:d(),onDownloadClick:tt,onCopyDataClick:Wt,onReportProblemClick:Vt,onSaveTraceDataClick:ai,toggleShowDebugInfo:li},additionalSettingsMenuItems:B()})}),ut=g(()=>h0({subMenuId:ce.current,context:{availablePlaybackRates:w(),selectPlaybackRate:Qe,trafficSavingEnabled:E(),toggleTrafficSaving:qe,currentQuality:V()||b0.INVARIANT,isAutoQualityEnabled:I()||!1,isAutoQualityAvailable:F()||!1,availableQualities:H(),highQualityEnabled:U(),toggleHighQuality:bt,availableAudioStreams:y(),availableSubtitlesList:p(),closeSettingsMenu:Xt,currentAudioStream:T(),isMobile:d(),selectAudioLanguage:lt,selectQuality:Se,selectSubtitle:je}}));var Ot=Xx();let So;var Co=_(Ot);{var Ko=O=>{var et=Zx();let Qt;et.__keydown=[jx,Xt];var Gt=_(et);{var gt=_i=>{var xt=Yx();let Ei;var lo=_(xt),_n=_(lo,!0);h(lo);var bn=k(lo,2);bn.__click=We,h(xt),D((gi,co)=>{Ei=se(xt,1,"item header svelte-17or3al",null,Ei,gi),ve(_n,co)},[()=>({mobile:d()}),()=>Yt("submenu_settings")]),$(_i,xt)};R(Gt,_i=>{d()&&_i(gt)})}var si=k(Gt,2);let yi;ki(si,21,()=>r(Ct),_i=>_i.id,(_i,xt)=>{var Ei=Fe(),lo=fe(Ei);{var _n=gi=>{jm(gi,{get isMobile(){return d()},get id(){return r(xt).id},get icon(){return r(xt).icon},get label(){return r(xt).label},get ariaLabel(){return r(xt).ariaLabel},get value(){return r(xt).value},get valueComponent(){return r(xt).valueComponent},onClick:()=>{Ue(r(xt).children),N(Ee,r(xt).id,!0)},get ref(){return G[r(xt).id]},set ref(co){G[r(xt).id]=co}})},bn=(gi,co)=>{{var fr=io=>{Ym(io,{get isMobile(){return d()},get id(){return r(xt).id},get onClick(){return r(xt).onClick},get icon(){return r(xt).icon},get label(){return r(xt).label},get ariaLabel(){return r(xt).ariaLabel},closeSettings:We})},uo=(io,Dn)=>{{var qo=To=>{Xm(To,{get isMobile(){return d()},get id(){return r(xt).id},get onClick(){return r(xt).onClick},get icon(){return r(xt).icon},get label(){return r(xt).label},get ariaLabel(){return r(xt).ariaLabel},get enabled(){return r(xt).enabled},get tooltipText(){return r(xt).tooltipText},get maxTooltipWidth(){return r(xt).maxTooltipWidth}})};R(io,To=>{r(xt).type==="SWITCH"&&To(qo)},Dn)}};R(gi,io=>{r(xt).type==="CLICK"?io(fr):io(uo,!1)},co)}};R(lo,gi=>{r(xt).type==="OPEN_SUB_MENU"?gi(_n):gi(bn,!1)})}$(_i,Ei)}),h(si),st(si,_i=>Z(_i),()=>Z()),h(et),D((_i,xt,Ei)=>{Qt=se(et,1,"settings-menu menu svelte-17or3al",null,Qt,_i),yi=se(si,1,"items",null,yi,xt),dt(si,Ei)},[()=>({desktop:!d(),mobile:d(),hidden:!!ce.current}),()=>({mobile:d()}),oi]),kt("mouseenter",et,qi),kt("mouseleave",et,ao),$(O,et)};R(Co,O=>{n()&&O(Ko)})}var Bn=k(Co,2);ki(Bn,17,()=>r(ut),O=>O.id,(O,et)=>{let Qt=g(()=>{var Gt;return(Gt=r(et).minWidth)!=null?Gt:137});Gm(O,{get isMobile(){return d()},get playerControlsHeight(){return re()},get returnFromSubMenu(){return ce.popSubMenu},get id(){return r(et).id},get title(){return r(et).title},get closeSettingsMenu(){return Xt},openSubMenuList:Ue,get items(){return r(et).items},get minWidth(){return r(Qt)},get refMenuItems(){return G},get listRef(){return be[r(et).id]},set listRef(Gt){be[r(et).id]=Gt}})}),h(Ot),D(O=>So=se(Ot,1,"settings-menu-container svelte-17or3al",null,So,O),[()=>({mobile:d(),hidden:!n()})]),$(t,Ot),W(),o()}ct(["keydown","click"]);var e5=t=>t;function $0(t,{delay:e=0,duration:i=400,easing:o=e5}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:s=>`opacity: ${s*n}`}}var t5=P('<button class="button svelte-1sbbskl"> </button>'),i5={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 uv(t,e){q(t,i5);var i=t5();i.__click=function(...n){var s;(s=e.onClick)==null||s.apply(this,n)};var o=_(i,!0);h(i),D(()=>ve(o,e.label)),$(t,i)}ct(["click"]);var o5=P('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),n5={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
305
310
  /**
306
311
  * \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.
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 zd(t,e){F(e,!0),q(t,Wx);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=kt(),{ui:{t:n}}=ke(),s=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=zx(),d=_(l),a=_(d),u=_(a),f=_(u);Fd(f,{get message(){return s}}),h(u);var v=P(u,2);{var p=w=>{let y=g(()=>n("slow_video_notification_button"));tv(w,{get label(){return r(y)},get onClick(){return e.onSelectAutoQuality}})};L(v,w=>{o||w(p)})}h(a);var x=P(a,2);ba(x,{get onClick(){return e.onClose}}),h(d),h(l),Bp(3,d,()=>r_,()=>({duration:i})),$(t,l),U()}import{isIntersecting as s_,Subscription as Kx}from"@vkontakte/videoplayer-shared/es2015";var Va="annotation",Pu=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",Va),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(x=>x.forEach(()=>{let w=xs(d,this.shadowRootContainer);o.forEach(y=>{let S=a==null?void 0:a[y],T=S?xe(S):null,E=u==null?void 0:u[y];T&&(E==null||E.set(s_(T,w)))})}));f.observe(d,{childList:!0,subtree:!0}),l.observer=f;let v=new Kx;o.forEach(x=>{a&&v.add(a[x].subscribe(w=>{let y=u==null?void 0:u[x];w&&w.isDisplayed?y==null||y.set(s_(w,xs(d,this.shadowRootContainer))):y==null||y.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,x;(x=(p=this.store)==null?void 0:p.ui.hiddenControls[v])==null||x.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var qx=M('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),Qx={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;
312
+ */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 Qd(t,e){z(e,!0),q(t,n5);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=At(),{ui:{t:n}}=Ce(),s=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=o5(),d=_(l),a=_(d),u=_(a),f=_(u);Kd(f,{get message(){return s}}),h(u);var m=k(u,2);{var p=y=>{let w=g(()=>n("slow_video_notification_button"));uv(y,{get label(){return r(w)},get onClick(){return e.onSelectAutoQuality}})};R(m,y=>{o||y(p)})}h(a);var x=k(a,2);ba(x,{get onClick(){return e.onClose}}),h(d),h(l),Gp(3,d,()=>$0,()=>({duration:i})),$(t,l),W()}import{isIntersecting as y0,Subscription as r5}from"@vkontakte/videoplayer-shared/es2015";var Va="annotation",Nu=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",Va),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 Tt(this,arguments,function*(e,{observedSlotElementId:i,controlsToObserve:o}){var p;let l=this.slots.get(e);if(!l)return;let d=yield this.findSlotElement(l.rootElement,i,e),{controls:a,hiddenControls:u}=((p=this.store)==null?void 0:p.ui)||{},f=new MutationObserver(x=>x.forEach(()=>{let y=Cs(d,this.shadowRootContainer);o.forEach(w=>{let T=a==null?void 0:a[w],S=T?_e(T):null,E=u==null?void 0:u[w];S&&(E==null||E.set(y0(S,y)))})}));f.observe(d,{childList:!0,subtree:!0}),l.observer=f;let m=new r5;o.forEach(x=>{a&&m.add(a[x].subscribe(y=>{let w=u==null?void 0:u[x];y&&y.isDisplayed?w==null||w.set(y0(y,Cs(d,this.shadowRootContainer))):w==null||w.set(!1)}))}),l.subs=m})}findSlotElement(e,i,o){return Tt(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(m=>m==null?void 0:m.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(m=>{var p,x;(x=(p=this.store)==null?void 0:p.ui.hiddenControls[m])==null||x.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var s5=P('<div class="container svelte-16aykgd"><!></div>'),a5={hash:"svelte-16aykgd",code:`.container.svelte-16aykgd {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
308
313
 
309
- animation-name: svelte-f47ws8-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
314
+ animation-name: svelte-16aykgd-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
310
315
 
311
- @keyframes svelte-f47ws8-videoPlayerStatusIconPopup {
316
+ @keyframes svelte-16aykgd-videoPlayerStatusIconPopup {
312
317
  from {
313
318
  opacity: 0;
314
319
  scale: 0.6;
@@ -335,8 +340,8 @@ Try switching the\xA0quality to\xA0Auto.`},Kh=eb;var $s=new Map;$s.set(Qh.EN,Kh)
335
340
  opacity: 0;
336
341
  scale: 0;
337
342
  }
338
- }`};function iv(t,e){F(e,!0),q(t,Qx);let[i,o]=Ue(),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}}=kt(),p=0,x=Y(null),w=Y(!1);Qe(()=>{O(x,n()?Wr:Cs,!0)}),Qe(()=>{O(x,s()?qs:null,!0)}),Qe(()=>{if(u)return p=window.setTimeout(()=>{p=0,s()&&r(x)===qs&&(s()==="next"?a.internal.nextVideoClick(!1):a.internal.prevVideoClick(!1)),O(x,null)},r(x)!==qs?f:v),()=>{p&&(window.clearTimeout(p),p=0)}}),Qe(()=>{n()&&!r(w)&&(O(w,!0),O(x,null))});var y=qe(),S=he(y);{var T=E=>{var V=qe(),k=he(V);da(k,()=>r(x),I=>{var R=qx(),X=_(R),D=_(X);let H=g(()=>s()==="prev");Li(D,()=>r(x),(W,ee)=>{ee(W,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return r(H)}})}),h(X),h(R),B(()=>rt(X,`animation-duration: ${r(x)!==qs?f:v}ms`)),$(I,R)}),$(E,V)};L(S,E=>{r(x)&&u&&E(T)})}$(t,y),U(),o()}var Gx=M('<div><div data-testid="video-container"></div></div>'),jx={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 Ra(t,e){F(e,!0),q(t,jx);let[i,o]=Ue(),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:x}=kt(),w=g(()=>a()&&n()%180?s().height/s().width:1);var y=Gx();let S;y.__contextmenu=function(...V){var k;(k=e.onContextMenu)==null||k.apply(this,V)},y.__mousedown=function(...V){var k;(k=e.onMouseDown)==null||k.apply(this,V)},y.__mouseup=function(...V){var k;(k=e.onMouseUp)==null||k.apply(this,V)},y.__click=function(...V){var k;(k=e.onClick)==null||k.apply(this,V)},y.__dblclick=function(...V){var k;(k=e.onDblClick)==null||k.apply(this,V)};var T=_(y);let E;ot(T,V=>a(V),()=>a()),h(y),B((V,k)=>{S=te(y,1,"video-wrapper svelte-1czns9r",null,S,V),E=te(T,1,"video-container svelte-1czns9r",null,E,k),rt(T,`transform: rotate(${n()}deg) scale(${r(w)})`),We(T,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!x})]),$(t,y),U(),o()}ct(["contextmenu","mousedown","mouseup","click","dblclick"]);var Yx=(t,e,i,o,n,s)=>{if(t.stopPropagation(),e()||o()){s();return}},Zx=M("<div><!></div>"),Xx=M('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),Jx=M("<div><!></div>"),e5=M('<div class="settings-menu svelte-jtgjmv"><!></div>'),t5=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),i5=M("<!> <!> <!>",1),o5=M('<div class="blocked svelte-jtgjmv"></div>'),n5=M('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),r5={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 ov(t,e){F(e,!0),q(t,r5);let[i,o]=Ue(),n=()=>C(Fn,"$notificationsToShow$",i),s=()=>C(ni,"$playerPhase",i),l=()=>C(ho,"$isLoaderVisible",i),d=()=>C(Ti,"$adPlaybackState",i),a=()=>C(ft,"$crashed",i),u=()=>C(tn,"$isInteractiveTime$",i),f=()=>C(go,"$settingsMenuVisible",i),v=()=>C(on,"$isInteractiveExpectation$",i),p=()=>C(Mo,"$controlsVisible",i),x=()=>C(mi,"$touched",i),w=()=>C(Pr,"$graphIsOpened$",i),y=()=>C(ri,"$isFullscreen",i),S=()=>C(nn,"$autoplayNextEnabled$",i),T=()=>C(en,"$postrollPassed",i),E=()=>C(Qi,"$isEnded$",i),V=()=>C(Gi,"$cursorInside",i),k=()=>C(dr,"$isControlsAvailable",i),I=()=>C(ur,"$fakeIsPlaying$",i),R=()=>C(ut,"$bottomNoSmooth",i),X=()=>C(Ei,"$interactiveTimeIndicator",i),D=()=>C(_o,"$playerSize",i),H=()=>C(fi,"$is3DVideo",i),W=()=>C(pt,"$contextMenuVisible$",i),ee=()=>C(bi,"$playbackState$",i),j=()=>C(Lo,"$hotKeyMapData",i),ue=()=>C(ui,"$scrubbingInProgress",i),oe=()=>C(At,"$volumeChangingInProgress",i),pe=()=>C(di,"$chromecastConnected$",i),$e=()=>C(rn,"$controlsTimeoutActive",i),me=()=>C(zt,"$settingsMenuOpenedByKeyboard",i),Ae=()=>C(un,"$contextMenuOpenedByKeyboard$",i),re=()=>C(Ro,"$contextMenuOpenedByHotKey$",i),Ne=()=>C(Sn,"$contextMenuButtonRef$",i),se=()=>C(Gn,"$contextMenuLastActiveElem$",i),N=()=>C(Ao,"$isFullscreenOpenedByKeyboard",i),De=()=>C(tt,"$language$",i),le=()=>C(Tt,"$icon3DVideoVisible",i),ge=()=>C(Ko,"$chromecastDeviceName$",i),ie=()=>C(Yt,"$currentSubtitle$",i),ve=()=>C(pi,"$currentSubtitleCaptions$",i),Fe=()=>C(dt,"$position$",i),fe=()=>C(qt,"$duration$",i),st=()=>C(Q,"$isLive$",i),Z=()=>C(we,"$isPlaying$",i),Le=()=>C(Di,"$contextMenuPosition$",i),Pe=()=>C(Nn,"$showHotKeyMap",i),Ke=()=>C(xi,"$debugPanelVisible",i),lt=()=>C(Bn,"$userActionsDisabled$",i),mt=m(e,"videoContainer",15),vt=m(e,"adsSlotId",3,void 0),Ct=m(e,"adsParams",3,void 0),Ye=m(e,"adsPreviewParam",3,void 0),Ut=m(e,"adsAutoplayParam",3,void 0),ti=m(e,"duration",3,void 0),jt=m(e,"logoTargetUrl",3,""),Wt=m(e,"showNextPrevButtons",3,!1),ne=m(e,"nextButtonActive",3,!1),Ht=m(e,"prevButtonActive",3,!1),Se=m(e,"endScreenVideoTitle",3,void 0),_e=m(e,"endScreenVideoThumb",3,void 0),ce=m(e,"isOneVideoPlaylist",3,!1),Be=m(e,"shadowRootContainer",3,void 0),ze=m(e,"outerContainerRef",3,void 0),Re=m(e,"playerStarted",3,!1),je=m(e,"fullScreenTarget",3,void 0),He=m(e,"showMiniTimer",3,!1),Xe=m(e,"showEndScreen",3,!0),Pt=m(e,"keyboardControls",15),Kt=e.store.getLogger().createComponentLog("Root component"),tt=e.store.interfaceLanguage$,bi=e.store.state.playbackState$,Ti=e.store.ads.playbackState,dt=e.store.state.positionWithScrubbing$,qt=e.store.state.duration$,ni=e.store.playerPhase,ri=e.store.ui.isFullscreen,Ao=e.store.ui.isFullscreenOpenedByKeyboard,Mo=e.store.ui.controlsVisible,go=e.store.ui.settingsMenu.visible$,zt=e.store.ui.settingsMenu.openedByBtnKeyboard$,ui=e.store.ui.scrubbingInProgress,At=e.store.ui.volumeChangingInProgress,pt=e.store.ui.contextMenu.visible$,xi=e.store.ui.debugPanelVisible,ho=e.store.state.isLoaderVisible,Qi=e.store.state.isEnded$,di=e.store.state.chromecastConnected$,Ko=e.store.state.chromecastDeviceName$,en=e.store.ads.postrollPassed,Q=e.store.state.isLive$,we=e.store.state.isPlaying$,ft=e.store.state.crashed$,Ft=e.store.webApi.annotationsApi,_t=e.store.webApi.pictureInPictureApi,Yt=e.store.state.currentSubtitle$,pi=e.store.state.currentSubtitleCaptions$,_o=e.store.ui.playerSize,fi=e.store.ui.is3DVideo,Tt=e.store.ui.icon3DVideoVisible,$i=e.store.state.isInteractive,tn=e.store.state.isInteractiveTime$,on=e.store.state.isInteractiveExpectation$,Rn=e.store.state.hasInteractiveBranches,mi=e.store.ui.touched,Lo=e.store.ui.modals.hotKeyMap.data,Nn=e.store.ui.modals.hotKeyMap.show,ar=e.store.ui.overlayContainer$,Ei=e.store.ui.controls.interactiveTimeIndicator,On=e.store.state.showInteractiveTimeIndicator,Di=e.store.ui.contextMenu.position$,bo=e.store.actions.internal.setQuality,lr=e.store.actions.internal.closeSettingsMenu,nn=e.store.ui.autoplayNextEnabled$,Bn=e.store.ui.userActionsDisabled,dr=e.store.ui.isControlsAvailable,Ir=e.store.ui.videoTitleInfo,kr=e.store.actions.internal.getVideoElement,cr=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:ur,notifications$:qo,graphIsOpened$:Pr}=vo(),Ri=Y(void 0),Dn=Y(void 0),wn=Y(void 0),pr=Y(void 0),fr,mr,Hn;Lo.set(t1());let{closeNotification:vr,notificationsToShow$:Fn}=qo,gr=g(()=>!!n().slow_video),hr=()=>vr("slow_video"),Vo=g(()=>(s()==="video"&&l()||s()==="ads"&&d()==="inactive")&&!a()),_r=Y(void 0),ut=ae(!1),si,rn=ae(!1),Ii=ae(),Gi=ae(!1),sn=Y(!1),$o=Y(!1),an=Y(!1),ln=Y(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),dn=g(()=>u()&&!f()&&!(r(sn)||r($o))&&!(r(an)&&!v())),cn=!0,qr=g(()=>e.uiConfig.features.thumbTimer&&He()&&s()==="video"&&!p()&&!a()&&!$i&&(e.uiConfig.hideThumbTimerAfterTouch&&!x()||!e.uiConfig.hideThumbTimerAfterTouch)),Qr=g(()=>s()==="video"&&!w()&&y()),Ar=Y(!1),Gr=g(()=>(Xe()||e.showAutoplayNext&&S())&&!!Se()&&!!_e()&&(e.showAds&&T()||!e.showAds)&&E()&&!a()&&!r(Ar)),Un=g(()=>V()&&!(p()||r(Gr))&&!u()&&k()),br=Y(!1),yo=g(()=>I()!==null),{toggle:zn}=ur,Zt=!1,uo=null;_t==null||_t.setContext(kl());let jr=()=>{e.autoplay&&!$i&&e.uiConfig.controls.showOnStartupAtAutoplay&&at(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:jr});let Yr=()=>{window.clearTimeout(fr),rn.set(!1)},Mr=()=>{window.clearTimeout(mr),Ii.set(null)},at=Ce=>{Yr(),rn.set(!0),fr=window.setTimeout(()=>rn.set(!1),Ce);let bt=Ce-100;si=window.setTimeout(()=>{R()&&ut.set(!1)},bt>0?bt:Ce)},ai=(Ce,bt)=>{Mr(),Ii.set(bt),mr=window.setTimeout(()=>Ii.set(null),Ce)},ki=fi.subscribe(Ce=>{Tt.set(Ce),Ce&&(window.clearTimeout(Hn),Hn=window.setTimeout(()=>Tt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),po=()=>xt(null,null,function*(){var bt,li,Pi,Xi;let Ce=Ds();if(Ce){let ro=id(),Je=Yi();Ce=ro===Je||ro===Be()}if(Ce){at(e.uiConfig.controls.hideTimeoutFullscreen);try{yield _t==null?void 0:_t.exit()}catch(ro){Kt({message:String(ro)})}}ri.set(Ce),e.store.getAdmanWrapper().setFullscreen(Ce),y()?(li=(bt=e.store.callbacks)==null?void 0:bt.onFullscreenEnter)==null||li.call(bt):(Xi=(Pi=e.store.callbacks)==null?void 0:Pi.onFullscreenExit)==null||Xi.call(Pi)}),ji=Ce=>{let{width:bt,height:li}=Ce.target;_o.set({width:bt,height:li})},xo=()=>{let{width:Ce,height:bt}=r(Ri).getBoundingClientRect();_o.set({width:Ce,height:bt})};Lt(()=>{var bt;return iu(po),e.uiConfig.features.annotationsInside&&(Ft==null||Ft.init(r(Ri))),ga(_t)&&(_t==null||_t.assignPlayerContainer(r(Ri)),_t==null||_t.setExternalEventHandlers({resize:ji,leavepictureinpicture:xo})),e.interactiveContainer&&((bt=mt().parentElement)==null||bt.insertBefore(e.interactiveContainer,mt().nextSibling)),()=>{window.clearTimeout(fr),window.clearTimeout(si),window.clearTimeout(mr),window.clearTimeout(Hn),ki(),_t==null||_t.dispose().catch(li=>{Kt({message:String(li)})}),ou(po)}});let Yi=()=>{let Ce=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!ze()?r(Ri):ze(),bt=Ce.getRootNode(),li=bt instanceof ShadowRoot?bt.host:bt,Pi=je()instanceof HTMLElement&&je().contains(li);return e.uiConfig.allowChangingFullscreenTarget&&je()&&Pi?je():Ce},Wn=()=>{pt.set(!1)},wi=()=>{lr(),Wn()},Kn=()=>xt(null,null,function*(){if(!cr()){Kt({message:"fullscreen disabled"});return}Wn(),Ds()?(yield tu(document),Kt({message:"exit fullscreen"})):(Kt({message:"request fullscreen"}),yield eu(Yi()))}),qn=Ce=>{w()||(Ce.preventDefault(),pt.set(!0),Di.set({left:Ce.clientX,top:Ce.clientY}))};function cs(){Gi.set(!0),$i||at(e.uiConfig.controls.hideTimeoutCursor)}function Lr(){$i||(ut.set(!0),at(e.uiConfig.controls.hideTimeoutCursor))}function us(){Gi.set(!1),O($o,!1),O(sn,!1),Zt=!1,e.store.actions.internal.releaseCamera(),at(e.uiConfig.controls.hideTimeout)}function oo(Ce){return Ce?Ce.offsetTop+oo(Ce.offsetParent):0}function Qn(Ce){return Ce?Ce.offsetLeft+Qn(Ce.offsetParent):0}function $r(Ce){if(X()&&On){let bt=Ce.currentTarget,li=oo(bt),Pi=Qn(bt),Xi=Ce.pageX-Pi,ro=Ce.pageY-li,{left:Je,bottom:Qt,right:Fi}=X(),No=Fi-Je;return Xi>=Je-No&&ro<=Qt+No}}function Zr(Ce){if(r(Ri)){let bt=oo(Ce.currentTarget),li=D().height,Pi=Ce.pageY-bt;if($r(Ce)){O($o,!1);return}Pi<40?O($o,!0):Pi>li-40?O(sn,!0):(O($o,!1),f()||O(sn,!1))}}function it(Ce){Zr(Ce),r(dn)||at(e.uiConfig.controls.hideTimeoutCursor),H()&&Zt&&uo&&e.store.actions.internal.moveCameraFocusPX(uo.clientX-Ce.clientX,uo.clientY-Ce.clientY,Ce.timeStamp-uo.timeStamp),uo=Ce}let Et=Ce=>{Ce.preventDefault(),Ce.button===0&&(Zt=!0,e.store.actions.internal.holdCamera()),at(e.uiConfig.controls.hideTimeoutCursor)},vi=Ce=>{Ce.preventDefault(),Ce.button===0&&(uo=Ce,Zt=!1,e.store.actions.internal.releaseCamera()),at(e.uiConfig.controls.hideTimeoutCursor)},no=Ce=>{Ce.preventDefault(),cn&&(Kt({message:"double click on video"}),Kn(),at(e.uiConfig.controls.hideTimeoutCursor))},fo=Ce=>{var bt;if(Ce.preventDefault(),W()||f()){wi();return}if(!(E()&&!Rn)){if(r(yo))return zn();if((bt=Pt())==null||bt.focus(),!Re()){e.firstStart(),at(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||ee()!==l_.PLAYING)&&e.store.actions.internal.togglePlay(),at(e.uiConfig.controls.hideTimeoutCursor)}},wo=Ce=>{wi(),mi.set(!0),at(e.uiConfig.controls.hideTimeout),Ce&&ai(e.uiConfig.controls.hideHotKeyHelpers,Ce)},Zi=()=>{var Ce,bt;wi(),(Ce=e.store.callbacks)!=null&&Ce.onOpenHotKeyMap?(bt=e.store.callbacks)==null||bt.onOpenHotKeyMap(j()):Nn.update(li=>!li)},Qo=()=>{mi.set(!0)},un=e.store.ui.contextMenu.openedByBtnKeyboard$,Sn=e.store.ui.contextMenu.btnRef$,Hi=Y(void 0),Ro=e.store.ui.contextMenu.openedByHotKey$,Gn=e.store.ui.contextMenu.lastActiveElem$;Qe(()=>{ar.set(r(_r))}),Qe(()=>{O(an,r(ln)&&ee()!==l_.PLAYING,!0),r(ln)||wt(()=>O(ln,!0))}),Qe(()=>{Mo.set((r(an)||E()||f()||ue()||oe()||pe()||$e())&&!r(dn)&&(s()==="video"||s()==="ads")&&!a()&&k())}),Qe(()=>{!ue()&&r(br)&&!u()&&at(e.uiConfig.controls.hideTimeoutCursor),wt(()=>O(br,ue(),!0))}),Qe(()=>{r(pr),f(),me(),wt(()=>dd(r(pr),f(),me()))}),Qe(()=>{r(Hi),W(),Ae(),re(),wt(()=>{let Ce=Ae()||re();dd(r(Hi),W(),Ce)})}),Qe(()=>{let Ce=Ne();Ce&&(W(),wt(()=>ul(Ce,W(),un)))}),Qe(()=>{let Ce=se();Ce&&(W(),wt(()=>l1(Ce,W(),Ro)))}),Qe(()=>{var Ce;!N()&&y()&&(wt(()=>Ao.set(!1)),(Ce=Pt())==null||Ce.focus())}),Qe(()=>{w()&&wi()});let jn=K("video360"),pn=Y(void 0),Vr=Ce=>{Ir.set(Ln(kr(),{title:r(pn)},"title",Ce))},fn=(Ce,bt)=>{var ro,Je;let li=(Je=(ro=e.store.callbacks)==null?void 0:ro.uiInfo)==null?void 0:Je.onUpcomingLiveViewStateChanged;if(!li)return;let Pi=!!bt,Xi=z(z({},Ln(r(Ri),{upcomingLiveScreen:bt},"upcomingLiveScreen",Pi)),Ce);li(Xi)};var Xr=n5();St("blur",oa,wi);var So=he(Xr);So.__mousemove=it;var Cn=_(So);let Ze=g(()=>s()==="ads"),Xt=g(()=>r(yo)?zn:void 0);ot(Sf(Cn,{toggleFullscreen:Kn,hideContextMenu:wi,showHotKeyHelpers:wo,showKeyMap:Zi,get isAds(){return r(Ze)},get fakePlayButtonHandler(){return r(Xt)},get nextButtonActive(){return ne()},get prevButtonActive(){return Ht()},children:(Ce,bt)=>{var li=i5(),Pi=he(li);Ra(Pi,{get hideCursor(){return r(Un)},onClick:fo,onContextMenu:qn,onMouseDown:Et,onMouseUp:vi,onDblClick:no,get videoContainer(){return mt()},set videoContainer(Je){mt(Je)}});var Xi=P(Pi,2);ca(Xi,()=>"slot",!1,(Je,Qt)=>{Me(Je,()=>({name:Va}))});var ro=P(Xi,2);da(ro,De,Je=>{var Qt=t5(),Fi=he(Qt);let No=g(()=>s()!=="thumb"||a()||$i&&e.autoplay);Aa(Fi,{get hidden(){return r(No)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var mn=P(Fi,2);iv(mn,{});var Yn=P(mn,2);{var yr=Ge=>{let ci=g(()=>{var Bo;return(Bo=e.live)==null?void 0:Bo.startTime});Dd(Ge,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(ci)},onUpcomingLiveViewStateChanged:fn})};L(Yn,Ge=>{s()==="LiveWaitingStart"&&Ge(yr)})}var Rr=P(Yn,2);{var Ji=Ge=>{Ma(Ge,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};L(Rr,Ge=>{s()==="LiveWaitingRecover"&&Ge(Ji)})}var gi=P(Rr,2);{var vn=Ge=>{Ma(Ge,{kind:"record",get thumbUrl(){return e.thumbUrl}})};L(gi,Ge=>{s()==="LiveWaitingRecord"&&Ge(vn)})}var xr=P(gi,2);{var Oo=Ge=>{var ci=Zx();let Bo;var Is=_(ci);nd(Is,{get adsSlotId(){return vt()},get adsParams(){return Ct()},get adsPreviewParam(){return Ye()},get adsAutoplayParam(){return Ut()},get duration(){return ti()}}),h(ci),B(hn=>Bo=te(ci,1,"ads-container svelte-jtgjmv",null,Bo,hn),[()=>({hidden:s()!=="ads"})]),$(Ge,ci)};L(xr,Ge=>{e.showAds&&Re()&&Ge(Oo)})}var mo=P(xr,2);{var Na=Ge=>{let ci=g(()=>!Xe()&&e.showAutoplayNext&&S());yf(Ge,{get title(){return Se()},get thumb(){return _e()},get isHide(){return r(ci)},clickCloseIcon:()=>O(Ar,!0)})};L(mo,Ge=>{r(Gr)&&Se()&&_e()&&Ge(Na)})}var $t=P(mo,2);{var yt=Ge=>{let ci=g(()=>!p());Mm(Ge,{get title(){return e.title},get isHidden(){return r(ci)},onVisibilityChanged:Vr,get ref(){return r(pn)},set ref(Bo){O(pn,Bo,!0)}})};L($t,Ge=>{r(Qr)&&Ge(yt)})}var so=P($t,2);{var gn=Ge=>{let ci=g(()=>s()==="video"&&p());Od(Ge,{get isShifted(){return r(ci)}})};L(so,Ge=>{H()&&Ge(gn)})}var Ui=P(so,2);{var hi=Ge=>{var ci=Xx(),Bo=_(ci);td(Bo,{get"aria-label"(){return jn}}),h(ci),$(Ge,ci)};L(Ui,Ge=>{le()&&Ge(hi)})}var _i=P(Ui,2);{var js=Ge=>{Bd(Ge,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ge()}})};L(_i,Ge=>{pe()&&Ge(js)})}var Oa=P(_i,2);{var Uu=Ge=>{ka(Ge,{get shifted(){return p()},get captions(){return ve()},get position(){return Fe()},get playerSize(){return D()}})};L(Oa,Ge=>{ie().value!=="off"&&Ge(Uu)})}var tc=P(Oa,2);{var zu=Ge=>{var ci=Jx();ci.__contextmenu=qn,ci.__click=[Yx,W,pt,f,go,wi];var Bo=_(ci);Pa(Bo,{}),h(ci),$(Ge,ci)};L(tc,Ge=>{a()&&Ge(zu)})}var ic=P(tc,2);{var Wu=Ge=>{let ci=g(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),Bo=g(()=>s()==="ads"),Is=g(()=>e.canRewindLive&&fe()!==0);Nd(Ge,{get bottomHidden(){return r(ci)},get bottomNoSmooth(){return R()},get showControls(){return p()},get isAds(){return r(Bo)},get canRewindLive(){return r(Is)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return jt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Wt()},get nextButtonActive(){return ne()},get prevButtonActive(){return Ht()},get isOneVideoPlaylist(){return ce()},customFullscreenSupported:cn,toggleFullscreen:Kn,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(Dn)},set playerControlsWrapperRef(hn){O(Dn,hn,!0)},get playerControlsRef(){return r(wn)},set playerControlsRef(hn){O(wn,hn,!0)}})};L(ic,Ge=>{Re()&&Ge(Wu)})}var oc=P(ic,2);{var Ku=Ge=>{var ci=e5(),Bo=_(ci);let Is=g(()=>{var hn;return(hn=r(wn))==null?void 0:hn.clientHeight});Ud(Bo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(Is)},returnFocus:()=>{var hn;return(hn=Pt())==null?void 0:hn.focus()},get ref(){return r(pr)},set ref(hn){O(pr,hn,!0)}}),h(ci),$(Ge,ci)};L(oc,Ge=>{!pe()&&s()!=="ads"&&Ge(Ku)})}var nc=P(oc,2);let qu=g(()=>!r(qr));ad(nc,{get isLive(){return st()},get isHidden(){return r(qu)},get isPlaying(){return Z()},get position(){return Fe()},get duration(){return fe()}});var rc=P(nc,2);Im(rc,{get data(){return Ii}});var sc=P(rc,2);$f(sc,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ge;return(Ge=Pt())==null?void 0:Ge.focus()},get visible(){return W()},get playerContainerRef(){return r(Ri)},get controlsContainerRef(){return r(Dn)},get position(){return Le()},get menuElementRef(){return r(Hi)},set menuElementRef(Ge){O(Hi,Ge,!0)}});var ac=P(sc,2);{var Qu=Ge=>{zd(Ge,{onClose:hr,onSelectAutoQuality:()=>{bo("auto"),hr()}})};L(ac,Ge=>{r(gr)&&Ge(Qu)})}var Es=P(ac,2);{var Gu=Ge=>{ya(Ge,{})};L(Es,Ge=>{r(Vo)&&Ge(Gu)})}var Sl=P(Es,2);{var lc=Ge=>{Ef(Ge,{})};L(Sl,Ge=>{Pe()&&Ge(lc)})}var ju=P(Sl,2);{var dc=Ge=>{pd(Ge,{})};L(ju,Ge=>{Ke()&&Ge(dc)})}$(Je,Qt)}),$(Ce,li)},$$slots:{default:!0}}),Ce=>Pt(Ce),()=>Pt());var Ai=P(Cn,2);ot(Ai,Ce=>O(_r,Ce),()=>r(_r)),h(So),ot(So,Ce=>O(Ri,Ce),()=>r(Ri));var Co=P(So,2);{var To=Ce=>{var bt=o5();$(Ce,bt)};L(Co,Ce=>{lt()&&Ce(To)})}St("mouseenter",So,cs),St("mouseleave",So,us),St("click",So,Qo,!0),St("focusin",So,Lr,!0),$(t,Xr),U(),o()}ct(["mousemove","contextmenu","click"]);import{clientChecker as Wd,PlaybackState as v5}from"@vkontakte/videoplayer-core/es2015";import{noop as g5}from"@vkontakte/videoplayer-shared/es2015";var s5=M('<div></div> <div class="info svelte-nhq2ld"><div class="triangles-wrapper svelte-nhq2ld"><div></div> <div></div> <div></div></div> <p class="step-caption svelte-nhq2ld"> </p></div>',1),a5=M("<div><!></div>"),l5={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;
343
+ }`};function Gd(t,e){q(t,a5);let i=v(e,"isPrev",3,!1);var o=Fe(),n=fe(o);$s(n,()=>e.Icon,s=>{var l=s5(),d=_(l);Ai(d,()=>e.Icon,(a,u)=>{u(a,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return i()}})}),h(l),D(()=>dt(l,`animation-duration: ${e.duration}ms`)),$(s,l)}),$(t,o)}import{PlaybackState as x0}from"@vkontakte/videoplayer-core/es2015";var l5=P('<div class="container svelte-1sw36pi"><!></div>'),d5={hash:"svelte-1sw36pi",code:".container.svelte-1sw36pi {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}"};function pv(t,e){z(e,!0),q(t,d5);let[i,o]=Be(),n=()=>C(l,"$playbackState$",i),s=()=>C(d,"$isPlaying$",i),{state:{playbackState$:l,isPlaying$:d}}=Ce(),{features:{playbackStatusShow:a},playbackStatusAnimationDuration:u}=At(),f=0,m=J(null),p=J(!1);ze(()=>{n()===x0.PLAYING?N(m,Qr,!0):n()===x0.PAUSED?N(m,Is,!0):N(m,null)}),ze(()=>{if(a)return f=window.setTimeout(()=>{f=0,N(m,null)},u),()=>{f&&(window.clearTimeout(f),f=0)}}),ze(()=>{s()&&!r(p)&&(N(p,!0),N(m,null))});var x=Fe(),y=fe(x);{var w=T=>{var S=l5(),E=_(S);Gd(E,{get duration(){return u},get Icon(){return r(m)}}),h(S),$(T,S)};R(y,T=>{r(m)&&a&&T(w)})}$(t,x),W(),o()}var c5=P('<div><div data-testid="video-container"></div></div>'),u5={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
344
+ .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 Ra(t,e){z(e,!0),q(t,u5);let[i,o]=Be(),n=()=>C(f,"$rotateAlpha",i),s=()=>C(m,"$playerSize",i),l=()=>C(u,"$playerPhase",i),d=()=>C(p,"$isPlaying$",i),a=v(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:f,playerSize:m},state:{isPlaying$:p}}=Ce(),{isSmoothVideoRotate:x}=At(),y=g(()=>a()&&n()%180?s().height/s().width:1);var w=c5();let T;w.__contextmenu=function(...V){var I;(I=e.onContextMenu)==null||I.apply(this,V)},w.__mousedown=function(...V){var I;(I=e.onMouseDown)==null||I.apply(this,V)},w.__mouseup=function(...V){var I;(I=e.onMouseUp)==null||I.apply(this,V)},w.__click=function(...V){var I;(I=e.onClick)==null||I.apply(this,V)},w.__dblclick=function(...V){var I;(I=e.onDblClick)==null||I.apply(this,V)};var S=_(w);let E;st(S,V=>a(V),()=>a()),h(w),D((V,I)=>{T=se(w,1,"video-wrapper svelte-1czns9r",null,T,V),E=se(S,1,"video-container svelte-1czns9r",null,E,I),dt(S,`transform: rotate(${n()}deg) scale(${r(y)})`),Ne(S,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!x})]),$(t,w),W(),o()}ct(["contextmenu","mousedown","mouseup","click","dblclick"]);var p5=xe('<svg><!><path fill="currentColor" d="M8 7.389V5.725c0-.52.57-.84 1.015-.569l3.721 2.275a.667.667 0 0 1 0 1.138l-3.721 2.275A.667.667 0 0 1 8 10.275V8.611l-3.652 2.233a.667.667 0 0 1-1.014-.569v-4.55c0-.52.57-.84 1.014-.569z"></path></svg>');function fv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=p5();Ie(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",role:"img"},i));var n=_(o);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(),h(o),$(t,o)}var f5=P('<div><span class="text svelte-1gi6268"> </span> <!></div>'),m5={hash:"svelte-1gi6268",code:".root.svelte-1gi6268 {padding:6px 12px;gap:4px;background-color:var(--double-forward-bg);color:var(--white);display:flex;border-radius:100px;position:absolute;top:24px;left:50%;transform:translateX(-50%);transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);visibility:hidden;opacity:0;pointer-events:none;}.root.visible.svelte-1gi6268 {transform:translateX(-50%);visibility:visible;opacity:1;}.text.svelte-1gi6268 {font-size:13px;line-height:16px;font-weight:600;}"};function mv(t,e){z(e,!0),q(t,m5);let{ui:{t:i}}=Ce();var o=f5();let n;var s=_(o),l=_(s,!0);h(s);var d=k(s,2);fv(d,{}),h(o),D((a,u)=>{n=se(o,1,"root svelte-1gi6268",null,n,a),ve(l,u)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),$(t,o),W()}var v5=(t,e,i,o,n,s)=>{if(t.stopPropagation(),e()||o()){s();return}},g5=P("<div><!></div>"),h5=P('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),_5=P("<div><!></div>"),b5=P('<div class="settings-menu svelte-jtgjmv"><!></div>'),$5=P("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),y5=P("<!> <!> <!>",1),x5=P('<div class="blocked svelte-jtgjmv"></div>'),w5=P('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),S5={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){z(e,!0),q(t,S5);let[i,o]=Be(),n=()=>C(Xr,"$notificationsToShow$",i),s=()=>C(ao,"$playerPhase",i),l=()=>C(Ot,"$isLoaderVisible",i),d=()=>C(ai,"$adPlaybackState",i),a=()=>C(Qt,"$crashed",i),u=()=>C(_n,"$isInteractiveTime$",i),f=()=>C(Pt,"$settingsMenuVisible",i),m=()=>C(bn,"$isInteractiveExpectation$",i),p=()=>C(Qi,"$controlsVisible",i),x=()=>C(co,"$touched",i),y=()=>C(Yr,"$graphIsOpened$",i),w=()=>C(oi,"$isFullscreen",i),T=()=>C(vr,"$autoplayNextEnabled$",i),S=()=>C(Bn,"$postrollPassed",i),E=()=>C(So,"$isEnded$",i),V=()=>C(hi,"$cursorInside",i),I=()=>C(jr,"$isControlsAvailable",i),L=()=>C(Hn,"$doubleForwardOn$",i),B=()=>C(Un,"$fakeIsPlaying$",i),F=()=>C(Sn,"$bottomNoSmooth",i),H=()=>C(Dn,"$interactiveTimeIndicator",i),U=()=>C(_i,"$playerSize",i),Z=()=>C(xt,"$is3DVideo",i),re=()=>C(yn,"$doubleForwardAvailable$",i),G=()=>C(Ct,"$contextMenuVisible$",i),be=()=>C(Wt,"$playbackState$",i),ie=()=>C(fr,"$hotKeyMapData",i),me=()=>C(ei,"$scrubbingInProgress",i),pe=()=>C(to,"$volumeChangingInProgress",i),ue=()=>C(Co,"$chromecastConnected$",i),Le=()=>C(Eo,"$controlsTimeoutActive",i),Ve=()=>C(nt,"$settingsMenuOpenedByKeyboard",i),ae=()=>C(xr,"$contextMenuOpenedByKeyboard$",i),Re=()=>C(Or,"$contextMenuOpenedByHotKey$",i),X=()=>C(wr,"$contextMenuButtonRef$",i),M=()=>C(Jr,"$contextMenuLastActiveElem$",i),at=()=>C(ft,"$isFullscreenOpenedByKeyboard",i),De=()=>C(Vt,"$language$",i),j=()=>C(Ei,"$icon3DVideoVisible",i),oe=()=>C(Ko,"$chromecastDeviceName$",i),Oe=()=>C(si,"$currentSubtitle$",i),Ze=()=>C(yi,"$currentSubtitleCaptions$",i),$e=()=>C(li,"$position$",i),te=()=>C(qi,"$duration$",i),we=()=>C(O,"$isLive$",i),Te=()=>C(et,"$isPlaying$",i),Ke=()=>C(To,"$contextMenuPosition$",i),it=()=>C(uo,"$showHotKeyMap",i),ht=()=>C(ut,"$debugPanelVisible",i),pt=()=>C(ms,"$userActionsDisabled$",i),_t=v(e,"videoContainer",15),Je=v(e,"adsSlotId",3,void 0),zt=v(e,"adsParams",3,void 0),Yt=v(e,"adsAutoplayParam",3,void 0),Zt=v(e,"duration",3,void 0),Xt=v(e,"logoTargetUrl",3,""),ke=v(e,"showNextPrevButtons",3,!1),Jt=v(e,"nextButtonActive",3,!1),he=v(e,"prevButtonActive",3,!1),Ee=v(e,"endScreenVideoTitle",3,void 0),ce=v(e,"endScreenVideoThumb",3,void 0),Ue=v(e,"isOneVideoPlaylist",3,!1),We=v(e,"shadowRootContainer",3,void 0),Se=v(e,"outerContainerRef",3,void 0),lt=v(e,"playerStarted",3,!1),qe=v(e,"fullScreenTarget",3,void 0),bt=v(e,"showMiniTimer",3,!1),Qe=v(e,"showEndScreen",3,!0),je=v(e,"keyboardControls",15),tt=e.store.getLogger().createComponentLog("Root component"),Vt=e.store.interfaceLanguage$,Wt=e.store.state.playbackState$,ai=e.store.ads.playbackState,li=e.store.state.positionWithScrubbing$,qi=e.store.state.duration$,ao=e.store.playerPhase,oi=e.store.ui.isFullscreen,ft=e.store.ui.isFullscreenOpenedByKeyboard,Qi=e.store.ui.controlsVisible,Pt=e.store.ui.settingsMenu.visible$,nt=e.store.ui.settingsMenu.openedByBtnKeyboard$,ei=e.store.ui.scrubbingInProgress,to=e.store.ui.volumeChangingInProgress,Ct=e.store.ui.contextMenu.visible$,ut=e.store.ui.debugPanelVisible,Ot=e.store.state.isLoaderVisible,So=e.store.state.isEnded$,Co=e.store.state.chromecastConnected$,Ko=e.store.state.chromecastDeviceName$,Bn=e.store.ads.postrollPassed,O=e.store.state.isLive$,et=e.store.state.isPlaying$,Qt=e.store.state.crashed$,Gt=e.store.webApi.annotationsApi,gt=e.store.webApi.pictureInPictureApi,si=e.store.state.currentSubtitle$,yi=e.store.state.currentSubtitleCaptions$,_i=e.store.ui.playerSize,xt=e.store.ui.is3DVideo,Ei=e.store.ui.icon3DVideoVisible,lo=e.store.state.isInteractive,_n=e.store.state.isInteractiveTime$,bn=e.store.state.isInteractiveExpectation$,gi=e.store.state.hasInteractiveBranches,co=e.store.ui.touched,fr=e.store.ui.modals.hotKeyMap.data,uo=e.store.ui.modals.hotKeyMap.show,io=e.store.ui.overlayContainer$,Dn=e.store.ui.controls.interactiveTimeIndicator,qo=e.store.state.showInteractiveTimeIndicator,To=e.store.ui.contextMenu.position$,mr=e.store.actions.internal.setQuality,Fn=e.store.actions.internal.closeSettingsMenu,vr=e.store.ui.autoplayNextEnabled$,ms=e.store.ui.userActionsDisabled,jr=e.store.ui.isControlsAvailable,$n=e.store.ui.videoTitleInfo,Hn=e.store.ui.doubleForwardOn$,yn=e.store.ui.doubleForwardAvailable$,Qo=e.store.actions.internal.getVideoElement,Go=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:Un,notifications$:gr,graphIsOpened$:Yr}=vo(),po=J(void 0),Zr=J(void 0),zn=J(void 0),xn=J(void 0),Wn,hr,Kn;fr.set(h1());let{closeNotification:go,notificationsToShow$:Xr}=gr,wn=g(()=>!!n().slow_video),mt=()=>go("slow_video"),ci=g(()=>(s()==="video"&&l()||s()==="ads"&&d()==="inactive")&&!a()),sn=J(void 0),Sn=le(!1),Pr,Eo=le(!1),an=le(),hi=le(!1),Ii=J(!1),Io=J(!1),qn=J(!1),_r=J(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Lr=g(()=>u()&&!f()&&!(r(Ii)||r(Io))&&!(r(qn)&&!m())),br=!0,Qn=g(()=>e.uiConfig.features.thumbTimer&&bt()&&s()==="video"&&!p()&&!a()&&!lo&&(e.uiConfig.hideThumbTimerAfterTouch&&!x()||!e.uiConfig.hideThumbTimerAfterTouch)),Gn=g(()=>s()==="video"&&!y()&&w()),ko=J(!1),jn=g(()=>(Qe()||e.showAutoplayNext&&T())&&!!Ee()&&!!ce()&&(e.showAds&&S()||!e.showAds)&&E()&&!a()&&!r(ko)),$r=g(()=>V()&&!(p()||r(jn))&&!u()&&I()&&!L()),di=J(!1),ln=g(()=>B()!==null),{toggle:yr}=Un,Cn=!1,vt=null;gt==null||gt.setContext(Ll());let fi=()=>{e.autoplay&&!lo&&e.uiConfig.controls.showOnStartupAtAutoplay&&mi(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:fi});let oo=()=>{window.clearTimeout(Wn),Eo.set(!1)},jo=()=>{window.clearTimeout(hr),an.set(null)},mi=ee=>{oo(),Eo.set(!0),Wn=window.setTimeout(()=>Eo.set(!1),ee);let Ye=ee-100;Pr=window.setTimeout(()=>{F()&&Sn.set(!1)},Ye>0?Ye:ee)},dn=(ee,Ye)=>{jo(),an.set(Ye),hr=window.setTimeout(()=>an.set(null),ee)},Ni=xt.subscribe(ee=>{Ei.set(ee),ee&&(window.clearTimeout(Kn),Kn=window.setTimeout(()=>Ei.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Gi=()=>Tt(null,null,function*(){var Ye,Kt,vi,Bi;let ee=zs();if(ee){let Di=rd(),Fi=Tn();ee=Di===Fi||Di===We()}if(ee){mi(e.uiConfig.controls.hideTimeoutFullscreen);try{yield gt==null?void 0:gt.exit()}catch(Di){tt({message:String(Di)})}}oi.set(ee),e.store.getAdmanWrapper().setFullscreen(ee),w()?(Kt=(Ye=e.store.callbacks)==null?void 0:Ye.onFullscreenEnter)==null||Kt.call(Ye):(Bi=(vi=e.store.callbacks)==null?void 0:vi.onFullscreenExit)==null||Bi.call(vi)}),ji=ee=>{let{width:Ye,height:Kt}=ee.target;_i.set({width:Ye,height:Kt})},Yo=()=>{let{width:ee,height:Ye}=r(po).getBoundingClientRect();_i.set({width:ee,height:Ye})};Rt(()=>{var Ye;return lu(Gi),e.uiConfig.features.annotationsInside&&(Gt==null||Gt.init(r(po))),ga(gt)&&(gt==null||gt.assignPlayerContainer(r(po)),gt==null||gt.setExternalEventHandlers({resize:ji,leavepictureinpicture:Yo})),e.interactiveContainer&&((Ye=_t().parentElement)==null||Ye.insertBefore(e.interactiveContainer,_t().nextSibling)),()=>{window.clearTimeout(Wn),window.clearTimeout(Pr),window.clearTimeout(hr),window.clearTimeout(Kn),Ni(),gt==null||gt.dispose().catch(Kt=>{tt({message:String(Kt)})}),du(Gi)}});let Tn=()=>{let ee=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Se()?r(po):Se(),Ye=ee.getRootNode(),Kt=Ye instanceof ShadowRoot?Ye.host:Ye,vi=qe()instanceof HTMLElement&&qe().contains(Kt);return e.uiConfig.allowChangingFullscreenTarget&&qe()&&vi?qe():ee},Mr=()=>{Ct.set(!1)},Zo=()=>{Fn(),Mr()},Vr=()=>Tt(null,null,function*(){if(!Go()){tt({message:"fullscreen disabled"});return}Mr(),zs()?(yield au(document),tt({message:"exit fullscreen"})):(tt({message:"request fullscreen"}),yield su(Tn()))}),cn=ee=>{y()||(ee.preventDefault(),Ct.set(!0),To.set({left:ee.clientX,top:ee.clientY}))};function Ao(){hi.set(!0),lo||mi(e.uiConfig.controls.hideTimeoutCursor)}function Yn(){lo||(Sn.set(!0),mi(e.uiConfig.controls.hideTimeoutCursor))}function Rr(){hi.set(!1),N(Io,!1),N(Ii,!1),Cn=!1,e.store.actions.internal.releaseCamera(),mi(e.uiConfig.controls.hideTimeout),L()&&Mi()}function Zn(ee){return ee?ee.offsetTop+Zn(ee.offsetParent):0}function rt(ee){return ee?ee.offsetLeft+rt(ee.offsetParent):0}function Mt(ee){if(H()&&qo){let Ye=ee.currentTarget,Kt=Zn(Ye),vi=rt(Ye),Bi=ee.pageX-vi,Di=ee.pageY-Kt,{left:Fi,bottom:tr,right:Ti}=H(),Si=Ti-Fi;return Bi>=Fi-Si&&Di<=tr+Si}}function xi(ee){if(r(po)){let Ye=Zn(ee.currentTarget),Kt=U().height,vi=ee.pageY-Ye;if(Mt(ee)){N(Io,!1);return}vi<40?N(Io,!0):vi>Kt-40?N(Ii,!0):(N(Io,!1),f()||N(Ii,!1))}}function fo(ee){xi(ee),!r(Lr)&&!L()&&mi(e.uiConfig.controls.hideTimeoutCursor),Z()&&Cn&&vt&&e.store.actions.internal.moveCameraFocusPX(vt.clientX-ee.clientX,vt.clientY-ee.clientY,ee.timeStamp-vt.timeStamp),vt=ee}let Li=null,Yi=()=>{Li=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),oo()},e.uiConfig.doubleForwardActivationTime)},Mi=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),Li&&clearTimeout(Li),Li=null},ho=ee=>{ee.preventDefault(),ee.button===0&&(Cn=!0,e.store.actions.internal.holdCamera(),re()&&Yi()),!Cn&&mi(e.uiConfig.controls.hideTimeoutCursor)},En=ee=>{ee.preventDefault(),ee.button===0&&(vt=ee,Cn=!1,e.store.actions.internal.releaseCamera()),!L()&&mi(e.uiConfig.controls.hideTimeoutCursor)},Po=ee=>{ee.preventDefault(),br&&(tt({message:"double click on video"}),Vr(),mi(e.uiConfig.controls.hideTimeoutCursor))},Lo=ee=>{var Ye;if(ee.preventDefault(),L()){Mi();return}if(Li&&Mi(),G()||f()){Zo();return}if(!(E()&&!gi)){if(r(ln))return yr();if((Ye=je())==null||Ye.focus(),!lt()){e.firstStart(),mi(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||be()!==S0.PLAYING)&&e.store.actions.internal.togglePlay(),mi(e.uiConfig.controls.hideTimeoutCursor)}},Mo=ee=>{Zo(),co.set(!0),mi(e.uiConfig.controls.hideTimeout),ee&&dn(e.uiConfig.controls.hideHotKeyHelpers,ee)},Xn=()=>{var ee,Ye;Zo(),(ee=e.store.callbacks)!=null&&ee.onOpenHotKeyMap?(Ye=e.store.callbacks)==null||Ye.onOpenHotKeyMap(ie()):uo.update(Kt=>!Kt)},In=()=>{co.set(!0)},xr=e.store.ui.contextMenu.openedByBtnKeyboard$,wr=e.store.ui.contextMenu.btnRef$,Jn=J(void 0),Or=e.store.ui.contextMenu.openedByHotKey$,Jr=e.store.ui.contextMenu.lastActiveElem$;ze(()=>{io.set(r(sn))}),ze(()=>{N(qn,r(_r)&&be()!==S0.PLAYING,!0),r(_r)||Et(()=>N(_r,!0))}),ze(()=>{Qi.set((r(qn)||E()||f()||me()||pe()||ue()||Le())&&!r(Lr)&&(s()==="video"||s()==="ads")&&!a()&&I())}),ze(()=>{!me()&&r(di)&&!u()&&mi(e.uiConfig.controls.hideTimeoutCursor),Et(()=>N(di,me(),!0))}),ze(()=>{r(xn),f(),Ve(),Et(()=>pd(r(xn),f(),Ve()))}),ze(()=>{r(Jn),G(),ae(),Re(),Et(()=>{let ee=ae()||Re();pd(r(Jn),G(),ee)})}),ze(()=>{let ee=X();ee&&(G(),Et(()=>cl(ee,G(),xr)))}),ze(()=>{let ee=M();ee&&(G(),Et(()=>S1(ee,G(),Or)))}),ze(()=>{var ee;!at()&&w()&&(Et(()=>ft.set(!1)),(ee=je())==null||ee.focus())}),ze(()=>{y()&&Zo()});let He=Q("video360"),jt=J(void 0),wi=ee=>{$n.set(On(Qo(),{title:r(jt)},"title",ee))},un=(ee,Ye)=>{var Di,Fi;let Kt=(Fi=(Di=e.store.callbacks)==null?void 0:Di.uiInfo)==null?void 0:Fi.onUpcomingLiveViewStateChanged;if(!Kt)return;let vi=!!Ye,Bi=K(K({},On(r(po),{upcomingLiveScreen:Ye},"upcomingLiveScreen",vi)),ee);Kt(Bi)};var Vo=w5();kt("blur",na,Zo);var Ro=fe(Vo);Ro.__mousemove=fo;var Oo=_(Ro);let er=g(()=>s()==="ads"),es=g(()=>r(ln)?yr:void 0);st(Vf(Oo,{startDoubleForwardActivationTimer:Yi,stopDoubleForward:Mi,toggleFullscreen:Vr,hideContextMenu:Zo,showHotKeyHelpers:Mo,showKeyMap:Xn,get isAds(){return r(er)},get fakePlayButtonHandler(){return r(es)},get nextButtonActive(){return Jt()},get prevButtonActive(){return he()},children:(ee,Ye)=>{var Kt=y5(),vi=fe(Kt);Ra(vi,{get hideCursor(){return r($r)},onClick:Lo,onContextMenu:cn,onMouseDown:ho,onMouseUp:En,onDblClick:Po,get videoContainer(){return _t()},set videoContainer(Fi){_t(Fi)}});var Bi=k(vi,2);ca(Bi,()=>"slot",!1,(Fi,tr)=>{Ie(Fi,()=>({name:Va}))});var Di=k(Bi,2);$s(Di,De,Fi=>{var tr=$5(),Ti=fe(tr);let Si=g(()=>s()!=="thumb"||a()||lo&&e.autoplay);Pa(Ti,{get hidden(){return r(Si)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart},onContextMenu:cn});var No=k(Ti,2);pv(No,{});var _o=k(No,2);mv(_o,{get isVisible(){return L()}});var Cr=k(_o,2);{var bo=Ge=>{let pi=g(()=>{var Bo;return(Bo=e.live)==null?void 0:Bo.startTime});zd(Ge,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(pi)},onUpcomingLiveViewStateChanged:un,onContextMenu:cn})};R(Cr,Ge=>{s()==="LiveWaitingStart"&&Ge(bo)})}var ir=k(Cr,2);{var St=Ge=>{La(Ge,{kind:"recover",get thumbUrl(){return e.thumbUrl},onContextMenu:cn})};R(ir,Ge=>{s()==="LiveWaitingRecover"&&Ge(St)})}var wt=k(ir,2);{var mo=Ge=>{La(Ge,{kind:"record",get thumbUrl(){return e.thumbUrl},onContextMenu:cn})};R(wt,Ge=>{s()==="LiveWaitingRecord"&&Ge(mo)})}var Xo=k(wt,2);{var Zi=Ge=>{var pi=g5();let Bo;var is=_(pi);ad(is,{get adsSlotId(){return Je()},get adsParams(){return zt()},get adsAutoplayParam(){return Yt()},get duration(){return Zt()}}),h(pi),D(pn=>Bo=se(pi,1,"ads-container svelte-jtgjmv",null,Bo,pn),[()=>({hidden:s()!=="ads"})]),$(Ge,pi)};R(Xo,Ge=>{e.showAds&&lt()&&Ge(Zi)})}var ui=k(Xo,2);{var Hi=Ge=>{let pi=g(()=>!Qe()&&e.showAutoplayNext&&T());Pf(Ge,{get title(){return Ee()},get thumb(){return ce()},get isHide(){return r(pi)},clickCloseIcon:()=>N(ko,!0)})};R(ui,Ge=>{r(jn)&&Ee()&&ce()&&Ge(Hi)})}var Ls=k(ui,2);{var Nr=Ge=>{let pi=g(()=>!p());Um(Ge,{get title(){return e.title},get isHidden(){return r(pi)},onVisibilityChanged:wi,get ref(){return r(jt)},set ref(Bo){N(jt,Bo,!0)}})};R(Ls,Ge=>{r(Gn)&&Ge(Nr)})}var sc=k(Ls,2);{var ju=Ge=>{let pi=g(()=>s()==="video"&&p());Hd(Ge,{get isShifted(){return r(pi)}})};R(sc,Ge=>{Z()&&Ge(ju)})}var ac=k(sc,2);{var Yu=Ge=>{var pi=h5(),Bo=_(pi);nd(Bo,{get"aria-label"(){return He}}),h(pi),$(Ge,pi)};R(ac,Ge=>{j()&&Ge(Yu)})}var lc=k(ac,2);{var Zu=Ge=>{Ud(Ge,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return oe()}})};R(lc,Ge=>{ue()&&Ge(Zu)})}var dc=k(lc,2);{var Xu=Ge=>{ka(Ge,{get shifted(){return p()},get captions(){return Ze()},get position(){return $e()},get playerSize(){return U()}})};R(dc,Ge=>{Oe().value!=="off"&&Ge(Xu)})}var cc=k(dc,2);{var Ju=Ge=>{var pi=_5();pi.__contextmenu=cn,pi.__click=[v5,G,Ct,f,Pt,Zo];var Bo=_(pi);Aa(Bo,{}),h(pi),$(Ge,pi)};R(cc,Ge=>{a()&&Ge(Ju)})}var uc=k(cc,2);{var ep=Ge=>{let pi=g(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),Bo=g(()=>s()==="ads"),is=g(()=>e.canRewindLive&&te()!==0);Fd(Ge,{get bottomHidden(){return r(pi)},get bottomNoSmooth(){return F()},get showControls(){return p()},get isAds(){return r(Bo)},get canRewindLive(){return r(is)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Xt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return ke()},get nextButtonActive(){return Jt()},get prevButtonActive(){return he()},get isOneVideoPlaylist(){return Ue()},customFullscreenSupported:br,toggleFullscreen:Vr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(Zr)},set playerControlsWrapperRef(pn){N(Zr,pn,!0)},get playerControlsRef(){return r(zn)},set playerControlsRef(pn){N(zn,pn,!0)}})};R(uc,Ge=>{lt()&&Ge(ep)})}var pc=k(uc,2);{var tp=Ge=>{var pi=b5(),Bo=_(pi);let is=g(()=>{var pn;return(pn=r(zn))==null?void 0:pn.clientHeight});qd(Bo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(is)},returnFocus:()=>{var pn;return(pn=je())==null?void 0:pn.focus()},get ref(){return r(xn)},set ref(pn){N(xn,pn,!0)}}),h(pi),$(Ge,pi)};R(pc,Ge=>{!ue()&&s()!=="ads"&&Ge(tp)})}var fc=k(pc,2);let Oa=g(()=>!r(Qn));cd(fc,{get isLive(){return we()},get isHidden(){return r(Oa)},get isPlaying(){return Te()},get position(){return $e()},get duration(){return te()}});var mc=k(fc,2);Bm(mc,{get data(){return an}});var wl=k(mc,2);Af(wl,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ge;return(Ge=je())==null?void 0:Ge.focus()},get visible(){return G()},get playerContainerRef(){return r(po)},get position(){return Ke()},get menuElementRef(){return r(Jn)},set menuElementRef(Ge){N(Jn,Ge,!0)}});var Sl=k(wl,2);{var ip=Ge=>{Qd(Ge,{onClose:mt,onSelectAutoQuality:()=>{mr("auto"),mt()}})};R(Sl,Ge=>{r(wn)&&Ge(ip)})}var Cl=k(Sl,2);{var Tl=Ge=>{ya(Ge,{})};R(Cl,Ge=>{r(ci)&&Ge(Tl)})}var El=k(Cl,2);{var op=Ge=>{Nf(Ge,{})};R(El,Ge=>{it()&&Ge(op)})}var vc=k(El,2);{var np=Ge=>{vd(Ge,{})};R(vc,Ge=>{ht()&&Ge(np)})}$(Fi,tr)}),$(ee,Kt)},$$slots:{default:!0}}),ee=>je(ee),()=>je());var Ps=k(Oo,2);st(Ps,ee=>N(sn,ee),()=>r(sn)),h(Ro),st(Ro,ee=>N(po,ee),()=>r(po));var Sr=k(Ro,2);{var ts=ee=>{var Ye=x5();$(ee,Ye)};R(Sr,ee=>{pt()&&ee(ts)})}kt("mouseenter",Ro,Ao),kt("mouseleave",Ro,Rr),kt("click",Ro,In,!0),kt("focusin",Ro,Yn,!0),$(t,Vo),W(),o()}ct(["mousemove","contextmenu","click"]);import{clientChecker as jd,PlaybackState as V5}from"@vkontakte/videoplayer-core/es2015";import{noop as R5}from"@vkontakte/videoplayer-shared/es2015";var C5=P('<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),T5=P("<div><!></div>"),E5={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;
340
345
  animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
341
346
  .triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
342
347
  .triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
@@ -352,7 +357,7 @@ Try switching the\xA0quality to\xA0Auto.`},Kh=eb;var $s=new Map;$s.set(Qh.EN,Kh)
352
357
  100% {
353
358
  opacity: 0;
354
359
  }
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 Au(t,e){F(e,!0),q(t,l5);let i=m(e,"seekStep",3,0),o=Y(!1),n=0,s=0,l=Y(oi(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)};Zo(()=>{window.clearTimeout(n)});var a=a5();a.__click=d;var u=_(a);{var f=v=>{var p=s5(),x=he(p),w=P(x,2),y=_(w),S=_(y),T=P(S,2),E=P(T,2);h(y);var V=P(y,2),k=_(V,!0);h(V),h(w),B(I=>{var R,X,D,H;te(x,1,`semicircle ${(R=e.side)!=null?R:""}`,"svelte-nhq2ld"),te(S,1,`triangle ${(X=e.side)!=null?X:""}`,"svelte-nhq2ld"),te(T,1,`triangle ${(D=e.side)!=null?D:""}`,"svelte-nhq2ld"),te(E,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),be(k,I)},[()=>K("doubletap_seek_step",{seconds:r(l).toFixed(0)})]),$(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")}),$(t,a),U()}ct(["click"]);var d5=(t,e,i)=>{e(!1),i()},c5=M('<div class="overlay svelte-1qdxi6t"></div> <div class="next-video svelte-1qdxi6t"><div class="top svelte-1qdxi6t"><div class="caption svelte-1qdxi6t"> </div> <!></div> <div class="row svelte-1qdxi6t"><div class="column svelte-1qdxi6t"><div class="thumb svelte-1qdxi6t"><div></div> <!></div></div> <div class="column svelte-1qdxi6t"><div class="title svelte-1qdxi6t"> </div></div></div></div>',1),u5={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 nv(t,e){F(e,!0),q(t,u5);let[i,o]=Ue(),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,x=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{u(!1),p()},y=()=>{e.clickCloseIcon(),x()};Lt(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var S=qe(),T=he(S);{var E=V=>{var k=c5(),I=P(he(k),2),R=_(I),X=_(R),D=_(X,!0);h(X);var H=P(X,2);ba(H,{onClick:y}),h(R);var W=P(R,2);W.__click=[d5,u,v];var ee=_(W),j=_(ee),ue=_(j);let oe;var pe=P(ue,2);{var $e=Ne=>{fd(Ne,{get isRunning(){return s()},onTimerEnded:w})};L(pe,Ne=>{n()&&Ne($e)})}h(j),h(ee);var me=P(ee,2),Ae=_(me),re=_(Ae,!0);h(Ae),h(me),h(W),h(I),B((Ne,se)=>{be(D,Ne),rt(j,`background-image: url('${e.thumb}')`),oe=te(ue,1,"thumb-overlay svelte-1qdxi6t",null,oe,se),be(re,e.title)},[()=>n()?K("end_screen_next_video"):K("end_screen_recommended_video"),()=>({withOpacity:n()})]),$(V,k)};L(T,V=>{e.isHide||V(E)})}$(t,S),U(),o()}ct(["click"]);import{clientChecker as p5}from"@vkontakte/videoplayer-core/es2015";var d_=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Lt(()=>{p5.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))}),Zo(()=>{i==null||i(),clearTimeout(o)})};import{VideoFormat as f5}from"@vkontakte/videoplayer-core/es2015";var Mu=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}};import{clientChecker as m5}from"@vkontakte/videoplayer-core/es2015";var c_=({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=()=>m5.device.isIOS&&xe(l)===f5.DASH_LIVE_CMAF,v=()=>{a==null||a(),a=null},p=x=>{if(v(),!f()||!x)return;let w=u();if(!w)return;let y=new Mu(w),S=xe(d),T=xe(s),E=xe(n);for(let I of S)T.some(X=>X.value===I.id)&&y.attach(I,E.value===I.id);let V=d.subscribe(I=>{for(let R of I)y.updateSrc(R)}),k=()=>{let I=y.getCurrentShowingId();o(xe(s).find(R=>R.value===I))};w.textTracks.addEventListener("change",k),a=()=>{V(),y.detachAll(),w.textTracks.removeEventListener("change",k)}};Lt(()=>i.subscribe(p)),Zo(v)};var h5=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},_5=M("<!> <!>",1),b5=M("<div><!></div>"),$5=M('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),y5=M("<div><!></div>"),x5=M('<div class="settings-mobile svelte-7yl31d"><!></div>'),w5=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),S5=M('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),C5={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 Yr,Mr;F(e,!0),q(t,C5);let[i,o]=Ue(),n=()=>C(He,"$playerPhase",i),s=()=>C(ri,"$isLoaderVisible",i),l=()=>C(ze,"$adPlaybackState",i),d=()=>C(ho,"$crashed",i),a=()=>C(kr,"$notificationsToShow$",i),u=()=>C(Be,"$playbackState$",i),f=()=>C(Se,"$graphIsOpened$",i),v=()=>C(tt,"$interactiveHideMobileControls",i),p=()=>C(Ao,"$isEnded$",i),x=()=>C(_o,"$isInteractiveExpectation$",i),w=()=>C(Pt,"$controlsVisible",i),y=()=>C($i,"$touched",i),S=()=>C(on,"$autoplayNextEnabled$",i),T=()=>C(zt,"$postrollPassed",i),E=()=>C(qo,"$bottomNoSmooth",i),V=()=>C(Ko,"$videoSize",i),k=()=>C(ft,"$playerSize",i),I=()=>C(Xe,"$isFullscreen",i),R=()=>C(Re,"$position$",i),X=()=>C(je,"$duration$",i),D=()=>C(Rn,"$loadedMetadata",i),H=()=>C(bi,"$settingsMenuVisible",i),W=()=>C(dt,"$scrubbingInProgress",i),ee=()=>C(qt,"$volumeChangingInProgress",i),j=()=>C(Mo,"$chromecastConnected$",i),ue=()=>C(Kt,"$isControlsAvailable",i),oe=()=>C(pi,"$isInteractiveTime$",i),pe=()=>C(pt,"$isActiveLive",i),$e=()=>C(Ti,"$settingsMenuOpenedByKeyboard",i),me=()=>C(ce,"$language$",i),Ae=()=>C(Tt,"$disabledControls$",i),re=()=>C(Ft,"$is3DVideo",i),Ne=()=>C(_t,"$icon3DVideoVisible",i),se=()=>C(go,"$chromecastDeviceName$",i),N=()=>C(en,"$currentSubtitle$",i),De=()=>C(Q,"$currentSubtitleCaptions$",i),le=()=>C(we,"$realDuration$",i),ge=()=>C(ui,"$isLive$",i),ie=()=>C(At,"$isPlaying$",i),ve=()=>C(ni,"$debugPanelVisible",i),Fe=m(e,"videoContainer",15),fe=m(e,"adsSlotId",3,void 0),st=m(e,"adsParams",3,void 0),Z=m(e,"adsPreviewParam",3,void 0),Le=m(e,"adsAutoplayParam",3,void 0),Pe=m(e,"duration",3,void 0),Ke=m(e,"logoTargetUrl",3,""),lt=m(e,"showNextPrevButtons",3,!1),mt=m(e,"nextButtonActive",3,!1),vt=m(e,"prevButtonActive",3,!1),Ct=m(e,"endScreenVideoTitle",3,void 0),Ye=m(e,"endScreenVideoThumb",3,void 0),Ut=m(e,"isOneVideoPlaylist",3,!1),ti=m(e,"showMiniTimer",3,!1),jt=m(e,"fullScreenTarget",3,void 0),Wt=m(e,"playerStarted",3,!1),ne=m(e,"showEndScreen",3,!0),{notifications$:Ht,graphIsOpened$:Se}=vo(),_e=e.store.getLogger().createComponentLog("Root component"),ce=e.store.interfaceLanguage$,Be=e.store.state.playbackState$,ze=e.store.ads.playbackState,Re=e.store.state.positionWithScrubbing$,je=e.store.state.duration$,He=e.store.playerPhase,Xe=e.store.ui.isFullscreen,Pt=e.store.ui.controlsVisible,Kt=e.store.ui.isControlsAvailable,tt=e.store.ui.interactiveHideMobileControls,bi=e.store.ui.settingsMenu.visible$,Ti=e.store.ui.settingsMenu.openedByBtnKeyboard$,dt=e.store.ui.scrubbingInProgress,qt=e.store.ui.volumeChangingInProgress,ni=e.store.ui.debugPanelVisible,ri=e.store.state.isLoaderVisible,Ao=e.store.state.isEnded$,Mo=e.store.state.chromecastConnected$,go=e.store.state.chromecastDeviceName$,zt=e.store.ads.postrollPassed,ui=e.store.state.isLive$,At=e.store.state.isPlaying$,pt=e.store.state.isActiveLive$,xi=e.store.state.isRewindableLive$,ho=e.store.state.crashed$,Qi=e.store.webApi.annotationsApi,di=e.store.webApi.pictureInPictureApi,Ko=e.store.state.videoSize$,en=e.store.state.currentSubtitle$,Q=e.store.state.currentSubtitleCaptions$,we=e.store.state.duration$,ft=e.store.ui.playerSize,Ft=e.store.ui.is3DVideo,_t=e.store.ui.icon3DVideoVisible,Yt=e.store.state.isInteractive,pi=e.store.state.isInteractiveTime$,_o=e.store.state.isInteractiveExpectation$,fi=e.store.state.hasInteractiveBranches,Tt=e.store.ui.controls.disabledControls$,$i=e.store.ui.touched,tn=e.store.ui.overlayContainer$,on=e.store.ui.autoplayNextEnabled$,Rn=e.store.state.loadedMetadata$,mi=e.store.actions.internal.closeSettingsMenu,Lo=(Yr=e.store.callbacks)==null?void 0:Yr.onDisabledPlayPrevChapterClick,Nn=(Mr=e.store.callbacks)==null?void 0:Mr.onDisabledSeekToInteractiveClick,ar=e.store.actions.internal.setQuality,Ei=Y(void 0),On=Y(void 0),Di=Y(void 0),bo=Y(void 0),lr,nn,Bn=g(()=>(n()==="video"&&s()||n()==="ads"&&l()==="inactive")&&!d()),dr=Y(void 0),{closeNotification:Ir,notificationsToShow$:kr}=Ht,cr=g(()=>!!a().slow_video),ur=()=>Ir("slow_video"),qo=ae(!1),Pr,Ri=Y(!1),Dn=g(()=>u()!==v5.PLAYING),wn=Y(!1),pr=g(()=>f()||v()||!r(Ri)&&(p()&&!!fi||r(Dn)&&x())),fr=Y(!0),mr=g(()=>e.uiConfig.features.thumbTimer&&ti()&&n()==="video"&&!w()&&!d()&&!Yt&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),Hn=Y(!1),vr=g(()=>(ne()||e.showAutoplayNext&&S())&&!!Ct()&&!!Ye()&&(e.showAds&&T()||!e.showAds)&&p()&&!d()&&!r(Hn)),Fn=Y(!1);di==null||di.setContext(kl());let gr=at=>{at&&!Yt&&Vo(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:gr});let hr=()=>{clearTimeout(lr),O(Ri,!1),v()&&tt.set(!1)},Vo=at=>{hr(),O(Ri,!0),lr=setTimeout(()=>O(Ri,!1),at);let ai=at-100;Pr=setTimeout(()=>{E()&&qo.set(!1)},ai>0?ai:at)},_r=Ft.subscribe(at=>{_t.set(at),at&&(clearTimeout(nn),nn=setTimeout(()=>_t.set(!1),e.uiConfig.controls.hide360IconTimeout))}),ut=(...ai)=>xt(null,[...ai],function*(at=Ds()){var ki,po,ji,xo,Yi,Wn;if(at&&!Wd.device.isIOS){let wi=id(),Kn=$o(),qn=Wd.browser.isSamsungBrowser&&wi===e.shadowRootContainer;at=wi===Kn||qn}if(at){Vo(e.uiConfig.controls.hideTimeoutFullscreen);try{yield di==null?void 0:di.exit()}catch(wi){_e({message:String(wi)})}try{let wi=(ki=V())!=null&&ki.width&&((po=V())!=null&&po.height)?V():k();yield Jh(wi)}catch(wi){_e({message:String(wi)})}}Xe.set(at),e.store.getAdmanWrapper().setFullscreen(at),I()?(xo=(ji=e.store.callbacks)==null?void 0:ji.onFullscreenEnter)==null||xo.call(ji):(Wn=(Yi=e.store.callbacks)==null?void 0:Yi.onFullscreenExit)==null||Wn.call(Yi)}),si=at=>{let ai=at,{width:ki,height:po}=ai.target;ft.set({width:ki,height:po})},rn=()=>{let{width:at,height:ai}=r(Ei).getBoundingClientRect();ft.set({width:at,height:ai})};Lt(()=>{var at;return iu(ut),e.uiConfig.features.annotationsInside&&(Qi==null||Qi.init(r(Ei))),ga(di)&&(di==null||di.assignPlayerContainer(r(Ei)),di==null||di.setExternalEventHandlers({resize:si,leavepictureinpicture:rn})),O(fr,!Wd.device.isIphoneOrOldIpad),e.interactiveContainer&&((at=Fe().parentElement)==null||at.insertBefore(e.interactiveContainer,Fe().nextSibling)),()=>{clearTimeout(lr),clearTimeout(Pr),clearTimeout(nn),_r(),di==null||di.dispose().catch(ai=>{_e({message:String(ai)})}),ou(ut)}});let Ii=Y(!0),Gi=Y(!0),sn=at=>{let ai=R()+(at==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;ai<0?(O(Ii,!1),ai=0):ai>=X()&&(O(Gi,!1),ai=X()),O(wn,!0),e.seekTime(ai)},$o=()=>Wd.device.isIOS?r(Ei):!e.uiConfig.allowChangingFullscreenTarget||!jt()?e.outerContainerRef:jt().contains(e.outerContainerRef)?jt():e.outerContainerRef,an=()=>xt(null,null,function*(){try{if(Ds())yield tu(document),_e({message:"exit fullscreen"});else{if(_e({message:"request fullscreen"}),Wd.device.isIOS&&!D())return;yield eu($o())}}catch(at){_e({message:String(at)})}}),ln=()=>{mi()},dn=at=>{if(at.preventDefault(),H()){ln();return}if(!Wt()){e.firstStart(),Vo(e.uiConfig.controls.hideTimeoutCursor);return}O(wn,!1),w()?hr():Vo(e.uiConfig.controls.hideTimeoutMobile)},cn=()=>{$i.set(!0)},qr=()=>{Yt||(qo.set(!0),Vo(e.uiConfig.controls.hideTimeoutCursor))},Qr=at=>{Lo&&(Lo(at),Vo(e.uiConfig.controls.hideTimeoutMobile))},Ar=at=>{Nn&&(Nn(at),Vo(e.uiConfig.controls.hideTimeoutMobile))};Qe(()=>{tn.set(r(dr))}),Qe(()=>{Pt.set((r(Dn)||H()||W()||ee()||j()||!r(vr)&&(p()||r(Ri)&&!r(wn)))&&!r(pr)&&n()==="video"&&!d()&&ue())}),Qe(()=>{!W()&&r(Fn)&&!oe()&&Vo(e.uiConfig.controls.hideTimeoutMobile),O(Fn,W(),!0)}),Qe(()=>{O(Ii,R()>0),O(Gi,!pe()&&R()<X(),!0)}),Qe(()=>{dd(r(bo),H(),$e(),!0)});let Gr=K("aria_label_video_player"),Un=K("video360");d_({fullScreenChangeHandler:ut,getFullscreenTarget:$o}),c_({store:e.store,getFullscreenTarget:$o});let br=(at,ai)=>{var xo,Yi;let ki=(Yi=(xo=e.store.callbacks)==null?void 0:xo.uiInfo)==null?void 0:Yi.onUpcomingLiveViewStateChanged;if(!ki)return;let po=!!ai,ji=z(z({},Ln(r(Ei),{upcomingLiveScreen:ai},"upcomingLiveScreen",po)),at);ki(ji)};var yo=S5();St("blur",oa,ln);var zn=_(yo);Ra(zn,{onClick:dn,get videoContainer(){return Fe()},set videoContainer(at){Fe(at)}});var Zt=P(zn,2);ca(Zt,()=>"slot",!1,(at,ai)=>{Me(at,()=>({name:Va}))});var uo=P(Zt,2);da(uo,me,at=>{var ai=w5(),ki=he(ai);let po=g(()=>n()!=="thumb"||d()||Yt&&e.autoplay);Aa(ki,{get hidden(){return r(po)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var ji=P(ki,2);{var xo=Ze=>{var Xt=_5(),Ai=he(Xt);{var Co=bt=>{let li=g(()=>e.uiConfig.controls.seekStepMobile/1e3);Au(bt,{side:"left",get seekStep(){return r(li)},handleSingleFirstClick:dn,handleSecondClick:()=>sn("backward")})};L(Ai,bt=>{r(Ii)&&bt(Co)})}var To=P(Ai,2);{var Ce=bt=>{let li=g(()=>e.uiConfig.controls.seekStepMobile/1e3);Au(bt,{side:"right",get seekStep(){return r(li)},handleSingleFirstClick:dn,handleSecondClick:()=>sn("forward")})};L(To,bt=>{r(Gi)&&bt(Ce)})}$(Ze,Xt)};L(ji,Ze=>{e.canRewindLive&&xi&&!Ae().has("TIMELINE")&&Ze(xo)})}var Yi=P(ji,2);{var Wn=Ze=>{let Xt=g(()=>{var Ai;return(Ai=e.live)==null?void 0:Ai.startTime});Dd(Ze,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(Xt)},onUpcomingLiveViewStateChanged:br})};L(Yi,Ze=>{n()==="LiveWaitingStart"&&Ze(Wn)})}var wi=P(Yi,2);{var Kn=Ze=>{Ma(Ze,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};L(wi,Ze=>{n()==="LiveWaitingRecover"&&Ze(Kn)})}var qn=P(wi,2);{var cs=Ze=>{Ma(Ze,{kind:"record",get thumbUrl(){return e.thumbUrl}})};L(qn,Ze=>{n()==="LiveWaitingRecord"&&Ze(cs)})}var Lr=P(qn,2);{var us=Ze=>{var Xt=b5();let Ai;var Co=_(Xt);nd(Co,{get adsSlotId(){return fe()},get adsParams(){return st()},get adsPreviewParam(){return Z()},get adsAutoplayParam(){return Le()},get duration(){return Pe()}}),h(Xt),B(To=>Ai=te(Xt,1,"ads-container svelte-7yl31d",null,Ai,To),[()=>({hidden:n()!=="ads"})]),$(Ze,Xt)};L(Lr,Ze=>{e.showAds&&Wt()&&Ze(us)})}var oo=P(Lr,2);{var Qn=Ze=>{let Xt=g(()=>!ne()&&e.showAutoplayNext&&S());nv(Ze,{get title(){return Ct()},get thumb(){return Ye()},get isHide(){return r(Xt)},clickCloseIcon:()=>O(Hn,!0)})};L(oo,Ze=>{r(vr)&&Ct()&&Ye()&&Ze(Qn)})}var $r=P(oo,2);{var Zr=Ze=>{Od(Ze,{})};L($r,Ze=>{re()&&Ze(Zr)})}var it=P($r,2);{var Et=Ze=>{var Xt=$5(),Ai=_(Xt);td(Ai,{get"aria-label"(){return Un}}),h(Xt),$(Ze,Xt)};L(it,Ze=>{Ne()&&Ze(Et)})}var vi=P(it,2);{var no=Ze=>{Bd(Ze,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return se()}})};L(vi,Ze=>{j()&&Ze(no)})}var fo=P(vi,2);{var wo=Ze=>{ka(Ze,{get shifted(){return w()},get captions(){return De()},get position(){return R()},get playerSize(){return k()},isMobile:!0})};L(fo,Ze=>{N().value!=="off"&&Ze(wo)})}var Zi=P(fo,2);{var Qo=Ze=>{var Xt=y5();Xt.__click=[h5,H,bi,ln];var Ai=_(Xt);Pa(Ai,{}),h(Xt),$(Ze,Xt)};L(Zi,Ze=>{d()&&Ze(Qo)})}var un=P(Zi,2);{var Sn=Ze=>{let Xt=g(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),Ai=g(()=>n()==="ads"),Co=g(()=>e.canRewindLive&&le()!==0);Nd(Ze,{get bottomHidden(){return r(Xt)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return r(Ai)},get canRewindLive(){return r(Co)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ke()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return lt()},get nextButtonActive(){return mt()},get prevButtonActive(){return vt()},get isOneVideoPlaylist(){return Ut()},get customFullscreenSupported(){return r(fr)},get endScreenShown(){return r(vr)},toggleFullscreen:an,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Qr,onDisabledSeekToInteractiveClick:Ar,get playerControlsWrapperRef(){return r(On)},set playerControlsWrapperRef(To){O(On,To,!0)},get playerControlsRef(){return r(Di)},set playerControlsRef(To){O(Di,To,!0)}})};L(un,Ze=>{Wt()&&Ze(Sn)})}var Hi=P(un,2);{var Ro=Ze=>{var Xt=x5(),Ai=_(Xt);Ud(Ai,{get supportLink(){return e.supportLink},get returnFocus(){return g5},get ref(){return r(bo)},set ref(Co){O(bo,Co,!0)}}),h(Xt),$(Ze,Xt)};L(Hi,Ze=>{H()&&Ze(Ro)})}var Gn=P(Hi,2);let jn=g(()=>!r(mr));ad(Gn,{get isLive(){return ge()},get isHidden(){return r(jn)},get isPlaying(){return ie()},get position(){return R()},get duration(){return X()}});var pn=P(Gn,2);{var Vr=Ze=>{ya(Ze,{})};L(pn,Ze=>{r(Bn)&&Ze(Vr)})}var fn=P(pn,2);{var Xr=Ze=>{pd(Ze,{})};L(fn,Ze=>{ve()&&Ze(Xr)})}var So=P(fn,2);{var Cn=Ze=>{zd(Ze,{onClose:ur,onSelectAutoQuality:()=>{ar("auto"),ur()}})};L(So,Ze=>{r(cr)&&Ze(Cn)})}$(at,ai)});var jr=P(uo,2);ot(jr,at=>O(dr,at),()=>r(dr)),h(yo),ot(yo,at=>O(Ei,at),()=>r(Ei)),B(()=>We(yo,"aria-label",Gr)),St("click",yo,cn,!0),St("focusin",yo,qr,!0),$(t,yo),U(),o()}ct(["click"]);function Lu(t){let e="";return io(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),io(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),io(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),io(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),io(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),io(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),io(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),io(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),io(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),io(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),io(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),io(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),io(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),io(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),io(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),io(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),io(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),io(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),io(t.font)&&(e+=`--font:${t.font};`),io(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),io(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function io(t){return typeof t=="string"&&!t.includes(";")}import{debounceFn as T5}from"@vkontakte/videoplayer-shared/es2015";var E5=M('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),I5={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 sv(t,e){F(e,!0),q(t,I5);let[i,o]=Ue(),n=()=>C(ee,"$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(X,"$currentSubtitleCaptions$",i),p=()=>C(k,"$positionExact$",i),x=()=>C(H,"$isLive$",i),w=()=>C(W,"$isRewindableLive$",i),y=m(e,"outsideDuration",3,0),S=m(e,"videoContainer",15),{playerPhase:T,state:{crashed$:E,duration$:V,positionExact$:k,isPlaying$:I,currentSubtitle$:R,currentSubtitleCaptions$:X,positionWithScrubbing$:D,isLive$:H,isRewindableLive$:W},ui:{playerSize:ee,controls:j},actions:{internal:{getVideoElement:ue}}}=ke(),oe=8,pe=Y(!1),$e=oi({}),me=()=>{O(pe,!0)},Ae=()=>{O(pe,!1)},re=T5(_l,260);Qe(()=>{n(),re(ue(),j,$e,r(pe))});let Ne=g(()=>s()?xn(l()-d()):xn(isFinite(l())?l():y()));var se=E5(),N=_(se);Ra(N,{hideCursor:!1,get videoContainer(){return S()},set videoContainer(Pe){S(Pe)}});var De=P(N,2);ca(De,()=>"slot",!1,(Pe,Ke)=>{Me(Pe,()=>({name:Va}))});var le=P(De,2);let ge=g(()=>a()!=="thumb"||u());Aa(le,{get hidden(){return r(ge)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var ie=P(le,2);{var ve=Pe=>{ka(Pe,{shifted:!1,get captions(){return v()},get position(){return p()},get playerSize(){return n()}})};L(ie,Pe=>{f().value!=="off"&&Pe(ve)})}var Fe=P(ie,2),fe=_(Fe);sd(fe,{get isLive(){return x()},get isPlaying(){return s()},get time(){return r(Ne)}}),h(Fe);var st=P(Fe,2);let Z;var Le=_(st);Sa(Le,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:oe,tooltipRightOffset:oe,get ref(){return $e.timeline},set ref(Pe){$e.timeline=Pe}}),h(st),h(se),B(Pe=>Z=te(st,1,"timeline svelte-1qfjf44",null,Z,Pe),[()=>({visible:r(pe)})]),St("mouseenter",se,me),St("mouseleave",se,Ae),$(t,se),U(),o()}var L5=M("<div><!></div>"),V5={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;
360
+ }.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 Bu(t,e){z(e,!0),q(t,E5);let i=v(e,"seekStep",3,0),o=J(!1),n=0,s=0,l=J(ni(i())),d=m=>{m.stopPropagation(),s+=1,N(l,i()*(s-1)),s===1?e.handleSingleFirstClick(m):(N(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{s=0,N(o,!1)},300)};on(()=>{window.clearTimeout(n)});var a=T5();a.__click=d;var u=_(a);{var f=m=>{var p=C5(),x=fe(p),y=k(x,2),w=_(y),T=_(w),S=k(T,2),E=k(S,2);h(w);var V=k(w,2),I=_(V,!0);h(V),h(y),D(L=>{var B,F,H,U;se(x,1,`semicircle ${(B=e.side)!=null?B:""}`,"svelte-nhq2ld"),se(T,1,`triangle ${(F=e.side)!=null?F:""}`,"svelte-nhq2ld"),se(S,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),se(E,1,`triangle ${(U=e.side)!=null?U:""}`,"svelte-nhq2ld"),ve(I,L)},[()=>Q("doubletap_seek_step",{seconds:r(l).toFixed(0)})]),$(m,p)};R(u,m=>{r(o)&&m(f)})}h(a),D(()=>{var m;return se(a,1,`double-click-area ${(m=e.side)!=null?m:""}`,"svelte-nhq2ld")}),$(t,a),W()}ct(["click"]);var I5=(t,e,i)=>{e(!1),i()},k5=P('<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),A5={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 gv(t,e){z(e,!0),q(t,A5);let[i,o]=Be(),n=()=>C(d,"$autoplayNextEnabled$",i),s=()=>C(a,"$timerNextVideoRunning$",i),l=Ce(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,m=l.actions.internal.nextVideoAnnouncementClick,p=l.actions.internal.nextVideoAnnouncementAuto,x=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{u(!1),p()},w=()=>{e.clickCloseIcon(),x()};Rt(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var T=Fe(),S=fe(T);{var E=V=>{var I=k5(),L=k(fe(I),2),B=_(L),F=_(B),H=_(F,!0);h(F);var U=k(F,2);ba(U,{onClick:w}),h(B);var Z=k(B,2);Z.__click=[I5,u,m];var re=_(Z),G=_(re),be=_(G);let ie;var me=k(be,2);{var pe=ae=>{gd(ae,{get isRunning(){return s()},onTimerEnded:y})};R(me,ae=>{n()&&ae(pe)})}h(G),h(re);var ue=k(re,2),Le=_(ue),Ve=_(Le,!0);h(Le),h(ue),h(Z),h(L),D((ae,Re)=>{ve(H,ae),dt(G,`background-image: url('${e.thumb}')`),ie=se(be,1,"thumb-overlay svelte-1qdxi6t",null,ie,Re),ve(Ve,e.title)},[()=>n()?Q("end_screen_next_video"):Q("end_screen_recommended_video"),()=>({withOpacity:n()})]),$(V,I)};R(S,V=>{e.isHide||V(E)})}$(t,T),W(),o()}ct(["click"]);import{clientChecker as P5}from"@vkontakte/videoplayer-core/es2015";var C0=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Rt(()=>{P5.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))}),on(()=>{i==null||i(),clearTimeout(o)})};import{VideoFormat as L5}from"@vkontakte/videoplayer-core/es2015";var Du=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}};import{clientChecker as M5}from"@vkontakte/videoplayer-core/es2015";var T0=({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=()=>M5.device.isIOS&&_e(l)===L5.DASH_LIVE_CMAF,m=()=>{a==null||a(),a=null},p=x=>{if(m(),!f()||!x)return;let y=u();if(!y)return;let w=new Du(y),T=_e(d),S=_e(s),E=_e(n);for(let L of T)S.some(F=>F.value===L.id)&&w.attach(L,E.value===L.id);let V=d.subscribe(L=>{for(let B of L)w.updateSrc(B)}),I=()=>{let L=w.getCurrentShowingId();o(_e(s).find(B=>B.value===L))};y.textTracks.addEventListener("change",I),a=()=>{V(),w.detachAll(),y.textTracks.removeEventListener("change",I)}};Rt(()=>i.subscribe(p)),on(m)};var O5=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},N5=P("<!> <!>",1),B5=P("<div><!></div>"),D5=P('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),F5=P("<div><!></div>"),H5=P('<div class="settings-mobile svelte-7yl31d"><!></div>'),U5=P("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),z5=P('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),W5={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 hv(t,e){var yr,Cn;z(e,!0),q(t,W5);let[i,o]=Be(),n=()=>C(lt,"$playerPhase",i),s=()=>C(qi,"$isLoaderVisible",i),l=()=>C(Ue,"$adPlaybackState",i),d=()=>C(Ct,"$crashed",i),a=()=>C(jr,"$notificationsToShow$",i),u=()=>C(ce,"$playbackState$",i),f=()=>C(Jt,"$graphIsOpened$",i),m=()=>C(je,"$interactiveHideMobileControls",i),p=()=>C(ao,"$isEnded$",i),x=()=>C(si,"$isInteractiveExpectation$",i),y=()=>C(bt,"$controlsVisible",i),w=()=>C(xt,"$touched",i),T=()=>C(lo,"$autoplayNextEnabled$",i),S=()=>C(Qi,"$postrollPassed",i),E=()=>C(yn,"$bottomNoSmooth",i),V=()=>C(So,"$videoSize",i),I=()=>C(O,"$playerSize",i),L=()=>C(qe,"$isFullscreen",i),B=()=>C(We,"$position$",i),F=()=>C(Se,"$duration$",i),H=()=>C(_n,"$loadedMetadata",i),U=()=>C(tt,"$settingsMenuVisible",i),Z=()=>C(Wt,"$scrubbingInProgress",i),re=()=>C(ai,"$volumeChangingInProgress",i),G=()=>C(oi,"$chromecastConnected$",i),be=()=>C(Qe,"$isControlsAvailable",i),ie=()=>C(gt,"$isInteractiveTime$",i),me=()=>C(ei,"$isActiveLive",i),pe=()=>C(Vt,"$settingsMenuOpenedByKeyboard",i),ue=()=>C(Ee,"$language$",i),Le=()=>C(_i,"$disabledControls$",i),Ve=()=>C(et,"$is3DVideo",i),ae=()=>C(Qt,"$icon3DVideoVisible",i),Re=()=>C(ft,"$chromecastDeviceName$",i),X=()=>C(Co,"$currentSubtitle$",i),M=()=>C(Ko,"$currentSubtitleCaptions$",i),at=()=>C(Bn,"$realDuration$",i),De=()=>C(Pt,"$isLive$",i),j=()=>C(nt,"$isPlaying$",i),oe=()=>C(li,"$debugPanelVisible",i),Oe=v(e,"videoContainer",15),Ze=v(e,"adsSlotId",3,void 0),$e=v(e,"adsParams",3,void 0),te=v(e,"adsAutoplayParam",3,void 0),we=v(e,"duration",3,void 0),Te=v(e,"logoTargetUrl",3,""),Ke=v(e,"showNextPrevButtons",3,!1),it=v(e,"nextButtonActive",3,!1),ht=v(e,"prevButtonActive",3,!1),pt=v(e,"endScreenVideoTitle",3,void 0),_t=v(e,"endScreenVideoThumb",3,void 0),Je=v(e,"isOneVideoPlaylist",3,!1),zt=v(e,"showMiniTimer",3,!1),Yt=v(e,"fullScreenTarget",3,void 0),Zt=v(e,"playerStarted",3,!1),Xt=v(e,"showEndScreen",3,!0),{notifications$:ke,graphIsOpened$:Jt}=vo(),he=e.store.getLogger().createComponentLog("Root component"),Ee=e.store.interfaceLanguage$,ce=e.store.state.playbackState$,Ue=e.store.ads.playbackState,We=e.store.state.positionWithScrubbing$,Se=e.store.state.duration$,lt=e.store.playerPhase,qe=e.store.ui.isFullscreen,bt=e.store.ui.controlsVisible,Qe=e.store.ui.isControlsAvailable,je=e.store.ui.interactiveHideMobileControls,tt=e.store.ui.settingsMenu.visible$,Vt=e.store.ui.settingsMenu.openedByBtnKeyboard$,Wt=e.store.ui.scrubbingInProgress,ai=e.store.ui.volumeChangingInProgress,li=e.store.ui.debugPanelVisible,qi=e.store.state.isLoaderVisible,ao=e.store.state.isEnded$,oi=e.store.state.chromecastConnected$,ft=e.store.state.chromecastDeviceName$,Qi=e.store.ads.postrollPassed,Pt=e.store.state.isLive$,nt=e.store.state.isPlaying$,ei=e.store.state.isActiveLive$,to=e.store.state.isRewindableLive$,Ct=e.store.state.crashed$,ut=e.store.webApi.annotationsApi,Ot=e.store.webApi.pictureInPictureApi,So=e.store.state.videoSize$,Co=e.store.state.currentSubtitle$,Ko=e.store.state.currentSubtitleCaptions$,Bn=e.store.state.duration$,O=e.store.ui.playerSize,et=e.store.ui.is3DVideo,Qt=e.store.ui.icon3DVideoVisible,Gt=e.store.state.isInteractive,gt=e.store.state.isInteractiveTime$,si=e.store.state.isInteractiveExpectation$,yi=e.store.state.hasInteractiveBranches,_i=e.store.ui.controls.disabledControls$,xt=e.store.ui.touched,Ei=e.store.ui.overlayContainer$,lo=e.store.ui.autoplayNextEnabled$,_n=e.store.state.loadedMetadata$,bn=e.store.actions.internal.closeSettingsMenu,gi=(yr=e.store.callbacks)==null?void 0:yr.onDisabledPlayPrevChapterClick,co=(Cn=e.store.callbacks)==null?void 0:Cn.onDisabledSeekToInteractiveClick,fr=e.store.actions.internal.setQuality,uo=J(void 0),io=J(void 0),Dn=J(void 0),qo=J(void 0),To,mr,Fn=g(()=>(n()==="video"&&s()||n()==="ads"&&l()==="inactive")&&!d()),vr=J(void 0),{closeNotification:ms,notificationsToShow$:jr}=ke,$n=g(()=>!!a().slow_video),Hn=()=>ms("slow_video"),yn=le(!1),Qo,Go=J(!1),Un=g(()=>u()!==V5.PLAYING),gr=J(!1),Yr=g(()=>f()||m()||!r(Go)&&(p()&&!!yi||r(Un)&&x())),po=J(!0),Zr=g(()=>e.uiConfig.features.thumbTimer&&zt()&&n()==="video"&&!y()&&!d()&&!Gt&&(e.uiConfig.hideThumbTimerAfterTouch&&!w()||!e.uiConfig.hideThumbTimerAfterTouch)),zn=J(!1),xn=g(()=>(Xt()||e.showAutoplayNext&&T())&&!!pt()&&!!_t()&&(e.showAds&&S()||!e.showAds)&&p()&&!d()&&!r(zn)),Wn=J(!1);Ot==null||Ot.setContext(Ll());let hr=vt=>{vt&&!Gt&&go(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:hr});let Kn=()=>{clearTimeout(To),N(Go,!1),m()&&je.set(!1)},go=vt=>{Kn(),N(Go,!0),To=setTimeout(()=>N(Go,!1),vt);let fi=vt-100;Qo=setTimeout(()=>{E()&&yn.set(!1)},fi>0?fi:vt)},Xr=et.subscribe(vt=>{Qt.set(vt),vt&&(clearTimeout(mr),mr=setTimeout(()=>Qt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),wn=(...fi)=>Tt(null,[...fi],function*(vt=zs()){var oo,jo,mi,dn,Ni,Gi;if(vt&&!jd.device.isIOS){let ji=rd(),Yo=Eo(),Tn=jd.browser.isSamsungBrowser&&ji===e.shadowRootContainer;vt=ji===Yo||Tn}if(vt){go(e.uiConfig.controls.hideTimeoutFullscreen);try{yield Ot==null?void 0:Ot.exit()}catch(ji){he({message:String(ji)})}try{let ji=(oo=V())!=null&&oo.width&&((jo=V())!=null&&jo.height)?V():I();yield v1(ji)}catch(ji){he({message:String(ji)})}}qe.set(vt),e.store.getAdmanWrapper().setFullscreen(vt),L()?(dn=(mi=e.store.callbacks)==null?void 0:mi.onFullscreenEnter)==null||dn.call(mi):(Gi=(Ni=e.store.callbacks)==null?void 0:Ni.onFullscreenExit)==null||Gi.call(Ni)}),mt=vt=>{let fi=vt,{width:oo,height:jo}=fi.target;O.set({width:oo,height:jo})},ci=()=>{let{width:vt,height:fi}=r(uo).getBoundingClientRect();O.set({width:vt,height:fi})};Rt(()=>{var vt;return lu(wn),e.uiConfig.features.annotationsInside&&(ut==null||ut.init(r(uo))),ga(Ot)&&(Ot==null||Ot.assignPlayerContainer(r(uo)),Ot==null||Ot.setExternalEventHandlers({resize:mt,leavepictureinpicture:ci})),N(po,!jd.device.isIphoneOrOldIpad),e.interactiveContainer&&((vt=Oe().parentElement)==null||vt.insertBefore(e.interactiveContainer,Oe().nextSibling)),()=>{clearTimeout(To),clearTimeout(Qo),clearTimeout(mr),Xr(),Ot==null||Ot.dispose().catch(fi=>{he({message:String(fi)})}),du(wn)}});let sn=J(!0),Sn=J(!0),Pr=vt=>{let fi=B()+(vt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;fi<0?(N(sn,!1),fi=0):fi>=F()&&(N(Sn,!1),fi=F()),N(gr,!0),e.seekTime(fi)},Eo=()=>jd.device.isIOS?r(uo):!e.uiConfig.allowChangingFullscreenTarget||!Yt()?e.outerContainerRef:Yt().contains(e.outerContainerRef)?Yt():e.outerContainerRef,an=()=>Tt(null,null,function*(){try{if(zs())yield au(document),he({message:"exit fullscreen"});else{if(he({message:"request fullscreen"}),jd.device.isIOS&&!H())return;yield su(Eo())}}catch(vt){he({message:String(vt)})}}),hi=()=>{bn()},Ii=vt=>{if(vt.preventDefault(),U()){hi();return}if(!Zt()){e.firstStart(),go(e.uiConfig.controls.hideTimeoutCursor);return}N(gr,!1),y()?Kn():go(e.uiConfig.controls.hideTimeoutMobile)},Io=()=>{xt.set(!0)},qn=()=>{Gt||(yn.set(!0),go(e.uiConfig.controls.hideTimeoutCursor))},_r=vt=>{gi&&(gi(vt),go(e.uiConfig.controls.hideTimeoutMobile))},Lr=vt=>{co&&(co(vt),go(e.uiConfig.controls.hideTimeoutMobile))};ze(()=>{Ei.set(r(vr))}),ze(()=>{bt.set((r(Un)||U()||Z()||re()||G()||!r(xn)&&(p()||r(Go)&&!r(gr)))&&!r(Yr)&&n()==="video"&&!d()&&be())}),ze(()=>{!Z()&&r(Wn)&&!ie()&&go(e.uiConfig.controls.hideTimeoutMobile),N(Wn,Z(),!0)}),ze(()=>{N(sn,B()>0),N(Sn,!me()&&B()<F(),!0)}),ze(()=>{pd(r(qo),U(),pe(),!0)});let br=Q("aria_label_video_player"),Qn=Q("video360");C0({fullScreenChangeHandler:wn,getFullscreenTarget:Eo}),T0({store:e.store,getFullscreenTarget:Eo});let Gn=(vt,fi)=>{var dn,Ni;let oo=(Ni=(dn=e.store.callbacks)==null?void 0:dn.uiInfo)==null?void 0:Ni.onUpcomingLiveViewStateChanged;if(!oo)return;let jo=!!fi,mi=K(K({},On(r(uo),{upcomingLiveScreen:fi},"upcomingLiveScreen",jo)),vt);oo(mi)};var ko=z5();kt("blur",na,hi);var jn=_(ko);Ra(jn,{onClick:Ii,get videoContainer(){return Oe()},set videoContainer(vt){Oe(vt)}});var $r=k(jn,2);ca($r,()=>"slot",!1,(vt,fi)=>{Ie(vt,()=>({name:Va}))});var di=k($r,2);$s(di,ue,vt=>{var fi=U5(),oo=fe(fi);let jo=g(()=>n()!=="thumb"||d()||Gt&&e.autoplay);Pa(oo,{get hidden(){return r(jo)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var mi=k(oo,2);{var dn=He=>{var jt=N5(),wi=fe(jt);{var un=Oo=>{let er=g(()=>e.uiConfig.controls.seekStepMobile/1e3);Bu(Oo,{side:"left",get seekStep(){return r(er)},handleSingleFirstClick:Ii,handleSecondClick:()=>Pr("backward")})};R(wi,Oo=>{r(sn)&&Oo(un)})}var Vo=k(wi,2);{var Ro=Oo=>{let er=g(()=>e.uiConfig.controls.seekStepMobile/1e3);Bu(Oo,{side:"right",get seekStep(){return r(er)},handleSingleFirstClick:Ii,handleSecondClick:()=>Pr("forward")})};R(Vo,Oo=>{r(Sn)&&Oo(Ro)})}$(He,jt)};R(mi,He=>{e.canRewindLive&&to&&!Le().has("TIMELINE")&&He(dn)})}var Ni=k(mi,2);{var Gi=He=>{let jt=g(()=>{var wi;return(wi=e.live)==null?void 0:wi.startTime});zd(He,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(jt)},onUpcomingLiveViewStateChanged:Gn})};R(Ni,He=>{n()==="LiveWaitingStart"&&He(Gi)})}var ji=k(Ni,2);{var Yo=He=>{La(He,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(ji,He=>{n()==="LiveWaitingRecover"&&He(Yo)})}var Tn=k(ji,2);{var Mr=He=>{La(He,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(Tn,He=>{n()==="LiveWaitingRecord"&&He(Mr)})}var Zo=k(Tn,2);{var Vr=He=>{var jt=B5();let wi;var un=_(jt);ad(un,{get adsSlotId(){return Ze()},get adsParams(){return $e()},get adsAutoplayParam(){return te()},get duration(){return we()}}),h(jt),D(Vo=>wi=se(jt,1,"ads-container svelte-7yl31d",null,wi,Vo),[()=>({hidden:n()!=="ads"})]),$(He,jt)};R(Zo,He=>{e.showAds&&Zt()&&He(Vr)})}var cn=k(Zo,2);{var Ao=He=>{let jt=g(()=>!Xt()&&e.showAutoplayNext&&T());gv(He,{get title(){return pt()},get thumb(){return _t()},get isHide(){return r(jt)},clickCloseIcon:()=>N(zn,!0)})};R(cn,He=>{r(xn)&&pt()&&_t()&&He(Ao)})}var Yn=k(cn,2);{var Rr=He=>{Hd(He,{})};R(Yn,He=>{Ve()&&He(Rr)})}var Zn=k(Yn,2);{var rt=He=>{var jt=D5(),wi=_(jt);nd(wi,{get"aria-label"(){return Qn}}),h(jt),$(He,jt)};R(Zn,He=>{ae()&&He(rt)})}var Mt=k(Zn,2);{var xi=He=>{Ud(He,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Re()}})};R(Mt,He=>{G()&&He(xi)})}var fo=k(Mt,2);{var Li=He=>{ka(He,{get shifted(){return y()},get captions(){return M()},get position(){return B()},get playerSize(){return I()},isMobile:!0})};R(fo,He=>{X().value!=="off"&&He(Li)})}var Yi=k(fo,2);{var Mi=He=>{var jt=F5();jt.__click=[O5,U,tt,hi];var wi=_(jt);Aa(wi,{}),h(jt),$(He,jt)};R(Yi,He=>{d()&&He(Mi)})}var ho=k(Yi,2);{var En=He=>{let jt=g(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),wi=g(()=>n()==="ads"),un=g(()=>e.canRewindLive&&at()!==0);Fd(He,{get bottomHidden(){return r(jt)},get showControls(){return y()},get bottomNoSmooth(){return E()},get isAds(){return r(wi)},get canRewindLive(){return r(un)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Te()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Ke()},get nextButtonActive(){return it()},get prevButtonActive(){return ht()},get isOneVideoPlaylist(){return Je()},get customFullscreenSupported(){return r(po)},get endScreenShown(){return r(xn)},toggleFullscreen:an,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:_r,onDisabledSeekToInteractiveClick:Lr,get playerControlsWrapperRef(){return r(io)},set playerControlsWrapperRef(Vo){N(io,Vo,!0)},get playerControlsRef(){return r(Dn)},set playerControlsRef(Vo){N(Dn,Vo,!0)}})};R(ho,He=>{Zt()&&He(En)})}var Po=k(ho,2);{var Lo=He=>{var jt=H5(),wi=_(jt);qd(wi,{get supportLink(){return e.supportLink},get returnFocus(){return R5},get ref(){return r(qo)},set ref(un){N(qo,un,!0)}}),h(jt),$(He,jt)};R(Po,He=>{U()&&He(Lo)})}var Mo=k(Po,2);let Xn=g(()=>!r(Zr));cd(Mo,{get isLive(){return De()},get isHidden(){return r(Xn)},get isPlaying(){return j()},get position(){return B()},get duration(){return F()}});var In=k(Mo,2);{var xr=He=>{ya(He,{})};R(In,He=>{r(Fn)&&He(xr)})}var wr=k(In,2);{var Jn=He=>{vd(He,{})};R(wr,He=>{oe()&&He(Jn)})}var Or=k(wr,2);{var Jr=He=>{Qd(He,{onClose:Hn,onSelectAutoQuality:()=>{fr("auto"),Hn()}})};R(Or,He=>{r($n)&&He(Jr)})}$(vt,fi)});var ln=k(di,2);st(ln,vt=>N(vr,vt),()=>r(vr)),h(ko),st(ko,vt=>N(uo,vt),()=>r(uo)),D(()=>Ne(ko,"aria-label",br)),kt("click",ko,Io,!0),kt("focusin",ko,qn,!0),$(t,ko),W(),o()}ct(["click"]);function Fu(t){let e="";return eo(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),eo(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),eo(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),eo(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),eo(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),eo(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),eo(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),eo(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),eo(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),eo(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),eo(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),eo(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),eo(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),eo(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),eo(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),eo(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),eo(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),eo(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),eo(t.font)&&(e+=`--font:${t.font};`),eo(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),eo(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function eo(t){return typeof t=="string"&&!t.includes(";")}import{debounceFn as K5}from"@vkontakte/videoplayer-shared/es2015";var q5=P('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),Q5={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 _v(t,e){z(e,!0),q(t,Q5);let[i,o]=Be(),n=()=>C(re,"$playerSize",i),s=()=>C(L,"$isPlaying$",i),l=()=>C(V,"$duration$",i),d=()=>C(H,"$positionWithScrubbing$",i),a=()=>C(S,"$playerPhase",i),u=()=>C(E,"$crashed$",i),f=()=>C(B,"$currentSubtitle$",i),m=()=>C(F,"$currentSubtitleCaptions$",i),p=()=>C(I,"$positionExact$",i),x=()=>C(U,"$isLive$",i),y=()=>C(Z,"$isRewindableLive$",i),w=v(e,"outsideDuration",3,0),T=v(e,"videoContainer",15),{playerPhase:S,state:{crashed$:E,duration$:V,positionExact$:I,isPlaying$:L,currentSubtitle$:B,currentSubtitleCaptions$:F,positionWithScrubbing$:H,isLive$:U,isRewindableLive$:Z},ui:{playerSize:re,controls:G},actions:{internal:{getVideoElement:be}}}=Ce(),ie=8,me=J(!1),pe=ni({}),ue=()=>{N(me,!0)},Le=()=>{N(me,!1)},Ve=K5(hl,260);ze(()=>{n(),Ve(be(),G,pe,r(me))});let ae=g(()=>s()?hn(l()-d()):hn(isFinite(l())?l():w()));var Re=q5(),X=_(Re);Ra(X,{hideCursor:!1,get videoContainer(){return T()},set videoContainer(Te){T(Te)}});var M=k(X,2);ca(M,()=>"slot",!1,(Te,Ke)=>{Ie(Te,()=>({name:Va}))});var at=k(M,2);let De=g(()=>a()!=="thumb"||u());Pa(at,{get hidden(){return r(De)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var j=k(at,2);{var oe=Te=>{ka(Te,{shifted:!1,get captions(){return m()},get position(){return p()},get playerSize(){return n()}})};R(j,Te=>{f().value!=="off"&&Te(oe)})}var Oe=k(j,2),Ze=_(Oe);dd(Ze,{get isLive(){return x()},get isPlaying(){return s()},get time(){return r(ae)}}),h(Oe);var $e=k(Oe,2);let te;var we=_($e);Sa(we,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return y()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:ie,tooltipRightOffset:ie,get ref(){return pe.timeline},set ref(Te){pe.timeline=Te}}),h($e),h(Re),D(Te=>te=se($e,1,"timeline svelte-1qfjf44",null,te,Te),[()=>({visible:r(me)})]),kt("mouseenter",Re,ue),kt("mouseleave",Re,Le),$(t,Re),W(),o()}var X5=P("<div><!></div>"),J5={hash:"svelte-1tzrpvc",code:`.root.svelte-1tzrpvc {--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;
356
361
 
357
362
  /* USER DEFINED COLORS */
358
363
 
@@ -378,12 +383,12 @@ Try switching the\xA0quality to\xA0Auto.`},Kh=eb;var $s=new Map;$s.set(Qh.EN,Kh)
378
383
  rgba(9, 9, 9, 0.46) 80%,
379
384
  rgba(10, 10, 10, 0.48) 86.67%,
380
385
  rgba(10, 10, 10, 0.50) 100%
381
- );--timeline-preview-shadow: rgba(0, 0, 0, 0.08);--timeline-preview-bg: rgba(34, 34, 34, 1);--timeline-padding-horizontal: 10px;--settings-bg: rgba(0, 0, 0, 0.72);--settings-item-bg-hover: rgba(255, 255, 255, 0.08);--settings-radius: 8px;--mobile-settings-bg: #2c2d2e;--divider-border: 1px solid var(--white-alpha-24);--toggle-color-separator: #363738;--toggle-color-off: #656565;--toggle-color-on: #71aaeb;--toggle-color-autoplay-on: var(--white);--notification-bg: #2C2D2E;--notification-radius: 8px;--button-hover-transition: opacity 0.2s;--video-container-z-index: 0;--controls-container-z-index: 1;--ads-container-z-index: 1;--end-screen-mobile-z-index: 1;--notification-z-index: 1;--thumb-timer-z-index: 2;--debug-panel-z-index: 2;--settings-menu-z-index: 2;--context-menu-z-index: 3;--hot-key-helpers-container-z-index: 3;--overlay-container-z-index: 4;--rotate-transition-duration: 0.25s;--btn-color: var(--white);position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;
382
- /* --vk-vp-custom-font - vk video player custom font */font-family:var(--vk-vp-custom-font, var(--font));background:var(--black);}.root--miui-browser.svelte-16kg8zb {color-scheme:light dark;}.root.visible-outside.svelte-16kg8zb {overflow:visible;}
386
+ );--timeline-preview-shadow: rgba(0, 0, 0, 0.08);--timeline-preview-bg: rgba(34, 34, 34, 1);--timeline-padding-horizontal: 10px;--settings-bg: rgba(0, 0, 0, 0.72);--settings-item-bg-hover: rgba(255, 255, 255, 0.08);--settings-radius: 8px;--mobile-settings-bg: #2c2d2e;--divider-border: 1px solid var(--white-alpha-24);--toggle-color-separator: #363738;--toggle-color-off: #656565;--toggle-color-on: #71aaeb;--toggle-color-autoplay-on: var(--white);--notification-bg: #2C2D2E;--notification-radius: 8px;--button-hover-transition: opacity 0.2s;--video-container-z-index: 0;--controls-container-z-index: 1;--ads-container-z-index: 1;--end-screen-mobile-z-index: 1;--notification-z-index: 1;--thumb-timer-z-index: 2;--debug-panel-z-index: 2;--settings-menu-z-index: 2;--context-menu-z-index: 3;--hot-key-helpers-container-z-index: 3;--overlay-container-z-index: 4;--rotate-transition-duration: 0.25s;--btn-color: var(--white);--double-forward-bg: rgba(0, 0, 0, 0.6);position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;
387
+ /* --vk-vp-custom-font - vk video player custom font */font-family:var(--vk-vp-custom-font, var(--font));background:var(--black);}.root--miui-browser.svelte-1tzrpvc {color-scheme:light dark;}.root.visible-outside.svelte-1tzrpvc {overflow:visible;}
383
388
 
384
389
  /* css reset start */* {-webkit-tap-highlight-color:transparent;}button {border:none;margin:0;padding:0;width:auto;overflow:visible;background:transparent;color:inherit;font:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer;}p {margin:0;}svg:not(.interactive-root svg) {pointer-events:none;}.interactive-root {
385
390
  /* --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;}
386
391
  /* 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);}
387
392
 
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 lv(t,e){F(e,!0),q(t,V5);let[i,o]=Ue(),n=()=>C(ti,"$isLive$",i),s=()=>C(pt,"$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),x=m(e,"interactiveContainer",7),w=m(e,"interactiveController",7),y=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),X=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),ee=m(e,"adsAutoplayParam",7,void 0),j=m(e,"duration",7,void 0),ue=m(e,"logoClickable",7),oe=m(e,"logoHidden",7),pe=m(e,"isMobile",7),$e=m(e,"showNextPrevButtons",7,!1),me=m(e,"nextButtonActive",7,!1),Ae=m(e,"prevButtonActive",7,!1),re=m(e,"endScreenVideoTitle",7,void 0),Ne=m(e,"endScreenVideoThumb",7,void 0),se=m(e,"isOneVideoPlaylist",7,!1),N=m(e,"supportLink",7),De=m(e,"shadowRootContainer",7),le=m(e,"outerContainerRef",7),ge=m(e,"fullScreenTarget",7,void 0),ie=m(e,"failoverHosts",7,void 0),ve=m(e,"showMiniTimer",7,!1),Fe=m(e,"saveRate",7),fe=m(e,"seekToInteractive",7,u_),st=m(e,"playPrevChapter",7,u_),Z=m(e,"volumeMultiplier",7),Le=m(e,"showAutoplayNext",7),Pe=m(e,"showEndScreen",7,!0),Ke=m(e,"keyboardControls",15,void 0),{subscribers:lt,stores:mt}=a();ch(f());let vt=kt(),Ct=f().logoLink,Ye=d().ui.debugPanelVisible,Ut=d().ui.playerSize,ti=d().state.isLive$,Wt=d().state.isInteractive&&av.device.isAndroid,ne=Y(void 0),Ht=null,Se=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}),$h(d(),mt),Qe(()=>{var Q,we;d().ui.isMobile.set(pe()),(we=(Q=u().callbacks)==null?void 0:Q.onDomReady)==null||we.call(Q)});let _e=(Q=!1)=>{O(Se,!0),Q?d().actions.external.firstStart(X()):d().actions.internal.firstStart(X())},ce=()=>{if(vt.features.qualityDetailsSubMenuEnabled){let Q=Fh(d().videoId);if(Q)switch(Q.type){case"high_quality":d().actions.internal.setHighQualityEnabled(!0,Q.appliesTo);break;case"traffic_saving":d().actions.internal.setTrafficSavingEnabled(!0,Q.appliesTo);break;case"exact_quality":d().actions.internal.setQuality(Q.quality);break}}else{Uh(d().videoId),tf()&&d().actions.internal.setTrafficSavingEnabled(!0);let we=Zp(d().videoId);we&&d().actions.internal.setQuality(we)}};function Be(Q){var Yt,pi,_o;let we=l()||Q;we&&d().initVideo({container:r(ne),sources:we,failoverHosts:ie(),subtitles:y(),volumeMultiplier:Z()});let ft=P5.get(Zl)==="true";Ye.set(ft),I()>0&&d().actions.external.seekTime(I());let Ft=pe()?vt.volumeDefault:(pi=(Yt=V())!=null?Yt:Wc())!=null?pi:vt.volumeDefault,_t=(_o=k())!=null?_o:Rh();if(d().actions.external.setVolume(Ft),d().actions.external.setMuted(_t),d().getAdmanWrapper().setInitialVolume(_t?0:Ft),ce(),vt.features.saveRate&&Fe()){let fi=Bh();fi&&!n()&&d().actions.internal.setPlaybackRate(fi)}if(Le()){let fi=Hh();fi&&d().actions.internal.setAutoplayNextEnabled(fi)}d().ui.isAutoplay.set(E()),E()&&_e(),T()&&vt.features.preload&&d().actions.internal.preload()}let ze=Q=>{if(window.ResizeObserver){let we,ft;Ht=new ResizeObserver(A5(Ft=>{let _t=Ft[0];if(_t.contentBoxSize){let Yt=Array.isArray(_t.contentBoxSize)?_t.contentBoxSize[0]:_t.contentBoxSize;we=Yt.inlineSize,ft=Yt.blockSize}else _t.contentRect&&(we=_t.contentRect.width,ft=_t.contentRect.height);Ut.set({width:we,height:ft})},300)),Ht.observe(Q)}Ut.set({width:Q.clientWidth,height:Q.clientHeight})},Re=()=>{document.hidden&&d().actions.external.stop()};Lt(()=>{var ft,Ft,_t,Yt;Wt&&document.addEventListener("visibilitychange",Re),vt.debugLog&&d().actions.internal.startLogging(),ze(r(ne));let Q=lt.map(pi=>pi.init({store:d(),microStores:mt,config:u(),interactiveController:w(),uiConfig:f()})),we=()=>{Wt&&document.removeEventListener("visibilitychange",Re),Ht==null||Ht.disconnect(),Q.forEach(pi=>pi.unsubscribe()),d().destroy()};return((ft=S())==null?void 0:ft.status)==="upcoming"?(d().actions.internal.setLiveWaitingStart(!0),we):((Ft=S())==null?void 0:Ft.status)==="waiting"?(d().actions.internal.setLiveWaitingRecover(!0),we):(((_t=S())==null?void 0:_t.status)==="finished"||((Yt=S())==null?void 0:Yt.status)==="postlive")&&!(l()&&k5(l()))?(d().actions.internal.setLiveWaitingRecord(!0),we):(Be(),we)});function je(){r(Se)?d().actions.external.play():_e(!0)}function He(){d().actions.external.pause()}function Xe(Q){d().actions.external.setMuted(Q)}function Pt(){d().actions.external.toggleSubtitle()}function Kt(Q,we){d().actions.external.changeSubtitle(Q,we)}function tt(){var Q;(Q=d().webApi.slotsApi)!=null&&Q.haveSlots()&&d().actions.external.hideControls()}function bi(){var Q;(Q=d().webApi.slotsApi)!=null&&Q.haveSlots()&&d().actions.external.showControls()}function Ti(Q){pe()||Q>=0&&Q<=1&&d().actions.external.setVolume(Q)}function dt(Q){d().actions.internal.seekTime(Q,M5.UNKNOWN)}function qt(Q){d().actions.external.seekEpisodeStartTime(Q)}function ni(){d().actions.external.returnFocusToEpisodes()}function ri(Q){d().actions.external.setPlaybackRate(Q)}function Ao(Q){d().actions.external.setAutoQualityLimits(Q)}function Mo(){d().actions.external.setQuality("auto")}function go(Q){d().actions.external.setTrafficSavingEnabled(Q)}function zt(Q){d().actions.external.setHighQualityEnabled(Q)}let ui=Lu(vt.view),At=u().playerView==="preview",pt=d().state.availableSubtitlesList$;if(vt.features.initSubtitles){let Q=!1;Qe(()=>{if(!Q&&s().length){Q=!0;let we;if(vt.features.userVideoPrefs&&d().videoId){let Ft=Gc(vt.userSalt,String(d().videoId));Ft!=null&&Ft.subtitleTrackId&&(we=s().find(_t=>_t.value===Ft.subtitleTrackId))}let ft=nf();ft&&(we!=null||(we=s().find(Ft=>Ft.language===ft))),d().actions.internal.setSubtitle(we)}})}var xi=L5();let ho;var Qi=_(xi);{var di=Q=>{rv(Q,{get store(){return d()},get uiConfig(){return vt},get thumbUrl(){return p()},get interactiveContainer(){return x()},get live(){return S()},get autoplay(){return E()},get canRewindLive(){return R()},get showAds(){return X()},get adsSlotId(){return D()},get adsParams(){return H()},get adsPreviewParam(){return W()},get adsAutoplayParam(){return ee()},get duration(){return j()},get logoClickable(){return ue()},get logoHidden(){return oe()},get logoTargetUrl(){return Ct},get nextButtonActive(){return me()},get prevButtonActive(){return Ae()},get endScreenVideoTitle(){return re()},get endScreenVideoThumb(){return Ne()},get isOneVideoPlaylist(){return se()},get supportLink(){return N()},get shadowRootContainer(){return De()},get outerContainerRef(){return le()},get fullScreenTarget(){return ge()},get showMiniTimer(){return ve()},get playerStarted(){return r(Se)},get seekToInteractive(){return fe()},get playPrevChapter(){return st()},firstStart:_e,seekTime:dt,get showEndScreen(){return Pe()},get showAutoplayNext(){return Le()},get showNextPrevButtons(){return $e()},get videoContainer(){return r(ne)},set videoContainer(we){O(ne,we,!0)}})},Ko=Q=>{var we=qe(),ft=he(we);{var Ft=Yt=>{sv(Yt,{get thumbUrl(){return p()},get outsideDuration(){return j()},get canRewindLive(){return R()},get videoContainer(){return r(ne)},set videoContainer(pi){O(ne,pi,!0)}})},_t=Yt=>{ov(Yt,{get store(){return d()},get uiConfig(){return vt},get title(){return v()},get thumbUrl(){return p()},get interactiveContainer(){return x()},get live(){return S()},get autoplay(){return E()},get canRewindLive(){return R()},get showAds(){return X()},get adsSlotId(){return D()},get adsParams(){return H()},get adsPreviewParam(){return W()},get adsAutoplayParam(){return ee()},get duration(){return j()},get logoClickable(){return ue()},get logoHidden(){return oe()},get logoTargetUrl(){return Ct},get nextButtonActive(){return me()},get prevButtonActive(){return Ae()},get endScreenVideoTitle(){return re()},get endScreenVideoThumb(){return Ne()},get isOneVideoPlaylist(){return se()},get supportLink(){return N()},get shadowRootContainer(){return De()},get outerContainerRef(){return le()},get fullScreenTarget(){return ge()},get showMiniTimer(){return ve()},get playerStarted(){return r(Se)},get seekToInteractive(){return fe()},get playPrevChapter(){return st()},firstStart:_e,get showEndScreen(){return Pe()},get showAutoplayNext(){return Le()},get showNextPrevButtons(){return $e()},get videoContainer(){return r(ne)},set videoContainer(pi){O(ne,pi,!0)},get keyboardControls(){return Ke()},set keyboardControls(pi){Ke(pi)}})};L(ft,Yt=>{At?Yt(Ft):Yt(_t,!1)})}$(Q,we)};L(Qi,Q=>{pe()?Q(di):Q(Ko,!1)})}h(xi),B(Q=>{ho=te(xi,1,"root svelte-16kg8zb",null,ho,Q),rt(xi,ui)},[()=>({"root--miui-browser":av.device.isMobile&&av.browser.isMiuiBrowser,"visible-outside":At})]),$(t,xi);var en=U({initVideo:Be,play:je,pause:He,setMuted:Xe,toggleSubtitle:Pt,changeSubtitle:Kt,hideControls:tt,showControls:bi,setVolume:Ti,seekTime:dt,seekEpisodeStartTime:qt,returnFocusToEpisodes:ni,setPlaybackRate:ri,setAutoQualityLimits:Ao,setAutoQuality:Mo,toggleTrafficSaving:go,toggleHighQuality:zt,get sources(){return l()},set sources(Q){l(Q)},get store(){return d()},set store(Q){d(Q)},get microStoresRoot(){return a()},set microStoresRoot(Q){a(Q)},get videoConfig(){return u()},set videoConfig(Q){u(Q)},get uiConfig(){return f()},set uiConfig(Q){f(Q)},get title(){return v()},set title(Q){v(Q)},get thumbUrl(){return p()},set thumbUrl(Q){p(Q)},get interactiveContainer(){return x()},set interactiveContainer(Q){x(Q)},get interactiveController(){return w()},set interactiveController(Q){w(Q)},get subtitles(){return y()},set subtitles(Q){y(Q)},get live(){return S()},set live(Q){S(Q)},get preload(){return T()},set preload(Q){T(Q)},get autoplay(){return E()},set autoplay(Q){E(Q)},get volume(){return V()},set volume(Q){V(Q)},get muted(){return k()},set muted(Q){k(Q)},get fromTime(){return I()},set fromTime(Q){I(Q)},get canRewindLive(){return R()},set canRewindLive(Q){R(Q)},get showAds(){return X()},set showAds(Q){X(Q)},get adsSlotId(){return D()},set adsSlotId(Q){D(Q)},get adsParams(){return H()},set adsParams(Q){H(Q)},get adsPreviewParam(){return W()},set adsPreviewParam(Q){W(Q)},get adsAutoplayParam(){return ee()},set adsAutoplayParam(Q){ee(Q)},get duration(){return j()},set duration(Q){j(Q)},get logoClickable(){return ue()},set logoClickable(Q){ue(Q)},get logoHidden(){return oe()},set logoHidden(Q){oe(Q)},get isMobile(){return pe()},set isMobile(Q){pe(Q)},get showNextPrevButtons(){return $e()},set showNextPrevButtons(Q){$e(Q)},get nextButtonActive(){return me()},set nextButtonActive(Q){me(Q)},get prevButtonActive(){return Ae()},set prevButtonActive(Q){Ae(Q)},get endScreenVideoTitle(){return re()},set endScreenVideoTitle(Q){re(Q)},get endScreenVideoThumb(){return Ne()},set endScreenVideoThumb(Q){Ne(Q)},get isOneVideoPlaylist(){return se()},set isOneVideoPlaylist(Q){se(Q)},get supportLink(){return N()},set supportLink(Q){N(Q)},get shadowRootContainer(){return De()},set shadowRootContainer(Q){De(Q)},get outerContainerRef(){return le()},set outerContainerRef(Q){le(Q)},get fullScreenTarget(){return ge()},set fullScreenTarget(Q){ge(Q)},get failoverHosts(){return ie()},set failoverHosts(Q){ie(Q)},get showMiniTimer(){return ve()},set showMiniTimer(Q){ve(Q)},get saveRate(){return Fe()},set saveRate(Q){Fe(Q)},get showAutoplayNext(){return Le()},set showAutoplayNext(Q){Le(Q)},get seekToInteractive(){return fe()},set seekToInteractive(Q){fe(Q)},get playPrevChapter(){return st()},set playPrevChapter(Q){st(Q)},get volumeMultiplier(){return Z()},set volumeMultiplier(Q){Z(Q)},get showEndScreen(){return Pe()},set showEndScreen(Q){Pe(Q)},get keyboardControls(){return Ke()},set keyboardControls(Q){Ke(Q)}});return o(),en}var R5=Ie('<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=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=R5();Me(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);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ee(),h(o),$(t,o)}function cv(t,e){let i=m(e,"isWhite",3,!1),o=g(()=>i()?"color: #fff;":"color: #909499;");dv(t,{get style(){return r(o)}})}var N5=M('<div class="title svelte-1y9fytq"> </div>'),O5=M('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),B5={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 uv(t,e){q(t,B5);var i=O5(),o=_(i);{var n=d=>{var a=N5(),u=_(a,!0);h(a),B(()=>be(u,e.title)),$(d,a)};L(o,d=>{e.title&&d(n)})}var s=P(o,2);{var l=d=>{let a=g(()=>!!e.thumbUrl);cv(d,{get isWhite(){return r(a)}})};L(s,d=>{(!e.title||!e.thumbUrl)&&d(l)})}h(i),B(()=>rt(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),$(t,i)}var D5=M('<div class="playerError svelte-m5iv29"><!></div>'),H5={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 pv(t){q(t,H5);var e=D5(),i=_(e);Pa(i,{}),h(e),$(t,e)}import{now as gw,ValueSubject as hw}from"@vkontakte/videoplayer-shared/es2015";import{cloneDeepWith as _w,InterfaceLanguage as bw,isNonNullable as bv,Logger as $w,Observable as yw,Subscription as $_,once as xw,InternalsExposure as ww,skip as Sw,getPlayerId as Cw}from"@vkontakte/videoplayer-shared/es2015";import{clientChecker as y_,isMobile as Tw}from"@vkontakte/videoplayer-core/es2015";import{OneStat as Ew,ThinOneStat as Iw,MediascopePixel as kw}from"@vkontakte/videoplayer-statistics/es2015";import{Logger as F5,Subscription as U5}from"@vkontakte/videoplayer-shared/es2015";var Vu=class{constructor(){this.subscription=new U5,this.logger=new F5,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()}};import{ValueSubject as gv,detectEmbed as G5}from"@vkontakte/videoplayer-shared/es2015";var z5=Ie('<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 fv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=z5();Me(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);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ee(),h(o),$(t,o)}var W5=M('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),K5={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 mv(t,e){F(e,!0),q(t,K5);let[i,o]=Ue(),n=()=>C(u,"$interfaceLanguage$",i),s=()=>C(f,"$isMobile$",i),l=ke(),d=kt(),a=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,f=l.ui.isMobile,v=l.ui.t,p=g(()=>n()&&v("pip_dummy_title")),x=Lu(d.view);var w=W5();let y;var S=_(w);let T;var E=_(S);fv(E,{}),h(S);var V=P(S,2),k=_(V,!0);h(V),h(w),B((I,R)=>{y=te(w,1,"player-pip-dummy svelte-1pbsod4",null,y,I),rt(w,x),T=te(S,1,"dummy-image svelte-1pbsod4",null,T,R),be(k,r(p))},[()=>({"is-pip-api":a}),()=>({desktop:!s()})]),$(t,w),U(),o()}var q5=Object.defineProperty,Q5=(t,e,i)=>e in t?q5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,xl=(t,e,i)=>Q5(t,typeof e!="symbol"?e+"":e,i),vv=(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())}),j5=460,Y5=280,Kd=class{constructor({enabled:e=!0}={enabled:!0}){xl(this,"playerDomElement"),xl(this,"playerParentShadowRoot"),xl(this,"playerDummyElement"),xl(this,"svelteContext"),xl(this,"pipWindow"),xl(this,"info",{isActive$:new gv(!1),isEnabled$:new gv(!1),type:1}),this.info.isEnabled$=new gv(e)}isSupported(){let{isEmbed:e}=G5();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 vv(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:j5,height:Y5,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=rs(mv,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||(la(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})})}exit(){return vv(this,null,function*(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})})}dispose(){return vv(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 p_(t){return t instanceof Kd}var Ru=class{static getLatestSupportedVersion(e){let i=new va(e),o=new Kd(e);if(o.isSupported())return o;if(i.isSupported())return i}};function qd(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 f_="Inner error. Unexpectedly root annotation container null reference exception",m_="Annotation with such name already exists",v_="Annotation with such name does not exist";var wl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as Z5,Subscription as X5,throttleFn as J5}from"@vkontakte/videoplayer-shared/es2015";var ew="1",tw=100,Nu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new X5}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=J5(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},tw);this.subscriptions.add(Z5(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 wl(f_);if(this.annotations.has(e))throw new wl(m_);i.style.zIndex=(o=i.style.zIndex)!=null?o:ew,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 wl(v_);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let 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(){}};import{assertNonNullable as Ou,Subscription as iw}from"@vkontakte/videoplayer-shared/es2015";var Jo=class{init({store:e,microStores:i,interactiveController:o,config:n}){return Ou(e),Ou(i),Ou(n),n.interactiveData&&Ou(o),this.subscription=new iw,this.subscription}};var Qd=class extends Jo{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 Gd=class extends Jo{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=xe(f),p=()=>v&&xe(u);return o.add(u.subscribe(x=>{if(!v)return;let w=xe(l);xe(a)?this.state$.set(x):w!==null&&this.state$.set(!w||x)})),o.add(a.subscribe(x=>{this.state$.set(!x||p())})),o.add(l.subscribe(x=>{if(x===null)return;let w=xe(d);if(p()){this.state$.set(!0);return}w&&this.state$.set(!x)})),o}};var jd=class extends Jo{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}};import{combine as ow}from"@vkontakte/videoplayer-shared/es2015";var hv=ae(!1),Bu=null,Yd=class extends Jo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Bt(z({},hv),{set:(i,o=!1)=>{i!==xe(hv)&&(this.clearTimeout(),hv.set(i),!i&&Bu&&(Bu=!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(ow({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:v,isInteractiveTime$:p,interactiveTimeIndicator:x})=>{var w,y;if(!(!v||!(x!=null&&x.isDisplayed))){if(!p)return this.state$.set(!1);f.tooltipHelpHintActive&&Bu===null&&(Bu=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(y=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||y.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as nw,noop as rw}from"@vkontakte/videoplayer-shared/es2015";var Zd=class extends Jo{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=Bt(z({},ae(null)),{toggle:rw});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(xe(l)))return;let a=xe(this.state$),{isEnded$:u,playbackState$:f}=n.state,{disabledControls$:v}=n.ui.controls,p=xe(u),x=xe(f);if(a)try{yield s==null?void 0:s.toggleGraphView(!1),this.state$.set(!1),v.remove(zp),!p&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=x==="playing";try{yield s==null?void 0:s.toggleGraphView(!0),this.state$.set(!0),v.add(zp),!p&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}}),o.add(nw({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}};import{ValueSubject as g_}from"@vkontakte/videoplayer-shared/es2015";var Xd=class extends Jo{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 g_(!1),isEnabled$:new g_(!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}};import{filter as lw,filterChanged as dw}from"@vkontakte/videoplayer-shared/es2015";import{safeStorage as _v}from"@vkontakte/videoplayer-shared/es2015";var h_=({maxShowCount:t,timeout:e})=>{let i=[t!==0?sw({maxCount:t}):void 0,e!==0?aw({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},sw=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,_v.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}}},aw=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(_v.get(e)||"{}")}catch(s){return{}}},o=s=>_v.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 Jd=class extends Jo{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=h_({maxShowCount:s,timeout:l});let u=n.getPlayer();return o.add(u.events.severeStallOccured$.pipe(dw(),lw(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 __=()=>[Qd,Gd,jd,Yd,Zd,Xd,Jd].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:Bt(z({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});import{devNull as ec}from"@vkontakte/videoplayer-shared/es2015";var Du=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 cw=Object.defineProperty,uw=Object.defineProperties,pw=Object.getOwnPropertyDescriptors,b_=Object.getOwnPropertySymbols,fw=Object.prototype.hasOwnProperty,mw=Object.prototype.propertyIsEnumerable,$v=(t,e,i)=>e in t?cw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Gs=(t,e)=>{for(var i in e||(e={}))fw.call(e,i)&&$v(t,i,e[i]);if(b_)for(var i of b_(e))mw.call(e,i)&&$v(t,i,e[i]);return t},vw=(t,e)=>uw(t,pw(e)),Gt=(t,e,i)=>$v(t,typeof e!="symbol"?e+"":e,i),Hu=(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())}),Pw={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:bw.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:Tw(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Vn=Y(void 0),Fu=class extends HTMLElement{constructor(){super(),Gt(this,"svelteStubComponent"),Gt(this,"svelteRootComponent"),Gt(this,"svelteErrorComponent"),Gt(this,"store"),Gt(this,"microStoresRoot"),Gt(this,"statistics"),Gt(this,"sentry"),Gt(this,"_shadowRoot"),Gt(this,"playerContainer"),Gt(this,"rootContainer"),Gt(this,"shadowRootContainer"),Gt(this,"playerId"),Gt(this,"uiConfig"),Gt(this,"coreConfig"),Gt(this,"statisticsConfig"),Gt(this,"interactiveController"),Gt(this,"interactiveContainer"),Gt(this,"graphMadePause"),Gt(this,"currentPlayingVideoIndex",0),Gt(this,"needToRepeatPlaylist",!1),Gt(this,"videoConfig"),Gt(this,"pictureInPictureApi"),Gt(this,"mediaSessionApi"),Gt(this,"unsubscribePlayerPhaseSubscription"),Gt(this,"logger"),Gt(this,"log"),Gt(this,"subscription"),Gt(this,"interactiveSubscription"),Gt(this,"annotationsApi"),Gt(this,"slotsApi"),Gt(this,"focusManager"),Gt(this,"prevIsid"),Gt(this,"isInited",!1),Gt(this,"internalsExposure",null),Gt(this,"shadowDOMCallbacksDisabled",!1),Gt(this,"fatalError$",new hw(null)),Gt(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:x,isMobile:w,isTouch:y,refDomain:S,deviceId:T,interactiveData:E}=qd(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 Ew(Gs({movieId:I,albumId:d,place:a,trackCode:f,vkAppId:v,autoplay:(l=x&&!this.interactiveController)!=null?l:!1,mobile:y!=null?y:w,clip:R,refDomain:S,deviceId:T,isPreviewPlayerView:this.videoConfig.playerView==="preview"},V&&(!this.isInited||k)&&{projectId:Number(V)}),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})}}),ec.create("ui"),this.logger=new $w,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new $_,this.interactiveSubscription=new $_,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=rs(pv,{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=oi({title:o,thumbUrl:n}),l={target:this.playerContainer,props:s};this.svelteStubComponent=rs(uv,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(),ec.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}=qd(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new Iw.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,x;if(!this.videoConfig)return;let{albumId:w,statPlace:y,statAuthToken:S,preload:T,autoplay:E,volume:V,muted:k,fromTime:I,canRewindLive:R,supportLink:X,showAds:D,adsSlotId:H,adsParams:W={},adsPreviewParam:ee,adsAutoplayParam:j,interfaceLanguage:ue,isCyrillicRelatedInterface:oe,logoClickable:pe,logoHidden:$e,isMobile:me,isTouch:Ae,isAudioDisabled:re,isLiveCatchUpMode:Ne,fullScreenTarget:se,failoverHosts:N,canDownload:De,callbacks:le,interactiveData:ge,showThumbTimer:ie,additionalButtons:ve=[],additionalSettingsMenuItems:Fe=[],additionalContextMenuItems:fe=[],repeat:st,saveRate:Z,volumeMultiplier:Le,showEndScreen:Pe,showAutoplayNext:Ke,mediascopePixels:lt}=qd(this.videoConfig,i),{sources:mt,title:vt,thumbUrl:Ct,unitedVideoId:Ye,isClip:Ut=!1,duration:ti,adsParams:jt={},videoEpisodes:Wt,previewThumbsData:ne,subtitles:Ht,live:Se}=e;if(!mt&&!Se){let ni=new Error("empty sources and live");this.fatalError$.next(ni),(n=le.onCrashed)==null||n.call(le,ni.message);return}let _e=Gs(Gs({},W),jt),ce=this.getNextVideoInfo(),Be={sources:mt,title:vt,thumbUrl:Ct,subtitles:Ht,unitedVideoId:Ye,isClip:Ut,live:Se,albumId:w,statPlace:y,autoplay:E,muted:k,volume:V,fromTime:I,canRewindLive:R,showAds:D,adsSlotId:H,adsParams:_e,adsPreviewParam:ee,adsAutoplayParam:j,duration:ti,logoClickable:pe,logoHidden:$e,isTouch:Ae!=null?Ae:me,repeat:st,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ce.nextVideoTitle,endScreenVideoThumb:ce.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},ze={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(Be)}`});let Re=(s=this.interactiveController)==null?void 0:s.state.statistics$.getValue(),je=(Re==null?void 0:Re.oneStat)||this.createOneStat(e,i),He=this.createThinOneStat(e,i),Xe;lt&&(Xe=new kw({pixels:lt})),(je||He)&&(this.statistics=new hu(je,He,Xe,Re==null?void 0:Re.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new ma(this.uiConfig.sentry,{version:al,env:Fc},{movieId:Ye,albumId:w,place:y,autoplay:(l=E&&!this.interactiveController)!=null?l:!1,mobile:Ae!=null?Ae:me,clip:Ut}),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),ma.getInstance());let Kt=!!ge,tt=[],bi="tooltip_interactive_go_back_disabled_first";if(Kt&&this.interactiveController){let ni=this.interactiveController.state.isInitialChapter$.getValue(),ri=this.interactiveController.getHistoryState();ni&&tt.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||tt.push("SEEK_TO_INTERACTIVE_BUTTON"),ri.hasPrevChapter$.getValue()||(tt.push("PLAY_PREV_CHAPTER_BUTTON"),ni||(ri.isGoBackLimited$.getValue()?bi="tooltip_interactive_go_back_disabled_limit":bi="tooltip_interactive_go_back_disabled"))}let Ti=()=>{var ni;this.isInited=!1,this.prevIsid=void 0;let ri=(o==null?void 0:o.info.isEnded$.getValue())&&((ni=this.interactiveController)==null?void 0:ni.state.isEndChapter$.getValue());le.onReplayInteractiveVideo&&!ri?le.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=L1({player:o,interfaceLanguage:ue,isCyrillicRelatedInterface:oe,videoId:Ye,isClip:Ut,isLiveCatchUpMode:Ne,isAudioDisabled:re,statAuthToken:S,callbacks:le,webApi:ze,videoEpisodes:Wt,previewThumbsData:ne,canDownload:De,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:tt,isInteractive:Kt,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:Ti,playPrevChapterDisabledTooltip:bi,hasInteractiveBranches:!!((x=(p=this.interactiveController)==null?void 0:p.getChapterBranches())!=null&&x.length),additionalButtons:this.uiConfig.features.additionalButtons?ve:[],additionalSettingsMenuItems:Fe!=null?Fe:[],additionalContextMenuItems:fe!=null?fe:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:st&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:dt}=this.microStoresRoot=__(),qt=()=>{var ni,ri,Ao,Mo,go,zt;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(At=>{var pt;return(pt=le==null?void 0:le.onCurrentFormatChanged)==null?void 0:pt.call(le,At)})),this.subscription.add(dt.interactiveControlsOpacity$.subscribe(At=>{var pt;At!==null&&((pt=this==null?void 0:this.interactiveController)==null||pt.setDisabledControls(At))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(At=>{var pt;return(pt=le==null?void 0:le.onThroughputEstimationChanged)==null?void 0:pt.call(le,At)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(At=>{var pt;return(pt=le==null?void 0:le.onTrafficSavingEnabledChanged)==null?void 0:pt.call(le,At)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(At=>{var pt;return(pt=le==null?void 0:le.onHighQualityEnabledChanged)==null?void 0:pt.call(le,At)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(At=>{var pt;return(pt=le==null?void 0:le.onAutoQualityEnabledChanged)==null?void 0:pt.call(le,!!At)})),this.subscription.add(new yw(At=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(pt=>At.next(pt)))}).pipe(Sw(1)).subscribe(At=>{var pt;return(pt=le==null?void 0:le.onCurrentPlaybackRateChanged)==null?void 0:pt.call(le,At)})),this.subscription.add(this.store.state.volume$.subscribe(At=>{var pt;return(pt=le==null?void 0:le.onVolumeChange)==null?void 0:pt.call(le,At)})),this.subscription.add(this.store.state.muted$.subscribe(At=>{var pt,xi,ho,Qi;if(At)(pt=le==null?void 0:le.onMute)==null||pt.call(le);else{let di=(ho=((xi=this.store)==null?void 0:xi.state.volume$)&&xe(this.store.state.volume$))!=null?ho:0;(Qi=le==null?void 0:le.onUnmute)==null||Qi.call(le,di)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(At=>{var pt;return(pt=le==null?void 0:le.onVideoBitrateChanged)==null?void 0:pt.call(le,At)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(At=>{var pt;let xi=(pt=this.store)==null?void 0:pt.ui.controls.disabledControls$;xi&&(At&&!xi.includes(Xl)&&xi.add(Xl),At||xi.remove(Xl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(At=>Hu(this,null,function*(){var pt;if(!y_.browser.isSamsungBrowser||!At||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((pt=this.videoConfig)==null?void 0:pt.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(At=>{var pt;return(pt=le==null?void 0:le.onVSIDChanged)==null?void 0:pt.call(le,At)})),this.initMediaSession(),O(Vn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:mt,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:vt,thumbUrl:Ct,subtitles:Ht,live:Se,preload:T,autoplay:E,muted:k,volume:V,fromTime:I,canRewindLive:R,supportLink:X,showAds:D,adsSlotId:H,adsParams:_e,adsPreviewParam:ee,adsAutoplayParam:j,duration:ti,logoClickable:pe,logoHidden:$e,isMobile:Ae!=null?Ae:me,failoverHosts:N,fullScreenTarget:se,saveRate:Z,shadowRootContainer:this.shadowRootContainer,showMiniTimer:ie,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ce.nextVideoTitle,endScreenVideoThumb:ce.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Le,showEndScreen:Pe,showAutoplayNext:Ke},!0);let ui={target:this.playerContainer,props:r(Vn)};this.svelteRootComponent=rs(lv,ui),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Ao=(ri=(ni=this.videoConfig)==null?void 0:ni.callbacks)==null?void 0:ri.onInited)==null||Ao.call(ri)),(Mo=this.internalsExposure)==null||Mo.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((zt=(go=this.videoConfig)==null?void 0:go.callbacks)!=null&&zt.onDevNullLog)?ec.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):ec.destroy("ui")};this.coreConfig.asyncResolveClientChecker?y_.isInited$.subscribe(ni=>{ni&&(console.log("UI SDK async start"),qt())}):qt()}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&&bv(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 Hu(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:x}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:u,graph:this.uiConfig.features.interactiveGraph,projectInfo:f,initChapterId:v,historyApi:p,vkVideoLoader:x,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation},endChapterHistoryFix:this.uiConfig.features.interactiveHistoryEndChapterFix});let{isInteractiveExpectation$:w,isSeekable$:y}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(y.subscribe(T=>{if(!this.isInited)return;let E=this.store;T?E.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):E.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(w.subscribe(T=>{this.store&&this.store.state.isInteractiveExpectation$.set(T)}));let S=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(T=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=vw(Gs({},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,X,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(Jl)),T==="action-choice-canceled"){let W=xe(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:(X=R.callbacks).onDisabledInteractiveClick)==null||D.call(X)}})),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(Jl)})),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,x,w,y,S,T,E,V,k,I,R,X,D,H,W,ee,j,ue,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=qd(Pw,_w(e,pe=>pe instanceof HTMLElement?pe:void 0)),this.playerId=Cw(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 ww("ui",this.playerId))),ec.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:[gw()]}),bv(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(p=(v=this.uiConfig.features.mediaSession)!=null?v:this.videoConfig.isMediaSessionEnabled)!=null?p:!0),bv(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(w=(x=this.uiConfig.features.pip)!=null?x:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0,this.uiConfig.features.dpip=(S=(y=this.uiConfig.features.dpip)!=null?y: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=!((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=(W=this.uiConfig.features.endScreen)!=null?W:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(ee=this.uiConfig.features.autoplayNext)!=null?ee:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(j=this.uiConfig.features.nextPrevButtons)!=null?j:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((ue=this.videoConfig.videos)!=null&&ue[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let pe={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Ru.getLatestSupportedVersion(pe):this.pictureInPictureApi=new va(pe)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Vu:void 0,this.slotsApi=this.uiConfig.features.slots?new Pu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Nu(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]),p_(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(oe=this.slotsApi)==null||oe.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new Du(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(Vn)&&(r(Vn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Vn).nextButtonActive=this.isNextButtonActive(),r(Vn).prevButtonActive=this.isPrevButtonActive(),r(Vn).endScreenVideoTitle=o.nextVideoTitle,r(Vn).endScreenVideoThumb=o.nextVideoThumb,r(Vn).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()}changeSubtitle(e,i){var o;this.log({message:"change subtitle"}),(o=this.svelteRootComponent)==null||o.changeSubtitle(e,i)}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,r(Vn)&&(r(Vn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(Vn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Vn).nextButtonActive=this.isNextButtonActive(),r(Vn).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)}setAutoQuality(){var e;(e=this.svelteRootComponent)==null||e.setAutoQuality()}toggleTrafficSaving(e){var i;(i=this.svelteRootComponent)==null||i.toggleTrafficSaving(e)}toggleHighQuality(e){var i;(i=this.svelteRootComponent)==null||i.toggleHighQuality(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}setLanguage(e){return Hu(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 Hu(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(xw()).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&&la(e)}};import{InterfaceLanguage as Xte,VKNumericLanguage as Jte,loadVKLangPack as eie}from"@vkontakte/videoplayer-shared/es2015";import{VideoQuality as iie,VideoFormat as oie}from"@vkontakte/videoplayer-core/es2015";var Wte=()=>{window.customElements.define("vk-video-player",Fu)};export{_u as ControlButtonType,as as GridTypes,Xte as InterfaceLanguage,cd as MenuItemType,ys as PlayerPhase,al as VERSION,Jte as VKNumericLanguage,oie as VideoFormat,iie as VideoQuality,eie as loadVKLangPack,Wte as registerPlayerWebComponent};
393
+ /* \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 $v(t,e){z(e,!0),q(t,J5);let[i,o]=Be(),n=()=>C(Yt,"$isLive$",i),s=()=>C(Ct,"$availableSubtitlesList$",i),l=v(e,"sources",7),d=v(e,"store",7),a=v(e,"microStoresRoot",7),u=v(e,"videoConfig",7),f=v(e,"uiConfig",7),m=v(e,"title",7),p=v(e,"thumbUrl",7),x=v(e,"interactiveContainer",7),y=v(e,"interactiveController",7),w=v(e,"subtitles",7),T=v(e,"subtitlesForcedLanguage",7),S=v(e,"live",7),E=v(e,"preload",7),V=v(e,"autoplay",7),I=v(e,"volume",7,void 0),L=v(e,"muted",7,void 0),B=v(e,"fromTime",7),F=v(e,"canRewindLive",7),H=v(e,"showAds",7),U=v(e,"adsSlotId",7,void 0),Z=v(e,"adsParams",7,void 0),re=v(e,"adsAutoplayParam",7,void 0),G=v(e,"duration",7,void 0),be=v(e,"logoClickable",7),ie=v(e,"logoHidden",7),me=v(e,"isMobile",7),pe=v(e,"showNextPrevButtons",7,!1),ue=v(e,"nextButtonActive",7,!1),Le=v(e,"prevButtonActive",7,!1),Ve=v(e,"endScreenVideoTitle",7,void 0),ae=v(e,"endScreenVideoThumb",7,void 0),Re=v(e,"isOneVideoPlaylist",7,!1),X=v(e,"supportLink",7),M=v(e,"shadowRootContainer",7),at=v(e,"outerContainerRef",7),De=v(e,"fullScreenTarget",7,void 0),j=v(e,"failoverHosts",7,void 0),oe=v(e,"showMiniTimer",7,!1),Oe=v(e,"saveRate",7),Ze=v(e,"seekToInteractive",7,E0),$e=v(e,"playPrevChapter",7,E0),te=v(e,"volumeMultiplier",7),we=v(e,"showAutoplayNext",7),Te=v(e,"showEndScreen",7,!0),Ke=v(e,"keyboardControls",15,void 0),{subscribers:it,stores:ht}=a();Th(f());let pt=At(),_t=f().logoLink,Je=d().ui.debugPanelVisible,zt=d().ui.playerSize,Yt=d().state.isLive$,Xt=d().state.isInteractive&&bv.device.isAndroid,ke=J(void 0),Jt=null,he=J(!1);d().getAdmanWrapper().init({switchFromAdsToVideo:d().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:d().actions.internal.switchFromVideoToAds,setMuted:d().actions.external.setMuted},d().ads,{vsid:d().vsid}),Oh(d(),ht),ze(()=>{var O,et;d().ui.isMobile.set(me()),(et=(O=u().callbacks)==null?void 0:O.onDomReady)==null||et.call(O)});let Ee=(O=!1)=>{N(he,!0),O?d().actions.external.firstStart(H()):d().actions.internal.firstStart(H())},ce=()=>{if(pt.features.qualityDetailsSubMenuEnabled){let O=o1(d().videoId);if(O)switch(O.type){case"high_quality":d().actions.internal.setHighQualityEnabled(!0,O.appliesTo);break;case"traffic_saving":d().actions.internal.setTrafficSavingEnabled(!0,O.appliesTo);break;case"exact_quality":d().actions.internal.setQuality(O.quality);break}}else{n1(d().videoId),pf()&&d().actions.internal.setTrafficSavingEnabled(!0);let et=lf(d().videoId);et&&d().actions.internal.setQuality(et)}};function Ue(O){var si,yi,_i;let et=l()||O;et&&d().initVideo({container:r(ke),sources:et,failoverHosts:j(),subtitles:w(),subtitlesForcedLanguage:T(),volumeMultiplier:te()});let Qt=j5.get(ed)==="true";Je.set(Qt),B()>0&&d().actions.external.seekTime(B());let Gt=me()?pt.volumeDefault:(yi=(si=I())!=null?si:Yc())!=null?yi:pt.volumeDefault,gt=(_i=L())!=null?_i:Zh();if(d().actions.external.setVolume(Gt),d().actions.external.setMuted(gt),d().getAdmanWrapper().setInitialVolume(gt?0:Gt),ce(),pt.features.saveRate&&Oe()){let xt=e1();xt&&!n()&&d().actions.internal.setPlaybackRate(xt)}if(we()){let xt=i1();xt&&d().actions.internal.setAutoplayNextEnabled(xt)}d().ui.isAutoplay.set(V()),V()&&Ee(),E()&&pt.features.preload&&d().actions.internal.preload()}let We=O=>{if(window.ResizeObserver){let et,Qt;Jt=new ResizeObserver(Y5(Gt=>{let gt=Gt[0];if(gt.contentBoxSize){let si=Array.isArray(gt.contentBoxSize)?gt.contentBoxSize[0]:gt.contentBoxSize;et=si.inlineSize,Qt=si.blockSize}else gt.contentRect&&(et=gt.contentRect.width,Qt=gt.contentRect.height);zt.set({width:et,height:Qt})},300)),Jt.observe(O)}zt.set({width:O.clientWidth,height:O.clientHeight})},Se=()=>{document.hidden&&d().actions.external.stop()};Rt(()=>{var Qt,Gt,gt,si;Xt&&document.addEventListener("visibilitychange",Se),pt.debugLog&&d().actions.internal.startLogging(),We(r(ke));let O=it.map(yi=>yi.init({store:d(),microStores:ht,config:u(),interactiveController:y(),uiConfig:f()})),et=()=>{Xt&&document.removeEventListener("visibilitychange",Se),Jt==null||Jt.disconnect(),O.forEach(yi=>yi.unsubscribe()),d().destroy()};return((Qt=S())==null?void 0:Qt.status)==="upcoming"?(d().actions.internal.setLiveWaitingStart(!0),et):((Gt=S())==null?void 0:Gt.status)==="waiting"?(d().actions.internal.setLiveWaitingRecover(!0),et):(((gt=S())==null?void 0:gt.status)==="finished"||((si=S())==null?void 0:si.status)==="postlive")&&!(l()&&G5(l()))?(d().actions.internal.setLiveWaitingRecord(!0),et):(Ue(),et)});function lt(){r(he)?d().actions.external.play():Ee(!0)}function qe(){d().actions.external.pause()}function bt(O){d().actions.external.setMuted(O)}function Qe(){d().actions.external.toggleSubtitle()}function je(O,et){d().actions.external.changeSubtitle(O,et)}function tt(O){d().actions.external.changeAudioStream(O)}function Vt(){var O;(O=d().webApi.slotsApi)!=null&&O.haveSlots()&&d().actions.external.hideControls()}function Wt(){var O;(O=d().webApi.slotsApi)!=null&&O.haveSlots()&&d().actions.external.showControls()}function ai(O){me()||O>=0&&O<=1&&d().actions.external.setVolume(O)}function li(O){d().actions.internal.seekTime(O,Z5.UNKNOWN)}function qi(O){d().actions.external.seekEpisodeStartTime(O)}function ao(){d().actions.external.returnFocusToEpisodes()}function oi(O){d().actions.external.setPlaybackRate(O)}function ft(O){d().actions.external.setAutoQualityLimits(O)}function Qi(){d().actions.external.setQuality("auto")}function Pt(O){d().actions.external.setTrafficSavingEnabled(O)}function nt(O){d().actions.external.setHighQualityEnabled(O)}let ei=Fu(pt.view),to=u().playerView==="preview",Ct=d().state.availableSubtitlesList$;if(pt.features.initSubtitles){let O=!1;ze(()=>{var et;if(!O&&s().length){O=!0;let Qt;if(pt.features.userVideoPrefs&&d().videoId){let gt=eu(pt.userSalt,String(d().videoId));gt!=null&&gt.subtitleTrackId&&(Qt=s().find(si=>si.value===gt.subtitleTrackId))}let Gt=(et=T())!=null?et:mf();Gt&&(Qt=s().find(gt=>gt.language===Gt)),d().actions.internal.setSubtitle(Qt)}})}var ut=X5();let Ot;var So=_(ut);{var Co=O=>{hv(O,{get store(){return d()},get uiConfig(){return pt},get thumbUrl(){return p()},get interactiveContainer(){return x()},get live(){return S()},get autoplay(){return V()},get canRewindLive(){return F()},get showAds(){return H()},get adsSlotId(){return U()},get adsParams(){return Z()},get adsAutoplayParam(){return re()},get duration(){return G()},get logoClickable(){return be()},get logoHidden(){return ie()},get logoTargetUrl(){return _t},get nextButtonActive(){return ue()},get prevButtonActive(){return Le()},get endScreenVideoTitle(){return Ve()},get endScreenVideoThumb(){return ae()},get isOneVideoPlaylist(){return Re()},get supportLink(){return X()},get shadowRootContainer(){return M()},get outerContainerRef(){return at()},get fullScreenTarget(){return De()},get showMiniTimer(){return oe()},get playerStarted(){return r(he)},get seekToInteractive(){return Ze()},get playPrevChapter(){return $e()},firstStart:Ee,seekTime:li,get showEndScreen(){return Te()},get showAutoplayNext(){return we()},get showNextPrevButtons(){return pe()},get videoContainer(){return r(ke)},set videoContainer(et){N(ke,et,!0)}})},Ko=O=>{var et=Fe(),Qt=fe(et);{var Gt=si=>{_v(si,{get thumbUrl(){return p()},get outsideDuration(){return G()},get canRewindLive(){return F()},get videoContainer(){return r(ke)},set videoContainer(yi){N(ke,yi,!0)}})},gt=si=>{vv(si,{get store(){return d()},get uiConfig(){return pt},get title(){return m()},get thumbUrl(){return p()},get interactiveContainer(){return x()},get live(){return S()},get autoplay(){return V()},get canRewindLive(){return F()},get showAds(){return H()},get adsSlotId(){return U()},get adsParams(){return Z()},get adsAutoplayParam(){return re()},get duration(){return G()},get logoClickable(){return be()},get logoHidden(){return ie()},get logoTargetUrl(){return _t},get nextButtonActive(){return ue()},get prevButtonActive(){return Le()},get endScreenVideoTitle(){return Ve()},get endScreenVideoThumb(){return ae()},get isOneVideoPlaylist(){return Re()},get supportLink(){return X()},get shadowRootContainer(){return M()},get outerContainerRef(){return at()},get fullScreenTarget(){return De()},get showMiniTimer(){return oe()},get playerStarted(){return r(he)},get seekToInteractive(){return Ze()},get playPrevChapter(){return $e()},firstStart:Ee,get showEndScreen(){return Te()},get showAutoplayNext(){return we()},get showNextPrevButtons(){return pe()},get videoContainer(){return r(ke)},set videoContainer(yi){N(ke,yi,!0)},get keyboardControls(){return Ke()},set keyboardControls(yi){Ke(yi)}})};R(Qt,si=>{to?si(Gt):si(gt,!1)})}$(O,et)};R(So,O=>{me()?O(Co):O(Ko,!1)})}h(ut),D(O=>{Ot=se(ut,1,"root svelte-1tzrpvc",null,Ot,O),dt(ut,ei)},[()=>({"root--miui-browser":bv.device.isMobile&&bv.browser.isMiuiBrowser,"visible-outside":to})]),$(t,ut);var Bn=W({initVideo:Ue,play:lt,pause:qe,setMuted:bt,toggleSubtitle:Qe,changeSubtitle:je,changeAudioStream:tt,hideControls:Vt,showControls:Wt,setVolume:ai,seekTime:li,seekEpisodeStartTime:qi,returnFocusToEpisodes:ao,setPlaybackRate:oi,setAutoQualityLimits:ft,setAutoQuality:Qi,toggleTrafficSaving:Pt,toggleHighQuality:nt,get sources(){return l()},set sources(O){l(O)},get store(){return d()},set store(O){d(O)},get microStoresRoot(){return a()},set microStoresRoot(O){a(O)},get videoConfig(){return u()},set videoConfig(O){u(O)},get uiConfig(){return f()},set uiConfig(O){f(O)},get title(){return m()},set title(O){m(O)},get thumbUrl(){return p()},set thumbUrl(O){p(O)},get interactiveContainer(){return x()},set interactiveContainer(O){x(O)},get interactiveController(){return y()},set interactiveController(O){y(O)},get subtitles(){return w()},set subtitles(O){w(O)},get subtitlesForcedLanguage(){return T()},set subtitlesForcedLanguage(O){T(O)},get live(){return S()},set live(O){S(O)},get preload(){return E()},set preload(O){E(O)},get autoplay(){return V()},set autoplay(O){V(O)},get volume(){return I()},set volume(O){I(O)},get muted(){return L()},set muted(O){L(O)},get fromTime(){return B()},set fromTime(O){B(O)},get canRewindLive(){return F()},set canRewindLive(O){F(O)},get showAds(){return H()},set showAds(O){H(O)},get adsSlotId(){return U()},set adsSlotId(O){U(O)},get adsParams(){return Z()},set adsParams(O){Z(O)},get adsAutoplayParam(){return re()},set adsAutoplayParam(O){re(O)},get duration(){return G()},set duration(O){G(O)},get logoClickable(){return be()},set logoClickable(O){be(O)},get logoHidden(){return ie()},set logoHidden(O){ie(O)},get isMobile(){return me()},set isMobile(O){me(O)},get showNextPrevButtons(){return pe()},set showNextPrevButtons(O){pe(O)},get nextButtonActive(){return ue()},set nextButtonActive(O){ue(O)},get prevButtonActive(){return Le()},set prevButtonActive(O){Le(O)},get endScreenVideoTitle(){return Ve()},set endScreenVideoTitle(O){Ve(O)},get endScreenVideoThumb(){return ae()},set endScreenVideoThumb(O){ae(O)},get isOneVideoPlaylist(){return Re()},set isOneVideoPlaylist(O){Re(O)},get supportLink(){return X()},set supportLink(O){X(O)},get shadowRootContainer(){return M()},set shadowRootContainer(O){M(O)},get outerContainerRef(){return at()},set outerContainerRef(O){at(O)},get fullScreenTarget(){return De()},set fullScreenTarget(O){De(O)},get failoverHosts(){return j()},set failoverHosts(O){j(O)},get showMiniTimer(){return oe()},set showMiniTimer(O){oe(O)},get saveRate(){return Oe()},set saveRate(O){Oe(O)},get showAutoplayNext(){return we()},set showAutoplayNext(O){we(O)},get seekToInteractive(){return Ze()},set seekToInteractive(O){Ze(O)},get playPrevChapter(){return $e()},set playPrevChapter(O){$e(O)},get volumeMultiplier(){return te()},set volumeMultiplier(O){te(O)},get showEndScreen(){return Te()},set showEndScreen(O){Te(O)},get keyboardControls(){return Ke()},set keyboardControls(O){Ke(O)}});return o(),Bn}var ew=xe('<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 yv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=ew();Ie(o,()=>K({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);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(),h(o),$(t,o)}function xv(t,e){let i=v(e,"isWhite",3,!1),o=g(()=>i()?"color: #fff;":"color: #909499;");yv(t,{get style(){return r(o)}})}var tw=P('<div class="title svelte-1y9fytq"> </div>'),iw=P('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),ow={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 wv(t,e){q(t,ow);var i=iw(),o=_(i);{var n=d=>{var a=tw(),u=_(a,!0);h(a),D(()=>ve(u,e.title)),$(d,a)};R(o,d=>{e.title&&d(n)})}var s=k(o,2);{var l=d=>{let a=g(()=>!!e.thumbUrl);xv(d,{get isWhite(){return r(a)}})};R(s,d=>{(!e.title||!e.thumbUrl)&&d(l)})}h(i),D(()=>dt(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),$(t,i)}var nw=P('<div class="playerError svelte-m5iv29"><!></div>'),rw={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 Sv(t){q(t,rw);var e=nw(),i=_(e);Aa(i,{}),h(e),$(t,e)}import{now as Nw,ValueSubject as Bw}from"@vkontakte/videoplayer-shared/es2015";import{cloneDeepWith as Dw,InterfaceLanguage as Fw,isNonNullable as Lv,Logger as Hw,Observable as Uw,Subscription as O0,once as zw,InternalsExposure as Ww,skip as Kw,getPlayerId as qw}from"@vkontakte/videoplayer-shared/es2015";import{clientChecker as N0,isMobile as Qw}from"@vkontakte/videoplayer-core/es2015";import{OneStat as Gw,ThinOneStat as jw,MediascopePixel as Yw}from"@vkontakte/videoplayer-statistics/es2015";import{Logger as sw,Subscription as aw}from"@vkontakte/videoplayer-shared/es2015";var Hu=class{constructor(){this.subscription=new aw,this.logger=new sw,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=_e(e.state.currentPlaybackRate$),n=_e(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()}};import{ValueSubject as Iv,detectEmbed as fw}from"@vkontakte/videoplayer-shared/es2015";var lw=xe('<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 Cv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=lw();Ie(o,()=>K({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);ge(n,()=>{var s;return(s=e.children)!=null?s:de}),ye(),h(o),$(t,o)}var dw=P('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),cw={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 Tv(t,e){z(e,!0),q(t,cw);let[i,o]=Be(),n=()=>C(u,"$interfaceLanguage$",i),s=()=>C(f,"$isMobile$",i),l=Ce(),d=At(),a=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,f=l.ui.isMobile,m=l.ui.t,p=g(()=>n()&&m("pip_dummy_title")),x=Fu(d.view);var y=dw();let w;var T=_(y);let S;var E=_(T);Cv(E,{}),h(T);var V=k(T,2),I=_(V,!0);h(V),h(y),D((L,B)=>{w=se(y,1,"player-pip-dummy svelte-1pbsod4",null,w,L),dt(y,x),S=se(T,1,"dummy-image svelte-1pbsod4",null,S,B),ve(I,r(p))},[()=>({"is-pip-api":a}),()=>({desktop:!s()})]),$(t,y),W(),o()}var uw=Object.defineProperty,pw=(t,e,i)=>e in t?uw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,yl=(t,e,i)=>pw(t,typeof e!="symbol"?e+"":e,i),Ev=(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())}),mw=460,vw=280,Yd=class{constructor({enabled:e=!0}={enabled:!0}){yl(this,"playerDomElement"),yl(this,"playerParentShadowRoot"),yl(this,"playerDummyElement"),yl(this,"svelteContext"),yl(this,"pipWindow"),yl(this,"info",{isActive$:new Iv(!1),isEnabled$:new Iv(!1),type:1}),this.info.isEnabled$=new Iv(e)}isSupported(){let{isEmbed:e}=fw();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 Ev(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:mw,height:vw,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(`
394
+ `),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=zr(Tv,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||(da(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})})}exit(){return Ev(this,null,function*(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})})}dispose(){return Ev(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 I0(t){return t instanceof Yd}var Uu=class{static getLatestSupportedVersion(e){let i=new va(e),o=new Yd(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Zd(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 k0="Inner error. Unexpectedly root annotation container null reference exception",A0="Annotation with such name already exists",P0="Annotation with such name does not exist";var xl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as gw,Subscription as hw,throttleFn as _w}from"@vkontakte/videoplayer-shared/es2015";var bw="1",$w=100,zu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new hw}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=_w(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},$w);this.subscriptions.add(gw(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 xl(k0);if(this.annotations.has(e))throw new xl(A0);i.style.zIndex=(o=i.style.zIndex)!=null?o:bw,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 xl(P0);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(){}};import{assertNonNullable as Wu,Subscription as yw}from"@vkontakte/videoplayer-shared/es2015";var rn=class{init({store:e,microStores:i,interactiveController:o,config:n}){return Wu(e),Wu(i),Wu(n),n.interactiveData&&Wu(o),this.subscription=new yw,this.subscription}};var Xd=class extends rn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Ht(K({},le(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 Jd=class extends rn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Ht(K({},le(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,m=_e(f),p=()=>m&&_e(u);return o.add(u.subscribe(x=>{if(!m)return;let y=_e(l);_e(a)?this.state$.set(x):y!==null&&this.state$.set(!y||x)})),o.add(a.subscribe(x=>{this.state$.set(!x||p())})),o.add(l.subscribe(x=>{if(x===null)return;let y=_e(d);if(p()){this.state$.set(!0);return}y&&this.state$.set(!x)})),o}};var ec=class extends rn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=le("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}};import{combine as xw}from"@vkontakte/videoplayer-shared/es2015";var kv=le(!1),Ku=null,tc=class extends rn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Ht(K({},kv),{set:(i,o=!1)=>{i!==_e(kv)&&(this.clearTimeout(),kv.set(i),!i&&Ku&&(Ku=!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(m=>{_e(l)&&m&&this.state$.set(!1)}));let f=(s==null?void 0:s.interactiveData)||{tooltipHelpHintActive:!1};return o.add(xw({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:m,isInteractiveTime$:p,interactiveTimeIndicator:x})=>{var y,w;if(!(!m||!(x!=null&&x.isDisplayed))){if(!p)return this.state$.set(!1);f.tooltipHelpHintActive&&Ku===null&&(Ku=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(w=(y=n.callbacks)==null?void 0:y.onInteractiveTimeIndicatorHintDeactivated)==null||w.call(y))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as ww,noop as Sw}from"@vkontakte/videoplayer-shared/es2015";var ic=class extends rn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=Ht(K({},le(null)),{toggle:Sw});this.checkIfShouldHide=i=>js(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=()=>Tt(this,null,function*(){if(this.checkIfShouldHide(_e(l)))return;let a=_e(this.state$),{isEnded$:u,playbackState$:f}=n.state,{disabledControls$:m}=n.ui.controls,p=_e(u),x=_e(f);if(a)try{yield s==null?void 0:s.toggleGraphView(!1),this.state$.set(!1),m.remove(Jp),!p&&this.graphMadePause&&n.actions.internal.play()}catch(y){d({message:"Cant hide graph"})}else{this.graphMadePause=x==="playing";try{yield s==null?void 0:s.toggleGraphView(!0),this.state$.set(!0),m.add(Jp),!p&&this.graphMadePause&&n.actions.internal.pause()}catch(y){d({message:"Cant show graph"})}}}),o.add(ww({graphIsOpened:this.state$,currentGridType:l}).subscribe(f=>Tt(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}};import{ValueSubject as L0}from"@vkontakte/videoplayer-shared/es2015";var oc=class extends rn{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:le(!1),isEnabled$:le(!1),type$:le(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:s,isEnabled$:l,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new L0(!1),isEnabled$:new L0(!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}};import{filter as Ew,filterChanged as Iw}from"@vkontakte/videoplayer-shared/es2015";import{safeStorage as Av}from"@vkontakte/videoplayer-shared/es2015";var M0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?Cw({maxCount:t}):void 0,e!==0?Tw({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},Cw=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Av.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}}},Tw=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Av.get(e)||"{}")}catch(s){return{}}},o=s=>Av.set(e,JSON.stringify(s)),n=s=>{let l=i();delete l[s],o(l)};return{notificationShowed:s=>{o(Ht(K({},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 nc=class extends rn{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:le({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:s,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:a}}}=i;this.notificationManager=M0({maxShowCount:s,timeout:l});let u=n.getPlayer();return o.add(u.events.severeStallOccured$.pipe(Iw(),Ew(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 V0=()=>[Xd,Jd,ec,tc,ic,oc,nc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:Ht(K({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});import{devNull as rc}from"@vkontakte/videoplayer-shared/es2015";var qu=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 kw=P('<div class="root svelte-9ubj1t"><!></div>'),Aw={hash:"svelte-9ubj1t",code:".root.svelte-9ubj1t {position:absolute;display:flex;inset:0;align-items:center;justify-content:center;pointer-events:none;z-index:1;}"};function Pv(t,e){z(e,!0),q(t,Aw);let i=null,o=J(null);ze(()=>(r(o)&&(i=window.setTimeout(()=>{N(o,null)},e.animationDuration)),()=>{i&&clearTimeout(i)}));function n(a){e.playbackStatusShow&&N(o,a?"prev":"next",!0)}var s=Fe(),l=fe(s);{var d=a=>{var u=Fe(),f=fe(u);$s(f,()=>r(o),m=>{var p=kw(),x=_(p);let y=g(()=>r(o)==="prev");Gd(x,{get duration(){return e.animationDuration},get Icon(){return Md},get isPrev(){return r(y)}}),h(p),$(m,p)}),$(a,u)};R(l,a=>{e.playbackStatusShow&&r(o)&&a(d)})}return $(t,s),W({startVideoChangedAnimation:n})}var Pw=Object.defineProperty,Lw=Object.defineProperties,Mw=Object.getOwnPropertyDescriptors,R0=Object.getOwnPropertySymbols,Vw=Object.prototype.hasOwnProperty,Rw=Object.prototype.propertyIsEnumerable,Vv=(t,e,i)=>e in t?Pw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,As=(t,e)=>{for(var i in e||(e={}))Vw.call(e,i)&&Vv(t,i,e[i]);if(R0)for(var i of R0(e))Rw.call(e,i)&&Vv(t,i,e[i]);return t},Ow=(t,e)=>Lw(t,Mw(e)),qt=(t,e,i)=>Vv(t,typeof e!="symbol"?e+"":e,i),Qu=(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())}),Zw={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Fw.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:Qw(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Nn=J(void 0),Mv=ni({animationDuration:0,playbackStatusShow:!1}),Gu=class extends HTMLElement{constructor(){super(),qt(this,"svelteStubComponent"),qt(this,"svelteRootComponent"),qt(this,"sveltePersistentLayerComponent"),qt(this,"svelteErrorComponent"),qt(this,"store"),qt(this,"microStoresRoot"),qt(this,"statistics"),qt(this,"sentry"),qt(this,"_shadowRoot"),qt(this,"playerContainer"),qt(this,"rootContainer"),qt(this,"shadowRootContainer"),qt(this,"playerId"),qt(this,"uiConfig"),qt(this,"coreConfig"),qt(this,"statisticsConfig"),qt(this,"interactiveController"),qt(this,"interactiveContainer"),qt(this,"graphMadePause"),qt(this,"currentPlayingVideoIndex",0),qt(this,"needToRepeatPlaylist",!1),qt(this,"videoConfig"),qt(this,"pictureInPictureApi"),qt(this,"mediaSessionApi"),qt(this,"unsubscribePlayerPhaseSubscription"),qt(this,"logger"),qt(this,"log"),qt(this,"subscription"),qt(this,"interactiveSubscription"),qt(this,"annotationsApi"),qt(this,"slotsApi"),qt(this,"focusManager"),qt(this,"prevIsid"),qt(this,"isInited",!1),qt(this,"internalsExposure",null),qt(this,"shadowDOMCallbacksDisabled",!1),qt(this,"fatalError$",new Bw(null)),qt(this,"createOneStat",(e,i={})=>{var o,n,s,l;if(!this.videoConfig)return;let{albumId:d,statPlace:a,statUserSalt:u,statTrackCode:f,statVKAppId:m,refreshStatAuthToken:p,autoplay:x,isMobile:y,isTouch:w,refDomain:T,deviceId:S,interactiveData:E}=Zd(this.videoConfig,i),V=(o=E==null?void 0:E.projectInfo)==null?void 0:o.pid,I=(s=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?s:!1;I&&(this.prevIsid=void 0);let{unitedVideoId:L,isClip:B=!1}=e;if(this.uiConfig.features.statistics&&L)try{return new Gw(As({movieId:L,albumId:d,place:a,trackCode:f,vkAppId:m,autoplay:(l=x&&!this.interactiveController)!=null?l:!1,mobile:w!=null?w:y,clip:B,refDomain:T,deviceId:S,isPreviewPlayerView:this.videoConfig.playerView==="preview"},V&&(!this.isInited||I)&&{projectId:Number(V)}),As({refreshAuthToken:p,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}catch(H){console.error(H),this.log({message:H.message})}}),rc.create("ui"),this.logger=new Hw,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new O0,this.interactiveSubscription=new O0,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=zr(Sv,{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=ni({title:o,thumbUrl:n}),l={target:this.playerContainer,props:s};this.svelteStubComponent=zr(wv,l),this.sveltePersistentLayerComponent=zr(Pv,{target:this.playerContainer,props:Mv})}updatePersistentLayerProps(){if(!this.uiConfig)return;let{playbackStatusNextVideoAnimationDuration:e,features:{playbackStatusShow:i,playbackStatusNextVideoShow:o}}=this.uiConfig;Mv.animationDuration=e,Mv.playbackStatusShow=i&&o}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.unmountComponent(this.sveltePersistentLayerComponent),this.subscription.unsubscribe(),(s=this.unsubscribePlayerPhaseSubscription)==null||s.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),rc.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}=Zd(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new jw.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,m,p,x;if(!this.videoConfig)return;let{albumId:y,statPlace:w,statAuthToken:T,preload:S,autoplay:E,volume:V,muted:I,fromTime:L,canRewindLive:B,supportLink:F,showAds:H,adsSlotId:U,adsParams:Z={},adsAutoplayParam:re,interfaceLanguage:G,isCyrillicRelatedInterface:be,logoClickable:ie,logoHidden:me,isMobile:pe,isTouch:ue,isAudioDisabled:Le,isLiveCatchUpMode:Ve,fullScreenTarget:ae,failoverHosts:Re,canDownload:X,callbacks:M,interactiveData:at,showThumbTimer:De,additionalButtons:j=[],additionalSettingsMenuItems:oe=[],additionalContextMenuItems:Oe=[],repeat:Ze,loop:$e,saveRate:te,volumeMultiplier:we,showEndScreen:Te,showAutoplayNext:Ke,mediascopePixels:it}=Zd(this.videoConfig,i),{sources:ht,title:pt,thumbUrl:_t,unitedVideoId:Je,isClip:zt=!1,duration:Yt,adsParams:Zt={},videoEpisodes:Xt,previewThumbsData:ke,subtitles:Jt,subtitlesForcedLanguage:he,live:Ee}=e;if(!ht&&!Ee){let oi=new Error("empty sources and live");this.fatalError$.next(oi),(n=M.onCrashed)==null||n.call(M,oi.message);return}let ce=As(As({},Z),Zt),Ue=this.getNextVideoInfo(),We={sources:ht,title:pt,thumbUrl:_t,subtitles:Jt,subtitlesForcedLanguage:he,unitedVideoId:Je,isClip:zt,live:Ee,albumId:y,statPlace:w,autoplay:E,muted:I,volume:V,fromTime:L,canRewindLive:B,showAds:H,adsSlotId:U,adsParams:ce,adsAutoplayParam:re,duration:Yt,logoClickable:ie,logoHidden:me,isTouch:ue!=null?ue:pe,repeat:Ze,loop:$e,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ue.nextVideoTitle,endScreenVideoThumb:Ue.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Se={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(We)}`});let lt=(s=this.interactiveController)==null?void 0:s.state.statistics$.getValue(),qe=(lt==null?void 0:lt.oneStat)||this.createOneStat(e,i),bt=this.createThinOneStat(e,i),Qe;it&&(Qe=new Yw({pixels:it})),(qe||bt)&&(this.statistics=new wu(qe,bt,Qe,lt==null?void 0:lt.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new ma(this.uiConfig.sentry,{version:sl,env:Qc},{movieId:Je,albumId:y,place:w,autoplay:(l=E&&!this.interactiveController)!=null?l:!1,mobile:ue!=null?ue:pe,clip:zt}),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=As(As({},this.sentry),ma.getInstance());let tt=!!at,Vt=[],Wt="tooltip_interactive_go_back_disabled_first";if(tt&&this.interactiveController){let oi=this.interactiveController.state.isInitialChapter$.getValue(),ft=this.interactiveController.getHistoryState();oi&&Vt.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Vt.push("SEEK_TO_INTERACTIVE_BUTTON"),ft.hasPrevChapter$.getValue()||(Vt.push("PLAY_PREV_CHAPTER_BUTTON"),oi||(ft.isGoBackLimited$.getValue()?Wt="tooltip_interactive_go_back_disabled_limit":Wt="tooltip_interactive_go_back_disabled"))}let ai=()=>{var oi;this.isInited=!1,this.prevIsid=void 0;let ft=(o==null?void 0:o.info.isEnded$.getValue())&&((oi=this.interactiveController)==null?void 0:oi.state.isEndChapter$.getValue());M.onReplayInteractiveVideo&&!ft?M.onReplayInteractiveVideo():this.replayInteractiveVideo()},li=Ze&&this.videoConfig.videos.length===1;this.store=G1({player:o,interfaceLanguage:G,isCyrillicRelatedInterface:be,videoId:Je,isClip:zt,isLiveCatchUpMode:Ve,isAudioDisabled:Le,statAuthToken:T,callbacks:M,webApi:Se,videoEpisodes:Xt,previewThumbsData:ke,canDownload:X,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Vt,isInteractive:tt,saveRate:te,interactiveRanges$:(f=this.interactiveController)==null?void 0:f.state.interactiveRanges$,isInteractiveTime$:(m=this.interactiveController)==null?void 0:m.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:ai,playPrevChapterDisabledTooltip:Wt,hasInteractiveBranches:!!((x=(p=this.interactiveController)==null?void 0:p.getChapterBranches())!=null&&x.length),additionalButtons:this.uiConfig.features.additionalButtons?j:[],additionalSettingsMenuItems:oe!=null?oe:[],additionalContextMenuItems:Oe!=null?Oe:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:oi=>{var ft;return(ft=this.sveltePersistentLayerComponent)==null?void 0:ft.startVideoChangedAnimation(oi)},looped:this.uiConfig.features.useLoopSetting?$e:li,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:qi}=this.microStoresRoot=V0(),ao=()=>{var oi,ft,Qi,Pt,nt,ei;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Ct=>{var ut;return(ut=M==null?void 0:M.onCurrentFormatChanged)==null?void 0:ut.call(M,Ct)})),this.subscription.add(qi.interactiveControlsOpacity$.subscribe(Ct=>{var ut;Ct!==null&&((ut=this==null?void 0:this.interactiveController)==null||ut.setDisabledControls(Ct))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Ct=>{var ut;return(ut=M==null?void 0:M.onThroughputEstimationChanged)==null?void 0:ut.call(M,Ct)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Ct=>{var ut;return(ut=M==null?void 0:M.onTrafficSavingEnabledChanged)==null?void 0:ut.call(M,Ct)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(Ct=>{var ut;return(ut=M==null?void 0:M.onHighQualityEnabledChanged)==null?void 0:ut.call(M,Ct)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(Ct=>{var ut;return(ut=M==null?void 0:M.onAutoQualityEnabledChanged)==null?void 0:ut.call(M,!!Ct)})),this.subscription.add(new Uw(Ct=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(ut=>Ct.next(ut)))}).pipe(Kw(1)).subscribe(Ct=>{var ut;return(ut=M==null?void 0:M.onCurrentPlaybackRateChanged)==null?void 0:ut.call(M,Ct)})),this.subscription.add(this.store.state.volume$.subscribe(Ct=>{var ut;return(ut=M==null?void 0:M.onVolumeChange)==null?void 0:ut.call(M,Ct)})),this.subscription.add(this.store.state.muted$.subscribe(Ct=>{var ut,Ot,So,Co;if(Ct)(ut=M==null?void 0:M.onMute)==null||ut.call(M);else{let Ko=(So=((Ot=this.store)==null?void 0:Ot.state.volume$)&&_e(this.store.state.volume$))!=null?So:0;(Co=M==null?void 0:M.onUnmute)==null||Co.call(M,Ko)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Ct=>{var ut;return(ut=M==null?void 0:M.onVideoBitrateChanged)==null?void 0:ut.call(M,Ct)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Ct=>{var ut;let Ot=(ut=this.store)==null?void 0:ut.ui.controls.disabledControls$;Ot&&(Ct&&!Ot.includes(td)&&Ot.add(td),Ct||Ot.remove(td))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(Ct=>Qu(this,null,function*(){var ut;if(!N0.browser.isSamsungBrowser||!Ct||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((ut=this.videoConfig)==null?void 0:ut.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Ct=>{var ut;return(ut=M==null?void 0:M.onVSIDChanged)==null?void 0:ut.call(M,Ct)})),this.initMediaSession(),N(Nn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:ht,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:pt,thumbUrl:_t,subtitles:Jt,subtitlesForcedLanguage:he,live:Ee,preload:S,autoplay:E,muted:I,volume:V,fromTime:L,canRewindLive:B,supportLink:F,showAds:H,adsSlotId:U,adsParams:ce,adsAutoplayParam:re,duration:Yt,logoClickable:ie,logoHidden:me,isMobile:ue!=null?ue:pe,failoverHosts:Re,fullScreenTarget:ae,saveRate:te,shadowRootContainer:this.shadowRootContainer,showMiniTimer:De,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ue.nextVideoTitle,endScreenVideoThumb:Ue.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:we,showEndScreen:Te,showAutoplayNext:Ke},!0);let to={target:this.playerContainer,props:r(Nn)};this.svelteRootComponent=zr($v,to),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Qi=(ft=(oi=this.videoConfig)==null?void 0:oi.callbacks)==null?void 0:ft.onInited)==null||Qi.call(ft)),(Pt=this.internalsExposure)==null||Pt.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((ei=(nt=this.videoConfig)==null?void 0:nt.callbacks)!=null&&ei.onDevNullLog)?rc.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):rc.destroy("ui")};this.coreConfig.asyncResolveClientChecker?N0.isInited$.subscribe(oi=>{oi&&(console.log("UI SDK async start"),ao())}):ao()}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&&Lv(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 Qu(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?_e(a):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:m,historyApi:p,videoLoader:x}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:u,graph:this.uiConfig.features.interactiveGraph,projectInfo:f,initChapterId:m,historyApi:p,vkVideoLoader:x,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation},endChapterHistoryFix:this.uiConfig.features.interactiveHistoryEndChapterFix});let{isInteractiveExpectation$:y,isSeekable$:w}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(w.subscribe(S=>{if(!this.isInited)return;let E=this.store;S?E.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):E.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(y.subscribe(S=>{this.store&&this.store.state.isInteractiveExpectation$.set(S)}));let T=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(S=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=Ow(As({},S.config),{title:(f==null?void 0:f.title)||S.config.title});let E=T?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(S.player,E),T&&(T=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:S,actionType:E})=>{var V,I,L,B,F,H;if(!this.store||!this.microStoresRoot)return;let U=y.getValue();if(S==="action-choice"&&E==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(id)),S==="action-choice-canceled"){let Z=_e(this.store.state.isPlaying$)||U;if(((L=(V=this.videoConfig)==null?void 0:V.isTouch)!=null?L:(I=this.videoConfig)!=null&&I.isMobile)&&Z){this.store.ui.interactiveHideMobileControls.set(!0);return}(H=(B=this.videoConfig)==null?void 0:(F=B.callbacks).onDisabledInteractiveClick)==null||H.call(F)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:S,removeAllOpenURI:E})=>{this.store&&S==="container-fake-removed"&&E&&this.store.ui.controls.disabledControls$.remove(id)})),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let S=this.interactiveController.getHistoryState();this.subscription.add(S.history$.subscribe(E=>{var V,I,L;E.length&&((L=(I=(V=this.videoConfig)==null?void 0:V.callbacks)==null?void 0:I.onInteractiveHistoryChanged)==null||L.call(I,E))}))}(l=(s=this.videoConfig)==null?void 0:s.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(S=>{var E,V,I;(I=(E=this.videoConfig)==null?void 0:(V=E.callbacks).onInteractiveChapterChanged)==null||I.call(V,S.chapter,S.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var S,E,V,I;(S=this.microStoresRoot)==null||S.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(I=(E=this.videoConfig)==null?void 0:(V=E.callbacks).onInteractiveTimeIndicatorClick)==null||I.call(V)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(S=>{this.log({message:S.toString()})}))}catch(d){this.log({message:d.message})}})}initPlayer(e,i={}){var o,n,s,l,d,a,u,f,m,p,x,y,w,T,S,E,V,I,L,B,F,H,U,Z,re,G,be,ie;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let me=new Error("empty videos");this.fatalError$.next(me),(n=(o=e.callbacks)==null?void 0:o.onCrashed)==null||n.call(o,me.message);return}else this.fatalError$.next(null);if(this.videoConfig=Zd(Zw,Dw(e,me=>me instanceof HTMLElement?me:void 0)),this.playerId=qw(e.playerId),this.uiConfig=Ch((s=i.ui)!=null?s:{}),this.updatePersistentLayerProps(),this.coreConfig=(l=i.core)!=null?l:{configName:[]},this.statisticsConfig=(d=i.statistics)!=null?d:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer&&(this.rootContainer.style.minHeight="unset"),this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},this.uiConfig.features.exposeInternalsToGlobal&&((u=this.internalsExposure)!=null||(this.internalsExposure=new Ww("ui",this.playerId))),rc.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:[Nw()]}),Lv(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(p=(m=this.uiConfig.features.mediaSession)!=null?m:this.videoConfig.isMediaSessionEnabled)!=null?p:!0),Lv(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(y=(x=this.uiConfig.features.pip)!=null?x:this.videoConfig.isPictureInPictureEnabled)!=null?y:!0,this.uiConfig.features.dpip=(T=(w=this.uiConfig.features.dpip)!=null?w:this.videoConfig.isPictureInPictureEnabled)!=null?T:!0),this.uiConfig.ads.paramsOverride=As({preview:(S=this.uiConfig.ads.preview)!=null?S:this.videoConfig.adsPreviewParam},this.uiConfig.ads.paramsOverride),this.videoConfig.isTouch=(V=(E=this.uiConfig.isMobile)!=null?E:this.videoConfig.isTouch)!=null?V:this.videoConfig.isMobile,(I=this.videoConfig).autoplay&&(I.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(L=this.uiConfig.ads.enable)!=null?L:this.videoConfig.showAds,this.videoConfig.adsSlotId=(B=this.uiConfig.ads.slot)!=null?B:this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!((F=this.uiConfig.showLogo)!=null?F:!this.videoConfig.logoHidden),(H=this.videoConfig).canRewindLive&&(H.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(U=this.videoConfig.supportLink)!=null?U:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(Z=this.uiConfig.features.endScreen)!=null?Z:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(re=this.uiConfig.features.autoplayNext)!=null?re:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(G=this.uiConfig.features.nextPrevButtons)!=null?G:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((be=this.videoConfig.videos)!=null&&be[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let me={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Uu.getLatestSupportedVersion(me):this.pictureInPictureApi=new va(me)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Hu:void 0,this.slotsApi=this.uiConfig.features.slots?new Nu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new zu(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]),I0(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(ie=this.slotsApi)==null||ie.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new qu(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(Nn)&&(r(Nn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Nn).nextButtonActive=this.isNextButtonActive(),r(Nn).prevButtonActive=this.isPrevButtonActive(),r(Nn).endScreenVideoTitle=o.nextVideoTitle,r(Nn).endScreenVideoThumb=o.nextVideoThumb,r(Nn).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}=As({},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()}changeSubtitle(e,i){var o;this.log({message:"change subtitle"}),(o=this.svelteRootComponent)==null||o.changeSubtitle(e,i)}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,r(Nn)&&(r(Nn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(Nn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Nn).nextButtonActive=this.isNextButtonActive(),r(Nn).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)}setAutoQuality(){var e;(e=this.svelteRootComponent)==null||e.setAutoQuality()}toggleTrafficSaving(e){var i;(i=this.svelteRootComponent)==null||i.toggleTrafficSaving(e)}toggleHighQuality(e){var i;(i=this.svelteRootComponent)==null||i.toggleHighQuality(e)}changeAudioStream(e){var i;(i=this.svelteRootComponent)==null||i.changeAudioStream(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}setLanguage(e){return Qu(this,null,function*(){var i;yield(i=this.store)==null?void 0:i.actions.internal.setLanguage(e)})}setLiveStart(e){var i,o;let n=this.isLiveTailPlaying();this.log({message:`live started: liveTailPlaying = ${n}`}),n||((i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0}))}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){var e;let i=(e=this.store)==null?void 0:e.getPlayer();if(!i)return!1;let{info:o}=i;return o.canPlayLiveTailBuffer$.getValue()&&!o.isStalled$.getValue()&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),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 Qu(this,null,function*(){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=_e(this.store.state.positionExact$),l=_e(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe(zw()).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)}getTotalViewTime(){var e,i;return(i=(e=this.statistics)==null?void 0:e.thinOneStat)==null?void 0:i.getTotalViewTime()}unmountComponent(e){e&&da(e)}};import{InterfaceLanguage as Rie,VKNumericLanguage as Oie,loadVKLangPack as Nie}from"@vkontakte/videoplayer-shared/es2015";import{VideoQuality as Die,VideoFormat as Fie}from"@vkontakte/videoplayer-core/es2015";var Eie=()=>{window.customElements.define("vk-video-player",Gu)};export{Su as ControlButtonType,cs as GridTypes,Rie as InterfaceLanguage,fd as MenuItemType,us as PlayerPhase,sl as VERSION,Oie as VKNumericLanguage,Fie as VideoFormat,Die as VideoQuality,Nie as loadVKLangPack,Eie as registerPlayerWebComponent};