@vkontakte/videoplayer 1.1.72-dev.752fa0a9.0 → 1.1.72-dev.95df362c.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.72-dev.752fa0a9.0
3
- * Mon, 22 Sep 2025 10:11:23 GMT
2
+ * @vkontakte/videoplayer v1.1.72-dev.95df362c.0
3
+ * Tue, 23 Sep 2025 09:42:39 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-72/doc/
5
5
  */
6
- var L0=Object.defineProperty,V0=Object.defineProperties;var R0=Object.getOwnPropertyDescriptors;var Vv=Object.getOwnPropertySymbols;var N0=Object.prototype.hasOwnProperty,O0=Object.prototype.propertyIsEnumerable;var Rv=t=>{throw TypeError(t)};var op=(t,e,i)=>e in t?L0(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,W=(t,e)=>{for(var i in e||(e={}))N0.call(e,i)&&op(t,i,e[i]);if(Vv)for(var i of Vv(e))O0.call(e,i)&&op(t,i,e[i]);return t},Ht=(t,e)=>V0(t,R0(e));var tr=(t,e,i)=>op(t,typeof e!="symbol"?e+"":e,i),np=(t,e,i)=>e.has(t)||Rv("Cannot "+i);var Mi=(t,e,i)=>(np(t,e,"read from private field"),i?i.call(t):e.get(t)),ks=(t,e,i)=>e.has(t)?Rv("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Na=(t,e,i,o)=>(np(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Nv=(t,e,i)=>(np(t,e,"access private method"),i);var $t=(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 Ps="[",As="[!",js="]",Jr={};var Xi=Symbol(),Ln=Symbol("filename"),Ov=Symbol("hmr"),Bv="http://www.w3.org/1999/xhtml",vc="http://www.w3.org/2000/svg";var rp="@attach";var gc=!0;var Hv,Fv,Dv=(Fv=(Hv=globalThis.process)==null?void 0:Hv.env)==null?void 0:Fv.NODE_ENV,Le=Dv&&!Dv.toLowerCase().startsWith("prod");var ir=Array.isArray,Uv=Array.prototype.indexOf,Il=Array.from,sp=Object.keys,so=Object.defineProperty,Xo=Object.getOwnPropertyDescriptor,hc=Object.getOwnPropertyDescriptors,ap=Object.prototype,zv=Array.prototype,Ys=Object.getPrototypeOf,lp=Object.isExtensible;function Ms(t){return typeof t=="function"}var ce=()=>{};function Wv(t){return t()}function Ls(t){for(var e=0;e<t.length;e++)t[e]()}var Do=Symbol("$state"),Oa=Symbol("legacy props"),Kv=Symbol(""),_c=Symbol("proxy path"),bc=1,Ba=3,or=8;function $c(t){return t===this.v}function Da(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function qv(t,e){return t!==e}function Ha(t){return!Da(t,this.v)}function Qv(){if(Le){let t=new Error(`derived_references_self
6
+ var E_=Object.defineProperty,I_=Object.defineProperties;var k_=Object.getOwnPropertyDescriptors;var Sv=Object.getOwnPropertySymbols;var P_=Object.prototype.hasOwnProperty,A_=Object.prototype.propertyIsEnumerable;var Cv=t=>{throw TypeError(t)};var ju=(t,e,i)=>e in t?E_(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,W=(t,e)=>{for(var i in e||(e={}))P_.call(e,i)&&ju(t,i,e[i]);if(Sv)for(var i of Sv(e))A_.call(e,i)&&ju(t,i,e[i]);return t},Bt=(t,e)=>I_(t,k_(e));var Zn=(t,e,i)=>ju(t,typeof e!="symbol"?e+"":e,i),Yu=(t,e,i)=>e.has(t)||Cv("Cannot "+i);var Ai=(t,e,i)=>(Yu(t,e,"read from private field"),i?i.call(t):e.get(t)),Is=(t,e,i)=>e.has(t)?Cv("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Oa=(t,e,i,o)=>(Yu(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Tv=(t,e,i)=>(Yu(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 ks="[",Ps="[!",js="]",Jr={};var Xi=Symbol(),Ln=Symbol("filename"),Ev=Symbol("hmr"),Iv="http://www.w3.org/1999/xhtml",cc="http://www.w3.org/2000/svg";var Zu="@attach";var uc=!0;var Pv,Av,kv=(Av=(Pv=globalThis.process)==null?void 0:Pv.env)==null?void 0:Av.NODE_ENV,Le=kv&&!kv.toLowerCase().startsWith("prod");var Xn=Array.isArray,Mv=Array.prototype.indexOf,Sl=Array.from,Xu=Object.keys,lo=Object.defineProperty,en=Object.getOwnPropertyDescriptor,pc=Object.getOwnPropertyDescriptors,Ju=Object.prototype,Lv=Array.prototype,Ys=Object.getPrototypeOf,ep=Object.isExtensible;function As(t){return typeof t=="function"}var ce=()=>{};function Vv(t){return t()}function Ms(t){for(var e=0;e<t.length;e++)t[e]()}var Uo=Symbol("$state"),Ba=Symbol("legacy props"),Rv=Symbol(""),fc=Symbol("proxy path"),mc=1,Da=3,Jn=8;function vc(t){return t===this.v}function Ha(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Nv(t,e){return t!==e}function Fa(t){return!Ha(t,this.v)}function Ov(){if(Le){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 Gv(t){if(Le){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 Bv(t){if(Le){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 jv(){if(Le){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 Yv(t){if(Le){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 Dv(){if(Le){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 Hv(t){if(Le){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 Zv(){if(Le){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 Fv(){if(Le){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 Xv(){if(Le){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 Uv(){if(Le){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 Jv(){if(Le){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 eg(t){if(Le){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 zv(){if(Le){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 Wv(t){if(Le){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 tg(t){if(Le){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 Kv(t){if(Le){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 ig(t){if(Le){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 qv(t){if(Le){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 og(){if(Le){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 ng(){if(Le){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 rg(){if(Le){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 sg(){es=!0}var kl=null;function us(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 Qv(){if(Le){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 Gv(){if(Le){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 jv(){if(Le){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 Yv(){es=!0}var Cl=null;function us(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;so(e,"stack",{value:n.join(`
25
- `)}),so(e,"name",{value:`${t}Error`})}return e}function Nr(t,e){return t.label=e,yc(t.v,e),t}function yc(t,e){var i;return(i=t==null?void 0:t[_c])==null||i.call(t,e),t}function Fa(t){if(Le){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;lo(e,"stack",{value:n.join(`
25
+ `)}),lo(e,"name",{value:`${t}Error`})}return e}function Nr(t,e){return t.label=e,gc(t.v,e),t}function gc(t,e){var i;return(i=t==null?void 0:t[fc])==null||i.call(t,e),t}function Ua(t){if(Le){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 Bt=null;function Pl(t){Bt=t}var nr=null;function Al(t){nr=t}function Ua(t){return up("getContext").get(t)}function za(t,e){return up("setContext").set(t,e),e}function Ml(){return up("getAllContexts")}function U(t,e=!1,i){var o=Bt={p:Bt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};es&&!e&&(Bt.l={s:null,u:null,r1:[],r2:yr(!1)}),Ho(()=>{o.d=!0}),Le&&(Bt.function=i,nr=i)}function z(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=vt,o=It;e.e=null;try{for(var n=0;n<a.length;n++){var s=a[n];ao(s.effect),Ui(s.reaction),So(s.fn)}}finally{ao(i),Ui(o)}}Bt=e.p,Le&&(nr=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function is(){return!es||Bt!==null&&Bt.l===null}function up(t){var e;return Bt===null&&Fa(t),(e=Bt.c)!=null?e:Bt.c=new Map(D0(Bt)||void 0)}function D0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var H0=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function ai(t){if(typeof t!="object"||t===null||Do in t)return t;let e=Ys(t);if(e!==ap&&e!==zv)return t;var i=new Map,o=ir(t),n=X(0),s=Le&&ts?us("CreatedAt"):null,l=It,d=f=>{var m=It;Ui(l);var p=f();return Ui(m),p};o&&i.set("length",X(t.length,s));var a="";function u(f){a=f,Nr(n,`${a} version`);for(let[m,p]of i)Nr(p,Zs(a,m))}return new Proxy(t,{defineProperty(f,m,p){(!("value"in p)||p.configurable===!1||p.enumerable===!1||p.writable===!1)&&og();var x=i.get(m);return x===void 0?x=d(()=>{var w=X(p.value,s);return i.set(m,w),Le&&typeof m=="string"&&Nr(w,Zs(a,m)),w}):O(x,p.value,!0),!0},deleteProperty(f,m){var p=i.get(m);if(p===void 0){if(m in f){let y=d(()=>X(Xi,s));i.set(m,y),pp(n),Le&&Nr(y,Zs(a,m))}}else{if(o&&typeof m=="string"){var x=i.get("length"),w=Number(m);Number.isInteger(w)&&w<x.v&&O(x,w)}O(p,Xi),pp(n)}return!0},get(f,m,p){var S;if(m===Do)return t;if(Le&&m===_c)return u;var x=i.get(m),w=m in f;if(x===void 0&&(!w||(S=Xo(f,m))!=null&&S.writable)&&(x=d(()=>{var T=ai(w?f[m]:Xi),E=X(T,s);return Le&&Nr(E,Zs(a,m)),E}),i.set(m,x)),x!==void 0){var y=r(x);return y===Xi?void 0:y}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 w=i.get(m),y=w==null?void 0:w.v;if(w!==void 0&&y!==Xi)return{enumerable:!0,configurable:!0,value:y,writable:!0}}return p},has(f,m){var y;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||vt!==null&&(!x||(y=Xo(f,m))!=null&&y.writable)){p===void 0&&(p=d(()=>{var S=x?ai(f[m]):Xi,T=X(S,s);return Le&&Nr(T,Zs(a,m)),T}),i.set(m,p));var w=r(p);if(w===Xi)return!1}return x},set(f,m,p,x){var k;var w=i.get(m),y=m in f;if(o&&m==="length")for(var S=p;S<w.v;S+=1){var T=i.get(S+"");T!==void 0?O(T,Xi):S in f&&(T=d(()=>X(Xi,s)),i.set(S+"",T),Le&&Nr(T,Zs(a,S)))}if(w===void 0)(!y||(k=Xo(f,m))!=null&&k.writable)&&(w=d(()=>X(void 0,s)),O(w,ai(p)),i.set(m,w),Le&&Nr(w,Zs(a,m)));else{y=w.v!==Xi;var E=d(()=>ai(p));O(w,E)}var R=Reflect.getOwnPropertyDescriptor(f,m);if(R!=null&&R.set&&R.set.call(x,p),!y){if(o&&typeof m=="string"){var I=i.get("length"),M=Number(m);Number.isInteger(M)&&M>=I.v&&O(I,M+1)}pp(n)}return!0},ownKeys(f){r(n);var m=Reflect.ownKeys(f).filter(w=>{var y=i.get(w);return y===void 0||y.v!==Xi});for(var[p,x]of i)x.v!==Xi&&!(p in f)&&m.push(p);return m},setPrototypeOf(){ng()}})}function Zs(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:H0.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function pp(t,e=1){O(t,t.v+e)}function Wa(t){try{if(t!==null&&typeof t=="object"&&Do in t)return t[Do]}catch(e){}return t}function fp(t,e){return Object.is(Wa(t),Wa(e))}function Or(t){var e=2050,i=It!==null&&(It.f&2)!==0?It:null;vt===null||i!==null&&(i.f&256)!==0?e|=256:vt.f|=1048576;let o={ctx:Bt,deps:null,effects:null,equals:$c,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:vt};return Le&&ts&&(o.created=us("CreatedAt")),o}function g(t){let e=Or(t);return Sc(e),e}function Br(t){let e=Or(t);return e.equals=Ha,e}function xc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)zi(e[i])}}var mp=[];function F0(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function hp(t){var e,i=vt;if(ao(F0(t)),Le){let o=Xs;vp(new Set);try{mp.includes(t)&&Qv(),mp.push(t),xc(t),e=wc(t)}finally{ao(i),vp(o),mp.pop()}}else try{xc(t),e=wc(t)}finally{ao(i)}return e}function _p(t){var e=hp(t);if(t.equals(e)||(t.v=e,t.wv=Ll()),!ps){var i=(fs||(t.f&256)!==0)&&t.deps!==null?4096:1024;gn(t,i)}}var Xs=new Set,Ka=new Map;function vp(t){Xs=t}function yr(t,e){var i={f:0,v:t,reactions:null,equals:$c,rv:0,wv:0};return Le&&ts&&(i.created=e!=null?e:us("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function X(t,e){let i=yr(t,e);return Sc(i),i}function os(t,e=!1,i=!0){var n,s;let o=yr(t);return e||(o.equals=Ha),es&&i&&Bt!==null&&Bt.l!==null&&((s=(n=Bt.l).s)!=null?s:n.s=[]).push(o),o}function O(t,e,i=!1){var n;It!==null&&(!ar||(It.f&262144)!==0)&&is()&&(It.f&262162)!==0&&!((n=Uo)!=null&&n[1].includes(t)&&Uo[0]===It)&&rg();let o=i?ai(e):e;return Le&&yc(o,t.label),qa(t,o)}function qa(t,e){if(!t.equals(e)){var i=t.v;if(ps?Ka.set(t,e):Ka.set(t,i),t.v=e,Le&&ts&&(t.updated=us("UpdatedAt"),vt!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&hp(t),gn(t,(t.f&256)===0?1024:4096)),t.wv=Ll(),lg(t,2048),is()&&vt!==null&&(vt.f&1024)!==0&&(vt.f&96)===0&&(sr===null?dg([t]):sr.push(t)),Le&&Xs.size>0){let o=Array.from(Xs);for(let n of o)(n.f&1024)!==0&&gn(n,4096),ea(n)&&Qa(n);Xs.clear()}}return e}function lg(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===vt)){if(Le&&(d&262144)!==0){Xs.add(l);continue}gn(l,e),(d&1280)!==0&&((d&2)!==0?lg(l,4096):Rl(l))}}}var Ga="font-weight: bold",ja="font-weight: normal";function cg(t,e,i){Le?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 Nt=null;function Tl(t){Nt=t}var er=null;function El(t){er=t}function za(t){return op("getContext").get(t)}function Wa(t,e){return op("setContext").set(t,e),e}function Il(){return op("getAllContexts")}function U(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:br(!1)}),zo(()=>{o.d=!0}),Le&&(Nt.function=i,er=i)}function z(t){var l,d;let e=Nt;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=ht,o=Et;e.e=null;try{for(var n=0;n<a.length;n++){var s=a[n];co(s.effect),Di(s.reaction),ko(s.fn)}}finally{co(i),Di(o)}}Nt=e.p,Le&&(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 op(t){var e;return Nt===null&&Ua(t),(e=Nt.c)!=null?e:Nt.c=new Map(L_(Nt)||void 0)}function L_(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var V_=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function ai(t){if(typeof t!="object"||t===null||Uo in t)return t;let e=Ys(t);if(e!==Ju&&e!==Lv)return t;var i=new Map,o=Xn(t),n=Y(0),s=Le&&ts?us("CreatedAt"):null,l=Et,d=f=>{var v=Et;Di(l);var p=f();return Di(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,Zs(a,v))}return new Proxy(t,{defineProperty(f,v,p){(!("value"in p)||p.configurable===!1||p.enumerable===!1||p.writable===!1)&&Qv();var x=i.get(v);return x===void 0?x=d(()=>{var w=Y(p.value,s);return i.set(v,w),Le&&typeof v=="string"&&Nr(w,Zs(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(Xi,s));i.set(v,y),np(n),Le&&Nr(y,Zs(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,Xi),np(n)}return!0},get(f,v,p){var S;if(v===Uo)return t;if(Le&&v===fc)return u;var x=i.get(v),w=v in f;if(x===void 0&&(!w||(S=en(f,v))!=null&&S.writable)&&(x=d(()=>{var T=ai(w?f[v]:Xi),E=Y(T,s);return Le&&Nr(E,Zs(a,v)),E}),i.set(v,x)),x!==void 0){var y=r(x);return y===Xi?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!==Xi)return{enumerable:!0,configurable:!0,value:y,writable:!0}}return p},has(f,v){var y;if(v===Uo)return!0;var p=i.get(v),x=p!==void 0&&p.v!==Xi||Reflect.has(f,v);if(p!==void 0||ht!==null&&(!x||(y=en(f,v))!=null&&y.writable)){p===void 0&&(p=d(()=>{var S=x?ai(f[v]):Xi,T=Y(S,s);return Le&&Nr(T,Zs(a,v)),T}),i.set(v,p));var w=r(p);if(w===Xi)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,Xi):S in f&&(T=d(()=>Y(Xi,s)),i.set(S+"",T),Le&&Nr(T,Zs(a,S)))}if(w===void 0)(!y||(R=en(f,v))!=null&&R.writable)&&(w=d(()=>Y(void 0,s)),O(w,ai(p)),i.set(v,w),Le&&Nr(w,Zs(a,v)));else{y=w.v!==Xi;var E=d(()=>ai(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)}np(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!==Xi});for(var[p,x]of i)x.v!==Xi&&!(p in f)&&v.push(p);return v},setPrototypeOf(){Gv()}})}function Zs(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:V_.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function np(t,e=1){O(t,t.v+e)}function Ka(t){try{if(t!==null&&typeof t=="object"&&Uo in t)return t[Uo]}catch(e){}return t}function rp(t,e){return Object.is(Ka(t),Ka(e))}function Or(t){var e=2050,i=Et!==null&&(Et.f&2)!==0?Et:null;ht===null||i!==null&&(i.f&256)!==0?e|=256:ht.f|=1048576;let o={ctx:Nt,deps:null,effects:null,equals:vc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:ht};return Le&&ts&&(o.created=us("CreatedAt")),o}function g(t){let e=Or(t);return bc(e),e}function Br(t){let e=Or(t);return e.equals=Fa,e}function hc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Hi(e[i])}}var sp=[];function R_(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function dp(t){var e,i=ht;if(co(R_(t)),Le){let o=Xs;ap(new Set);try{sp.includes(t)&&Ov(),sp.push(t),hc(t),e=_c(t)}finally{co(i),ap(o),sp.pop()}}else try{hc(t),e=_c(t)}finally{co(i)}return e}function cp(t){var e=dp(t);if(t.equals(e)||(t.v=e,t.wv=kl()),!ps){var i=(fs||(t.f&256)!==0)&&t.deps!==null?4096:1024;_n(t,i)}}var Xs=new Set,qa=new Map;function ap(t){Xs=t}function br(t,e){var i={f:0,v:t,reactions:null,equals:vc,rv:0,wv:0};return Le&&ts&&(i.created=e!=null?e:us("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function Y(t,e){let i=br(t,e);return bc(i),i}function os(t,e=!1,i=!0){var n,s;let o=br(t);return e||(o.equals=Fa),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;Et!==null&&(!or||(Et.f&262144)!==0)&&is()&&(Et.f&262162)!==0&&!((n=Ko)!=null&&n[1].includes(t)&&Ko[0]===Et)&&jv();let o=i?ai(e):e;return Le&&gc(o,t.label),Qa(t,o)}function Qa(t,e){if(!t.equals(e)){var i=t.v;if(ps?qa.set(t,e):qa.set(t,i),t.v=e,Le&&ts&&(t.updated=us("UpdatedAt"),ht!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&dp(t),_n(t,(t.f&256)===0?1024:4096)),t.wv=kl(),Xv(t,2048),is()&&ht!==null&&(ht.f&1024)!==0&&(ht.f&96)===0&&(ir===null?Jv([t]):ir.push(t)),Le&&Xs.size>0){let o=Array.from(Xs);for(let n of o)(n.f&1024)!==0&&_n(n,4096),ea(n)&&Ga(n);Xs.clear()}}return e}function Xv(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===ht)){if(Le&&(d&262144)!==0){Xs.add(l);continue}_n(l,e),(d&1280)!==0&&((d&2)!==0?Xv(l,4096):Al(l))}}}var ja="font-weight: bold",Ya="font-weight: normal";function eg(t,e,i){Le?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`,Ga,ja):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function ug(t){Le?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 tg(t){Le?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`,Ga,ja):console.warn("https://svelte.dev/e/hydration_html_changed")}function Vs(t){Le?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 Ls(t){Le?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`,Ga,ja):console.warn("https://svelte.dev/e/hydration_mismatch")}function pg(){Le?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 ig(){Le?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`,Ga,ja):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function fg(){Le?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",Ga,ja):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Cc(t){Le?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 og(){Le?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 $c(t){Le?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`,Ga,ja):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Ze=!1;function lo(t){Ze=t}var gt;function $i(t){if(t===null)throw Vs(),Jr;return gt=t}function Wi(){return $i(zo(gt))}function h(t){if(Ze){if(zo(gt)!==null)throw Vs(),Jr;gt=t}}function we(t=1){if(Ze){for(var e=t,i=gt;e--;)i=zo(i);gt=i}}function ta(){for(var t=0,e=gt;;){if(e.nodeType===or){var i=e.data;if(i===js){if(t===0)return e;t-=1}else(i===Ps||i===As)&&(t+=1)}var o=zo(e);e.remove(),e=o}}function Tc(t){if(!t||t.nodeType!==or)throw Vs(),Jr;return t.data}function mg(){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(Wa(this[a])===s){Cc("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(Wa(this[a])===s){Cc("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(Wa(this[a])===s){Cc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var ia,vg,Nl,gg,hg;function Ec(){if(ia===void 0){ia=window,vg=document,Nl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;gg=Xo(e,"firstChild").get,hg=Xo(e,"nextSibling").get,lp(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),lp(i)&&(i.__t=void 0),Le&&(t.__svelte_meta=null,mg())}}function hn(t=""){return document.createTextNode(t)}function wi(t){return gg.call(t)}function zo(t){return hg.call(t)}function _(t,e){if(!Ze)return wi(t);var i=wi(gt);if(i===null)i=gt.appendChild(hn());else if(e&&i.nodeType!==Ba){var o=hn();return i==null||i.before(o),$i(o),o}return $i(i),i}function he(t,e){var n,s;if(!Ze){var i=wi(t);return i.nodeType===8&&i.data===""?zo(i):i}if(e&&((n=gt)==null?void 0:n.nodeType)!==Ba){var o=hn();return(s=gt)==null||s.before(o),$i(o),o}return gt}function P(t,e=1,i=!1){let o=Ze?gt:t;for(var n;e--;)n=o,o=zo(o);if(!Ze)return o;if(i&&(o==null?void 0:o.nodeType)!==Ba){var s=hn();return o===null?n==null||n.after(s):o.before(s),$i(s),s}return $i(o),o}function Ol(t){t.textContent=""}function yp(t){vt===null&&It===null&&Yv(t),It!==null&&(It.f&256)!==0&&vt===null&&jv(),ps&&Gv(t)}function U0(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function oa(t,e,i,o=!0){var a;var n=vt;if(Le)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(Le&&(s.component_function=nr),i)try{Qa(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&&U0(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=oa(8,null,!1);return gn(e,1024),e.teardown=t,e}function Ge(t){var n;yp("$effect");var e=vt!==null&&(vt.f&32)!==0&&Bt!==null&&!Bt.m;if(Le&&so(t,"name",{value:"$effect"}),e){var i=Bt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:vt,reaction:It})}else{var o=So(t);return o}}function Hl(t){return yp("$effect.pre"),Le&&so(t,"name",{value:"$effect.pre"}),Wo(t)}function Pc(t){let e=oa(64,t,!0);return()=>{zi(e)}}function bg(t){let e=oa(64,t,!0);return(i={})=>new Promise(o=>{i.outro?On(e,()=>{zi(e),o(void 0)}):(zi(e),o(void 0))})}function So(t){return oa(4,t,!1)}function Wo(t){return oa(8,t,!0)}function B(t,e=[],i=Or){if(Le)return Wo(()=>{var n=vt,s=()=>t(...l.map(r));so(n.fn,"name",{value:"{expression}"}),so(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 oa(24|e,t,!0)}function Li(t,e=!0){return oa(40,t,!0,e)}function xp(t){var e=t.teardown;if(e!==null){let i=ps,o=It;bp(!0),Ui(null);try{e.call(null)}finally{bp(i),Ui(o)}}}function wp(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 $g(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&&(Sp(t.nodes_start,t.nodes_end),i=!0),wp(t,e&&!i),Fl(t,0),gn(t,16384);var o=t.transitions;if(o!==null)for(let s of o)s.stop();xp(t);var n=t.parent;n!==null&&n.first!==null&&Cp(t),Le&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Sp(t,e){for(;t!==null;){var i=t===e?null:zo(t);t.remove(),t=i}}function Cp(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function On(t,e){var i=[];Ac(t,i,!0),Tp(i,()=>{zi(t),e&&e()})}function Tp(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function Ac(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;Ac(o,e,s?i:!1),o=n}}}function vs(t){yg(t,!0)}function yg(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;yg(i,n?e:!1),i=o}if(t.transitions!==null)for(let s of t.transitions)(s.is_global||e)&&s.in()}}var Ul=[],Ep=[];function xg(){var t=Ul;Ul=[],Ls(t)}function z0(){var t=Ep;Ep=[],Ls(t)}function _n(t){Ul.length===0&&queueMicrotask(xg),Ul.push(t)}function wg(){Ul.length>0&&xg(),Ep.length>0&&z0()}function Cg(t){var e=vt;if(Le&&t instanceof Error&&W0(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 Sg=new WeakSet;function W0(t,e){var l,d;if(Sg.has(t))return;Sg.add(t);let i=Xo(t,"message");if(!(i&&!i.configurable)){for(var o=Nl?" ":" ",n=`
37
+ https://svelte.dev/e/state_proxy_equality_mismatch`,ja,Ya):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Je=!1;function uo(t){Je=t}var _t;function xi(t){if(t===null)throw Ls(),Jr;return _t=t}function Fi(){return xi(qo(_t))}function h(t){if(Je){if(qo(_t)!==null)throw Ls(),Jr;_t=t}}function Te(t=1){if(Je){for(var e=t,i=_t;e--;)i=qo(i);_t=i}}function ta(){for(var t=0,e=_t;;){if(e.nodeType===Jn){var i=e.data;if(i===js){if(t===0)return e;t-=1}else(i===ks||i===Ps)&&(t+=1)}var o=qo(e);e.remove(),e=o}}function yc(t){if(!t||t.nodeType!==Jn)throw Ls(),Jr;return t.data}function ng(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(s,l){let d=i.call(this,s,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(Ka(this[a])===s){$c("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){$c("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){$c("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var ia,rg,Ml,sg,ag;function xc(){if(ia===void 0){ia=window,rg=document,Ml=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;sg=en(e,"firstChild").get,ag=en(e,"nextSibling").get,ep(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),ep(i)&&(i.__t=void 0),Le&&(t.__svelte_meta=null,ng())}}function bn(t=""){return document.createTextNode(t)}function Si(t){return sg.call(t)}function qo(t){return ag.call(t)}function _(t,e){if(!Je)return Si(t);var i=Si(_t);if(i===null)i=_t.appendChild(bn());else if(e&&i.nodeType!==Da){var o=bn();return i==null||i.before(o),xi(o),o}return xi(i),i}function he(t,e){var n,s;if(!Je){var i=Si(t);return i.nodeType===8&&i.data===""?qo(i):i}if(e&&((n=_t)==null?void 0:n.nodeType)!==Da){var o=bn();return(s=_t)==null||s.before(o),xi(o),o}return _t}function P(t,e=1,i=!1){let o=Je?_t:t;for(var n;e--;)n=o,o=qo(o);if(!Je)return o;if(i&&(o==null?void 0:o.nodeType)!==Da){var s=bn();return o===null?n==null||n.after(s):o.before(s),xi(s),s}return xi(o),o}function Ll(t){t.textContent=""}function fp(t){ht===null&&Et===null&&Hv(t),Et!==null&&(Et.f&256)!==0&&ht===null&&Dv(),ps&&Bv(t)}function N_(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function oa(t,e,i,o=!0){var a;var n=ht;if(Le)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(Le&&(s.component_function=er),i)try{Ga(s),s.f|=32768}catch(u){throw Hi(s),u}else e!==null&&Al(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&&N_(s,n),Et!==null&&(Et.f&2)!==0)){var d=Et;((a=d.effects)!=null?a:d.effects=[]).push(s)}return s}function zo(t){let e=oa(8,null,!1);return _n(e,1024),e.teardown=t,e}function qe(t){var n;fp("$effect");var e=ht!==null&&(ht.f&32)!==0&&Nt!==null&&!Nt.m;if(Le&&lo(t,"name",{value:"$effect"}),e){var i=Nt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:ht,reaction:Et})}else{var o=ko(t);return o}}function Nl(t){return fp("$effect.pre"),Le&&lo(t,"name",{value:"$effect.pre"}),Qo(t)}function Cc(t){let e=oa(64,t,!0);return()=>{Hi(e)}}function dg(t){let e=oa(64,t,!0);return(i={})=>new Promise(o=>{i.outro?On(e,()=>{Hi(e),o(void 0)}):(Hi(e),o(void 0))})}function ko(t){return oa(4,t,!1)}function Qo(t){return oa(8,t,!0)}function B(t,e=[],i=Or){if(Le)return Qo(()=>{var n=ht,s=()=>t(...l.map(r));lo(n.fn,"name",{value:"{expression}"}),lo(s,"name",{value:"{expression}"});let l=e.map(i);Ui(s)});let o=e.map(i);return Ui(()=>t(...o.map(r)))}function Ui(t,e=0){return oa(24|e,t,!0)}function Mi(t,e=!0){return oa(40,t,!0,e)}function mp(t){var e=t.teardown;if(e!==null){let i=ps,o=Et;up(!0),Di(null);try{e.call(null)}finally{up(i),Di(o)}}}function vp(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:Hi(i,e),i=o}}function cg(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Hi(e),e=i}}function Hi(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(gp(t.nodes_start,t.nodes_end),i=!0),vp(t,e&&!i),Ol(t,0),_n(t,16384);var o=t.transitions;if(o!==null)for(let s of o)s.stop();mp(t);var n=t.parent;n!==null&&n.first!==null&&hp(t),Le&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function gp(t,e){for(;t!==null;){var i=t===e?null:qo(t);t.remove(),t=i}}function hp(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function On(t,e){var i=[];Tc(t,i,!0),_p(i,()=>{Hi(t),e&&e()})}function _p(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function Tc(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;Tc(o,e,s?i:!1),o=n}}}function vs(t){ug(t,!0)}function ug(t,e){if((t.f&8192)!==0){t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;ug(i,n?e:!1),i=o}if(t.transitions!==null)for(let s of t.transitions)(s.is_global||e)&&s.in()}}var Bl=[],bp=[];function pg(){var t=Bl;Bl=[],Ms(t)}function O_(){var t=bp;bp=[],Ms(t)}function $n(t){Bl.length===0&&queueMicrotask(pg),Bl.push(t)}function fg(){Bl.length>0&&pg(),bp.length>0&&O_()}function vg(t){var e=ht;if(Le&&t instanceof Error&&B_(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else Dl(t,e)}function Dl(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var mg=new WeakSet;function B_(t,e){var l,d;if(mg.has(t))return;mg.add(t);let i=en(t,"message");if(!(i&&!i.configurable)){for(var o=Ml?" ":" ",n=`
38
38
  ${o}in ${((l=e.fn)==null?void 0:l.name)||"<unknown>"}`,s=e.ctx;s!==null;)n+=`
39
- ${o}in ${(d=s.function)==null?void 0:d[Ln].split("/").pop()}`,s=s.p;so(t,"message",{value:t.message+`
39
+ ${o}in ${(d=s.function)==null?void 0:d[Ln].split("/").pop()}`,s=s.p;lo(t,"message",{value:t.message+`
40
40
  ${n}
41
- `}),t.stack&&so(t,"stack",{value:t.stack.split(`
41
+ `}),t.stack&&lo(t,"stack",{value:t.stack.split(`
42
42
  `).filter(a=>!a.includes("svelte/src/internal")).join(`
43
- `)})}}var na=!1,Ya=null,ra=!1,ps=!1;function bp(t){ps=t}var Wl=[],Kl=[],It=null,ar=!1;function Ui(t){It=t}var vt=null;function ao(t){vt=t}var Uo=null;function Sc(t){It!==null&&It.f&2097152&&(Uo===null?Uo=[It,[t]]:Uo[1].push(t))}var bn=null,lr=0,sr=null;function dg(t){sr=t}var Ig=1,Lc=0,fs=!1,Vc=null;function Ll(){return++Ig}function ea(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&&vt!==null&&!fs,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],ea(s)&&_p(s),s.wv>t.wv)return!0}(!o||vt!==null&&!fs)&&gn(t,1024)}return!1}function kg(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?kg(s,e,!1):e===s&&(i?gn(s,2048):(s.f&1024)!==0&&gn(s,4096),Rl(s)))}}function wc(t){var x,w;var e=bn,i=lr,o=sr,n=It,s=fs,l=Uo,d=Bt,a=ar,u=t.f;bn=null,lr=0,sr=null,fs=(u&256)!==0&&(ar||!ra||It===null),It=(u&96)===0?t:null,Uo=null,Pl(t.ctx),ar=!1,Lc++,t.f|=2097152;try{var f=(0,t.fn)(),m=t.deps;if(bn!==null){var p;if(Fl(t,lr),m!==null&&lr>0)for(m.length=lr+bn.length,p=0;p<bn.length;p++)m[lr+p]=bn[p];else t.deps=m=bn;if(!fs||(u&2)!==0&&t.reactions!==null)for(p=lr;p<m.length;p++)((w=(x=m[p]).reactions)!=null?w:x.reactions=[]).push(t)}else m!==null&&lr<m.length&&(Fl(t,lr),m.length=lr);if(is()&&sr!==null&&!ar&&m!==null&&(t.f&6146)===0)for(p=0;p<sr.length;p++)kg(sr[p],t);return n!==null&&n!==t&&(Lc++,sr!==null&&(o===null?o=sr:o.push(...sr))),f}catch(y){Cg(y)}finally{bn=e,lr=i,sr=o,It=n,fs=s,Uo=l,Pl(d),ar=a,t.f^=2097152}}function K0(t,e){let i=e.reactions;if(i!==null){var o=Uv.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&&(bn===null||!bn.includes(e))&&(gn(e,4096),(e.f&768)===0&&(e.f^=512),xc(e),Fl(e,0))}function Fl(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)K0(t,i[o])}function Qa(t){var e=t.f;if((e&16384)===0){gn(t,1024);var i=vt,o=ra;if(vt=t,ra=!0,Le){var n=nr;Al(t.component_function)}try{(e&16)!==0?$g(t):wp(t),xp(t);var s=wc(t);if(t.teardown=typeof s=="function"?s:null,t.wv=Ig,Le&&ts&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=Ll(),l.set_during_effect=!1);Le&&Kl.push(t)}finally{ra=o,vt=i,Le&&Al(n)}}}function Tg(){console.error("Last ten effects were: ",Kl.slice(-10).map(t=>t.fn)),Kl=[]}function q0(){try{Zv()}catch(t){if(Le&&so(t,"stack",{value:""}),Ya!==null)if(Le)try{zl(t,Ya)}catch(e){throw Tg(),e}else zl(t,Ya);else throw Le&&Tg(),t}}function kp(){var t=ra;try{var e=0;for(ra=!0;Wl.length>0;){e++>1e3&&q0();var i=Wl,o=i.length;Wl=[];for(var n=0;n<o;n++){var s=G0(i[n]);Q0(s)}Ka.clear()}}finally{na=!1,ra=t,Ya=null,Le&&(Kl=[])}}function Q0(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&ea(o)&&(Qa(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Cp(o):o.fn=null))}}function Rl(t){na||(na=!0,queueMicrotask(kp));for(var e=Ya=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 G0(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:ea(i)&&Qa(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 Za(t){var e;for(t&&(na=!0,kp(),na=!0,e=t());;){if(wg(),Wl.length===0)return na=!1,Ya=null,Le&&(Kl=[]),e;na=!0,kp()}}function Co(){return $t(this,null,function*(){yield Promise.resolve(),Za()})}function r(t){var e=t.f,i=(e&2)!==0;if(Vc!==null&&Vc.add(t),It!==null&&!ar){if(!(Uo!=null&&Uo[1].includes(t))||Uo[0]!==It){var o=It.deps;t.rv<Lc&&(t.rv=Lc,bn===null&&o!==null&&o[lr]===t?lr++:bn===null?bn=[t]:(!fs||!bn.includes(t))&&bn.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,ea(n)&&_p(n)),Le&&ts&&!ar&&kl!==null&&It!==null&&kl.reaction===It)if(t.trace)t.trace();else{var l=us("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 ps&&Ka.has(t)?Ka.get(t):t.v}function yt(t){var e=ar;try{return ar=!0,t()}finally{ar=e}}var j0=-7169;function gn(t,e){t.f=t.f&j0|e}function Nc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Do in t)Rc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Do in i&&Rc(i)}}}function Rc(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{Rc(t[o],e)}catch(n){}let i=Ys(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=hc(i);for(let n in o){let s=o[n].get;if(s)try{s.call(t)}catch(l){}}}}}function Pp(t,e){if(e){let i=document.body;t.autofocus=!0,_n(()=>{document.activeElement===i&&t.focus()})}}function ql(t){var e=It,i=vt;Ui(null),ao(null);try{return t()}finally{Ui(e),ao(i)}}var Ap=new Set,Oc=new Set;function sa(t){if(!Ze)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 Mp(t,e,i,o={}){function n(s){if(o.capture||Xa.call(e,s),!s.cancelBubble)return ql(()=>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=Mp(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Ho(()=>{e.removeEventListener(t,l,s)})}function at(t){for(var e=0;e<t.length;e++)Ap.add(t[e]);for(var i of Oc)i(t)}function Xa(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){so(t,"currentTarget",{configurable:!0,get(){return s||i}});var f=It,m=vt;Ui(null),ao(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(ir(y)){var[S,...T]=y;S.apply(s,[t,...T])}else y.call(s,t)}catch(R){p?x.push(R):p=R}if(t.cancelBubble||w===e||w===null)break;s=w}if(p){for(let R of x)queueMicrotask(()=>{throw R});throw p}}finally{t.__root=e,delete t.currentTarget,Ui(f),ao(m)}}}var Z0;function Pg(){Z0=void 0}function Ja(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function To(t,e){var i=vt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function A(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,s=!t.startsWith("<!>");return()=>{if(Ze)return To(gt,null),gt;n===void 0&&(n=Ja(s?t:"<!>"+t),i||(n=wi(n)));var l=o||Nl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=wi(l),a=l.lastChild;To(d,a)}else To(l,l);return l}}function e_(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(Ze)return To(gt,null),gt;if(!l){var d=Ja(s),a=wi(d);if(n)for(l=document.createDocumentFragment();wi(a);)l.appendChild(wi(a));else l=wi(a)}var u=l.cloneNode(!0);if(n){var f=wi(u),m=u.lastChild;To(f,m)}else To(u,u);return u}}function Se(t,e){return e_(t,e,"svg")}function ns(t=""){if(!Ze){var e=hn(t+"");return To(e,e),e}var i=gt;return i.nodeType!==Ba&&(i.before(i=hn()),$i(i)),To(i,i),i}function Qe(){if(Ze)return To(gt,null),gt;var t=document.createDocumentFragment(),e=document.createComment(""),i=hn();return t.append(e,i),To(e,i),t}function $(t,e){if(Ze){vt.nodes_end=gt,Wi();return}t!==null&&t.before(e)}var t_=/\r/g;function Mg(t){t=t.replace(t_,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Lg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var i_=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Vg(t){return i_.includes(t)}var o_=["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 n_={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 Rg(t){var e;return t=t.toLowerCase(),(e=n_[t])!=null?e:t}var T9=[...o_,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var r_=["touchstart","touchmove"];function Ng(t){return r_.includes(t)}var s_=["$state","$state.raw","$derived","$derived.by"],E9=[...s_,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var a_=["textarea","script","style","title"];function Og(t){return a_.includes(t)}function Bc(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Ql=!0;function Dc(t){Ql=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 Bg(t,e)}function Vp(t,e){var l;Ec(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=Ze,n=gt;try{for(var s=wi(i);s&&(s.nodeType!==or||s.data!==Ps);)s=zo(s);if(!s)throw Jr;lo(!0),$i(s),Wi();let d=Bg(t,Ht(W({},e),{anchor:s}));if(gt===null||gt.nodeType!==or||gt.data!==js)throw Vs(),Jr;return lo(!1),d}catch(d){if(d===Jr)return e.recover===!1&&Xv(),Ec(),Ol(i),lo(!1),rs(t,e);throw d}finally{lo(o),$i(n),Pg()}}var el=new Map;function Bg(t,{target:e,anchor:i,props:o={},events:n,context:s,intro:l=!0}){Ec();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 w=Ng(x);e.addEventListener(x,Xa,{passive:w});var y=el.get(x);y===void 0?(document.addEventListener(x,Xa,{passive:w}),el.set(x,1)):el.set(x,y+1)}}};a(Il(Ap)),Oc.add(a);var u=void 0,f=bg(()=>{var m=i!=null?i:e.appendChild(hn());return Li(()=>{if(s){U({});var p=Bt;p.c=s}n&&(o.$$events=n),Ze&&To(m,null),Ql=l,u=t(m,o)||{},Ql=!0,Ze&&(vt.nodes_end=gt),s&&z()}),()=>{var w;for(var p of d){e.removeEventListener(p,Xa);var x=el.get(p);--x===0?(document.removeEventListener(p,Xa),el.delete(p)):el.set(p,x)}Oc.delete(a),m!==i&&((w=m.parentNode)==null||w.removeChild(m))}});return Lp.set(u,f),u}var Lp=new WeakMap;function aa(t,e){let i=Lp.get(t);return i?(Lp.delete(t),i(e)):(Le&&pg(),Promise.resolve())}function ye(t,e,...i){var o=t,n=ce,s;Ki(()=>{n!==(n=e())&&(s&&(zi(s),s=null),Le&&n==null&&Jv(),s=Li(()=>n(o,...i)))},65536),Ze&&(o=gt)}if(Le){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;ig(e)},set:o=>{i=o}})}};u_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var u_;function Rt(t){Bt===null&&Fa("onMount"),es&&Bt.l!==null?c_(Bt).m.push(t):Ge(()=>{let e=yt(t);if(typeof e=="function")return e})}function tn(t){Bt===null&&Fa("onDestroy"),Rt(()=>()=>yt(t))}function c_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var Dg=new Map;function Hg(t,e){var i=Dg.get(t);i||(i=new Set,Dg.set(t,i)),i.add(e)}function V(t,e,[i,o]=[0,0]){Ze&&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 w=!1;if(Ze&&o!==-1){if(i===0){let S=Tc(n);S===Ps?o=0:S===As?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=ta(),$i(n),lo(!1),w=!0,o=-1)}d?(s?vs(s):x&&(s=Li(()=>x(n))),l&&On(l,()=>{l=null})):(l?vs(l):x&&(l=Li(()=>x(n,[i+1,o]))),s&&On(s,()=>{s=null})),w&&lo(!0)};Ki(()=>{u=!1,e(f),u||m(null,null)},a),Ze&&(n=gt)}function la(t,e,i){Ze&&Wi();var o=t,n=Xi,s,l=is()?qv:Da;Ki(()=>{l(n,n=e())&&(s&&On(s),s=Li(()=>i(o)))}),Ze&&(o=gt)}var Ns=null;function Op(t){Ns=t}function Gl(t,e){return e}function m_(t,e,i,o){for(var n=[],s=e.length,l=0;l<s;l++)Ac(e[l].e,n,!0);var d=s>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;Ol(a),a.append(i),o.clear(),Rs(t,e[0].prev,e[s-1].next)}Tp(n,()=>{for(var u=0;u<s;u++){var f=e[u];d||(o.delete(f.k),Rs(t,f.prev,f.next)),zi(f.e,!d)}})}function Ei(t,e,i,o,n,s=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var u=t;l=Ze?$i(wi(u)):u.appendChild(hn())}Ze&&Wi();var f=null,m=!1,p=Br(()=>{var x=i();return ir(x)?x:x==null?[]:Il(x)});Ki(()=>{var x=r(p),w=x.length;if(m&&w===0)return;m=w===0;let y=!1;if(Ze){var S=Tc(l)===As;S!==(w===0)&&(l=ta(),$i(l),lo(!1),y=!0)}if(Ze){for(var T=null,E,R=0;R<w;R++){if(gt.nodeType===or&&gt.data===js){l=gt,y=!0,lo(!1);break}var I=x[R],M=o(I,R);E=zg(gt,d,T,null,I,M,R,n,e,i),d.items.set(M,E),T=E}w>0&&$i(ta())}Ze||v_(x,d,l,n,e,o,i),s!==null&&(w===0?f?vs(f):f=Li(()=>s(l)):f!==null&&On(f,()=>{f=null})),y&&lo(!0),r(p)}),Ze&&(l=gt)}function v_(t,e,i,o,n,s,l){var se,me,$e,ve;var d=(n&8)!==0,a=(n&3)!==0,u=t.length,f=e.items,m=e.first,p=m,x,w=null,y,S=[],T=[],E,R,I,M;if(d)for(M=0;M<u;M+=1)E=t[M],R=s(E,M),I=f.get(R),I!==void 0&&((se=I.a)==null||se.measure(),(y!=null?y:y=new Set).add(I));for(M=0;M<u;M+=1){if(E=t[M],R=s(E,M),I=f.get(R),I===void 0){var k=p?p.e.nodes_start:i;w=zg(k,e,w,w===null?e.first:w.next,E,R,M,o,n,l),f.set(R,w),S=[],T=[],p=w.next;continue}if(a&&g_(I,E,M,n),(I.e.f&8192)!==0&&(vs(I.e),d&&((me=I.a)==null||me.unfix(),(y!=null?y:y=new Set).delete(I))),I!==p){if(x!==void 0&&x.has(I)){if(S.length<T.length){var j=T[0],H;w=j.prev;var F=S[0],Q=S[S.length-1];for(H=0;H<S.length;H+=1)Fg(S[H],j,i);for(H=0;H<T.length;H+=1)x.delete(T[H]);Rs(e,F.prev,Q.next),Rs(e,w,F),Rs(e,Q,j),p=j,w=Q,M-=1,S=[],T=[]}else x.delete(I),Fg(I,p,i),Rs(e,I.prev,I.next),Rs(e,I,w===null?e.first:w.next),Rs(e,w,I),w=I;continue}for(S=[],T=[];p!==null&&p.k!==R;)(p.e.f&8192)===0&&(x!=null?x:x=new Set).add(p),T.push(p),p=p.next;if(p===null)continue;I=p}S.push(I),w=I,p=I.next}if(p!==null||x!==void 0){for(var Z=x===void 0?[]:Il(x);p!==null;)(p.e.f&8192)===0&&Z.push(p),p=p.next;var Y=Z.length;if(Y>0){var pe=(n&4)!==0&&u===0?i:null;if(d){for(M=0;M<Y;M+=1)($e=Z[M].a)==null||$e.measure();for(M=0;M<Y;M+=1)(ve=Z[M].a)==null||ve.fix()}m_(e,Z,pe,f)}}d&&_n(()=>{var Ae;if(y!==void 0)for(I of y)(Ae=I.a)==null||Ae.apply()}),vt.first=e.first&&e.first.e,vt.last=w&&w.e}function g_(t,e,i,o){(o&1)!==0&&qa(t.v,e),(o&2)!==0?qa(t.i,i):t.i=i}function zg(t,e,i,o,n,s,l,d,a,u){var f=Ns,m=(a&1)!==0,p=(a&16)===0,x=m?p?os(n,!1,!1):yr(n):n,w=(a&2)===0?l:yr(l);Le&&m&&(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};Ns=y;try{return y.e=Li(()=>d(t,x,w,u),Ze),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{Ns=f}}function Fg(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 Rs(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function h_(t,e,i){var s,l;if(!e||e===Mg(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=nr)!=null&&l[Ln]&&(o=`in ${nr[Ln]}`),ug(Bc(o))}function jl(t,e,i=!1,o=!1,n=!1){var s=t,l="";B(()=>{var x;var d=vt;if(l===(l=(x=e())!=null?x:"")){Ze&&Wi();return}if(d.nodes_start!==null&&(Sp(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(Ze){for(var a=gt.data,u=Wi(),f=u;u!==null&&(u.nodeType!==or||u.data!=="");)f=u,u=zo(u);if(u===null)throw Vs(),Jr;Le&&!n&&h_(u.parentNode,a,l),To(gt,f),s=$i(u);return}var m=l+"";i?m=`<svg>${m}</svg>`:o&&(m=`<math>${m}</math>`);var p=Ja(m);if((i||o)&&(p=wi(p)),To(wi(p),p.lastChild),i||o)for(;wi(p);)s.before(wi(p));else s.before(p)}})}function Ii(t,e,i){Ze&&Wi();var o=t,n,s;Ki(()=>{n!==(n=e())&&(s&&(On(s),s=null),n&&(s=Li(()=>i(o,n))))},65536),Ze&&(o=gt)}function da(t,e,i,o,n,s){var w;let l=Ze;Ze&&Wi();var d=Le&&s&&((w=Bt)==null?void 0:w.function[Ln]),a,u,f=null;Ze&&gt.nodeType===bc&&(f=gt,Wi());var m=Ze?gt:t,p,x=Ns;Ki(()=>{let y=e()||null;var S=n?n():i||y==="svg"?vc:null;if(y!==a){var T=Ns;Op(x),p&&(y===null?On(p,()=>{p=null,u=null}):y===u?vs(p):(zi(p),Dc(!1))),y&&y!==u&&(p=Li(()=>{if(f=Ze?f:S?document.createElementNS(S,y):document.createElement(y),Le&&s&&(f.__svelte_meta={loc:{file:d,line:s[0],column:s[1]}}),To(f,f),o){Ze&&Og(y)&&f.append(document.createComment(""));var E=Ze?wi(f):f.appendChild(hn());Ze&&(E===null?lo(!1):$i(E)),o(f,E)}vt.nodes_end=f,m.before(f)})),a=y,a&&(u=a),Dc(!0),Op(T)}},65536),l&&(lo(!0),$i(m))}var Dp;function Wg(t){return Dp=t.target,new Bp(t)}var gs,xr,Bp=class{constructor(e){ks(this,gs);ks(this,xr);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(Ht(W({},e.props||{}),{$$events:{}}),{get(d,a){var u;return r((u=i.get(a))!=null?u:o(a,Reflect.get(d,a)))},has(d,a){var u;return a===Oa?!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)}});Na(this,xr,(e.hydrate?Vp: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)&&Za(),Na(this,gs,n.$$events);for(let d of Object.keys(Mi(this,xr)))d==="$set"||d==="$destroy"||d==="$on"||so(this,d,{get(){return Mi(this,xr)[d]},set(a){Mi(this,xr)[d]=a},enumerable:!0});Mi(this,xr).$set=d=>{Object.assign(n,d)},Mi(this,xr).$destroy=()=>{aa(Mi(this,xr))}}$set(e){Mi(this,xr).$set(e)}$on(e,i){Mi(this,gs)[e]=Mi(this,gs)[e]||[];let o=(...n)=>i.call(this,...n);return Mi(this,gs)[e].push(o),()=>{Mi(this,gs)[e]=Mi(this,gs)[e].filter(n=>n!==o)}}$destroy(){Mi(this,xr).$destroy()}};gs=new WeakMap,xr=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=Dp)==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),Le&&Hg(e.hash,d)}})}function hs(t,e){var i=void 0,o;Ki(()=>{i!==(i=e())&&(o&&(zi(o),o=null),i&&(o=Li(()=>{So(()=>i(t))})))})}function Kg(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=Kg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function qg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Kg(t))&&(o&&(o+=" "),o+=e);return o}function Yl(t){return typeof t=="object"?qg(t):t!=null?t:""}var Qg=[...`
44
- \r\f\xA0\v\uFEFF`];function jg(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||Qg.includes(o[l-1]))&&(d===o.length||Qg.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function Gg(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 Hp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Yg(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(Hp)),n&&a.push(...Object.keys(n).map(Hp));var u=0,f=-1;let y=t.length;for(var m=0;m<y;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===y-1){if(f!==-1){var x=Hp(t.substring(u,f).trim());if(!a.includes(x)){p!==";"&&m++;var w=t.substring(u,m).trim();i+=" "+w+";"}}u=m+1,f=-1}}}}return o&&(i+=Gg(o)),n&&(i+=Gg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function oe(t,e,i,o,n,s){var l=t.__className;if(Ze||l!==i||l===void 0){var d=jg(i,o,s);(!Ze||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 Fp(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 nt(t,e,i,o){var n=t.__style;if(Ze||n!==e){var s=Yg(e,o);(!Ze||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}else o&&(Array.isArray(o)?(Fp(t,i==null?void 0:i[0],o[0]),Fp(t,i==null?void 0:i[1],o[1],"important")):Fp(t,i,o));return o}function Zl(t,e,i){if(t.multiple){if(e==null)return;if(!ir(e))return fg();for(var o of t.options)o.selected=e.includes(Zg(o));return}for(o of t.options){var n=Zg(o);if(fp(n,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Up(t){var e=new MutationObserver(()=>{Zl(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Ho(()=>{e.disconnect()})}function Zg(t){return"__value"in t?t.__value:t.value}var tl=Symbol("class"),il=Symbol("style"),eh=Symbol("is custom element"),th=Symbol("is html");function ih(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function ze(t,e,i,o){var n=nh(t);if(Ze&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||C_(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Kv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&rh(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function oh(t,e,i,o,n=!1){var I;var s=nh(t),l=s[eh],d=!s[th];let a=Ze&&l;a&&lo(!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[tl])&&(i.class=null),i[il]&&((I=i.style)!=null||(i.style=null));var p=rh(t);for(let M in i){let k=i[M];if(f&&M==="value"&&k==null){t.value=t.__value="",u[M]=k;continue}if(M==="class"){var x=t.namespaceURI==="http://www.w3.org/1999/xhtml";oe(t,x,k,o,e==null?void 0:e[tl],i[tl]),u[M]=k,u[tl]=i[tl];continue}if(M==="style"){nt(t,k,e==null?void 0:e[il],i[il]),u[M]=k,u[il]=i[il];continue}var w=u[M];if(!(k===w&&!(k===void 0&&t.hasAttribute(M)))){u[M]=k;var y=M[0]+M[1];if(y!=="$$")if(y==="on"){let j={},H="$$"+M,F=M.slice(2);var S=Vg(F);if(Lg(F)&&(F=F.slice(0,-7),j.capture=!0),!S&&w){if(k!=null)continue;t.removeEventListener(F,u[H],j),u[H]=null}if(k!=null)if(S)t[`__${F}`]=k,at([F]);else{let Q=function(Z){u[M].call(this,Z)};var R=Q;u[H]=Mp(F,t,Q,j)}else S&&(t[`__${F}`]=void 0)}else if(M==="style")ze(t,M,k);else if(M==="autofocus")Pp(t,!!k);else if(!l&&(M==="__value"||M==="value"&&k!=null))t.value=t.__value=k;else if(M==="selected"&&f)ih(t,k);else{var T=M;d||(T=Rg(T));var E=T==="defaultValue"||T==="defaultChecked";if(k==null&&!l&&!E)if(s[M]=null,T==="value"||T==="checked"){let j=t,H=e===void 0;if(T==="value"){let F=j.defaultValue;j.removeAttribute(T),j.defaultValue=F,j.value=j.__value=H?F:null}else{let F=j.defaultChecked;j.removeAttribute(T),j.defaultChecked=F,j.checked=H?F:!1}}else t.removeAttribute(M);else E||p.includes(T)&&(l||typeof k!="string")?t[T]=k:typeof k!="function"&&ze(t,T,k,n)}}}return a&&lo(!0),u}function ke(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(Ki(()=>{var p=e(...l.map(r)),x=oh(t,d,p,o,n);f&&u&&"value"in p&&Zl(t,p.value,!1);for(let y of Object.getOwnPropertySymbols(a))p[y]||zi(a[y]);for(let y of Object.getOwnPropertySymbols(p)){var w=p[y];y.description===rp&&(!d||w!==d[y])&&(a[y]&&zi(a[y]),a[y]=Li(()=>hs(t,()=>w))),x[y]=w}d=x}),u){var m=t;So(()=>{Zl(m,d.value),Up(m)})}f=!0}function nh(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[eh]:t.nodeName.includes("-"),[th]:t.namespaceURI===Bv}}var Xg=new Map;function rh(t){var e=Xg.get(t.nodeName);if(e)return e;Xg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=hc(o);for(var s in i)i[s].set&&e.push(s);o=Ys(o)}return e}function C_(t,e,i){var o;Le&&(e==="srcset"&&T_(t,i)||zp((o=t.getAttribute(e))!=null?o:"",i)||cg(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function zp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Jg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function T_(t,e){var i=Jg(t.srcset),o=Jg(e);return o.length===i.length&&o.every(([n,s],l)=>s===i[l][1]&&(zp(i[l][0],n)||zp(n,i[l][0])))}var E_=gc?()=>performance.now():()=>Date.now(),Fr={tick:t=>(gc?requestAnimationFrame:ce)(t),now:()=>E_(),tasks:new Set};function sh(){let t=Fr.now();Fr.tasks.forEach(e=>{e.c(t)||(Fr.tasks.delete(e),e.f())}),Fr.tasks.size!==0&&Fr.tick(sh)}function ah(t){let e;return Fr.tasks.size===0&&Fr.tick(sh),{promise:new Promise(i=>{Fr.tasks.add(e={c:t,f:i})}),abort(){Fr.tasks.delete(e)}}}function Hc(t,e){ql(()=>{t.dispatchEvent(new CustomEvent(e))})}function A_(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 lh(t){let e={},i=t.split(";");for(let o of i){let[n,s]=o.split(":");if(!n||s===void 0)break;let l=A_(n.trim());e[l]=s.trim()}return e}var M_=t=>t;function Kp(t,e,i,o){var R;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 w(){var k;var I=It,M=vt;Ui(null),ao(null);try{return u!=null?u:u=i()(e,(k=o==null?void 0:o())!=null?k:{},{direction:a})}finally{Ui(I),ao(M)}}var y={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(),Hc(e,"introstart"),p=Wp(e,w(),x,1,()=>{Hc(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,Hc(e,"outrostart"),x=Wp(e,w(),p,0,()=>{Hc(e,"outroend"),I==null||I()})},stop:()=>{p==null||p.abort(),x==null||x.abort()}},S=vt;if(((R=S.transitions)!=null?R:S.transitions=[]).push(y),n&&Ql){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&&So(()=>{yt(()=>y.in())})}}function Wp(t,e,i,o,n){var s=o===1;if(Ms(e)){var l,d=!1;return _n(()=>{if(!d){var S=e({direction:s?"in":"out"});l=Wp(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:ce,deactivate:ce,reset:ce,t:()=>o};let{delay:a=0,css:u,tick:f,easing:m=M_}=e;var p=[];if(s&&i===void 0&&(f&&f(0,1),u)){var x=lh(u(0,1));p.push(x,x)}var w=()=>1-o,y=t.animate(p,{duration:a,fill:"forwards"});return y.onfinish=()=>{var F;y.cancel();var S=(F=i==null?void 0:i.t())!=null?F:1-o;i==null||i.abort();var T=o-S,E=e.duration*Math.abs(T),R=[];if(E>0){var I=!1;if(u)for(var M=Math.ceil(E/16.666666666666668),k=0;k<=M;k+=1){var j=S+T*m(k/M),H=lh(u(j,1-j));R.push(H),I||(I=H.overflow==="hidden")}I&&(t.style.overflow="hidden"),w=()=>{var Q=y.currentTime;return S+T*m(Q/E)},f&&ah(()=>{if(y.playState!=="running")return!1;var Q=w();return f(Q,1-Q),!0})}y=t.animate(R,{duration:E,fill:"forwards"}),y.onfinish=()=>{w=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=ce)},deactivate:()=>{n=ce},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var Os,ol,Xl,Uc,dh,zc=class zc{constructor(e){ks(this,Uc);ks(this,Os,new WeakMap);ks(this,ol);ks(this,Xl);Na(this,Xl,e)}observe(e,i){var o=Mi(this,Os).get(e)||new Set;return o.add(i),Mi(this,Os).set(e,o),Nv(this,Uc,dh).call(this).observe(e,Mi(this,Xl)),()=>{var n=Mi(this,Os).get(e);n.delete(i),n.size===0&&(Mi(this,Os).delete(e),Mi(this,ol).unobserve(e))}}};Os=new WeakMap,ol=new WeakMap,Xl=new WeakMap,Uc=new WeakSet,dh=function(){var e;return(e=Mi(this,ol))!=null?e:Na(this,ol,new ResizeObserver(i=>{for(var o of i){zc.entries.set(o.target,o);for(var n of Mi(this,Os).get(o.target)||[])n(o)}}))},tr(zc,"entries",new WeakMap);var qp=zc;var L_=new qp({box:"border-box"});function dr(t,e,i){var o=L_.observe(t,()=>i(t[e]));So(()=>(yt(()=>i(t[e])),o))}function ch(t,e){return t===e||(t==null?void 0:t[Do])===e}function tt(t={},e,i,o){return So(()=>{var n,s;return Wo(()=>{n=s,s=(o==null?void 0:o())||[],yt(()=>{t!==i(...s)&&(e(t,...s),n&&ch(i(...n),t)&&e(null,...n))})}),()=>{_n(()=>{s&&ch(i(...s),t)&&e(null,...s)})}}),t}function Ur(t=!1){let e=Bt,i=e.l.u;if(!i)return;let o=()=>Nc(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&&Hl(()=>{uh(e,o),Ls(i.b)}),Ge(()=>{let n=yt(()=>i.m.map(Wv));return()=>{for(let s of n)typeof s=="function"&&s()}}),i.a.length&&Ge(()=>{uh(e,o),Ls(i.a)})}function uh(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),ce;let o=yt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var nl=[];function wr(t,e){return{subscribe:de(t,e).subscribe}}function de(t,e=ce){let i=null,o=new Set;function n(d){if(Da(t,d)&&(t=d,i)){let a=!nl.length;for(let u of o)u[1](),nl.push(u,t);if(a){for(let u=0;u<nl.length;u+=2)nl[u][0](nl[u+1]);nl.length=0}}}function s(d){n(d(t))}function l(d,a=ce){let u=[d,a];return o.add(u),o.size===1&&(i=e(n,s)||ce),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:n,update:s,subscribe:l}}function Si(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 wr(i,(l,d)=>{let a=!1,u=[],f=0,m=ce,p=()=>{if(f)return;m();let w=e(o?u[0]:u,l,d);s?l(w):m=typeof w=="function"?w:ce},x=n.map((w,y)=>Jl(w,S=>{u[y]=S,f&=~(1<<y),a&&p()},()=>{f|=1<<y}));return a=!0,p(),function(){Ls(x),m(),a=!1}})}function xe(t){let e;return Jl(t,i=>e=i)(),e}var Wc=!1,Qp=Symbol();function C(t,e,i){var s;let o=(s=i[e])!=null?s:i[e]={store:null,source:os(void 0),unsubscribe:ce};if(o.store!==t&&!(Qp in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=ce;else{var n=!0;o.unsubscribe=Jl(t,l=>{n?o.source.v=l:O(o.source,l)}),n=!1}return t&&Qp in i?xe(t):r(o.source)}function Fe(){let t={};function e(){Ho(()=>{for(var i in t)t[i].unsubscribe();so(t,Qp,{enumerable:!1,value:!0})})}return[t,e]}function Gp(t){var e=Wc;try{return Wc=!1,[t(),Wc]}finally{Wc=e}}var H_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Le&&tg(`${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 Be(t,e,i){return new Proxy(Le?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},H_)}var F_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ms(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let n=t.props[o];Ms(n)&&(n=n());let s=Xo(n,e);if(s&&s.set)return s.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ms(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Xo(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Do||e===Oa)return!1;for(let i of t.props)if(Ms(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Ms(i)&&(i=i()),!!i){for(let o in i)e.includes(o)||e.push(o);for(let o of Object.getOwnPropertySymbols(i))e.includes(o)||e.push(o)}return e}};function _s(...t){return new Proxy({props:t},F_)}function ph(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function v(t,e,i,o){var j,H;var n=(i&1)!==0,s=!es||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,u;l?[u,a]=Gp(()=>t[e]):u=t[e];var f=Do in t||Oa in t,m=l&&((H=(j=Xo(t,e))==null?void 0:j.set)!=null?H:f&&e in t&&(F=>t[e]=F))||void 0,p=o,x=!0,w=!1,y=()=>(w=!0,x&&(x=!1,d?p=yt(o):p=o),p);u===void 0&&o!==void 0&&(m&&s&&eg(e),u=y(),m&&m(u));var S;if(s)S=()=>{var F=t[e];return F===void 0?y():(x=!0,w=!1,F)};else{var T=(n?Or:Br)(()=>t[e]);T.f|=131072,S=()=>{var F=r(T);return F!==void 0&&(p=void 0),F===void 0?p:F}}if((i&4)===0&&s)return S;if(m){var E=t.$$legacy;return function(F,Q){return arguments.length>0?((!s||!Q||E||a)&&m(Q?S():F),F):S()}}var R=!1,I=!1,M=os(u),k=Or(()=>{var F=S(),Q=r(M);return R?(R=!1,I=!0,Q):(I=!1,M.v=F)});return l&&r(k),n||(k.equals=Ha),function(F,Q){if(Vc!==null&&(R=I,S(),r(M)),arguments.length>0){let Z=Q?r(k):s&&l?ai(F):F;if(!k.equals(Z)){if(R=!0,O(M,Z),w&&p!==void 0&&(p=Z),ph(k))return F;yt(()=>r(k))}return F}return ph(k)?k.v:r(k)}}var U_;typeof HTMLElement=="function"&&(U_=class extends HTMLElement{constructor(e,i,o){super();tr(this,"$$ctor");tr(this,"$$s");tr(this,"$$c");tr(this,"$$cn",!1);tr(this,"$$d",{});tr(this,"$$r",!1);tr(this,"$$p_d",{});tr(this,"$$l",{});tr(this,"$$l_u",new Map);tr(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 $t(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=z_(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]=jp(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=Wg({component:this.$$ctor,target:this.shadowRoot||this,props:Ht(W({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=Pc(()=>{Wo(()=>{var s;this.$$r=!0;for(let l of sp(this.$$c)){if(!((s=this.$$p_d[l])!=null&&s.reflect))continue;this.$$d[l]=this.$$c[l];let d=jp(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]=jp(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 sp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function jp(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 z_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var fh="5";var mh,vh,gh;typeof window!="undefined"&&((gh=(vh=(mh=window.__svelte)!=null?mh:window.__svelte={}).v)!=null?gh:vh.v=new Set).add(fh);import{areValidLiveRecordSources as N5,clientChecker as gv}from"@vkontakte/videoplayer-core/es2015";import"@vkontakte/videoplayer-core/es2015";import{noop as _0,safeStorage as O5,throttleFn as B5}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as D5}from"@vkontakte/videoplayer-statistics/es2015";import{InterfaceLanguage as W_,fillWithDefault as K_,VideoQuality as hh}from"@vkontakte/videoplayer-shared/es2015";var q_={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:W_.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:hh.Q_480P,highQualityLimit:hh.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,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,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"},_h=t=>K_(t,q_),bh=t=>za("ui-config",t),kt=()=>Ua("ui-config");var ed="vk_player_debug_panel_opened";var $h="videoplayer",yh="videoplayer";var ss={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},xh=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),wh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Sh=new Set(["ShiftRight","ShiftLeft"]);var Ch=["TIMELINE"],td=[...Ch,"GRAPH_BUTTON"],Yp=[...Ch,"PLAY_BUTTON"],id=[...td,"PLAY_BUTTON"];var as=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(as||{}),ua={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Th,VERSION as Q_}from"@vkontakte/videoplayer-shared/es2015";import{VERSION as G_}from"@vkontakte/videoplayer-core/es2015";import{VERSION as j_}from"@vkontakte/videoplayer-statistics/es2015";var Kc="prod",rl="1.1.72-dev.752fa0a9.0";var pa=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Eh=Symbol("storeContext"),Ih=Symbol("microStoresContext"),kh=(t,e)=>{za(Eh,t),za(Ih,e),Kc==="dev"&&(window.app={store:t,microStores:e})},Ee=()=>{let t=Ua(Eh);return Th(t,"Store context is empty!"),t},fo=()=>{let t=Ua(Ih);return Th(t,"MicroStores context is empty!"),t},oi=(t,e)=>Qc(t,t.getValue(),e),Qc=(t,e,i)=>wr(e,o=>{let n=t.subscribe(s=>{o(s),i==null||i(s)});return()=>n.unsubscribe()}),Ph=(t,e,i,o)=>{var k,j,H,F,Q,Z,Y,pe;let n=t.info,{width:s,height:l}=xe(i.ui.playerSize),d=(j=(k=n.throughputEstimation$.getValue())==null?void 0:k.toFixed(0))!=null?j:0,a=(F=(H=n.rttEstimation$.getValue())==null?void 0:H.toFixed(0))!=null?F:0,u=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${rl} (core: ${G_}, stat: ${j_}, shared: ${Q_})`,m=xe(i.state.errorLog$),p=m.length?`
45
- `+m.map((se,me)=>{var ae;let $e=`${me}) Type: ${se.id}
46
- `,ve=`Message: ${se.message} (${se.thrown})
47
- `,Ae=`Trace: ${(ae=se.thrown)==null?void 0:ae.stack}
48
- `;return $e+ve+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: ${(Q=w==null?void 0:w.codec)!=null?Q:""}`+(w!=null&&w.hdr?" (HDR)":"")),y&&S.push(`Audio: ${(Z=y==null?void 0:y.codec)!=null?Z:""}`+(y!=null&&y.language?` (${y.language})`:""));let T=n.currentQuality$.getValue(),E="";if(T){let se=n.availableQualitiesFps$.getValue()[T];E=se?`${se}fps`:""}let R=(pe=(Y=n.currentBuffer$.getValue())==null?void 0:Y.end)!=null?pe:0,I=Math.max(R-xe(i.state.positionExact$),0),M={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:`${I}s`,State:`${xe(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${s}x${l}`,URL:window.location.href,Errors:p};return Object.entries(M).filter(([se,me])=>me!==void 0).map(([se,me])=>`${se}: ${me}`).join(`
50
- `)},Ah=(t,e,i)=>{var j,H,F,Q;let o=t.info,{width:n,height:s}=xe(i.ui.playerSize),l={version:rl,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(),m=o.isLive$.getValue(),p=o.liveBufferTime$.getValue();f&&(m&&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 R=(j=t.info.currentVideoStream$.getValue())==null?void 0:j.codec;R&&(l.videoCodec=R);let I=(H=t.info.currentAudioStream$.getValue())==null?void 0:H.codec;I&&(l.audioCodec=I),((F=t.info.currentVideoStream$.getValue())==null?void 0:F.hdr)&&(l.hdr=!0);let k=(Q=t.info.currentAudioStream$.getValue())==null?void 0:Q.language;return k&&(l.audioLanguage=k),l},Mh=(t,e)=>pa(t,e,"mp4"),Lh=t=>!t.type,Vh=t=>!!t.type,Rh=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},qc=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return $t(this,null,function*(){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=yield fetch(e,{signal:this.destroyController.signal});if(i.ok)return yield i.text();throw i}finally{this.pendingDownloads.delete(e)}})}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};import{isNullable as ef,safeStorage as Vi}from"@vkontakte/videoplayer-shared/es2015";import"@vkontakte/videoplayer-core/es2015";var Nh="vk_player_prefer_traffic_saving_enabled",Oh="vk_player_preferred_volume",Bh="vk_player_prefer_volume_mute",tf="vk_player_preferred_quality",Zp="vk_player_preferred_default_quality_settings",Xp="vk_player_preferred_quality_settings_by_video",Dh="vk_player_preferred_stream_language",Hh="vk_player_preferred_rate",Fh="vk_player_preferred_autoplay_next",Jp="vk_player_preferred_subtitles_language",Uh="vk_player_user_video_prefs",zh=t=>t>1?1:t<0?0:t,of=t=>Vi.set(Oh,zh(t).toString(10)),Gc=()=>{let t=Vi.get(Oh);return ef(t)?void 0:zh(parseFloat(t))},nf=(t,e)=>Vi.set(tf,JSON.stringify({videoId:t,value:e})),jc=()=>Vi.remove(tf),rf=t=>{let e=Vi.get(tf);if(ef(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){jc();return}return o},sf=(t,e)=>{e?Vi.set(t,"true"):Vi.remove(t)},af=t=>Vi.get(t)==="true",lf=t=>sf(Bh,t),Wh=()=>af(Bh),od=t=>sf(Nh,t),df=()=>af(Nh),Kh=()=>Vi.get(Dh),cf=t=>Vi.set(Dh,t),uf=()=>Vi.get(Jp),pf=t=>{t?Vi.set(Jp,t):Vi.remove(Jp)},qh=t=>Vi.set(Hh,JSON.stringify({rate:t})),Qh=()=>{let t=Vi.get(Hh);if(ef(t))return;let{rate:e}=JSON.parse(t);return e},Gh=t=>sf(Fh,t),jh=()=>af(Fh),Y_=()=>{let t=f=>{Vi.set(Zp,JSON.stringify(f))},e=()=>{try{let f=Vi.get(Zp);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=Vi.get(Xp);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{Vi.set(Xp,JSON.stringify(f))},n=f=>{u(f);let m=f?i():null;if(m&&(m==null?void 0:m.videoId)===f)return Ht(W({},m),{appliesTo:"to-video"});m&&s();let p=e();return p?Ht(W({},p),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},s=()=>{Vi.remove(Xp)},l=()=>{Vi.remove(Zp)},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":nf(f,m.quality)}s(),l()}},u=f=>{let m=rf(f);if(m){o({type:"exact_quality",videoId:f,quality:m});return}df()&&t({type:"traffic_saving",videoId:f}),od(!1),jc()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:uf,savePreferredSubtitlesLanguage:pf}},{getPreferredQualitySettings:Yh,migrateSettingsToLegacyWay:Zh,savePreferredQualitySettings:Yc,savePreferredDefaultQualitySettings:eL,removePreferredQualitySettingsByVideo:tL,getPreferredDefaultQualitySettings:Zc}=Y_(),Z_=3,X_=3,Xh=()=>{let t=Vi.get(Uh);if(t)try{return JSON.parse(t)}catch(e){return null}return null},Xc=(t,e)=>{var n,s;let i=Xh();return(s=(n=i==null?void 0:i[t])==null?void 0:n[e])!=null?s:null},ff=(t,e,i)=>{var l,d,a;let o=(l=Xh())!=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=J_(o);Vi.set(Uh,JSON.stringify(s))};function J_(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(X_),e.reduce((o,[n])=>(o[n]=eb(t[n]),o),{})}function eb(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(Z_),Object.fromEntries(e)}import{PlaybackState as v0}from"@vkontakte/videoplayer-core/es2015";var tb=Se('<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=Be(e,["$$slots","$$events","$$legacy","children"]);var o=tb();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(2),h(o),$(t,o)}import{isNullable as t1,InterfaceLanguage as i1}from"@vkontakte/videoplayer-shared/es2015";var ib={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 na=!1,Za=null,ra=!1,ps=!1;function up(t){ps=t}var Hl=[],Fl=[],Et=null,or=!1;function Di(t){Et=t}var ht=null;function co(t){ht=t}var Ko=null;function bc(t){Et!==null&&Et.f&2097152&&(Ko===null?Ko=[Et,[t]]:Ko[1].push(t))}var yn=null,nr=0,ir=null;function Jv(t){ir=t}var _g=1,Ic=0,fs=!1,kc=null;function kl(){return++_g}function ea(t){var v,p;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var n,s,l=(e&512)!==0,d=o&&ht!==null&&!fs,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],ea(s)&&cp(s),s.wv>t.wv)return!0}(!o||ht!==null&&!fs)&&_n(t,1024)}return!1}function bg(t,e,i=!0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var s=o[n];Ko!=null&&Ko[1].includes(t)&&Ko[0]===Et||((s.f&2)!==0?bg(s,e,!1):e===s&&(i?_n(s,2048):(s.f&1024)!==0&&_n(s,4096),Al(s)))}}function _c(t){var x,w;var e=yn,i=nr,o=ir,n=Et,s=fs,l=Ko,d=Nt,a=or,u=t.f;yn=null,nr=0,ir=null,fs=(u&256)!==0&&(or||!ra||Et===null),Et=(u&96)===0?t:null,Ko=null,Tl(t.ctx),or=!1,Ic++,t.f|=2097152;try{var f=(0,t.fn)(),v=t.deps;if(yn!==null){var p;if(Ol(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(!fs||(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&&(Ol(t,nr),v.length=nr);if(is()&&ir!==null&&!or&&v!==null&&(t.f&6146)===0)for(p=0;p<ir.length;p++)bg(ir[p],t);return n!==null&&n!==t&&(Ic++,ir!==null&&(o===null?o=ir:o.push(...ir))),f}catch(y){vg(y)}finally{yn=e,nr=i,ir=o,Et=n,fs=s,Ko=l,Tl(d),or=a,t.f^=2097152}}function D_(t,e){let i=e.reactions;if(i!==null){var o=Mv.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),hc(e),Ol(e,0))}function Ol(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)D_(t,i[o])}function Ga(t){var e=t.f;if((e&16384)===0){_n(t,1024);var i=ht,o=ra;if(ht=t,ra=!0,Le){var n=er;El(t.component_function)}try{(e&16)!==0?cg(t):vp(t),mp(t);var s=_c(t);if(t.teardown=typeof s=="function"?s:null,t.wv=_g,Le&&ts&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=kl(),l.set_during_effect=!1);Le&&Fl.push(t)}finally{ra=o,ht=i,Le&&El(n)}}}function gg(){console.error("Last ten effects were: ",Fl.slice(-10).map(t=>t.fn)),Fl=[]}function H_(){try{Fv()}catch(t){if(Le&&lo(t,"stack",{value:""}),Za!==null)if(Le)try{Dl(t,Za)}catch(e){throw gg(),e}else Dl(t,Za);else throw Le&&gg(),t}}function yp(){var t=ra;try{var e=0;for(ra=!0;Hl.length>0;){e++>1e3&&H_();var i=Hl,o=i.length;Hl=[];for(var n=0;n<o;n++){var s=U_(i[n]);F_(s)}qa.clear()}}finally{na=!1,ra=t,Za=null,Le&&(Fl=[])}}function F_(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&ea(o)&&(Ga(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?hp(o):o.fn=null))}}function Al(t){na||(na=!0,queueMicrotask(yp));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}}Hl.push(e)}function U_(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:ea(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&&(na=!0,yp(),na=!0,e=t());;){if(fg(),Hl.length===0)return na=!1,Za=null,Le&&(Fl=[]),e;na=!0,yp()}}function Po(){return xt(this,null,function*(){yield Promise.resolve(),Xa()})}function r(t){var e=t.f,i=(e&2)!==0;if(kc!==null&&kc.add(t),Et!==null&&!or){if(!(Ko!=null&&Ko[1].includes(t))||Ko[0]!==Et){var o=Et.deps;t.rv<Ic&&(t.rv=Ic,yn===null&&o!==null&&o[nr]===t?nr++:yn===null?yn=[t]:(!fs||!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,ea(n)&&cp(n)),Le&&ts&&!or&&Cl!==null&&Et!==null&&Cl.reaction===Et)if(t.trace)t.trace();else{var l=us("TracedAt");if(l){var d=Cl.entries.get(t);d===void 0&&(d={traces:[]},Cl.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 ps&&qa.has(t)?qa.get(t):t.v}function wt(t){var e=or;try{return or=!0,t()}finally{or=e}}var z_=-7169;function _n(t,e){t.f=t.f&z_|e}function Ac(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Uo in t)Pc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Uo in i&&Pc(i)}}}function Pc(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{Pc(t[o],e)}catch(n){}let i=Ys(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=pc(i);for(let n in o){let s=o[n].get;if(s)try{s.call(t)}catch(l){}}}}}function xp(t,e){if(e){let i=document.body;t.autofocus=!0,$n(()=>{document.activeElement===i&&t.focus()})}}function Ul(t){var e=Et,i=ht;Di(null),co(null);try{return t()}finally{Di(e),co(i)}}var wp=new Set,Mc=new Set;function sa(t){if(!Je)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Sp(t,e,i,o={}){function n(s){if(o.capture||Ja.call(e,s),!s.cancelBubble)return Ul(()=>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=Sp(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&zo(()=>{e.removeEventListener(t,l,s)})}function dt(t){for(var e=0;e<t.length;e++)wp.add(t[e]);for(var i of Mc)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){lo(t,"currentTarget",{configurable:!0,get(){return s||i}});var f=Et,v=ht;Di(null),co(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,Di(f),co(v)}}}var K_;function $g(){K_=void 0}function el(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Ao(t,e){var i=ht;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(Je)return Ao(_t,null),_t;n===void 0&&(n=el(s?t:"<!>"+t),i||(n=Si(n)));var l=o||Ml?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=Si(l),a=l.lastChild;Ao(d,a)}else Ao(l,l);return l}}function G_(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(Je)return Ao(_t,null),_t;if(!l){var d=el(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;Ao(f,v)}else Ao(u,u);return u}}function Ee(t,e){return G_(t,e,"svg")}function ns(t=""){if(!Je){var e=bn(t+"");return Ao(e,e),e}var i=_t;return i.nodeType!==Da&&(i.before(i=bn()),xi(i)),Ao(i,i),i}function Ke(){if(Je)return Ao(_t,null),_t;var t=document.createDocumentFragment(),e=document.createComment(""),i=bn();return t.append(e,i),Ao(e,i),t}function $(t,e){if(Je){ht.nodes_end=_t,Fi();return}t!==null&&t.before(e)}var j_=/\r/g;function xg(t){t=t.replace(j_,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function wg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var Y_=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Sg(t){return Y_.includes(t)}var Z_=["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 X_={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 Cg(t){var e;return t=t.toLowerCase(),(e=X_[t])!=null?e:t}var h9=[...Z_,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var J_=["touchstart","touchmove"];function Tg(t){return J_.includes(t)}var e0=["$state","$state.raw","$derived","$derived.by"],_9=[...e0,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var t0=["textarea","script","style","title"];function Eg(t){return t0.includes(t)}function Lc(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var zl=!0;function Vc(t){zl=t}function $e(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function rs(t,e){return Ig(t,e)}function Tp(t,e){var l;xc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=Je,n=_t;try{for(var s=Si(i);s&&(s.nodeType!==Jn||s.data!==ks);)s=qo(s);if(!s)throw Jr;uo(!0),xi(s),Fi();let d=Ig(t,Bt(W({},e),{anchor:s}));if(_t===null||_t.nodeType!==Jn||_t.data!==js)throw Ls(),Jr;return uo(!1),d}catch(d){if(d===Jr)return e.recover===!1&&Uv(),xc(),Ll(i),uo(!1),rs(t,e);throw d}finally{uo(o),xi(n),$g()}}var tl=new Map;function Ig(t,{target:e,anchor:i,props:o={},events:n,context:s,intro:l=!0}){xc();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=Tg(x);e.addEventListener(x,Ja,{passive:w});var y=tl.get(x);y===void 0?(document.addEventListener(x,Ja,{passive:w}),tl.set(x,1)):tl.set(x,y+1)}}};a(Sl(wp)),Mc.add(a);var u=void 0,f=dg(()=>{var v=i!=null?i:e.appendChild(bn());return Mi(()=>{if(s){U({});var p=Nt;p.c=s}n&&(o.$$events=n),Je&&Ao(v,null),zl=l,u=t(v,o)||{},zl=!0,Je&&(ht.nodes_end=_t),s&&z()}),()=>{var w;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)}Mc.delete(a),v!==i&&((w=v.parentNode)==null||w.removeChild(v))}});return Cp.set(u,f),u}var Cp=new WeakMap;function aa(t,e){let i=Cp.get(t);return i?(Cp.delete(t),i(e)):(Le&&ig(),Promise.resolve())}function xe(t,e,...i){var o=t,n=ce,s;Ui(()=>{n!==(n=e())&&(s&&(Hi(s),s=null),Le&&n==null&&zv(),s=Mi(()=>n(o,...i)))},65536),Je&&(o=_t)}if(Le){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}})}};r0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var r0;function Mt(t){Nt===null&&Ua("onMount"),es&&Nt.l!==null?n0(Nt).m.push(t):qe(()=>{let e=wt(t);if(typeof e=="function")return e})}function nn(t){Nt===null&&Ua("onDestroy"),Mt(()=>()=>wt(t))}function n0(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var kg=new Map;function Pg(t,e){var i=kg.get(t);i||(i=new Set,kg.set(t,i)),i.add(e)}function L(t,e,[i,o]=[0,0]){Je&&i===0&&Fi();var n=t,s=null,l=null,d=Xi,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(Je&&o!==-1){if(i===0){let S=yc(n);S===ks?o=0:S===Ps?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=ta(),xi(n),uo(!1),w=!0,o=-1)}d?(s?vs(s):x&&(s=Mi(()=>x(n))),l&&On(l,()=>{l=null})):(l?vs(l):x&&(l=Mi(()=>x(n,[i+1,o]))),s&&On(s,()=>{s=null})),w&&uo(!0)};Ui(()=>{u=!1,e(f),u||v(null,null)},a),Je&&(n=_t)}function la(t,e,i){Je&&Fi();var o=t,n=Xi,s,l=is()?Nv:Ha;Ui(()=>{l(n,n=e())&&(s&&On(s),s=Mi(()=>i(o)))}),Je&&(o=_t)}var Rs=null;function kp(t){Rs=t}function Wl(t,e){return e}function l0(t,e,i,o){for(var n=[],s=e.length,l=0;l<s;l++)Tc(e[l].e,n,!0);var d=s>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;Ll(a),a.append(i),o.clear(),Vs(t,e[0].prev,e[s-1].next)}_p(n,()=>{for(var u=0;u<s;u++){var f=e[u];d||(o.delete(f.k),Vs(t,f.prev,f.next)),Hi(f.e,!d)}})}function Ti(t,e,i,o,n,s=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var u=t;l=Je?xi(Si(u)):u.appendChild(bn())}Je&&Fi();var f=null,v=!1,p=Br(()=>{var x=i();return Xn(x)?x:x==null?[]:Sl(x)});Ui(()=>{var x=r(p),w=x.length;if(v&&w===0)return;v=w===0;let y=!1;if(Je){var S=yc(l)===Ps;S!==(w===0)&&(l=ta(),xi(l),uo(!1),y=!0)}if(Je){for(var T=null,E,V=0;V<w;V++){if(_t.nodeType===Jn&&_t.data===js){l=_t,y=!0,uo(!1);break}var k=x[V],I=o(k,V);E=Lg(_t,d,T,null,k,I,V,n,e,i),d.items.set(I,E),T=E}w>0&&xi(ta())}Je||d0(x,d,l,n,e,o,i),s!==null&&(w===0?f?vs(f):f=Mi(()=>s(l)):f!==null&&On(f,()=>{f=null})),y&&uo(!0),r(p)}),Je&&(l=_t)}function d0(t,e,i,o,n,s,l){var oe,pe,ye,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=Lg(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&&c0(k,E,I,n),(k.e.f&8192)!==0&&(vs(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 Z=T[0],H;w=Z.prev;var F=S[0],K=S[S.length-1];for(H=0;H<S.length;H+=1)Ag(S[H],Z,i);for(H=0;H<T.length;H+=1)x.delete(T[H]);Vs(e,F.prev,K.next),Vs(e,w,F),Vs(e,K,Z),p=Z,w=K,I-=1,S=[],T=[]}else x.delete(k),Ag(k,p,i),Vs(e,k.prev,k.next),Vs(e,k,w===null?e.first:w.next),Vs(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?[]:Sl(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)(ye=ee[I].a)==null||ye.measure();for(I=0;I<j;I+=1)(me=ee[I].a)==null||me.fix()}l0(e,ee,ue,f)}}d&&$n(()=>{var Pe;if(y!==void 0)for(k of y)(Pe=k.a)==null||Pe.apply()}),ht.first=e.first&&e.first.e,ht.last=w&&w.e}function c0(t,e,i,o){(o&1)!==0&&Qa(t.v,e),(o&2)!==0?Qa(t.i,i):t.i=i}function Lg(t,e,i,o,n,s,l,d,a,u){var f=Rs,v=(a&1)!==0,p=(a&16)===0,x=v?p?os(n,!1,!1):br(n):n,w=(a&2)===0?l:br(l);Le&&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};Rs=y;try{return y.e=Mi(()=>d(t,x,w,u),Je),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{Rs=f}}function Ag(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=qo(s);n.before(s),s=l}}function Vs(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 u0(t,e,i){var s,l;if(!e||e===xg(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[Ln]&&(o=`in ${er[Ln]}`),tg(Lc(o))}function Kl(t,e,i=!1,o=!1,n=!1){var s=t,l="";B(()=>{var x;var d=ht;if(l===(l=(x=e())!=null?x:"")){Je&&Fi();return}if(d.nodes_start!==null&&(gp(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(Je){for(var a=_t.data,u=Fi(),f=u;u!==null&&(u.nodeType!==Jn||u.data!=="");)f=u,u=qo(u);if(u===null)throw Ls(),Jr;Le&&!n&&u0(u.parentNode,a,l),Ao(_t,f),s=xi(u);return}var v=l+"";i?v=`<svg>${v}</svg>`:o&&(v=`<math>${v}</math>`);var p=el(v);if((i||o)&&(p=Si(p)),Ao(Si(p),p.lastChild),i||o)for(;Si(p);)s.before(Si(p));else s.before(p)}})}function Ei(t,e,i){Je&&Fi();var o=t,n,s;Ui(()=>{n!==(n=e())&&(s&&(On(s),s=null),n&&(s=Mi(()=>i(o,n))))},65536),Je&&(o=_t)}function da(t,e,i,o,n,s){var w;let l=Je;Je&&Fi();var d=Le&&s&&((w=Nt)==null?void 0:w.function[Ln]),a,u,f=null;Je&&_t.nodeType===mc&&(f=_t,Fi());var v=Je?_t:t,p,x=Rs;Ui(()=>{let y=e()||null;var S=n?n():i||y==="svg"?cc:null;if(y!==a){var T=Rs;kp(x),p&&(y===null?On(p,()=>{p=null,u=null}):y===u?vs(p):(Hi(p),Vc(!1))),y&&y!==u&&(p=Mi(()=>{if(f=Je?f:S?document.createElementNS(S,y):document.createElement(y),Le&&s&&(f.__svelte_meta={loc:{file:d,line:s[0],column:s[1]}}),Ao(f,f),o){Je&&Eg(y)&&f.append(document.createComment(""));var E=Je?Si(f):f.appendChild(bn());Je&&(E===null?uo(!1):xi(E)),o(f,E)}ht.nodes_end=f,v.before(f)})),a=y,a&&(u=a),Vc(!0),kp(T)}},65536),l&&(uo(!0),xi(v))}var Ap;function Vg(t){return Ap=t.target,new Pp(t)}var gs,$r,Pp=class{constructor(e){Is(this,gs);Is(this,$r);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(W({},e.props||{}),{$$events:{}}),{get(d,a){var u;return r((u=i.get(a))!=null?u:o(a,Reflect.get(d,a)))},has(d,a){var u;return a===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 O((f=i.get(a))!=null?f:o(a,u),u),Reflect.set(d,a,u)}});Oa(this,$r,(e.hydrate?Tp: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)&&Xa(),Oa(this,gs,n.$$events);for(let d of Object.keys(Ai(this,$r)))d==="$set"||d==="$destroy"||d==="$on"||lo(this,d,{get(){return Ai(this,$r)[d]},set(a){Ai(this,$r)[d]=a},enumerable:!0});Ai(this,$r).$set=d=>{Object.assign(n,d)},Ai(this,$r).$destroy=()=>{aa(Ai(this,$r))}}$set(e){Ai(this,$r).$set(e)}$on(e,i){Ai(this,gs)[e]=Ai(this,gs)[e]||[];let o=(...n)=>i.call(this,...n);return Ai(this,gs)[e].push(o),()=>{Ai(this,gs)[e]=Ai(this,gs)[e].filter(n=>n!==o)}}$destroy(){Ai(this,$r).$destroy()}};gs=new WeakMap,$r=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=Ap)==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),Le&&Pg(e.hash,d)}})}function hs(t,e){var i=void 0,o;Ui(()=>{i!==(i=e())&&(o&&(Hi(o),o=null),i&&(o=Mi(()=>{ko(()=>i(t))})))})}function Rg(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=Rg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Ng(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Rg(t))&&(o&&(o+=" "),o+=e);return o}function ql(t){return typeof t=="object"?Ng(t):t!=null?t:""}var Og=[...`
44
+ \r\f\xA0\v\uFEFF`];function Dg(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||Og.includes(o[l-1]))&&(d===o.length||Og.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function Bg(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 Mp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Hg(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(Mp)),n&&a.push(...Object.keys(n).map(Mp));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=Mp(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+=Bg(o)),n&&(i+=Bg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function te(t,e,i,o,n,s){var l=t.__className;if(Je||l!==i||l===void 0){var d=Dg(i,o,s);(!Je||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(s&&n!==s)for(var a in s){var u=!!s[a];(n==null||u!==!!n[a])&&t.classList.toggle(a,u)}return s}function Lp(t,e={},i,o){for(var n in i){var s=i[n];e[n]!==s&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,s,o))}}function st(t,e,i,o){var n=t.__style;if(Je||n!==e){var s=Hg(e,o);(!Je||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}else o&&(Array.isArray(o)?(Lp(t,i==null?void 0:i[0],o[0]),Lp(t,i==null?void 0:i[1],o[1],"important")):Lp(t,i,o));return o}function Ql(t,e,i){if(t.multiple){if(e==null)return;if(!Xn(e))return og();for(var o of t.options)o.selected=e.includes(Fg(o));return}for(o of t.options){var n=Fg(o);if(rp(n,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Vp(t){var e=new MutationObserver(()=>{Ql(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),zo(()=>{e.disconnect()})}function Fg(t){return"__value"in t?t.__value:t.value}var il=Symbol("class"),ol=Symbol("style"),Wg=Symbol("is custom element"),Kg=Symbol("is html");function qg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Ue(t,e,i,o){var n=Gg(t);if(Je&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||b0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Rv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&jg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Qg(t,e,i,o,n=!1){var k;var s=Gg(t),l=s[Wg],d=!s[Kg];let a=Je&&l;a&&uo(!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[il])&&(i.class=null),i[ol]&&((k=i.style)!=null||(i.style=null));var p=jg(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[il],i[il]),u[I]=R,u[il]=i[il];continue}if(I==="style"){st(t,R,e==null?void 0:e[ol],i[ol]),u[I]=R,u[ol]=i[ol];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 Z={},H="$$"+I,F=I.slice(2);var S=Sg(F);if(wg(F)&&(F=F.slice(0,-7),Z.capture=!0),!S&&w){if(R!=null)continue;t.removeEventListener(F,u[H],Z),u[H]=null}if(R!=null)if(S)t[`__${F}`]=R,dt([F]);else{let K=function(ee){u[I].call(this,ee)};var V=K;u[H]=Sp(F,t,K,Z)}else S&&(t[`__${F}`]=void 0)}else if(I==="style")Ue(t,I,R);else if(I==="autofocus")xp(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=Cg(T));var E=T==="defaultValue"||T==="defaultChecked";if(R==null&&!l&&!E)if(s[I]=null,T==="value"||T==="checked"){let Z=t,H=e===void 0;if(T==="value"){let F=Z.defaultValue;Z.removeAttribute(T),Z.defaultValue=F,Z.value=Z.__value=H?F:null}else{let F=Z.defaultChecked;Z.removeAttribute(T),Z.defaultChecked=F,Z.checked=H?F:!1}}else t.removeAttribute(I);else E||p.includes(T)&&(l||typeof R!="string")?t[T]=R:typeof R!="function"&&Ue(t,T,R,n)}}}return a&&uo(!0),u}function Ae(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(Ui(()=>{var p=e(...l.map(r)),x=Qg(t,d,p,o,n);f&&u&&"value"in p&&Ql(t,p.value,!1);for(let y of Object.getOwnPropertySymbols(a))p[y]||Hi(a[y]);for(let y of Object.getOwnPropertySymbols(p)){var w=p[y];y.description===Zu&&(!d||w!==d[y])&&(a[y]&&Hi(a[y]),a[y]=Mi(()=>hs(t,()=>w))),x[y]=w}d=x}),u){var v=t;ko(()=>{Ql(v,d.value),Vp(v)})}f=!0}function Gg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Wg]:t.nodeName.includes("-"),[Kg]:t.namespaceURI===Iv}}var Ug=new Map;function jg(t){var e=Ug.get(t.nodeName);if(e)return e;Ug.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=pc(o);for(var s in i)i[s].set&&e.push(s);o=Ys(o)}return e}function b0(t,e,i){var o;Le&&(e==="srcset"&&$0(t,i)||Rp((o=t.getAttribute(e))!=null?o:"",i)||eg(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Rp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function zg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function $0(t,e){var i=zg(t.srcset),o=zg(e);return o.length===i.length&&o.every(([n,s],l)=>s===i[l][1]&&(Rp(i[l][0],n)||Rp(n,i[l][0])))}var y0=uc?()=>performance.now():()=>Date.now(),Fr={tick:t=>(uc?requestAnimationFrame:ce)(t),now:()=>y0(),tasks:new Set};function Yg(){let t=Fr.now();Fr.tasks.forEach(e=>{e.c(t)||(Fr.tasks.delete(e),e.f())}),Fr.tasks.size!==0&&Fr.tick(Yg)}function Zg(t){let e;return Fr.tasks.size===0&&Fr.tick(Yg),{promise:new Promise(i=>{Fr.tasks.add(e={c:t,f:i})}),abort(){Fr.tasks.delete(e)}}}function Rc(t,e){Ul(()=>{t.dispatchEvent(new CustomEvent(e))})}function C0(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 Xg(t){let e={},i=t.split(";");for(let o of i){let[n,s]=o.split(":");if(!n||s===void 0)break;let l=C0(n.trim());e[l]=s.trim()}return e}var T0=t=>t;function Op(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=Et,I=ht;Di(null),co(null);try{return u!=null?u:u=i()(e,(R=o==null?void 0:o())!=null?R:{},{direction:a})}finally{Di(k),co(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(),Rc(e,"introstart"),p=Np(e,w(),x,1,()=>{Rc(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,Rc(e,"outrostart"),x=Np(e,w(),p,0,()=>{Rc(e,"outroend"),k==null||k()})},stop:()=>{p==null||p.abort(),x==null||x.abort()}},S=ht;if(((V=S.transitions)!=null?V:S.transitions=[]).push(y),n&&zl){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&&ko(()=>{wt(()=>y.in())})}}function Np(t,e,i,o,n){var s=o===1;if(As(e)){var l,d=!1;return $n(()=>{if(!d){var S=e({direction:s?"in":"out"});l=Np(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:ce,deactivate:ce,reset:ce,t:()=>o};let{delay:a=0,css:u,tick:f,easing:v=T0}=e;var p=[];if(s&&i===void 0&&(f&&f(0,1),u)){var x=Xg(u(0,1));p.push(x,x)}var w=()=>1-o,y=t.animate(p,{duration:a,fill:"forwards"});return y.onfinish=()=>{var F;y.cancel();var S=(F=i==null?void 0:i.t())!=null?F:1-o;i==null||i.abort();var T=o-S,E=e.duration*Math.abs(T),V=[];if(E>0){var k=!1;if(u)for(var I=Math.ceil(E/16.666666666666668),R=0;R<=I;R+=1){var Z=S+T*v(R/I),H=Xg(u(Z,1-Z));V.push(H),k||(k=H.overflow==="hidden")}k&&(t.style.overflow="hidden"),w=()=>{var K=y.currentTime;return S+T*v(K/E)},f&&Zg(()=>{if(y.playState!=="running")return!1;var K=w();return f(K,1-K),!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=ce)},deactivate:()=>{n=ce},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var Ns,nl,Gl,Oc,Jg,Bc=class Bc{constructor(e){Is(this,Oc);Is(this,Ns,new WeakMap);Is(this,nl);Is(this,Gl);Oa(this,Gl,e)}observe(e,i){var o=Ai(this,Ns).get(e)||new Set;return o.add(i),Ai(this,Ns).set(e,o),Tv(this,Oc,Jg).call(this).observe(e,Ai(this,Gl)),()=>{var n=Ai(this,Ns).get(e);n.delete(i),n.size===0&&(Ai(this,Ns).delete(e),Ai(this,nl).unobserve(e))}}};Ns=new WeakMap,nl=new WeakMap,Gl=new WeakMap,Oc=new WeakSet,Jg=function(){var e;return(e=Ai(this,nl))!=null?e:Oa(this,nl,new ResizeObserver(i=>{for(var o of i){Bc.entries.set(o.target,o);for(var n of Ai(this,Ns).get(o.target)||[])n(o)}}))},Zn(Bc,"entries",new WeakMap);var Bp=Bc;var E0=new Bp({box:"border-box"});function rr(t,e,i){var o=E0.observe(t,()=>i(t[e]));ko(()=>(wt(()=>i(t[e])),o))}function eh(t,e){return t===e||(t==null?void 0:t[Uo])===e}function ot(t={},e,i,o){return ko(()=>{var n,s;return Qo(()=>{n=s,s=(o==null?void 0:o())||[],wt(()=>{t!==i(...s)&&(e(t,...s),n&&eh(i(...n),t)&&e(null,...n))})}),()=>{$n(()=>{s&&eh(i(...s),t)&&e(null,...s)})}}),t}function Ur(t=!1){let e=Nt,i=e.l.u;if(!i)return;let o=()=>Ac(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&&Nl(()=>{th(e,o),Ms(i.b)}),qe(()=>{let n=wt(()=>i.m.map(Vv));return()=>{for(let s of n)typeof s=="function"&&s()}}),i.a.length&&qe(()=>{th(e,o),Ms(i.a)})}function th(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),ce;let o=wt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var rl=[];function yr(t,e){return{subscribe:ae(t,e).subscribe}}function ae(t,e=ce){let i=null,o=new Set;function n(d){if(Ha(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=ce){let u=[d,a];return o.add(u),o.size===1&&(i=e(n,s)||ce),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 yr(i,(l,d)=>{let a=!1,u=[],f=0,v=ce,p=()=>{if(f)return;v();let w=e(o?u[0]:u,l,d);s?l(w):v=typeof w=="function"?w:ce},x=n.map((w,y)=>jl(w,S=>{u[y]=S,f&=~(1<<y),a&&p()},()=>{f|=1<<y}));return a=!0,p(),function(){Ms(x),v(),a=!1}})}function we(t){let e;return jl(t,i=>e=i)(),e}var Dc=!1,Dp=Symbol();function C(t,e,i){var s;let o=(s=i[e])!=null?s:i[e]={store:null,source:os(void 0),unsubscribe:ce};if(o.store!==t&&!(Dp in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=ce;else{var n=!0;o.unsubscribe=jl(t,l=>{n?o.source.v=l:O(o.source,l)}),n=!1}return t&&Dp in i?we(t):r(o.source)}function Fe(){let t={};function e(){zo(()=>{for(var i in t)t[i].unsubscribe();lo(t,Dp,{enumerable:!1,value:!0})})}return[t,e]}function Hp(t){var e=Dc;try{return Dc=!1,[t(),Dc]}finally{Dc=e}}var V0={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Le&&Kv(`${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(Le?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},V0)}var R0={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(As(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];As(n)&&(n=n());let s=en(n,e);if(s&&s.set)return s.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(As(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=en(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Uo||e===Ba)return!1;for(let i of t.props)if(As(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(As(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 _s(...t){return new Proxy({props:t},R0)}function ih(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function m(t,e,i,o){var Z,H;var n=(i&1)!==0,s=!es||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,u;l?[u,a]=Hp(()=>t[e]):u=t[e];var f=Uo in t||Ba in t,v=l&&((H=(Z=en(t,e))==null?void 0:Z.set)!=null?H:f&&e in t&&(F=>t[e]=F))||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&&Wv(e),u=y(),v&&v(u));var S;if(s)S=()=>{var F=t[e];return F===void 0?y():(x=!0,w=!1,F)};else{var T=(n?Or:Br)(()=>t[e]);T.f|=131072,S=()=>{var F=r(T);return F!==void 0&&(p=void 0),F===void 0?p:F}}if((i&4)===0&&s)return S;if(v){var E=t.$$legacy;return function(F,K){return arguments.length>0?((!s||!K||E||a)&&v(K?S():F),F):S()}}var V=!1,k=!1,I=os(u),R=Or(()=>{var F=S(),K=r(I);return V?(V=!1,k=!0,K):(k=!1,I.v=F)});return l&&r(R),n||(R.equals=Fa),function(F,K){if(kc!==null&&(V=k,S(),r(I)),arguments.length>0){let ee=K?r(R):s&&l?ai(F):F;if(!R.equals(ee)){if(V=!0,O(I,ee),w&&p!==void 0&&(p=ee),ih(R))return F;wt(()=>r(R))}return F}return ih(R)?R.v:r(R)}}var N0;typeof HTMLElement=="function"&&(N0=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=O0(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]=Fp(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=Vg({component:this.$$ctor,target:this.shadowRoot||this,props:Bt(W({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=Cc(()=>{Qo(()=>{var s;this.$$r=!0;for(let l of Xu(this.$$c)){if(!((s=this.$$p_d[l])!=null&&s.reflect))continue;this.$$d[l]=this.$$c[l];let d=Fp(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]=Fp(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 Xu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Fp(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 O0(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var oh="5";var nh,rh,sh;typeof window!="undefined"&&((sh=(rh=(nh=window.__svelte)!=null?nh:window.__svelte={}).v)!=null?sh:rh.v=new Set).add(oh);import{areValidLiveRecordSources as E5,clientChecker as sv}from"@vkontakte/videoplayer-core/es2015";import"@vkontakte/videoplayer-core/es2015";import{noop as l_,safeStorage as I5,throttleFn as k5}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as P5}from"@vkontakte/videoplayer-statistics/es2015";import{InterfaceLanguage as B0,fillWithDefault as D0,VideoQuality as ah}from"@vkontakte/videoplayer-shared/es2015";var H0={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:B0.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:ah.Q_480P,highQualityLimit:ah.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"},lh=t=>D0(t,H0),dh=t=>Wa("ui-config",t),kt=()=>za("ui-config");var Yl="vk_player_debug_panel_opened";var ch="videoplayer",uh="videoplayer";var ss={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},ph=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),fh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),mh=new Set(["ShiftRight","ShiftLeft"]);var vh=["TIMELINE"],Zl=[...vh,"GRAPH_BUTTON"],Up=[...vh,"PLAY_BUTTON"],Xl=[...Zl,"PLAY_BUTTON"];var as=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(as||{}),ua={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as gh,VERSION as F0}from"@vkontakte/videoplayer-shared/es2015";import{VERSION as U0}from"@vkontakte/videoplayer-core/es2015";import{VERSION as z0}from"@vkontakte/videoplayer-statistics/es2015";var Hc="prod",sl="1.1.72-dev.95df362c.0";var pa=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var hh=Symbol("storeContext"),_h=Symbol("microStoresContext"),bh=(t,e)=>{Wa(hh,t),Wa(_h,e),Hc==="dev"&&(window.app={store:t,microStores:e})},Ie=()=>{let t=za(hh);return gh(t,"Store context is empty!"),t},bo=()=>{let t=za(_h);return gh(t,"MicroStores context is empty!"),t},ni=(t,e)=>Uc(t,t.getValue(),e),Uc=(t,e,i)=>yr(e,o=>{let n=t.subscribe(s=>{o(s),i==null||i(s)});return()=>n.unsubscribe()}),$h=(t,e,i,o)=>{var R,Z,H,F,K,ee,j,ue;let n=t.info,{width:s,height:l}=we(i.ui.playerSize),d=(Z=(R=n.throughputEstimation$.getValue())==null?void 0:R.toFixed(0))!=null?Z:0,a=(F=(H=n.rttEstimation$.getValue())==null?void 0:H.toFixed(0))!=null?F:0,u=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${sl} (core: ${U0}, stat: ${z0}, shared: ${F0})`,v=we(i.state.errorLog$),p=v.length?`
45
+ `+v.map((oe,pe)=>{var re;let ye=`${pe}) Type: ${oe.id}
46
+ `,me=`Message: ${oe.message} (${oe.thrown})
47
+ `,Pe=`Trace: ${(re=oe.thrown)==null?void 0:re.stack}
48
+ `;return ye+me+Pe}).join(`
49
+ `):void 0,x=i.state.isAudioDisabled?"disabled":we(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),y=t.info.currentAudioStream$.getValue(),S=[];w&&S.push(`Video: ${(K=w==null?void 0:w.codec)!=null?K:""}`+(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-we(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:we(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:`${we(i.state.positionExact$)}s`,Buffer:`${k}s`,State:`${we(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
+ `)},yh=(t,e,i)=>{var Z,H,F,K;let o=t.info,{width:n,height:s}=we(i.ui.playerSize),l={version:sl,viewport:`${n}x${s}`,volume:Math.round(we(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-we(i.state.positionExact$),0)),l.position=we(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=we(i.vsid);typeof E=="string"&&(l.vsid=E);let V=(Z=t.info.currentVideoStream$.getValue())==null?void 0:Z.codec;V&&(l.videoCodec=V);let k=(H=t.info.currentAudioStream$.getValue())==null?void 0:H.codec;k&&(l.audioCodec=k),((F=t.info.currentVideoStream$.getValue())==null?void 0:F.hdr)&&(l.hdr=!0);let R=(K=t.info.currentAudioStream$.getValue())==null?void 0:K.language;return R&&(l.audioLanguage=R),l},xh=(t,e)=>pa(t,e,"mp4"),wh=t=>!t.type,Sh=t=>!!t.type,Ch=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},Fc=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 Li}from"@vkontakte/videoplayer-shared/es2015";import"@vkontakte/videoplayer-core/es2015";var Th="vk_player_prefer_traffic_saving_enabled",Eh="vk_player_preferred_volume",Ih="vk_player_prefer_volume_mute",Qp="vk_player_preferred_quality",zp="vk_player_preferred_default_quality_settings",Wp="vk_player_preferred_quality_settings_by_video",kh="vk_player_preferred_stream_language",Ph="vk_player_preferred_rate",Ah="vk_player_preferred_autoplay_next",Kp="vk_player_preferred_subtitles_language",Mh="vk_player_user_video_prefs",Lh=t=>t>1?1:t<0?0:t,Gp=t=>Li.set(Eh,Lh(t).toString(10)),zc=()=>{let t=Li.get(Eh);return qp(t)?void 0:Lh(parseFloat(t))},jp=(t,e)=>Li.set(Qp,JSON.stringify({videoId:t,value:e})),Wc=()=>Li.remove(Qp),Yp=t=>{let e=Li.get(Qp);if(qp(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Wc();return}return o},Zp=(t,e)=>{e?Li.set(t,"true"):Li.remove(t)},Xp=t=>Li.get(t)==="true",Jp=t=>Zp(Ih,t),Vh=()=>Xp(Ih),Jl=t=>Zp(Th,t),ef=()=>Xp(Th),Rh=()=>Li.get(kh),tf=t=>Li.set(kh,t),of=()=>Li.get(Kp),nf=t=>{t?Li.set(Kp,t):Li.remove(Kp)},Nh=t=>Li.set(Ph,JSON.stringify({rate:t})),Oh=()=>{let t=Li.get(Ph);if(qp(t))return;let{rate:e}=JSON.parse(t);return e},Bh=t=>Zp(Ah,t),Dh=()=>Xp(Ah),W0=()=>{let t=f=>{Li.set(zp,JSON.stringify(f))},e=()=>{try{let f=Li.get(zp);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=Li.get(Wp);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{Li.set(Wp,JSON.stringify(f))},n=f=>{u(f);let v=f?i():null;if(v&&(v==null?void 0:v.videoId)===f)return Bt(W({},v),{appliesTo:"to-video"});v&&s();let p=e();return p?Bt(W({},p),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},s=()=>{Li.remove(Wp)},l=()=>{Li.remove(zp)},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":Jl(!0);break;case"exact_quality":jp(f,v.quality)}s(),l()}},u=f=>{let v=Yp(f);if(v){o({type:"exact_quality",videoId:f,quality:v});return}ef()&&t({type:"traffic_saving",videoId:f}),Jl(!1),Wc()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:of,savePreferredSubtitlesLanguage:nf}},{getPreferredQualitySettings:Hh,migrateSettingsToLegacyWay:Fh,savePreferredQualitySettings:Kc,savePreferredDefaultQualitySettings:KM,removePreferredQualitySettingsByVideo:qM,getPreferredDefaultQualitySettings:qc}=W0(),K0=3,q0=3,Uh=()=>{let t=Li.get(Mh);if(t)try{return JSON.parse(t)}catch(e){return null}return null},Qc=(t,e)=>{var n,s;let i=Uh();return(s=(n=i==null?void 0:i[t])==null?void 0:n[e])!=null?s:null},rf=(t,e,i)=>{var l,d,a;let o=(l=Uh())!=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=Q0(o);Li.set(Mh,JSON.stringify(s))};function Q0(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(q0),e.reduce((o,[n])=>(o[n]=G0(t[n]),o),{})}function G0(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(K0),Object.fromEntries(e)}import{PlaybackState as r_}from"@vkontakte/videoplayer-core/es2015";var j0=Ee('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"></path><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-opacity=".12" stroke-width=".5" d="m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"></path></g><defs><filter id="a" width="75" height="44" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_618_12297"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_618_12297" result="shape"></feBlend></filter></defs></svg>');function ed(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=j0();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),h(o),$(t,o)}import{isNullable as Kh,InterfaceLanguage as qh}from"@vkontakte/videoplayer-shared/es2015";var Y0={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`,double_forward_label:"2x"},Jh=ib;var ob={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`},zh=Y0;var Z0={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.`,double_forward_label:"2x"},e1=ob;var bs=new Map;bs.set(i1.EN,e1);bs.set(i1.RU,Jh);var o1=new Map,mf=({language:t,pack:e,fallback:i})=>{if(bs.has(t)){let o=bs.get(t);bs.set(t,W(W({},o),e))}else bs.set(t,e);o1.set(t,i)},vf=t=>bs.has(t),gf=(t,e,i,o)=>{var l;let n=bs.get(t),s=n==null?void 0:n[e];if(t1(s)){let d=(l=o1.get(t))!=null?l:o,a=d?bs.get(d):void 0;s=a==null?void 0:a[e]}return t1(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}=Ee(),o=xe(i),n=kt();return gf(o,t,e,n.defaultLanguage)};import"@vkontakte/videoplayer-core/es2015";var sl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(sl||(sl={}));var nb=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,rb=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,sb=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Jc="?",ab="X-Sentry-Auth",lb=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function db(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=nb.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=sb.exec(i[s]))n={filename:o[2],function:o[1]||Jc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=rb.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:n1(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function n1(t){return(t&&t.message||"No error message").split(`
56
- `).filter(i=>!!i)[0]}function cb(t){try{let e=db(t);if(e)return e}catch(e){}return{value:n1(t),type:t&&t.name,stacktrace:{frames:[]}}}function ub(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var eu=class{constructor(e){if(e&&e.dsn){let i=lb.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(W({},this.getRequestBlank()),{exception:{values:[cb(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(ab,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:ub(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function r1(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function pb(){return window}var tu=class t extends eu{constructor(e,i=pb()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=u=>u,beforeBreadcrumb:s=u=>u,blacklistUrls:l=[],ignoreErrors:d=[],release:a=void 0}=this.options||{};this.plugins=o.map(u=>new u(this)),this.beforeSend=n,this.beforeBreadcrumb=s,this.blacklistUrls=l,this.ignoreErrors=d,this.release=a}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",W({},e)),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",W({},e)),this}setUser(e){return this.setKeyState("user",W({},e)),this}clone(){let e=new t(Ht(W({},this.options),{plugins:[]}));return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[W({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send(Ht(W({},this.getRequestBlank()),{message:e,level:i}))}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>r1(i,o))):!1}getRequestBlank(){return W(Ht(W({request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}}},super.getRequestBlank()),{sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"}}),this.state)}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend(W({release:this.release},e))),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>r1(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(W({},i),{[o]:s||d?[...s||[],...d||[]]:W(W({},typeof n!="string"?n:{}),typeof l!="string"?l:{})})},this._state)}setKeyState(e,i){this._state[e]=i}};import{isNonNullable as iu,Subscription as fb}from"@vkontakte/videoplayer-shared/es2015";var ou=null,fa=class{constructor(e,i,o={}){!ou&&e.dsn&&(this.sentryClient=new tu({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new fb,this.options=e,this.context=o,ou=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),ou=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(iu(x)&&m.includes(x)||iu(p)&&f.includes(p))return;if(Math.random()<=d||iu(x)&&u.includes(x)||iu(p)&&a.includes(p)){Object.keys(i).length&&n.setTags(W({version:this.version},i)),(Object.keys(s).length||Object.keys(o).length)&&n.setExtras(W(W({},s),o));try{p&&n.captureMessage(p,i.fatal?sl.fatal:sl.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return ou}};var $s=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))($s||{});var nu=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()},ru=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),s1=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},Bs=()=>!!rd(),su=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},au=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},a1=t=>{let e=window.screen;return(n=>$t(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 l1}from"@vkontakte/videoplayer-core/es2015";var d1=()=>({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:l1.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:l1.device.isApple?K("hotkey_map_item_next_episode_mac_value"):K("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as mb,ValueSubject as hf}from"@vkontakte/videoplayer-shared/es2015";var ma=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:mb(this.onResize.bind(this),300)};this.info={isActive$:new hf(!1),isEnabled$:new hf(!1),type:0};this.info.isEnabled$=new hf(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}revealPictureInPicture(){return $t(this,null,function*(){this.isRequested&&(this.removeEventHandlers(),yield this.request(),this.addEventHandlers())})}request(){return $t(this,null,function*(){var e;if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)==null?void 0:e.requestPictureInPicture()}catch(i){this.isRequested=!1}})}exit(){return $t(this,null,function*(){!this.isSupported()||!this.isActive()||(yield document.exitPictureInPicture())})}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.removeEventHandlers(),this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"),this.addEventHandlers())}addEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}setExternalEventHandlers(e){this.externalEventHandlers=W({},e)}removeEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}dispose(){return $t(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 va(t){return t instanceof ma}import{devNull as c1,now as u1}from"@vkontakte/videoplayer-shared/es2015";sg();function bf(t,e){U(e,!1);let i=Ee();Rt(()=>{i.getAdmanWrapper().startPostroll()}),Ur(),z()}import{noop as vb}from"@vkontakte/videoplayer-shared/es2015";var gb=(t,e,i)=>{t.stopPropagation(),r(e)&&i()()},hb=A('<div class="skip svelte-1k4i25s"> <svg class="icon svelte-1k4i25s" width="7" height="12" viewBox="0 0 7 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"></path></svg></div>'),_b=A("<div><!></div>"),bb={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 $f(t,e){U(e,!0),q(t,bb);let[i,o]=Fe(),n=()=>C(u,"$isMobile",i),s=v(e,"position",3,0),l=v(e,"secondsToWatchBeforeSkip",3,0),d=v(e,"skipAd",3,vb),u=Ee().ui.isMobile,f=g(()=>s()>0&&s()>=l());var m=_b();let p;m.__click=[gb,f,d];var x=_(m);{var w=S=>{var T=hb(),E=_(T);we(),h(T),B(R=>be(E,`${R!=null?R:""} `),[()=>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)};V(x,S=>{r(f)?S(w):S(y,!1)})}h(m),B(S=>p=oe(m,1,"container svelte-1k4i25s",null,p,S),[()=>({"container-mobile":n(),skippable:r(f)})]),$(t,m),z(),o()}at(["click"]);var $b=A('<button class="svelte-1wy3dql"> </button>'),yb={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 yf(t,e){U(e,!1),q(t,yb),Ur();var i=$b(),o=_(i,!0);h(i),B(n=>be(o,n),[()=>K("visit_advertiser")],Br),$(t,i),z()}var xb=A('<div class="top-gradient-mobile svelte-354ajf"></div>'),wb=A('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),Sb={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.`},Wh=Z0;var bs=new Map;bs.set(qh.EN,Wh);bs.set(qh.RU,zh);var Qh=new Map,sf=({language:t,pack:e,fallback:i})=>{if(bs.has(t)){let o=bs.get(t);bs.set(t,W(W({},o),e))}else bs.set(t,e);Qh.set(t,i)},af=t=>bs.has(t),lf=(t,e,i,o)=>{var l;let n=bs.get(t),s=n==null?void 0:n[e];if(Kh(s)){let d=(l=Qh.get(t))!=null?l:o,a=d?bs.get(d):void 0;s=a==null?void 0:a[e]}return Kh(s)?e+Object.values(i!=null?i:{}).join(" "):i?s.replaceAll(/{(\w+?)}/g,(d,a)=>{var u;return(u=i[a])!=null?u:""}):s},q=(t,e)=>{let{interfaceLanguage$:i}=Ie(),o=we(i),n=kt();return lf(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 X0=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,J0=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,eb=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Gc="?",tb="X-Sentry-Auth",ib=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function ob(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=X0.exec(i[s]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||Gc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=eb.exec(i[s]))n={filename:o[2],function:o[1]||Gc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=J0.exec(i[s]))s===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||Gc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=Gc),e.push(n)}return e.length?{value:Gh(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function Gh(t){return(t&&t.message||"No error message").split(`
56
+ `).filter(i=>!!i)[0]}function nb(t){try{let e=ob(t);if(e)return e}catch(e){}return{value:Gh(t),type:t&&t.name,stacktrace:{frames:[]}}}function rb(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var jc=class{constructor(e){if(e&&e.dsn){let i=ib.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(W({},this.getRequestBlank()),{exception:{values:[nb(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(tb,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:rb(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function jh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function sb(){return window}var Yc=class t extends jc{constructor(e,i=sb()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=u=>u,beforeBreadcrumb:s=u=>u,blacklistUrls:l=[],ignoreErrors:d=[],release:a=void 0}=this.options||{};this.plugins=o.map(u=>new u(this)),this.beforeSend=n,this.beforeBreadcrumb=s,this.blacklistUrls=l,this.ignoreErrors=d,this.release=a}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",W({},e)),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",W({},e)),this}setUser(e){return this.setKeyState("user",W({},e)),this}clone(){let e=new t(Bt(W({},this.options),{plugins:[]}));return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[W({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send(Bt(W({},this.getRequestBlank()),{message:e,level:i}))}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>jh(i,o))):!1}getRequestBlank(){return W(Bt(W({request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}}},super.getRequestBlank()),{sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"}}),this.state)}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend(W({release:this.release},e))),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>jh(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(W({},i),{[o]:s||d?[...s||[],...d||[]]:W(W({},typeof n!="string"?n:{}),typeof l!="string"?l:{})})},this._state)}setKeyState(e,i){this._state[e]=i}};import{isNonNullable as Zc,Subscription as ab}from"@vkontakte/videoplayer-shared/es2015";var Xc=null,fa=class{constructor(e,i,o={}){!Xc&&e.dsn&&(this.sentryClient=new Yc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new ab,this.options=e,this.context=o,Xc=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Xc=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(Zc(x)&&v.includes(x)||Zc(p)&&f.includes(p))return;if(Math.random()<=d||Zc(x)&&u.includes(x)||Zc(p)&&a.includes(p)){Object.keys(i).length&&n.setTags(W({version:this.version},i)),(Object.keys(s).length||Object.keys(o).length)&&n.setExtras(W(W({},s),o));try{p&&n.captureMessage(p,i.fatal?al.fatal:al.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return Xc}};var $s=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))($s||{});var Jc=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()},eu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),Yh=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},td=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Os=()=>!!td(),tu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},iu=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Zh=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 Xh}from"@vkontakte/videoplayer-core/es2015";var Jh=()=>({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:Xh.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:Xh.device.isApple?q("hotkey_map_item_next_episode_mac_value"):q("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as lb,ValueSubject as df}from"@vkontakte/videoplayer-shared/es2015";var ma=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:lb(this.onResize.bind(this),300)};this.info={isActive$:new df(!1),isEnabled$:new df(!1),type:0};this.info.isEnabled$=new df(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=W({},e)}removeEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}dispose(){return 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 va(t){return t instanceof ma}import{devNull as e1,now as t1}from"@vkontakte/videoplayer-shared/es2015";Yv();function uf(t,e){U(e,!1);let i=Ie();Mt(()=>{i.getAdmanWrapper().startPostroll()}),Ur(),z()}import{noop as db}from"@vkontakte/videoplayer-shared/es2015";var cb=(t,e,i)=>{t.stopPropagation(),r(e)&&i()()},ub=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>'),pb=M("<div><!></div>"),fb={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 pf(t,e){U(e,!0),Q(t,fb);let[i,o]=Fe(),n=()=>C(u,"$isMobile",i),s=m(e,"position",3,0),l=m(e,"secondsToWatchBeforeSkip",3,0),d=m(e,"skipAd",3,db),u=Ie().ui.isMobile,f=g(()=>s()>0&&s()>=l());var v=pb();let p;v.__click=[cb,f,d];var x=_(v);{var w=S=>{var T=ub(),E=_(T);Te(),h(T),B(V=>$e(E,`${V!=null?V:""} `),[()=>q("skip_ads_now")]),$(S,T)},y=S=>{var T=ns();B(E=>$e(T,E),[()=>q("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),z(),o()}dt(["click"]);var mb=M('<button class="svelte-1wy3dql"> </button>'),vb={hash:"svelte-1wy3dql",code:"button.svelte-1wy3dql {position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black;}"};function ff(t,e){U(e,!1),Q(t,vb),Ur();var i=mb(),o=_(i,!0);h(i),B(n=>$e(o,n),[()=>q("visit_advertiser")],Br),$(t,i),z()}var gb=M('<div class="top-gradient-mobile svelte-354ajf"></div>'),hb=M('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),_b={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.`,double_forward_label:"2x"},e1=ob;var b
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 ad(t,e){U(e,!0),q(t,Sb);let[i,o]=Fe(),n=()=>C(H,"$canSkipAd",i),s=()=>C(j,"$adPlaybackState",i),l=()=>C(E,"$isMobile",i),d=()=>C(F,"$adPosition",i),a=()=>C(Q,"$secondsToWatchBeforeSkipAd",i),u=()=>C(T,"$isVideoEnded",i),f=v(e,"adsSlotId",3,void 0),m=v(e,"adsParams",3,void 0),p=v(e,"adsPreviewParam",3,void 0),x=v(e,"adsAutoplayParam",3,void 0),w=v(e,"duration",3,0),y=Ee(),S=kt(),T=y.state.isEnded$,E=y.ui.isMobile,R=S.ads.isMobileGoToSiteButton,I=X(void 0),M=X(void 0),k=!1,j=y.ads.playbackState,H=y.ads.canSkip,F=y.ads.position,Q=y.ads.secondsToWatchBeforeSkip,Z=g(()=>n()&&s()!=="inactive"),Y=g(()=>l()&&s()!=="inactive"&&R);Rt(()=>{var Me;let De=y.getAdmanWrapper();if(c1.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[u1(),f()]}),!f()){De.onAdmanLoadingError();return}let ue=Pe=>{De.initAdman(Pe),k=!0},_e=new AbortController,ne=()=>{_e.abort()},{width:ge,height:He}=xe(y.ui.playerSize),fe=xe(y.ui.isFullscreen),st=(Me=x())!=null?Me:xe(y.ui.isAutoplay),J={width:ge,height:He,isFullscreen:fe,isAutoplay:st,adsContainer:r(I),adsVideoElement:r(M),slotId:f(),params:m(),previewParam:p(),duration:w()};return window.AdmanHTML?ue(J):De.loadAdman(_e.signal).then(()=>{ue(J)}).catch(()=>{De.onAdmanLoadingError()}),()=>{c1.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[u1(),f()]}),!k&&ne()}});var pe=wb(),se=_(pe);{var me=De=>{var ue=xb();$(De,ue)};V(se,De=>{l()&&De(me)})}var $e=P(se,2);tt($e,De=>O(M,De),()=>r(M));var ve=P($e,2);{var Ae=De=>{$f(De,{get position(){return d()},get secondsToWatchBeforeSkip(){return a()},get skipAd(){return y.actions.internal.skipAd}})};V(ve,De=>{r(Z)&&De(Ae)})}var ae=P(ve,2);{var Ve=De=>{bf(De,{})};V(ae,De=>{u()&&De(Ve)})}var le=P(ae,2);{var N=De=>{yf(De,{})};V(le,De=>{r(Y)&&De(N)})}h(pe),tt(pe,De=>O(I,De),()=>r(I)),$(t,pe),z(),o()}var $n=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 Cb=Se('<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 xf(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=Cb();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(2),h(o),$(t,o)}var Tb=Se('<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 wf(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=Tb();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(2),h(o),$(t,o)}function ld(t,e){let i=v(e,"isActive",3,!1);var o=Qe(),n=he(o);{var s=d=>{wf(d,{})},l=d=>{xf(d,{})};V(n,d=>{i()?d(s):d(l,!1)})}$(t,o)}var Eb=A('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),Ib=A('<div class="live-icon svelte-1s15d2i"><!></div>'),kb=A('<span class="text svelte-1s15d2i"> </span>'),Pb=A("<div><!> <!></div>"),Ab={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 od(t,e){U(e,!0),Q(t,_b);let[i,o]=Fe(),n=()=>C(H,"$canSkipAd",i),s=()=>C(Z,"$adPlaybackState",i),l=()=>C(E,"$isMobile",i),d=()=>C(F,"$adPosition",i),a=()=>C(K,"$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=Ie(),S=kt(),T=y.state.isEnded$,E=y.ui.isMobile,V=S.ads.isMobileGoToSiteButton,k=Y(void 0),I=Y(void 0),R=!1,Z=y.ads.playbackState,H=y.ads.canSkip,F=y.ads.position,K=y.ads.secondsToWatchBeforeSkip,ee=g(()=>n()&&s()!=="inactive"),j=g(()=>l()&&s()!=="inactive"&&V);Mt(()=>{var Me;let De=y.getAdmanWrapper();if(e1.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[t1(),f()]}),!f()){De.onAdmanLoadingError();return}let de=ke=>{De.initAdman(ke),R=!0},ge=new AbortController,ie=()=>{ge.abort()},{width:ve,height:He}=we(y.ui.playerSize),fe=we(y.ui.isFullscreen),at=(Me=x())!=null?Me:we(y.ui.isAutoplay),X={width:ve,height:He,isFullscreen:fe,isAutoplay:at,adsContainer:r(k),adsVideoElement:r(I),slotId:f(),params:v(),previewParam:p(),duration:w()};return window.AdmanHTML?de(X):De.loadAdman(ge.signal).then(()=>{de(X)}).catch(()=>{De.onAdmanLoadingError()}),()=>{e1.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[t1(),f()]}),!R&&ie()}});var ue=hb(),oe=_(ue);{var pe=De=>{var de=gb();$(De,de)};L(oe,De=>{l()&&De(pe)})}var ye=P(oe,2);ot(ye,De=>O(I,De),()=>r(I));var me=P(ye,2);{var Pe=De=>{pf(De,{get position(){return d()},get secondsToWatchBeforeSkip(){return a()},get skipAd(){return y.actions.internal.skipAd}})};L(me,De=>{r(ee)&&De(Pe)})}var re=P(me,2);{var Re=De=>{uf(De,{})};L(re,De=>{u()&&De(Re)})}var se=P(re,2);{var N=De=>{ff(De,{})};L(se,De=>{r(j)&&De(N)})}h(ue),ot(ue,De=>O(k,De),()=>r(k)),$(t,ue),z(),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 bb=Ee('<svg><!><path fill="none" stroke="var(--btn-color, #fff)" stroke-width="2" d="M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"></path><path fill="var(--btn-color, #f0f2f5)" fill-rule="evenodd" d="M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"></path></svg>');function mf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=bb();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),h(o),$(t,o)}var $b=Ee('<svg><!><rect width="42" height="20" fill="var(--timeline-slider-filled-active-live-bg, #ff3347)" rx="5"></rect><path fill="#f2f3f5" fill-rule="evenodd" d="M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z" clip-rule="evenodd"></path></svg>');function vf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=$b();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),h(o),$(t,o)}function nd(t,e){let i=m(e,"isActive",3,!1);var o=Ke(),n=he(o);{var s=d=>{vf(d,{})},l=d=>{mf(d,{})};L(n,d=>{i()?d(s):d(l,!1)})}$(t,o)}var yb=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>'),xb=M('<div class="live-icon svelte-1s15d2i"><!></div>'),wb=M('<span class="text svelte-1s15d2i"> </span>'),Sb=M("<div><!> <!></div>"),Cb={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.`,double_forward_label:"2x"},e1=ob;var b
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 dd(t,e){q(t,Ab);let i=v(e,"withEqualizer",3,!1),o=v(e,"isLive",3,!1),n=v(e,"isPlaying",3,!1);var s=Pb();let l;var d=_(s);{var a=p=>{var x=Eb();$(p,x)};V(d,p=>{i()&&p(a)})}var u=P(d,2);{var f=p=>{var x=Ib(),w=_(x);ld(w,{isActive:!0}),h(x),$(p,x)},m=p=>{var x=kb(),w=_(x,!0);h(x),B(()=>be(w,e.time)),$(p,x)};V(u,p=>{o()?p(f):p(m,!1)})}h(s),B(p=>l=oe(s,1,"wrapper svelte-1s15d2i",null,l,p),[()=>({live:o(),playing:n()})]),$(t,s)}var al=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var Mb=A('<div role="timer" data-testid="thumb-timer"><!></div>'),Lb={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){U(e,!0),q(t,Lb);let[i,o]=Fe(),n=()=>C(f,"$disabled",i),s=v(e,"isHidden",3,!1),l=v(e,"isLive",3,!1),d=v(e,"isPlaying",3,!1),a=kt(),u=g(()=>$n(e.duration-e.position)),f=de(!1);var m=Mb();let p;var x=_(m);dd(x,{get time(){return r(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),h(m),hs(m,()=>al(s()&&a.features.usePerformanceFix,f,a.disableInvisibleComponentsTimeout)),B(w=>p=oe(m,1,"thumb-timer svelte-c6gowj",null,p,w),[()=>({"out-of-flow":n(),hidden:s()})]),$(t,m),z(),o()}var ll=t=>{if(!navigator.clipboard){p1(t);return}navigator.clipboard.writeText(t).catch(()=>p1(t))};function p1(t){if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}}import{ChromecastState as Wb}from"@vkontakte/videoplayer-core/es2015";import{clientChecker as f1}from"@vkontakte/videoplayer-core/es2015";var Sf="focus-hidden";var Sr=t=>{t.stopPropagation(),t.preventDefault()},Cf=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(Sf)},Rb=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},Nb=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},Ob=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},Bb=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},m1=t=>t.code==="Escape",Db=t=>t.code==="ArrowLeft",ud=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},v1=t=>{Ob(t)?(Sr(t),Nb(t.target)):Bb(t)&&(Sr(t),Rb(t.target))},Fs=t=>!f1.device.isAndroid&&(t==null?void 0:t.detail)===0||f1.device.isAndroid&&(t==null?void 0:t.pointerType)==="",dl=(t,e,i)=>$t(null,null,function*(){yield Co(),t&&!t.classList.contains("opened")&&!e&&xe(i)&&(yield Co(),i.set(!1),t.focus())}),g1=(t,e,i)=>$t(null,null,function*(){yield Co(),t&&!e&&xe(i)&&(i.set(!1),t.focus())}),pd=(t,e,i,o=!1)=>$t(null,null,function*(){if(yield Co(),!!t&&e&&!o){let s=t.children[0];s==null||s.classList.toggle(Sf,!i),s==null||s.focus()}}),h1=(t,e)=>$t(null,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),lu=(t,e)=>{v1(t),Cf(t.target),m1(t)&&(Sr(t),e())},du=(t,e)=>$t(null,null,function*(){ud(t,["ArrowRight"])&&(Sr(t),e())}),_1=(t,e,i)=>$t(null,null,function*(){if(v1(t),Db(t)){Sr(t),e();return}m1(t)&&(Sr(t),i())}),cl=(t,e)=>{ud(t)&&(Sr(t),e())},b1=(t,e,i)=>{if(ud(t))Sr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),Sr(t);return}o==="ArrowRight"&&!e&&(i(!0),Sr(t))}},$1=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},y1=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 cu,isValidURL as Kb}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 x1}from"@vkontakte/videoplayer-shared/es2015";var Fb=(t,e)=>{cl(t,()=>e())},Ub=A('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),zb={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 Tf(t,e){U(e,!0),q(t,zb);let i=v(e,"onClick",3,x1),o=v(e,"closeContextMenu",3,x1),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var s=Ub();s.__click=n,s.__keydown=[Fb,n];var l=_(s,!0);h(s),B(()=>{var d;ze(s,"aria-label",(d=e.ariaLabel)!=null?d:e.label),ze(s,"data-testid",e.id),be(l,e.label)}),$(t,s),z()}at(["click","keydown"]);var ha=(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 qb=(t,e)=>{lu(t,e)},Qb=t=>{t.preventDefault()},Gb=A('<ul role="menu" class="svelte-1p5ukkp"></ul>'),jb={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 Ef(t,e){U(e,!0),q(t,jb);let[i,o]=Fe(),n=()=>C(Z,"$isLive$",i),s=()=>C(me,"$isPiPEnabled$",i),l=()=>C(Q,"$chromecastState$",i),d=()=>C($e,"$pictureInPictureApiIsActive$",i),a=()=>C(se,"$isLooped$",i),u=()=>C(Y,"$positionExact$",i),f=()=>C(j,"$additionalContextMenuItems$",i),m=v(e,"visible",3,!1),p=v(e,"position",19,()=>({top:0,left:0})),x=v(e,"playerContainerRef",3,void 0),w=v(e,"controlsContainerRef",3,void 0),y=v(e,"menuElementRef",15,void 0),S=X(0),T=X(0),E=Ee(),{pictureInPicture$:R}=fo(),I=kt(),M=E.ui.contextMenu.visible$,k=E.ui.debugPanelVisible,j=E.ui.additionalContextMenuItems$,H=E.ui.t,F=E.actions.internal.togglePictureInPicture,Q=E.state.chromecastState$,Z=E.state.isLive$,Y=E.state.positionExact$,pe=E.state.isInteractive,se=E.state.looped$,{isEnabled$:me,isActive$:$e}=R,ve=g(()=>{var Ne;return I.features.copyVideoLink&&((Ne=E.callbacks)==null?void 0:Ne.onCopyVideoLink)}),Ae=g(()=>r(ve)&&!n()&&!pe),ae=g(()=>{var Ne;return!!((Ne=E.callbacks)!=null&&Ne.onCopyEmbedCodeClicked)}),Ve=g(()=>s()&&l()!==Wb.CONNECTED&&!pe),le=g(()=>!pe),N=g(()=>I.features.videoRotate&&!pe),De=g(()=>I.showSupport&&!d()),ue=g(()=>I.features.saveTraceInfoToFile),_e=()=>{var Ne;M.set(!1),(Ne=e.returnFocus)==null||Ne.call(e)},ne=(Ne,Ke)=>{if(!y()||!x()||!w())return;let Oe=y().getBoundingClientRect(),et=x().getBoundingClientRect();O(S,Ne-et.left),O(T,Ke-et.top),r(S)+Oe.width>et.width&&O(S,et.width-Oe.width),r(T)+Oe.height>et.height&&O(T,et.height-Oe.height),O(S,Math.max(r(S),0),!0),O(T,Math.max(r(T),0),!0)};Ge(()=>{$t(null,null,function*(){if(y()&&x()&&w()){yield Co();let{top:Ke,left:Oe,bottom:et,right:Wt}=p(),Qt=Oe!=null?Oe:0,Et=Ke!=null?Ke:0,yi=y().getBoundingClientRect();cu(Oe)&&!cu(Wt)&&(Qt=Wt-yi.width),cu(Ke)&&!cu(et)&&(Et=et-yi.height),Qt=Math.max(Qt,0),Et=Math.max(Et,0),ne(Qt,Et)}})});let ge=()=>{E.actions.internal.videoRotate()},He=()=>{Kb(e.supportLink)&&window.open(e.supportLink,"_blank"),E.actions.internal.reportProblem(),E.actions.internal.pause()},fe=()=>{let Ne=E.actions.internal.getDebugTextData();if(I.features.saveDebugInfoToFile){let Ke=new Blob([...Ne],{type:"plain/text"}),Oe=window.URL.createObjectURL(Ke);pa(Oe,"vk_player_debug_info","txt")}else ll(E.actions.internal.getDebugTextData())},st=()=>{let Ne=E.actions.internal.getTraceTextData(),Ke=new Blob([...Ne],{type:"application/json"}),Oe=window.URL.createObjectURL(Ke);pa(Oe,"vk_player_trace_info","json")},J=()=>{k.set(!0)},Me=()=>$t(null,null,function*(){var Ne;try{F()}finally{(Ne=e.returnFocus)==null||Ne.call(e)}}),Pe=()=>{E.actions.internal.setLooped(!a())},We=()=>{var Ne,Ke;if(r(ae)){let Oe=(Ke=(Ne=E.callbacks)==null?void 0:Ne.onCopyEmbedCodeClicked)==null?void 0:Ke.call(Ne);Oe&&ll(Oe)}},rt=(Ne=!1)=>{var Ke,Oe;if((Ke=E.callbacks)!=null&&Ke.onCopyVideoLink){let et=(Oe=E.callbacks)==null?void 0:Oe.onCopyVideoLink(Ne,u());et&&ll(et)}},_t=g(()=>I.features.saveDebugInfoToFile?H("menu_save_debug"):H("menu_copy_debug")),lt=g(()=>r(ve)?{id:"copy-link",weight:zr["copy-link"],label:H("menu_copy_video_link"),onClick:()=>rt()}:void 0),xt=g(()=>r(Ae)?{id:"copy-link-timestamp",weight:zr["copy-link-timestamp"],label:H("menu_copy_video_link_with_timestamp"),onClick:()=>rt(!0)}:void 0),Je=g(()=>r(ae)?{id:"copy-embed-code",weight:zr["copy-embed-code"],label:H("menu_copy_embed_code"),onClick:We}:void 0),zt=g(()=>r(Ve)?{id:"pip",weight:zr.pip,label:d()?H("menu_pip_close"):H("menu_pip"),onClick:Me}:void 0),ti=g(()=>r(le)?{id:"video-loop",weight:zr["video-loop"],label:a()?H("menu_video_loop_off"):H("menu_video_loop_on"),ariaLabel:H("aria_label_menu_loop"),onClick:Pe}:void 0),Ft=g(()=>r(N)?{id:"rotate",weight:zr.rotate,label:H("menu_video_rotate"),ariaLabel:H("aria_label_menu_rotate"),onClick:ge}:void 0),Yt=g(()=>r(De)?{id:"report",weight:zr.report,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,onClick:He}:void 0),Ie=g(()=>({id:"save-debug",weight:zr["save-debug"],label:r(_t),onClick:fe})),qt=g(()=>r(ue)?{id:"save-trace",weight:zr["save-trace"],label:H("menu_save_debug"),onClick:st}:void 0),Ce=g(()=>({id:"debug-info",weight:zr["debug-info"],label:H("menu_debug_overlay"),ariaLabel:H("aria_label_menu_debug_overlay"),onClick:J})),ie=g(()=>[r(lt),r(xt),r(Je),r(zt),r(ti),r(Ft),r(Yt),r(Ie),r(qt),r(Ce),...f()].filter(Ne=>!!Ne).sort(ha));var re=Qe(),Re=he(re);{var Ue=Ne=>{var Ke=Gb();Ke.__contextmenu=[Qb],Ke.__keydown=[qb,_e],Ei(Ke,21,()=>r(ie),Oe=>Oe.id,(Oe,et)=>{Tf(Oe,{get id(){return r(et).id},get label(){return r(et).label},get ariaLabel(){return r(et).ariaLabel},get onClick(){return r(et).onClick},closeContextMenu:_e})}),h(Ke),tt(Ke,Oe=>y(Oe),()=>y()),B(()=>{var Oe,et;return nt(Ke,`top: ${(Oe=r(T))!=null?Oe:""}px; left: ${(et=r(S))!=null?et:""}px;`)}),$(Ne,Ke)};V(Re,Ne=>{m()&&Ne(Ue)})}$(t,re),z(),o()}at(["contextmenu","keydown"]);var uu=class{constructor(e){this.value=e,this.next=null}};var ul=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new uu(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 Yb=A('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),Zb={hash:"svelte-1ssl9eb",code:".container.svelte-1ssl9eb {display:inline-block;width:120px;height:16px;}canvas.svelte-1ssl9eb {transform:scale(1, -1);margin-top:2px;}"};function md(t,e){U(e,!0),q(t,Zb);let i=v(e,"values",19,()=>[]),o=X(void 0),n=X(null),s=16,l=120,d=60,a=l/d;Rt(()=>{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)}Ge(()=>{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=Yb(),m=_(f);tt(m,p=>O(o,p),()=>r(o)),h(f),$(t,f),z()}import{safeStorage as w1}from"@vkontakte/videoplayer-shared/es2015";var Xb=(t,e)=>{t.stopPropagation(),w1.remove(ed),e.set(!1)},Jb=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),e$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),t$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),i$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),o$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),n$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),r$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),s$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),a$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),l$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),d$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),c$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),u$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),p$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),f$=A('<div role="region"><button class="close svelte-4deykz" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-4deykz"><div class="svelte-4deykz"><div class="svelte-4deykz">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">FPS</div> <!> <span> </span></div></div></div>'),m$={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){U(e,!0),q(t,m$);let[i,o]=Fe(),n=()=>C(d,"$isMobile",i),s=Ee(),l=s.ui.debugPanelVisible,d=s.ui.isMobile,a=X(ai(s.actions.internal.getDebugPanelData())),u=s.actions.internal.getVideoElement(),f=X(0),m=X(0),p=X(0),x=new ul(60),w=new ul(60),y=new ul(60),S=X(ai([])),T=X(ai([])),E=X(ai([])),R=K("aria_label_debug_panel");Rt(()=>{w1.set(ed,"true"),s.actions.internal.startLogging(),u&&(O(m,u.getVideoPlaybackQuality().droppedVideoFrames,!0),O(f,u.getVideoPlaybackQuality().totalVideoFrames,!0));let Ce=window.setInterval(()=>{O(a,s.actions.internal.getDebugPanelData(),!0)},500),ie;return u&&(ie=window.setInterval(()=>{if(u){O(m,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let re=u.getVideoPlaybackQuality().totalVideoFrames;O(p,re-r(f)),O(f,re,!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(Ce),ie&&clearInterval(ie)}});var I=f$();let M;var k=_(I);k.__click=[Xb,l];var j=P(k,2),H=_(j),F=P(_(H),2),Q=_(F,!0);h(F),h(H);var Z=P(H,2);{var Y=Ce=>{var ie=Jb(),re=P(_(ie),2),Re=_(re,!0);h(re),h(ie),B(()=>be(Re,r(a).id)),$(Ce,ie)};V(Z,Ce=>{r(a).id&&Ce(Y)})}var pe=P(Z,2);{var se=Ce=>{var ie=e$(),re=P(_(ie),2),Re=_(re,!0);h(re),h(ie),B(()=>be(Re,r(a).vsid)),$(Ce,ie)};V(pe,Ce=>{r(a).vsid&&Ce(se)})}var me=P(pe,2);{var $e=Ce=>{var ie=t$(),re=P(_(ie),2),Re=_(re,!0);h(re),h(ie),B(()=>be(Re,r(a).provider)),$(Ce,ie)};V(me,Ce=>{r(a).provider&&Ce($e)})}var ve=P(me,2);{var Ae=Ce=>{var ie=i$(),re=P(_(ie),2),Re=_(re);h(re),h(ie),B(()=>{var Ue,Ne;return be(Re,`Video: ${(Ue=r(a).videoCodec||"")!=null?Ue:""} ${r(a).hdr?"(HDR)":""}
137
+ }.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function rd(t,e){Q(t,Cb);let i=m(e,"withEqualizer",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1);var s=Sb();let l;var d=_(s);{var a=p=>{var x=yb();$(p,x)};L(d,p=>{i()&&p(a)})}var u=P(d,2);{var f=p=>{var x=xb(),w=_(x);nd(w,{isActive:!0}),h(x),$(p,x)},v=p=>{var x=wb(),w=_(x,!0);h(x),B(()=>$e(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 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 Tb=M('<div role="timer" data-testid="thumb-timer"><!></div>'),Eb={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 sd(t,e){U(e,!0),Q(t,Eb);let[i,o]=Fe(),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=Tb();let p;var x=_(v);rd(x,{get time(){return r(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),h(v),hs(v,()=>ll(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),z(),o()}var dl=t=>{if(!navigator.clipboard){i1(t);return}navigator.clipboard.writeText(t).catch(()=>i1(t))};function i1(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 Bb}from"@vkontakte/videoplayer-core/es2015";import{clientChecker as o1}from"@vkontakte/videoplayer-core/es2015";var gf="focus-hidden";var xr=t=>{t.stopPropagation(),t.preventDefault()},hf=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(gf)},kb=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},Pb=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},Ab=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},Mb=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},n1=t=>t.code==="Escape",Lb=t=>t.code==="ArrowLeft",ad=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},r1=t=>{Ab(t)?(xr(t),Pb(t.target)):Mb(t)&&(xr(t),kb(t.target))},Hs=t=>!o1.device.isAndroid&&(t==null?void 0:t.detail)===0||o1.device.isAndroid&&(t==null?void 0:t.pointerType)==="",cl=(t,e,i)=>xt(null,null,function*(){yield Po(),t&&!t.classList.contains("opened")&&!e&&we(i)&&(yield Po(),i.set(!1),t.focus())}),s1=(t,e,i)=>xt(null,null,function*(){yield Po(),t&&!e&&we(i)&&(i.set(!1),t.focus())}),ld=(t,e,i,o=!1)=>xt(null,null,function*(){if(yield Po(),!!t&&e&&!o){let s=t.children[0];s==null||s.classList.toggle(gf,!i),s==null||s.focus()}}),a1=(t,e)=>xt(null,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),ou=(t,e)=>{r1(t),hf(t.target),n1(t)&&(xr(t),e())},nu=(t,e)=>xt(null,null,function*(){ad(t,["ArrowRight"])&&(xr(t),e())}),l1=(t,e,i)=>xt(null,null,function*(){if(r1(t),Lb(t)){xr(t),e();return}n1(t)&&(xr(t),i())}),ul=(t,e)=>{ad(t)&&(xr(t),e())},d1=(t,e,i)=>{if(ad(t))xr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),xr(t);return}o==="ArrowRight"&&!e&&(i(!0),xr(t))}},c1=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},u1=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 ru,isValidURL as Db}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 p1}from"@vkontakte/videoplayer-shared/es2015";var Rb=(t,e)=>{ul(t,()=>e())},Nb=M('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),Ob={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 _f(t,e){U(e,!0),Q(t,Ob);let i=m(e,"onClick",3,p1),o=m(e,"closeContextMenu",3,p1),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var s=Nb();s.__click=n,s.__keydown=[Rb,n];var l=_(s,!0);h(s),B(()=>{var d;Ue(s,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Ue(s,"data-testid",e.id),$e(l,e.label)}),$(t,s),z()}dt(["click","keydown"]);var ha=(t,e)=>t.weight-e.weight;var dd=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(dd||{});var Hb=(t,e)=>{ou(t,e)},Fb=t=>{t.preventDefault()},Ub=M('<ul role="menu" class="svelte-1p5ukkp"></ul>'),zb={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 bf(t,e){U(e,!0),Q(t,zb);let[i,o]=Fe(),n=()=>C(ee,"$isLive$",i),s=()=>C(pe,"$isPiPEnabled$",i),l=()=>C(K,"$chromecastState$",i),d=()=>C(ye,"$pictureInPictureApiIsActive$",i),a=()=>C(oe,"$isLooped$",i),u=()=>C(j,"$positionExact$",i),f=()=>C(Z,"$additionalContextMenuItems$",i),v=m(e,"visible",3,!1),p=m(e,"position",19,()=>({top:0,left:0})),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=Ie(),{pictureInPicture$:V}=bo(),k=kt(),I=E.ui.contextMenu.visible$,R=E.ui.debugPanelVisible,Z=E.ui.additionalContextMenuItems$,H=E.ui.t,F=E.actions.internal.togglePictureInPicture,K=E.state.chromecastState$,ee=E.state.isLive$,j=E.state.positionExact$,ue=E.state.isInteractive,oe=E.state.looped$,{isEnabled$:pe,isActive$:ye}=V,me=g(()=>{var Ve;return k.features.copyVideoLink&&((Ve=E.callbacks)==null?void 0:Ve.onCopyVideoLink)}),Pe=g(()=>r(me)&&!n()&&!ue),re=g(()=>{var Ve;return!!((Ve=E.callbacks)!=null&&Ve.onCopyEmbedCodeClicked)}),Re=g(()=>s()&&l()!==Bb.CONNECTED&&!ue),se=g(()=>!ue),N=g(()=>k.features.videoRotate&&!ue),De=g(()=>k.showSupport&&!d()),de=g(()=>k.features.saveTraceInfoToFile),ge=()=>{var Ve;I.set(!1),(Ve=e.returnFocus)==null||Ve.call(e)},ie=(Ve,Ye)=>{if(!y()||!x()||!w())return;let Be=y().getBoundingClientRect(),et=x().getBoundingClientRect();O(S,Ve-et.left),O(T,Ye-et.top),r(S)+Be.width>et.width&&O(S,et.width-Be.width),r(T)+Be.height>et.height&&O(T,et.height-Be.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 Po();let{top:Ye,left:Be,bottom:et,right:Lt}=p(),Kt=Be!=null?Be:0,tt=Ye!=null?Ye:0,wi=y().getBoundingClientRect();ru(Be)&&!ru(Lt)&&(Kt=Lt-wi.width),ru(Ye)&&!ru(et)&&(tt=et-wi.height),Kt=Math.max(Kt,0),tt=Math.max(tt,0),ie(Kt,tt)}})});let ve=()=>{E.actions.internal.videoRotate()},He=()=>{Db(e.supportLink)&&window.open(e.supportLink,"_blank"),E.actions.internal.reportProblem(),E.actions.internal.pause()},fe=()=>{let Ve=E.actions.internal.getDebugTextData();if(k.features.saveDebugInfoToFile){let Ye=new Blob([...Ve],{type:"plain/text"}),Be=window.URL.createObjectURL(Ye);pa(Be,"vk_player_debug_info","txt")}else dl(E.actions.internal.getDebugTextData())},at=()=>{let Ve=E.actions.internal.getTraceTextData(),Ye=new Blob([...Ve],{type:"application/json"}),Be=window.URL.createObjectURL(Ye);pa(Be,"vk_player_trace_info","json")},X=()=>{R.set(!0)},Me=()=>xt(null,null,function*(){var Ve;try{F()}finally{(Ve=e.returnFocus)==null||Ve.call(e)}}),ke=()=>{E.actions.internal.setLooped(!a())},We=()=>{var Ve,Ye;if(r(re)){let Be=(Ye=(Ve=E.callbacks)==null?void 0:Ve.onCopyEmbedCodeClicked)==null?void 0:Ye.call(Ve);Be&&dl(Be)}},lt=(Ve=!1)=>{var Ye,Be;if((Ye=E.callbacks)!=null&&Ye.onCopyVideoLink){let et=(Be=E.callbacks)==null?void 0:Be.onCopyVideoLink(Ve,u());et&&dl(et)}},mt=g(()=>k.features.saveDebugInfoToFile?H("menu_save_debug"):H("menu_copy_debug")),vt=g(()=>r(me)?{id:"copy-link",weight:zr["copy-link"],label:H("menu_copy_video_link"),onClick:()=>lt()}:void 0),Ct=g(()=>r(Pe)?{id:"copy-link-timestamp",weight:zr["copy-link-timestamp"],label:H("menu_copy_video_link_with_timestamp"),onClick:()=>lt(!0)}:void 0),je=g(()=>r(re)?{id:"copy-embed-code",weight:zr["copy-embed-code"],label:H("menu_copy_embed_code"),onClick:We}:void 0),Ft=g(()=>r(Re)?{id:"pip",weight:zr.pip,label:d()?H("menu_pip_close"):H("menu_pip"),onClick:Me}:void 0),ti=g(()=>r(se)?{id:"video-loop",weight:zr["video-loop"],label:a()?H("menu_video_loop_off"):H("menu_video_loop_on"),ariaLabel:H("aria_label_menu_loop"),onClick:ke}:void 0),Gt=g(()=>r(N)?{id:"rotate",weight:zr.rotate,label:H("menu_video_rotate"),ariaLabel:H("aria_label_menu_rotate"),onClick:ve}:void 0),Wt=g(()=>r(De)?{id:"report",weight:zr.report,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,onClick:He}:void 0),ne=g(()=>({id:"save-debug",weight:zr["save-debug"],label:r(mt),onClick:fe})),Ut=g(()=>r(de)?{id:"save-trace",weight:zr["save-trace"],label:H("menu_save_debug"),onClick:at}:void 0),_e=g(()=>({id:"debug-info",weight:zr["debug-info"],label:H("menu_debug_overlay"),ariaLabel:H("aria_label_menu_debug_overlay"),onClick:X})),Se=g(()=>[r(vt),r(Ct),r(je),r(Ft),r(ti),r(Gt),r(Wt),r(ne),r(Ut),r(_e),...f()].filter(Ve=>!!Ve).sort(ha));var le=Ke(),Ne=he(le);{var Qe=Ve=>{var Ye=Ub();Ye.__contextmenu=[Fb],Ye.__keydown=[Hb,ge],Ti(Ye,21,()=>r(Se),Be=>Be.id,(Be,et)=>{_f(Be,{get id(){return r(et).id},get label(){return r(et).label},get ariaLabel(){return r(et).ariaLabel},get onClick(){return r(et).onClick},closeContextMenu:ge})}),h(Ye),ot(Ye,Be=>y(Be),()=>y()),B(()=>{var Be,et;return st(Ye,`top: ${(Be=r(T))!=null?Be:""}px; left: ${(et=r(S))!=null?et:""}px;`)}),$(Ve,Ye)};L(Ne,Ve=>{v()&&Ve(Qe)})}$(t,le),z(),o()}dt(["contextmenu","keydown"]);var su=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 su(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 Wb=M('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),Kb={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 cd(t,e){U(e,!0),Q(t,Kb);let i=m(e,"values",19,()=>[]),o=Y(void 0),n=Y(null),s=16,l=120,d=60,a=l/d;Mt(()=>{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=Wb(),v=_(f);ot(v,p=>O(o,p),()=>r(o)),h(f),$(t,f),z()}import{safeStorage as f1}from"@vkontakte/videoplayer-shared/es2015";var qb=(t,e)=>{t.stopPropagation(),f1.remove(Yl),e.set(!1)},Qb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),Gb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),jb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),Yb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),Zb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),Xb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),Jb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),e$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),t$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),i$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),o$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),n$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),r$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),s$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),a$=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>'),l$={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 ud(t,e){U(e,!0),Q(t,l$);let[i,o]=Fe(),n=()=>C(d,"$isMobile",i),s=Ie(),l=s.ui.debugPanelVisible,d=s.ui.isMobile,a=Y(ai(s.actions.internal.getDebugPanelData())),u=s.actions.internal.getVideoElement(),f=Y(0),v=Y(0),p=Y(0),x=new pl(60),w=new pl(60),y=new pl(60),S=Y(ai([])),T=Y(ai([])),E=Y(ai([])),V=q("aria_label_debug_panel");Mt(()=>{f1.set(Yl,"true"),s.actions.internal.startLogging(),u&&(O(v,u.getVideoPlaybackQuality().droppedVideoFrames,!0),O(f,u.getVideoPlaybackQuality().totalVideoFrames,!0));let _e=window.setInterval(()=>{O(a,s.actions.internal.getDebugPanelData(),!0)},500),Se;return u&&(Se=window.setInterval(()=>{if(u){O(v,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let le=u.getVideoPlaybackQuality().totalVideoFrames;O(p,le-r(f)),O(f,le,!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(_e),Se&&clearInterval(Se)}});var k=a$();let I;var R=_(k);R.__click=[qb,l];var Z=P(R,2),H=_(Z),F=P(_(H),2),K=_(F,!0);h(F),h(H);var ee=P(H,2);{var j=_e=>{var Se=Qb(),le=P(_(Se),2),Ne=_(le,!0);h(le),h(Se),B(()=>$e(Ne,r(a).id)),$(_e,Se)};L(ee,_e=>{r(a).id&&_e(j)})}var ue=P(ee,2);{var oe=_e=>{var Se=Gb(),le=P(_(Se),2),Ne=_(le,!0);h(le),h(Se),B(()=>$e(Ne,r(a).vsid)),$(_e,Se)};L(ue,_e=>{r(a).vsid&&_e(oe)})}var pe=P(ue,2);{var ye=_e=>{var Se=jb(),le=P(_(Se),2),Ne=_(le,!0);h(le),h(Se),B(()=>$e(Ne,r(a).provider)),$(_e,Se)};L(pe,_e=>{r(a).provider&&_e(ye)})}var me=P(pe,2);{var Pe=_e=>{var Se=Yb(),le=P(_(Se),2),Ne=_(le);h(le),h(Se),B(()=>{var Qe,Ve;return $e(Ne,`Video: ${(Qe=r(a).videoCodec||"")!=null?Qe:""} ${r(a).hdr?"(HDR)":""}
139
139
  &
140
- Audio: ${(Ne=r(a).audioCodec||"")!=null?Ne:""} ${r(a).audioLanguage?`(${r(a).audioLanguage})`:""}`)}),$(Ce,ie)};V(ve,Ce=>{(r(a).videoCodec||r(a).audioCodec)&&Ce(Ae)})}var ae=P(ve,2);{var Ve=Ce=>{var ie=o$(),re=P(_(ie),2),Re=_(re,!0);h(re),h(ie),B(()=>be(Re,r(a).viewport)),$(Ce,ie)};V(ae,Ce=>{r(a).viewport&&Ce(Ve)})}var le=P(ae,2);{var N=Ce=>{var ie=n$(),re=P(_(ie),2),Re=_(re,!0);h(re),h(ie),B(()=>be(Re,r(a).videoSize)),$(Ce,ie)};V(le,Ce=>{r(a).videoSize&&Ce(N)})}var De=P(le,2);{var ue=Ce=>{var ie=r$(),re=P(_(ie),2),Re=_(re,!0);h(re),h(ie),B(()=>be(Re,r(a).cdn)),$(Ce,ie)};V(De,Ce=>{r(a).cdn&&Ce(ue)})}var _e=P(De,2);{var ne=Ce=>{var ie=s$(),re=P(_(ie),2),Re=_(re);h(re),h(ie),B(()=>{var Ue;return be(Re,`${(Ue=r(a).volume)!=null?Ue:""} %`)}),$(Ce,ie)};V(_e,Ce=>{r(a).volume&&Ce(ne)})}var ge=P(_e,2);{var He=Ce=>{var ie=a$(),re=P(_(ie),2),Re=_(re);h(re),h(ie),B(Ue=>be(Re,`${Ue!=null?Ue:""} s`),[()=>r(a).position.toFixed(2)]),$(Ce,ie)};V(ge,Ce=>{r(a).position&&Ce(He)})}var fe=P(ge,2);{var st=Ce=>{var ie=l$(),re=P(_(ie),2),Re=_(re);h(re),h(ie),B(Ue=>be(Re,`${Ue!=null?Ue:""} s`),[()=>r(a).buffer.toFixed(2)]),$(Ce,ie)};V(fe,Ce=>{r(a).buffer&&Ce(st)})}var J=P(fe,2);{var Me=Ce=>{var ie=d$(),re=P(_(ie),2),Re=_(re);h(re),h(ie),B(Ue=>be(Re,`${Ue!=null?Ue:""} s`),[()=>r(a).liveLatency.toFixed(2)]),$(Ce,ie)};V(J,Ce=>{r(a).liveLatency&&Ce(Me)})}var Pe=P(J,2);{var We=Ce=>{var ie=c$(),re=P(_(ie),2),Re=_(re,!0);h(re),h(ie),B(Ue=>be(Re,Ue),[()=>[{value:r(a).currentVideoSegmentLength,title:"Video:"},{value:r(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Ue})=>Ue).map(({value:Ue,title:Ne})=>`${Ne} ${((Ue!=null?Ue:0)/1e3).toFixed(2)} s`).join(" & ")]),$(Ce,ie)};V(Pe,Ce=>{(r(a).currentVideoSegmentLength||r(a).currentAudioSegmentLength)&&Ce(We)})}var rt=P(Pe,2),_t=P(_(rt),2),lt=_(_t);h(_t),h(rt);var xt=P(rt,2);{var Je=Ce=>{var ie=u$(),re=P(_(ie),2);md(re,{get values(){return r(T)}});var Re=P(re,2),Ue=_(Re);h(Re),h(ie),B(Ne=>be(Ue,`${Ne!=null?Ne:""} Kbps`),[()=>r(a).speed.toFixed(2)]),$(Ce,ie)};V(xt,Ce=>{r(a).speed&&Ce(Je)})}var zt=P(xt,2);{var ti=Ce=>{var ie=p$(),re=P(_(ie),2);md(re,{get values(){return r(E)}});var Re=P(re,2),Ue=_(Re);h(Re),h(ie),B(Ne=>be(Ue,`${Ne!=null?Ne:""} Kbps`),[()=>r(a).bitrate.toFixed(2)]),$(Ce,ie)};V(zt,Ce=>{r(a).bitrate&&Ce(ti)})}var Ft=P(zt,2),Yt=P(_(Ft),2);md(Yt,{get values(){return r(S)}});var Ie=P(Yt,2),qt=_(Ie,!0);h(Ie),h(Ft),h(j),h(I),B(Ce=>{var ie,re;M=oe(I,1,"container svelte-4deykz",null,M,Ce),ze(I,"aria-label",R),be(Q,r(a).version),be(lt,`${(ie=r(m))!=null?ie:""} / ${(re=r(f))!=null?re:""} frames`),be(qt,r(p))},[()=>({"container-mobile":n()})]),$(t,I),z(),o()}at(["click"]);import{noop as v$}from"@vkontakte/videoplayer-shared/es2015";var g$=(t,e)=>{t.stopPropagation(),e()()},h$=A('<div class="close svelte-1ome55p"></div>'),_$={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 _a(t,e){U(e,!0),q(t,_$);let i=v(e,"onClick",3,v$);var o=h$();o.__click=[g$,i],$(t,o),z()}at(["click"]);import{noop as b$}from"@vkontakte/videoplayer-shared/es2015";var $$=A('<div class="timer svelte-8jhsry"><canvas class="timer-canvas svelte-8jhsry" width="100" height="100"></canvas> <svg class="timer-play-icon svelte-8jhsry" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill-rule="nonzero"><path class="_play" d="m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z" fill="var(--btn-color, #fff)"></path></g></g></svg></div>'),y$={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){U(e,!0),q(t,y$);let i=v(e,"isRunning",3,!0),o=v(e,"onTimerEnded",3,b$),n=5e3,s=X(void 0),l,d,a=0,u;Ge(()=>{i()&&yt(()=>{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")}),tn(()=>{f()});var p=$$(),x=_(p);tt(x,w=>O(s,w),()=>r(s)),we(2),h(p),$(t,p),z()}var x$=(t,e,i)=>{e(!1),i()},w$=A('<div class="overlay svelte-jfbaax"></div> <div class="next-video svelte-jfbaax"><div class="top svelte-jfbaax"><div class="caption svelte-jfbaax"> </div> <!></div> <div class="row svelte-jfbaax"><div class="column svelte-jfbaax"><div class="thumb svelte-jfbaax"><div></div> <!></div></div> <div class="column svelte-jfbaax"><div class="title svelte-jfbaax"> </div></div></div></div>',1),S$={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 If(t,e){U(e,!0),q(t,S$);let[i,o]=Fe(),n=()=>C(d,"$autoplayNextEnabled$",i),s=()=>C(a,"$timerNextVideoRunning$",i),l=Ee(),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,w=()=>{n()&&(u(!1),p())},y=()=>{e.clickCloseIcon(),x()};Rt(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var S=Qe(),T=he(S);{var E=R=>{var I=w$(),M=P(he(I),2),k=_(M),j=_(k),H=_(j,!0);h(j);var F=P(j,2);_a(F,{onClick:y}),h(k);var Q=P(k,2);Q.__click=[x$,u,m];var Z=_(Q),Y=_(Z),pe=_(Y);let se;var me=P(pe,2);{var $e=Ve=>{let le=g(()=>s()&&n());gd(Ve,{get isRunning(){return r(le)},onTimerEnded:w})};V(me,Ve=>{n()&&Ve($e)})}h(Y),h(Z);var ve=P(Z,2),Ae=_(ve),ae=_(Ae,!0);h(Ae),h(ve),h(Q),h(M),B((Ve,le)=>{be(H,Ve),nt(Y,`background-image: url('${e.thumb}')`),se=oe(pe,1,"thumb-overlay svelte-jfbaax",null,se,le),be(ae,e.title)},[()=>K("end_screen_next_video"),()=>({withOpacity:n()})]),$(R,I)};V(T,R=>{e.isHide||R(E)})}$(t,S),z(),o()}at(["click"]);import{PlaybackState as ba}from"@vkontakte/videoplayer-core/es2015";import{checkNever as T$}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as Bn}from"@vkontakte/videoplayer-statistics/es2015";var kf=(t,e)=>Math.min(+(t+e).toFixed(2),1),Pf=(t,e)=>Math.max(+(t-e).toFixed(2),0),pu=(t,e,i)=>{let o=kf(e,i);e<1?t.actions.internal.setVolume(o):xe(t.state.muted$)&&t.actions.internal.setMuted(!1)},fu=(t,e,i)=>{let o=Pf(e,i);e>0&&t.actions.internal.setVolume(o)};var Us=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var E$=(t,e)=>{e(t)},I$=A('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),k$={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Af(t,e){var qt,Ce;U(e,!0),q(t,k$);let[i,o]=Fe(),n=()=>C(se,"$disabledControls$",i),s=()=>C(N,"$doubleForwardOn$",i),l=()=>C(st,"$isInteractiveTime$",i),d=()=>C(J,"$showInteractiveTimeIndicatorTooltip$",i),a=()=>C(F,"$playbackState$",i),u=()=>C(ue,"$isEnded$",i),f=()=>C(Q,"$adPlaybackState",i),m=()=>C(Z,"$positionExact$",i),p=()=>C(Y,"$duration$",i),x=()=>C(He,"$isAudioAvailable$",i),w=()=>C(pe,"$volume$",i),y=()=>C(Ae,"$availablePlaybackRates$",i),S=()=>C(ve,"$currentPlaybackRate$",i),T=()=>C(me,"$muted$",i),E=()=>C($e,"$currentSubtitle$",i),R=()=>C(_e,"$overlayContainer$",i),I=v(e,"nextButtonActive",3,!1),M=v(e,"prevButtonActive",3,!1),k=Ee(),j=kt(),H=k.getLogger().createComponentLog("KeyboardControls component"),F=k.state.playbackState$,Q=k.ads.playbackState,Z=k.state.positionExact$,Y=k.state.duration$,pe=k.state.volume$,se=k.ui.controls.disabledControls$,me=k.state.muted$,$e=k.state.currentSubtitle$,ve=k.state.currentPlaybackRate$,Ae=k.state.availablePlaybackRates$,ae=k.ui.contextMenu.openedByHotKey$,Ve=k.ui.contextMenu.lastActiveElem$,le=k.ui.contextMenu.visible$,N=k.ui.doubleForwardOn$,De=k.ui.contextMenu.position$,ue=k.state.isEnded$,_e=k.ui.overlayContainer$,ne=(qt=k.callbacks)==null?void 0:qt.onAudioDoesNotExistHint,ge=(Ce=k.callbacks)==null?void 0:Ce.onAudioDisabledHint,He=k.state.isAudioAvailable$,fe=k.state.isAudioDisabled,st=k.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:J}=fo(),Me=0,Pe=!0,We=X(void 0),rt=ie=>(ie!==Pe&&(Pe=ie,Me=0),Me+=1,(j.controls.seekStepKeyboard+j.controls.seekStepKeyboard*Me)/1e3),_t=(ie,re)=>{let Re=()=>{if(!n().has("PLAY_BUTTON")&&!s())if(l()&&d()&&J.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{k.actions.internal.togglePlay();let Ue="PLAY";a()===ba.PAUSED?Ue="PAUSE":u()&&(Ue="REPLAY"),e.showHotKeyHelpers({type:Ue})}};if(!j.features.doubleForwardAvailable){Re();return}ie==="down"?!re&&e.startDoubleForwardActivationTimer():(e.stopDoubleForward(),Re())},lt=(ie,re=!1)=>{var Ri,Zt;let Re=ie.target,Ue=(Ri=Re==null?void 0:Re.getAttribute("role"))==null?void 0:Ri.includes("menuitem"),Ne=Re.classList.contains("btn"),Ke=ie.code;if(Ne&&Ke==="Space")return!1;let Oe=wh.has(Ke);if(Ue&&Oe)return!1;let et=!xh.has(Ke);if(ie.ctrlKey&&et||ie.altKey&&et||ie.metaKey)return!1;let Wt=Ue&&Ke==="Escape";Sh.has(Ke)||Wt||e.hideContextMenu();let Qt=a()===ba.PLAYING||a()===ba.PAUSED,Et=e.isAds&&(f()==="paused"||f()==="playing"),yi=!Et&&!n().has("TIMELINE");if(!(Qt||Et))return!1;H({message:`key down, code: ${Ke}, isExternal = ${re}`});let bi=!1,ct=()=>{bi=!0,re||ie.preventDefault()};switch(Ke){case"KeyJ":case"ArrowLeft":{if(!yi)break;if(ie.ctrlKey||ie.altKey){let dt=k.actions.internal.getPrevEpisode();k.actions.internal.seekToPrevEpisode(dt),dt&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:dt.text}),ct()}else{let dt=ie.shiftKey?rt(!1):j.controls.seekStepKeyboard/1e3,di=Math.max(m()-dt,0);m()>0&&(k.actions.internal.seekTime(di,Bn.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:dt.toString()}),ct())}break}case"KeyL":case"ArrowRight":{if(!yi)break;if(ie.ctrlKey||ie.altKey){let dt=k.actions.internal.getNextEpisode();k.actions.internal.seekToNextEpisode(dt),dt&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:dt.text}),ct()}else{let dt=ie.shiftKey?rt(!0):j.controls.seekStepKeyboard/1e3,di=Math.min(m()+dt,p());Math.round(m())<Math.round(p())&&(k.actions.internal.seekTime(di,Bn.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:dt.toString()}),ct())}break}case"ArrowUp":{if(Us({isAudioDisabled:fe,audioDisabledHintCallback:ge,isAudioAvailable:x(),audioIsNotExistHintCallback:ne,isAds:e.isAds})){let dt=w(),di=j.controls.volumeStepKeyboard,Ni=dt<=1;if(pu(k,dt,di),Ni){let Mt=Math.round(kf(dt,di)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Mt}})}}ct();break}case"ArrowDown":{if(Us({isAudioDisabled:fe,audioDisabledHintCallback:ge,isAudioAvailable:x(),audioIsNotExistHintCallback:ne,isAds:e.isAds})){let dt=w(),di=j.controls.volumeStepKeyboard,Ni=dt>=0;if(fu(k,dt,di),Ni){let Mt=Math.round(Pf(dt,di)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Mt}})}}ct();break}case"Comma":{if(ie.shiftKey){k.actions.internal.decrementPlaybackRate();let dt=y().find(di=>di.value===S());e.showHotKeyHelpers({type:"RATE_DOWN",text:dt==null?void 0:dt.displayValue}),ct()}else{if(Et||a()!==ba.PAUSED)break;let dt=Math.max(m()-j.controls.seekStepFrame/1e3,0);m()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),k.actions.internal.clearDelayedBufferingCheckTimeout(),k.actions.internal.seekTime(dt,Bn.DOUBLE_TAP),ct())}break}case"Period":{if(ie.shiftKey){k.actions.internal.incrementPlaybackRate();let dt=y().find(di=>di.value===S());e.showHotKeyHelpers({type:"RATE_UP",text:dt==null?void 0:dt.displayValue}),ct()}else{if(Et||a()!==ba.PAUSED)break;let dt=Math.min(m()+j.controls.seekStepFrame/1e3,p());m()<p()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),k.actions.internal.clearDelayedBufferingCheckTimeout(),k.actions.internal.seekTime(dt,Bn.DOUBLE_TAP),ct())}break}case"KeyK":case"Space":_t("down",ie.repeat),ct();break;case"KeyM":{Us({isAudioDisabled:fe,audioDisabledHintCallback:ge,isAudioAvailable:x(),audioIsNotExistHintCallback:ne,isAds:e.isAds})&&(e.showHotKeyHelpers({type:T()?"VOLUME":"MUTE"}),k.actions.internal.toggleMuted()),ct();break}case"KeyF":e.toggleFullscreen(),ct();break;case"KeyC":k.actions.internal.toggleSubtitle(),E().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(Zt=E())==null?void 0:Zt.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),ct();break;case"KeyI":k.actions.internal.togglePictureInPicture(),ct();break;case"Digit1":case"Numpad1":if(ie.shiftKey){let dt=y1(R());De.set(dt),Ve.set(Re),ae.set(!0),le.set(!0),ct();break}e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.1,Bn.DOUBLE_TAP),ct();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.2,Bn.DOUBLE_TAP),ct();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.3,Bn.DOUBLE_TAP),ct();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.4,Bn.DOUBLE_TAP),ct();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.5,Bn.DOUBLE_TAP),ct();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.6,Bn.DOUBLE_TAP),ct();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.7,Bn.DOUBLE_TAP),ct();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.8,Bn.DOUBLE_TAP),ct();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.9,Bn.DOUBLE_TAP),ct();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(0,Bn.DOUBLE_TAP),ct();break;case"Slash":{ie.shiftKey&&j.features.hotKeyMapModal&&(e.showKeyMap(),ct());break}case"KeyN":ie.shiftKey&&I()&&(k.actions.internal.nextVideoClick(),ct());break;case"KeyP":ie.shiftKey&&M()&&(k.actions.internal.prevVideoClick(),ct());break;case"ShiftLeft":case"ShiftRight":ct();break;case"Tab":case"Escape":case"Enter":break;default:T$(Ke);break}return bi},xt=ie=>{let re=ie.code;if(ie.ctrlKey||ie.altKey||ie.metaKey)return;let Re=a()===ba.PLAYING||a()===ba.PAUSED,Ue=e.isAds&&(f()==="paused"||f()==="playing");if(Re||Ue)switch(re){case"ShiftLeft":case"ShiftRight":Me=0;break;case"Space":_t("up");break}},Je=K("aria_label_video_player"),zt=()=>{var ie;return(ie=r(We))==null?void 0:ie.focus()},ti=ie=>ie.type==="keydown"?lt(ie,!0):(ie.type==="keyup"&&xt(ie),!1);var Ft=I$();Ft.__keyup=xt,Ft.__keydown=[E$,lt];var Yt=_(Ft);ye(Yt,()=>{var ie;return(ie=e.children)!=null?ie:ce}),h(Ft),tt(Ft,ie=>O(We,ie),()=>r(We)),B(()=>ze(Ft,"aria-label",Je)),$(t,Ft);var Ie=z({focus:zt,handleExternalKeyboardEvent:ti});return o(),Ie}at(["keyup","keydown"]);var P$=A('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),A$={hash:"svelte-1dbnjb1",code:`.container.svelte-1dbnjb1 {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex;}.dot.svelte-1dbnjb1:nth-child(1) {animation-delay:calc(0 * 180ms);}.dot.svelte-1dbnjb1:nth-child(2) {animation-delay:calc(1 * 180ms);}.dot.svelte-1dbnjb1:nth-child(3) {animation-delay:calc(2 * 180ms);}
140
+ Audio: ${(Ve=r(a).audioCodec||"")!=null?Ve:""} ${r(a).audioLanguage?`(${r(a).audioLanguage})`:""}`)}),$(_e,Se)};L(me,_e=>{(r(a).videoCodec||r(a).audioCodec)&&_e(Pe)})}var re=P(me,2);{var Re=_e=>{var Se=Zb(),le=P(_(Se),2),Ne=_(le,!0);h(le),h(Se),B(()=>$e(Ne,r(a).viewport)),$(_e,Se)};L(re,_e=>{r(a).viewport&&_e(Re)})}var se=P(re,2);{var N=_e=>{var Se=Xb(),le=P(_(Se),2),Ne=_(le,!0);h(le),h(Se),B(()=>$e(Ne,r(a).videoSize)),$(_e,Se)};L(se,_e=>{r(a).videoSize&&_e(N)})}var De=P(se,2);{var de=_e=>{var Se=Jb(),le=P(_(Se),2),Ne=_(le,!0);h(le),h(Se),B(()=>$e(Ne,r(a).cdn)),$(_e,Se)};L(De,_e=>{r(a).cdn&&_e(de)})}var ge=P(De,2);{var ie=_e=>{var Se=e$(),le=P(_(Se),2),Ne=_(le);h(le),h(Se),B(()=>{var Qe;return $e(Ne,`${(Qe=r(a).volume)!=null?Qe:""} %`)}),$(_e,Se)};L(ge,_e=>{r(a).volume&&_e(ie)})}var ve=P(ge,2);{var He=_e=>{var Se=t$(),le=P(_(Se),2),Ne=_(le);h(le),h(Se),B(Qe=>$e(Ne,`${Qe!=null?Qe:""} s`),[()=>r(a).position.toFixed(2)]),$(_e,Se)};L(ve,_e=>{r(a).position&&_e(He)})}var fe=P(ve,2);{var at=_e=>{var Se=i$(),le=P(_(Se),2),Ne=_(le);h(le),h(Se),B(Qe=>$e(Ne,`${Qe!=null?Qe:""} s`),[()=>r(a).buffer.toFixed(2)]),$(_e,Se)};L(fe,_e=>{r(a).buffer&&_e(at)})}var X=P(fe,2);{var Me=_e=>{var Se=o$(),le=P(_(Se),2),Ne=_(le);h(le),h(Se),B(Qe=>$e(Ne,`${Qe!=null?Qe:""} s`),[()=>r(a).liveLatency.toFixed(2)]),$(_e,Se)};L(X,_e=>{r(a).liveLatency&&_e(Me)})}var ke=P(X,2);{var We=_e=>{var Se=n$(),le=P(_(Se),2),Ne=_(le,!0);h(le),h(Se),B(Qe=>$e(Ne,Qe),[()=>[{value:r(a).currentVideoSegmentLength,title:"Video:"},{value:r(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Qe})=>Qe).map(({value:Qe,title:Ve})=>`${Ve} ${((Qe!=null?Qe:0)/1e3).toFixed(2)} s`).join(" & ")]),$(_e,Se)};L(ke,_e=>{(r(a).currentVideoSegmentLength||r(a).currentAudioSegmentLength)&&_e(We)})}var lt=P(ke,2),mt=P(_(lt),2),vt=_(mt);h(mt),h(lt);var Ct=P(lt,2);{var je=_e=>{var Se=r$(),le=P(_(Se),2);cd(le,{get values(){return r(T)}});var Ne=P(le,2),Qe=_(Ne);h(Ne),h(Se),B(Ve=>$e(Qe,`${Ve!=null?Ve:""} Kbps`),[()=>r(a).speed.toFixed(2)]),$(_e,Se)};L(Ct,_e=>{r(a).speed&&_e(je)})}var Ft=P(Ct,2);{var ti=_e=>{var Se=s$(),le=P(_(Se),2);cd(le,{get values(){return r(E)}});var Ne=P(le,2),Qe=_(Ne);h(Ne),h(Se),B(Ve=>$e(Qe,`${Ve!=null?Ve:""} Kbps`),[()=>r(a).bitrate.toFixed(2)]),$(_e,Se)};L(Ft,_e=>{r(a).bitrate&&_e(ti)})}var Gt=P(Ft,2),Wt=P(_(Gt),2);cd(Wt,{get values(){return r(S)}});var ne=P(Wt,2),Ut=_(ne,!0);h(ne),h(Gt),h(Z),h(k),B(_e=>{var Se,le;I=te(k,1,"container svelte-4deykz",null,I,_e),Ue(k,"aria-label",V),$e(K,r(a).version),$e(vt,`${(Se=r(v))!=null?Se:""} / ${(le=r(f))!=null?le:""} frames`),$e(Ut,r(p))},[()=>({"container-mobile":n()})]),$(t,k),z(),o()}dt(["click"]);import{noop as d$}from"@vkontakte/videoplayer-shared/es2015";var c$=(t,e)=>{t.stopPropagation(),e()()},u$=M('<div class="close svelte-1ome55p"></div>'),p$={hash:"svelte-1ome55p",code:".close.svelte-1ome55p {cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px;}.close.svelte-1ome55p:hover {opacity:1;}.close.svelte-1ome55p:before, .close.svelte-1ome55p:after {position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white);}.close.svelte-1ome55p:before {transform:rotate(45deg);}.close.svelte-1ome55p:after {transform:rotate(-45deg);}"};function _a(t,e){U(e,!0),Q(t,p$);let i=m(e,"onClick",3,d$);var o=u$();o.__click=[c$,i],$(t,o),z()}dt(["click"]);import{noop as f$}from"@vkontakte/videoplayer-shared/es2015";var m$=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>'),v$={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 pd(t,e){U(e,!0),Q(t,v$);let i=m(e,"isRunning",3,!0),o=m(e,"onTimerEnded",3,f$),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()())};Mt(()=>{l=r(s).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),nn(()=>{f()});var p=m$(),x=_(p);ot(x,w=>O(s,w),()=>r(s)),Te(2),h(p),$(t,p),z()}var g$=(t,e,i)=>{e(!1),i()},h$=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),_$={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 $f(t,e){U(e,!0),Q(t,_$);let[i,o]=Fe(),n=()=>C(d,"$autoplayNextEnabled$",i),s=()=>C(a,"$timerNextVideoRunning$",i),l=Ie(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,p=l.actions.internal.nextVideoAnnouncementAuto,x=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(u(!1),p())},y=()=>{e.clickCloseIcon(),x()};Mt(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var S=Ke(),T=he(S);{var E=V=>{var k=h$(),I=P(he(k),2),R=_(I),Z=_(R),H=_(Z,!0);h(Z);var F=P(Z,2);_a(F,{onClick:y}),h(R);var K=P(R,2);K.__click=[g$,u,v];var ee=_(K),j=_(ee),ue=_(j);let oe;var pe=P(ue,2);{var ye=Re=>{let se=g(()=>s()&&n());pd(Re,{get isRunning(){return r(se)},onTimerEnded:w})};L(pe,Re=>{n()&&Re(ye)})}h(j),h(ee);var me=P(ee,2),Pe=_(me),re=_(Pe,!0);h(Pe),h(me),h(K),h(I),B((Re,se)=>{$e(H,Re),st(j,`background-image: url('${e.thumb}')`),oe=te(ue,1,"thumb-overlay svelte-jfbaax",null,oe,se),$e(re,e.title)},[()=>q("end_screen_next_video"),()=>({withOpacity:n()})]),$(V,k)};L(T,V=>{e.isHide||V(E)})}$(t,S),z(),o()}dt(["click"]);import{PlaybackState as ba}from"@vkontakte/videoplayer-core/es2015";import{checkNever as $$}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as Bn}from"@vkontakte/videoplayer-statistics/es2015";var yf=(t,e)=>Math.min(+(t+e).toFixed(2),1),xf=(t,e)=>Math.max(+(t-e).toFixed(2),0),au=(t,e,i)=>{let o=yf(e,i);e<1?t.actions.internal.setVolume(o):we(t.state.muted$)&&t.actions.internal.setMuted(!1)},lu=(t,e,i)=>{let o=xf(e,i);e>0&&t.actions.internal.setVolume(o)};var Fs=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var y$=(t,e)=>{e(t)},x$=M('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),w$={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function wf(t,e){var Gt,Wt;U(e,!0),Q(t,w$);let[i,o]=Fe(),n=()=>C(H,"$playbackState$",i),s=()=>C(F,"$adPlaybackState",i),l=()=>C(ue,"$disabledControls$",i),d=()=>C(K,"$positionExact$",i),a=()=>C(ee,"$duration$",i),u=()=>C(ie,"$isAudioAvailable$",i),f=()=>C(j,"$volume$",i),v=()=>C(me,"$availablePlaybackRates$",i),p=()=>C(ye,"$currentPlaybackRate$",i),x=()=>C(He,"$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=Ie(),R=kt(),Z=I.getLogger().createComponentLog("KeyboardControls component"),H=I.state.playbackState$,F=I.ads.playbackState,K=I.state.positionExact$,ee=I.state.duration$,j=I.state.volume$,ue=I.ui.controls.disabledControls$,oe=I.state.muted$,pe=I.state.currentSubtitle$,ye=I.state.currentPlaybackRate$,me=I.state.availablePlaybackRates$,Pe=I.ui.contextMenu.openedByHotKey$,re=I.ui.contextMenu.lastActiveElem$,Re=I.ui.contextMenu.visible$,se=I.ui.contextMenu.position$,N=I.state.isEnded$,De=I.ui.overlayContainer$,de=(Gt=I.callbacks)==null?void 0:Gt.onAudioDoesNotExistHint,ge=(Wt=I.callbacks)==null?void 0:Wt.onAudioDisabledHint,ie=I.state.isAudioAvailable$,ve=I.state.isAudioDisabled,He=I.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:fe}=bo(),at=0,X=!0,Me=Y(void 0),ke=ne=>(ne!==X&&(X=ne,at=0),at+=1,(R.controls.seekStepKeyboard+R.controls.seekStepKeyboard*at)/1e3),We=(ne,Ut=!1)=>{var wi,_i;let _e=ne.target,Se=(wi=_e==null?void 0:_e.getAttribute("role"))==null?void 0:wi.includes("menuitem"),le=_e.classList.contains("btn"),Ne=ne.code;if(le&&Ne==="Space")return!1;let Qe=fh.has(Ne);if(Se&&Qe)return!1;let Ve=!ph.has(Ne);if(ne.ctrlKey&&Ve||ne.altKey&&Ve||ne.metaKey)return!1;let Ye=Se&&Ne==="Escape";mh.has(Ne)||Ye||e.hideContextMenu();let Be=n()===ba.PLAYING||n()===ba.PAUSED,et=e.isAds&&(s()==="paused"||s()==="playing"),Lt=!et&&!l().has("TIMELINE");if(!(Be||et))return!1;Z({message:`key down, code: ${Ne}, isExternal = ${Ut}`});let Kt=!1,tt=()=>{Kt=!0,Ut||ne.preventDefault()};switch(Ne){case"KeyJ":case"ArrowLeft":{if(!Lt)break;if(ne.ctrlKey||ne.altKey){let it=I.actions.internal.getPrevEpisode();I.actions.internal.seekToPrevEpisode(it),it&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:it.text}),tt()}else{let it=ne.shiftKey?ke(!1):R.controls.seekStepKeyboard/1e3,ri=Math.max(d()-it,0);d()>0&&(I.actions.internal.seekTime(ri,Bn.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:it.toString()}),tt())}break}case"KeyL":case"ArrowRight":{if(!Lt)break;if(ne.ctrlKey||ne.altKey){let it=I.actions.internal.getNextEpisode();I.actions.internal.seekToNextEpisode(it),it&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:it.text}),tt()}else{let it=ne.shiftKey?ke(!0):R.controls.seekStepKeyboard/1e3,ri=Math.min(d()+it,a());Math.round(d())<Math.round(a())&&(I.actions.internal.seekTime(ri,Bn.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:it.toString()}),tt())}break}case"ArrowUp":{if(Fs({isAudioDisabled:ve,audioDisabledHintCallback:ge,isAudioAvailable:u(),audioIsNotExistHintCallback:de,isAds:e.isAds})){let it=f(),ri=R.controls.volumeStepKeyboard,jt=it<=1;if(au(I,it,ri),jt){let bi=Math.round(yf(it,ri)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:bi}})}}tt();break}case"ArrowDown":{if(Fs({isAudioDisabled:ve,audioDisabledHintCallback:ge,isAudioAvailable:u(),audioIsNotExistHintCallback:de,isAds:e.isAds})){let it=f(),ri=R.controls.volumeStepKeyboard,jt=it>=0;if(lu(I,it,ri),jt){let bi=Math.round(xf(it,ri)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:bi}})}}tt();break}case"Comma":{if(ne.shiftKey){I.actions.internal.decrementPlaybackRate();let it=v().find(ri=>ri.value===p());e.showHotKeyHelpers({type:"RATE_DOWN",text:it==null?void 0:it.displayValue}),tt()}else{if(et||n()!==ba.PAUSED)break;let it=Math.max(d()-R.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(it,Bn.DOUBLE_TAP),tt())}break}case"Period":{if(ne.shiftKey){I.actions.internal.incrementPlaybackRate();let it=v().find(ri=>ri.value===p());e.showHotKeyHelpers({type:"RATE_UP",text:it==null?void 0:it.displayValue}),tt()}else{if(et||n()!==ba.PAUSED)break;let it=Math.min(d()+R.controls.seekStepFrame/1e3,a());d()<a()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(it,Bn.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 it="PLAY";n()===ba.PAUSED?it="PAUSE":y()&&(it="REPLAY"),e.showHotKeyHelpers({type:it})}tt();break;case"KeyM":{Fs({isAudioDisabled:ve,audioDisabledHintCallback:ge,isAudioAvailable:u(),audioIsNotExistHintCallback:de,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:(_i=T())==null?void 0:_i.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),tt();break;case"KeyI":I.actions.internal.togglePictureInPicture(),tt();break;case"Digit1":case"Numpad1":if(ne.shiftKey){let it=u1(E());se.set(it),re.set(_e),Pe.set(!0),Re.set(!0),tt();break}e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.1,Bn.DOUBLE_TAP),tt();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.2,Bn.DOUBLE_TAP),tt();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.3,Bn.DOUBLE_TAP),tt();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.4,Bn.DOUBLE_TAP),tt();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.5,Bn.DOUBLE_TAP),tt();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.6,Bn.DOUBLE_TAP),tt();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.7,Bn.DOUBLE_TAP),tt();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.8,Bn.DOUBLE_TAP),tt();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.9,Bn.DOUBLE_TAP),tt();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(0,Bn.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:$$(Ne);break}return Kt},lt=ne=>{let Ut=ne.code;if(ne.ctrlKey||ne.altKey||ne.metaKey)return;let _e=n()===ba.PLAYING||n()===ba.PAUSED,Se=e.isAds&&(s()==="paused"||s()==="playing");if(_e||Se)switch(Ut){case"ShiftLeft":case"ShiftRight":at=0;break}},mt=q("aria_label_video_player"),vt=()=>{var ne;return(ne=r(Me))==null?void 0:ne.focus()},Ct=ne=>ne.type==="keydown"?We(ne,!0):(ne.type==="keyup"&&lt(ne),!1);var je=x$();je.__keyup=lt,je.__keydown=[y$,We];var Ft=_(je);xe(Ft,()=>{var ne;return(ne=e.children)!=null?ne:ce}),h(je),ot(je,ne=>O(Me,ne),()=>r(Me)),B(()=>Ue(je,"aria-label",mt)),$(t,je);var ti=z({focus:vt,handleExternalKeyboardEvent:Ct});return o(),ti}dt(["keyup","keydown"]);var S$=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>'),C$={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,29 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},e1=ob;var b
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 $a(t,e){q(t,A$);let i=v(e,"style",3,"");var o=P$();B(()=>nt(o,i())),$(t,o)}var M$=Se('<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 Mf(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=M$();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(2),h(o),$(t,o)}import{noop as pl}from"@vkontakte/videoplayer-shared/es2015";var L$=t=>{t.stopPropagation()},V$=A("<button><!></button>"),R$={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 $a(t,e){Q(t,C$);let i=m(e,"style",3,"");var o=S$();B(()=>st(o,i())),$(t,o)}var T$=Ee('<svg><!><g filter="url(#a)"><path fill="#fff" d="M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"></path></g><defs><filter id="a" width="23" height="23" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2422_111980"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2422_111980" result="shape"></feBlend></filter></defs></svg>');function Sf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=T$();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),h(o),$(t,o)}import{noop as fl}from"@vkontakte/videoplayer-shared/es2015";var E$=t=>{t.stopPropagation()},I$=M("<button><!></button>"),k$={hash:"svelte-ut3f27",code:`.btn.svelte-ut3f27 {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;}
154
154
 
155
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;}
156
156
 
157
157
  /* mobile */
158
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
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 Dt(t,e){U(e,!0),q(t,R$);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,pl),x=v(e,"focus",3,pl),w=v(e,"blur",3,pl),y=g(()=>p()===pl?null:I=>{I.stopPropagation(),p()(I)}),S=g(()=>x()===pl?null:I=>{I.preventDefault(),x()()}),T=g(()=>w()===pl?null:I=>{I.preventDefault(),w()()});var E=V$();E.__pointerdown=[L$],E.__click=function(...I){var M;(M=r(y))==null||M.apply(this,I)};var R=_(E);ye(R,()=>{var I;return(I=e.children)!=null?I:ce}),h(E),tt(E,I=>a(I),()=>a()),B(()=>{var I,M,k,j,H,F,Q,Z;oe(E,1,`btn ${(I=i())!=null?I:""}`,"svelte-ut3f27"),nt(E,o()||null),E.disabled=(M=n())!=null?M:null,ze(E,"aria-hidden",(k=l())!=null?k:null),ze(E,"aria-label",(j=d())!=null?j:null),ze(E,"aria-keyshortcuts",(H=u())!=null?H:null),ze(E,"aria-expanded",(F=f())!=null?F:null),ze(E,"data-testid",(Q=s())!=null?Q:null),ze(E,"tabindex",m()),ze(E,"role",e.role),ze(E,"aria-checked",(Z=e.areaChecked)!=null?Z:null)}),St("focus",E,function(...I){var M;(M=r(S))==null||M.apply(this,I)}),St("blur",E,function(...I){var M;(M=r(T))==null||M.apply(this,I)}),$(t,E),z()}at(["pointerdown","click"]);var N$=A('<div class="modal-header svelte-ijitjb"><h3 class="modal-title svelte-ijitjb"> </h3> <!></div>'),O$=A('<div class="modal-overlay svelte-ijitjb"><div class="modal-container svelte-ijitjb"><!> <div class="modal-scroll svelte-ijitjb"><div class="modal-main svelte-ijitjb"><!></div></div></div></div>'),B$={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 Lf(t,e){U(e,!0),q(t,B$);let i=v(e,"showHeader",3,!0),o=v(e,"showCloseCross",3,!0),n=K("hotkey_map_modal_close_btn_text");var s=O$(),l=_(s),d=_(l);{var a=p=>{var x=N$(),w=_(x),y=_(w,!0);h(w);var S=P(w,2);{var T=E=>{Dt(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return n},children:(R,I)=>{Mf(R,{})},$$slots:{default:!0}})};V(S,E=>{o()&&E(T)})}h(x),B(()=>be(y,e.title)),$(p,x)};V(d,p=>{i()&&p(a)})}var u=P(d,2),f=_(u),m=_(f);ye(m,()=>{var p;return(p=e.children)!=null?p:ce}),h(f),h(u),h(l),h(s),$(t,s),z()}var D$=new Set(["BR"]),S1=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;D$.has(l)||(n=s.parentElement)==null||n.removeChild(s)}return e.innerHTML};var H$=A('<li class="hot-key-map-item svelte-quklnq"><span class="hot-key-map-item-description svelte-quklnq"><!></span> <span class="hot-key-map-item-value svelte-quklnq"> </span></li>'),F$=A('<div class="hot-key-map-group svelte-quklnq"><h5 class="hot-key-map-group-title svelte-quklnq"> </h5> <ul class="hot-key-map-group-items svelte-quklnq"></ul></div>'),U$=A('<div class="hot-key-map svelte-quklnq"></div>'),z$={hash:"svelte-quklnq",code:`.hot-key-map.svelte-quklnq {color:var(--black);box-sizing:border-box;overflow-x:hidden;}.hot-key-map-group.svelte-quklnq {border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px;}.hot-key-map-group.svelte-quklnq:last-child {border-bottom:none;}.hot-key-map-group-title.svelte-quklnq {color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.hot-key-map-group-title.svelte-quklnq,
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){U(e,!0),Q(t,k$);let i=m(e,"className",3,""),o=m(e,"style",3,""),n=m(e,"disabled",3,void 0),s=m(e,"testId",3,void 0),l=m(e,"ariaHidden",3,void 0),d=m(e,"ariaLabel",3,void 0),a=m(e,"ref",15,void 0),u=m(e,"ariaKeyShortCut",3,void 0),f=m(e,"ariaExpanded",3,void 0),v=m(e,"tabIndex",3,0),p=m(e,"click",3,fl),x=m(e,"focus",3,fl),w=m(e,"blur",3,fl),y=g(()=>p()===fl?null:k=>{k.stopPropagation(),p()(k)}),S=g(()=>x()===fl?null:k=>{k.preventDefault(),x()()}),T=g(()=>w()===fl?null:k=>{k.preventDefault(),w()()});var E=I$();E.__pointerdown=[E$],E.__click=function(...k){var I;(I=r(y))==null||I.apply(this,k)};var V=_(E);xe(V,()=>{var k;return(k=e.children)!=null?k:ce}),h(E),ot(E,k=>a(k),()=>a()),B(()=>{var k,I,R,Z,H,F,K,ee;te(E,1,`btn ${(k=i())!=null?k:""}`,"svelte-ut3f27"),st(E,o()||null),E.disabled=(I=n())!=null?I:null,Ue(E,"aria-hidden",(R=l())!=null?R:null),Ue(E,"aria-label",(Z=d())!=null?Z:null),Ue(E,"aria-keyshortcuts",(H=u())!=null?H:null),Ue(E,"aria-expanded",(F=f())!=null?F:null),Ue(E,"data-testid",(K=s())!=null?K:null),Ue(E,"tabindex",v()),Ue(E,"role",e.role),Ue(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),z()}dt(["pointerdown","click"]);var P$=M('<div class="modal-header svelte-ijitjb"><h3 class="modal-title svelte-ijitjb"> </h3> <!></div>'),A$=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>'),M$={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 Cf(t,e){U(e,!0),Q(t,M$);let i=m(e,"showHeader",3,!0),o=m(e,"showCloseCross",3,!0),n=q("hotkey_map_modal_close_btn_text");var s=A$(),l=_(s),d=_(l);{var a=p=>{var x=P$(),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)=>{Sf(V,{})},$$slots:{default:!0}})};L(S,E=>{o()&&E(T)})}h(x),B(()=>$e(y,e.title)),$(p,x)};L(d,p=>{i()&&p(a)})}var u=P(d,2),f=_(u),v=_(f);xe(v,()=>{var p;return(p=e.children)!=null?p:ce}),h(f),h(u),h(l),h(s),$(t,s),z()}var L$=new Set(["BR"]),m1=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;L$.has(l)||(n=s.parentElement)==null||n.removeChild(s)}return e.innerHTML};var V$=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>'),R$=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>'),N$=M('<div class="hot-key-map svelte-quklnq"></div>'),O$={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
161
  .hot-key-map-item.svelte-quklnq {padding:12px 0;margin:0;width:100%;}.hot-key-map-group-items.svelte-quklnq {box-sizing:border-box;list-style:none;padding:0;margin:0;}.hot-key-map-item.svelte-quklnq {box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width: 156px;--videoplayer-hotkey-item-value-padding-left: 24px;}.hot-key-map-item-description.svelte-quklnq {color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px;}.hot-key-map-item-value.svelte-quklnq {color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px;}.hot-key-map-item-description.svelte-quklnq,
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 Vf(t,e){U(e,!1),q(t,z$);let[i,o]=Fe(),n=()=>C(l,"$data",i),s=Ee(),{data:l,show:d}=s.ui.modals.hotKeyMap,a=()=>{d.set(!1)};Ur(),Lf(t,{get title(){return n().title},onClose:a,children:(u,f)=>{var m=U$();Ei(m,5,()=>n().groups,({title:p,items:x})=>p,(p,x)=>{let w=()=>r(x).title,y=()=>r(x).items;var S=F$(),T=_(S),E=_(T,!0);h(T);var R=P(T,2);Ei(R,5,y,({description:I,value:M})=>M,(I,M)=>{let k=()=>r(M).description,j=()=>r(M).value;var H=H$(),F=_(H),Q=_(F);jl(Q,()=>S1(k())),h(F);var Z=P(F,2),Y=_(Z,!0);h(Z),h(H),B(()=>be(Y,j())),$(I,H)}),h(R),h(S),B(()=>be(E,w())),$(p,S)}),h(m),$(u,m)},$$slots:{default:!0}}),z(),o()}import{noop as Y1}from"@vkontakte/videoplayer-shared/es2015";import{ChromecastState as W1,PlaybackState as bm}from"@vkontakte/videoplayer-core/es2015";import"@vkontakte/videoplayer-shared/es2015";var W$=A('<div class="pillow svelte-1oe0j8n"><!></div>'),K$={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 Rf(t,e){q(t,K$);var i=W$(),o=_(i);ye(o,()=>{var n;return(n=e.children)!=null?n:ce}),h(i),$(t,i)}import{VideoQuality as bd}from"@vkontakte/videoplayer-shared/es2015";var q$=Se('<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 Nf(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=q$();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(2),h(o),$(t,o)}var Q$=Se('<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 Of(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=Q$();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(2),h(o),$(t,o)}var G$=Se('<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 Bf(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=G$();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(),h(o),$(t,o)}var j$=Se('<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=Be(e,["$$slots","$$events","$$legacy","children"]);var o=j$();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(),h(o),$(t,o)}var Y$=Se('<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=Be(e,["$$slots","$$events","$$legacy","children"]);var o=Y$();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(2),h(o),$(t,o)}var mu=t=>{switch(t){case bd.Q_720P:return Bf;case bd.Q_1080P:return hd;case bd.Q_1440P:return _d;case bd.Q_2160P:return Nf;case bd.Q_4320P:return Of}};var Z$=Se('<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 Df(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=Z$();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(),h(o),$(t,o)}var X$=Se('<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 Hf(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=X$();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(2),h(o),$(t,o)}var J$=A('<div aria-hidden="true"><!> <!></div>'),e2={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){U(e,!0),q(t,e2);let i=v(e,"isMobile",3,!1),o=v(e,"currentQuality",3,void 0),n=g(()=>mu(o())),s=g(()=>!!r(n)&&[hd,_d].includes(r(n)));var l=Qe(),d=he(l);{var a=f=>{Df(f,{})},u=f=>{var m=J$();let p;var x=_(m);{var w=T=>{Rf(T,{children:(E,R)=>{var I=Qe(),M=he(I);Ii(M,()=>r(n),(k,j)=>{j(k,{})}),$(E,I)},$$slots:{default:!0}})};V(x,T=>{r(n)&&T(w)})}var y=P(x,2);let S=g(()=>r(n)?"settings-icon--labeled":"settings-icon");Hf(y,{get"data-testid"(){return r(S)},fill:"var(--btn-color, #fff)"}),h(m),B(T=>p=oe(m,1,"icon svelte-8t5w85",null,p,T),[()=>({triple:r(s)})]),$(f,m)};V(d,f=>{i()?f(a):f(u,!1)})}$(t,l),z()}var t2=A('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),i2={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function fl(t,e){U(e,!0),q(t,i2);let[i,o]=Fe(),n=()=>C(u,"$settingsMenuVisible",i),s=()=>C(p,"$isMobile",i),l=()=>C(a,"$currentQuality",i),d=Ee(),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,w=X(void 0);Ge(()=>{r(w)&&yt(()=>{e.ref$.set(r(w))})});let y=x("aria_label_settings");function S(E){return $t(this,null,function*(){let R=Fs(E);n()?m():f(R,Co)})}let T=g(()=>n()?"opened":"");Dt(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,R)=>{var I=t2(),M=_(I);$d(M,{get isMobile(){return s()},get currentQuality(){return l()}}),h(I),$(E,I)},$$slots:{default:!0}}),z(),o()}var o2=Se('<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 Ff(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=o2();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",viewBox:"0 0 24 24",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(),h(o),$(t,o)}var n2=Se('<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=Be(e,["$$slots","$$events","$$legacy","children"]);var o=n2();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",viewBox:"0 0 24 24",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(),h(o),$(t,o)}function Uf(t,e){U(e,!0);let i=v(e,"isSubtitlesEnabled",3,!1),n=Ee().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 ss.KeyC},role:"button",children:(l,d)=>{var a=Qe(),u=he(a);{var f=p=>{Ff(p,{})},m=p=>{yd(p,{})};V(u,p=>{i()?p(f):p(m,!1)})}$(l,a)},$$slots:{default:!0}}),z()}var r2=A('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),s2=A('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),a2={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){U(e,!0),q(t,a2);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=kt(),d=de(!1),a=g(()=>$n(e.duration)),u=g(()=>$n(e.position));var f=s2();let m;var p=_(f),x=_(p,!0);h(p);var w=P(p,2);{var y=S=>{var T=r2(),E=_(T,!0);h(T),B(()=>be(E,r(a))),$(S,T)};V(w,S=>{n()&&S(y)})}h(f),hs(f,()=>al(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),tt(f,S=>s(S),()=>s()),B(S=>{m=oe(f,1,"time svelte-sz9er7",null,m,S),be(x,r(u))},[()=>({mobile:i()})]),$(t,f),z()}import{noop as vu}from"@vkontakte/videoplayer-shared/es2015";var l2=Se('<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>'),d2={hash:"svelte-v40k9i",code:`.icon.svelte-v40k9i {display:block;width:24px;height:24px;}.icon.svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .wave1:where(.svelte-v40k9i),
162
+ .hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function Tf(t,e){U(e,!1),Q(t,O$);let[i,o]=Fe(),n=()=>C(l,"$data",i),s=Ie(),{data:l,show:d}=s.ui.modals.hotKeyMap,a=()=>{d.set(!1)};Ur(),Cf(t,{get title(){return n().title},onClose:a,children:(u,f)=>{var v=N$();Ti(v,5,()=>n().groups,({title:p,items:x})=>p,(p,x)=>{let w=()=>r(x).title,y=()=>r(x).items;var S=R$(),T=_(S),E=_(T,!0);h(T);var V=P(T,2);Ti(V,5,y,({description:k,value:I})=>I,(k,I)=>{let R=()=>r(I).description,Z=()=>r(I).value;var H=V$(),F=_(H),K=_(F);Kl(K,()=>m1(R())),h(F);var ee=P(F,2),j=_(ee,!0);h(ee),h(H),B(()=>$e(j,Z())),$(k,H)}),h(V),h(S),B(()=>$e(E,w())),$(p,S)}),h(v),$(u,v)},$$slots:{default:!0}}),z(),o()}import{noop as H1}from"@vkontakte/videoplayer-shared/es2015";import{ChromecastState as V1,PlaybackState as um}from"@vkontakte/videoplayer-core/es2015";import"@vkontakte/videoplayer-shared/es2015";var B$=M('<div class="pillow svelte-1oe0j8n"><!></div>'),D$={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 Ef(t,e){Q(t,D$);var i=B$(),o=_(i);xe(o,()=>{var n;return(n=e.children)!=null?n:ce}),h(i),$(t,i)}import{VideoQuality as vd}from"@vkontakte/videoplayer-shared/es2015";var H$=Ee('<svg><!><path fill="currentColor" d="M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"></path><path fill="currentColor" fill-rule="evenodd" d="m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z" clip-rule="evenodd"></path></svg>');function If(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=H$();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),h(o),$(t,o)}var F$=Ee('<svg><!><path fill="currentColor" d="M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"></path><path fill="currentColor" fill-rule="evenodd" d="M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524" clip-rule="evenodd"></path></svg>');function kf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=F$();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),h(o),$(t,o)}var U$=Ee('<svg><!><path fill="currentColor" d="M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"></path></svg>');function Pf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=U$();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var z$=Ee('<svg><!><path fill="currentColor" d="M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"></path></svg>');function fd(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=z$();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var W$=Ee('<svg><!><path fill="currentColor" d="M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"></path><path fill="currentColor" fill-rule="evenodd" d="M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02" clip-rule="evenodd"></path></svg>');function md(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=W$();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),h(o),$(t,o)}var du=t=>{switch(t){case vd.Q_720P:return Pf;case vd.Q_1080P:return fd;case vd.Q_1440P:return md;case vd.Q_2160P:return If;case vd.Q_4320P:return kf}};var K$=Ee('<svg><!><path fill="var(--btn-color, #fff)" d="M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"></path></svg>');function Af(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=K$();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var q$=Ee('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5" class="_full"></path></svg>');function Mf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=q$();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),h(o),$(t,o)}var Q$=M('<div aria-hidden="true"><!> <!></div>'),G$={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 gd(t,e){U(e,!0),Q(t,G$);let i=m(e,"isMobile",3,!1),o=m(e,"currentQuality",3,void 0),n=g(()=>du(o())),s=g(()=>!!r(n)&&[fd,md].includes(r(n)));var l=Ke(),d=he(l);{var a=f=>{Af(f,{})},u=f=>{var v=Q$();let p;var x=_(v);{var w=T=>{Ef(T,{children:(E,V)=>{var k=Ke(),I=he(k);Ei(I,()=>r(n),(R,Z)=>{Z(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");Mf(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),z()}var j$=M('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),Y$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function ml(t,e){U(e,!0),Q(t,Y$);let[i,o]=Fe(),n=()=>C(u,"$settingsMenuVisible",i),s=()=>C(p,"$isMobile",i),l=()=>C(a,"$currentQuality",i),d=Ie(),a=d.state.currentQuality$,u=d.ui.settingsMenu.visible$,f=d.actions.internal.openSettingsMenu,v=d.actions.internal.closeSettingsMenu,p=d.ui.isMobile,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=Hs(E);n()?v():f(V,Po)})}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=j$(),I=_(k);gd(I,{get isMobile(){return s()},get currentQuality(){return l()}}),h(k),$(E,k)},$$slots:{default:!0}}),z(),o()}var Z$=Ee('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.538 4c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.334v3.076c0 .948 0 1.714-.05 2.334-.053.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.922c-.267-.523-.377-1.087-.43-1.726C2 15.252 2 14.486 2 13.538v-3.076c0-.948 0-1.714.05-2.334.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.267 1.087-.377 1.726-.43C6.748 4 7.514 4 8.462 4zM6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9m.9-4.7a.9.9 0 1 0 0 1.8h1.7a.9.9 0 1 0 0-1.8zm7.6 4.7a.9.9 0 0 1 .9-.9h1.7a.9.9 0 0 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9m-2.6-4.7a.9.9 0 1 0 0 1.8h5.2a.9.9 0 0 0 0-1.8z" clip-rule="evenodd"></path></svg>');function Lf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Z$();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",viewBox:"0 0 24 24",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var X$=Ee('<svg><!><g fill="var(--btn-color, #fff)" fill-rule="evenodd" clip-rule="evenodd"><path d="M8.462 4h7.076c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.333v3.077c0 .948 0 1.713-.05 2.334-.053.64-.163 1.203-.43 1.725a4.4 4.4 0 0 1-1.922 1.923c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.923c-.267-.522-.377-1.086-.43-1.725C2 15.252 2 14.486 2 13.538v-3.077c0-.947 0-1.713.05-2.333.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.266 1.087-.376 1.726-.428C6.748 4 7.514 4 8.462 4M6.275 5.845c-.528.043-.83.123-1.055.238A2.6 2.6 0 0 0 4.083 7.22c-.115.227-.195.527-.238 1.055C3.8 8.813 3.8 9.504 3.8 10.5v3c0 .995 0 1.687.045 2.225.043.528.123.829.238 1.055a2.6 2.6 0 0 0 1.137 1.136c.226.116.527.196 1.055.24.538.043 1.23.044 2.225.044h7c.995 0 1.687 0 2.226-.045.527-.043.828-.123 1.054-.239a2.6 2.6 0 0 0 1.137-1.136c.115-.226.195-.527.238-1.055.044-.538.045-1.23.045-2.225v-3c0-.995 0-1.687-.045-2.226-.043-.528-.123-.828-.238-1.054a2.6 2.6 0 0 0-1.137-1.137c-.226-.115-.527-.195-1.055-.238-.538-.044-1.23-.045-2.225-.045h-7c-.995 0-1.687 0-2.226.045"></path><path d="M6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M6 11.1a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M14.5 14.9a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9M11 11.1a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8h-5.2a.9.9 0 0 1-.9-.9"></path></g></svg>');function hd(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=X$();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",viewBox:"0 0 24 24",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}function Vf(t,e){U(e,!0);let i=m(e,"isSubtitlesEnabled",3,!1),n=Ie().ui.t,s=g(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));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=Ke(),u=he(a);{var f=p=>{Lf(p,{})},v=p=>{hd(p,{})};L(u,p=>{i()?p(f):p(v,!1)})}$(l,a)},$$slots:{default:!0}}),z()}var J$=M('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),e2=M('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),t2={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 _d(t,e){U(e,!0),Q(t,t2);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=e2();let v;var p=_(f),x=_(p,!0);h(p);var w=P(p,2);{var y=S=>{var T=J$(),E=_(T,!0);h(T),B(()=>$e(E,r(a))),$(S,T)};L(w,S=>{n()&&S(y)})}h(f),hs(f,()=>ll(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),$e(x,r(u))},[()=>({mobile:i()})]),$(t,f),z()}import{noop as cu}from"@vkontakte/videoplayer-shared/es2015";var i2=Ee('<svg xmlns="http://www.w3.org/2000/svg" class="icon svelte-v40k9i" aria-hidden="true"><g fill="var(--btn-color, #fff)" fill-rule="evenodd"><path d="M2 9.94595C2 9.41522 2.41461 8.97693 2.94453 8.94749L5.775 8.79025C6.24338 8.76422 6.6877 8.57439 7.03029 8.25394L11.3169 4.24433C11.9558 3.64667 13 4.09974 13 4.97464V19.0253C13 19.9002 11.9558 20.3533 11.3169 19.7556L7.03029 15.746C6.6877 15.4255 6.24337 15.2357 5.77499 15.2097L2.94453 15.0524C2.41461 15.023 2 14.5847 2 14.054V9.94595Z"></path><path class="cross svelte-v40k9i" d="M22.4636 8.26359C22.8151 7.91212 23.3849 7.91212 23.7364 8.26359C24.0879 8.61506 24.0879 9.18491 23.7364 9.53638L21.2728 12L23.7364 14.4636C24.0879 14.815 24.0879 15.3849 23.7364 15.7364C23.3849 16.0878 22.8151 16.0878 22.4636 15.7364L20 13.2728L17.5364 15.7364C17.1849 16.0878 16.6151 16.0878 16.2636 15.7364C15.9121 15.3849 15.9121 14.815 16.2636 14.4636L18.7272 12L16.2636 9.53638C15.9121 9.18491 15.9121 8.61506 16.2636 8.26359C16.6151 7.91212 17.1849 7.91212 17.5364 8.26359L20 10.7272L22.4636 8.26359Z"></path><path class="wave1 svelte-v40k9i" d="M15.7484 8.89758C16.0811 8.52829 16.6501 8.49862 17.0194 8.83132C17.8726 9.59994 18.4 10.7425 18.4 12C18.4 13.2575 17.8726 14.4001 17.0194 15.1687C16.6501 15.5014 16.0811 15.4717 15.7484 15.1024C15.4157 14.7331 15.4453 14.1641 15.8146 13.8314C16.2849 13.4077 16.6 12.753 16.6 12C16.6 11.2471 16.2849 10.5923 15.8146 10.1686C15.4453 9.83595 15.4157 9.26687 15.7484 8.89758Z"></path><path class="wave2 svelte-v40k9i" d="M18.8141 6.67424C19.1924 6.35184 19.7605 6.39716 20.0829 6.77547C21.2779 8.17774 22 10.0053 22 12C22 13.9946 21.2779 15.8222 20.0829 17.2245C19.7605 17.6028 19.1924 17.6481 18.8141 17.3257C18.4358 17.0033 18.3905 16.4353 18.7129 16.057C19.639 14.9702 20.2 13.5535 20.2 12C20.2 10.4464 19.639 9.02976 18.7129 7.943C18.3905 7.56469 18.4358 6.99665 18.8141 6.67424Z"></path></g></svg>'),o2={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
163
  .icon[data-value='off'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:visible;}.icon[data-value='mid'].svelte-v40k9i .wave2:where(.svelte-v40k9i),
164
- .icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function zs(t,e){q(t,d2);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=l2();B(()=>{var d;ze(l,"data-value",r(s)),ze(l,"data-testid",`volume-${(d=r(s))!=null?d:""}-icon`)}),$(t,l)}import{isNonNullable as T1,noop as Dn}from"@vkontakte/videoplayer-shared/es2015";import{noop as Wf}from"@vkontakte/videoplayer-shared/es2015";import{noop as u2}from"@vkontakte/videoplayer-shared/es2015";var c2=A('<div class="overlay"><!></div>');function zf(t,e){U(e,!0);let[i,o]=Fe(),n=()=>C(l,"$overlayContainer$",i),l=Ee().ui.overlayContainer$,d=X(void 0),a=p=>{!p||!r(d)||!p.contains(r(d))||p.removeChild(r(d))},u=p=>{!p||!r(d)||p.contains(r(d))||p.appendChild(r(d))};Ge(()=>{u(n())}),Rt(()=>(u(n()),()=>a(n())));var f=c2(),m=_(f);ye(m,()=>{var p;return(p=e.children)!=null?p:ce}),h(f),tt(f,p=>O(d,p),()=>r(d)),$(t,f),z(),o()}var p2=A('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),f2=A("<div><!></div> <!>",1),m2={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 ya(t,e){U(e,!0),q(t,m2);let[i,o]=Fe(),n=()=>C(Q,"$overlayContainer$",i),s=()=>C(F,"$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"),w=v(e,"onVisibilityChange",3,u2),y=5,S=X(void 0),T=X(void 0),E,R=X(0),I=X(0),M=X(0),k=X(0),j=kt(),H=Ee(),F=H.ui.playerSize,Q=H.ui.overlayContainer$;Ge(()=>{yt(()=>{w()(a())})});let Z=H.getLogger().createComponentLog("Tooltip component"),Y=()=>{if(!n()||!r(T)||!r(S))return;O(I,y);let J=n().getBoundingClientRect(),Me=r(S).getBoundingClientRect(),Pe=Me.width,We=r(T).clientWidth,rt=s().width,_t=(Pe-We)/2,lt=Me.left+u()-J.left,xt=lt+_t,Je=Me.top+f()-J.top,zt=We/2-y,ti=xt<8,Ft=xt+We>rt-8;ti&&(xt=8,zt=lt+Me.width/2-2.5*y),Ft&&(xt=rt-8-We,zt=Me.left-J.left+Me.width/2-xt-y),O(M,xt,!0),O(k,Je),O(R,zt,!0)},pe=()=>{!n()||!r(T)||!r(S)||O(I,-y)},se=()=>{if(!n()||!r(T)||!r(S))return;O(R,y);let J=n().getBoundingClientRect(),Me=r(S).getBoundingClientRect(),Pe=Me.height,We=r(T).clientHeight,rt=(Pe-We)/2+We,_t=Me.left+u()-J.left-r(T).clientWidth,lt=2,xt=_t-y;xt<8&&(xt=8);let zt=Me.top+f()-J.top+rt,ti=lt-rt/2,Ft=lt-y;O(M,xt,!0),O(k,zt),O(I,ti),O(R,Ft)},me=()=>{!n()||!r(T)||!r(S)||O(R,-y)},$e=()=>{switch(x()){case"top":Y();break;case"bottom":pe();break;case"left":se();break;default:me()}},ve=()=>{try{if(!n()||!r(S))return;$e(),a(!0)}catch(J){Z({message:String(J)})}},Ae=()=>{a(!1)},ae=()=>{r(T)&&(E||(E=window.setTimeout(ve,j.controls.hideTimeoutTooltips)),a()&&ve())},Ve=()=>{Ae(),window.clearTimeout(E),E=void 0},le=(J,Me,Pe)=>{let We="";switch(x()){case"top":We=`transform: translate(${J}px, ${Me}px);`;break;case"bottom":We=`transform: translate(${J}px, ${Me}px); top: auto; bottom: 100%;`;break;case"left":We=`transform: translate(${J}px, ${Me}px); left: 0; right: auto;`;break;default:We=`transform: translate(${J}px, ${Me}px);`}return We+=` max-width: ${p()===void 0?"auto":`${p()}px`};`,We+=` opacity: ${Pe?1:0}; visibility: ${Pe?"visible":"hidden"}`,We},N=(J,Me)=>{let Pe="";switch(x()){case"top":Pe=`transform: translate(${J}px, ${Me}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Pe=`transform: translate(${J}px, ${Me}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Pe=`transform: translate(${J}px, ${Me}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Pe=`transform: translate(${J}px, ${Me}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Pe},De=g(()=>le(r(M),r(k),a())),ue=g(()=>N(r(R),r(I)));Rt($e),tn(()=>window.clearTimeout(E));var _e=f2(),ne=he(_e);let ge;ne.__mousemove=ae,ne.__mousedown=Ve,ne.__mouseup=function(...J){var Me;(Me=e.disableMouseupTooltipShow?void 0:ae)==null||Me.apply(this,J)};var He=_(ne);ye(He,()=>{var J;return(J=e.children)!=null?J:ce}),h(ne),tt(ne,J=>O(S,J),()=>r(S));var fe=P(ne,2);{var st=J=>{zf(J,{children:(Me,Pe)=>{var We=p2(),rt=_(We),_t=_(rt,!0);h(rt);var lt=P(rt,2);h(We),tt(We,xt=>O(T,xt),()=>r(T)),B(()=>{nt(We,r(De)),be(_t,d()),nt(lt,r(ue))}),$(Me,We)},$$slots:{default:!0}})};V(fe,J=>{d()&&!l()&&J(st)})}B(J=>ge=oe(ne,1,"tooltip-wrapper svelte-hxlyne",null,ge,J),[()=>({"full-width":m()})]),St("mouseenter",ne,ae),St("mouseleave",ne,Ve),$(t,_e),z(),o()}at(["mousemove","mousedown","mouseup"]);var C1=t=>{t.stopPropagation()},v2=A("<div><!></div>"),g2={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 Eo(t,e){U(e,!0),q(t,g2);let[i,o]=Fe(),n=()=>C(u,"$isGraphOpened$",i),s=()=>C(a,"$isMobile",i),l=Ee(),d=fo(),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),w=v(e,"ref",15,void 0),y=v(e,"width",15,void 0),S=v(e,"isFullWidthTooltip",3,!0),T=v(e,"tooltipContent",3,""),E=v(e,"tooltipActive",3,!1),R=v(e,"tooltipPlacement",3,"top"),I=v(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),M=v(e,"isAriaHidden",3,!1),k=v(e,"onTooltipVisibilityChange",3,Wf),j=v(e,"initialTranslateXPx",3,0),H=v(e,"initialTranslateYPx",19,()=>-18),F=v(e,"mouseEnter",3,Wf),Q=v(e,"mouseLeave",3,Wf),Z=g(()=>p()?n()?f("tooltip_disabled_when_graph_on"):I():T());var Y=v2();Y.__pointerdown=[C1],Y.__click=[C1];var pe=_(Y);{var se=$e=>{ya($e,{get content(){return r(Z)},get translateX(){return j()},get translateY(){return H()},get isFullWidthWrapper(){return S()},get active(){return E()},get placement(){return R()},get onVisibilityChange(){return k()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},children:(ve,Ae)=>{var ae=Qe(),Ve=he(ae);ye(Ve,()=>{var le;return(le=e.children)!=null?le:ce}),$(ve,ae)},$$slots:{default:!0}})},me=$e=>{var ve=Qe(),Ae=he(ve);ye(Ae,()=>{var ae;return(ae=e.children)!=null?ae:ce}),$($e,ve)};V(pe,$e=>{x()&&r(Z)&&!s()?$e(se):$e(me,!1)})}h(Y),tt(Y,$e=>w($e),()=>w()),B(()=>{var $e;oe(Y,1,`btn-container ${($e=m())!=null?$e:""}`,"svelte-p9r045"),ze(Y,"aria-hidden",M()||null)}),St("mouseenter",Y,function(...$e){var ve;(ve=F())==null||ve.apply(this,$e)}),St("mouseleave",Y,function(...$e){var ve;(ve=Q())==null||ve.apply(this,$e)}),dr(Y,"clientWidth",y),$(t,Y),z(),o()}at(["pointerdown","click"]);var h2=Se('<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=h2(),o=_(i),n=P(o);h(i),B(()=>{ze(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),ze(o,"fill-opacity",e.completed?1:.24),ze(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),$(t,i)}var _2=A("<div><!></div>"),b2={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 Kf(t,e){U(e,!0),q(t,b2);let o=Ee().ui.t,n=X(0),s=g(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Eo(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=_2();let u;var f=_(a);let m=g(()=>!!e.videoEpisode.completed);wd(f,{get completed(){return r(m)}}),h(a),B(p=>{u=oe(a,1,"interactive-episode-icon svelte-bklhpe",null,u,p),nt(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),dr(a,"clientWidth",p=>O(n,p)),$(l,a)},$$slots:{default:!0}}),z()}var $2=A('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),y2=A('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),x2={hash:"svelte-1u6kv8l",code:`.video-episodes-wrap.svelte-1u6kv8l {position:absolute;width:100%;height:100%;}.video-episode.svelte-1u6kv8l {position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:calc(-1 * var(--slider-height));padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s;}.video-episode.svelte-1u6kv8l:not(.disabled):where(:hover, :active) {transform:scaleY(1.5);}.video-episode-inner.svelte-1u6kv8l,
164
+ .icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function Us(t,e){Q(t,o2);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=i2();B(()=>{var d;Ue(l,"data-value",r(s)),Ue(l,"data-testid",`volume-${(d=r(s))!=null?d:""}-icon`)}),$(t,l)}import{isNonNullable as g1,noop as Dn}from"@vkontakte/videoplayer-shared/es2015";import{noop as Nf}from"@vkontakte/videoplayer-shared/es2015";import{noop as r2}from"@vkontakte/videoplayer-shared/es2015";var n2=M('<div class="overlay"><!></div>');function Rf(t,e){U(e,!0);let[i,o]=Fe(),n=()=>C(l,"$overlayContainer$",i),l=Ie().ui.overlayContainer$,d=Y(void 0),a=p=>{!p||!r(d)||!p.contains(r(d))||p.removeChild(r(d))},u=p=>{!p||!r(d)||p.contains(r(d))||p.appendChild(r(d))};qe(()=>{u(n())}),Mt(()=>(u(n()),()=>a(n())));var f=n2(),v=_(f);xe(v,()=>{var p;return(p=e.children)!=null?p:ce}),h(f),ot(f,p=>O(d,p),()=>r(d)),$(t,f),z(),o()}var s2=M('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),a2=M("<div><!></div> <!>",1),l2={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 ya(t,e){U(e,!0),Q(t,l2);let[i,o]=Fe(),n=()=>C(K,"$overlayContainer$",i),s=()=>C(F,"$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,r2),y=5,S=Y(void 0),T=Y(void 0),E,V=Y(0),k=Y(0),I=Y(0),R=Y(0),Z=kt(),H=Ie(),F=H.ui.playerSize,K=H.ui.overlayContainer$;qe(()=>{wt(()=>{w()(a())})});let ee=H.getLogger().createComponentLog("Tooltip component"),j=()=>{if(!n()||!r(T)||!r(S))return;O(k,y);let X=n().getBoundingClientRect(),Me=r(S).getBoundingClientRect(),ke=Me.width,We=r(T).clientWidth,lt=s().width,mt=(ke-We)/2,vt=Me.left+u()-X.left,Ct=vt+mt,je=Me.top+f()-X.top,Ft=We/2-y,ti=Ct<8,Gt=Ct+We>lt-8;ti&&(Ct=8,Ft=vt+Me.width/2-2.5*y),Gt&&(Ct=lt-8-We,Ft=Me.left-X.left+Me.width/2-Ct-y),O(I,Ct,!0),O(R,je),O(V,Ft,!0)},ue=()=>{!n()||!r(T)||!r(S)||O(k,-y)},oe=()=>{if(!n()||!r(T)||!r(S))return;O(V,y);let X=n().getBoundingClientRect(),Me=r(S).getBoundingClientRect(),ke=Me.height,We=r(T).clientHeight,lt=(ke-We)/2+We,mt=Me.left+u()-X.left-r(T).clientWidth,vt=2,Ct=mt-y;Ct<8&&(Ct=8);let Ft=Me.top+f()-X.top+lt,ti=vt-lt/2,Gt=vt-y;O(I,Ct,!0),O(R,Ft),O(k,ti),O(V,Gt)},pe=()=>{!n()||!r(T)||!r(S)||O(V,-y)},ye=()=>{switch(x()){case"top":j();break;case"bottom":ue();break;case"left":oe();break;default:pe()}},me=()=>{try{if(!n()||!r(S))return;ye(),a(!0)}catch(X){ee({message:String(X)})}},Pe=()=>{a(!1)},re=()=>{r(T)&&(E||(E=window.setTimeout(me,Z.controls.hideTimeoutTooltips)),a()&&me())},Re=()=>{Pe(),window.clearTimeout(E),E=void 0},se=(X,Me,ke)=>{let We="";switch(x()){case"top":We=`transform: translate(${X}px, ${Me}px);`;break;case"bottom":We=`transform: translate(${X}px, ${Me}px); top: auto; bottom: 100%;`;break;case"left":We=`transform: translate(${X}px, ${Me}px); left: 0; right: auto;`;break;default:We=`transform: translate(${X}px, ${Me}px);`}return We+=` max-width: ${p()===void 0?"auto":`${p()}px`};`,We+=` opacity: ${ke?1:0}; visibility: ${ke?"visible":"hidden"}`,We},N=(X,Me)=>{let ke="";switch(x()){case"top":ke=`transform: translate(${X}px, ${Me}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":ke=`transform: translate(${X}px, ${Me}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":ke=`transform: translate(${X}px, ${Me}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:ke=`transform: translate(${X}px, ${Me}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return ke},De=g(()=>se(r(I),r(R),a())),de=g(()=>N(r(V),r(k)));Mt(ye),nn(()=>window.clearTimeout(E));var ge=a2(),ie=he(ge);let ve;ie.__mousemove=re,ie.__mousedown=Re,ie.__mouseup=function(...X){var Me;(Me=e.disableMouseupTooltipShow?void 0:re)==null||Me.apply(this,X)};var He=_(ie);xe(He,()=>{var X;return(X=e.children)!=null?X:ce}),h(ie),ot(ie,X=>O(S,X),()=>r(S));var fe=P(ie,2);{var at=X=>{Rf(X,{children:(Me,ke)=>{var We=s2(),lt=_(We),mt=_(lt,!0);h(lt);var vt=P(lt,2);h(We),ot(We,Ct=>O(T,Ct),()=>r(T)),B(()=>{st(We,r(De)),$e(mt,d()),st(vt,r(de))}),$(Me,We)},$$slots:{default:!0}})};L(fe,X=>{d()&&!l()&&X(at)})}B(X=>ve=te(ie,1,"tooltip-wrapper svelte-hxlyne",null,ve,X),[()=>({"full-width":v()})]),St("mouseenter",ie,re),St("mouseleave",ie,Re),$(t,ge),z(),o()}dt(["mousemove","mousedown","mouseup"]);var v1=t=>{t.stopPropagation()},d2=M("<div><!></div>"),c2={hash:"svelte-p9r045",code:".btn-container.svelte-p9r045 {position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent;}.w-max.svelte-p9r045 {width:100%;min-width:0;}"};function Mo(t,e){U(e,!0),Q(t,c2);let[i,o]=Fe(),n=()=>C(u,"$isGraphOpened$",i),s=()=>C(a,"$isMobile",i),l=Ie(),d=bo(),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,Nf),Z=m(e,"initialTranslateXPx",3,0),H=m(e,"initialTranslateYPx",19,()=>-18),F=m(e,"mouseEnter",3,Nf),K=m(e,"mouseLeave",3,Nf),ee=g(()=>p()?n()?f("tooltip_disabled_when_graph_on"):k():T());var j=d2();j.__pointerdown=[v1],j.__click=[v1];var ue=_(j);{var oe=ye=>{ya(ye,{get content(){return r(ee)},get translateX(){return Z()},get translateY(){return H()},get isFullWidthWrapper(){return S()},get active(){return E()},get placement(){return V()},get onVisibilityChange(){return R()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},children:(me,Pe)=>{var re=Ke(),Re=he(re);xe(Re,()=>{var se;return(se=e.children)!=null?se:ce}),$(me,re)},$$slots:{default:!0}})},pe=ye=>{var me=Ke(),Pe=he(me);xe(Pe,()=>{var re;return(re=e.children)!=null?re:ce}),$(ye,me)};L(ue,ye=>{x()&&r(ee)&&!s()?ye(oe):ye(pe,!1)})}h(j),ot(j,ye=>w(ye),()=>w()),B(()=>{var ye;te(j,1,`btn-container ${(ye=v())!=null?ye:""}`,"svelte-p9r045"),Ue(j,"aria-hidden",I()||null)}),St("mouseenter",j,function(...ye){var me;(me=F())==null||me.apply(this,ye)}),St("mouseleave",j,function(...ye){var me;(me=K())==null||me.apply(this,ye)}),rr(j,"clientWidth",y),$(t,j),z(),o()}dt(["pointerdown","click"]);var u2=Ee('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect width="20" height="20" rx="10" fill="var(--btn-color, #fff)"></rect><path d="M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"></path></svg>');function bd(t,e){"use strict";var i=u2(),o=_(i),n=P(o);h(i),B(()=>{Ue(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Ue(o,"fill-opacity",e.completed?1:.24),Ue(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),$(t,i)}var p2=M("<div><!></div>"),f2={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 Of(t,e){U(e,!0),Q(t,f2);let o=Ie().ui.t,n=Y(0),s=g(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Mo(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=p2();let u;var f=_(a);let v=g(()=>!!e.videoEpisode.completed);bd(f,{get completed(){return r(v)}}),h(a),B(p=>{u=te(a,1,"interactive-episode-icon svelte-bklhpe",null,u,p),st(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),rr(a,"clientWidth",p=>O(n,p)),$(l,a)},$$slots:{default:!0}}),z()}var m2=M('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),v2=M('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),g2={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
165
  .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 qf(t,e){q(t,x2);let i=v(e,"videoEpisodes",19,()=>[]);var o=y2();Ei(o,21,i,n=>n.from,(n,s)=>{var l=$2();let d;var a=_(l),u=_(a),f=P(u,2);let m;h(a),h(l),B((p,x)=>{d=oe(l,1,"video-episode svelte-1u6kv8l",null,d,p),nt(l,`left: ${r(s).from}%; width: ${r(s).width}%`),nt(u,`transform: translateX(${r(s).loadedWidth/r(s).width*100}%)`),m=oe(f,1,"video-episode-filled svelte-1u6kv8l",null,m,x),nt(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 w2(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 S2(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 C2(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 T2(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function E2(t,e,i,o,n,s){let l=e(t.clientX,t.clientY);i()&&o()(l),O(n,!1),s()(l)}var I2=A("<div></div>"),k2=A('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),P2=A('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),A2={hash:"svelte-1tpemng",code:`.interactive-icons.svelte-1tpemng {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-1tpemng {top:-10px;}.slider.svelte-1tpemng {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-1tpemng {cursor:default;}.slider.svelte-1tpemng:before {
166
+ .video-episode-filled.svelte-1u6kv8l {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1u6kv8l {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode-loaded.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function Bf(t,e){Q(t,g2);let i=m(e,"videoEpisodes",19,()=>[]);var o=v2();Ti(o,21,i,n=>n.from,(n,s)=>{var l=m2();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),st(l,`left: ${r(s).from}%; width: ${r(s).width}%`),st(u,`transform: translateX(${r(s).loadedWidth/r(s).width*100}%)`),v=te(f,1,"video-episode-filled svelte-1u6kv8l",null,v,x),st(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 h2(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 _2(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 b2(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 $2(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function y2(t,e,i,o,n,s){let l=e(t.clientX,t.clientY);i()&&o()(l),O(n,!1),s()(l)}var x2=M("<div></div>"),w2=M('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),S2=M('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),C2={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
167
  /* hit area */content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2);}.bars.svelte-1tpemng {position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg);}.loaded.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;will-change:transform;}.filled.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}.slider.square.svelte-1tpemng,
168
168
  .slider.square.svelte-1tpemng > .bars:where(.svelte-1tpemng),
169
169
  .slider.square.svelte-1tpemng .loaded:where(.svelte-1tpemng),
170
170
  .slider.square.svelte-1tpemng .filled:where(.svelte-1tpemng) {border-radius:unset;}.filled.active-live.svelte-1tpemng {background-color:var(--timeline-slider-filled-active-live-bg);}.filled.ads.svelte-1tpemng {background-color:var(--slider-filled-ads);}.handleWrap.svelte-1tpemng {position:absolute;left:-100%;width:100%;}.handle.svelte-1tpemng {position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-handle-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s, visibility 0.2s;will-change:opacity, transform;}.handle.active-live.svelte-1tpemng {background-color:var(--timeline-slider-handle-active-live-bg);}.slider.svelte-1tpemng:hover .handle:where(.svelte-1tpemng),
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 xa(t,e){U(e,!0),q(t,A2);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),w=v(e,"hideHandel",3,!1),y=v(e,"onPointerDown",3,Dn),S=v(e,"onHandleMove",3,Dn),T=v(e,"onPointerUp",3,Dn),E=v(e,"onPointerEnter",3,Dn),R=v(e,"onPointerMove",3,Dn),I=v(e,"onPointerLeave",3,Dn),M=v(e,"onMouseEnter",3,Dn),k=v(e,"onMouseLeave",3,Dn),j=v(e,"onWheelUp",3,Dn),H=v(e,"onWheelDown",3,Dn),F=v(e,"onWheelLeft",3,Dn),Q=v(e,"onWheelRight",3,Dn),Z=v(e,"onDisabledClick",3,Dn),Y=v(e,"loadedProgress",3,0),pe=v(e,"filledProgress",3,0),se=v(e,"handleProgress",3,0),me=v(e,"ariaLabel",3,""),$e=v(e,"ariaValueMin",3,void 0),ve=v(e,"ariaValueMax",3,void 0),Ae=v(e,"ariaValueNow",3,void 0),ae=v(e,"ariaValueText",3,""),Ve=v(e,"onContextMenu",3,Dn),le=kt(),N=X(void 0),De=X(!1),ue=g(()=>{var re;return(re=ve())!=null?re:0}),_e=g(()=>{var re;return T1(f())&&((re=f()[f().length-1])==null?void 0:re.time)<r(ue)}),ne=g(()=>T1(f())&&f().length&&r(_e)&&r(ue)?We(Y()*100,pe()*100):[]);function ge(re){if(re.preventDefault(),i()&&O(N,i().getBoundingClientRect(),!0),x())return;let Re=Me(re.clientX,re.clientY),Ue=Pe(re.clientX);E()(Re,Ue,r(N).width)}function He(re){re.preventDefault(),!x()&&I()()}function fe(){M()()}function st(){k()()}function J(re){x()||m()&&(re.preventDefault(),re.deltaY<0?j()():re.deltaY>0?H()():re.deltaX>0?Q()():F()())}function Me(re,Re){return l()?Math.max(0,Math.min(1,(r(N).height-(Re-r(N).top))/r(N).height)):Math.min(Math.max(re-r(N).x,0),r(N).width)/r(N).width}function Pe(re){return Math.min(Math.max(re-r(N).x,0),r(N).width)}function We(re,Re){let Ue=le.features.episodesClustering&&!p()?le.episodeMinWidthPc:0,Ne=[],Ke=f()[0].time/r(ue)*100,Oe=0,et=0;for(let Et=1;Et<f().length;Et++)Oe=f()[Et].time/r(ue)*100,Oe-Ke>Ue&&(Ne.push({from:Ke,width:Math.max(0,Oe-Ke),loadedWidth:Math.max(0,Math.min(Oe,re)-Ke),filledWidth:Math.max(0,Math.min(Oe,Re)-Ke),interactive:f()[Et-1].interactive,completed:f()[Et-1].completed}),Ke=f()[Et].time/r(ue)*100,et++);let Wt={from:Ke,width:Math.max(0,100-Ke),loadedWidth:Math.max(0,Math.min(re,100)-Ke),filledWidth:Math.max(0,Math.min(Re,100)-Ke),interactive:f()[et].interactive,completed:f()[et].completed};100-Ke<Ue?(et-=1,Ne[et].width+=100-Ke,Ne[et].loadedWidth+=Math.max(0,Math.min(re,100)-Ke),Ne[et].filledWidth+=Math.max(0,Math.min(Re,100)-Ke)):Ne[et]=Wt;let Qt=f()[0].time;if(Qt!==0){let Et=Qt/r(ue)*100;Ne.unshift({from:0,width:Et,loadedWidth:Math.min(Et,re),filledWidth:Math.min(Et,Re)})}return Ne}function rt(re){return Math.max(0,Math.min(100,re*100))}var _t=P2(),lt=he(_t);{var xt=re=>{var Re=I2();let Ue;Ei(Re,21,()=>r(ne),Ne=>Ne.from,(Ne,Ke)=>{var Oe=Qe(),et=he(Oe);{var Wt=Qt=>{Kf(Qt,{get videoEpisode(){return r(Ke)},get disabled(){return x()}})};V(et,Qt=>{r(Ke).interactive&&Qt(Wt)})}$(Ne,Oe)}),h(Re),B(Ne=>Ue=oe(Re,1,"interactive-icons svelte-1tpemng",null,Ue,Ne),[()=>({mobile:a(),hidden:a()&&!r(De)})]),$(re,Re)};V(lt,re=>{p()&&re(xt)})}var Je=P(lt,2);let zt;Je.__pointerdown=[w2,i,N,x,De,Me,y],Je.__pointermove=[S2,x,Me,Pe,R,N,De,S],Je.__pointerup=[C2,x,De,Me,T],Je.__click=[T2,x,Z,Me],Je.__contextmenu=[E2,Me,x,Z,De,Ve];var ti=_(Je);{var Ft=re=>{qf(re,{get videoEpisodes(){return r(ne)},get disabled(){return x()},get isMobile(){return a()}})},Yt=re=>{var Re=k2(),Ue=_(Re),Ne=P(Ue,2);let Ke;h(Re),B((Oe,et,Wt)=>{nt(Ue,Oe),Ke=oe(Ne,1,"filled svelte-1tpemng",null,Ke,et),nt(Ne,Wt)},[()=>`transform: translateX(${rt(Y())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${rt(pe())}%);`]),$(re,Re)};V(ti,re=>{r(ne).length?re(Ft):re(Yt,!1)})}var Ie=P(ti,2);let qt;var Ce=_(Ie);let ie;h(Ie),h(Je),tt(Je,re=>i(re),()=>i()),B((re,Re,Ue,Ne)=>{var Ke,Oe;zt=oe(Je,1,`slider ${(Ke=o())!=null?Ke:""}`,"svelte-1tpemng",zt,re),ze(Je,"aria-label",me()),ze(Je,"aria-valuemin",$e()),ze(Je,"aria-valuemax",ve()),ze(Je,"aria-valuenow",Ae()),ze(Je,"aria-valuetext",ae()),ze(Je,"data-testid",(Oe=n())!=null?Oe:null),qt=oe(Ie,1,"handleWrap svelte-1tpemng",null,qt,Re),nt(Ie,Ue),ie=oe(Ce,1,"handle svelte-1tpemng",null,ie,Ne)},[()=>({disabled:x(),"slider-dragging":r(De),hidden:s(),"slider-vertical":l(),"no-handle":w(),square:u()}),()=>({hidden:w()}),()=>`transform: translateX(${rt(se())}%);`,()=>({"active-live":d()})]),St("pointerenter",Je,ge),St("pointerleave",Je,He),St("mouseenter",Je,fe),St("mouseleave",Je,st),St("wheel",Je,J),$(t,_t),z()}at(["pointerdown","pointermove","pointerup","click","contextmenu"]);var Ji=(t,e)=>ua[t]>=ua[e],E1=(t,e)=>ua[t]<ua[e],Ws=(t,e)=>ua[t]<=ua[e],I1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var L2=A("<div><!></div>"),V2=A("<div><!> <!></div>"),R2={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 Qf(t,e){var J,Me;U(e,!0),q(t,R2);let[i,o]=Fe(),n=()=>C(E,"$isAudioAvailable$",i),s=()=>C(m,"$muted$",i),l=()=>C(f,"$volume$",i),d=()=>C(y,"$currentGridType$",i),a=Ee(),u=kt(),f=a.state.volume$,m=a.state.muted$,{setVolume:p,startVolumeChanging:x,stopVolumeChanging:w}=a.actions.internal,y=a.ui.currentGridType$,S=(J=a.callbacks)==null?void 0:J.onAudioDoesNotExistHint,T=(Me=a.callbacks)==null?void 0:Me.onAudioDisabledHint,E=a.state.isAudioAvailable$,R=a.state.isAudioDisabled,I=a.ui.t,M=X(!1),k,j=g(()=>e.isAds||n()),H=g(()=>!r(j)||s()||l()===0),F=g(()=>Ws(d(),"s")),Q=g(()=>r(F)?"":r(H)?!n()||R?I("tooltip_sound_unavailable"):I("tooltip_volume"):I("tooltip_volume_muted")),Z=g(()=>r(H)?I("tooltip_volume"):I("tooltip_volume_muted")),Y=g(()=>r(H)?0:l()),pe=!1,se=g(()=>e.isAds?!1:R?!T:n()?!1:!S);function me(Pe){x(),p(Pe)}function $e(){pu(a,l(),u.controls.volumeStepWheel)}function ve(){fu(a,l(),u.controls.volumeStepWheel)}function Ae(Pe){p(Pe)}function ae(Pe){p(Pe),w()}function Ve(){pe=!0}function le(){pe=!1,ue()}function N(){clearTimeout(k),O(M,!0)}function De(){ue()}function ue(){k=window.setTimeout(()=>{pe||O(M,!1)},u.controls.volumeBarTimeout)}function _e(Pe){Pe.preventDefault(),Pe.deltaY<0?$e():Pe.deltaY>0&&ve()}var ne=V2();let ge;var He=_(ne);ya(He,{get content(){return r(Q)},translateY:-18,children:(Pe,We)=>{let rt=g(()=>r(F)?"btn-volume-vertical":"btn-volume-horizontal");Dt(Pe,{className:"btn-full-opacity",get disabled(){return r(se)},get testId(){return r(rt)},get ariaLabel(){return r(Z)},get click(){return e.click},get ariaKeyShortCut(){return ss.KeyM},role:"button",children:(_t,lt)=>{zs(_t,{get volume(){return l()},get muted(){return r(H)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var fe=P(He,2);{var st=Pe=>{var We=L2();let rt;var _t=_(We);let lt=g(()=>r(F)?"volumeBar-slider-vertical":""),xt=g(()=>r(F)&&!r(M)),Je=g(()=>r(F)?Ve:vu),zt=g(()=>r(F)?le:vu),ti=g(()=>Math.round(r(Y)*100)),Ft=g(()=>`${Math.round(r(Y)*100)}%`),Yt=g(()=>r(F)?"volume-slider-vertical":"volume-slider");xa(_t,{get className(){return r(lt)},get isHidden(){return r(xt)},get isVertical(){return r(F)},withWheelHandler:!0,onWheelUp:$e,onWheelDown:ve,onPointerDown:me,onHandleMove:Ae,onPointerUp:ae,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(ti)},get ariaValueText(){return r(Ft)},get filledProgress(){return r(Y)},get handleProgress(){return r(Y)},get testId(){return r(Yt)}}),h(We),B(Ie=>rt=oe(We,1,"volumeBar svelte-1auih1j",null,rt,Ie),[()=>({"volumeBar-vertical":r(F)})]),$(Pe,We)};V(fe,Pe=>{r(j)&&Pe(st)})}h(ne),B(Pe=>ge=oe(ne,1,"volumeBar-container svelte-1auih1j",null,ge,Pe),[()=>({vertical:r(F)})]),St("mouseenter",ne,function(...Pe){var We;(We=r(F)?N:vu)==null||We.apply(this,Pe)}),St("mouseleave",ne,function(...Pe){var We;(We=r(F)?De:vu)==null||We.apply(this,Pe)}),St("wheel",ne,_e),$(t,ne),z(),o()}import{noop as B2}from"@vkontakte/videoplayer-shared/es2015";var N2=Se('<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 Gf(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=N2();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",viewBox:"0 0 24 24",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(),h(o),$(t,o)}var O2={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
172
- svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function jf(t,e){q(t,O2);let i=v(e,"isFullscreen",8,!1),o=Br(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Gf(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function Sd(t,e){U(e,!0);let i=v(e,"isFullscreen",3,!1),o=v(e,"click",3,B2),n=Ee(),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=Fs(u);s.set(f),o()()},get ariaKeyShortCut(){return ss.KeyF},role:"button",children:(u,f)=>{jf(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),z()}var D2=Se('<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 Yf(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=D2();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(),h(o),$(t,o)}var H2=Se('<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 Zf(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=H2();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",viewBox:"0 0 95 24",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(4),h(o),$(t,o)}var F2={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
171
+ .slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {transform:scale(1.3);}.slider-vertical.svelte-1tpemng {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-1tpemng {cursor:default;opacity:0.4;}`};function xa(t,e){U(e,!0),Q(t,C2);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,Dn),S=m(e,"onHandleMove",3,Dn),T=m(e,"onPointerUp",3,Dn),E=m(e,"onPointerEnter",3,Dn),V=m(e,"onPointerMove",3,Dn),k=m(e,"onPointerLeave",3,Dn),I=m(e,"onMouseEnter",3,Dn),R=m(e,"onMouseLeave",3,Dn),Z=m(e,"onWheelUp",3,Dn),H=m(e,"onWheelDown",3,Dn),F=m(e,"onWheelLeft",3,Dn),K=m(e,"onWheelRight",3,Dn),ee=m(e,"onDisabledClick",3,Dn),j=m(e,"loadedProgress",3,0),ue=m(e,"filledProgress",3,0),oe=m(e,"handleProgress",3,0),pe=m(e,"ariaLabel",3,""),ye=m(e,"ariaValueMin",3,void 0),me=m(e,"ariaValueMax",3,void 0),Pe=m(e,"ariaValueNow",3,void 0),re=m(e,"ariaValueText",3,""),Re=m(e,"onContextMenu",3,Dn),se=kt(),N=Y(void 0),De=Y(!1),de=g(()=>{var le;return(le=me())!=null?le:0}),ge=g(()=>{var le;return g1(f())&&((le=f()[f().length-1])==null?void 0:le.time)<r(de)}),ie=g(()=>g1(f())&&f().length&&r(ge)&&r(de)?We(j()*100,ue()*100):[]);function ve(le){if(le.preventDefault(),i()&&O(N,i().getBoundingClientRect(),!0),x())return;let Ne=Me(le.clientX,le.clientY),Qe=ke(le.clientX);E()(Ne,Qe,r(N).width)}function He(le){le.preventDefault(),!x()&&k()()}function fe(){I()()}function at(){R()()}function X(le){x()||v()&&(le.preventDefault(),le.deltaY<0?Z()():le.deltaY>0?H()():le.deltaX>0?K()():F()())}function Me(le,Ne){return l()?Math.max(0,Math.min(1,(r(N).height-(Ne-r(N).top))/r(N).height)):Math.min(Math.max(le-r(N).x,0),r(N).width)/r(N).width}function ke(le){return Math.min(Math.max(le-r(N).x,0),r(N).width)}function We(le,Ne){let Qe=se.features.episodesClustering&&!p()?se.episodeMinWidthPc:0,Ve=[],Ye=f()[0].time/r(de)*100,Be=0,et=0;for(let tt=1;tt<f().length;tt++)Be=f()[tt].time/r(de)*100,Be-Ye>Qe&&(Ve.push({from:Ye,width:Math.max(0,Be-Ye),loadedWidth:Math.max(0,Math.min(Be,le)-Ye),filledWidth:Math.max(0,Math.min(Be,Ne)-Ye),interactive:f()[tt-1].interactive,completed:f()[tt-1].completed}),Ye=f()[tt].time/r(de)*100,et++);let Lt={from:Ye,width:Math.max(0,100-Ye),loadedWidth:Math.max(0,Math.min(le,100)-Ye),filledWidth:Math.max(0,Math.min(Ne,100)-Ye),interactive:f()[et].interactive,completed:f()[et].completed};100-Ye<Qe?(et-=1,Ve[et].width+=100-Ye,Ve[et].loadedWidth+=Math.max(0,Math.min(le,100)-Ye),Ve[et].filledWidth+=Math.max(0,Math.min(Ne,100)-Ye)):Ve[et]=Lt;let Kt=f()[0].time;if(Kt!==0){let tt=Kt/r(de)*100;Ve.unshift({from:0,width:tt,loadedWidth:Math.min(tt,le),filledWidth:Math.min(tt,Ne)})}return Ve}function lt(le){return Math.max(0,Math.min(100,le*100))}var mt=S2(),vt=he(mt);{var Ct=le=>{var Ne=x2();let Qe;Ti(Ne,21,()=>r(ie),Ve=>Ve.from,(Ve,Ye)=>{var Be=Ke(),et=he(Be);{var Lt=Kt=>{Of(Kt,{get videoEpisode(){return r(Ye)},get disabled(){return x()}})};L(et,Kt=>{r(Ye).interactive&&Kt(Lt)})}$(Ve,Be)}),h(Ne),B(Ve=>Qe=te(Ne,1,"interactive-icons svelte-1tpemng",null,Qe,Ve),[()=>({mobile:a(),hidden:a()&&!r(De)})]),$(le,Ne)};L(vt,le=>{p()&&le(Ct)})}var je=P(vt,2);let Ft;je.__pointerdown=[h2,i,N,x,De,Me,y],je.__pointermove=[_2,x,Me,ke,V,N,De,S],je.__pointerup=[b2,x,De,Me,T],je.__click=[$2,x,ee,Me],je.__contextmenu=[y2,Me,x,ee,De,Re];var ti=_(je);{var Gt=le=>{Bf(le,{get videoEpisodes(){return r(ie)},get disabled(){return x()},get isMobile(){return a()}})},Wt=le=>{var Ne=w2(),Qe=_(Ne),Ve=P(Qe,2);let Ye;h(Ne),B((Be,et,Lt)=>{st(Qe,Be),Ye=te(Ve,1,"filled svelte-1tpemng",null,Ye,et),st(Ve,Lt)},[()=>`transform: translateX(${lt(j())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${lt(ue())}%);`]),$(le,Ne)};L(ti,le=>{r(ie).length?le(Gt):le(Wt,!1)})}var ne=P(ti,2);let Ut;var _e=_(ne);let Se;h(ne),h(je),ot(je,le=>i(le),()=>i()),B((le,Ne,Qe,Ve)=>{var Ye,Be;Ft=te(je,1,`slider ${(Ye=o())!=null?Ye:""}`,"svelte-1tpemng",Ft,le),Ue(je,"aria-label",pe()),Ue(je,"aria-valuemin",ye()),Ue(je,"aria-valuemax",me()),Ue(je,"aria-valuenow",Pe()),Ue(je,"aria-valuetext",re()),Ue(je,"data-testid",(Be=n())!=null?Be:null),Ut=te(ne,1,"handleWrap svelte-1tpemng",null,Ut,Ne),st(ne,Qe),Se=te(_e,1,"handle svelte-1tpemng",null,Se,Ve)},[()=>({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",je,ve),St("pointerleave",je,He),St("mouseenter",je,fe),St("mouseleave",je,at),St("wheel",je,X),$(t,mt),z()}dt(["pointerdown","pointermove","pointerup","click","contextmenu"]);var Ji=(t,e)=>ua[t]>=ua[e],h1=(t,e)=>ua[t]<ua[e],zs=(t,e)=>ua[t]<=ua[e],_1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var E2=M("<div><!></div>"),I2=M("<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 Df(t,e){var X,Me;U(e,!0),Q(t,k2);let[i,o]=Fe(),n=()=>C(E,"$isAudioAvailable$",i),s=()=>C(v,"$muted$",i),l=()=>C(f,"$volume$",i),d=()=>C(y,"$currentGridType$",i),a=Ie(),u=kt(),f=a.state.volume$,v=a.state.muted$,{setVolume:p,startVolumeChanging:x,stopVolumeChanging:w}=a.actions.internal,y=a.ui.currentGridType$,S=(X=a.callbacks)==null?void 0:X.onAudioDoesNotExistHint,T=(Me=a.callbacks)==null?void 0:Me.onAudioDisabledHint,E=a.state.isAudioAvailable$,V=a.state.isAudioDisabled,k=a.ui.t,I=Y(!1),R,Z=g(()=>e.isAds||n()),H=g(()=>!r(Z)||s()||l()===0),F=g(()=>zs(d(),"s")),K=g(()=>r(F)?"":r(H)?!n()||V?k("tooltip_sound_unavailable"):k("tooltip_volume"):k("tooltip_volume_muted")),ee=g(()=>r(H)?k("tooltip_volume"):k("tooltip_volume_muted")),j=g(()=>r(H)?0:l()),ue=!1,oe=g(()=>e.isAds?!1:V?!T:n()?!1:!S);function pe(ke){x(),p(ke)}function ye(){au(a,l(),u.controls.volumeStepWheel)}function me(){lu(a,l(),u.controls.volumeStepWheel)}function Pe(ke){p(ke)}function re(ke){p(ke),w()}function Re(){ue=!0}function se(){ue=!1,de()}function N(){clearTimeout(R),O(I,!0)}function De(){de()}function de(){R=window.setTimeout(()=>{ue||O(I,!1)},u.controls.volumeBarTimeout)}function ge(ke){ke.preventDefault(),ke.deltaY<0?ye():ke.deltaY>0&&me()}var ie=I2();let ve;var He=_(ie);ya(He,{get content(){return r(K)},translateY:-18,children:(ke,We)=>{let lt=g(()=>r(F)?"btn-volume-vertical":"btn-volume-horizontal");Ot(ke,{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)=>{Us(mt,{get volume(){return l()},get muted(){return r(H)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var fe=P(He,2);{var at=ke=>{var We=E2();let lt;var mt=_(We);let vt=g(()=>r(F)?"volumeBar-slider-vertical":""),Ct=g(()=>r(F)&&!r(I)),je=g(()=>r(F)?Re:cu),Ft=g(()=>r(F)?se:cu),ti=g(()=>Math.round(r(j)*100)),Gt=g(()=>`${Math.round(r(j)*100)}%`),Wt=g(()=>r(F)?"volume-slider-vertical":"volume-slider");xa(mt,{get className(){return r(vt)},get isHidden(){return r(Ct)},get isVertical(){return r(F)},withWheelHandler:!0,onWheelUp:ye,onWheelDown:me,onPointerDown:pe,onHandleMove:Pe,onPointerUp:re,get onPointerEnter(){return r(je)},get onPointerLeave(){return r(Ft)},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(Gt)},get filledProgress(){return r(j)},get handleProgress(){return r(j)},get testId(){return r(Wt)}}),h(We),B(ne=>lt=te(We,1,"volumeBar svelte-1auih1j",null,lt,ne),[()=>({"volumeBar-vertical":r(F)})]),$(ke,We)};L(fe,ke=>{r(Z)&&ke(at)})}h(ie),B(ke=>ve=te(ie,1,"volumeBar-container svelte-1auih1j",null,ve,ke),[()=>({vertical:r(F)})]),St("mouseenter",ie,function(...ke){var We;(We=r(F)?N:cu)==null||We.apply(this,ke)}),St("mouseleave",ie,function(...ke){var We;(We=r(F)?De:cu)==null||We.apply(this,ke)}),St("wheel",ie,ge),$(t,ie),z(),o()}import{noop as M2}from"@vkontakte/videoplayer-shared/es2015";var P2=Ee('<svg><!><g fill-rule="evenodd"><path d="M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z" class="_exit"></path><path d="M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z" class="_enter"></path></g></svg>');function Hf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=P2();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",viewBox:"0 0 24 24",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var A2={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
172
+ svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function Ff(t,e){Q(t,A2);let i=m(e,"isFullscreen",8,!1),o=Br(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Hf(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function $d(t,e){U(e,!0);let i=m(e,"isFullscreen",3,!1),o=m(e,"click",3,M2),n=Ie(),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=Hs(u);s.set(f),o()()},get ariaKeyShortCut(){return ss.KeyF},role:"button",children:(u,f)=>{Ff(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),z()}var L2=Ee('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z" clip-rule="evenodd"></path></svg>');function Uf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=L2();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var V2=Ee('<svg><!><path fill="var(--btn-color, #fff)" d="M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"></path><path fill="var(--btn-color, #fff)" d="M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35" class="_ru"></path><path fill="var(--btn-color, #fff)" d="M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635" class="_en"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z" clip-rule="evenodd"></path></svg>');function zf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=V2();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",viewBox:"0 0 95 24",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(4),h(o),$(t,o)}var R2={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
173
173
  svg[data-testid="vk-video-logo-icon--short"] ._en,
174
174
  svg[data-testid="vk-video-logo-icon"] ._en,
175
- svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function Xf(t,e){q(t,F2);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`);Zf(t,{get width(){return r(l)},height:"24",get viewBox(){return r(a)},get"data-testid"(){return r(d)}})}function Cd(t,e){U(e,!0);let[i,o]=Fe(),n=()=>C(x,"$isMobile",i),s=()=>C(p,"$currentGridType$",i),l=()=>C(y,"$isCyrillicRelatedInterface$",i),d=v(e,"ref",15,void 0),a=v(e,"logoClickable",3,!1),u=v(e,"targetUrl",3,""),f=kt(),m=Ee(),p=m.ui.currentGridType$,x=m.ui.isMobile,w=m.ui.t,y=m.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()||Ws(s(),"l"))&&r(T)),R=()=>{var k,j;e.click(),(k=m.callbacks)!=null&&k.onLogoClicked?(j=m.callbacks)==null||j.onLogoClicked():u()&&window.open(u(),"_blank")},I=g(()=>!a()),M=g(()=>r(T)?"btn-vk-video-logo":"btn-vk-logo");Dt(t,{className:"btn-full-opacity",get disabled(){return r(I)},click:R,get testId(){return r(M)},get ariaLabel(){return r(S)},get ref(){return d()},set ref(k){d(k)},children:(k,j)=>{var H=Qe(),F=he(H);{var Q=Y=>{Xf(Y,{get short(){return r(E)},get isCyrillic(){return l()}})},Z=Y=>{Yf(Y,{})};V(F,Y=>{r(T)?Y(Q):Y(Z,!1)})}$(k,H)},$$slots:{default:!0}}),z(),o()}import{ChromecastState as q2}from"@vkontakte/videoplayer-core/es2015";import{ChromecastState as k1}from"@vkontakte/videoplayer-core/es2015";var z2=Se('<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>'),W2=Se('<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>'),K2={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
175
+ svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function Wf(t,e){Q(t,R2);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`);zf(t,{get width(){return r(l)},height:"24",get viewBox(){return r(a)},get"data-testid"(){return r(d)}})}function yd(t,e){U(e,!0);let[i,o]=Fe(),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=Ie(),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()||zs(s(),"l"))&&r(T)),V=()=>{var R,Z;e.click(),(R=v.callbacks)!=null&&R.onLogoClicked?(Z=v.callbacks)==null||Z.onLogoClicked():u()&&window.open(u(),"_blank")},k=g(()=>!a()),I=g(()=>r(T)?"btn-vk-video-logo":"btn-vk-logo");Ot(t,{className:"btn-full-opacity",get disabled(){return r(k)},click:V,get testId(){return r(I)},get ariaLabel(){return r(S)},get ref(){return d()},set ref(R){d(R)},children:(R,Z)=>{var H=Ke(),F=he(H);{var K=j=>{Wf(j,{get short(){return r(E)},get isCyrillic(){return l()}})},ee=j=>{Uf(j,{})};L(F,j=>{r(T)?j(K):j(ee,!1)})}$(R,H)},$$slots:{default:!0}}),z(),o()}import{ChromecastState as H2}from"@vkontakte/videoplayer-core/es2015";import{ChromecastState as b1}from"@vkontakte/videoplayer-core/es2015";var O2=Ee('<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-mobile-icon" class="svelte-8z1bf5"><g filter="url(#b)" clip-path="url(#a)" class="svelte-8z1bf5"><mask id="c" maskUnits="userSpaceOnUse" x="1.1" y="3.1" width="22" height="18" fill="#000" class="svelte-8z1bf5"><path d="M1.1 3.1h22v18h-22z" class="svelte-8z1bf5"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path></mask><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path><path d="m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z" fill="#000" fill-opacity=".12" mask="url(#c)" class="svelte-8z1bf5"></path></g><defs class="svelte-8z1bf5"><clipPath id="a" class="svelte-8z1bf5"><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path></clipPath><filter id="b" x="-3.4" y="-1.4" width="30.8" height="26.802" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" class="svelte-8z1bf5"><feFlood flood-opacity="0" result="BackgroundImageFix" class="svelte-8z1bf5"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" class="svelte-8z1bf5"></feColorMatrix><feOffset class="svelte-8z1bf5"></feOffset><feGaussianBlur stdDeviation="2.5" class="svelte-8z1bf5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0" class="svelte-8z1bf5"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_4085_178456" class="svelte-8z1bf5"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_4085_178456" result="shape" class="svelte-8z1bf5"></feBlend></filter></defs></svg>'),B2=Ee('<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-icon"><g fill="none" fill-rule="evenodd" class="svelte-8z1bf5"><path class="wave wave1 svelte-8z1bf5" d="M1 18v3h3c0-1.66-1.34-3-3-3z" fill="var(--btn-color, #fff)"></path><path class="wave wave2 svelte-8z1bf5" d="M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z" fill="var(--btn-color, #fff)"></path><path class="wave wave3 svelte-8z1bf5" d="M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z" fill="var(--btn-color, #fff)"></path><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)" class="svelte-8z1bf5"></path><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z" fill="var(--btn-color, #fff)"></path></g></svg>'),D2={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
176
  animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
177
177
  animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
178
178
  animation-name: svelte-8z1bf5-wave3;}
@@ -220,9 +220,9 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},e1=ob;var b
220
220
  100% {
221
221
  opacity: 1;
222
222
  }
223
- }`};function Jf(t,e){U(e,!0),q(t,K2);let i=v(e,"isMobile",3,!1),o=g(()=>e.iconState===k1.CONNECTED),n=g(()=>e.iconState===k1.CONNECTING);var s=Qe(),l=he(s);{var d=u=>{var f=z2(),m=_(f),p=_(m),x=_(p);we(),h(p);var w=P(p);we(),h(m);var y=P(m),S=_(y),T=_(S);h(S),we(),h(y),h(f),B(()=>{ze(x,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),ze(w,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),ze(T,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),$(u,f)},a=u=>{var f=W2();let m;var p=_(f),x=P(_(p),5);let w;h(p),h(f),B((y,S)=>{m=oe(f,0,"svelte-8z1bf5",null,m,y),w=oe(x,0,"svelte-8z1bf5",null,w,S)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),$(u,f)};V(l,u=>{i()?u(d):u(a,!1)})}$(t,s),z()}import{noop as Q2}from"@vkontakte/videoplayer-shared/es2015";function Td(t,e){U(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"click",3,Q2),l=Ee().ui.t,d=g(()=>e.state===q2.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)=>{Jf(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),z()}var G2=A('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),j2={hash:"svelte-5ygsa2",code:'.tooltip-wrapper.svelte-5ygsa2 {position:relative;display:block;}.tooltip.svelte-5ygsa2 {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%);}.pointer.svelte-5ygsa2:after {position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px);}.tooltip.active.svelte-5ygsa2 {opacity:1;visibility:visible;}'};function em(t,e){q(t,j2);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=X(void 0),u=X(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 m=g(()=>f(n()));var p=G2(),x=_(p);let w;var y=_(x);ye(y,()=>{var S;return(S=e.children)!=null?S:ce}),h(x),tt(x,S=>O(u,S),()=>r(u)),h(p),tt(p,S=>O(a,S),()=>r(a)),B(S=>{nt(p,`transform: translate(${r(m)}px, ${s()}px);`),w=oe(x,1,"tooltip svelte-5ygsa2",null,w,S),nt(x,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),$(t,p)}var gu=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var P1=t=>!!(Math.round(Math.abs(t)/90)%2),A1=t=>Math.abs(t)/90%4===1;var Y2=A('<div class="preview svelte-1wqg760"></div>'),Z2=A('<div class="time svelte-1wqg760"> </div>'),X2=A('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),J2={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 tm(t,e){U(e,!0),q(t,J2);let[i,o]=Fe(),n=()=>C(w,"$rotateAlpha",i),s=()=>C(y,"$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=Ee(),w=x.ui.rotateAlpha,y=x.ui.playerSize,S=X(0),T=X(0),E=X(""),R=X(0),I=X(0),M=X(0),k=X(0),j=g(()=>gu(f(),m(),u())),H=g(()=>P1(n())),F=g(()=>A1(n())),Q=g(pe),Z=g(()=>(r(F)?1:-1)*(r(S)/2-r(T)/2)),Y=g(()=>r(Z)*-1);Ge(()=>{(ne=>{O(S,ne.width,!0),O(T,ne.height,!0)})(me())}),Ge(()=>{(ne=>{O(E,ne.imgSrc,!0),O(R,ne.imgWidth,!0),O(I,ne.imgHeight,!0),O(M,ne.imgOffsetX,!0),O(k,ne.imgOffsetY,!0)})($e(f()))});function pe(){var fe;let ne=a()?l.MOBILE:l.DESKTOP,{isVertical:ge}=se(),He=30;return(fe=r(j))!=null&&fe.text&&(He+=16),(ge||r(H))&&(He+=18,He+=50),Math.min(Math.max(s().height-He,0),ne)}function se(){let ne=e.previewThumbsData.frameWidth,ge=e.previewThumbsData.frameHeight,He=ge>ne;return{width:ne,height:ge,isHorizontal:!He,isVertical:He}}function me(){let{height:ne,isHorizontal:ge,isVertical:He,width:fe}=se();return ge&&(ne=ne/fe*r(Q),fe=r(Q)),He&&(fe=fe/ne*r(Q),ne=r(Q)),{width:fe,height:ne}}function $e(ne){let ge;e.previewThumbsData.isUV?ge=Math.floor(m()*ne/e.previewThumbsData.frequency):ge=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*ne)));let He=Math.floor(ge/e.previewThumbsData.countPerImage),fe=Math.floor(ge%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),st=ge%e.previewThumbsData.countPerRow,J=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&He===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(J=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&J++);let Me=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&He===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Me=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Pe=r(S)*Me,We=r(T)*J,rt=-st*r(S),_t=-fe*r(T);return{imgSrc:e.previewThumbsData.links[He],imgWidth:Pe,imgHeight:We,imgOffsetX:rt,imgOffsetY:_t}}var ve=X2();let Ae;var ae=_(ve);{var Ve=ne=>{var ge=Y2();B(()=>nt(ge,`width: ${r(S)}px; height: ${r(T)}px; background-image: url(${r(E)}); background-size: ${r(R)}px ${r(I)}px; background-position: ${r(M)}px ${r(k)}px;
224
- transform: rotate(${n()}deg) ${r(H)?`translate(${r(Z)}px, ${r(Y)}px)`:""};
225
- `)),$(ne,ge)};V(ae,ne=>{r(E)&&ne(Ve)})}var le=P(ae,2),N=_(le);{var De=ne=>{var ge=Qe(),He=he(ge);{var fe=J=>{var Me=ns();B(Pe=>be(Me,Pe),[()=>K("tooltip_episode_unfinished")]),$(J,Me)},st=J=>{var Me=ns();B(()=>be(Me,r(j).text||"")),$(J,Me)};V(He,J=>{p()&&r(j).completed===!1?J(fe):J(st,!1)})}$(ne,ge)};V(N,ne=>{r(j)&&ne(De)})}h(le);var ue=P(le,2);{var _e=ne=>{var ge=Z2(),He=_(ge,!0);h(ge),B(()=>be(He,d())),$(ne,ge)};V(ue,ne=>{p()||ne(_e)})}h(ve),B(ne=>{Ae=oe(ve,1,"timeline-preview svelte-1wqg760",null,Ae,ne),nt(ve,`width: ${r(H)?r(T):r(S)}px;`)},[()=>({mobile:a()})]),$(t,ve),z(),o()}var ey=A('<span class="time svelte-1jr6obn"> </span>'),ty=A("<!> <!>",1),iy={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 im(t,e){var re,Re,Ue,Ne,Ke;U(e,!0),q(t,iy);let[i,o]=Fe(),n=()=>C(Z,"$interactiveEpisodes$",i),s=()=>C(M,"$duration$",i),l=()=>C(I,"$position$",i),d=()=>C(se,"$isInteractiveExpectation$",i),a=()=>C(pe,"$isInteractiveTime$",i),u=()=>C(k,"$isLive$",i),f=()=>C(H,"$isMobile",i),m=()=>C(j,"$isActiveLive$",i),p=()=>C(R,"$bufferedProgress$",i),x=()=>C(ve,"$disabledControls$",i),w=v(e,"showTimeline",3,!1),y=v(e,"withEpisodes",3,!0),S=v(e,"ref",15,void 0),T=Ee(),E=kt(),R=T.state.bufferedProgress$,I=T.state.positionWithScrubbing$,M=T.state.duration$,k=T.state.isLive$,j=T.state.isActiveLive$,H=T.ui.isMobile,F=E.features.episodes&&y()?T.actions.internal.getVideoEpisodes():void 0,Q=T.actions.internal.getPreviewThumbsData(),Z=T.state.interactiveEpisodes$,Y=T.state.isInteractive,pe=T.state.isInteractiveTime$,se=T.state.isInteractiveExpectation$,me=T.actions.internal.correctSeekTimeToInteractive,$e=(re=T.callbacks)==null?void 0:re.onDisabledTimelineClick,ve=T.ui.controls.disabledControls$,Ae=(Ue=(Re=T.callbacks)==null?void 0:Re.uiInfo)==null?void 0:Ue.onTimelineMouseEnter,ae=(Ke=(Ne=T.callbacks)==null?void 0:Ne.uiInfo)==null?void 0:Ke.onTimelineMouseLeave,Ve=T.ui.t,le=E.features.interactiveResponsiveUi,N=g(()=>Y?n():F),De=g(()=>$n(s())),ue=g(()=>$n(l())),_e=g(()=>l()/s()),ne=g(()=>d()||a()),ge=X(!1),He=X(""),fe=X(0),st=X(0),J=X(0),Me=g(()=>({containerWidth:r(st),translateXPx:r(fe),translateYPx:Y&&Q?-36:-16,active:r(ge)&&w()&&!r(ne)&&!le,pointer:!E.features.timelinePreview||!Q||u()})),Pe=Ve("aria_timeline"),We=g(()=>Ve("aria_timeline_value",{position:r(ue),duration:r(De)}));function rt(Oe){return!me||!Y?Oe:me(Oe*s())/s()}function _t(Oe){T.actions.internal.startScrubbing(rt(Oe))}function lt(Oe){a()||T.actions.internal.progressScrubbing(rt(Oe))}function xt(Oe){T.actions.internal.completeScrubbing(rt(Oe)),O(ge,!1)}function Je(Oe,et,Wt){Ft(Oe,et,Wt),O(ge,!0)}function zt(Oe,et,Wt){Ft(Oe,et,Wt),O(ge,!0)}function ti(){O(ge,!1)}function Ft(Oe,et,Wt){O(J,rt(Oe),!0),O(fe,et,!0),Wt&&O(st,Wt,!0),O(He,Yt(Oe),!0)}function Yt(Oe){let et=$n((u()?1-Oe:Oe)*s());return u()?`-${et}`:et}var Ie=ty(),qt=he(Ie);em(qt,_s(()=>r(Me),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(Oe,et)=>{var Wt=Qe(),Qt=he(Wt);{var Et=bi=>{tm(bi,{get time(){return r(He)},get isMobile(){return f()},get videoEpisodes(){return r(N)},get previewThumbsData(){return Q},get progress(){return r(J)},get duration(){return s()},get isInteractive(){return Y}})},yi=bi=>{var ct=ey(),Ri=_(ct,!0);h(ct),B(()=>be(Ri,r(He))),$(bi,ct)};V(Qt,bi=>{E.features.timelinePreview&&Q&&!u()?bi(Et):bi(yi,!1)})}$(Oe,Wt)},$$slots:{default:!0}}));var Ce=P(qt,2);let ie=g(()=>x().has("TIMELINE"));xa(Ce,{className:"timeline-slider",get isActiveLive(){return m()},get isMobile(){return f()},get ariaLabel(){return Pe},ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return l()},get ariaValueText(){return r(We)},get loadedProgress(){return p()},get filledProgress(){return r(_e)},get handleProgress(){return r(_e)},get videoEpisodes(){return r(N)},onPointerDown:_t,onHandleMove:lt,onPointerMove:zt,onPointerUp:xt,onPointerEnter:Je,onPointerLeave:ti,get onMouseEnter(){return Ae},get onMouseLeave(){return ae},get onDisabledClick(){return $e},get isInteractive(){return Y},get disabled(){return r(ie)},get hideHandel(){return a()},testId:"progress_bar",onContextMenu:xt,get ref(){return S()},set ref(Oe){S(Oe)}}),$(t,Ie),z(),o()}var oy={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){U(e,!0),q(t,oy);let[i,o]=Fe(),n=()=>C(a,"$isMobile",i),s=v(e,"position",3,0),l=v(e,"duration",3,0),d=Ee(),a=d.ui.isMobile,u=d.ui.t,f=g(()=>$n(l())),m=g(()=>$n(s())),p=g(()=>s()/l()),x=g(()=>u("aria_timeline_value",{position:r(m),duration:r(f)})),w=g(()=>Math.round(r(p)*100));xa(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()}}),z(),o()}var ny=A("<div><!></div>"),ry=A("<div></div>"),sy={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 wa(t,e){U(e,!0),q(t,sy);let[i,o]=Fe(),n=()=>C(S,"$isLive$",i),s=()=>C(R,"$isMobile",i),l=()=>C(I,"$disabled",i),d=()=>C(E,"$adPosition",i),a=()=>C(T,"$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),w=Ee(),y=kt(),S=w.state.isLive$,T=w.ads.duration,E=w.ads.position,R=w.ui.isMobile,I=de(!1),M=g(()=>!m()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||u()));var k=Qe(),j=he(k);{var H=Q=>{var Z=ny();let Y;var pe=_(Z);{var se=$e=>{Ed($e,{get position(){return d()},get duration(){return a()}})},me=$e=>{im($e,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return r(M)},get withEpisodes(){return e.withEpisodes},get ref(){return x()},set ref(ve){x(ve)}})};V(pe,$e=>{u()?$e(se):$e(me,!1)})}h(Z),hs(Z,()=>al(f()&&y.features.usePerformanceFix,I,y.disableInvisibleComponentsTimeout)),B($e=>Y=oe(Z,1,"timeline svelte-41cp6d",null,Y,$e),[()=>({withoutPadding:!p(),mobile:s(),"out-of-flow":l()})]),$(Q,Z)},F=Q=>{var Z=ry();let Y;B(pe=>Y=oe(Z,1,"timeline-stub svelte-41cp6d",null,Y,pe),[()=>({mobile:s()})]),$(Q,Z)};V(j,Q=>{r(M)?Q(H):Q(F,!1)})}$(t,k),z(),o()}import{noop as dy}from"@vkontakte/videoplayer-shared/es2015";var ay=Se('<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 om(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=ay();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(3),h(o),$(t,o)}var ly=Se('<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 nm(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=ly();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(),h(o),$(t,o)}var cy=A('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),uy=A('<span class="text svelte-1yhs2ga"> </span>'),py=A('<span class="text count svelte-1yhs2ga"> </span>'),fy=A("<!> <!>",1),my={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 se,me,$e;U(e,!0),q(t,my);let[i,o]=Fe(),n=()=>C(w,"$currentGridType$",i),s=()=>C(y,"$openedByKeyboard$",i),l=()=>C(S,"$panelOpened$",i),d=()=>C(T,"$isMobile",i),a=v(e,"position",3,0),u=v(e,"duration",3,0),f=v(e,"timeCodes",19,()=>[]),m=Ee(),p=(me=(se=m.callbacks)==null?void 0:se.onEpisodeChanged)!=null?me:dy,x=!!(($e=m.callbacks)!=null&&$e.onEpisodeClicked),w=m.ui.currentGridType$,y=m.ui.episodes.openedByKeyboard$,S=m.ui.episodes.panelOpened$,T=m.ui.isMobile,E=m.ui.t,R=X(void 0),I=ve=>{var ae,Ve,le;if(!!((ae=m.callbacks)!=null&&ae.onEpisodeClicked)){let N=Fs(ve);y.set(N),S.set(!0),(le=(Ve=m.callbacks)==null?void 0:Ve.onEpisodeClicked)==null||le.call(Ve,N)}},M=X(null),k=g(()=>a()/u());Ge(()=>{var Ae;let ve=gu(r(k),u(),f());ve?((Ae=r(M))==null?void 0:Ae.time)!==ve.time&&(p(ve),O(M,ve,!0)):O(M,null)});let j=g(()=>{var ve;return((ve=r(M))==null?void 0:ve.text)||""}),H=g(()=>Ji(n(),"xl")?"FULL":Ji(n(),"m")&&E1(n(),"xl")?"COUNT":"SHORT"),F=g(()=>`${E("tooltip_episodes")}: ${r(j)}`),Q=(ve,Ae,ae)=>$t(null,null,function*(){yield Co(),(ve==null?void 0:ve.getAttribute("aria-expanded"))==="false"&&Ae&&!ae&&yt(()=>{y.set(!1),ve.focus()})});Ge(()=>{Q(r(R),s(),l())});var Z=Qe(),Y=he(Z);{var pe=ve=>{let Ae=g(()=>d()?"px-0":""),ae=g(()=>!x);Dt(ve,{get className(){var Ve;return`w-max btn-full-opacity btn-jc-l ${(Ve=r(Ae))!=null?Ve:""}`},testId:"btn-episodes",click:I,get disabled(){return r(ae)},get ariaExpanded(){return l()},get ariaLabel(){return r(F)},get ref(){return r(R)},set ref(Ve){O(R,Ve,!0)},children:(Ve,le)=>{var N=Qe(),De=he(N);{var ue=ne=>{var ge=cy(),He=he(ge),fe=_(He,!0);h(He);var st=P(He,2),J=_(st);nm(J,{}),h(st),B(()=>be(fe,r(j))),$(ne,ge)},_e=ne=>{var ge=fy(),He=he(ge);om(He,{});var fe=P(He,2);{var st=Me=>{var Pe=uy(),We=_(Pe,!0);h(Pe),B(()=>be(We,r(j))),$(Me,Pe)},J=(Me,Pe)=>{{var We=rt=>{var _t=py(),lt=_(_t,!0);h(_t),B(()=>be(lt,f().length)),$(rt,_t)};V(Me,rt=>{r(H)==="COUNT"&&rt(We)},Pe)}};V(fe,Me=>{r(H)==="FULL"?Me(st):Me(J,!1)})}$(ne,ge)};V(De,ne=>{d()?ne(ue):ne(_e,!1)})}$(Ve,N)},$$slots:{default:!0}})};V(Y,ve=>{r(M)&&ve(pe)})}$(t,Z),z(),o()}import{debounceFn as K1}from"@vkontakte/videoplayer-shared/es2015";import{ChromecastState as xy,PlaybackState as Pd,Player as wy,PredefinedQualityLimits as ds,VideoFormat as Ad,clientChecker as Sy}from"@vkontakte/videoplayer-core/es2015";import{assertNonNullable as cr,getHighestQuality as Cy,InterfaceLanguage as Ty,isInvariantQuality as Ey,isNonNullable as Iy,loadVKLangPack as ky,Logger as Py,map as B1,merge as Ay,Observable as D1,Subject as Su,Subscription as cm,TracerFactory as My,ValueSubject as Ly,VideoQuality as Vy,devNull as Ry,now as Ny,filter as Oy,once as By}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as xs}from"@vkontakte/videoplayer-statistics/es2015";import{detectEmbed as vy,devNull as Jt,now as ei}from"@vkontakte/videoplayer-shared/es2015";import{addScript as gy,Subject as on,clearVideoElement as hy}from"@vkontakte/videoplayer-shared/es2015";var M1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var _y="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",hu=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 on,loadStarted$:new on,loadEnded$:new on,loadError$:new on,ready$:new on,slotRequested$:new on,started$:new on,timeRemained$:new on,paused$:new on,resumed$:new on,ended$:new on,empty$:new on,skipped$:new on,clicked$:new on,closed$:new on,error$:new on};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())};gy(_y,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 R;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:m}=e,p,x=this.playerState&&xe(this.playerState.vsid);x&&(this.isVsidOriginal?p=x:p=parseInt(x,36));let{isEmbed:w,immediateOrigin:y}=vy(),S=(R=w?y:window.location.href)!=null?R:window.location.href,T=W(Ht(W(Ht(W({},u),{dl:encodeURIComponent(S),autoplay:s?1:0,player_width:i,player_height:o,preview:m}),p?{request_id:p}:{}),{duration:f}),this.usePuid?{puid10:M1(i,o),puid11:n?0:1}:{});m||delete T.preview;let E={slot:a,wrapper:l,videoEl:d,videoQuality:o,params:T,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){Jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(I)],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,m,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),(m=this.adman)==null||m.onError(void 0),(p=this.adman)==null||p.destroy(),this.videoElement&&hy(this.videoElement),this.isDestroyed=!0}};var L1=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 rm=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 sm,{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}},sm=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,a=[];for(;d<l.length;){let u=["<",">"].reduce((f,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}},V1=rm;import{isNonNullable as am}from"@vkontakte/videoplayer-shared/es2015";var Sa,ki,lm=0,dm=!1,R1="",N1=(t,e=0,i=0)=>t<e&&t<i,bu=(t,e=0,i=0)=>t>=e&&t<=i,by=(t,e=0,i=0)=>t>e&&t>i,O1=(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})=>bu(t,u,f));let s=t>=lm,l=t<lm;if(lm=t,l&&(dm=!1),am(Sa)&&bu(t,Sa.startTime,Sa.endTime)&&R1===e.value)return Sa;if(!am(ki)&&(n!=null&&n.length)&&!dm){ki=n.find(({startTime:u,endTime:f})=>bu(t,u,f)||s&&N1(t,u,f)),Sa=void 0,!am(ki)&&n[n.length-1].endTime<t&&(dm=!0);return}else{if(bu(t,ki==null?void 0:ki.startTime,ki==null?void 0:ki.endTime))return Sa=ki,ki=void 0,R1=e.value,Sa;(s&&by(t,ki==null?void 0:ki.startTime,ki==null?void 0:ki.endTime)||l&&N1(t,ki==null?void 0:ki.startTime,ki==null?void 0:ki.endTime))&&(ki=void 0)}};var $u={ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",en:"English",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F (\u0442\u0430\u0440\u0430\u0448\u043A\u0435\u0432i\u0446\u0430)",es:"Espa\xF1ol",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",hr:"Hrvatski",hu:"Magyar",sr:"\u0421\u0440\u043F\u0441\u043A\u0438",pt:"Portugu\xEAs",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",pl:"Polski",fr:"Fran\xE7ais",ko:"\uD55C\uAD6D\uC5B4","zh-CN":"\u6C49\u8BED",lt:"Lietuvi\u0173",ja:"\u65E5\u672C\u8A9E",cs:"\u010Ce\u0161tina",et:"Eesti",tt:"\u0422\u0430\u0442\u0430\u0440\u0447\u0430",ba:"\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430",cv:"\u0427\u0103\u0432\u0430\u0448\u043B\u0430",sk:"Sloven\u010Dina",ro:"Rom\xE2n\u0103",no:"Norsk",lv:"Latvie\u0161u",az:"Az\u0259rbaycan dili",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",sv:"Svenska",nl:"Nederlands",tk:"T\xFCrkmen",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",da:"Dansk",uz:"O\u2018zbek",th:"\u0E20\u0E32\u0E29\u0E32\u0E44\u0E17\u0E22",id:"Bahasa Indonesia",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",sl:"Sloven\u0161\u010Dina",bs:"Bosanski","pt-BR":"Portugu\xEAs brasileiro",fa:"\u0641\u0627\u0631\u0633\u06CC",vi:"Ti\u1EBFng Vi\u1EC7t",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",tl:"Tagalog",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",my:"\u1017\u1019\u102C\u1005\u102C",tr:"T\xFCrk\xE7e",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",ur:"\u0627\u0631\u062F\u0648",ky:"\u041A\u044B\u0440\u0433\u044B\u0437 \u0442\u0438\u043B\u0438",pa:"\u067E\u0646\u062C\u0627\u0628\u06CC",os:"\u0418\u0440\u043E\u043D",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",sw:"Kiswahili",kk:"\u049A\u0430\u0437\u0430\u049B\u0448\u0430",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",ab:"\u0410\u04A7\u0441\u0448\u04D9\u0430",eu:"Euskara",eo:"Esperanto"},$y={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"},kd=t=>{var e,i;return(i=(e=$u[t])!=null?e:$u[$y[t]])!=null?i:void 0};import{Subscription as yy}from"@vkontakte/videoplayer-shared/es2015";import"@vkontakte/videoplayer-statistics/es2015";var yu=class{constructor(e,i,o,n=new yy){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 xu=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(xu||{});var ls=t=>t!=null?t:0,ys=(t,e)=>{var n,s;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(s=e==null?void 0:e.getBoundingClientRect)==null?void 0:s.call(e);return{top:Math.round(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))}},ml=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 wu="off";var H1=({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:w,disabledControls:y,isInteractive:S,interactiveRanges$:T,isInteractiveTime$:E,replayInteractive:R,stopPlayer:I,hasInteractiveBranches:M,playPrevChapterDisabledTooltip:k,additionalButtons:j,additionalSettingsMenuItems:H,additionalContextMenuItems:F,playPrevVideo:Q,playNextVideo:Z,looped:Y=!1,statistics:pe,saveRate:se,internalsExposure:me,playerView:$e,playerId:ve})=>{var Av,Mv,Lv;let Ae=Ht(W({},x),{configName:[...(Av=x.configName)!=null?Av:[],"ui"],isAudioDisabled:l,live:Ht(W({},(Mv=x.live)!=null?Mv:{}),{isLiveCatchUpMode:!!n})}),ae=p,Ve=My.createRootTracer(ae.features.tracer),le=Ve.createComponentTracer("Store"),N=w||new wy(Ae,Ve,{playerId:ve});me==null||me.expose({corePlayer:N});let De=new Py,ue=new hu(De,{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}),_e=fa.getInstance(),ne=u==null?void 0:u.pictureInPictureApi,ge=u==null?void 0:u.annotationsApi,He=u==null?void 0:u.slotsApi,fe=De.createComponentLog("Store"),st,J,Me={},Pe=new qc,We=new cm,rt=pe&&pe.oneStat?oi(pe.oneStat.vsid$):wr(void 0),_t=de(Bs()),lt=de(!1),xt=(Lv=ne==null?void 0:ne.info.isActive$)!=null?Lv:new Ly(!1),Je=de(0),zt=de(!1),ti=de(!1),Ft=de([]),Yt=Ay(N.events.fatalError$,N.events.managedError$).subscribe(c=>Ft.update(b=>[...b,c])),Ie=wr(!1,c=>{let b=N.events.fatalError$.subscribe(()=>c(!0));return()=>b.unsubscribe()}),qt=c=>$t(null,null,function*(){var te;let b=Object.values(Ty).includes(c);if(ae.downloadVKLanguages&&(b&&ae.updateBuiltinLanguages||!vf(c))){let Te;try{Te=yield ky(c,$h,yh)}catch(ot){(te=pe==null?void 0:pe.oneStat)==null||te.logError({errorType:"VKLangPack",fatal:!1}),_e==null||_e.report(ot,{errorType:"VKLangPack",fatal:!1})}Te&&(mf({language:c,pack:Te,fallback:ae.defaultLanguage}),Ce.set(c))}vf(c)&&Ce.set(c)}),Ce=de(t),ie=de(e);qt(t);let re=(c,b)=>{let L=xe(Ce);return gf(L,c,b,ae.defaultLanguage)},Re=de("thumb");Re.subscribe(c=>{c==="ads"&&N.info.playbackState$.getValue()&&Ke()});let Ue=(()=>{let c=Si([Ie,Re],([b,L])=>b?"crashed":L);return Ht(W({},c),{is:b=>xe(c)===b})})(),Ne=de(),Ke=()=>{Ne.set({muted:N.info.muted$.getValue()})},Oe=(()=>{let c=de(new Set(y));return Ht(W({},c),{add:b=>{c.update(L=>new Set([...L].concat(b)))},remove:b=>{c.update(L=>{let te=[...L];return new Set(Array.isArray(b)?te.filter(Te=>!b.includes(Te)):te.filter(Te=>Te!==b))})},includes:b=>{let L=xe(c);return Array.isArray(b)?b.every(te=>L.has(te)):L.has(b)}})})(),et=de({width:0,height:0});le.log("create store"),fe({message:"create store"});let Wt=c=>{let b=c.container,L=()=>{Zt=new MutationObserver(Te=>{let{removedNodes:ot}=Te[0];ot.length&&b.append(N.experimental.element$.getValue())}),Zt.observe(b,{childList:!0})},te=N.experimental.element$.getValue();if(te)b.append(te),L();else{let Te=N.experimental.element$.pipe(Oy(ot=>!!ot),By()).subscribe(ot=>{b.append(ot),L()});We.add(Te)}},Qt=c=>{fe({message:`init video, config: ${JSON.stringify(c)}`}),S?Wt(c):(Ry.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[Ny()]}),N.initVideo(c)),le.log("init video",{isInteractive:S}),c.subtitles&&N.setExternalTextTracks(c.subtitles),st=c},Et=new Su,yi=c=>Et.next(c),bi=new Su,ct=new Su,Ri=new Su,Zt=null,dt={actionRewind$:bi,actionSeek$:ct,inPiP$:xt,inFullscreen$:new D1(c=>_t.subscribe(b=>c.next(b))),actionSetSubtitle$:Ri,nextMovie$:Et},di={actionSeek$:ct,playerSize$:new D1(c=>et.subscribe(b=>c.next(b)))};if(pe){let{oneStat:c,thinOneStat:b,mediascopePixel:L,statSubscription:te}=pe;c&&(S||te.add(c.attachTo(N)),te.add(c.attachToUi(dt)),te.add(c.attachToAds(ue.events)),c.authorize(s).catch(Te=>{fe({message:`onestat auth error ${String(Te)}`})}),L&&L.attachTo(N)),b&&(te.add(b.attachTo(N,ue.events)),te.add(b.attachToUi(di)),te.add(b.attachToAds(ue.events)),b.authorize(s))}if(_e){let c=new cm,b=(L,te)=>c.add(L.subscribe(te));if(b(N.events.managedError$,L=>{_e.logIError(L)}),b(N.events.fatalError$,L=>{_e.logIError(L,!0)}),pe){let{oneStat:L}=pe;L&&b(L.experimental.error$,te=>{_e.logIError(te)})}_e.sentrySubscription.add(c)}let Ni=()=>{if(Sy.device.isIOS&&J)try{s1(J)}catch(c){fe({message:`exitIosSafariFullscreen failed: ${c}`})}};We.add(N.experimental.element$.subscribe(c=>{c&&(J=c,c.classList.add("player-media"),va(ne)&&ne.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;Ni(),(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(()=>$t(null,null,function*(){var b,L;va(ne)&&(yield ne==null?void 0:ne.revealPictureInPicture());let c=N.info.muted$.getValue();(b=a==null?void 0:a.onStarted)==null||b.call(a),(L=Me.onStarted)==null||L.call(Me,c)}))).add(N.events.willSeek$.subscribe(({from:c,to:b})=>{var L;(L=a==null?void 0:a.onSeek)==null||L.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 L;let b=N.info.duration$.getValue();isFinite(b)&&b>0&&((L=a==null?void 0:a.onTimeupdate)==null||L.call(a,b,c),ue.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(()=>{zt.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{ti.set(c)})).add(N.info.isEnded$.subscribe(c=>{S&&(c?(E!=null&&E.getValue()&&Oe.add(id),Oe.add("PLAY_BUTTON")):Oe.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(ue.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(ue.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(ue.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(ue.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(ue.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(ue.events.started$.subscribe(c=>{var b,L;return(L=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onStarted)==null?void 0:L.call(b,c)})).add(ue.events.timeRemained$.subscribe(c=>{var b,L;return(L=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onTimeRemained)==null?void 0:L.call(b,c)})).add(ue.events.ended$.subscribe(c=>{var b,L;return(L=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onCompleted)==null?void 0:L.call(b,c)})).add(ue.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(ue.events.clicked$.subscribe(c=>{var b,L;return(L=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onClicked)==null?void 0:L.call(b,c)})).add(ue.events.closed$.subscribe(c=>{var b,L;return(L=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onClosed)==null?void 0:L.call(b,c)})).add(ue.events.error$.subscribe(c=>{var b,L;return(L=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onError)==null?void 0:L.call(b,c)})).add(ue.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(ue.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 Mt=new cm,li=()=>{var ot,Nt,Ot;let{debugLog:c}=ae,b,L="#9df7b7",te="#efd169";if(c&&c!==!0){let{colors:Ut}=c;b=c.tag,L=(ot=Ut==null?void 0:Ut[0])!=null?ot:L,te=(Ot=(Nt=Ut==null?void 0:Ut[1])!=null?Nt:Ut==null?void 0:Ut[0])!=null?Ot:te}let Te=b?`: ${b}`:"";Mt.add(N.events.log$.subscribe(Ut=>{console.debug(`%c sdk${Te} `,`background:${L};`,`sdk component: ${Ut.component}`,Ut.message)})).add(De.log$.subscribe(Ut=>{console.debug(`%c ui${Te} `,`background:${te};`,`ui component: ${Ut.component}.`,Ut.message)}))},rn=()=>{Mt.unsubscribe()},Lt=(c,b)=>{le.log("start camera manual rotation",{mx:c,my:b}),N.startCameraManualRotation(c,b)},pt=(c=!1)=>{le.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},pi=(c,b,L)=>{le.log("move camera focus px",{xpx:c,ypx:b,dt:L}),N.moveCameraFocusPX(c,b,L)},Io=()=>{N.holdCamera()},qi=()=>{N.releaseCamera()},ni=wr(N.info.position$.getValue(),c=>{let b,L,te=()=>{let Te=N.info.playbackState$.getValue(),ot=N.info.isLive$.getValue(),Nt=N.info.duration$.getValue(),Ot=N.info.position$.getValue();if(Te&&[Pd.PLAYING,Pd.PAUSED].includes(Te)){let Ut=ot?Ot-Nt:N.getExactTime();Ut!==L&&c(Ut),L=Ut}b=requestAnimationFrame(te)};return te(),()=>cancelAnimationFrame(b)}),Ko=oi(N.info.playbackState$),Un=oi(N.info.currentBuffer$),D=oi(N.info.isEnded$),qe=oi(N.info.isLive$),ut=ae.features.playbackRate?oi(N.info.canChangePlaybackSpeed$):wr(!1),Gt=oi(N.info.liveBufferTime$),Pt=oi(N.info.volume$),At=oi(N.info.muted$),fi=Qc(N.info.predefinedQualityLimitType$.pipe(B1(c=>c===ds.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===ds.TRAFFIC_SAVING),qo=Qc(N.info.predefinedQualityLimitType$.pipe(B1(c=>c===ds.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===ds.HIGH_QUALITY),ci=oi(N.info.autoQualityLimitingAvailable$),wt=oi(N.info.availableQualities$),to=oi(N.info.availableQualitiesFps$),Qi=oi(N.info.chromecastState$),zn=oi(N.info.chromecastDeviceName$),Oi=oi(N.info.currentFormat$),mo=oi(N.info.throughputEstimation$),vo=oi(N.info.videoBitrate$),yn=oi(N.info.intrinsicVideoSize$),sn=oi(N.info.duration$),Pi=oi(N.info.isAudioAvailable$),Gi=null,an=N.info.isBuffering$,ko=wr(an.getValue(),c=>{let b=an.subscribe(L=>{L&&Gi===null?Gi=window.setTimeout(()=>{c(an.getValue()),Gi=null},ae.loaderDelay):c(L)});return()=>{b.unsubscribe(),Gi&&clearTimeout(Gi)}}),ln=()=>{Gi&&clearTimeout(Gi),Gi=null},dn=Si([sn,qe],([c,b])=>b?-c:c),Cr=Si([Ko],([c])=>c===Pd.PLAYING),Wn=oi(N.info.atLiveEdge$),Tr=oi(N.info.atLiveDurationEdge$),ur=oi(N.info.position$),qr=Si([ur,sn],([c,b])=>isFinite(c)&&isFinite(b)&&!!b),cn=Si([Qi],([c])=>c===xy.CONNECTED),Kn=oi(N.info.availableVideoStreams$),pr=ae.features.audioLanguages?oi(N.info.availableAudioStreams$):wr([]),xn=oi(N.info.currentVideoStream$),co=oi(N.info.currentAudioStream$),qn=c=>{c.language&&cf(c.language),N.setVideoStream(c)},Er=(c,b)=>{N.setAudioStream(c),Ct(b)&&(c.language&&cf(c.language),ae.features.userVideoPrefs&&i&&ff(ae.userSalt,String(i),{audioTrackId:c.id}))},wn=c=>{let b;if(c.length===1&&(b=c.at(0)),b!=null||(b=c.find(te=>"isDefault"in te&&te.isDefault)),ae.features.userVideoPrefs&&i){let te=Xc(ae.userSalt,String(i));if(te!=null&&te.audioTrackId){let Te=c.find(ot=>ot.id===te.audioTrackId);b=Te!=null?Te:b}}let L=Kh();return L&&(b!=null||(b=c.find(({language:te})=>L===te))),b!=null||(b=c.at(0)),b},fr=!1;We.add(N.info.availableAudioStreams$.subscribe(c=>{if(!fr&&c.length){let b=wn(c);b&&(N.setAudioStream(b),fr=!0)}}));let Qn=!1;We.add(N.info.availableVideoStreams$.subscribe(c=>{if(!Qn&&c.length){let b=wn(c);b&&(N.setVideoStream(b),Qn=!0)}}));let Qo=de(void 0),Gn=oi(N.info.isAutoQualityEnabled$,c=>c&&Qo.set(void 0)),Qr=oi(N.info.currentQuality$,()=>Qo.set(void 0)),Ir=Si([Qo,Qr],([c,b])=>c!=null?c:b),go=Si(Oi,c=>c!==Ad.MPEG),ft=Si([wt,to,Gn,Ir,go],([c,b,L,te,Te])=>{let ot=[];Te&&ot.push({value:"auto",displayValue:re("auto_quality_option"),selected:L});let Nt=c.filter(Ot=>!Ey(Ot));for(let Ot of Nt){let Ut=b[Ot];ot.push({value:Ot,displayValue:`${Ot}${Ut?L1(Ut):""}`,selected:L?!1:Ot===te})}return ot}),Xt=oi(N.info.currentPlaybackRate$),Sn=Si([Xt,Wn,Tr],([c,b,L])=>{let te=L||S?1:ae.controls.playbackRateMin,Te=b?1:ae.controls.playbackRateMax,ot=ae.controls.playbackRateStep,Nt=[];for(let Ot=te;Ot<=Te;Ot+=ot)Nt.push({value:Ot,displayValue:Ot===1?re("playback_rate_1"):re("playback_rate",{multiplier:Ot.toString(10)}),selected:c===Ot});return Nt}),ji={displayValue:re("subtitles_off"),value:wu,language:""},Bi=de(W({},ji)),Go=ae.features.subtitles?oi(N.info.availableTextTracks$):wr([]),Cn=Rh(),uo=Si([Go,Bi],([c,b],L)=>{var ot;let te=[],Te=c.find(({id:Nt})=>Nt===b.value);if(Te!=null&&Te.url){let[,Nt]=(ot=Cn.find(Te.url))!=null?ot:[];if(Nt){L(Nt);return}Pe.download(Te.url).then(Ot=>{if(!Ot||Pe.isDestroyed())return;let Ut=new V1,Is=Te.language;if(Is){let A0=!!Te.isAuto,M0=Ut.parse(Ot,Is);te.push({lang:Is,subtitles:M0,isAuto:A0,id:Te.id})}Cn.add(Te.url,te),xe(Bi).value===b.value&&L(te)}).catch(Ot=>{var Ut;(Ut=pe==null?void 0:pe.oneStat)==null||Ut.logError({errorType:"Subtitles download",fatal:!1}),_e==null||_e.report(Ot,{errorType:"Subtitles download",fatal:!1})})}L(te)}),un=Si([Xt,Cr,Bi],([c,b,L],te)=>{let Nt;if(N.info.isLive$.getValue()&&b&&L.value!==ji.value){let Ut=()=>{let Is=1e3/(3*c);Nt=setTimeout(Ut,Is),te(Date.now())};return Ut(),()=>clearTimeout(Nt)}}),jo=Si([Go,Bi],([c,b])=>{if(!c.length)return[];let L=[];for(let{language:te,isAuto:Te,id:ot}of c){let Nt=te&&kd(te);te&&Nt&&L.push({displayValue:Te?re("subtitles_auto",{language:Nt}):Nt,value:ot,selected:(b==null?void 0:b.value)===ot,isAuto:Te,language:te})}return L.length?(L.unshift(Ht(W({},ji),{selected:(b==null?void 0:b.value)===ji.value})),L):[]}),ho={available:[],prev:[]},kr=()=>{var b,L;let c=N.experimental.getCurrentTime$.getValue();return(L=(b=c==null?void 0:c())!=null?b:J==null?void 0:J.currentTime)!=null?L:0},Pr=Si([ni,Bi,uo,un],([c,b,L,te])=>{var ot;let Te=N.info.isLive$.getValue();if(Te&&ho.prev!==L){let Nt=L.find(({id:Ut})=>Ut===b.value),Ot=ho.prev.find(({id:Ut})=>Ut===b.value);if(Nt){let Ut=Ht(W({},Nt),{subtitles:[...(ot=Ot==null?void 0:Ot.subtitles)!=null?ot:[],...Nt.subtitles]});ho.available=[Ut],ho.prev=L}}if(b&&b.value!==ji.value){let Nt=Te?kr():c,Ot=Te?ho.available:L;return O1(Nt,b,Ot,Te)}}),Gr=Si([Pr],([c])=>c!=null&&c.texts?c.texts:[]);We.add(Bi.subscribe(c=>{var b,L;if(c.value===ji.value)(b=a==null?void 0:a.onSubtitleOff)==null||b.call(a);else{let te=Object.entries($u).find(([Te,ot])=>ot===c.displayValue);(L=a==null?void 0:a.onSubtitleOn)==null||L.call(a,te?te[0]:"",c.value)}}));let cs=de(!0),Tn=Si([Un,dn,ur,Gt],([c,b,L,te])=>{var Ot;let Te=(Ot=c==null?void 0:c.end)!=null?Ot:0;if(!te)return Te/b;let Nt=-L+te-b;return(Te-Nt)/b}),mr=oi(N.info.availableSources$),Ar=Si([mr],([c])=>Object.keys((c==null?void 0:c[Ad.MPEG])||{}).length>0),_o=()=>{var L,te,Te;let c=Object.keys(((te=(L=N.info.availableSources$)==null?void 0:L.getValue())==null?void 0:te[Ad.MPEG])||{}),b=Cy(c)||Vy.Q_144P;return(Te=st.sources[Ad.MPEG])==null?void 0:Te[b]},ri=()=>{var b;let c=_o();if(c)le.log("download video",{url:c}),Mh(c,((b=st==null?void 0:st.meta)==null?void 0:b.title)||"video");else{let L="There is no URL for download video";le.log("download video",{message:L}),fe({message:L})}},pn=()=>{fe({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?io(mt(),!1):oo(!c,!1)},fn=()=>{var c;if(Vt.ui.settingsMenu.visible$.set(!1),!xe(Vt.ui.settingsSubMenu.visible$)){let b=xe(Vt.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&b){let te=ml(b),Te={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:te,position:Te,name:"settings"})}}le.log("close settings menu")},En=(c,b=()=>Promise.resolve())=>$t(null,null,function*(){var Te;Vt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Vt.ui.settingsMenu.visible$.set(!0),yield b();let L=xe(Vt.ui.settingsMenu.ref$),te=Ra();if((Te=a==null?void 0:a.uiInfo)!=null&&Te.onSettingsMenu&&L&&te){let Nt=ml(L),Ot=ys(L,te);a.uiInfo.onSettingsMenu({visible:!0,size:Nt,position:Ot,name:"settings"})}le.log("open settings menu",{wasOpenedByKeyboard:c})}),Mr=(c,b=!1)=>{var ot;Vt.ui.settingsSubMenu.visible$.set(!1);let L=xe(Vt.ui.settingsMenu.ref$),te=Ra(),Te=xe(Vt.ui.settingsMenu.visible$);if((ot=a==null?void 0:a.uiInfo)!=null&&ot.onSettingsMenu&&L&&te)if(Te&&!b){let Ot=ml(L),Ut=ys(L,te);a.uiInfo.onSettingsMenu({visible:!0,size:Ot,position:Ut,name:"settings"})}else{let Ot=ml(c),Ut={top:0,left:0,bottom:0,right:0},Is=xe(Vt.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:Ot,position:Ut,name:Is})}le.log("close settings sub menu")},Lr=(c,b)=>{var te;Vt.ui.settingsSubMenu.visible$.set(!0),Vt.ui.settingsSubMenu.ref$.set(b),Vt.ui.settingsSubMenu.name$.set(c);let L=Ra();if((te=a==null?void 0:a.uiInfo)!=null&&te.onSettingsMenu&&b&&L){let ot=ml(b),Nt=ys(b,L);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:ot,position:Nt})}le.log("open settings sub menu",{name:c})},mt=()=>{var b;let c=Math.max(ae.volumeMinRestore,(b=Gc())!=null?b:0);return c===0?ae.volumeDefault:c},Ct=c=>{let b=ae.features.savePreferredStatesOnUserActionOnly;return!b||b&&!c},io=(c,b)=>{let L=c===0?mt():c,te=N.info.muted$.getValue();fe({message:`set volume, volume: ${c}, preferredVolume: ${L}`});let Te=!l||Ue.is("ads");te&&c>0&&Te&&(te=!1,Ct(b)&&lf(!1)),N.setVolume(c,te),ue.setVolume(c),Ct(b)&&of(L)},oo=(c,b)=>{let L=N.info.volume$.getValue();fe({message:`set muted, currentVolume: ${L}, mute: ${c}`});let te=Ue.is("ads");if(N.setMuted(c,te),ue.setVolume(c?0:L),Ct(b)&&(!te||!c)&&lf(c),!c&&L===0){let Te=mt();N.setVolume(Te),Ct(b)&&of(Te),ue.setVolume(Te)}},Yi=de(!1),Po=c=>{var b,L;le.log("set looped",{isLooped:c}),Yi.set(c),N.setLooped(c),(L=(b=a==null?void 0:a.uiInfo)==null?void 0:b.onLoopedChanged)==null||L.call(b,c)};Po(Y);let bo=()=>{var c,b;(b=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||b.call(c)},In=(c,b=!1)=>{var L;fe({message:`set autoplayNextEnabled, value: ${c}`}),le.log("set autoplay next enabled",{autoplayNextEnabled:c}),Vt.ui.autoplayNextEnabled$.set(c),Gh(c),b&&((L=a==null?void 0:a.onSetAutoplayNextEnabled)==null||L.call(a,c))},no=c=>{fe({message:`set timerNextVideoRunning, value: ${c}`}),le.log("set timer next video running",{timerNextVideoRunning:c}),Vt.ui.timerNextVideoRunning$.set(c)},Ao=(c=!0)=>{var te;let b=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{b=(te=a==null?void 0:a.onPrevVideoClick)==null?void 0:te.call(a)}catch(Te){fe({message:"onPrevVideoClick callback failed to execute"})}if(!b)return;c&&Vr("prev")||Q()},kn=(c=!0)=>{var te;let b=!0;if(c&&(a!=null&&a.onNextVideoClick))try{b=(te=a==null?void 0:a.onNextVideoClick)==null?void 0:te.call(a)}catch(Te){fe({message:"onNextVideoClick callback failed to execute"})}if(!b)return;c&&Vr("next")||Z()},Vr=c=>{let{isMobile:b,features:{playbackStatusNextVideoShow:L,playbackStatusShow:te}}=ae;return L&&te&&!b?(Vt.ui.aboutToGoNextVideo.set(c),Vt.ui.userActionsDisabled.set(!0),!0):!1},jr=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},Mo=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},jn=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},Yn=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},vr=()=>{N.prepare()},it=()=>{cr(Vt);let c=xe(Vt.ui.controls.disabledControls$),b=xe(Vt.playerPhase),L={playerPhase:b,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(fe({message:"toggle play"}),b==="ads"){L.action="play",le.log("toggle adman play",L),ue.togglePlay();return}let te=()=>{var ot;fe({message:"toggle play, call player.play"}),L.action="play",N.play(),(ot=a==null?void 0:a.onPlay)==null||ot.call(a)},Te=()=>{var ot;fe({message:"toggle play, call player.pause"}),L.action="pause",N.pause(),(ot=a==null?void 0:a.onPause)==null||ot.call(a)};if(N.info.isEnded$.getValue()){if(fe({message:"toggle play, video ended, seek to 0"}),bi.next(),ct.next(xs.REWIND),S){R==null||R();return}N.seekTime(0),te()}else N.info.playbackState$.getValue()!==Pd.PLAYING?te():Te();le.log("toggle play",L)},Tt=(c,{changeReason:b="default",appliesTo:L="to-video"}={},te)=>{fe({message:`set quality, quality: ${c}`}),le.log("set quality",{quality:c}),N.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Te}=ae.features;jc(),c!=="auto"?(Te?(Yc({type:"exact_quality",quality:c,videoId:i},L),N.setPredefinedQualityLimits(ds.UNKNOWN)):nf(i,c),Qo.set(c),N.setQuality(c)):Te&&b==="default"&&(ro("auto_quality",L,te),xe(fi)&&gi(!1,void 0,te),xe(qo)&&Di(!1,void 0,te))},gi=(c,b="as-default",L)=>{fe({message:`set trafficSavingEnabled, value: ${c}`}),le.log("set traffic saving enabled",{trafficSavingEnabled:c});let te=c?ds.TRAFFIC_SAVING:ds.UNKNOWN;ae.features.qualityDetailsSubMenuEnabled?($o(te,b,L),od(!1)):(N.setPredefinedQualityLimits(te),Ct(L)&&od(c))},Di=(c,b="as-default",L)=>{fe({message:`set highQualityEnabled, value: ${c}`}),le.log("set high quality enabled",{highQualityEnabled:c}),$o(c?ds.HIGH_QUALITY:ds.UNKNOWN,b,L)},$o=(c,b,L)=>{c!==ds.UNKNOWN&&(xe(ci)&&!xe(Gn)&&Tt("auto",{appliesTo:b,changeReason:"limit-changed"},L),ro(c,b,L)),N.setPredefinedQualityLimits(c)},ro=(c,b,L)=>{Ct(L)&&(Yc({type:c,videoId:i},b),b==="as-default"&&Yc({type:c,videoId:i},"to-video"))},Ai=(c,b=!0)=>{le.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),ae.features.saveRate&&se&&!N.info.isLive$.getValue()&&b&&qh(c)},Lo=()=>{let c=xe(Sn),b=c.findIndex(({selected:te})=>te);if(b===c.length-1)return;let L=c[b+1];Ai(L.value)},Zn=()=>{let c=xe(Sn),b=c.findIndex(({selected:te})=>te);if(b===0)return;let L=c[b-1];Ai(L.value)},mn=(c=Ht(W({},ji),{selected:!1}),b)=>{le.log("set subtitles",W({},c)),c.value!==ji.value&&Ri.next(c.isAuto?c.value+"_auto":c.value),Bi.set(c),Ct(b)&&(pf(c.value===ji.value?void 0:c.language),ae.features.userVideoPrefs&&i&&ff(ae.userSalt,String(i),{subtitleTrackId:c.value===ji.value?void 0:c.value}))},yo=c=>{le.log("toggle subtitles");let b=xe(Bi);(b==null?void 0:b.value)===ji.value?gr(c):Pn(c)},Vo=(c,b)=>{le.log("change subtitle",{enabled:c}),c?gr(!0,b):Pn(!0)},gr=(c,b)=>{le.log("subtitle on");let L=xe(jo),te=xe(Ce),Te;b&&(Te=L.find(ot=>ot.value===b)),Te!=null||(Te=L.filter(ot=>ot.value!==ji.value).find(ot=>ot.value===te)||L[1]),mn(Te,c)},Pn=c=>{le.log("subtitle off"),mn(void 0,c)};N.info.availableTextTracks$.subscribe(c=>{var L;function b(){let te=[];for(let{language:Te,isAuto:ot,id:Nt}of c){let Ot=Te&&kd(Te);Te&&Ot&&te.push({id:Nt,language:Te,title:ot?re("subtitles_auto",{language:Ot}):Ot})}return te}(L=a==null?void 0:a.onAvailableSubtitlesChanged)==null||L.call(a,b())});let Xn=de(!0),hr=c=>{Xn.set(c)},Ro=(c,b,L=!0)=>{var te;if(fe({message:`seek to time, time: ${c}`}),le.log("seek to time",{time:c,action:b,forcePrecise:L}),ct.next(b),N.info.isLive$.getValue()){let Te=N.info.duration$.getValue(),ot=Math.min(0,Te+c);N.seekTime(ot,L)}else{if(E!=null&&E.getValue())return;N.info.isEnded$.getValue()&&(fe({message:"seek after ended, call callbacks.onPlay"}),(te=a==null?void 0:a.onPlay)==null||te.call(a)),N.seekTime(Es(c),L)}},Rr=c=>{fe({message:`seek to episode start time: ${c}`}),le.log("seek to episode start time",{time:c}),Ro(c,xs.EPISODE,!0)},Yr=(c,b)=>{fe({message:`seek to percent, percent: ${c}`}),le.log("seek to percent",{percent:c,action:b});let L=xe(dn)*c;Ro(L,b,!1)},Jn=c=>{fe({message:`seek external, time: ${c}`}),le.log("seek external",{time:c}),ct.next(xs.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},_r=c=>{var te,Te;let b=(te=c.max)!=null?te:"none",L=(Te=c.min)!=null?Te:"none";fe({message:`set auto quality limitation. Max: ${b}. Min: ${L}`}),le.log("set auto quality limits",{max:b,min:L}),N.setAutoQualityLimits(c)},Ye=c=>{fe({message:`seek external to episode start time: ${c}`}),le.log("seek external to episode start time",{time:c}),Ro(c,xs.EPISODE,!0)},ii=c=>{fe({message:`set playback rate to: ${c}`}),le.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},hi=de(void 0),xi=de(!1),No=c=>{fe({message:`start scrubbing, progress: ${c}`}),le.log("start scrubbing",{progress:c}),xi.set(!0),Zr(c)},Zr=c=>{hi.set(c)},Oo,An,er=()=>{hi.set(void 0),xi.set(!1)},Xr=()=>{clearTimeout(An),clearTimeout(Oo),Oo=window.setTimeout(()=>{er()},500),J==null||J.removeEventListener("seeked",Xr)},ee=c=>{fe({message:`complete scrubbing, progress: ${c}`}),le.log("complete scrubbing",{progress:c}),Yr(c,xs.SLIDER),xe(Vt.ui.isMobile)&&xe(Vt.state.currentFormat$)===Ad.HLS?(J==null||J.addEventListener("seeked",Xr),An=window.setTimeout(()=>{Xr()},300)):er()},Xe=Si([ni,dn,hi],([c,b,L],te)=>{te(Iy(L)?L*b:c)}),Kt=de(!1),vi=()=>{Kt.set(!0)},Hi=()=>{Kt.set(!1)},Fi=Si([et],([{width:c}],b)=>{let L=I1(c);b(L)}),Ci=de(!1),Mn=j.filter(c=>Lh(c)),Ti=Si([Fi,Ci],([c,b])=>b?Mn.filter(L=>!L.hideOnMobile):Mn.filter(L=>{var te;return!((te=L.hideOnDesktopGridTypes)!=null&&te.includes(c))})),ui=de(j.filter(c=>Vh(c))),Yo=Si([ui,Fi],([c,b])=>c.filter(L=>{var te;return!((te=L.hideOnDesktopGridTypes)!=null&&te.includes(b))})),br=Si([Yo,Ti],([c,b])=>[...ae.features.additionalButtonsDesktopControlPanelRight?c.filter(L=>L.type==="desktop-control-panel-right"):[],...ae.features.additionalButtons?b.map((L,te)=>{var Te;return{id:te,weight:te,type:"desktop-control-panel-right",testId:L.testId,icon:L.iconUrl,onClick:L.onClick,ariaLabel:(Te=L.ariaLabel)!=null?Te:L.tooltip,tooltipText:L.tooltip}}):[]]),xo=de(H),wo=Si([xo],([c])=>ae.features.additionalSettingsMenuItems?c.map(b=>b.type==="SWITCH"?Ht(W({},b),{onClick:b.onChangeEnabled}):b):[]),Gs=(c,b)=>{let L=xe(ui).map(te=>te.id!==c?te:W(W({},te),b));ui.set(L)},bt=c=>{let b=xe(ui);if(b.some(L=>L.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),ui.set(b)},ht=c=>{let b=xe(ui);if(!b.some(L=>L.id===c)){fe({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}b=b.filter(L=>L.id!==c),ui.set(b)},po=c=>{ct.next(xs.LIVE),fe({message:"live switch to low latency "+c}),le.log("live switch to low latency "+c),N.setLiveLowLatency(c)},Zo=(c,b)=>{let L=xe(xo).map(te=>te.id!==c?te:W(W({},te),b));xo.set(L)},Zi=c=>{let b=xe(xo);if(b.some(L=>L.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),xo.set(b)},mi=c=>{let b=xe(xo);if(!b.some(L=>L.id===c)){fe({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}b=b.filter(L=>L.id!==c),xo.set(b)},_i=de(F),Ts=Si([_i],([c])=>ae.features.additionalContextMenuItems?c:[]),xl=(c,b)=>{let L=xe(_i).map(te=>te.id!==c?te:W(W({},te),b));_i.set(L)},nc=c=>{let b=xe(_i);if(b.some(L=>L.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)},qu=c=>{let b=xe(_i);if(!b.some(L=>L.id===c)){fe({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}b=b.filter(L=>L.id!==c),_i.set(b)},rc=Si([Ci,Ie],([c,b],L)=>{L(c&&b)}),Qu=()=>{ct.next(xs.LIVE),fe({message:"switch to active live"}),le.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==Pd.PLAYING&&Vt.actions.internal.togglePlay()},sc=()=>{le.log("skip adman"),ue.skip()},Gu=(c=!0)=>{var te;cr(Vt),fe({message:`switch from ads to video, callPlay: ${c}`}),le.log("switch from ads to video",{callPlay:c}),Re.set("video"),c&&N.play(),l&&oo(!0,!0);let b=(te=xe(Ne))==null?void 0:te.muted,L=!N.info.muted$.getValue();b!==void 0&&!L&&oo(b,!0),Ne.set(void 0)},ac=()=>{cr(Vt),fe({message:"switch from video to ads"}),le.log("switch from video to ads"),Vt.actions.internal.pause(),Ni(),Re.set("ads")},ju=c=>{cr(Vt);let b=c?"LiveWaitingStart":"thumb";le.log("set live waiting start",{state:c,playerPhase:b}),Re.set(b)},lc=c=>{cr(Vt);let b=c?"LiveWaitingRecover":"thumb";le.log("set live waiting recover",{state:c,playerPhase:b}),Re.set(b)},Yu=c=>{cr(Vt);let b=c?"LiveWaitingRecord":"thumb";le.log("set live waiting record",{state:c,playerPhase:b}),Re.set(b)},dc=()=>(cr(Vt),le.log("get debug text data"),Ph(N,st,Vt,Ve.getTraceId())),Zu=()=>(cr(Vt),JSON.stringify(Ve.getFinishedSpans())),cc=()=>(cr(Vt),Ah(N,st,Vt)),Ra=()=>J,uc=()=>{fe({message:"toggle chromecast"}),le.log("toggle chromecast"),N.toggleChromecast()},pc=c=>{var L;if(cr(Vt),N.info.isEnded$.getValue())return;let b=!c;if(xe(Vt.playerPhase)==="ads"){fe({message:`pause ads, internalCall: ${b}`}),le.log("pause ads",{internalCall:b}),ue.pause();return}fe({message:`pause video, internalCall: ${b}`}),le.log("pause video",{internalCall:b}),b&&((L=a==null?void 0:a.onPause)==null||L.call(a)),N.pause()},wl=c=>{var L;cr(Vt);let b=!c;if(xe(Vt.playerPhase)==="ads"){fe({message:`play ads, internalCall: ${b}`}),le.log("play ads",{internalCall:b}),ue.play();return}fe({message:`play video, internalCall: ${b}`}),le.log("play video",{internalCall:b}),b&&((L=a==null?void 0:a.onPlay)==null||L.call(a)),N.play()},fc=c=>{cr(Vt);let b=!c;if(xe(Vt.playerPhase)==="ads"){fe({message:"player cannot be stopped during ads via external method"});return}fe({message:`player will be stopped, internalCall: ${b}`}),I==null||I()},Sl=(c,b)=>{cr(Vt),fe({message:`first start, show ads: ${c}, internalCall: ${!b}`}),le.log("first start",{showAds:c,external:b}),c?Re.set("ads"):(Re.set("video"),b?N.play():Vt.actions.internal.togglePlay())},Cl=()=>(fe({message:"getting time codes"}),f),Tl=()=>{let c=Cl();if(!c||[0,1].includes(c.length))return;let b=N.info.position$.getValue();return c.find(L=>L.time>b)},Xu=c=>{let b=c;b||(b=Tl());let L=N.info.position$.getValue();le.log("seek to next episode",W({currentTime:L},b)),b&&(fe({message:"seek to next episode"}),Ro(b.time,xs.EPISODE,!0))},El=()=>{let c=Cl();if(!c||[0,1].includes(c.length))return;let b=N.info.position$.getValue(),L=c.findIndex(Te=>Te.time>b),te=L===-1?c.length-2:L-2;if(!(te<0))return c[te]},Ju=c=>{let b=c;b||(b=El());let L=N.info.position$.getValue();le.log("seek to prev episode",W({currentTime:L},b)),b&&(fe({message:"seek to prev episode"}),Ro(b.time,xs.EPISODE,!0))},ep=()=>(fe({message:"getting preview thumbs data"}),le.log("get preview thumbs data",W({},m)),m),tp=()=>$t(null,null,function*(){let c=ne==null?void 0:ne.isActive(),b="none";ne!=null&&ne.isActive()?(b="exit",yield ne==null?void 0:ne.exit()):(b="request",yield ne==null?void 0:ne.request()),le.log("toggle picture in picture",{isActive:c,action:b})}),je=(c=-90)=>{le.log("rotate video",{alphaDiff:c}),Je.update(b=>b+c)},si=de([]);T==null||T.subscribe(c=>{let b=[];for(let L=0;L<c.length;L++){let{range:[te,Te],subjects:ot}=c[L];L===0&&te!==0&&b.push({time:0,text:"",interactive:!1,completed:!0}),b.push({time:te/1e3,text:"",interactive:!0,completed:ae.features.interactiveTimeOpenUri?!ot.length||ot.every(Nt=>Nt.isRemoved):!ot.length}),Te!==1/0&&b.push({time:Te/1e3,text:"",interactive:!1,completed:!0})}si.set(b)});let Bo=de(!1);E==null||E.subscribe(c=>{c&&xe(xi)&&er()});let Es=c=>{if(!S)return c;let b=xe(si),L=xe(dn),Te=xe(ur)/L,ot=b.find(Nt=>Nt.interactive&&!Nt.completed&&Nt.time>Te);return typeof(ot==null?void 0:ot.time)=="number"?Math.min(c,ot.time-.05):c},vn=()=>{Vt.ui.episodes.panelOpened$.set(!1)},k0=()=>{le.log("destroy store"),clearTimeout(An),clearTimeout(Oo),We.unsubscribe(),Mt.unsubscribe(),N.destroy(),ue.destroy(),pe==null||pe.destroy(),_e==null||_e.destroy(),Yt.unsubscribe(),Zt==null||Zt.disconnect(),Zt=null,Pe.destroy()},ip=de(!1),Pv=2,mc=null,P0=c=>{if(!xe(Cr))return;let b=N.info.currentPlaybackRate$.getValue();c?b!==Pv&&(mc=b,Ai(Pv,!1),ip.set(!0)):(mc&&Ai(mc,!1),ip.set(!1),mc=null)},Vt={interfaceLanguage$:Ce,isCyrillicRelatedInterface$:ie,initVideo:Qt,videoId:i,isClip:o,playerPhase:Ue,vsid:rt,state:{positionExact$:ni,positionWithScrubbing$:Xe,duration$:dn,playbackState$:Ko,isPlaying$:Cr,isLoaderVisible:ko,bufferedProgress$:Tn,isLive$:qe,canChangePlaybackSpeed$:ut,isActiveLive$:Wn,isOldestAvailableLive$:Tr,isRewindableLive$:qr,isEnded$:D,muted$:At,volume$:Pt,trafficSavingEnabled$:fi,highQualityEnabled$:qo,autoQualityLimitingAvailable$:ci,availableVideoStreams$:Kn,availableAudioStreams$:pr,videoStream$:xn,audioStream$:co,currentQuality$:Ir,isAutoQualityEnabled$:Gn,availableQualities$:ft,currentPlaybackRate$:Xt,availablePlaybackRates$:Sn,currentSubtitle$:Bi,availableTextTracks$:Go,availableSubtitlesList$:jo,currentSubtitleCaptions$:Gr,isAutoSubtitleCaptionVisible$:cs,chromecastState$:Qi,chromecastDeviceName$:zn,chromecastConnected$:cn,currentFormat$:Oi,throughputEstimation$:mo,videoBitrate$:vo,videoSize$:yn,errorLog$:Ft,crashed$:Ie,isAudioAvailable$:Pi,isAudioDisabled:!!l,canDownload:ae.features.download&&!!d,availableSources$:mr,hasMpegSources$:Ar,isInteractive:S,showInteractiveGraph:ae.features.interactiveGraph,showSeekToInteractive:ae.features.seekToInteractive,showPlayPrevChapter:ae.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ae.features.interactiveTimeIndicator&&!!xe(si).length,interactiveEpisodes$:si,isInteractiveTime$:E?oi(E):de(!1),isInteractiveExpectation$:Bo,hasInteractiveBranches:M,playPrevChapterDisabledTooltip:k,looped$:Yi,loadedMetadata$:zt,isAutoQualityAvailable$:go},ui:{t:re,controlsVisible:de(!1),touched:de(!1),controls:{prevButton:de(void 0),playButton:de(void 0),replayButton:de(void 0),nextButton:de(void 0),playPrevChapterButton:de(void 0),seekToInteractiveButton:de(void 0),interactiveGraphButton:de(void 0),liveButton:de(void 0),time:de(void 0),episodes:de(void 0),volume:de(void 0),subtitles:de(void 0),settings:de(void 0),context:de(void 0),chromecast:de(void 0),pip:de(void 0),fullscreen:de(void 0),vkLogo:de(void 0),interactiveTimeIndicator:de(void 0),timeline:de(void 0),autoplayNextToggle:de(void 0),additionalButtons:j.length?j.reduce(c=>[...c,de(void 0)],[]):[],disabledControls$:Oe},modals:{hotKeyMap:{show:de(!1),data:de({title:"",closeBtnText:"",groups:[]})}},isFullscreen:_t,isFullscreenOpenedByKeyboard:lt,rotateAlpha:Je,isAutoplay:de(!1),debugPanelVisible:de(!1),episodes:{panelOpened$:de(!1),openedByKeyboard$:de(!1)},contextMenu:{visible$:de(!1),btnRef$:de(void 0),openedByBtnKeyboard$:de(!1),openedByHotKey$:de(!1),lastActiveElem$:de(void 0),showContextMenuBtn$:de(!1),position$:de({top:0,left:0})},playerSize:et,isMobile:Ci,mobileNotReportControlHidden$:rc,icon3DVideoVisible:de(!1),scrubbingInProgress:xi,volumeChangingInProgress:Kt,is3DVideo:ti,currentGridType$:Fi,additionalButtonsDeprecated$:Ti,additionalDesktopControlPanelRightButtons$:br,additionalSettingsMenuItems$:wo,additionalContextMenuItems$:Ts,interactiveHideMobileControls:de(!1),overlayContainer$:de(void 0),startedByKeyboard$:de(!1),autoplayNextEnabled$:de(!1),timerNextVideoRunning$:de(!0),settingsMenu:{visible$:de(!1),ref$:de(void 0),openedByBtnKeyboard$:de(!1)},settingsSubMenu:{visible$:de(!1),ref$:de(void 0),name$:de(void 0)},aboutToGoNextVideo:de(void 0),userActionsDisabled:de(!1),hiddenControls:{volume:de(!1),vkLogo:de(!1),pip:de(!1),chromecast:de(!1),settings:de(!1)},isControlsAvailable:Xn,controlBlocks:{topLeft:de(void 0),topRight:de(void 0),middle:de(void 0),bottom:de(void 0),bottomLeft:de(void 0),bottomRight:de(void 0)},videoTitleInfo:de(void 0),doubleForwardOn$:ip},ads:{position:de(0),duration:de(0),playbackState:de("inactive"),canSkip:de(!1),secondsToWatchBeforeSkip:de(0),postrollPassed:de(!1)},webApi:{pictureInPictureApi:ne,annotationsApi:ge,slotsApi:He},actions:{internal:{preload:vr,firstStart:c=>Sl(c,!1),play:()=>wl(!1),pause:()=>pc(!1),togglePlay:it,toggleMuted:pn,openSettingsMenu:En,closeSettingsMenu:fn,openSettingsSubMenu:Lr,closeSettingsSubMenu:Mr,setVolume:c=>io(c,!1),setMuted:c=>oo(c,!1),startVolumeChanging:vi,stopVolumeChanging:Hi,setVideoStream:qn,setAudioStream:c=>Er(c,!1),setQuality:(c,b)=>Tt(c,b,!1),setTrafficSavingEnabled:(c,b)=>gi(c,b,!1),setHighQualityEnabled:(c,b)=>Di(c,b,!1),setPlaybackRate:Ai,incrementPlaybackRate:Lo,decrementPlaybackRate:Zn,setSubtitle:c=>mn(c,!1),toggleSubtitle:()=>yo(!1),togglePictureInPicture:tp,startScrubbing:No,progressScrubbing:Zr,completeScrubbing:ee,toggleChromecast:uc,switchToActiveLive:Qu,switchFromAdsToVideo:Gu,switchFromVideoToAds:ac,skipAd:sc,setLiveWaitingStart:ju,setLiveWaitingRecover:lc,setLiveWaitingRecord:Yu,getDebugTextData:dc,getTraceTextData:Zu,getDebugPanelData:cc,getVideoElement:Ra,seekTime:(c,b,L)=>Ro(c,b,L),clearDelayedBufferingCheckTimeout:ln,seekEpisodeStartTime:Rr,seekToPercent:Yr,getNextEpisode:Tl,seekToNextEpisode:Xu,getPrevEpisode:El,seekToPrevEpisode:Ju,startLogging:li,stopLogging:rn,startCameraManualRotation:Lt,stopCameraManualRotation:pt,moveCameraFocusPX:pi,holdCamera:Io,releaseCamera:qi,getVideoEpisodes:Cl,getPreviewThumbsData:ep,downloadVideo:ri,addLanguage:mf,setLanguage:qt,nextMovie:yi,videoRotate:je,correctSeekTimeToInteractive:Es,replayInteractive:R,setLooped:Po,reportProblem:bo,setAutoplayNextEnabled:In,setTimerNextVideoRunning:no,prevVideoClick:Ao,nextVideoClick:kn,nextVideoAnnouncementShow:jr,nextVideoAnnouncementClick:Mo,nextVideoAnnouncementAuto:jn,nextVideoAnnouncementCancel:Yn,changeDoubleForwardOn:P0},external:{firstStart:c=>Sl(c,!0),play:()=>wl(!0),pause:()=>pc(!0),stop:()=>fc(!0),seekTime:c=>Jn(c),seekEpisodeStartTime:c=>Ye(c),setPlaybackRate:c=>ii(c),setAutoQualityLimits:c=>_r(c),setMuted:c=>oo(c,!0),toggleSubtitle:()=>yo(!0),changeSubtitle:Vo,setVolume:c=>io(c,!0),returnFocusToEpisodes:vn,updateAdditionalSettingsItem:Zo,addAdditionalSettingsItem:Zi,removeAdditionalSettingsItem:mi,updateAdditionalContextItem:xl,addAdditionalContextItem:nc,removeAdditionalContextItem:qu,updateAdditionalButton:Gs,addAdditionalButton:bt,removeAdditionalButton:ht,setLiveLowLatency:po,hideControls:()=>hr(!1),showControls:()=>hr(!0),setQuality:c=>Tt(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>gi(c,"to-video",!0),setHighQualityEnabled:c=>Di(c,"to-video",!0)}},callbacks:a,setUiCallbacks:c=>{Me=W({},c)},getAdmanWrapper:()=>ue,getLogger:()=>De,getPlayer:()=>N,destroy:k0};return Vt};function Hn(t,e,i,o){var f;let n=(f=e[i])==null?void 0:f.getBoundingClientRect(),s=o&&!!n&&!!(n.right-n.left),{top:l,left:d,bottom:a,right:u}=ys(e[i],t||void 0);return{left:s?d:0,right:s?u:0,top:s?l:0,bottom:s?a:0,isDisplayed:s}}var Dy=["disabledControls$","additionalButtons"],Hy=["interactiveTimeIndicator"],gl=(t,e,i,o)=>{if(t){for(let[n,s]of Object.entries(e))if(!Dy.includes(n)){let l=o||Hy.includes(n);s.set(Hn(t,i,n,l))}}};var Cu=(t,e,i)=>$t(null,null,function*(){yield Co(),e&&i&&(i.focus(),t.set(!1))});var Fy=Se('<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 um(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=Fy();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(),h(o),$(t,o)}function pm(t,e){U(e,!0);let[i,o]=Fe(),n=()=>C(a,"$contextMenuVisible$",i),s=v(e,"disabled",3,!1),l=v(e,"ariaLabel",3,""),d=Ee(),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=X(void 0);Ge(()=>{r(x)&&yt(()=>{p.set(r(x))})});let w=E=>{let R=Fs(E),I=$1(r(x));m.set(I),u.set(R),a.set(!n())},y=()=>{f.set(!0)},S=()=>{f.set(!1)},T=g(()=>n()?"opened":"");Dt(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,R)=>{um(E,{})},$$slots:{default:!0}}),z(),o()}var Uy=t=>{t.stopPropagation()},zy=A("<div><!> <div></div> <div></div></div>"),Wy={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
223
+ }`};function Kf(t,e){U(e,!0),Q(t,D2);let i=m(e,"isMobile",3,!1),o=g(()=>e.iconState===b1.CONNECTED),n=g(()=>e.iconState===b1.CONNECTING);var s=Ke(),l=he(s);{var d=u=>{var f=O2(),v=_(f),p=_(v),x=_(p);Te(),h(p);var w=P(p);Te(),h(v);var y=P(v),S=_(y),T=_(S);h(S),Te(),h(y),h(f),B(()=>{Ue(x,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Ue(w,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Ue(T,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),$(u,f)},a=u=>{var f=B2();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),z()}import{noop as F2}from"@vkontakte/videoplayer-shared/es2015";function xd(t,e){U(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"click",3,F2),l=Ie().ui.t,d=g(()=>e.state===H2.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)=>{Kf(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),z()}var U2=M('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),z2={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,z2);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=U2(),x=_(p);let w;var y=_(x);xe(y,()=>{var S;return(S=e.children)!=null?S:ce}),h(x),ot(x,S=>O(u,S),()=>r(u)),h(p),ot(p,S=>O(a,S),()=>r(a)),B(S=>{st(p,`transform: translate(${r(v)}px, ${s()}px);`),w=te(x,1,"tooltip svelte-5ygsa2",null,w,S),st(x,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),$(t,p)}var uu=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var $1=t=>!!(Math.round(Math.abs(t)/90)%2),y1=t=>Math.abs(t)/90%4===1;var W2=M('<div class="preview svelte-1wqg760"></div>'),K2=M('<div class="time svelte-1wqg760"> </div>'),q2=M('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),Q2={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 Qf(t,e){U(e,!0),Q(t,Q2);let[i,o]=Fe(),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=Ie(),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),Z=g(()=>uu(f(),v(),u())),H=g(()=>$1(n())),F=g(()=>y1(n())),K=g(ue),ee=g(()=>(r(F)?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)})(ye(f()))});function ue(){var fe;let ie=a()?l.MOBILE:l.DESKTOP,{isVertical:ve}=oe(),He=30;return(fe=r(Z))!=null&&fe.text&&(He+=16),(ve||r(H))&&(He+=18,He+=50),Math.min(Math.max(s().height-He,0),ie)}function oe(){let ie=e.previewThumbsData.frameWidth,ve=e.previewThumbsData.frameHeight,He=ve>ie;return{width:ie,height:ve,isHorizontal:!He,isVertical:He}}function pe(){let{height:ie,isHorizontal:ve,isVertical:He,width:fe}=oe();return ve&&(ie=ie/fe*r(K),fe=r(K)),He&&(fe=fe/ie*r(K),ie=r(K)),{width:fe,height:ie}}function ye(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 He=Math.floor(ve/e.previewThumbsData.countPerImage),fe=Math.floor(ve%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),at=ve%e.previewThumbsData.countPerRow,X=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&He===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(X=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&X++);let Me=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&He===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Me=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let ke=r(S)*Me,We=r(T)*X,lt=-at*r(S),mt=-fe*r(T);return{imgSrc:e.previewThumbsData.links[He],imgWidth:ke,imgHeight:We,imgOffsetX:lt,imgOffsetY:mt}}var me=q2();let Pe;var re=_(me);{var Re=ie=>{var ve=W2();B(()=>st(ve,`width: ${r(S)}px; height: ${r(T)}px; background-image: url(${r(E)}); background-size: ${r(V)}px ${r(k)}px; background-position: ${r(I)}px ${r(R)}px;
224
+ transform: rotate(${n()}deg) ${r(H)?`translate(${r(ee)}px, ${r(j)}px)`:""};
225
+ `)),$(ie,ve)};L(re,ie=>{r(E)&&ie(Re)})}var se=P(re,2),N=_(se);{var De=ie=>{var ve=Ke(),He=he(ve);{var fe=X=>{var Me=ns();B(ke=>$e(Me,ke),[()=>q("tooltip_episode_unfinished")]),$(X,Me)},at=X=>{var Me=ns();B(()=>$e(Me,r(Z).text||"")),$(X,Me)};L(He,X=>{p()&&r(Z).completed===!1?X(fe):X(at,!1)})}$(ie,ve)};L(N,ie=>{r(Z)&&ie(De)})}h(se);var de=P(se,2);{var ge=ie=>{var ve=K2(),He=_(ve,!0);h(ve),B(()=>$e(He,d())),$(ie,ve)};L(de,ie=>{p()||ie(ge)})}h(me),B(ie=>{Pe=te(me,1,"timeline-preview svelte-1wqg760",null,Pe,ie),st(me,`width: ${r(H)?r(T):r(S)}px;`)},[()=>({mobile:a()})]),$(t,me),z(),o()}var G2=M('<span class="time svelte-1jr6obn"> </span>'),j2=M("<!> <!>",1),Y2={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 Gf(t,e){var le,Ne,Qe,Ve,Ye;U(e,!0),Q(t,Y2);let[i,o]=Fe(),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(H,"$isMobile",i),v=()=>C(Z,"$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=Ie(),E=kt(),V=T.state.bufferedProgress$,k=T.state.positionWithScrubbing$,I=T.state.duration$,R=T.state.isLive$,Z=T.state.isActiveLive$,H=T.ui.isMobile,F=E.features.episodes&&y()?T.actions.internal.getVideoEpisodes():void 0,K=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,ye=(le=T.callbacks)==null?void 0:le.onDisabledTimelineClick,me=T.ui.controls.disabledControls$,Pe=(Qe=(Ne=T.callbacks)==null?void 0:Ne.uiInfo)==null?void 0:Qe.onTimelineMouseEnter,re=(Ye=(Ve=T.callbacks)==null?void 0:Ve.uiInfo)==null?void 0:Ye.onTimelineMouseLeave,Re=T.ui.t,se=E.features.interactiveResponsiveUi,N=g(()=>j?n():F),De=g(()=>xn(s())),de=g(()=>xn(l())),ge=g(()=>l()/s()),ie=g(()=>d()||a()),ve=Y(!1),He=Y(""),fe=Y(0),at=Y(0),X=Y(0),Me=g(()=>({containerWidth:r(at),translateXPx:r(fe),translateYPx:j&&K?-36:-16,active:r(ve)&&w()&&!r(ie)&&!se,pointer:!E.features.timelinePreview||!K||u()})),ke=Re("aria_timeline"),We=g(()=>Re("aria_timeline_value",{position:r(de),duration:r(De)}));function lt(Be){return!pe||!j?Be:pe(Be*s())/s()}function mt(Be){T.actions.internal.startScrubbing(lt(Be))}function vt(Be){a()||T.actions.internal.progressScrubbing(lt(Be))}function Ct(Be){T.actions.internal.completeScrubbing(lt(Be)),O(ve,!1)}function je(Be,et,Lt){Gt(Be,et,Lt),O(ve,!0)}function Ft(Be,et,Lt){Gt(Be,et,Lt),O(ve,!0)}function ti(){O(ve,!1)}function Gt(Be,et,Lt){O(X,lt(Be),!0),O(fe,et,!0),Lt&&O(at,Lt,!0),O(He,Wt(Be),!0)}function Wt(Be){let et=xn((u()?1-Be:Be)*s());return u()?`-${et}`:et}var ne=j2(),Ut=he(ne);qf(Ut,_s(()=>r(Me),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(Be,et)=>{var Lt=Ke(),Kt=he(Lt);{var tt=_i=>{Qf(_i,{get time(){return r(He)},get isMobile(){return f()},get videoEpisodes(){return r(N)},get previewThumbsData(){return K},get progress(){return r(X)},get duration(){return s()},get isInteractive(){return j}})},wi=_i=>{var it=G2(),ri=_(it,!0);h(it),B(()=>$e(ri,r(He))),$(_i,it)};L(Kt,_i=>{E.features.timelinePreview&&K&&!u()?_i(tt):_i(wi,!1)})}$(Be,Lt)},$$slots:{default:!0}}));var _e=P(Ut,2);let Se=g(()=>x().has("TIMELINE"));xa(_e,{className:"timeline-slider",get isActiveLive(){return v()},get isMobile(){return f()},get ariaLabel(){return ke},ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return l()},get ariaValueText(){return r(We)},get loadedProgress(){return p()},get filledProgress(){return r(ge)},get handleProgress(){return r(ge)},get videoEpisodes(){return r(N)},onPointerDown:mt,onHandleMove:vt,onPointerMove:Ft,onPointerUp:Ct,onPointerEnter:je,onPointerLeave:ti,get onMouseEnter(){return Pe},get onMouseLeave(){return re},get onDisabledClick(){return ye},get isInteractive(){return j},get disabled(){return r(Se)},get hideHandel(){return a()},testId:"progress_bar",onContextMenu:Ct,get ref(){return S()},set ref(Be){S(Be)}}),$(t,ne),z(),o()}var Z2={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 wd(t,e){U(e,!0),Q(t,Z2);let[i,o]=Fe(),n=()=>C(a,"$isMobile",i),s=m(e,"position",3,0),l=m(e,"duration",3,0),d=Ie(),a=d.ui.isMobile,u=d.ui.t,f=g(()=>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));xa(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()}}),z(),o()}var X2=M("<div><!></div>"),J2=M("<div></div>"),ey={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 wa(t,e){U(e,!0),Q(t,ey);let[i,o]=Fe(),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=Ie(),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=Ke(),Z=he(R);{var H=K=>{var ee=X2();let j;var ue=_(ee);{var oe=ye=>{wd(ye,{get position(){return d()},get duration(){return a()}})},pe=ye=>{Gf(ye,{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,ye=>{u()?ye(oe):ye(pe,!1)})}h(ee),hs(ee,()=>ll(f()&&y.features.usePerformanceFix,k,y.disableInvisibleComponentsTimeout)),B(ye=>j=te(ee,1,"timeline svelte-41cp6d",null,j,ye),[()=>({withoutPadding:!p(),mobile:s(),"out-of-flow":l()})]),$(K,ee)},F=K=>{var ee=J2();let j;B(ue=>j=te(ee,1,"timeline-stub svelte-41cp6d",null,j,ue),[()=>({mobile:s()})]),$(K,ee)};L(Z,K=>{r(I)?K(H):K(F,!1)})}$(t,R),z(),o()}import{noop as oy}from"@vkontakte/videoplayer-shared/es2015";var ty=Ee('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"></path></svg>');function jf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=ty();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(3),h(o),$(t,o)}var iy=Ee('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708" clip-rule="evenodd" opacity=".7"></path></svg>');function Yf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=iy();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var ny=M('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),ry=M('<span class="text svelte-1yhs2ga"> </span>'),sy=M('<span class="text count svelte-1yhs2ga"> </span>'),ay=M("<!> <!>",1),ly={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 Sd(t,e){var oe,pe,ye;U(e,!0),Q(t,ly);let[i,o]=Fe(),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=Ie(),p=(pe=(oe=v.callbacks)==null?void 0:oe.onEpisodeChanged)!=null?pe:oy,x=!!((ye=v.callbacks)!=null&&ye.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,Re,se;if(!!((re=v.callbacks)!=null&&re.onEpisodeClicked)){let N=Hs(me);y.set(N),S.set(!0),(se=(Re=v.callbacks)==null?void 0:Re.onEpisodeClicked)==null||se.call(Re,N)}},I=Y(null),R=g(()=>a()/u());qe(()=>{var Pe;let me=uu(r(R),u(),f());me?((Pe=r(I))==null?void 0:Pe.time)!==me.time&&(p(me),O(I,me,!0)):O(I,null)});let Z=g(()=>{var me;return((me=r(I))==null?void 0:me.text)||""}),H=g(()=>Ji(n(),"xl")?"FULL":Ji(n(),"m")&&h1(n(),"xl")?"COUNT":"SHORT"),F=g(()=>`${E("tooltip_episodes")}: ${r(Z)}`),K=(me,Pe,re)=>xt(null,null,function*(){yield Po(),(me==null?void 0:me.getAttribute("aria-expanded"))==="false"&&Pe&&!re&&wt(()=>{y.set(!1),me.focus()})});qe(()=>{K(r(V),s(),l())});var ee=Ke(),j=he(ee);{var ue=me=>{let Pe=g(()=>d()?"px-0":""),re=g(()=>!x);Ot(me,{get className(){var Re;return`w-max btn-full-opacity btn-jc-l ${(Re=r(Pe))!=null?Re:""}`},testId:"btn-episodes",click:k,get disabled(){return r(re)},get ariaExpanded(){return l()},get ariaLabel(){return r(F)},get ref(){return r(V)},set ref(Re){O(V,Re,!0)},children:(Re,se)=>{var N=Ke(),De=he(N);{var de=ie=>{var ve=ny(),He=he(ve),fe=_(He,!0);h(He);var at=P(He,2),X=_(at);Yf(X,{}),h(at),B(()=>$e(fe,r(Z))),$(ie,ve)},ge=ie=>{var ve=ay(),He=he(ve);jf(He,{});var fe=P(He,2);{var at=Me=>{var ke=ry(),We=_(ke,!0);h(ke),B(()=>$e(We,r(Z))),$(Me,ke)},X=(Me,ke)=>{{var We=lt=>{var mt=sy(),vt=_(mt,!0);h(mt),B(()=>$e(vt,f().length)),$(lt,mt)};L(Me,lt=>{r(H)==="COUNT"&&lt(We)},ke)}};L(fe,Me=>{r(H)==="FULL"?Me(at):Me(X,!1)})}$(ie,ve)};L(De,ie=>{d()?ie(de):ie(ge,!1)})}$(Re,N)},$$slots:{default:!0}})};L(j,me=>{r(I)&&me(ue)})}$(t,ee),z(),o()}import{debounceFn as R1}from"@vkontakte/videoplayer-shared/es2015";import{ChromecastState as gy,PlaybackState as Td,Player as hy,PredefinedQualityLimits as ds,VideoFormat as Ed,clientChecker as _y}from"@vkontakte/videoplayer-core/es2015";import{assertNonNullable as sr,getHighestQuality as by,InterfaceLanguage as $y,isInvariantQuality as yy,isNonNullable as xy,loadVKLangPack as wy,Logger as Sy,map as I1,merge as Cy,Observable as k1,Subject as bu,Subscription as im,TracerFactory as Ty,ValueSubject as Ey,VideoQuality as Iy,devNull as ky,now as Py,filter as Ay,once as My}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as xs}from"@vkontakte/videoplayer-statistics/es2015";import{detectEmbed as dy,devNull as Jt,now as ei}from"@vkontakte/videoplayer-shared/es2015";import{addScript as cy,Subject as rn,clearVideoElement as uy}from"@vkontakte/videoplayer-shared/es2015";var x1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var py="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",pu=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 rn,loadStarted$:new rn,loadEnded$:new rn,loadError$:new rn,ready$:new rn,slotRequested$:new rn,started$:new rn,timeRemained$:new rn,paused$:new rn,resumed$:new rn,ended$:new rn,empty$:new rn,skipped$:new rn,clicked$:new rn,closed$:new rn,error$:new rn};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())};cy(py,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?we(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&&we(this.playerState.vsid);x&&(this.isVsidOriginal?p=x:p=parseInt(x,36));let{isEmbed:w,immediateOrigin:y}=dy(),S=(V=w?y:window.location.href)!=null?V:window.location.href,T=W(Bt(W(Bt(W({},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:x1(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=we(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&&uy(this.videoElement),this.isDestroyed=!0}};var w1=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 Zf=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 fu,{startTime:f,endTime:v}=u.parse(a);l.startTime=f,l.endTime=v}else if(a.trim()!==""){let u=new Xf,{texts:f}=u.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},fu=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}},Xf=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 fu;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}},S1=Zf;import{isNonNullable as Jf}from"@vkontakte/videoplayer-shared/es2015";var Sa,Ii,em=0,tm=!1,C1="",T1=(t,e=0,i=0)=>t<e&&t<i,mu=(t,e=0,i=0)=>t>=e&&t<=i,fy=(t,e=0,i=0)=>t>e&&t>i,E1=(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})=>mu(t,u,f));let s=t>=em,l=t<em;if(em=t,l&&(tm=!1),Jf(Sa)&&mu(t,Sa.startTime,Sa.endTime)&&C1===e.value)return Sa;if(!Jf(Ii)&&(n!=null&&n.length)&&!tm){Ii=n.find(({startTime:u,endTime:f})=>mu(t,u,f)||s&&T1(t,u,f)),Sa=void 0,!Jf(Ii)&&n[n.length-1].endTime<t&&(tm=!0);return}else{if(mu(t,Ii==null?void 0:Ii.startTime,Ii==null?void 0:Ii.endTime))return Sa=Ii,Ii=void 0,C1=e.value,Sa;(s&&fy(t,Ii==null?void 0:Ii.startTime,Ii==null?void 0:Ii.endTime)||l&&T1(t,Ii==null?void 0:Ii.startTime,Ii==null?void 0:Ii.endTime))&&(Ii=void 0)}};var vu={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"},my={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"},Cd=t=>{var e,i;return(i=(e=vu[t])!=null?e:vu[my[t]])!=null?i:void 0};import{Subscription as vy}from"@vkontakte/videoplayer-shared/es2015";import"@vkontakte/videoplayer-statistics/es2015";var gu=class{constructor(e,i,o,n=new vy){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 hu=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(hu||{});var ls=t=>t!=null?t:0,ys=(t,e)=>{var n,s;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(s=e==null?void 0:e.getBoundingClientRect)==null?void 0:s.call(e);return{top:Math.round(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))}},vl=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 _u="off";var P1=({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:Z,additionalSettingsMenuItems:H,additionalContextMenuItems:F,playPrevVideo:K,playNextVideo:ee,looped:j=!1,statistics:ue,saveRate:oe,internalsExposure:pe,playerView:ye,playerId:me})=>{var yv,xv,wv;let Pe=Bt(W({},x),{configName:[...(yv=x.configName)!=null?yv:[],"ui"],isAudioDisabled:l,live:Bt(W({},(xv=x.live)!=null?xv:{}),{isLiveCatchUpMode:!!n})}),re=p,Re=Ty.createRootTracer(re.features.tracer),se=Re.createComponentTracer("Store"),N=w||new hy(Pe,Re,{playerId:me});pe==null||pe.expose({corePlayer:N});let De=new Sy,de=new pu(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=fa.getInstance(),ie=u==null?void 0:u.pictureInPictureApi,ve=u==null?void 0:u.annotationsApi,He=u==null?void 0:u.slotsApi,fe=De.createComponentLog("Store"),at,X,Me={},ke=new Fc,We=new im,lt=ue&&ue.oneStat?ni(ue.oneStat.vsid$):yr(void 0),mt=ae(Os()),vt=ae(!1),Ct=(wv=ie==null?void 0:ie.info.isActive$)!=null?wv:new Ey(!1),je=ae(0),Ft=ae(!1),ti=ae(!1),Gt=ae([]),Wt=Cy(N.events.fatalError$,N.events.managedError$).subscribe(c=>Gt.update(b=>[...b,c])),ne=yr(!1,c=>{let b=N.events.fatalError$.subscribe(()=>c(!0));return()=>b.unsubscribe()}),Ut=c=>xt(null,null,function*(){var J;let b=Object.values($y).includes(c);if(re.downloadVKLanguages&&(b&&re.updateBuiltinLanguages||!af(c))){let Ce;try{Ce=yield wy(c,ch,uh)}catch(rt){(J=ue==null?void 0:ue.oneStat)==null||J.logError({errorType:"VKLangPack",fatal:!1}),ge==null||ge.report(rt,{errorType:"VKLangPack",fatal:!1})}Ce&&(sf({language:c,pack:Ce,fallback:re.defaultLanguage}),_e.set(c))}af(c)&&_e.set(c)}),_e=ae(t),Se=ae(e);Ut(t);let le=(c,b)=>{let A=we(_e);return lf(A,c,b,re.defaultLanguage)},Ne=ae("thumb");Ne.subscribe(c=>{c==="ads"&&N.info.playbackState$.getValue()&&Ye()});let Qe=(()=>{let c=Ci([ne,Ne],([b,A])=>b?"crashed":A);return Bt(W({},c),{is:b=>we(c)===b})})(),Ve=ae(),Ye=()=>{Ve.set({muted:N.info.muted$.getValue()})},Be=(()=>{let c=ae(new Set(y));return Bt(W({},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(Ce=>!b.includes(Ce)):J.filter(Ce=>Ce!==b))})},includes:b=>{let A=we(c);return Array.isArray(b)?b.every(J=>A.has(J)):A.has(b)}})})(),et=ae({width:0,height:0});se.log("create store"),fe({message:"create store"});let Lt=c=>{let b=c.container,A=()=>{jt=new MutationObserver(Ce=>{let{removedNodes:rt}=Ce[0];rt.length&&b.append(N.experimental.element$.getValue())}),jt.observe(b,{childList:!0})},J=N.experimental.element$.getValue();if(J)b.append(J),A();else{let Ce=N.experimental.element$.pipe(Ay(rt=>!!rt),My()).subscribe(rt=>{b.append(rt),A()});We.add(Ce)}},Kt=c=>{fe({message:`init video, config: ${JSON.stringify(c)}`}),S?Lt(c):(ky.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[Py()]}),N.initVideo(c)),se.log("init video",{isInteractive:S}),c.subtitles&&N.setExternalTextTracks(c.subtitles),at=c},tt=new bu,wi=c=>tt.next(c),_i=new bu,it=new bu,ri=new bu,jt=null,bi={actionRewind$:_i,actionSeek$:it,inPiP$:Ct,inFullscreen$:new k1(c=>mt.subscribe(b=>c.next(b))),actionSetSubtitle$:ri,nextMovie$:tt},Lo={actionSeek$:it,playerSize$:new k1(c=>et.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(bi)),J.add(c.attachToAds(de.events)),c.authorize(s).catch(Ce=>{fe({message:`onestat auth error ${String(Ce)}`})}),A&&A.attachTo(N)),b&&(J.add(b.attachTo(N,de.events)),J.add(b.attachToUi(Lo)),J.add(b.attachToAds(de.events)),b.authorize(s))}if(ge){let c=new im,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 $o=()=>{if(_y.device.isIOS&&X)try{Yh(X)}catch(c){fe({message:`exitIosSafariFullscreen failed: ${c}`})}};We.add(N.experimental.element$.subscribe(c=>{c&&(X=c,c.classList.add("player-media"),va(ie)&&ie.updateVideoElement(),S&&c.setAttribute("pip","false"),ye==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(N.events.ended$.subscribe(()=>{var c;$o(),(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;va(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=Me.onStarted)==null||A.call(Me,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),de.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(()=>{Ft.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{ti.set(c)})).add(N.info.isEnded$.subscribe(c=>{S&&(c?(E!=null&&E.getValue()&&Be.add(Xl),Be.add("PLAY_BUTTON")):Be.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(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 Ht=new im,li=()=>{var rt,Vt,Rt;let{debugLog:c}=re,b,A="#9df7b7",J="#efd169";if(c&&c!==!0){let{colors:Dt}=c;b=c.tag,A=(rt=Dt==null?void 0:Dt[0])!=null?rt:A,J=(Rt=(Vt=Dt==null?void 0:Dt[1])!=null?Vt:Dt==null?void 0:Dt[0])!=null?Rt:J}let Ce=b?`: ${b}`:"";Ht.add(N.events.log$.subscribe(Dt=>{console.debug(`%c sdk${Ce} `,`background:${A};`,`sdk component: ${Dt.component}`,Dt.message)})).add(De.log$.subscribe(Dt=>{console.debug(`%c ui${Ce} `,`background:${J};`,`ui component: ${Dt.component}.`,Dt.message)}))},an=()=>{Ht.unsubscribe()},Pt=(c,b)=>{se.log("start camera manual rotation",{mx:c,my:b}),N.startCameraManualRotation(c,b)},ut=(c=!1)=>{se.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},$i=(c,b,A)=>{se.log("move camera focus px",{xpx:c,ypx:b,dt:A}),N.moveCameraFocusPX(c,b,A)},Vo=()=>{N.holdCamera()},zi=()=>{N.releaseCamera()},si=yr(N.info.position$.getValue(),c=>{let b,A,J=()=>{let Ce=N.info.playbackState$.getValue(),rt=N.info.isLive$.getValue(),Vt=N.info.duration$.getValue(),Rt=N.info.position$.getValue();if(Ce&&[Td.PLAYING,Td.PAUSED].includes(Ce)){let Dt=rt?Rt-Vt:N.getExactTime();Dt!==A&&c(Dt),A=Dt}b=requestAnimationFrame(J)};return J(),()=>cancelAnimationFrame(b)}),Go=ni(N.info.playbackState$),Un=ni(N.info.currentBuffer$),D=ni(N.info.isEnded$),ze=ni(N.info.isLive$),pt=re.features.playbackRate?ni(N.info.canChangePlaybackSpeed$):yr(!1),zt=ni(N.info.liveBufferTime$),ct=ni(N.info.volume$),ci=ni(N.info.muted$),ui=Uc(N.info.predefinedQualityLimitType$.pipe(I1(c=>c===ds.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===ds.TRAFFIC_SAVING),yo=Uc(N.info.predefinedQualityLimitType$.pipe(I1(c=>c===ds.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===ds.HIGH_QUALITY),pi=ni(N.info.autoQualityLimitingAvailable$),yt=ni(N.info.availableQualities$),Vi=ni(N.info.availableQualitiesFps$),Ro=ni(N.info.chromecastState$),zn=ni(N.info.chromecastDeviceName$),Ri=ni(N.info.currentFormat$),to=ni(N.info.throughputEstimation$),No=ni(N.info.videoBitrate$),wn=ni(N.info.intrinsicVideoSize$),Sn=ni(N.info.duration$),ki=ni(N.info.isAudioAvailable$),Wi=null,jo=N.info.isBuffering$,Yo=yr(jo.getValue(),c=>{let b=jo.subscribe(A=>{A&&Wi===null?Wi=window.setTimeout(()=>{c(jo.getValue()),Wi=null},re.loaderDelay):c(A)});return()=>{b.unsubscribe(),Wi&&clearTimeout(Wi)}}),ln=()=>{Wi&&clearTimeout(Wi),Wi=null},dn=Ci([Sn,ze],([c,b])=>b?-c:c),qr=Ci([Go],([c])=>c===Td.PLAYING),Wn=ni(N.info.atLiveEdge$),wr=ni(N.info.atLiveDurationEdge$),ar=ni(N.info.position$),Sr=Ci([ar,Sn],([c,b])=>isFinite(c)&&isFinite(b)&&!!b),cn=Ci([Ro],([c])=>c===gy.CONNECTED),lr=ni(N.info.availableVideoStreams$),io=re.features.audioLanguages?ni(N.info.availableAudioStreams$):yr([]),Zo=ni(N.info.currentVideoStream$),Kn=ni(N.info.currentAudioStream$),Cn=c=>{c.language&&tf(c.language),N.setVideoStream(c)},Cr=(c,b)=>{N.setAudioStream(c),Yt(b)&&(c.language&&tf(c.language),re.features.userVideoPrefs&&i&&rf(re.userSalt,String(i),{audioTrackId:c.id}))},qn=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=Qc(re.userSalt,String(i));if(J!=null&&J.audioTrackId){let Ce=c.find(rt=>rt.id===J.audioTrackId);b=Ce!=null?Ce:b}}let A=Rh();return A&&(b!=null||(b=c.find(({language:J})=>A===J))),b!=null||(b=c.at(0)),b},dr=!1;We.add(N.info.availableAudioStreams$.subscribe(c=>{if(!dr&&c.length){let b=qn(c);b&&(N.setAudioStream(b),dr=!0)}}));let Tr=!1;We.add(N.info.availableVideoStreams$.subscribe(c=>{if(!Tr&&c.length){let b=qn(c);b&&(N.setVideoStream(b),Tr=!0)}}));let Tn=ae(void 0),Qn=ni(N.info.isAutoQualityEnabled$,c=>c&&Tn.set(void 0)),Er=ni(N.info.currentQuality$,()=>Tn.set(void 0)),Ir=Ci([Tn,Er],([c,b])=>c!=null?c:b),po=Ci(Ri,c=>c!==Ed.MPEG),ft=Ci([yt,Vi,Qn,Ir,po],([c,b,A,J,Ce])=>{let rt=[];Ce&&rt.push({value:"auto",displayValue:le("auto_quality_option"),selected:A});let Vt=c.filter(Rt=>!yy(Rt));for(let Rt of Vt){let Dt=b[Rt];rt.push({value:Rt,displayValue:`${Rt}${Dt?w1(Dt):""}`,selected:A?!1:Rt===J})}return rt}),ii=ni(N.info.currentPlaybackRate$),un=Ci([ii,Wn,wr],([c,b,A])=>{let J=A||S?1:re.controls.playbackRateMin,Ce=b?1:re.controls.playbackRateMax,rt=re.controls.playbackRateStep,Vt=[];for(let Rt=J;Rt<=Ce;Rt+=rt)Vt.push({value:Rt,displayValue:Rt===1?le("playback_rate_1"):le("playback_rate",{multiplier:Rt.toString(10)}),selected:c===Rt});return Vt}),Pi={displayValue:le("subtitles_off"),value:_u,language:""},Ki=ae(W({},Pi)),Xo=re.features.subtitles?ni(N.info.availableTextTracks$):yr([]),Jo=Ch(),xo=Ci([Xo,Ki],([c,b],A)=>{var rt;let J=[],Ce=c.find(({id:Vt})=>Vt===b.value);if(Ce!=null&&Ce.url){let[,Vt]=(rt=Jo.find(Ce.url))!=null?rt:[];if(Vt){A(Vt);return}ke.download(Ce.url).then(Rt=>{if(!Rt||ke.isDestroyed())return;let Dt=new S1,Es=Ce.language;if(Es){let C_=!!Ce.isAuto,T_=Dt.parse(Rt,Es);J.push({lang:Es,subtitles:T_,isAuto:C_,id:Ce.id})}Jo.add(Ce.url,J),we(Ki).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)}),Gn=Ci([ii,qr,Ki],([c,b,A],J)=>{let Vt;if(N.info.isLive$.getValue()&&b&&A.value!==Pi.value){let Dt=()=>{let Es=1e3/(3*c);Vt=setTimeout(Dt,Es),J(Date.now())};return Dt(),()=>clearTimeout(Vt)}}),pn=Ci([Xo,Ki],([c,b])=>{if(!c.length)return[];let A=[];for(let{language:J,isAuto:Ce,id:rt}of c){let Vt=J&&Cd(J);J&&Vt&&A.push({displayValue:Ce?le("subtitles_auto",{language:Vt}):Vt,value:rt,selected:(b==null?void 0:b.value)===rt,isAuto:Ce,language:J})}return A.length?(A.unshift(Bt(W({},Pi),{selected:(b==null?void 0:b.value)===Pi.value})),A):[]}),Oo={available:[],prev:[]},Qr=()=>{var b,A;let c=N.experimental.getCurrentTime$.getValue();return(A=(b=c==null?void 0:c())!=null?b:X==null?void 0:X.currentTime)!=null?A:0},Gr=Ci([si,Ki,xo,Gn],([c,b,A,J])=>{var rt;let Ce=N.info.isLive$.getValue();if(Ce&&Oo.prev!==A){let Vt=A.find(({id:Dt})=>Dt===b.value),Rt=Oo.prev.find(({id:Dt})=>Dt===b.value);if(Vt){let Dt=Bt(W({},Vt),{subtitles:[...(rt=Rt==null?void 0:Rt.subtitles)!=null?rt:[],...Vt.subtitles]});Oo.available=[Dt],Oo.prev=A}}if(b&&b.value!==Pi.value){let Vt=Ce?Qr():c,Rt=Ce?Oo.available:A;return E1(Vt,b,Rt,Ce)}}),kr=Ci([Gr],([c])=>c!=null&&c.texts?c.texts:[]);We.add(Ki.subscribe(c=>{var b,A;if(c.value===Pi.value)(b=a==null?void 0:a.onSubtitleOff)==null||b.call(a);else{let J=Object.entries(vu).find(([Ce,rt])=>rt===c.displayValue);(A=a==null?void 0:a.onSubtitleOn)==null||A.call(a,J?J[0]:"",c.value)}}));let jr=ae(!0),jn=Ci([Un,dn,ar,zt],([c,b,A,J])=>{var Rt;let Ce=(Rt=c==null?void 0:c.end)!=null?Rt:0;if(!J)return Ce/b;let Vt=-A+J-b;return(Ce-Vt)/b}),cr=ni(N.info.availableSources$),ur=Ci([cr],([c])=>Object.keys((c==null?void 0:c[Ed.MPEG])||{}).length>0),wo=()=>{var A,J,Ce;let c=Object.keys(((J=(A=N.info.availableSources$)==null?void 0:A.getValue())==null?void 0:J[Ed.MPEG])||{}),b=by(c)||Iy.Q_144P;return(Ce=at.sources[Ed.MPEG])==null?void 0:Ce[b]},Xt=()=>{var b;let c=wo();if(c)se.log("download video",{url:c}),xh(c,((b=at==null?void 0:at.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})}},fo=()=>{fe({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?qi(gt(),!1):oo(!c,!1)},Pr=()=>{var c;if(At.ui.settingsMenu.visible$.set(!1),!we(At.ui.settingsSubMenu.visible$)){let b=we(At.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&b){let J=vl(b),Ce={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:J,position:Ce,name:"settings"})}}se.log("close settings menu")},cs=(c,b=()=>Promise.resolve())=>xt(null,null,function*(){var Ce;At.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),At.ui.settingsMenu.visible$.set(!0),yield b();let A=we(At.ui.settingsMenu.ref$),J=Gs();if((Ce=a==null?void 0:a.uiInfo)!=null&&Ce.onSettingsMenu&&A&&J){let Vt=vl(A),Rt=ys(A,J);a.uiInfo.onSettingsMenu({visible:!0,size:Vt,position:Rt,name:"settings"})}se.log("open settings menu",{wasOpenedByKeyboard:c})}),Ar=(c,b=!1)=>{var rt;At.ui.settingsSubMenu.visible$.set(!1);let A=we(At.ui.settingsMenu.ref$),J=Gs(),Ce=we(At.ui.settingsMenu.visible$);if((rt=a==null?void 0:a.uiInfo)!=null&&rt.onSettingsMenu&&A&&J)if(Ce&&!b){let Rt=vl(A),Dt=ys(A,J);a.uiInfo.onSettingsMenu({visible:!0,size:Rt,position:Dt,name:"settings"})}else{let Rt=vl(c),Dt={top:0,left:0,bottom:0,right:0},Es=we(At.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:Rt,position:Dt,name:Es})}se.log("close settings sub menu")},Ni=(c,b)=>{var J;At.ui.settingsSubMenu.visible$.set(!0),At.ui.settingsSubMenu.ref$.set(b),At.ui.settingsSubMenu.name$.set(c);let A=Gs();if((J=a==null?void 0:a.uiInfo)!=null&&J.onSettingsMenu&&b&&A){let rt=vl(b),Vt=ys(b,A);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:rt,position:Vt})}se.log("open settings sub menu",{name:c})},gt=()=>{var b;let c=Math.max(re.volumeMinRestore,(b=zc())!=null?b:0);return c===0?re.volumeDefault:c},Yt=c=>{let b=re.features.savePreferredStatesOnUserActionOnly;return!b||b&&!c},qi=(c,b)=>{let A=c===0?gt():c,J=N.info.muted$.getValue();fe({message:`set volume, volume: ${c}, preferredVolume: ${A}`});let Ce=!l||Qe.is("ads");J&&c>0&&Ce&&(J=!1,Yt(b)&&Jp(!1)),N.setVolume(c,J),de.setVolume(c),Yt(b)&&Gp(A)},oo=(c,b)=>{let A=N.info.volume$.getValue();fe({message:`set muted, currentVolume: ${A}, mute: ${c}`});let J=Qe.is("ads");if(N.setMuted(c,J),de.setVolume(c?0:A),Yt(b)&&(!J||!c)&&Jp(c),!c&&A===0){let Ce=gt();N.setVolume(Ce),Yt(b)&&Gp(Ce),de.setVolume(Ce)}},no=ae(!1),So=c=>{var b,A;se.log("set looped",{isLooped:c}),no.set(c),N.setLooped(c),(A=(b=a==null?void 0:a.uiInfo)==null?void 0:b.onLoopedChanged)==null||A.call(b,c)};So(j);let mo=()=>{var c,b;(b=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||b.call(c)},vo=(c,b=!1)=>{var A;fe({message:`set autoplayNextEnabled, value: ${c}`}),se.log("set autoplay next enabled",{autoplayNextEnabled:c}),At.ui.autoplayNextEnabled$.set(c),Bh(c),b&&((A=a==null?void 0:a.onSetAutoplayNextEnabled)==null||A.call(a,c))},Qi=c=>{fe({message:`set timerNextVideoRunning, value: ${c}`}),se.log("set timer next video running",{timerNextVideoRunning:c}),At.ui.timerNextVideoRunning$.set(c)},pr=(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(Ce){fe({message:"onPrevVideoClick callback failed to execute"})}if(!b)return;c&&Yr("prev")||K()},fr=(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(Ce){fe({message:"onNextVideoClick callback failed to execute"})}if(!b)return;c&&Yr("next")||ee()},Yr=c=>{let{isMobile:b,features:{playbackStatusNextVideoShow:A,playbackStatusShow:J}}=re;return A&&J&&!b?(At.ui.aboutToGoNextVideo.set(c),At.ui.userActionsDisabled.set(!0),!0):!1},Zr=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},go=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},En=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},Mr=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},Lr=()=>{N.prepare()},nt=()=>{sr(At);let c=we(At.ui.controls.disabledControls$),b=we(At.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),de.togglePlay();return}let J=()=>{var rt;fe({message:"toggle play, call player.play"}),A.action="play",N.play(),(rt=a==null?void 0:a.onPlay)==null||rt.call(a)},Ce=()=>{var rt;fe({message:"toggle play, call player.pause"}),A.action="pause",N.pause(),(rt=a==null?void 0:a.onPause)==null||rt.call(a)};if(N.info.isEnded$.getValue()){if(fe({message:"toggle play, video ended, seek to 0"}),_i.next(),it.next(xs.REWIND),S){V==null||V();return}N.seekTime(0),J()}else N.info.playbackState$.getValue()!==Td.PLAYING?J():Ce();se.log("toggle play",A)},Tt=(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:Ce}=re.features;Wc(),c!=="auto"?(Ce?(Kc({type:"exact_quality",quality:c,videoId:i},A),N.setPredefinedQualityLimits(ds.UNKNOWN)):jp(i,c),Tn.set(c),N.setQuality(c)):Ce&&b==="default"&&(ho("auto_quality",A,J),we(ui)&&hi(!1,void 0,J),we(yo)&&Gi(!1,void 0,J))},hi=(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?(Co(J,b,A),Jl(!1)):(N.setPredefinedQualityLimits(J),Yt(A)&&Jl(c))},Gi=(c,b="as-default",A)=>{fe({message:`set highQualityEnabled, value: ${c}`}),se.log("set high quality enabled",{highQualityEnabled:c}),Co(c?ds.HIGH_QUALITY:ds.UNKNOWN,b,A)},Co=(c,b,A)=>{c!==ds.UNKNOWN&&(we(pi)&&!we(Qn)&&Tt("auto",{appliesTo:b,changeReason:"limit-changed"},A),ho(c,b,A)),N.setPredefinedQualityLimits(c)},ho=(c,b,A)=>{Yt(A)&&(Kc({type:c,videoId:i},b),b==="as-default"&&Kc({type:c,videoId:i},"to-video"))},ro=c=>{se.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),re.features.saveRate&&oe&&!N.info.isLive$.getValue()&&Nh(c)},Bo=()=>{let c=we(un),b=c.findIndex(({selected:J})=>J);if(b===c.length-1)return;let A=c[b+1];ro(A.value)},In=()=>{let c=we(un),b=c.findIndex(({selected:J})=>J);if(b===0)return;let A=c[b-1];ro(A.value)},fn=(c=Bt(W({},Pi),{selected:!1}),b)=>{se.log("set subtitles",W({},c)),c.value!==Pi.value&&ri.next(c.isAuto?c.value+"_auto":c.value),Ki.set(c),Yt(b)&&(nf(c.value===Pi.value?void 0:c.language),re.features.userVideoPrefs&&i&&rf(re.userSalt,String(i),{subtitleTrackId:c.value===Pi.value?void 0:c.value}))},ji=c=>{se.log("toggle subtitles");let b=we(Ki);(b==null?void 0:b.value)===Pi.value?mr(c):kn(c)},To=(c,b)=>{se.log("change subtitle",{enabled:c}),c?mr(!0,b):kn(!0)},mr=(c,b)=>{se.log("subtitle on");let A=we(pn),J=we(_e),Ce;b&&(Ce=A.find(rt=>rt.value===b)),Ce!=null||(Ce=A.filter(rt=>rt.value!==Pi.value).find(rt=>rt.value===J)||A[1]),fn(Ce,c)},kn=c=>{se.log("subtitle off"),fn(void 0,c)};N.info.availableTextTracks$.subscribe(c=>{var A;function b(){let J=[];for(let{language:Ce,isAuto:rt,id:Vt}of c){let Rt=Ce&&Cd(Ce);Ce&&Rt&&J.push({id:Vt,language:Ce,title:rt?le("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)},An=(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}),it.next(b),N.info.isLive$.getValue()){let Ce=N.info.duration$.getValue(),rt=Math.min(0,Ce+c);N.seekTime(rt,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($v(c),A)}},Vr=c=>{fe({message:`seek to episode start time: ${c}`}),se.log("seek to episode start time",{time:c}),An(c,xs.EPISODE,!0)},Eo=(c,b)=>{fe({message:`seek to percent, percent: ${c}`}),se.log("seek to percent",{percent:c,action:b});let A=we(dn)*c;An(A,b,!1)},Mn=c=>{fe({message:`seek external, time: ${c}`}),se.log("seek external",{time:c}),it.next(xs.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},Xr=c=>{var J,Ce;let b=(J=c.max)!=null?J:"none",A=(Ce=c.min)!=null?Ce:"none";fe({message:`set auto quality limitation. Max: ${b}. Min: ${A}`}),se.log("set auto quality limits",{max:b,min:A}),N.setAutoQualityLimits(c)},Ze=c=>{fe({message:`seek external to episode start time: ${c}`}),se.log("seek external to episode start time",{time:c}),An(c,xs.EPISODE,!0)},oi=c=>{fe({message:`set playback rate to: ${c}`}),se.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},yi=ae(void 0),Io=ae(!1),be=c=>{fe({message:`start scrubbing, progress: ${c}`}),se.log("start scrubbing",{progress:c}),Io.set(!0),It(c)},It=c=>{yi.set(c)},Zt,fi,Yi=()=>{yi.set(void 0),Io.set(!1)},so=()=>{clearTimeout(fi),clearTimeout(Zt),Zt=window.setTimeout(()=>{Yi()},500),X==null||X.removeEventListener("seeked",so)},Xe=c=>{fe({message:`complete scrubbing, progress: ${c}`}),se.log("complete scrubbing",{progress:c}),Eo(c,xs.SLIDER),we(At.ui.isMobile)&&we(At.state.currentFormat$)===Ed.HLS?(X==null||X.addEventListener("seeked",so),fi=window.setTimeout(()=>{so()},300)):Yi()},qt=Ci([si,dn,yi],([c,b,A],J)=>{J(xy(A)?A*b:c)}),Oi=ae(!1),Do=()=>{Oi.set(!0)},mn=()=>{Oi.set(!1)},Yn=Ci([et],([{width:c}],b)=>{let A=_1(c);b(A)}),gr=ae(!1),Rr=Z.filter(c=>wh(c)),Zi=Ci([Yn,gr],([c,b])=>b?Rr.filter(A=>!A.hideOnMobile):Rr.filter(A=>{var J;return!((J=A.hideOnDesktopGridTypes)!=null&&J.includes(c))})),mi=ae(Z.filter(c=>Sh(c))),vn=Ci([mi,Yn],([c,b])=>c.filter(A=>{var J;return!((J=A.hideOnDesktopGridTypes)!=null&&J.includes(b))})),hr=Ci([vn,Zi],([c,b])=>[...re.features.additionalButtonsDesktopControlPanelRight?c.filter(A=>A.type==="desktop-control-panel-right"):[],...re.features.additionalButtons?b.map((A,J)=>{var Ce;return{id:J,weight:J,type:"desktop-control-panel-right",testId:A.testId,icon:A.iconUrl,onClick:A.onClick,ariaLabel:(Ce=A.ariaLabel)!=null?Ce:A.tooltip,tooltipText:A.tooltip}}):[]]),Ho=ae(H),_o=Ci([Ho],([c])=>re.features.additionalSettingsMenuItems?c.map(b=>b.type==="SWITCH"?Bt(W({},b),{onClick:b.onChangeEnabled}):b):[]),Ra=(c,b)=>{let A=we(mi).map(J=>J.id!==c?J:W(W({},J),b));mi.set(A)},bt=c=>{let b=we(mi);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),mi.set(b)},$t=c=>{let b=we(mi);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),mi.set(b)},ao=c=>{it.next(xs.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=we(Ho).map(J=>J.id!==c?J:W(W({},J),b));Ho.set(A)},Bi=c=>{let b=we(Ho);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),Ho.set(b)},vi=c=>{let b=we(Ho);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),Ho.set(b)},gi=ae(F),Qs=Ci([gi],([c])=>re.features.additionalContextMenuItems?c:[]),Na=(c,b)=>{let A=we(gi).map(J=>J.id!==c?J:W(W({},J),b));gi.set(A)},Fu=c=>{let b=we(gi);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),gi.set(b)},ec=c=>{let b=we(gi);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),gi.set(b)},Uu=Ci([gr,ne],([c,b],A)=>{A(c&&b)}),tc=()=>{it.next(xs.LIVE),fe({message:"switch to active live"}),se.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==Td.PLAYING&&At.actions.internal.togglePlay()},zu=()=>{se.log("skip adman"),de.skip()},ic=(c=!0)=>{var J;sr(At),fe({message:`switch from ads to video, callPlay: ${c}`}),se.log("switch from ads to video",{callPlay:c}),Ne.set("video"),c&&N.play(),l&&oo(!0,!0);let b=(J=we(Ve))==null?void 0:J.muted,A=!N.info.muted$.getValue();b!==void 0&&!A&&oo(b,!0),Ve.set(void 0)},Wu=()=>{sr(At),fe({message:"switch from video to ads"}),se.log("switch from video to ads"),At.actions.internal.pause(),$o(),Ne.set("ads")},oc=c=>{sr(At);let b=c?"LiveWaitingStart":"thumb";se.log("set live waiting start",{state:c,playerPhase:b}),Ne.set(b)},Ku=c=>{sr(At);let b=c?"LiveWaitingRecover":"thumb";se.log("set live waiting recover",{state:c,playerPhase:b}),Ne.set(b)},nc=c=>{sr(At);let b=c?"LiveWaitingRecord":"thumb";se.log("set live waiting record",{state:c,playerPhase:b}),Ne.set(b)},rc=()=>(sr(At),se.log("get debug text data"),$h(N,at,At,Re.getTraceId())),sc=()=>(sr(At),JSON.stringify(Re.getFinishedSpans())),qu=()=>(sr(At),yh(N,at,At)),Gs=()=>X,Qu=()=>{fe({message:"toggle chromecast"}),se.log("toggle chromecast"),N.toggleChromecast()},wl=c=>{var A;if(sr(At),N.info.isEnded$.getValue())return;let b=!c;if(we(At.playerPhase)==="ads"){fe({message:`pause ads, internalCall: ${b}`}),se.log("pause ads",{internalCall:b}),de.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()},ac=c=>{var A;sr(At);let b=!c;if(we(At.playerPhase)==="ads"){fe({message:`play ads, internalCall: ${b}`}),se.log("play ads",{internalCall:b}),de.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()},Gu=c=>{sr(At);let b=!c;if(we(At.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()},lc=(c,b)=>{sr(At),fe({message:`first start, show ads: ${c}, internalCall: ${!b}`}),se.log("first start",{showAds:c,external:b}),c?Ne.set("ads"):(Ne.set("video"),b?N.play():At.actions.internal.togglePlay())},Ge=()=>(fe({message:"getting time codes"}),f),di=()=>{let c=Ge();if(!c||[0,1].includes(c.length))return;let b=N.info.position$.getValue();return c.find(A=>A.time>b)},Fo=c=>{let b=c;b||(b=di());let A=N.info.position$.getValue();se.log("seek to next episode",W({currentTime:A},b)),b&&(fe({message:"seek to next episode"}),An(b.time,xs.EPISODE,!0))},Ts=()=>{let c=Ge();if(!c||[0,1].includes(c.length))return;let b=N.info.position$.getValue(),A=c.findIndex(Ce=>Ce.time>b),J=A===-1?c.length-2:A-2;if(!(J<0))return c[J]},hn=c=>{let b=c;b||(b=Ts());let A=N.info.position$.getValue();se.log("seek to prev episode",W({currentTime:A},b)),b&&(fe({message:"seek to prev episode"}),An(b.time,xs.EPISODE,!0))},b_=()=>(fe({message:"getting preview thumbs data"}),se.log("get preview thumbs data",W({},v)),v),$_=()=>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})}),y_=(c=-90)=>{se.log("rotate video",{alphaDiff:c}),je.update(b=>b+c)},dc=ae([]);T==null||T.subscribe(c=>{let b=[];for(let A=0;A<c.length;A++){let{range:[J,Ce],subjects:rt}=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?!rt.length||rt.every(Vt=>Vt.isRemoved):!rt.length}),Ce!==1/0&&b.push({time:Ce/1e3,text:"",interactive:!1,completed:!0})}dc.set(b)});let x_=ae(!1);E==null||E.subscribe(c=>{c&&we(Io)&&Yi()});let $v=c=>{if(!S)return c;let b=we(dc),A=we(dn),Ce=we(ar)/A,rt=b.find(Vt=>Vt.interactive&&!Vt.completed&&Vt.time>Ce);return typeof(rt==null?void 0:rt.time)=="number"?Math.min(c,rt.time-.05):c},w_=()=>{At.ui.episodes.panelOpened$.set(!1)},S_=()=>{se.log("destroy store"),clearTimeout(fi),clearTimeout(Zt),We.unsubscribe(),Ht.unsubscribe(),N.destroy(),de.destroy(),ue==null||ue.destroy(),ge==null||ge.destroy(),Wt.unsubscribe(),jt==null||jt.disconnect(),jt=null,ke.destroy()},At={interfaceLanguage$:_e,isCyrillicRelatedInterface$:Se,initVideo:Kt,videoId:i,isClip:o,playerPhase:Qe,vsid:lt,state:{positionExact$:si,positionWithScrubbing$:qt,duration$:dn,playbackState$:Go,isPlaying$:qr,isLoaderVisible:Yo,bufferedProgress$:jn,isLive$:ze,canChangePlaybackSpeed$:pt,isActiveLive$:Wn,isOldestAvailableLive$:wr,isRewindableLive$:Sr,isEnded$:D,muted$:ci,volume$:ct,trafficSavingEnabled$:ui,highQualityEnabled$:yo,autoQualityLimitingAvailable$:pi,availableVideoStreams$:lr,availableAudioStreams$:io,videoStream$:Zo,audioStream$:Kn,currentQuality$:Ir,isAutoQualityEnabled$:Qn,availableQualities$:ft,currentPlaybackRate$:ii,availablePlaybackRates$:un,currentSubtitle$:Ki,availableTextTracks$:Xo,availableSubtitlesList$:pn,currentSubtitleCaptions$:kr,isAutoSubtitleCaptionVisible$:jr,chromecastState$:Ro,chromecastDeviceName$:zn,chromecastConnected$:cn,currentFormat$:Ri,throughputEstimation$:to,videoBitrate$:No,videoSize$:wn,errorLog$:Gt,crashed$:ne,isAudioAvailable$:ki,isAudioDisabled:!!l,canDownload:re.features.download&&!!d,availableSources$:cr,hasMpegSources$:ur,isInteractive:S,showInteractiveGraph:re.features.interactiveGraph,showSeekToInteractive:re.features.seekToInteractive,showPlayPrevChapter:re.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:re.features.interactiveTimeIndicator&&!!we(dc).length,interactiveEpisodes$:dc,isInteractiveTime$:E?ni(E):ae(!1),isInteractiveExpectation$:x_,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:R,looped$:no,loadedMetadata$:Ft,isAutoQualityAvailable$:po},ui:{t:le,controlsVisible:ae(!1),touched:ae(!1),controls:{prevButton:ae(void 0),playButton:ae(void 0),replayButton:ae(void 0),nextButton:ae(void 0),playPrevChapterButton:ae(void 0),seekToInteractiveButton:ae(void 0),interactiveGraphButton:ae(void 0),liveButton:ae(void 0),time:ae(void 0),episodes:ae(void 0),volume:ae(void 0),subtitles:ae(void 0),settings:ae(void 0),context:ae(void 0),chromecast:ae(void 0),pip:ae(void 0),fullscreen:ae(void 0),vkLogo:ae(void 0),interactiveTimeIndicator:ae(void 0),timeline:ae(void 0),autoplayNextToggle:ae(void 0),additionalButtons:Z.length?Z.reduce(c=>[...c,ae(void 0)],[]):[],disabledControls$:Be},modals:{hotKeyMap:{show:ae(!1),data:ae({title:"",closeBtnText:"",groups:[]})}},isFullscreen:mt,isFullscreenOpenedByKeyboard:vt,rotateAlpha:je,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:et,isMobile:gr,mobileNotReportControlHidden$:Uu,icon3DVideoVisible:ae(!1),scrubbingInProgress:Io,volumeChangingInProgress:Oi,is3DVideo:ti,currentGridType$:Yn,additionalButtonsDeprecated$:Zi,additionalDesktopControlPanelRightButtons$:hr,additionalSettingsMenuItems$:_o,additionalContextMenuItems$:Qs,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:He},actions:{internal:{preload:Lr,firstStart:c=>lc(c,!1),play:()=>ac(!1),pause:()=>wl(!1),togglePlay:nt,toggleMuted:fo,openSettingsMenu:cs,closeSettingsMenu:Pr,openSettingsSubMenu:Ni,closeSettingsSubMenu:Ar,setVolume:c=>qi(c,!1),setMuted:c=>oo(c,!1),startVolumeChanging:Do,stopVolumeChanging:mn,setVideoStream:Cn,setAudioStream:c=>Cr(c,!1),setQuality:(c,b)=>Tt(c,b,!1),setTrafficSavingEnabled:(c,b)=>hi(c,b,!1),setHighQualityEnabled:(c,b)=>Gi(c,b,!1),setPlaybackRate:ro,incrementPlaybackRate:Bo,decrementPlaybackRate:In,setSubtitle:c=>fn(c,!1),toggleSubtitle:()=>ji(!1),togglePictureInPicture:$_,startScrubbing:be,progressScrubbing:It,completeScrubbing:Xe,toggleChromecast:Qu,switchToActiveLive:tc,switchFromAdsToVideo:ic,switchFromVideoToAds:Wu,skipAd:zu,setLiveWaitingStart:oc,setLiveWaitingRecover:Ku,setLiveWaitingRecord:nc,getDebugTextData:rc,getTraceTextData:sc,getDebugPanelData:qu,getVideoElement:Gs,seekTime:(c,b,A)=>An(c,b,A),clearDelayedBufferingCheckTimeout:ln,seekEpisodeStartTime:Vr,seekToPercent:Eo,getNextEpisode:di,seekToNextEpisode:Fo,getPrevEpisode:Ts,seekToPrevEpisode:hn,startLogging:li,stopLogging:an,startCameraManualRotation:Pt,stopCameraManualRotation:ut,moveCameraFocusPX:$i,holdCamera:Vo,releaseCamera:zi,getVideoEpisodes:Ge,getPreviewThumbsData:b_,downloadVideo:Xt,addLanguage:sf,setLanguage:Ut,nextMovie:wi,videoRotate:y_,correctSeekTimeToInteractive:$v,replayInteractive:V,setLooped:So,reportProblem:mo,setAutoplayNextEnabled:vo,setTimerNextVideoRunning:Qi,prevVideoClick:pr,nextVideoClick:fr,nextVideoAnnouncementShow:Zr,nextVideoAnnouncementClick:go,nextVideoAnnouncementAuto:En,nextVideoAnnouncementCancel:Mr},external:{firstStart:c=>lc(c,!0),play:()=>ac(!0),pause:()=>wl(!0),stop:()=>Gu(!0),seekTime:c=>Mn(c),seekEpisodeStartTime:c=>Ze(c),setPlaybackRate:c=>oi(c),setAutoQualityLimits:c=>Xr(c),setMuted:c=>oo(c,!0),toggleSubtitle:()=>ji(!0),changeSubtitle:To,setVolume:c=>qi(c,!0),returnFocusToEpisodes:w_,updateAdditionalSettingsItem:gn,addAdditionalSettingsItem:Bi,removeAdditionalSettingsItem:vi,updateAdditionalContextItem:Na,addAdditionalContextItem:Fu,removeAdditionalContextItem:ec,updateAdditionalButton:Ra,addAdditionalButton:bt,removeAdditionalButton:$t,setLiveLowLatency:ao,hideControls:()=>vr(!1),showControls:()=>vr(!0),setQuality:c=>Tt(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>hi(c,"to-video",!0),setHighQualityEnabled:c=>Gi(c,"to-video",!0)}},callbacks:a,setUiCallbacks:c=>{Me=W({},c)},getAdmanWrapper:()=>de,getLogger:()=>De,getPlayer:()=>N,destroy:S_};return At};function Hn(t,e,i,o){var f;let n=(f=e[i])==null?void 0:f.getBoundingClientRect(),s=o&&!!n&&!!(n.right-n.left),{top:l,left:d,bottom:a,right:u}=ys(e[i],t||void 0);return{left:s?d:0,right:s?u:0,top:s?l:0,bottom:s?a:0,isDisplayed:s}}var Ly=["disabledControls$","additionalButtons"],Vy=["interactiveTimeIndicator"],hl=(t,e,i,o)=>{if(t){for(let[n,s]of Object.entries(e))if(!Ly.includes(n)){let l=o||Vy.includes(n);s.set(Hn(t,i,n,l))}}};var $u=(t,e,i)=>xt(null,null,function*(){yield Po(),e&&i&&(i.focus(),t.set(!1))});var Ry=Ee('<svg><!><path fill="var(--btn-color, #fff)" d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"></path></svg>');function om(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Ry();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}function nm(t,e){U(e,!0);let[i,o]=Fe(),n=()=>C(a,"$contextMenuVisible$",i),s=m(e,"disabled",3,!1),l=m(e,"ariaLabel",3,""),d=Ie(),a=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,v=d.ui.contextMenu.position$,p=d.ui.contextMenu.btnRef$,x=Y(void 0);qe(()=>{r(x)&&wt(()=>{p.set(r(x))})});let w=E=>{let V=Hs(E),k=c1(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)=>{om(E,{})},$$slots:{default:!0}}),z(),o()}var Ny=t=>{t.stopPropagation()},Oy=M("<div><!> <div></div> <div></div></div>"),By={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
226
 
227
227
  @media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
228
228
  }
@@ -247,8 +247,8 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},e1=ob;var b
247
247
  opacity: 0;
248
248
  }
249
249
  }.pulse.svelte-od3veb {display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);
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 Md(t,e){var ne;U(e,!0),q(t,Wy);let[i,o]=Fe(),n=()=>C(S,"$isMobile",i),s=()=>C(I,"$areControlsVisible",i),l=()=>C(k,"$currentGridType$",i),d=()=>C(E,"$isInteractiveTime$",i),a=()=>C(y,"$interactiveControlsOpacity$",i),u=()=>C(R,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>C(T,"$isFullscreen",i),m=v(e,"ref",15,void 0),p=X(void 0),x=Ee(),w=fo(),{interactiveControlsOpacity$:y}=w,S=x.ui.isMobile,T=x.ui.isFullscreen,E=x.state.isInteractiveTime$,R=w.showInteractiveTimeIndicatorTooltip$,I=x.ui.controlsVisible,M=(ne=x.callbacks)==null?void 0:ne.onInteractiveTimeIndicatorClick,k=x.ui.currentGridType$,j=g(()=>!n()&&s()),H=g(()=>Ws(l(),"s")),F=g(()=>!d()||!!a()||r(j)),Q=X(!1);Ge(()=>{O(Q,r(F),!0)});let Z=()=>{O(Q,!0)},Y=()=>{var ge;pe(),(ge=r(p))==null||ge.addEventListener("animationiteration",Z,{once:!0})},pe=()=>{var ge;O(Q,!1),(ge=r(p))==null||ge.removeEventListener("animationiteration",Z)},se=ge=>{R.set(ge)},me=g(()=>u()&&!r(F));Ge(()=>{u()?Y():pe()});let $e=()=>{r(F)||(R.set(!0),M==null||M())};tn(()=>{R.clearTimeout(),pe()});let ve=()=>{R.set(!1)},Ae=K("tooltip_interactive_interaction_time_indicator");var ae=zy();let Ve;ae.__mousemove=[Uy],ae.__click=$e;var le=_(ae);Eo(le,{get tooltipContent(){return Ae},get tooltipActive(){return r(me)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:se,get ref(){return m()},set ref(ge){m(ge)},children:(ge,He)=>{wd(ge,{completed:!0})},$$slots:{default:!0}});var N=P(le,2);let De;tt(N,ge=>m(ge),()=>m());var ue=P(N,2);let _e;tt(ue,ge=>O(p,ge),()=>r(p)),h(ae),B((ge,He,fe)=>{Ve=oe(ae,1,"interactive-episode-icon-animated svelte-od3veb",null,Ve,ge),De=oe(N,1,"ref-block svelte-od3veb",null,De,He),_e=oe(ue,1,"pulse svelte-od3veb",null,_e,fe)},[()=>({mobile:n(),fullscreen:f(),invisible:r(F),"icon-small":r(H)}),()=>({hidden:r(F)}),()=>({paused:r(Q)})]),St("mouseleave",ae,ve),$(t,ae),z(),o()}at(["mousemove","click"]);function Tu(t,e){U(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);Eo(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);Ii(f,()=>r(u),(m,p)=>{p(m,_s(()=>{var x;return(x=e.buttonComponentProps)!=null?x:{}}))}),$(l,a)},$$slots:{default:!0}}),z()}var ws={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var qy=Se('<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 fm(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=qy();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(),h(o),$(t,o)}function Ks(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");fm(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 Qy=A('<div class="icon-background-mobile svelte-xtk2k4"></div>'),Gy=A("<!> <!>",1),jy={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 Ca(t,e){U(e,!0),q(t,jy);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"disabled",3,!1),l=Ee().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=Gy(),x=he(p);{var w=T=>{var E=Qy();$(T,E)};V(x,T=>{o()&&T(w)})}var y=P(x,2);let S=g(()=>e.type==="prev");Ks(y,{get isMobile(){return o()},get isPrev(){return r(S)}}),$(f,p)},$$slots:{default:!0}}),z()}var Yy=Se('<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 Ld(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=Yy();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(),h(o),$(t,o)}import{noop as Zy}from"@vkontakte/videoplayer-shared/es2015";var Xy=A('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Jy=A("<!> <div><!></div>",1),e4={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 hl(t,e){U(e,!0),q(t,e4);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,Zy),d=K("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 ss.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,f)=>{var m=Jy(),p=he(m);{var x=T=>{var E=Xy();$(T,E)};V(p,T=>{o()&&T(x)})}var w=P(p,2);let y;var S=_(w);Ld(S,{}),h(w),B(T=>y=oe(w,1,"svelte-1ot3duq",null,y,T),[()=>({mobile:o()})]),$(u,m)},$$slots:{default:!0}}),z()}var t4=Se('<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=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=t4(),d=_(l);h(l),B(()=>{ze(l,"width",i()),ze(l,"height",o()),ze(l,"viewBox",n()),ze(d,"fill",s())}),$(t,l)}var i4=Se('<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 Ss(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=i4(),d=_(l);h(l),B(()=>{ze(l,"width",i()),ze(l,"height",o()),ze(l,"viewBox",n()),ze(d,"fill",s())}),$(t,l)}import{noop as o4}from"@vkontakte/videoplayer-shared/es2015";var n4=A('<div class="icon-background-mobile svelte-1ot3duq"></div>'),r4=A("<!> <div><!></div>",1),s4={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){U(e,!0),q(t,s4);let[i,o]=Fe(),n=()=>C(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=fo(),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,o4),x=Ee().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")),R=g(()=>r(T)?Ss:Wr),I=g(()=>`${d()?"btn-m--play":""} ${f()}`),M=g(()=>r(S)?r(y):m());Dt(t,{get className(){return r(I)},testId:"btn-play",get click(){return r(M)},get disabled(){return u()},get ariaLabel(){return r(E)},get ariaKeyShortCut(){return ss.KeyK},get ref(){return l()},set ref(k){l(k)},children:(k,j)=>{var H=r4();let F=g(()=>r(R));var Q=he(H);{var Z=me=>{var $e=n4();$(me,$e)};V(Q,me=>{d()&&me(Z)})}var Y=P(Q,2);let pe;var se=_(Y);Ii(se,()=>r(F),(me,$e)=>{$e(me,{})}),h(Y),B(me=>pe=oe(Y,1,"svelte-1ot3duq",null,pe,me),[()=>({mobile:d()})]),$(k,H)},$$slots:{default:!0}}),z(),o()}var a4=Se('<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 mm(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=a4();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(),h(o),$(t,o)}function Vd(t,e){U(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),s=K("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)=>{mm(d,{})},$$slots:{default:!0}}),z()}var l4=A('<span class="gutter svelte-et3q1q"><span><!></span></span>'),d4={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 Rd(t,e){U(e,!0),q(t,d4);let[i,o]=Fe(),n=()=>C(a,"$autoplayNextEnabled$",i),s=v(e,"ref",15,void 0),l=Ee(),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,w)=>{var y=l4(),S=_(y);let T;var E=_(S);{var R=M=>{Wr(M,{width:"14",height:"14",fill:"#000"})},I=M=>{Ss(M,{width:"14",height:"14",fill:"#000"})};V(E,M=>{n()?M(R):M(I,!1)})}h(S),h(y),B(M=>T=oe(S,1,"toggler svelte-et3q1q",null,T,M),[()=>({enabled:n()})]),$(x,y)},$$slots:{default:!0}}),z(),o()}var c4=Se('<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 vm(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=c4();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(2),h(o),$(t,o)}function Nd(t,e){U(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),s=K("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)=>{vm(d,{})},$$slots:{default:!0}}),z()}var u4=Se('<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 gm(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=u4();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(2),h(o),$(t,o)}var p4={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function hm(t,e){q(t,p4);let i=v(e,"isOpened",3,!1),o=g(()=>i()?"graph-close-icon":"graph-open-icon");gm(t,{get"data-testid"(){return r(o)}})}function Od(t,e){U(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=Ee().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());hm(f,{get isOpened(){return r(p)}})},$$slots:{default:!0}}),z()}import{PlaybackState as F1}from"@vkontakte/videoplayer-core/es2015";function Bd(t,e){U(e,!0);let[i,o]=Fe(),n=()=>C(u,"$playbackState$",i),s=v(e,"isMobile",3,!1),l=v(e,"isLiveActive",3,!1),d=v(e,"ariaLabel",3,""),a=Ee(),u=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,m=a.actions.internal.togglePlay,p=g(()=>()=>{if(!l()){f();return}n()===F1.PAUSED&&m()}),x=g(()=>s()?"":"btn--live btn-full-opacity"),w=g(()=>l()?"btn-live":"btn-live-offset"),y=g(()=>l()&&n()===F1.PLAYING);Dt(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)=>{ld(S,{get isActive(){return l()}})},$$slots:{default:!0}}),z(),o()}import{noop as U1}from"@vkontakte/videoplayer-shared/es2015";var f4=A('<div class="icon icon-error-stub"><div class="inner"></div></div>'),m4=A('<img class="icon" aria-hidden="true"/>');function Ta(t,e){"use strict";let i=X(!1),o=()=>{O(i,!0)};var n=Qe(),s=he(n);{var l=a=>{var u=f4();$(a,u)},d=a=>{var u=m4();B(()=>ze(u,"src",e.icon)),St("error",u,o),sa(u),$(a,u)};V(s,a=>{r(i)?a(l):a(d,!1)})}$(t,n)}function _m(t,e){U(e,!0);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,U1),n=v(e,"ref",15),s=g(()=>o()===U1),l=g(()=>r(s)||i()),d=g(()=>r(s)?"btn-full-opacity":"");Eo(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)=>{Ta(m,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),z()}var z1=t=>!!t.buttonComponent;var Cs={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var Eu=(t,e,i,o)=>{if(t)for(let[n,s]of Object.entries(e))s.set(Hn(t,i,n,o))};var h4=A('<div><!> <div class="controls svelte-f6e8ix" data-testid="player_controls"><div class="controls-left svelte-f6e8ix"><!> <!> <!></div> <div class="controls-right svelte-f6e8ix"></div></div></div> <!>',1),_4={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 $m(t,e){var wo,Gs;U(e,!0),q(t,_4);let[i,o]=Fe(),n=()=>C(pi,"$disabledControls$",i),s=()=>C(Gt,"$adPlaybackState",i),l=()=>C(Wt,"$playbackState$",i),d=()=>C(pt,"$currentSubtitle$",i),a=()=>C(yi,"$isEnded$",i),u=()=>C(fi,"$currentGridType$",i),f=()=>C(bi,"$isLive$",i),m=()=>C(rn,"$chromecastState$",i),p=()=>C(Zt,"$isPictureInPictureActive",i),x=()=>C(dt,"$pictureInPictureType$",i),w=()=>C(Lt,"$availableSubtitlesList$",i),y=()=>C(ni,"$contextMenuOpenedByKeyboard$",i),S=()=>C(qi,"$showContextMenuBtn$",i),T=()=>C(At,"$playerSize",i),E=()=>C(Ri,"$isRewindableLive$",i),R=()=>C(ct,"$isActiveLive$",i),I=()=>C(ko,"$graphIsOpened$",i),M=()=>C(Io,"$contextMenuVisible$",i),k=()=>C(Pt,"$isFullscreen",i),j=()=>C(ci,"$autoplayNextEnabled",i),H=()=>C(r(fn),"$prevButton",i),F=()=>C(r(En),"$replayButton",i),Q=()=>C(r(Mr),"$playButton",i),Z=()=>C(r(Lr),"$nextButton",i),Y=()=>C(r(mt),"$playPrevChapterButton",i),pe=()=>C(r(Ct),"$seekToInteractiveButton",i),se=()=>C(r(io),"$interactiveGraphButton",i),me=()=>C(r(oo),"$liveButton",i),$e=()=>C(r(Yi),"$time",i),ve=()=>C(r(Po),"$episodes",i),Ae=()=>C(r(bo),"$vkLogo",i),ae=()=>C(r(In),"$volume",i),Ve=()=>C(r(no),"$subtitles",i),le=()=>C(r(Ao),"$settings",i),N=()=>C(r(kn),"$context",i),De=()=>C(r(Vr),"$fullscreen",i),ue=()=>C(r(jr),"$chromecast",i),_e=()=>C(qo,"$additionalDesktopControlPanelRightButtons$",i),ne=()=>C(mo,"$isInteractiveTime$",i),ge=()=>C(di,"$settingsMenuVisible",i),He=()=>C(gi,"$settingButtonRef$",i),fe=()=>C(Ko,"$startedByKeyboard$",i),st=()=>C(Qt,"$isAudioAvailable$",i),J=()=>C(Yt,"$fakeIsPlaying$",i),Me=()=>C(an,"$seekToInteractiveDisabledTooltip$",i),Pe=()=>C(ut,"$adPosition",i),We=()=>C(et,"$position$",i),rt=()=>C(qe,"$adDuration",i),_t=()=>C(Oe,"$duration$",i),lt=v(e,"playerControlsWrapperRef",15,void 0),xt=v(e,"playerControlsRef",15,void 0),Je=v(e,"isAds",3,!1),zt=v(e,"logoTargetUrl",3,""),ti=v(e,"isOneVideoPlaylist",3,!1),Ft=v(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Yt}=fo(),Ie=Ee(),qt=fo(),Ce=kt(),ie=Ie.actions.internal.toggleMuted,re=Ie.actions.internal.togglePlay,Re=Ie.actions.internal.pause,Ue=Ie.actions.internal.toggleSubtitle,Ne=(wo=Ie.callbacks)==null?void 0:wo.onAudioDoesNotExistHint,Ke=(Gs=Ie.callbacks)==null?void 0:Gs.onAudioDisabledHint,Oe=Ie.state.duration$,et=Ie.state.positionWithScrubbing$,Wt=Ie.state.playbackState$,Qt=Ie.state.isAudioAvailable$,Et=Ie.state.isAudioDisabled,yi=Ie.state.isEnded$,bi=Ie.state.isLive$,ct=Ie.state.isActiveLive$,Ri=Ie.state.isRewindableLive$,{isActive$:Zt,type$:dt}=qt.pictureInPicture$,di=Ie.ui.settingsMenu.visible$,Ni=Ie.ui.settingsMenu.openedByBtnKeyboard$,Mt=Ie.ui.controls,li=Ie.actions.internal.getVideoEpisodes(),rn=Ie.state.chromecastState$,Lt=Ie.state.availableSubtitlesList$,pt=Ie.state.currentSubtitle$,pi=Mt.disabledControls$,Io=Ie.ui.contextMenu.visible$,qi=Ie.ui.contextMenu.showContextMenuBtn$,ni=Ie.ui.contextMenu.openedByBtnKeyboard$,Ko=Ie.ui.startedByKeyboard$,Un=Ie.ui.controlBlocks,D=Ie.ui.t,qe=Ie.ads.duration,ut=Ie.ads.position,Gt=Ie.ads.playbackState,Pt=Ie.ui.isFullscreen,At=Ie.ui.playerSize,fi=Ie.ui.currentGridType$,qo=Ie.ui.additionalDesktopControlPanelRightButtons$,ci=Ie.ui.autoplayNextEnabled$,wt=Ie.actions.internal.getVideoElement,to=Ie.actions.internal.replayInteractive,Qi=Ie.actions.internal.prevVideoClick,zn=Ie.actions.internal.nextVideoClick,Oi=Ie.state.isInteractive,mo=Ie.state.isInteractiveTime$,vo=Ie.state.showInteractiveGraph,yn=Ie.state.showSeekToInteractive,sn=Ie.state.showPlayPrevChapter,Pi=Ie.state.showInteractiveTimeIndicator,Gi=Ie.state.playPrevChapterDisabledTooltip,an=qt.seekToInteractiveDisabledTooltip$,ko=qt.graphIsOpened$,ln=Ce.features.interactiveResponsiveUi,dn=g(()=>n().has("EPISODE_BUTTON")),Cr=g(()=>n().has("GRAPH_BUTTON")),Wn=g(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),Tr=g(()=>n().has("PLAY_BUTTON")),ur=g(()=>n().has("REPLAY_BUTTON")),qr=g(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),cn=()=>Ie.actions.internal.toggleChromecast(),Kn=g(()=>Je()?s()==="playing":l()===bm.PLAYING),pr=g(()=>d().value!=="off"),xn=g(()=>a()&&!Je()||Oi),co=g(()=>ln?r(xn)&&Ji(u(),"m"):r(xn)),qn=g(()=>!a()||Oi||Je()),Er=g(()=>Ji(u(),"m")),wn=g(()=>e.showNextPrevButtons&&Ji(u(),"m")&&!Je()&&e.nextButtonActive),fr=g(()=>e.showNextPrevButtons&&Ji(u(),"m")&&!Je()&&e.prevButtonActive),Qn=g(()=>!Je()&&!!f()),Qo=g(()=>m()!==W1.NOT_AVAILABLE&&!(p()&&x()===1)&&Ji(u(),"m")&&!Oi),Gn=g(()=>e.showAutoplayNext&&!ti()&&Ji(u(),"s")),Qr=g(()=>w().length>0&&Ji(u(),"m")),Ir=g(()=>y()||S()),go=g(()=>Ji(u(),"s")&&!Je()),ft=g(()=>!e.logoHidden&&!Je()),Xt=g(()=>Ce.features.fullscreen&&(e.logoHidden||Ji(u(),ln?"xs":"s"))&&!(p()&&x()===1)&&(Oi?Ft():!0)),Sn=g(()=>(!f()||Je())&&!(Ce.features.interactiveHideTime&&Oi)),ji=g(()=>T().width>100),Bi=g(()=>vo&&Ji(u(),"m")),Go=g(()=>ln?yn&&Ji(u(),"s"):yn),Cn=g(()=>ln?sn&&Ji(u(),"s"):sn),uo=g(()=>!Je()&&!f()&&!!(li!=null&&li.length)&&r(Er)&&!r(dn)),un=g(()=>!E()||!!R()),jo=g(()=>I()?D("tooltip_interactive_graph_on"):D("tooltip_interactive_graph_off")),ho=g(()=>M()?D("tooltip_context_menu_close"):D("tooltip_context_menu_open")),kr=(bt,ht)=>bt?ht&&ht===bm.PAUSED?D("tooltip_play"):"":D("tooltip_live"),Pr=g(()=>kr(r(un),l())),Gr=g(()=>Ce.logoType==="vk_video"?D("tooltip_vk_video_logo"):D("tooltip_vk_logo")),cs=g(()=>r(pr)?D("tooltip_subtitles_on"):D("tooltip_subtitles_off")),Tn=g(()=>k()?D("tooltip_fullscreen_on"):D("tooltip_fullscreen_off")),mr=g(()=>m()===W1.CONNECTED?D("tooltip_chromecast_on"):D("tooltip_chromecast_off")),Ar=g(()=>j()?D("tooltip_autoplay_on"):D("tooltip_autoplay_off")),_o=X(0),ri=ai({}),pn=ai({}),fn=g(()=>Mt.prevButton),En=g(()=>Mt.replayButton),Mr=g(()=>Mt.playButton),Lr=g(()=>Mt.nextButton),mt=g(()=>Mt.playPrevChapterButton),Ct=g(()=>Mt.seekToInteractiveButton),io=g(()=>Mt.interactiveGraphButton),oo=g(()=>Mt.liveButton),Yi=g(()=>Mt.time),Po=g(()=>Mt.episodes),bo=g(()=>Mt.vkLogo),In=g(()=>Mt.volume),no=g(()=>Mt.subtitles),Ao=g(()=>Mt.settings),kn=g(()=>Mt.context),Vr=g(()=>Mt.fullscreen),jr=g(()=>Mt.chromecast),Mo=g(()=>({prevButton:H()?H().right-H().left:0,replayButton:F()?F().right-F().left:0,playButton:Q()?Q().right-Q().left:0,nextButton:Z()?Z().right-Z().left:0,playPrevChapterButton:Y()?Y().right-Y().left:0,seekToInteractiveButton:pe()?pe().right-pe().left:0,interactiveGraphButton:se()?se().right-se().left:0,liveButton:me()?me().right-me().left:0,time:$e()?$e().right-$e().left:0,episodes:ve()?ve().right-ve().left:0,vkLogo:Ae()?Ae().right-Ae().left:0,volume:ae()?ae().right-ae().left:0,subtitles:Ve()?Ve().right-Ve().left:0,settings:le()?le().right-le().left:0,context:N()?N().right-N().left:0,fullscreen:De()?De().right-De().left:0,chromecast:ue()?ue().right-ue().left:0,additionalButtons:_e().length?_e().reduce(bt=>[...bt,40],[]):[]})),jn=X(0);Ge(()=>{(!r(jn)||r(jn)<r(Mo).time)&&yt(()=>O(jn,r(Mo).time,!0))});let Yn=X(!1);Ge(()=>{let bt=0;r(uo)&&(Ji(u(),"xl")?bt=r(Mo).time:bt=60);let ht=r(Mo).prevButton+r(Mo).playButton+r(Mo).nextButton+r(Mo).seekToInteractiveButton+r(Mo).interactiveGraphButton+r(Mo).liveButton+r(jn)+bt;O(Yn,r(Sn)&&r(_o)>=ht,!0)});let vr=g(()=>r(Yn)&&Ji(u(),"m")),it=K1(gl,260),Tt=K1(Eu,260);Ge(()=>{T(),ne(),it(wt(),Mt,ri,e.showControls),Tt(wt(),Un,pn,e.showControls)}),Ge(()=>{pn.bottom=lt()});let gi=de();Ge(()=>{ge(),He()&&yt(()=>dl(He(),ge(),Ni))});let Di;Ge(()=>{fe(),yt(()=>Cu(Ko,fe(),Di))});function $o(){Us({isAudioDisabled:Et,isAudioAvailable:st(),isAds:Je(),audioIsNotExistHintCallback:Ne,audioDisabledHintCallback:Ke})&&ie()}let ro=Oi?to:re,Ai=g(()=>J()!==null),Lo=g(()=>r(Ai)?J():r(Kn)),Zn=g(()=>r(Lo)?D("tooltip_pause"):D("tooltip_play")),mn=D("tooltip_episodes"),yo=g(()=>{var bt,ht,po,Zo;return r(fr)?{id:"prevButton",type:"desktop-control-panel-left",weight:ws.prevButton,buttonComponent:Ca,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Qi.bind(null,!0)},tooltipEnabled:!((ht=(bt=Ie.callbacks)==null?void 0:bt.uiInfo)!=null&&ht.onPrevButtonMouseEnter)&&!((Zo=(po=Ie.callbacks)==null?void 0:po.uiInfo)!=null&&Zo.onPrevButtonMouseLeave),mouseEnter:()=>{var Zi,mi,_i;(_i=(mi=(Zi=Ie.callbacks)==null?void 0:Zi.uiInfo)==null?void 0:mi.onPrevButtonMouseEnter)==null||_i.call(mi,Hn(wt(),ri,"prevButton",e.showControls))},mouseLeave:()=>{var Zi,mi,_i;(_i=(mi=(Zi=Ie.callbacks)==null?void 0:Zi.uiInfo)==null?void 0:mi.onPrevButtonMouseLeave)==null||_i.call(mi,Hn(wt(),ri,"prevButton",e.showControls))},tooltipText:D("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Vo=g(()=>r(co)?{id:"replayButton",type:"desktop-control-panel-left",weight:ws.replayButton,buttonComponent:hl,buttonComponentProps:{disabled:r(ur),click:ro},tooltipText:D("tooltip_restart"),disabled:r(ur)}:void 0),gr=g(()=>r(qn)?{id:"playButton",type:"desktop-control-panel-left",weight:ws.playButton,buttonComponent:_l,buttonComponentProps:{disabled:r(Tr),isPlaying:r(Kn),click:re},tooltipText:r(Zn),disabled:r(Tr)}:void 0),Pn=g(()=>{var bt,ht,po,Zo;return r(wn)?{id:"nextButton",type:"desktop-control-panel-left",weight:ws.nextButton,buttonComponent:Ca,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:zn.bind(null,!0)},tooltipEnabled:!((ht=(bt=Ie.callbacks)==null?void 0:bt.uiInfo)!=null&&ht.onNextButtonMouseEnter)&&!((Zo=(po=Ie.callbacks)==null?void 0:po.uiInfo)!=null&&Zo.onNextButtonMouseLeave),mouseEnter:()=>{var Zi,mi,_i;(_i=(mi=(Zi=Ie.callbacks)==null?void 0:Zi.uiInfo)==null?void 0:mi.onNextButtonMouseEnter)==null||_i.call(mi,Hn(wt(),ri,"nextButton",e.showControls))},mouseLeave:()=>{var Zi,mi,_i;(_i=(mi=(Zi=Ie.callbacks)==null?void 0:Zi.uiInfo)==null?void 0:mi.onNextButtonMouseLeave)==null||_i.call(mi,Hn(wt(),ri,"nextButton",e.showControls))},tooltipText:D("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Xn=g(()=>Oi&&r(Cn)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:ws.playPrevChapterButton,buttonComponent:Vd,buttonComponentProps:{disabled:r(qr),click:e.playPrevChapter},tooltipText:D("tooltip_interactive_go_back"),disabledTooltipContent:D(Gi),disabled:r(qr)}:void 0),hr=g(()=>Oi&&r(Go)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:ws.seekToInteractiveButton,buttonComponent:Nd,buttonComponentProps:{disabled:r(Wn),click:e.seekToInteractive},tooltipText:D("tooltip_interactive_seek"),disabled:r(Wn),disabledTooltipContent:D(Me())}:void 0),Ro=g(()=>Oi&&r(Bi)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:ws.interactiveGraphButton,buttonComponent:Od,buttonComponentProps:{disabled:r(Cr),click:ko.toggle,graphIsOpened:I()},tooltipText:r(jo)}:void 0),Rr=g(()=>r(Qn)?{id:"liveButton",type:"desktop-control-panel-left",weight:ws.liveButton,buttonComponent:Bd,buttonComponentProps:{isLiveActive:r(un),ariaLabel:r(Pr)},tooltipText:r(Pr),disabled:r(un)&&l()===bm.PLAYING}:void 0),Yr=g(()=>[r(yo),r(Vo),r(gr),r(Pn),r(Xn),r(hr),r(Ro),r(Rr)].filter(bt=>!!bt).sort(ha)),Jn=g(()=>r(ft)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Cs.vkLogo,buttonComponent:Cd,buttonComponentProps:{targetUrl:zt(),logoClickable:e.logoClickable,click:Re},tooltipText:r(Gr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),_r=g(()=>r(Gn)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Cs.autoplayNext,buttonComponent:Rd,tooltipText:r(Ar)}:void 0),Ye=g(()=>({id:"volume",type:"desktop-control-panel-right",weight:Cs.volume,buttonComponent:Qf,buttonComponentProps:{click:$o,isAds:Je()}})),ii=g(()=>r(Qr)?{id:"subtitles",type:"desktop-control-panel-right",weight:Cs.subtitles,buttonComponent:Uf,buttonComponentProps:{isSubtitlesEnabled:r(pr),click:Ue},tooltipText:r(cs)}:void 0),hi=g(()=>r(go)?{id:"settings",type:"desktop-control-panel-right",weight:Cs.settings,buttonComponent:fl,buttonComponentProps:{ref$:gi},tooltipText:ge()?void 0:D("tooltip_settings_off")}:void 0),xi=g(()=>Ce.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Cs.context,buttonComponent:pm,buttonComponentProps:{ariaLabel:D("aria_label_context_menu")},className:r(Ir)?"":"out-of-view",tooltipText:r(ho)}:void 0),No=g(()=>r(Xt)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Cs.fullscreen,buttonComponent:Sd,buttonComponentProps:{isFullscreen:k(),click:e.toggleFullscreen},tooltipText:r(Tn)}:void 0),Zr=g(()=>r(Qo)?{id:"chromecast",type:"desktop-control-panel-right",weight:Cs.chromecast,buttonComponent:Td,buttonComponentProps:{state:m(),click:cn},tooltipText:r(mr)}:void 0),Oo=g(()=>[r(Jn),r(_r),r(Ye),r(ii),r(hi),r(xi),r(No),r(Zr),..._e()].filter(bt=>!!bt).sort(ha));var An=h4(),er=he(An);let Xr;var ee=_(er);let Xe=g(()=>!e.showControls),Kt=g(()=>!r(ji));wa(ee,{get isHidden(){return r(Xe)},get timelineNotAvailable(){return r(Kt)},get isAds(){return Je()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return E()},get ref(){return ri.timeline},set ref(bt){ri.timeline=bt}});var vi=P(ee,2),Hi=_(vi),Fi=_(Hi);Ei(Fi,17,()=>r(Yr),bt=>bt.id,(bt,ht)=>{Tu(bt,{get buttonComponent(){return r(ht).buttonComponent},get buttonComponentProps(){return r(ht).buttonComponentProps},get tooltipText(){return r(ht).tooltipText},get disabledTooltipContent(){return r(ht).disabledTooltipContent},get disabled(){return r(ht).disabled},get className(){return r(ht).className},get tooltipEnabled(){return r(ht).tooltipEnabled},get mouseEnter(){return r(ht).mouseEnter},get mouseLeave(){return r(ht).mouseLeave},get ref(){return ri[r(ht).id]},set ref(po){ri[r(ht).id]=po}})});var Ci=P(Fi,2);{var Mn=bt=>{let ht=g(()=>!e.showControls),po=g(()=>Je()?Pe():We()),Zo=g(()=>Je()?rt():_t());xd(bt,{get isHidden(){return r(ht)},isMobile:!1,get showDuration(){return r(vr)},get position(){return r(po)},get duration(){return r(Zo)},get ref(){return ri.time},set ref(Zi){ri.time=Zi}})};V(Ci,bt=>{r(Sn)&&bt(Mn)})}var Ti=P(Ci,2);let ui=g(()=>!r(uo));Eo(Ti,{className:"w-max",get disabled(){return r(ui)},get tooltipContent(){return mn},get ref(){return ri.episodes},set ref(bt){ri.episodes=bt},children:(bt,ht)=>{var po=Qe(),Zo=he(po);{var Zi=mi=>{Id(mi,{get position(){return We()},get duration(){return _t()},get timeCodes(){return li}})};V(Zo,mi=>{r(uo)&&mi(Zi)})}$(bt,po)},$$slots:{default:!0}}),h(Hi);var Yo=P(Hi,2);Ei(Yo,21,()=>r(Oo),bt=>bt.id,(bt,ht)=>{var po=Qe(),Zo=he(po);{var Zi=_i=>{Tu(_i,{get buttonComponent(){return r(ht).buttonComponent},get buttonComponentProps(){return r(ht).buttonComponentProps},get tooltipText(){return r(ht).tooltipText},get disabledTooltipContent(){return r(ht).disabledTooltipContent},get disabled(){return r(ht).disabled},get className(){return r(ht).className},get ref(){return ri[r(ht).id]},set ref(Ts){ri[r(ht).id]=Ts}})},mi=_i=>{let Ts=g(()=>!!r(ht).disabled);_m(_i,{get id(){return r(ht).id},get testId(){return r(ht).testId},get icon(){return r(ht).icon},get ariaLabel(){return r(ht).ariaLabel},get tooltipText(){return r(ht).tooltipText},get disabledTooltipContent(){return r(ht).disabledTooltipContent},get disabled(){return r(Ts)},get onClick(){return r(ht).onClick},get disableMouseupTooltipShow(){return r(ht).disableMouseupTooltipShow},get ref(){return ri[r(ht).id]},set ref(xl){ri[r(ht).id]=xl}})};V(Zo,_i=>{z1(r(ht))?_i(Zi):_i(mi,!1)})}$(bt,po)}),h(Yo),h(vi),tt(vi,bt=>xt(bt),()=>xt()),h(er),tt(er,bt=>lt(bt),()=>lt());var br=P(er,2);{var xo=bt=>{Md(bt,{get ref(){return ri.interactiveTimeIndicator},set ref(ht){ri.interactiveTimeIndicator=ht}})};V(br,bt=>{Pi&&bt(xo)})}B(bt=>Xr=oe(er,1,"wrapper-bottom svelte-f6e8ix",null,Xr,bt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),dr(Hi,"clientWidth",bt=>O(_o,bt)),$(t,An),z(),o()}import{ChromecastState as Q1,PlaybackState as G1}from"@vkontakte/videoplayer-core/es2015";import{noop as q1}from"@vkontakte/videoplayer-shared/es2015";var b4=A('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),$4=A('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),y4={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 ym(t,e){q(t,y4);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,q1),n=g(()=>o()===q1),s=g(()=>r(n)||i()),l=X(!1),d=()=>{O(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=Qe(),p=he(m);{var x=y=>{var S=b4();$(y,S)},w=y=>{var S=$4();B(()=>ze(S,"src",e.iconUrl)),St("error",S,d),sa(S),$(y,S)};V(p,y=>{r(l)?y(x):y(w,!1)})}$(u,m)},$$slots:{default:!0}})}var x4=Se('<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 xm(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=x4();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(),h(o),$(t,o)}import{noop as w4}from"@vkontakte/videoplayer-shared/es2015";var S4=A('<div class="container svelte-yslgu" aria-hidden="true"><!></div>'),C4={hash:"svelte-yslgu",code:".container.svelte-yslgu {display:flex;align-items:center;}"};function Iu(t,e){U(e,!0),q(t,C4);let i=v(e,"muted",3,!1),o=v(e,"click",3,w4),n=v(e,"ref",15,void 0),l=Ee().ui.t,d=g(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),a=g(()=>i()?xm:zs),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=S4();let x=g(()=>r(a));var w=_(p);Ii(w,()=>r(x),(y,S)=>{S(y,{})}),h(p),$(f,p)},$$slots:{default:!0}}),z()}var T4=Se('<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 wm(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=T4();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(3),h(o),$(t,o)}var E4={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 Sm(t,e){q(t,E4);let i=v(e,"isActive",3,!1),o=g(()=>i()?"color: #2688EB;":"color: #fff;"),n=g(()=>i()?"pip-icon--active":"pip-icon");wm(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}import{noop as I4}from"@vkontakte/videoplayer-shared/es2015";function Cm(t,e){U(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"isPictureInPictureActive",3,!1),n=v(e,"click",3,I4),s=K("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)=>{Sm(l,{get isActive(){return o()}})},$$slots:{default:!0}}),z()}import{debounceFn as j1}from"@vkontakte/videoplayer-shared/es2015";var k4=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},P4=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},A4=A("<div><!></div>"),M4=A("<div><!></div>"),L4=A("<div><!></div>"),V4=A("<!> <!> <!>",1),R4=A("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),N4=A('<div class="wrapper-middle svelte-68kopu"><!></div>'),O4=A("<div><!></div> <!> <div><!></div>",1),B4=A('<div aria-hidden="true">\xB7</div> <!>',1),D4=A('<!> <!> <div><div><div><div class="controls-group contain svelte-68kopu"><!> <!> <!> <!></div> <div class="controls-group svelte-68kopu"><!> <!> <!></div></div> <!></div></div> <!>',1),H4={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,
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 Id(t,e){var ie;U(e,!0),Q(t,By);let[i,o]=Fe(),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=Ie(),w=bo(),{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$,Z=g(()=>!n()&&s()),H=g(()=>zs(l(),"s")),F=g(()=>!d()||!!a()||r(Z)),K=Y(!1);qe(()=>{O(K,r(F),!0)});let ee=()=>{O(K,!0)},j=()=>{var ve;ue(),(ve=r(p))==null||ve.addEventListener("animationiteration",ee,{once:!0})},ue=()=>{var ve;O(K,!1),(ve=r(p))==null||ve.removeEventListener("animationiteration",ee)},oe=ve=>{V.set(ve)},pe=g(()=>u()&&!r(F));qe(()=>{u()?j():ue()});let ye=()=>{r(F)||(V.set(!0),I==null||I())};nn(()=>{V.clearTimeout(),ue()});let me=()=>{V.set(!1)},Pe=q("tooltip_interactive_interaction_time_indicator");var re=Oy();let Re;re.__mousemove=[Ny],re.__click=ye;var se=_(re);Mo(se,{get tooltipContent(){return Pe},get tooltipActive(){return r(pe)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:oe,get ref(){return v()},set ref(ve){v(ve)},children:(ve,He)=>{bd(ve,{completed:!0})},$$slots:{default:!0}});var N=P(se,2);let De;ot(N,ve=>v(ve),()=>v());var de=P(N,2);let ge;ot(de,ve=>O(p,ve),()=>r(p)),h(re),B((ve,He,fe)=>{Re=te(re,1,"interactive-episode-icon-animated svelte-od3veb",null,Re,ve),De=te(N,1,"ref-block svelte-od3veb",null,De,He),ge=te(de,1,"pulse svelte-od3veb",null,ge,fe)},[()=>({mobile:n(),fullscreen:f(),invisible:r(F),"icon-small":r(H)}),()=>({hidden:r(F)}),()=>({paused:r(K)})]),St("mouseleave",re,me),$(t,re),z(),o()}dt(["mousemove","click"]);function yu(t,e){U(e,!0);let i=m(e,"tooltipEnabled",3,!0),o=m(e,"disabled",3,!1),n=m(e,"className",3,void 0),s=m(e,"ref",15);Mo(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return n()},get ref(){return s()},set ref(l){s(l)},children:(l,d)=>{var a=Ke();let u=g(()=>e.buttonComponent);var f=he(a);Ei(f,()=>r(u),(v,p)=>{p(v,_s(()=>{var x;return(x=e.buttonComponentProps)!=null?x:{}}))}),$(l,a)},$$slots:{default:!0}}),z()}var ws={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var Hy=Ee('<svg><!><path fill="var(--btn-color, #fff)" d="M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"></path></svg>');function rm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Hy();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}function Ws(t,e){let i=m(e,"isPrev",3,!1),o=m(e,"isMobile",3,!1),n=m(e,"width",3,"24"),s=m(e,"height",3,"24"),l=g(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=g(()=>i()?"prev-icon":"next-icon");rm(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 Fy=M('<div class="icon-background-mobile svelte-xtk2k4"></div>'),Uy=M("<!> <!>",1),zy={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 Ca(t,e){U(e,!0),Q(t,zy);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),l=Ie().ui.t,d=g(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),a=g(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=g(()=>`btn-${o()?"m":"d"}--${e.type}`);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=Uy(),x=he(p);{var w=T=>{var E=Fy();$(T,E)};L(x,T=>{o()&&T(w)})}var y=P(x,2);let S=g(()=>e.type==="prev");Ws(y,{get isMobile(){return o()},get isPrev(){return r(S)}}),$(f,p)},$$slots:{default:!0}}),z()}var Wy=Ee('<svg><!><path fill="var(--btn-color, #fff)" d="M12 10.096a.4.4 0 0 1-.67.296L7.044 6.493a.67.67 0 0 1 0-.986l4.288-3.899a.4.4 0 0 1 .669.296V5a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"></path></svg>');function kd(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Wy();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}import{noop as Ky}from"@vkontakte/videoplayer-shared/es2015";var qy=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Qy=M("<!> <div><!></div>",1),Gy={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){U(e,!0),Q(t,Gy);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,Ky),d=q("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=Qy(),p=he(v);{var x=T=>{var E=qy();$(T,E)};L(p,T=>{o()&&T(x)})}var w=P(p,2);let y;var S=_(w);kd(S,{}),h(w),B(T=>y=te(w,1,"svelte-1ot3duq",null,y,T),[()=>({mobile:o()})]),$(u,v)},$$slots:{default:!0}}),z()}var jy=Ee('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="play-icon"><path d="M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"></path></svg>');function 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=jy(),d=_(l);h(l),B(()=>{Ue(l,"width",i()),Ue(l,"height",o()),Ue(l,"viewBox",n()),Ue(d,"fill",s())}),$(t,l)}var Yy=Ee('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="pause-icon"><path d="M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"></path></svg>');function Ss(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=Yy(),d=_(l);h(l),B(()=>{Ue(l,"width",i()),Ue(l,"height",o()),Ue(l,"viewBox",n()),Ue(d,"fill",s())}),$(t,l)}import{noop as Zy}from"@vkontakte/videoplayer-shared/es2015";var Xy=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Jy=M("<!> <div><!></div>",1),e4={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){U(e,!0),Q(t,e4);let[i,o]=Fe(),n=()=>C(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=bo(),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,Zy),x=Ie().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)?Ss: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,Z)=>{var H=Jy();let F=g(()=>r(V));var K=he(H);{var ee=pe=>{var ye=Xy();$(pe,ye)};L(K,pe=>{d()&&pe(ee)})}var j=P(K,2);let ue;var oe=_(j);Ei(oe,()=>r(F),(pe,ye)=>{ye(pe,{})}),h(j),B(pe=>ue=te(j,1,"svelte-1ot3duq",null,ue,pe),[()=>({mobile:d()})]),$(R,H)},$$slots:{default:!0}}),z(),o()}var t4=Ee('<svg><!><path fill="var(--btn-color, #fff)" d="M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"></path></svg>');function sm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=t4();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}function Pd(t,e){U(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),s=q("tooltip_interactive_go_back"),l=g(()=>o()?"hidden":"");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)=>{sm(d,{})},$$slots:{default:!0}}),z()}var i4=M('<span class="gutter svelte-et3q1q"><span><!></span></span>'),o4={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 Ad(t,e){U(e,!0),Q(t,o4);let[i,o]=Fe(),n=()=>C(a,"$autoplayNextEnabled$",i),s=m(e,"ref",15,void 0),l=Ie(),d=l.ui.t,a=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,f=()=>{u(!n(),!0)},v=d("aria_label_autoplay"),p=g(()=>n()?"true":"false");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=i4(),S=_(y);let T;var E=_(S);{var V=I=>{Wr(I,{width:"14",height:"14",fill:"#000"})},k=I=>{Ss(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}}),z(),o()}var n4=Ee('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"></path></svg>');function am(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=n4();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),h(o),$(t,o)}function Md(t,e){U(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),s=q("tooltip_interactive_seek"),l=g(()=>o()?"hidden":"");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)=>{am(d,{})},$$slots:{default:!0}}),z()}var r4=Ee('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z" class="_closed" clip-rule="evenodd"></path></svg>');function lm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=r4();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),h(o),$(t,o)}var s4={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function dm(t,e){Q(t,s4);let i=m(e,"isOpened",3,!1),o=g(()=>i()?"graph-close-icon":"graph-open-icon");lm(t,{get"data-testid"(){return r(o)}})}function Ld(t,e){U(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),s=m(e,"graphIsOpened",3,!1),d=Ie().ui.t,a=g(()=>s()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=g(()=>o()?"hidden":"");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());dm(f,{get isOpened(){return r(p)}})},$$slots:{default:!0}}),z()}import{PlaybackState as A1}from"@vkontakte/videoplayer-core/es2015";function Vd(t,e){U(e,!0);let[i,o]=Fe(),n=()=>C(u,"$playbackState$",i),s=m(e,"isMobile",3,!1),l=m(e,"isLiveActive",3,!1),d=m(e,"ariaLabel",3,""),a=Ie(),u=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,v=a.actions.internal.togglePlay,p=g(()=>()=>{if(!l()){f();return}n()===A1.PAUSED&&v()}),x=g(()=>s()?"":"btn--live btn-full-opacity"),w=g(()=>l()?"btn-live":"btn-live-offset"),y=g(()=>l()&&n()===A1.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)=>{nd(S,{get isActive(){return l()}})},$$slots:{default:!0}}),z(),o()}import{noop as M1}from"@vkontakte/videoplayer-shared/es2015";var a4=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),l4=M('<img class="icon" aria-hidden="true"/>');function Ta(t,e){"use strict";let i=Y(!1),o=()=>{O(i,!0)};var n=Ke(),s=he(n);{var l=a=>{var u=a4();$(a,u)},d=a=>{var u=l4();B(()=>Ue(u,"src",e.icon)),St("error",u,o),sa(u),$(a,u)};L(s,a=>{r(i)?a(l):a(d,!1)})}$(t,n)}function cm(t,e){U(e,!0);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,M1),n=m(e,"ref",15),s=g(()=>o()===M1),l=g(()=>r(s)||i()),d=g(()=>r(s)?"btn-full-opacity":"");Mo(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)=>{Ta(v,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),z()}var L1=t=>!!t.buttonComponent;var Cs={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var xu=(t,e,i,o)=>{if(t)for(let[n,s]of Object.entries(e))s.set(Hn(t,i,n,o))};var u4=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),p4={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 pm(t,e){var _o,Ra;U(e,!0),Q(t,p4);let[i,o]=Fe(),n=()=>C($i,"$disabledControls$",i),s=()=>C(zt,"$adPlaybackState",i),l=()=>C(Lt,"$playbackState$",i),d=()=>C(ut,"$currentSubtitle$",i),a=()=>C(wi,"$isEnded$",i),u=()=>C(ui,"$currentGridType$",i),f=()=>C(_i,"$isLive$",i),v=()=>C(an,"$chromecastState$",i),p=()=>C(jt,"$isPictureInPictureActive",i),x=()=>C(bi,"$pictureInPictureType$",i),w=()=>C(Pt,"$availableSubtitlesList$",i),y=()=>C(si,"$contextMenuOpenedByKeyboard$",i),S=()=>C(zi,"$showContextMenuBtn$",i),T=()=>C(ci,"$playerSize",i),E=()=>C(ri,"$isRewindableLive$",i),V=()=>C(it,"$isActiveLive$",i),k=()=>C(Yo,"$graphIsOpened$",i),I=()=>C(Vo,"$contextMenuVisible$",i),R=()=>C(ct,"$isFullscreen",i),Z=()=>C(pi,"$autoplayNextEnabled",i),H=()=>C(r(Pr),"$prevButton",i),F=()=>C(r(cs),"$replayButton",i),K=()=>C(r(Ar),"$playButton",i),ee=()=>C(r(Ni),"$nextButton",i),j=()=>C(r(gt),"$playPrevChapterButton",i),ue=()=>C(r(Yt),"$seekToInteractiveButton",i),oe=()=>C(r(qi),"$interactiveGraphButton",i),pe=()=>C(r(oo),"$liveButton",i),ye=()=>C(r(no),"$time",i),me=()=>C(r(So),"$episodes",i),Pe=()=>C(r(mo),"$vkLogo",i),re=()=>C(r(vo),"$volume",i),Re=()=>C(r(Qi),"$subtitles",i),se=()=>C(r(pr),"$settings",i),N=()=>C(r(fr),"$context",i),De=()=>C(r(Yr),"$fullscreen",i),de=()=>C(r(Zr),"$chromecast",i),ge=()=>C(yo,"$additionalDesktopControlPanelRightButtons$",i),ie=()=>C(to,"$isInteractiveTime$",i),ve=()=>C(Lo,"$settingsMenuVisible",i),He=()=>C(hi,"$settingButtonRef$",i),fe=()=>C(Go,"$startedByKeyboard$",i),at=()=>C(Kt,"$isAudioAvailable$",i),X=()=>C(Wt,"$fakeIsPlaying$",i),Me=()=>C(jo,"$seekToInteractiveDisabledTooltip$",i),ke=()=>C(pt,"$adPosition",i),We=()=>C(et,"$position$",i),lt=()=>C(ze,"$adDuration",i),mt=()=>C(Be,"$duration$",i),vt=m(e,"playerControlsWrapperRef",15,void 0),Ct=m(e,"playerControlsRef",15,void 0),je=m(e,"isAds",3,!1),Ft=m(e,"logoTargetUrl",3,""),ti=m(e,"isOneVideoPlaylist",3,!1),Gt=m(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Wt}=bo(),ne=Ie(),Ut=bo(),_e=kt(),Se=ne.actions.internal.toggleMuted,le=ne.actions.internal.togglePlay,Ne=ne.actions.internal.pause,Qe=ne.actions.internal.toggleSubtitle,Ve=(_o=ne.callbacks)==null?void 0:_o.onAudioDoesNotExistHint,Ye=(Ra=ne.callbacks)==null?void 0:Ra.onAudioDisabledHint,Be=ne.state.duration$,et=ne.state.positionWithScrubbing$,Lt=ne.state.playbackState$,Kt=ne.state.isAudioAvailable$,tt=ne.state.isAudioDisabled,wi=ne.state.isEnded$,_i=ne.state.isLive$,it=ne.state.isActiveLive$,ri=ne.state.isRewindableLive$,{isActive$:jt,type$:bi}=Ut.pictureInPicture$,Lo=ne.ui.settingsMenu.visible$,$o=ne.ui.settingsMenu.openedByBtnKeyboard$,Ht=ne.ui.controls,li=ne.actions.internal.getVideoEpisodes(),an=ne.state.chromecastState$,Pt=ne.state.availableSubtitlesList$,ut=ne.state.currentSubtitle$,$i=Ht.disabledControls$,Vo=ne.ui.contextMenu.visible$,zi=ne.ui.contextMenu.showContextMenuBtn$,si=ne.ui.contextMenu.openedByBtnKeyboard$,Go=ne.ui.startedByKeyboard$,Un=ne.ui.controlBlocks,D=ne.ui.t,ze=ne.ads.duration,pt=ne.ads.position,zt=ne.ads.playbackState,ct=ne.ui.isFullscreen,ci=ne.ui.playerSize,ui=ne.ui.currentGridType$,yo=ne.ui.additionalDesktopControlPanelRightButtons$,pi=ne.ui.autoplayNextEnabled$,yt=ne.actions.internal.getVideoElement,Vi=ne.actions.internal.replayInteractive,Ro=ne.actions.internal.prevVideoClick,zn=ne.actions.internal.nextVideoClick,Ri=ne.state.isInteractive,to=ne.state.isInteractiveTime$,No=ne.state.showInteractiveGraph,wn=ne.state.showSeekToInteractive,Sn=ne.state.showPlayPrevChapter,ki=ne.state.showInteractiveTimeIndicator,Wi=ne.state.playPrevChapterDisabledTooltip,jo=Ut.seekToInteractiveDisabledTooltip$,Yo=Ut.graphIsOpened$,ln=_e.features.interactiveResponsiveUi,dn=g(()=>n().has("EPISODE_BUTTON")),qr=g(()=>n().has("GRAPH_BUTTON")),Wn=g(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),wr=g(()=>n().has("PLAY_BUTTON")),ar=g(()=>n().has("REPLAY_BUTTON")),Sr=g(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),cn=()=>ne.actions.internal.toggleChromecast(),lr=g(()=>je()?s()==="playing":l()===um.PLAYING),io=g(()=>d().value!=="off"),Zo=g(()=>a()&&!je()||Ri),Kn=g(()=>ln?r(Zo)&&Ji(u(),"m"):r(Zo)),Cn=g(()=>!a()||Ri||je()),Cr=g(()=>Ji(u(),"m")),qn=g(()=>e.showNextPrevButtons&&Ji(u(),"m")&&!je()&&e.nextButtonActive),dr=g(()=>e.showNextPrevButtons&&Ji(u(),"m")&&!je()&&e.prevButtonActive),Tr=g(()=>!je()&&!!f()),Tn=g(()=>v()!==V1.NOT_AVAILABLE&&!(p()&&x()===1)&&Ji(u(),"m")&&!Ri),Qn=g(()=>e.showAutoplayNext&&!ti()&&Ji(u(),"s")),Er=g(()=>w().length>0&&Ji(u(),"m")),Ir=g(()=>y()||S()),po=g(()=>Ji(u(),"s")&&!je()),ft=g(()=>!e.logoHidden&&!je()),ii=g(()=>_e.features.fullscreen&&(e.logoHidden||Ji(u(),ln?"xs":"s"))&&!(p()&&x()===1)&&(Ri?Gt():!0)),un=g(()=>(!f()||je())&&!(_e.features.interactiveHideTime&&Ri)),Pi=g(()=>T().width>100),Ki=g(()=>No&&Ji(u(),"m")),Xo=g(()=>ln?wn&&Ji(u(),"s"):wn),Jo=g(()=>ln?Sn&&Ji(u(),"s"):Sn),xo=g(()=>!je()&&!f()&&!!(li!=null&&li.length)&&r(Cr)&&!r(dn)),Gn=g(()=>!E()||!!V()),pn=g(()=>k()?D("tooltip_interactive_graph_on"):D("tooltip_interactive_graph_off")),Oo=g(()=>I()?D("tooltip_context_menu_close"):D("tooltip_context_menu_open")),Qr=(bt,$t)=>bt?$t&&$t===um.PAUSED?D("tooltip_play"):"":D("tooltip_live"),Gr=g(()=>Qr(r(Gn),l())),kr=g(()=>_e.logoType==="vk_video"?D("tooltip_vk_video_logo"):D("tooltip_vk_logo")),jr=g(()=>r(io)?D("tooltip_subtitles_on"):D("tooltip_subtitles_off")),jn=g(()=>R()?D("tooltip_fullscreen_on"):D("tooltip_fullscreen_off")),cr=g(()=>v()===V1.CONNECTED?D("tooltip_chromecast_on"):D("tooltip_chromecast_off")),ur=g(()=>Z()?D("tooltip_autoplay_on"):D("tooltip_autoplay_off")),wo=Y(0),Xt=ai({}),fo=ai({}),Pr=g(()=>Ht.prevButton),cs=g(()=>Ht.replayButton),Ar=g(()=>Ht.playButton),Ni=g(()=>Ht.nextButton),gt=g(()=>Ht.playPrevChapterButton),Yt=g(()=>Ht.seekToInteractiveButton),qi=g(()=>Ht.interactiveGraphButton),oo=g(()=>Ht.liveButton),no=g(()=>Ht.time),So=g(()=>Ht.episodes),mo=g(()=>Ht.vkLogo),vo=g(()=>Ht.volume),Qi=g(()=>Ht.subtitles),pr=g(()=>Ht.settings),fr=g(()=>Ht.context),Yr=g(()=>Ht.fullscreen),Zr=g(()=>Ht.chromecast),go=g(()=>({prevButton:H()?H().right-H().left:0,replayButton:F()?F().right-F().left:0,playButton:K()?K().right-K().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:ye()?ye().right-ye().left:0,episodes:me()?me().right-me().left:0,vkLogo:Pe()?Pe().right-Pe().left:0,volume:re()?re().right-re().left:0,subtitles:Re()?Re().right-Re().left:0,settings:se()?se().right-se().left:0,context:N()?N().right-N().left:0,fullscreen:De()?De().right-De().left:0,chromecast:de()?de().right-de().left:0,additionalButtons:ge().length?ge().reduce(bt=>[...bt,40],[]):[]})),En=Y(0);qe(()=>{(!r(En)||r(En)<r(go).time)&&wt(()=>O(En,r(go).time,!0))});let Mr=Y(!1);qe(()=>{let bt=0;r(xo)&&(Ji(u(),"xl")?bt=r(go).time:bt=60);let $t=r(go).prevButton+r(go).playButton+r(go).nextButton+r(go).seekToInteractiveButton+r(go).interactiveGraphButton+r(go).liveButton+r(En)+bt;O(Mr,r(un)&&r(wo)>=$t,!0)});let Lr=g(()=>r(Mr)&&Ji(u(),"m")),nt=R1(hl,260),Tt=R1(xu,260);qe(()=>{T(),ie(),nt(yt(),Ht,Xt,e.showControls),Tt(yt(),Un,fo,e.showControls)}),qe(()=>{fo.bottom=vt()});let hi=ae();qe(()=>{ve(),He()&&wt(()=>cl(He(),ve(),$o))});let Gi;qe(()=>{fe(),wt(()=>$u(Go,fe(),Gi))});function Co(){Fs({isAudioDisabled:tt,isAudioAvailable:at(),isAds:je(),audioIsNotExistHintCallback:Ve,audioDisabledHintCallback:Ye})&&Se()}let ho=Ri?Vi:le,ro=g(()=>X()!==null),Bo=g(()=>r(ro)?X():r(lr)),In=g(()=>r(Bo)?D("tooltip_pause"):D("tooltip_play")),fn=D("tooltip_episodes"),ji=g(()=>{var bt,$t,ao,gn;return r(dr)?{id:"prevButton",type:"desktop-control-panel-left",weight:ws.prevButton,buttonComponent:Ca,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Ro.bind(null,!0)},tooltipEnabled:!(($t=(bt=ne.callbacks)==null?void 0:bt.uiInfo)!=null&&$t.onPrevButtonMouseEnter)&&!((gn=(ao=ne.callbacks)==null?void 0:ao.uiInfo)!=null&&gn.onPrevButtonMouseLeave),mouseEnter:()=>{var Bi,vi,gi;(gi=(vi=(Bi=ne.callbacks)==null?void 0:Bi.uiInfo)==null?void 0:vi.onPrevButtonMouseEnter)==null||gi.call(vi,Hn(yt(),Xt,"prevButton",e.showControls))},mouseLeave:()=>{var Bi,vi,gi;(gi=(vi=(Bi=ne.callbacks)==null?void 0:Bi.uiInfo)==null?void 0:vi.onPrevButtonMouseLeave)==null||gi.call(vi,Hn(yt(),Xt,"prevButton",e.showControls))},tooltipText:D("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),To=g(()=>r(Kn)?{id:"replayButton",type:"desktop-control-panel-left",weight:ws.replayButton,buttonComponent:_l,buttonComponentProps:{disabled:r(ar),click:ho},tooltipText:D("tooltip_restart"),disabled:r(ar)}:void 0),mr=g(()=>r(Cn)?{id:"playButton",type:"desktop-control-panel-left",weight:ws.playButton,buttonComponent:bl,buttonComponentProps:{disabled:r(wr),isPlaying:r(lr),click:le},tooltipText:r(In),disabled:r(wr)}:void 0),kn=g(()=>{var bt,$t,ao,gn;return r(qn)?{id:"nextButton",type:"desktop-control-panel-left",weight:ws.nextButton,buttonComponent:Ca,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:zn.bind(null,!0)},tooltipEnabled:!(($t=(bt=ne.callbacks)==null?void 0:bt.uiInfo)!=null&&$t.onNextButtonMouseEnter)&&!((gn=(ao=ne.callbacks)==null?void 0:ao.uiInfo)!=null&&gn.onNextButtonMouseLeave),mouseEnter:()=>{var Bi,vi,gi;(gi=(vi=(Bi=ne.callbacks)==null?void 0:Bi.uiInfo)==null?void 0:vi.onNextButtonMouseEnter)==null||gi.call(vi,Hn(yt(),Xt,"nextButton",e.showControls))},mouseLeave:()=>{var Bi,vi,gi;(gi=(vi=(Bi=ne.callbacks)==null?void 0:Bi.uiInfo)==null?void 0:vi.onNextButtonMouseLeave)==null||gi.call(vi,Hn(yt(),Xt,"nextButton",e.showControls))},tooltipText:D("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Pn=g(()=>Ri&&r(Jo)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:ws.playPrevChapterButton,buttonComponent:Pd,buttonComponentProps:{disabled:r(Sr),click:e.playPrevChapter},tooltipText:D("tooltip_interactive_go_back"),disabledTooltipContent:D(Wi),disabled:r(Sr)}:void 0),vr=g(()=>Ri&&r(Xo)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:ws.seekToInteractiveButton,buttonComponent:Md,buttonComponentProps:{disabled:r(Wn),click:e.seekToInteractive},tooltipText:D("tooltip_interactive_seek"),disabled:r(Wn),disabledTooltipContent:D(Me())}:void 0),An=g(()=>Ri&&r(Ki)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:ws.interactiveGraphButton,buttonComponent:Ld,buttonComponentProps:{disabled:r(qr),click:Yo.toggle,graphIsOpened:k()},tooltipText:r(pn)}:void 0),Vr=g(()=>r(Tr)?{id:"liveButton",type:"desktop-control-panel-left",weight:ws.liveButton,buttonComponent:Vd,buttonComponentProps:{isLiveActive:r(Gn),ariaLabel:r(Gr)},tooltipText:r(Gr),disabled:r(Gn)&&l()===um.PLAYING}:void 0),Eo=g(()=>[r(ji),r(To),r(mr),r(kn),r(Pn),r(vr),r(An),r(Vr)].filter(bt=>!!bt).sort(ha)),Mn=g(()=>r(ft)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Cs.vkLogo,buttonComponent:yd,buttonComponentProps:{targetUrl:Ft(),logoClickable:e.logoClickable,click:Ne},tooltipText:r(kr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Xr=g(()=>r(Qn)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Cs.autoplayNext,buttonComponent:Ad,tooltipText:r(ur)}:void 0),Ze=g(()=>({id:"volume",type:"desktop-control-panel-right",weight:Cs.volume,buttonComponent:Df,buttonComponentProps:{click:Co,isAds:je()}})),oi=g(()=>r(Er)?{id:"subtitles",type:"desktop-control-panel-right",weight:Cs.subtitles,buttonComponent:Vf,buttonComponentProps:{isSubtitlesEnabled:r(io),click:Qe},tooltipText:r(jr)}:void 0),yi=g(()=>r(po)?{id:"settings",type:"desktop-control-panel-right",weight:Cs.settings,buttonComponent:ml,buttonComponentProps:{ref$:hi},tooltipText:ve()?void 0:D("tooltip_settings_off")}:void 0),Io=g(()=>_e.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Cs.context,buttonComponent:nm,buttonComponentProps:{ariaLabel:D("aria_label_context_menu")},className:r(Ir)?"":"out-of-view",tooltipText:r(Oo)}:void 0),be=g(()=>r(ii)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Cs.fullscreen,buttonComponent:$d,buttonComponentProps:{isFullscreen:R(),click:e.toggleFullscreen},tooltipText:r(jn)}:void 0),It=g(()=>r(Tn)?{id:"chromecast",type:"desktop-control-panel-right",weight:Cs.chromecast,buttonComponent:xd,buttonComponentProps:{state:v(),click:cn},tooltipText:r(cr)}:void 0),Zt=g(()=>[r(Mn),r(Xr),r(Ze),r(oi),r(yi),r(Io),r(be),r(It),...ge()].filter(bt=>!!bt).sort(ha));var fi=u4(),Yi=he(fi);let so;var Xe=_(Yi);let qt=g(()=>!e.showControls),Oi=g(()=>!r(Pi));wa(Xe,{get isHidden(){return r(qt)},get timelineNotAvailable(){return r(Oi)},get isAds(){return je()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return E()},get ref(){return Xt.timeline},set ref(bt){Xt.timeline=bt}});var Do=P(Xe,2),mn=_(Do),Yn=_(mn);Ti(Yn,17,()=>r(Eo),bt=>bt.id,(bt,$t)=>{yu(bt,{get buttonComponent(){return r($t).buttonComponent},get buttonComponentProps(){return r($t).buttonComponentProps},get tooltipText(){return r($t).tooltipText},get disabledTooltipContent(){return r($t).disabledTooltipContent},get disabled(){return r($t).disabled},get className(){return r($t).className},get tooltipEnabled(){return r($t).tooltipEnabled},get mouseEnter(){return r($t).mouseEnter},get mouseLeave(){return r($t).mouseLeave},get ref(){return Xt[r($t).id]},set ref(ao){Xt[r($t).id]=ao}})});var gr=P(Yn,2);{var Rr=bt=>{let $t=g(()=>!e.showControls),ao=g(()=>je()?ke():We()),gn=g(()=>je()?lt():mt());_d(bt,{get isHidden(){return r($t)},isMobile:!1,get showDuration(){return r(Lr)},get position(){return r(ao)},get duration(){return r(gn)},get ref(){return Xt.time},set ref(Bi){Xt.time=Bi}})};L(gr,bt=>{r(un)&&bt(Rr)})}var Zi=P(gr,2);let mi=g(()=>!r(xo));Mo(Zi,{className:"w-max",get disabled(){return r(mi)},get tooltipContent(){return fn},get ref(){return Xt.episodes},set ref(bt){Xt.episodes=bt},children:(bt,$t)=>{var ao=Ke(),gn=he(ao);{var Bi=vi=>{Sd(vi,{get position(){return We()},get duration(){return mt()},get timeCodes(){return li}})};L(gn,vi=>{r(xo)&&vi(Bi)})}$(bt,ao)},$$slots:{default:!0}}),h(mn);var vn=P(mn,2);Ti(vn,21,()=>r(Zt),bt=>bt.id,(bt,$t)=>{var ao=Ke(),gn=he(ao);{var Bi=gi=>{yu(gi,{get buttonComponent(){return r($t).buttonComponent},get buttonComponentProps(){return r($t).buttonComponentProps},get tooltipText(){return r($t).tooltipText},get disabledTooltipContent(){return r($t).disabledTooltipContent},get disabled(){return r($t).disabled},get className(){return r($t).className},get ref(){return Xt[r($t).id]},set ref(Qs){Xt[r($t).id]=Qs}})},vi=gi=>{let Qs=g(()=>!!r($t).disabled);cm(gi,{get id(){return r($t).id},get testId(){return r($t).testId},get icon(){return r($t).icon},get ariaLabel(){return r($t).ariaLabel},get tooltipText(){return r($t).tooltipText},get disabledTooltipContent(){return r($t).disabledTooltipContent},get disabled(){return r(Qs)},get onClick(){return r($t).onClick},get disableMouseupTooltipShow(){return r($t).disableMouseupTooltipShow},get ref(){return Xt[r($t).id]},set ref(Na){Xt[r($t).id]=Na}})};L(gn,gi=>{L1(r($t))?gi(Bi):gi(vi,!1)})}$(bt,ao)}),h(vn),h(Do),ot(Do,bt=>Ct(bt),()=>Ct()),h(Yi),ot(Yi,bt=>vt(bt),()=>vt());var hr=P(Yi,2);{var Ho=bt=>{Id(bt,{get ref(){return Xt.interactiveTimeIndicator},set ref($t){Xt.interactiveTimeIndicator=$t}})};L(hr,bt=>{ki&&bt(Ho)})}B(bt=>so=te(Yi,1,"wrapper-bottom svelte-f6e8ix",null,so,bt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),rr(mn,"clientWidth",bt=>O(wo,bt)),$(t,fi),z(),o()}import{ChromecastState as O1,PlaybackState as B1}from"@vkontakte/videoplayer-core/es2015";import{noop as N1}from"@vkontakte/videoplayer-shared/es2015";var f4=M('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),m4=M('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),v4={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 fm(t,e){Q(t,v4);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,N1),n=g(()=>o()===N1),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=Ke(),p=he(v);{var x=y=>{var S=f4();$(y,S)},w=y=>{var S=m4();B(()=>Ue(S,"src",e.iconUrl)),St("error",S,d),sa(S),$(y,S)};L(p,y=>{r(l)?y(x):y(w,!1)})}$(u,v)},$$slots:{default:!0}})}var g4=Ee('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" d="M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"></path></g></svg>');function mm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=g4();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}import{noop as h4}from"@vkontakte/videoplayer-shared/es2015";var _4=M('<div class="container svelte-yslgu" aria-hidden="true"><!></div>'),b4={hash:"svelte-yslgu",code:".container.svelte-yslgu {display:flex;align-items:center;}"};function wu(t,e){U(e,!0),Q(t,b4);let i=m(e,"muted",3,!1),o=m(e,"click",3,h4),n=m(e,"ref",15,void 0),l=Ie().ui.t,d=g(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),a=g(()=>i()?mm:Us),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);Ei(w,()=>r(x),(y,S)=>{S(y,{})}),h(p),$(f,p)},$$slots:{default:!0}}),z()}var $4=Ee('<svg><!><path fill="var(--btn-color, #fff)" d="M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z" class="hidden-not-active"></path><path fill="var(--btn-color, #fff)" d="m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z" class="hidden-active"></path></svg>');function vm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=$4();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(3),h(o),$(t,o)}var y4={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 gm(t,e){Q(t,y4);let i=m(e,"isActive",3,!1),o=g(()=>i()?"color: #2688EB;":"color: #fff;"),n=g(()=>i()?"pip-icon--active":"pip-icon");vm(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}import{noop as x4}from"@vkontakte/videoplayer-shared/es2015";function hm(t,e){U(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isPictureInPictureActive",3,!1),n=m(e,"click",3,x4),s=q("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)=>{gm(l,{get isActive(){return o()}})},$$slots:{default:!0}}),z()}import{debounceFn as D1}from"@vkontakte/videoplayer-shared/es2015";var w4=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},S4=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},C4=M("<div><!></div>"),T4=M("<div><!></div>"),E4=M("<div><!></div>"),I4=M("<!> <!> <!>",1),k4=M("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),P4=M('<div class="wrapper-middle svelte-68kopu"><!></div>'),A4=M("<div><!></div> <!> <div><!></div>",1),M4=M('<div aria-hidden="true">\xB7</div> <!>',1),L4=M('<!> <!> <div><div><div><div class="controls-group contain svelte-68kopu"><!> <!> <!> <!></div> <div class="controls-group svelte-68kopu"><!> <!> <!></div></div> <!></div></div> <!>',1),V4={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
252
  .wrapper-middle-left-second.svelte-68kopu,
253
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);}
254
254
 
@@ -256,7 +256,7 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},e1=ob;var b
256
256
  }
257
257
 
258
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 Tm(t,e){var Yn,vr;U(e,!0),q(t,H4);let[i,o]=Fe(),n=()=>C(to,"$seekToInteractiveDisabledTooltip$",i),s=()=>C(pt,"$disabledControls$",i),l=()=>C(Ie,"$playbackState$",i),d=()=>C(Ko,"$adPlaybackState",i),a=()=>C(ie,"$isEnded$",i),u=()=>C(D,"$playerSize",i),f=()=>C(Oe,"$scrubbingInProgress",i),m=()=>C(rn,"$chromecastState$",i),p=()=>C(Wt,"$isPictureInPictureActive",i),x=()=>C(Qt,"$pictureInPictureType$",i),w=()=>C(et,"$mobileNotReportControlHidden$",i),y=()=>C(Ni,"$chromecastHidden",i),S=()=>C(ti,"$playerPhase",i),T=()=>C(dt,"$pipHidden",i),E=()=>C(Io,"$currentGridType$",i),R=()=>C(Ri,"$vkLogoHidden",i),I=()=>C(ct,"$volumeHidden",i),M=()=>C(re,"$isLive$",i),k=()=>C(Et,"$settingsMenuVisible",i),j=()=>C(Ke,"$isRewindableLive$",i),H=()=>C(Ne,"$isActiveLive$",i),F=()=>C(qt,"$isAudioAvailable$",i),Q=()=>C(Ue,"$muted$",i),Z=()=>C(Re,"$volume$",i),Y=()=>C(At,"$isInteractiveTime$",i),pe=()=>C(jo,"$settingButtonRef$",i),se=()=>C(pi,"$startedByKeyboard$",i),me=()=>C(Un,"$isFullscreen",i),$e=()=>C(qe,"$additionalButtons$",i),ve=()=>C(Zt,"$autoplayNextToggleHidden",i),Ae=()=>C(Lt,"$crashed$",i),ae=()=>C(di,"$settingsHidden",i),Ve=()=>C(Qi,"$graphIsOpened$",i),le=()=>C(ni,"$adPosition",i),N=()=>C(qi,"$adDuration",i),De=()=>C(Yt,"$position$",i),ue=()=>C(Ft,"$duration$",i),_e=v(e,"playerControlsWrapperRef",15,void 0),ne=v(e,"playerControlsRef",15,void 0),ge=v(e,"isAds",3,!1),He=v(e,"logoTargetUrl",3,""),fe=v(e,"isOneVideoPlaylist",3,!1),st=v(e,"customFullscreenSupported",3,!0),J=Ee(),Me=fo(),Pe=kt(),We=J.actions.internal.toggleMuted,rt=J.actions.internal.togglePlay,_t=J.actions.internal.pause,lt=J.actions.internal.prevVideoClick,xt=J.actions.internal.nextVideoClick,Je=(Yn=J.callbacks)==null?void 0:Yn.onAudioDoesNotExistHint,zt=(vr=J.callbacks)==null?void 0:vr.onAudioDisabledHint,ti=J.playerPhase,Ft=J.state.duration$,Yt=J.state.positionWithScrubbing$,Ie=J.state.playbackState$,qt=J.state.isAudioAvailable$,Ce=J.state.isAudioDisabled,ie=J.state.isEnded$,re=J.state.isLive$,Re=J.state.volume$,Ue=J.state.muted$,Ne=J.state.isActiveLive$,Ke=J.state.isRewindableLive$,Oe=J.ui.scrubbingInProgress,et=J.ui.mobileNotReportControlHidden$,{isActive$:Wt,type$:Qt}=Me.pictureInPicture$,Et=J.ui.settingsMenu.visible$,yi=J.ui.settingsMenu.openedByBtnKeyboard$,bi=J.ui.controls,{volume:ct,vkLogo:Ri,autoplayNextToggle:Zt,pip:dt,settings:di,chromecast:Ni}=J.ui.hiddenControls,Mt=J.actions.internal.getVideoEpisodes(),li=J.webApi.pictureInPictureApi,rn=J.state.chromecastState$,Lt=J.state.crashed$,pt=bi.disabledControls$,pi=J.ui.startedByKeyboard$,Io=J.ui.currentGridType$,qi=J.ads.duration,ni=J.ads.position,Ko=J.ads.playbackState,Un=J.ui.isFullscreen,D=J.ui.playerSize,qe=J.ui.additionalButtonsDeprecated$,ut=J.actions.internal.getVideoElement,Gt=J.actions.internal.replayInteractive,Pt=J.state.isInteractive,At=J.state.isInteractiveTime$,fi=J.state.showInteractiveGraph,qo=J.state.showSeekToInteractive,ci=J.state.showPlayPrevChapter,wt=J.state.showInteractiveTimeIndicator,to=Me.seekToInteractiveDisabledTooltip$,Qi=Me.graphIsOpened$,zn=J.ui.controlBlocks,Oi=g(()=>K(J.state.playPrevChapterDisabledTooltip)),mo=g(()=>K(n())),vo=g(()=>s().has("EPISODE_BUTTON")),yn=g(()=>s().has("GRAPH_BUTTON")),sn=g(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),Pi=g(()=>s().has("PLAY_BUTTON")),Gi=g(()=>s().has("REPLAY_BUTTON")),an=g(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),ko=g(()=>l()===G1.PLAYING),ln=g(()=>d()==="paused"),dn=g(()=>a()&&!ge()&&!Pt),Cr=g(()=>!a()||ge()),Wn=g(()=>e.showNextPrevButtons&&!ge()&&e.prevButtonActive),Tr=g(()=>e.showNextPrevButtons&&!ge()&&e.nextButtonActive),ur=g(()=>u().width>300),qr=g(()=>u().width>400),cn=g(f),Kn=g(()=>m()!==Q1.NOT_AVAILABLE&&!(p()&&x()===1)&&!w()&&!Pt&&!y()),pr=g(()=>S()==="LiveWaitingStart"),xn=g(()=>!!li&&m()!==Q1.CONNECTED&&!w()&&(x()===1&&r(pr)||!r(pr))&&!r(cn)&&!Pt&&!T()),co=X(!1);Rt(()=>{let it=li==null?void 0:li.info.isActive$.subscribe(Tt=>O(co,Tt,!0));return()=>it==null?void 0:it.unsubscribe()});let qn=g(()=>!r(cn)&&Ji(E(),"s")),Er=g(()=>!e.logoHidden&&u().width>350&&!R()),wn=g(()=>Pe.features.fullscreen&&!(p()&&x()===1)&&(Pt?st():!0)&&!r(cn)&&!r(co)),fr=g(()=>!I()&&!r(cn)),Qn=g(()=>(!M()||ge())&&u().width>260&&!r(cn)&&!(Pe.features.interactiveHideTime&&Pt)),Qo=g(()=>k()||e.showControls),Gn=g(()=>!ge()&&!M()&&!!(Mt!=null&&Mt.length)&&r(ur)&&!r(vo)&&!r(cn)),Qr=g(()=>!j()||!!H()),Ir=g(()=>fi&&Ji(E(),"m")),go=g(()=>!F()||Q()||Z()===0),ft=ai({}),Xt=ai({}),Sn=j1(gl,260),ji=j1(Eu,260);Ge(()=>{u(),Y(),Sn(ut(),bi,ft,e.showControls),ji(ut(),zn,Xt,e.showControls)});let Bi=()=>J.actions.internal.toggleChromecast();function Go(){return $t(this,null,function*(){li!=null&&li.isActive()?yield li==null?void 0:li.exit():yield li==null?void 0:li.request()})}function Cn(){Us({isAudioDisabled:Ce,audioDisabledHintCallback:zt,isAudioAvailable:F(),audioIsNotExistHintCallback:Je,isAds:ge()})&&We()}let uo=X(""),un=(it,Tt)=>{if(!it){O(uo,K("tooltip_live"),!0);return}Tt&&Tt===G1.PAUSED&&O(uo,K("tooltip_play"),!0)};Ge(()=>{un(r(Qr),l())});let jo=de();Ge(()=>{pe()&&dl(pe(),k(),yi)}),Ge(()=>{Cu(pi,se(),ft.playButton)});var ho=D4(),kr=he(ho);{var Pr=it=>{var Tt=R4(),gi=he(Tt);let Di;var $o=P(gi,2);let ro;tt($o,ee=>Xt.topLeft=ee,()=>Xt==null?void 0:Xt.topLeft);var Ai=P($o,2);let Lo;var Zn=_(Ai);Ei(Zn,1,$e,({iconUrl:ee,ariaLabel:Xe,testId:Kt,onClick:vi,tooltip:Hi})=>ee,(ee,Xe)=>{let Kt=()=>r(Xe).iconUrl,vi=()=>r(Xe).ariaLabel,Hi=()=>r(Xe).testId,Fi=()=>r(Xe).onClick,Ci=()=>r(Xe).tooltip,Mn=g(()=>{var Ti;return(Ti=vi())!=null?Ti:Ci()});ym(ee,{get iconUrl(){return Kt()},get ariaLabel(){return r(Mn)},get testId(){return Hi()},get onClick(){return Fi()}})});var mn=P(Zn,2);{var yo=ee=>{Rd(ee,{get ref(){return ft.autoplayNextToggle},set ref(Xe){ft.autoplayNextToggle=Xe}})};V(mn,ee=>{e.showAutoplayNext&&!fe()&&!ve()&&ee(yo)})}var Vo=P(mn,2);{var gr=ee=>{Td(ee,{isMobile:!0,click:Bi,get state(){return m()},get ref(){return ft.chromecast},set ref(Xe){ft.chromecast=Xe}})};V(Vo,ee=>{r(Kn)&&ee(gr)})}var Pn=P(Vo,2);{var Xn=ee=>{Cm(ee,{click:Go,get isPictureInPictureActive(){return p()},get ref(){return ft.pip},set ref(Xe){ft.pip=Xe}})};V(Pn,ee=>{r(xn)&&ee(Xn)})}var hr=P(Pn,2);{var Ro=ee=>{fl(ee,{get ref$(){return jo}})};V(hr,ee=>{Ae()&&!ae()&&ee(Ro)})}var Rr=P(hr,2);{var Yr=ee=>{Cd(ee,{get click(){return _t},get targetUrl(){return He()},get logoClickable(){return e.logoClickable},get ref(){return ft.vkLogo},set ref(Xe){ft.vkLogo=Xe}})};V(Rr,ee=>{r(Er)&&ee(Yr)})}h(Ai),tt(Ai,ee=>Xt.topRight=ee,()=>Xt==null?void 0:Xt.topRight);var Jn=P(Ai,2);let _r;var Ye=_(Jn);{var ii=ee=>{let Xe=g(()=>lt.bind(null,!0));Ca(ee,{get click(){return r(Xe)},type:"prev",isMobile:!0,get ref(){return ft.prevButton},set ref(Kt){ft.prevButton=Kt}})};V(Ye,ee=>{r(Wn)&&ee(ii)})}var hi=P(Ye,2);{var xi=ee=>{_l(ee,{get disabled(){return r(Pi)},get click(){return rt},isMobile:!0,get isPlaying(){return r(ko)},get ref(){return ft.playButton},set ref(Xe){ft.playButton=Xe}})};V(hi,ee=>{r(Cr)&&ee(xi)})}var No=P(hi,2);{var Zr=ee=>{hl(ee,{get disabled(){return r(Gi)},get click(){return rt},isMobile:!0,get ref(){return ft.replayButton},set ref(Xe){ft.replayButton=Xe}})};V(No,ee=>{r(dn)&&ee(Zr)})}var Oo=P(No,2);{var An=ee=>{let Xe=g(()=>xt.bind(null,!0));Ca(ee,{get click(){return r(Xe)},type:"next",isMobile:!0,get ref(){return ft.nextButton},set ref(Kt){ft.nextButton=Kt}})};V(Oo,ee=>{r(Tr)&&ee(An)})}h(Jn),tt(Jn,ee=>Xt.middle=ee,()=>Xt==null?void 0:Xt.middle);var er=P(Jn,2);{var Xr=ee=>{var Xe=V4(),Kt=he(Xe);{var vi=Ti=>{var ui=A4();let Yo;ui.__click=[k4,an,e,Oi];var br=_(ui);let xo=g(()=>!e.showControls);Vd(br,{get hidden(){return r(xo)},get disabled(){return r(an)},get click(){return e.playPrevChapter},get ref(){return ft.playPrevChapterButton},set ref(wo){ft.playPrevChapterButton=wo}}),h(ui),B(wo=>Yo=oe(ui,1,"wrapper-middle-left svelte-68kopu",null,Yo,wo),[()=>({fullscreen:me(),hidden:!e.showControls})]),$(Ti,ui)};V(Kt,Ti=>{ci&&Ti(vi)})}var Hi=P(Kt,2);{var Fi=Ti=>{var ui=M4();let Yo;var br=_(ui);let xo=g(()=>!e.showControls&&!Ve());Od(br,{get hidden(){return r(xo)},get disabled(){return r(yn)},get click(){return Qi.toggle},get graphIsOpened(){return Ve()},get ref(){return ft.interactiveGraphButton},set ref(wo){ft.interactiveGraphButton=wo}}),h(ui),B(wo=>Yo=oe(ui,1,Yl(ci?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-68kopu",Yo,wo),[()=>({fullscreen:me(),hidden:!e.showControls&&!Ve()})]),$(Ti,ui)};V(Hi,Ti=>{r(Ir)&&Ti(Fi)})}var Ci=P(Hi,2);{var Mn=Ti=>{var ui=L4();let Yo;ui.__click=[P4,sn,e,mo];var br=_(ui);let xo=g(()=>!e.showControls);Nd(br,{get hidden(){return r(xo)},get disabled(){return r(sn)},get click(){return e.seekToInteractive},get ref(){return ft.seekToInteractiveButton},set ref(wo){ft.seekToInteractiveButton=wo}}),h(ui),B(wo=>Yo=oe(ui,1,"wrapper-middle-right svelte-68kopu",null,Yo,wo),[()=>({fullscreen:me(),hidden:!e.showControls})]),$(Ti,ui)};V(Ci,Ti=>{qo&&Ti(Mn)})}$(ee,Xe)};V(er,ee=>{Pt&&!f()&&ee(Xr)})}B((ee,Xe,Kt,vi)=>{Di=oe(gi,1,"overlay-mobile svelte-68kopu",null,Di,ee),ro=oe($o,1,"wrapper-top-left svelte-68kopu",null,ro,Xe),Lo=oe(Ai,1,"wrapper-top-right svelte-68kopu",null,Lo,Kt),_r=oe(Jn,1,"wrapper-middle svelte-68kopu",null,_r,vi)},[()=>({hidden:!r(Qo)}),()=>({hidden:!e.showControls,fullscreen:me()}),()=>({hidden:!e.showControls&&!w(),fullscreen:me()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),$(it,Tt)};V(kr,it=>{ge()||it(Pr)})}var Gr=P(kr,2);{var cs=it=>{var Tt=O4(),gi=he(Tt);let Di;var $o=_(gi);Iu($o,{get muted(){return Q()},click:Cn,get ref(){return ft.volume},set ref(yo){ft.volume=yo}}),h(gi);var ro=P(gi,2);{var Ai=yo=>{var Vo=N4(),gr=_(Vo);let Pn=g(()=>!r(ln));_l(gr,{get disabled(){return r(Pi)},get click(){return rt},isMobile:!0,get isPlaying(){return r(Pn)},get ref(){return ft.playButton},set ref(Xn){ft.playButton=Xn}}),h(Vo),$(yo,Vo)};V(ro,yo=>{r(ln)&&yo(Ai)})}var Lo=P(ro,2);let Zn;var mn=_(Lo);Ed(mn,{get position(){return le()},get duration(){return N()}}),h(Lo),B((yo,Vo)=>{Di=oe(gi,1,"wrapper-top-right svelte-68kopu",null,Di,yo),Zn=oe(Lo,1,"wrapper-bottom ads-timeline-mobile svelte-68kopu",null,Zn,Vo)},[()=>({fullscreen:me()}),()=>({fullscreen:me()})]),$(it,Tt)};V(Gr,it=>{ge()&&d()!=="inactive"&&it(cs)})}var Tn=P(Gr,2);let mr;var Ar=_(Tn);let _o;var ri=_(Ar);oe(ri,1,"controls svelte-68kopu",null,{},{mobile:!0});var pn=_(ri),fn=_(pn);{var En=it=>{Eo(it,{get disabled(){return r(Gi)},get ref(){return ft.replayButton},set ref(Tt){ft.replayButton=Tt},children:(Tt,gi)=>{hl(Tt,{get disabled(){return r(Gi)},get click(){return Gt}})},$$slots:{default:!0}})};V(fn,it=>{Pt&&it(En)})}var Mr=P(fn,2);{var Lr=it=>{Eo(it,{get ref(){return ft.liveButton},set ref(Tt){ft.liveButton=Tt},children:(Tt,gi)=>{Bd(Tt,{get isLiveActive(){return r(Qr)},isMobile:!0,get ariaLabel(){return r(uo)}})},$$slots:{default:!0}})};V(Mr,it=>{!ge()&&M()&&it(Lr)})}var mt=P(Mr,2);{var Ct=it=>{let Tt=g(()=>ge()?le():De()),gi=g(()=>ge()?N():ue()),Di=g(()=>!e.showControls);xd(it,{get showDuration(){return r(qr)},get position(){return r(Tt)},get duration(){return r(gi)},isMobile:!0,get isHidden(){return r(Di)},get ref(){return ft.time},set ref($o){ft.time=$o}})};V(mt,it=>{r(Qn)&&it(Ct)})}var io=P(mt,2);let oo=g(()=>!r(Gn));Eo(io,{className:"w-max",get disabled(){return r(oo)},get ref(){return ft.episodes},set ref(it){ft.episodes=it},children:(it,Tt)=>{var gi=Qe(),Di=he(gi);{var $o=ro=>{var Ai=B4(),Lo=P(he(Ai),2);Id(Lo,{get position(){return De()},get duration(){return ue()},get timeCodes(){return Mt}}),$(ro,Ai)};V(Di,ro=>{r(Gn)&&ro($o)})}$(it,gi)},$$slots:{default:!0}}),h(pn),tt(pn,it=>Xt.bottomRight=it,()=>Xt==null?void 0:Xt.bottomRight);var Yi=P(pn,2),Po=_(Yi);{var bo=it=>{Eo(it,{get ref(){return ft.volume},set ref(Tt){ft.volume=Tt},children:(Tt,gi)=>{Iu(Tt,{get muted(){return r(go)},click:Cn})},$$slots:{default:!0}})};V(Po,it=>{r(fr)&&it(bo)})}var In=P(Po,2);{var no=it=>{Eo(it,{get ref(){return ft.settings},set ref(Tt){ft.settings=Tt},children:(Tt,gi)=>{fl(Tt,{get ref$(){return jo}})},$$slots:{default:!0}})};V(In,it=>{r(qn)&&it(no)})}var Ao=P(In,2);{var kn=it=>{Eo(it,{get ref(){return ft.fullscreen},set ref(Tt){ft.fullscreen=Tt},children:(Tt,gi)=>{Sd(Tt,{get click(){return e.toggleFullscreen},get isFullscreen(){return me()}})},$$slots:{default:!0}})};V(Ao,it=>{r(wn)&&it(kn)})}h(Yi),tt(Yi,it=>Xt.bottomRight=it,()=>Xt==null?void 0:Xt.bottomRight),h(ri),tt(ri,it=>ne(it),()=>ne());var Vr=P(ri,2);let jr=g(()=>!e.showControls);wa(Vr,{get isHidden(){return r(jr)},get isAds(){return ge()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return j()},get ref(){return ft.timeline},set ref(it){ft.timeline=it}}),h(Ar),h(Tn),tt(Tn,it=>_e(it),()=>_e());var Mo=P(Tn,2);{var jn=it=>{Md(it,{get ref(){return ft.interactiveTimeIndicator},set ref(Tt){ft.interactiveTimeIndicator=Tt}})};V(Mo,it=>{wt&&it(jn)})}B((it,Tt)=>{mr=oe(Tn,1,"wrapper-bottom svelte-68kopu",null,mr,it),_o=oe(Ar,1,"controls-wrapper svelte-68kopu",null,_o,Tt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:me()})]),$(t,ho),z(),o()}at(["click"]);function Dd(t,e){U(e,!0);let[i,o]=Fe(),n=()=>C(T,"$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),w=v(e,"onDisabledPlayPrevChapterClick",3,Y1),y=v(e,"onDisabledSeekToInteractiveClick",3,Y1),T=Ee().ui.isMobile,E=X(!1);Rt(()=>{let k=setTimeout(()=>O(E,!0),0);return()=>clearTimeout(k)});var R=Qe(),I=he(R);{var M=k=>{var j=Qe(),H=he(j);{var F=Z=>{Tm(Z,{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 w()},get onDisabledSeekToInteractiveClick(){return y()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(Y){l(Y)},get playerControlsRef(){return d()},set playerControlsRef(Y){d(Y)}})},Q=Z=>{$m(Z,{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(Y){l(Y)},get playerControlsRef(){return d()},set playerControlsRef(Y){d(Y)}})};V(H,Z=>{n()?Z(F):Z(Q,!1)})}$(k,j)};V(I,k=>{r(E)&&k(M)})}$(t,R),z(),o()}var F4=Se('<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 Em(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=F4();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(2),h(o),$(t,o)}function Im(t,e){let i=v(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);Em(t,{get style(){return r(o)}})}var U4=Se('<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 km(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=U4();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(2),h(o),$(t,o)}var z4=Se('<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 Pm(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=z4();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(2),h(o),$(t,o)}function ku(t,e){let i=v(e,"isOff",3,!1);var o=Qe(),n=he(o);{var s=d=>{Pm(d,{})},l=d=>{km(d,{})};V(n,d=>{i()?d(s):d(l,!1)})}$(t,o)}var W4=Se('<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 Am(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=W4();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(2),h(o),$(t,o)}function Mm(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 K4=Se('<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 Lm(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=K4();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(2),h(o),$(t,o)}function Vm(t,e){let i=v(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);Lm(t,{get style(){return r(o)}})}var q4=A('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),Q4=A('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),G4=A("<div><!></div>"),j4={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;
259
+ }`};function _m(t,e){var Mr,Lr;U(e,!0),Q(t,V4);let[i,o]=Fe(),n=()=>C(Vi,"$seekToInteractiveDisabledTooltip$",i),s=()=>C(ut,"$disabledControls$",i),l=()=>C(ne,"$playbackState$",i),d=()=>C(Go,"$adPlaybackState",i),a=()=>C(Se,"$isEnded$",i),u=()=>C(D,"$playerSize",i),f=()=>C(Be,"$scrubbingInProgress",i),v=()=>C(an,"$chromecastState$",i),p=()=>C(Lt,"$isPictureInPictureActive",i),x=()=>C(Kt,"$pictureInPictureType$",i),w=()=>C(et,"$mobileNotReportControlHidden$",i),y=()=>C($o,"$chromecastHidden",i),S=()=>C(ti,"$playerPhase",i),T=()=>C(bi,"$pipHidden",i),E=()=>C(Vo,"$currentGridType$",i),V=()=>C(ri,"$vkLogoHidden",i),k=()=>C(it,"$volumeHidden",i),I=()=>C(le,"$isLive$",i),R=()=>C(tt,"$settingsMenuVisible",i),Z=()=>C(Ye,"$isRewindableLive$",i),H=()=>C(Ve,"$isActiveLive$",i),F=()=>C(Ut,"$isAudioAvailable$",i),K=()=>C(Qe,"$muted$",i),ee=()=>C(Ne,"$volume$",i),j=()=>C(ci,"$isInteractiveTime$",i),ue=()=>C(pn,"$settingButtonRef$",i),oe=()=>C($i,"$startedByKeyboard$",i),pe=()=>C(Un,"$isFullscreen",i),ye=()=>C(ze,"$additionalButtons$",i),me=()=>C(jt,"$autoplayNextToggleHidden",i),Pe=()=>C(Pt,"$crashed$",i),re=()=>C(Lo,"$settingsHidden",i),Re=()=>C(Ro,"$graphIsOpened$",i),se=()=>C(si,"$adPosition",i),N=()=>C(zi,"$adDuration",i),De=()=>C(Wt,"$position$",i),de=()=>C(Gt,"$duration$",i),ge=m(e,"playerControlsWrapperRef",15,void 0),ie=m(e,"playerControlsRef",15,void 0),ve=m(e,"isAds",3,!1),He=m(e,"logoTargetUrl",3,""),fe=m(e,"isOneVideoPlaylist",3,!1),at=m(e,"customFullscreenSupported",3,!0),X=Ie(),Me=bo(),ke=kt(),We=X.actions.internal.toggleMuted,lt=X.actions.internal.togglePlay,mt=X.actions.internal.pause,vt=X.actions.internal.prevVideoClick,Ct=X.actions.internal.nextVideoClick,je=(Mr=X.callbacks)==null?void 0:Mr.onAudioDoesNotExistHint,Ft=(Lr=X.callbacks)==null?void 0:Lr.onAudioDisabledHint,ti=X.playerPhase,Gt=X.state.duration$,Wt=X.state.positionWithScrubbing$,ne=X.state.playbackState$,Ut=X.state.isAudioAvailable$,_e=X.state.isAudioDisabled,Se=X.state.isEnded$,le=X.state.isLive$,Ne=X.state.volume$,Qe=X.state.muted$,Ve=X.state.isActiveLive$,Ye=X.state.isRewindableLive$,Be=X.ui.scrubbingInProgress,et=X.ui.mobileNotReportControlHidden$,{isActive$:Lt,type$:Kt}=Me.pictureInPicture$,tt=X.ui.settingsMenu.visible$,wi=X.ui.settingsMenu.openedByBtnKeyboard$,_i=X.ui.controls,{volume:it,vkLogo:ri,autoplayNextToggle:jt,pip:bi,settings:Lo,chromecast:$o}=X.ui.hiddenControls,Ht=X.actions.internal.getVideoEpisodes(),li=X.webApi.pictureInPictureApi,an=X.state.chromecastState$,Pt=X.state.crashed$,ut=_i.disabledControls$,$i=X.ui.startedByKeyboard$,Vo=X.ui.currentGridType$,zi=X.ads.duration,si=X.ads.position,Go=X.ads.playbackState,Un=X.ui.isFullscreen,D=X.ui.playerSize,ze=X.ui.additionalButtonsDeprecated$,pt=X.actions.internal.getVideoElement,zt=X.actions.internal.replayInteractive,ct=X.state.isInteractive,ci=X.state.isInteractiveTime$,ui=X.state.showInteractiveGraph,yo=X.state.showSeekToInteractive,pi=X.state.showPlayPrevChapter,yt=X.state.showInteractiveTimeIndicator,Vi=Me.seekToInteractiveDisabledTooltip$,Ro=Me.graphIsOpened$,zn=X.ui.controlBlocks,Ri=g(()=>q(X.state.playPrevChapterDisabledTooltip)),to=g(()=>q(n())),No=g(()=>s().has("EPISODE_BUTTON")),wn=g(()=>s().has("GRAPH_BUTTON")),Sn=g(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),ki=g(()=>s().has("PLAY_BUTTON")),Wi=g(()=>s().has("REPLAY_BUTTON")),jo=g(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),Yo=g(()=>l()===B1.PLAYING),ln=g(()=>d()==="paused"),dn=g(()=>a()&&!ve()&&!ct),qr=g(()=>!a()||ve()),Wn=g(()=>e.showNextPrevButtons&&!ve()&&e.prevButtonActive),wr=g(()=>e.showNextPrevButtons&&!ve()&&e.nextButtonActive),ar=g(()=>u().width>300),Sr=g(()=>u().width>400),cn=g(f),lr=g(()=>v()!==O1.NOT_AVAILABLE&&!(p()&&x()===1)&&!w()&&!ct&&!y()),io=g(()=>S()==="LiveWaitingStart"),Zo=g(()=>!!li&&v()!==O1.CONNECTED&&!w()&&(x()===1&&r(io)||!r(io))&&!r(cn)&&!ct&&!T()),Kn=Y(!1);Mt(()=>{let nt=li==null?void 0:li.info.isActive$.subscribe(Tt=>O(Kn,Tt,!0));return()=>nt==null?void 0:nt.unsubscribe()});let Cn=g(()=>!r(cn)&&Ji(E(),"s")),Cr=g(()=>!e.logoHidden&&u().width>350&&!V()),qn=g(()=>ke.features.fullscreen&&!(p()&&x()===1)&&(ct?at():!0)&&!r(cn)&&!r(Kn)),dr=g(()=>!k()&&!r(cn)),Tr=g(()=>(!I()||ve())&&u().width>260&&!r(cn)&&!(ke.features.interactiveHideTime&&ct)),Tn=g(()=>R()||e.showControls),Qn=g(()=>!ve()&&!I()&&!!(Ht!=null&&Ht.length)&&r(ar)&&!r(No)&&!r(cn)),Er=g(()=>!Z()||!!H()),Ir=g(()=>ui&&Ji(E(),"m")),po=g(()=>!F()||K()||ee()===0),ft=ai({}),ii=ai({}),un=D1(hl,260),Pi=D1(xu,260);qe(()=>{u(),j(),un(pt(),_i,ft,e.showControls),Pi(pt(),zn,ii,e.showControls)});let Ki=()=>X.actions.internal.toggleChromecast();function Xo(){return xt(this,null,function*(){li!=null&&li.isActive()?yield li==null?void 0:li.exit():yield li==null?void 0:li.request()})}function Jo(){Fs({isAudioDisabled:_e,audioDisabledHintCallback:Ft,isAudioAvailable:F(),audioIsNotExistHintCallback:je,isAds:ve()})&&We()}let xo=Y(""),Gn=(nt,Tt)=>{if(!nt){O(xo,q("tooltip_live"),!0);return}Tt&&Tt===B1.PAUSED&&O(xo,q("tooltip_play"),!0)};qe(()=>{Gn(r(Er),l())});let pn=ae();qe(()=>{ue()&&cl(ue(),R(),wi)}),qe(()=>{$u($i,oe(),ft.playButton)});var Oo=L4(),Qr=he(Oo);{var Gr=nt=>{var Tt=k4(),hi=he(Tt);let Gi;var Co=P(hi,2);let ho;ot(Co,Xe=>ii.topLeft=Xe,()=>ii==null?void 0:ii.topLeft);var ro=P(Co,2);let Bo;var In=_(ro);Ti(In,1,ye,({iconUrl:Xe,ariaLabel:qt,testId:Oi,onClick:Do,tooltip:mn})=>Xe,(Xe,qt)=>{let Oi=()=>r(qt).iconUrl,Do=()=>r(qt).ariaLabel,mn=()=>r(qt).testId,Yn=()=>r(qt).onClick,gr=()=>r(qt).tooltip,Rr=g(()=>{var Zi;return(Zi=Do())!=null?Zi:gr()});fm(Xe,{get iconUrl(){return Oi()},get ariaLabel(){return r(Rr)},get testId(){return mn()},get onClick(){return Yn()}})});var fn=P(In,2);{var ji=Xe=>{Ad(Xe,{get ref(){return ft.autoplayNextToggle},set ref(qt){ft.autoplayNextToggle=qt}})};L(fn,Xe=>{e.showAutoplayNext&&!fe()&&!me()&&Xe(ji)})}var To=P(fn,2);{var mr=Xe=>{xd(Xe,{isMobile:!0,click:Ki,get state(){return v()},get ref(){return ft.chromecast},set ref(qt){ft.chromecast=qt}})};L(To,Xe=>{r(lr)&&Xe(mr)})}var kn=P(To,2);{var Pn=Xe=>{hm(Xe,{click:Xo,get isPictureInPictureActive(){return p()},get ref(){return ft.pip},set ref(qt){ft.pip=qt}})};L(kn,Xe=>{r(Zo)&&Xe(Pn)})}var vr=P(kn,2);{var An=Xe=>{ml(Xe,{get ref$(){return pn}})};L(vr,Xe=>{Pe()&&!re()&&Xe(An)})}var Vr=P(vr,2);{var Eo=Xe=>{yd(Xe,{get click(){return mt},get targetUrl(){return He()},get logoClickable(){return e.logoClickable},get ref(){return ft.vkLogo},set ref(qt){ft.vkLogo=qt}})};L(Vr,Xe=>{r(Cr)&&Xe(Eo)})}h(ro),ot(ro,Xe=>ii.topRight=Xe,()=>ii==null?void 0:ii.topRight);var Mn=P(ro,2);let Xr;var Ze=_(Mn);{var oi=Xe=>{let qt=g(()=>vt.bind(null,!0));Ca(Xe,{get click(){return r(qt)},type:"prev",isMobile:!0,get ref(){return ft.prevButton},set ref(Oi){ft.prevButton=Oi}})};L(Ze,Xe=>{r(Wn)&&Xe(oi)})}var yi=P(Ze,2);{var Io=Xe=>{bl(Xe,{get disabled(){return r(ki)},get click(){return lt},isMobile:!0,get isPlaying(){return r(Yo)},get ref(){return ft.playButton},set ref(qt){ft.playButton=qt}})};L(yi,Xe=>{r(qr)&&Xe(Io)})}var be=P(yi,2);{var It=Xe=>{_l(Xe,{get disabled(){return r(Wi)},get click(){return lt},isMobile:!0,get ref(){return ft.replayButton},set ref(qt){ft.replayButton=qt}})};L(be,Xe=>{r(dn)&&Xe(It)})}var Zt=P(be,2);{var fi=Xe=>{let qt=g(()=>Ct.bind(null,!0));Ca(Xe,{get click(){return r(qt)},type:"next",isMobile:!0,get ref(){return ft.nextButton},set ref(Oi){ft.nextButton=Oi}})};L(Zt,Xe=>{r(wr)&&Xe(fi)})}h(Mn),ot(Mn,Xe=>ii.middle=Xe,()=>ii==null?void 0:ii.middle);var Yi=P(Mn,2);{var so=Xe=>{var qt=I4(),Oi=he(qt);{var Do=Zi=>{var mi=C4();let vn;mi.__click=[w4,jo,e,Ri];var hr=_(mi);let Ho=g(()=>!e.showControls);Pd(hr,{get hidden(){return r(Ho)},get disabled(){return r(jo)},get click(){return e.playPrevChapter},get ref(){return ft.playPrevChapterButton},set ref(_o){ft.playPrevChapterButton=_o}}),h(mi),B(_o=>vn=te(mi,1,"wrapper-middle-left svelte-68kopu",null,vn,_o),[()=>({fullscreen:pe(),hidden:!e.showControls})]),$(Zi,mi)};L(Oi,Zi=>{pi&&Zi(Do)})}var mn=P(Oi,2);{var Yn=Zi=>{var mi=T4();let vn;var hr=_(mi);let Ho=g(()=>!e.showControls&&!Re());Ld(hr,{get hidden(){return r(Ho)},get disabled(){return r(wn)},get click(){return Ro.toggle},get graphIsOpened(){return Re()},get ref(){return ft.interactiveGraphButton},set ref(_o){ft.interactiveGraphButton=_o}}),h(mi),B(_o=>vn=te(mi,1,ql(pi?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-68kopu",vn,_o),[()=>({fullscreen:pe(),hidden:!e.showControls&&!Re()})]),$(Zi,mi)};L(mn,Zi=>{r(Ir)&&Zi(Yn)})}var gr=P(mn,2);{var Rr=Zi=>{var mi=E4();let vn;mi.__click=[S4,Sn,e,to];var hr=_(mi);let Ho=g(()=>!e.showControls);Md(hr,{get hidden(){return r(Ho)},get disabled(){return r(Sn)},get click(){return e.seekToInteractive},get ref(){return ft.seekToInteractiveButton},set ref(_o){ft.seekToInteractiveButton=_o}}),h(mi),B(_o=>vn=te(mi,1,"wrapper-middle-right svelte-68kopu",null,vn,_o),[()=>({fullscreen:pe(),hidden:!e.showControls})]),$(Zi,mi)};L(gr,Zi=>{yo&&Zi(Rr)})}$(Xe,qt)};L(Yi,Xe=>{ct&&!f()&&Xe(so)})}B((Xe,qt,Oi,Do)=>{Gi=te(hi,1,"overlay-mobile svelte-68kopu",null,Gi,Xe),ho=te(Co,1,"wrapper-top-left svelte-68kopu",null,ho,qt),Bo=te(ro,1,"wrapper-top-right svelte-68kopu",null,Bo,Oi),Xr=te(Mn,1,"wrapper-middle svelte-68kopu",null,Xr,Do)},[()=>({hidden:!r(Tn)}),()=>({hidden:!e.showControls,fullscreen:pe()}),()=>({hidden:!e.showControls&&!w(),fullscreen:pe()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),$(nt,Tt)};L(Qr,nt=>{ve()||nt(Gr)})}var kr=P(Qr,2);{var jr=nt=>{var Tt=A4(),hi=he(Tt);let Gi;var Co=_(hi);wu(Co,{get muted(){return K()},click:Jo,get ref(){return ft.volume},set ref(ji){ft.volume=ji}}),h(hi);var ho=P(hi,2);{var ro=ji=>{var To=P4(),mr=_(To);let kn=g(()=>!r(ln));bl(mr,{get disabled(){return r(ki)},get click(){return lt},isMobile:!0,get isPlaying(){return r(kn)},get ref(){return ft.playButton},set ref(Pn){ft.playButton=Pn}}),h(To),$(ji,To)};L(ho,ji=>{r(ln)&&ji(ro)})}var Bo=P(ho,2);let In;var fn=_(Bo);wd(fn,{get position(){return se()},get duration(){return N()}}),h(Bo),B((ji,To)=>{Gi=te(hi,1,"wrapper-top-right svelte-68kopu",null,Gi,ji),In=te(Bo,1,"wrapper-bottom ads-timeline-mobile svelte-68kopu",null,In,To)},[()=>({fullscreen:pe()}),()=>({fullscreen:pe()})]),$(nt,Tt)};L(kr,nt=>{ve()&&d()!=="inactive"&&nt(jr)})}var jn=P(kr,2);let cr;var ur=_(jn);let wo;var Xt=_(ur);te(Xt,1,"controls svelte-68kopu",null,{},{mobile:!0});var fo=_(Xt),Pr=_(fo);{var cs=nt=>{Mo(nt,{get disabled(){return r(Wi)},get ref(){return ft.replayButton},set ref(Tt){ft.replayButton=Tt},children:(Tt,hi)=>{_l(Tt,{get disabled(){return r(Wi)},get click(){return zt}})},$$slots:{default:!0}})};L(Pr,nt=>{ct&&nt(cs)})}var Ar=P(Pr,2);{var Ni=nt=>{Mo(nt,{get ref(){return ft.liveButton},set ref(Tt){ft.liveButton=Tt},children:(Tt,hi)=>{Vd(Tt,{get isLiveActive(){return r(Er)},isMobile:!0,get ariaLabel(){return r(xo)}})},$$slots:{default:!0}})};L(Ar,nt=>{!ve()&&I()&&nt(Ni)})}var gt=P(Ar,2);{var Yt=nt=>{let Tt=g(()=>ve()?se():De()),hi=g(()=>ve()?N():de()),Gi=g(()=>!e.showControls);_d(nt,{get showDuration(){return r(Sr)},get position(){return r(Tt)},get duration(){return r(hi)},isMobile:!0,get isHidden(){return r(Gi)},get ref(){return ft.time},set ref(Co){ft.time=Co}})};L(gt,nt=>{r(Tr)&&nt(Yt)})}var qi=P(gt,2);let oo=g(()=>!r(Qn));Mo(qi,{className:"w-max",get disabled(){return r(oo)},get ref(){return ft.episodes},set ref(nt){ft.episodes=nt},children:(nt,Tt)=>{var hi=Ke(),Gi=he(hi);{var Co=ho=>{var ro=M4(),Bo=P(he(ro),2);Sd(Bo,{get position(){return De()},get duration(){return de()},get timeCodes(){return Ht}}),$(ho,ro)};L(Gi,ho=>{r(Qn)&&ho(Co)})}$(nt,hi)},$$slots:{default:!0}}),h(fo),ot(fo,nt=>ii.bottomRight=nt,()=>ii==null?void 0:ii.bottomRight);var no=P(fo,2),So=_(no);{var mo=nt=>{Mo(nt,{get ref(){return ft.volume},set ref(Tt){ft.volume=Tt},children:(Tt,hi)=>{wu(Tt,{get muted(){return r(po)},click:Jo})},$$slots:{default:!0}})};L(So,nt=>{r(dr)&&nt(mo)})}var vo=P(So,2);{var Qi=nt=>{Mo(nt,{get ref(){return ft.settings},set ref(Tt){ft.settings=Tt},children:(Tt,hi)=>{ml(Tt,{get ref$(){return pn}})},$$slots:{default:!0}})};L(vo,nt=>{r(Cn)&&nt(Qi)})}var pr=P(vo,2);{var fr=nt=>{Mo(nt,{get ref(){return ft.fullscreen},set ref(Tt){ft.fullscreen=Tt},children:(Tt,hi)=>{$d(Tt,{get click(){return e.toggleFullscreen},get isFullscreen(){return pe()}})},$$slots:{default:!0}})};L(pr,nt=>{r(qn)&&nt(fr)})}h(no),ot(no,nt=>ii.bottomRight=nt,()=>ii==null?void 0:ii.bottomRight),h(Xt),ot(Xt,nt=>ie(nt),()=>ie());var Yr=P(Xt,2);let Zr=g(()=>!e.showControls);wa(Yr,{get isHidden(){return r(Zr)},get isAds(){return ve()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return Z()},get ref(){return ft.timeline},set ref(nt){ft.timeline=nt}}),h(ur),h(jn),ot(jn,nt=>ge(nt),()=>ge());var go=P(jn,2);{var En=nt=>{Id(nt,{get ref(){return ft.interactiveTimeIndicator},set ref(Tt){ft.interactiveTimeIndicator=Tt}})};L(go,nt=>{yt&&nt(En)})}B((nt,Tt)=>{cr=te(jn,1,"wrapper-bottom svelte-68kopu",null,cr,nt),wo=te(ur,1,"controls-wrapper svelte-68kopu",null,wo,Tt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:pe()})]),$(t,Oo),z(),o()}dt(["click"]);function Rd(t,e){U(e,!0);let[i,o]=Fe(),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,H1),y=m(e,"onDisabledSeekToInteractiveClick",3,H1),T=Ie().ui.isMobile,E=Y(!1);Mt(()=>{let R=setTimeout(()=>O(E,!0),0);return()=>clearTimeout(R)});var V=Ke(),k=he(V);{var I=R=>{var Z=Ke(),H=he(Z);{var F=ee=>{_m(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)}})},K=ee=>{pm(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(H,ee=>{n()?ee(F):ee(K,!1)})}$(R,Z)};L(k,R=>{r(E)&&R(I)})}$(t,V),z(),o()}var R4=Ee('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"></path></g><defs><filter id="a" width="43.996" height="49.5" x="2.5" y="0" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_100684"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_100684" result="shape"></feBlend></filter></defs></svg>');function bm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=R4();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),h(o),$(t,o)}function $m(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);bm(t,{get style(){return r(o)}})}var N4=Ee('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22" clip-rule="evenodd"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="45" x="-1.5" y="1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104204"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104204" result="shape"></feBlend></filter></defs></svg>');function ym(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=N4();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),h(o),$(t,o)}var O4=Ee('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="51" x="-1.5" y="-1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104293"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104293" result="shape"></feBlend></filter></defs></svg>');function xm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=O4();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),h(o),$(t,o)}function Su(t,e){let i=m(e,"isOff",3,!1);var o=Ke(),n=he(o);{var s=d=>{xm(d,{})},l=d=>{ym(d,{})};L(n,d=>{i()?d(s):d(l,!1)})}$(t,o)}var B4=Ee('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"></path></g><defs><filter id="a" width="40.098" height="27.785" x="3.402" y="10.105" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_106627"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_106627" result="shape"></feBlend></filter></defs></svg>');function wm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=B4();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),h(o),$(t,o)}function Sm(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);wm(t,{get style(){return r(o)}})}var D4=Ee('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"></path></g><defs><filter id="a" width="37" height="37" x="5.5" y="5.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2340_106922"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2340_106922" result="shape"></feBlend></filter></defs></svg>');function Cm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=D4();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),h(o),$(t,o)}function Tm(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);Cm(t,{get style(){return r(o)}})}var H4=M('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),F4=M('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),U4=M("<div><!></div>"),z4={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
260
  animation: svelte-1ad3n06-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box;}.hot-key-helpers-container.svelte-1ad3n06 > div:where(.svelte-1ad3n06) {width:48px;height:48px;display:flex;justify-content:center;align-items:center;}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-off-icon"],
261
261
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-max-icon"] {transform:scale(2);}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="replay-icon"],
262
262
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
@@ -271,23 +271,23 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},e1=ob;var b
271
271
  @keyframes svelte-1ad3n06-fadeOut {
272
272
  0% {opacity:1;}
273
273
  100% {opacity:0;}
274
- }`};function Rm(t,e){U(e,!0),q(t,j4);let[i,o]=Fe(),n=()=>C(e.data,"$data",i),l=Ee().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}),m=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=G4();let x;var w=_(p);{var y=S=>{var T=Q4(),E=he(T),R=_(E);{var I=_e=>{let ne=g(()=>r(f)==="FORWARD_SEEK");Im(_e,{get reversed(){return r(ne)}})};V(R,_e=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(f))&&_e(I)})}var M=P(R,2);{var k=_e=>{Ss(_e,{})};V(M,_e=>{r(f)==="PAUSE"&&_e(k)})}var j=P(M,2);{var H=_e=>{Wr(_e,{})};V(j,_e=>{r(f)==="PLAY"&&_e(H)})}var F=P(j,2);{var Q=_e=>{Ld(_e,{})};V(F,_e=>{r(f)==="REPLAY"&&_e(Q)})}var Z=P(F,2);{var Y=_e=>{ku(_e,{isOff:!0})};V(Z,_e=>{r(f)==="SUBTITLES_OFF"&&_e(Y)})}var pe=P(Z,2);{var se=_e=>{ku(_e,{})};V(pe,_e=>{r(f)==="SUBTITLES_ON"&&_e(se)})}var me=P(pe,2);{var $e=_e=>{let ne=g(()=>r(f)==="RATE_UP");Mm(_e,{get reversed(){return r(ne)}})};V(me,_e=>{["RATE_DOWN","RATE_UP"].includes(r(f))&&_e($e)})}var ve=P(me,2);{var Ae=_e=>{let ne=g(()=>r(f)==="EPISODE_NEXT");Vm(_e,{get reversed(){return r(ne)}})};V(ve,_e=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(f))&&_e(Ae)})}var ae=P(ve,2);{var Ve=_e=>{zs(_e,{volume:0})};V(ae,_e=>{r(f)==="MUTE"&&_e(Ve)})}var le=P(ae,2);{var N=_e=>{zs(_e,{volume:1})};V(le,_e=>{r(f)==="VOLUME"&&_e(N)})}h(E);var De=P(E,2);{var ue=_e=>{var ne=q4(),ge=_(ne,!0);h(ne),B(()=>be(ge,r(m))),$(_e,ne)};V(De,_e=>{r(m)&&_e(ue)})}$(S,T)};V(w,S=>{!r(d)&&r(f)&&S(y)})}h(p),B(S=>x=oe(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),z(),o()}var Y4=Se('<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 Nm(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=Y4();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(),h(o),$(t,o)}var Z4=Se('<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 Om(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=Z4();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(),h(o),$(t,o)}function qs(t,e){U(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=Qe(),a=he(d);{var u=m=>{let p=g(()=>r(s)?"chevron-icon--down":"chevron-icon--up");Nm(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");Om(m,{get style(){return r(l)},get"data-testid"(){return r(p)}})};V(a,m=>{r(n)?m(u):m(f,!1)})}$(t,d),z()}var X4=(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())},e3=A('<div tabindex="0" role="button"><div class="button-block svelte-1yzc86r" aria-hidden="true"><div class="button-row svelte-1yzc86r"><div class="button button-up svelte-1yzc86r"><!></div> <div class="button button-right svelte-1yzc86r"><!></div></div> <div class="button-row svelte-1yzc86r"><div class="button button-left svelte-1yzc86r"><!></div> <div class="button button-down svelte-1yzc86r"><!></div></div></div></div>'),t3={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){U(e,!0),q(t,t3);let i=v(e,"isShifted",3,!1),o=Ee(),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 m=e3();let p;m.__keydown=[X4,n,s,l,a,d],m.__keyup=[J4,n,u];var x=_(m),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 R=P(w,2),I=_(R);I.__mousedown=a,I.__mouseup=u;var M=_(I);qs(M,{direction:"up",useBtnColor:!0}),h(I);var k=P(I,2);k.__mousedown=l,k.__mouseup=u;var j=_(k);qs(j,{direction:"up",useBtnColor:!0}),h(k),h(R),h(x),h(m),B(H=>{p=oe(m,1,"immersive-controls svelte-1yzc86r",null,p,H),ze(m,"aria-label",f)},[()=>({"m-shifted":i()})]),St("mouseleave",y,u),St("mouseleave",T,u),St("mouseleave",I,u),St("mouseleave",k,u),$(t,m),z()}at(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as X1,Subscription as i3,filterChanged as o3,filter as n3}from"@vkontakte/videoplayer-shared/es2015";var Z1=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var Pu=class{constructor(){this.flickeringTimeout=Z1(1e3);this.subscriptions=new i3;this.isAuto=!1;this.isLive=!1;this.captions$=new X1([]);this.captionsPrepared$=new X1([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(n3(()=>this.isEnabled()),o3()).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 r3=A('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),s3=A('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),a3=A('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),l3=A('<div><span class="caption svelte-c2x749"><!></span></div>'),d3=A("<div><!></div>"),c3={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 Ia(t,e){U(e,!0),q(t,c3);let[i,o]=Fe(),n=()=>C(m,"$currentSubtitle$",i),s=()=>C(x,"$isLive$",i),l=()=>C(w,"$isFullscreen",i),d=()=>C(p,"$isAutoSubtitleCaptionVisible$",i),a=v(e,"isMobile",3,!1),u=Ee(),f=kt(),m=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)),R=X(null);Ge(()=>{var Q,Z,Y;(Q=r(R))==null||Q.setIsAuto(r(y)),(Z=r(R))==null||Z.setIsLive(r(S)),(Y=r(R))==null||Y.setCaptions(e.captions)});let I=X(ai([[]]));Rt(()=>{O(R,new Pu().subscribe(),!0);let Q=r(R).captionsPrepared$.subscribe(Z=>{O(I,Z,!0)});return()=>{var Z;(Z=r(R))==null||Z.destroy(),Q.unsubscribe()}}),Rt(()=>{if(r(y)){let Q=window.setTimeout(()=>{p.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(Q)}}else p.set(!1)});let M=g(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var k=d3();let j;var H=_(k);{var F=Q=>{var Z=l3();let Y;var pe=_(Z),se=_(pe);{var me=ve=>{var Ae=r3(),ae=_(Ae),Ve=_(ae,!0);h(ae),h(Ae),B(le=>{var N;nt(ae,`font-size: ${(N=r(E))!=null?N:""}px`),be(Ve,le)},[()=>K("subtitles_auto_caption")]),$(ve,Ae)},$e=(ve,Ae)=>{{var ae=le=>{var N=Qe(),De=he(N);Ei(De,17,()=>r(I),Gl,(ue,_e)=>{var ne=s3(),ge=_(ne);Ei(ge,21,()=>r(_e),({value:He,timeAppeared:fe})=>fe,(He,fe)=>{let st=()=>r(fe).value,J=()=>r(fe).timeAppeared;var Me=Qe(),Pe=he(Me);{var We=rt=>{var _t=ns();B(()=>be(_t,st())),$(rt,_t)};V(Pe,rt=>{(!J()||J()<=e.position)&&rt(We)})}$(He,Me)}),h(ge),h(ne),B(()=>{var He;return nt(ge,`font-size: ${(He=r(E))!=null?He:""}px`)}),$(ue,ne)}),$(le,N)},Ve=le=>{var N=Qe(),De=he(N);Ei(De,17,()=>e.captions,({value:ue})=>ue,(ue,_e)=>{let ne=()=>r(_e).value;var ge=a3(),He=_(ge),fe=_(He,!0);h(He),h(ge),B(()=>{var st;nt(He,`font-size: ${(st=r(E))!=null?st:""}px`),be(fe,ne())}),$(ue,ge)}),$(le,N)};V(ve,le=>{var N;r(y)&&((N=r(I))!=null&&N.length)?le(ae):le(Ve,!1)},Ae)}};V(se,ve=>{r(y)&&d()?ve(me):ve($e,!1)})}h(pe),h(Z),B(ve=>{var Ae;Y=oe(Z,1,"subtitles-caption svelte-c2x749",null,Y,ve),nt(Z,`--subtitles-caption-margin: ${(Ae=r(M))!=null?Ae:""}%`)},[()=>({mobile:a()})]),$(Q,Z)};V(H,Q=>{var Z;(e.captions.length||(Z=r(I))!=null&&Z.length)&&Q(F)})}h(k),B(Q=>j=oe(k,1,"subtitles-container svelte-c2x749",null,j,Q),[()=>({shifted:e.shifted,auto:r(y)&&!r(S)&&!d()})]),$(t,k),z(),o()}var u3=A('<div class="text svelte-raurnb"> </div>'),p3=A('<div><div class="icon_wrapper svelte-raurnb"><svg class="icon svelte-raurnb" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)"></path><path d="M0 0h24v24H0z"></path></g></svg></div> <!></div>'),f3={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 Fd(t,e){U(e,!0),q(t,f3);let i=kt();var o=p3();let n;var s=P(_(o),2);{var l=d=>{var a=u3(),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)};V(s,d=>{e.chromecastDeviceName&&d(l)})}h(o),B(d=>{n=oe(o,1,"wrapper svelte-raurnb",null,n,d),nt(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),z()}var m3=Se('<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 Bm(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=m3();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200","aria-hidden":"true","data-testid":"error-icon",viewBox:"460 190 130 90",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(),h(o),$(t,o)}var v3=A('<div class="container svelte-13zpvm8"><!></div>'),g3={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 ka(t){q(t,g3);var e=v3(),i=_(e);Bm(i,{}),h(e),$(t,e)}var h3=A('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),_3=A("<div><!></div>"),b3={hash:"svelte-1ciju45",code:`.container.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer;transition:opacity 0.2s,
274
+ }`};function Em(t,e){U(e,!0),Q(t,z4);let[i,o]=Fe(),n=()=>C(e.data,"$data",i),l=Ie().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=U4();let x;var w=_(p);{var y=S=>{var T=F4(),E=he(T),V=_(E);{var k=ge=>{let ie=g(()=>r(f)==="FORWARD_SEEK");$m(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=>{Ss(ge,{})};L(I,ge=>{r(f)==="PAUSE"&&ge(R)})}var Z=P(I,2);{var H=ge=>{Wr(ge,{})};L(Z,ge=>{r(f)==="PLAY"&&ge(H)})}var F=P(Z,2);{var K=ge=>{kd(ge,{})};L(F,ge=>{r(f)==="REPLAY"&&ge(K)})}var ee=P(F,2);{var j=ge=>{Su(ge,{isOff:!0})};L(ee,ge=>{r(f)==="SUBTITLES_OFF"&&ge(j)})}var ue=P(ee,2);{var oe=ge=>{Su(ge,{})};L(ue,ge=>{r(f)==="SUBTITLES_ON"&&ge(oe)})}var pe=P(ue,2);{var ye=ge=>{let ie=g(()=>r(f)==="RATE_UP");Sm(ge,{get reversed(){return r(ie)}})};L(pe,ge=>{["RATE_DOWN","RATE_UP"].includes(r(f))&&ge(ye)})}var me=P(pe,2);{var Pe=ge=>{let ie=g(()=>r(f)==="EPISODE_NEXT");Tm(ge,{get reversed(){return r(ie)}})};L(me,ge=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(f))&&ge(Pe)})}var re=P(me,2);{var Re=ge=>{Us(ge,{volume:0})};L(re,ge=>{r(f)==="MUTE"&&ge(Re)})}var se=P(re,2);{var N=ge=>{Us(ge,{volume:1})};L(se,ge=>{r(f)==="VOLUME"&&ge(N)})}h(E);var De=P(E,2);{var de=ge=>{var ie=H4(),ve=_(ie,!0);h(ie),B(()=>$e(ve,r(v))),$(ge,ie)};L(De,ge=>{r(v)&&ge(de)})}$(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),z(),o()}var W4=Ee('<svg><!><path fill="currentColor" fill-opacity=".72" fill-rule="evenodd" d="M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272" clip-rule="evenodd"></path></svg>');function Im(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=W4();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var K4=Ee('<svg><!><path fill="currentColor" d="m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"></path></svg>');function km(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=K4();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}function Ks(t,e){U(e,!0);let i=m(e,"direction",3,"left"),o=m(e,"useBtnColor",3,!1),n=g(()=>["up","down"].includes(i())),s=g(()=>["right","down"].includes(i())),l=g(()=>(()=>{let v="";return r(s)&&(v+="transform: rotate(180deg);"),o()&&(v+="color: var(--btn-color, #fff);"),v.length?v:void 0})());var d=Ke(),a=he(d);{var u=v=>{let p=g(()=>r(s)?"chevron-icon--down":"chevron-icon--up");Im(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");km(v,{get style(){return r(l)},get"data-testid"(){return r(p)}})};L(a,v=>{r(n)?v(u):v(f,!1)})}$(t,d),z()}var q4=(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}},Q4=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},G4=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>'),j4={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 Nd(t,e){U(e,!0),Q(t,j4);let i=m(e,"isShifted",3,!1),o=Ie(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),s=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},a=()=>{o.actions.internal.startCameraManualRotation(-1,0)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),f=q("aria_label_spherical_control");var v=G4();let p;v.__keydown=[q4,n,s,l,a,d],v.__keyup=[Q4,n,u];var x=_(v),w=_(x),y=_(w);y.__mousedown=s,y.__mouseup=u;var S=_(y);Ks(S,{direction:"up",useBtnColor:!0}),h(y);var T=P(y,2);T.__mousedown=d,T.__mouseup=u;var E=_(T);Ks(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);Ks(I,{direction:"up",useBtnColor:!0}),h(k);var R=P(k,2);R.__mousedown=l,R.__mouseup=u;var Z=_(R);Ks(Z,{direction:"up",useBtnColor:!0}),h(R),h(V),h(x),h(v),B(H=>{p=te(v,1,"immersive-controls svelte-1yzc86r",null,p,H),Ue(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),z()}dt(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as U1,Subscription as Y4,filterChanged as Z4,filter as X4}from"@vkontakte/videoplayer-shared/es2015";var F1=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var Cu=class{constructor(){this.flickeringTimeout=F1(1e3);this.subscriptions=new Y4;this.isAuto=!1;this.isLive=!1;this.captions$=new U1([]);this.captionsPrepared$=new U1([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(X4(()=>this.isEnabled()),Z4()).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 J4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),e3=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),t3=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),i3=M('<div><span class="caption svelte-c2x749"><!></span></div>'),o3=M("<div><!></div>"),n3={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 Ia(t,e){U(e,!0),Q(t,n3);let[i,o]=Fe(),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=Ie(),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 K,ee,j;(K=r(V))==null||K.setIsAuto(r(y)),(ee=r(V))==null||ee.setIsLive(r(S)),(j=r(V))==null||j.setCaptions(e.captions)});let k=Y(ai([[]]));Mt(()=>{O(V,new Cu().subscribe(),!0);let K=r(V).captionsPrepared$.subscribe(ee=>{O(k,ee,!0)});return()=>{var ee;(ee=r(V))==null||ee.destroy(),K.unsubscribe()}}),Mt(()=>{if(r(y)){let K=window.setTimeout(()=>{p.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(K)}}else p.set(!1)});let I=g(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var R=o3();let Z;var H=_(R);{var F=K=>{var ee=i3();let j;var ue=_(ee),oe=_(ue);{var pe=me=>{var Pe=J4(),re=_(Pe),Re=_(re,!0);h(re),h(Pe),B(se=>{var N;st(re,`font-size: ${(N=r(E))!=null?N:""}px`),$e(Re,se)},[()=>q("subtitles_auto_caption")]),$(me,Pe)},ye=(me,Pe)=>{{var re=se=>{var N=Ke(),De=he(N);Ti(De,17,()=>r(k),Wl,(de,ge)=>{var ie=e3(),ve=_(ie);Ti(ve,21,()=>r(ge),({value:He,timeAppeared:fe})=>fe,(He,fe)=>{let at=()=>r(fe).value,X=()=>r(fe).timeAppeared;var Me=Ke(),ke=he(Me);{var We=lt=>{var mt=ns();B(()=>$e(mt,at())),$(lt,mt)};L(ke,lt=>{(!X()||X()<=e.position)&&lt(We)})}$(He,Me)}),h(ve),h(ie),B(()=>{var He;return st(ve,`font-size: ${(He=r(E))!=null?He:""}px`)}),$(de,ie)}),$(se,N)},Re=se=>{var N=Ke(),De=he(N);Ti(De,17,()=>e.captions,({value:de})=>de,(de,ge)=>{let ie=()=>r(ge).value;var ve=t3(),He=_(ve),fe=_(He,!0);h(He),h(ve),B(()=>{var at;st(He,`font-size: ${(at=r(E))!=null?at:""}px`),$e(fe,ie())}),$(de,ve)}),$(se,N)};L(me,se=>{var N;r(y)&&((N=r(k))!=null&&N.length)?se(re):se(Re,!1)},Pe)}};L(oe,me=>{r(y)&&d()?me(pe):me(ye,!1)})}h(ue),h(ee),B(me=>{var Pe;j=te(ee,1,"subtitles-caption svelte-c2x749",null,j,me),st(ee,`--subtitles-caption-margin: ${(Pe=r(I))!=null?Pe:""}%`)},[()=>({mobile:a()})]),$(K,ee)};L(H,K=>{var ee;(e.captions.length||(ee=r(k))!=null&&ee.length)&&K(F)})}h(R),B(K=>Z=te(R,1,"subtitles-container svelte-c2x749",null,Z,K),[()=>({shifted:e.shifted,auto:r(y)&&!r(S)&&!d()})]),$(t,R),z(),o()}var r3=M('<div class="text svelte-raurnb"> </div>'),s3=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>'),a3={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 Od(t,e){U(e,!0),Q(t,a3);let i=kt();var o=s3();let n;var s=P(_(o),2);{var l=d=>{var a=r3(),u=_(a);h(a),B(()=>{var f;return $e(u,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(f=e.chromecastDeviceName)!=null?f:""}`)}),$(d,a)};L(s,d=>{e.chromecastDeviceName&&d(l)})}h(o),B(d=>{n=te(o,1,"wrapper svelte-raurnb",null,n,d),st(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),$(t,o),z()}var l3=Ee('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657s2.315 1.158 4.357-.327c-.007.007 5.357-4.515 11.408-4.515z"></path></svg>');function Pm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=l3();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200","aria-hidden":"true","data-testid":"error-icon",viewBox:"460 190 130 90",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var d3=M('<div class="container svelte-13zpvm8"><!></div>'),c3={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 ka(t){Q(t,c3);var e=d3(),i=_(e);Pm(i,{}),h(e),$(t,e)}var u3=M('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),p3=M("<div><!></div>"),f3={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
276
  visibility 0.2s;will-change:opacity;}.container.hidden.svelte-1ciju45 {opacity:0;visibility:hidden;}.container.bgCover.svelte-1ciju45 {background-size:cover;}.playButton.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;}.playButtonBackground.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s,
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 Pa(t,e){U(e,!0),q(t,b3);let i=v(e,"iconVisible",3,!0),o=Ee(),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=_3();let f;u.__click=a;var m=_(u);{var p=x=>{var w=h3();w.__keydown=d;var y=P(_(w),2);Wr(y,{}),h(w),B(()=>ze(w,"aria-label",l)),$(x,w)};V(m,x=>{i()&&x(p)})}return h(u),B(x=>{f=oe(u,1,"container svelte-1ciju45",null,f,x),nt(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),$(t,u),z({handlePressKey:d,handleClick:a})}at(["click","keydown"]);var $3=A('<div data-testid="video_title"><span> </span></div>'),y3={hash:"svelte-14hk510",code:`.title.svelte-14hk510 {position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
277
+ transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1ciju45:hover .playButtonBackground:where(.svelte-1ciju45) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1ciju45 svg {transform:scale(2);}`};function Pa(t,e){U(e,!0),Q(t,f3);let i=m(e,"iconVisible",3,!0),o=Ie(),n=kt(),s=o.ui.startedByKeyboard$,l=q("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=p3();let f;u.__click=a;var v=_(u);{var p=x=>{var w=u3();w.__keydown=d;var y=P(_(w),2);Wr(y,{}),h(w),B(()=>Ue(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),st(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),$(t,u),z({handlePressKey:d,handleClick:a})}dt(["click","keydown"]);var m3=M('<div data-testid="video_title"><span> </span></div>'),v3={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
278
  0deg,
279
279
  rgba(0, 0, 0, 0) 0%,
280
280
  rgba(0, 0, 0, 0.02) 19%,
281
281
  rgba(0, 0, 0, 0.1) 34%,
282
282
  rgba(0, 0, 0, 0.4) 60%,
283
283
  rgba(0, 0, 0, 0.6) 100%
284
- );}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function Dm(t,e){U(e,!0),q(t,y3);let i=v(e,"title",3,""),o=v(e,"isHidden",3,!1),n=v(e,"ref",15),s=X(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=$3();let d;var a=_(l),u=_(a,!0);h(a),tt(a,f=>n(f),()=>n()),h(l),tt(l,f=>O(s,f),()=>r(s)),B(f=>{d=oe(l,1,"title svelte-14hk510",null,d,f),be(u,i())},[()=>({hidden:o()})]),$(t,l),z()}import{throttleFn as I3}from"@vkontakte/videoplayer-shared/es2015";var x3=A('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),w3=A('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),S3=A('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),C3=A('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div>'),T3=A("<div><!> <!> <!> <!></div>"),E3={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 Hm(t,e){U(e,!0),q(t,E3);let i=X(""),o=X(""),n=X(""),s=X(""),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 F=Math.floor(H/86400);F&&(H-=F*86400,O(i,u(F),!0));let Q=Math.floor(H/3600);O(o,u(Q),!0);let Z=Math.floor(H/60)%60;O(n,u(Z),!0);let Y=H%60;O(s,u(Y),!0)},x=()=>{let H=Math.floor(Date.now()/1e3),F=e.startTime-H;p(F),F>=1?l=requestAnimationFrame(x):e.onTimerOver()};Rt(()=>{l=requestAnimationFrame(x)}),tn(()=>{cancelAnimationFrame(l)});var w=T3();let y;var S=_(w);{var T=H=>{var F=x3(),Q=he(F);let Z;var Y=_(Q),pe=_(Y,!0);h(Y);var se=P(Y,2),me=_(se,!0);h(se),h(Q);var $e=P(Q,2),ve=_($e,!0);h($e),B((Ae,ae,Ve)=>{Z=nt(Q,"",Z,{width:Ae}),be(pe,r(i)),be(me,ae),be(ve,Ve)},[()=>m(r(i)),()=>K("waiting_live_day_value"),()=>K("waiting_live_colon")]),$(H,F)};V(S,H=>{r(i)&&H(T)})}var E=P(S,2);{var R=H=>{var F=w3(),Q=he(F);let Z;var Y=_(Q),pe=_(Y,!0);h(Y);var se=P(Y,2),me=_(se,!0);h(se),h(Q);var $e=P(Q,2),ve=_($e,!0);h($e),B((Ae,ae,Ve)=>{Z=nt(Q,"",Z,{width:Ae}),be(pe,r(o)),be(me,ae),be(ve,Ve)},[()=>m(r(o)),()=>K("waiting_live_hour_value"),()=>K("waiting_live_colon")]),$(H,F)};V(E,H=>{r(o)&&H(R)})}var I=P(E,2);{var M=H=>{var F=S3(),Q=he(F);let Z;var Y=_(Q),pe=_(Y,!0);h(Y);var se=P(Y,2),me=_(se,!0);h(se),h(Q);var $e=P(Q,2),ve=_($e,!0);h($e),B((Ae,ae,Ve)=>{Z=nt(Q,"",Z,{width:Ae}),be(pe,r(n)),be(me,ae),be(ve,Ve)},[()=>m(r(n)),()=>K("waiting_live_minute_value"),()=>K("waiting_live_colon")]),$(H,F)};V(I,H=>{r(n)&&H(M)})}var k=P(I,2);{var j=H=>{var F=C3();let Q;var Z=_(F),Y=_(Z,!0);h(Z);var pe=P(Z,2),se=_(pe,!0);h(pe),h(F),B((me,$e)=>{Q=nt(F,"",Q,{width:me}),be(Y,r(s)),be(se,$e)},[()=>m(r(s)),()=>K("waiting_live_second_value")]),$(H,F)};V(k,H=>{r(s)&&H(j)})}h(w),B(H=>y=oe(w,1,"timer__container svelte-gt98rn",null,y,H),[()=>({small:e.isSmallSize})]),$(t,w),z()}var k3=A('<div class="waiting svelte-17m8dcd"><span> </span></div>'),P3=A('<div class="upcoming-timer timer svelte-17m8dcd"><span> </span> <!></div>'),A3=A('<div class="waiting-container svelte-17m8dcd"><!></div>'),M3={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 Ud(t,e){U(e,!0),q(t,M3);let i=v(e,"startTime",3,0),o=g(()=>i()<Math.floor(Date.now()/1e3)),n=X(void 0),s=X(void 0),l=0,d=X(void 0),a=X(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)}),m=e.onUpcomingLiveViewStateChanged?I3(()=>{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;Ge(()=>{r(a),r(d),r(o),m==null||m()}),tn(()=>{if(cancelAnimationFrame(l),m==null||m.cancel(),e.onUpcomingLiveViewStateChanged){let S={type:r(o)?"expired":"default",size:r(u)?"s":r(f)?"m":"l"};e.onUpcomingLiveViewStateChanged(S)}});var p=A3(),x=_(p);{var w=S=>{var T=k3(),E=_(T);let R;var I=_(E,!0);h(E),h(T),tt(T,M=>O(n,M),()=>r(n)),B((M,k)=>{R=oe(E,1,"waiting__title svelte-17m8dcd",null,R,M),be(I,k)},[()=>({medium:r(f),small:r(u)}),()=>K("waiting_live_upcoming_title")]),$(S,T)},y=S=>{var T=P3(),E=_(T);let R;var I=_(E,!0);h(E);var M=P(E,2);let k=g(()=>r(u)||r(f)),j=g(()=>i()||0);Hm(M,{get isSmallSize(){return r(k)},get startTime(){return r(j)},onTimerOver:()=>O(o,!0)}),h(T),tt(T,H=>O(s,H),()=>r(s)),B((H,F)=>{R=oe(E,1,"timer__title svelte-17m8dcd",null,R,H),be(I,F)},[()=>({medium:r(f),small:r(u)}),()=>K("waiting_live_timer_title")]),$(S,T)};V(x,S=>{r(o)?S(w):S(y,!1)})}h(p),B(()=>nt(p,`background-image: url(${e.thumbUrl})`)),dr(p,"clientWidth",S=>O(d,S)),dr(p,"clientHeight",S=>O(a,S)),$(t,p),z()}var L3=A('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),V3={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 Aa(t,e){U(e,!0),q(t,V3);let i=v(e,"thumbUrl",3,""),o={recover:K("waiting_live_recover_title"),record:K("waiting_record_title")},n=g(()=>o[e.kind]||"");var s=L3(),l=_(s),d=_(l);$a(d,{style:"position: static; transform: translate(0, 0)"});var a=P(d,2),u=_(a,!0);h(a),h(l),h(s),B(()=>{nt(s,`background-image: url('${i()}')`),be(u,r(n))}),$(t,s),z()}var R3=Se('<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 Fm(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=R3();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(),h(o),$(t,o)}var N3=A('<div class="select-icon svelte-124aexk"><!></div>'),O3={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function zd(t){q(t,O3);var e=N3(),i=_(e);Fm(i,{}),h(e),$(t,e)}var B3=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},D3=(t,e)=>{cl(t,()=>e.item.selectItem(e.item.value))},H3=A("<p> </p>"),F3=A('<p class="sublabel svelte-1t7rx2m"> </p>'),U3=A('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),z3={hash:"svelte-1t7rx2m",code:`.menu-item-value.svelte-1t7rx2m {display:flex;flex-direction:column;align-items:end;min-width:0;}.menu-item-value[data-selected='false'].svelte-1t7rx2m {--select-icon-width: 16px;--icon-padding: 12px;
284
+ );}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function Am(t,e){U(e,!0),Q(t,v3);let i=m(e,"title",3,""),o=m(e,"isHidden",3,!1),n=m(e,"ref",15),s=Y(void 0);Mt(()=>{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=m3();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),$e(u,i())},[()=>({hidden:o()})]),$(t,l),z()}import{throttleFn as x3}from"@vkontakte/videoplayer-shared/es2015";var g3=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),h3=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),b3=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div>'),$3=M("<div><!> <!> <!> <!></div>"),y3={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 Mm(t,e){U(e,!0),Q(t,y3);let i=Y(""),o=Y(""),n=Y(""),s=Y(""),l,d=32,a=d/2,u=H=>String(H).padStart(2,"0"),f=H=>Math.max(H.length,1),v=H=>`${(e.isSmallSize?a:d)*f(H)}px`,p=H=>{let F=Math.floor(H/86400);F&&(H-=F*86400,O(i,u(F),!0));let K=Math.floor(H/3600);O(o,u(K),!0);let ee=Math.floor(H/60)%60;O(n,u(ee),!0);let j=H%60;O(s,u(j),!0)},x=()=>{let H=Math.floor(Date.now()/1e3),F=e.startTime-H;p(F),F>=1?l=requestAnimationFrame(x):e.onTimerOver()};Mt(()=>{l=requestAnimationFrame(x)}),nn(()=>{cancelAnimationFrame(l)});var w=$3();let y;var S=_(w);{var T=H=>{var F=g3(),K=he(F);let ee;var j=_(K),ue=_(j,!0);h(j);var oe=P(j,2),pe=_(oe,!0);h(oe),h(K);var ye=P(K,2),me=_(ye,!0);h(ye),B((Pe,re,Re)=>{ee=st(K,"",ee,{width:Pe}),$e(ue,r(i)),$e(pe,re),$e(me,Re)},[()=>v(r(i)),()=>q("waiting_live_day_value"),()=>q("waiting_live_colon")]),$(H,F)};L(S,H=>{r(i)&&H(T)})}var E=P(S,2);{var V=H=>{var F=h3(),K=he(F);let ee;var j=_(K),ue=_(j,!0);h(j);var oe=P(j,2),pe=_(oe,!0);h(oe),h(K);var ye=P(K,2),me=_(ye,!0);h(ye),B((Pe,re,Re)=>{ee=st(K,"",ee,{width:Pe}),$e(ue,r(o)),$e(pe,re),$e(me,Re)},[()=>v(r(o)),()=>q("waiting_live_hour_value"),()=>q("waiting_live_colon")]),$(H,F)};L(E,H=>{r(o)&&H(V)})}var k=P(E,2);{var I=H=>{var F=_3(),K=he(F);let ee;var j=_(K),ue=_(j,!0);h(j);var oe=P(j,2),pe=_(oe,!0);h(oe),h(K);var ye=P(K,2),me=_(ye,!0);h(ye),B((Pe,re,Re)=>{ee=st(K,"",ee,{width:Pe}),$e(ue,r(n)),$e(pe,re),$e(me,Re)},[()=>v(r(n)),()=>q("waiting_live_minute_value"),()=>q("waiting_live_colon")]),$(H,F)};L(k,H=>{r(n)&&H(I)})}var R=P(k,2);{var Z=H=>{var F=b3();let K;var ee=_(F),j=_(ee,!0);h(ee);var ue=P(ee,2),oe=_(ue,!0);h(ue),h(F),B((pe,ye)=>{K=st(F,"",K,{width:pe}),$e(j,r(s)),$e(oe,ye)},[()=>v(r(s)),()=>q("waiting_live_second_value")]),$(H,F)};L(R,H=>{r(s)&&H(Z)})}h(w),B(H=>y=te(w,1,"timer__container svelte-gt98rn",null,y,H),[()=>({small:e.isSmallSize})]),$(t,w),z()}var w3=M('<div class="waiting svelte-17m8dcd"><span> </span></div>'),S3=M('<div class="upcoming-timer timer svelte-17m8dcd"><span> </span> <!></div>'),C3=M('<div class="waiting-container svelte-17m8dcd"><!></div>'),T3={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 Bd(t,e){U(e,!0),Q(t,T3);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?x3(()=>{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()}),nn(()=>{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=C3(),x=_(p);{var w=S=>{var T=w3(),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),$e(k,R)},[()=>({medium:r(f),small:r(u)}),()=>q("waiting_live_upcoming_title")]),$(S,T)},y=S=>{var T=S3(),E=_(T);let V;var k=_(E,!0);h(E);var I=P(E,2);let R=g(()=>r(u)||r(f)),Z=g(()=>i()||0);Mm(I,{get isSmallSize(){return r(R)},get startTime(){return r(Z)},onTimerOver:()=>O(o,!0)}),h(T),ot(T,H=>O(s,H),()=>r(s)),B((H,F)=>{V=te(E,1,"timer__title svelte-17m8dcd",null,V,H),$e(k,F)},[()=>({medium:r(f),small:r(u)}),()=>q("waiting_live_timer_title")]),$(S,T)};L(x,S=>{r(o)?S(w):S(y,!1)})}h(p),B(()=>st(p,`background-image: url(${e.thumbUrl})`)),rr(p,"clientWidth",S=>O(d,S)),rr(p,"clientHeight",S=>O(a,S)),$(t,p),z()}var E3=M('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),I3={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 Aa(t,e){U(e,!0),Q(t,I3);let i=m(e,"thumbUrl",3,""),o={recover:q("waiting_live_recover_title"),record:q("waiting_record_title")},n=g(()=>o[e.kind]||"");var s=E3(),l=_(s),d=_(l);$a(d,{style:"position: static; transform: translate(0, 0)"});var a=P(d,2),u=_(a,!0);h(a),h(l),h(s),B(()=>{st(s,`background-image: url('${i()}')`),$e(u,r(n))}),$(t,s),z()}var k3=Ee('<svg><!><path fill="var(--btn-color, #fff)" d="M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"></path></svg>');function Lm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=k3();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var P3=M('<div class="select-icon svelte-124aexk"><!></div>'),A3={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function Dd(t){Q(t,A3);var e=P3(),i=_(e);Lm(i,{}),h(e),$(t,e)}var M3=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},L3=(t,e)=>{ul(t,()=>e.item.selectItem(e.item.value))},V3=M("<p> </p>"),R3=M('<p class="sublabel svelte-1t7rx2m"> </p>'),N3=M('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),O3={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
285
 
286
286
  /**
287
287
  * \u0415\u0441\u043B\u0438 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D(\u0438\u043A\u043E\u043D\u043A\u0430 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442), \u0442\u043E \u0434\u043E\u043B\u0436\u043D\u044B \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043F\u0443\u0441\u0442\u043E\u0435 \u043C\u0435\u0441\u0442\u043E
288
288
  * \u0447\u0442\u043E\u0431\u044B \u0432\u0441\u0435 \u043B\u0435\u0439\u0431\u043B\u044B \u043D\u0430\u0447\u0438\u043D\u0430\u043B\u0438\u0441\u044C \u0441 \u043E\u0434\u043D\u043E\u0433\u043E \u043E\u0442\u0441\u0442\u0443\u043F\u0430.
289
289
  */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 Um(t,e){U(e,!0),q(t,z3);let i=v(e,"isMobile",3,!1);var o=U3();let n;o.__click=[B3,e],o.__keydown=[D3,e];var s=_(o);{var l=w=>{zd(w,{})};V(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);Ii(S,()=>e.item.valueComponent,(T,E)=>{E(T,_s(()=>{var R;return(R=e.item.valueComponentParams)!=null?R:{}}))}),$(w,y)},m=w=>{var y=H3();let S;var T=_(y,!0);h(y),B(E=>{var R;S=oe(y,1,"label svelte-1t7rx2m",null,S,E),be(T,(R=e.item.label)!=null?R:e.item.value)},[()=>({mobile:i()})]),$(w,y)};V(u,w=>{e.item.valueComponent?w(f):w(m,!1)})}var p=P(u,2);{var x=w=>{var y=F3(),S=_(y,!0);h(y),B(()=>be(S,e.item.sublabel)),$(w,y)};V(p,w=>{e.item.sublabel&&w(x)})}h(d),h(o),B((w,y,S)=>{n=oe(o,1,"item",null,n,w),ze(o,"data-value",e.item.value),ze(o,"aria-label",y),ze(o,"data-testid",e.item.dataTestid),a=oe(d,1,"menu-item-value svelte-1t7rx2m",null,a,S),ze(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),z()}at(["click","keydown"]);var W3=A('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function zm(t,e){U(e,!0);let i=v(e,"isMobile",3,!1),o=v(e,"refMenuItems",15),n=g(()=>()=>e.openSubMenuList(e.item.children)),s=g(()=>y=>du(y,r(n)));var l=W3();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=>{zd(y,{})};V(a,y=>{e.item.selected&&y(u)})}var f=P(a,2);let m;var p=_(f);{var x=y=>{var S=Qe();let T=g(()=>e.item.valueComponent);var E=he(S);Ii(E,()=>r(T),(R,I)=>{I(R,_s(()=>{var M;return(M=e.item.valueComponentParams)!=null?M:{}}))}),$(y,S)},w=y=>{var S=ns();B(()=>be(S,e.item.label)),$(y,S)};V(p,y=>{e.item.valueComponent?y(x):y(w,!1)})}h(f),h(l),tt(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=oe(l,1,"item",null,d,y),ze(l,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),ze(l,"data-testid",e.item.id),m=oe(f,1,"menu-item-value",null,m,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),$(t,l),z()}at(["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 q3=(t,e)=>{_1(t,e.returnFromSubMenu,e.closeSettingsMenu)},Q3=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},G3=(t,e)=>{ud(t)&&(Sr(t),e.returnFromSubMenu())},j3=A('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),Y3={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
290
+ .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function Vm(t,e){U(e,!0),Q(t,O3);let i=m(e,"isMobile",3,!1);var o=N3();let n;o.__click=[M3,e],o.__keydown=[L3,e];var s=_(o);{var l=w=>{Dd(w,{})};L(s,w=>{e.item.selected&&w(l)})}var d=P(s,2);let a;var u=_(d);{var f=w=>{var y=Ke(),S=he(y);Ei(S,()=>e.item.valueComponent,(T,E)=>{E(T,_s(()=>{var V;return(V=e.item.valueComponentParams)!=null?V:{}}))}),$(w,y)},v=w=>{var y=V3();let S;var T=_(y,!0);h(y),B(E=>{var V;S=te(y,1,"label svelte-1t7rx2m",null,S,E),$e(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=R3(),S=_(y,!0);h(y),B(()=>$e(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),Ue(o,"data-value",e.item.value),Ue(o,"aria-label",y),Ue(o,"data-testid",e.item.dataTestid),a=te(d,1,"menu-item-value svelte-1t7rx2m",null,a,S),Ue(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),z()}dt(["click","keydown"]);var B3=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Rm(t,e){U(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"refMenuItems",15),n=g(()=>()=>e.openSubMenuList(e.item.children)),s=g(()=>y=>nu(y,r(n)));var l=B3();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=>{Dd(y,{})};L(a,y=>{e.item.selected&&y(u)})}var f=P(a,2);let v;var p=_(f);{var x=y=>{var S=Ke();let T=g(()=>e.item.valueComponent);var E=he(S);Ei(E,()=>r(T),(V,k)=>{k(V,_s(()=>{var I;return(I=e.item.valueComponentParams)!=null?I:{}}))}),$(y,S)},w=y=>{var S=ns();B(()=>$e(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),Ue(l,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),Ue(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),z()}dt(["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 H3=(t,e)=>{l1(t,e.returnFromSubMenu,e.closeSettingsMenu)},F3=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},U3=(t,e)=>{ad(t)&&(xr(t),e.returnFromSubMenu())},z3=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>'),W3={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
291
291
  /*\u0414\u043B\u044F \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u0438 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0433\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430 \u0441\u043F\u0438\u0441\u043A\u0430*/--edge-item-padding-vertical-mobile: calc(6px + var(--item-padding-vertical-mobile));--edge-item-padding-vertical: calc(8px + var(--item-padding-vertical));}.sub-menu.svelte-7dfsuh .item.mobile {padding:var(--item-padding-vertical-mobile) 17px;line-height:var(--item-label-line-height);font-size:14px;}.sub-menu.svelte-7dfsuh {
292
292
  /**
293
293
  * \u0422\u0430\u043A \u043A\u0430\u043A \u0443 \u043D\u0430\u0441 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0441\u0442\u0438\u043A\u0438, \u043D\u0443\u0436\u043D\u043E \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0430\u0434\u0434\u0438\u043D\u0433 \u0441 \u0432\u044B\u0441\u043E\u0442\u0443 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0430.
@@ -297,14 +297,14 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},e1=ob;var b
297
297
  var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
298
298
  1px
299
299
  );}.sub-menu.svelte-7dfsuh .items:where(.svelte-7dfsuh) .item.header:where(.svelte-7dfsuh) {position:absolute;top:0;left:0;right:0;min-width:max-content;display:flex;justify-content:space-between;border-bottom:var(--divider-border);}.header.svelte-7dfsuh .title:where(.svelte-7dfsuh) {margin-left:8px;}.sub-menu.svelte-7dfsuh .item {padding:var(--item-padding-vertical) 12px;padding-right:22px;}.items.svelte-7dfsuh .item:first-child:not(.mobile) {padding-top:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item:last-child:not(.mobile) {padding-bottom:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item.mobile:first-child {padding-top:var(--edge-item-padding-vertical-mobile);}.items.svelte-7dfsuh .item.mobile:last-child {padding-bottom:var(--edge-item-padding-vertical-mobile);}.sub-menu.svelte-7dfsuh .item.bottomBordered {border-bottom:var(--divider-border);}.sub-menu.svelte-7dfsuh .item .sublabel {line-height:14px;font-size:12px;}.sub-menu.svelte-7dfsuh .item:not(.mobile) .label,
300
- .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function Km(t,e){U(e,!0),q(t,Y3);let[i,o]=Fe(),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,()=>K("aria_label_submenu_back")),u=v(e,"listRef",15);Rt(()=>{let Y=e.items.findIndex(pe=>pe.selected);u().children[Y+1].focus()});let f=Ee(),m=f.ui.isFullscreen,p=f.ui.playerSize,x=X(void 0),w=X(0),y=X(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=j3();let R;var I=_(E);let M;I.__keydown=[q3,e];var k=_(I);let j;k.__click=[Q3,e],k.__keydown=[G3,e];var H=_(k);qs(H,{direction:"left"});var F=P(H,2),Q=_(F,!0);h(F),h(k),tt(k,Y=>O(x,Y),()=>r(x));var Z=P(k,2);Ei(Z,17,()=>e.items,Gl,(Y,pe)=>{var se=Qe(),me=he(se);{var $e=Ae=>{Um(Ae,{get item(){return r(pe)},get isMobile(){return l()}})},ve=(Ae,ae)=>{{var Ve=le=>{zm(le,{get isMobile(){return l()},get item(){return r(pe)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(Ae,le=>{r(pe).type==="OPEN_SUB_MENU"&&le(Ve)},ae)}};V(me,Ae=>{r(pe).type==="SELECT_VALUE"?Ae($e):Ae(ve,!1)})}$(Y,se)}),h(I),tt(I,Y=>u(Y),()=>u()),h(E),B((Y,pe,se)=>{R=oe(E,1,"sub-menu menu svelte-7dfsuh",null,R,Y),ze(E,"data-testid",`sub-menu-${e.id}`),nt(E,`min-width: ${r(T)}px`),M=oe(I,1,"items svelte-7dfsuh",null,M,pe),nt(I,r(S)),j=oe(k,1,"item header back svelte-7dfsuh",null,j,se),ze(k,"aria-label",a()),be(Q,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),dr(k,"clientWidth",Y=>O(w,Y)),dr(k,"clientHeight",Y=>O(y,Y)),$(t,E),z(),o()}at(["keydown","click"]);import{noop as Z3}from"@vkontakte/videoplayer-shared/es2015";var X3=(t,e)=>du(t,e()),J3=(t,e)=>{t.stopPropagation(),e()()},ex=A('<div class="value svelte-1ikfjte"> </div>'),tx=A('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),ix={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function qm(t,e){U(e,!0),q(t,ix);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,Z3),n=v(e,"valueComponent",3,void 0),s=v(e,"ref",15);var l=tx();let d;l.__click=[J3,o],l.__keydown=[X3,o];var a=_(l),u=_(a);{var f=T=>{Ta(T,{get icon(){return e.icon}})},m=T=>{var E=Qe();let R=g(()=>e.icon);var I=he(E);Ii(I,()=>r(R),(M,k)=>{k(M,{})}),$(T,E)};V(u,T=>{typeof e.icon=="string"?T(f):T(m,!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 R=g(n);var I=he(E);Ii(I,()=>r(R),(M,k)=>{k(M,{})}),$(T,E)},S=T=>{var E=ex(),R=_(E,!0);h(E),B(()=>be(R,e.value)),$(T,E)};V(w,T=>{n()?T(y):T(S,!1)})}h(l),tt(l,T=>s(T),()=>s()),B(T=>{d=oe(l,1,"item",null,d,T),ze(l,"aria-label",e.ariaLabel),ze(l,"data-testid",e.id),be(x,e.label)},[()=>({mobile:i()})]),$(t,l),z()}at(["click","keydown"]);import{noop as e0}from"@vkontakte/videoplayer-shared/es2015";var ox=(t,e)=>{cl(t,()=>e())},nx=A('<div class="icon icon-error-stub"><div class="inner"></div></div>'),rx=A('<img class="icon" aria-hidden="true"/>'),sx=A('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),ax={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Qm(t,e){U(e,!0),q(t,ax);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,e0),n=v(e,"closeSettings",3,e0),s=X(!1),l=()=>{O(s,!0)},d=S=>{S==null||S.stopPropagation(),o()(),n()()};var a=sx();let u;a.__click=d,a.__keydown=[ox,d];var f=_(a),m=_(f);{var p=S=>{var T=Qe(),E=he(T);{var R=M=>{var k=nx();$(M,k)},I=M=>{var k=rx();B(()=>ze(k,"src",e.icon)),St("error",k,l),sa(k),$(M,k)};V(E,M=>{r(s)?M(R):M(I,!1)})}$(S,T)},x=S=>{var T=Qe();let E=g(()=>e.icon);var R=he(T);Ii(R,()=>r(E),(I,M)=>{M(I,{})}),$(S,T)};V(m,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=oe(a,1,"item",null,u,S),ze(a,"aria-label",(T=e.ariaLabel)!=null?T:e.label),ze(a,"data-testid",e.id),be(y,e.label)},[()=>({mobile:i()})]),$(t,a),z()}at(["click","keydown"]);import{noop as cx}from"@vkontakte/videoplayer-shared/es2015";var lx=A('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),dx={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 Gm(t,e){q(t,dx);let i=v(e,"enabled",3,!1);var o=lx(),n=_(o);let s;we(2),h(o),B(l=>s=oe(n,1,"toggle svelte-17wbjko",null,s,l),[()=>({on:i()})]),$(t,o)}var ux=(t,e,i)=>{b1(t,e(),o=>i()(o))},px=(t,e,i)=>{t.stopPropagation(),e()(!i())},fx=A('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),mx=A('<li role="menuitem" tabindex="0"><!></li>');function jm(t,e){U(e,!0);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,cx),n=v(e,"enabled",3,!1),s=v(e,"tooltipText",3,void 0),l=v(e,"maxTooltipWidth",3,void 0);var d=mx();let a;d.__click=[px,o,n],d.__keydown=[ux,n,o];var u=_(d);ya(u,{get content(){return s()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,m)=>{var p=fx();let x;var w=_(p),y=_(w);{var S=M=>{Ta(M,{get icon(){return e.icon}})},T=M=>{var k=Qe();let j=g(()=>e.icon);var H=he(k);Ii(H,()=>r(j),(F,Q)=>{Q(F,{})}),$(M,k)};V(y,M=>{typeof e.icon=="string"?M(S):M(T,!1)})}h(w);var E=P(w,2),R=_(E,!0);h(E);var I=P(E,2);Gm(I,{get enabled(){return n()}}),h(p),B(M=>{x=oe(p,1,"switch-wrapper",null,x,M),be(R,e.label)},[()=>({mobile:i()})]),$(f,p)},$$slots:{default:!0}}),h(d),B(f=>{var m;a=oe(d,1,"item switch-item",null,a,f),ze(d,"aria-label",(m=e.ariaLabel)!=null?m:e.label),ze(d,"data-testid",e.id)},[()=>({mobile:i()})]),$(t,d),z()}at(["click","keydown"]);import{isValidURL as Bx,VideoQuality as u0}from"@vkontakte/videoplayer-shared/es2015";var t0=()=>{let t=X(ai([])),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 vx=A('<div class="quality-icon svelte-t2qk8t"><!></div>'),gx=A('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),hx={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){U(e,!0),q(t,hx);let i=v(e,"isSubCase",3,!1),o=g(()=>mu(e.quality));var n=gx(),s=_(n);let l;var d=_(s,!0);h(s);var a=P(s,2);{var u=f=>{var m=vx();let p=g(()=>r(o));var x=_(m);Ii(x,()=>r(p),(w,y)=>{y(w,{})}),h(m),$(f,m)};V(a,f=>{r(o)&&!e.isMobile&&f(u)})}h(n),B(f=>{l=oe(s,1,"svelte-t2qk8t",null,l,f),be(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),$(t,n),z()}import{VideoQuality as _x}from"@vkontakte/videoplayer-shared/es2015";import{VideoQuality as i0}from"@vkontakte/videoplayer-core/es2015";var o0=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},n0=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=o0({quality:t,availableQualities:e});return i?t===i0.INVARIANT?K("auto_quality_invariant"):K("auto_quality",{actual:o}):o},r0=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===i0.INVARIANT?i:`${i}${o0({quality:t,availableQualities:e})}`:"...";var bx=A('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),$x={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function bl(t,e){U(e,!0),q(t,$x);let[i,o]=Fe(),n=()=>C(a,"$currentQuality$",i),s=()=>C(u,"$availableQualities$",i),l=()=>C(f,"$isMobile$",i),d=Ee(),a=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,m=" \xB7 ",p=g(()=>e.prefix+(e.selected&&n()!==_x.INVARIANT?m:"")),x=g(()=>r0({prefix:r(p),quality:n(),availableQualities:s(),onlyPrefix:!e.selected}));var w=bx(),y=_(w);let S=g(()=>e.selected?n():void 0);Ma(y,{get quality(){return r(S)},get label(){return r(x)},get isMobile(){return l()},isSubCase:!0}),h(w),$(t,w),z(),o()}var yx=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")},xx={br:!0,span:!0},Ym=(t,e={})=>{var d,a,u,f,m,p,x;if(!t)return t;let i=W(W({},xx),e),o=Object.keys(i);if(!o.length)return t;let n=yx(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=(m=w.groups)!=null&&m.childrenhtml?Ym(w.groups.childrenhtml,i):"",R=(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),R),l=T+y.length}return l===0?t:(s.push(t.slice(l)),s.join(""))};function Wd(t,e){U(e,!1);let i=v(e,"message",8),o=Ym(i());Ur();var n=Qe(),s=he(n);{var l=d=>{var a=Qe(),u=he(a);jl(u,()=>o),$(d,a)};V(s,d=>{o&&d(l)})}$(t,n),z()}var wx=A('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),Sx={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 Zm(t,e){U(e,!1),q(t,Sx),Ur();var i=wx(),o=_(i);let n=Br(()=>K("quality_applience",{action:`<span>${K("quality_applience_action")}</span>`}));Wd(o,{get message(){return r(n)}}),h(i),$(t,i),z()}var a0=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:bl,valueComponentParams:{prefix:K("other_quality"),selected:o},children:"QUALITY"}},Xm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:K("auto_quality_limit"),valueComponent:e?bl:void 0,valueComponentParams:{prefix:K("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),l0=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Zm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Jm=({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?bl:void 0,valueComponentParams:{prefix:K("high_quality"),selected:i},sublabel:K("high_quality_description")}),ev=({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?bl:void 0,valueComponentParams:{prefix:K("traffic_saving_quality"),selected:i},sublabel:K("traffic_saving_quality_description")});var Au=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Mu=(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 K("audio_stream_display_language_label",{language:n,label:o});{let a=Au(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=Au(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=Au(t,d);return K("audio_stream_display_language_index",{language:n,index:a})}}let s=Au(t,e);return K("audio_stream_display_unknown",{index:s})};var Cx={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,s=[];return i&&s.push({handler:Xm,selected:e&&!o&&!n||!1}),s.push({handler:ev,selected:o},{handler:Jm,selected:n}),{title:K("submenu_quality"),id:"QUALITY_DETAILS",items:[l0(t),...s.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),a0(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: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:K("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Xm,selected:((i=Zc())==null?void 0:i.type)==="auto_quality"},{handler:ev,selected:((o=Zc())==null?void 0:o.type)==="traffic_saving"},{handler:Jm,selected:((n=Zc())==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:Mu(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===wu?"sub_off":void 0}))})},d0=({subMenuId:t,context:e})=>t?[Cx[t](e)]:[];var Tx=Se('<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 tv(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=Tx();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(),h(o),$(t,o)}var Ex=Se('<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 iv(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=Ex();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",viewBox:"0 0 18 15",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(),h(o),$(t,o)}var Ix=Se('<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 ov(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=Ix();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(),h(o),$(t,o)}var kx=Se('<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 nv(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=kx();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(),h(o),$(t,o)}var Px=Se('<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 rv(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=Px();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(),h(o),$(t,o)}var Ax=Se('<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 Lu(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=Ax();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(),h(o),$(t,o)}var Mx=Se('<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 sv(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=Mx();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(),h(o),$(t,o)}var Lx=A('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),Vx={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function av(t,e){U(e,!0),q(t,Vx);let[i,o]=Fe(),n=()=>C(u,"$currentQuality$",i),s=()=>C(f,"$availableQualities$",i),l=()=>C(m,"$isAutoQualityEnabled$",i),d=()=>C(p,"$isMobile$",i),a=Ee(),u=a.state.currentQuality$,f=a.state.availableQualities$,m=a.state.isAutoQualityEnabled$,p=a.ui.isMobile,x=g(()=>n0({quality:n(),availableQualities:s(),isAutoQualityEnabled:l()}));var w=Lx(),y=_(w);Ma(y,{get quality(){return n()},get label(){return r(x)},get isMobile(){return d()}}),h(w),$(t,w),z(),o()}var Nx={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:$d,label:K("menu_quality"),value:e,valueComponent:av,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:tv,label:K("menu_traffic_saving"),enabled:t,tooltipText:K("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=Mu(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:iv,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:ov,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:yd,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:nv}),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:rv,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:Lu,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:Lu,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:sv,isHiddenFor:["desktop"]})},c0=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>Nx[n](e)),...i.map(n=>Ht(W({},n),{isAdditional:!0}))].filter(n=>{var s,l,d;return!((s=n==null?void 0:n.isHiddenFor)!=null&&s.length)||!((l=n==null?void 0:n.isHiddenFor)!=null&&l.includes("desktop"))&&!o||!((d=n==null?void 0:n.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(ha)};var Dx=(t,e)=>{lu(t,e)},Hx=A('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),Fx=A('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),Ux=A("<div><!> <!></div>"),zx={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
300
+ .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function Om(t,e){U(e,!0),Q(t,W3);let[i,o]=Fe(),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,()=>q("aria_label_submenu_back")),u=m(e,"listRef",15);Mt(()=>{let j=e.items.findIndex(ue=>ue.selected);u().children[j+1].focus()});let f=Ie(),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=z3();let V;var k=_(E);let I;k.__keydown=[H3,e];var R=_(k);let Z;R.__click=[F3,e],R.__keydown=[U3,e];var H=_(R);Ks(H,{direction:"left"});var F=P(H,2),K=_(F,!0);h(F),h(R),ot(R,j=>O(x,j),()=>r(x));var ee=P(R,2);Ti(ee,17,()=>e.items,Wl,(j,ue)=>{var oe=Ke(),pe=he(oe);{var ye=Pe=>{Vm(Pe,{get item(){return r(ue)},get isMobile(){return l()}})},me=(Pe,re)=>{{var Re=se=>{Rm(se,{get isMobile(){return l()},get item(){return r(ue)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};L(Pe,se=>{r(ue).type==="OPEN_SUB_MENU"&&se(Re)},re)}};L(pe,Pe=>{r(ue).type==="SELECT_VALUE"?Pe(ye):Pe(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),Ue(E,"data-testid",`sub-menu-${e.id}`),st(E,`min-width: ${r(T)}px`),I=te(k,1,"items svelte-7dfsuh",null,I,ue),st(k,r(S)),Z=te(R,1,"item header back svelte-7dfsuh",null,Z,oe),Ue(R,"aria-label",a()),$e(K,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),z(),o()}dt(["keydown","click"]);import{noop as K3}from"@vkontakte/videoplayer-shared/es2015";var q3=(t,e)=>nu(t,e()),Q3=(t,e)=>{t.stopPropagation(),e()()},G3=M('<div class="value svelte-1ikfjte"> </div>'),j3=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),Y3={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function Bm(t,e){U(e,!0),Q(t,Y3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,K3),n=m(e,"valueComponent",3,void 0),s=m(e,"ref",15);var l=j3();let d;l.__click=[Q3,o],l.__keydown=[q3,o];var a=_(l),u=_(a);{var f=T=>{Ta(T,{get icon(){return e.icon}})},v=T=>{var E=Ke();let V=g(()=>e.icon);var k=he(E);Ei(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=Ke();let V=g(n);var k=he(E);Ei(k,()=>r(V),(I,R)=>{R(I,{})}),$(T,E)},S=T=>{var E=G3(),V=_(E,!0);h(E),B(()=>$e(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),Ue(l,"aria-label",e.ariaLabel),Ue(l,"data-testid",e.id),$e(x,e.label)},[()=>({mobile:i()})]),$(t,l),z()}dt(["click","keydown"]);import{noop as W1}from"@vkontakte/videoplayer-shared/es2015";var Z3=(t,e)=>{ul(t,()=>e())},X3=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),J3=M('<img class="icon" aria-hidden="true"/>'),ex=M('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),tx={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Dm(t,e){U(e,!0),Q(t,tx);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,W1),n=m(e,"closeSettings",3,W1),s=Y(!1),l=()=>{O(s,!0)},d=S=>{S==null||S.stopPropagation(),o()(),n()()};var a=ex();let u;a.__click=d,a.__keydown=[Z3,d];var f=_(a),v=_(f);{var p=S=>{var T=Ke(),E=he(T);{var V=I=>{var R=X3();$(I,R)},k=I=>{var R=J3();B(()=>Ue(R,"src",e.icon)),St("error",R,l),sa(R),$(I,R)};L(E,I=>{r(s)?I(V):I(k,!1)})}$(S,T)},x=S=>{var T=Ke();let E=g(()=>e.icon);var V=he(T);Ei(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),Ue(a,"aria-label",(T=e.ariaLabel)!=null?T:e.label),Ue(a,"data-testid",e.id),$e(y,e.label)},[()=>({mobile:i()})]),$(t,a),z()}dt(["click","keydown"]);import{noop as nx}from"@vkontakte/videoplayer-shared/es2015";var ix=M('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),ox={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 Hm(t,e){Q(t,ox);let i=m(e,"enabled",3,!1);var o=ix(),n=_(o);let s;Te(2),h(o),B(l=>s=te(n,1,"toggle svelte-17wbjko",null,s,l),[()=>({on:i()})]),$(t,o)}var rx=(t,e,i)=>{d1(t,e(),o=>i()(o))},sx=(t,e,i)=>{t.stopPropagation(),e()(!i())},ax=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),lx=M('<li role="menuitem" tabindex="0"><!></li>');function Fm(t,e){U(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,nx),n=m(e,"enabled",3,!1),s=m(e,"tooltipText",3,void 0),l=m(e,"maxTooltipWidth",3,void 0);var d=lx();let a;d.__click=[sx,o,n],d.__keydown=[rx,n,o];var u=_(d);ya(u,{get content(){return s()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,v)=>{var p=ax();let x;var w=_(p),y=_(w);{var S=I=>{Ta(I,{get icon(){return e.icon}})},T=I=>{var R=Ke();let Z=g(()=>e.icon);var H=he(R);Ei(H,()=>r(Z),(F,K)=>{K(F,{})}),$(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);Hm(k,{get enabled(){return n()}}),h(p),B(I=>{x=te(p,1,"switch-wrapper",null,x,I),$e(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),Ue(d,"aria-label",(v=e.ariaLabel)!=null?v:e.label),Ue(d,"data-testid",e.id)},[()=>({mobile:i()})]),$(t,d),z()}dt(["click","keydown"]);import{isValidURL as Mx,VideoQuality as t_}from"@vkontakte/videoplayer-shared/es2015";var K1=()=>{let t=Y(ai([])),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 dx=M('<div class="quality-icon svelte-t2qk8t"><!></div>'),cx=M('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),ux={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){U(e,!0),Q(t,ux);let i=m(e,"isSubCase",3,!1),o=g(()=>du(e.quality));var n=cx(),s=_(n);let l;var d=_(s,!0);h(s);var a=P(s,2);{var u=f=>{var v=dx();let p=g(()=>r(o));var x=_(v);Ei(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),$e(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),$(t,n),z()}import{VideoQuality as px}from"@vkontakte/videoplayer-shared/es2015";import{VideoQuality as q1}from"@vkontakte/videoplayer-core/es2015";var Q1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},G1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=Q1({quality:t,availableQualities:e});return i?t===q1.INVARIANT?q("auto_quality_invariant"):q("auto_quality",{actual:o}):o},j1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===q1.INVARIANT?i:`${i}${Q1({quality:t,availableQualities:e})}`:"...";var fx=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),mx={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function $l(t,e){U(e,!0),Q(t,mx);let[i,o]=Fe(),n=()=>C(a,"$currentQuality$",i),s=()=>C(u,"$availableQualities$",i),l=()=>C(f,"$isMobile$",i),d=Ie(),a=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,v=" \xB7 ",p=g(()=>e.prefix+(e.selected&&n()!==px.INVARIANT?v:"")),x=g(()=>j1({prefix:r(p),quality:n(),availableQualities:s(),onlyPrefix:!e.selected}));var w=fx(),y=_(w);let S=g(()=>e.selected?n():void 0);Ma(y,{get quality(){return r(S)},get label(){return r(x)},get isMobile(){return l()},isSubCase:!0}),h(w),$(t,w),z(),o()}var vx=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")},gx={br:!0,span:!0},Um=(t,e={})=>{var d,a,u,f,v,p,x;if(!t)return t;let i=W(W({},gx),e),o=Object.keys(i);if(!o.length)return t;let n=vx(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?Um(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 Hd(t,e){U(e,!1);let i=m(e,"message",8),o=Um(i());Ur();var n=Ke(),s=he(n);{var l=d=>{var a=Ke(),u=he(a);Kl(u,()=>o),$(d,a)};L(s,d=>{o&&d(l)})}$(t,n),z()}var hx=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 zm(t,e){U(e,!1),Q(t,_x),Ur();var i=hx(),o=_(i);let n=Br(()=>q("quality_applience",{action:`<span>${q("quality_applience_action")}</span>`}));Hd(o,{get message(){return r(n)}}),h(i),$(t,i),z()}var Z1=({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"}},Wm=({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}),X1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:zm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Km=({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")}),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:q("traffic_saving_quality"),valueComponent:t?$l:void 0,valueComponentParams:{prefix:q("traffic_saving_quality"),selected:i},sublabel:q("traffic_saving_quality_description")});var Tu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Eu=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(l=Cd(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=Tu(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=Tu(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=Tu(t,d);return q("audio_stream_display_language_index",{language:n,index:a})}}let s=Tu(t,e);return q("audio_stream_display_unknown",{index:s})};var bx={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,s=[];return i&&s.push({handler:Wm,selected:e&&!o&&!n||!1}),s.push({handler:qm,selected:o},{handler:Km,selected:n}),{title:q("submenu_quality"),id:"QUALITY_DETAILS",items:[X1(t),...s.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),Z1(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:Wm,selected:((i=qc())==null?void 0:i.type)==="auto_quality"},{handler:qm,selected:((o=qc())==null?void 0:o.type)==="traffic_saving"},{handler:Km,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: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:Eu(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===_u?"sub_off":void 0}))})},J1=({subMenuId:t,context:e})=>t?[bx[t](e)]:[];var $x=Ee('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z" clip-rule="evenodd"></path></svg>');function Qm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=$x();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var yx=Ee('<svg><!><path fill="var(--btn-color, #fff)" d="M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"></path></svg>');function Gm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=yx();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",viewBox:"0 0 18 15",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var xx=Ee('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" fill-rule="nonzero" d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"></path></g></svg>');function jm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=xx();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var wx=Ee('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18" clip-rule="evenodd"></path></svg>');function Ym(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=wx();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var Sx=Ee('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z" clip-rule="evenodd"></path></svg>');function Zm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Sx();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var Cx=Ee('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492" clip-rule="evenodd"></path></svg>');function Iu(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Cx();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var Tx=Ee('<svg><!><path fill="var(--btn-color, #fff)" d="M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"></path></svg>');function Xm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Tx();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var Ex=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),Ix={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Jm(t,e){U(e,!0),Q(t,Ix);let[i,o]=Fe(),n=()=>C(u,"$currentQuality$",i),s=()=>C(f,"$availableQualities$",i),l=()=>C(v,"$isAutoQualityEnabled$",i),d=()=>C(p,"$isMobile$",i),a=Ie(),u=a.state.currentQuality$,f=a.state.availableQualities$,v=a.state.isAutoQualityEnabled$,p=a.ui.isMobile,x=g(()=>G1({quality:n(),availableQualities:s(),isAutoQualityEnabled:l()}));var w=Ex(),y=_(w);Ma(y,{get quality(){return n()},get label(){return r(x)},get isMobile(){return d()}}),h(w),$(t,w),z(),o()}var Px={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:gd,label:q("menu_quality"),value:e,valueComponent:Jm,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:q("aria_label_submenu_traffic_saving"),icon:Qm,label:q("menu_traffic_saving"),enabled:t,tooltipText:q("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=Eu(t,e);return{id:"AUDIO_LANGUAGES",weight:Kr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_audio_languages",{actual:i}),icon:Gm,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:Kr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_rate",{actual:i}),icon:jm,label:q("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:q("aria_label_menu_subtitle",{actual:t.displayValue}),icon:hd,label:q("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Kr.download,type:"CLICK",onClick:t,label:q("download_video_caption"),ariaLabel:q("aria_label_menu_download"),icon:Ym}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Kr.report,type:"CLICK",onClick:t,label:q("menu_report"),ariaLabel:`${q("menu_report")}. ${q("aria_label_new_tab_alert")}`,icon:Zm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Kr["copy-data"],type:"CLICK",onClick:t,label:q("menu_copy_debug"),ariaLabel:q("menu_copy_debug"),icon:Iu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Kr["save-trace-info"],type:"CLICK",onClick:t,label:q("menu_save_debug"),ariaLabel:q("menu_save_debug"),icon:Iu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Kr["debug-info"],type:"CLICK",onClick:t,ariaLabel:q("aria_label_menu_debug_overlay"),label:q("menu_debug_overlay"),icon:Xm,isHiddenFor:["desktop"]})},e_=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>Px[n](e)),...i.map(n=>Bt(W({},n),{isAdditional:!0}))].filter(n=>{var s,l,d;return!((s=n==null?void 0:n.isHiddenFor)!=null&&s.length)||!((l=n==null?void 0:n.isHiddenFor)!=null&&l.includes("desktop"))&&!o||!((d=n==null?void 0:n.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(ha)};var Lx=(t,e)=>{ou(t,e)},Vx=M('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),Rx=M('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),Nx=M("<div><!> <!></div>"),Ox={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
301
  /* \u043D\u0443\u0436\u043D\u043E \u0447\u0442\u043E\u0431 \u043C\u0435\u043D\u044E \u043D\u0435 \u0441\u043A\u0430\u043A\u0430\u043B\u043E \u0432 \u0448\u0438\u0440\u0438\u043D\u0435 \u043F\u0440\u0438 \u0441\u043C\u0435\u043D\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u044F, \u043E\u0441\u043E\u0431\u043E \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u043E \u043F\u0440\u0438 \u0430\u0432\u0442\u043E \u0440\u0435\u0436\u0438\u043C\u0435 */min-width:300px;}.settings-menu-container.svelte-17or3al .menu.mobile {width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px;}.settings-menu-container.svelte-17or3al .menu.mobile.hidden {display:none;}.settings-menu-container.svelte-17or3al .menu .item:not(.switch-item),
302
302
  .settings-menu-container.svelte-17or3al .menu .switch-wrapper {align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;white-space:nowrap;position:relative;}.settings-menu-container.svelte-17or3al .menu .item:hover {background-color:var(--settings-item-bg-hover);}.settings-menu-container.svelte-17or3al .menu .item.mobile:hover {background:var(--mobile-settings-bg);}.settings-menu.svelte-17or3al .item:not(.switch-item),
303
303
  .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 Kd(t,e){U(e,!0),q(t,zx);let[i,o]=Fe(),n=()=>C(fe,"$settingsMenuVisible",i),s=()=>C(st,"$settingsMenuOpenedByKeyboard",i),l=()=>C(xt,"$debugPanelVisible",i),d=()=>C(Me,"$isMobile",i),a=()=>C(lt,"$playerSize",i),u=()=>C(He,"$hasMpegSources$",i),f=()=>C(Pe,"$mobileNotReportControlHidden$",i),m=()=>C(Ve,"$autoQualityLimitingAvailable$",i),p=()=>C(ne,"$availableSubtitlesList$",i),x=()=>C(We,"$isLiveWithPlaybackSpeed",i),w=()=>C(ve,"$availableAudioStreams$",i),y=()=>C(ue,"$availablePlaybackRates$",i),S=()=>C($e,"$currentAudioStream$",i),T=()=>C(De,"$currentPlaybackRate$",i),E=()=>C(rt,"$trafficSavingEnabled",i),R=()=>C(Ae,"$currentQuality$",i),I=()=>C(le,"$isAutoQualityEnabled$",i),M=()=>C(_e,"$currentSubtitle$",i),k=()=>C(zt,"$additionalSettingsMenuItems$",i),j=()=>C(N,"$isAutoQualityAvailable$",i),H=()=>C(ae,"$availableQualities$",i),F=()=>C(_t,"$highQualityEnabled",i),Q=v(e,"ref",15,void 0),Z=v(e,"playerControlsHeight",3,0),Y=ai({}),pe=ai({}),se=Ee(),me=kt(),$e=se.state.audioStream$,ve=se.state.availableAudioStreams$,Ae=se.state.currentQuality$,ae=se.state.availableQualities$,Ve=se.state.autoQualityLimitingAvailable$,le=se.state.isAutoQualityEnabled$,N=se.state.isAutoQualityAvailable$,De=se.state.currentPlaybackRate$,ue=se.state.availablePlaybackRates$,_e=se.state.currentSubtitle$,ne=se.state.availableSubtitlesList$,ge=se.state.canDownload,He=se.state.hasMpegSources$,fe=se.ui.settingsMenu.visible$,st=se.ui.settingsMenu.openedByBtnKeyboard$,J=se.ui.settingsMenu.ref$,Me=se.ui.isMobile,Pe=se.ui.mobileNotReportControlHidden$,We=se.state.canChangePlaybackSpeed$,rt=se.state.trafficSavingEnabled$,_t=se.state.highQualityEnabled$,lt=se.ui.playerSize,xt=se.ui.debugPanelVisible,Je=se.state.isInteractiveTime$,zt=se.ui.additionalSettingsMenuItems$,ti=se.ui.t,Ft=se.actions.internal.downloadVideo,Yt=se.actions.internal.closeSettingsMenu,Ie=se.actions.internal.openSettingsSubMenu,qt=se.actions.internal.closeSettingsSubMenu,Ce=X(!1),ie=X(void 0),re=t0();Ge(()=>{!n()&&re.current&&(qt(pe[re.current]),re.popAllSubMenus())}),Ge(()=>{n()||O(ie,void 0)}),Ge(()=>{!re.current&&r(ie)&&h1(Y,r(ie))}),Ge(()=>{Q()&&J.set(Q())});function Re(qe){return $t(this,null,function*(){var Gt;re.pushSubMenu(qe),yield Co(),Ie(qe,pe[qe]);let ut=(Gt=Q())==null?void 0:Gt.firstElementChild;ut&&Cf(ut)})}function Ue(qe){var ut;qe==null||qe.stopPropagation(),s()||(ut=e.returnFocus)==null||ut.call(e),Yt(),O(Ce,!1)}function Ne(qe,ut){se.actions.internal.setQuality(qe,{appliesTo:ut}),Ue()}function Ke(qe){se.actions.internal.setAudioStream(qe),Ue()}function Oe(qe,ut){se.actions.internal.setTrafficSavingEnabled(qe,ut),me.features.qualityDetailsSubMenuEnabled&&Ue()}function et(qe,ut){se.actions.internal.setHighQualityEnabled(qe,ut),Ue()}function Wt(qe){se.actions.internal.setPlaybackRate(qe),Ue()}function Qt(qe){se.actions.internal.setSubtitle(qe),Ue()}function Et(){Ft()}function yi(){Bx(e.supportLink)&&window.open(e.supportLink,"_blank"),se.actions.internal.reportProblem(),se.actions.internal.pause()}function bi(){ll(se.actions.internal.getDebugTextData())}let ct=()=>{let qe=se.actions.internal.getTraceTextData(),ut=new Blob([...qe],{type:"application/json"}),Gt=window.URL.createObjectURL(ut);pa(Gt,"vk_player_trace_info","json")};function Ri(){xt.set(!l())}function Zt(){O(Ce,!0)}function dt(){O(Ce,!1)}function di(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-Z()}px; overflow: auto;`}let Ni=g(()=>ge&&u()&&!f()),Mt=g(()=>me.features.trafficSaving&&!f()&&m()&&!me.features.qualityDetailsSubMenuEnabled),li=g(()=>p().length>0&&!f()),rn=g(()=>!!x()&&!f()),Lt=g(()=>me.features.audioLanguages&&w().length>=2&&!f()),pt=g(()=>!f());Rt(()=>Je.subscribe(qe=>{qe&&!d()&&!r(Ce)&&!s()&&Ue()}));let pi=g(()=>{let qe=[r(pt)&&"QUALITY_SETTINGS",r(Lt)&&"AUDIO_LANGUAGES",r(rn)&&"PLAYBACK_RATE",r(li)&&"SUBTITLES",r(Mt)&&"TRAFFIC_SAVING_SWITCH",r(Ni)&&"DOWNLOAD",me.showSupport&&"SHOW_SUPPORT","COPY_DATA",me.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(ut=>!!ut);return c0({items:qe,context:{qualityDetailsSubMenuEnabled:me.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:y(),currentAudioStream:S(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:Wt,trafficSavingEnabled:E(),toggleTrafficSaving:Oe,currentQuality:R()||u0.INVARIANT,isAutoQualityEnabled:I()||!1,currentSubtitle:M(),isMobile:d(),onDownloadClick:Et,onCopyDataClick:bi,onReportProblemClick:yi,onSaveTraceDataClick:ct,toggleShowDebugInfo:Ri},additionalSettingsMenuItems:k()})}),Io=g(()=>d0({subMenuId:re.current,context:{availablePlaybackRates:y(),selectPlaybackRate:Wt,trafficSavingEnabled:E(),toggleTrafficSaving:Oe,currentQuality:R()||u0.INVARIANT,isAutoQualityEnabled:I()||!1,isAutoQualityAvailable:j()||!1,availableQualities:H(),highQualityEnabled:F(),toggleHighQuality:et,availableAudioStreams:w(),availableSubtitlesList:p(),closeSettingsMenu:Yt,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:Ke,selectQuality:Ne,selectSubtitle:Qt}}));var qi=Ux();let ni;var Ko=_(qi);{var Un=qe=>{var ut=Fx();let Gt;ut.__keydown=[Dx,Yt];var Pt=_(ut);{var At=ci=>{var wt=Hx();let to;var Qi=_(wt),zn=_(Qi,!0);h(Qi);var Oi=P(Qi,2);Oi.__click=Ue,h(wt),B((mo,vo)=>{to=oe(wt,1,"item header svelte-17or3al",null,to,mo),be(zn,vo)},[()=>({mobile:d()}),()=>ti("submenu_settings")]),$(ci,wt)};V(Pt,ci=>{d()&&ci(At)})}var fi=P(Pt,2);let qo;Ei(fi,21,()=>r(pi),ci=>ci.id,(ci,wt)=>{var to=Qe(),Qi=he(to);{var zn=mo=>{qm(mo,{get isMobile(){return d()},get id(){return r(wt).id},get icon(){return r(wt).icon},get label(){return r(wt).label},get ariaLabel(){return r(wt).ariaLabel},get value(){return r(wt).value},get valueComponent(){return r(wt).valueComponent},onClick:()=>{Re(r(wt).children),O(ie,r(wt).id,!0)},get ref(){return Y[r(wt).id]},set ref(vo){Y[r(wt).id]=vo}})},Oi=(mo,vo)=>{{var yn=Pi=>{Qm(Pi,{get isMobile(){return d()},get id(){return r(wt).id},get onClick(){return r(wt).onClick},get icon(){return r(wt).icon},get label(){return r(wt).label},get ariaLabel(){return r(wt).ariaLabel},closeSettings:Ue})},sn=(Pi,Gi)=>{{var an=ko=>{jm(ko,{get isMobile(){return d()},get id(){return r(wt).id},get onClick(){return r(wt).onClick},get icon(){return r(wt).icon},get label(){return r(wt).label},get ariaLabel(){return r(wt).ariaLabel},get enabled(){return r(wt).enabled},get tooltipText(){return r(wt).tooltipText},get maxTooltipWidth(){return r(wt).maxTooltipWidth}})};V(Pi,ko=>{r(wt).type==="SWITCH"&&ko(an)},Gi)}};V(mo,Pi=>{r(wt).type==="CLICK"?Pi(yn):Pi(sn,!1)},vo)}};V(Qi,mo=>{r(wt).type==="OPEN_SUB_MENU"?mo(zn):mo(Oi,!1)})}$(ci,to)}),h(fi),tt(fi,ci=>Q(ci),()=>Q()),h(ut),B((ci,wt,to)=>{Gt=oe(ut,1,"settings-menu menu svelte-17or3al",null,Gt,ci),qo=oe(fi,1,"items",null,qo,wt),nt(fi,to)},[()=>({desktop:!d(),mobile:d(),hidden:!!re.current}),()=>({mobile:d()}),di]),St("mouseenter",ut,Zt),St("mouseleave",ut,dt),$(qe,ut)};V(Ko,qe=>{n()&&qe(Un)})}var D=P(Ko,2);Ei(D,17,()=>r(Io),qe=>qe.id,(qe,ut)=>{let Gt=g(()=>{var Pt;return(Pt=r(ut).minWidth)!=null?Pt:137});Km(qe,{get isMobile(){return d()},get playerControlsHeight(){return Z()},get returnFromSubMenu(){return re.popSubMenu},get id(){return r(ut).id},get title(){return r(ut).title},get closeSettingsMenu(){return Yt},openSubMenuList:Re,get items(){return r(ut).items},get minWidth(){return r(Gt)},get refMenuItems(){return Y},get listRef(){return pe[r(ut).id]},set listRef(Pt){pe[r(ut).id]=Pt}})}),h(qi),B(qe=>ni=oe(qi,1,"settings-menu-container svelte-17or3al",null,ni,qe),[()=>({mobile:d(),hidden:!n()})]),$(t,qi),z(),o()}at(["keydown","click"]);var Wx=t=>t;function p0(t,{delay:e=0,duration:i=400,easing:o=Wx}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:s=>`opacity: ${s*n}`}}var Kx=A('<button class="button svelte-1sbbskl"> </button>'),qx={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 lv(t,e){q(t,qx);var i=Kx();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)}at(["click"]);var Qx=A('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),Gx={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
304
+ .settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function Fd(t,e){U(e,!0),Q(t,Ox);let[i,o]=Fe(),n=()=>C(fe,"$settingsMenuVisible",i),s=()=>C(at,"$settingsMenuOpenedByKeyboard",i),l=()=>C(Ct,"$debugPanelVisible",i),d=()=>C(Me,"$isMobile",i),a=()=>C(vt,"$playerSize",i),u=()=>C(He,"$hasMpegSources$",i),f=()=>C(ke,"$mobileNotReportControlHidden$",i),v=()=>C(Re,"$autoQualityLimitingAvailable$",i),p=()=>C(ie,"$availableSubtitlesList$",i),x=()=>C(We,"$isLiveWithPlaybackSpeed",i),w=()=>C(me,"$availableAudioStreams$",i),y=()=>C(de,"$availablePlaybackRates$",i),S=()=>C(ye,"$currentAudioStream$",i),T=()=>C(De,"$currentPlaybackRate$",i),E=()=>C(lt,"$trafficSavingEnabled",i),V=()=>C(Pe,"$currentQuality$",i),k=()=>C(se,"$isAutoQualityEnabled$",i),I=()=>C(ge,"$currentSubtitle$",i),R=()=>C(Ft,"$additionalSettingsMenuItems$",i),Z=()=>C(N,"$isAutoQualityAvailable$",i),H=()=>C(re,"$availableQualities$",i),F=()=>C(mt,"$highQualityEnabled",i),K=m(e,"ref",15,void 0),ee=m(e,"playerControlsHeight",3,0),j=ai({}),ue=ai({}),oe=Ie(),pe=kt(),ye=oe.state.audioStream$,me=oe.state.availableAudioStreams$,Pe=oe.state.currentQuality$,re=oe.state.availableQualities$,Re=oe.state.autoQualityLimitingAvailable$,se=oe.state.isAutoQualityEnabled$,N=oe.state.isAutoQualityAvailable$,De=oe.state.currentPlaybackRate$,de=oe.state.availablePlaybackRates$,ge=oe.state.currentSubtitle$,ie=oe.state.availableSubtitlesList$,ve=oe.state.canDownload,He=oe.state.hasMpegSources$,fe=oe.ui.settingsMenu.visible$,at=oe.ui.settingsMenu.openedByBtnKeyboard$,X=oe.ui.settingsMenu.ref$,Me=oe.ui.isMobile,ke=oe.ui.mobileNotReportControlHidden$,We=oe.state.canChangePlaybackSpeed$,lt=oe.state.trafficSavingEnabled$,mt=oe.state.highQualityEnabled$,vt=oe.ui.playerSize,Ct=oe.ui.debugPanelVisible,je=oe.state.isInteractiveTime$,Ft=oe.ui.additionalSettingsMenuItems$,ti=oe.ui.t,Gt=oe.actions.internal.downloadVideo,Wt=oe.actions.internal.closeSettingsMenu,ne=oe.actions.internal.openSettingsSubMenu,Ut=oe.actions.internal.closeSettingsSubMenu,_e=Y(!1),Se=Y(void 0),le=K1();qe(()=>{!n()&&le.current&&(Ut(ue[le.current]),le.popAllSubMenus())}),qe(()=>{n()||O(Se,void 0)}),qe(()=>{!le.current&&r(Se)&&a1(j,r(Se))}),qe(()=>{K()&&X.set(K())});function Ne(ze){return xt(this,null,function*(){var zt;le.pushSubMenu(ze),yield Po(),ne(ze,ue[ze]);let pt=(zt=K())==null?void 0:zt.firstElementChild;pt&&hf(pt)})}function Qe(ze){var pt;ze==null||ze.stopPropagation(),s()||(pt=e.returnFocus)==null||pt.call(e),Wt(),O(_e,!1)}function Ve(ze,pt){oe.actions.internal.setQuality(ze,{appliesTo:pt}),Qe()}function Ye(ze){oe.actions.internal.setAudioStream(ze),Qe()}function Be(ze,pt){oe.actions.internal.setTrafficSavingEnabled(ze,pt),pe.features.qualityDetailsSubMenuEnabled&&Qe()}function et(ze,pt){oe.actions.internal.setHighQualityEnabled(ze,pt),Qe()}function Lt(ze){oe.actions.internal.setPlaybackRate(ze),Qe()}function Kt(ze){oe.actions.internal.setSubtitle(ze),Qe()}function tt(){Gt()}function wi(){Mx(e.supportLink)&&window.open(e.supportLink,"_blank"),oe.actions.internal.reportProblem(),oe.actions.internal.pause()}function _i(){dl(oe.actions.internal.getDebugTextData())}let it=()=>{let ze=oe.actions.internal.getTraceTextData(),pt=new Blob([...ze],{type:"application/json"}),zt=window.URL.createObjectURL(pt);pa(zt,"vk_player_trace_info","json")};function ri(){Ct.set(!l())}function jt(){O(_e,!0)}function bi(){O(_e,!1)}function Lo(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-ee()}px; overflow: auto;`}let $o=g(()=>ve&&u()&&!f()),Ht=g(()=>pe.features.trafficSaving&&!f()&&v()&&!pe.features.qualityDetailsSubMenuEnabled),li=g(()=>p().length>0&&!f()),an=g(()=>!!x()&&!f()),Pt=g(()=>pe.features.audioLanguages&&w().length>=2&&!f()),ut=g(()=>!f());Mt(()=>je.subscribe(ze=>{ze&&!d()&&!r(_e)&&!s()&&Qe()}));let $i=g(()=>{let ze=[r(ut)&&"QUALITY_SETTINGS",r(Pt)&&"AUDIO_LANGUAGES",r(an)&&"PLAYBACK_RATE",r(li)&&"SUBTITLES",r(Ht)&&"TRAFFIC_SAVING_SWITCH",r($o)&&"DOWNLOAD",pe.showSupport&&"SHOW_SUPPORT","COPY_DATA",pe.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(pt=>!!pt);return e_({items:ze,context:{qualityDetailsSubMenuEnabled:pe.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:y(),currentAudioStream:S(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:Lt,trafficSavingEnabled:E(),toggleTrafficSaving:Be,currentQuality:V()||t_.INVARIANT,isAutoQualityEnabled:k()||!1,currentSubtitle:I(),isMobile:d(),onDownloadClick:tt,onCopyDataClick:_i,onReportProblemClick:wi,onSaveTraceDataClick:it,toggleShowDebugInfo:ri},additionalSettingsMenuItems:R()})}),Vo=g(()=>J1({subMenuId:le.current,context:{availablePlaybackRates:y(),selectPlaybackRate:Lt,trafficSavingEnabled:E(),toggleTrafficSaving:Be,currentQuality:V()||t_.INVARIANT,isAutoQualityEnabled:k()||!1,isAutoQualityAvailable:Z()||!1,availableQualities:H(),highQualityEnabled:F(),toggleHighQuality:et,availableAudioStreams:w(),availableSubtitlesList:p(),closeSettingsMenu:Wt,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:Ye,selectQuality:Ve,selectSubtitle:Kt}}));var zi=Nx();let si;var Go=_(zi);{var Un=ze=>{var pt=Rx();let zt;pt.__keydown=[Lx,Wt];var ct=_(pt);{var ci=pi=>{var yt=Vx();let Vi;var Ro=_(yt),zn=_(Ro,!0);h(Ro);var Ri=P(Ro,2);Ri.__click=Qe,h(yt),B((to,No)=>{Vi=te(yt,1,"item header svelte-17or3al",null,Vi,to),$e(zn,No)},[()=>({mobile:d()}),()=>ti("submenu_settings")]),$(pi,yt)};L(ct,pi=>{d()&&pi(ci)})}var ui=P(ct,2);let yo;Ti(ui,21,()=>r($i),pi=>pi.id,(pi,yt)=>{var Vi=Ke(),Ro=he(Vi);{var zn=to=>{Bm(to,{get isMobile(){return d()},get id(){return r(yt).id},get icon(){return r(yt).icon},get label(){return r(yt).label},get ariaLabel(){return r(yt).ariaLabel},get value(){return r(yt).value},get valueComponent(){return r(yt).valueComponent},onClick:()=>{Ne(r(yt).children),O(Se,r(yt).id,!0)},get ref(){return j[r(yt).id]},set ref(No){j[r(yt).id]=No}})},Ri=(to,No)=>{{var wn=ki=>{Dm(ki,{get isMobile(){return d()},get id(){return r(yt).id},get onClick(){return r(yt).onClick},get icon(){return r(yt).icon},get label(){return r(yt).label},get ariaLabel(){return r(yt).ariaLabel},closeSettings:Qe})},Sn=(ki,Wi)=>{{var jo=Yo=>{Fm(Yo,{get isMobile(){return d()},get id(){return r(yt).id},get onClick(){return r(yt).onClick},get icon(){return r(yt).icon},get label(){return r(yt).label},get ariaLabel(){return r(yt).ariaLabel},get enabled(){return r(yt).enabled},get tooltipText(){return r(yt).tooltipText},get maxTooltipWidth(){return r(yt).maxTooltipWidth}})};L(ki,Yo=>{r(yt).type==="SWITCH"&&Yo(jo)},Wi)}};L(to,ki=>{r(yt).type==="CLICK"?ki(wn):ki(Sn,!1)},No)}};L(Ro,to=>{r(yt).type==="OPEN_SUB_MENU"?to(zn):to(Ri,!1)})}$(pi,Vi)}),h(ui),ot(ui,pi=>K(pi),()=>K()),h(pt),B((pi,yt,Vi)=>{zt=te(pt,1,"settings-menu menu svelte-17or3al",null,zt,pi),yo=te(ui,1,"items",null,yo,yt),st(ui,Vi)},[()=>({desktop:!d(),mobile:d(),hidden:!!le.current}),()=>({mobile:d()}),Lo]),St("mouseenter",pt,jt),St("mouseleave",pt,bi),$(ze,pt)};L(Go,ze=>{n()&&ze(Un)})}var D=P(Go,2);Ti(D,17,()=>r(Vo),ze=>ze.id,(ze,pt)=>{let zt=g(()=>{var ct;return(ct=r(pt).minWidth)!=null?ct:137});Om(ze,{get isMobile(){return d()},get playerControlsHeight(){return ee()},get returnFromSubMenu(){return le.popSubMenu},get id(){return r(pt).id},get title(){return r(pt).title},get closeSettingsMenu(){return Wt},openSubMenuList:Ne,get items(){return r(pt).items},get minWidth(){return r(zt)},get refMenuItems(){return j},get listRef(){return ue[r(pt).id]},set listRef(ct){ue[r(pt).id]=ct}})}),h(zi),B(ze=>si=te(zi,1,"settings-menu-container svelte-17or3al",null,si,ze),[()=>({mobile:d(),hidden:!n()})]),$(t,zi),z(),o()}dt(["keydown","click"]);var Bx=t=>t;function i_(t,{delay:e=0,duration:i=400,easing:o=Bx}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:s=>`opacity: ${s*n}`}}var Dx=M('<button class="button svelte-1sbbskl"> </button>'),Hx={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 ev(t,e){Q(t,Hx);var i=Dx();i.__click=function(...n){var s;(s=e.onClick)==null||s.apply(this,n)};var o=_(i,!0);h(i),B(()=>$e(o,e.label)),$(t,i)}dt(["click"]);var Fx=M('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),Ux={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
305
305
  /**
306
306
  * \u0415\u0441\u043B\u0438 \u043D\u0435 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u043C \u0443 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 \u0441\u043E\u0431\u044B\u0442\u0438\u044F, \u0442\u043E \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u043C \u043F\u043E \u044D\u0442\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0432\u044B\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E.
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 qd(t,e){U(e,!0),q(t,Gx);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=kt(),{ui:{t:n}}=Ee(),s=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=Qx(),d=_(l),a=_(d),u=_(a),f=_(u);Wd(f,{get message(){return s}}),h(u);var m=P(u,2);{var p=w=>{let y=g(()=>n("slow_video_notification_button"));lv(w,{get label(){return r(y)},get onClick(){return e.onSelectAutoQuality}})};V(m,w=>{o||w(p)})}h(a);var x=P(a,2);_a(x,{get onClick(){return e.onClose}}),h(d),h(l),Kp(3,d,()=>p0,()=>({duration:i})),$(t,l),z()}import{isIntersecting as f0,Subscription as jx}from"@vkontakte/videoplayer-shared/es2015";var La="annotation",Vu=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",La),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 $t(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=ys(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(f0(T,w)))})}));f.observe(d,{childList:!0,subtree:!0}),l.observer=f;let m=new jx;o.forEach(x=>{a&&m.add(a[x].subscribe(w=>{let y=u==null?void 0:u[x];w&&w.isDisplayed?y==null||y.set(f0(w,ys(d,this.shadowRootContainer))):y==null||y.set(!1)}))}),l.subs=m})}findSlotElement(e,i,o){return $t(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 Yx=A('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),Zx={hash:"svelte-f47ws8",code:`.container.svelte-f47ws8 {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}.playback_state_icon.svelte-f47ws8 {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
307
+ */pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function Ud(t,e){U(e,!0),Q(t,Ux);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=kt(),{ui:{t:n}}=Ie(),s=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=Fx(),d=_(l),a=_(d),u=_(a),f=_(u);Hd(f,{get message(){return s}}),h(u);var v=P(u,2);{var p=w=>{let y=g(()=>n("slow_video_notification_button"));ev(w,{get label(){return r(y)},get onClick(){return e.onSelectAutoQuality}})};L(v,w=>{o||w(p)})}h(a);var x=P(a,2);_a(x,{get onClick(){return e.onClose}}),h(d),h(l),Op(3,d,()=>i_,()=>({duration:i})),$(t,l),z()}import{isIntersecting as o_,Subscription as zx}from"@vkontakte/videoplayer-shared/es2015";var La="annotation",ku=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",La),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=ys(d,this.shadowRootContainer);o.forEach(y=>{let S=a==null?void 0:a[y],T=S?we(S):null,E=u==null?void 0:u[y];T&&(E==null||E.set(o_(T,w)))})}));f.observe(d,{childList:!0,subtree:!0}),l.observer=f;let v=new zx;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(o_(w,ys(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 Wx=M('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),Kx={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;
308
308
 
309
309
  animation-name: svelte-f47ws8-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
310
310
 
@@ -335,8 +335,8 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},e1=ob;var b
335
335
  opacity: 0;
336
336
  scale: 0;
337
337
  }
338
- }`};function dv(t,e){U(e,!0),q(t,Zx);let[i,o]=Fe(),n=()=>C(l,"$isPlaying$",i),s=()=>C(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:l},ui:{aboutToGoNextVideo:d},actions:a}=Ee(),{features:{playbackStatusShow:u,playbackStatusAnimationDuration:f,playbackStatusNextVideoAnimationDuration:m}}=kt(),p=0,x=X(null),w=X(!1);Ge(()=>{O(x,n()?Wr:Ss,!0)}),Ge(()=>{O(x,s()?Ks:null,!0)}),Ge(()=>{if(u)return p=window.setTimeout(()=>{p=0,s()&&r(x)===Ks&&(s()==="next"?a.internal.nextVideoClick(!1):a.internal.prevVideoClick(!1)),O(x,null)},r(x)!==Ks?f:m),()=>{p&&(window.clearTimeout(p),p=0)}}),Ge(()=>{n()&&!r(w)&&(O(w,!0),O(x,null))});var y=Qe(),S=he(y);{var T=E=>{var R=Qe(),I=he(R);la(I,()=>r(x),M=>{var k=Yx(),j=_(k),H=_(j);let F=g(()=>s()==="prev");Ii(H,()=>r(x),(Q,Z)=>{Z(Q,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return r(F)}})}),h(j),h(k),B(()=>nt(j,`animation-duration: ${r(x)!==Ks?f:m}ms`)),$(M,k)}),$(E,R)};V(S,E=>{r(x)&&u&&E(T)})}$(t,y),z(),o()}var Xx=A('<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 Va(t,e){U(e,!0),q(t,Jx);let[i,o]=Fe(),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}}=Ee(),{isSmoothVideoRotate:x}=kt(),w=g(()=>a()&&n()%180?s().height/s().width:1);var y=Xx();let S;y.__contextmenu=function(...R){var I;(I=e.onContextMenu)==null||I.apply(this,R)},y.__mousedown=function(...R){var I;(I=e.onMouseDown)==null||I.apply(this,R)},y.__mouseup=function(...R){var I;(I=e.onMouseUp)==null||I.apply(this,R)},y.__click=function(...R){var I;(I=e.onClick)==null||I.apply(this,R)},y.__dblclick=function(...R){var I;(I=e.onDblClick)==null||I.apply(this,R)};var T=_(y);let E;tt(T,R=>a(R),()=>a()),h(y),B((R,I)=>{S=oe(y,1,"video-wrapper svelte-1czns9r",null,S,R),E=oe(T,1,"video-container svelte-1czns9r",null,E,I),nt(T,`transform: rotate(${n()}deg) scale(${r(w)})`),ze(T,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!x})]),$(t,y),z(),o()}at(["contextmenu","mousedown","mouseup","click","dblclick"]);var e5=Se('<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 cv(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=e5();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(),h(o),$(t,o)}var t5=A('<div><span class="text svelte-1tixim0"> </span> <!></div>'),i5={hash:"svelte-1tixim0",code:".root.svelte-1tixim0 {padding:6px 12px;gap:4px;background-color:var(--double-forward-bg);color:#FFFFFF;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;}.root.visible.svelte-1tixim0 {transform:translateX(-50%);visibility:visible;opacity:1;}.text.svelte-1tixim0 {font-size:13px;line-height:16px;font-weight:600;}"};function uv(t,e){U(e,!0),q(t,i5);let{ui:{t:i}}=Ee();var o=t5();let n;var s=_(o),l=_(s,!0);h(s);var d=P(s,2);cv(d,{}),h(o),B((a,u)=>{n=oe(o,1,"root svelte-1tixim0",null,n,a),be(l,u)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),$(t,o),z()}var o5=(t,e,i,o,n,s)=>{if(t.stopPropagation(),e()||o()){s();return}},n5=A("<div><!></div>"),r5=A('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),s5=A("<div><!></div>"),a5=A('<div class="settings-menu svelte-jtgjmv"><!></div>'),l5=A("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),d5=A("<!> <!> <!>",1),c5=A('<div class="blocked svelte-jtgjmv"></div>'),u5=A('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),p5={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 pv(t,e){U(e,!0),q(t,p5);let[i,o]=Fe(),n=()=>C(Qr,"$notificationsToShow$",i),s=()=>C(dt,"$playerPhase",i),l=()=>C(qi,"$isLoaderVisible",i),d=()=>C(ct,"$adPlaybackState",i),a=()=>C(Gt,"$crashed",i),u=()=>C(zn,"$isInteractiveTime$",i),f=()=>C(li,"$settingsMenuVisible",i),m=()=>C(Oi,"$isInteractiveExpectation$",i),p=()=>C(Mt,"$controlsVisible",i),x=()=>C(vo,"$touched",i),w=()=>C(xn,"$graphIsOpened$",i),y=()=>C(di,"$isFullscreen",i),S=()=>C(Cr,"$autoplayNextEnabled$",i),T=()=>C(D,"$postrollPassed",i),E=()=>C(ni,"$isEnded$",i),R=()=>C(Cn,"$cursorInside",i),I=()=>C(Tr,"$isControlsAvailable",i),M=()=>C(qr,"$doubleForwardOn$",i),k=()=>C(Kn,"$fakeIsPlaying$",i),j=()=>C(Sn,"$bottomNoSmooth",i),H=()=>C(Gi,"$interactiveTimeIndicator",i),F=()=>C(ci,"$playerSize",i),Q=()=>C(wt,"$is3DVideo",i),Z=()=>C(pi,"$contextMenuVisible$",i),Y=()=>C(bi,"$playbackState$",i),pe=()=>C(yn,"$hotKeyMapData",i),se=()=>C(Lt,"$scrubbingInProgress",i),me=()=>C(pt,"$volumeChangingInProgress",i),$e=()=>C(Ko,"$chromecastConnected$",i),ve=()=>C(Bi,"$controlsTimeoutActive",i),Ae=()=>C(rn,"$settingsMenuOpenedByKeyboard",i),ae=()=>C(Xn,"$contextMenuOpenedByKeyboard$",i),Ve=()=>C(Rr,"$contextMenuOpenedByHotKey$",i),le=()=>C(hr,"$contextMenuButtonRef$",i),N=()=>C(Yr,"$contextMenuLastActiveElem$",i),De=()=>C(Ni,"$isFullscreenOpenedByKeyboard",i),ue=()=>C(yi,"$language$",i),_e=()=>C(to,"$icon3DVideoVisible",i),ne=()=>C(Un,"$chromecastDeviceName$",i),ge=()=>C(fi,"$currentSubtitle$",i),He=()=>C(qo,"$currentSubtitleCaptions$",i),fe=()=>C(Ri,"$position$",i),st=()=>C(Zt,"$duration$",i),J=()=>C(qe,"$isLive$",i),Me=()=>C(ut,"$isPlaying$",i),Pe=()=>C(ko,"$contextMenuPosition$",i),We=()=>C(sn,"$showHotKeyMap",i),rt=()=>C(Io,"$debugPanelVisible",i),_t=()=>C(Wn,"$userActionsDisabled$",i),lt=v(e,"videoContainer",15),xt=v(e,"adsSlotId",3,void 0),Je=v(e,"adsParams",3,void 0),zt=v(e,"adsPreviewParam",3,void 0),ti=v(e,"adsAutoplayParam",3,void 0),Ft=v(e,"duration",3,void 0),Yt=v(e,"logoTargetUrl",3,""),Ie=v(e,"showNextPrevButtons",3,!1),qt=v(e,"nextButtonActive",3,!1),Ce=v(e,"prevButtonActive",3,!1),ie=v(e,"endScreenVideoTitle",3,void 0),re=v(e,"endScreenVideoThumb",3,void 0),Re=v(e,"isOneVideoPlaylist",3,!1),Ue=v(e,"shadowRootContainer",3,void 0),Ne=v(e,"outerContainerRef",3,void 0),Ke=v(e,"playerStarted",3,!1),Oe=v(e,"fullScreenTarget",3,void 0),et=v(e,"showMiniTimer",3,!1),Wt=v(e,"showEndScreen",3,!0),Qt=v(e,"keyboardControls",15),Et=e.store.getLogger().createComponentLog("Root component"),yi=e.store.interfaceLanguage$,bi=e.store.state.playbackState$,ct=e.store.ads.playbackState,Ri=e.store.state.positionWithScrubbing$,Zt=e.store.state.duration$,dt=e.store.playerPhase,di=e.store.ui.isFullscreen,Ni=e.store.ui.isFullscreenOpenedByKeyboard,Mt=e.store.ui.controlsVisible,li=e.store.ui.settingsMenu.visible$,rn=e.store.ui.settingsMenu.openedByBtnKeyboard$,Lt=e.store.ui.scrubbingInProgress,pt=e.store.ui.volumeChangingInProgress,pi=e.store.ui.contextMenu.visible$,Io=e.store.ui.debugPanelVisible,qi=e.store.state.isLoaderVisible,ni=e.store.state.isEnded$,Ko=e.store.state.chromecastConnected$,Un=e.store.state.chromecastDeviceName$,D=e.store.ads.postrollPassed,qe=e.store.state.isLive$,ut=e.store.state.isPlaying$,Gt=e.store.state.crashed$,Pt=e.store.webApi.annotationsApi,At=e.store.webApi.pictureInPictureApi,fi=e.store.state.currentSubtitle$,qo=e.store.state.currentSubtitleCaptions$,ci=e.store.ui.playerSize,wt=e.store.ui.is3DVideo,to=e.store.ui.icon3DVideoVisible,Qi=e.store.state.isInteractive,zn=e.store.state.isInteractiveTime$,Oi=e.store.state.isInteractiveExpectation$,mo=e.store.state.hasInteractiveBranches,vo=e.store.ui.touched,yn=e.store.ui.modals.hotKeyMap.data,sn=e.store.ui.modals.hotKeyMap.show,Pi=e.store.ui.overlayContainer$,Gi=e.store.ui.controls.interactiveTimeIndicator,an=e.store.state.showInteractiveTimeIndicator,ko=e.store.ui.contextMenu.position$,ln=e.store.actions.internal.setQuality,dn=e.store.actions.internal.closeSettingsMenu,Cr=e.store.ui.autoplayNextEnabled$,Wn=e.store.ui.userActionsDisabled,Tr=e.store.ui.isControlsAvailable,ur=e.store.ui.videoTitleInfo,qr=e.store.ui.doubleForwardOn$,cn=e.store.actions.internal.getVideoElement,{fakeIsPlaying$:Kn,notifications$:pr,graphIsOpened$:xn}=fo(),co=X(void 0),qn=X(void 0),Er=X(void 0),wn=X(void 0),fr,Qn,Qo;yn.set(d1());let{closeNotification:Gn,notificationsToShow$:Qr}=pr,Ir=g(()=>!!n().slow_video),go=()=>Gn("slow_video"),ft=g(()=>(s()==="video"&&l()||s()==="ads"&&d()==="inactive")&&!a()),Xt=X(void 0),Sn=de(!1),ji,Bi=de(!1),Go=de(),Cn=de(!1),uo=X(!1),un=X(!1),jo=X(!1),ho=X(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),kr=g(()=>u()&&!f()&&!(r(uo)||r(un))&&!(r(jo)&&!m())),Pr=!0,Gr=g(()=>e.uiConfig.features.thumbTimer&&et()&&s()==="video"&&!p()&&!a()&&!Qi&&(e.uiConfig.hideThumbTimerAfterTouch&&!x()||!e.uiConfig.hideThumbTimerAfterTouch)),cs=g(()=>s()==="video"&&!w()&&y()),Tn=X(!1),mr=g(()=>(Wt()||e.showAutoplayNext&&S())&&!!ie()&&!!re()&&(e.showAds&&T()||!e.showAds)&&E()&&!a()&&!r(Tn)),Ar=g(()=>R()&&!(p()||r(mr))&&!u()&&I()&&!M()),_o=X(!1),ri=g(()=>k()!==null),{toggle:pn}=Kn,fn=!1,En=null;At==null||At.setContext(Ml());let Mr=()=>{e.autoplay&&!Qi&&e.uiConfig.controls.showOnStartupAtAutoplay&&Ct(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Mr});let Lr=()=>{window.clearTimeout(fr),Bi.set(!1)},mt=()=>{window.clearTimeout(Qn),Go.set(null)},Ct=ee=>{Lr(),Bi.set(!0),fr=window.setTimeout(()=>Bi.set(!1),ee);let Xe=ee-100;ji=window.setTimeout(()=>{j()&&Sn.set(!1)},Xe>0?Xe:ee)},io=(ee,Xe)=>{mt(),Go.set(Xe),Qn=window.setTimeout(()=>Go.set(null),ee)},oo=wt.subscribe(ee=>{to.set(ee),ee&&(window.clearTimeout(Qo),Qo=window.setTimeout(()=>to.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Yi=()=>$t(null,null,function*(){var Xe,Kt,vi,Hi;let ee=Bs();if(ee){let Fi=rd(),Ci=In();ee=Fi===Ci||Fi===Ue()}if(ee){Ct(e.uiConfig.controls.hideTimeoutFullscreen);try{yield At==null?void 0:At.exit()}catch(Fi){Et({message:String(Fi)})}}di.set(ee),e.store.getAdmanWrapper().setFullscreen(ee),y()?(Kt=(Xe=e.store.callbacks)==null?void 0:Xe.onFullscreenEnter)==null||Kt.call(Xe):(Hi=(vi=e.store.callbacks)==null?void 0:vi.onFullscreenExit)==null||Hi.call(vi)}),Po=ee=>{let{width:Xe,height:Kt}=ee.target;ci.set({width:Xe,height:Kt})},bo=()=>{let{width:ee,height:Xe}=r(co).getBoundingClientRect();ci.set({width:ee,height:Xe})};Rt(()=>{var Xe;return su(Yi),e.uiConfig.features.annotationsInside&&(Pt==null||Pt.init(r(co))),va(At)&&(At==null||At.assignPlayerContainer(r(co)),At==null||At.setExternalEventHandlers({resize:Po,leavepictureinpicture:bo})),e.interactiveContainer&&((Xe=lt().parentElement)==null||Xe.insertBefore(e.interactiveContainer,lt().nextSibling)),()=>{window.clearTimeout(fr),window.clearTimeout(ji),window.clearTimeout(Qn),window.clearTimeout(Qo),oo(),At==null||At.dispose().catch(Kt=>{Et({message:String(Kt)})}),au(Yi)}});let In=()=>{let ee=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Ne()?r(co):Ne(),Xe=ee.getRootNode(),Kt=Xe instanceof ShadowRoot?Xe.host:Xe,vi=Oe()instanceof HTMLElement&&Oe().contains(Kt);return e.uiConfig.allowChangingFullscreenTarget&&Oe()&&vi?Oe():ee},no=()=>{pi.set(!1)},Ao=()=>{dn(),no()},kn=()=>$t(null,null,function*(){no(),Bs()?(yield ru(document),Et({message:"exit fullscreen"})):(Et({message:"request fullscreen"}),yield nu(In()))}),Vr=ee=>{w()||(ee.preventDefault(),pi.set(!0),ko.set({left:ee.clientX,top:ee.clientY}))};function jr(){Cn.set(!0),Qi||Ct(e.uiConfig.controls.hideTimeoutCursor)}function Mo(){Qi||(Sn.set(!0),Ct(e.uiConfig.controls.hideTimeoutCursor))}function jn(){Cn.set(!1),O(un,!1),O(uo,!1),fn=!1,e.store.actions.internal.releaseCamera(),Ct(e.uiConfig.controls.hideTimeout)}function Yn(ee){return ee?ee.offsetTop+Yn(ee.offsetParent):0}function vr(ee){return ee?ee.offsetLeft+vr(ee.offsetParent):0}function it(ee){if(H()&&an){let Xe=ee.currentTarget,Kt=Yn(Xe),vi=vr(Xe),Hi=ee.pageX-vi,Fi=ee.pageY-Kt,{left:Ci,bottom:Mn,right:Ti}=H(),ui=Ti-Ci;return Hi>=Ci-ui&&Fi<=Mn+ui}}function Tt(ee){if(r(co)){let Xe=Yn(ee.currentTarget),Kt=F().height,vi=ee.pageY-Xe;if(it(ee)){O(un,!1);return}vi<40?O(un,!0):vi>Kt-40?O(uo,!0):(O(un,!1),f()||O(uo,!1))}}function gi(ee){Tt(ee),!r(kr)&&!M()&&Ct(e.uiConfig.controls.hideTimeoutCursor),Q()&&fn&&En&&e.store.actions.internal.moveCameraFocusPX(En.clientX-ee.clientX,En.clientY-ee.clientY,ee.timeStamp-En.timeStamp),En=ee}let Di=0,$o=600,ro=()=>{Di=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),Lr()},$o)},Ai=()=>{setTimeout(()=>e.store.actions.internal.changeDoubleForwardOn(!1),0),clearTimeout(Di)},Lo=ee=>{ee.preventDefault(),ee.button===0&&(fn=!0,e.store.actions.internal.holdCamera(),e.uiConfig.features.doubleForwardAvailable&&ro()),!fn&&Ct(e.uiConfig.controls.hideTimeoutCursor)},Zn=ee=>{ee.preventDefault(),ee.button===0&&(En=ee,fn=!1,e.store.actions.internal.releaseCamera(),e.uiConfig.features.doubleForwardAvailable&&Ai()),!M()&&Ct(e.uiConfig.controls.hideTimeoutCursor)},mn=ee=>{ee.preventDefault(),Pr&&(Et({message:"double click on video"}),kn(),Ct(e.uiConfig.controls.hideTimeoutCursor))},yo=ee=>{var Xe;if(ee.preventDefault(),Z()||f()){Ao();return}if(!M()&&!(E()&&!mo)){if(r(ri))return pn();if((Xe=Qt())==null||Xe.focus(),!Ke()){e.firstStart(),Ct(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||Y()!==v0.PLAYING)&&e.store.actions.internal.togglePlay(),Ct(e.uiConfig.controls.hideTimeoutCursor)}},Vo=ee=>{Ao(),vo.set(!0),Ct(e.uiConfig.controls.hideTimeout),ee&&io(e.uiConfig.controls.hideHotKeyHelpers,ee)},gr=()=>{var ee,Xe;Ao(),(ee=e.store.callbacks)!=null&&ee.onOpenHotKeyMap?(Xe=e.store.callbacks)==null||Xe.onOpenHotKeyMap(pe()):sn.update(Kt=>!Kt)},Pn=()=>{vo.set(!0)},Xn=e.store.ui.contextMenu.openedByBtnKeyboard$,hr=e.store.ui.contextMenu.btnRef$,Ro=X(void 0),Rr=e.store.ui.contextMenu.openedByHotKey$,Yr=e.store.ui.contextMenu.lastActiveElem$;Ge(()=>{Pi.set(r(Xt))}),Ge(()=>{O(jo,r(ho)&&Y()!==v0.PLAYING,!0),r(ho)||yt(()=>O(ho,!0))}),Ge(()=>{Mt.set((r(jo)||E()||f()||se()||me()||$e()||ve())&&!r(kr)&&(s()==="video"||s()==="ads")&&!a()&&I())}),Ge(()=>{!se()&&r(_o)&&!u()&&Ct(e.uiConfig.controls.hideTimeoutCursor),yt(()=>O(_o,se(),!0))}),Ge(()=>{r(wn),f(),Ae(),yt(()=>pd(r(wn),f(),Ae()))}),Ge(()=>{r(Ro),Z(),ae(),Ve(),yt(()=>{let ee=ae()||Ve();pd(r(Ro),Z(),ee)})}),Ge(()=>{let ee=le();ee&&(Z(),yt(()=>dl(ee,Z(),Xn)))}),Ge(()=>{let ee=N();ee&&(Z(),yt(()=>g1(ee,Z(),Rr)))}),Ge(()=>{var ee;!De()&&y()&&(yt(()=>Ni.set(!1)),(ee=Qt())==null||ee.focus())}),Ge(()=>{w()&&Ao()});let Jn=K("video360"),_r=X(void 0),Ye=ee=>{ur.set(Hn(cn(),{title:r(_r)},"title",ee))},ii=(ee,Xe)=>{var Fi,Ci;let Kt=(Ci=(Fi=e.store.callbacks)==null?void 0:Fi.uiInfo)==null?void 0:Ci.onUpcomingLiveViewStateChanged;if(!Kt)return;let vi=!!Xe,Hi=W(W({},Hn(r(co),{upcomingLiveScreen:Xe},"upcomingLiveScreen",vi)),ee);Kt(Hi)};var hi=u5();St("blur",ia,Ao);var xi=he(hi);xi.__mousemove=gi;var No=_(xi);let Zr=g(()=>s()==="ads"),Oo=g(()=>r(ri)?pn:void 0);tt(Af(No,{startDoubleForwardActivationTimer:ro,stopDoubleForward:Ai,toggleFullscreen:kn,hideContextMenu:Ao,showHotKeyHelpers:Vo,showKeyMap:gr,get isAds(){return r(Zr)},get fakePlayButtonHandler(){return r(Oo)},get nextButtonActive(){return qt()},get prevButtonActive(){return Ce()},children:(ee,Xe)=>{var Kt=d5(),vi=he(Kt);Va(vi,{get hideCursor(){return r(Ar)},onClick:yo,onContextMenu:Vr,onMouseDown:Lo,onMouseUp:Zn,onDblClick:mn,get videoContainer(){return lt()},set videoContainer(Ci){lt(Ci)}});var Hi=P(vi,2);da(Hi,()=>"slot",!1,(Ci,Mn)=>{ke(Ci,()=>({name:La}))});var Fi=P(Hi,2);la(Fi,ue,Ci=>{var Mn=l5(),Ti=he(Mn);let ui=g(()=>s()!=="thumb"||a()||Qi&&e.autoplay);Pa(Ti,{get hidden(){return r(ui)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Yo=P(Ti,2);dv(Yo,{});var br=P(Yo,2);uv(br,{get isVisible(){return M()}});var xo=P(br,2);{var wo=je=>{let si=g(()=>{var Bo;return(Bo=e.live)==null?void 0:Bo.startTime});Ud(je,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(si)},onUpcomingLiveViewStateChanged:ii})};V(xo,je=>{s()==="LiveWaitingStart"&&je(wo)})}var Gs=P(xo,2);{var bt=je=>{Aa(je,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(Gs,je=>{s()==="LiveWaitingRecover"&&je(bt)})}var ht=P(Gs,2);{var po=je=>{Aa(je,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(ht,je=>{s()==="LiveWaitingRecord"&&je(po)})}var Zo=P(ht,2);{var Zi=je=>{var si=n5();let Bo;var Es=_(si);ad(Es,{get adsSlotId(){return xt()},get adsParams(){return Je()},get adsPreviewParam(){return zt()},get adsAutoplayParam(){return ti()},get duration(){return Ft()}}),h(si),B(vn=>Bo=oe(si,1,"ads-container svelte-jtgjmv",null,Bo,vn),[()=>({hidden:s()!=="ads"})]),$(je,si)};V(Zo,je=>{e.showAds&&Ke()&&je(Zi)})}var mi=P(Zo,2);{var _i=je=>{let si=g(()=>!Wt()&&e.showAutoplayNext&&S());If(je,{get title(){return ie()},get thumb(){return re()},get isHide(){return r(si)},clickCloseIcon:()=>O(Tn,!0)})};V(mi,je=>{r(mr)&&ie()&&re()&&je(_i)})}var Ts=P(mi,2);{var xl=je=>{let si=g(()=>!p());Dm(je,{get title(){return e.title},get isHidden(){return r(si)},onVisibilityChanged:Ye,get ref(){return r(_r)},set ref(Bo){O(_r,Bo,!0)}})};V(Ts,je=>{r(cs)&&je(xl)})}var nc=P(Ts,2);{var qu=je=>{let si=g(()=>s()==="video"&&p());Hd(je,{get isShifted(){return r(si)}})};V(nc,je=>{Q()&&je(qu)})}var rc=P(nc,2);{var Qu=je=>{var si=r5(),Bo=_(si);nd(Bo,{get"aria-label"(){return Jn}}),h(si),$(je,si)};V(rc,je=>{_e()&&je(Qu)})}var sc=P(rc,2);{var Gu=je=>{Fd(je,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ne()}})};V(sc,je=>{$e()&&je(Gu)})}var ac=P(sc,2);{var ju=je=>{Ia(je,{get shifted(){return p()},get captions(){return He()},get position(){return fe()},get playerSize(){return F()}})};V(ac,je=>{ge().value!=="off"&&je(ju)})}var lc=P(ac,2);{var Yu=je=>{var si=s5();si.__contextmenu=Vr,si.__click=[o5,Z,pi,f,li,Ao];var Bo=_(si);ka(Bo,{}),h(si),$(je,si)};V(lc,je=>{a()&&je(Yu)})}var dc=P(lc,2);{var Zu=je=>{let si=g(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),Bo=g(()=>s()==="ads"),Es=g(()=>e.canRewindLive&&st()!==0);Dd(je,{get bottomHidden(){return r(si)},get bottomNoSmooth(){return j()},get showControls(){return p()},get isAds(){return r(Bo)},get canRewindLive(){return r(Es)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Yt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Ie()},get nextButtonActive(){return qt()},get prevButtonActive(){return Ce()},get isOneVideoPlaylist(){return Re()},customFullscreenSupported:Pr,toggleFullscreen:kn,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(qn)},set playerControlsWrapperRef(vn){O(qn,vn,!0)},get playerControlsRef(){return r(Er)},set playerControlsRef(vn){O(Er,vn,!0)}})};V(dc,je=>{Ke()&&je(Zu)})}var cc=P(dc,2);{var Ra=je=>{var si=a5(),Bo=_(si);let Es=g(()=>{var vn;return(vn=r(Er))==null?void 0:vn.clientHeight});Kd(Bo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(Es)},returnFocus:()=>{var vn;return(vn=Qt())==null?void 0:vn.focus()},get ref(){return r(wn)},set ref(vn){O(wn,vn,!0)}}),h(si),$(je,si)};V(cc,je=>{!$e()&&s()!=="ads"&&je(Ra)})}var uc=P(cc,2);let pc=g(()=>!r(Gr));cd(uc,{get isLive(){return J()},get isHidden(){return r(pc)},get isPlaying(){return Me()},get position(){return fe()},get duration(){return st()}});var wl=P(uc,2);Rm(wl,{get data(){return Go}});var fc=P(wl,2);Ef(fc,{get supportLink(){return e.supportLink},returnFocus:()=>{var je;return(je=Qt())==null?void 0:je.focus()},get visible(){return Z()},get playerContainerRef(){return r(co)},get controlsContainerRef(){return r(qn)},get position(){return Pe()},get menuElementRef(){return r(Ro)},set menuElementRef(je){O(Ro,je,!0)}});var Sl=P(fc,2);{var Cl=je=>{qd(je,{onClose:go,onSelectAutoQuality:()=>{ln("auto"),go()}})};V(Sl,je=>{r(Ir)&&je(Cl)})}var Tl=P(Sl,2);{var Xu=je=>{$a(je,{})};V(Tl,je=>{r(ft)&&je(Xu)})}var El=P(Tl,2);{var Ju=je=>{Vf(je,{})};V(El,je=>{We()&&je(Ju)})}var ep=P(El,2);{var tp=je=>{vd(je,{})};V(ep,je=>{rt()&&je(tp)})}$(Ci,Mn)}),$(ee,Kt)},$$slots:{default:!0}}),ee=>Qt(ee),()=>Qt());var An=P(No,2);tt(An,ee=>O(Xt,ee),()=>r(Xt)),h(xi),tt(xi,ee=>O(co,ee),()=>r(co));var er=P(xi,2);{var Xr=ee=>{var Xe=c5();$(ee,Xe)};V(er,ee=>{_t()&&ee(Xr)})}St("mouseenter",xi,jr),St("mouseleave",xi,jn),St("click",xi,Pn,!0),St("focusin",xi,Mo,!0),$(t,hi),z(),o()}at(["mousemove","contextmenu","click"]);import{clientChecker as Qd,PlaybackState as x5}from"@vkontakte/videoplayer-core/es2015";import{noop as w5}from"@vkontakte/videoplayer-shared/es2015";var f5=A('<div></div> <div class="info svelte-nhq2ld"><div class="triangles-wrapper svelte-nhq2ld"><div></div> <div></div> <div></div></div> <p class="step-caption svelte-nhq2ld"> </p></div>',1),m5=A("<div><!></div>"),v5={hash:"svelte-nhq2ld",code:`.double-click-area.svelte-nhq2ld {position:absolute;top:0;height:100%;width:25%;overflow:hidden;}.double-click-area.left.svelte-nhq2ld {left:0;}.double-click-area.right.svelte-nhq2ld {right:0;}.semicircle.svelte-nhq2ld {position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);}.semicircle.left.svelte-nhq2ld {left:0;border-top-right-radius:50%;border-bottom-right-radius:50%;}.semicircle.right.svelte-nhq2ld {right:0;border-top-left-radius:50%;border-bottom-left-radius:50%;}.info.svelte-nhq2ld {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center;}.triangles-wrapper.svelte-nhq2ld {position:relative;display:flex;margin-bottom:10px;justify-content:center;}.triangle.svelte-nhq2ld {width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;
338
+ }`};function tv(t,e){U(e,!0),Q(t,Kx);let[i,o]=Fe(),n=()=>C(l,"$isPlaying$",i),s=()=>C(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:l},ui:{aboutToGoNextVideo:d},actions:a}=Ie(),{features:{playbackStatusShow:u,playbackStatusAnimationDuration:f,playbackStatusNextVideoAnimationDuration:v}}=kt(),p=0,x=Y(null),w=Y(!1);qe(()=>{O(x,n()?Wr:Ss,!0)}),qe(()=>{O(x,s()?Ws:null,!0)}),qe(()=>{if(u)return p=window.setTimeout(()=>{p=0,s()&&r(x)===Ws&&(s()==="next"?a.internal.nextVideoClick(!1):a.internal.prevVideoClick(!1)),O(x,null)},r(x)!==Ws?f:v),()=>{p&&(window.clearTimeout(p),p=0)}}),qe(()=>{n()&&!r(w)&&(O(w,!0),O(x,null))});var y=Ke(),S=he(y);{var T=E=>{var V=Ke(),k=he(V);la(k,()=>r(x),I=>{var R=Wx(),Z=_(R),H=_(Z);let F=g(()=>s()==="prev");Ei(H,()=>r(x),(K,ee)=>{ee(K,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return r(F)}})}),h(Z),h(R),B(()=>st(Z,`animation-duration: ${r(x)!==Ws?f:v}ms`)),$(I,R)}),$(E,V)};L(S,E=>{r(x)&&u&&E(T)})}$(t,y),z(),o()}var qx=M('<div><div data-testid="video-container"></div></div>'),Qx={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 Va(t,e){U(e,!0),Q(t,Qx);let[i,o]=Fe(),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}}=Ie(),{isSmoothVideoRotate:x}=kt(),w=g(()=>a()&&n()%180?s().height/s().width:1);var y=qx();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),st(T,`transform: rotate(${n()}deg) scale(${r(w)})`),Ue(T,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!x})]),$(t,y),z(),o()}dt(["contextmenu","mousedown","mouseup","click","dblclick"]);var Gx=(t,e,i,o,n,s)=>{if(t.stopPropagation(),e()||o()){s();return}},jx=M("<div><!></div>"),Yx=M('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),Zx=M("<div><!></div>"),Xx=M('<div class="settings-menu svelte-jtgjmv"><!></div>'),Jx=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),e5=M("<!> <!> <!>",1),t5=M('<div class="blocked svelte-jtgjmv"></div>'),i5=M('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),o5={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 iv(t,e){U(e,!0),Q(t,o5);let[i,o]=Fe(),n=()=>C(Tn,"$notificationsToShow$",i),s=()=>C(jt,"$playerPhase",i),l=()=>C(Vo,"$isLoaderVisible",i),d=()=>C(_i,"$adPlaybackState",i),a=()=>C(pt,"$crashed",i),u=()=>C(Ro,"$isInteractiveTime$",i),f=()=>C(Ht,"$settingsMenuVisible",i),v=()=>C(zn,"$isInteractiveExpectation$",i),p=()=>C($o,"$controlsVisible",i),x=()=>C(to,"$touched",i),w=()=>C(lr,"$graphIsOpened$",i),y=()=>C(bi,"$isFullscreen",i),S=()=>C(dn,"$autoplayNextEnabled$",i),T=()=>C(Un,"$postrollPassed",i),E=()=>C(zi,"$isEnded$",i),V=()=>C(Ki,"$cursorInside",i),k=()=>C(Wn,"$isControlsAvailable",i),I=()=>C(Sr,"$fakeIsPlaying$",i),R=()=>C(ft,"$bottomNoSmooth",i),Z=()=>C(ki,"$interactiveTimeIndicator",i),H=()=>C(yo,"$playerSize",i),F=()=>C(pi,"$is3DVideo",i),K=()=>C(ut,"$contextMenuVisible$",i),ee=()=>C(wi,"$playbackState$",i),j=()=>C(No,"$hotKeyMapData",i),ue=()=>C(an,"$scrubbingInProgress",i),oe=()=>C(Pt,"$volumeChangingInProgress",i),pe=()=>C(si,"$chromecastConnected$",i),ye=()=>C(un,"$controlsTimeoutActive",i),me=()=>C(li,"$settingsMenuOpenedByKeyboard",i),Pe=()=>C(In,"$contextMenuOpenedByKeyboard$",i),re=()=>C(To,"$contextMenuOpenedByHotKey$",i),Re=()=>C(fn,"$contextMenuButtonRef$",i),se=()=>C(mr,"$contextMenuLastActiveElem$",i),N=()=>C(Lo,"$isFullscreenOpenedByKeyboard",i),De=()=>C(tt,"$language$",i),de=()=>C(yt,"$icon3DVideoVisible",i),ge=()=>C(Go,"$chromecastDeviceName$",i),ie=()=>C(ci,"$currentSubtitle$",i),ve=()=>C(ui,"$currentSubtitleCaptions$",i),He=()=>C(it,"$position$",i),fe=()=>C(ri,"$duration$",i),at=()=>C(D,"$isLive$",i),X=()=>C(ze,"$isPlaying$",i),Me=()=>C(jo,"$contextMenuPosition$",i),ke=()=>C(wn,"$showHotKeyMap",i),We=()=>C($i,"$debugPanelVisible",i),lt=()=>C(qr,"$userActionsDisabled$",i),mt=m(e,"videoContainer",15),vt=m(e,"adsSlotId",3,void 0),Ct=m(e,"adsParams",3,void 0),je=m(e,"adsPreviewParam",3,void 0),Ft=m(e,"adsAutoplayParam",3,void 0),ti=m(e,"duration",3,void 0),Gt=m(e,"logoTargetUrl",3,""),Wt=m(e,"showNextPrevButtons",3,!1),ne=m(e,"nextButtonActive",3,!1),Ut=m(e,"prevButtonActive",3,!1),_e=m(e,"endScreenVideoTitle",3,void 0),Se=m(e,"endScreenVideoThumb",3,void 0),le=m(e,"isOneVideoPlaylist",3,!1),Ne=m(e,"shadowRootContainer",3,void 0),Qe=m(e,"outerContainerRef",3,void 0),Ve=m(e,"playerStarted",3,!1),Ye=m(e,"fullScreenTarget",3,void 0),Be=m(e,"showMiniTimer",3,!1),et=m(e,"showEndScreen",3,!0),Lt=m(e,"keyboardControls",15),Kt=e.store.getLogger().createComponentLog("Root component"),tt=e.store.interfaceLanguage$,wi=e.store.state.playbackState$,_i=e.store.ads.playbackState,it=e.store.state.positionWithScrubbing$,ri=e.store.state.duration$,jt=e.store.playerPhase,bi=e.store.ui.isFullscreen,Lo=e.store.ui.isFullscreenOpenedByKeyboard,$o=e.store.ui.controlsVisible,Ht=e.store.ui.settingsMenu.visible$,li=e.store.ui.settingsMenu.openedByBtnKeyboard$,an=e.store.ui.scrubbingInProgress,Pt=e.store.ui.volumeChangingInProgress,ut=e.store.ui.contextMenu.visible$,$i=e.store.ui.debugPanelVisible,Vo=e.store.state.isLoaderVisible,zi=e.store.state.isEnded$,si=e.store.state.chromecastConnected$,Go=e.store.state.chromecastDeviceName$,Un=e.store.ads.postrollPassed,D=e.store.state.isLive$,ze=e.store.state.isPlaying$,pt=e.store.state.crashed$,zt=e.store.webApi.annotationsApi,ct=e.store.webApi.pictureInPictureApi,ci=e.store.state.currentSubtitle$,ui=e.store.state.currentSubtitleCaptions$,yo=e.store.ui.playerSize,pi=e.store.ui.is3DVideo,yt=e.store.ui.icon3DVideoVisible,Vi=e.store.state.isInteractive,Ro=e.store.state.isInteractiveTime$,zn=e.store.state.isInteractiveExpectation$,Ri=e.store.state.hasInteractiveBranches,to=e.store.ui.touched,No=e.store.ui.modals.hotKeyMap.data,wn=e.store.ui.modals.hotKeyMap.show,Sn=e.store.ui.overlayContainer$,ki=e.store.ui.controls.interactiveTimeIndicator,Wi=e.store.state.showInteractiveTimeIndicator,jo=e.store.ui.contextMenu.position$,Yo=e.store.actions.internal.setQuality,ln=e.store.actions.internal.closeSettingsMenu,dn=e.store.ui.autoplayNextEnabled$,qr=e.store.ui.userActionsDisabled,Wn=e.store.ui.isControlsAvailable,wr=e.store.ui.videoTitleInfo,ar=e.store.actions.internal.getVideoElement,{fakeIsPlaying$:Sr,notifications$:cn,graphIsOpened$:lr}=bo(),io=Y(void 0),Zo=Y(void 0),Kn=Y(void 0),Cn=Y(void 0),Cr,qn,dr;No.set(Jh());let{closeNotification:Tr,notificationsToShow$:Tn}=cn,Qn=g(()=>!!n().slow_video),Er=()=>Tr("slow_video"),Ir=g(()=>(s()==="video"&&l()||s()==="ads"&&d()==="inactive")&&!a()),po=Y(void 0),ft=ae(!1),ii,un=ae(!1),Pi=ae(),Ki=ae(!1),Xo=Y(!1),Jo=Y(!1),xo=Y(!1),Gn=Y(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),pn=g(()=>u()&&!f()&&!(r(Xo)||r(Jo))&&!(r(xo)&&!v())),Oo=!0,Qr=g(()=>e.uiConfig.features.thumbTimer&&Be()&&s()==="video"&&!p()&&!a()&&!Vi&&(e.uiConfig.hideThumbTimerAfterTouch&&!x()||!e.uiConfig.hideThumbTimerAfterTouch)),Gr=g(()=>s()==="video"&&!w()&&y()),kr=Y(!1),jr=g(()=>(et()||e.showAutoplayNext&&S())&&!!_e()&&!!Se()&&(e.showAds&&T()||!e.showAds)&&E()&&!a()&&!r(kr)),jn=g(()=>V()&&!(p()||r(jr))&&!u()&&k()),cr=Y(!1),ur=g(()=>I()!==null),{toggle:wo}=Sr,Xt=!1,fo=null;ct==null||ct.setContext(Il());let Pr=()=>{e.autoplay&&!Vi&&e.uiConfig.controls.showOnStartupAtAutoplay&&Ni(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Pr});let cs=()=>{window.clearTimeout(Cr),un.set(!1)},Ar=()=>{window.clearTimeout(qn),Pi.set(null)},Ni=be=>{cs(),un.set(!0),Cr=window.setTimeout(()=>un.set(!1),be);let It=be-100;ii=window.setTimeout(()=>{R()&&ft.set(!1)},It>0?It:be)},gt=(be,It)=>{Ar(),Pi.set(It),qn=window.setTimeout(()=>Pi.set(null),be)},Yt=pi.subscribe(be=>{yt.set(be),be&&(window.clearTimeout(dr),dr=window.setTimeout(()=>yt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),qi=()=>xt(null,null,function*(){var It,Zt,fi,Yi;let be=Os();if(be){let so=td(),Xe=So();be=so===Xe||so===Ne()}if(be){Ni(e.uiConfig.controls.hideTimeoutFullscreen);try{yield ct==null?void 0:ct.exit()}catch(so){Kt({message:String(so)})}}bi.set(be),e.store.getAdmanWrapper().setFullscreen(be),y()?(Zt=(It=e.store.callbacks)==null?void 0:It.onFullscreenEnter)==null||Zt.call(It):(Yi=(fi=e.store.callbacks)==null?void 0:fi.onFullscreenExit)==null||Yi.call(fi)}),oo=be=>{let{width:It,height:Zt}=be.target;yo.set({width:It,height:Zt})},no=()=>{let{width:be,height:It}=r(io).getBoundingClientRect();yo.set({width:be,height:It})};Mt(()=>{var It;return tu(qi),e.uiConfig.features.annotationsInside&&(zt==null||zt.init(r(io))),va(ct)&&(ct==null||ct.assignPlayerContainer(r(io)),ct==null||ct.setExternalEventHandlers({resize:oo,leavepictureinpicture:no})),e.interactiveContainer&&((It=mt().parentElement)==null||It.insertBefore(e.interactiveContainer,mt().nextSibling)),()=>{window.clearTimeout(Cr),window.clearTimeout(ii),window.clearTimeout(qn),window.clearTimeout(dr),Yt(),ct==null||ct.dispose().catch(Zt=>{Kt({message:String(Zt)})}),iu(qi)}});let So=()=>{let be=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Qe()?r(io):Qe(),It=be.getRootNode(),Zt=It instanceof ShadowRoot?It.host:It,fi=Ye()instanceof HTMLElement&&Ye().contains(Zt);return e.uiConfig.allowChangingFullscreenTarget&&Ye()&&fi?Ye():be},mo=()=>{ut.set(!1)},vo=()=>{ln(),mo()},Qi=()=>xt(null,null,function*(){mo(),Os()?(yield eu(document),Kt({message:"exit fullscreen"})):(Kt({message:"request fullscreen"}),yield Jc(So()))}),pr=be=>{w()||(be.preventDefault(),ut.set(!0),jo.set({left:be.clientX,top:be.clientY}))};function fr(){Ki.set(!0),Vi||Ni(e.uiConfig.controls.hideTimeoutCursor)}function Yr(){Vi||(ft.set(!0),Ni(e.uiConfig.controls.hideTimeoutCursor))}function Zr(){Ki.set(!1),O(Jo,!1),O(Xo,!1),Xt=!1,e.store.actions.internal.releaseCamera(),Ni(e.uiConfig.controls.hideTimeout)}function go(be){return be?be.offsetTop+go(be.offsetParent):0}function En(be){return be?be.offsetLeft+En(be.offsetParent):0}function Mr(be){if(Z()&&Wi){let It=be.currentTarget,Zt=go(It),fi=En(It),Yi=be.pageX-fi,so=be.pageY-Zt,{left:Xe,bottom:qt,right:Oi}=Z(),Do=Oi-Xe;return Yi>=Xe-Do&&so<=qt+Do}}function Lr(be){if(r(io)){let It=go(be.currentTarget),Zt=H().height,fi=be.pageY-It;if(Mr(be)){O(Jo,!1);return}fi<40?O(Jo,!0):fi>Zt-40?O(Xo,!0):(O(Jo,!1),f()||O(Xo,!1))}}function nt(be){Lr(be),r(pn)||Ni(e.uiConfig.controls.hideTimeoutCursor),F()&&Xt&&fo&&e.store.actions.internal.moveCameraFocusPX(fo.clientX-be.clientX,fo.clientY-be.clientY,be.timeStamp-fo.timeStamp),fo=be}let Tt=be=>{be.preventDefault(),be.button===0&&(Xt=!0,e.store.actions.internal.holdCamera()),Ni(e.uiConfig.controls.hideTimeoutCursor)},hi=be=>{be.preventDefault(),be.button===0&&(fo=be,Xt=!1,e.store.actions.internal.releaseCamera()),Ni(e.uiConfig.controls.hideTimeoutCursor)},Gi=be=>{be.preventDefault(),Oo&&(Kt({message:"double click on video"}),Qi(),Ni(e.uiConfig.controls.hideTimeoutCursor))},Co=be=>{var It;if(be.preventDefault(),K()||f()){vo();return}if(!(E()&&!Ri)){if(r(ur))return wo();if((It=Lt())==null||It.focus(),!Ve()){e.firstStart(),Ni(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||ee()!==r_.PLAYING)&&e.store.actions.internal.togglePlay(),Ni(e.uiConfig.controls.hideTimeoutCursor)}},ho=be=>{vo(),to.set(!0),Ni(e.uiConfig.controls.hideTimeout),be&&gt(e.uiConfig.controls.hideHotKeyHelpers,be)},ro=()=>{var be,It;vo(),(be=e.store.callbacks)!=null&&be.onOpenHotKeyMap?(It=e.store.callbacks)==null||It.onOpenHotKeyMap(j()):wn.update(Zt=>!Zt)},Bo=()=>{to.set(!0)},In=e.store.ui.contextMenu.openedByBtnKeyboard$,fn=e.store.ui.contextMenu.btnRef$,ji=Y(void 0),To=e.store.ui.contextMenu.openedByHotKey$,mr=e.store.ui.contextMenu.lastActiveElem$;qe(()=>{Sn.set(r(po))}),qe(()=>{O(xo,r(Gn)&&ee()!==r_.PLAYING,!0),r(Gn)||wt(()=>O(Gn,!0))}),qe(()=>{$o.set((r(xo)||E()||f()||ue()||oe()||pe()||ye())&&!r(pn)&&(s()==="video"||s()==="ads")&&!a()&&k())}),qe(()=>{!ue()&&r(cr)&&!u()&&Ni(e.uiConfig.controls.hideTimeoutCursor),wt(()=>O(cr,ue(),!0))}),qe(()=>{r(Cn),f(),me(),wt(()=>ld(r(Cn),f(),me()))}),qe(()=>{r(ji),K(),Pe(),re(),wt(()=>{let be=Pe()||re();ld(r(ji),K(),be)})}),qe(()=>{let be=Re();be&&(K(),wt(()=>cl(be,K(),In)))}),qe(()=>{let be=se();be&&(K(),wt(()=>s1(be,K(),To)))}),qe(()=>{var be;!N()&&y()&&(wt(()=>Lo.set(!1)),(be=Lt())==null||be.focus())}),qe(()=>{w()&&vo()});let kn=q("video360"),Pn=Y(void 0),vr=be=>{wr.set(Hn(ar(),{title:r(Pn)},"title",be))},An=(be,It)=>{var so,Xe;let Zt=(Xe=(so=e.store.callbacks)==null?void 0:so.uiInfo)==null?void 0:Xe.onUpcomingLiveViewStateChanged;if(!Zt)return;let fi=!!It,Yi=W(W({},Hn(r(io),{upcomingLiveScreen:It},"upcomingLiveScreen",fi)),be);Zt(Yi)};var Vr=i5();St("blur",ia,vo);var Eo=he(Vr);Eo.__mousemove=nt;var Mn=_(Eo);let Xr=g(()=>s()==="ads"),Ze=g(()=>r(ur)?wo:void 0);ot(wf(Mn,{toggleFullscreen:Qi,hideContextMenu:vo,showHotKeyHelpers:ho,showKeyMap:ro,get isAds(){return r(Xr)},get fakePlayButtonHandler(){return r(Ze)},get nextButtonActive(){return ne()},get prevButtonActive(){return Ut()},children:(be,It)=>{var Zt=e5(),fi=he(Zt);Va(fi,{get hideCursor(){return r(jn)},onClick:Co,onContextMenu:pr,onMouseDown:Tt,onMouseUp:hi,onDblClick:Gi,get videoContainer(){return mt()},set videoContainer(Xe){mt(Xe)}});var Yi=P(fi,2);da(Yi,()=>"slot",!1,(Xe,qt)=>{Ae(Xe,()=>({name:La}))});var so=P(Yi,2);la(so,De,Xe=>{var qt=Jx(),Oi=he(qt);let Do=g(()=>s()!=="thumb"||a()||Vi&&e.autoplay);Pa(Oi,{get hidden(){return r(Do)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var mn=P(Oi,2);tv(mn,{});var Yn=P(mn,2);{var gr=Ge=>{let di=g(()=>{var Fo;return(Fo=e.live)==null?void 0:Fo.startTime});Bd(Ge,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(di)},onUpcomingLiveViewStateChanged:An})};L(Yn,Ge=>{s()==="LiveWaitingStart"&&Ge(gr)})}var Rr=P(Yn,2);{var Zi=Ge=>{Aa(Ge,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};L(Rr,Ge=>{s()==="LiveWaitingRecover"&&Ge(Zi)})}var mi=P(Rr,2);{var vn=Ge=>{Aa(Ge,{kind:"record",get thumbUrl(){return e.thumbUrl}})};L(mi,Ge=>{s()==="LiveWaitingRecord"&&Ge(vn)})}var hr=P(mi,2);{var Ho=Ge=>{var di=jx();let Fo;var Ts=_(di);od(Ts,{get adsSlotId(){return vt()},get adsParams(){return Ct()},get adsPreviewParam(){return je()},get adsAutoplayParam(){return Ft()},get duration(){return ti()}}),h(di),B(hn=>Fo=te(di,1,"ads-container svelte-jtgjmv",null,Fo,hn),[()=>({hidden:s()!=="ads"})]),$(Ge,di)};L(hr,Ge=>{e.showAds&&Ve()&&Ge(Ho)})}var _o=P(hr,2);{var Ra=Ge=>{let di=g(()=>!et()&&e.showAutoplayNext&&S());$f(Ge,{get title(){return _e()},get thumb(){return Se()},get isHide(){return r(di)},clickCloseIcon:()=>O(kr,!0)})};L(_o,Ge=>{r(jr)&&_e()&&Se()&&Ge(Ra)})}var bt=P(_o,2);{var $t=Ge=>{let di=g(()=>!p());Am(Ge,{get title(){return e.title},get isHidden(){return r(di)},onVisibilityChanged:vr,get ref(){return r(Pn)},set ref(Fo){O(Pn,Fo,!0)}})};L(bt,Ge=>{r(Gr)&&Ge($t)})}var ao=P(bt,2);{var gn=Ge=>{let di=g(()=>s()==="video"&&p());Nd(Ge,{get isShifted(){return r(di)}})};L(ao,Ge=>{F()&&Ge(gn)})}var Bi=P(ao,2);{var vi=Ge=>{var di=Yx(),Fo=_(di);ed(Fo,{get"aria-label"(){return kn}}),h(di),$(Ge,di)};L(Bi,Ge=>{de()&&Ge(vi)})}var gi=P(Bi,2);{var Qs=Ge=>{Od(Ge,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ge()}})};L(gi,Ge=>{pe()&&Ge(Qs)})}var Na=P(gi,2);{var Fu=Ge=>{Ia(Ge,{get shifted(){return p()},get captions(){return ve()},get position(){return He()},get playerSize(){return H()}})};L(Na,Ge=>{ie().value!=="off"&&Ge(Fu)})}var ec=P(Na,2);{var Uu=Ge=>{var di=Zx();di.__contextmenu=pr,di.__click=[Gx,K,ut,f,Ht,vo];var Fo=_(di);ka(Fo,{}),h(di),$(Ge,di)};L(ec,Ge=>{a()&&Ge(Uu)})}var tc=P(ec,2);{var zu=Ge=>{let di=g(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),Fo=g(()=>s()==="ads"),Ts=g(()=>e.canRewindLive&&fe()!==0);Rd(Ge,{get bottomHidden(){return r(di)},get bottomNoSmooth(){return R()},get showControls(){return p()},get isAds(){return r(Fo)},get canRewindLive(){return r(Ts)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Gt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Wt()},get nextButtonActive(){return ne()},get prevButtonActive(){return Ut()},get isOneVideoPlaylist(){return le()},customFullscreenSupported:Oo,toggleFullscreen:Qi,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(Zo)},set playerControlsWrapperRef(hn){O(Zo,hn,!0)},get playerControlsRef(){return r(Kn)},set playerControlsRef(hn){O(Kn,hn,!0)}})};L(tc,Ge=>{Ve()&&Ge(zu)})}var ic=P(tc,2);{var Wu=Ge=>{var di=Xx(),Fo=_(di);let Ts=g(()=>{var hn;return(hn=r(Kn))==null?void 0:hn.clientHeight});Fd(Fo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(Ts)},returnFocus:()=>{var hn;return(hn=Lt())==null?void 0:hn.focus()},get ref(){return r(Cn)},set ref(hn){O(Cn,hn,!0)}}),h(di),$(Ge,di)};L(ic,Ge=>{!pe()&&s()!=="ads"&&Ge(Wu)})}var oc=P(ic,2);let Ku=g(()=>!r(Qr));sd(oc,{get isLive(){return at()},get isHidden(){return r(Ku)},get isPlaying(){return X()},get position(){return He()},get duration(){return fe()}});var nc=P(oc,2);Em(nc,{get data(){return Pi}});var rc=P(nc,2);bf(rc,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ge;return(Ge=Lt())==null?void 0:Ge.focus()},get visible(){return K()},get playerContainerRef(){return r(io)},get controlsContainerRef(){return r(Zo)},get position(){return Me()},get menuElementRef(){return r(ji)},set menuElementRef(Ge){O(ji,Ge,!0)}});var sc=P(rc,2);{var qu=Ge=>{Ud(Ge,{onClose:Er,onSelectAutoQuality:()=>{Yo("auto"),Er()}})};L(sc,Ge=>{r(Qn)&&Ge(qu)})}var Gs=P(sc,2);{var Qu=Ge=>{$a(Ge,{})};L(Gs,Ge=>{r(Ir)&&Ge(Qu)})}var wl=P(Gs,2);{var ac=Ge=>{Tf(Ge,{})};L(wl,Ge=>{ke()&&Ge(ac)})}var Gu=P(wl,2);{var lc=Ge=>{ud(Ge,{})};L(Gu,Ge=>{We()&&Ge(lc)})}$(Xe,qt)}),$(be,Zt)},$$slots:{default:!0}}),be=>Lt(be),()=>Lt());var oi=P(Mn,2);ot(oi,be=>O(po,be),()=>r(po)),h(Eo),ot(Eo,be=>O(io,be),()=>r(io));var yi=P(Eo,2);{var Io=be=>{var It=t5();$(be,It)};L(yi,be=>{lt()&&be(Io)})}St("mouseenter",Eo,fr),St("mouseleave",Eo,Zr),St("click",Eo,Bo,!0),St("focusin",Eo,Yr,!0),$(t,Vr),z(),o()}dt(["mousemove","contextmenu","click"]);import{clientChecker as zd,PlaybackState as f5}from"@vkontakte/videoplayer-core/es2015";import{noop as m5}from"@vkontakte/videoplayer-shared/es2015";var n5=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),r5=M("<div><!></div>"),s5={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
340
  animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
341
341
  .triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
342
342
  .triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
@@ -352,7 +352,7 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},e1=ob;var b
352
352
  100% {
353
353
  opacity: 0;
354
354
  }
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 Ru(t,e){U(e,!0),q(t,v5);let i=v(e,"seekStep",3,0),o=X(!1),n=0,s=0,l=X(ai(i())),d=m=>{m.stopPropagation(),s+=1,O(l,i()*(s-1)),s===1?e.handleSingleFirstClick(m):(O(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{s=0,O(o,!1)},300)};tn(()=>{window.clearTimeout(n)});var a=m5();a.__click=d;var u=_(a);{var f=m=>{var p=f5(),x=he(p),w=P(x,2),y=_(w),S=_(y),T=P(S,2),E=P(T,2);h(y);var R=P(y,2),I=_(R,!0);h(R),h(w),B(M=>{var k,j,H,F;oe(x,1,`semicircle ${(k=e.side)!=null?k:""}`,"svelte-nhq2ld"),oe(S,1,`triangle ${(j=e.side)!=null?j:""}`,"svelte-nhq2ld"),oe(T,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),oe(E,1,`triangle ${(F=e.side)!=null?F:""}`,"svelte-nhq2ld"),be(I,M)},[()=>K("doubletap_seek_step",{seconds:r(l).toFixed(0)})]),$(m,p)};V(u,m=>{r(o)&&m(f)})}h(a),B(()=>{var m;return oe(a,1,`double-click-area ${(m=e.side)!=null?m:""}`,"svelte-nhq2ld")}),$(t,a),z()}at(["click"]);var g5=(t,e,i)=>{e(!1),i()},h5=A('<div class="overlay svelte-1qdxi6t"></div> <div class="next-video svelte-1qdxi6t"><div class="top svelte-1qdxi6t"><div class="caption svelte-1qdxi6t"> </div> <!></div> <div class="row svelte-1qdxi6t"><div class="column svelte-1qdxi6t"><div class="thumb svelte-1qdxi6t"><div></div> <!></div></div> <div class="column svelte-1qdxi6t"><div class="title svelte-1qdxi6t"> </div></div></div></div>',1),_5={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 fv(t,e){U(e,!0),q(t,_5);let[i,o]=Fe(),n=()=>C(d,"$autoplayNextEnabled$",i),s=()=>C(a,"$timerNextVideoRunning$",i),l=Ee(),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,w=()=>{u(!1),p()},y=()=>{e.clickCloseIcon(),x()};Rt(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var S=Qe(),T=he(S);{var E=R=>{var I=h5(),M=P(he(I),2),k=_(M),j=_(k),H=_(j,!0);h(j);var F=P(j,2);_a(F,{onClick:y}),h(k);var Q=P(k,2);Q.__click=[g5,u,m];var Z=_(Q),Y=_(Z),pe=_(Y);let se;var me=P(pe,2);{var $e=Ve=>{gd(Ve,{get isRunning(){return s()},onTimerEnded:w})};V(me,Ve=>{n()&&Ve($e)})}h(Y),h(Z);var ve=P(Z,2),Ae=_(ve),ae=_(Ae,!0);h(Ae),h(ve),h(Q),h(M),B((Ve,le)=>{be(H,Ve),nt(Y,`background-image: url('${e.thumb}')`),se=oe(pe,1,"thumb-overlay svelte-1qdxi6t",null,se,le),be(ae,e.title)},[()=>n()?K("end_screen_next_video"):K("end_screen_recommended_video"),()=>({withOpacity:n()})]),$(R,I)};V(T,R=>{e.isHide||R(E)})}$(t,S),z(),o()}at(["click"]);import{clientChecker as b5}from"@vkontakte/videoplayer-core/es2015";var g0=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Rt(()=>{b5.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))}),tn(()=>{i==null||i(),clearTimeout(o)})};import{VideoFormat as $5}from"@vkontakte/videoplayer-core/es2015";var Nu=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 y5}from"@vkontakte/videoplayer-core/es2015";var h0=({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=()=>y5.device.isIOS&&xe(l)===$5.DASH_LIVE_CMAF,m=()=>{a==null||a(),a=null},p=x=>{if(m(),!f()||!x)return;let w=u();if(!w)return;let y=new Nu(w),S=xe(d),T=xe(s),E=xe(n);for(let M of S)T.some(j=>j.value===M.id)&&y.attach(M,E.value===M.id);let R=d.subscribe(M=>{for(let k of M)y.updateSrc(k)}),I=()=>{let M=y.getCurrentShowingId();o(xe(s).find(k=>k.value===M))};w.textTracks.addEventListener("change",I),a=()=>{R(),y.detachAll(),w.textTracks.removeEventListener("change",I)}};Rt(()=>i.subscribe(p)),tn(m)};var S5=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},C5=A("<!> <!>",1),T5=A("<div><!></div>"),E5=A('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),I5=A("<div><!></div>"),k5=A('<div class="settings-mobile svelte-7yl31d"><!></div>'),P5=A("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),A5=A('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),M5={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 mv(t,e){var Mr,Lr;U(e,!0),q(t,M5);let[i,o]=Fe(),n=()=>C(Oe,"$playerPhase",i),s=()=>C(dt,"$isLoaderVisible",i),l=()=>C(Ue,"$adPlaybackState",i),d=()=>C(Io,"$crashed",i),a=()=>C(ur,"$notificationsToShow$",i),u=()=>C(Re,"$playbackState$",i),f=()=>C(Ce,"$graphIsOpened$",i),m=()=>C(Et,"$interactiveHideMobileControls",i),p=()=>C(di,"$isEnded$",i),x=()=>C(qo,"$isInteractiveExpectation$",i),w=()=>C(Wt,"$controlsVisible",i),y=()=>C(to,"$touched",i),S=()=>C(zn,"$autoplayNextEnabled$",i),T=()=>C(li,"$postrollPassed",i),E=()=>C(Kn,"$bottomNoSmooth",i),R=()=>C(Ko,"$videoSize",i),I=()=>C(ut,"$playerSize",i),M=()=>C(et,"$isFullscreen",i),k=()=>C(Ne,"$position$",i),j=()=>C(Ke,"$duration$",i),H=()=>C(Oi,"$loadedMetadata",i),F=()=>C(yi,"$settingsMenuVisible",i),Q=()=>C(ct,"$scrubbingInProgress",i),Z=()=>C(Ri,"$volumeChangingInProgress",i),Y=()=>C(Ni,"$chromecastConnected$",i),pe=()=>C(Qt,"$isControlsAvailable",i),se=()=>C(fi,"$isInteractiveTime$",i),me=()=>C(pt,"$isActiveLive",i),$e=()=>C(bi,"$settingsMenuOpenedByKeyboard",i),ve=()=>C(re,"$language$",i),Ae=()=>C(wt,"$disabledControls$",i),ae=()=>C(Gt,"$is3DVideo",i),Ve=()=>C(Pt,"$icon3DVideoVisible",i),le=()=>C(Mt,"$chromecastDeviceName$",i),N=()=>C(Un,"$currentSubtitle$",i),De=()=>C(D,"$currentSubtitleCaptions$",i),ue=()=>C(qe,"$realDuration$",i),_e=()=>C(rn,"$isLive$",i),ne=()=>C(Lt,"$isPlaying$",i),ge=()=>C(Zt,"$debugPanelVisible",i),He=v(e,"videoContainer",15),fe=v(e,"adsSlotId",3,void 0),st=v(e,"adsParams",3,void 0),J=v(e,"adsPreviewParam",3,void 0),Me=v(e,"adsAutoplayParam",3,void 0),Pe=v(e,"duration",3,void 0),We=v(e,"logoTargetUrl",3,""),rt=v(e,"showNextPrevButtons",3,!1),_t=v(e,"nextButtonActive",3,!1),lt=v(e,"prevButtonActive",3,!1),xt=v(e,"endScreenVideoTitle",3,void 0),Je=v(e,"endScreenVideoThumb",3,void 0),zt=v(e,"isOneVideoPlaylist",3,!1),ti=v(e,"showMiniTimer",3,!1),Ft=v(e,"fullScreenTarget",3,void 0),Yt=v(e,"playerStarted",3,!1),Ie=v(e,"showEndScreen",3,!0),{notifications$:qt,graphIsOpened$:Ce}=fo(),ie=e.store.getLogger().createComponentLog("Root component"),re=e.store.interfaceLanguage$,Re=e.store.state.playbackState$,Ue=e.store.ads.playbackState,Ne=e.store.state.positionWithScrubbing$,Ke=e.store.state.duration$,Oe=e.store.playerPhase,et=e.store.ui.isFullscreen,Wt=e.store.ui.controlsVisible,Qt=e.store.ui.isControlsAvailable,Et=e.store.ui.interactiveHideMobileControls,yi=e.store.ui.settingsMenu.visible$,bi=e.store.ui.settingsMenu.openedByBtnKeyboard$,ct=e.store.ui.scrubbingInProgress,Ri=e.store.ui.volumeChangingInProgress,Zt=e.store.ui.debugPanelVisible,dt=e.store.state.isLoaderVisible,di=e.store.state.isEnded$,Ni=e.store.state.chromecastConnected$,Mt=e.store.state.chromecastDeviceName$,li=e.store.ads.postrollPassed,rn=e.store.state.isLive$,Lt=e.store.state.isPlaying$,pt=e.store.state.isActiveLive$,pi=e.store.state.isRewindableLive$,Io=e.store.state.crashed$,qi=e.store.webApi.annotationsApi,ni=e.store.webApi.pictureInPictureApi,Ko=e.store.state.videoSize$,Un=e.store.state.currentSubtitle$,D=e.store.state.currentSubtitleCaptions$,qe=e.store.state.duration$,ut=e.store.ui.playerSize,Gt=e.store.ui.is3DVideo,Pt=e.store.ui.icon3DVideoVisible,At=e.store.state.isInteractive,fi=e.store.state.isInteractiveTime$,qo=e.store.state.isInteractiveExpectation$,ci=e.store.state.hasInteractiveBranches,wt=e.store.ui.controls.disabledControls$,to=e.store.ui.touched,Qi=e.store.ui.overlayContainer$,zn=e.store.ui.autoplayNextEnabled$,Oi=e.store.state.loadedMetadata$,mo=e.store.actions.internal.closeSettingsMenu,vo=(Mr=e.store.callbacks)==null?void 0:Mr.onDisabledPlayPrevChapterClick,yn=(Lr=e.store.callbacks)==null?void 0:Lr.onDisabledSeekToInteractiveClick,sn=e.store.actions.internal.setQuality,Pi=X(void 0),Gi=X(void 0),an=X(void 0),ko=X(void 0),ln,dn,Cr=g(()=>(n()==="video"&&s()||n()==="ads"&&l()==="inactive")&&!d()),Wn=X(void 0),{closeNotification:Tr,notificationsToShow$:ur}=qt,qr=g(()=>!!a().slow_video),cn=()=>Tr("slow_video"),Kn=de(!1),pr,xn=X(!1),co=g(()=>u()!==x5.PLAYING),qn=X(!1),Er=g(()=>f()||m()||!r(xn)&&(p()&&!!ci||r(co)&&x())),wn=X(!0),fr=g(()=>e.uiConfig.features.thumbTimer&&ti()&&n()==="video"&&!w()&&!d()&&!At&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),Qn=X(!1),Qo=g(()=>(Ie()||e.showAutoplayNext&&S())&&!!xt()&&!!Je()&&(e.showAds&&T()||!e.showAds)&&p()&&!d()&&!r(Qn)),Gn=X(!1);ni==null||ni.setContext(Ml());let Qr=mt=>{mt&&!At&&go(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:Qr});let Ir=()=>{clearTimeout(ln),O(xn,!1),m()&&Et.set(!1)},go=mt=>{Ir(),O(xn,!0),ln=setTimeout(()=>O(xn,!1),mt);let Ct=mt-100;pr=setTimeout(()=>{E()&&Kn.set(!1)},Ct>0?Ct:mt)},ft=Gt.subscribe(mt=>{Pt.set(mt),mt&&(clearTimeout(dn),dn=setTimeout(()=>Pt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Xt=(...Ct)=>$t(null,[...Ct],function*(mt=Bs()){var io,oo,Yi,Po,bo,In;if(mt&&!Qd.device.isIOS){let no=rd(),Ao=uo(),kn=Qd.browser.isSamsungBrowser&&no===e.shadowRootContainer;mt=no===Ao||kn}if(mt){go(e.uiConfig.controls.hideTimeoutFullscreen);try{yield ni==null?void 0:ni.exit()}catch(no){ie({message:String(no)})}try{let no=(io=R())!=null&&io.width&&((oo=R())!=null&&oo.height)?R():I();yield a1(no)}catch(no){ie({message:String(no)})}}et.set(mt),e.store.getAdmanWrapper().setFullscreen(mt),M()?(Po=(Yi=e.store.callbacks)==null?void 0:Yi.onFullscreenEnter)==null||Po.call(Yi):(In=(bo=e.store.callbacks)==null?void 0:bo.onFullscreenExit)==null||In.call(bo)}),Sn=mt=>{let Ct=mt,{width:io,height:oo}=Ct.target;ut.set({width:io,height:oo})},ji=()=>{let{width:mt,height:Ct}=r(Pi).getBoundingClientRect();ut.set({width:mt,height:Ct})};Rt(()=>{var mt;return su(Xt),e.uiConfig.features.annotationsInside&&(qi==null||qi.init(r(Pi))),va(ni)&&(ni==null||ni.assignPlayerContainer(r(Pi)),ni==null||ni.setExternalEventHandlers({resize:Sn,leavepictureinpicture:ji})),O(wn,!Qd.device.isIphoneOrOldIpad),e.interactiveContainer&&((mt=He().parentElement)==null||mt.insertBefore(e.interactiveContainer,He().nextSibling)),()=>{clearTimeout(ln),clearTimeout(pr),clearTimeout(dn),ft(),ni==null||ni.dispose().catch(Ct=>{ie({message:String(Ct)})}),au(Xt)}});let Bi=X(!0),Go=X(!0),Cn=mt=>{let Ct=k()+(mt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Ct<0?(O(Bi,!1),Ct=0):Ct>=j()&&(O(Go,!1),Ct=j()),O(qn,!0),e.seekTime(Ct)},uo=()=>Qd.device.isIOS?r(Pi):!e.uiConfig.allowChangingFullscreenTarget||!Ft()?e.outerContainerRef:Ft().contains(e.outerContainerRef)?Ft():e.outerContainerRef,un=()=>$t(null,null,function*(){try{if(Bs())yield ru(document),ie({message:"exit fullscreen"});else{if(ie({message:"request fullscreen"}),Qd.device.isIOS&&!H())return;yield nu(uo())}}catch(mt){ie({message:String(mt)})}}),jo=()=>{mo()},ho=mt=>{if(mt.preventDefault(),F()){jo();return}if(!Yt()){e.firstStart(),go(e.uiConfig.controls.hideTimeoutCursor);return}O(qn,!1),w()?Ir():go(e.uiConfig.controls.hideTimeoutMobile)},kr=()=>{to.set(!0)},Pr=()=>{At||(Kn.set(!0),go(e.uiConfig.controls.hideTimeoutCursor))},Gr=mt=>{vo&&(vo(mt),go(e.uiConfig.controls.hideTimeoutMobile))},cs=mt=>{yn&&(yn(mt),go(e.uiConfig.controls.hideTimeoutMobile))};Ge(()=>{Qi.set(r(Wn))}),Ge(()=>{Wt.set((r(co)||F()||Q()||Z()||Y()||!r(Qo)&&(p()||r(xn)&&!r(qn)))&&!r(Er)&&n()==="video"&&!d()&&pe())}),Ge(()=>{!Q()&&r(Gn)&&!se()&&go(e.uiConfig.controls.hideTimeoutMobile),O(Gn,Q(),!0)}),Ge(()=>{O(Bi,k()>0),O(Go,!me()&&k()<j(),!0)}),Ge(()=>{pd(r(ko),F(),$e(),!0)});let Tn=K("aria_label_video_player"),mr=K("video360");g0({fullScreenChangeHandler:Xt,getFullscreenTarget:uo}),h0({store:e.store,getFullscreenTarget:uo});let Ar=(mt,Ct)=>{var Po,bo;let io=(bo=(Po=e.store.callbacks)==null?void 0:Po.uiInfo)==null?void 0:bo.onUpcomingLiveViewStateChanged;if(!io)return;let oo=!!Ct,Yi=W(W({},Hn(r(Pi),{upcomingLiveScreen:Ct},"upcomingLiveScreen",oo)),mt);io(Yi)};var _o=A5();St("blur",ia,jo);var ri=_(_o);Va(ri,{onClick:ho,get videoContainer(){return He()},set videoContainer(mt){He(mt)}});var pn=P(ri,2);da(pn,()=>"slot",!1,(mt,Ct)=>{ke(mt,()=>({name:La}))});var fn=P(pn,2);la(fn,ve,mt=>{var Ct=P5(),io=he(Ct);let oo=g(()=>n()!=="thumb"||d()||At&&e.autoplay);Pa(io,{get hidden(){return r(oo)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Yi=P(io,2);{var Po=Ye=>{var ii=C5(),hi=he(ii);{var xi=Oo=>{let An=g(()=>e.uiConfig.controls.seekStepMobile/1e3);Ru(Oo,{side:"left",get seekStep(){return r(An)},handleSingleFirstClick:ho,handleSecondClick:()=>Cn("backward")})};V(hi,Oo=>{r(Bi)&&Oo(xi)})}var No=P(hi,2);{var Zr=Oo=>{let An=g(()=>e.uiConfig.controls.seekStepMobile/1e3);Ru(Oo,{side:"right",get seekStep(){return r(An)},handleSingleFirstClick:ho,handleSecondClick:()=>Cn("forward")})};V(No,Oo=>{r(Go)&&Oo(Zr)})}$(Ye,ii)};V(Yi,Ye=>{e.canRewindLive&&pi&&!Ae().has("TIMELINE")&&Ye(Po)})}var bo=P(Yi,2);{var In=Ye=>{let ii=g(()=>{var hi;return(hi=e.live)==null?void 0:hi.startTime});Ud(Ye,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(ii)},onUpcomingLiveViewStateChanged:Ar})};V(bo,Ye=>{n()==="LiveWaitingStart"&&Ye(In)})}var no=P(bo,2);{var Ao=Ye=>{Aa(Ye,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(no,Ye=>{n()==="LiveWaitingRecover"&&Ye(Ao)})}var kn=P(no,2);{var Vr=Ye=>{Aa(Ye,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(kn,Ye=>{n()==="LiveWaitingRecord"&&Ye(Vr)})}var jr=P(kn,2);{var Mo=Ye=>{var ii=T5();let hi;var xi=_(ii);ad(xi,{get adsSlotId(){return fe()},get adsParams(){return st()},get adsPreviewParam(){return J()},get adsAutoplayParam(){return Me()},get duration(){return Pe()}}),h(ii),B(No=>hi=oe(ii,1,"ads-container svelte-7yl31d",null,hi,No),[()=>({hidden:n()!=="ads"})]),$(Ye,ii)};V(jr,Ye=>{e.showAds&&Yt()&&Ye(Mo)})}var jn=P(jr,2);{var Yn=Ye=>{let ii=g(()=>!Ie()&&e.showAutoplayNext&&S());fv(Ye,{get title(){return xt()},get thumb(){return Je()},get isHide(){return r(ii)},clickCloseIcon:()=>O(Qn,!0)})};V(jn,Ye=>{r(Qo)&&xt()&&Je()&&Ye(Yn)})}var vr=P(jn,2);{var it=Ye=>{Hd(Ye,{})};V(vr,Ye=>{ae()&&Ye(it)})}var Tt=P(vr,2);{var gi=Ye=>{var ii=E5(),hi=_(ii);nd(hi,{get"aria-label"(){return mr}}),h(ii),$(Ye,ii)};V(Tt,Ye=>{Ve()&&Ye(gi)})}var Di=P(Tt,2);{var $o=Ye=>{Fd(Ye,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return le()}})};V(Di,Ye=>{Y()&&Ye($o)})}var ro=P(Di,2);{var Ai=Ye=>{Ia(Ye,{get shifted(){return w()},get captions(){return De()},get position(){return k()},get playerSize(){return I()},isMobile:!0})};V(ro,Ye=>{N().value!=="off"&&Ye(Ai)})}var Lo=P(ro,2);{var Zn=Ye=>{var ii=I5();ii.__click=[S5,F,yi,jo];var hi=_(ii);ka(hi,{}),h(ii),$(Ye,ii)};V(Lo,Ye=>{d()&&Ye(Zn)})}var mn=P(Lo,2);{var yo=Ye=>{let ii=g(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),hi=g(()=>n()==="ads"),xi=g(()=>e.canRewindLive&&ue()!==0);Dd(Ye,{get bottomHidden(){return r(ii)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return r(hi)},get canRewindLive(){return r(xi)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return We()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return rt()},get nextButtonActive(){return _t()},get prevButtonActive(){return lt()},get isOneVideoPlaylist(){return zt()},get customFullscreenSupported(){return r(wn)},get endScreenShown(){return r(Qo)},toggleFullscreen:un,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Gr,onDisabledSeekToInteractiveClick:cs,get playerControlsWrapperRef(){return r(Gi)},set playerControlsWrapperRef(No){O(Gi,No,!0)},get playerControlsRef(){return r(an)},set playerControlsRef(No){O(an,No,!0)}})};V(mn,Ye=>{Yt()&&Ye(yo)})}var Vo=P(mn,2);{var gr=Ye=>{var ii=k5(),hi=_(ii);Kd(hi,{get supportLink(){return e.supportLink},get returnFocus(){return w5},get ref(){return r(ko)},set ref(xi){O(ko,xi,!0)}}),h(ii),$(Ye,ii)};V(Vo,Ye=>{F()&&Ye(gr)})}var Pn=P(Vo,2);let Xn=g(()=>!r(fr));cd(Pn,{get isLive(){return _e()},get isHidden(){return r(Xn)},get isPlaying(){return ne()},get position(){return k()},get duration(){return j()}});var hr=P(Pn,2);{var Ro=Ye=>{$a(Ye,{})};V(hr,Ye=>{r(Cr)&&Ye(Ro)})}var Rr=P(hr,2);{var Yr=Ye=>{vd(Ye,{})};V(Rr,Ye=>{ge()&&Ye(Yr)})}var Jn=P(Rr,2);{var _r=Ye=>{qd(Ye,{onClose:cn,onSelectAutoQuality:()=>{sn("auto"),cn()}})};V(Jn,Ye=>{r(qr)&&Ye(_r)})}$(mt,Ct)});var En=P(fn,2);tt(En,mt=>O(Wn,mt),()=>r(Wn)),h(_o),tt(_o,mt=>O(Pi,mt),()=>r(Pi)),B(()=>ze(_o,"aria-label",Tn)),St("click",_o,kr,!0),St("focusin",_o,Pr,!0),$(t,_o),z(),o()}at(["click"]);function Ou(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 L5}from"@vkontakte/videoplayer-shared/es2015";var V5=A('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),R5={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 vv(t,e){U(e,!0),q(t,R5);let[i,o]=Fe(),n=()=>C(Z,"$playerSize",i),s=()=>C(M,"$isPlaying$",i),l=()=>C(R,"$duration$",i),d=()=>C(H,"$positionWithScrubbing$",i),a=()=>C(T,"$playerPhase",i),u=()=>C(E,"$crashed$",i),f=()=>C(k,"$currentSubtitle$",i),m=()=>C(j,"$currentSubtitleCaptions$",i),p=()=>C(I,"$positionExact$",i),x=()=>C(F,"$isLive$",i),w=()=>C(Q,"$isRewindableLive$",i),y=v(e,"outsideDuration",3,0),S=v(e,"videoContainer",15),{playerPhase:T,state:{crashed$:E,duration$:R,positionExact$:I,isPlaying$:M,currentSubtitle$:k,currentSubtitleCaptions$:j,positionWithScrubbing$:H,isLive$:F,isRewindableLive$:Q},ui:{playerSize:Z,controls:Y},actions:{internal:{getVideoElement:pe}}}=Ee(),se=8,me=X(!1),$e=ai({}),ve=()=>{O(me,!0)},Ae=()=>{O(me,!1)},ae=L5(gl,260);Ge(()=>{n(),ae(pe(),Y,$e,r(me))});let Ve=g(()=>s()?$n(l()-d()):$n(isFinite(l())?l():y()));var le=V5(),N=_(le);Va(N,{hideCursor:!1,get videoContainer(){return S()},set videoContainer(Pe){S(Pe)}});var De=P(N,2);da(De,()=>"slot",!1,(Pe,We)=>{ke(Pe,()=>({name:La}))});var ue=P(De,2);let _e=g(()=>a()!=="thumb"||u());Pa(ue,{get hidden(){return r(_e)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var ne=P(ue,2);{var ge=Pe=>{Ia(Pe,{shifted:!1,get captions(){return m()},get position(){return p()},get playerSize(){return n()}})};V(ne,Pe=>{f().value!=="off"&&Pe(ge)})}var He=P(ne,2),fe=_(He);dd(fe,{get isLive(){return x()},get isPlaying(){return s()},get time(){return r(Ve)}}),h(He);var st=P(He,2);let J;var Me=_(st);wa(Me,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:se,tooltipRightOffset:se,get ref(){return $e.timeline},set ref(Pe){$e.timeline=Pe}}),h(st),h(le),B(Pe=>J=oe(st,1,"timeline svelte-1qfjf44",null,J,Pe),[()=>({visible:r(me)})]),St("mouseenter",le,ve),St("mouseleave",le,Ae),$(t,le),z(),o()}var H5=A("<div><!></div>"),F5={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;
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 Pu(t,e){U(e,!0),Q(t,s5);let i=m(e,"seekStep",3,0),o=Y(!1),n=0,s=0,l=Y(ai(i())),d=v=>{v.stopPropagation(),s+=1,O(l,i()*(s-1)),s===1?e.handleSingleFirstClick(v):(O(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{s=0,O(o,!1)},300)};nn(()=>{window.clearTimeout(n)});var a=r5();a.__click=d;var u=_(a);{var f=v=>{var p=n5(),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,Z,H,F;te(x,1,`semicircle ${(R=e.side)!=null?R:""}`,"svelte-nhq2ld"),te(S,1,`triangle ${(Z=e.side)!=null?Z:""}`,"svelte-nhq2ld"),te(T,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),te(E,1,`triangle ${(F=e.side)!=null?F:""}`,"svelte-nhq2ld"),$e(k,I)},[()=>q("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),z()}dt(["click"]);var a5=(t,e,i)=>{e(!1),i()},l5=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),d5={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 ov(t,e){U(e,!0),Q(t,d5);let[i,o]=Fe(),n=()=>C(d,"$autoplayNextEnabled$",i),s=()=>C(a,"$timerNextVideoRunning$",i),l=Ie(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,p=l.actions.internal.nextVideoAnnouncementAuto,x=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{u(!1),p()},y=()=>{e.clickCloseIcon(),x()};Mt(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var S=Ke(),T=he(S);{var E=V=>{var k=l5(),I=P(he(k),2),R=_(I),Z=_(R),H=_(Z,!0);h(Z);var F=P(Z,2);_a(F,{onClick:y}),h(R);var K=P(R,2);K.__click=[a5,u,v];var ee=_(K),j=_(ee),ue=_(j);let oe;var pe=P(ue,2);{var ye=Re=>{pd(Re,{get isRunning(){return s()},onTimerEnded:w})};L(pe,Re=>{n()&&Re(ye)})}h(j),h(ee);var me=P(ee,2),Pe=_(me),re=_(Pe,!0);h(Pe),h(me),h(K),h(I),B((Re,se)=>{$e(H,Re),st(j,`background-image: url('${e.thumb}')`),oe=te(ue,1,"thumb-overlay svelte-1qdxi6t",null,oe,se),$e(re,e.title)},[()=>n()?q("end_screen_next_video"):q("end_screen_recommended_video"),()=>({withOpacity:n()})]),$(V,k)};L(T,V=>{e.isHide||V(E)})}$(t,S),z(),o()}dt(["click"]);import{clientChecker as c5}from"@vkontakte/videoplayer-core/es2015";var s_=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Mt(()=>{c5.device.isIOS&&(o=setTimeout(()=>{let s=t().querySelector("video");if(!s)return;let l=()=>e(!0),d=()=>e(!1);s.addEventListener("webkitbeginfullscreen",l),s.addEventListener("webkitendfullscreen",d),i=()=>{s.removeEventListener("webkitbeginfullscreen",l),s.removeEventListener("webkitendfullscreen",d)}},0))}),nn(()=>{i==null||i(),clearTimeout(o)})};import{VideoFormat as u5}from"@vkontakte/videoplayer-core/es2015";var Au=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 p5}from"@vkontakte/videoplayer-core/es2015";var a_=({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=()=>p5.device.isIOS&&we(l)===u5.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 Au(w),S=we(d),T=we(s),E=we(n);for(let I of S)T.some(Z=>Z.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(we(s).find(R=>R.value===I))};w.textTracks.addEventListener("change",k),a=()=>{V(),y.detachAll(),w.textTracks.removeEventListener("change",k)}};Mt(()=>i.subscribe(p)),nn(v)};var v5=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},g5=M("<!> <!>",1),h5=M("<div><!></div>"),_5=M('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),b5=M("<div><!></div>"),$5=M('<div class="settings-mobile svelte-7yl31d"><!></div>'),y5=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),x5=M('<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 nv(t,e){var Ar,Ni;U(e,!0),Q(t,w5);let[i,o]=Fe(),n=()=>C(Be,"$playerPhase",i),s=()=>C(bi,"$isLoaderVisible",i),l=()=>C(Qe,"$adPlaybackState",i),d=()=>C(Vo,"$crashed",i),a=()=>C(ar,"$notificationsToShow$",i),u=()=>C(Ne,"$playbackState$",i),f=()=>C(_e,"$graphIsOpened$",i),v=()=>C(tt,"$interactiveHideMobileControls",i),p=()=>C(Lo,"$isEnded$",i),x=()=>C(yo,"$isInteractiveExpectation$",i),w=()=>C(Lt,"$controlsVisible",i),y=()=>C(Vi,"$touched",i),S=()=>C(zn,"$autoplayNextEnabled$",i),T=()=>C(li,"$postrollPassed",i),E=()=>C(lr,"$bottomNoSmooth",i),V=()=>C(Go,"$videoSize",i),k=()=>C(pt,"$playerSize",i),I=()=>C(et,"$isFullscreen",i),R=()=>C(Ve,"$position$",i),Z=()=>C(Ye,"$duration$",i),H=()=>C(Ri,"$loadedMetadata",i),F=()=>C(wi,"$settingsMenuVisible",i),K=()=>C(it,"$scrubbingInProgress",i),ee=()=>C(ri,"$volumeChangingInProgress",i),j=()=>C($o,"$chromecastConnected$",i),ue=()=>C(Kt,"$isControlsAvailable",i),oe=()=>C(ui,"$isInteractiveTime$",i),pe=()=>C(ut,"$isActiveLive",i),ye=()=>C(_i,"$settingsMenuOpenedByKeyboard",i),me=()=>C(le,"$language$",i),Pe=()=>C(yt,"$disabledControls$",i),re=()=>C(zt,"$is3DVideo",i),Re=()=>C(ct,"$icon3DVideoVisible",i),se=()=>C(Ht,"$chromecastDeviceName$",i),N=()=>C(Un,"$currentSubtitle$",i),De=()=>C(D,"$currentSubtitleCaptions$",i),de=()=>C(ze,"$realDuration$",i),ge=()=>C(an,"$isLive$",i),ie=()=>C(Pt,"$isPlaying$",i),ve=()=>C(jt,"$debugPanelVisible",i),He=m(e,"videoContainer",15),fe=m(e,"adsSlotId",3,void 0),at=m(e,"adsParams",3,void 0),X=m(e,"adsPreviewParam",3,void 0),Me=m(e,"adsAutoplayParam",3,void 0),ke=m(e,"duration",3,void 0),We=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),je=m(e,"endScreenVideoThumb",3,void 0),Ft=m(e,"isOneVideoPlaylist",3,!1),ti=m(e,"showMiniTimer",3,!1),Gt=m(e,"fullScreenTarget",3,void 0),Wt=m(e,"playerStarted",3,!1),ne=m(e,"showEndScreen",3,!0),{notifications$:Ut,graphIsOpened$:_e}=bo(),Se=e.store.getLogger().createComponentLog("Root component"),le=e.store.interfaceLanguage$,Ne=e.store.state.playbackState$,Qe=e.store.ads.playbackState,Ve=e.store.state.positionWithScrubbing$,Ye=e.store.state.duration$,Be=e.store.playerPhase,et=e.store.ui.isFullscreen,Lt=e.store.ui.controlsVisible,Kt=e.store.ui.isControlsAvailable,tt=e.store.ui.interactiveHideMobileControls,wi=e.store.ui.settingsMenu.visible$,_i=e.store.ui.settingsMenu.openedByBtnKeyboard$,it=e.store.ui.scrubbingInProgress,ri=e.store.ui.volumeChangingInProgress,jt=e.store.ui.debugPanelVisible,bi=e.store.state.isLoaderVisible,Lo=e.store.state.isEnded$,$o=e.store.state.chromecastConnected$,Ht=e.store.state.chromecastDeviceName$,li=e.store.ads.postrollPassed,an=e.store.state.isLive$,Pt=e.store.state.isPlaying$,ut=e.store.state.isActiveLive$,$i=e.store.state.isRewindableLive$,Vo=e.store.state.crashed$,zi=e.store.webApi.annotationsApi,si=e.store.webApi.pictureInPictureApi,Go=e.store.state.videoSize$,Un=e.store.state.currentSubtitle$,D=e.store.state.currentSubtitleCaptions$,ze=e.store.state.duration$,pt=e.store.ui.playerSize,zt=e.store.ui.is3DVideo,ct=e.store.ui.icon3DVideoVisible,ci=e.store.state.isInteractive,ui=e.store.state.isInteractiveTime$,yo=e.store.state.isInteractiveExpectation$,pi=e.store.state.hasInteractiveBranches,yt=e.store.ui.controls.disabledControls$,Vi=e.store.ui.touched,Ro=e.store.ui.overlayContainer$,zn=e.store.ui.autoplayNextEnabled$,Ri=e.store.state.loadedMetadata$,to=e.store.actions.internal.closeSettingsMenu,No=(Ar=e.store.callbacks)==null?void 0:Ar.onDisabledPlayPrevChapterClick,wn=(Ni=e.store.callbacks)==null?void 0:Ni.onDisabledSeekToInteractiveClick,Sn=e.store.actions.internal.setQuality,ki=Y(void 0),Wi=Y(void 0),jo=Y(void 0),Yo=Y(void 0),ln,dn,qr=g(()=>(n()==="video"&&s()||n()==="ads"&&l()==="inactive")&&!d()),Wn=Y(void 0),{closeNotification:wr,notificationsToShow$:ar}=Ut,Sr=g(()=>!!a().slow_video),cn=()=>wr("slow_video"),lr=ae(!1),io,Zo=Y(!1),Kn=g(()=>u()!==f5.PLAYING),Cn=Y(!1),Cr=g(()=>f()||v()||!r(Zo)&&(p()&&!!pi||r(Kn)&&x())),qn=Y(!0),dr=g(()=>e.uiConfig.features.thumbTimer&&ti()&&n()==="video"&&!w()&&!d()&&!ci&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),Tr=Y(!1),Tn=g(()=>(ne()||e.showAutoplayNext&&S())&&!!Ct()&&!!je()&&(e.showAds&&T()||!e.showAds)&&p()&&!d()&&!r(Tr)),Qn=Y(!1);si==null||si.setContext(Il());let Er=gt=>{gt&&!ci&&po(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:Er});let Ir=()=>{clearTimeout(ln),O(Zo,!1),v()&&tt.set(!1)},po=gt=>{Ir(),O(Zo,!0),ln=setTimeout(()=>O(Zo,!1),gt);let Yt=gt-100;io=setTimeout(()=>{E()&&lr.set(!1)},Yt>0?Yt:gt)},ft=zt.subscribe(gt=>{ct.set(gt),gt&&(clearTimeout(dn),dn=setTimeout(()=>ct.set(!1),e.uiConfig.controls.hide360IconTimeout))}),ii=(...Yt)=>xt(null,[...Yt],function*(gt=Os()){var qi,oo,no,So,mo,vo;if(gt&&!zd.device.isIOS){let Qi=td(),pr=xo(),fr=zd.browser.isSamsungBrowser&&Qi===e.shadowRootContainer;gt=Qi===pr||fr}if(gt){po(e.uiConfig.controls.hideTimeoutFullscreen);try{yield si==null?void 0:si.exit()}catch(Qi){Se({message:String(Qi)})}try{let Qi=(qi=V())!=null&&qi.width&&((oo=V())!=null&&oo.height)?V():k();yield Zh(Qi)}catch(Qi){Se({message:String(Qi)})}}et.set(gt),e.store.getAdmanWrapper().setFullscreen(gt),I()?(So=(no=e.store.callbacks)==null?void 0:no.onFullscreenEnter)==null||So.call(no):(vo=(mo=e.store.callbacks)==null?void 0:mo.onFullscreenExit)==null||vo.call(mo)}),un=gt=>{let Yt=gt,{width:qi,height:oo}=Yt.target;pt.set({width:qi,height:oo})},Pi=()=>{let{width:gt,height:Yt}=r(ki).getBoundingClientRect();pt.set({width:gt,height:Yt})};Mt(()=>{var gt;return tu(ii),e.uiConfig.features.annotationsInside&&(zi==null||zi.init(r(ki))),va(si)&&(si==null||si.assignPlayerContainer(r(ki)),si==null||si.setExternalEventHandlers({resize:un,leavepictureinpicture:Pi})),O(qn,!zd.device.isIphoneOrOldIpad),e.interactiveContainer&&((gt=He().parentElement)==null||gt.insertBefore(e.interactiveContainer,He().nextSibling)),()=>{clearTimeout(ln),clearTimeout(io),clearTimeout(dn),ft(),si==null||si.dispose().catch(Yt=>{Se({message:String(Yt)})}),iu(ii)}});let Ki=Y(!0),Xo=Y(!0),Jo=gt=>{let Yt=R()+(gt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Yt<0?(O(Ki,!1),Yt=0):Yt>=Z()&&(O(Xo,!1),Yt=Z()),O(Cn,!0),e.seekTime(Yt)},xo=()=>zd.device.isIOS?r(ki):!e.uiConfig.allowChangingFullscreenTarget||!Gt()?e.outerContainerRef:Gt().contains(e.outerContainerRef)?Gt():e.outerContainerRef,Gn=()=>xt(null,null,function*(){try{if(Os())yield eu(document),Se({message:"exit fullscreen"});else{if(Se({message:"request fullscreen"}),zd.device.isIOS&&!H())return;yield Jc(xo())}}catch(gt){Se({message:String(gt)})}}),pn=()=>{to()},Oo=gt=>{if(gt.preventDefault(),F()){pn();return}if(!Wt()){e.firstStart(),po(e.uiConfig.controls.hideTimeoutCursor);return}O(Cn,!1),w()?Ir():po(e.uiConfig.controls.hideTimeoutMobile)},Qr=()=>{Vi.set(!0)},Gr=()=>{ci||(lr.set(!0),po(e.uiConfig.controls.hideTimeoutCursor))},kr=gt=>{No&&(No(gt),po(e.uiConfig.controls.hideTimeoutMobile))},jr=gt=>{wn&&(wn(gt),po(e.uiConfig.controls.hideTimeoutMobile))};qe(()=>{Ro.set(r(Wn))}),qe(()=>{Lt.set((r(Kn)||F()||K()||ee()||j()||!r(Tn)&&(p()||r(Zo)&&!r(Cn)))&&!r(Cr)&&n()==="video"&&!d()&&ue())}),qe(()=>{!K()&&r(Qn)&&!oe()&&po(e.uiConfig.controls.hideTimeoutMobile),O(Qn,K(),!0)}),qe(()=>{O(Ki,R()>0),O(Xo,!pe()&&R()<Z(),!0)}),qe(()=>{ld(r(Yo),F(),ye(),!0)});let jn=q("aria_label_video_player"),cr=q("video360");s_({fullScreenChangeHandler:ii,getFullscreenTarget:xo}),a_({store:e.store,getFullscreenTarget:xo});let ur=(gt,Yt)=>{var So,mo;let qi=(mo=(So=e.store.callbacks)==null?void 0:So.uiInfo)==null?void 0:mo.onUpcomingLiveViewStateChanged;if(!qi)return;let oo=!!Yt,no=W(W({},Hn(r(ki),{upcomingLiveScreen:Yt},"upcomingLiveScreen",oo)),gt);qi(no)};var wo=x5();St("blur",ia,pn);var Xt=_(wo);Va(Xt,{onClick:Oo,get videoContainer(){return He()},set videoContainer(gt){He(gt)}});var fo=P(Xt,2);da(fo,()=>"slot",!1,(gt,Yt)=>{Ae(gt,()=>({name:La}))});var Pr=P(fo,2);la(Pr,me,gt=>{var Yt=y5(),qi=he(Yt);let oo=g(()=>n()!=="thumb"||d()||ci&&e.autoplay);Pa(qi,{get hidden(){return r(oo)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var no=P(qi,2);{var So=Ze=>{var oi=g5(),yi=he(oi);{var Io=Zt=>{let fi=g(()=>e.uiConfig.controls.seekStepMobile/1e3);Pu(Zt,{side:"left",get seekStep(){return r(fi)},handleSingleFirstClick:Oo,handleSecondClick:()=>Jo("backward")})};L(yi,Zt=>{r(Ki)&&Zt(Io)})}var be=P(yi,2);{var It=Zt=>{let fi=g(()=>e.uiConfig.controls.seekStepMobile/1e3);Pu(Zt,{side:"right",get seekStep(){return r(fi)},handleSingleFirstClick:Oo,handleSecondClick:()=>Jo("forward")})};L(be,Zt=>{r(Xo)&&Zt(It)})}$(Ze,oi)};L(no,Ze=>{e.canRewindLive&&$i&&!Pe().has("TIMELINE")&&Ze(So)})}var mo=P(no,2);{var vo=Ze=>{let oi=g(()=>{var yi;return(yi=e.live)==null?void 0:yi.startTime});Bd(Ze,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(oi)},onUpcomingLiveViewStateChanged:ur})};L(mo,Ze=>{n()==="LiveWaitingStart"&&Ze(vo)})}var Qi=P(mo,2);{var pr=Ze=>{Aa(Ze,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};L(Qi,Ze=>{n()==="LiveWaitingRecover"&&Ze(pr)})}var fr=P(Qi,2);{var Yr=Ze=>{Aa(Ze,{kind:"record",get thumbUrl(){return e.thumbUrl}})};L(fr,Ze=>{n()==="LiveWaitingRecord"&&Ze(Yr)})}var Zr=P(fr,2);{var go=Ze=>{var oi=h5();let yi;var Io=_(oi);od(Io,{get adsSlotId(){return fe()},get adsParams(){return at()},get adsPreviewParam(){return X()},get adsAutoplayParam(){return Me()},get duration(){return ke()}}),h(oi),B(be=>yi=te(oi,1,"ads-container svelte-7yl31d",null,yi,be),[()=>({hidden:n()!=="ads"})]),$(Ze,oi)};L(Zr,Ze=>{e.showAds&&Wt()&&Ze(go)})}var En=P(Zr,2);{var Mr=Ze=>{let oi=g(()=>!ne()&&e.showAutoplayNext&&S());ov(Ze,{get title(){return Ct()},get thumb(){return je()},get isHide(){return r(oi)},clickCloseIcon:()=>O(Tr,!0)})};L(En,Ze=>{r(Tn)&&Ct()&&je()&&Ze(Mr)})}var Lr=P(En,2);{var nt=Ze=>{Nd(Ze,{})};L(Lr,Ze=>{re()&&Ze(nt)})}var Tt=P(Lr,2);{var hi=Ze=>{var oi=_5(),yi=_(oi);ed(yi,{get"aria-label"(){return cr}}),h(oi),$(Ze,oi)};L(Tt,Ze=>{Re()&&Ze(hi)})}var Gi=P(Tt,2);{var Co=Ze=>{Od(Ze,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return se()}})};L(Gi,Ze=>{j()&&Ze(Co)})}var ho=P(Gi,2);{var ro=Ze=>{Ia(Ze,{get shifted(){return w()},get captions(){return De()},get position(){return R()},get playerSize(){return k()},isMobile:!0})};L(ho,Ze=>{N().value!=="off"&&Ze(ro)})}var Bo=P(ho,2);{var In=Ze=>{var oi=b5();oi.__click=[v5,F,wi,pn];var yi=_(oi);ka(yi,{}),h(oi),$(Ze,oi)};L(Bo,Ze=>{d()&&Ze(In)})}var fn=P(Bo,2);{var ji=Ze=>{let oi=g(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),yi=g(()=>n()==="ads"),Io=g(()=>e.canRewindLive&&de()!==0);Rd(Ze,{get bottomHidden(){return r(oi)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return r(yi)},get canRewindLive(){return r(Io)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return We()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return lt()},get nextButtonActive(){return mt()},get prevButtonActive(){return vt()},get isOneVideoPlaylist(){return Ft()},get customFullscreenSupported(){return r(qn)},get endScreenShown(){return r(Tn)},toggleFullscreen:Gn,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:kr,onDisabledSeekToInteractiveClick:jr,get playerControlsWrapperRef(){return r(Wi)},set playerControlsWrapperRef(be){O(Wi,be,!0)},get playerControlsRef(){return r(jo)},set playerControlsRef(be){O(jo,be,!0)}})};L(fn,Ze=>{Wt()&&Ze(ji)})}var To=P(fn,2);{var mr=Ze=>{var oi=$5(),yi=_(oi);Fd(yi,{get supportLink(){return e.supportLink},get returnFocus(){return m5},get ref(){return r(Yo)},set ref(Io){O(Yo,Io,!0)}}),h(oi),$(Ze,oi)};L(To,Ze=>{F()&&Ze(mr)})}var kn=P(To,2);let Pn=g(()=>!r(dr));sd(kn,{get isLive(){return ge()},get isHidden(){return r(Pn)},get isPlaying(){return ie()},get position(){return R()},get duration(){return Z()}});var vr=P(kn,2);{var An=Ze=>{$a(Ze,{})};L(vr,Ze=>{r(qr)&&Ze(An)})}var Vr=P(vr,2);{var Eo=Ze=>{ud(Ze,{})};L(Vr,Ze=>{ve()&&Ze(Eo)})}var Mn=P(Vr,2);{var Xr=Ze=>{Ud(Ze,{onClose:cn,onSelectAutoQuality:()=>{Sn("auto"),cn()}})};L(Mn,Ze=>{r(Sr)&&Ze(Xr)})}$(gt,Yt)});var cs=P(Pr,2);ot(cs,gt=>O(Wn,gt),()=>r(Wn)),h(wo),ot(wo,gt=>O(ki,gt),()=>r(ki)),B(()=>Ue(wo,"aria-label",jn)),St("click",wo,Qr,!0),St("focusin",wo,Gr,!0),$(t,wo),z(),o()}dt(["click"]);function Mu(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 S5}from"@vkontakte/videoplayer-shared/es2015";var C5=M('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),T5={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 rv(t,e){U(e,!0),Q(t,T5);let[i,o]=Fe(),n=()=>C(ee,"$playerSize",i),s=()=>C(I,"$isPlaying$",i),l=()=>C(V,"$duration$",i),d=()=>C(H,"$positionWithScrubbing$",i),a=()=>C(T,"$playerPhase",i),u=()=>C(E,"$crashed$",i),f=()=>C(R,"$currentSubtitle$",i),v=()=>C(Z,"$currentSubtitleCaptions$",i),p=()=>C(k,"$positionExact$",i),x=()=>C(F,"$isLive$",i),w=()=>C(K,"$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$:Z,positionWithScrubbing$:H,isLive$:F,isRewindableLive$:K},ui:{playerSize:ee,controls:j},actions:{internal:{getVideoElement:ue}}}=Ie(),oe=8,pe=Y(!1),ye=ai({}),me=()=>{O(pe,!0)},Pe=()=>{O(pe,!1)},re=S5(hl,260);qe(()=>{n(),re(ue(),j,ye,r(pe))});let Re=g(()=>s()?xn(l()-d()):xn(isFinite(l())?l():y()));var se=C5(),N=_(se);Va(N,{hideCursor:!1,get videoContainer(){return S()},set videoContainer(ke){S(ke)}});var De=P(N,2);da(De,()=>"slot",!1,(ke,We)=>{Ae(ke,()=>({name:La}))});var de=P(De,2);let ge=g(()=>a()!=="thumb"||u());Pa(de,{get hidden(){return r(ge)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var ie=P(de,2);{var ve=ke=>{Ia(ke,{shifted:!1,get captions(){return v()},get position(){return p()},get playerSize(){return n()}})};L(ie,ke=>{f().value!=="off"&&ke(ve)})}var He=P(ie,2),fe=_(He);rd(fe,{get isLive(){return x()},get isPlaying(){return s()},get time(){return r(Re)}}),h(He);var at=P(He,2);let X;var Me=_(at);wa(Me,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:oe,tooltipRightOffset:oe,get ref(){return ye.timeline},set ref(ke){ye.timeline=ke}}),h(at),h(se),B(ke=>X=te(at,1,"timeline svelte-1qfjf44",null,X,ke),[()=>({visible:r(pe)})]),St("mouseenter",se,me),St("mouseleave",se,Pe),$(t,se),z(),o()}var A5=M("<div><!></div>"),M5={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;
356
356
 
357
357
  /* USER DEFINED COLORS */
358
358
 
@@ -378,12 +378,12 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},e1=ob;var b
378
378
  rgba(9, 9, 9, 0.46) 80%,
379
379
  rgba(10, 10, 10, 0.48) 86.67%,
380
380
  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);--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;
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-1tzrpvc {color-scheme:light dark;}.root.visible-outside.svelte-1tzrpvc {overflow:visible;}
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;}
383
383
 
384
384
  /* 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
385
  /* --vk-vp-int-custom-font - vk video player interactive custom font */font-family:var(--vk-vp-int-custom-font, inherit);}*:focus, *:focus-visible {outline:none;}*:focus-visible {box-shadow:var(--focused-element-shadow);border-radius:var(--focused-outline-radius);}*.focus-hidden:focus-visible {box-shadow:none;}
386
386
  /* css reset end */.hidden {visibility:hidden;opacity:0;}.out-of-flow {content-visibility:hidden !important;}.overlay-container {pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index);}
387
387
 
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 hv(t,e){U(e,!0),q(t,F5);let[i,o]=Fe(),n=()=>C(ti,"$isLive$",i),s=()=>C(pt,"$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),w=v(e,"interactiveController",7),y=v(e,"subtitles",7),S=v(e,"live",7),T=v(e,"preload",7),E=v(e,"autoplay",7),R=v(e,"volume",7,void 0),I=v(e,"muted",7,void 0),M=v(e,"fromTime",7),k=v(e,"canRewindLive",7),j=v(e,"showAds",7),H=v(e,"adsSlotId",7,void 0),F=v(e,"adsParams",7,void 0),Q=v(e,"adsPreviewParam",7,void 0),Z=v(e,"adsAutoplayParam",7,void 0),Y=v(e,"duration",7,void 0),pe=v(e,"logoClickable",7),se=v(e,"logoHidden",7),me=v(e,"isMobile",7),$e=v(e,"showNextPrevButtons",7,!1),ve=v(e,"nextButtonActive",7,!1),Ae=v(e,"prevButtonActive",7,!1),ae=v(e,"endScreenVideoTitle",7,void 0),Ve=v(e,"endScreenVideoThumb",7,void 0),le=v(e,"isOneVideoPlaylist",7,!1),N=v(e,"supportLink",7),De=v(e,"shadowRootContainer",7),ue=v(e,"outerContainerRef",7),_e=v(e,"fullScreenTarget",7,void 0),ne=v(e,"failoverHosts",7,void 0),ge=v(e,"showMiniTimer",7,!1),He=v(e,"saveRate",7),fe=v(e,"seekToInteractive",7,_0),st=v(e,"playPrevChapter",7,_0),J=v(e,"volumeMultiplier",7),Me=v(e,"showAutoplayNext",7),Pe=v(e,"showEndScreen",7,!0),We=v(e,"keyboardControls",15,void 0),{subscribers:rt,stores:_t}=a();bh(f());let lt=kt(),xt=f().logoLink,Je=d().ui.debugPanelVisible,zt=d().ui.playerSize,ti=d().state.isLive$,Yt=d().state.isInteractive&&gv.device.isAndroid,Ie=X(void 0),qt=null,Ce=X(!1);d().getAdmanWrapper().init({switchFromAdsToVideo:d().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:d().actions.internal.switchFromVideoToAds,setMuted:d().actions.external.setMuted},d().ads,{vsid:d().vsid}),kh(d(),_t),Ge(()=>{var D,qe;d().ui.isMobile.set(me()),(qe=(D=u().callbacks)==null?void 0:D.onDomReady)==null||qe.call(D)});let ie=(D=!1)=>{O(Ce,!0),D?d().actions.external.firstStart(j()):d().actions.internal.firstStart(j())},re=()=>{if(lt.features.qualityDetailsSubMenuEnabled){let D=Yh(d().videoId);if(D)switch(D.type){case"high_quality":d().actions.internal.setHighQualityEnabled(!0,D.appliesTo);break;case"traffic_saving":d().actions.internal.setTrafficSavingEnabled(!0,D.appliesTo);break;case"exact_quality":d().actions.internal.setQuality(D.quality);break}}else{Zh(d().videoId),df()&&d().actions.internal.setTrafficSavingEnabled(!0);let qe=rf(d().videoId);qe&&d().actions.internal.setQuality(qe)}};function Re(D){var At,fi,qo;let qe=l()||D;qe&&d().initVideo({container:r(Ie),sources:qe,failoverHosts:ne(),subtitles:y(),volumeMultiplier:J()});let ut=O5.get(ed)==="true";Je.set(ut),M()>0&&d().actions.external.seekTime(M());let Gt=me()?lt.volumeDefault:(fi=(At=R())!=null?At:Gc())!=null?fi:lt.volumeDefault,Pt=(qo=I())!=null?qo:Wh();if(d().actions.external.setVolume(Gt),d().actions.external.setMuted(Pt),d().getAdmanWrapper().setInitialVolume(Pt?0:Gt),re(),lt.features.saveRate&&He()){let ci=Qh();ci&&!n()&&d().actions.internal.setPlaybackRate(ci)}if(Me()){let ci=jh();ci&&d().actions.internal.setAutoplayNextEnabled(ci)}d().ui.isAutoplay.set(E()),E()&&ie(),T()&&lt.features.preload&&d().actions.internal.preload()}let Ue=D=>{if(window.ResizeObserver){let qe,ut;qt=new ResizeObserver(B5(Gt=>{let Pt=Gt[0];if(Pt.contentBoxSize){let At=Array.isArray(Pt.contentBoxSize)?Pt.contentBoxSize[0]:Pt.contentBoxSize;qe=At.inlineSize,ut=At.blockSize}else Pt.contentRect&&(qe=Pt.contentRect.width,ut=Pt.contentRect.height);zt.set({width:qe,height:ut})},300)),qt.observe(D)}zt.set({width:D.clientWidth,height:D.clientHeight})},Ne=()=>{document.hidden&&d().actions.external.stop()};Rt(()=>{var ut,Gt,Pt,At;Yt&&document.addEventListener("visibilitychange",Ne),lt.debugLog&&d().actions.internal.startLogging(),Ue(r(Ie));let D=rt.map(fi=>fi.init({store:d(),microStores:_t,config:u(),interactiveController:w(),uiConfig:f()})),qe=()=>{Yt&&document.removeEventListener("visibilitychange",Ne),qt==null||qt.disconnect(),D.forEach(fi=>fi.unsubscribe()),d().destroy()};return((ut=S())==null?void 0:ut.status)==="upcoming"?(d().actions.internal.setLiveWaitingStart(!0),qe):((Gt=S())==null?void 0:Gt.status)==="waiting"?(d().actions.internal.setLiveWaitingRecover(!0),qe):(((Pt=S())==null?void 0:Pt.status)==="finished"||((At=S())==null?void 0:At.status)==="postlive")&&!(l()&&N5(l()))?(d().actions.internal.setLiveWaitingRecord(!0),qe):(Re(),qe)});function Ke(){r(Ce)?d().actions.external.play():ie(!0)}function Oe(){d().actions.external.pause()}function et(D){d().actions.external.setMuted(D)}function Wt(){d().actions.external.toggleSubtitle()}function Qt(D,qe){d().actions.external.changeSubtitle(D,qe)}function Et(){var D;(D=d().webApi.slotsApi)!=null&&D.haveSlots()&&d().actions.external.hideControls()}function yi(){var D;(D=d().webApi.slotsApi)!=null&&D.haveSlots()&&d().actions.external.showControls()}function bi(D){me()||D>=0&&D<=1&&d().actions.external.setVolume(D)}function ct(D){d().actions.internal.seekTime(D,D5.UNKNOWN)}function Ri(D){d().actions.external.seekEpisodeStartTime(D)}function Zt(){d().actions.external.returnFocusToEpisodes()}function dt(D){d().actions.external.setPlaybackRate(D)}function di(D){d().actions.external.setAutoQualityLimits(D)}function Ni(){d().actions.external.setQuality("auto")}function Mt(D){d().actions.external.setTrafficSavingEnabled(D)}function li(D){d().actions.external.setHighQualityEnabled(D)}let rn=Ou(lt.view),Lt=u().playerView==="preview",pt=d().state.availableSubtitlesList$;if(lt.features.initSubtitles){let D=!1;Ge(()=>{if(!D&&s().length){D=!0;let qe;if(lt.features.userVideoPrefs&&d().videoId){let Gt=Xc(lt.userSalt,String(d().videoId));Gt!=null&&Gt.subtitleTrackId&&(qe=s().find(Pt=>Pt.value===Gt.subtitleTrackId))}let ut=uf();ut&&(qe!=null||(qe=s().find(Gt=>Gt.language===ut))),d().actions.internal.setSubtitle(qe)}})}var pi=H5();let Io;var qi=_(pi);{var ni=D=>{mv(D,{get store(){return d()},get uiConfig(){return lt},get thumbUrl(){return p()},get interactiveContainer(){return x()},get live(){return S()},get autoplay(){return E()},get canRewindLive(){return k()},get showAds(){return j()},get adsSlotId(){return H()},get adsParams(){return F()},get adsPreviewParam(){return Q()},get adsAutoplayParam(){return Z()},get duration(){return Y()},get logoClickable(){return pe()},get logoHidden(){return se()},get logoTargetUrl(){return xt},get nextButtonActive(){return ve()},get prevButtonActive(){return Ae()},get endScreenVideoTitle(){return ae()},get endScreenVideoThumb(){return Ve()},get isOneVideoPlaylist(){return le()},get supportLink(){return N()},get shadowRootContainer(){return De()},get outerContainerRef(){return ue()},get fullScreenTarget(){return _e()},get showMiniTimer(){return ge()},get playerStarted(){return r(Ce)},get seekToInteractive(){return fe()},get playPrevChapter(){return st()},firstStart:ie,seekTime:ct,get showEndScreen(){return Pe()},get showAutoplayNext(){return Me()},get showNextPrevButtons(){return $e()},get videoContainer(){return r(Ie)},set videoContainer(qe){O(Ie,qe,!0)}})},Ko=D=>{var qe=Qe(),ut=he(qe);{var Gt=At=>{vv(At,{get thumbUrl(){return p()},get outsideDuration(){return Y()},get canRewindLive(){return k()},get videoContainer(){return r(Ie)},set videoContainer(fi){O(Ie,fi,!0)}})},Pt=At=>{pv(At,{get store(){return d()},get uiConfig(){return lt},get title(){return m()},get thumbUrl(){return p()},get interactiveContainer(){return x()},get live(){return S()},get autoplay(){return E()},get canRewindLive(){return k()},get showAds(){return j()},get adsSlotId(){return H()},get adsParams(){return F()},get adsPreviewParam(){return Q()},get adsAutoplayParam(){return Z()},get duration(){return Y()},get logoClickable(){return pe()},get logoHidden(){return se()},get logoTargetUrl(){return xt},get nextButtonActive(){return ve()},get prevButtonActive(){return Ae()},get endScreenVideoTitle(){return ae()},get endScreenVideoThumb(){return Ve()},get isOneVideoPlaylist(){return le()},get supportLink(){return N()},get shadowRootContainer(){return De()},get outerContainerRef(){return ue()},get fullScreenTarget(){return _e()},get showMiniTimer(){return ge()},get playerStarted(){return r(Ce)},get seekToInteractive(){return fe()},get playPrevChapter(){return st()},firstStart:ie,get showEndScreen(){return Pe()},get showAutoplayNext(){return Me()},get showNextPrevButtons(){return $e()},get videoContainer(){return r(Ie)},set videoContainer(fi){O(Ie,fi,!0)},get keyboardControls(){return We()},set keyboardControls(fi){We(fi)}})};V(ut,At=>{Lt?At(Gt):At(Pt,!1)})}$(D,qe)};V(qi,D=>{me()?D(ni):D(Ko,!1)})}h(pi),B(D=>{Io=oe(pi,1,"root svelte-1tzrpvc",null,Io,D),nt(pi,rn)},[()=>({"root--miui-browser":gv.device.isMobile&&gv.browser.isMiuiBrowser,"visible-outside":Lt})]),$(t,pi);var Un=z({initVideo:Re,play:Ke,pause:Oe,setMuted:et,toggleSubtitle:Wt,changeSubtitle:Qt,hideControls:Et,showControls:yi,setVolume:bi,seekTime:ct,seekEpisodeStartTime:Ri,returnFocusToEpisodes:Zt,setPlaybackRate:dt,setAutoQualityLimits:di,setAutoQuality:Ni,toggleTrafficSaving:Mt,toggleHighQuality:li,get sources(){return l()},set sources(D){l(D)},get store(){return d()},set store(D){d(D)},get microStoresRoot(){return a()},set microStoresRoot(D){a(D)},get videoConfig(){return u()},set videoConfig(D){u(D)},get uiConfig(){return f()},set uiConfig(D){f(D)},get title(){return m()},set title(D){m(D)},get thumbUrl(){return p()},set thumbUrl(D){p(D)},get interactiveContainer(){return x()},set interactiveContainer(D){x(D)},get interactiveController(){return w()},set interactiveController(D){w(D)},get subtitles(){return y()},set subtitles(D){y(D)},get live(){return S()},set live(D){S(D)},get preload(){return T()},set preload(D){T(D)},get autoplay(){return E()},set autoplay(D){E(D)},get volume(){return R()},set volume(D){R(D)},get muted(){return I()},set muted(D){I(D)},get fromTime(){return M()},set fromTime(D){M(D)},get canRewindLive(){return k()},set canRewindLive(D){k(D)},get showAds(){return j()},set showAds(D){j(D)},get adsSlotId(){return H()},set adsSlotId(D){H(D)},get adsParams(){return F()},set adsParams(D){F(D)},get adsPreviewParam(){return Q()},set adsPreviewParam(D){Q(D)},get adsAutoplayParam(){return Z()},set adsAutoplayParam(D){Z(D)},get duration(){return Y()},set duration(D){Y(D)},get logoClickable(){return pe()},set logoClickable(D){pe(D)},get logoHidden(){return se()},set logoHidden(D){se(D)},get isMobile(){return me()},set isMobile(D){me(D)},get showNextPrevButtons(){return $e()},set showNextPrevButtons(D){$e(D)},get nextButtonActive(){return ve()},set nextButtonActive(D){ve(D)},get prevButtonActive(){return Ae()},set prevButtonActive(D){Ae(D)},get endScreenVideoTitle(){return ae()},set endScreenVideoTitle(D){ae(D)},get endScreenVideoThumb(){return Ve()},set endScreenVideoThumb(D){Ve(D)},get isOneVideoPlaylist(){return le()},set isOneVideoPlaylist(D){le(D)},get supportLink(){return N()},set supportLink(D){N(D)},get shadowRootContainer(){return De()},set shadowRootContainer(D){De(D)},get outerContainerRef(){return ue()},set outerContainerRef(D){ue(D)},get fullScreenTarget(){return _e()},set fullScreenTarget(D){_e(D)},get failoverHosts(){return ne()},set failoverHosts(D){ne(D)},get showMiniTimer(){return ge()},set showMiniTimer(D){ge(D)},get saveRate(){return He()},set saveRate(D){He(D)},get showAutoplayNext(){return Me()},set showAutoplayNext(D){Me(D)},get seekToInteractive(){return fe()},set seekToInteractive(D){fe(D)},get playPrevChapter(){return st()},set playPrevChapter(D){st(D)},get volumeMultiplier(){return J()},set volumeMultiplier(D){J(D)},get showEndScreen(){return Pe()},set showEndScreen(D){Pe(D)},get keyboardControls(){return We()},set keyboardControls(D){We(D)}});return o(),Un}var U5=Se('<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 _v(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=U5();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(),h(o),$(t,o)}function bv(t,e){let i=v(e,"isWhite",3,!1),o=g(()=>i()?"color: #fff;":"color: #909499;");_v(t,{get style(){return r(o)}})}var z5=A('<div class="title svelte-1y9fytq"> </div>'),W5=A('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),K5={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 $v(t,e){q(t,K5);var i=W5(),o=_(i);{var n=d=>{var a=z5(),u=_(a,!0);h(a),B(()=>be(u,e.title)),$(d,a)};V(o,d=>{e.title&&d(n)})}var s=P(o,2);{var l=d=>{let a=g(()=>!!e.thumbUrl);bv(d,{get isWhite(){return r(a)}})};V(s,d=>{(!e.title||!e.thumbUrl)&&d(l)})}h(i),B(()=>nt(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),$(t,i)}var q5=A('<div class="playerError svelte-m5iv29"><!></div>'),Q5={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 yv(t){q(t,Q5);var e=q5(),i=_(e);ka(i,{}),h(e),$(t,e)}import{now as ww,ValueSubject as Sw}from"@vkontakte/videoplayer-shared/es2015";import{cloneDeepWith as Cw,InterfaceLanguage as Tw,isNonNullable as Iv,Logger as Ew,Observable as Iw,Subscription as E0,once as kw,InternalsExposure as Pw,skip as Aw,getPlayerId as Mw}from"@vkontakte/videoplayer-shared/es2015";import{clientChecker as I0,isMobile as Lw}from"@vkontakte/videoplayer-core/es2015";import{OneStat as Vw,ThinOneStat as Rw,MediascopePixel as Nw}from"@vkontakte/videoplayer-statistics/es2015";import{Logger as G5,Subscription as j5}from"@vkontakte/videoplayer-shared/es2015";var Bu=class{constructor(){this.subscription=new j5,this.logger=new G5,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 Cv,detectEmbed as tw}from"@vkontakte/videoplayer-shared/es2015";var Y5=Se('<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 xv(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=Y5();ke(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ce}),we(),h(o),$(t,o)}var Z5=A('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),X5={hash:"svelte-1pbsod4",code:".player-pip-dummy.svelte-1pbsod4 {width:100%;height:100%;background-color:#19191A;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.player-pip-dummy.is-pip-api.svelte-1pbsod4 {position:relative;}.dummy-image.svelte-1pbsod4 svg {transform:scale(1.07143);}.dummy-image.desktop.svelte-1pbsod4 {transform:scale(1.07143) rotate(-90deg) rotateY(180deg);}.title.svelte-1pbsod4 {font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center;}"};function wv(t,e){U(e,!0),q(t,X5);let[i,o]=Fe(),n=()=>C(u,"$interfaceLanguage$",i),s=()=>C(f,"$isMobile$",i),l=Ee(),d=kt(),a=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,f=l.ui.isMobile,m=l.ui.t,p=g(()=>n()&&m("pip_dummy_title")),x=Ou(d.view);var w=Z5();let y;var S=_(w);let T;var E=_(S);xv(E,{}),h(S);var R=P(S,2),I=_(R,!0);h(R),h(w),B((M,k)=>{y=oe(w,1,"player-pip-dummy svelte-1pbsod4",null,y,M),nt(w,x),T=oe(S,1,"dummy-image svelte-1pbsod4",null,T,k),be(I,r(p))},[()=>({"is-pip-api":a}),()=>({desktop:!s()})]),$(t,w),z(),o()}var J5=Object.defineProperty,ew=(t,e,i)=>e in t?J5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,$l=(t,e,i)=>ew(t,typeof e!="symbol"?e+"":e,i),Sv=(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())}),iw=460,ow=280,Gd=class{constructor({enabled:e=!0}={enabled:!0}){$l(this,"playerDomElement"),$l(this,"playerParentShadowRoot"),$l(this,"playerDummyElement"),$l(this,"svelteContext"),$l(this,"pipWindow"),$l(this,"info",{isActive$:new Cv(!1),isEnabled$:new Cv(!1),type:1}),this.info.isEnabled$=new Cv(e)}isSupported(){let{isEmbed:e}=tw();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 Sv(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:iw,height:ow,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(wv,d),(e=this.pipWindow)==null||e.document.body.append(s),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(aa(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})})}exit(){return Sv(this,null,function*(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})})}dispose(){return Sv(this,null,function*(){yield this.exit()})}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function b0(t){return t instanceof Gd}var Du=class{static getLatestSupportedVersion(e){let i=new ma(e),o=new Gd(e);if(o.isSupported())return o;if(i.isSupported())return i}};function jd(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 $0="Inner error. Unexpectedly root annotation container null reference exception",y0="Annotation with such name already exists",x0="Annotation with such name does not exist";var yl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as nw,Subscription as rw,throttleFn as sw}from"@vkontakte/videoplayer-shared/es2015";var aw="1",lw=100,Hu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new rw}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=sw(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},lw);this.subscriptions.add(nw(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 yl($0);if(this.annotations.has(e))throw new yl(y0);i.style.zIndex=(o=i.style.zIndex)!=null?o:aw,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 yl(x0);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 Fu,Subscription as dw}from"@vkontakte/videoplayer-shared/es2015";var nn=class{init({store:e,microStores:i,interactiveController:o,config:n}){return Fu(e),Fu(i),Fu(n),n.interactiveData&&Fu(o),this.subscription=new dw,this.subscription}};var Yd=class extends nn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Ht(W({},de(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 Zd=class extends nn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Ht(W({},de(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=xe(f),p=()=>m&&xe(u);return o.add(u.subscribe(x=>{if(!m)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 Xd=class extends nn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=de("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 cw}from"@vkontakte/videoplayer-shared/es2015";var Tv=de(!1),Uu=null,Jd=class extends nn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Ht(W({},Tv),{set:(i,o=!1)=>{i!==xe(Tv)&&(this.clearTimeout(),Tv.set(i),!i&&Uu&&(Uu=!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=>{xe(l)&&m&&this.state$.set(!1)}));let f=(s==null?void 0:s.interactiveData)||{tooltipHelpHintActive:!1};return o.add(cw({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:m,isInteractiveTime$:p,interactiveTimeIndicator:x})=>{var w,y;if(!(!m||!(x!=null&&x.isDisplayed))){if(!p)return this.state$.set(!1);f.tooltipHelpHintActive&&Uu===null&&(Uu=!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 uw,noop as pw}from"@vkontakte/videoplayer-shared/es2015";var ec=class extends nn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=Ht(W({},de(null)),{toggle:pw});this.checkIfShouldHide=i=>Ws(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=()=>$t(this,null,function*(){if(this.checkIfShouldHide(xe(l)))return;let a=xe(this.state$),{isEnded$:u,playbackState$:f}=n.state,{disabledControls$:m}=n.ui.controls,p=xe(u),x=xe(f);if(a)try{yield s==null?void 0:s.toggleGraphView(!1),this.state$.set(!1),m.remove(Yp),!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),m.add(Yp),!p&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}}),o.add(uw({graphIsOpened:this.state$,currentGridType:l}).subscribe(f=>$t(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 w0}from"@vkontakte/videoplayer-shared/es2015";var tc=class extends nn{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:de(!1),isEnabled$:de(!1),type$:de(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:s,isEnabled$:l,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new w0(!1),isEnabled$:new w0(!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 vw,filterChanged as gw}from"@vkontakte/videoplayer-shared/es2015";import{safeStorage as Ev}from"@vkontakte/videoplayer-shared/es2015";var S0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?fw({maxCount:t}):void 0,e!==0?mw({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},fw=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Ev.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}}},mw=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Ev.get(e)||"{}")}catch(s){return{}}},o=s=>Ev.set(e,JSON.stringify(s)),n=s=>{let l=i();delete l[s],o(l)};return{notificationShowed:s=>{o(Ht(W({},i()),{[s]:{timeout:t,launchTime:Date.now()}}))},canShowNotification:s=>{let l=i()[s];if(l){let d=Date.now()-l.launchTime>t;return d&&n(s),d}else return!0}}};var ic=class extends nn{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:de({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:s,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:a}}}=i;this.notificationManager=S0({maxShowCount:s,timeout:l});let u=n.getPlayer();return o.add(u.events.severeStallOccured$.pipe(gw(),vw(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 C0=()=>[Yd,Zd,Xd,Jd,ec,tc,ic].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:Ht(W({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});import{devNull as oc}from"@vkontakte/videoplayer-shared/es2015";var zu=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 hw=Object.defineProperty,_w=Object.defineProperties,bw=Object.getOwnPropertyDescriptors,T0=Object.getOwnPropertySymbols,$w=Object.prototype.hasOwnProperty,yw=Object.prototype.propertyIsEnumerable,kv=(t,e,i)=>e in t?hw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Qs=(t,e)=>{for(var i in e||(e={}))$w.call(e,i)&&kv(t,i,e[i]);if(T0)for(var i of T0(e))yw.call(e,i)&&kv(t,i,e[i]);return t},xw=(t,e)=>_w(t,bw(e)),jt=(t,e,i)=>kv(t,typeof e!="symbol"?e+"":e,i),Wu=(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())}),Ow={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Tw.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:Lw(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Fn=X(void 0),Ku=class extends HTMLElement{constructor(){super(),jt(this,"svelteStubComponent"),jt(this,"svelteRootComponent"),jt(this,"svelteErrorComponent"),jt(this,"store"),jt(this,"microStoresRoot"),jt(this,"statistics"),jt(this,"sentry"),jt(this,"_shadowRoot"),jt(this,"playerContainer"),jt(this,"rootContainer"),jt(this,"shadowRootContainer"),jt(this,"playerId"),jt(this,"uiConfig"),jt(this,"coreConfig"),jt(this,"statisticsConfig"),jt(this,"interactiveController"),jt(this,"interactiveContainer"),jt(this,"graphMadePause"),jt(this,"currentPlayingVideoIndex",0),jt(this,"needToRepeatPlaylist",!1),jt(this,"videoConfig"),jt(this,"pictureInPictureApi"),jt(this,"mediaSessionApi"),jt(this,"unsubscribePlayerPhaseSubscription"),jt(this,"logger"),jt(this,"log"),jt(this,"subscription"),jt(this,"interactiveSubscription"),jt(this,"annotationsApi"),jt(this,"slotsApi"),jt(this,"focusManager"),jt(this,"prevIsid"),jt(this,"isInited",!1),jt(this,"internalsExposure",null),jt(this,"shadowDOMCallbacksDisabled",!1),jt(this,"fatalError$",new Sw(null)),jt(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:w,isTouch:y,refDomain:S,deviceId:T,interactiveData:E}=jd(this.videoConfig,i),R=(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:M,isClip:k=!1}=e;if(this.uiConfig.features.statistics&&M)try{return new Vw(Qs({movieId:M,albumId:d,place:a,trackCode:f,vkAppId:m,autoplay:(l=x&&!this.interactiveController)!=null?l:!1,mobile:y!=null?y:w,clip:k,refDomain:S,deviceId:T,isPreviewPlayerView:this.videoConfig.playerView==="preview"},R&&(!this.isInited||I)&&{projectId:Number(R)}),Qs({refreshAuthToken:p,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}catch(H){console.error(H),this.log({message:H.message})}}),oc.create("ui"),this.logger=new Ew,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new E0,this.interactiveSubscription=new E0,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=rs(yv,{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=ai({title:o,thumbUrl:n}),l={target:this.playerContainer,props:s};this.svelteStubComponent=rs($v,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(),oc.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}=jd(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new Rw.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:w,statPlace:y,statAuthToken:S,preload:T,autoplay:E,volume:R,muted:I,fromTime:M,canRewindLive:k,supportLink:j,showAds:H,adsSlotId:F,adsParams:Q={},adsPreviewParam:Z,adsAutoplayParam:Y,interfaceLanguage:pe,isCyrillicRelatedInterface:se,logoClickable:me,logoHidden:$e,isMobile:ve,isTouch:Ae,isAudioDisabled:ae,isLiveCatchUpMode:Ve,fullScreenTarget:le,failoverHosts:N,canDownload:De,callbacks:ue,interactiveData:_e,showThumbTimer:ne,additionalButtons:ge=[],additionalSettingsMenuItems:He=[],additionalContextMenuItems:fe=[],repeat:st,saveRate:J,volumeMultiplier:Me,showEndScreen:Pe,showAutoplayNext:We,mediascopePixels:rt}=jd(this.videoConfig,i),{sources:_t,title:lt,thumbUrl:xt,unitedVideoId:Je,isClip:zt=!1,duration:ti,adsParams:Ft={},videoEpisodes:Yt,previewThumbsData:Ie,subtitles:qt,live:Ce}=e;if(!_t&&!Ce){let Zt=new Error("empty sources and live");this.fatalError$.next(Zt),(n=ue.onCrashed)==null||n.call(ue,Zt.message);return}let ie=Qs(Qs({},Q),Ft),re=this.getNextVideoInfo(),Re={sources:_t,title:lt,thumbUrl:xt,subtitles:qt,unitedVideoId:Je,isClip:zt,live:Ce,albumId:w,statPlace:y,autoplay:E,muted:I,volume:R,fromTime:M,canRewindLive:k,showAds:H,adsSlotId:F,adsParams:ie,adsPreviewParam:Z,adsAutoplayParam:Y,duration:ti,logoClickable:me,logoHidden:$e,isTouch:Ae!=null?Ae:ve,repeat:st,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:re.nextVideoTitle,endScreenVideoThumb:re.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Ue={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(Re)}`});let Ne=(s=this.interactiveController)==null?void 0:s.state.statistics$.getValue(),Ke=(Ne==null?void 0:Ne.oneStat)||this.createOneStat(e,i),Oe=this.createThinOneStat(e,i),et;rt&&(et=new Nw({pixels:rt})),(Ke||Oe)&&(this.statistics=new yu(Ke,Oe,et,Ne==null?void 0:Ne.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new fa(this.uiConfig.sentry,{version:rl,env:Kc},{movieId:Je,albumId:w,place:y,autoplay:(l=E&&!this.interactiveController)!=null?l:!1,mobile:Ae!=null?Ae:ve,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=Qs(Qs({},this.sentry),fa.getInstance());let Qt=!!_e,Et=[],yi="tooltip_interactive_go_back_disabled_first";if(Qt&&this.interactiveController){let Zt=this.interactiveController.state.isInitialChapter$.getValue(),dt=this.interactiveController.getHistoryState();Zt&&Et.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Et.push("SEEK_TO_INTERACTIVE_BUTTON"),dt.hasPrevChapter$.getValue()||(Et.push("PLAY_PREV_CHAPTER_BUTTON"),Zt||(dt.isGoBackLimited$.getValue()?yi="tooltip_interactive_go_back_disabled_limit":yi="tooltip_interactive_go_back_disabled"))}let bi=()=>{var Zt;this.isInited=!1,this.prevIsid=void 0;let dt=(o==null?void 0:o.info.isEnded$.getValue())&&((Zt=this.interactiveController)==null?void 0:Zt.state.isEndChapter$.getValue());ue.onReplayInteractiveVideo&&!dt?ue.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=H1({player:o,interfaceLanguage:pe,isCyrillicRelatedInterface:se,videoId:Je,isClip:zt,isLiveCatchUpMode:Ve,isAudioDisabled:ae,statAuthToken:S,callbacks:ue,webApi:Ue,videoEpisodes:Yt,previewThumbsData:Ie,canDownload:De,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Et,isInteractive:Qt,saveRate:J,interactiveRanges$:(f=this.interactiveController)==null?void 0:f.state.interactiveRanges$,isInteractiveTime$:(m=this.interactiveController)==null?void 0:m.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:bi,playPrevChapterDisabledTooltip:yi,hasInteractiveBranches:!!((x=(p=this.interactiveController)==null?void 0:p.getChapterBranches())!=null&&x.length),additionalButtons:this.uiConfig.features.additionalButtons?ge:[],additionalSettingsMenuItems:He!=null?He:[],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:ct}=this.microStoresRoot=C0(),Ri=()=>{var Zt,dt,di,Ni,Mt,li;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Lt=>{var pt;return(pt=ue==null?void 0:ue.onCurrentFormatChanged)==null?void 0:pt.call(ue,Lt)})),this.subscription.add(ct.interactiveControlsOpacity$.subscribe(Lt=>{var pt;Lt!==null&&((pt=this==null?void 0:this.interactiveController)==null||pt.setDisabledControls(Lt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Lt=>{var pt;return(pt=ue==null?void 0:ue.onThroughputEstimationChanged)==null?void 0:pt.call(ue,Lt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Lt=>{var pt;return(pt=ue==null?void 0:ue.onTrafficSavingEnabledChanged)==null?void 0:pt.call(ue,Lt)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(Lt=>{var pt;return(pt=ue==null?void 0:ue.onHighQualityEnabledChanged)==null?void 0:pt.call(ue,Lt)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(Lt=>{var pt;return(pt=ue==null?void 0:ue.onAutoQualityEnabledChanged)==null?void 0:pt.call(ue,!!Lt)})),this.subscription.add(new Iw(Lt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(pt=>Lt.next(pt)))}).pipe(Aw(1)).subscribe(Lt=>{var pt;return(pt=ue==null?void 0:ue.onCurrentPlaybackRateChanged)==null?void 0:pt.call(ue,Lt)})),this.subscription.add(this.store.state.volume$.subscribe(Lt=>{var pt;return(pt=ue==null?void 0:ue.onVolumeChange)==null?void 0:pt.call(ue,Lt)})),this.subscription.add(this.store.state.muted$.subscribe(Lt=>{var pt,pi,Io,qi;if(Lt)(pt=ue==null?void 0:ue.onMute)==null||pt.call(ue);else{let ni=(Io=((pi=this.store)==null?void 0:pi.state.volume$)&&xe(this.store.state.volume$))!=null?Io:0;(qi=ue==null?void 0:ue.onUnmute)==null||qi.call(ue,ni)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Lt=>{var pt;return(pt=ue==null?void 0:ue.onVideoBitrateChanged)==null?void 0:pt.call(ue,Lt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Lt=>{var pt;let pi=(pt=this.store)==null?void 0:pt.ui.controls.disabledControls$;pi&&(Lt&&!pi.includes(td)&&pi.add(td),Lt||pi.remove(td))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(Lt=>Wu(this,null,function*(){var pt;if(!I0.browser.isSamsungBrowser||!Lt||!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(Lt=>{var pt;return(pt=ue==null?void 0:ue.onVSIDChanged)==null?void 0:pt.call(ue,Lt)})),this.initMediaSession(),O(Fn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:_t,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:lt,thumbUrl:xt,subtitles:qt,live:Ce,preload:T,autoplay:E,muted:I,volume:R,fromTime:M,canRewindLive:k,supportLink:j,showAds:H,adsSlotId:F,adsParams:ie,adsPreviewParam:Z,adsAutoplayParam:Y,duration:ti,logoClickable:me,logoHidden:$e,isMobile:Ae!=null?Ae:ve,failoverHosts:N,fullScreenTarget:le,saveRate:J,shadowRootContainer:this.shadowRootContainer,showMiniTimer:ne,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:re.nextVideoTitle,endScreenVideoThumb:re.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Me,showEndScreen:Pe,showAutoplayNext:We},!0);let rn={target:this.playerContainer,props:r(Fn)};this.svelteRootComponent=rs(hv,rn),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(di=(dt=(Zt=this.videoConfig)==null?void 0:Zt.callbacks)==null?void 0:dt.onInited)==null||di.call(dt)),(Ni=this.internalsExposure)==null||Ni.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((li=(Mt=this.videoConfig)==null?void 0:Mt.callbacks)!=null&&li.onDevNullLog)?oc.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):oc.destroy("ui")};this.coreConfig.asyncResolveClientChecker?I0.isInited$.subscribe(Zt=>{Zt&&(console.log("UI SDK async start"),Ri())}):Ri()}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&&Iv(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 Wu(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: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$: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]=xw(Qs({},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 R,I,M,k,j,H;if(!this.store||!this.microStoresRoot)return;let F=w.getValue();if(T==="action-choice"&&E==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(id)),T==="action-choice-canceled"){let Q=xe(this.store.state.isPlaying$)||F;if(((M=(R=this.videoConfig)==null?void 0:R.isTouch)!=null?M:(I=this.videoConfig)!=null&&I.isMobile)&&Q){this.store.ui.interactiveHideMobileControls.set(!0);return}(H=(k=this.videoConfig)==null?void 0:(j=k.callbacks).onDisabledInteractiveClick)==null||H.call(j)}})),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(id)})),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 R,I,M;E.length&&((M=(I=(R=this.videoConfig)==null?void 0:R.callbacks)==null?void 0:I.onInteractiveHistoryChanged)==null||M.call(I,E))}))}(l=(s=this.videoConfig)==null?void 0:s.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(T=>{var E,R,I;(I=(E=this.videoConfig)==null?void 0:(R=E.callbacks).onInteractiveChapterChanged)==null||I.call(R,T.chapter,T.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var T,E,R,I;(T=this.microStoresRoot)==null||T.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(I=(E=this.videoConfig)==null?void 0:(R=E.callbacks).onInteractiveTimeIndicatorClick)==null||I.call(R)})),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,m,p,x,w,y,S,T,E,R,I,M,k,j,H,F,Q,Z,Y,pe,se;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=jd(Ow,Cw(e,me=>me instanceof HTMLElement?me:void 0)),this.playerId=Mw(e.playerId),this.uiConfig=_h((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 Pw("ui",this.playerId))),oc.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:[ww()]}),Iv(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(p=(m=this.uiConfig.features.mediaSession)!=null?m:this.videoConfig.isMediaSessionEnabled)!=null?p:!0),Iv(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,(R=this.videoConfig).autoplay&&(R.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(I=this.uiConfig.ads.enable)!=null?I:this.videoConfig.showAds,this.videoConfig.adsSlotId=(M=this.uiConfig.ads.slot)!=null?M:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(k=this.uiConfig.ads.preview)!=null?k:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((j=this.uiConfig.showLogo)!=null?j:!this.videoConfig.logoHidden),(H=this.videoConfig).canRewindLive&&(H.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(F=this.videoConfig.supportLink)!=null?F:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(Q=this.uiConfig.features.endScreen)!=null?Q:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(Z=this.uiConfig.features.autoplayNext)!=null?Z:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(Y=this.uiConfig.features.nextPrevButtons)!=null?Y:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((pe=this.videoConfig.videos)!=null&&pe[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=Du.getLatestSupportedVersion(me):this.pictureInPictureApi=new ma(me)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Bu:void 0,this.slotsApi=this.uiConfig.features.slots?new Vu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Hu(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteErrorComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),b0(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(se=this.slotsApi)==null||se.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new zu(this._shadowRoot):void 0}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();r(Fn)&&(r(Fn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Fn).nextButtonActive=this.isNextButtonActive(),r(Fn).prevButtonActive=this.isPrevButtonActive(),r(Fn).endScreenVideoTitle=o.nextVideoTitle,r(Fn).endScreenVideoThumb=o.nextVideoThumb,r(Fn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}=Qs({},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(Fn)&&(r(Fn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(Fn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Fn).nextButtonActive=this.isNextButtonActive(),r(Fn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(e)}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 Wu(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 Wu(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(kw()).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&&aa(e)}};import{InterfaceLanguage as fie,VKNumericLanguage as mie,loadVKLangPack as vie}from"@vkontakte/videoplayer-shared/es2015";import{VideoQuality as hie,VideoFormat as _ie}from"@vkontakte/videoplayer-core/es2015";var rie=()=>{window.customElements.define("vk-video-player",Ku)};export{xu as ControlButtonType,as as GridTypes,fie as InterfaceLanguage,fd as MenuItemType,$s as PlayerPhase,rl as VERSION,mie as VKNumericLanguage,_ie as VideoFormat,hie as VideoQuality,vie as loadVKLangPack,rie as registerPlayerWebComponent};
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 av(t,e){U(e,!0),Q(t,M5);let[i,o]=Fe(),n=()=>C(ti,"$isLive$",i),s=()=>C(ut,"$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),Z=m(e,"showAds",7),H=m(e,"adsSlotId",7,void 0),F=m(e,"adsParams",7,void 0),K=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),ye=m(e,"showNextPrevButtons",7,!1),me=m(e,"nextButtonActive",7,!1),Pe=m(e,"prevButtonActive",7,!1),re=m(e,"endScreenVideoTitle",7,void 0),Re=m(e,"endScreenVideoThumb",7,void 0),se=m(e,"isOneVideoPlaylist",7,!1),N=m(e,"supportLink",7),De=m(e,"shadowRootContainer",7),de=m(e,"outerContainerRef",7),ge=m(e,"fullScreenTarget",7,void 0),ie=m(e,"failoverHosts",7,void 0),ve=m(e,"showMiniTimer",7,!1),He=m(e,"saveRate",7),fe=m(e,"seekToInteractive",7,l_),at=m(e,"playPrevChapter",7,l_),X=m(e,"volumeMultiplier",7),Me=m(e,"showAutoplayNext",7),ke=m(e,"showEndScreen",7,!0),We=m(e,"keyboardControls",15,void 0),{subscribers:lt,stores:mt}=a();dh(f());let vt=kt(),Ct=f().logoLink,je=d().ui.debugPanelVisible,Ft=d().ui.playerSize,ti=d().state.isLive$,Wt=d().state.isInteractive&&sv.device.isAndroid,ne=Y(void 0),Ut=null,_e=Y(!1);d().getAdmanWrapper().init({switchFromAdsToVideo:d().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:d().actions.internal.switchFromVideoToAds,setMuted:d().actions.external.setMuted},d().ads,{vsid:d().vsid}),bh(d(),mt),qe(()=>{var D,ze;d().ui.isMobile.set(pe()),(ze=(D=u().callbacks)==null?void 0:D.onDomReady)==null||ze.call(D)});let Se=(D=!1)=>{O(_e,!0),D?d().actions.external.firstStart(Z()):d().actions.internal.firstStart(Z())},le=()=>{if(vt.features.qualityDetailsSubMenuEnabled){let D=Hh(d().videoId);if(D)switch(D.type){case"high_quality":d().actions.internal.setHighQualityEnabled(!0,D.appliesTo);break;case"traffic_saving":d().actions.internal.setTrafficSavingEnabled(!0,D.appliesTo);break;case"exact_quality":d().actions.internal.setQuality(D.quality);break}}else{Fh(d().videoId),ef()&&d().actions.internal.setTrafficSavingEnabled(!0);let ze=Yp(d().videoId);ze&&d().actions.internal.setQuality(ze)}};function Ne(D){var ci,ui,yo;let ze=l()||D;ze&&d().initVideo({container:r(ne),sources:ze,failoverHosts:ie(),subtitles:y(),volumeMultiplier:X()});let pt=I5.get(Yl)==="true";je.set(pt),I()>0&&d().actions.external.seekTime(I());let zt=pe()?vt.volumeDefault:(ui=(ci=V())!=null?ci:zc())!=null?ui:vt.volumeDefault,ct=(yo=k())!=null?yo:Vh();if(d().actions.external.setVolume(zt),d().actions.external.setMuted(ct),d().getAdmanWrapper().setInitialVolume(ct?0:zt),le(),vt.features.saveRate&&He()){let pi=Oh();pi&&!n()&&d().actions.internal.setPlaybackRate(pi)}if(Me()){let pi=Dh();pi&&d().actions.internal.setAutoplayNextEnabled(pi)}d().ui.isAutoplay.set(E()),E()&&Se(),T()&&vt.features.preload&&d().actions.internal.preload()}let Qe=D=>{if(window.ResizeObserver){let ze,pt;Ut=new ResizeObserver(k5(zt=>{let ct=zt[0];if(ct.contentBoxSize){let ci=Array.isArray(ct.contentBoxSize)?ct.contentBoxSize[0]:ct.contentBoxSize;ze=ci.inlineSize,pt=ci.blockSize}else ct.contentRect&&(ze=ct.contentRect.width,pt=ct.contentRect.height);Ft.set({width:ze,height:pt})},300)),Ut.observe(D)}Ft.set({width:D.clientWidth,height:D.clientHeight})},Ve=()=>{document.hidden&&d().actions.external.stop()};Mt(()=>{var pt,zt,ct,ci;Wt&&document.addEventListener("visibilitychange",Ve),vt.debugLog&&d().actions.internal.startLogging(),Qe(r(ne));let D=lt.map(ui=>ui.init({store:d(),microStores:mt,config:u(),interactiveController:w(),uiConfig:f()})),ze=()=>{Wt&&document.removeEventListener("visibilitychange",Ve),Ut==null||Ut.disconnect(),D.forEach(ui=>ui.unsubscribe()),d().destroy()};return((pt=S())==null?void 0:pt.status)==="upcoming"?(d().actions.internal.setLiveWaitingStart(!0),ze):((zt=S())==null?void 0:zt.status)==="waiting"?(d().actions.internal.setLiveWaitingRecover(!0),ze):(((ct=S())==null?void 0:ct.status)==="finished"||((ci=S())==null?void 0:ci.status)==="postlive")&&!(l()&&E5(l()))?(d().actions.internal.setLiveWaitingRecord(!0),ze):(Ne(),ze)});function Ye(){r(_e)?d().actions.external.play():Se(!0)}function Be(){d().actions.external.pause()}function et(D){d().actions.external.setMuted(D)}function Lt(){d().actions.external.toggleSubtitle()}function Kt(D,ze){d().actions.external.changeSubtitle(D,ze)}function tt(){var D;(D=d().webApi.slotsApi)!=null&&D.haveSlots()&&d().actions.external.hideControls()}function wi(){var D;(D=d().webApi.slotsApi)!=null&&D.haveSlots()&&d().actions.external.showControls()}function _i(D){pe()||D>=0&&D<=1&&d().actions.external.setVolume(D)}function it(D){d().actions.internal.seekTime(D,P5.UNKNOWN)}function ri(D){d().actions.external.seekEpisodeStartTime(D)}function jt(){d().actions.external.returnFocusToEpisodes()}function bi(D){d().actions.external.setPlaybackRate(D)}function Lo(D){d().actions.external.setAutoQualityLimits(D)}function $o(){d().actions.external.setQuality("auto")}function Ht(D){d().actions.external.setTrafficSavingEnabled(D)}function li(D){d().actions.external.setHighQualityEnabled(D)}let an=Mu(vt.view),Pt=u().playerView==="preview",ut=d().state.availableSubtitlesList$;if(vt.features.initSubtitles){let D=!1;qe(()=>{if(!D&&s().length){D=!0;let ze;if(vt.features.userVideoPrefs&&d().videoId){let zt=Qc(vt.userSalt,String(d().videoId));zt!=null&&zt.subtitleTrackId&&(ze=s().find(ct=>ct.value===zt.subtitleTrackId))}let pt=of();pt&&(ze!=null||(ze=s().find(zt=>zt.language===pt))),d().actions.internal.setSubtitle(ze)}})}var $i=A5();let Vo;var zi=_($i);{var si=D=>{nv(D,{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 Z()},get adsSlotId(){return H()},get adsParams(){return F()},get adsPreviewParam(){return K()},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 Pe()},get endScreenVideoTitle(){return re()},get endScreenVideoThumb(){return Re()},get isOneVideoPlaylist(){return se()},get supportLink(){return N()},get shadowRootContainer(){return De()},get outerContainerRef(){return de()},get fullScreenTarget(){return ge()},get showMiniTimer(){return ve()},get playerStarted(){return r(_e)},get seekToInteractive(){return fe()},get playPrevChapter(){return at()},firstStart:Se,seekTime:it,get showEndScreen(){return ke()},get showAutoplayNext(){return Me()},get showNextPrevButtons(){return ye()},get videoContainer(){return r(ne)},set videoContainer(ze){O(ne,ze,!0)}})},Go=D=>{var ze=Ke(),pt=he(ze);{var zt=ci=>{rv(ci,{get thumbUrl(){return p()},get outsideDuration(){return j()},get canRewindLive(){return R()},get videoContainer(){return r(ne)},set videoContainer(ui){O(ne,ui,!0)}})},ct=ci=>{iv(ci,{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 Z()},get adsSlotId(){return H()},get adsParams(){return F()},get adsPreviewParam(){return K()},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 Pe()},get endScreenVideoTitle(){return re()},get endScreenVideoThumb(){return Re()},get isOneVideoPlaylist(){return se()},get supportLink(){return N()},get shadowRootContainer(){return De()},get outerContainerRef(){return de()},get fullScreenTarget(){return ge()},get showMiniTimer(){return ve()},get playerStarted(){return r(_e)},get seekToInteractive(){return fe()},get playPrevChapter(){return at()},firstStart:Se,get showEndScreen(){return ke()},get showAutoplayNext(){return Me()},get showNextPrevButtons(){return ye()},get videoContainer(){return r(ne)},set videoContainer(ui){O(ne,ui,!0)},get keyboardControls(){return We()},set keyboardControls(ui){We(ui)}})};L(pt,ci=>{Pt?ci(zt):ci(ct,!1)})}$(D,ze)};L(zi,D=>{pe()?D(si):D(Go,!1)})}h($i),B(D=>{Vo=te($i,1,"root svelte-16kg8zb",null,Vo,D),st($i,an)},[()=>({"root--miui-browser":sv.device.isMobile&&sv.browser.isMiuiBrowser,"visible-outside":Pt})]),$(t,$i);var Un=z({initVideo:Ne,play:Ye,pause:Be,setMuted:et,toggleSubtitle:Lt,changeSubtitle:Kt,hideControls:tt,showControls:wi,setVolume:_i,seekTime:it,seekEpisodeStartTime:ri,returnFocusToEpisodes:jt,setPlaybackRate:bi,setAutoQualityLimits:Lo,setAutoQuality:$o,toggleTrafficSaving:Ht,toggleHighQuality:li,get sources(){return l()},set sources(D){l(D)},get store(){return d()},set store(D){d(D)},get microStoresRoot(){return a()},set microStoresRoot(D){a(D)},get videoConfig(){return u()},set videoConfig(D){u(D)},get uiConfig(){return f()},set uiConfig(D){f(D)},get title(){return v()},set title(D){v(D)},get thumbUrl(){return p()},set thumbUrl(D){p(D)},get interactiveContainer(){return x()},set interactiveContainer(D){x(D)},get interactiveController(){return w()},set interactiveController(D){w(D)},get subtitles(){return y()},set subtitles(D){y(D)},get live(){return S()},set live(D){S(D)},get preload(){return T()},set preload(D){T(D)},get autoplay(){return E()},set autoplay(D){E(D)},get volume(){return V()},set volume(D){V(D)},get muted(){return k()},set muted(D){k(D)},get fromTime(){return I()},set fromTime(D){I(D)},get canRewindLive(){return R()},set canRewindLive(D){R(D)},get showAds(){return Z()},set showAds(D){Z(D)},get adsSlotId(){return H()},set adsSlotId(D){H(D)},get adsParams(){return F()},set adsParams(D){F(D)},get adsPreviewParam(){return K()},set adsPreviewParam(D){K(D)},get adsAutoplayParam(){return ee()},set adsAutoplayParam(D){ee(D)},get duration(){return j()},set duration(D){j(D)},get logoClickable(){return ue()},set logoClickable(D){ue(D)},get logoHidden(){return oe()},set logoHidden(D){oe(D)},get isMobile(){return pe()},set isMobile(D){pe(D)},get showNextPrevButtons(){return ye()},set showNextPrevButtons(D){ye(D)},get nextButtonActive(){return me()},set nextButtonActive(D){me(D)},get prevButtonActive(){return Pe()},set prevButtonActive(D){Pe(D)},get endScreenVideoTitle(){return re()},set endScreenVideoTitle(D){re(D)},get endScreenVideoThumb(){return Re()},set endScreenVideoThumb(D){Re(D)},get isOneVideoPlaylist(){return se()},set isOneVideoPlaylist(D){se(D)},get supportLink(){return N()},set supportLink(D){N(D)},get shadowRootContainer(){return De()},set shadowRootContainer(D){De(D)},get outerContainerRef(){return de()},set outerContainerRef(D){de(D)},get fullScreenTarget(){return ge()},set fullScreenTarget(D){ge(D)},get failoverHosts(){return ie()},set failoverHosts(D){ie(D)},get showMiniTimer(){return ve()},set showMiniTimer(D){ve(D)},get saveRate(){return He()},set saveRate(D){He(D)},get showAutoplayNext(){return Me()},set showAutoplayNext(D){Me(D)},get seekToInteractive(){return fe()},set seekToInteractive(D){fe(D)},get playPrevChapter(){return at()},set playPrevChapter(D){at(D)},get volumeMultiplier(){return X()},set volumeMultiplier(D){X(D)},get showEndScreen(){return ke()},set showEndScreen(D){ke(D)},get keyboardControls(){return We()},set keyboardControls(D){We(D)}});return o(),Un}var L5=Ee('<svg><!><path fill="currentColor" d="M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"></path></svg>');function lv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=L5();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}function dv(t,e){let i=m(e,"isWhite",3,!1),o=g(()=>i()?"color: #fff;":"color: #909499;");lv(t,{get style(){return r(o)}})}var V5=M('<div class="title svelte-1y9fytq"> </div>'),R5=M('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),N5={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 cv(t,e){Q(t,N5);var i=R5(),o=_(i);{var n=d=>{var a=V5(),u=_(a,!0);h(a),B(()=>$e(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);dv(d,{get isWhite(){return r(a)}})};L(s,d=>{(!e.title||!e.thumbUrl)&&d(l)})}h(i),B(()=>st(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),$(t,i)}var O5=M('<div class="playerError svelte-m5iv29"><!></div>'),B5={hash:"svelte-m5iv29",code:".playerError.svelte-m5iv29 {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}"};function uv(t){Q(t,B5);var e=O5(),i=_(e);ka(i,{}),h(e),$(t,e)}import{now as mw,ValueSubject as vw}from"@vkontakte/videoplayer-shared/es2015";import{cloneDeepWith as gw,InterfaceLanguage as hw,isNonNullable as _v,Logger as _w,Observable as bw,Subscription as h_,once as $w,InternalsExposure as yw,skip as xw,getPlayerId as ww}from"@vkontakte/videoplayer-shared/es2015";import{clientChecker as __,isMobile as Sw}from"@vkontakte/videoplayer-core/es2015";import{OneStat as Cw,ThinOneStat as Tw,MediascopePixel as Ew}from"@vkontakte/videoplayer-statistics/es2015";import{Logger as D5,Subscription as H5}from"@vkontakte/videoplayer-shared/es2015";var Lu=class{constructor(){this.subscription=new H5,this.logger=new D5,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=we(e.state.currentPlaybackRate$),n=we(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 vv,detectEmbed as q5}from"@vkontakte/videoplayer-shared/es2015";var F5=Ee('<svg><!><g fill="var(--btn-color, #fff)"><path d="m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"></path><path d="M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"></path></g></svg>');function pv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=F5();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var U5=M('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),z5={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 fv(t,e){U(e,!0),Q(t,z5);let[i,o]=Fe(),n=()=>C(u,"$interfaceLanguage$",i),s=()=>C(f,"$isMobile$",i),l=Ie(),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=Mu(d.view);var w=U5();let y;var S=_(w);let T;var E=_(S);pv(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),st(w,x),T=te(S,1,"dummy-image svelte-1pbsod4",null,T,R),$e(k,r(p))},[()=>({"is-pip-api":a}),()=>({desktop:!s()})]),$(t,w),z(),o()}var W5=Object.defineProperty,K5=(t,e,i)=>e in t?W5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,yl=(t,e,i)=>K5(t,typeof e!="symbol"?e+"":e,i),mv=(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())}),Q5=460,G5=280,Wd=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 vv(!1),isEnabled$:new vv(!1),type:1}),this.info.isEnabled$=new vv(e)}isSupported(){let{isEmbed:e}=q5();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 mv(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:Q5,height:G5,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(fv,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||(aa(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})})}exit(){return mv(this,null,function*(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})})}dispose(){return mv(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 d_(t){return t instanceof Wd}var Vu=class{static getLatestSupportedVersion(e){let i=new ma(e),o=new Wd(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Kd(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 c_="Inner error. Unexpectedly root annotation container null reference exception",u_="Annotation with such name already exists",p_="Annotation with such name does not exist";var xl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as j5,Subscription as Y5,throttleFn as Z5}from"@vkontakte/videoplayer-shared/es2015";var X5="1",J5=100,Ru=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new Y5}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=Z5(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},J5);this.subscriptions.add(j5(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(c_);if(this.annotations.has(e))throw new xl(u_);i.style.zIndex=(o=i.style.zIndex)!=null?o:X5,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(p_);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let 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 Nu,Subscription as ew}from"@vkontakte/videoplayer-shared/es2015";var sn=class{init({store:e,microStores:i,interactiveController:o,config:n}){return Nu(e),Nu(i),Nu(n),n.interactiveData&&Nu(o),this.subscription=new ew,this.subscription}};var qd=class extends sn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Bt(W({},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 Qd=class extends sn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Bt(W({},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=we(f),p=()=>v&&we(u);return o.add(u.subscribe(x=>{if(!v)return;let w=we(l);we(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=we(d);if(p()){this.state$.set(!0);return}w&&this.state$.set(!x)})),o}};var Gd=class extends sn{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 tw}from"@vkontakte/videoplayer-shared/es2015";var gv=ae(!1),Ou=null,jd=class extends sn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Bt(W({},gv),{set:(i,o=!1)=>{i!==we(gv)&&(this.clearTimeout(),gv.set(i),!i&&Ou&&(Ou=!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=>{we(l)&&v&&this.state$.set(!1)}));let f=(s==null?void 0:s.interactiveData)||{tooltipHelpHintActive:!1};return o.add(tw({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&&Ou===null&&(Ou=!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 iw,noop as ow}from"@vkontakte/videoplayer-shared/es2015";var Yd=class extends sn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=Bt(W({},ae(null)),{toggle:ow});this.checkIfShouldHide=i=>zs(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:s}=i,l=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=()=>xt(this,null,function*(){if(this.checkIfShouldHide(we(l)))return;let a=we(this.state$),{isEnded$:u,playbackState$:f}=n.state,{disabledControls$:v}=n.ui.controls,p=we(u),x=we(f);if(a)try{yield s==null?void 0:s.toggleGraphView(!1),this.state$.set(!1),v.remove(Up),!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(Up),!p&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}}),o.add(iw({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 f_}from"@vkontakte/videoplayer-shared/es2015";var Zd=class extends sn{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 f_(!1),isEnabled$:new f_(!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 sw,filterChanged as aw}from"@vkontakte/videoplayer-shared/es2015";import{safeStorage as hv}from"@vkontakte/videoplayer-shared/es2015";var m_=({maxShowCount:t,timeout:e})=>{let i=[t!==0?nw({maxCount:t}):void 0,e!==0?rw({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},nw=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,hv.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}}},rw=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(hv.get(e)||"{}")}catch(s){return{}}},o=s=>hv.set(e,JSON.stringify(s)),n=s=>{let l=i();delete l[s],o(l)};return{notificationShowed:s=>{o(Bt(W({},i()),{[s]:{timeout:t,launchTime:Date.now()}}))},canShowNotification:s=>{let l=i()[s];if(l){let d=Date.now()-l.launchTime>t;return d&&n(s),d}else return!0}}};var Xd=class extends sn{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=m_({maxShowCount:s,timeout:l});let u=n.getPlayer();return o.add(u.events.severeStallOccured$.pipe(aw(),sw(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 v_=()=>[qd,Qd,Gd,jd,Yd,Zd,Xd].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:Bt(W({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});import{devNull as Jd}from"@vkontakte/videoplayer-shared/es2015";var Bu=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 lw=Object.defineProperty,dw=Object.defineProperties,cw=Object.getOwnPropertyDescriptors,g_=Object.getOwnPropertySymbols,uw=Object.prototype.hasOwnProperty,pw=Object.prototype.propertyIsEnumerable,bv=(t,e,i)=>e in t?lw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,qs=(t,e)=>{for(var i in e||(e={}))uw.call(e,i)&&bv(t,i,e[i]);if(g_)for(var i of g_(e))pw.call(e,i)&&bv(t,i,e[i]);return t},fw=(t,e)=>dw(t,cw(e)),Qt=(t,e,i)=>bv(t,typeof e!="symbol"?e+"":e,i),Du=(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())}),Iw={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:hw.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:Sw(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Fn=Y(void 0),Hu=class extends HTMLElement{constructor(){super(),Qt(this,"svelteStubComponent"),Qt(this,"svelteRootComponent"),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 vw(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:v,refreshStatAuthToken:p,autoplay:x,isMobile:w,isTouch:y,refDomain:S,deviceId:T,interactiveData:E}=Kd(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 Cw(qs({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)}),qs({refreshAuthToken:p,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}catch(H){console.error(H),this.log({message:H.message})}}),Jd.create("ui"),this.logger=new _w,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new h_,this.interactiveSubscription=new h_,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=rs(uv,{target:this.playerContainer}))})}connectedCallback(){var e,i;if(this.rootContainer)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,n=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,s=ai({title:o,thumbUrl:n}),l={target:this.playerContainer,props:s};this.svelteStubComponent=rs(cv,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(),Jd.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}=Kd(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new Tw.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:Z,showAds:H,adsSlotId:F,adsParams:K={},adsPreviewParam:ee,adsAutoplayParam:j,interfaceLanguage:ue,isCyrillicRelatedInterface:oe,logoClickable:pe,logoHidden:ye,isMobile:me,isTouch:Pe,isAudioDisabled:re,isLiveCatchUpMode:Re,fullScreenTarget:se,failoverHosts:N,canDownload:De,callbacks:de,interactiveData:ge,showThumbTimer:ie,additionalButtons:ve=[],additionalSettingsMenuItems:He=[],additionalContextMenuItems:fe=[],repeat:at,saveRate:X,volumeMultiplier:Me,showEndScreen:ke,showAutoplayNext:We,mediascopePixels:lt}=Kd(this.videoConfig,i),{sources:mt,title:vt,thumbUrl:Ct,unitedVideoId:je,isClip:Ft=!1,duration:ti,adsParams:Gt={},videoEpisodes:Wt,previewThumbsData:ne,subtitles:Ut,live:_e}=e;if(!mt&&!_e){let jt=new Error("empty sources and live");this.fatalError$.next(jt),(n=de.onCrashed)==null||n.call(de,jt.message);return}let Se=qs(qs({},K),Gt),le=this.getNextVideoInfo(),Ne={sources:mt,title:vt,thumbUrl:Ct,subtitles:Ut,unitedVideoId:je,isClip:Ft,live:_e,albumId:w,statPlace:y,autoplay:E,muted:k,volume:V,fromTime:I,canRewindLive:R,showAds:H,adsSlotId:F,adsParams:Se,adsPreviewParam:ee,adsAutoplayParam:j,duration:ti,logoClickable:pe,logoHidden:ye,isTouch:Pe!=null?Pe:me,repeat:at,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:le.nextVideoTitle,endScreenVideoThumb:le.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Qe={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(Ne)}`});let Ve=(s=this.interactiveController)==null?void 0:s.state.statistics$.getValue(),Ye=(Ve==null?void 0:Ve.oneStat)||this.createOneStat(e,i),Be=this.createThinOneStat(e,i),et;lt&&(et=new Ew({pixels:lt})),(Ye||Be)&&(this.statistics=new gu(Ye,Be,et,Ve==null?void 0:Ve.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new fa(this.uiConfig.sentry,{version:sl,env:Hc},{movieId:je,albumId:w,place:y,autoplay:(l=E&&!this.interactiveController)!=null?l:!1,mobile:Pe!=null?Pe:me,clip:Ft}),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=qs(qs({},this.sentry),fa.getInstance());let Kt=!!ge,tt=[],wi="tooltip_interactive_go_back_disabled_first";if(Kt&&this.interactiveController){let jt=this.interactiveController.state.isInitialChapter$.getValue(),bi=this.interactiveController.getHistoryState();jt&&tt.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||tt.push("SEEK_TO_INTERACTIVE_BUTTON"),bi.hasPrevChapter$.getValue()||(tt.push("PLAY_PREV_CHAPTER_BUTTON"),jt||(bi.isGoBackLimited$.getValue()?wi="tooltip_interactive_go_back_disabled_limit":wi="tooltip_interactive_go_back_disabled"))}let _i=()=>{var jt;this.isInited=!1,this.prevIsid=void 0;let bi=(o==null?void 0:o.info.isEnded$.getValue())&&((jt=this.interactiveController)==null?void 0:jt.state.isEndChapter$.getValue());de.onReplayInteractiveVideo&&!bi?de.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=P1({player:o,interfaceLanguage:ue,isCyrillicRelatedInterface:oe,videoId:je,isClip:Ft,isLiveCatchUpMode:Re,isAudioDisabled:re,statAuthToken:S,callbacks:de,webApi:Qe,videoEpisodes:Wt,previewThumbsData:ne,canDownload:De,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:tt,isInteractive:Kt,saveRate:X,interactiveRanges$:(f=this.interactiveController)==null?void 0:f.state.interactiveRanges$,isInteractiveTime$:(v=this.interactiveController)==null?void 0:v.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:_i,playPrevChapterDisabledTooltip:wi,hasInteractiveBranches:!!((x=(p=this.interactiveController)==null?void 0:p.getChapterBranches())!=null&&x.length),additionalButtons:this.uiConfig.features.additionalButtons?ve:[],additionalSettingsMenuItems:He!=null?He:[],additionalContextMenuItems:fe!=null?fe:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:at&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:it}=this.microStoresRoot=v_(),ri=()=>{var jt,bi,Lo,$o,Ht,li;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Pt=>{var ut;return(ut=de==null?void 0:de.onCurrentFormatChanged)==null?void 0:ut.call(de,Pt)})),this.subscription.add(it.interactiveControlsOpacity$.subscribe(Pt=>{var ut;Pt!==null&&((ut=this==null?void 0:this.interactiveController)==null||ut.setDisabledControls(Pt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Pt=>{var ut;return(ut=de==null?void 0:de.onThroughputEstimationChanged)==null?void 0:ut.call(de,Pt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Pt=>{var ut;return(ut=de==null?void 0:de.onTrafficSavingEnabledChanged)==null?void 0:ut.call(de,Pt)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(Pt=>{var ut;return(ut=de==null?void 0:de.onHighQualityEnabledChanged)==null?void 0:ut.call(de,Pt)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(Pt=>{var ut;return(ut=de==null?void 0:de.onAutoQualityEnabledChanged)==null?void 0:ut.call(de,!!Pt)})),this.subscription.add(new bw(Pt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(ut=>Pt.next(ut)))}).pipe(xw(1)).subscribe(Pt=>{var ut;return(ut=de==null?void 0:de.onCurrentPlaybackRateChanged)==null?void 0:ut.call(de,Pt)})),this.subscription.add(this.store.state.volume$.subscribe(Pt=>{var ut;return(ut=de==null?void 0:de.onVolumeChange)==null?void 0:ut.call(de,Pt)})),this.subscription.add(this.store.state.muted$.subscribe(Pt=>{var ut,$i,Vo,zi;if(Pt)(ut=de==null?void 0:de.onMute)==null||ut.call(de);else{let si=(Vo=(($i=this.store)==null?void 0:$i.state.volume$)&&we(this.store.state.volume$))!=null?Vo:0;(zi=de==null?void 0:de.onUnmute)==null||zi.call(de,si)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Pt=>{var ut;return(ut=de==null?void 0:de.onVideoBitrateChanged)==null?void 0:ut.call(de,Pt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Pt=>{var ut;let $i=(ut=this.store)==null?void 0:ut.ui.controls.disabledControls$;$i&&(Pt&&!$i.includes(Zl)&&$i.add(Zl),Pt||$i.remove(Zl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(Pt=>Du(this,null,function*(){var ut;if(!__.browser.isSamsungBrowser||!Pt||!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(Pt=>{var ut;return(ut=de==null?void 0:de.onVSIDChanged)==null?void 0:ut.call(de,Pt)})),this.initMediaSession(),O(Fn,{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:Ut,live:_e,preload:T,autoplay:E,muted:k,volume:V,fromTime:I,canRewindLive:R,supportLink:Z,showAds:H,adsSlotId:F,adsParams:Se,adsPreviewParam:ee,adsAutoplayParam:j,duration:ti,logoClickable:pe,logoHidden:ye,isMobile:Pe!=null?Pe:me,failoverHosts:N,fullScreenTarget:se,saveRate:X,shadowRootContainer:this.shadowRootContainer,showMiniTimer:ie,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:le.nextVideoTitle,endScreenVideoThumb:le.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Me,showEndScreen:ke,showAutoplayNext:We},!0);let an={target:this.playerContainer,props:r(Fn)};this.svelteRootComponent=rs(av,an),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Lo=(bi=(jt=this.videoConfig)==null?void 0:jt.callbacks)==null?void 0:bi.onInited)==null||Lo.call(bi)),($o=this.internalsExposure)==null||$o.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((li=(Ht=this.videoConfig)==null?void 0:Ht.callbacks)!=null&&li.onDevNullLog)?Jd.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Jd.destroy("ui")};this.coreConfig.asyncResolveClientChecker?__.isInited$.subscribe(jt=>{jt&&(console.log("UI SDK async start"),ri())}):ri()}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&&_v(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 Du(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?we(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]=fw(qs({},T.config),{title:(f==null?void 0:f.title)||T.config.title});let E=S?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(T.player,E),S&&(S=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:T,actionType:E})=>{var V,k,I,R,Z,H;if(!this.store||!this.microStoresRoot)return;let F=w.getValue();if(T==="action-choice"&&E==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Xl)),T==="action-choice-canceled"){let K=we(this.store.state.isPlaying$)||F;if(((I=(V=this.videoConfig)==null?void 0:V.isTouch)!=null?I:(k=this.videoConfig)!=null&&k.isMobile)&&K){this.store.ui.interactiveHideMobileControls.set(!0);return}(H=(R=this.videoConfig)==null?void 0:(Z=R.callbacks).onDisabledInteractiveClick)==null||H.call(Z)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:T,removeAllOpenURI:E})=>{this.store&&T==="container-fake-removed"&&E&&this.store.ui.controls.disabledControls$.remove(Xl)})),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,Z,H,F,K,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=Kd(Iw,gw(e,pe=>pe instanceof HTMLElement?pe:void 0)),this.playerId=ww(e.playerId),this.uiConfig=lh((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 yw("ui",this.playerId))),Jd.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:[mw()]}),_v(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(p=(v=this.uiConfig.features.mediaSession)!=null?v:this.videoConfig.isMediaSessionEnabled)!=null?p:!0),_v(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=!((Z=this.uiConfig.showLogo)!=null?Z:!this.videoConfig.logoHidden),(H=this.videoConfig).canRewindLive&&(H.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(F=this.videoConfig.supportLink)!=null?F:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(K=this.uiConfig.features.endScreen)!=null?K: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=Vu.getLatestSupportedVersion(pe):this.pictureInPictureApi=new ma(pe)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Lu:void 0,this.slotsApi=this.uiConfig.features.slots?new ku:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Ru(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]),d_(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(oe=this.slotsApi)==null||oe.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new Bu(this._shadowRoot):void 0}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();r(Fn)&&(r(Fn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Fn).nextButtonActive=this.isNextButtonActive(),r(Fn).prevButtonActive=this.isPrevButtonActive(),r(Fn).endScreenVideoTitle=o.nextVideoTitle,r(Fn).endScreenVideoThumb=o.nextVideoThumb,r(Fn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}=qs({},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(Fn)&&(r(Fn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(Fn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Fn).nextButtonActive=this.isNextButtonActive(),r(Fn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(e)}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 Du(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 Du(this,null,function*(){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=we(this.store.state.positionExact$),l=we(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe($w()).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&&aa(e)}};import{InterfaceLanguage as Yte,VKNumericLanguage as Zte,loadVKLangPack as Xte}from"@vkontakte/videoplayer-shared/es2015";import{VideoQuality as eie,VideoFormat as tie}from"@vkontakte/videoplayer-core/es2015";var Ute=()=>{window.customElements.define("vk-video-player",Hu)};export{hu as ControlButtonType,as as GridTypes,Yte as InterfaceLanguage,dd as MenuItemType,$s as PlayerPhase,sl as VERSION,Zte as VKNumericLanguage,tie as VideoFormat,eie as VideoQuality,Xte as loadVKLangPack,Ute as registerPlayerWebComponent};