@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.cjs.js +66 -66
- package/es2015.esm.js +66 -66
- package/es2018.cjs.js +66 -66
- package/es2018.esm.js +66 -66
- package/es2024.cjs.js +66 -66
- package/es2024.esm.js +66 -66
- package/esnext.cjs.js +66 -66
- package/esnext.esm.js +66 -66
- package/evergreen.esm.js +66 -66
- package/package.json +5 -5
- package/types/config.d.ts +0 -4
- package/types/store/index.d.ts +0 -5
- package/types/translation/types.d.ts +1 -1
package/es2018.esm.js
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.72-dev.
|
|
3
|
-
*
|
|
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
|
|
6
|
+
var h0=Object.defineProperty;var gv=t=>{throw TypeError(t)};var _0=(t,e,i)=>e in t?h0(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var Gn=(t,e,i)=>_0(t,typeof e!="symbol"?e+"":e,i),Wu=(t,e,i)=>e.has(t)||gv("Cannot "+i);var ki=(t,e,i)=>(Wu(t,e,"read from private field"),i?i.call(t):e.get(t)),Cs=(t,e,i)=>e.has(t)?gv("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),La=(t,e,i,o)=>(Wu(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),hv=(t,e,i)=>(Wu(t,e,"access private method"),i);var Ts="[",Es="[!",Ks="]",Yr={};var Yi=Symbol(),Pn=Symbol("filename"),_v=Symbol("hmr"),bv="http://www.w3.org/1999/xhtml",sc="http://www.w3.org/2000/svg";var Ku="@attach";var ac=!0;var yv,xv,$v=(xv=(yv=globalThis.process)==null?void 0:yv.env)==null?void 0:xv.NODE_ENV,Me=$v&&!$v.toLowerCase().startsWith("prod");var jn=Array.isArray,wv=Array.prototype.indexOf,$l=Array.from,qu=Object.keys,ro=Object.defineProperty,Yo=Object.getOwnPropertyDescriptor,lc=Object.getOwnPropertyDescriptors,Qu=Object.prototype,Sv=Array.prototype,qs=Object.getPrototypeOf,Gu=Object.isExtensible;function Is(t){return typeof t=="function"}var de=()=>{};function Cv(t){return t()}function ks(t){for(var e=0;e<t.length;e++)t[e]()}var Bo=Symbol("$state"),Va=Symbol("legacy props"),Tv=Symbol(""),dc=Symbol("proxy path"),cc=1,Ra=3,Yn=8;function uc(t){return t===this.v}function Na(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Ev(t,e){return t!==e}function Oa(t){return!Na(t,this.v)}function Iv(){if(Me){let t=new Error(`derived_references_self
|
|
7
7
|
A derived value cannot reference itself recursively
|
|
8
|
-
https://svelte.dev/e/derived_references_self`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/derived_references_self")}function
|
|
8
|
+
https://svelte.dev/e/derived_references_self`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/derived_references_self")}function kv(t){if(Me){let e=new Error(`effect_in_teardown
|
|
9
9
|
\`${t}\` cannot be used inside an effect cleanup function
|
|
10
|
-
https://svelte.dev/e/effect_in_teardown`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function
|
|
10
|
+
https://svelte.dev/e/effect_in_teardown`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function Pv(){if(Me){let t=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Av(t){if(Me){let e=new Error(`effect_orphan
|
|
11
11
|
\`${t}\` can only be used inside an effect (e.g. during component initialisation)
|
|
12
|
-
https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function
|
|
12
|
+
https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function Mv(){if(Me){let t=new Error(`effect_update_depth_exceeded
|
|
13
13
|
Maximum update depth exceeded. This can happen when a reactive block or effect repeatedly sets a new value. Svelte limits the number of nested updates to prevent infinite loops
|
|
14
|
-
https://svelte.dev/e/effect_update_depth_exceeded`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function
|
|
14
|
+
https://svelte.dev/e/effect_update_depth_exceeded`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Lv(){if(Me){let t=new Error(`hydration_failed
|
|
15
15
|
Failed to hydrate the application
|
|
16
|
-
https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function
|
|
16
|
+
https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function Vv(){if(Me){let t=new Error("invalid_snippet\nCould not `{@render}` snippet due to the expression being `null` or `undefined`. Consider using optional chaining `{@render snippet?.()}`\nhttps://svelte.dev/e/invalid_snippet");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/invalid_snippet")}function Rv(t){if(Me){let e=new Error(`props_invalid_value
|
|
17
17
|
Cannot do \`bind:${t}={undefined}\` when \`${t}\` has a fallback value
|
|
18
|
-
https://svelte.dev/e/props_invalid_value`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_invalid_value")}function
|
|
18
|
+
https://svelte.dev/e/props_invalid_value`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_invalid_value")}function Nv(t){if(Me){let e=new Error(`props_rest_readonly
|
|
19
19
|
Rest element properties of \`$props()\` such as \`${t}\` are readonly
|
|
20
|
-
https://svelte.dev/e/props_rest_readonly`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_rest_readonly")}function
|
|
20
|
+
https://svelte.dev/e/props_rest_readonly`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_rest_readonly")}function Ov(t){if(Me){let e=new Error(`rune_outside_svelte
|
|
21
21
|
The \`${t}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
|
|
22
|
-
https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function
|
|
22
|
+
https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function Bv(){if(Me){let t=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Dv(){if(Me){let t=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Hv(){if(Me){let t=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var Zr=!1,Xr=!1;function Fv(){Zr=!0}var yl=null;function ls(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;
|
|
25
|
-
`)}),
|
|
24
|
+
`];for(let s=0;s<o.length;s++){let l=o[s];if(l!=="Error"){if(l.includes("validate_each_keys"))return null;l.includes("svelte/src/internal")||n.push(l)}}if(n.length===1)return null;ro(e,"stack",{value:n.join(`
|
|
25
|
+
`)}),ro(e,"name",{value:`${t}Error`})}return e}function Mr(t,e){return t.label=e,pc(t.v,e),t}function pc(t,e){var i;return(i=t==null?void 0:t[dc])==null||i.call(t,e),t}function Ba(t){if(Me){let e=new Error(`lifecycle_outside_component
|
|
26
26
|
\`${t}(...)\` can only be used during component initialisation
|
|
27
|
-
https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var
|
|
27
|
+
https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Vt=null;function xl(t){Vt=t}var Zn=null;function wl(t){Zn=t}function Da(t){return Zu("getContext").get(t)}function Ha(t,e){return Zu("setContext").set(t,e),e}function Sl(){return Zu("getAllContexts")}function U(t,e=!1,i){var o=Vt={p:Vt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Zr&&!e&&(Vt.l={s:null,u:null,r1:[],r2:vr(!1)}),Do(()=>{o.d=!0}),Me&&(Vt.function=i,Zn=i)}function z(t){var l,d;let e=Vt;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=gt,o=Ct;e.e=null;try{for(var n=0;n<a.length;n++){var s=a[n];so(s.effect),Bi(s.reaction),So(s.fn)}}finally{so(i),Bi(o)}}Vt=e.p,Me&&(Zn=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function Jr(){return!Zr||Vt!==null&&Vt.l===null}function Zu(t){var e;return Vt===null&&Ba(t),(e=Vt.c)!=null?e:Vt.c=new Map($0(Vt)||void 0)}function $0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var y0=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function ni(t){if(typeof t!="object"||t===null||Bo in t)return t;let e=qs(t);if(e!==Qu&&e!==Sv)return t;var i=new Map,o=jn(t),n=j(0),s=Me&&Xr?ls("CreatedAt"):null,l=Ct,d=f=>{var v=Ct;Bi(l);var u=f();return Bi(v),u};o&&i.set("length",j(t.length,s));var a="";function p(f){a=f,Mr(n,`${a} version`);for(let[v,u]of i)Mr(u,Qs(a,v))}return new Proxy(t,{defineProperty(f,v,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Bv();var y=i.get(v);return y===void 0?y=d(()=>{var w=j(u.value,s);return i.set(v,w),Me&&typeof v=="string"&&Mr(w,Qs(a,v)),w}):O(y,u.value,!0),!0},deleteProperty(f,v){var u=i.get(v);if(u===void 0){if(v in f){let x=d(()=>j(Yi,s));i.set(v,x),Xu(n),Me&&Mr(x,Qs(a,v))}}else{if(o&&typeof v=="string"){var y=i.get("length"),w=Number(v);Number.isInteger(w)&&w<y.v&&O(y,w)}O(u,Yi),Xu(n)}return!0},get(f,v,u){var S;if(v===Bo)return t;if(Me&&v===dc)return p;var y=i.get(v),w=v in f;if(y===void 0&&(!w||(S=Yo(f,v))!=null&&S.writable)&&(y=d(()=>{var T=ni(w?f[v]:Yi),E=j(T,s);return Me&&Mr(E,Qs(a,v)),E}),i.set(v,y)),y!==void 0){var x=r(y);return x===Yi?void 0:x}return Reflect.get(f,v,u)},getOwnPropertyDescriptor(f,v){var u=Reflect.getOwnPropertyDescriptor(f,v);if(u&&"value"in u){var y=i.get(v);y&&(u.value=r(y))}else if(u===void 0){var w=i.get(v),x=w==null?void 0:w.v;if(w!==void 0&&x!==Yi)return{enumerable:!0,configurable:!0,value:x,writable:!0}}return u},has(f,v){var x;if(v===Bo)return!0;var u=i.get(v),y=u!==void 0&&u.v!==Yi||Reflect.has(f,v);if(u!==void 0||gt!==null&&(!y||(x=Yo(f,v))!=null&&x.writable)){u===void 0&&(u=d(()=>{var S=y?ni(f[v]):Yi,T=j(S,s);return Me&&Mr(T,Qs(a,v)),T}),i.set(v,u));var w=r(u);if(w===Yi)return!1}return y},set(f,v,u,y){var R;var w=i.get(v),x=v in f;if(o&&v==="length")for(var S=u;S<w.v;S+=1){var T=i.get(S+"");T!==void 0?O(T,Yi):S in f&&(T=d(()=>j(Yi,s)),i.set(S+"",T),Me&&Mr(T,Qs(a,S)))}if(w===void 0)(!x||(R=Yo(f,v))!=null&&R.writable)&&(w=d(()=>j(void 0,s)),O(w,ni(u)),i.set(v,w),Me&&Mr(w,Qs(a,v)));else{x=w.v!==Yi;var E=d(()=>ni(u));O(w,E)}var V=Reflect.getOwnPropertyDescriptor(f,v);if(V!=null&&V.set&&V.set.call(y,u),!x){if(o&&typeof v=="string"){var k=i.get("length"),I=Number(v);Number.isInteger(I)&&I>=k.v&&O(k,I+1)}Xu(n)}return!0},ownKeys(f){r(n);var v=Reflect.ownKeys(f).filter(w=>{var x=i.get(w);return x===void 0||x.v!==Yi});for(var[u,y]of i)y.v!==Yi&&!(u in f)&&v.push(u);return v},setPrototypeOf(){Dv()}})}function Qs(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:y0.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function Xu(t,e=1){O(t,t.v+e)}function Fa(t){try{if(t!==null&&typeof t=="object"&&Bo in t)return t[Bo]}catch(e){}return t}function Ju(t,e){return Object.is(Fa(t),Fa(e))}function Lr(t){var e=2050,i=Ct!==null&&(Ct.f&2)!==0?Ct:null;gt===null||i!==null&&(i.f&256)!==0?e|=256:gt.f|=1048576;let o={ctx:Vt,deps:null,effects:null,equals:uc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:gt};return Me&&Xr&&(o.created=ls("CreatedAt")),o}function g(t){let e=Lr(t);return vc(e),e}function Vr(t){let e=Lr(t);return e.equals=Oa,e}function fc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Di(e[i])}}var ep=[];function x0(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function op(t){var e,i=gt;if(so(x0(t)),Me){let o=Gs;tp(new Set);try{ep.includes(t)&&Iv(),ep.push(t),fc(t),e=mc(t)}finally{so(i),tp(o),ep.pop()}}else try{fc(t),e=mc(t)}finally{so(i)}return e}function np(t){var e=op(t);if(t.equals(e)||(t.v=e,t.wv=Cl()),!ds){var i=(cs||(t.f&256)!==0)&&t.deps!==null?4096:1024;mn(t,i)}}var Gs=new Set,Ua=new Map;function tp(t){Gs=t}function vr(t,e){var i={f:0,v:t,reactions:null,equals:uc,rv:0,wv:0};return Me&&Xr&&(i.created=e!=null?e:ls("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function j(t,e){let i=vr(t,e);return vc(i),i}function es(t,e=!1,i=!0){var n,s;let o=vr(t);return e||(o.equals=Oa),Zr&&i&&Vt!==null&&Vt.l!==null&&((s=(n=Vt.l).s)!=null?s:n.s=[]).push(o),o}function O(t,e,i=!1){var n;Ct!==null&&(!er||(Ct.f&262144)!==0)&&Jr()&&(Ct.f&262162)!==0&&!((n=Fo)!=null&&n[1].includes(t)&&Fo[0]===Ct)&&Hv();let o=i?ni(e):e;return Me&&pc(o,t.label),za(t,o)}function za(t,e){if(!t.equals(e)){var i=t.v;if(ds?Ua.set(t,e):Ua.set(t,i),t.v=e,Me&&Xr&&(t.updated=ls("UpdatedAt"),gt!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&op(t),mn(t,(t.f&256)===0?1024:4096)),t.wv=Cl(),zv(t,2048),Jr()&>!==null&&(gt.f&1024)!==0&&(gt.f&96)===0&&(Jn===null?Wv([t]):Jn.push(t)),Me&&Gs.size>0){let o=Array.from(Gs);for(let n of o)(n.f&1024)!==0&&mn(n,4096),Ys(n)&&Wa(n);Gs.clear()}}return e}function zv(t,e){var i=t.reactions;if(i!==null)for(var o=Jr(),n=i.length,s=0;s<n;s++){var l=i[s],d=l.f;if((d&2048)===0&&!(!o&&l===gt)){if(Me&&(d&262144)!==0){Gs.add(l);continue}mn(l,e),(d&1280)!==0&&((d&2)!==0?zv(l,4096):El(l))}}}var Ka="font-weight: bold",qa="font-weight: normal";function Kv(t,e,i){Me?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`,
|
|
29
|
+
https://svelte.dev/e/hydration_attribute_changed`,Ka,qa):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function qv(t){Me?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`,
|
|
31
|
+
https://svelte.dev/e/hydration_html_changed`,Ka,qa):console.warn("https://svelte.dev/e/hydration_html_changed")}function Ps(t){Me?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`,
|
|
33
|
+
https://svelte.dev/e/hydration_mismatch`,Ka,qa):console.warn("https://svelte.dev/e/hydration_mismatch")}function Qv(){Me?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`,
|
|
35
|
+
https://svelte.dev/e/lifecycle_double_unmount`,Ka,qa):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Gv(){Me?console.warn("%c[svelte] select_multiple_invalid_value\n%cThe `value` property of a `<select multiple>` element should be an array, but it received a non-array value. The selection will be kept as is.\nhttps://svelte.dev/e/select_multiple_invalid_value",Ka,qa):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function gc(t){Me?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`,
|
|
37
|
+
https://svelte.dev/e/state_proxy_equality_mismatch`,Ka,qa):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Xe=!1;function ao(t){Xe=t}var ht;function bi(t){if(t===null)throw Ps(),Yr;return ht=t}function Hi(){return bi(Uo(ht))}function h(t){if(Xe){if(Uo(ht)!==null)throw Ps(),Yr;ht=t}}function Ce(t=1){if(Xe){for(var e=t,i=ht;e--;)i=Uo(i);ht=i}}function Zs(){for(var t=0,e=ht;;){if(e.nodeType===Yn){var i=e.data;if(i===Ks){if(t===0)return e;t-=1}else(i===Ts||i===Es)&&(t+=1)}var o=Uo(e);e.remove(),e=o}}function hc(t){if(!t||t.nodeType!==Yn)throw Ps(),Yr;return t.data}function jv(){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(Fa(this[a])===s){gc("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(Fa(this[a])===s){gc("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(Fa(this[a])===s){gc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Xs,Yv,Il,Zv,Xv;function _c(){if(Xs===void 0){Xs=window,Yv=document,Il=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;Zv=Yo(e,"firstChild").get,Xv=Yo(e,"nextSibling").get,Gu(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Gu(i)&&(i.__t=void 0),Me&&(t.__svelte_meta=null,jv())}}function vn(t=""){return document.createTextNode(t)}function yi(t){return Zv.call(t)}function Uo(t){return Xv.call(t)}function _(t,e){if(!Xe)return yi(t);var i=yi(ht);if(i===null)i=ht.appendChild(vn());else if(e&&i.nodeType!==Ra){var o=vn();return i==null||i.before(o),bi(o),o}return bi(i),i}function ge(t,e){var n,s;if(!Xe){var i=yi(t);return i.nodeType===8&&i.data===""?Uo(i):i}if(e&&((n=ht)==null?void 0:n.nodeType)!==Ra){var o=vn();return(s=ht)==null||s.before(o),bi(o),o}return ht}function P(t,e=1,i=!1){let o=Xe?ht:t;for(var n;e--;)n=o,o=Uo(o);if(!Xe)return o;if(i&&(o==null?void 0:o.nodeType)!==Ra){var s=vn();return o===null?n==null||n.after(s):o.before(s),bi(s),s}return bi(o),o}function kl(t){t.textContent=""}function ap(t){gt===null&&Ct===null&&Av(t),Ct!==null&&(Ct.f&256)!==0&>===null&&Pv(),ds&&kv(t)}function w0(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Js(t,e,i,o=!0){var a;var n=gt;if(Me)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var s={ctx:Vt,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n,prev:null,teardown:null,transitions:null,wv:0};if(Me&&(s.component_function=Zn),i)try{Wa(s),s.f|=32768}catch(p){throw Di(s),p}else e!==null&&El(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&&w0(s,n),Ct!==null&&(Ct.f&2)!==0)){var d=Ct;((a=d.effects)!=null?a:d.effects=[]).push(s)}return s}function Do(t){let e=Js(8,null,!1);return mn(e,1024),e.teardown=t,e}function Ke(t){var n;ap("$effect");var e=gt!==null&&(gt.f&32)!==0&&Vt!==null&&!Vt.m;if(Me&&ro(t,"name",{value:"$effect"}),e){var i=Vt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:gt,reaction:Ct})}else{var o=So(t);return o}}function Ml(t){return ap("$effect.pre"),Me&&ro(t,"name",{value:"$effect.pre"}),zo(t)}function yc(t){let e=Js(64,t,!0);return()=>{Di(e)}}function eg(t){let e=Js(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Vn(e,()=>{Di(e),o(void 0)}):(Di(e),o(void 0))})}function So(t){return Js(4,t,!1)}function zo(t){return Js(8,t,!0)}function B(t,e=[],i=Lr){if(Me)return zo(()=>{var n=gt,s=()=>t(...l.map(r));ro(n.fn,"name",{value:"{expression}"}),ro(s,"name",{value:"{expression}"});let l=e.map(i);Fi(s)});let o=e.map(i);return Fi(()=>t(...o.map(r)))}function Fi(t,e=0){return Js(24|e,t,!0)}function Pi(t,e=!0){return Js(40,t,!0,e)}function lp(t){var e=t.teardown;if(e!==null){let i=ds,o=Ct;rp(!0),Bi(null);try{e.call(null)}finally{rp(i),Bi(o)}}}function dp(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;(i.f&64)!==0?i.parent=null:Di(i,e),i=o}}function tg(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Di(e),e=i}}function Di(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(cp(t.nodes_start,t.nodes_end),i=!0),dp(t,e&&!i),Ll(t,0),mn(t,16384);var o=t.transitions;if(o!==null)for(let s of o)s.stop();lp(t);var n=t.parent;n!==null&&n.first!==null&&up(t),Me&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function cp(t,e){for(;t!==null;){var i=t===e?null:Uo(t);t.remove(),t=i}}function up(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 Vn(t,e){var i=[];xc(t,i,!0),pp(i,()=>{Di(t),e&&e()})}function pp(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function xc(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;xc(o,e,s?i:!1),o=n}}}function ps(t){ig(t,!0)}function ig(t,e){if((t.f&8192)!==0){t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;ig(i,n?e:!1),i=o}if(t.transitions!==null)for(let s of t.transitions)(s.is_global||e)&&s.in()}}var Vl=[],fp=[];function og(){var t=Vl;Vl=[],ks(t)}function S0(){var t=fp;fp=[],ks(t)}function gn(t){Vl.length===0&&queueMicrotask(og),Vl.push(t)}function ng(){Vl.length>0&&og(),fp.length>0&&S0()}function sg(t){var e=gt;if(Me&&t instanceof Error&&C0(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else Rl(t,e)}function Rl(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var rg=new WeakSet;function C0(t,e){var l,d;if(rg.has(t))return;rg.add(t);let i=Yo(t,"message");if(!(i&&!i.configurable)){for(var o=Il?" ":" ",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[
|
|
39
|
+
${o}in ${(d=s.function)==null?void 0:d[Pn].split("/").pop()}`,s=s.p;ro(t,"message",{value:t.message+`
|
|
40
40
|
${n}
|
|
41
|
-
`}),t.stack&&
|
|
41
|
+
`}),t.stack&&ro(t,"stack",{value:t.stack.split(`
|
|
42
42
|
`).filter(a=>!a.includes("svelte/src/internal")).join(`
|
|
43
|
-
`)})}}var ea=!1,qa=null,ta=!1,ds=!1;function fp(t){ds=t}var Hl=[],Fl=[],Tt=null,or=!1;function Hi(t){Tt=t}var mt=null;function oo(t){mt=t}var Bo=null;function $c(t){Tt!==null&&Tt.f&2097152&&(Bo===null?Bo=[Tt,[t]]:Bo[1].push(t))}var gn=null,nr=0,ir=null;function eg(t){ir=t}var bg=1,kc=0,cs=!1,Pc=null;function kl(){return++bg}function Ys(t){var m,u;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&&mt!==null&&!cs,a=i.length;if(l||d){var p=t,f=p.parent;for(n=0;n<a;n++)s=i[n],(l||!((m=s==null?void 0:s.reactions)!=null&&m.includes(p)))&&((u=s.reactions)!=null?u:s.reactions=[]).push(p);l&&(p.f^=512),d&&f!==null&&(f.f&256)===0&&(p.f^=256)}for(n=0;n<a;n++)if(s=i[n],Ys(s)&&pp(s),s.wv>t.wv)return!0}(!o||mt!==null&&!cs)&&fn(t,1024)}return!1}function $g(t,e,i=!0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var s=o[n];Bo!=null&&Bo[1].includes(t)&&Bo[0]===Tt||((s.f&2)!==0?$g(s,e,!1):e===s&&(i?fn(s,2048):(s.f&1024)!==0&&fn(s,4096),Al(s)))}}function bc(t){var y,w;var e=gn,i=nr,o=ir,n=Tt,s=cs,l=Bo,d=Nt,a=or,p=t.f;gn=null,nr=0,ir=null,cs=(p&256)!==0&&(or||!ta||Tt===null),Tt=(p&96)===0?t:null,Bo=null,Tl(t.ctx),or=!1,kc++,t.f|=2097152;try{var f=(0,t.fn)(),m=t.deps;if(gn!==null){var u;if(Ol(t,nr),m!==null&&nr>0)for(m.length=nr+gn.length,u=0;u<gn.length;u++)m[nr+u]=gn[u];else t.deps=m=gn;if(!cs||(p&2)!==0&&t.reactions!==null)for(u=nr;u<m.length;u++)((w=(y=m[u]).reactions)!=null?w:y.reactions=[]).push(t)}else m!==null&&nr<m.length&&(Ol(t,nr),m.length=nr);if(Jr()&&ir!==null&&!or&&m!==null&&(t.f&6146)===0)for(u=0;u<ir.length;u++)$g(ir[u],t);return n!==null&&n!==t&&(kc++,ir!==null&&(o===null?o=ir:o.push(...ir))),f}catch(x){gg(x)}finally{gn=e,nr=i,ir=o,Tt=n,cs=s,Bo=l,Tl(d),or=a,t.f^=2097152}}function M0(t,e){let i=e.reactions;if(i!==null){var o=Lv.call(i,t);if(o!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[o]=i[n],i.pop())}}i===null&&(e.f&2)!==0&&(gn===null||!gn.includes(e))&&(fn(e,4096),(e.f&768)===0&&(e.f^=512),_c(e),Ol(e,0))}function Ol(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)M0(t,i[o])}function za(t){var e=t.f;if((e&16384)===0){fn(t,1024);var i=mt,o=ta;if(mt=t,ta=!0,Me){var n=er;El(t.component_function)}try{(e&16)!==0?ug(t):hp(t),gp(t);var s=bc(t);if(t.teardown=typeof s=="function"?s:null,t.wv=bg,Me&&Xr&&(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);Me&&Fl.push(t)}finally{ta=o,mt=i,Me&&El(n)}}}function hg(){console.error("Last ten effects were: ",Fl.slice(-10).map(t=>t.fn)),Fl=[]}function L0(){try{Uv()}catch(t){if(Me&&io(t,"stack",{value:""}),qa!==null)if(Me)try{Dl(t,qa)}catch(e){throw hg(),e}else Dl(t,qa);else throw Me&&hg(),t}}function wp(){var t=ta;try{var e=0;for(ta=!0;Hl.length>0;){e++>1e3&&L0();var i=Hl,o=i.length;Hl=[];for(var n=0;n<o;n++){var s=R0(i[n]);V0(s)}Fa.clear()}}finally{ea=!1,ta=t,qa=null,Me&&(Fl=[])}}function V0(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&Ys(o)&&(za(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?bp(o):o.fn=null))}}function Al(t){ea||(ea=!0,queueMicrotask(wp));for(var e=qa=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 R0(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:Ys(i)&&za(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 Qa(t){var e;for(t&&(ea=!0,wp(),ea=!0,e=t());;){if(mg(),Hl.length===0)return ea=!1,qa=null,Me&&(Fl=[]),e;ea=!0,wp()}}async function xo(){await Promise.resolve(),Qa()}function r(t){var e=t.f,i=(e&2)!==0;if(Pc!==null&&Pc.add(t),Tt!==null&&!or){if(!(Bo!=null&&Bo[1].includes(t))||Bo[0]!==Tt){var o=Tt.deps;t.rv<kc&&(t.rv=kc,gn===null&&o!==null&&o[nr]===t?nr++:gn===null?gn=[t]:(!cs||!gn.includes(t))&&gn.push(t))}}else if(i&&t.deps===null&&t.effects===null){var n=t,s=n.parent;s!==null&&(s.f&256)===0&&(n.f^=256)}if(i&&(n=t,Ys(n)&&pp(n)),Me&&Xr&&!or&&Cl!==null&&Tt!==null&&Cl.reaction===Tt)if(t.trace)t.trace();else{var l=ls("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 ds&&Fa.has(t)?Fa.get(t):t.v}function $t(t){var e=or;try{return or=!0,t()}finally{or=e}}var N0=-7169;function fn(t,e){t.f=t.f&N0|e}function Mc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Ro in t)Ac(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Ro in i&&Ac(i)}}}function Ac(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let o in t)try{Ac(t[o],e)}catch(n){}let i=qs(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=fc(i);for(let n in o){let s=o[n].get;if(s)try{s.call(t)}catch(l){}}}}}function Sp(t,e){if(e){let i=document.body;t.autofocus=!0,vn(()=>{document.activeElement===i&&t.focus()})}}function Ul(t){var e=Tt,i=mt;Hi(null),oo(null);try{return t()}finally{Hi(e),oo(i)}}var Cp=new Set,Lc=new Set;function ia(t){if(!Ye)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 Tp(t,e,i,o={}){function n(s){if(o.capture||Ga.call(e,s),!s.cancelBubble)return Ul(()=>i==null?void 0:i.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?vn(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function wt(t,e,i,o,n){var s={capture:o,passive:n},l=Tp(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&No(()=>{e.removeEventListener(t,l,s)})}function st(t){for(var e=0;e<t.length;e++)Cp.add(t[e]);for(var i of Lc)i(t)}function Ga(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 p=n.indexOf(e);if(p===-1)return;a<=p&&(l=a)}if(s=n[l]||t.target,s!==e){io(t,"currentTarget",{configurable:!0,get(){return s||i}});var f=Tt,m=mt;Hi(null),oo(null);try{for(var u,y=[];s!==null;){var w=s.assignedSlot||s.parentNode||s.host||null;try{var x=s["__"+o];if(x!=null&&(!s.disabled||t.target===s))if(Xn(x)){var[S,...T]=x;S.apply(s,[t,...T])}else x.call(s,t)}catch(R){u?y.push(R):u=R}if(t.cancelBubble||w===e||w===null)break;s=w}if(u){for(let R of y)queueMicrotask(()=>{throw R});throw u}}finally{t.__root=e,delete t.currentTarget,Hi(f),oo(m)}}}var B0;function yg(){B0=void 0}function ja(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function wo(t,e){var i=mt;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(Ye)return wo(vt,null),vt;n===void 0&&(n=ja(s?t:"<!>"+t),i||(n=$i(n)));var l=o||Ml?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=$i(l),a=l.lastChild;wo(d,a)}else wo(l,l);return l}}function F0(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(Ye)return wo(vt,null),vt;if(!l){var d=ja(s),a=$i(d);if(n)for(l=document.createDocumentFragment();$i(a);)l.appendChild($i(a));else l=$i(a)}var p=l.cloneNode(!0);if(n){var f=$i(p),m=p.lastChild;wo(f,m)}else wo(p,p);return p}}function we(t,e){return F0(t,e,"svg")}function ts(t=""){if(!Ye){var e=mn(t+"");return wo(e,e),e}var i=vt;return i.nodeType!==Va&&(i.before(i=mn()),hi(i)),wo(i,i),i}function qe(){if(Ye)return wo(vt,null),vt;var t=document.createDocumentFragment(),e=document.createComment(""),i=mn();return t.append(e,i),wo(e,i),t}function $(t,e){if(Ye){mt.nodes_end=vt,Ui();return}t!==null&&t.before(e)}var U0=/\r/g;function wg(t){t=t.replace(U0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Sg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var z0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Cg(t){return z0.includes(t)}var W0=["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 K0={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Tg(t){var e;return t=t.toLowerCase(),(e=K0[t])!=null?e:t}var l9=[...W0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var q0=["touchstart","touchmove"];function Eg(t){return q0.includes(t)}var Q0=["$state","$state.raw","$derived","$derived.by"],d9=[...Q0,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var G0=["textarea","script","style","title"];function Ig(t){return G0.includes(t)}function Vc(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var zl=!0;function Rc(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 is(t,e){return kg(t,e)}function Ip(t,e){var l;wc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=Ye,n=vt;try{for(var s=$i(i);s&&(s.nodeType!==Jn||s.data!==Es);)s=Do(s);if(!s)throw Yr;no(!0),hi(s),Ui();let d=kg(t,{...e,anchor:s});if(vt===null||vt.nodeType!==Jn||vt.data!==Ks)throw As(),Yr;return no(!1),d}catch(d){if(d===Yr)return e.recover===!1&&zv(),wc(),Ll(i),no(!1),is(t,e);throw d}finally{no(o),hi(n),yg()}}var Ya=new Map;function kg(t,{target:e,anchor:i,props:o={},events:n,context:s,intro:l=!0}){wc();var d=new Set,a=m=>{for(var u=0;u<m.length;u++){var y=m[u];if(!d.has(y)){d.add(y);var w=Eg(y);e.addEventListener(y,Ga,{passive:w});var x=Ya.get(y);x===void 0?(document.addEventListener(y,Ga,{passive:w}),Ya.set(y,1)):Ya.set(y,x+1)}}};a(Sl(Cp)),Lc.add(a);var p=void 0,f=cg(()=>{var m=i!=null?i:e.appendChild(mn());return Pi(()=>{if(s){U({});var u=Nt;u.c=s}n&&(o.$$events=n),Ye&&wo(m,null),zl=l,p=t(m,o)||{},zl=!0,Ye&&(mt.nodes_end=vt),s&&z()}),()=>{var w;for(var u of d){e.removeEventListener(u,Ga);var y=Ya.get(u);--y===0?(document.removeEventListener(u,Ga),Ya.delete(u)):Ya.set(u,y)}Lc.delete(a),m!==i&&((w=m.parentNode)==null||w.removeChild(m))}});return Ep.set(p,f),p}var Ep=new WeakMap;function oa(t,e){let i=Ep.get(t);return i?(Ep.delete(t),i(e)):(Me&&og(),Promise.resolve())}function $e(t,e,...i){var o=t,n=de,s;zi(()=>{n!==(n=e())&&(s&&(Fi(s),s=null),Me&&n==null&&Wv(),s=Pi(()=>n(o,...i)))},65536),Ye&&(o=vt)}if(Me){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Qv(e)},set:o=>{i=o}})}};X0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var X0;function Lt(t){Nt===null&&Oa("onMount"),Zr&&Nt.l!==null?Z0(Nt).m.push(t):Qe(()=>{let e=$t(t);if(typeof e=="function")return e})}function Xo(t){Nt===null&&Oa("onDestroy"),Lt(()=>()=>$t(t))}function Z0(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var Pg=new Map;function Ag(t,e){var i=Pg.get(t);i||(i=new Set,Pg.set(t,i)),i.add(e)}function V(t,e,[i,o]=[0,0]){Ye&&i===0&&Ui();var n=t,s=null,l=null,d=ji,a=i>0?65536:0,p=!1;let f=(u,y=!0)=>{p=!0,m(y,u)},m=(u,y)=>{if(d===(d=u))return;let w=!1;if(Ye&&o!==-1){if(i===0){let S=xc(n);S===Es?o=0:S===Is?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let x=o>i;!!d===x&&(n=Zs(),hi(n),no(!1),w=!0,o=-1)}d?(s?ps(s):y&&(s=Pi(()=>y(n))),l&&Mn(l,()=>{l=null})):(l?ps(l):y&&(l=Pi(()=>y(n,[i+1,o]))),s&&Mn(s,()=>{s=null})),w&&no(!0)};zi(()=>{p=!1,e(f),p||m(null,null)},a),Ye&&(n=vt)}function na(t,e,i){Ye&&Ui();var o=t,n=ji,s,l=Jr()?Ov:Ra;zi(()=>{l(n,n=e())&&(s&&Mn(s),s=Pi(()=>i(o)))}),Ye&&(o=vt)}var Ls=null;function Ap(t){Ls=t}function Wl(t,e){return e}function t_(t,e,i,o){for(var n=[],s=e.length,l=0;l<s;l++)Ec(e[l].e,n,!0);var d=s>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;Ll(a),a.append(i),o.clear(),Ms(t,e[0].prev,e[s-1].next)}$p(n,()=>{for(var p=0;p<s;p++){var f=e[p];d||(o.delete(f.k),Ms(t,f.prev,f.next)),Fi(f.e,!d)}})}function Si(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 p=t;l=Ye?hi($i(p)):p.appendChild(mn())}Ye&&Ui();var f=null,m=!1,u=Rr(()=>{var y=i();return Xn(y)?y:y==null?[]:Sl(y)});zi(()=>{var y=r(u),w=y.length;if(m&&w===0)return;m=w===0;let x=!1;if(Ye){var S=xc(l)===Is;S!==(w===0)&&(l=Zs(),hi(l),no(!1),x=!0)}if(Ye){for(var T=null,E,R=0;R<w;R++){if(vt.nodeType===Jn&&vt.data===Ks){l=vt,x=!0,no(!1);break}var I=y[R],M=o(I,R);E=Vg(vt,d,T,null,I,M,R,n,e,i),d.items.set(M,E),T=E}w>0&&hi(Zs())}Ye||i_(y,d,l,n,e,o,i),s!==null&&(w===0?f?ps(f):f=Pi(()=>s(l)):f!==null&&Mn(f,()=>{f=null})),x&&no(!0),r(u)}),Ye&&(l=vt)}function i_(t,e,i,o,n,s,l){var re,fe,be,me;var d=(n&8)!==0,a=(n&3)!==0,p=t.length,f=e.items,m=e.first,u=m,y,w=null,x,S=[],T=[],E,R,I,M;if(d)for(M=0;M<p;M+=1)E=t[M],R=s(E,M),I=f.get(R),I!==void 0&&((re=I.a)==null||re.measure(),(x!=null?x:x=new Set).add(I));for(M=0;M<p;M+=1){if(E=t[M],R=s(E,M),I=f.get(R),I===void 0){var k=u?u.e.nodes_start:i;w=Vg(k,e,w,w===null?e.first:w.next,E,R,M,o,n,l),f.set(R,w),S=[],T=[],u=w.next;continue}if(a&&o_(I,E,M,n),(I.e.f&8192)!==0&&(ps(I.e),d&&((fe=I.a)==null||fe.unfix(),(x!=null?x:x=new Set).delete(I))),I!==u){if(y!==void 0&&y.has(I)){if(S.length<T.length){var G=T[0],H;w=G.prev;var F=S[0],q=S[S.length-1];for(H=0;H<S.length;H+=1)Mg(S[H],G,i);for(H=0;H<T.length;H+=1)y.delete(T[H]);Ms(e,F.prev,q.next),Ms(e,w,F),Ms(e,q,G),u=G,w=q,M-=1,S=[],T=[]}else y.delete(I),Mg(I,u,i),Ms(e,I.prev,I.next),Ms(e,I,w===null?e.first:w.next),Ms(e,w,I),w=I;continue}for(S=[],T=[];u!==null&&u.k!==R;)(u.e.f&8192)===0&&(y!=null?y:y=new Set).add(u),T.push(u),u=u.next;if(u===null)continue;I=u}S.push(I),w=I,u=I.next}if(u!==null||y!==void 0){for(var Y=y===void 0?[]:Sl(y);u!==null;)(u.e.f&8192)===0&&Y.push(u),u=u.next;var j=Y.length;if(j>0){var ue=(n&4)!==0&&p===0?i:null;if(d){for(M=0;M<j;M+=1)(be=Y[M].a)==null||be.measure();for(M=0;M<j;M+=1)(me=Y[M].a)==null||me.fix()}t_(e,Y,ue,f)}}d&&vn(()=>{var Pe;if(x!==void 0)for(I of x)(Pe=I.a)==null||Pe.apply()}),mt.first=e.first&&e.first.e,mt.last=w&&w.e}function o_(t,e,i,o){(o&1)!==0&&Ua(t.v,e),(o&2)!==0?Ua(t.i,i):t.i=i}function Vg(t,e,i,o,n,s,l,d,a,p){var f=Ls,m=(a&1)!==0,u=(a&16)===0,y=m?u?es(n,!1,!1):_r(n):n,w=(a&2)===0?l:_r(l);Me&&m&&(y.trace=()=>{var S=typeof w=="number"?l:w.v;p()[S]});var x={i:w,v:y,k:s,a:null,e:null,prev:i,next:o};Ls=x;try{return x.e=Pi(()=>d(t,y,w,p),Ye),x.e.prev=i&&i.e,x.e.next=o&&o.e,i===null?e.first=x:(i.next=x,i.e.next=x.e),o!==null&&(o.prev=x,o.e.prev=x.e),x}finally{Ls=f}}function Mg(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,s=t.e.nodes_start;s!==o;){var l=Do(s);n.before(s),s=l}}function Ms(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 n_(t,e,i){var s,l;if(!e||e===wg(String(i!=null?i:"")))return;let o,n=(s=t.__svelte_meta)==null?void 0:s.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(l=er)!=null&&l[In]&&(o=`in ${er[In]}`),ig(Vc(o))}function Kl(t,e,i=!1,o=!1,n=!1){var s=t,l="";B(()=>{var y;var d=mt;if(l===(l=(y=e())!=null?y:"")){Ye&&Ui();return}if(d.nodes_start!==null&&(_p(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(Ye){for(var a=vt.data,p=Ui(),f=p;p!==null&&(p.nodeType!==Jn||p.data!=="");)f=p,p=Do(p);if(p===null)throw As(),Yr;Me&&!n&&n_(p.parentNode,a,l),wo(vt,f),s=hi(p);return}var m=l+"";i?m=`<svg>${m}</svg>`:o&&(m=`<math>${m}</math>`);var u=ja(m);if((i||o)&&(u=$i(u)),wo($i(u),u.lastChild),i||o)for(;$i(u);)s.before($i(u));else s.before(u)}})}function Ci(t,e,i){Ye&&Ui();var o=t,n,s;zi(()=>{n!==(n=e())&&(s&&(Mn(s),s=null),n&&(s=Pi(()=>i(o,n))))},65536),Ye&&(o=vt)}function ra(t,e,i,o,n,s){var w;let l=Ye;Ye&&Ui();var d=Me&&s&&((w=Nt)==null?void 0:w.function[In]),a,p,f=null;Ye&&vt.nodeType===vc&&(f=vt,Ui());var m=Ye?vt:t,u,y=Ls;zi(()=>{let x=e()||null;var S=n?n():i||x==="svg"?uc:null;if(x!==a){var T=Ls;Ap(y),u&&(x===null?Mn(u,()=>{u=null,p=null}):x===p?ps(u):(Fi(u),Rc(!1))),x&&x!==p&&(u=Pi(()=>{if(f=Ye?f:S?document.createElementNS(S,x):document.createElement(x),Me&&s&&(f.__svelte_meta={loc:{file:d,line:s[0],column:s[1]}}),wo(f,f),o){Ye&&Ig(x)&&f.append(document.createComment(""));var E=Ye?$i(f):f.appendChild(mn());Ye&&(E===null?no(!1):hi(E)),o(f,E)}mt.nodes_end=f,m.before(f)})),a=x,a&&(p=a),Rc(!0),Ap(T)}},65536),l&&(no(!0),hi(m))}var Lp;function Rg(t){return Lp=t.target,new Mp(t)}var fs,br,Mp=class{constructor(e){Ts(this,fs);Ts(this,br);var s,l;var i=new Map,o=(d,a)=>{var p=es(a,!1,!1);return i.set(d,p),p};let n=new Proxy({...e.props||{},$$events:{}},{get(d,a){var p;return r((p=i.get(a))!=null?p:o(a,Reflect.get(d,a)))},has(d,a){var p;return a===La?!0:(r((p=i.get(a))!=null?p:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,p){var f;return O((f=i.get(a))!=null?f:o(a,p),p),Reflect.set(d,a,p)}});Ma(this,br,(e.hydrate?Ip:is)(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)&&Qa(),Ma(this,fs,n.$$events);for(let d of Object.keys(ki(this,br)))d==="$set"||d==="$destroy"||d==="$on"||io(this,d,{get(){return ki(this,br)[d]},set(a){ki(this,br)[d]=a},enumerable:!0});ki(this,br).$set=d=>{Object.assign(n,d)},ki(this,br).$destroy=()=>{oa(ki(this,br))}}$set(e){ki(this,br).$set(e)}$on(e,i){ki(this,fs)[e]=ki(this,fs)[e]||[];let o=(...n)=>i.call(this,...n);return ki(this,fs)[e].push(o),()=>{ki(this,fs)[e]=ki(this,fs)[e].filter(n=>n!==o)}}$destroy(){ki(this,br).$destroy()}};fs=new WeakMap,br=new WeakMap;function K(t,e){vn(()=>{var n,s,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(s=Lp)==null?void 0:s.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Me&&Ag(e.hash,d)}})}function ms(t,e){var i=void 0,o;zi(()=>{i!==(i=e())&&(o&&(Fi(o),o=null),i&&(o=Pi(()=>{yo(()=>i(t))})))})}function Ng(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=Ng(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Og(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Ng(t))&&(o&&(o+=" "),o+=e);return o}function ql(t){return typeof t=="object"?Og(t):t!=null?t:""}var Bg=[...`
|
|
44
|
-
\r\f\xA0\v\uFEFF`];function Hg(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var s=n.length,l=0;(l=o.indexOf(n,l))>=0;){var d=l+s;(l===0||Bg.includes(o[l-1]))&&(d===o.length||Bg.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function Dg(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var s=t[n];s!=null&&s!==""&&(o+=" "+n+": "+s+i)}return o}function Vp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Fg(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var s=!1,l=0,d=!1,a=[];o&&a.push(...Object.keys(o).map(Vp)),n&&a.push(...Object.keys(n).map(Vp));var p=0,f=-1;let x=t.length;for(var m=0;m<x;m++){var u=t[m];if(d?u==="/"&&t[m-1]==="*"&&(d=!1):s?s===u&&(s=!1):u==="/"&&t[m+1]==="*"?d=!0:u==='"'||u==="'"?s=u:u==="("?l++:u===")"&&l--,!d&&s===!1&&l===0){if(u===":"&&f===-1)f=m;else if(u===";"||m===x-1){if(f!==-1){var y=Vp(t.substring(p,f).trim());if(!a.includes(y)){u!==";"&&m++;var w=t.substring(p,m).trim();i+=" "+w+";"}}p=m+1,f=-1}}}}return o&&(i+=Dg(o)),n&&(i+=Dg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ie(t,e,i,o,n,s){var l=t.__className;if(Ye||l!==i||l===void 0){var d=Hg(i,o,s);(!Ye||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 p=!!s[a];(n==null||p!==!!n[a])&&t.classList.toggle(a,p)}return s}function Rp(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 ot(t,e,i,o){var n=t.__style;if(Ye||n!==e){var s=Fg(e,o);(!Ye||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}else o&&(Array.isArray(o)?(Rp(t,i==null?void 0:i[0],o[0]),Rp(t,i==null?void 0:i[1],o[1],"important")):Rp(t,i,o));return o}function Ql(t,e,i){if(t.multiple){if(e==null)return;if(!Xn(e))return ng();for(var o of t.options)o.selected=e.includes(Ug(o));return}for(o of t.options){var n=Ug(o);if(ap(n,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Np(t){var e=new MutationObserver(()=>{Ql(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),No(()=>{e.disconnect()})}function Ug(t){return"__value"in t?t.__value:t.value}var Za=Symbol("class"),Xa=Symbol("style"),Kg=Symbol("is custom element"),qg=Symbol("is html");function Qg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Ue(t,e,i,o){var n=jg(t);if(Ye&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||p_(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Nv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Yg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Gg(t,e,i,o,n=!1){var I;var s=jg(t),l=s[Kg],d=!s[qg];let a=Ye&&l;a&&no(!1);var p=e||{},f=t.tagName==="OPTION";for(var m in e)m in i||(i[m]=null);i.class?i.class=ql(i.class):(o||i[Za])&&(i.class=null),i[Xa]&&((I=i.style)!=null||(i.style=null));var u=Yg(t);for(let M in i){let k=i[M];if(f&&M==="value"&&k==null){t.value=t.__value="",p[M]=k;continue}if(M==="class"){var y=t.namespaceURI==="http://www.w3.org/1999/xhtml";ie(t,y,k,o,e==null?void 0:e[Za],i[Za]),p[M]=k,p[Za]=i[Za];continue}if(M==="style"){ot(t,k,e==null?void 0:e[Xa],i[Xa]),p[M]=k,p[Xa]=i[Xa];continue}var w=p[M];if(!(k===w&&!(k===void 0&&t.hasAttribute(M)))){p[M]=k;var x=M[0]+M[1];if(x!=="$$")if(x==="on"){let G={},H="$$"+M,F=M.slice(2);var S=Cg(F);if(Sg(F)&&(F=F.slice(0,-7),G.capture=!0),!S&&w){if(k!=null)continue;t.removeEventListener(F,p[H],G),p[H]=null}if(k!=null)if(S)t[`__${F}`]=k,st([F]);else{let q=function(Y){p[M].call(this,Y)};var R=q;p[H]=Tp(F,t,q,G)}else S&&(t[`__${F}`]=void 0)}else if(M==="style")Ue(t,M,k);else if(M==="autofocus")Sp(t,!!k);else if(!l&&(M==="__value"||M==="value"&&k!=null))t.value=t.__value=k;else if(M==="selected"&&f)Qg(t,k);else{var T=M;d||(T=Tg(T));var E=T==="defaultValue"||T==="defaultChecked";if(k==null&&!l&&!E)if(s[M]=null,T==="value"||T==="checked"){let G=t,H=e===void 0;if(T==="value"){let F=G.defaultValue;G.removeAttribute(T),G.defaultValue=F,G.value=G.__value=H?F:null}else{let F=G.defaultChecked;G.removeAttribute(T),G.defaultChecked=F,G.checked=H?F:!1}}else t.removeAttribute(M);else E||u.includes(T)&&(l||typeof k!="string")?t[T]=k:typeof k!="function"&&Ue(t,T,k,n)}}}return a&&no(!0),p}function Ie(t,e,i=[],o,n=!1,s=Vr){let l=i.map(s);var d=void 0,a={},p=t.nodeName==="SELECT",f=!1;if(zi(()=>{var u=e(...l.map(r)),y=Gg(t,d,u,o,n);f&&p&&"value"in u&&Ql(t,u.value,!1);for(let x of Object.getOwnPropertySymbols(a))u[x]||Fi(a[x]);for(let x of Object.getOwnPropertySymbols(u)){var w=u[x];x.description===Ju&&(!d||w!==d[x])&&(a[x]&&Fi(a[x]),a[x]=Pi(()=>ms(t,()=>w))),y[x]=w}d=y}),p){var m=t;yo(()=>{Ql(m,d.value),Np(m)})}f=!0}function jg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Kg]:t.nodeName.includes("-"),[qg]:t.namespaceURI===kv}}var zg=new Map;function Yg(t){var e=zg.get(t.nodeName);if(e)return e;zg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=fc(o);for(var s in i)i[s].set&&e.push(s);o=qs(o)}return e}function p_(t,e,i){var o;Me&&(e==="srcset"&&f_(t,i)||Op((o=t.getAttribute(e))!=null?o:"",i)||tg(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Op(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Wg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function f_(t,e){var i=Wg(t.srcset),o=Wg(e);return o.length===i.length&&o.every(([n,s],l)=>s===i[l][1]&&(Op(i[l][0],n)||Op(n,i[l][0])))}var m_=pc?()=>performance.now():()=>Date.now(),Br={tick:t=>(pc?requestAnimationFrame:de)(t),now:()=>m_(),tasks:new Set};function Zg(){let t=Br.now();Br.tasks.forEach(e=>{e.c(t)||(Br.tasks.delete(e),e.f())}),Br.tasks.size!==0&&Br.tick(Zg)}function Xg(t){let e;return Br.tasks.size===0&&Br.tick(Zg),{promise:new Promise(i=>{Br.tasks.add(e={c:t,f:i})}),abort(){Br.tasks.delete(e)}}}function Nc(t,e){Ul(()=>{t.dispatchEvent(new CustomEvent(e))})}function __(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function Jg(t){let e={},i=t.split(";");for(let o of i){let[n,s]=o.split(":");if(!n||s===void 0)break;let l=__(n.trim());e[l]=s.trim()}return e}var b_=t=>t;function Dp(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",p,f=e.inert,m=e.style.overflow,u,y;function w(){var k;var I=Tt,M=mt;Hi(null),oo(null);try{return p!=null?p:p=i()(e,(k=o==null?void 0:o())!=null?k:{},{direction:a})}finally{Hi(I),oo(M)}}var x={is_global:d,in(){var I;if(e.inert=f,!n){y==null||y.abort(),(I=y==null?void 0:y.reset)==null||I.call(y);return}s||u==null||u.abort(),Nc(e,"introstart"),u=Bp(e,w(),y,1,()=>{Nc(e,"introend"),u==null||u.abort(),u=p=void 0,e.style.overflow=m})},out(I){if(!s){I==null||I(),p=void 0;return}e.inert=!0,Nc(e,"outrostart"),y=Bp(e,w(),u,0,()=>{Nc(e,"outroend"),I==null||I()})},stop:()=>{u==null||u.abort(),y==null||y.abort()}},S=mt;if(((R=S.transitions)!=null?R:S.transitions=[]).push(x),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&&yo(()=>{$t(()=>x.in())})}}function Bp(t,e,i,o,n){var s=o===1;if(ks(e)){var l,d=!1;return vn(()=>{if(!d){var S=e({direction:s?"in":"out"});l=Bp(t,S,i,o,n)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:de,deactivate:de,reset:de,t:()=>o};let{delay:a=0,css:p,tick:f,easing:m=b_}=e;var u=[];if(s&&i===void 0&&(f&&f(0,1),p)){var y=Jg(p(0,1));u.push(y,y)}var w=()=>1-o,x=t.animate(u,{duration:a,fill:"forwards"});return x.onfinish=()=>{var F;x.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(p)for(var M=Math.ceil(E/16.666666666666668),k=0;k<=M;k+=1){var G=S+T*m(k/M),H=Jg(p(G,1-G));R.push(H),I||(I=H.overflow==="hidden")}I&&(t.style.overflow="hidden"),w=()=>{var q=x.currentTime;return S+T*m(q/E)},f&&Xg(()=>{if(x.playState!=="running")return!1;var q=w();return f(q,1-q),!0})}x=t.animate(R,{duration:E,fill:"forwards"}),x.onfinish=()=>{w=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{x&&(x.cancel(),x.effect=null,x.onfinish=de)},deactivate:()=>{n=de},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var Vs,Ja,Gl,Bc,eh,Dc=class Dc{constructor(e){Ts(this,Bc);Ts(this,Vs,new WeakMap);Ts(this,Ja);Ts(this,Gl);Ma(this,Gl,e)}observe(e,i){var o=ki(this,Vs).get(e)||new Set;return o.add(i),ki(this,Vs).set(e,o),Ev(this,Bc,eh).call(this).observe(e,ki(this,Gl)),()=>{var n=ki(this,Vs).get(e);n.delete(i),n.size===0&&(ki(this,Vs).delete(e),ki(this,Ja).unobserve(e))}}};Vs=new WeakMap,Ja=new WeakMap,Gl=new WeakMap,Bc=new WeakSet,eh=function(){var e;return(e=ki(this,Ja))!=null?e:Ma(this,Ja,new ResizeObserver(i=>{for(var o of i){Dc.entries.set(o.target,o);for(var n of ki(this,Vs).get(o.target)||[])n(o)}}))},Zn(Dc,"entries",new WeakMap);var Hp=Dc;var $_=new Hp({box:"border-box"});function rr(t,e,i){var o=$_.observe(t,()=>i(t[e]));yo(()=>($t(()=>i(t[e])),o))}function th(t,e){return t===e||(t==null?void 0:t[Ro])===e}function et(t={},e,i,o){return yo(()=>{var n,s;return Ho(()=>{n=s,s=(o==null?void 0:o())||[],$t(()=>{t!==i(...s)&&(e(t,...s),n&&th(i(...n),t)&&e(null,...n))})}),()=>{vn(()=>{s&&th(i(...s),t)&&e(null,...s)})}}),t}function Dr(t=!1){let e=Nt,i=e.l.u;if(!i)return;let o=()=>Mc(e.s);if(t){let n=0,s={},l=Vr(()=>{let d=!1,a=e.s;for(let p in a)a[p]!==s[p]&&(s[p]=a[p],d=!0);return d&&n++,n});o=()=>r(l)}i.b.length&&Nl(()=>{ih(e,o),Ps(i.b)}),Qe(()=>{let n=$t(()=>i.m.map(Rv));return()=>{for(let s of n)typeof s=="function"&&s()}}),i.a.length&&Qe(()=>{ih(e,o),Ps(i.a)})}function ih(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}function jl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),de;let o=$t(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var el=[];function $r(t,e){return{subscribe:le(t,e).subscribe}}function le(t,e=de){let i=null,o=new Set;function n(d){if(Ra(t,d)&&(t=d,i)){let a=!el.length;for(let p of o)p[1](),el.push(p,t);if(a){for(let p=0;p<el.length;p+=2)el[p][0](el[p+1]);el.length=0}}}function s(d){n(d(t))}function l(d,a=de){let p=[d,a];return o.add(p),o.size===1&&(i=e(n,s)||de),d(t),()=>{o.delete(p),o.size===0&&i&&(i(),i=null)}}return{set:n,update:s,subscribe:l}}function yi(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 $r(i,(l,d)=>{let a=!1,p=[],f=0,m=de,u=()=>{if(f)return;m();let w=e(o?p[0]:p,l,d);s?l(w):m=typeof w=="function"?w:de},y=n.map((w,x)=>jl(w,S=>{p[x]=S,f&=~(1<<x),a&&u()},()=>{f|=1<<x}));return a=!0,u(),function(){Ps(y),m(),a=!1}})}function ye(t){let e;return jl(t,i=>e=i)(),e}var Hc=!1,Fp=Symbol();function C(t,e,i){var s;let o=(s=i[e])!=null?s:i[e]={store:null,source:es(void 0),unsubscribe:de};if(o.store!==t&&!(Fp in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=de;else{var n=!0;o.unsubscribe=jl(t,l=>{n?o.source.v=l:O(o.source,l)}),n=!1}return t&&Fp in i?ye(t):r(o.source)}function He(){let t={};function e(){No(()=>{for(var i in t)t[i].unsubscribe();io(t,Fp,{enumerable:!1,value:!0})})}return[t,e]}function Up(t){var e=Hc;try{return Hc=!1,[t(),Hc]}finally{Hc=e}}var E_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Me&&qv(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Oe(t,e,i){return new Proxy(Me?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},E_)}var I_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ks(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];ks(n)&&(n=n());let s=jo(n,e);if(s&&s.set)return s.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ks(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=jo(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Ro||e===La)return!1;for(let i of t.props)if(ks(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(ks(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 vs(...t){return new Proxy({props:t},I_)}function oh(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function v(t,e,i,o){var G,H;var n=(i&1)!==0,s=!Zr||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,p;l?[p,a]=Up(()=>t[e]):p=t[e];var f=Ro in t||La in t,m=l&&((H=(G=jo(t,e))==null?void 0:G.set)!=null?H:f&&e in t&&(F=>t[e]=F))||void 0,u=o,y=!0,w=!1,x=()=>(w=!0,y&&(y=!1,d?u=$t(o):u=o),u);p===void 0&&o!==void 0&&(m&&s&&Kv(e),p=x(),m&&m(p));var S;if(s)S=()=>{var F=t[e];return F===void 0?x():(y=!0,w=!1,F)};else{var T=(n?Vr:Rr)(()=>t[e]);T.f|=131072,S=()=>{var F=r(T);return F!==void 0&&(u=void 0),F===void 0?u: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=es(p),k=Vr(()=>{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=Na),function(F,q){if(Pc!==null&&(R=I,S(),r(M)),arguments.length>0){let Y=q?r(k):s&&l?ni(F):F;if(!k.equals(Y)){if(R=!0,O(M,Y),w&&u!==void 0&&(u=Y),oh(k))return F;$t(()=>r(k))}return F}return oh(k)?k.v:r(k)}}var k_;typeof HTMLElement=="function"&&(k_=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))}}async connectedCallback(){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(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=P_(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]=zp(l,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=Rg({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=Tc(()=>{Ho(()=>{var s;this.$$r=!0;for(let l of ep(this.$$c)){if(!((s=this.$$p_d[l])!=null&&s.reflect))continue;this.$$d[l]=this.$$c[l];let d=zp(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]=zp(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 ep(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function zp(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 P_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var nh="5";var rh,sh,ah;typeof window!="undefined"&&((ah=(sh=(rh=window.__svelte)!=null?rh:window.__svelte={}).v)!=null?ah:sh.v=new Set).add(nh);import{areValidLiveRecordSources as w5,clientChecker as cv}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-core/es2018";import{noop as d0,safeStorage as S5,throttleFn as C5}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as T5}from"@vkontakte/videoplayer-statistics/es2018";import{InterfaceLanguage as A_,fillWithDefault as M_,VideoQuality as lh}from"@vkontakte/videoplayer-shared/es2018";var L_={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:A_.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:lh.Q_480P,highQualityLimit:lh.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,interactiveHistoryEndChapterFix:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1,usePerformanceFix:!1,userVideoPrefs:!1,savePreferredStatesOnUserActionOnly:!1,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"},dh=t=>M_(t,L_),ch=t=>Da("ui-config",t),Et=()=>Ba("ui-config");var Yl="vk_player_debug_panel_opened";var uh="videoplayer",ph="videoplayer";var os={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},fh=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),mh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),vh=new Set(["ShiftRight","ShiftLeft"]);var gh=["TIMELINE"],Zl=[...gh,"GRAPH_BUTTON"],Wp=[...gh,"PLAY_BUTTON"],Xl=[...Zl,"PLAY_BUTTON"];var ns=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(ns||{}),aa={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as hh,VERSION as V_}from"@vkontakte/videoplayer-shared/es2018";import{VERSION as R_}from"@vkontakte/videoplayer-core/es2018";import{VERSION as N_}from"@vkontakte/videoplayer-statistics/es2018";var Fc="prod",tl="1.1.72-dev.752fa0a9.0";var la=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var _h=Symbol("storeContext"),bh=Symbol("microStoresContext"),$h=(t,e)=>{Da(_h,t),Da(bh,e),Fc==="dev"&&(window.app={store:t,microStores:e})},Te=()=>{let t=Ba(_h);return hh(t,"Store context is empty!"),t},uo=()=>{let t=Ba(bh);return hh(t,"MicroStores context is empty!"),t},ei=(t,e)=>zc(t,t.getValue(),e),zc=(t,e,i)=>$r(e,o=>{let n=t.subscribe(s=>{o(s),i==null||i(s)});return()=>n.unsubscribe()}),yh=(t,e,i,o)=>{var k,G,H,F,q,Y,j,ue;let n=t.info,{width:s,height:l}=ye(i.ui.playerSize),d=(G=(k=n.throughputEstimation$.getValue())==null?void 0:k.toFixed(0))!=null?G:0,a=(F=(H=n.rttEstimation$.getValue())==null?void 0:H.toFixed(0))!=null?F:0,p=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${tl} (core: ${R_}, stat: ${N_}, shared: ${V_})`,m=ye(i.state.errorLog$),u=m.length?`
|
|
45
|
-
`+
|
|
46
|
-
`,
|
|
47
|
-
`,
|
|
48
|
-
`;return
|
|
49
|
-
`):void 0,y=i.state.isAudioDisabled?"disabled":
|
|
50
|
-
`)},xh=(t,e,i)=>{var G,H,F,q;let o=t.info,{width:n,height:s}=ye(i.ui.playerSize),l={version:tl,viewport:`${n}x${s}`,volume:Math.round(ye(i.state.volume$)*100)};l.id=i.videoId,o.currentFormat$.getValue()&&(l.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(l.cdn=o.hostname$.getValue());let p=o.intrinsicVideoSize$.getValue();p&&(l.videoSize=`${p.width}x${p.height}`);let f=o.currentBuffer$.getValue(),m=o.isLive$.getValue(),u=o.liveBufferTime$.getValue();f&&(m&&u?l.buffer=f.end-u:l.buffer=Math.max(f.end-ye(i.state.positionExact$),0)),l.position=ye(i.state.positionExact$);let y=o.throughputEstimation$.getValue();y&&(l.speed=y);let w=o.videoBitrate$.getValue();w&&(l.bitrate=w);let x=o.liveLatency$.getValue();x&&(l.liveLatency=x);let S=o.currentVideoSegmentLength$.getValue();S&&(l.currentVideoSegmentLength=S);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let E=ye(i.vsid);typeof E=="string"&&(l.vsid=E);let R=(G=t.info.currentVideoStream$.getValue())==null?void 0:G.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},wh=(t,e)=>la(t,e,"mp4"),Sh=t=>!t.type,Ch=t=>!!t.type,Th=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},Uc=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=await fetch(e,{signal:this.destroyController.signal});if(i.ok)return await i.text();throw i}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};import{isNullable as Gp,safeStorage as Ai}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-core/es2018";var Eh="vk_player_prefer_traffic_saving_enabled",Ih="vk_player_preferred_volume",kh="vk_player_prefer_volume_mute",jp="vk_player_preferred_quality",Kp="vk_player_preferred_default_quality_settings",qp="vk_player_preferred_quality_settings_by_video",Ph="vk_player_preferred_stream_language",Ah="vk_player_preferred_rate",Mh="vk_player_preferred_autoplay_next",Qp="vk_player_preferred_subtitles_language",Lh="vk_player_user_video_prefs",Vh=t=>t>1?1:t<0?0:t,Yp=t=>Ai.set(Ih,Vh(t).toString(10)),Wc=()=>{let t=Ai.get(Ih);return Gp(t)?void 0:Vh(parseFloat(t))},Zp=(t,e)=>Ai.set(jp,JSON.stringify({videoId:t,value:e})),Kc=()=>Ai.remove(jp),Xp=t=>{let e=Ai.get(jp);if(Gp(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Kc();return}return o},Jp=(t,e)=>{e?Ai.set(t,"true"):Ai.remove(t)},ef=t=>Ai.get(t)==="true",tf=t=>Jp(kh,t),Rh=()=>ef(kh),Jl=t=>Jp(Eh,t),of=()=>ef(Eh),Nh=()=>Ai.get(Ph),nf=t=>Ai.set(Ph,t),rf=()=>Ai.get(Qp),sf=t=>{t?Ai.set(Qp,t):Ai.remove(Qp)},Oh=t=>Ai.set(Ah,JSON.stringify({rate:t})),Bh=()=>{let t=Ai.get(Ah);if(Gp(t))return;let{rate:e}=JSON.parse(t);return e},Dh=t=>Jp(Mh,t),Hh=()=>ef(Mh),O_=()=>{let t=f=>{Ai.set(Kp,JSON.stringify(f))},e=()=>{try{let f=Ai.get(Kp);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=Ai.get(qp);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{Ai.set(qp,JSON.stringify(f))},n=f=>{p(f);let m=f?i():null;if(m&&(m==null?void 0:m.videoId)===f)return{...m,appliesTo:"to-video"};m&&s();let u=e();return u?{...u,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},s=()=>{Ai.remove(qp)},l=()=>{Ai.remove(Kp)},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":Jl(!0);break;case"exact_quality":Zp(f,m.quality)}s(),l()}},p=f=>{let m=Xp(f);if(m){o({type:"exact_quality",videoId:f,quality:m});return}of()&&t({type:"traffic_saving",videoId:f}),Jl(!1),Kc()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:rf,savePreferredSubtitlesLanguage:sf}},{getPreferredQualitySettings:Fh,migrateSettingsToLegacyWay:Uh,savePreferredQualitySettings:qc,savePreferredDefaultQualitySettings:VM,removePreferredQualitySettingsByVideo:RM,getPreferredDefaultQualitySettings:Qc}=O_(),B_=3,D_=3,zh=()=>{let t=Ai.get(Lh);if(t)try{return JSON.parse(t)}catch(e){return null}return null},Gc=(t,e)=>{var n,s;let i=zh();return(s=(n=i==null?void 0:i[t])==null?void 0:n[e])!=null?s:null},af=(t,e,i)=>{var l,d,a;let o=(l=zh())!=null?l:{},n=(a=(d=o[t])==null?void 0:d[e])!=null?a:{};Object.assign(n,i,{updatedTs:Date.now()}),t in o||(o[t]={}),o[t][e]=n;let s=H_(o);Ai.set(Lh,JSON.stringify(s))};function H_(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(D_),e.reduce((o,[n])=>(o[n]=F_(t[n]),o),{})}function F_(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(B_),Object.fromEntries(e)}import{PlaybackState as s0}from"@vkontakte/videoplayer-core/es2018";var U_=we('<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=U_();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}import{isNullable as qh,InterfaceLanguage as Qh}from"@vkontakte/videoplayer-shared/es2018";var z_={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 ea=!1,Qa=null,ta=!1,ds=!1;function rp(t){ds=t}var Nl=[],Ol=[],Ct=null,er=!1;function Bi(t){Ct=t}var gt=null;function so(t){gt=t}var Fo=null;function vc(t){Ct!==null&&Ct.f&2097152&&(Fo===null?Fo=[Ct,[t]]:Fo[1].push(t))}var hn=null,tr=0,Jn=null;function Wv(t){Jn=t}var dg=1,Sc=0,cs=!1,Cc=null;function Cl(){return++dg}function Ys(t){var v,u;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&>!==null&&!cs,a=i.length;if(l||d){var p=t,f=p.parent;for(n=0;n<a;n++)s=i[n],(l||!((v=s==null?void 0:s.reactions)!=null&&v.includes(p)))&&((u=s.reactions)!=null?u:s.reactions=[]).push(p);l&&(p.f^=512),d&&f!==null&&(f.f&256)===0&&(p.f^=256)}for(n=0;n<a;n++)if(s=i[n],Ys(s)&&np(s),s.wv>t.wv)return!0}(!o||gt!==null&&!cs)&&mn(t,1024)}return!1}function cg(t,e,i=!0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var s=o[n];Fo!=null&&Fo[1].includes(t)&&Fo[0]===Ct||((s.f&2)!==0?cg(s,e,!1):e===s&&(i?mn(s,2048):(s.f&1024)!==0&&mn(s,4096),El(s)))}}function mc(t){var y,w;var e=hn,i=tr,o=Jn,n=Ct,s=cs,l=Fo,d=Vt,a=er,p=t.f;hn=null,tr=0,Jn=null,cs=(p&256)!==0&&(er||!ta||Ct===null),Ct=(p&96)===0?t:null,Fo=null,xl(t.ctx),er=!1,Sc++,t.f|=2097152;try{var f=(0,t.fn)(),v=t.deps;if(hn!==null){var u;if(Ll(t,tr),v!==null&&tr>0)for(v.length=tr+hn.length,u=0;u<hn.length;u++)v[tr+u]=hn[u];else t.deps=v=hn;if(!cs||(p&2)!==0&&t.reactions!==null)for(u=tr;u<v.length;u++)((w=(y=v[u]).reactions)!=null?w:y.reactions=[]).push(t)}else v!==null&&tr<v.length&&(Ll(t,tr),v.length=tr);if(Jr()&&Jn!==null&&!er&&v!==null&&(t.f&6146)===0)for(u=0;u<Jn.length;u++)cg(Jn[u],t);return n!==null&&n!==t&&(Sc++,Jn!==null&&(o===null?o=Jn:o.push(...Jn))),f}catch(x){sg(x)}finally{hn=e,tr=i,Jn=o,Ct=n,cs=s,Fo=l,xl(d),er=a,t.f^=2097152}}function T0(t,e){let i=e.reactions;if(i!==null){var o=wv.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&&(hn===null||!hn.includes(e))&&(mn(e,4096),(e.f&768)===0&&(e.f^=512),fc(e),Ll(e,0))}function Ll(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)T0(t,i[o])}function Wa(t){var e=t.f;if((e&16384)===0){mn(t,1024);var i=gt,o=ta;if(gt=t,ta=!0,Me){var n=Zn;wl(t.component_function)}try{(e&16)!==0?tg(t):dp(t),lp(t);var s=mc(t);if(t.teardown=typeof s=="function"?s:null,t.wv=dg,Me&&Xr&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=Cl(),l.set_during_effect=!1);Me&&Ol.push(t)}finally{ta=o,gt=i,Me&&wl(n)}}}function ag(){console.error("Last ten effects were: ",Ol.slice(-10).map(t=>t.fn)),Ol=[]}function E0(){try{Mv()}catch(t){if(Me&&ro(t,"stack",{value:""}),Qa!==null)if(Me)try{Rl(t,Qa)}catch(e){throw ag(),e}else Rl(t,Qa);else throw Me&&ag(),t}}function vp(){var t=ta;try{var e=0;for(ta=!0;Nl.length>0;){e++>1e3&&E0();var i=Nl,o=i.length;Nl=[];for(var n=0;n<o;n++){var s=k0(i[n]);I0(s)}Ua.clear()}}finally{ea=!1,ta=t,Qa=null,Me&&(Ol=[])}}function I0(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&Ys(o)&&(Wa(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?up(o):o.fn=null))}}function El(t){ea||(ea=!0,queueMicrotask(vp));for(var e=Qa=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Nl.push(e)}function k0(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:Ys(i)&&Wa(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 Ga(t){var e;for(t&&(ea=!0,vp(),ea=!0,e=t());;){if(ng(),Nl.length===0)return ea=!1,Qa=null,Me&&(Ol=[]),e;ea=!0,vp()}}async function Co(){await Promise.resolve(),Ga()}function r(t){var e=t.f,i=(e&2)!==0;if(Cc!==null&&Cc.add(t),Ct!==null&&!er){if(!(Fo!=null&&Fo[1].includes(t))||Fo[0]!==Ct){var o=Ct.deps;t.rv<Sc&&(t.rv=Sc,hn===null&&o!==null&&o[tr]===t?tr++:hn===null?hn=[t]:(!cs||!hn.includes(t))&&hn.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,Ys(n)&&np(n)),Me&&Xr&&!er&&yl!==null&&Ct!==null&&yl.reaction===Ct)if(t.trace)t.trace();else{var l=ls("TracedAt");if(l){var d=yl.entries.get(t);d===void 0&&(d={traces:[]},yl.entries.set(t,d));var a=d.traces[d.traces.length-1];l.stack!==(a==null?void 0:a.stack)&&d.traces.push(l)}}return ds&&Ua.has(t)?Ua.get(t):t.v}function yt(t){var e=er;try{return er=!0,t()}finally{er=e}}var P0=-7169;function mn(t,e){t.f=t.f&P0|e}function Ec(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Bo in t)Tc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Bo in i&&Tc(i)}}}function Tc(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{Tc(t[o],e)}catch(n){}let i=qs(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=lc(i);for(let n in o){let s=o[n].get;if(s)try{s.call(t)}catch(l){}}}}}function gp(t,e){if(e){let i=document.body;t.autofocus=!0,gn(()=>{document.activeElement===i&&t.focus()})}}function Bl(t){var e=Ct,i=gt;Bi(null),so(null);try{return t()}finally{Bi(e),so(i)}}var hp=new Set,Ic=new Set;function ia(t){if(!Xe)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function _p(t,e,i,o={}){function n(s){if(o.capture||ja.call(e,s),!s.cancelBubble)return Bl(()=>i==null?void 0:i.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?gn(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function xt(t,e,i,o,n){var s={capture:o,passive:n},l=_p(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Do(()=>{e.removeEventListener(t,l,s)})}function lt(t){for(var e=0;e<t.length;e++)hp.add(t[e]);for(var i of Ic)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 p=n.indexOf(e);if(p===-1)return;a<=p&&(l=a)}if(s=n[l]||t.target,s!==e){ro(t,"currentTarget",{configurable:!0,get(){return s||i}});var f=Ct,v=gt;Bi(null),so(null);try{for(var u,y=[];s!==null;){var w=s.assignedSlot||s.parentNode||s.host||null;try{var x=s["__"+o];if(x!=null&&(!s.disabled||t.target===s))if(jn(x)){var[S,...T]=x;S.apply(s,[t,...T])}else x.call(s,t)}catch(V){u?y.push(V):u=V}if(t.cancelBubble||w===e||w===null)break;s=w}if(u){for(let V of y)queueMicrotask(()=>{throw V});throw u}}finally{t.__root=e,delete t.currentTarget,Bi(f),so(v)}}}var M0;function ug(){M0=void 0}function Ya(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function To(t,e){var i=gt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function M(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,s=!t.startsWith("<!>");return()=>{if(Xe)return To(ht,null),ht;n===void 0&&(n=Ya(s?t:"<!>"+t),i||(n=yi(n)));var l=o||Il?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=yi(l),a=l.lastChild;To(d,a)}else To(l,l);return l}}function R0(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(Xe)return To(ht,null),ht;if(!l){var d=Ya(s),a=yi(d);if(n)for(l=document.createDocumentFragment();yi(a);)l.appendChild(yi(a));else l=yi(a)}var p=l.cloneNode(!0);if(n){var f=yi(p),v=p.lastChild;To(f,v)}else To(p,p);return p}}function Te(t,e){return R0(t,e,"svg")}function ts(t=""){if(!Xe){var e=vn(t+"");return To(e,e),e}var i=ht;return i.nodeType!==Ra&&(i.before(i=vn()),bi(i)),To(i,i),i}function We(){if(Xe)return To(ht,null),ht;var t=document.createDocumentFragment(),e=document.createComment(""),i=vn();return t.append(e,i),To(e,i),t}function $(t,e){if(Xe){gt.nodes_end=ht,Hi();return}t!==null&&t.before(e)}var N0=/\r/g;function fg(t){t=t.replace(N0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function mg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var O0=["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 O0.includes(t)}var B0=["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 D0={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 gg(t){var e;return t=t.toLowerCase(),(e=D0[t])!=null?e:t}var JS=[...B0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var H0=["touchstart","touchmove"];function hg(t){return H0.includes(t)}var F0=["$state","$state.raw","$derived","$derived.by"],e9=[...F0,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var U0=["textarea","script","style","title"];function _g(t){return U0.includes(t)}function kc(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Dl=!0;function Pc(t){Dl=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 is(t,e){return bg(t,e)}function $p(t,e){var l;_c(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=Xe,n=ht;try{for(var s=yi(i);s&&(s.nodeType!==Yn||s.data!==Ts);)s=Uo(s);if(!s)throw Yr;ao(!0),bi(s),Hi();let d=bg(t,{...e,anchor:s});if(ht===null||ht.nodeType!==Yn||ht.data!==Ks)throw Ps(),Yr;return ao(!1),d}catch(d){if(d===Yr)return e.recover===!1&&Lv(),_c(),kl(i),ao(!1),is(t,e);throw d}finally{ao(o),bi(n),ug()}}var Za=new Map;function bg(t,{target:e,anchor:i,props:o={},events:n,context:s,intro:l=!0}){_c();var d=new Set,a=v=>{for(var u=0;u<v.length;u++){var y=v[u];if(!d.has(y)){d.add(y);var w=hg(y);e.addEventListener(y,ja,{passive:w});var x=Za.get(y);x===void 0?(document.addEventListener(y,ja,{passive:w}),Za.set(y,1)):Za.set(y,x+1)}}};a($l(hp)),Ic.add(a);var p=void 0,f=eg(()=>{var v=i!=null?i:e.appendChild(vn());return Pi(()=>{if(s){U({});var u=Vt;u.c=s}n&&(o.$$events=n),Xe&&To(v,null),Dl=l,p=t(v,o)||{},Dl=!0,Xe&&(gt.nodes_end=ht),s&&z()}),()=>{var w;for(var u of d){e.removeEventListener(u,ja);var y=Za.get(u);--y===0?(document.removeEventListener(u,ja),Za.delete(u)):Za.set(u,y)}Ic.delete(a),v!==i&&((w=v.parentNode)==null||w.removeChild(v))}});return bp.set(p,f),p}var bp=new WeakMap;function oa(t,e){let i=bp.get(t);return i?(bp.delete(t),i(e)):(Me&&Qv(),Promise.resolve())}function ye(t,e,...i){var o=t,n=de,s;Fi(()=>{n!==(n=e())&&(s&&(Di(s),s=null),Me&&n==null&&Vv(),s=Pi(()=>n(o,...i)))},65536),Xe&&(o=ht)}if(Me){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Ov(e)},set:o=>{i=o}})}};q0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var q0;function Pt(t){Vt===null&&Ba("onMount"),Zr&&Vt.l!==null?K0(Vt).m.push(t):Ke(()=>{let e=yt(t);if(typeof e=="function")return e})}function Jo(t){Vt===null&&Ba("onDestroy"),Pt(()=>()=>yt(t))}function K0(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var $g=new Map;function yg(t,e){var i=$g.get(t);i||(i=new Set,$g.set(t,i)),i.add(e)}function L(t,e,[i,o]=[0,0]){Xe&&i===0&&Hi();var n=t,s=null,l=null,d=Yi,a=i>0?65536:0,p=!1;let f=(u,y=!0)=>{p=!0,v(y,u)},v=(u,y)=>{if(d===(d=u))return;let w=!1;if(Xe&&o!==-1){if(i===0){let S=hc(n);S===Ts?o=0:S===Es?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let x=o>i;!!d===x&&(n=Zs(),bi(n),ao(!1),w=!0,o=-1)}d?(s?ps(s):y&&(s=Pi(()=>y(n))),l&&Vn(l,()=>{l=null})):(l?ps(l):y&&(l=Pi(()=>y(n,[i+1,o]))),s&&Vn(s,()=>{s=null})),w&&ao(!0)};Fi(()=>{p=!1,e(f),p||v(null,null)},a),Xe&&(n=ht)}function na(t,e,i){Xe&&Hi();var o=t,n=Yi,s,l=Jr()?Ev:Na;Fi(()=>{l(n,n=e())&&(s&&Vn(s),s=Pi(()=>i(o)))}),Xe&&(o=ht)}var Ms=null;function wp(t){Ms=t}function Hl(t,e){return e}function j0(t,e,i,o){for(var n=[],s=e.length,l=0;l<s;l++)xc(e[l].e,n,!0);var d=s>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;kl(a),a.append(i),o.clear(),As(t,e[0].prev,e[s-1].next)}pp(n,()=>{for(var p=0;p<s;p++){var f=e[p];d||(o.delete(f.k),As(t,f.prev,f.next)),Di(f.e,!d)}})}function Si(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 p=t;l=Xe?bi(yi(p)):p.appendChild(vn())}Xe&&Hi();var f=null,v=!1,u=Vr(()=>{var y=i();return jn(y)?y:y==null?[]:$l(y)});Fi(()=>{var y=r(u),w=y.length;if(v&&w===0)return;v=w===0;let x=!1;if(Xe){var S=hc(l)===Es;S!==(w===0)&&(l=Zs(),bi(l),ao(!1),x=!0)}if(Xe){for(var T=null,E,V=0;V<w;V++){if(ht.nodeType===Yn&&ht.data===Ks){l=ht,x=!0,ao(!1);break}var k=y[V],I=o(k,V);E=Sg(ht,d,T,null,k,I,V,n,e,i),d.items.set(I,E),T=E}w>0&&bi(Zs())}Xe||Y0(y,d,l,n,e,o,i),s!==null&&(w===0?f?ps(f):f=Pi(()=>s(l)):f!==null&&Vn(f,()=>{f=null})),x&&ao(!0),r(u)}),Xe&&(l=ht)}function Y0(t,e,i,o,n,s,l){var ie,ue,$e,fe;var d=(n&8)!==0,a=(n&3)!==0,p=t.length,f=e.items,v=e.first,u=v,y,w=null,x,S=[],T=[],E,V,k,I;if(d)for(I=0;I<p;I+=1)E=t[I],V=s(E,I),k=f.get(V),k!==void 0&&((ie=k.a)==null||ie.measure(),(x!=null?x:x=new Set).add(k));for(I=0;I<p;I+=1){if(E=t[I],V=s(E,I),k=f.get(V),k===void 0){var R=u?u.e.nodes_start:i;w=Sg(R,e,w,w===null?e.first:w.next,E,V,I,o,n,l),f.set(V,w),S=[],T=[],u=w.next;continue}if(a&&Z0(k,E,I,n),(k.e.f&8192)!==0&&(ps(k.e),d&&((ue=k.a)==null||ue.unfix(),(x!=null?x:x=new Set).delete(k))),k!==u){if(y!==void 0&&y.has(k)){if(S.length<T.length){var Y=T[0],H;w=Y.prev;var F=S[0],W=S[S.length-1];for(H=0;H<S.length;H+=1)xg(S[H],Y,i);for(H=0;H<T.length;H+=1)y.delete(T[H]);As(e,F.prev,W.next),As(e,w,F),As(e,W,Y),u=Y,w=W,I-=1,S=[],T=[]}else y.delete(k),xg(k,u,i),As(e,k.prev,k.next),As(e,k,w===null?e.first:w.next),As(e,w,k),w=k;continue}for(S=[],T=[];u!==null&&u.k!==V;)(u.e.f&8192)===0&&(y!=null?y:y=new Set).add(u),T.push(u),u=u.next;if(u===null)continue;k=u}S.push(k),w=k,u=k.next}if(u!==null||y!==void 0){for(var J=y===void 0?[]:$l(y);u!==null;)(u.e.f&8192)===0&&J.push(u),u=u.next;var G=J.length;if(G>0){var ce=(n&4)!==0&&p===0?i:null;if(d){for(I=0;I<G;I+=1)($e=J[I].a)==null||$e.measure();for(I=0;I<G;I+=1)(fe=J[I].a)==null||fe.fix()}j0(e,J,ce,f)}}d&&gn(()=>{var ke;if(x!==void 0)for(k of x)(ke=k.a)==null||ke.apply()}),gt.first=e.first&&e.first.e,gt.last=w&&w.e}function Z0(t,e,i,o){(o&1)!==0&&za(t.v,e),(o&2)!==0?za(t.i,i):t.i=i}function Sg(t,e,i,o,n,s,l,d,a,p){var f=Ms,v=(a&1)!==0,u=(a&16)===0,y=v?u?es(n,!1,!1):vr(n):n,w=(a&2)===0?l:vr(l);Me&&v&&(y.trace=()=>{var S=typeof w=="number"?l:w.v;p()[S]});var x={i:w,v:y,k:s,a:null,e:null,prev:i,next:o};Ms=x;try{return x.e=Pi(()=>d(t,y,w,p),Xe),x.e.prev=i&&i.e,x.e.next=o&&o.e,i===null?e.first=x:(i.next=x,i.e.next=x.e),o!==null&&(o.prev=x,o.e.prev=x.e),x}finally{Ms=f}}function xg(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=Uo(s);n.before(s),s=l}}function As(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 X0(t,e,i){var s,l;if(!e||e===fg(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=Zn)!=null&&l[Pn]&&(o=`in ${Zn[Pn]}`),qv(kc(o))}function Fl(t,e,i=!1,o=!1,n=!1){var s=t,l="";B(()=>{var y;var d=gt;if(l===(l=(y=e())!=null?y:"")){Xe&&Hi();return}if(d.nodes_start!==null&&(cp(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(Xe){for(var a=ht.data,p=Hi(),f=p;p!==null&&(p.nodeType!==Yn||p.data!=="");)f=p,p=Uo(p);if(p===null)throw Ps(),Yr;Me&&!n&&X0(p.parentNode,a,l),To(ht,f),s=bi(p);return}var v=l+"";i?v=`<svg>${v}</svg>`:o&&(v=`<math>${v}</math>`);var u=Ya(v);if((i||o)&&(u=yi(u)),To(yi(u),u.lastChild),i||o)for(;yi(u);)s.before(yi(u));else s.before(u)}})}function Ci(t,e,i){Xe&&Hi();var o=t,n,s;Fi(()=>{n!==(n=e())&&(s&&(Vn(s),s=null),n&&(s=Pi(()=>i(o,n))))},65536),Xe&&(o=ht)}function ra(t,e,i,o,n,s){var w;let l=Xe;Xe&&Hi();var d=Me&&s&&((w=Vt)==null?void 0:w.function[Pn]),a,p,f=null;Xe&&ht.nodeType===cc&&(f=ht,Hi());var v=Xe?ht:t,u,y=Ms;Fi(()=>{let x=e()||null;var S=n?n():i||x==="svg"?sc:null;if(x!==a){var T=Ms;wp(y),u&&(x===null?Vn(u,()=>{u=null,p=null}):x===p?ps(u):(Di(u),Pc(!1))),x&&x!==p&&(u=Pi(()=>{if(f=Xe?f:S?document.createElementNS(S,x):document.createElement(x),Me&&s&&(f.__svelte_meta={loc:{file:d,line:s[0],column:s[1]}}),To(f,f),o){Xe&&_g(x)&&f.append(document.createComment(""));var E=Xe?yi(f):f.appendChild(vn());Xe&&(E===null?ao(!1):bi(E)),o(f,E)}gt.nodes_end=f,v.before(f)})),a=x,a&&(p=a),Pc(!0),wp(T)}},65536),l&&(ao(!0),bi(v))}var Cp;function Cg(t){return Cp=t.target,new Sp(t)}var fs,gr,Sp=class{constructor(e){Cs(this,fs);Cs(this,gr);var s,l;var i=new Map,o=(d,a)=>{var p=es(a,!1,!1);return i.set(d,p),p};let n=new Proxy({...e.props||{},$$events:{}},{get(d,a){var p;return r((p=i.get(a))!=null?p:o(a,Reflect.get(d,a)))},has(d,a){var p;return a===Va?!0:(r((p=i.get(a))!=null?p:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,p){var f;return O((f=i.get(a))!=null?f:o(a,p),p),Reflect.set(d,a,p)}});La(this,gr,(e.hydrate?$p:is)(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)&&Ga(),La(this,fs,n.$$events);for(let d of Object.keys(ki(this,gr)))d==="$set"||d==="$destroy"||d==="$on"||ro(this,d,{get(){return ki(this,gr)[d]},set(a){ki(this,gr)[d]=a},enumerable:!0});ki(this,gr).$set=d=>{Object.assign(n,d)},ki(this,gr).$destroy=()=>{oa(ki(this,gr))}}$set(e){ki(this,gr).$set(e)}$on(e,i){ki(this,fs)[e]=ki(this,fs)[e]||[];let o=(...n)=>i.call(this,...n);return ki(this,fs)[e].push(o),()=>{ki(this,fs)[e]=ki(this,fs)[e].filter(n=>n!==o)}}$destroy(){ki(this,gr).$destroy()}};fs=new WeakMap,gr=new WeakMap;function q(t,e){gn(()=>{var n,s,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(s=Cp)==null?void 0:s.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Me&&yg(e.hash,d)}})}function ms(t,e){var i=void 0,o;Fi(()=>{i!==(i=e())&&(o&&(Di(o),o=null),i&&(o=Pi(()=>{So(()=>i(t))})))})}function Tg(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=Tg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Eg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Tg(t))&&(o&&(o+=" "),o+=e);return o}function Ul(t){return typeof t=="object"?Eg(t):t!=null?t:""}var Ig=[...`
|
|
44
|
+
\r\f\xA0\v\uFEFF`];function Pg(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||Ig.includes(o[l-1]))&&(d===o.length||Ig.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function kg(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 Tp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Ag(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(Tp)),n&&a.push(...Object.keys(n).map(Tp));var p=0,f=-1;let x=t.length;for(var v=0;v<x;v++){var u=t[v];if(d?u==="/"&&t[v-1]==="*"&&(d=!1):s?s===u&&(s=!1):u==="/"&&t[v+1]==="*"?d=!0:u==='"'||u==="'"?s=u:u==="("?l++:u===")"&&l--,!d&&s===!1&&l===0){if(u===":"&&f===-1)f=v;else if(u===";"||v===x-1){if(f!==-1){var y=Tp(t.substring(p,f).trim());if(!a.includes(y)){u!==";"&&v++;var w=t.substring(p,v).trim();i+=" "+w+";"}}p=v+1,f=-1}}}}return o&&(i+=kg(o)),n&&(i+=kg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ee(t,e,i,o,n,s){var l=t.__className;if(Xe||l!==i||l===void 0){var d=Pg(i,o,s);(!Xe||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(s&&n!==s)for(var a in s){var p=!!s[a];(n==null||p!==!!n[a])&&t.classList.toggle(a,p)}return s}function Ep(t,e={},i,o){for(var n in i){var s=i[n];e[n]!==s&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,s,o))}}function rt(t,e,i,o){var n=t.__style;if(Xe||n!==e){var s=Ag(e,o);(!Xe||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}else o&&(Array.isArray(o)?(Ep(t,i==null?void 0:i[0],o[0]),Ep(t,i==null?void 0:i[1],o[1],"important")):Ep(t,i,o));return o}function zl(t,e,i){if(t.multiple){if(e==null)return;if(!jn(e))return Gv();for(var o of t.options)o.selected=e.includes(Mg(o));return}for(o of t.options){var n=Mg(o);if(Ju(n,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Ip(t){var e=new MutationObserver(()=>{zl(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Do(()=>{e.disconnect()})}function Mg(t){return"__value"in t?t.__value:t.value}var Xa=Symbol("class"),Ja=Symbol("style"),Rg=Symbol("is custom element"),Ng=Symbol("is html");function Og(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Fe(t,e,i,o){var n=Dg(t);if(Xe&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||s_(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Tv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Hg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Bg(t,e,i,o,n=!1){var k;var s=Dg(t),l=s[Rg],d=!s[Ng];let a=Xe&&l;a&&ao(!1);var p=e||{},f=t.tagName==="OPTION";for(var v in e)v in i||(i[v]=null);i.class?i.class=Ul(i.class):(o||i[Xa])&&(i.class=null),i[Ja]&&((k=i.style)!=null||(i.style=null));var u=Hg(t);for(let I in i){let R=i[I];if(f&&I==="value"&&R==null){t.value=t.__value="",p[I]=R;continue}if(I==="class"){var y=t.namespaceURI==="http://www.w3.org/1999/xhtml";ee(t,y,R,o,e==null?void 0:e[Xa],i[Xa]),p[I]=R,p[Xa]=i[Xa];continue}if(I==="style"){rt(t,R,e==null?void 0:e[Ja],i[Ja]),p[I]=R,p[Ja]=i[Ja];continue}var w=p[I];if(!(R===w&&!(R===void 0&&t.hasAttribute(I)))){p[I]=R;var x=I[0]+I[1];if(x!=="$$")if(x==="on"){let Y={},H="$$"+I,F=I.slice(2);var S=vg(F);if(mg(F)&&(F=F.slice(0,-7),Y.capture=!0),!S&&w){if(R!=null)continue;t.removeEventListener(F,p[H],Y),p[H]=null}if(R!=null)if(S)t[`__${F}`]=R,lt([F]);else{let W=function(J){p[I].call(this,J)};var V=W;p[H]=_p(F,t,W,Y)}else S&&(t[`__${F}`]=void 0)}else if(I==="style")Fe(t,I,R);else if(I==="autofocus")gp(t,!!R);else if(!l&&(I==="__value"||I==="value"&&R!=null))t.value=t.__value=R;else if(I==="selected"&&f)Og(t,R);else{var T=I;d||(T=gg(T));var E=T==="defaultValue"||T==="defaultChecked";if(R==null&&!l&&!E)if(s[I]=null,T==="value"||T==="checked"){let Y=t,H=e===void 0;if(T==="value"){let F=Y.defaultValue;Y.removeAttribute(T),Y.defaultValue=F,Y.value=Y.__value=H?F:null}else{let F=Y.defaultChecked;Y.removeAttribute(T),Y.defaultChecked=F,Y.checked=H?F:!1}}else t.removeAttribute(I);else E||u.includes(T)&&(l||typeof R!="string")?t[T]=R:typeof R!="function"&&Fe(t,T,R,n)}}}return a&&ao(!0),p}function Pe(t,e,i=[],o,n=!1,s=Lr){let l=i.map(s);var d=void 0,a={},p=t.nodeName==="SELECT",f=!1;if(Fi(()=>{var u=e(...l.map(r)),y=Bg(t,d,u,o,n);f&&p&&"value"in u&&zl(t,u.value,!1);for(let x of Object.getOwnPropertySymbols(a))u[x]||Di(a[x]);for(let x of Object.getOwnPropertySymbols(u)){var w=u[x];x.description===Ku&&(!d||w!==d[x])&&(a[x]&&Di(a[x]),a[x]=Pi(()=>ms(t,()=>w))),y[x]=w}d=y}),p){var v=t;So(()=>{zl(v,d.value),Ip(v)})}f=!0}function Dg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Rg]:t.nodeName.includes("-"),[Ng]:t.namespaceURI===bv}}var Lg=new Map;function Hg(t){var e=Lg.get(t.nodeName);if(e)return e;Lg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=lc(o);for(var s in i)i[s].set&&e.push(s);o=qs(o)}return e}function s_(t,e,i){var o;Me&&(e==="srcset"&&a_(t,i)||kp((o=t.getAttribute(e))!=null?o:"",i)||Kv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function kp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Vg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function a_(t,e){var i=Vg(t.srcset),o=Vg(e);return o.length===i.length&&o.every(([n,s],l)=>s===i[l][1]&&(kp(i[l][0],n)||kp(n,i[l][0])))}var l_=ac?()=>performance.now():()=>Date.now(),Or={tick:t=>(ac?requestAnimationFrame:de)(t),now:()=>l_(),tasks:new Set};function Fg(){let t=Or.now();Or.tasks.forEach(e=>{e.c(t)||(Or.tasks.delete(e),e.f())}),Or.tasks.size!==0&&Or.tick(Fg)}function Ug(t){let e;return Or.tasks.size===0&&Or.tick(Fg),{promise:new Promise(i=>{Or.tasks.add(e={c:t,f:i})}),abort(){Or.tasks.delete(e)}}}function Ac(t,e){Bl(()=>{t.dispatchEvent(new CustomEvent(e))})}function p_(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 zg(t){let e={},i=t.split(";");for(let o of i){let[n,s]=o.split(":");if(!n||s===void 0)break;let l=p_(n.trim());e[l]=s.trim()}return e}var f_=t=>t;function Ap(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",p,f=e.inert,v=e.style.overflow,u,y;function w(){var R;var k=Ct,I=gt;Bi(null),so(null);try{return p!=null?p:p=i()(e,(R=o==null?void 0:o())!=null?R:{},{direction:a})}finally{Bi(k),so(I)}}var x={is_global:d,in(){var k;if(e.inert=f,!n){y==null||y.abort(),(k=y==null?void 0:y.reset)==null||k.call(y);return}s||u==null||u.abort(),Ac(e,"introstart"),u=Pp(e,w(),y,1,()=>{Ac(e,"introend"),u==null||u.abort(),u=p=void 0,e.style.overflow=v})},out(k){if(!s){k==null||k(),p=void 0;return}e.inert=!0,Ac(e,"outrostart"),y=Pp(e,w(),u,0,()=>{Ac(e,"outroend"),k==null||k()})},stop:()=>{u==null||u.abort(),y==null||y.abort()}},S=gt;if(((V=S.transitions)!=null?V:S.transitions=[]).push(x),n&&Dl){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(()=>x.in())})}}function Pp(t,e,i,o,n){var s=o===1;if(Is(e)){var l,d=!1;return gn(()=>{if(!d){var S=e({direction:s?"in":"out"});l=Pp(t,S,i,o,n)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:de,deactivate:de,reset:de,t:()=>o};let{delay:a=0,css:p,tick:f,easing:v=f_}=e;var u=[];if(s&&i===void 0&&(f&&f(0,1),p)){var y=zg(p(0,1));u.push(y,y)}var w=()=>1-o,x=t.animate(u,{duration:a,fill:"forwards"});return x.onfinish=()=>{var F;x.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(p)for(var I=Math.ceil(E/16.666666666666668),R=0;R<=I;R+=1){var Y=S+T*v(R/I),H=zg(p(Y,1-Y));V.push(H),k||(k=H.overflow==="hidden")}k&&(t.style.overflow="hidden"),w=()=>{var W=x.currentTime;return S+T*v(W/E)},f&&Ug(()=>{if(x.playState!=="running")return!1;var W=w();return f(W,1-W),!0})}x=t.animate(V,{duration:E,fill:"forwards"}),x.onfinish=()=>{w=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{x&&(x.cancel(),x.effect=null,x.onfinish=de)},deactivate:()=>{n=de},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var Ls,el,Wl,Lc,Wg,Vc=class Vc{constructor(e){Cs(this,Lc);Cs(this,Ls,new WeakMap);Cs(this,el);Cs(this,Wl);La(this,Wl,e)}observe(e,i){var o=ki(this,Ls).get(e)||new Set;return o.add(i),ki(this,Ls).set(e,o),hv(this,Lc,Wg).call(this).observe(e,ki(this,Wl)),()=>{var n=ki(this,Ls).get(e);n.delete(i),n.size===0&&(ki(this,Ls).delete(e),ki(this,el).unobserve(e))}}};Ls=new WeakMap,el=new WeakMap,Wl=new WeakMap,Lc=new WeakSet,Wg=function(){var e;return(e=ki(this,el))!=null?e:La(this,el,new ResizeObserver(i=>{for(var o of i){Vc.entries.set(o.target,o);for(var n of ki(this,Ls).get(o.target)||[])n(o)}}))},Gn(Vc,"entries",new WeakMap);var Mp=Vc;var m_=new Mp({box:"border-box"});function ir(t,e,i){var o=m_.observe(t,()=>i(t[e]));So(()=>(yt(()=>i(t[e])),o))}function Kg(t,e){return t===e||(t==null?void 0:t[Bo])===e}function it(t={},e,i,o){return So(()=>{var n,s;return zo(()=>{n=s,s=(o==null?void 0:o())||[],yt(()=>{t!==i(...s)&&(e(t,...s),n&&Kg(i(...n),t)&&e(null,...n))})}),()=>{gn(()=>{s&&Kg(i(...s),t)&&e(null,...s)})}}),t}function Br(t=!1){let e=Vt,i=e.l.u;if(!i)return;let o=()=>Ec(e.s);if(t){let n=0,s={},l=Lr(()=>{let d=!1,a=e.s;for(let p in a)a[p]!==s[p]&&(s[p]=a[p],d=!0);return d&&n++,n});o=()=>r(l)}i.b.length&&Ml(()=>{qg(e,o),ks(i.b)}),Ke(()=>{let n=yt(()=>i.m.map(Cv));return()=>{for(let s of n)typeof s=="function"&&s()}}),i.a.length&&Ke(()=>{qg(e,o),ks(i.a)})}function qg(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}function Kl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),de;let o=yt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var tl=[];function hr(t,e){return{subscribe:se(t,e).subscribe}}function se(t,e=de){let i=null,o=new Set;function n(d){if(Na(t,d)&&(t=d,i)){let a=!tl.length;for(let p of o)p[1](),tl.push(p,t);if(a){for(let p=0;p<tl.length;p+=2)tl[p][0](tl[p+1]);tl.length=0}}}function s(d){n(d(t))}function l(d,a=de){let p=[d,a];return o.add(p),o.size===1&&(i=e(n,s)||de),d(t),()=>{o.delete(p),o.size===0&&i&&(i(),i=null)}}return{set:n,update:s,subscribe:l}}function xi(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let s=e.length<2;return hr(i,(l,d)=>{let a=!1,p=[],f=0,v=de,u=()=>{if(f)return;v();let w=e(o?p[0]:p,l,d);s?l(w):v=typeof w=="function"?w:de},y=n.map((w,x)=>Kl(w,S=>{p[x]=S,f&=~(1<<x),a&&u()},()=>{f|=1<<x}));return a=!0,u(),function(){ks(y),v(),a=!1}})}function xe(t){let e;return Kl(t,i=>e=i)(),e}var Rc=!1,Lp=Symbol();function C(t,e,i){var s;let o=(s=i[e])!=null?s:i[e]={store:null,source:es(void 0),unsubscribe:de};if(o.store!==t&&!(Lp in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=de;else{var n=!0;o.unsubscribe=Kl(t,l=>{n?o.source.v=l:O(o.source,l)}),n=!1}return t&&Lp in i?xe(t):r(o.source)}function He(){let t={};function e(){Do(()=>{for(var i in t)t[i].unsubscribe();ro(t,Lp,{enumerable:!1,value:!0})})}return[t,e]}function Vp(t){var e=Rc;try{return Rc=!1,[t(),Rc]}finally{Rc=e}}var y_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Me&&Nv(`${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 Ne(t,e,i){return new Proxy(Me?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},y_)}var x_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Is(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];Is(n)&&(n=n());let s=Yo(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(Is(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Yo(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Bo||e===Va)return!1;for(let i of t.props)if(Is(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Is(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 vs(...t){return new Proxy({props:t},x_)}function Qg(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function m(t,e,i,o){var Y,H;var n=(i&1)!==0,s=!Zr||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,p;l?[p,a]=Vp(()=>t[e]):p=t[e];var f=Bo in t||Va in t,v=l&&((H=(Y=Yo(t,e))==null?void 0:Y.set)!=null?H:f&&e in t&&(F=>t[e]=F))||void 0,u=o,y=!0,w=!1,x=()=>(w=!0,y&&(y=!1,d?u=yt(o):u=o),u);p===void 0&&o!==void 0&&(v&&s&&Rv(e),p=x(),v&&v(p));var S;if(s)S=()=>{var F=t[e];return F===void 0?x():(y=!0,w=!1,F)};else{var T=(n?Lr:Vr)(()=>t[e]);T.f|=131072,S=()=>{var F=r(T);return F!==void 0&&(u=void 0),F===void 0?u:F}}if((i&4)===0&&s)return S;if(v){var E=t.$$legacy;return function(F,W){return arguments.length>0?((!s||!W||E||a)&&v(W?S():F),F):S()}}var V=!1,k=!1,I=es(p),R=Lr(()=>{var F=S(),W=r(I);return V?(V=!1,k=!0,W):(k=!1,I.v=F)});return l&&r(R),n||(R.equals=Oa),function(F,W){if(Cc!==null&&(V=k,S(),r(I)),arguments.length>0){let J=W?r(R):s&&l?ni(F):F;if(!R.equals(J)){if(V=!0,O(I,J),w&&u!==void 0&&(u=J),Qg(R))return F;yt(()=>r(R))}return F}return Qg(R)?R.v:r(R)}}var w_;typeof HTMLElement=="function"&&(w_=class extends HTMLElement{constructor(e,i,o){super();Gn(this,"$$ctor");Gn(this,"$$s");Gn(this,"$$c");Gn(this,"$$cn",!1);Gn(this,"$$d",{});Gn(this,"$$r",!1);Gn(this,"$$p_d",{});Gn(this,"$$l",{});Gn(this,"$$l_u",new Map);Gn(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))}}async connectedCallback(){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(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=S_(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]=Rp(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=Cg({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=yc(()=>{zo(()=>{var s;this.$$r=!0;for(let l of qu(this.$$c)){if(!((s=this.$$p_d[l])!=null&&s.reflect))continue;this.$$d[l]=this.$$c[l];let d=Rp(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]=Rp(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 qu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Rp(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 S_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Gg="5";var jg,Yg,Zg;typeof window!="undefined"&&((Zg=(Yg=(jg=window.__svelte)!=null?jg:window.__svelte={}).v)!=null?Zg:Yg.v=new Set).add(Gg);import{areValidLiveRecordSources as m5,clientChecker as ev}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-core/es2018";import{noop as J1,safeStorage as v5,throttleFn as g5}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as h5}from"@vkontakte/videoplayer-statistics/es2018";import{InterfaceLanguage as C_,fillWithDefault as T_,VideoQuality as Xg}from"@vkontakte/videoplayer-shared/es2018";var E_={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:C_.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:Xg.Q_480P,highQualityLimit:Xg.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"},Jg=t=>T_(t,E_),eh=t=>Ha("ui-config",t),Et=()=>Da("ui-config");var ql="vk_player_debug_panel_opened";var th="videoplayer",ih="videoplayer";var os={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},oh=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),nh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),rh=new Set(["ShiftRight","ShiftLeft"]);var sh=["TIMELINE"],Ql=[...sh,"GRAPH_BUTTON"],Np=[...sh,"PLAY_BUTTON"],Gl=[...Ql,"PLAY_BUTTON"];var ns=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(ns||{}),aa={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as ah,VERSION as I_}from"@vkontakte/videoplayer-shared/es2018";import{VERSION as k_}from"@vkontakte/videoplayer-core/es2018";import{VERSION as P_}from"@vkontakte/videoplayer-statistics/es2018";var Nc="prod",il="1.1.72-dev.95df362c.0";var la=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var lh=Symbol("storeContext"),dh=Symbol("microStoresContext"),ch=(t,e)=>{Ha(lh,t),Ha(dh,e),Nc==="dev"&&(window.app={store:t,microStores:e})},Ee=()=>{let t=Da(lh);return ah(t,"Store context is empty!"),t},mo=()=>{let t=Da(dh);return ah(t,"MicroStores context is empty!"),t},ti=(t,e)=>Bc(t,t.getValue(),e),Bc=(t,e,i)=>hr(e,o=>{let n=t.subscribe(s=>{o(s),i==null||i(s)});return()=>n.unsubscribe()}),uh=(t,e,i,o)=>{var R,Y,H,F,W,J,G,ce;let n=t.info,{width:s,height:l}=xe(i.ui.playerSize),d=(Y=(R=n.throughputEstimation$.getValue())==null?void 0:R.toFixed(0))!=null?Y:0,a=(F=(H=n.rttEstimation$.getValue())==null?void 0:H.toFixed(0))!=null?F:0,p=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${il} (core: ${k_}, stat: ${P_}, shared: ${I_})`,v=xe(i.state.errorLog$),u=v.length?`
|
|
45
|
+
`+v.map((ie,ue)=>{var ne;let $e=`${ue}) Type: ${ie.id}
|
|
46
|
+
`,fe=`Message: ${ie.message} (${ie.thrown})
|
|
47
|
+
`,ke=`Trace: ${(ne=ie.thrown)==null?void 0:ne.stack}
|
|
48
|
+
`;return $e+fe+ke}).join(`
|
|
49
|
+
`):void 0,y=i.state.isAudioDisabled?"disabled":xe(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),x=t.info.currentAudioStream$.getValue(),S=[];w&&S.push(`Video: ${(W=w==null?void 0:w.codec)!=null?W:""}`+(w!=null&&w.hdr?" (HDR)":"")),x&&S.push(`Audio: ${(J=x==null?void 0:x.codec)!=null?J:""}`+(x!=null&&x.language?` (${x.language})`:""));let T=n.currentQuality$.getValue(),E="";if(T){let ie=n.availableQualitiesFps$.getValue()[T];E=ie?`${ie}fps`:""}let V=(ce=(G=n.currentBuffer$.getValue())==null?void 0:G.end)!=null?ce:0,k=Math.max(V-xe(i.state.positionExact$),0),I={Version:f,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:xe(i.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${d}Kbps @ ${a}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:S.join(", "),Quality:`${p} ${T} ${E}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:y,Position:`${xe(i.state.positionExact$)}s`,Buffer:`${k}s`,State:`${xe(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${s}x${l}`,URL:window.location.href,Errors:u};return Object.entries(I).filter(([ie,ue])=>ue!==void 0).map(([ie,ue])=>`${ie}: ${ue}`).join(`
|
|
50
|
+
`)},ph=(t,e,i)=>{var Y,H,F,W;let o=t.info,{width:n,height:s}=xe(i.ui.playerSize),l={version:il,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 p=o.intrinsicVideoSize$.getValue();p&&(l.videoSize=`${p.width}x${p.height}`);let f=o.currentBuffer$.getValue(),v=o.isLive$.getValue(),u=o.liveBufferTime$.getValue();f&&(v&&u?l.buffer=f.end-u:l.buffer=Math.max(f.end-xe(i.state.positionExact$),0)),l.position=xe(i.state.positionExact$);let y=o.throughputEstimation$.getValue();y&&(l.speed=y);let w=o.videoBitrate$.getValue();w&&(l.bitrate=w);let x=o.liveLatency$.getValue();x&&(l.liveLatency=x);let S=o.currentVideoSegmentLength$.getValue();S&&(l.currentVideoSegmentLength=S);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let E=xe(i.vsid);typeof E=="string"&&(l.vsid=E);let V=(Y=t.info.currentVideoStream$.getValue())==null?void 0:Y.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=(W=t.info.currentAudioStream$.getValue())==null?void 0:W.language;return R&&(l.audioLanguage=R),l},fh=(t,e)=>la(t,e,"mp4"),mh=t=>!t.type,vh=t=>!!t.type,gh=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},Oc=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=await fetch(e,{signal:this.destroyController.signal});if(i.ok)return await i.text();throw i}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};import{isNullable as Hp,safeStorage as Ai}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-core/es2018";var hh="vk_player_prefer_traffic_saving_enabled",_h="vk_player_preferred_volume",bh="vk_player_prefer_volume_mute",Fp="vk_player_preferred_quality",Op="vk_player_preferred_default_quality_settings",Bp="vk_player_preferred_quality_settings_by_video",$h="vk_player_preferred_stream_language",yh="vk_player_preferred_rate",xh="vk_player_preferred_autoplay_next",Dp="vk_player_preferred_subtitles_language",wh="vk_player_user_video_prefs",Sh=t=>t>1?1:t<0?0:t,Up=t=>Ai.set(_h,Sh(t).toString(10)),Dc=()=>{let t=Ai.get(_h);return Hp(t)?void 0:Sh(parseFloat(t))},zp=(t,e)=>Ai.set(Fp,JSON.stringify({videoId:t,value:e})),Hc=()=>Ai.remove(Fp),Wp=t=>{let e=Ai.get(Fp);if(Hp(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Hc();return}return o},Kp=(t,e)=>{e?Ai.set(t,"true"):Ai.remove(t)},qp=t=>Ai.get(t)==="true",Qp=t=>Kp(bh,t),Ch=()=>qp(bh),jl=t=>Kp(hh,t),Gp=()=>qp(hh),Th=()=>Ai.get($h),jp=t=>Ai.set($h,t),Yp=()=>Ai.get(Dp),Zp=t=>{t?Ai.set(Dp,t):Ai.remove(Dp)},Eh=t=>Ai.set(yh,JSON.stringify({rate:t})),Ih=()=>{let t=Ai.get(yh);if(Hp(t))return;let{rate:e}=JSON.parse(t);return e},kh=t=>Kp(xh,t),Ph=()=>qp(xh),A_=()=>{let t=f=>{Ai.set(Op,JSON.stringify(f))},e=()=>{try{let f=Ai.get(Op);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=Ai.get(Bp);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{Ai.set(Bp,JSON.stringify(f))},n=f=>{p(f);let v=f?i():null;if(v&&(v==null?void 0:v.videoId)===f)return{...v,appliesTo:"to-video"};v&&s();let u=e();return u?{...u,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},s=()=>{Ai.remove(Bp)},l=()=>{Ai.remove(Op)},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":zp(f,v.quality)}s(),l()}},p=f=>{let v=Wp(f);if(v){o({type:"exact_quality",videoId:f,quality:v});return}Gp()&&t({type:"traffic_saving",videoId:f}),jl(!1),Hc()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:Yp,savePreferredSubtitlesLanguage:Zp}},{getPreferredQualitySettings:Ah,migrateSettingsToLegacyWay:Mh,savePreferredQualitySettings:Fc,savePreferredDefaultQualitySettings:CM,removePreferredQualitySettingsByVideo:TM,getPreferredDefaultQualitySettings:Uc}=A_(),M_=3,L_=3,Lh=()=>{let t=Ai.get(wh);if(t)try{return JSON.parse(t)}catch(e){return null}return null},zc=(t,e)=>{var n,s;let i=Lh();return(s=(n=i==null?void 0:i[t])==null?void 0:n[e])!=null?s:null},Xp=(t,e,i)=>{var l,d,a;let o=(l=Lh())!=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=V_(o);Ai.set(wh,JSON.stringify(s))};function V_(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(L_),e.reduce((o,[n])=>(o[n]=R_(t[n]),o),{})}function R_(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(M_),Object.fromEntries(e)}import{PlaybackState as Y1}from"@vkontakte/videoplayer-core/es2018";var N_=Te('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"></path><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-opacity=".12" stroke-width=".5" d="m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"></path></g><defs><filter id="a" width="75" height="44" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_618_12297"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_618_12297" result="shape"></feBlend></filter></defs></svg>');function Yl(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=N_();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),$(t,o)}import{isNullable as Nh,InterfaceLanguage as Oh}from"@vkontakte/videoplayer-shared/es2018";var O_={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
|
|
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`},Vh=O_;var B_={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
|
|
55
|
-
`),o,n;for(let s=0;s<i.length;++s){if(o=
|
|
56
|
-
`).filter(i=>!!i)[0]}function Z_(t){try{let e=Y_(t);if(e)return e}catch(e){}return{value:jh(t),type:t&&t.name,stacktrace:{frames:[]}}}function X_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Yc=class{constructor(e){if(e&&e.dsn){let i=j_.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{...this.getRequestBlank(),exception:{values:[Z_(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(G_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:X_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Yh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function J_(){return window}var Zc=class t extends Yc{constructor(e,i=J_()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=p=>p,beforeBreadcrumb:s=p=>p,blacklistUrls:l=[],ignoreErrors:d=[],release:a=void 0}=this.options||{};this.plugins=o.map(p=>new p(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",{...e}),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new t({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send({...this.getRequestBlank(),message:e,level:i})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>Yh(i,o))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>Yh(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let n=this._state[o],s=Array.isArray(n)?n:null,l=e[o],d=Array.isArray(l)?l:null;return{...i,[o]:s||d?[...s||[],...d||[]]:{...typeof n!="string"?n:{},...typeof l!="string"?l:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};import{isNonNullable as Xc,Subscription as eb}from"@vkontakte/videoplayer-shared/es2018";var Jc=null,da=class{constructor(e,i,o={}){!Jc&&e.dsn&&(this.sentryClient=new Zc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new eb,this.options=e,this.context=o,Jc=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Jc=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:n,context:s,options:l}=this,{sampleRate:d=0,whiteErrorIdList:a,whiteErrorCategoryList:p=[],blackErrorIdList:f,blackErrorCategoryList:m}=l,{errorType:u,category:y}=i;if(Xc(y)&&m.includes(y)||Xc(u)&&f.includes(u))return;if(Math.random()<=d||Xc(y)&&p.includes(y)||Xc(u)&&a.includes(u)){Object.keys(i).length&&n.setTags({version:this.version,...i}),(Object.keys(s).length||Object.keys(o).length)&&n.setExtras({...s,...o});try{u&&n.captureMessage(u,i.fatal?il.fatal:il.error),n.report(e)}catch(x){console.error(x)}}}static getInstance(){return Jc}};var hs=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(hs||{});var eu=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?(e.webkitEnterFullscreen(),Promise.resolve()):Promise.reject()},tu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),Zh=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},td=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Rs=()=>!!td(),iu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},ou=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Xh=t=>{let e=window.screen;return(async n=>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 Jh}from"@vkontakte/videoplayer-core/es2018";var e1=()=>({title:W("hotkey_map_modal_title"),closeBtnText:W("hotkey_map_modal_close_btn_text"),groups:[{title:W("hotkey_map_group_title_common"),items:[{description:W("hotkey_map_item_mute_description"),value:W("hotkey_map_item_mute_value")},{description:W("hotkey_map_item_volume_up_description"),value:W("hotkey_map_item_volume_up_value")},{description:W("hotkey_map_item_volume_down_description"),value:W("hotkey_map_item_volume_down_value")},{description:W("hotkey_map_item_pip_description"),value:W("hotkey_map_item_pip_value")},{description:W("hotkey_map_item_full_screen_description"),value:W("hotkey_map_item_full_screen_value")},{description:W("hotkey_map_item_show_context_menu_description"),value:W("hotkey_map_item_show_context_menu_value")},{description:W("hotkey_map_item_show_hotkey_map_description"),value:W("hotkey_map_item_show_hotkey_map_value")}]},{title:W("hotkey_map_group_title_playback"),items:[{description:W("hotkey_map_item_play_toggle_description"),value:W("hotkey_map_item_play_toggle_value")},{description:W("hotkey_map_item_seek_backward_description"),value:W("hotkey_map_item_seek_backward_value")},{description:W("hotkey_map_item_seek_forward_description"),value:W("hotkey_map_item_seek_forward_value")},{description:W("hotkey_map_item_fast_seek_backward_description"),value:W("hotkey_map_item_fast_seek_backward_value")},{description:W("hotkey_map_item_fast_seek_forward_description"),value:W("hotkey_map_item_fast_seek_forward_value")},{description:W("hotkey_map_item_rate_down_description"),value:W("hotkey_map_item_rate_down_value")},{description:W("hotkey_map_item_rate_up_description"),value:W("hotkey_map_item_rate_up_value")},{description:W("hotkey_map_item_prev_frame_description"),value:W("hotkey_map_item_prev_frame_value")},{description:W("hotkey_map_item_next_frame_description"),value:W("hotkey_map_item_next_frame_value")},{description:W("hotkey_map_item_jump_seek_description"),value:W("hotkey_map_item_jump_seek_value")},{description:W("hotkey_map_item_next_video_description"),value:W("hotkey_map_item_next_video_value")},{description:W("hotkey_map_item_prev_video_description"),value:W("hotkey_map_item_prev_video_value")}]},{title:W("hotkey_map_group_title_subtitles"),items:[{description:W("hotkey_map_item_subtitles_toggle_description"),value:W("hotkey_map_item_subtitles_toggle_value")}]},{title:W("hotkey_map_group_title_episodes"),items:[{description:W("hotkey_map_item_prev_episode_description"),value:Jh.device.isApple?W("hotkey_map_item_prev_episode_mac_value"):W("hotkey_map_item_prev_episode_pc_value")},{description:W("hotkey_map_item_next_episode_description"),value:Jh.device.isApple?W("hotkey_map_item_next_episode_mac_value"):W("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as tb,ValueSubject as uf}from"@vkontakte/videoplayer-shared/es2018";var ca=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:tb(this.onResize.bind(this),300)};this.info={isActive$:new uf(!1),isEnabled$:new uf(!1),type:0};this.info.isEnabled$=new uf(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.removeEventHandlers(),await this.request(),this.addEventHandlers())}async request(){var e;if(!(!this.isSupported()||this.isActive()))try{await((e=this.videoElement)==null?void 0:e.requestPictureInPicture())}catch(i){this.isRequested=!1}}async exit(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){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={...e}}removeEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.removeEventHandlers(),await this.exit(),this.info.isActive$.next(!1),this.isRequested=!1}onEnterPictureInPicture(e){var 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 ua(t){return t instanceof ca}import{devNull as t1,now as i1}from"@vkontakte/videoplayer-shared/es2018";Zv();function ff(t,e){U(e,!1);let i=Te();Lt(()=>{i.getAdmanWrapper().startPostroll()}),Dr(),z()}import{noop as ib}from"@vkontakte/videoplayer-shared/es2018";var ob=(t,e,i)=>{t.stopPropagation(),r(e)&&i()()},nb=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>'),rb=A("<div><!></div>"),sb={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 mf(t,e){U(e,!0),K(t,sb);let[i,o]=He(),n=()=>C(p,"$isMobile",i),s=v(e,"position",3,0),l=v(e,"secondsToWatchBeforeSkip",3,0),d=v(e,"skipAd",3,ib),p=Te().ui.isMobile,f=g(()=>s()>0&&s()>=l());var m=rb();let u;m.__click=[ob,f,d];var y=_(m);{var w=S=>{var T=nb(),E=_(T);xe(),h(T),B(R=>_e(E,`${R!=null?R:""} `),[()=>W("skip_ads_now")]),$(S,T)},x=S=>{var T=ts();B(E=>_e(T,E),[()=>W("skip_ads_after",{time:Math.ceil(l()-s()).toFixed(0)})]),$(S,T)};V(y,S=>{r(f)?S(w):S(x,!1)})}h(m),B(S=>u=ie(m,1,"container svelte-1k4i25s",null,u,S),[()=>({"container-mobile":n(),skippable:r(f)})]),$(t,m),z(),o()}st(["click"]);var ab=A('<button class="svelte-1wy3dql"> </button>'),lb={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 vf(t,e){U(e,!1),K(t,lb),Dr();var i=ab(),o=_(i,!0);h(i),B(n=>_e(o,n),[()=>W("visit_advertiser")],Rr),$(t,i),z()}var db=A('<div class="top-gradient-mobile svelte-354ajf"></div>'),cb=A('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),ub={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.`},Rh=B_;var gs=new Map;gs.set(Oh.EN,Rh);gs.set(Oh.RU,Vh);var Bh=new Map,Jp=({language:t,pack:e,fallback:i})=>{if(gs.has(t)){let o=gs.get(t);gs.set(t,{...o,...e})}else gs.set(t,e);Bh.set(t,i)},ef=t=>gs.has(t),tf=(t,e,i,o)=>{var l;let n=gs.get(t),s=n==null?void 0:n[e];if(Nh(s)){let d=(l=Bh.get(t))!=null?l:o,a=d?gs.get(d):void 0;s=a==null?void 0:a[e]}return Nh(s)?e+Object.values(i!=null?i:{}).join(" "):i?s.replaceAll(/{(\w+?)}/g,(d,a)=>{var p;return(p=i[a])!=null?p:""}):s},K=(t,e)=>{let{interfaceLanguage$:i}=Ee(),o=xe(i),n=Et();return tf(o,t,e,n.defaultLanguage)};import"@vkontakte/videoplayer-core/es2018";var ol;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(ol||(ol={}));var D_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,H_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,F_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Wc="?",U_="X-Sentry-Auth",z_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function W_(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=D_.exec(i[s]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||Wc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=F_.exec(i[s]))n={filename:o[2],function:o[1]||Wc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=H_.exec(i[s]))s===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||Wc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=Wc),e.push(n)}return e.length?{value:Dh(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function Dh(t){return(t&&t.message||"No error message").split(`
|
|
56
|
+
`).filter(i=>!!i)[0]}function K_(t){try{let e=W_(t);if(e)return e}catch(e){}return{value:Dh(t),type:t&&t.name,stacktrace:{frames:[]}}}function q_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Kc=class{constructor(e){if(e&&e.dsn){let i=z_.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{...this.getRequestBlank(),exception:{values:[K_(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(U_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:q_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Hh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function Q_(){return window}var qc=class t extends Kc{constructor(e,i=Q_()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=p=>p,beforeBreadcrumb:s=p=>p,blacklistUrls:l=[],ignoreErrors:d=[],release:a=void 0}=this.options||{};this.plugins=o.map(p=>new p(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",{...e}),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new t({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send({...this.getRequestBlank(),message:e,level:i})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>Hh(i,o))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>Hh(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{...i,[o]:s||d?[...s||[],...d||[]]:{...typeof n!="string"?n:{},...typeof l!="string"?l:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};import{isNonNullable as Qc,Subscription as G_}from"@vkontakte/videoplayer-shared/es2018";var Gc=null,da=class{constructor(e,i,o={}){!Gc&&e.dsn&&(this.sentryClient=new qc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new G_,this.options=e,this.context=o,Gc=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Gc=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:p=[],blackErrorIdList:f,blackErrorCategoryList:v}=l,{errorType:u,category:y}=i;if(Qc(y)&&v.includes(y)||Qc(u)&&f.includes(u))return;if(Math.random()<=d||Qc(y)&&p.includes(y)||Qc(u)&&a.includes(u)){Object.keys(i).length&&n.setTags({version:this.version,...i}),(Object.keys(s).length||Object.keys(o).length)&&n.setExtras({...s,...o});try{u&&n.captureMessage(u,i.fatal?ol.fatal:ol.error),n.report(e)}catch(x){console.error(x)}}}static getInstance(){return Gc}};var hs=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(hs||{});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()},Yc=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),Fh=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},Zl=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Vs=()=>!!Zl(),Zc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Xc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Uh=t=>{let e=window.screen;return(async n=>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 zh}from"@vkontakte/videoplayer-core/es2018";var Wh=()=>({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:zh.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:zh.device.isApple?K("hotkey_map_item_next_episode_mac_value"):K("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as j_,ValueSubject as of}from"@vkontakte/videoplayer-shared/es2018";var ca=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:j_(this.onResize.bind(this),300)};this.info={isActive$:new of(!1),isEnabled$:new of(!1),type:0};this.info.isEnabled$=new of(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.removeEventHandlers(),await this.request(),this.addEventHandlers())}async request(){var e;if(!(!this.isSupported()||this.isActive()))try{await((e=this.videoElement)==null?void 0:e.requestPictureInPicture())}catch(i){this.isRequested=!1}}async exit(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){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={...e}}removeEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.removeEventHandlers(),await this.exit(),this.info.isActive$.next(!1),this.isRequested=!1}onEnterPictureInPicture(e){var 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 ua(t){return t instanceof ca}import{devNull as Kh,now as qh}from"@vkontakte/videoplayer-shared/es2018";Fv();function rf(t,e){U(e,!1);let i=Ee();Pt(()=>{i.getAdmanWrapper().startPostroll()}),Br(),z()}import{noop as Y_}from"@vkontakte/videoplayer-shared/es2018";var Z_=(t,e,i)=>{t.stopPropagation(),r(e)&&i()()},X_=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>'),J_=M("<div><!></div>"),eb={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 sf(t,e){U(e,!0),q(t,eb);let[i,o]=He(),n=()=>C(p,"$isMobile",i),s=m(e,"position",3,0),l=m(e,"secondsToWatchBeforeSkip",3,0),d=m(e,"skipAd",3,Y_),p=Ee().ui.isMobile,f=g(()=>s()>0&&s()>=l());var v=J_();let u;v.__click=[Z_,f,d];var y=_(v);{var w=S=>{var T=X_(),E=_(T);Ce(),h(T),B(V=>be(E,`${V!=null?V:""} `),[()=>K("skip_ads_now")]),$(S,T)},x=S=>{var T=ts();B(E=>be(T,E),[()=>K("skip_ads_after",{time:Math.ceil(l()-s()).toFixed(0)})]),$(S,T)};L(y,S=>{r(f)?S(w):S(x,!1)})}h(v),B(S=>u=ee(v,1,"container svelte-1k4i25s",null,u,S),[()=>({"container-mobile":n(),skippable:r(f)})]),$(t,v),z(),o()}lt(["click"]);var tb=M('<button class="svelte-1wy3dql"> </button>'),ib={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 af(t,e){U(e,!1),q(t,ib),Br();var i=tb(),o=_(i,!0);h(i),B(n=>be(o,n),[()=>K("visit_advertiser")],Vr),$(t,i),z()}var ob=M('<div class="top-gradient-mobile svelte-354ajf"></div>'),nb=M('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),rb={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"},Kh=W_;var g
|
|
|
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
|
|
66
|
+
);}`};function Jl(t,e){U(e,!0),q(t,rb);let[i,o]=He(),n=()=>C(H,"$canSkipAd",i),s=()=>C(Y,"$adPlaybackState",i),l=()=>C(E,"$isMobile",i),d=()=>C(F,"$adPosition",i),a=()=>C(W,"$secondsToWatchBeforeSkipAd",i),p=()=>C(T,"$isVideoEnded",i),f=m(e,"adsSlotId",3,void 0),v=m(e,"adsParams",3,void 0),u=m(e,"adsPreviewParam",3,void 0),y=m(e,"adsAutoplayParam",3,void 0),w=m(e,"duration",3,0),x=Ee(),S=Et(),T=x.state.isEnded$,E=x.ui.isMobile,V=S.ads.isMobileGoToSiteButton,k=j(void 0),I=j(void 0),R=!1,Y=x.ads.playbackState,H=x.ads.canSkip,F=x.ads.position,W=x.ads.secondsToWatchBeforeSkip,J=g(()=>n()&&s()!=="inactive"),G=g(()=>l()&&s()!=="inactive"&&V);Pt(()=>{var Ae;let Be=x.getAdmanWrapper();if(Kh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[qh(),f()]}),!f()){Be.onAdmanLoadingError();return}let le=Ie=>{Be.initAdman(Ie),R=!0},ve=new AbortController,te=()=>{ve.abort()},{width:me,height:De}=xe(x.ui.playerSize),pe=xe(x.ui.isFullscreen),st=(Ae=y())!=null?Ae:xe(x.ui.isAutoplay),Z={width:me,height:De,isFullscreen:pe,isAutoplay:st,adsContainer:r(k),adsVideoElement:r(I),slotId:f(),params:v(),previewParam:u(),duration:w()};return window.AdmanHTML?le(Z):Be.loadAdman(ve.signal).then(()=>{le(Z)}).catch(()=>{Be.onAdmanLoadingError()}),()=>{Kh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[qh(),f()]}),!R&&te()}});var ce=nb(),ie=_(ce);{var ue=Be=>{var le=ob();$(Be,le)};L(ie,Be=>{l()&&Be(ue)})}var $e=P(ie,2);it($e,Be=>O(I,Be),()=>r(I));var fe=P($e,2);{var ke=Be=>{sf(Be,{get position(){return d()},get secondsToWatchBeforeSkip(){return a()},get skipAd(){return x.actions.internal.skipAd}})};L(fe,Be=>{r(J)&&Be(ke)})}var ne=P(fe,2);{var Ve=Be=>{rf(Be,{})};L(ne,Be=>{p()&&Be(Ve)})}var re=P(ne,2);{var N=Be=>{af(Be,{})};L(re,Be=>{r(G)&&Be(N)})}h(ce),it(ce,Be=>O(k,Be),()=>r(k)),$(t,ce),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 sb=Te('<svg><!><path fill="none" stroke="var(--btn-color, #fff)" stroke-width="2" d="M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"></path><path fill="var(--btn-color, #f0f2f5)" fill-rule="evenodd" d="M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"></path></svg>');function lf(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=sb();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),$(t,o)}var ab=Te('<svg><!><rect width="42" height="20" fill="var(--timeline-slider-filled-active-live-bg, #ff3347)" rx="5"></rect><path fill="#f2f3f5" fill-rule="evenodd" d="M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z" clip-rule="evenodd"></path></svg>');function df(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=ab();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),$(t,o)}function ed(t,e){let i=m(e,"isActive",3,!1);var o=We(),n=ge(o);{var s=d=>{df(d,{})},l=d=>{lf(d,{})};L(n,d=>{i()?d(s):d(l,!1)})}$(t,o)}var lb=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>'),db=M('<div class="live-icon svelte-1s15d2i"><!></div>'),cb=M('<span class="text svelte-1s15d2i"> </span>'),ub=M("<div><!> <!></div>"),pb={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"},Kh=W_;var g
|
|
|
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
|
|
138
|
-
opacity var(--controls-transition-duration);}`};function sd(t,e){U(e,!0),K(t,$b);let[i,o]=He(),n=()=>C(f,"$disabled",i),s=v(e,"isHidden",3,!1),l=v(e,"isLive",3,!1),d=v(e,"isPlaying",3,!1),a=Et(),p=g(()=>hn(e.duration-e.position)),f=le(!1);var m=bb();let u;var y=_(m);rd(y,{get time(){return r(p)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),h(m),ms(m,()=>ol(s()&&a.features.usePerformanceFix,f,a.disableInvisibleComponentsTimeout)),B(w=>u=ie(m,1,"thumb-timer svelte-c6gowj",null,u,w),[()=>({"out-of-flow":n(),hidden:s()})]),$(t,m),z(),o()}var nl=t=>{if(!navigator.clipboard){o1(t);return}navigator.clipboard.writeText(t).catch(()=>o1(t))};function o1(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 Ab}from"@vkontakte/videoplayer-core/es2018";import{clientChecker as n1}from"@vkontakte/videoplayer-core/es2018";var _f="focus-hidden";var yr=t=>{t.stopPropagation(),t.preventDefault()},bf=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(_f)},xb=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},wb=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},Sb=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},Cb=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},r1=t=>t.code==="Escape",Tb=t=>t.code==="ArrowLeft",ad=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},s1=t=>{Sb(t)?(yr(t),wb(t.target)):Cb(t)&&(yr(t),xb(t.target))},Bs=t=>!n1.device.isAndroid&&(t==null?void 0:t.detail)===0||n1.device.isAndroid&&(t==null?void 0:t.pointerType)==="",rl=async(t,e,i)=>{await xo(),t&&!t.classList.contains("opened")&&!e&&ye(i)&&(await xo(),i.set(!1),t.focus())},a1=async(t,e,i)=>{await xo(),t&&!e&&ye(i)&&(i.set(!1),t.focus())},ld=async(t,e,i,o=!1)=>{if(await xo(),!!t&&e&&!o){let s=t.children[0];s==null||s.classList.toggle(_f,!i),s==null||s.focus()}},l1=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},nu=(t,e)=>{s1(t),bf(t.target),r1(t)&&(yr(t),e())},ru=async(t,e)=>{ad(t,["ArrowRight"])&&(yr(t),e())},d1=async(t,e,i)=>{if(s1(t),Tb(t)){yr(t),e();return}r1(t)&&(yr(t),i())},sl=(t,e)=>{ad(t)&&(yr(t),e())},c1=(t,e,i)=>{if(ad(t))yr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),yr(t);return}o==="ArrowRight"&&!e&&(i(!0),yr(t))}},u1=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},p1=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,n=e.left+o;return{bottom:e.bottom+i,left:n}};import{isNullable as su,isValidURL as Mb}from"@vkontakte/videoplayer-shared/es2018";var Hr={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};import{noop as f1}from"@vkontakte/videoplayer-shared/es2018";var Ib=(t,e)=>{sl(t,()=>e())},kb=A('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),Pb={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),K(t,Pb);let i=v(e,"onClick",3,f1),o=v(e,"closeContextMenu",3,f1),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var s=kb();s.__click=n,s.__keydown=[Ib,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()}st(["click","keydown"]);var fa=(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 Lb=(t,e)=>{nu(t,e)},Vb=t=>{t.preventDefault()},Rb=A('<ul role="menu" class="svelte-1p5ukkp"></ul>'),Nb={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 yf(t,e){U(e,!0),K(t,Nb);let[i,o]=He(),n=()=>C(Y,"$isLive$",i),s=()=>C(fe,"$isPiPEnabled$",i),l=()=>C(q,"$chromecastState$",i),d=()=>C(be,"$pictureInPictureApiIsActive$",i),a=()=>C(re,"$isLooped$",i),p=()=>C(j,"$positionExact$",i),f=()=>C(G,"$additionalContextMenuItems$",i),m=v(e,"visible",3,!1),u=v(e,"position",19,()=>({top:0,left:0})),y=v(e,"playerContainerRef",3,void 0),w=v(e,"controlsContainerRef",3,void 0),x=v(e,"menuElementRef",15,void 0),S=Z(0),T=Z(0),E=Te(),{pictureInPicture$:R}=uo(),I=Et(),M=E.ui.contextMenu.visible$,k=E.ui.debugPanelVisible,G=E.ui.additionalContextMenuItems$,H=E.ui.t,F=E.actions.internal.togglePictureInPicture,q=E.state.chromecastState$,Y=E.state.isLive$,j=E.state.positionExact$,ue=E.state.isInteractive,re=E.state.looped$,{isEnabled$:fe,isActive$:be}=R,me=g(()=>{var Re;return I.features.copyVideoLink&&((Re=E.callbacks)==null?void 0:Re.onCopyVideoLink)}),Pe=g(()=>r(me)&&!n()&&!ue),se=g(()=>{var Re;return!!((Re=E.callbacks)!=null&&Re.onCopyEmbedCodeClicked)}),Le=g(()=>s()&&l()!==Ab.CONNECTED&&!ue),ae=g(()=>!ue),N=g(()=>I.features.videoRotate&&!ue),Be=g(()=>I.showSupport&&!d()),ce=g(()=>I.features.saveTraceInfoToFile),he=()=>{var Re;M.set(!1),(Re=e.returnFocus)==null||Re.call(e)},oe=(Re,We)=>{if(!x()||!y()||!w())return;let Ne=x().getBoundingClientRect(),Je=y().getBoundingClientRect();O(S,Re-Je.left),O(T,We-Je.top),r(S)+Ne.width>Je.width&&O(S,Je.width-Ne.width),r(T)+Ne.height>Je.height&&O(T,Je.height-Ne.height),O(S,Math.max(r(S),0),!0),O(T,Math.max(r(T),0),!0)};Qe(()=>{(async()=>{if(x()&&y()&&w()){await xo();let{top:We,left:Ne,bottom:Je,right:Ft}=u(),Wt=Ne!=null?Ne:0,Ct=We!=null?We:0,_i=x().getBoundingClientRect();su(Ne)&&!su(Ft)&&(Wt=Ft-_i.width),su(We)&&!su(Je)&&(Ct=Je-_i.height),Wt=Math.max(Wt,0),Ct=Math.max(Ct,0),oe(Wt,Ct)}})()});let ve=()=>{E.actions.internal.videoRotate()},De=()=>{Mb(e.supportLink)&&window.open(e.supportLink,"_blank"),E.actions.internal.reportProblem(),E.actions.internal.pause()},pe=()=>{let Re=E.actions.internal.getDebugTextData();if(I.features.saveDebugInfoToFile){let We=new Blob([...Re],{type:"plain/text"}),Ne=window.URL.createObjectURL(We);la(Ne,"vk_player_debug_info","txt")}else nl(E.actions.internal.getDebugTextData())},rt=()=>{let Re=E.actions.internal.getTraceTextData(),We=new Blob([...Re],{type:"application/json"}),Ne=window.URL.createObjectURL(We);la(Ne,"vk_player_trace_info","json")},X=()=>{k.set(!0)},Ae=async()=>{var Re;try{F()}finally{(Re=e.returnFocus)==null||Re.call(e)}},ke=()=>{E.actions.internal.setLooped(!a())},ze=()=>{var Re,We;if(r(se)){let Ne=(We=(Re=E.callbacks)==null?void 0:Re.onCopyEmbedCodeClicked)==null?void 0:We.call(Re);Ne&&nl(Ne)}},nt=(Re=!1)=>{var We,Ne;if((We=E.callbacks)!=null&&We.onCopyVideoLink){let Je=(Ne=E.callbacks)==null?void 0:Ne.onCopyVideoLink(Re,p());Je&&nl(Je)}},ht=g(()=>I.features.saveDebugInfoToFile?H("menu_save_debug"):H("menu_copy_debug")),at=g(()=>r(me)?{id:"copy-link",weight:Hr["copy-link"],label:H("menu_copy_video_link"),onClick:()=>nt()}:void 0),yt=g(()=>r(Pe)?{id:"copy-link-timestamp",weight:Hr["copy-link-timestamp"],label:H("menu_copy_video_link_with_timestamp"),onClick:()=>nt(!0)}:void 0),Xe=g(()=>r(se)?{id:"copy-embed-code",weight:Hr["copy-embed-code"],label:H("menu_copy_embed_code"),onClick:ze}:void 0),Ht=g(()=>r(Le)?{id:"pip",weight:Hr.pip,label:d()?H("menu_pip_close"):H("menu_pip"),onClick:Ae}:void 0),Xt=g(()=>r(ae)?{id:"video-loop",weight:Hr["video-loop"],label:a()?H("menu_video_loop_off"):H("menu_video_loop_on"),ariaLabel:H("aria_label_menu_loop"),onClick:ke}:void 0),Bt=g(()=>r(N)?{id:"rotate",weight:Hr.rotate,label:H("menu_video_rotate"),ariaLabel:H("aria_label_menu_rotate"),onClick:ve}:void 0),Qt=g(()=>r(Be)?{id:"report",weight:Hr.report,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,onClick:De}:void 0),Ee=g(()=>({id:"save-debug",weight:Hr["save-debug"],label:r(ht),onClick:pe})),zt=g(()=>r(ce)?{id:"save-trace",weight:Hr["save-trace"],label:H("menu_save_debug"),onClick:rt}:void 0),Se=g(()=>({id:"debug-info",weight:Hr["debug-info"],label:H("menu_debug_overlay"),ariaLabel:H("aria_label_menu_debug_overlay"),onClick:X})),te=g(()=>[r(at),r(yt),r(Xe),r(Ht),r(Xt),r(Bt),r(Qt),r(Ee),r(zt),r(Se),...f()].filter(Re=>!!Re).sort(fa));var ne=qe(),Ve=ge(ne);{var Fe=Re=>{var We=Rb();We.__contextmenu=[Vb],We.__keydown=[Lb,he],Si(We,21,()=>r(te),Ne=>Ne.id,(Ne,Je)=>{$f(Ne,{get id(){return r(Je).id},get label(){return r(Je).label},get ariaLabel(){return r(Je).ariaLabel},get onClick(){return r(Je).onClick},closeContextMenu:he})}),h(We),et(We,Ne=>x(Ne),()=>x()),B(()=>{var Ne,Je;return ot(We,`top: ${(Ne=r(T))!=null?Ne:""}px; left: ${(Je=r(S))!=null?Je:""}px;`)}),$(Re,We)};V(Ve,Re=>{m()&&Re(Fe)})}$(t,ne),z(),o()}st(["contextmenu","keydown"]);var au=class{constructor(e){this.value=e,this.next=null}};var al=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new au(e);this.top?(this.top.next=i,this.top=i):(this.top=i,this.bottom=i),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}};var Ob=A('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),Bb={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),K(t,Bb);let i=v(e,"values",19,()=>[]),o=Z(void 0),n=Z(null),s=16,l=120,d=60,a=l/d;Lt(()=>{r(o).width=l,r(o).height=s,O(n,r(o).getContext("2d"),!0)});function p(u,y,w,x,S){S===0&&(S=1),u.fillStyle="#fff",u.fillRect(y,w,x,S)}Qe(()=>{let u="";if(r(n)){let y=i()[0];for(let x=1;x<i().length;x++)i()[x]>y&&(y=i()[x]);r(n).clearRect(0,0,l,s);let w=d-1;for(let x=i().length-1;x>=0;x--){let S=w*a,T=y>0?s*(i()[x]/y):0;p(r(n),S,0,a,T),u=T+" "+u,w--}}});var f=Ob(),m=_(f);et(m,u=>O(o,u),()=>r(o)),h(f),$(t,f),z()}import{safeStorage as m1}from"@vkontakte/videoplayer-shared/es2018";var Db=(t,e)=>{t.stopPropagation(),m1.remove(Yl),e.set(!1)},Hb=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),Fb=A('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),Ub=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),zb=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),Wb=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),Kb=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),qb=A('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),Qb=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),Gb=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),jb=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),Yb=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),Zb=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),Xb=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),Jb=A('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),e$=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>'),t$={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),K(t,t$);let[i,o]=He(),n=()=>C(d,"$isMobile",i),s=Te(),l=s.ui.debugPanelVisible,d=s.ui.isMobile,a=Z(ni(s.actions.internal.getDebugPanelData())),p=s.actions.internal.getVideoElement(),f=Z(0),m=Z(0),u=Z(0),y=new al(60),w=new al(60),x=new al(60),S=Z(ni([])),T=Z(ni([])),E=Z(ni([])),R=W("aria_label_debug_panel");Lt(()=>{m1.set(Yl,"true"),s.actions.internal.startLogging(),p&&(O(m,p.getVideoPlaybackQuality().droppedVideoFrames,!0),O(f,p.getVideoPlaybackQuality().totalVideoFrames,!0));let Se=window.setInterval(()=>{O(a,s.actions.internal.getDebugPanelData(),!0)},500),te;return p&&(te=window.setInterval(()=>{if(p){O(m,p.getVideoPlaybackQuality().droppedVideoFrames,!0);let ne=p.getVideoPlaybackQuality().totalVideoFrames;O(u,ne-r(f)),O(f,ne,!0),y.push(r(u)),r(a).speed&&w.push(r(a).speed),r(a).bitrate&&x.push(r(a).bitrate),O(S,y.getValuesFromBottom(),!0),O(T,w.getValuesFromBottom(),!0),O(E,x.getValuesFromBottom(),!0)}},1e3)),()=>{s.actions.internal.stopLogging(),clearInterval(Se),te&&clearInterval(te)}});var I=e$();let M;var k=_(I);k.__click=[Db,l];var G=P(k,2),H=_(G),F=P(_(H),2),q=_(F,!0);h(F),h(H);var Y=P(H,2);{var j=Se=>{var te=Hb(),ne=P(_(te),2),Ve=_(ne,!0);h(ne),h(te),B(()=>_e(Ve,r(a).id)),$(Se,te)};V(Y,Se=>{r(a).id&&Se(j)})}var ue=P(Y,2);{var re=Se=>{var te=Fb(),ne=P(_(te),2),Ve=_(ne,!0);h(ne),h(te),B(()=>_e(Ve,r(a).vsid)),$(Se,te)};V(ue,Se=>{r(a).vsid&&Se(re)})}var fe=P(ue,2);{var be=Se=>{var te=Ub(),ne=P(_(te),2),Ve=_(ne,!0);h(ne),h(te),B(()=>_e(Ve,r(a).provider)),$(Se,te)};V(fe,Se=>{r(a).provider&&Se(be)})}var me=P(fe,2);{var Pe=Se=>{var te=zb(),ne=P(_(te),2),Ve=_(ne);h(ne),h(te),B(()=>{var Fe,Re;return _e(Ve,`Video: ${(Fe=r(a).videoCodec||"")!=null?Fe:""} ${r(a).hdr?"(HDR)":""}
|
|
137
|
+
}.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function td(t,e){q(t,pb);let i=m(e,"withEqualizer",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1);var s=ub();let l;var d=_(s);{var a=u=>{var y=lb();$(u,y)};L(d,u=>{i()&&u(a)})}var p=P(d,2);{var f=u=>{var y=db(),w=_(y);ed(w,{isActive:!0}),h(y),$(u,y)},v=u=>{var y=cb(),w=_(y,!0);h(y),B(()=>be(w,e.time)),$(u,y)};L(p,u=>{o()?u(f):u(v,!1)})}h(s),B(u=>l=ee(s,1,"wrapper svelte-1s15d2i",null,l,u),[()=>({live:o(),playing:n()})]),$(t,s)}var nl=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var fb=M('<div role="timer" data-testid="thumb-timer"><!></div>'),mb={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 id(t,e){U(e,!0),q(t,mb);let[i,o]=He(),n=()=>C(f,"$disabled",i),s=m(e,"isHidden",3,!1),l=m(e,"isLive",3,!1),d=m(e,"isPlaying",3,!1),a=Et(),p=g(()=>_n(e.duration-e.position)),f=se(!1);var v=fb();let u;var y=_(v);td(y,{get time(){return r(p)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),h(v),ms(v,()=>nl(s()&&a.features.usePerformanceFix,f,a.disableInvisibleComponentsTimeout)),B(w=>u=ee(v,1,"thumb-timer svelte-c6gowj",null,u,w),[()=>({"out-of-flow":n(),hidden:s()})]),$(t,v),z(),o()}var rl=t=>{if(!navigator.clipboard){Qh(t);return}navigator.clipboard.writeText(t).catch(()=>Qh(t))};function Qh(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 Cb}from"@vkontakte/videoplayer-core/es2018";import{clientChecker as Gh}from"@vkontakte/videoplayer-core/es2018";var cf="focus-hidden";var _r=t=>{t.stopPropagation(),t.preventDefault()},uf=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(cf)},gb=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},hb=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},_b=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},bb=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},jh=t=>t.code==="Escape",$b=t=>t.code==="ArrowLeft",od=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},Yh=t=>{_b(t)?(_r(t),hb(t.target)):bb(t)&&(_r(t),gb(t.target))},Os=t=>!Gh.device.isAndroid&&(t==null?void 0:t.detail)===0||Gh.device.isAndroid&&(t==null?void 0:t.pointerType)==="",sl=async(t,e,i)=>{await Co(),t&&!t.classList.contains("opened")&&!e&&xe(i)&&(await Co(),i.set(!1),t.focus())},Zh=async(t,e,i)=>{await Co(),t&&!e&&xe(i)&&(i.set(!1),t.focus())},nd=async(t,e,i,o=!1)=>{if(await Co(),!!t&&e&&!o){let s=t.children[0];s==null||s.classList.toggle(cf,!i),s==null||s.focus()}},Xh=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Jc=(t,e)=>{Yh(t),uf(t.target),jh(t)&&(_r(t),e())},eu=async(t,e)=>{od(t,["ArrowRight"])&&(_r(t),e())},Jh=async(t,e,i)=>{if(Yh(t),$b(t)){_r(t),e();return}jh(t)&&(_r(t),i())},al=(t,e)=>{od(t)&&(_r(t),e())},e1=(t,e,i)=>{if(od(t))_r(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),_r(t);return}o==="ArrowRight"&&!e&&(i(!0),_r(t))}},t1=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},i1=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 tu,isValidURL as Tb}from"@vkontakte/videoplayer-shared/es2018";var Dr={"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 o1}from"@vkontakte/videoplayer-shared/es2018";var xb=(t,e)=>{al(t,()=>e())},wb=M('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),Sb={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 pf(t,e){U(e,!0),q(t,Sb);let i=m(e,"onClick",3,o1),o=m(e,"closeContextMenu",3,o1),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var s=wb();s.__click=n,s.__keydown=[xb,n];var l=_(s,!0);h(s),B(()=>{var d;Fe(s,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Fe(s,"data-testid",e.id),be(l,e.label)}),$(t,s),z()}lt(["click","keydown"]);var fa=(t,e)=>t.weight-e.weight;var rd=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(rd||{});var Eb=(t,e)=>{Jc(t,e)},Ib=t=>{t.preventDefault()},kb=M('<ul role="menu" class="svelte-1p5ukkp"></ul>'),Pb={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 ff(t,e){U(e,!0),q(t,Pb);let[i,o]=He(),n=()=>C(J,"$isLive$",i),s=()=>C(ue,"$isPiPEnabled$",i),l=()=>C(W,"$chromecastState$",i),d=()=>C($e,"$pictureInPictureApiIsActive$",i),a=()=>C(ie,"$isLooped$",i),p=()=>C(G,"$positionExact$",i),f=()=>C(Y,"$additionalContextMenuItems$",i),v=m(e,"visible",3,!1),u=m(e,"position",19,()=>({top:0,left:0})),y=m(e,"playerContainerRef",3,void 0),w=m(e,"controlsContainerRef",3,void 0),x=m(e,"menuElementRef",15,void 0),S=j(0),T=j(0),E=Ee(),{pictureInPicture$:V}=mo(),k=Et(),I=E.ui.contextMenu.visible$,R=E.ui.debugPanelVisible,Y=E.ui.additionalContextMenuItems$,H=E.ui.t,F=E.actions.internal.togglePictureInPicture,W=E.state.chromecastState$,J=E.state.isLive$,G=E.state.positionExact$,ce=E.state.isInteractive,ie=E.state.looped$,{isEnabled$:ue,isActive$:$e}=V,fe=g(()=>{var Le;return k.features.copyVideoLink&&((Le=E.callbacks)==null?void 0:Le.onCopyVideoLink)}),ke=g(()=>r(fe)&&!n()&&!ce),ne=g(()=>{var Le;return!!((Le=E.callbacks)!=null&&Le.onCopyEmbedCodeClicked)}),Ve=g(()=>s()&&l()!==Cb.CONNECTED&&!ce),re=g(()=>!ce),N=g(()=>k.features.videoRotate&&!ce),Be=g(()=>k.showSupport&&!d()),le=g(()=>k.features.saveTraceInfoToFile),ve=()=>{var Le;I.set(!1),(Le=e.returnFocus)==null||Le.call(e)},te=(Le,je)=>{if(!x()||!y()||!w())return;let Oe=x().getBoundingClientRect(),Je=y().getBoundingClientRect();O(S,Le-Je.left),O(T,je-Je.top),r(S)+Oe.width>Je.width&&O(S,Je.width-Oe.width),r(T)+Oe.height>Je.height&&O(T,Je.height-Oe.height),O(S,Math.max(r(S),0),!0),O(T,Math.max(r(T),0),!0)};Ke(()=>{(async()=>{if(x()&&y()&&w()){await Co();let{top:je,left:Oe,bottom:Je,right:At}=u(),zt=Oe!=null?Oe:0,et=je!=null?je:0,$i=x().getBoundingClientRect();tu(Oe)&&!tu(At)&&(zt=At-$i.width),tu(je)&&!tu(Je)&&(et=Je-$i.height),zt=Math.max(zt,0),et=Math.max(et,0),te(zt,et)}})()});let me=()=>{E.actions.internal.videoRotate()},De=()=>{Tb(e.supportLink)&&window.open(e.supportLink,"_blank"),E.actions.internal.reportProblem(),E.actions.internal.pause()},pe=()=>{let Le=E.actions.internal.getDebugTextData();if(k.features.saveDebugInfoToFile){let je=new Blob([...Le],{type:"plain/text"}),Oe=window.URL.createObjectURL(je);la(Oe,"vk_player_debug_info","txt")}else rl(E.actions.internal.getDebugTextData())},st=()=>{let Le=E.actions.internal.getTraceTextData(),je=new Blob([...Le],{type:"application/json"}),Oe=window.URL.createObjectURL(je);la(Oe,"vk_player_trace_info","json")},Z=()=>{R.set(!0)},Ae=async()=>{var Le;try{F()}finally{(Le=e.returnFocus)==null||Le.call(e)}},Ie=()=>{E.actions.internal.setLooped(!a())},ze=()=>{var Le,je;if(r(ne)){let Oe=(je=(Le=E.callbacks)==null?void 0:Le.onCopyEmbedCodeClicked)==null?void 0:je.call(Le);Oe&&rl(Oe)}},at=(Le=!1)=>{var je,Oe;if((je=E.callbacks)!=null&&je.onCopyVideoLink){let Je=(Oe=E.callbacks)==null?void 0:Oe.onCopyVideoLink(Le,p());Je&&rl(Je)}},ft=g(()=>k.features.saveDebugInfoToFile?H("menu_save_debug"):H("menu_copy_debug")),mt=g(()=>r(fe)?{id:"copy-link",weight:Dr["copy-link"],label:H("menu_copy_video_link"),onClick:()=>at()}:void 0),wt=g(()=>r(ke)?{id:"copy-link-timestamp",weight:Dr["copy-link-timestamp"],label:H("menu_copy_video_link_with_timestamp"),onClick:()=>at(!0)}:void 0),Ge=g(()=>r(ne)?{id:"copy-embed-code",weight:Dr["copy-embed-code"],label:H("menu_copy_embed_code"),onClick:ze}:void 0),Bt=g(()=>r(Ve)?{id:"pip",weight:Dr.pip,label:d()?H("menu_pip_close"):H("menu_pip"),onClick:Ae}:void 0),Xt=g(()=>r(re)?{id:"video-loop",weight:Dr["video-loop"],label:a()?H("menu_video_loop_off"):H("menu_video_loop_on"),ariaLabel:H("aria_label_menu_loop"),onClick:Ie}:void 0),qt=g(()=>r(N)?{id:"rotate",weight:Dr.rotate,label:H("menu_video_rotate"),ariaLabel:H("aria_label_menu_rotate"),onClick:me}:void 0),Ut=g(()=>r(Be)?{id:"report",weight:Dr.report,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,onClick:De}:void 0),oe=g(()=>({id:"save-debug",weight:Dr["save-debug"],label:r(ft),onClick:pe})),Dt=g(()=>r(le)?{id:"save-trace",weight:Dr["save-trace"],label:H("menu_save_debug"),onClick:st}:void 0),he=g(()=>({id:"debug-info",weight:Dr["debug-info"],label:H("menu_debug_overlay"),ariaLabel:H("aria_label_menu_debug_overlay"),onClick:Z})),we=g(()=>[r(mt),r(wt),r(Ge),r(Bt),r(Xt),r(qt),r(Ut),r(oe),r(Dt),r(he),...f()].filter(Le=>!!Le).sort(fa));var ae=We(),Re=ge(ae);{var qe=Le=>{var je=kb();je.__contextmenu=[Ib],je.__keydown=[Eb,ve],Si(je,21,()=>r(we),Oe=>Oe.id,(Oe,Je)=>{pf(Oe,{get id(){return r(Je).id},get label(){return r(Je).label},get ariaLabel(){return r(Je).ariaLabel},get onClick(){return r(Je).onClick},closeContextMenu:ve})}),h(je),it(je,Oe=>x(Oe),()=>x()),B(()=>{var Oe,Je;return rt(je,`top: ${(Oe=r(T))!=null?Oe:""}px; left: ${(Je=r(S))!=null?Je:""}px;`)}),$(Le,je)};L(Re,Le=>{v()&&Le(qe)})}$(t,ae),z(),o()}lt(["contextmenu","keydown"]);var iu=class{constructor(e){this.value=e,this.next=null}};var ll=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new iu(e);this.top?(this.top.next=i,this.top=i):(this.top=i,this.bottom=i),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}};var Ab=M('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),Mb={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 sd(t,e){U(e,!0),q(t,Mb);let i=m(e,"values",19,()=>[]),o=j(void 0),n=j(null),s=16,l=120,d=60,a=l/d;Pt(()=>{r(o).width=l,r(o).height=s,O(n,r(o).getContext("2d"),!0)});function p(u,y,w,x,S){S===0&&(S=1),u.fillStyle="#fff",u.fillRect(y,w,x,S)}Ke(()=>{let u="";if(r(n)){let y=i()[0];for(let x=1;x<i().length;x++)i()[x]>y&&(y=i()[x]);r(n).clearRect(0,0,l,s);let w=d-1;for(let x=i().length-1;x>=0;x--){let S=w*a,T=y>0?s*(i()[x]/y):0;p(r(n),S,0,a,T),u=T+" "+u,w--}}});var f=Ab(),v=_(f);it(v,u=>O(o,u),()=>r(o)),h(f),$(t,f),z()}import{safeStorage as n1}from"@vkontakte/videoplayer-shared/es2018";var Lb=(t,e)=>{t.stopPropagation(),n1.remove(ql),e.set(!1)},Vb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),Rb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),Nb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),Ob=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),Bb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),Db=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),Hb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),Fb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),Ub=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),zb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),Wb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),Kb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),qb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),Qb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),Gb=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>'),jb={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 ad(t,e){U(e,!0),q(t,jb);let[i,o]=He(),n=()=>C(d,"$isMobile",i),s=Ee(),l=s.ui.debugPanelVisible,d=s.ui.isMobile,a=j(ni(s.actions.internal.getDebugPanelData())),p=s.actions.internal.getVideoElement(),f=j(0),v=j(0),u=j(0),y=new ll(60),w=new ll(60),x=new ll(60),S=j(ni([])),T=j(ni([])),E=j(ni([])),V=K("aria_label_debug_panel");Pt(()=>{n1.set(ql,"true"),s.actions.internal.startLogging(),p&&(O(v,p.getVideoPlaybackQuality().droppedVideoFrames,!0),O(f,p.getVideoPlaybackQuality().totalVideoFrames,!0));let he=window.setInterval(()=>{O(a,s.actions.internal.getDebugPanelData(),!0)},500),we;return p&&(we=window.setInterval(()=>{if(p){O(v,p.getVideoPlaybackQuality().droppedVideoFrames,!0);let ae=p.getVideoPlaybackQuality().totalVideoFrames;O(u,ae-r(f)),O(f,ae,!0),y.push(r(u)),r(a).speed&&w.push(r(a).speed),r(a).bitrate&&x.push(r(a).bitrate),O(S,y.getValuesFromBottom(),!0),O(T,w.getValuesFromBottom(),!0),O(E,x.getValuesFromBottom(),!0)}},1e3)),()=>{s.actions.internal.stopLogging(),clearInterval(he),we&&clearInterval(we)}});var k=Gb();let I;var R=_(k);R.__click=[Lb,l];var Y=P(R,2),H=_(Y),F=P(_(H),2),W=_(F,!0);h(F),h(H);var J=P(H,2);{var G=he=>{var we=Vb(),ae=P(_(we),2),Re=_(ae,!0);h(ae),h(we),B(()=>be(Re,r(a).id)),$(he,we)};L(J,he=>{r(a).id&&he(G)})}var ce=P(J,2);{var ie=he=>{var we=Rb(),ae=P(_(we),2),Re=_(ae,!0);h(ae),h(we),B(()=>be(Re,r(a).vsid)),$(he,we)};L(ce,he=>{r(a).vsid&&he(ie)})}var ue=P(ce,2);{var $e=he=>{var we=Nb(),ae=P(_(we),2),Re=_(ae,!0);h(ae),h(we),B(()=>be(Re,r(a).provider)),$(he,we)};L(ue,he=>{r(a).provider&&he($e)})}var fe=P(ue,2);{var ke=he=>{var we=Ob(),ae=P(_(we),2),Re=_(ae);h(ae),h(we),B(()=>{var qe,Le;return be(Re,`Video: ${(qe=r(a).videoCodec||"")!=null?qe:""} ${r(a).hdr?"(HDR)":""}
|
|
139
139
|
&
|
|
140
|
-
Audio: ${(Re=r(a).audioCodec||"")!=null?Re:""} ${r(a).audioLanguage?`(${r(a).audioLanguage})`:""}`)}),$(Se,te)};V(me,Se=>{(r(a).videoCodec||r(a).audioCodec)&&Se(Pe)})}var se=P(me,2);{var Le=Se=>{var te=Wb(),ne=P(_(te),2),Ve=_(ne,!0);h(ne),h(te),B(()=>_e(Ve,r(a).viewport)),$(Se,te)};V(se,Se=>{r(a).viewport&&Se(Le)})}var ae=P(se,2);{var N=Se=>{var te=Kb(),ne=P(_(te),2),Ve=_(ne,!0);h(ne),h(te),B(()=>_e(Ve,r(a).videoSize)),$(Se,te)};V(ae,Se=>{r(a).videoSize&&Se(N)})}var Be=P(ae,2);{var ce=Se=>{var te=qb(),ne=P(_(te),2),Ve=_(ne,!0);h(ne),h(te),B(()=>_e(Ve,r(a).cdn)),$(Se,te)};V(Be,Se=>{r(a).cdn&&Se(ce)})}var he=P(Be,2);{var oe=Se=>{var te=Qb(),ne=P(_(te),2),Ve=_(ne);h(ne),h(te),B(()=>{var Fe;return _e(Ve,`${(Fe=r(a).volume)!=null?Fe:""} %`)}),$(Se,te)};V(he,Se=>{r(a).volume&&Se(oe)})}var ve=P(he,2);{var De=Se=>{var te=Gb(),ne=P(_(te),2),Ve=_(ne);h(ne),h(te),B(Fe=>_e(Ve,`${Fe!=null?Fe:""} s`),[()=>r(a).position.toFixed(2)]),$(Se,te)};V(ve,Se=>{r(a).position&&Se(De)})}var pe=P(ve,2);{var rt=Se=>{var te=jb(),ne=P(_(te),2),Ve=_(ne);h(ne),h(te),B(Fe=>_e(Ve,`${Fe!=null?Fe:""} s`),[()=>r(a).buffer.toFixed(2)]),$(Se,te)};V(pe,Se=>{r(a).buffer&&Se(rt)})}var X=P(pe,2);{var Ae=Se=>{var te=Yb(),ne=P(_(te),2),Ve=_(ne);h(ne),h(te),B(Fe=>_e(Ve,`${Fe!=null?Fe:""} s`),[()=>r(a).liveLatency.toFixed(2)]),$(Se,te)};V(X,Se=>{r(a).liveLatency&&Se(Ae)})}var ke=P(X,2);{var ze=Se=>{var te=Zb(),ne=P(_(te),2),Ve=_(ne,!0);h(ne),h(te),B(Fe=>_e(Ve,Fe),[()=>[{value:r(a).currentVideoSegmentLength,title:"Video:"},{value:r(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Fe})=>Fe).map(({value:Fe,title:Re})=>`${Re} ${((Fe!=null?Fe:0)/1e3).toFixed(2)} s`).join(" & ")]),$(Se,te)};V(ke,Se=>{(r(a).currentVideoSegmentLength||r(a).currentAudioSegmentLength)&&Se(ze)})}var nt=P(ke,2),ht=P(_(nt),2),at=_(ht);h(ht),h(nt);var yt=P(nt,2);{var Xe=Se=>{var te=Xb(),ne=P(_(te),2);cd(ne,{get values(){return r(T)}});var Ve=P(ne,2),Fe=_(Ve);h(Ve),h(te),B(Re=>_e(Fe,`${Re!=null?Re:""} Kbps`),[()=>r(a).speed.toFixed(2)]),$(Se,te)};V(yt,Se=>{r(a).speed&&Se(Xe)})}var Ht=P(yt,2);{var Xt=Se=>{var te=Jb(),ne=P(_(te),2);cd(ne,{get values(){return r(E)}});var Ve=P(ne,2),Fe=_(Ve);h(Ve),h(te),B(Re=>_e(Fe,`${Re!=null?Re:""} Kbps`),[()=>r(a).bitrate.toFixed(2)]),$(Se,te)};V(Ht,Se=>{r(a).bitrate&&Se(Xt)})}var Bt=P(Ht,2),Qt=P(_(Bt),2);cd(Qt,{get values(){return r(S)}});var Ee=P(Qt,2),zt=_(Ee,!0);h(Ee),h(Bt),h(G),h(I),B(Se=>{var te,ne;M=ie(I,1,"container svelte-4deykz",null,M,Se),Ue(I,"aria-label",R),_e(q,r(a).version),_e(at,`${(te=r(m))!=null?te:""} / ${(ne=r(f))!=null?ne:""} frames`),_e(zt,r(u))},[()=>({"container-mobile":n()})]),$(t,I),z(),o()}st(["click"]);import{noop as i$}from"@vkontakte/videoplayer-shared/es2018";var o$=(t,e)=>{t.stopPropagation(),e()()},n$=A('<div class="close svelte-1ome55p"></div>'),r$={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 ma(t,e){U(e,!0),K(t,r$);let i=v(e,"onClick",3,i$);var o=n$();o.__click=[o$,i],$(t,o),z()}st(["click"]);import{noop as s$}from"@vkontakte/videoplayer-shared/es2018";var a$=A('<div class="timer svelte-8jhsry"><canvas class="timer-canvas svelte-8jhsry" width="100" height="100"></canvas> <svg class="timer-play-icon svelte-8jhsry" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill-rule="nonzero"><path class="_play" d="m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z" fill="var(--btn-color, #fff)"></path></g></g></svg></div>'),l$={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),K(t,l$);let i=v(e,"isRunning",3,!0),o=v(e,"onTimerEnded",3,s$),n=5e3,s=Z(void 0),l,d,a=0,p;Qe(()=>{i()&&$t(()=>{d=Date.now(),a=requestAnimationFrame(m)})});let f=()=>{a&&(cancelAnimationFrame(a),a=0)},m=()=>{f(),i()&&(p=(Date.now()-d)/n,p<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*p),l==null||l.stroke(),a=requestAnimationFrame(m)):o()())};Lt(()=>{l=r(s).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),Xo(()=>{f()});var u=a$(),y=_(u);et(y,w=>O(s,w),()=>r(s)),xe(2),h(u),$(t,u),z()}var d$=(t,e,i)=>{e(!1),i()},c$=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),u$={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 xf(t,e){U(e,!0),K(t,u$);let[i,o]=He(),n=()=>C(d,"$autoplayNextEnabled$",i),s=()=>C(a,"$timerNextVideoRunning$",i),l=Te(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,p=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,m=l.actions.internal.nextVideoAnnouncementClick,u=l.actions.internal.nextVideoAnnouncementAuto,y=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(p(!1),u())},x=()=>{e.clickCloseIcon(),y()};Lt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var S=qe(),T=ge(S);{var E=R=>{var I=c$(),M=P(ge(I),2),k=_(M),G=_(k),H=_(G,!0);h(G);var F=P(G,2);ma(F,{onClick:x}),h(k);var q=P(k,2);q.__click=[d$,p,m];var Y=_(q),j=_(Y),ue=_(j);let re;var fe=P(ue,2);{var be=Le=>{let ae=g(()=>s()&&n());pd(Le,{get isRunning(){return r(ae)},onTimerEnded:w})};V(fe,Le=>{n()&&Le(be)})}h(j),h(Y);var me=P(Y,2),Pe=_(me),se=_(Pe,!0);h(Pe),h(me),h(q),h(M),B((Le,ae)=>{_e(H,Le),ot(j,`background-image: url('${e.thumb}')`),re=ie(ue,1,"thumb-overlay svelte-jfbaax",null,re,ae),_e(se,e.title)},[()=>W("end_screen_next_video"),()=>({withOpacity:n()})]),$(R,I)};V(T,R=>{e.isHide||R(E)})}$(t,S),z(),o()}st(["click"]);import{PlaybackState as va}from"@vkontakte/videoplayer-core/es2018";import{checkNever as f$}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as Ln}from"@vkontakte/videoplayer-statistics/es2018";var wf=(t,e)=>Math.min(+(t+e).toFixed(2),1),Sf=(t,e)=>Math.max(+(t-e).toFixed(2),0),lu=(t,e,i)=>{let o=wf(e,i);e<1?t.actions.internal.setVolume(o):ye(t.state.muted$)&&t.actions.internal.setMuted(!1)},du=(t,e,i)=>{let o=Sf(e,i);e>0&&t.actions.internal.setVolume(o)};var Ds=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var m$=(t,e)=>{e(t)},v$=A('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),g$={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Cf(t,e){var zt,Se;U(e,!0),K(t,g$);let[i,o]=He(),n=()=>C(re,"$disabledControls$",i),s=()=>C(N,"$doubleForwardOn$",i),l=()=>C(rt,"$isInteractiveTime$",i),d=()=>C(X,"$showInteractiveTimeIndicatorTooltip$",i),a=()=>C(F,"$playbackState$",i),p=()=>C(ce,"$isEnded$",i),f=()=>C(q,"$adPlaybackState",i),m=()=>C(Y,"$positionExact$",i),u=()=>C(j,"$duration$",i),y=()=>C(De,"$isAudioAvailable$",i),w=()=>C(ue,"$volume$",i),x=()=>C(Pe,"$availablePlaybackRates$",i),S=()=>C(me,"$currentPlaybackRate$",i),T=()=>C(fe,"$muted$",i),E=()=>C(be,"$currentSubtitle$",i),R=()=>C(he,"$overlayContainer$",i),I=v(e,"nextButtonActive",3,!1),M=v(e,"prevButtonActive",3,!1),k=Te(),G=Et(),H=k.getLogger().createComponentLog("KeyboardControls component"),F=k.state.playbackState$,q=k.ads.playbackState,Y=k.state.positionExact$,j=k.state.duration$,ue=k.state.volume$,re=k.ui.controls.disabledControls$,fe=k.state.muted$,be=k.state.currentSubtitle$,me=k.state.currentPlaybackRate$,Pe=k.state.availablePlaybackRates$,se=k.ui.contextMenu.openedByHotKey$,Le=k.ui.contextMenu.lastActiveElem$,ae=k.ui.contextMenu.visible$,N=k.ui.doubleForwardOn$,Be=k.ui.contextMenu.position$,ce=k.state.isEnded$,he=k.ui.overlayContainer$,oe=(zt=k.callbacks)==null?void 0:zt.onAudioDoesNotExistHint,ve=(Se=k.callbacks)==null?void 0:Se.onAudioDisabledHint,De=k.state.isAudioAvailable$,pe=k.state.isAudioDisabled,rt=k.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:X}=uo(),Ae=0,ke=!0,ze=Z(void 0),nt=te=>(te!==ke&&(ke=te,Ae=0),Ae+=1,(G.controls.seekStepKeyboard+G.controls.seekStepKeyboard*Ae)/1e3),ht=(te,ne)=>{let Ve=()=>{if(!n().has("PLAY_BUTTON")&&!s())if(l()&&d()&&X.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{k.actions.internal.togglePlay();let Fe="PLAY";a()===va.PAUSED?Fe="PAUSE":p()&&(Fe="REPLAY"),e.showHotKeyHelpers({type:Fe})}};if(!G.features.doubleForwardAvailable){Ve();return}te==="down"?!ne&&e.startDoubleForwardActivationTimer():(e.stopDoubleForward(),Ve())},at=(te,ne=!1)=>{var Mi,Gt;let Ve=te.target,Fe=(Mi=Ve==null?void 0:Ve.getAttribute("role"))==null?void 0:Mi.includes("menuitem"),Re=Ve.classList.contains("btn"),We=te.code;if(Re&&We==="Space")return!1;let Ne=mh.has(We);if(Fe&&Ne)return!1;let Je=!fh.has(We);if(te.ctrlKey&&Je||te.altKey&&Je||te.metaKey)return!1;let Ft=Fe&&We==="Escape";vh.has(We)||Ft||e.hideContextMenu();let Wt=a()===va.PLAYING||a()===va.PAUSED,Ct=e.isAds&&(f()==="paused"||f()==="playing"),_i=!Ct&&!n().has("TIMELINE");if(!(Wt||Ct))return!1;H({message:`key down, code: ${We}, isExternal = ${ne}`});let gi=!1,dt=()=>{gi=!0,ne||te.preventDefault()};switch(We){case"KeyJ":case"ArrowLeft":{if(!_i)break;if(te.ctrlKey||te.altKey){let lt=k.actions.internal.getPrevEpisode();k.actions.internal.seekToPrevEpisode(lt),lt&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:lt.text}),dt()}else{let lt=te.shiftKey?nt(!1):G.controls.seekStepKeyboard/1e3,si=Math.max(m()-lt,0);m()>0&&(k.actions.internal.seekTime(si,Ln.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:lt.toString()}),dt())}break}case"KeyL":case"ArrowRight":{if(!_i)break;if(te.ctrlKey||te.altKey){let lt=k.actions.internal.getNextEpisode();k.actions.internal.seekToNextEpisode(lt),lt&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:lt.text}),dt()}else{let lt=te.shiftKey?nt(!0):G.controls.seekStepKeyboard/1e3,si=Math.min(m()+lt,u());Math.round(m())<Math.round(u())&&(k.actions.internal.seekTime(si,Ln.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:lt.toString()}),dt())}break}case"ArrowUp":{if(Ds({isAudioDisabled:pe,audioDisabledHintCallback:ve,isAudioAvailable:y(),audioIsNotExistHintCallback:oe,isAds:e.isAds})){let lt=w(),si=G.controls.volumeStepKeyboard,Li=lt<=1;if(lu(k,lt,si),Li){let Pt=Math.round(wf(lt,si)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Pt}})}}dt();break}case"ArrowDown":{if(Ds({isAudioDisabled:pe,audioDisabledHintCallback:ve,isAudioAvailable:y(),audioIsNotExistHintCallback:oe,isAds:e.isAds})){let lt=w(),si=G.controls.volumeStepKeyboard,Li=lt>=0;if(du(k,lt,si),Li){let Pt=Math.round(Sf(lt,si)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Pt}})}}dt();break}case"Comma":{if(te.shiftKey){k.actions.internal.decrementPlaybackRate();let lt=x().find(si=>si.value===S());e.showHotKeyHelpers({type:"RATE_DOWN",text:lt==null?void 0:lt.displayValue}),dt()}else{if(Ct||a()!==va.PAUSED)break;let lt=Math.max(m()-G.controls.seekStepFrame/1e3,0);m()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),k.actions.internal.clearDelayedBufferingCheckTimeout(),k.actions.internal.seekTime(lt,Ln.DOUBLE_TAP),dt())}break}case"Period":{if(te.shiftKey){k.actions.internal.incrementPlaybackRate();let lt=x().find(si=>si.value===S());e.showHotKeyHelpers({type:"RATE_UP",text:lt==null?void 0:lt.displayValue}),dt()}else{if(Ct||a()!==va.PAUSED)break;let lt=Math.min(m()+G.controls.seekStepFrame/1e3,u());m()<u()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),k.actions.internal.clearDelayedBufferingCheckTimeout(),k.actions.internal.seekTime(lt,Ln.DOUBLE_TAP),dt())}break}case"KeyK":case"Space":ht("down",te.repeat),dt();break;case"KeyM":{Ds({isAudioDisabled:pe,audioDisabledHintCallback:ve,isAudioAvailable:y(),audioIsNotExistHintCallback:oe,isAds:e.isAds})&&(e.showHotKeyHelpers({type:T()?"VOLUME":"MUTE"}),k.actions.internal.toggleMuted()),dt();break}case"KeyF":e.toggleFullscreen(),dt();break;case"KeyC":k.actions.internal.toggleSubtitle(),E().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(Gt=E())==null?void 0:Gt.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),dt();break;case"KeyI":k.actions.internal.togglePictureInPicture(),dt();break;case"Digit1":case"Numpad1":if(te.shiftKey){let lt=p1(R());Be.set(lt),Le.set(Ve),se.set(!0),ae.set(!0),dt();break}e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.1,Ln.DOUBLE_TAP),dt();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.2,Ln.DOUBLE_TAP),dt();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.3,Ln.DOUBLE_TAP),dt();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.4,Ln.DOUBLE_TAP),dt();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.5,Ln.DOUBLE_TAP),dt();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.6,Ln.DOUBLE_TAP),dt();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.7,Ln.DOUBLE_TAP),dt();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.8,Ln.DOUBLE_TAP),dt();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.9,Ln.DOUBLE_TAP),dt();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(0,Ln.DOUBLE_TAP),dt();break;case"Slash":{te.shiftKey&&G.features.hotKeyMapModal&&(e.showKeyMap(),dt());break}case"KeyN":te.shiftKey&&I()&&(k.actions.internal.nextVideoClick(),dt());break;case"KeyP":te.shiftKey&&M()&&(k.actions.internal.prevVideoClick(),dt());break;case"ShiftLeft":case"ShiftRight":dt();break;case"Tab":case"Escape":case"Enter":break;default:f$(We);break}return gi},yt=te=>{let ne=te.code;if(te.ctrlKey||te.altKey||te.metaKey)return;let Ve=a()===va.PLAYING||a()===va.PAUSED,Fe=e.isAds&&(f()==="paused"||f()==="playing");if(Ve||Fe)switch(ne){case"ShiftLeft":case"ShiftRight":Ae=0;break;case"Space":ht("up");break}},Xe=W("aria_label_video_player"),Ht=()=>{var te;return(te=r(ze))==null?void 0:te.focus()},Xt=te=>te.type==="keydown"?at(te,!0):(te.type==="keyup"&&yt(te),!1);var Bt=v$();Bt.__keyup=yt,Bt.__keydown=[m$,at];var Qt=_(Bt);$e(Qt,()=>{var te;return(te=e.children)!=null?te:de}),h(Bt),et(Bt,te=>O(ze,te),()=>r(ze)),B(()=>Ue(Bt,"aria-label",Xe)),$(t,Bt);var Ee=z({focus:Ht,handleExternalKeyboardEvent:Xt});return o(),Ee}st(["keyup","keydown"]);var h$=A('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),_$={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: ${(Le=r(a).audioCodec||"")!=null?Le:""} ${r(a).audioLanguage?`(${r(a).audioLanguage})`:""}`)}),$(he,we)};L(fe,he=>{(r(a).videoCodec||r(a).audioCodec)&&he(ke)})}var ne=P(fe,2);{var Ve=he=>{var we=Bb(),ae=P(_(we),2),Re=_(ae,!0);h(ae),h(we),B(()=>be(Re,r(a).viewport)),$(he,we)};L(ne,he=>{r(a).viewport&&he(Ve)})}var re=P(ne,2);{var N=he=>{var we=Db(),ae=P(_(we),2),Re=_(ae,!0);h(ae),h(we),B(()=>be(Re,r(a).videoSize)),$(he,we)};L(re,he=>{r(a).videoSize&&he(N)})}var Be=P(re,2);{var le=he=>{var we=Hb(),ae=P(_(we),2),Re=_(ae,!0);h(ae),h(we),B(()=>be(Re,r(a).cdn)),$(he,we)};L(Be,he=>{r(a).cdn&&he(le)})}var ve=P(Be,2);{var te=he=>{var we=Fb(),ae=P(_(we),2),Re=_(ae);h(ae),h(we),B(()=>{var qe;return be(Re,`${(qe=r(a).volume)!=null?qe:""} %`)}),$(he,we)};L(ve,he=>{r(a).volume&&he(te)})}var me=P(ve,2);{var De=he=>{var we=Ub(),ae=P(_(we),2),Re=_(ae);h(ae),h(we),B(qe=>be(Re,`${qe!=null?qe:""} s`),[()=>r(a).position.toFixed(2)]),$(he,we)};L(me,he=>{r(a).position&&he(De)})}var pe=P(me,2);{var st=he=>{var we=zb(),ae=P(_(we),2),Re=_(ae);h(ae),h(we),B(qe=>be(Re,`${qe!=null?qe:""} s`),[()=>r(a).buffer.toFixed(2)]),$(he,we)};L(pe,he=>{r(a).buffer&&he(st)})}var Z=P(pe,2);{var Ae=he=>{var we=Wb(),ae=P(_(we),2),Re=_(ae);h(ae),h(we),B(qe=>be(Re,`${qe!=null?qe:""} s`),[()=>r(a).liveLatency.toFixed(2)]),$(he,we)};L(Z,he=>{r(a).liveLatency&&he(Ae)})}var Ie=P(Z,2);{var ze=he=>{var we=Kb(),ae=P(_(we),2),Re=_(ae,!0);h(ae),h(we),B(qe=>be(Re,qe),[()=>[{value:r(a).currentVideoSegmentLength,title:"Video:"},{value:r(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:qe})=>qe).map(({value:qe,title:Le})=>`${Le} ${((qe!=null?qe:0)/1e3).toFixed(2)} s`).join(" & ")]),$(he,we)};L(Ie,he=>{(r(a).currentVideoSegmentLength||r(a).currentAudioSegmentLength)&&he(ze)})}var at=P(Ie,2),ft=P(_(at),2),mt=_(ft);h(ft),h(at);var wt=P(at,2);{var Ge=he=>{var we=qb(),ae=P(_(we),2);sd(ae,{get values(){return r(T)}});var Re=P(ae,2),qe=_(Re);h(Re),h(we),B(Le=>be(qe,`${Le!=null?Le:""} Kbps`),[()=>r(a).speed.toFixed(2)]),$(he,we)};L(wt,he=>{r(a).speed&&he(Ge)})}var Bt=P(wt,2);{var Xt=he=>{var we=Qb(),ae=P(_(we),2);sd(ae,{get values(){return r(E)}});var Re=P(ae,2),qe=_(Re);h(Re),h(we),B(Le=>be(qe,`${Le!=null?Le:""} Kbps`),[()=>r(a).bitrate.toFixed(2)]),$(he,we)};L(Bt,he=>{r(a).bitrate&&he(Xt)})}var qt=P(Bt,2),Ut=P(_(qt),2);sd(Ut,{get values(){return r(S)}});var oe=P(Ut,2),Dt=_(oe,!0);h(oe),h(qt),h(Y),h(k),B(he=>{var we,ae;I=ee(k,1,"container svelte-4deykz",null,I,he),Fe(k,"aria-label",V),be(W,r(a).version),be(mt,`${(we=r(v))!=null?we:""} / ${(ae=r(f))!=null?ae:""} frames`),be(Dt,r(u))},[()=>({"container-mobile":n()})]),$(t,k),z(),o()}lt(["click"]);import{noop as Yb}from"@vkontakte/videoplayer-shared/es2018";var Zb=(t,e)=>{t.stopPropagation(),e()()},Xb=M('<div class="close svelte-1ome55p"></div>'),Jb={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 ma(t,e){U(e,!0),q(t,Jb);let i=m(e,"onClick",3,Yb);var o=Xb();o.__click=[Zb,i],$(t,o),z()}lt(["click"]);import{noop as e$}from"@vkontakte/videoplayer-shared/es2018";var t$=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>'),i$={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 ld(t,e){U(e,!0),q(t,i$);let i=m(e,"isRunning",3,!0),o=m(e,"onTimerEnded",3,e$),n=5e3,s=j(void 0),l,d,a=0,p;Ke(()=>{i()&&yt(()=>{d=Date.now(),a=requestAnimationFrame(v)})});let f=()=>{a&&(cancelAnimationFrame(a),a=0)},v=()=>{f(),i()&&(p=(Date.now()-d)/n,p<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*p),l==null||l.stroke(),a=requestAnimationFrame(v)):o()())};Pt(()=>{l=r(s).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),Jo(()=>{f()});var u=t$(),y=_(u);it(y,w=>O(s,w),()=>r(s)),Ce(2),h(u),$(t,u),z()}var o$=(t,e,i)=>{e(!1),i()},n$=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),r$={hash:"svelte-jfbaax",code:".overlay.svelte-jfbaax {width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute;}.next-video.svelte-jfbaax {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column;}.top.svelte-jfbaax {display:flex;justify-content:space-between;}.caption.svelte-jfbaax {font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8;}.row.svelte-jfbaax {height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%;}.column.svelte-jfbaax {display:flex;flex-direction:column;flex-basis:50%;}.thumb.svelte-jfbaax {width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around;}.thumb-overlay.svelte-jfbaax {width:100%;height:100%;position:absolute;}.thumb-overlay.withOpacity.svelte-jfbaax {background:var(--black);opacity:0.3;}.title.svelte-jfbaax {padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden;}"};function mf(t,e){U(e,!0),q(t,r$);let[i,o]=He(),n=()=>C(d,"$autoplayNextEnabled$",i),s=()=>C(a,"$timerNextVideoRunning$",i),l=Ee(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,p=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,u=l.actions.internal.nextVideoAnnouncementAuto,y=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(p(!1),u())},x=()=>{e.clickCloseIcon(),y()};Pt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var S=We(),T=ge(S);{var E=V=>{var k=n$(),I=P(ge(k),2),R=_(I),Y=_(R),H=_(Y,!0);h(Y);var F=P(Y,2);ma(F,{onClick:x}),h(R);var W=P(R,2);W.__click=[o$,p,v];var J=_(W),G=_(J),ce=_(G);let ie;var ue=P(ce,2);{var $e=Ve=>{let re=g(()=>s()&&n());ld(Ve,{get isRunning(){return r(re)},onTimerEnded:w})};L(ue,Ve=>{n()&&Ve($e)})}h(G),h(J);var fe=P(J,2),ke=_(fe),ne=_(ke,!0);h(ke),h(fe),h(W),h(I),B((Ve,re)=>{be(H,Ve),rt(G,`background-image: url('${e.thumb}')`),ie=ee(ce,1,"thumb-overlay svelte-jfbaax",null,ie,re),be(ne,e.title)},[()=>K("end_screen_next_video"),()=>({withOpacity:n()})]),$(V,k)};L(T,V=>{e.isHide||V(E)})}$(t,S),z(),o()}lt(["click"]);import{PlaybackState as va}from"@vkontakte/videoplayer-core/es2018";import{checkNever as a$}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as Rn}from"@vkontakte/videoplayer-statistics/es2018";var vf=(t,e)=>Math.min(+(t+e).toFixed(2),1),gf=(t,e)=>Math.max(+(t-e).toFixed(2),0),ou=(t,e,i)=>{let o=vf(e,i);e<1?t.actions.internal.setVolume(o):xe(t.state.muted$)&&t.actions.internal.setMuted(!1)},nu=(t,e,i)=>{let o=gf(e,i);e>0&&t.actions.internal.setVolume(o)};var Bs=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var l$=(t,e)=>{e(t)},d$=M('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),c$={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function hf(t,e){var qt,Ut;U(e,!0),q(t,c$);let[i,o]=He(),n=()=>C(H,"$playbackState$",i),s=()=>C(F,"$adPlaybackState",i),l=()=>C(ce,"$disabledControls$",i),d=()=>C(W,"$positionExact$",i),a=()=>C(J,"$duration$",i),p=()=>C(te,"$isAudioAvailable$",i),f=()=>C(G,"$volume$",i),v=()=>C(fe,"$availablePlaybackRates$",i),u=()=>C($e,"$currentPlaybackRate$",i),y=()=>C(De,"$isInteractiveTime$",i),w=()=>C(pe,"$showInteractiveTimeIndicatorTooltip$",i),x=()=>C(N,"$isEnded$",i),S=()=>C(ie,"$muted$",i),T=()=>C(ue,"$currentSubtitle$",i),E=()=>C(Be,"$overlayContainer$",i),V=m(e,"nextButtonActive",3,!1),k=m(e,"prevButtonActive",3,!1),I=Ee(),R=Et(),Y=I.getLogger().createComponentLog("KeyboardControls component"),H=I.state.playbackState$,F=I.ads.playbackState,W=I.state.positionExact$,J=I.state.duration$,G=I.state.volume$,ce=I.ui.controls.disabledControls$,ie=I.state.muted$,ue=I.state.currentSubtitle$,$e=I.state.currentPlaybackRate$,fe=I.state.availablePlaybackRates$,ke=I.ui.contextMenu.openedByHotKey$,ne=I.ui.contextMenu.lastActiveElem$,Ve=I.ui.contextMenu.visible$,re=I.ui.contextMenu.position$,N=I.state.isEnded$,Be=I.ui.overlayContainer$,le=(qt=I.callbacks)==null?void 0:qt.onAudioDoesNotExistHint,ve=(Ut=I.callbacks)==null?void 0:Ut.onAudioDisabledHint,te=I.state.isAudioAvailable$,me=I.state.isAudioDisabled,De=I.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:pe}=mo(),st=0,Z=!0,Ae=j(void 0),Ie=oe=>(oe!==Z&&(Z=oe,st=0),st+=1,(R.controls.seekStepKeyboard+R.controls.seekStepKeyboard*st)/1e3),ze=(oe,Dt=!1)=>{var $i,vi;let he=oe.target,we=($i=he==null?void 0:he.getAttribute("role"))==null?void 0:$i.includes("menuitem"),ae=he.classList.contains("btn"),Re=oe.code;if(ae&&Re==="Space")return!1;let qe=nh.has(Re);if(we&&qe)return!1;let Le=!oh.has(Re);if(oe.ctrlKey&&Le||oe.altKey&&Le||oe.metaKey)return!1;let je=we&&Re==="Escape";rh.has(Re)||je||e.hideContextMenu();let Oe=n()===va.PLAYING||n()===va.PAUSED,Je=e.isAds&&(s()==="paused"||s()==="playing"),At=!Je&&!l().has("TIMELINE");if(!(Oe||Je))return!1;Y({message:`key down, code: ${Re}, isExternal = ${Dt}`});let zt=!1,et=()=>{zt=!0,Dt||oe.preventDefault()};switch(Re){case"KeyJ":case"ArrowLeft":{if(!At)break;if(oe.ctrlKey||oe.altKey){let tt=I.actions.internal.getPrevEpisode();I.actions.internal.seekToPrevEpisode(tt),tt&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:tt.text}),et()}else{let tt=oe.shiftKey?Ie(!1):R.controls.seekStepKeyboard/1e3,ii=Math.max(d()-tt,0);d()>0&&(I.actions.internal.seekTime(ii,Rn.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:tt.toString()}),et())}break}case"KeyL":case"ArrowRight":{if(!At)break;if(oe.ctrlKey||oe.altKey){let tt=I.actions.internal.getNextEpisode();I.actions.internal.seekToNextEpisode(tt),tt&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:tt.text}),et()}else{let tt=oe.shiftKey?Ie(!0):R.controls.seekStepKeyboard/1e3,ii=Math.min(d()+tt,a());Math.round(d())<Math.round(a())&&(I.actions.internal.seekTime(ii,Rn.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:tt.toString()}),et())}break}case"ArrowUp":{if(Bs({isAudioDisabled:me,audioDisabledHintCallback:ve,isAudioAvailable:p(),audioIsNotExistHintCallback:le,isAds:e.isAds})){let tt=f(),ii=R.controls.volumeStepKeyboard,Qt=tt<=1;if(ou(I,tt,ii),Qt){let gi=Math.round(vf(tt,ii)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:gi}})}}et();break}case"ArrowDown":{if(Bs({isAudioDisabled:me,audioDisabledHintCallback:ve,isAudioAvailable:p(),audioIsNotExistHintCallback:le,isAds:e.isAds})){let tt=f(),ii=R.controls.volumeStepKeyboard,Qt=tt>=0;if(nu(I,tt,ii),Qt){let gi=Math.round(gf(tt,ii)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:gi}})}}et();break}case"Comma":{if(oe.shiftKey){I.actions.internal.decrementPlaybackRate();let tt=v().find(ii=>ii.value===u());e.showHotKeyHelpers({type:"RATE_DOWN",text:tt==null?void 0:tt.displayValue}),et()}else{if(Je||n()!==va.PAUSED)break;let tt=Math.max(d()-R.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(tt,Rn.DOUBLE_TAP),et())}break}case"Period":{if(oe.shiftKey){I.actions.internal.incrementPlaybackRate();let tt=v().find(ii=>ii.value===u());e.showHotKeyHelpers({type:"RATE_UP",text:tt==null?void 0:tt.displayValue}),et()}else{if(Je||n()!==va.PAUSED)break;let tt=Math.min(d()+R.controls.seekStepFrame/1e3,a());d()<a()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(tt,Rn.DOUBLE_TAP),et())}break}case"KeyK":case"Space":if(!l().has("PLAY_BUTTON"))if(y()&&w()&&pe.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{I.actions.internal.togglePlay();let tt="PLAY";n()===va.PAUSED?tt="PAUSE":x()&&(tt="REPLAY"),e.showHotKeyHelpers({type:tt})}et();break;case"KeyM":{Bs({isAudioDisabled:me,audioDisabledHintCallback:ve,isAudioAvailable:p(),audioIsNotExistHintCallback:le,isAds:e.isAds})&&(e.showHotKeyHelpers({type:S()?"VOLUME":"MUTE"}),I.actions.internal.toggleMuted()),et();break}case"KeyF":e.toggleFullscreen(),et();break;case"KeyC":I.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(vi=T())==null?void 0:vi.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),et();break;case"KeyI":I.actions.internal.togglePictureInPicture(),et();break;case"Digit1":case"Numpad1":if(oe.shiftKey){let tt=i1(E());re.set(tt),ne.set(he),ke.set(!0),Ve.set(!0),et();break}e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.1,Rn.DOUBLE_TAP),et();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.2,Rn.DOUBLE_TAP),et();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.3,Rn.DOUBLE_TAP),et();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.4,Rn.DOUBLE_TAP),et();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.5,Rn.DOUBLE_TAP),et();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.6,Rn.DOUBLE_TAP),et();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.7,Rn.DOUBLE_TAP),et();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.8,Rn.DOUBLE_TAP),et();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.9,Rn.DOUBLE_TAP),et();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(0,Rn.DOUBLE_TAP),et();break;case"Slash":{oe.shiftKey&&R.features.hotKeyMapModal&&(e.showKeyMap(),et());break}case"KeyN":oe.shiftKey&&V()&&(I.actions.internal.nextVideoClick(),et());break;case"KeyP":oe.shiftKey&&k()&&(I.actions.internal.prevVideoClick(),et());break;case"ShiftLeft":case"ShiftRight":et();break;case"Tab":case"Escape":case"Enter":break;default:a$(Re);break}return zt},at=oe=>{let Dt=oe.code;if(oe.ctrlKey||oe.altKey||oe.metaKey)return;let he=n()===va.PLAYING||n()===va.PAUSED,we=e.isAds&&(s()==="paused"||s()==="playing");if(he||we)switch(Dt){case"ShiftLeft":case"ShiftRight":st=0;break}},ft=K("aria_label_video_player"),mt=()=>{var oe;return(oe=r(Ae))==null?void 0:oe.focus()},wt=oe=>oe.type==="keydown"?ze(oe,!0):(oe.type==="keyup"&&at(oe),!1);var Ge=d$();Ge.__keyup=at,Ge.__keydown=[l$,ze];var Bt=_(Ge);ye(Bt,()=>{var oe;return(oe=e.children)!=null?oe:de}),h(Ge),it(Ge,oe=>O(Ae,oe),()=>r(Ae)),B(()=>Fe(Ge,"aria-label",ft)),$(t,Ge);var Xt=z({focus:mt,handleExternalKeyboardEvent:wt});return o(),Xt}lt(["keyup","keydown"]);var u$=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>'),p$={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"},Kh=W_;var g
|
|
|
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 ga(t,e){
|
|
153
|
+
animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function ga(t,e){q(t,p$);let i=m(e,"style",3,"");var o=u$();B(()=>rt(o,i())),$(t,o)}var f$=Te('<svg><!><g filter="url(#a)"><path fill="#fff" d="M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"></path></g><defs><filter id="a" width="23" height="23" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2422_111980"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2422_111980" result="shape"></feBlend></filter></defs></svg>');function _f(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=f$();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),$(t,o)}import{noop as dl}from"@vkontakte/videoplayer-shared/es2018";var m$=t=>{t.stopPropagation()},v$=M("<button><!></button>"),g$={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
|
|
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 Rt(t,e){U(e,!0),q(t,g$);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),p=m(e,"ariaKeyShortCut",3,void 0),f=m(e,"ariaExpanded",3,void 0),v=m(e,"tabIndex",3,0),u=m(e,"click",3,dl),y=m(e,"focus",3,dl),w=m(e,"blur",3,dl),x=g(()=>u()===dl?null:k=>{k.stopPropagation(),u()(k)}),S=g(()=>y()===dl?null:k=>{k.preventDefault(),y()()}),T=g(()=>w()===dl?null:k=>{k.preventDefault(),w()()});var E=v$();E.__pointerdown=[m$],E.__click=function(...k){var I;(I=r(x))==null||I.apply(this,k)};var V=_(E);ye(V,()=>{var k;return(k=e.children)!=null?k:de}),h(E),it(E,k=>a(k),()=>a()),B(()=>{var k,I,R,Y,H,F,W,J;ee(E,1,`btn ${(k=i())!=null?k:""}`,"svelte-ut3f27"),rt(E,o()||null),E.disabled=(I=n())!=null?I:null,Fe(E,"aria-hidden",(R=l())!=null?R:null),Fe(E,"aria-label",(Y=d())!=null?Y:null),Fe(E,"aria-keyshortcuts",(H=p())!=null?H:null),Fe(E,"aria-expanded",(F=f())!=null?F:null),Fe(E,"data-testid",(W=s())!=null?W:null),Fe(E,"tabindex",v()),Fe(E,"role",e.role),Fe(E,"aria-checked",(J=e.areaChecked)!=null?J:null)}),xt("focus",E,function(...k){var I;(I=r(S))==null||I.apply(this,k)}),xt("blur",E,function(...k){var I;(I=r(T))==null||I.apply(this,k)}),$(t,E),z()}lt(["pointerdown","click"]);var h$=M('<div class="modal-header svelte-ijitjb"><h3 class="modal-title svelte-ijitjb"> </h3> <!></div>'),_$=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>'),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 bf(t,e){U(e,!0),q(t,b$);let i=m(e,"showHeader",3,!0),o=m(e,"showCloseCross",3,!0),n=K("hotkey_map_modal_close_btn_text");var s=_$(),l=_(s),d=_(l);{var a=u=>{var y=h$(),w=_(y),x=_(w,!0);h(w);var S=P(w,2);{var T=E=>{Rt(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return n},children:(V,k)=>{_f(V,{})},$$slots:{default:!0}})};L(S,E=>{o()&&E(T)})}h(y),B(()=>be(x,e.title)),$(u,y)};L(d,u=>{i()&&u(a)})}var p=P(d,2),f=_(p),v=_(f);ye(v,()=>{var u;return(u=e.children)!=null?u:de}),h(f),h(p),h(l),h(s),$(t,s),z()}var $$=new Set(["BR"]),r1=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;$$.has(l)||(n=s.parentElement)==null||n.removeChild(s)}return e.innerHTML};var y$=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>'),x$=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>'),w$=M('<div class="hot-key-map svelte-quklnq"></div>'),S$={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 If(t,e){U(e,!1),K(t,P$);let[i,o]=He(),n=()=>C(l,"$data",i),s=Te(),{data:l,show:d}=s.ui.modals.hotKeyMap,a=()=>{d.set(!1)};Dr(),Ef(t,{get title(){return n().title},onClose:a,children:(p,f)=>{var m=k$();Si(m,5,()=>n().groups,({title:u,items:y})=>u,(u,y)=>{let w=()=>r(y).title,x=()=>r(y).items;var S=I$(),T=_(S),E=_(T,!0);h(T);var R=P(T,2);Si(R,5,x,({description:I,value:M})=>M,(I,M)=>{let k=()=>r(M).description,G=()=>r(M).value;var H=E$(),F=_(H),q=_(F);Kl(q,()=>v1(k())),h(F);var Y=P(F,2),j=_(Y,!0);h(Y),h(H),B(()=>_e(j,G())),$(I,H)}),h(R),h(S),B(()=>_e(E,w())),$(u,S)}),h(m),$(p,m)},$$slots:{default:!0}}),z(),o()}import{noop as F1}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as R1,PlaybackState as fm}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-shared/es2018";var A$=A('<div class="pillow svelte-1oe0j8n"><!></div>'),M$={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 kf(t,e){K(t,M$);var i=A$(),o=_(i);$e(o,()=>{var n;return(n=e.children)!=null?n:de}),h(i),$(t,i)}import{VideoQuality as vd}from"@vkontakte/videoplayer-shared/es2018";var L$=we('<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 Pf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=L$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}var V$=we('<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 Af(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=V$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}var R$=we('<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 Mf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=R$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var N$=we('<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=N$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var O$=we('<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=O$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}var cu=t=>{switch(t){case vd.Q_720P:return Mf;case vd.Q_1080P:return fd;case vd.Q_1440P:return md;case vd.Q_2160P:return Pf;case vd.Q_4320P:return Af}};var B$=we('<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 Lf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=B$();Ie(o,()=>({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);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var D$=we('<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 Vf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=D$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}var H$=A('<div aria-hidden="true"><!> <!></div>'),F$={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),K(t,F$);let i=v(e,"isMobile",3,!1),o=v(e,"currentQuality",3,void 0),n=g(()=>cu(o())),s=g(()=>!!r(n)&&[fd,md].includes(r(n)));var l=qe(),d=ge(l);{var a=f=>{Lf(f,{})},p=f=>{var m=H$();let u;var y=_(m);{var w=T=>{kf(T,{children:(E,R)=>{var I=qe(),M=ge(I);Ci(M,()=>r(n),(k,G)=>{G(k,{})}),$(E,I)},$$slots:{default:!0}})};V(y,T=>{r(n)&&T(w)})}var x=P(y,2);let S=g(()=>r(n)?"settings-icon--labeled":"settings-icon");Vf(x,{get"data-testid"(){return r(S)},fill:"var(--btn-color, #fff)"}),h(m),B(T=>u=ie(m,1,"icon svelte-8t5w85",null,u,T),[()=>({triple:r(s)})]),$(f,m)};V(d,f=>{i()?f(a):f(p,!1)})}$(t,l),z()}var U$=A('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),z$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function dl(t,e){U(e,!0),K(t,z$);let[i,o]=He(),n=()=>C(p,"$settingsMenuVisible",i),s=()=>C(u,"$isMobile",i),l=()=>C(a,"$currentQuality",i),d=Te(),a=d.state.currentQuality$,p=d.ui.settingsMenu.visible$,f=d.actions.internal.openSettingsMenu,m=d.actions.internal.closeSettingsMenu,u=d.ui.isMobile,y=d.ui.t,w=Z(void 0);Qe(()=>{r(w)&&$t(()=>{e.ref$.set(r(w))})});let x=y("aria_label_settings");async function S(E){let R=Bs(E);n()?m():f(R,xo)}let T=g(()=>n()?"opened":"");Ot(t,{get className(){return r(T)},testId:"btn-settings",click:S,get ariaLabel(){return x},get ariaExpanded(){return n()},get ref(){return r(w)},set ref(E){O(w,E,!0)},children:(E,R)=>{var I=U$(),M=_(I);gd(M,{get isMobile(){return s()},get currentQuality(){return l()}}),h(I),$(E,I)},$$slots:{default:!0}}),z(),o()}var W$=we('<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 Rf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=W$();Ie(o,()=>({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);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var K$=we('<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=K$();Ie(o,()=>({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);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}function Nf(t,e){U(e,!0);let i=v(e,"isSubtitlesEnabled",3,!1),n=Te().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 os.KeyC},role:"button",children:(l,d)=>{var a=qe(),p=ge(a);{var f=u=>{Rf(u,{})},m=u=>{hd(u,{})};V(p,u=>{i()?u(f):u(m,!1)})}$(l,a)},$$slots:{default:!0}}),z()}var q$=A('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),Q$=A('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),G$={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),K(t,G$);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=Et(),d=le(!1),a=g(()=>hn(e.duration)),p=g(()=>hn(e.position));var f=Q$();let m;var u=_(f),y=_(u,!0);h(u);var w=P(u,2);{var x=S=>{var T=q$(),E=_(T,!0);h(T),B(()=>_e(E,r(a))),$(S,T)};V(w,S=>{n()&&S(x)})}h(f),ms(f,()=>ol(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),et(f,S=>s(S),()=>s()),B(S=>{m=ie(f,1,"time svelte-sz9er7",null,m,S),_e(y,r(p))},[()=>({mobile:i()})]),$(t,f),z()}import{noop as uu}from"@vkontakte/videoplayer-shared/es2018";var j$=we('<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>'),Y$={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 $f(t,e){U(e,!1),q(t,S$);let[i,o]=He(),n=()=>C(l,"$data",i),s=Ee(),{data:l,show:d}=s.ui.modals.hotKeyMap,a=()=>{d.set(!1)};Br(),bf(t,{get title(){return n().title},onClose:a,children:(p,f)=>{var v=w$();Si(v,5,()=>n().groups,({title:u,items:y})=>u,(u,y)=>{let w=()=>r(y).title,x=()=>r(y).items;var S=x$(),T=_(S),E=_(T,!0);h(T);var V=P(T,2);Si(V,5,x,({description:k,value:I})=>I,(k,I)=>{let R=()=>r(I).description,Y=()=>r(I).value;var H=y$(),F=_(H),W=_(F);Fl(W,()=>r1(R())),h(F);var J=P(F,2),G=_(J,!0);h(J),h(H),B(()=>be(G,Y())),$(k,H)}),h(V),h(S),B(()=>be(E,w())),$(u,S)}),h(v),$(p,v)},$$slots:{default:!0}}),z(),o()}import{noop as A1}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as C1,PlaybackState as rm}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-shared/es2018";var C$=M('<div class="pillow svelte-1oe0j8n"><!></div>'),T$={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 yf(t,e){q(t,T$);var i=C$(),o=_(i);ye(o,()=>{var n;return(n=e.children)!=null?n:de}),h(i),$(t,i)}import{VideoQuality as ud}from"@vkontakte/videoplayer-shared/es2018";var E$=Te('<svg><!><path fill="currentColor" d="M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"></path><path fill="currentColor" fill-rule="evenodd" d="m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z" clip-rule="evenodd"></path></svg>');function xf(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=E$();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),$(t,o)}var I$=Te('<svg><!><path fill="currentColor" d="M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"></path><path fill="currentColor" fill-rule="evenodd" d="M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524" clip-rule="evenodd"></path></svg>');function wf(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=I$();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),$(t,o)}var k$=Te('<svg><!><path fill="currentColor" d="M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"></path></svg>');function Sf(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=k$();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var P$=Te('<svg><!><path fill="currentColor" d="M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"></path></svg>');function dd(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=P$();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var A$=Te('<svg><!><path fill="currentColor" d="M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"></path><path fill="currentColor" fill-rule="evenodd" d="M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02" clip-rule="evenodd"></path></svg>');function cd(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=A$();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),$(t,o)}var ru=t=>{switch(t){case ud.Q_720P:return Sf;case ud.Q_1080P:return dd;case ud.Q_1440P:return cd;case ud.Q_2160P:return xf;case ud.Q_4320P:return wf}};var M$=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"></path></svg>');function Cf(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=M$();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var L$=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5" class="_full"></path></svg>');function Tf(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=L$();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),$(t,o)}var V$=M('<div aria-hidden="true"><!> <!></div>'),R$={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 pd(t,e){U(e,!0),q(t,R$);let i=m(e,"isMobile",3,!1),o=m(e,"currentQuality",3,void 0),n=g(()=>ru(o())),s=g(()=>!!r(n)&&[dd,cd].includes(r(n)));var l=We(),d=ge(l);{var a=f=>{Cf(f,{})},p=f=>{var v=V$();let u;var y=_(v);{var w=T=>{yf(T,{children:(E,V)=>{var k=We(),I=ge(k);Ci(I,()=>r(n),(R,Y)=>{Y(R,{})}),$(E,k)},$$slots:{default:!0}})};L(y,T=>{r(n)&&T(w)})}var x=P(y,2);let S=g(()=>r(n)?"settings-icon--labeled":"settings-icon");Tf(x,{get"data-testid"(){return r(S)},fill:"var(--btn-color, #fff)"}),h(v),B(T=>u=ee(v,1,"icon svelte-8t5w85",null,u,T),[()=>({triple:r(s)})]),$(f,v)};L(d,f=>{i()?f(a):f(p,!1)})}$(t,l),z()}var N$=M('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),O$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function cl(t,e){U(e,!0),q(t,O$);let[i,o]=He(),n=()=>C(p,"$settingsMenuVisible",i),s=()=>C(u,"$isMobile",i),l=()=>C(a,"$currentQuality",i),d=Ee(),a=d.state.currentQuality$,p=d.ui.settingsMenu.visible$,f=d.actions.internal.openSettingsMenu,v=d.actions.internal.closeSettingsMenu,u=d.ui.isMobile,y=d.ui.t,w=j(void 0);Ke(()=>{r(w)&&yt(()=>{e.ref$.set(r(w))})});let x=y("aria_label_settings");async function S(E){let V=Os(E);n()?v():f(V,Co)}let T=g(()=>n()?"opened":"");Rt(t,{get className(){return r(T)},testId:"btn-settings",click:S,get ariaLabel(){return x},get ariaExpanded(){return n()},get ref(){return r(w)},set ref(E){O(w,E,!0)},children:(E,V)=>{var k=N$(),I=_(k);pd(I,{get isMobile(){return s()},get currentQuality(){return l()}}),h(k),$(E,k)},$$slots:{default:!0}}),z(),o()}var B$=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.538 4c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.334v3.076c0 .948 0 1.714-.05 2.334-.053.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.922c-.267-.523-.377-1.087-.43-1.726C2 15.252 2 14.486 2 13.538v-3.076c0-.948 0-1.714.05-2.334.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.267 1.087-.377 1.726-.43C6.748 4 7.514 4 8.462 4zM6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9m.9-4.7a.9.9 0 1 0 0 1.8h1.7a.9.9 0 1 0 0-1.8zm7.6 4.7a.9.9 0 0 1 .9-.9h1.7a.9.9 0 0 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9m-2.6-4.7a.9.9 0 1 0 0 1.8h5.2a.9.9 0 0 0 0-1.8z" clip-rule="evenodd"></path></svg>');function Ef(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=B$();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",viewBox:"0 0 24 24",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var D$=Te('<svg><!><g fill="var(--btn-color, #fff)" fill-rule="evenodd" clip-rule="evenodd"><path d="M8.462 4h7.076c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.333v3.077c0 .948 0 1.713-.05 2.334-.053.64-.163 1.203-.43 1.725a4.4 4.4 0 0 1-1.922 1.923c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.923c-.267-.522-.377-1.086-.43-1.725C2 15.252 2 14.486 2 13.538v-3.077c0-.947 0-1.713.05-2.333.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.266 1.087-.376 1.726-.428C6.748 4 7.514 4 8.462 4M6.275 5.845c-.528.043-.83.123-1.055.238A2.6 2.6 0 0 0 4.083 7.22c-.115.227-.195.527-.238 1.055C3.8 8.813 3.8 9.504 3.8 10.5v3c0 .995 0 1.687.045 2.225.043.528.123.829.238 1.055a2.6 2.6 0 0 0 1.137 1.136c.226.116.527.196 1.055.24.538.043 1.23.044 2.225.044h7c.995 0 1.687 0 2.226-.045.527-.043.828-.123 1.054-.239a2.6 2.6 0 0 0 1.137-1.136c.115-.226.195-.527.238-1.055.044-.538.045-1.23.045-2.225v-3c0-.995 0-1.687-.045-2.226-.043-.528-.123-.828-.238-1.054a2.6 2.6 0 0 0-1.137-1.137c-.226-.115-.527-.195-1.055-.238-.538-.044-1.23-.045-2.225-.045h-7c-.995 0-1.687 0-2.226.045"></path><path d="M6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M6 11.1a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M14.5 14.9a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9M11 11.1a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8h-5.2a.9.9 0 0 1-.9-.9"></path></g></svg>');function fd(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=D$();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",viewBox:"0 0 24 24",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}function If(t,e){U(e,!0);let i=m(e,"isSubtitlesEnabled",3,!1),n=Ee().ui.t,s=g(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Rt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(s)},get click(){return e.click},get ariaKeyShortCut(){return os.KeyC},role:"button",children:(l,d)=>{var a=We(),p=ge(a);{var f=u=>{Ef(u,{})},v=u=>{fd(u,{})};L(p,u=>{i()?u(f):u(v,!1)})}$(l,a)},$$slots:{default:!0}}),z()}var H$=M('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),F$=M('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),U$={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 md(t,e){U(e,!0),q(t,U$);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=Et(),d=se(!1),a=g(()=>_n(e.duration)),p=g(()=>_n(e.position));var f=F$();let v;var u=_(f),y=_(u,!0);h(u);var w=P(u,2);{var x=S=>{var T=H$(),E=_(T,!0);h(T),B(()=>be(E,r(a))),$(S,T)};L(w,S=>{n()&&S(x)})}h(f),ms(f,()=>nl(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),it(f,S=>s(S),()=>s()),B(S=>{v=ee(f,1,"time svelte-sz9er7",null,v,S),be(y,r(p))},[()=>({mobile:i()})]),$(t,f),z()}import{noop as su}from"@vkontakte/videoplayer-shared/es2018";var z$=Te('<svg xmlns="http://www.w3.org/2000/svg" class="icon svelte-v40k9i" aria-hidden="true"><g fill="var(--btn-color, #fff)" fill-rule="evenodd"><path d="M2 9.94595C2 9.41522 2.41461 8.97693 2.94453 8.94749L5.775 8.79025C6.24338 8.76422 6.6877 8.57439 7.03029 8.25394L11.3169 4.24433C11.9558 3.64667 13 4.09974 13 4.97464V19.0253C13 19.9002 11.9558 20.3533 11.3169 19.7556L7.03029 15.746C6.6877 15.4255 6.24337 15.2357 5.77499 15.2097L2.94453 15.0524C2.41461 15.023 2 14.5847 2 14.054V9.94595Z"></path><path class="cross svelte-v40k9i" d="M22.4636 8.26359C22.8151 7.91212 23.3849 7.91212 23.7364 8.26359C24.0879 8.61506 24.0879 9.18491 23.7364 9.53638L21.2728 12L23.7364 14.4636C24.0879 14.815 24.0879 15.3849 23.7364 15.7364C23.3849 16.0878 22.8151 16.0878 22.4636 15.7364L20 13.2728L17.5364 15.7364C17.1849 16.0878 16.6151 16.0878 16.2636 15.7364C15.9121 15.3849 15.9121 14.815 16.2636 14.4636L18.7272 12L16.2636 9.53638C15.9121 9.18491 15.9121 8.61506 16.2636 8.26359C16.6151 7.91212 17.1849 7.91212 17.5364 8.26359L20 10.7272L22.4636 8.26359Z"></path><path class="wave1 svelte-v40k9i" d="M15.7484 8.89758C16.0811 8.52829 16.6501 8.49862 17.0194 8.83132C17.8726 9.59994 18.4 10.7425 18.4 12C18.4 13.2575 17.8726 14.4001 17.0194 15.1687C16.6501 15.5014 16.0811 15.4717 15.7484 15.1024C15.4157 14.7331 15.4453 14.1641 15.8146 13.8314C16.2849 13.4077 16.6 12.753 16.6 12C16.6 11.2471 16.2849 10.5923 15.8146 10.1686C15.4453 9.83595 15.4157 9.26687 15.7484 8.89758Z"></path><path class="wave2 svelte-v40k9i" d="M18.8141 6.67424C19.1924 6.35184 19.7605 6.39716 20.0829 6.77547C21.2779 8.17774 22 10.0053 22 12C22 13.9946 21.2779 15.8222 20.0829 17.2245C19.7605 17.6028 19.1924 17.6481 18.8141 17.3257C18.4358 17.0033 18.3905 16.4353 18.7129 16.057C19.639 14.9702 20.2 13.5535 20.2 12C20.2 10.4464 19.639 9.02976 18.7129 7.943C18.3905 7.56469 18.4358 6.99665 18.8141 6.67424Z"></path></g></svg>'),W$={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 Hs(t,e){K(t,Y$);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=j$();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 h1,noop as Vn}from"@vkontakte/videoplayer-shared/es2018";import{noop as Bf}from"@vkontakte/videoplayer-shared/es2018";import{noop as X$}from"@vkontakte/videoplayer-shared/es2018";var Z$=A('<div class="overlay"><!></div>');function Of(t,e){U(e,!0);let[i,o]=He(),n=()=>C(l,"$overlayContainer$",i),l=Te().ui.overlayContainer$,d=Z(void 0),a=u=>{!u||!r(d)||!u.contains(r(d))||u.removeChild(r(d))},p=u=>{!u||!r(d)||u.contains(r(d))||u.appendChild(r(d))};Qe(()=>{p(n())}),Lt(()=>(p(n()),()=>a(n())));var f=Z$(),m=_(f);$e(m,()=>{var u;return(u=e.children)!=null?u:de}),h(f),et(f,u=>O(d,u),()=>r(d)),$(t,f),z(),o()}var J$=A('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),e2=A("<div><!></div> <!>",1),t2={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 ha(t,e){U(e,!0),K(t,t2);let[i,o]=He(),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),p=v(e,"translateX",3,0),f=v(e,"translateY",3,0),m=v(e,"isFullWidthWrapper",3,!1),u=v(e,"maxTooltipWidth",3,void 0),y=v(e,"placement",3,"top"),w=v(e,"onVisibilityChange",3,X$),x=5,S=Z(void 0),T=Z(void 0),E,R=Z(0),I=Z(0),M=Z(0),k=Z(0),G=Et(),H=Te(),F=H.ui.playerSize,q=H.ui.overlayContainer$;Qe(()=>{$t(()=>{w()(a())})});let Y=H.getLogger().createComponentLog("Tooltip component"),j=()=>{if(!n()||!r(T)||!r(S))return;O(I,x);let X=n().getBoundingClientRect(),Ae=r(S).getBoundingClientRect(),ke=Ae.width,ze=r(T).clientWidth,nt=s().width,ht=(ke-ze)/2,at=Ae.left+p()-X.left,yt=at+ht,Xe=Ae.top+f()-X.top,Ht=ze/2-x,Xt=yt<8,Bt=yt+ze>nt-8;Xt&&(yt=8,Ht=at+Ae.width/2-2.5*x),Bt&&(yt=nt-8-ze,Ht=Ae.left-X.left+Ae.width/2-yt-x),O(M,yt,!0),O(k,Xe),O(R,Ht,!0)},ue=()=>{!n()||!r(T)||!r(S)||O(I,-x)},re=()=>{if(!n()||!r(T)||!r(S))return;O(R,x);let X=n().getBoundingClientRect(),Ae=r(S).getBoundingClientRect(),ke=Ae.height,ze=r(T).clientHeight,nt=(ke-ze)/2+ze,ht=Ae.left+p()-X.left-r(T).clientWidth,at=2,yt=ht-x;yt<8&&(yt=8);let Ht=Ae.top+f()-X.top+nt,Xt=at-nt/2,Bt=at-x;O(M,yt,!0),O(k,Ht),O(I,Xt),O(R,Bt)},fe=()=>{!n()||!r(T)||!r(S)||O(R,-x)},be=()=>{switch(y()){case"top":j();break;case"bottom":ue();break;case"left":re();break;default:fe()}},me=()=>{try{if(!n()||!r(S))return;be(),a(!0)}catch(X){Y({message:String(X)})}},Pe=()=>{a(!1)},se=()=>{r(T)&&(E||(E=window.setTimeout(me,G.controls.hideTimeoutTooltips)),a()&&me())},Le=()=>{Pe(),window.clearTimeout(E),E=void 0},ae=(X,Ae,ke)=>{let ze="";switch(y()){case"top":ze=`transform: translate(${X}px, ${Ae}px);`;break;case"bottom":ze=`transform: translate(${X}px, ${Ae}px); top: auto; bottom: 100%;`;break;case"left":ze=`transform: translate(${X}px, ${Ae}px); left: 0; right: auto;`;break;default:ze=`transform: translate(${X}px, ${Ae}px);`}return ze+=` max-width: ${u()===void 0?"auto":`${u()}px`};`,ze+=` opacity: ${ke?1:0}; visibility: ${ke?"visible":"hidden"}`,ze},N=(X,Ae)=>{let ke="";switch(y()){case"top":ke=`transform: translate(${X}px, ${Ae}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":ke=`transform: translate(${X}px, ${Ae}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":ke=`transform: translate(${X}px, ${Ae}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:ke=`transform: translate(${X}px, ${Ae}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return ke},Be=g(()=>ae(r(M),r(k),a())),ce=g(()=>N(r(R),r(I)));Lt(be),Xo(()=>window.clearTimeout(E));var he=e2(),oe=ge(he);let ve;oe.__mousemove=se,oe.__mousedown=Le,oe.__mouseup=function(...X){var Ae;(Ae=e.disableMouseupTooltipShow?void 0:se)==null||Ae.apply(this,X)};var De=_(oe);$e(De,()=>{var X;return(X=e.children)!=null?X:de}),h(oe),et(oe,X=>O(S,X),()=>r(S));var pe=P(oe,2);{var rt=X=>{Of(X,{children:(Ae,ke)=>{var ze=J$(),nt=_(ze),ht=_(nt,!0);h(nt);var at=P(nt,2);h(ze),et(ze,yt=>O(T,yt),()=>r(T)),B(()=>{ot(ze,r(Be)),_e(ht,d()),ot(at,r(ce))}),$(Ae,ze)},$$slots:{default:!0}})};V(pe,X=>{d()&&!l()&&X(rt)})}B(X=>ve=ie(oe,1,"tooltip-wrapper svelte-hxlyne",null,ve,X),[()=>({"full-width":m()})]),wt("mouseenter",oe,se),wt("mouseleave",oe,Le),$(t,he),z(),o()}st(["mousemove","mousedown","mouseup"]);var g1=t=>{t.stopPropagation()},i2=A("<div><!></div>"),o2={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 So(t,e){U(e,!0),K(t,o2);let[i,o]=He(),n=()=>C(p,"$isGraphOpened$",i),s=()=>C(a,"$isMobile",i),l=Te(),d=uo(),a=l.ui.isMobile,p=d.graphIsOpened$,f=l.ui.t,m=v(e,"className",3,""),u=v(e,"disabled",3,!1),y=v(e,"hasTooltip",3,!0),w=v(e,"ref",15,void 0),x=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,Bf),G=v(e,"initialTranslateXPx",3,0),H=v(e,"initialTranslateYPx",19,()=>-18),F=v(e,"mouseEnter",3,Bf),q=v(e,"mouseLeave",3,Bf),Y=g(()=>u()?n()?f("tooltip_disabled_when_graph_on"):I():T());var j=i2();j.__pointerdown=[g1],j.__click=[g1];var ue=_(j);{var re=be=>{ha(be,{get content(){return r(Y)},get translateX(){return G()},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:(me,Pe)=>{var se=qe(),Le=ge(se);$e(Le,()=>{var ae;return(ae=e.children)!=null?ae:de}),$(me,se)},$$slots:{default:!0}})},fe=be=>{var me=qe(),Pe=ge(me);$e(Pe,()=>{var se;return(se=e.children)!=null?se:de}),$(be,me)};V(ue,be=>{y()&&r(Y)&&!s()?be(re):be(fe,!1)})}h(j),et(j,be=>w(be),()=>w()),B(()=>{var be;ie(j,1,`btn-container ${(be=m())!=null?be:""}`,"svelte-p9r045"),Ue(j,"aria-hidden",M()||null)}),wt("mouseenter",j,function(...be){var me;(me=F())==null||me.apply(this,be)}),wt("mouseleave",j,function(...be){var me;(me=q())==null||me.apply(this,be)}),rr(j,"clientWidth",x),$(t,j),z(),o()}st(["pointerdown","click"]);var n2=we('<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=n2(),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 r2=A("<div><!></div>"),s2={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 Df(t,e){U(e,!0),K(t,s2);let o=Te().ui.t,n=Z(0),s=g(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));So(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=r2();let p;var f=_(a);let m=g(()=>!!e.videoEpisode.completed);bd(f,{get completed(){return r(m)}}),h(a),B(u=>{p=ie(a,1,"interactive-episode-icon svelte-bklhpe",null,p,u),ot(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),rr(a,"clientWidth",u=>O(n,u)),$(l,a)},$$slots:{default:!0}}),z()}var a2=A('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),l2=A('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),d2={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 Ds(t,e){q(t,W$);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=z$();B(()=>{var d;Fe(l,"data-value",r(s)),Fe(l,"data-testid",`volume-${(d=r(s))!=null?d:""}-icon`)}),$(t,l)}import{isNonNullable as a1,noop as Nn}from"@vkontakte/videoplayer-shared/es2018";import{noop as Pf}from"@vkontakte/videoplayer-shared/es2018";import{noop as q$}from"@vkontakte/videoplayer-shared/es2018";var K$=M('<div class="overlay"><!></div>');function kf(t,e){U(e,!0);let[i,o]=He(),n=()=>C(l,"$overlayContainer$",i),l=Ee().ui.overlayContainer$,d=j(void 0),a=u=>{!u||!r(d)||!u.contains(r(d))||u.removeChild(r(d))},p=u=>{!u||!r(d)||u.contains(r(d))||u.appendChild(r(d))};Ke(()=>{p(n())}),Pt(()=>(p(n()),()=>a(n())));var f=K$(),v=_(f);ye(v,()=>{var u;return(u=e.children)!=null?u:de}),h(f),it(f,u=>O(d,u),()=>r(d)),$(t,f),z(),o()}var Q$=M('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),G$=M("<div><!></div> <!>",1),j$={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 ha(t,e){U(e,!0),q(t,j$);let[i,o]=He(),n=()=>C(W,"$overlayContainer$",i),s=()=>C(F,"$containerSize",i),l=m(e,"isMobile",3,!1),d=m(e,"content",3,""),a=m(e,"active",15,!1),p=m(e,"translateX",3,0),f=m(e,"translateY",3,0),v=m(e,"isFullWidthWrapper",3,!1),u=m(e,"maxTooltipWidth",3,void 0),y=m(e,"placement",3,"top"),w=m(e,"onVisibilityChange",3,q$),x=5,S=j(void 0),T=j(void 0),E,V=j(0),k=j(0),I=j(0),R=j(0),Y=Et(),H=Ee(),F=H.ui.playerSize,W=H.ui.overlayContainer$;Ke(()=>{yt(()=>{w()(a())})});let J=H.getLogger().createComponentLog("Tooltip component"),G=()=>{if(!n()||!r(T)||!r(S))return;O(k,x);let Z=n().getBoundingClientRect(),Ae=r(S).getBoundingClientRect(),Ie=Ae.width,ze=r(T).clientWidth,at=s().width,ft=(Ie-ze)/2,mt=Ae.left+p()-Z.left,wt=mt+ft,Ge=Ae.top+f()-Z.top,Bt=ze/2-x,Xt=wt<8,qt=wt+ze>at-8;Xt&&(wt=8,Bt=mt+Ae.width/2-2.5*x),qt&&(wt=at-8-ze,Bt=Ae.left-Z.left+Ae.width/2-wt-x),O(I,wt,!0),O(R,Ge),O(V,Bt,!0)},ce=()=>{!n()||!r(T)||!r(S)||O(k,-x)},ie=()=>{if(!n()||!r(T)||!r(S))return;O(V,x);let Z=n().getBoundingClientRect(),Ae=r(S).getBoundingClientRect(),Ie=Ae.height,ze=r(T).clientHeight,at=(Ie-ze)/2+ze,ft=Ae.left+p()-Z.left-r(T).clientWidth,mt=2,wt=ft-x;wt<8&&(wt=8);let Bt=Ae.top+f()-Z.top+at,Xt=mt-at/2,qt=mt-x;O(I,wt,!0),O(R,Bt),O(k,Xt),O(V,qt)},ue=()=>{!n()||!r(T)||!r(S)||O(V,-x)},$e=()=>{switch(y()){case"top":G();break;case"bottom":ce();break;case"left":ie();break;default:ue()}},fe=()=>{try{if(!n()||!r(S))return;$e(),a(!0)}catch(Z){J({message:String(Z)})}},ke=()=>{a(!1)},ne=()=>{r(T)&&(E||(E=window.setTimeout(fe,Y.controls.hideTimeoutTooltips)),a()&&fe())},Ve=()=>{ke(),window.clearTimeout(E),E=void 0},re=(Z,Ae,Ie)=>{let ze="";switch(y()){case"top":ze=`transform: translate(${Z}px, ${Ae}px);`;break;case"bottom":ze=`transform: translate(${Z}px, ${Ae}px); top: auto; bottom: 100%;`;break;case"left":ze=`transform: translate(${Z}px, ${Ae}px); left: 0; right: auto;`;break;default:ze=`transform: translate(${Z}px, ${Ae}px);`}return ze+=` max-width: ${u()===void 0?"auto":`${u()}px`};`,ze+=` opacity: ${Ie?1:0}; visibility: ${Ie?"visible":"hidden"}`,ze},N=(Z,Ae)=>{let Ie="";switch(y()){case"top":Ie=`transform: translate(${Z}px, ${Ae}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ie=`transform: translate(${Z}px, ${Ae}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ie=`transform: translate(${Z}px, ${Ae}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ie=`transform: translate(${Z}px, ${Ae}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ie},Be=g(()=>re(r(I),r(R),a())),le=g(()=>N(r(V),r(k)));Pt($e),Jo(()=>window.clearTimeout(E));var ve=G$(),te=ge(ve);let me;te.__mousemove=ne,te.__mousedown=Ve,te.__mouseup=function(...Z){var Ae;(Ae=e.disableMouseupTooltipShow?void 0:ne)==null||Ae.apply(this,Z)};var De=_(te);ye(De,()=>{var Z;return(Z=e.children)!=null?Z:de}),h(te),it(te,Z=>O(S,Z),()=>r(S));var pe=P(te,2);{var st=Z=>{kf(Z,{children:(Ae,Ie)=>{var ze=Q$(),at=_(ze),ft=_(at,!0);h(at);var mt=P(at,2);h(ze),it(ze,wt=>O(T,wt),()=>r(T)),B(()=>{rt(ze,r(Be)),be(ft,d()),rt(mt,r(le))}),$(Ae,ze)},$$slots:{default:!0}})};L(pe,Z=>{d()&&!l()&&Z(st)})}B(Z=>me=ee(te,1,"tooltip-wrapper svelte-hxlyne",null,me,Z),[()=>({"full-width":v()})]),xt("mouseenter",te,ne),xt("mouseleave",te,Ve),$(t,ve),z(),o()}lt(["mousemove","mousedown","mouseup"]);var s1=t=>{t.stopPropagation()},Y$=M("<div><!></div>"),Z$={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,Z$);let[i,o]=He(),n=()=>C(p,"$isGraphOpened$",i),s=()=>C(a,"$isMobile",i),l=Ee(),d=mo(),a=l.ui.isMobile,p=d.graphIsOpened$,f=l.ui.t,v=m(e,"className",3,""),u=m(e,"disabled",3,!1),y=m(e,"hasTooltip",3,!0),w=m(e,"ref",15,void 0),x=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,Pf),Y=m(e,"initialTranslateXPx",3,0),H=m(e,"initialTranslateYPx",19,()=>-18),F=m(e,"mouseEnter",3,Pf),W=m(e,"mouseLeave",3,Pf),J=g(()=>u()?n()?f("tooltip_disabled_when_graph_on"):k():T());var G=Y$();G.__pointerdown=[s1],G.__click=[s1];var ce=_(G);{var ie=$e=>{ha($e,{get content(){return r(J)},get translateX(){return Y()},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:(fe,ke)=>{var ne=We(),Ve=ge(ne);ye(Ve,()=>{var re;return(re=e.children)!=null?re:de}),$(fe,ne)},$$slots:{default:!0}})},ue=$e=>{var fe=We(),ke=ge(fe);ye(ke,()=>{var ne;return(ne=e.children)!=null?ne:de}),$($e,fe)};L(ce,$e=>{y()&&r(J)&&!s()?$e(ie):$e(ue,!1)})}h(G),it(G,$e=>w($e),()=>w()),B(()=>{var $e;ee(G,1,`btn-container ${($e=v())!=null?$e:""}`,"svelte-p9r045"),Fe(G,"aria-hidden",I()||null)}),xt("mouseenter",G,function(...$e){var fe;(fe=F())==null||fe.apply(this,$e)}),xt("mouseleave",G,function(...$e){var fe;(fe=W())==null||fe.apply(this,$e)}),ir(G,"clientWidth",x),$(t,G),z(),o()}lt(["pointerdown","click"]);var X$=Te('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect width="20" height="20" rx="10" fill="var(--btn-color, #fff)"></rect><path d="M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"></path></svg>');function vd(t,e){"use strict";var i=X$(),o=_(i),n=P(o);h(i),B(()=>{Fe(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Fe(o,"fill-opacity",e.completed?1:.24),Fe(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),$(t,i)}var J$=M("<div><!></div>"),e2={hash:"svelte-bklhpe",code:".interactive-episode-icon.svelte-bklhpe {width:20px;height:20px;position:absolute;transform:translateX(-50%);cursor:default;}.interactive-episode-icon.disabled.svelte-bklhpe {pointer-events:none;opacity:0.4;}"};function Af(t,e){U(e,!0),q(t,e2);let o=Ee().ui.t,n=j(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=J$();let p;var f=_(a);let v=g(()=>!!e.videoEpisode.completed);vd(f,{get completed(){return r(v)}}),h(a),B(u=>{p=ee(a,1,"interactive-episode-icon svelte-bklhpe",null,p,u),rt(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),ir(a,"clientWidth",u=>O(n,u)),$(l,a)},$$slots:{default:!0}}),z()}var t2=M('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),i2=M('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),o2={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
|
|
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 Mf(t,e){q(t,o2);let i=m(e,"videoEpisodes",19,()=>[]);var o=i2();Si(o,21,i,n=>n.from,(n,s)=>{var l=t2();let d;var a=_(l),p=_(a),f=P(p,2);let v;h(a),h(l),B((u,y)=>{d=ee(l,1,"video-episode svelte-1u6kv8l",null,d,u),rt(l,`left: ${r(s).from}%; width: ${r(s).width}%`),rt(p,`transform: translateX(${r(s).loadedWidth/r(s).width*100}%)`),v=ee(f,1,"video-episode-filled svelte-1u6kv8l",null,v,y),rt(f,`transform: translateX(${r(s).filledWidth/r(s).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),$(n,l)}),h(o),$(t,o)}function n2(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 r2(t,e,i,o,n,s,l,d){if(t.preventDefault(),e())return;let a=i(t.clientX,t.clientY),p=o(t.clientX);n()(a,p,r(s).width),r(l)&&d()(a)}function s2(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 a2(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function l2(t,e,i,o,n,s){let l=e(t.clientX,t.clientY);i()&&o()(l),O(n,!1),s()(l)}var d2=M("<div></div>"),c2=M('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),u2=M('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),p2={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 _a(t,e){U(e,!0),K(t,_2);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),p=v(e,"squareBorders",3,!1),f=v(e,"videoEpisodes",19,()=>[]),m=v(e,"withWheelHandler",3,!1),u=v(e,"isInteractive",3,!1),y=v(e,"disabled",3,!1),w=v(e,"hideHandel",3,!1),x=v(e,"onPointerDown",3,Vn),S=v(e,"onHandleMove",3,Vn),T=v(e,"onPointerUp",3,Vn),E=v(e,"onPointerEnter",3,Vn),R=v(e,"onPointerMove",3,Vn),I=v(e,"onPointerLeave",3,Vn),M=v(e,"onMouseEnter",3,Vn),k=v(e,"onMouseLeave",3,Vn),G=v(e,"onWheelUp",3,Vn),H=v(e,"onWheelDown",3,Vn),F=v(e,"onWheelLeft",3,Vn),q=v(e,"onWheelRight",3,Vn),Y=v(e,"onDisabledClick",3,Vn),j=v(e,"loadedProgress",3,0),ue=v(e,"filledProgress",3,0),re=v(e,"handleProgress",3,0),fe=v(e,"ariaLabel",3,""),be=v(e,"ariaValueMin",3,void 0),me=v(e,"ariaValueMax",3,void 0),Pe=v(e,"ariaValueNow",3,void 0),se=v(e,"ariaValueText",3,""),Le=v(e,"onContextMenu",3,Vn),ae=Et(),N=Z(void 0),Be=Z(!1),ce=g(()=>{var ne;return(ne=me())!=null?ne:0}),he=g(()=>{var ne;return h1(f())&&((ne=f()[f().length-1])==null?void 0:ne.time)<r(ce)}),oe=g(()=>h1(f())&&f().length&&r(he)&&r(ce)?ze(j()*100,ue()*100):[]);function ve(ne){if(ne.preventDefault(),i()&&O(N,i().getBoundingClientRect(),!0),y())return;let Ve=Ae(ne.clientX,ne.clientY),Fe=ke(ne.clientX);E()(Ve,Fe,r(N).width)}function De(ne){ne.preventDefault(),!y()&&I()()}function pe(){M()()}function rt(){k()()}function X(ne){y()||m()&&(ne.preventDefault(),ne.deltaY<0?G()():ne.deltaY>0?H()():ne.deltaX>0?q()():F()())}function Ae(ne,Ve){return l()?Math.max(0,Math.min(1,(r(N).height-(Ve-r(N).top))/r(N).height)):Math.min(Math.max(ne-r(N).x,0),r(N).width)/r(N).width}function ke(ne){return Math.min(Math.max(ne-r(N).x,0),r(N).width)}function ze(ne,Ve){let Fe=ae.features.episodesClustering&&!u()?ae.episodeMinWidthPc:0,Re=[],We=f()[0].time/r(ce)*100,Ne=0,Je=0;for(let Ct=1;Ct<f().length;Ct++)Ne=f()[Ct].time/r(ce)*100,Ne-We>Fe&&(Re.push({from:We,width:Math.max(0,Ne-We),loadedWidth:Math.max(0,Math.min(Ne,ne)-We),filledWidth:Math.max(0,Math.min(Ne,Ve)-We),interactive:f()[Ct-1].interactive,completed:f()[Ct-1].completed}),We=f()[Ct].time/r(ce)*100,Je++);let Ft={from:We,width:Math.max(0,100-We),loadedWidth:Math.max(0,Math.min(ne,100)-We),filledWidth:Math.max(0,Math.min(Ve,100)-We),interactive:f()[Je].interactive,completed:f()[Je].completed};100-We<Fe?(Je-=1,Re[Je].width+=100-We,Re[Je].loadedWidth+=Math.max(0,Math.min(ne,100)-We),Re[Je].filledWidth+=Math.max(0,Math.min(Ve,100)-We)):Re[Je]=Ft;let Wt=f()[0].time;if(Wt!==0){let Ct=Wt/r(ce)*100;Re.unshift({from:0,width:Ct,loadedWidth:Math.min(Ct,ne),filledWidth:Math.min(Ct,Ve)})}return Re}function nt(ne){return Math.max(0,Math.min(100,ne*100))}var ht=h2(),at=ge(ht);{var yt=ne=>{var Ve=v2();let Fe;Si(Ve,21,()=>r(oe),Re=>Re.from,(Re,We)=>{var Ne=qe(),Je=ge(Ne);{var Ft=Wt=>{Df(Wt,{get videoEpisode(){return r(We)},get disabled(){return y()}})};V(Je,Wt=>{r(We).interactive&&Wt(Ft)})}$(Re,Ne)}),h(Ve),B(Re=>Fe=ie(Ve,1,"interactive-icons svelte-1tpemng",null,Fe,Re),[()=>({mobile:a(),hidden:a()&&!r(Be)})]),$(ne,Ve)};V(at,ne=>{u()&&ne(yt)})}var Xe=P(at,2);let Ht;Xe.__pointerdown=[c2,i,N,y,Be,Ae,x],Xe.__pointermove=[u2,y,Ae,ke,R,N,Be,S],Xe.__pointerup=[p2,y,Be,Ae,T],Xe.__click=[f2,y,Y,Ae],Xe.__contextmenu=[m2,Ae,y,Y,Be,Le];var Xt=_(Xe);{var Bt=ne=>{Hf(ne,{get videoEpisodes(){return r(oe)},get disabled(){return y()},get isMobile(){return a()}})},Qt=ne=>{var Ve=g2(),Fe=_(Ve),Re=P(Fe,2);let We;h(Ve),B((Ne,Je,Ft)=>{ot(Fe,Ne),We=ie(Re,1,"filled svelte-1tpemng",null,We,Je),ot(Re,Ft)},[()=>`transform: translateX(${nt(j())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${nt(ue())}%);`]),$(ne,Ve)};V(Xt,ne=>{r(oe).length?ne(Bt):ne(Qt,!1)})}var Ee=P(Xt,2);let zt;var Se=_(Ee);let te;h(Ee),h(Xe),et(Xe,ne=>i(ne),()=>i()),B((ne,Ve,Fe,Re)=>{var We,Ne;Ht=ie(Xe,1,`slider ${(We=o())!=null?We:""}`,"svelte-1tpemng",Ht,ne),Ue(Xe,"aria-label",fe()),Ue(Xe,"aria-valuemin",be()),Ue(Xe,"aria-valuemax",me()),Ue(Xe,"aria-valuenow",Pe()),Ue(Xe,"aria-valuetext",se()),Ue(Xe,"data-testid",(Ne=n())!=null?Ne:null),zt=ie(Ee,1,"handleWrap svelte-1tpemng",null,zt,Ve),ot(Ee,Fe),te=ie(Se,1,"handle svelte-1tpemng",null,te,Re)},[()=>({disabled:y(),"slider-dragging":r(Be),hidden:s(),"slider-vertical":l(),"no-handle":w(),square:p()}),()=>({hidden:w()}),()=>`transform: translateX(${nt(re())}%);`,()=>({"active-live":d()})]),wt("pointerenter",Xe,ve),wt("pointerleave",Xe,De),wt("mouseenter",Xe,pe),wt("mouseleave",Xe,rt),wt("wheel",Xe,X),$(t,ht),z()}st(["pointerdown","pointermove","pointerup","click","contextmenu"]);var Yi=(t,e)=>aa[t]>=aa[e],_1=(t,e)=>aa[t]<aa[e],Fs=(t,e)=>aa[t]<=aa[e],b1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var $2=A("<div><!></div>"),y2=A("<div><!> <!></div>"),x2={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 Ff(t,e){var X,Ae;U(e,!0),K(t,x2);let[i,o]=He(),n=()=>C(E,"$isAudioAvailable$",i),s=()=>C(m,"$muted$",i),l=()=>C(f,"$volume$",i),d=()=>C(x,"$currentGridType$",i),a=Te(),p=Et(),f=a.state.volume$,m=a.state.muted$,{setVolume:u,startVolumeChanging:y,stopVolumeChanging:w}=a.actions.internal,x=a.ui.currentGridType$,S=(X=a.callbacks)==null?void 0:X.onAudioDoesNotExistHint,T=(Ae=a.callbacks)==null?void 0:Ae.onAudioDisabledHint,E=a.state.isAudioAvailable$,R=a.state.isAudioDisabled,I=a.ui.t,M=Z(!1),k,G=g(()=>e.isAds||n()),H=g(()=>!r(G)||s()||l()===0),F=g(()=>Fs(d(),"s")),q=g(()=>r(F)?"":r(H)?!n()||R?I("tooltip_sound_unavailable"):I("tooltip_volume"):I("tooltip_volume_muted")),Y=g(()=>r(H)?I("tooltip_volume"):I("tooltip_volume_muted")),j=g(()=>r(H)?0:l()),ue=!1,re=g(()=>e.isAds?!1:R?!T:n()?!1:!S);function fe(ke){y(),u(ke)}function be(){lu(a,l(),p.controls.volumeStepWheel)}function me(){du(a,l(),p.controls.volumeStepWheel)}function Pe(ke){u(ke)}function se(ke){u(ke),w()}function Le(){ue=!0}function ae(){ue=!1,ce()}function N(){clearTimeout(k),O(M,!0)}function Be(){ce()}function ce(){k=window.setTimeout(()=>{ue||O(M,!1)},p.controls.volumeBarTimeout)}function he(ke){ke.preventDefault(),ke.deltaY<0?be():ke.deltaY>0&&me()}var oe=y2();let ve;var De=_(oe);ha(De,{get content(){return r(q)},translateY:-18,children:(ke,ze)=>{let nt=g(()=>r(F)?"btn-volume-vertical":"btn-volume-horizontal");Ot(ke,{className:"btn-full-opacity",get disabled(){return r(re)},get testId(){return r(nt)},get ariaLabel(){return r(Y)},get click(){return e.click},get ariaKeyShortCut(){return os.KeyM},role:"button",children:(ht,at)=>{Hs(ht,{get volume(){return l()},get muted(){return r(H)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var pe=P(De,2);{var rt=ke=>{var ze=$2();let nt;var ht=_(ze);let at=g(()=>r(F)?"volumeBar-slider-vertical":""),yt=g(()=>r(F)&&!r(M)),Xe=g(()=>r(F)?Le:uu),Ht=g(()=>r(F)?ae:uu),Xt=g(()=>Math.round(r(j)*100)),Bt=g(()=>`${Math.round(r(j)*100)}%`),Qt=g(()=>r(F)?"volume-slider-vertical":"volume-slider");_a(ht,{get className(){return r(at)},get isHidden(){return r(yt)},get isVertical(){return r(F)},withWheelHandler:!0,onWheelUp:be,onWheelDown:me,onPointerDown:fe,onHandleMove:Pe,onPointerUp:se,get onPointerEnter(){return r(Xe)},get onPointerLeave(){return r(Ht)},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(Xt)},get ariaValueText(){return r(Bt)},get filledProgress(){return r(j)},get handleProgress(){return r(j)},get testId(){return r(Qt)}}),h(ze),B(Ee=>nt=ie(ze,1,"volumeBar svelte-1auih1j",null,nt,Ee),[()=>({"volumeBar-vertical":r(F)})]),$(ke,ze)};V(pe,ke=>{r(G)&&ke(rt)})}h(oe),B(ke=>ve=ie(oe,1,"volumeBar-container svelte-1auih1j",null,ve,ke),[()=>({vertical:r(F)})]),wt("mouseenter",oe,function(...ke){var ze;(ze=r(F)?N:uu)==null||ze.apply(this,ke)}),wt("mouseleave",oe,function(...ke){var ze;(ze=r(F)?Be:uu)==null||ze.apply(this,ke)}),wt("wheel",oe,he),$(t,oe),z(),o()}import{noop as C2}from"@vkontakte/videoplayer-shared/es2018";var w2=we('<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 Uf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=w2();Ie(o,()=>({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);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var S2={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
|
|
172
|
-
svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function
|
|
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 _a(t,e){U(e,!0),q(t,p2);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),p=m(e,"squareBorders",3,!1),f=m(e,"videoEpisodes",19,()=>[]),v=m(e,"withWheelHandler",3,!1),u=m(e,"isInteractive",3,!1),y=m(e,"disabled",3,!1),w=m(e,"hideHandel",3,!1),x=m(e,"onPointerDown",3,Nn),S=m(e,"onHandleMove",3,Nn),T=m(e,"onPointerUp",3,Nn),E=m(e,"onPointerEnter",3,Nn),V=m(e,"onPointerMove",3,Nn),k=m(e,"onPointerLeave",3,Nn),I=m(e,"onMouseEnter",3,Nn),R=m(e,"onMouseLeave",3,Nn),Y=m(e,"onWheelUp",3,Nn),H=m(e,"onWheelDown",3,Nn),F=m(e,"onWheelLeft",3,Nn),W=m(e,"onWheelRight",3,Nn),J=m(e,"onDisabledClick",3,Nn),G=m(e,"loadedProgress",3,0),ce=m(e,"filledProgress",3,0),ie=m(e,"handleProgress",3,0),ue=m(e,"ariaLabel",3,""),$e=m(e,"ariaValueMin",3,void 0),fe=m(e,"ariaValueMax",3,void 0),ke=m(e,"ariaValueNow",3,void 0),ne=m(e,"ariaValueText",3,""),Ve=m(e,"onContextMenu",3,Nn),re=Et(),N=j(void 0),Be=j(!1),le=g(()=>{var ae;return(ae=fe())!=null?ae:0}),ve=g(()=>{var ae;return a1(f())&&((ae=f()[f().length-1])==null?void 0:ae.time)<r(le)}),te=g(()=>a1(f())&&f().length&&r(ve)&&r(le)?ze(G()*100,ce()*100):[]);function me(ae){if(ae.preventDefault(),i()&&O(N,i().getBoundingClientRect(),!0),y())return;let Re=Ae(ae.clientX,ae.clientY),qe=Ie(ae.clientX);E()(Re,qe,r(N).width)}function De(ae){ae.preventDefault(),!y()&&k()()}function pe(){I()()}function st(){R()()}function Z(ae){y()||v()&&(ae.preventDefault(),ae.deltaY<0?Y()():ae.deltaY>0?H()():ae.deltaX>0?W()():F()())}function Ae(ae,Re){return l()?Math.max(0,Math.min(1,(r(N).height-(Re-r(N).top))/r(N).height)):Math.min(Math.max(ae-r(N).x,0),r(N).width)/r(N).width}function Ie(ae){return Math.min(Math.max(ae-r(N).x,0),r(N).width)}function ze(ae,Re){let qe=re.features.episodesClustering&&!u()?re.episodeMinWidthPc:0,Le=[],je=f()[0].time/r(le)*100,Oe=0,Je=0;for(let et=1;et<f().length;et++)Oe=f()[et].time/r(le)*100,Oe-je>qe&&(Le.push({from:je,width:Math.max(0,Oe-je),loadedWidth:Math.max(0,Math.min(Oe,ae)-je),filledWidth:Math.max(0,Math.min(Oe,Re)-je),interactive:f()[et-1].interactive,completed:f()[et-1].completed}),je=f()[et].time/r(le)*100,Je++);let At={from:je,width:Math.max(0,100-je),loadedWidth:Math.max(0,Math.min(ae,100)-je),filledWidth:Math.max(0,Math.min(Re,100)-je),interactive:f()[Je].interactive,completed:f()[Je].completed};100-je<qe?(Je-=1,Le[Je].width+=100-je,Le[Je].loadedWidth+=Math.max(0,Math.min(ae,100)-je),Le[Je].filledWidth+=Math.max(0,Math.min(Re,100)-je)):Le[Je]=At;let zt=f()[0].time;if(zt!==0){let et=zt/r(le)*100;Le.unshift({from:0,width:et,loadedWidth:Math.min(et,ae),filledWidth:Math.min(et,Re)})}return Le}function at(ae){return Math.max(0,Math.min(100,ae*100))}var ft=u2(),mt=ge(ft);{var wt=ae=>{var Re=d2();let qe;Si(Re,21,()=>r(te),Le=>Le.from,(Le,je)=>{var Oe=We(),Je=ge(Oe);{var At=zt=>{Af(zt,{get videoEpisode(){return r(je)},get disabled(){return y()}})};L(Je,zt=>{r(je).interactive&&zt(At)})}$(Le,Oe)}),h(Re),B(Le=>qe=ee(Re,1,"interactive-icons svelte-1tpemng",null,qe,Le),[()=>({mobile:a(),hidden:a()&&!r(Be)})]),$(ae,Re)};L(mt,ae=>{u()&&ae(wt)})}var Ge=P(mt,2);let Bt;Ge.__pointerdown=[n2,i,N,y,Be,Ae,x],Ge.__pointermove=[r2,y,Ae,Ie,V,N,Be,S],Ge.__pointerup=[s2,y,Be,Ae,T],Ge.__click=[a2,y,J,Ae],Ge.__contextmenu=[l2,Ae,y,J,Be,Ve];var Xt=_(Ge);{var qt=ae=>{Mf(ae,{get videoEpisodes(){return r(te)},get disabled(){return y()},get isMobile(){return a()}})},Ut=ae=>{var Re=c2(),qe=_(Re),Le=P(qe,2);let je;h(Re),B((Oe,Je,At)=>{rt(qe,Oe),je=ee(Le,1,"filled svelte-1tpemng",null,je,Je),rt(Le,At)},[()=>`transform: translateX(${at(G())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${at(ce())}%);`]),$(ae,Re)};L(Xt,ae=>{r(te).length?ae(qt):ae(Ut,!1)})}var oe=P(Xt,2);let Dt;var he=_(oe);let we;h(oe),h(Ge),it(Ge,ae=>i(ae),()=>i()),B((ae,Re,qe,Le)=>{var je,Oe;Bt=ee(Ge,1,`slider ${(je=o())!=null?je:""}`,"svelte-1tpemng",Bt,ae),Fe(Ge,"aria-label",ue()),Fe(Ge,"aria-valuemin",$e()),Fe(Ge,"aria-valuemax",fe()),Fe(Ge,"aria-valuenow",ke()),Fe(Ge,"aria-valuetext",ne()),Fe(Ge,"data-testid",(Oe=n())!=null?Oe:null),Dt=ee(oe,1,"handleWrap svelte-1tpemng",null,Dt,Re),rt(oe,qe),we=ee(he,1,"handle svelte-1tpemng",null,we,Le)},[()=>({disabled:y(),"slider-dragging":r(Be),hidden:s(),"slider-vertical":l(),"no-handle":w(),square:p()}),()=>({hidden:w()}),()=>`transform: translateX(${at(ie())}%);`,()=>({"active-live":d()})]),xt("pointerenter",Ge,me),xt("pointerleave",Ge,De),xt("mouseenter",Ge,pe),xt("mouseleave",Ge,st),xt("wheel",Ge,Z),$(t,ft),z()}lt(["pointerdown","pointermove","pointerup","click","contextmenu"]);var Zi=(t,e)=>aa[t]>=aa[e],l1=(t,e)=>aa[t]<aa[e],Hs=(t,e)=>aa[t]<=aa[e],d1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var m2=M("<div><!></div>"),v2=M("<div><!> <!></div>"),g2={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 Lf(t,e){var Z,Ae;U(e,!0),q(t,g2);let[i,o]=He(),n=()=>C(E,"$isAudioAvailable$",i),s=()=>C(v,"$muted$",i),l=()=>C(f,"$volume$",i),d=()=>C(x,"$currentGridType$",i),a=Ee(),p=Et(),f=a.state.volume$,v=a.state.muted$,{setVolume:u,startVolumeChanging:y,stopVolumeChanging:w}=a.actions.internal,x=a.ui.currentGridType$,S=(Z=a.callbacks)==null?void 0:Z.onAudioDoesNotExistHint,T=(Ae=a.callbacks)==null?void 0:Ae.onAudioDisabledHint,E=a.state.isAudioAvailable$,V=a.state.isAudioDisabled,k=a.ui.t,I=j(!1),R,Y=g(()=>e.isAds||n()),H=g(()=>!r(Y)||s()||l()===0),F=g(()=>Hs(d(),"s")),W=g(()=>r(F)?"":r(H)?!n()||V?k("tooltip_sound_unavailable"):k("tooltip_volume"):k("tooltip_volume_muted")),J=g(()=>r(H)?k("tooltip_volume"):k("tooltip_volume_muted")),G=g(()=>r(H)?0:l()),ce=!1,ie=g(()=>e.isAds?!1:V?!T:n()?!1:!S);function ue(Ie){y(),u(Ie)}function $e(){ou(a,l(),p.controls.volumeStepWheel)}function fe(){nu(a,l(),p.controls.volumeStepWheel)}function ke(Ie){u(Ie)}function ne(Ie){u(Ie),w()}function Ve(){ce=!0}function re(){ce=!1,le()}function N(){clearTimeout(R),O(I,!0)}function Be(){le()}function le(){R=window.setTimeout(()=>{ce||O(I,!1)},p.controls.volumeBarTimeout)}function ve(Ie){Ie.preventDefault(),Ie.deltaY<0?$e():Ie.deltaY>0&&fe()}var te=v2();let me;var De=_(te);ha(De,{get content(){return r(W)},translateY:-18,children:(Ie,ze)=>{let at=g(()=>r(F)?"btn-volume-vertical":"btn-volume-horizontal");Rt(Ie,{className:"btn-full-opacity",get disabled(){return r(ie)},get testId(){return r(at)},get ariaLabel(){return r(J)},get click(){return e.click},get ariaKeyShortCut(){return os.KeyM},role:"button",children:(ft,mt)=>{Ds(ft,{get volume(){return l()},get muted(){return r(H)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var pe=P(De,2);{var st=Ie=>{var ze=m2();let at;var ft=_(ze);let mt=g(()=>r(F)?"volumeBar-slider-vertical":""),wt=g(()=>r(F)&&!r(I)),Ge=g(()=>r(F)?Ve:su),Bt=g(()=>r(F)?re:su),Xt=g(()=>Math.round(r(G)*100)),qt=g(()=>`${Math.round(r(G)*100)}%`),Ut=g(()=>r(F)?"volume-slider-vertical":"volume-slider");_a(ft,{get className(){return r(mt)},get isHidden(){return r(wt)},get isVertical(){return r(F)},withWheelHandler:!0,onWheelUp:$e,onWheelDown:fe,onPointerDown:ue,onHandleMove:ke,onPointerUp:ne,get onPointerEnter(){return r(Ge)},get onPointerLeave(){return r(Bt)},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(Xt)},get ariaValueText(){return r(qt)},get filledProgress(){return r(G)},get handleProgress(){return r(G)},get testId(){return r(Ut)}}),h(ze),B(oe=>at=ee(ze,1,"volumeBar svelte-1auih1j",null,at,oe),[()=>({"volumeBar-vertical":r(F)})]),$(Ie,ze)};L(pe,Ie=>{r(Y)&&Ie(st)})}h(te),B(Ie=>me=ee(te,1,"volumeBar-container svelte-1auih1j",null,me,Ie),[()=>({vertical:r(F)})]),xt("mouseenter",te,function(...Ie){var ze;(ze=r(F)?N:su)==null||ze.apply(this,Ie)}),xt("mouseleave",te,function(...Ie){var ze;(ze=r(F)?Be:su)==null||ze.apply(this,Ie)}),xt("wheel",te,ve),$(t,te),z(),o()}import{noop as b2}from"@vkontakte/videoplayer-shared/es2018";var h2=Te('<svg><!><g fill-rule="evenodd"><path d="M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z" class="_exit"></path><path d="M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z" class="_enter"></path></g></svg>');function Vf(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=h2();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",viewBox:"0 0 24 24",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var _2={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
|
|
172
|
+
svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function Rf(t,e){q(t,_2);let i=m(e,"isFullscreen",8,!1),o=Vr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Vf(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function gd(t,e){U(e,!0);let i=m(e,"isFullscreen",3,!1),o=m(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"));Rt(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:p=>{let f=Os(p);s.set(f),o()()},get ariaKeyShortCut(){return os.KeyF},role:"button",children:(p,f)=>{Rf(p,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),z()}var $2=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z" clip-rule="evenodd"></path></svg>');function Nf(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=$2();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var y2=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"></path><path fill="var(--btn-color, #fff)" d="M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35" class="_ru"></path><path fill="var(--btn-color, #fff)" d="M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635" class="_en"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z" clip-rule="evenodd"></path></svg>');function Of(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=y2();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",viewBox:"0 0 95 24",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(4),h(o),$(t,o)}var x2={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 qf(t,e){K(t,I2);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`);Kf(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]=He(),n=()=>C(y,"$isMobile",i),s=()=>C(u,"$currentGridType$",i),l=()=>C(x,"$isCyrillicRelatedInterface$",i),d=v(e,"ref",15,void 0),a=v(e,"logoClickable",3,!1),p=v(e,"targetUrl",3,""),f=Et(),m=Te(),u=m.ui.currentGridType$,y=m.ui.isMobile,w=m.ui.t,x=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()||Fs(s(),"l"))&&r(T)),R=()=>{var k,G;e.click(),(k=m.callbacks)!=null&&k.onLogoClicked?(G=m.callbacks)==null||G.onLogoClicked():p()&&window.open(p(),"_blank")},I=g(()=>!a()),M=g(()=>r(T)?"btn-vk-video-logo":"btn-vk-logo");Ot(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,G)=>{var H=qe(),F=ge(H);{var q=j=>{qf(j,{get short(){return r(E)},get isCyrillic(){return l()}})},Y=j=>{Wf(j,{})};V(F,j=>{r(T)?j(q):j(Y,!1)})}$(k,H)},$$slots:{default:!0}}),z(),o()}import{ChromecastState as L2}from"@vkontakte/videoplayer-core/es2018";import{ChromecastState as $1}from"@vkontakte/videoplayer-core/es2018";var P2=we('<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>'),A2=we('<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>'),M2={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 Bf(t,e){q(t,x2);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`);Of(t,{get width(){return r(l)},height:"24",get viewBox(){return r(a)},get"data-testid"(){return r(d)}})}function hd(t,e){U(e,!0);let[i,o]=He(),n=()=>C(y,"$isMobile",i),s=()=>C(u,"$currentGridType$",i),l=()=>C(x,"$isCyrillicRelatedInterface$",i),d=m(e,"ref",15,void 0),a=m(e,"logoClickable",3,!1),p=m(e,"targetUrl",3,""),f=Et(),v=Ee(),u=v.ui.currentGridType$,y=v.ui.isMobile,w=v.ui.t,x=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()||Hs(s(),"l"))&&r(T)),V=()=>{var R,Y;e.click(),(R=v.callbacks)!=null&&R.onLogoClicked?(Y=v.callbacks)==null||Y.onLogoClicked():p()&&window.open(p(),"_blank")},k=g(()=>!a()),I=g(()=>r(T)?"btn-vk-video-logo":"btn-vk-logo");Rt(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,Y)=>{var H=We(),F=ge(H);{var W=G=>{Bf(G,{get short(){return r(E)},get isCyrillic(){return l()}})},J=G=>{Nf(G,{})};L(F,G=>{r(T)?G(W):G(J,!1)})}$(R,H)},$$slots:{default:!0}}),z(),o()}import{ChromecastState as E2}from"@vkontakte/videoplayer-core/es2018";import{ChromecastState as c1}from"@vkontakte/videoplayer-core/es2018";var S2=Te('<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-mobile-icon" class="svelte-8z1bf5"><g filter="url(#b)" clip-path="url(#a)" class="svelte-8z1bf5"><mask id="c" maskUnits="userSpaceOnUse" x="1.1" y="3.1" width="22" height="18" fill="#000" class="svelte-8z1bf5"><path d="M1.1 3.1h22v18h-22z" class="svelte-8z1bf5"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path></mask><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path><path d="m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z" fill="#000" fill-opacity=".12" mask="url(#c)" class="svelte-8z1bf5"></path></g><defs class="svelte-8z1bf5"><clipPath id="a" class="svelte-8z1bf5"><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path></clipPath><filter id="b" x="-3.4" y="-1.4" width="30.8" height="26.802" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" class="svelte-8z1bf5"><feFlood flood-opacity="0" result="BackgroundImageFix" class="svelte-8z1bf5"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" class="svelte-8z1bf5"></feColorMatrix><feOffset class="svelte-8z1bf5"></feOffset><feGaussianBlur stdDeviation="2.5" class="svelte-8z1bf5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0" class="svelte-8z1bf5"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_4085_178456" class="svelte-8z1bf5"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_4085_178456" result="shape" class="svelte-8z1bf5"></feBlend></filter></defs></svg>'),C2=Te('<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-icon"><g fill="none" fill-rule="evenodd" class="svelte-8z1bf5"><path class="wave wave1 svelte-8z1bf5" d="M1 18v3h3c0-1.66-1.34-3-3-3z" fill="var(--btn-color, #fff)"></path><path class="wave wave2 svelte-8z1bf5" d="M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z" fill="var(--btn-color, #fff)"></path><path class="wave wave3 svelte-8z1bf5" d="M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z" fill="var(--btn-color, #fff)"></path><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)" class="svelte-8z1bf5"></path><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z" fill="var(--btn-color, #fff)"></path></g></svg>'),T2={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"},Kh=W_;var g
|
|
|
220
220
|
100% {
|
|
221
221
|
opacity: 1;
|
|
222
222
|
}
|
|
223
|
-
}`};function
|
|
224
|
-
transform: rotate(${n()}deg) ${r(H)?`translate(${r(
|
|
225
|
-
`)),$(oe,ve)};V(se,oe=>{r(E)&&oe(Le)})}var ae=P(se,2),N=_(ae);{var Be=oe=>{var ve=qe(),De=ge(ve);{var pe=X=>{var Ae=ts();B(ke=>_e(Ae,ke),[()=>W("tooltip_episode_unfinished")]),$(X,Ae)},rt=X=>{var Ae=ts();B(()=>_e(Ae,r(G).text||"")),$(X,Ae)};V(De,X=>{u()&&r(G).completed===!1?X(pe):X(rt,!1)})}$(oe,ve)};V(N,oe=>{r(G)&&oe(Be)})}h(ae);var ce=P(ae,2);{var he=oe=>{var ve=B2(),De=_(ve,!0);h(ve),B(()=>_e(De,d())),$(oe,ve)};V(ce,oe=>{u()||oe(he)})}h(me),B(oe=>{Pe=ie(me,1,"timeline-preview svelte-1wqg760",null,Pe,oe),ot(me,`width: ${r(H)?r(T):r(S)}px;`)},[()=>({mobile:a()})]),$(t,me),z(),o()}var F2=A('<span class="time svelte-1jr6obn"> </span>'),U2=A("<!> <!>",1),z2={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 Yf(t,e){var ne,Ve,Fe,Re,We;U(e,!0),K(t,z2);let[i,o]=He(),n=()=>C(Y,"$interactiveEpisodes$",i),s=()=>C(M,"$duration$",i),l=()=>C(I,"$position$",i),d=()=>C(re,"$isInteractiveExpectation$",i),a=()=>C(ue,"$isInteractiveTime$",i),p=()=>C(k,"$isLive$",i),f=()=>C(H,"$isMobile",i),m=()=>C(G,"$isActiveLive$",i),u=()=>C(R,"$bufferedProgress$",i),y=()=>C(me,"$disabledControls$",i),w=v(e,"showTimeline",3,!1),x=v(e,"withEpisodes",3,!0),S=v(e,"ref",15,void 0),T=Te(),E=Et(),R=T.state.bufferedProgress$,I=T.state.positionWithScrubbing$,M=T.state.duration$,k=T.state.isLive$,G=T.state.isActiveLive$,H=T.ui.isMobile,F=E.features.episodes&&x()?T.actions.internal.getVideoEpisodes():void 0,q=T.actions.internal.getPreviewThumbsData(),Y=T.state.interactiveEpisodes$,j=T.state.isInteractive,ue=T.state.isInteractiveTime$,re=T.state.isInteractiveExpectation$,fe=T.actions.internal.correctSeekTimeToInteractive,be=(ne=T.callbacks)==null?void 0:ne.onDisabledTimelineClick,me=T.ui.controls.disabledControls$,Pe=(Fe=(Ve=T.callbacks)==null?void 0:Ve.uiInfo)==null?void 0:Fe.onTimelineMouseEnter,se=(We=(Re=T.callbacks)==null?void 0:Re.uiInfo)==null?void 0:We.onTimelineMouseLeave,Le=T.ui.t,ae=E.features.interactiveResponsiveUi,N=g(()=>j?n():F),Be=g(()=>hn(s())),ce=g(()=>hn(l())),he=g(()=>l()/s()),oe=g(()=>d()||a()),ve=Z(!1),De=Z(""),pe=Z(0),rt=Z(0),X=Z(0),Ae=g(()=>({containerWidth:r(rt),translateXPx:r(pe),translateYPx:j&&q?-36:-16,active:r(ve)&&w()&&!r(oe)&&!ae,pointer:!E.features.timelinePreview||!q||p()})),ke=Le("aria_timeline"),ze=g(()=>Le("aria_timeline_value",{position:r(ce),duration:r(Be)}));function nt(Ne){return!fe||!j?Ne:fe(Ne*s())/s()}function ht(Ne){T.actions.internal.startScrubbing(nt(Ne))}function at(Ne){a()||T.actions.internal.progressScrubbing(nt(Ne))}function yt(Ne){T.actions.internal.completeScrubbing(nt(Ne)),O(ve,!1)}function Xe(Ne,Je,Ft){Bt(Ne,Je,Ft),O(ve,!0)}function Ht(Ne,Je,Ft){Bt(Ne,Je,Ft),O(ve,!0)}function Xt(){O(ve,!1)}function Bt(Ne,Je,Ft){O(X,nt(Ne),!0),O(pe,Je,!0),Ft&&O(rt,Ft,!0),O(De,Qt(Ne),!0)}function Qt(Ne){let Je=hn((p()?1-Ne:Ne)*s());return p()?`-${Je}`:Je}var Ee=U2(),zt=ge(Ee);Gf(zt,vs(()=>r(Ae),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(Ne,Je)=>{var Ft=qe(),Wt=ge(Ft);{var Ct=gi=>{jf(gi,{get time(){return r(De)},get isMobile(){return f()},get videoEpisodes(){return r(N)},get previewThumbsData(){return q},get progress(){return r(X)},get duration(){return s()},get isInteractive(){return j}})},_i=gi=>{var dt=F2(),Mi=_(dt,!0);h(dt),B(()=>_e(Mi,r(De))),$(gi,dt)};V(Wt,gi=>{E.features.timelinePreview&&q&&!p()?gi(Ct):gi(_i,!1)})}$(Ne,Ft)},$$slots:{default:!0}}));var Se=P(zt,2);let te=g(()=>y().has("TIMELINE"));_a(Se,{className:"timeline-slider",get isActiveLive(){return m()},get isMobile(){return f()},get ariaLabel(){return ke},ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return l()},get ariaValueText(){return r(ze)},get loadedProgress(){return u()},get filledProgress(){return r(he)},get handleProgress(){return r(he)},get videoEpisodes(){return r(N)},onPointerDown:ht,onHandleMove:at,onPointerMove:Ht,onPointerUp:yt,onPointerEnter:Xe,onPointerLeave:Xt,get onMouseEnter(){return Pe},get onMouseLeave(){return se},get onDisabledClick(){return be},get isInteractive(){return j},get disabled(){return r(te)},get hideHandel(){return a()},testId:"progress_bar",onContextMenu:yt,get ref(){return S()},set ref(Ne){S(Ne)}}),$(t,Ee),z(),o()}var W2={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),K(t,W2);let[i,o]=He(),n=()=>C(a,"$isMobile",i),s=v(e,"position",3,0),l=v(e,"duration",3,0),d=Te(),a=d.ui.isMobile,p=d.ui.t,f=g(()=>hn(l())),m=g(()=>hn(s())),u=g(()=>s()/l()),y=g(()=>p("aria_timeline_value",{position:r(m),duration:r(f)})),w=g(()=>Math.round(r(u)*100));_a(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return r(w)},get ariaValueText(){return r(y)},get filledProgress(){return r(u)},hideHandel:!0,get squareBorders(){return n()}}),z(),o()}var K2=A("<div><!></div>"),q2=A("<div></div>"),Q2={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 ba(t,e){U(e,!0),K(t,Q2);let[i,o]=He(),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),p=v(e,"isAds",3,!1),f=v(e,"isHidden",3,!1),m=v(e,"timelineNotAvailable",3,!1),u=v(e,"needPadding",3,!0),y=v(e,"ref",15,void 0),w=Te(),x=Et(),S=w.state.isLive$,T=w.ads.duration,E=w.ads.position,R=w.ui.isMobile,I=le(!1),M=g(()=>!m()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||p()));var k=qe(),G=ge(k);{var H=q=>{var Y=K2();let j;var ue=_(Y);{var re=be=>{wd(be,{get position(){return d()},get duration(){return a()}})},fe=be=>{Yf(be,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return r(M)},get withEpisodes(){return e.withEpisodes},get ref(){return y()},set ref(me){y(me)}})};V(ue,be=>{p()?be(re):be(fe,!1)})}h(Y),ms(Y,()=>ol(f()&&x.features.usePerformanceFix,I,x.disableInvisibleComponentsTimeout)),B(be=>j=ie(Y,1,"timeline svelte-41cp6d",null,j,be),[()=>({withoutPadding:!u(),mobile:s(),"out-of-flow":l()})]),$(q,Y)},F=q=>{var Y=q2();let j;B(ue=>j=ie(Y,1,"timeline-stub svelte-41cp6d",null,j,ue),[()=>({mobile:s()})]),$(q,Y)};V(G,q=>{r(M)?q(H):q(F,!1)})}$(t,k),z(),o()}import{noop as Y2}from"@vkontakte/videoplayer-shared/es2018";var G2=we('<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 Zf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=G2();Ie(o,()=>({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);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(3),h(o),$(t,o)}var j2=we('<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 Xf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=j2();Ie(o,()=>({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);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var Z2=A('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),X2=A('<span class="text svelte-1yhs2ga"> </span>'),J2=A('<span class="text count svelte-1yhs2ga"> </span>'),ey=A("<!> <!>",1),ty={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 re,fe,be;U(e,!0),K(t,ty);let[i,o]=He(),n=()=>C(w,"$currentGridType$",i),s=()=>C(x,"$openedByKeyboard$",i),l=()=>C(S,"$panelOpened$",i),d=()=>C(T,"$isMobile",i),a=v(e,"position",3,0),p=v(e,"duration",3,0),f=v(e,"timeCodes",19,()=>[]),m=Te(),u=(fe=(re=m.callbacks)==null?void 0:re.onEpisodeChanged)!=null?fe:Y2,y=!!((be=m.callbacks)!=null&&be.onEpisodeClicked),w=m.ui.currentGridType$,x=m.ui.episodes.openedByKeyboard$,S=m.ui.episodes.panelOpened$,T=m.ui.isMobile,E=m.ui.t,R=Z(void 0),I=me=>{var se,Le,ae;if(!!((se=m.callbacks)!=null&&se.onEpisodeClicked)){let N=Bs(me);x.set(N),S.set(!0),(ae=(Le=m.callbacks)==null?void 0:Le.onEpisodeClicked)==null||ae.call(Le,N)}},M=Z(null),k=g(()=>a()/p());Qe(()=>{var Pe;let me=pu(r(k),p(),f());me?((Pe=r(M))==null?void 0:Pe.time)!==me.time&&(u(me),O(M,me,!0)):O(M,null)});let G=g(()=>{var me;return((me=r(M))==null?void 0:me.text)||""}),H=g(()=>Yi(n(),"xl")?"FULL":Yi(n(),"m")&&_1(n(),"xl")?"COUNT":"SHORT"),F=g(()=>`${E("tooltip_episodes")}: ${r(G)}`),q=async(me,Pe,se)=>{await xo(),(me==null?void 0:me.getAttribute("aria-expanded"))==="false"&&Pe&&!se&&$t(()=>{x.set(!1),me.focus()})};Qe(()=>{q(r(R),s(),l())});var Y=qe(),j=ge(Y);{var ue=me=>{let Pe=g(()=>d()?"px-0":""),se=g(()=>!y);Ot(me,{get className(){var Le;return`w-max btn-full-opacity btn-jc-l ${(Le=r(Pe))!=null?Le:""}`},testId:"btn-episodes",click:I,get disabled(){return r(se)},get ariaExpanded(){return l()},get ariaLabel(){return r(F)},get ref(){return r(R)},set ref(Le){O(R,Le,!0)},children:(Le,ae)=>{var N=qe(),Be=ge(N);{var ce=oe=>{var ve=Z2(),De=ge(ve),pe=_(De,!0);h(De);var rt=P(De,2),X=_(rt);Xf(X,{}),h(rt),B(()=>_e(pe,r(G))),$(oe,ve)},he=oe=>{var ve=ey(),De=ge(ve);Zf(De,{});var pe=P(De,2);{var rt=Ae=>{var ke=X2(),ze=_(ke,!0);h(ke),B(()=>_e(ze,r(G))),$(Ae,ke)},X=(Ae,ke)=>{{var ze=nt=>{var ht=J2(),at=_(ht,!0);h(ht),B(()=>_e(at,f().length)),$(nt,ht)};V(Ae,nt=>{r(H)==="COUNT"&&nt(ze)},ke)}};V(pe,Ae=>{r(H)==="FULL"?Ae(rt):Ae(X,!1)})}$(oe,ve)};V(Be,oe=>{d()?oe(ce):oe(he,!1)})}$(Le,N)},$$slots:{default:!0}})};V(j,me=>{r(M)&&me(ue)})}$(t,Y),z(),o()}import{debounceFn as N1}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as dy,PlaybackState as Td,Player as cy,PredefinedQualityLimits as ss,VideoFormat as Ed,clientChecker as uy}from"@vkontakte/videoplayer-core/es2018";import{assertNonNullable as sr,getHighestQuality as py,InterfaceLanguage as fy,isInvariantQuality as my,isNonNullable as vy,loadVKLangPack as gy,Logger as hy,map as k1,merge as _y,Observable as P1,Subject as $u,Subscription as nm,TracerFactory as by,ValueSubject as $y,VideoQuality as yy,devNull as xy,now as wy,filter as Sy,once as Cy}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as bs}from"@vkontakte/videoplayer-statistics/es2018";import{detectEmbed as iy,devNull as Yt,now as Zt}from"@vkontakte/videoplayer-shared/es2018";import{addScript as oy,Subject as Jo,clearVideoElement as ny}from"@vkontakte/videoplayer-shared/es2018";var w1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var ry="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",fu=class{constructor(e,i){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new Jo,loadStarted$:new Jo,loadEnded$:new Jo,loadError$:new Jo,ready$:new Jo,slotRequested$:new Jo,started$:new Jo,timeRemained$:new Jo,paused$:new Jo,resumed$:new Jo,ended$:new Jo,empty$:new Jo,skipped$:new Jo,clicked$:new Jo,closed$:new Jo,error$:new Jo};this.loadAdman=e=>(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[Zt()]}),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?(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[Zt()]}),i(),this.events.loadEnded$.next()):(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[Zt()]}),o())};oy(ry,e,this.loadTimeout).then(()=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[Zt()]}),window.AdmanHTML?(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[Zt()]}),i(),this.events.loadEnded$.next()):(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[Zt()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout))}).catch(l=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[Zt()]}),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?(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[Zt()]}),i(),this.events.loadEnded$.next()):(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[Zt()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[Zt()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[Zt()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[Zt()]}),!d&&(window.AdmanHTML?(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[Zt()]}),i(),this.events.loadEnded$.next()):(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[Zt()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout)))},l).finally(()=>{clearTimeout(n),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[Zt()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[Zt(),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?ye(this.adsState.playbackState):void 0)!=="inactive"&&(this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized"))};this.onAdPaused=()=>{var e;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),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;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),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(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[Zt()]}),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;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),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;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),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")=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[Zt()]}),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"),Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[Zt()]}),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(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[Zt(),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:p={},duration:f,previewParam:m}=e,u,y=this.playerState&&ye(this.playerState.vsid);y&&(this.isVsidOriginal?u=y:u=parseInt(y,36));let{isEmbed:w,immediateOrigin:x}=iy(),S=(R=w?x:window.location.href)!=null?R:window.location.href,T={...p,dl:encodeURIComponent(S),autoplay:s?1:0,player_width:i,player_height:o,preview:m,...u?{request_id:u}:{},duration:f,...this.usePuid?{puid10:w1(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){Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(I)],numbers:[Zt()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,s;if(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[Zt()]}),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(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.adsState){this.log({message:"toggle play"});let i=ye(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[Zt()]}),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(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),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(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),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(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),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(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),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,p,f,m,u;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[Zt()]}),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),(p=this.adman)==null||p.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(m=this.adman)==null||m.onError(void 0),(u=this.adman)==null||u.destroy(),this.videoElement&&ny(this.videoElement),this.isDestroyed=!0}};var S1=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 Jf=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 p=new mu,{startTime:f,endTime:m}=p.parse(a);l.startTime=f,l.endTime=m}else if(a.trim()!==""){let p=new em,{texts:f}=p.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},mu=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",n="0"){let s=Number(e)*60*60,l=Number(i)*60,d=Number(o),a=+`0.${n}`;return s+l+d+a}},em=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 p=["<",">"].reduce((f,m)=>{let u=l.indexOf(m,d);return f===-1||f>u?u:f},-1);if(p===-1){a.push(l.substring(d));break}a.push(l.substring(d,p)),d=p+1}return a}}),s=new mu;for(let l of n)s.isTime(l)?i.texts.push({type:"timestamp",value:s.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},C1=Jf;import{isNonNullable as tm}from"@vkontakte/videoplayer-shared/es2018";var $a,Ti,im=0,om=!1,T1="",E1=(t,e=0,i=0)=>t<e&&t<i,vu=(t,e=0,i=0)=>t>=e&&t<=i,sy=(t,e=0,i=0)=>t>e&&t>i,I1=(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:p,endTime:f})=>vu(t,p,f));let s=t>=im,l=t<im;if(im=t,l&&(om=!1),tm($a)&&vu(t,$a.startTime,$a.endTime)&&T1===e.value)return $a;if(!tm(Ti)&&(n!=null&&n.length)&&!om){Ti=n.find(({startTime:p,endTime:f})=>vu(t,p,f)||s&&E1(t,p,f)),$a=void 0,!tm(Ti)&&n[n.length-1].endTime<t&&(om=!0);return}else{if(vu(t,Ti==null?void 0:Ti.startTime,Ti==null?void 0:Ti.endTime))return $a=Ti,Ti=void 0,T1=e.value,$a;(s&&sy(t,Ti==null?void 0:Ti.startTime,Ti==null?void 0:Ti.endTime)||l&&E1(t,Ti==null?void 0:Ti.startTime,Ti==null?void 0:Ti.endTime))&&(Ti=void 0)}};var gu={ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",en:"English",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F (\u0442\u0430\u0440\u0430\u0448\u043A\u0435\u0432i\u0446\u0430)",es:"Espa\xF1ol",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",hr:"Hrvatski",hu:"Magyar",sr:"\u0421\u0440\u043F\u0441\u043A\u0438",pt:"Portugu\xEAs",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",pl:"Polski",fr:"Fran\xE7ais",ko:"\uD55C\uAD6D\uC5B4","zh-CN":"\u6C49\u8BED",lt:"Lietuvi\u0173",ja:"\u65E5\u672C\u8A9E",cs:"\u010Ce\u0161tina",et:"Eesti",tt:"\u0422\u0430\u0442\u0430\u0440\u0447\u0430",ba:"\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430",cv:"\u0427\u0103\u0432\u0430\u0448\u043B\u0430",sk:"Sloven\u010Dina",ro:"Rom\xE2n\u0103",no:"Norsk",lv:"Latvie\u0161u",az:"Az\u0259rbaycan dili",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",sv:"Svenska",nl:"Nederlands",tk:"T\xFCrkmen",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",da:"Dansk",uz:"O\u2018zbek",th:"\u0E20\u0E32\u0E29\u0E32\u0E44\u0E17\u0E22",id:"Bahasa Indonesia",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",sl:"Sloven\u0161\u010Dina",bs:"Bosanski","pt-BR":"Portugu\xEAs brasileiro",fa:"\u0641\u0627\u0631\u0633\u06CC",vi:"Ti\u1EBFng Vi\u1EC7t",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",tl:"Tagalog",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",my:"\u1017\u1019\u102C\u1005\u102C",tr:"T\xFCrk\xE7e",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",ur:"\u0627\u0631\u062F\u0648",ky:"\u041A\u044B\u0440\u0433\u044B\u0437 \u0442\u0438\u043B\u0438",pa:"\u067E\u0646\u062C\u0627\u0628\u06CC",os:"\u0418\u0440\u043E\u043D",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",sw:"Kiswahili",kk:"\u049A\u0430\u0437\u0430\u049B\u0448\u0430",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",ab:"\u0410\u04A7\u0441\u0448\u04D9\u0430",eu:"Euskara",eo:"Esperanto"},ay={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=gu[t])!=null?e:gu[ay[t]])!=null?i:void 0};import{Subscription as ly}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-statistics/es2018";var hu=class{constructor(e,i,o,n=new ly){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=n}destroy(){var e,i,o;(e=this.oneStat)==null||e.destroy(),(i=this.thinOneStat)==null||i.destroy(),(o=this.mediascopePixel)==null||o.destroy(),this.statSubscription.unsubscribe()}};var _u=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(_u||{});var rs=t=>t!=null?t:0,_s=(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(rs(i==null?void 0:i.top)-rs(o==null?void 0:o.top)),left:Math.round(rs(i==null?void 0:i.left)-rs(o==null?void 0:o.left)),bottom:Math.round(rs(i==null?void 0:i.bottom)-rs(o==null?void 0:o.top)),right:Math.round(rs(i==null?void 0:i.right)-rs(o==null?void 0:o.left))}},cl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:rs(e==null?void 0:e.width),height:rs(e==null?void 0:e.height)}};var bu="off";var A1=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:s,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:p,videoEpisodes:f,previewThumbsData:m,uiConfig:u,coreConfig:y,player:w,disabledControls:x,isInteractive:S,interactiveRanges$:T,isInteractiveTime$:E,replayInteractive:R,stopPlayer:I,hasInteractiveBranches:M,playPrevChapterDisabledTooltip:k,additionalButtons:G,additionalSettingsMenuItems:H,additionalContextMenuItems:F,playPrevVideo:q,playNextVideo:Y,looped:j=!1,statistics:ue,saveRate:re,internalsExposure:fe,playerView:be,playerId:me})=>{var wv,Sv,Cv;let Pe={...y,configName:[...(wv=y.configName)!=null?wv:[],"ui"],isAudioDisabled:l,live:{...(Sv=y.live)!=null?Sv:{},isLiveCatchUpMode:!!n}},se=u,Le=by.createRootTracer(se.features.tracer),ae=Le.createComponentTracer("Store"),N=w||new cy(Pe,Le,{playerId:me});fe==null||fe.expose({corePlayer:N});let Be=new hy,ce=new fu(Be,{loadTimeout:se.ads.loadTimeout,initTimeout:se.ads.initTimeout,runtimeTimeout:se.ads.runtimeTimeout,useAdmanFromNPM:se.ads.useAdmanFromNPM,volumeMultiplier:se.ads.volumeMultiplier,isVsidOriginal:se.ads.isVsidOriginal,usePuid:se.ads.usePuid}),he=da.getInstance(),oe=p==null?void 0:p.pictureInPictureApi,ve=p==null?void 0:p.annotationsApi,De=p==null?void 0:p.slotsApi,pe=Be.createComponentLog("Store"),rt,X,Ae={},ke=new Uc,ze=new nm,nt=ue&&ue.oneStat?ei(ue.oneStat.vsid$):$r(void 0),ht=le(Rs()),at=le(!1),yt=(Cv=oe==null?void 0:oe.info.isActive$)!=null?Cv:new $y(!1),Xe=le(0),Ht=le(!1),Xt=le(!1),Bt=le([]),Qt=_y(N.events.fatalError$,N.events.managedError$).subscribe(c=>Bt.update(b=>[...b,c])),Ee=$r(!1,c=>{let b=N.events.fatalError$.subscribe(()=>c(!0));return()=>b.unsubscribe()}),zt=async c=>{var ee;let b=Object.values(fy).includes(c);if(se.downloadVKLanguages&&(b&&se.updateBuiltinLanguages||!df(c))){let Ce;try{Ce=await gy(c,uh,ph)}catch(it){(ee=ue==null?void 0:ue.oneStat)==null||ee.logError({errorType:"VKLangPack",fatal:!1}),he==null||he.report(it,{errorType:"VKLangPack",fatal:!1})}Ce&&(lf({language:c,pack:Ce,fallback:se.defaultLanguage}),Se.set(c))}df(c)&&Se.set(c)},Se=le(t),te=le(e);zt(t);let ne=(c,b)=>{let L=ye(Se);return cf(L,c,b,se.defaultLanguage)},Ve=le("thumb");Ve.subscribe(c=>{c==="ads"&&N.info.playbackState$.getValue()&&We()});let Fe=(()=>{let c=yi([Ee,Ve],([b,L])=>b?"crashed":L);return{...c,is:b=>ye(c)===b}})(),Re=le(),We=()=>{Re.set({muted:N.info.muted$.getValue()})},Ne=(()=>{let c=le(new Set(x));return{...c,add:b=>{c.update(L=>new Set([...L].concat(b)))},remove:b=>{c.update(L=>{let ee=[...L];return new Set(Array.isArray(b)?ee.filter(Ce=>!b.includes(Ce)):ee.filter(Ce=>Ce!==b))})},includes:b=>{let L=ye(c);return Array.isArray(b)?b.every(ee=>L.has(ee)):L.has(b)}}})(),Je=le({width:0,height:0});ae.log("create store"),pe({message:"create store"});let Ft=c=>{let b=c.container,L=()=>{Gt=new MutationObserver(Ce=>{let{removedNodes:it}=Ce[0];it.length&&b.append(N.experimental.element$.getValue())}),Gt.observe(b,{childList:!0})},ee=N.experimental.element$.getValue();if(ee)b.append(ee),L();else{let Ce=N.experimental.element$.pipe(Sy(it=>!!it),Cy()).subscribe(it=>{b.append(it),L()});ze.add(Ce)}},Wt=c=>{pe({message:`init video, config: ${JSON.stringify(c)}`}),S?Ft(c):(xy.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[wy()]}),N.initVideo(c)),ae.log("init video",{isInteractive:S}),c.subtitles&&N.setExternalTextTracks(c.subtitles),rt=c},Ct=new $u,_i=c=>Ct.next(c),gi=new $u,dt=new $u,Mi=new $u,Gt=null,lt={actionRewind$:gi,actionSeek$:dt,inPiP$:yt,inFullscreen$:new P1(c=>ht.subscribe(b=>c.next(b))),actionSetSubtitle$:Mi,nextMovie$:Ct},si={actionSeek$:dt,playerSize$:new P1(c=>Je.subscribe(b=>c.next(b)))};if(ue){let{oneStat:c,thinOneStat:b,mediascopePixel:L,statSubscription:ee}=ue;c&&(S||ee.add(c.attachTo(N)),ee.add(c.attachToUi(lt)),ee.add(c.attachToAds(ce.events)),c.authorize(s).catch(Ce=>{pe({message:`onestat auth error ${String(Ce)}`})}),L&&L.attachTo(N)),b&&(ee.add(b.attachTo(N,ce.events)),ee.add(b.attachToUi(si)),ee.add(b.attachToAds(ce.events)),b.authorize(s))}if(he){let c=new nm,b=(L,ee)=>c.add(L.subscribe(ee));if(b(N.events.managedError$,L=>{he.logIError(L)}),b(N.events.fatalError$,L=>{he.logIError(L,!0)}),ue){let{oneStat:L}=ue;L&&b(L.experimental.error$,ee=>{he.logIError(ee)})}he.sentrySubscription.add(c)}let Li=()=>{if(uy.device.isIOS&&X)try{Zh(X)}catch(c){pe({message:`exitIosSafariFullscreen failed: ${c}`})}};ze.add(N.experimental.element$.subscribe(c=>{c&&(X=c,c.classList.add("player-media"),ua(oe)&&oe.updateVideoElement(),S&&c.setAttribute("pip","false"),be==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(N.events.ended$.subscribe(()=>{var c;Li(),(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(async()=>{var b,L;ua(oe)&&await(oe==null?void 0:oe.revealPictureInPicture());let c=N.info.muted$.getValue();(b=a==null?void 0:a.onStarted)==null||b.call(a),(L=Ae.onStarted)==null||L.call(Ae,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),ce.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(()=>{Ht.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{Xt.set(c)})).add(N.info.isEnded$.subscribe(c=>{S&&(c?(E!=null&&E.getValue()&&Ne.add(Xl),Ne.add("PLAY_BUTTON")):Ne.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(ce.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(ce.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(ce.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(ce.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(ce.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(ce.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(ce.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(ce.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(ce.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(ce.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(ce.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(ce.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(ce.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(ce.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 Pt=new nm,ri=()=>{var it,Vt,Rt;let{debugLog:c}=se,b,L="#9df7b7",ee="#efd169";if(c&&c!==!0){let{colors:Dt}=c;b=c.tag,L=(it=Dt==null?void 0:Dt[0])!=null?it:L,ee=(Rt=(Vt=Dt==null?void 0:Dt[1])!=null?Vt:Dt==null?void 0:Dt[0])!=null?Rt:ee}let Ce=b?`: ${b}`:"";Pt.add(N.events.log$.subscribe(Dt=>{console.debug(`%c sdk${Ce} `,`background:${L};`,`sdk component: ${Dt.component}`,Dt.message)})).add(Be.log$.subscribe(Dt=>{console.debug(`%c ui${Ce} `,`background:${ee};`,`ui component: ${Dt.component}.`,Dt.message)}))},tn=()=>{Pt.unsubscribe()},At=(c,b)=>{ae.log("start camera manual rotation",{mx:c,my:b}),N.startCameraManualRotation(c,b)},ut=(c=!1)=>{ae.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},di=(c,b,L)=>{ae.log("move camera focus px",{xpx:c,ypx:b,dt:L}),N.moveCameraFocusPX(c,b,L)},Co=()=>{N.holdCamera()},Wi=()=>{N.releaseCamera()},ti=$r(N.info.position$.getValue(),c=>{let b,L,ee=()=>{let Ce=N.info.playbackState$.getValue(),it=N.info.isLive$.getValue(),Vt=N.info.duration$.getValue(),Rt=N.info.position$.getValue();if(Ce&&[Td.PLAYING,Td.PAUSED].includes(Ce)){let Dt=it?Rt-Vt:N.getExactTime();Dt!==L&&c(Dt),L=Dt}b=requestAnimationFrame(ee)};return ee(),()=>cancelAnimationFrame(b)}),Fo=ei(N.info.playbackState$),On=ei(N.info.currentBuffer$),D=ei(N.info.isEnded$),Ke=ei(N.info.isLive$),ct=se.features.playbackRate?ei(N.info.canChangePlaybackSpeed$):$r(!1),Kt=ei(N.info.liveBufferTime$),It=ei(N.info.volume$),kt=ei(N.info.muted$),ci=zc(N.info.predefinedQualityLimitType$.pipe(k1(c=>c===ss.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===ss.TRAFFIC_SAVING),Uo=zc(N.info.predefinedQualityLimitType$.pipe(k1(c=>c===ss.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===ss.HIGH_QUALITY),ai=ei(N.info.autoQualityLimitingAvailable$),xt=ei(N.info.availableQualities$),Xi=ei(N.info.availableQualitiesFps$),Ki=ei(N.info.chromecastState$),Bn=ei(N.info.chromecastDeviceName$),Vi=ei(N.info.currentFormat$),po=ei(N.info.throughputEstimation$),fo=ei(N.info.videoBitrate$),_n=ei(N.info.intrinsicVideoSize$),on=ei(N.info.duration$),Ei=ei(N.info.isAudioAvailable$),qi=null,nn=N.info.isBuffering$,To=$r(nn.getValue(),c=>{let b=nn.subscribe(L=>{L&&qi===null?qi=window.setTimeout(()=>{c(nn.getValue()),qi=null},se.loaderDelay):c(L)});return()=>{b.unsubscribe(),qi&&clearTimeout(qi)}}),rn=()=>{qi&&clearTimeout(qi),qi=null},sn=yi([on,Ke],([c,b])=>b?-c:c),xr=yi([Fo],([c])=>c===Td.PLAYING),Dn=ei(N.info.atLiveEdge$),wr=ei(N.info.atLiveDurationEdge$),ar=ei(N.info.position$),zr=yi([ar,on],([c,b])=>isFinite(c)&&isFinite(b)&&!!b),an=yi([Ki],([c])=>c===dy.CONNECTED),Hn=ei(N.info.availableVideoStreams$),lr=se.features.audioLanguages?ei(N.info.availableAudioStreams$):$r([]),bn=ei(N.info.currentVideoStream$),ro=ei(N.info.currentAudioStream$),Fn=c=>{c.language&&nf(c.language),N.setVideoStream(c)},Sr=(c,b)=>{N.setAudioStream(c),_t(b)&&(c.language&&nf(c.language),se.features.userVideoPrefs&&i&&af(se.userSalt,String(i),{audioTrackId:c.id}))},$n=c=>{let b;if(c.length===1&&(b=c.at(0)),b!=null||(b=c.find(ee=>"isDefault"in ee&&ee.isDefault)),se.features.userVideoPrefs&&i){let ee=Gc(se.userSalt,String(i));if(ee!=null&&ee.audioTrackId){let Ce=c.find(it=>it.id===ee.audioTrackId);b=Ce!=null?Ce:b}}let L=Nh();return L&&(b!=null||(b=c.find(({language:ee})=>L===ee))),b!=null||(b=c.at(0)),b},dr=!1;ze.add(N.info.availableAudioStreams$.subscribe(c=>{if(!dr&&c.length){let b=$n(c);b&&(N.setAudioStream(b),dr=!0)}}));let Un=!1;ze.add(N.info.availableVideoStreams$.subscribe(c=>{if(!Un&&c.length){let b=$n(c);b&&(N.setVideoStream(b),Un=!0)}}));let zo=le(void 0),zn=ei(N.info.isAutoQualityEnabled$,c=>c&&zo.set(void 0)),Wr=ei(N.info.currentQuality$,()=>zo.set(void 0)),Cr=yi([zo,Wr],([c,b])=>c!=null?c:b),mo=yi(Vi,c=>c!==Ed.MPEG),pt=yi([xt,Xi,zn,Cr,mo],([c,b,L,ee,Ce])=>{let it=[];Ce&&it.push({value:"auto",displayValue:ne("auto_quality_option"),selected:L});let Vt=c.filter(Rt=>!my(Rt));for(let Rt of Vt){let Dt=b[Rt];it.push({value:Rt,displayValue:`${Rt}${Dt?S1(Dt):""}`,selected:L?!1:Rt===ee})}return it}),jt=ei(N.info.currentPlaybackRate$),yn=yi([jt,Dn,wr],([c,b,L])=>{let ee=L||S?1:se.controls.playbackRateMin,Ce=b?1:se.controls.playbackRateMax,it=se.controls.playbackRateStep,Vt=[];for(let Rt=ee;Rt<=Ce;Rt+=it)Vt.push({value:Rt,displayValue:Rt===1?ne("playback_rate_1"):ne("playback_rate",{multiplier:Rt.toString(10)}),selected:c===Rt});return Vt}),Qi={displayValue:ne("subtitles_off"),value:bu,language:""},Ri=le({...Qi}),Wo=se.features.subtitles?ei(N.info.availableTextTracks$):$r([]),xn=Th(),so=yi([Wo,Ri],([c,b],L)=>{var it;let ee=[],Ce=c.find(({id:Vt})=>Vt===b.value);if(Ce!=null&&Ce.url){let[,Vt]=(it=xn.find(Ce.url))!=null?it:[];if(Vt){L(Vt);return}ke.download(Ce.url).then(Rt=>{if(!Rt||ke.isDestroyed())return;let Dt=new C1,Cs=Ce.language;if(Cs){let y0=!!Ce.isAuto,x0=Dt.parse(Rt,Cs);ee.push({lang:Cs,subtitles:x0,isAuto:y0,id:Ce.id})}xn.add(Ce.url,ee),ye(Ri).value===b.value&&L(ee)}).catch(Rt=>{var Dt;(Dt=ue==null?void 0:ue.oneStat)==null||Dt.logError({errorType:"Subtitles download",fatal:!1}),he==null||he.report(Rt,{errorType:"Subtitles download",fatal:!1})})}L(ee)}),ln=yi([jt,xr,Ri],([c,b,L],ee)=>{let Vt;if(N.info.isLive$.getValue()&&b&&L.value!==Qi.value){let Dt=()=>{let Cs=1e3/(3*c);Vt=setTimeout(Dt,Cs),ee(Date.now())};return Dt(),()=>clearTimeout(Vt)}}),Ko=yi([Wo,Ri],([c,b])=>{if(!c.length)return[];let L=[];for(let{language:ee,isAuto:Ce,id:it}of c){let Vt=ee&&Cd(ee);ee&&Vt&&L.push({displayValue:Ce?ne("subtitles_auto",{language:Vt}):Vt,value:it,selected:(b==null?void 0:b.value)===it,isAuto:Ce,language:ee})}return L.length?(L.unshift({...Qi,selected:(b==null?void 0:b.value)===Qi.value}),L):[]}),vo={available:[],prev:[]},Tr=()=>{var b,L;let c=N.experimental.getCurrentTime$.getValue();return(L=(b=c==null?void 0:c())!=null?b:X==null?void 0:X.currentTime)!=null?L:0},Er=yi([ti,Ri,so,ln],([c,b,L,ee])=>{var it;let Ce=N.info.isLive$.getValue();if(Ce&&vo.prev!==L){let Vt=L.find(({id:Dt})=>Dt===b.value),Rt=vo.prev.find(({id:Dt})=>Dt===b.value);if(Vt){let Dt={...Vt,subtitles:[...(it=Rt==null?void 0:Rt.subtitles)!=null?it:[],...Vt.subtitles]};vo.available=[Dt],vo.prev=L}}if(b&&b.value!==Qi.value){let Vt=Ce?Tr():c,Rt=Ce?vo.available:L;return I1(Vt,b,Rt,Ce)}}),Kr=yi([Er],([c])=>c!=null&&c.texts?c.texts:[]);ze.add(Ri.subscribe(c=>{var b,L;if(c.value===Qi.value)(b=a==null?void 0:a.onSubtitleOff)==null||b.call(a);else{let ee=Object.entries(gu).find(([Ce,it])=>it===c.displayValue);(L=a==null?void 0:a.onSubtitleOn)==null||L.call(a,ee?ee[0]:"",c.value)}}));let as=le(!0),wn=yi([On,sn,ar,Kt],([c,b,L,ee])=>{var Rt;let Ce=(Rt=c==null?void 0:c.end)!=null?Rt:0;if(!ee)return Ce/b;let Vt=-L+ee-b;return(Ce-Vt)/b}),cr=ei(N.info.availableSources$),Ir=yi([cr],([c])=>Object.keys((c==null?void 0:c[Ed.MPEG])||{}).length>0),go=()=>{var L,ee,Ce;let c=Object.keys(((ee=(L=N.info.availableSources$)==null?void 0:L.getValue())==null?void 0:ee[Ed.MPEG])||{}),b=py(c)||yy.Q_144P;return(Ce=rt.sources[Ed.MPEG])==null?void 0:Ce[b]},ii=()=>{var b;let c=go();if(c)ae.log("download video",{url:c}),wh(c,((b=rt==null?void 0:rt.meta)==null?void 0:b.title)||"video");else{let L="There is no URL for download video";ae.log("download video",{message:L}),pe({message:L})}},dn=()=>{pe({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?Ji(ft(),!1):Ni(!c,!1)},cn=()=>{var c;if(Mt.ui.settingsMenu.visible$.set(!1),!ye(Mt.ui.settingsSubMenu.visible$)){let b=ye(Mt.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&b){let ee=cl(b),Ce={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:ee,position:Ce,name:"settings"})}}ae.log("close settings menu")},Sn=async(c,b=()=>Promise.resolve())=>{var Ce;Mt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Mt.ui.settingsMenu.visible$.set(!0),await b();let L=ye(Mt.ui.settingsMenu.ref$),ee=Aa();if((Ce=a==null?void 0:a.uiInfo)!=null&&Ce.onSettingsMenu&&L&&ee){let Vt=cl(L),Rt=_s(L,ee);a.uiInfo.onSettingsMenu({visible:!0,size:Vt,position:Rt,name:"settings"})}ae.log("open settings menu",{wasOpenedByKeyboard:c})},kr=(c,b=!1)=>{var it;Mt.ui.settingsSubMenu.visible$.set(!1);let L=ye(Mt.ui.settingsMenu.ref$),ee=Aa(),Ce=ye(Mt.ui.settingsMenu.visible$);if((it=a==null?void 0:a.uiInfo)!=null&&it.onSettingsMenu&&L&&ee)if(Ce&&!b){let Rt=cl(L),Dt=_s(L,ee);a.uiInfo.onSettingsMenu({visible:!0,size:Rt,position:Dt,name:"settings"})}else{let Rt=cl(c),Dt={top:0,left:0,bottom:0,right:0},Cs=ye(Mt.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:Rt,position:Dt,name:Cs})}ae.log("close settings sub menu")},Pr=(c,b)=>{var ee;Mt.ui.settingsSubMenu.visible$.set(!0),Mt.ui.settingsSubMenu.ref$.set(b),Mt.ui.settingsSubMenu.name$.set(c);let L=Aa();if((ee=a==null?void 0:a.uiInfo)!=null&&ee.onSettingsMenu&&b&&L){let it=cl(b),Vt=_s(b,L);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:it,position:Vt})}ae.log("open settings sub menu",{name:c})},ft=()=>{var b;let c=Math.max(se.volumeMinRestore,(b=Wc())!=null?b:0);return c===0?se.volumeDefault:c},_t=c=>{let b=se.features.savePreferredStatesOnUserActionOnly;return!b||b&&!c},Ji=(c,b)=>{let L=c===0?ft():c,ee=N.info.muted$.getValue();pe({message:`set volume, volume: ${c}, preferredVolume: ${L}`});let Ce=!l||Fe.is("ads");ee&&c>0&&Ce&&(ee=!1,_t(b)&&tf(!1)),N.setVolume(c,ee),ce.setVolume(c),_t(b)&&Yp(L)},Ni=(c,b)=>{let L=N.info.volume$.getValue();pe({message:`set muted, currentVolume: ${L}, mute: ${c}`});let ee=Fe.is("ads");if(N.setMuted(c,ee),ce.setVolume(c?0:L),_t(b)&&(!ee||!c)&&tf(c),!c&&L===0){let Ce=ft();N.setVolume(Ce),_t(b)&&Yp(Ce),ce.setVolume(Ce)}},ao=le(!1),lo=c=>{var b,L;ae.log("set looped",{isLooped:c}),ao.set(c),N.setLooped(c),(L=(b=a==null?void 0:a.uiInfo)==null?void 0:b.onLoopedChanged)==null||L.call(b,c)};lo(j);let qo=()=>{var c,b;(b=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||b.call(c)},eo=(c,b=!1)=>{var L;pe({message:`set autoplayNextEnabled, value: ${c}`}),ae.log("set autoplay next enabled",{autoplayNextEnabled:c}),Mt.ui.autoplayNextEnabled$.set(c),Dh(c),b&&((L=a==null?void 0:a.onSetAutoplayNextEnabled)==null||L.call(a,c))},Wn=c=>{pe({message:`set timerNextVideoRunning, value: ${c}`}),ae.log("set timer next video running",{timerNextVideoRunning:c}),Mt.ui.timerNextVideoRunning$.set(c)},Eo=(c=!0)=>{var ee;let b=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{b=(ee=a==null?void 0:a.onPrevVideoClick)==null?void 0:ee.call(a)}catch(Ce){pe({message:"onPrevVideoClick callback failed to execute"})}if(!b)return;c&&Ar("prev")||q()},ur=(c=!0)=>{var ee;let b=!0;if(c&&(a!=null&&a.onNextVideoClick))try{b=(ee=a==null?void 0:a.onNextVideoClick)==null?void 0:ee.call(a)}catch(Ce){pe({message:"onNextVideoClick callback failed to execute"})}if(!b)return;c&&Ar("next")||Y()},Ar=c=>{let{isMobile:b,features:{playbackStatusNextVideoShow:L,playbackStatusShow:ee}}=se;return L&&ee&&!b?(Mt.ui.aboutToGoNextVideo.set(c),Mt.ui.userActionsDisabled.set(!0),!0):!1},qr=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},Io=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},Kn=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},qn=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},pr=()=>{N.prepare()},tt=()=>{sr(Mt);let c=ye(Mt.ui.controls.disabledControls$),b=ye(Mt.playerPhase),L={playerPhase:b,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(pe({message:"toggle play"}),b==="ads"){L.action="play",ae.log("toggle adman play",L),ce.togglePlay();return}let ee=()=>{var it;pe({message:"toggle play, call player.play"}),L.action="play",N.play(),(it=a==null?void 0:a.onPlay)==null||it.call(a)},Ce=()=>{var it;pe({message:"toggle play, call player.pause"}),L.action="pause",N.pause(),(it=a==null?void 0:a.onPause)==null||it.call(a)};if(N.info.isEnded$.getValue()){if(pe({message:"toggle play, video ended, seek to 0"}),gi.next(),dt.next(bs.REWIND),S){R==null||R();return}N.seekTime(0),ee()}else N.info.playbackState$.getValue()!==Td.PLAYING?ee():Ce();ae.log("toggle play",L)},St=(c,{changeReason:b="default",appliesTo:L="to-video"}={},ee)=>{pe({message:`set quality, quality: ${c}`}),ae.log("set quality",{quality:c}),N.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Ce}=se.features;Kc(),c!=="auto"?(Ce?(qc({type:"exact_quality",quality:c,videoId:i},L),N.setPredefinedQualityLimits(ss.UNKNOWN)):Zp(i,c),zo.set(c),N.setQuality(c)):Ce&&b==="default"&&(to("auto_quality",L,ee),ye(ci)&&fi(!1,void 0,ee),ye(Uo)&&Oi(!1,void 0,ee))},fi=(c,b="as-default",L)=>{pe({message:`set trafficSavingEnabled, value: ${c}`}),ae.log("set traffic saving enabled",{trafficSavingEnabled:c});let ee=c?ss.TRAFFIC_SAVING:ss.UNKNOWN;se.features.qualityDetailsSubMenuEnabled?(ho(ee,b,L),Jl(!1)):(N.setPredefinedQualityLimits(ee),_t(L)&&Jl(c))},Oi=(c,b="as-default",L)=>{pe({message:`set highQualityEnabled, value: ${c}`}),ae.log("set high quality enabled",{highQualityEnabled:c}),ho(c?ss.HIGH_QUALITY:ss.UNKNOWN,b,L)},ho=(c,b,L)=>{c!==ss.UNKNOWN&&(ye(ai)&&!ye(zn)&&St("auto",{appliesTo:b,changeReason:"limit-changed"},L),to(c,b,L)),N.setPredefinedQualityLimits(c)},to=(c,b,L)=>{_t(L)&&(qc({type:c,videoId:i},b),b==="as-default"&&qc({type:c,videoId:i},"to-video"))},Ii=(c,b=!0)=>{ae.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),se.features.saveRate&&re&&!N.info.isLive$.getValue()&&b&&Oh(c)},ko=()=>{let c=ye(yn),b=c.findIndex(({selected:ee})=>ee);if(b===c.length-1)return;let L=c[b+1];Ii(L.value)},Qn=()=>{let c=ye(yn),b=c.findIndex(({selected:ee})=>ee);if(b===0)return;let L=c[b-1];Ii(L.value)},un=(c={...Qi,selected:!1},b)=>{ae.log("set subtitles",{...c}),c.value!==Qi.value&&Mi.next(c.isAuto?c.value+"_auto":c.value),Ri.set(c),_t(b)&&(sf(c.value===Qi.value?void 0:c.language),se.features.userVideoPrefs&&i&&af(se.userSalt,String(i),{subtitleTrackId:c.value===Qi.value?void 0:c.value}))},_o=c=>{ae.log("toggle subtitles");let b=ye(Ri);(b==null?void 0:b.value)===Qi.value?fr(c):Cn(c)},Po=(c,b)=>{ae.log("change subtitle",{enabled:c}),c?fr(!0,b):Cn(!0)},fr=(c,b)=>{ae.log("subtitle on");let L=ye(Ko),ee=ye(Se),Ce;b&&(Ce=L.find(it=>it.value===b)),Ce!=null||(Ce=L.filter(it=>it.value!==Qi.value).find(it=>it.value===ee)||L[1]),un(Ce,c)},Cn=c=>{ae.log("subtitle off"),un(void 0,c)};N.info.availableTextTracks$.subscribe(c=>{var L;function b(){let ee=[];for(let{language:Ce,isAuto:it,id:Vt}of c){let Rt=Ce&&Cd(Ce);Ce&&Rt&&ee.push({id:Vt,language:Ce,title:it?ne("subtitles_auto",{language:Rt}):Rt})}return ee}(L=a==null?void 0:a.onAvailableSubtitlesChanged)==null||L.call(a,b())});let Gn=le(!0),mr=c=>{Gn.set(c)},Ao=(c,b,L=!0)=>{var ee;if(pe({message:`seek to time, time: ${c}`}),ae.log("seek to time",{time:c,action:b,forcePrecise:L}),dt.next(b),N.info.isLive$.getValue()){let Ce=N.info.duration$.getValue(),it=Math.min(0,Ce+c);N.seekTime(it,L)}else{if(E!=null&&E.getValue())return;N.info.isEnded$.getValue()&&(pe({message:"seek after ended, call callbacks.onPlay"}),(ee=a==null?void 0:a.onPlay)==null||ee.call(a)),N.seekTime(Ss(c),L)}},Mr=c=>{pe({message:`seek to episode start time: ${c}`}),ae.log("seek to episode start time",{time:c}),Ao(c,bs.EPISODE,!0)},Qr=(c,b)=>{pe({message:`seek to percent, percent: ${c}`}),ae.log("seek to percent",{percent:c,action:b});let L=ye(sn)*c;Ao(L,b,!1)},jn=c=>{pe({message:`seek external, time: ${c}`}),ae.log("seek external",{time:c}),dt.next(bs.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},vr=c=>{var ee,Ce;let b=(ee=c.max)!=null?ee:"none",L=(Ce=c.min)!=null?Ce:"none";pe({message:`set auto quality limitation. Max: ${b}. Min: ${L}`}),ae.log("set auto quality limits",{max:b,min:L}),N.setAutoQualityLimits(c)},je=c=>{pe({message:`seek external to episode start time: ${c}`}),ae.log("seek external to episode start time",{time:c}),Ao(c,bs.EPISODE,!0)},Jt=c=>{pe({message:`set playback rate to: ${c}`}),ae.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},mi=le(void 0),bi=le(!1),Mo=c=>{pe({message:`start scrubbing, progress: ${c}`}),ae.log("start scrubbing",{progress:c}),bi.set(!0),Gr(c)},Gr=c=>{mi.set(c)},Lo,Tn,Yn=()=>{mi.set(void 0),bi.set(!1)},jr=()=>{clearTimeout(Tn),clearTimeout(Lo),Lo=window.setTimeout(()=>{Yn()},500),X==null||X.removeEventListener("seeked",jr)},J=c=>{pe({message:`complete scrubbing, progress: ${c}`}),ae.log("complete scrubbing",{progress:c}),Qr(c,bs.SLIDER),ye(Mt.ui.isMobile)&&ye(Mt.state.currentFormat$)===Ed.HLS?(X==null||X.addEventListener("seeked",jr),Tn=window.setTimeout(()=>{jr()},300)):Yn()},Ze=yi([ti,sn,mi],([c,b,L],ee)=>{ee(vy(L)?L*b:c)}),Ut=le(!1),pi=()=>{Ut.set(!0)},Bi=()=>{Ut.set(!1)},Di=yi([Je],([{width:c}],b)=>{let L=b1(c);b(L)}),xi=le(!1),En=G.filter(c=>Sh(c)),wi=yi([Di,xi],([c,b])=>b?En.filter(L=>!L.hideOnMobile):En.filter(L=>{var ee;return!((ee=L.hideOnDesktopGridTypes)!=null&&ee.includes(c))})),li=le(G.filter(c=>Ch(c))),Qo=yi([li,Di],([c,b])=>c.filter(L=>{var ee;return!((ee=L.hideOnDesktopGridTypes)!=null&&ee.includes(b))})),gr=yi([Qo,wi],([c,b])=>[...se.features.additionalButtonsDesktopControlPanelRight?c.filter(L=>L.type==="desktop-control-panel-right"):[],...se.features.additionalButtons?b.map((L,ee)=>{var Ce;return{id:ee,weight:ee,type:"desktop-control-panel-right",testId:L.testId,icon:L.iconUrl,onClick:L.onClick,ariaLabel:(Ce=L.ariaLabel)!=null?Ce:L.tooltip,tooltipText:L.tooltip}}):[]]),bo=le(H),$o=yi([bo],([c])=>se.features.additionalSettingsMenuItems?c.map(b=>b.type==="SWITCH"?{...b,onClick:b.onChangeEnabled}:b):[]),Ws=(c,b)=>{let L=ye(li).map(ee=>ee.id!==c?ee:{...ee,...b});li.set(L)},bt=c=>{let b=ye(li);if(b.some(L=>L.id===c.id)){pe({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),li.set(b)},gt=c=>{let b=ye(li);if(!b.some(L=>L.id===c)){pe({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}b=b.filter(L=>L.id!==c),li.set(b)},co=c=>{dt.next(bs.LIVE),pe({message:"live switch to low latency "+c}),ae.log("live switch to low latency "+c),N.setLiveLowLatency(c)},Go=(c,b)=>{let L=ye(bo).map(ee=>ee.id!==c?ee:{...ee,...b});bo.set(L)},Gi=c=>{let b=ye(bo);if(b.some(L=>L.id===c.id)){pe({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),bo.set(b)},ui=c=>{let b=ye(bo);if(!b.some(L=>L.id===c)){pe({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),bo.set(b)},vi=le(F),ws=yi([vi],([c])=>se.features.additionalContextMenuItems?c:[]),_l=(c,b)=>{let L=ye(vi).map(ee=>ee.id!==c?ee:{...ee,...b});vi.set(L)},ec=c=>{let b=ye(vi);if(b.some(L=>L.id===c.id)){pe({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),vi.set(b)},Fu=c=>{let b=ye(vi);if(!b.some(L=>L.id===c)){pe({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),vi.set(b)},tc=yi([xi,Ee],([c,b],L)=>{L(c&&b)}),Uu=()=>{dt.next(bs.LIVE),pe({message:"switch to active live"}),ae.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==Td.PLAYING&&Mt.actions.internal.togglePlay()},ic=()=>{ae.log("skip adman"),ce.skip()},zu=(c=!0)=>{var ee;sr(Mt),pe({message:`switch from ads to video, callPlay: ${c}`}),ae.log("switch from ads to video",{callPlay:c}),Ve.set("video"),c&&N.play(),l&&Ni(!0,!0);let b=(ee=ye(Re))==null?void 0:ee.muted,L=!N.info.muted$.getValue();b!==void 0&&!L&&Ni(b,!0),Re.set(void 0)},oc=()=>{sr(Mt),pe({message:"switch from video to ads"}),ae.log("switch from video to ads"),Mt.actions.internal.pause(),Li(),Ve.set("ads")},Wu=c=>{sr(Mt);let b=c?"LiveWaitingStart":"thumb";ae.log("set live waiting start",{state:c,playerPhase:b}),Ve.set(b)},nc=c=>{sr(Mt);let b=c?"LiveWaitingRecover":"thumb";ae.log("set live waiting recover",{state:c,playerPhase:b}),Ve.set(b)},Ku=c=>{sr(Mt);let b=c?"LiveWaitingRecord":"thumb";ae.log("set live waiting record",{state:c,playerPhase:b}),Ve.set(b)},rc=()=>(sr(Mt),ae.log("get debug text data"),yh(N,rt,Mt,Le.getTraceId())),qu=()=>(sr(Mt),JSON.stringify(Le.getFinishedSpans())),sc=()=>(sr(Mt),xh(N,rt,Mt)),Aa=()=>X,ac=()=>{pe({message:"toggle chromecast"}),ae.log("toggle chromecast"),N.toggleChromecast()},lc=c=>{var L;if(sr(Mt),N.info.isEnded$.getValue())return;let b=!c;if(ye(Mt.playerPhase)==="ads"){pe({message:`pause ads, internalCall: ${b}`}),ae.log("pause ads",{internalCall:b}),ce.pause();return}pe({message:`pause video, internalCall: ${b}`}),ae.log("pause video",{internalCall:b}),b&&((L=a==null?void 0:a.onPause)==null||L.call(a)),N.pause()},bl=c=>{var L;sr(Mt);let b=!c;if(ye(Mt.playerPhase)==="ads"){pe({message:`play ads, internalCall: ${b}`}),ae.log("play ads",{internalCall:b}),ce.play();return}pe({message:`play video, internalCall: ${b}`}),ae.log("play video",{internalCall:b}),b&&((L=a==null?void 0:a.onPlay)==null||L.call(a)),N.play()},dc=c=>{sr(Mt);let b=!c;if(ye(Mt.playerPhase)==="ads"){pe({message:"player cannot be stopped during ads via external method"});return}pe({message:`player will be stopped, internalCall: ${b}`}),I==null||I()},$l=(c,b)=>{sr(Mt),pe({message:`first start, show ads: ${c}, internalCall: ${!b}`}),ae.log("first start",{showAds:c,external:b}),c?Ve.set("ads"):(Ve.set("video"),b?N.play():Mt.actions.internal.togglePlay())},yl=()=>(pe({message:"getting time codes"}),f),xl=()=>{let c=yl();if(!c||[0,1].includes(c.length))return;let b=N.info.position$.getValue();return c.find(L=>L.time>b)},Qu=c=>{let b=c;b||(b=xl());let L=N.info.position$.getValue();ae.log("seek to next episode",{currentTime:L,...b}),b&&(pe({message:"seek to next episode"}),Ao(b.time,bs.EPISODE,!0))},wl=()=>{let c=yl();if(!c||[0,1].includes(c.length))return;let b=N.info.position$.getValue(),L=c.findIndex(Ce=>Ce.time>b),ee=L===-1?c.length-2:L-2;if(!(ee<0))return c[ee]},Gu=c=>{let b=c;b||(b=wl());let L=N.info.position$.getValue();ae.log("seek to prev episode",{currentTime:L,...b}),b&&(pe({message:"seek to prev episode"}),Ao(b.time,bs.EPISODE,!0))},ju=()=>(pe({message:"getting preview thumbs data"}),ae.log("get preview thumbs data",{...m}),m),Yu=async()=>{let c=oe==null?void 0:oe.isActive(),b="none";oe!=null&&oe.isActive()?(b="exit",await(oe==null?void 0:oe.exit())):(b="request",await(oe==null?void 0:oe.request())),ae.log("toggle picture in picture",{isActive:c,action:b})},Ge=(c=-90)=>{ae.log("rotate video",{alphaDiff:c}),Xe.update(b=>b+c)},oi=le([]);T==null||T.subscribe(c=>{let b=[];for(let L=0;L<c.length;L++){let{range:[ee,Ce],subjects:it}=c[L];L===0&&ee!==0&&b.push({time:0,text:"",interactive:!1,completed:!0}),b.push({time:ee/1e3,text:"",interactive:!0,completed:se.features.interactiveTimeOpenUri?!it.length||it.every(Vt=>Vt.isRemoved):!it.length}),Ce!==1/0&&b.push({time:Ce/1e3,text:"",interactive:!1,completed:!0})}oi.set(b)});let Vo=le(!1);E==null||E.subscribe(c=>{c&&ye(bi)&&Yn()});let Ss=c=>{if(!S)return c;let b=ye(oi),L=ye(sn),Ce=ye(ar)/L,it=b.find(Vt=>Vt.interactive&&!Vt.completed&&Vt.time>Ce);return typeof(it==null?void 0:it.time)=="number"?Math.min(c,it.time-.05):c},pn=()=>{Mt.ui.episodes.panelOpened$.set(!1)},b0=()=>{ae.log("destroy store"),clearTimeout(Tn),clearTimeout(Lo),ze.unsubscribe(),Pt.unsubscribe(),N.destroy(),ce.destroy(),ue==null||ue.destroy(),he==null||he.destroy(),Qt.unsubscribe(),Gt==null||Gt.disconnect(),Gt=null,ke.destroy()},Zu=le(!1),xv=2,cc=null,$0=c=>{if(!ye(xr))return;let b=N.info.currentPlaybackRate$.getValue();c?b!==xv&&(cc=b,Ii(xv,!1),Zu.set(!0)):(cc&&Ii(cc,!1),Zu.set(!1),cc=null)},Mt={interfaceLanguage$:Se,isCyrillicRelatedInterface$:te,initVideo:Wt,videoId:i,isClip:o,playerPhase:Fe,vsid:nt,state:{positionExact$:ti,positionWithScrubbing$:Ze,duration$:sn,playbackState$:Fo,isPlaying$:xr,isLoaderVisible:To,bufferedProgress$:wn,isLive$:Ke,canChangePlaybackSpeed$:ct,isActiveLive$:Dn,isOldestAvailableLive$:wr,isRewindableLive$:zr,isEnded$:D,muted$:kt,volume$:It,trafficSavingEnabled$:ci,highQualityEnabled$:Uo,autoQualityLimitingAvailable$:ai,availableVideoStreams$:Hn,availableAudioStreams$:lr,videoStream$:bn,audioStream$:ro,currentQuality$:Cr,isAutoQualityEnabled$:zn,availableQualities$:pt,currentPlaybackRate$:jt,availablePlaybackRates$:yn,currentSubtitle$:Ri,availableTextTracks$:Wo,availableSubtitlesList$:Ko,currentSubtitleCaptions$:Kr,isAutoSubtitleCaptionVisible$:as,chromecastState$:Ki,chromecastDeviceName$:Bn,chromecastConnected$:an,currentFormat$:Vi,throughputEstimation$:po,videoBitrate$:fo,videoSize$:_n,errorLog$:Bt,crashed$:Ee,isAudioAvailable$:Ei,isAudioDisabled:!!l,canDownload:se.features.download&&!!d,availableSources$:cr,hasMpegSources$:Ir,isInteractive:S,showInteractiveGraph:se.features.interactiveGraph,showSeekToInteractive:se.features.seekToInteractive,showPlayPrevChapter:se.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:se.features.interactiveTimeIndicator&&!!ye(oi).length,interactiveEpisodes$:oi,isInteractiveTime$:E?ei(E):le(!1),isInteractiveExpectation$:Vo,hasInteractiveBranches:M,playPrevChapterDisabledTooltip:k,looped$:ao,loadedMetadata$:Ht,isAutoQualityAvailable$:mo},ui:{t:ne,controlsVisible:le(!1),touched:le(!1),controls:{prevButton:le(void 0),playButton:le(void 0),replayButton:le(void 0),nextButton:le(void 0),playPrevChapterButton:le(void 0),seekToInteractiveButton:le(void 0),interactiveGraphButton:le(void 0),liveButton:le(void 0),time:le(void 0),episodes:le(void 0),volume:le(void 0),subtitles:le(void 0),settings:le(void 0),context:le(void 0),chromecast:le(void 0),pip:le(void 0),fullscreen:le(void 0),vkLogo:le(void 0),interactiveTimeIndicator:le(void 0),timeline:le(void 0),autoplayNextToggle:le(void 0),additionalButtons:G.length?G.reduce(c=>[...c,le(void 0)],[]):[],disabledControls$:Ne},modals:{hotKeyMap:{show:le(!1),data:le({title:"",closeBtnText:"",groups:[]})}},isFullscreen:ht,isFullscreenOpenedByKeyboard:at,rotateAlpha:Xe,isAutoplay:le(!1),debugPanelVisible:le(!1),episodes:{panelOpened$:le(!1),openedByKeyboard$:le(!1)},contextMenu:{visible$:le(!1),btnRef$:le(void 0),openedByBtnKeyboard$:le(!1),openedByHotKey$:le(!1),lastActiveElem$:le(void 0),showContextMenuBtn$:le(!1),position$:le({top:0,left:0})},playerSize:Je,isMobile:xi,mobileNotReportControlHidden$:tc,icon3DVideoVisible:le(!1),scrubbingInProgress:bi,volumeChangingInProgress:Ut,is3DVideo:Xt,currentGridType$:Di,additionalButtonsDeprecated$:wi,additionalDesktopControlPanelRightButtons$:gr,additionalSettingsMenuItems$:$o,additionalContextMenuItems$:ws,interactiveHideMobileControls:le(!1),overlayContainer$:le(void 0),startedByKeyboard$:le(!1),autoplayNextEnabled$:le(!1),timerNextVideoRunning$:le(!0),settingsMenu:{visible$:le(!1),ref$:le(void 0),openedByBtnKeyboard$:le(!1)},settingsSubMenu:{visible$:le(!1),ref$:le(void 0),name$:le(void 0)},aboutToGoNextVideo:le(void 0),userActionsDisabled:le(!1),hiddenControls:{volume:le(!1),vkLogo:le(!1),pip:le(!1),chromecast:le(!1),settings:le(!1)},isControlsAvailable:Gn,controlBlocks:{topLeft:le(void 0),topRight:le(void 0),middle:le(void 0),bottom:le(void 0),bottomLeft:le(void 0),bottomRight:le(void 0)},videoTitleInfo:le(void 0),doubleForwardOn$:Zu},ads:{position:le(0),duration:le(0),playbackState:le("inactive"),canSkip:le(!1),secondsToWatchBeforeSkip:le(0),postrollPassed:le(!1)},webApi:{pictureInPictureApi:oe,annotationsApi:ve,slotsApi:De},actions:{internal:{preload:pr,firstStart:c=>$l(c,!1),play:()=>bl(!1),pause:()=>lc(!1),togglePlay:tt,toggleMuted:dn,openSettingsMenu:Sn,closeSettingsMenu:cn,openSettingsSubMenu:Pr,closeSettingsSubMenu:kr,setVolume:c=>Ji(c,!1),setMuted:c=>Ni(c,!1),startVolumeChanging:pi,stopVolumeChanging:Bi,setVideoStream:Fn,setAudioStream:c=>Sr(c,!1),setQuality:(c,b)=>St(c,b,!1),setTrafficSavingEnabled:(c,b)=>fi(c,b,!1),setHighQualityEnabled:(c,b)=>Oi(c,b,!1),setPlaybackRate:Ii,incrementPlaybackRate:ko,decrementPlaybackRate:Qn,setSubtitle:c=>un(c,!1),toggleSubtitle:()=>_o(!1),togglePictureInPicture:Yu,startScrubbing:Mo,progressScrubbing:Gr,completeScrubbing:J,toggleChromecast:ac,switchToActiveLive:Uu,switchFromAdsToVideo:zu,switchFromVideoToAds:oc,skipAd:ic,setLiveWaitingStart:Wu,setLiveWaitingRecover:nc,setLiveWaitingRecord:Ku,getDebugTextData:rc,getTraceTextData:qu,getDebugPanelData:sc,getVideoElement:Aa,seekTime:(c,b,L)=>Ao(c,b,L),clearDelayedBufferingCheckTimeout:rn,seekEpisodeStartTime:Mr,seekToPercent:Qr,getNextEpisode:xl,seekToNextEpisode:Qu,getPrevEpisode:wl,seekToPrevEpisode:Gu,startLogging:ri,stopLogging:tn,startCameraManualRotation:At,stopCameraManualRotation:ut,moveCameraFocusPX:di,holdCamera:Co,releaseCamera:Wi,getVideoEpisodes:yl,getPreviewThumbsData:ju,downloadVideo:ii,addLanguage:lf,setLanguage:zt,nextMovie:_i,videoRotate:Ge,correctSeekTimeToInteractive:Ss,replayInteractive:R,setLooped:lo,reportProblem:qo,setAutoplayNextEnabled:eo,setTimerNextVideoRunning:Wn,prevVideoClick:Eo,nextVideoClick:ur,nextVideoAnnouncementShow:qr,nextVideoAnnouncementClick:Io,nextVideoAnnouncementAuto:Kn,nextVideoAnnouncementCancel:qn,changeDoubleForwardOn:$0},external:{firstStart:c=>$l(c,!0),play:()=>bl(!0),pause:()=>lc(!0),stop:()=>dc(!0),seekTime:c=>jn(c),seekEpisodeStartTime:c=>je(c),setPlaybackRate:c=>Jt(c),setAutoQualityLimits:c=>vr(c),setMuted:c=>Ni(c,!0),toggleSubtitle:()=>_o(!0),changeSubtitle:Po,setVolume:c=>Ji(c,!0),returnFocusToEpisodes:pn,updateAdditionalSettingsItem:Go,addAdditionalSettingsItem:Gi,removeAdditionalSettingsItem:ui,updateAdditionalContextItem:_l,addAdditionalContextItem:ec,removeAdditionalContextItem:Fu,updateAdditionalButton:Ws,addAdditionalButton:bt,removeAdditionalButton:gt,setLiveLowLatency:co,hideControls:()=>mr(!1),showControls:()=>mr(!0),setQuality:c=>St(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>fi(c,"to-video",!0),setHighQualityEnabled:c=>Oi(c,"to-video",!0)}},callbacks:a,setUiCallbacks:c=>{Ae={...c}},getAdmanWrapper:()=>ce,getLogger:()=>Be,getPlayer:()=>N,destroy:b0};return Mt};function Rn(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:p}=_s(e[i],t||void 0);return{left:s?d:0,right:s?p:0,top:s?l:0,bottom:s?a:0,isDisplayed:s}}var Ty=["disabledControls$","additionalButtons"],Ey=["interactiveTimeIndicator"],pl=(t,e,i,o)=>{if(t){for(let[n,s]of Object.entries(e))if(!Ty.includes(n)){let l=o||Ey.includes(n);s.set(Rn(t,i,n,l))}}};var yu=async(t,e,i)=>{await xo(),e&&i&&(i.focus(),t.set(!1))};var Iy=we('<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 rm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Iy();Ie(o,()=>({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);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}function sm(t,e){U(e,!0);let[i,o]=He(),n=()=>C(a,"$contextMenuVisible$",i),s=v(e,"disabled",3,!1),l=v(e,"ariaLabel",3,""),d=Te(),a=d.ui.contextMenu.visible$,p=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,m=d.ui.contextMenu.position$,u=d.ui.contextMenu.btnRef$,y=Z(void 0);Qe(()=>{r(y)&&$t(()=>{u.set(r(y))})});let w=E=>{let R=Bs(E),I=u1(r(y));m.set(I),p.set(R),a.set(!n())},x=()=>{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:x,blur:S,get ariaExpanded(){return n()},get ref(){return r(y)},set ref(E){O(y,E,!0)},children:(E,R)=>{rm(E,{})},$$slots:{default:!0}}),z(),o()}var ky=t=>{t.stopPropagation()},Py=A("<div><!> <div></div> <div></div></div>"),Ay={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 Df(t,e){U(e,!0),q(t,T2);let i=m(e,"isMobile",3,!1),o=g(()=>e.iconState===c1.CONNECTED),n=g(()=>e.iconState===c1.CONNECTING);var s=We(),l=ge(s);{var d=p=>{var f=S2(),v=_(f),u=_(v),y=_(u);Ce(),h(u);var w=P(u);Ce(),h(v);var x=P(v),S=_(x),T=_(S);h(S),Ce(),h(x),h(f),B(()=>{Fe(y,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Fe(w,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Fe(T,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),$(p,f)},a=p=>{var f=C2();let v;var u=_(f),y=P(_(u),5);let w;h(u),h(f),B((x,S)=>{v=ee(f,0,"svelte-8z1bf5",null,v,x),w=ee(y,0,"svelte-8z1bf5",null,w,S)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),$(p,f)};L(l,p=>{i()?p(d):p(a,!1)})}$(t,s),z()}import{noop as I2}from"@vkontakte/videoplayer-shared/es2018";function _d(t,e){U(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"click",3,I2),l=Ee().ui.t,d=g(()=>e.state===E2.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Rt(t,{get ariaLabel(){return r(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(a){i(a)},children:(a,p)=>{Df(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),z()}var k2=M('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),P2={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 Hf(t,e){q(t,P2);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=j(void 0),p=j(void 0);function f(S){if(!r(p))return 0;let{width:T}=r(p).getBoundingClientRect(),E=T/2;return S<E?E+l():S>e.containerWidth-E?e.containerWidth-E-d():S}let v=g(()=>f(n()));var u=k2(),y=_(u);let w;var x=_(y);ye(x,()=>{var S;return(S=e.children)!=null?S:de}),h(y),it(y,S=>O(p,S),()=>r(p)),h(u),it(u,S=>O(a,S),()=>r(a)),B(S=>{rt(u,`transform: translate(${r(v)}px, ${s()}px);`),w=ee(y,1,"tooltip svelte-5ygsa2",null,w,S),rt(y,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),$(t,u)}var au=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var u1=t=>!!(Math.round(Math.abs(t)/90)%2),p1=t=>Math.abs(t)/90%4===1;var A2=M('<div class="preview svelte-1wqg760"></div>'),M2=M('<div class="time svelte-1wqg760"> </div>'),L2=M('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),V2={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 Ff(t,e){U(e,!0),q(t,V2);let[i,o]=He(),n=()=>C(w,"$rotateAlpha",i),s=()=>C(x,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=m(e,"time",3,""),a=m(e,"isMobile",3,!1),p=m(e,"videoEpisodes",19,()=>[]),f=m(e,"progress",3,0),v=m(e,"duration",3,0),u=m(e,"isInteractive",3,!1),y=Ee(),w=y.ui.rotateAlpha,x=y.ui.playerSize,S=j(0),T=j(0),E=j(""),V=j(0),k=j(0),I=j(0),R=j(0),Y=g(()=>au(f(),v(),p())),H=g(()=>u1(n())),F=g(()=>p1(n())),W=g(ce),J=g(()=>(r(F)?1:-1)*(r(S)/2-r(T)/2)),G=g(()=>r(J)*-1);Ke(()=>{(te=>{O(S,te.width,!0),O(T,te.height,!0)})(ue())}),Ke(()=>{(te=>{O(E,te.imgSrc,!0),O(V,te.imgWidth,!0),O(k,te.imgHeight,!0),O(I,te.imgOffsetX,!0),O(R,te.imgOffsetY,!0)})($e(f()))});function ce(){var pe;let te=a()?l.MOBILE:l.DESKTOP,{isVertical:me}=ie(),De=30;return(pe=r(Y))!=null&&pe.text&&(De+=16),(me||r(H))&&(De+=18,De+=50),Math.min(Math.max(s().height-De,0),te)}function ie(){let te=e.previewThumbsData.frameWidth,me=e.previewThumbsData.frameHeight,De=me>te;return{width:te,height:me,isHorizontal:!De,isVertical:De}}function ue(){let{height:te,isHorizontal:me,isVertical:De,width:pe}=ie();return me&&(te=te/pe*r(W),pe=r(W)),De&&(pe=pe/te*r(W),te=r(W)),{width:pe,height:te}}function $e(te){let me;e.previewThumbsData.isUV?me=Math.floor(v()*te/e.previewThumbsData.frequency):me=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*te)));let De=Math.floor(me/e.previewThumbsData.countPerImage),pe=Math.floor(me%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),st=me%e.previewThumbsData.countPerRow,Z=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&De===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(Z=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&Z++);let Ae=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&De===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Ae=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Ie=r(S)*Ae,ze=r(T)*Z,at=-st*r(S),ft=-pe*r(T);return{imgSrc:e.previewThumbsData.links[De],imgWidth:Ie,imgHeight:ze,imgOffsetX:at,imgOffsetY:ft}}var fe=L2();let ke;var ne=_(fe);{var Ve=te=>{var me=A2();B(()=>rt(me,`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(J)}px, ${r(G)}px)`:""};
|
|
225
|
+
`)),$(te,me)};L(ne,te=>{r(E)&&te(Ve)})}var re=P(ne,2),N=_(re);{var Be=te=>{var me=We(),De=ge(me);{var pe=Z=>{var Ae=ts();B(Ie=>be(Ae,Ie),[()=>K("tooltip_episode_unfinished")]),$(Z,Ae)},st=Z=>{var Ae=ts();B(()=>be(Ae,r(Y).text||"")),$(Z,Ae)};L(De,Z=>{u()&&r(Y).completed===!1?Z(pe):Z(st,!1)})}$(te,me)};L(N,te=>{r(Y)&&te(Be)})}h(re);var le=P(re,2);{var ve=te=>{var me=M2(),De=_(me,!0);h(me),B(()=>be(De,d())),$(te,me)};L(le,te=>{u()||te(ve)})}h(fe),B(te=>{ke=ee(fe,1,"timeline-preview svelte-1wqg760",null,ke,te),rt(fe,`width: ${r(H)?r(T):r(S)}px;`)},[()=>({mobile:a()})]),$(t,fe),z(),o()}var R2=M('<span class="time svelte-1jr6obn"> </span>'),N2=M("<!> <!>",1),O2={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 Uf(t,e){var ae,Re,qe,Le,je;U(e,!0),q(t,O2);let[i,o]=He(),n=()=>C(J,"$interactiveEpisodes$",i),s=()=>C(I,"$duration$",i),l=()=>C(k,"$position$",i),d=()=>C(ie,"$isInteractiveExpectation$",i),a=()=>C(ce,"$isInteractiveTime$",i),p=()=>C(R,"$isLive$",i),f=()=>C(H,"$isMobile",i),v=()=>C(Y,"$isActiveLive$",i),u=()=>C(V,"$bufferedProgress$",i),y=()=>C(fe,"$disabledControls$",i),w=m(e,"showTimeline",3,!1),x=m(e,"withEpisodes",3,!0),S=m(e,"ref",15,void 0),T=Ee(),E=Et(),V=T.state.bufferedProgress$,k=T.state.positionWithScrubbing$,I=T.state.duration$,R=T.state.isLive$,Y=T.state.isActiveLive$,H=T.ui.isMobile,F=E.features.episodes&&x()?T.actions.internal.getVideoEpisodes():void 0,W=T.actions.internal.getPreviewThumbsData(),J=T.state.interactiveEpisodes$,G=T.state.isInteractive,ce=T.state.isInteractiveTime$,ie=T.state.isInteractiveExpectation$,ue=T.actions.internal.correctSeekTimeToInteractive,$e=(ae=T.callbacks)==null?void 0:ae.onDisabledTimelineClick,fe=T.ui.controls.disabledControls$,ke=(qe=(Re=T.callbacks)==null?void 0:Re.uiInfo)==null?void 0:qe.onTimelineMouseEnter,ne=(je=(Le=T.callbacks)==null?void 0:Le.uiInfo)==null?void 0:je.onTimelineMouseLeave,Ve=T.ui.t,re=E.features.interactiveResponsiveUi,N=g(()=>G?n():F),Be=g(()=>_n(s())),le=g(()=>_n(l())),ve=g(()=>l()/s()),te=g(()=>d()||a()),me=j(!1),De=j(""),pe=j(0),st=j(0),Z=j(0),Ae=g(()=>({containerWidth:r(st),translateXPx:r(pe),translateYPx:G&&W?-36:-16,active:r(me)&&w()&&!r(te)&&!re,pointer:!E.features.timelinePreview||!W||p()})),Ie=Ve("aria_timeline"),ze=g(()=>Ve("aria_timeline_value",{position:r(le),duration:r(Be)}));function at(Oe){return!ue||!G?Oe:ue(Oe*s())/s()}function ft(Oe){T.actions.internal.startScrubbing(at(Oe))}function mt(Oe){a()||T.actions.internal.progressScrubbing(at(Oe))}function wt(Oe){T.actions.internal.completeScrubbing(at(Oe)),O(me,!1)}function Ge(Oe,Je,At){qt(Oe,Je,At),O(me,!0)}function Bt(Oe,Je,At){qt(Oe,Je,At),O(me,!0)}function Xt(){O(me,!1)}function qt(Oe,Je,At){O(Z,at(Oe),!0),O(pe,Je,!0),At&&O(st,At,!0),O(De,Ut(Oe),!0)}function Ut(Oe){let Je=_n((p()?1-Oe:Oe)*s());return p()?`-${Je}`:Je}var oe=N2(),Dt=ge(oe);Hf(Dt,vs(()=>r(Ae),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(Oe,Je)=>{var At=We(),zt=ge(At);{var et=vi=>{Ff(vi,{get time(){return r(De)},get isMobile(){return f()},get videoEpisodes(){return r(N)},get previewThumbsData(){return W},get progress(){return r(Z)},get duration(){return s()},get isInteractive(){return G}})},$i=vi=>{var tt=R2(),ii=_(tt,!0);h(tt),B(()=>be(ii,r(De))),$(vi,tt)};L(zt,vi=>{E.features.timelinePreview&&W&&!p()?vi(et):vi($i,!1)})}$(Oe,At)},$$slots:{default:!0}}));var he=P(Dt,2);let we=g(()=>y().has("TIMELINE"));_a(he,{className:"timeline-slider",get isActiveLive(){return v()},get isMobile(){return f()},get ariaLabel(){return Ie},ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return l()},get ariaValueText(){return r(ze)},get loadedProgress(){return u()},get filledProgress(){return r(ve)},get handleProgress(){return r(ve)},get videoEpisodes(){return r(N)},onPointerDown:ft,onHandleMove:mt,onPointerMove:Bt,onPointerUp:wt,onPointerEnter:Ge,onPointerLeave:Xt,get onMouseEnter(){return ke},get onMouseLeave(){return ne},get onDisabledClick(){return $e},get isInteractive(){return G},get disabled(){return r(we)},get hideHandel(){return a()},testId:"progress_bar",onContextMenu:wt,get ref(){return S()},set ref(Oe){S(Oe)}}),$(t,oe),z(),o()}var B2={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 bd(t,e){U(e,!0),q(t,B2);let[i,o]=He(),n=()=>C(a,"$isMobile",i),s=m(e,"position",3,0),l=m(e,"duration",3,0),d=Ee(),a=d.ui.isMobile,p=d.ui.t,f=g(()=>_n(l())),v=g(()=>_n(s())),u=g(()=>s()/l()),y=g(()=>p("aria_timeline_value",{position:r(v),duration:r(f)})),w=g(()=>Math.round(r(u)*100));_a(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return r(w)},get ariaValueText(){return r(y)},get filledProgress(){return r(u)},hideHandel:!0,get squareBorders(){return n()}}),z(),o()}var D2=M("<div><!></div>"),H2=M("<div></div>"),F2={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 ba(t,e){U(e,!0),q(t,F2);let[i,o]=He(),n=()=>C(S,"$isLive$",i),s=()=>C(V,"$isMobile",i),l=()=>C(k,"$disabled",i),d=()=>C(E,"$adPosition",i),a=()=>C(T,"$adDuration",i),p=m(e,"isAds",3,!1),f=m(e,"isHidden",3,!1),v=m(e,"timelineNotAvailable",3,!1),u=m(e,"needPadding",3,!0),y=m(e,"ref",15,void 0),w=Ee(),x=Et(),S=w.state.isLive$,T=w.ads.duration,E=w.ads.position,V=w.ui.isMobile,k=se(!1),I=g(()=>!v()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||p()));var R=We(),Y=ge(R);{var H=W=>{var J=D2();let G;var ce=_(J);{var ie=$e=>{bd($e,{get position(){return d()},get duration(){return a()}})},ue=$e=>{Uf($e,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return r(I)},get withEpisodes(){return e.withEpisodes},get ref(){return y()},set ref(fe){y(fe)}})};L(ce,$e=>{p()?$e(ie):$e(ue,!1)})}h(J),ms(J,()=>nl(f()&&x.features.usePerformanceFix,k,x.disableInvisibleComponentsTimeout)),B($e=>G=ee(J,1,"timeline svelte-41cp6d",null,G,$e),[()=>({withoutPadding:!u(),mobile:s(),"out-of-flow":l()})]),$(W,J)},F=W=>{var J=H2();let G;B(ce=>G=ee(J,1,"timeline-stub svelte-41cp6d",null,G,ce),[()=>({mobile:s()})]),$(W,J)};L(Y,W=>{r(I)?W(H):W(F,!1)})}$(t,R),z(),o()}import{noop as W2}from"@vkontakte/videoplayer-shared/es2018";var U2=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"></path></svg>');function zf(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=U2();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(3),h(o),$(t,o)}var z2=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708" clip-rule="evenodd" opacity=".7"></path></svg>');function Wf(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=z2();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var K2=M('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),q2=M('<span class="text svelte-1yhs2ga"> </span>'),Q2=M('<span class="text count svelte-1yhs2ga"> </span>'),G2=M("<!> <!>",1),j2={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 $d(t,e){var ie,ue,$e;U(e,!0),q(t,j2);let[i,o]=He(),n=()=>C(w,"$currentGridType$",i),s=()=>C(x,"$openedByKeyboard$",i),l=()=>C(S,"$panelOpened$",i),d=()=>C(T,"$isMobile",i),a=m(e,"position",3,0),p=m(e,"duration",3,0),f=m(e,"timeCodes",19,()=>[]),v=Ee(),u=(ue=(ie=v.callbacks)==null?void 0:ie.onEpisodeChanged)!=null?ue:W2,y=!!(($e=v.callbacks)!=null&&$e.onEpisodeClicked),w=v.ui.currentGridType$,x=v.ui.episodes.openedByKeyboard$,S=v.ui.episodes.panelOpened$,T=v.ui.isMobile,E=v.ui.t,V=j(void 0),k=fe=>{var ne,Ve,re;if(!!((ne=v.callbacks)!=null&&ne.onEpisodeClicked)){let N=Os(fe);x.set(N),S.set(!0),(re=(Ve=v.callbacks)==null?void 0:Ve.onEpisodeClicked)==null||re.call(Ve,N)}},I=j(null),R=g(()=>a()/p());Ke(()=>{var ke;let fe=au(r(R),p(),f());fe?((ke=r(I))==null?void 0:ke.time)!==fe.time&&(u(fe),O(I,fe,!0)):O(I,null)});let Y=g(()=>{var fe;return((fe=r(I))==null?void 0:fe.text)||""}),H=g(()=>Zi(n(),"xl")?"FULL":Zi(n(),"m")&&l1(n(),"xl")?"COUNT":"SHORT"),F=g(()=>`${E("tooltip_episodes")}: ${r(Y)}`),W=async(fe,ke,ne)=>{await Co(),(fe==null?void 0:fe.getAttribute("aria-expanded"))==="false"&&ke&&!ne&&yt(()=>{x.set(!1),fe.focus()})};Ke(()=>{W(r(V),s(),l())});var J=We(),G=ge(J);{var ce=fe=>{let ke=g(()=>d()?"px-0":""),ne=g(()=>!y);Rt(fe,{get className(){var Ve;return`w-max btn-full-opacity btn-jc-l ${(Ve=r(ke))!=null?Ve:""}`},testId:"btn-episodes",click:k,get disabled(){return r(ne)},get ariaExpanded(){return l()},get ariaLabel(){return r(F)},get ref(){return r(V)},set ref(Ve){O(V,Ve,!0)},children:(Ve,re)=>{var N=We(),Be=ge(N);{var le=te=>{var me=K2(),De=ge(me),pe=_(De,!0);h(De);var st=P(De,2),Z=_(st);Wf(Z,{}),h(st),B(()=>be(pe,r(Y))),$(te,me)},ve=te=>{var me=G2(),De=ge(me);zf(De,{});var pe=P(De,2);{var st=Ae=>{var Ie=q2(),ze=_(Ie,!0);h(Ie),B(()=>be(ze,r(Y))),$(Ae,Ie)},Z=(Ae,Ie)=>{{var ze=at=>{var ft=Q2(),mt=_(ft,!0);h(ft),B(()=>be(mt,f().length)),$(at,ft)};L(Ae,at=>{r(H)==="COUNT"&&at(ze)},Ie)}};L(pe,Ae=>{r(H)==="FULL"?Ae(st):Ae(Z,!1)})}$(te,me)};L(Be,te=>{d()?te(le):te(ve,!1)})}$(Ve,N)},$$slots:{default:!0}})};L(G,fe=>{r(I)&&fe(ce)})}$(t,J),z(),o()}import{debounceFn as T1}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as oy,PlaybackState as xd,Player as ny,PredefinedQualityLimits as ss,VideoFormat as wd,clientChecker as ry}from"@vkontakte/videoplayer-core/es2018";import{assertNonNullable as or,getHighestQuality as sy,InterfaceLanguage as ay,isInvariantQuality as ly,isNonNullable as dy,loadVKLangPack as cy,Logger as uy,map as b1,merge as py,Observable as $1,Subject as vu,Subscription as Yf,TracerFactory as fy,ValueSubject as my,VideoQuality as vy,devNull as gy,now as hy,filter as _y,once as by}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as bs}from"@vkontakte/videoplayer-statistics/es2018";import{detectEmbed as Y2,devNull as Yt,now as Zt}from"@vkontakte/videoplayer-shared/es2018";import{addScript as Z2,Subject as en,clearVideoElement as X2}from"@vkontakte/videoplayer-shared/es2018";var f1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var J2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",lu=class{constructor(e,i){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new en,loadStarted$:new en,loadEnded$:new en,loadError$:new en,ready$:new en,slotRequested$:new en,started$:new en,timeRemained$:new en,paused$:new en,resumed$:new en,ended$:new en,empty$:new en,skipped$:new en,clicked$:new en,closed$:new en,error$:new en};this.loadAdman=e=>(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[Zt()]}),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?(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[Zt()]}),i(),this.events.loadEnded$.next()):(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[Zt()]}),o())};Z2(J2,e,this.loadTimeout).then(()=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[Zt()]}),window.AdmanHTML?(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[Zt()]}),i(),this.events.loadEnded$.next()):(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[Zt()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout))}).catch(l=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[Zt()]}),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?(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[Zt()]}),i(),this.events.loadEnded$.next()):(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[Zt()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[Zt()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[Zt()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[Zt()]}),!d&&(window.AdmanHTML?(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[Zt()]}),i(),this.events.loadEnded$.next()):(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[Zt()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout)))},l).finally(()=>{clearTimeout(n),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[Zt()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[Zt(),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;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),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;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),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(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[Zt()]}),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;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),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;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),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")=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[Zt()]}),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"),Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[Zt()]}),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(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[Zt(),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:p={},duration:f,previewParam:v}=e,u,y=this.playerState&&xe(this.playerState.vsid);y&&(this.isVsidOriginal?u=y:u=parseInt(y,36));let{isEmbed:w,immediateOrigin:x}=Y2(),S=(V=w?x:window.location.href)!=null?V:window.location.href,T={...p,dl:encodeURIComponent(S),autoplay:s?1:0,player_width:i,player_height:o,preview:v,...u?{request_id:u}:{},duration:f,...this.usePuid?{puid10:f1(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){Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(k)],numbers:[Zt()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,s;if(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[Zt()]}),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(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),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(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[Zt()]}),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(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),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(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),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(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),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(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),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,p,f,v,u;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[Zt()]}),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),(p=this.adman)==null||p.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(v=this.adman)==null||v.onError(void 0),(u=this.adman)==null||u.destroy(),this.videoElement&&X2(this.videoElement),this.isDestroyed=!0}};var m1=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 Kf=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 p=new du,{startTime:f,endTime:v}=p.parse(a);l.startTime=f,l.endTime=v}else if(a.trim()!==""){let p=new qf,{texts:f}=p.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},du=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}},qf=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 p=["<",">"].reduce((f,v)=>{let u=l.indexOf(v,d);return f===-1||f>u?u:f},-1);if(p===-1){a.push(l.substring(d));break}a.push(l.substring(d,p)),d=p+1}return a}}),s=new du;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=Kf;import{isNonNullable as Qf}from"@vkontakte/videoplayer-shared/es2018";var $a,Ti,Gf=0,jf=!1,g1="",h1=(t,e=0,i=0)=>t<e&&t<i,cu=(t,e=0,i=0)=>t>=e&&t<=i,ey=(t,e=0,i=0)=>t>e&&t>i,_1=(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:p,endTime:f})=>cu(t,p,f));let s=t>=Gf,l=t<Gf;if(Gf=t,l&&(jf=!1),Qf($a)&&cu(t,$a.startTime,$a.endTime)&&g1===e.value)return $a;if(!Qf(Ti)&&(n!=null&&n.length)&&!jf){Ti=n.find(({startTime:p,endTime:f})=>cu(t,p,f)||s&&h1(t,p,f)),$a=void 0,!Qf(Ti)&&n[n.length-1].endTime<t&&(jf=!0);return}else{if(cu(t,Ti==null?void 0:Ti.startTime,Ti==null?void 0:Ti.endTime))return $a=Ti,Ti=void 0,g1=e.value,$a;(s&&ey(t,Ti==null?void 0:Ti.startTime,Ti==null?void 0:Ti.endTime)||l&&h1(t,Ti==null?void 0:Ti.startTime,Ti==null?void 0:Ti.endTime))&&(Ti=void 0)}};var uu={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"},ty={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"},yd=t=>{var e,i;return(i=(e=uu[t])!=null?e:uu[ty[t]])!=null?i:void 0};import{Subscription as iy}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-statistics/es2018";var pu=class{constructor(e,i,o,n=new iy){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 fu=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(fu||{});var rs=t=>t!=null?t:0,_s=(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(rs(i==null?void 0:i.top)-rs(o==null?void 0:o.top)),left:Math.round(rs(i==null?void 0:i.left)-rs(o==null?void 0:o.left)),bottom:Math.round(rs(i==null?void 0:i.bottom)-rs(o==null?void 0:o.top)),right:Math.round(rs(i==null?void 0:i.right)-rs(o==null?void 0:o.left))}},ul=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:rs(e==null?void 0:e.width),height:rs(e==null?void 0:e.height)}};var mu="off";var y1=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:s,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:p,videoEpisodes:f,previewThumbsData:v,uiConfig:u,coreConfig:y,player:w,disabledControls:x,isInteractive:S,interactiveRanges$:T,isInteractiveTime$:E,replayInteractive:V,stopPlayer:k,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:R,additionalButtons:Y,additionalSettingsMenuItems:H,additionalContextMenuItems:F,playPrevVideo:W,playNextVideo:J,looped:G=!1,statistics:ce,saveRate:ie,internalsExposure:ue,playerView:$e,playerId:fe})=>{var fv,mv,vv;let ke={...y,configName:[...(fv=y.configName)!=null?fv:[],"ui"],isAudioDisabled:l,live:{...(mv=y.live)!=null?mv:{},isLiveCatchUpMode:!!n}},ne=u,Ve=fy.createRootTracer(ne.features.tracer),re=Ve.createComponentTracer("Store"),N=w||new ny(ke,Ve,{playerId:fe});ue==null||ue.expose({corePlayer:N});let Be=new uy,le=new lu(Be,{loadTimeout:ne.ads.loadTimeout,initTimeout:ne.ads.initTimeout,runtimeTimeout:ne.ads.runtimeTimeout,useAdmanFromNPM:ne.ads.useAdmanFromNPM,volumeMultiplier:ne.ads.volumeMultiplier,isVsidOriginal:ne.ads.isVsidOriginal,usePuid:ne.ads.usePuid}),ve=da.getInstance(),te=p==null?void 0:p.pictureInPictureApi,me=p==null?void 0:p.annotationsApi,De=p==null?void 0:p.slotsApi,pe=Be.createComponentLog("Store"),st,Z,Ae={},Ie=new Oc,ze=new Yf,at=ce&&ce.oneStat?ti(ce.oneStat.vsid$):hr(void 0),ft=se(Vs()),mt=se(!1),wt=(vv=te==null?void 0:te.info.isActive$)!=null?vv:new my(!1),Ge=se(0),Bt=se(!1),Xt=se(!1),qt=se([]),Ut=py(N.events.fatalError$,N.events.managedError$).subscribe(c=>qt.update(b=>[...b,c])),oe=hr(!1,c=>{let b=N.events.fatalError$.subscribe(()=>c(!0));return()=>b.unsubscribe()}),Dt=async c=>{var X;let b=Object.values(ay).includes(c);if(ne.downloadVKLanguages&&(b&&ne.updateBuiltinLanguages||!ef(c))){let Se;try{Se=await cy(c,th,ih)}catch(nt){(X=ce==null?void 0:ce.oneStat)==null||X.logError({errorType:"VKLangPack",fatal:!1}),ve==null||ve.report(nt,{errorType:"VKLangPack",fatal:!1})}Se&&(Jp({language:c,pack:Se,fallback:ne.defaultLanguage}),he.set(c))}ef(c)&&he.set(c)},he=se(t),we=se(e);Dt(t);let ae=(c,b)=>{let A=xe(he);return tf(A,c,b,ne.defaultLanguage)},Re=se("thumb");Re.subscribe(c=>{c==="ads"&&N.info.playbackState$.getValue()&&je()});let qe=(()=>{let c=xi([oe,Re],([b,A])=>b?"crashed":A);return{...c,is:b=>xe(c)===b}})(),Le=se(),je=()=>{Le.set({muted:N.info.muted$.getValue()})},Oe=(()=>{let c=se(new Set(x));return{...c,add:b=>{c.update(A=>new Set([...A].concat(b)))},remove:b=>{c.update(A=>{let X=[...A];return new Set(Array.isArray(b)?X.filter(Se=>!b.includes(Se)):X.filter(Se=>Se!==b))})},includes:b=>{let A=xe(c);return Array.isArray(b)?b.every(X=>A.has(X)):A.has(b)}}})(),Je=se({width:0,height:0});re.log("create store"),pe({message:"create store"});let At=c=>{let b=c.container,A=()=>{Qt=new MutationObserver(Se=>{let{removedNodes:nt}=Se[0];nt.length&&b.append(N.experimental.element$.getValue())}),Qt.observe(b,{childList:!0})},X=N.experimental.element$.getValue();if(X)b.append(X),A();else{let Se=N.experimental.element$.pipe(_y(nt=>!!nt),by()).subscribe(nt=>{b.append(nt),A()});ze.add(Se)}},zt=c=>{pe({message:`init video, config: ${JSON.stringify(c)}`}),S?At(c):(gy.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[hy()]}),N.initVideo(c)),re.log("init video",{isInteractive:S}),c.subtitles&&N.setExternalTextTracks(c.subtitles),st=c},et=new vu,$i=c=>et.next(c),vi=new vu,tt=new vu,ii=new vu,Qt=null,gi={actionRewind$:vi,actionSeek$:tt,inPiP$:wt,inFullscreen$:new $1(c=>ft.subscribe(b=>c.next(b))),actionSetSubtitle$:ii,nextMovie$:et},Io={actionSeek$:tt,playerSize$:new $1(c=>Je.subscribe(b=>c.next(b)))};if(ce){let{oneStat:c,thinOneStat:b,mediascopePixel:A,statSubscription:X}=ce;c&&(S||X.add(c.attachTo(N)),X.add(c.attachToUi(gi)),X.add(c.attachToAds(le.events)),c.authorize(s).catch(Se=>{pe({message:`onestat auth error ${String(Se)}`})}),A&&A.attachTo(N)),b&&(X.add(b.attachTo(N,le.events)),X.add(b.attachToUi(Io)),X.add(b.attachToAds(le.events)),b.authorize(s))}if(ve){let c=new Yf,b=(A,X)=>c.add(A.subscribe(X));if(b(N.events.managedError$,A=>{ve.logIError(A)}),b(N.events.fatalError$,A=>{ve.logIError(A,!0)}),ce){let{oneStat:A}=ce;A&&b(A.experimental.error$,X=>{ve.logIError(X)})}ve.sentrySubscription.add(c)}let vo=()=>{if(ry.device.isIOS&&Z)try{Fh(Z)}catch(c){pe({message:`exitIosSafariFullscreen failed: ${c}`})}};ze.add(N.experimental.element$.subscribe(c=>{c&&(Z=c,c.classList.add("player-media"),ua(te)&&te.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;vo(),(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(async()=>{var b,A;ua(te)&&await(te==null?void 0:te.revealPictureInPicture());let c=N.info.muted$.getValue();(b=a==null?void 0:a.onStarted)==null||b.call(a),(A=Ae.onStarted)==null||A.call(Ae,c)})).add(N.events.willSeek$.subscribe(({from:c,to:b})=>{var A;(A=a==null?void 0:a.onSeek)==null||A.call(a,c,b)})).add(N.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=a==null?void 0:a.onAutoplaySoundProhibited)==null||c.call(a)})).add(N.info.position$.subscribe(c=>{var A;let b=N.info.duration$.getValue();isFinite(b)&&b>0&&((A=a==null?void 0:a.onTimeupdate)==null||A.call(a,b,c),le.setPosition(c,b))})).add(N.events.fatalError$.subscribe(c=>{var b;(b=a==null?void 0:a.onCrashed)==null||b.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.fetcherRecoverableError$.subscribe(c=>{var b;(b=a==null?void 0:a.onRecoverableError)==null||b.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.loadedMetadata$.subscribe(()=>{Bt.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{Xt.set(c)})).add(N.info.isEnded$.subscribe(c=>{S&&(c?(E!=null&&E.getValue()&&Oe.add(Gl),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(le.events.loadStarted$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:b.call(c)})).add(le.events.loadEnded$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:b.call(c)})).add(le.events.loadError$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadError)==null?void 0:b.call(c)})).add(le.events.init$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onInit)==null?void 0:b.call(c)})).add(le.events.ready$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onReady)==null?void 0:b.call(c)})).add(le.events.started$.subscribe(c=>{var b,A;return(A=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onStarted)==null?void 0:A.call(b,c)})).add(le.events.timeRemained$.subscribe(c=>{var b,A;return(A=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onTimeRemained)==null?void 0:A.call(b,c)})).add(le.events.ended$.subscribe(c=>{var b,A;return(A=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onCompleted)==null?void 0:A.call(b,c)})).add(le.events.empty$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onEmpty)==null?void 0:b.call(c)})).add(le.events.clicked$.subscribe(c=>{var b,A;return(A=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onClicked)==null?void 0:A.call(b,c)})).add(le.events.closed$.subscribe(c=>{var b,A;return(A=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onClosed)==null?void 0:A.call(b,c)})).add(le.events.error$.subscribe(c=>{var b,A;return(A=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onError)==null?void 0:A.call(b,c)})).add(le.events.paused$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onPaused)==null?void 0:b.call(c)})).add(le.events.resumed$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onResumed)==null?void 0:b.call(c)}));let Ot=new Yf,ri=()=>{var nt,Mt,Lt;let{debugLog:c}=ne,b,A="#9df7b7",X="#efd169";if(c&&c!==!0){let{colors:Nt}=c;b=c.tag,A=(nt=Nt==null?void 0:Nt[0])!=null?nt:A,X=(Lt=(Mt=Nt==null?void 0:Nt[1])!=null?Mt:Nt==null?void 0:Nt[0])!=null?Lt:X}let Se=b?`: ${b}`:"";Ot.add(N.events.log$.subscribe(Nt=>{console.debug(`%c sdk${Se} `,`background:${A};`,`sdk component: ${Nt.component}`,Nt.message)})).add(Be.log$.subscribe(Nt=>{console.debug(`%c ui${Se} `,`background:${X};`,`ui component: ${Nt.component}.`,Nt.message)}))},on=()=>{Ot.unsubscribe()},It=(c,b)=>{re.log("start camera manual rotation",{mx:c,my:b}),N.startCameraManualRotation(c,b)},ct=(c=!1)=>{re.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},hi=(c,b,A)=>{re.log("move camera focus px",{xpx:c,ypx:b,dt:A}),N.moveCameraFocusPX(c,b,A)},ko=()=>{N.holdCamera()},Ui=()=>{N.releaseCamera()},oi=hr(N.info.position$.getValue(),c=>{let b,A,X=()=>{let Se=N.info.playbackState$.getValue(),nt=N.info.isLive$.getValue(),Mt=N.info.duration$.getValue(),Lt=N.info.position$.getValue();if(Se&&[xd.PLAYING,xd.PAUSED].includes(Se)){let Nt=nt?Lt-Mt:N.getExactTime();Nt!==A&&c(Nt),A=Nt}b=requestAnimationFrame(X)};return X(),()=>cancelAnimationFrame(b)}),Wo=ti(N.info.playbackState$),Dn=ti(N.info.currentBuffer$),D=ti(N.info.isEnded$),Ue=ti(N.info.isLive$),ut=ne.features.playbackRate?ti(N.info.canChangePlaybackSpeed$):hr(!1),Ht=ti(N.info.liveBufferTime$),dt=ti(N.info.volume$),ai=ti(N.info.muted$),li=Bc(N.info.predefinedQualityLimitType$.pipe(b1(c=>c===ss.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===ss.TRAFFIC_SAVING),go=Bc(N.info.predefinedQualityLimitType$.pipe(b1(c=>c===ss.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===ss.HIGH_QUALITY),di=ti(N.info.autoQualityLimitingAvailable$),$t=ti(N.info.availableQualities$),Mi=ti(N.info.availableQualitiesFps$),Po=ti(N.info.chromecastState$),Hn=ti(N.info.chromecastDeviceName$),Li=ti(N.info.currentFormat$),Ji=ti(N.info.throughputEstimation$),Ao=ti(N.info.videoBitrate$),bn=ti(N.info.intrinsicVideoSize$),$n=ti(N.info.duration$),Ei=ti(N.info.isAudioAvailable$),zi=null,Ko=N.info.isBuffering$,qo=hr(Ko.getValue(),c=>{let b=Ko.subscribe(A=>{A&&zi===null?zi=window.setTimeout(()=>{c(Ko.getValue()),zi=null},ne.loaderDelay):c(A)});return()=>{b.unsubscribe(),zi&&clearTimeout(zi)}}),nn=()=>{zi&&clearTimeout(zi),zi=null},rn=xi([$n,Ue],([c,b])=>b?-c:c),Ur=xi([Wo],([c])=>c===xd.PLAYING),Fn=ti(N.info.atLiveEdge$),br=ti(N.info.atLiveDurationEdge$),nr=ti(N.info.position$),$r=xi([nr,$n],([c,b])=>isFinite(c)&&isFinite(b)&&!!b),sn=xi([Po],([c])=>c===oy.CONNECTED),rr=ti(N.info.availableVideoStreams$),eo=ne.features.audioLanguages?ti(N.info.availableAudioStreams$):hr([]),Qo=ti(N.info.currentVideoStream$),Un=ti(N.info.currentAudioStream$),yn=c=>{c.language&&jp(c.language),N.setVideoStream(c)},yr=(c,b)=>{N.setAudioStream(c),Ft(b)&&(c.language&&jp(c.language),ne.features.userVideoPrefs&&i&&Xp(ne.userSalt,String(i),{audioTrackId:c.id}))},zn=c=>{let b;if(c.length===1&&(b=c.at(0)),b!=null||(b=c.find(X=>"isDefault"in X&&X.isDefault)),ne.features.userVideoPrefs&&i){let X=zc(ne.userSalt,String(i));if(X!=null&&X.audioTrackId){let Se=c.find(nt=>nt.id===X.audioTrackId);b=Se!=null?Se:b}}let A=Th();return A&&(b!=null||(b=c.find(({language:X})=>A===X))),b!=null||(b=c.at(0)),b},sr=!1;ze.add(N.info.availableAudioStreams$.subscribe(c=>{if(!sr&&c.length){let b=zn(c);b&&(N.setAudioStream(b),sr=!0)}}));let xr=!1;ze.add(N.info.availableVideoStreams$.subscribe(c=>{if(!xr&&c.length){let b=zn(c);b&&(N.setVideoStream(b),xr=!0)}}));let xn=se(void 0),Wn=ti(N.info.isAutoQualityEnabled$,c=>c&&xn.set(void 0)),wr=ti(N.info.currentQuality$,()=>xn.set(void 0)),Sr=xi([xn,wr],([c,b])=>c!=null?c:b),lo=xi(Li,c=>c!==wd.MPEG),pt=xi([$t,Mi,Wn,Sr,lo],([c,b,A,X,Se])=>{let nt=[];Se&&nt.push({value:"auto",displayValue:ae("auto_quality_option"),selected:A});let Mt=c.filter(Lt=>!ly(Lt));for(let Lt of Mt){let Nt=b[Lt];nt.push({value:Lt,displayValue:`${Lt}${Nt?m1(Nt):""}`,selected:A?!1:Lt===X})}return nt}),Jt=ti(N.info.currentPlaybackRate$),an=xi([Jt,Fn,br],([c,b,A])=>{let X=A||S?1:ne.controls.playbackRateMin,Se=b?1:ne.controls.playbackRateMax,nt=ne.controls.playbackRateStep,Mt=[];for(let Lt=X;Lt<=Se;Lt+=nt)Mt.push({value:Lt,displayValue:Lt===1?ae("playback_rate_1"):ae("playback_rate",{multiplier:Lt.toString(10)}),selected:c===Lt});return Mt}),Ii={displayValue:ae("subtitles_off"),value:mu,language:""},Wi=se({...Ii}),Go=ne.features.subtitles?ti(N.info.availableTextTracks$):hr([]),jo=gh(),ho=xi([Go,Wi],([c,b],A)=>{var nt;let X=[],Se=c.find(({id:Mt})=>Mt===b.value);if(Se!=null&&Se.url){let[,Mt]=(nt=jo.find(Se.url))!=null?nt:[];if(Mt){A(Mt);return}Ie.download(Se.url).then(Lt=>{if(!Lt||Ie.isDestroyed())return;let Nt=new v1,Ss=Se.language;if(Ss){let v0=!!Se.isAuto,g0=Nt.parse(Lt,Ss);X.push({lang:Ss,subtitles:g0,isAuto:v0,id:Se.id})}jo.add(Se.url,X),xe(Wi).value===b.value&&A(X)}).catch(Lt=>{var Nt;(Nt=ce==null?void 0:ce.oneStat)==null||Nt.logError({errorType:"Subtitles download",fatal:!1}),ve==null||ve.report(Lt,{errorType:"Subtitles download",fatal:!1})})}A(X)}),Kn=xi([Jt,Ur,Wi],([c,b,A],X)=>{let Mt;if(N.info.isLive$.getValue()&&b&&A.value!==Ii.value){let Nt=()=>{let Ss=1e3/(3*c);Mt=setTimeout(Nt,Ss),X(Date.now())};return Nt(),()=>clearTimeout(Mt)}}),ln=xi([Go,Wi],([c,b])=>{if(!c.length)return[];let A=[];for(let{language:X,isAuto:Se,id:nt}of c){let Mt=X&&yd(X);X&&Mt&&A.push({displayValue:Se?ae("subtitles_auto",{language:Mt}):Mt,value:nt,selected:(b==null?void 0:b.value)===nt,isAuto:Se,language:X})}return A.length?(A.unshift({...Ii,selected:(b==null?void 0:b.value)===Ii.value}),A):[]}),Mo={available:[],prev:[]},zr=()=>{var b,A;let c=N.experimental.getCurrentTime$.getValue();return(A=(b=c==null?void 0:c())!=null?b:Z==null?void 0:Z.currentTime)!=null?A:0},Wr=xi([oi,Wi,ho,Kn],([c,b,A,X])=>{var nt;let Se=N.info.isLive$.getValue();if(Se&&Mo.prev!==A){let Mt=A.find(({id:Nt})=>Nt===b.value),Lt=Mo.prev.find(({id:Nt})=>Nt===b.value);if(Mt){let Nt={...Mt,subtitles:[...(nt=Lt==null?void 0:Lt.subtitles)!=null?nt:[],...Mt.subtitles]};Mo.available=[Nt],Mo.prev=A}}if(b&&b.value!==Ii.value){let Mt=Se?zr():c,Lt=Se?Mo.available:A;return _1(Mt,b,Lt,Se)}}),Cr=xi([Wr],([c])=>c!=null&&c.texts?c.texts:[]);ze.add(Wi.subscribe(c=>{var b,A;if(c.value===Ii.value)(b=a==null?void 0:a.onSubtitleOff)==null||b.call(a);else{let X=Object.entries(uu).find(([Se,nt])=>nt===c.displayValue);(A=a==null?void 0:a.onSubtitleOn)==null||A.call(a,X?X[0]:"",c.value)}}));let Kr=se(!0),qn=xi([Dn,rn,nr,Ht],([c,b,A,X])=>{var Lt;let Se=(Lt=c==null?void 0:c.end)!=null?Lt:0;if(!X)return Se/b;let Mt=-A+X-b;return(Se-Mt)/b}),ar=ti(N.info.availableSources$),lr=xi([ar],([c])=>Object.keys((c==null?void 0:c[wd.MPEG])||{}).length>0),_o=()=>{var A,X,Se;let c=Object.keys(((X=(A=N.info.availableSources$)==null?void 0:A.getValue())==null?void 0:X[wd.MPEG])||{}),b=sy(c)||vy.Q_144P;return(Se=st.sources[wd.MPEG])==null?void 0:Se[b]},jt=()=>{var b;let c=_o();if(c)re.log("download video",{url:c}),fh(c,((b=st==null?void 0:st.meta)==null?void 0:b.title)||"video");else{let A="There is no URL for download video";re.log("download video",{message:A}),pe({message:A})}},co=()=>{pe({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?Ki(vt(),!1):Ri(!c,!1)},Tr=()=>{var c;if(kt.ui.settingsMenu.visible$.set(!1),!xe(kt.ui.settingsSubMenu.visible$)){let b=xe(kt.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&b){let X=ul(b),Se={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:X,position:Se,name:"settings"})}}re.log("close settings menu")},as=async(c,b=()=>Promise.resolve())=>{var Se;kt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),kt.ui.settingsMenu.visible$.set(!0),await b();let A=xe(kt.ui.settingsMenu.ref$),X=Ws();if((Se=a==null?void 0:a.uiInfo)!=null&&Se.onSettingsMenu&&A&&X){let Mt=ul(A),Lt=_s(A,X);a.uiInfo.onSettingsMenu({visible:!0,size:Mt,position:Lt,name:"settings"})}re.log("open settings menu",{wasOpenedByKeyboard:c})},Er=(c,b=!1)=>{var nt;kt.ui.settingsSubMenu.visible$.set(!1);let A=xe(kt.ui.settingsMenu.ref$),X=Ws(),Se=xe(kt.ui.settingsMenu.visible$);if((nt=a==null?void 0:a.uiInfo)!=null&&nt.onSettingsMenu&&A&&X)if(Se&&!b){let Lt=ul(A),Nt=_s(A,X);a.uiInfo.onSettingsMenu({visible:!0,size:Lt,position:Nt,name:"settings"})}else{let Lt=ul(c),Nt={top:0,left:0,bottom:0,right:0},Ss=xe(kt.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:Lt,position:Nt,name:Ss})}re.log("close settings sub menu")},Vi=(c,b)=>{var X;kt.ui.settingsSubMenu.visible$.set(!0),kt.ui.settingsSubMenu.ref$.set(b),kt.ui.settingsSubMenu.name$.set(c);let A=Ws();if((X=a==null?void 0:a.uiInfo)!=null&&X.onSettingsMenu&&b&&A){let nt=ul(b),Mt=_s(b,A);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:nt,position:Mt})}re.log("open settings sub menu",{name:c})},vt=()=>{var b;let c=Math.max(ne.volumeMinRestore,(b=Dc())!=null?b:0);return c===0?ne.volumeDefault:c},Ft=c=>{let b=ne.features.savePreferredStatesOnUserActionOnly;return!b||b&&!c},Ki=(c,b)=>{let A=c===0?vt():c,X=N.info.muted$.getValue();pe({message:`set volume, volume: ${c}, preferredVolume: ${A}`});let Se=!l||qe.is("ads");X&&c>0&&Se&&(X=!1,Ft(b)&&Qp(!1)),N.setVolume(c,X),le.setVolume(c),Ft(b)&&Up(A)},Ri=(c,b)=>{let A=N.info.volume$.getValue();pe({message:`set muted, currentVolume: ${A}, mute: ${c}`});let X=qe.is("ads");if(N.setMuted(c,X),le.setVolume(c?0:A),Ft(b)&&(!X||!c)&&Qp(c),!c&&A===0){let Se=vt();N.setVolume(Se),Ft(b)&&Up(Se),le.setVolume(Se)}},bo=se(!1),to=c=>{var b,A;re.log("set looped",{isLooped:c}),bo.set(c),N.setLooped(c),(A=(b=a==null?void 0:a.uiInfo)==null?void 0:b.onLoopedChanged)==null||A.call(b,c)};to(G);let Lo=()=>{var c,b;(b=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||b.call(c)},wi=(c,b=!1)=>{var A;pe({message:`set autoplayNextEnabled, value: ${c}`}),re.log("set autoplay next enabled",{autoplayNextEnabled:c}),kt.ui.autoplayNextEnabled$.set(c),kh(c),b&&((A=a==null?void 0:a.onSetAutoplayNextEnabled)==null||A.call(a,c))},wn=c=>{pe({message:`set timerNextVideoRunning, value: ${c}`}),re.log("set timer next video running",{timerNextVideoRunning:c}),kt.ui.timerNextVideoRunning$.set(c)},dr=(c=!0)=>{var X;let b=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{b=(X=a==null?void 0:a.onPrevVideoClick)==null?void 0:X.call(a)}catch(Se){pe({message:"onPrevVideoClick callback failed to execute"})}if(!b)return;c&&Qr("prev")||W()},qr=(c=!0)=>{var X;let b=!0;if(c&&(a!=null&&a.onNextVideoClick))try{b=(X=a==null?void 0:a.onNextVideoClick)==null?void 0:X.call(a)}catch(Se){pe({message:"onNextVideoClick callback failed to execute"})}if(!b)return;c&&Qr("next")||J()},Qr=c=>{let{isMobile:b,features:{playbackStatusNextVideoShow:A,playbackStatusShow:X}}=ne;return A&&X&&!b?(kt.ui.aboutToGoNextVideo.set(c),kt.ui.userActionsDisabled.set(!0),!0):!1},Gr=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},uo=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},Sn=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},Ir=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},kr=()=>{N.prepare()},ot=()=>{or(kt);let c=xe(kt.ui.controls.disabledControls$),b=xe(kt.playerPhase),A={playerPhase:b,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(pe({message:"toggle play"}),b==="ads"){A.action="play",re.log("toggle adman play",A),le.togglePlay();return}let X=()=>{var nt;pe({message:"toggle play, call player.play"}),A.action="play",N.play(),(nt=a==null?void 0:a.onPlay)==null||nt.call(a)},Se=()=>{var nt;pe({message:"toggle play, call player.pause"}),A.action="pause",N.pause(),(nt=a==null?void 0:a.onPause)==null||nt.call(a)};if(N.info.isEnded$.getValue()){if(pe({message:"toggle play, video ended, seek to 0"}),vi.next(),tt.next(bs.REWIND),S){V==null||V();return}N.seekTime(0),X()}else N.info.playbackState$.getValue()!==xd.PLAYING?X():Se();re.log("toggle play",A)},St=(c,{changeReason:b="default",appliesTo:A="to-video"}={},X)=>{pe({message:`set quality, quality: ${c}`}),re.log("set quality",{quality:c}),N.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Se}=ne.features;Hc(),c!=="auto"?(Se?(Fc({type:"exact_quality",quality:c,videoId:i},A),N.setPredefinedQualityLimits(ss.UNKNOWN)):zp(i,c),xn.set(c),N.setQuality(c)):Se&&b==="default"&&(po("auto_quality",A,X),xe(li)&&mi(!1,void 0,X),xe(go)&&qi(!1,void 0,X))},mi=(c,b="as-default",A)=>{pe({message:`set trafficSavingEnabled, value: ${c}`}),re.log("set traffic saving enabled",{trafficSavingEnabled:c});let X=c?ss.TRAFFIC_SAVING:ss.UNKNOWN;ne.features.qualityDetailsSubMenuEnabled?($o(X,b,A),jl(!1)):(N.setPredefinedQualityLimits(X),Ft(A)&&jl(c))},qi=(c,b="as-default",A)=>{pe({message:`set highQualityEnabled, value: ${c}`}),re.log("set high quality enabled",{highQualityEnabled:c}),$o(c?ss.HIGH_QUALITY:ss.UNKNOWN,b,A)},$o=(c,b,A)=>{c!==ss.UNKNOWN&&(xe(di)&&!xe(Wn)&&St("auto",{appliesTo:b,changeReason:"limit-changed"},A),po(c,b,A)),N.setPredefinedQualityLimits(c)},po=(c,b,A)=>{Ft(A)&&(Fc({type:c,videoId:i},b),b==="as-default"&&Fc({type:c,videoId:i},"to-video"))},io=c=>{re.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),ne.features.saveRate&&ie&&!N.info.isLive$.getValue()&&Eh(c)},Vo=()=>{let c=xe(an),b=c.findIndex(({selected:X})=>X);if(b===c.length-1)return;let A=c[b+1];io(A.value)},Cn=()=>{let c=xe(an),b=c.findIndex(({selected:X})=>X);if(b===0)return;let A=c[b-1];io(A.value)},dn=(c={...Ii,selected:!1},b)=>{re.log("set subtitles",{...c}),c.value!==Ii.value&&ii.next(c.isAuto?c.value+"_auto":c.value),Wi.set(c),Ft(b)&&(Zp(c.value===Ii.value?void 0:c.language),ne.features.userVideoPrefs&&i&&Xp(ne.userSalt,String(i),{subtitleTrackId:c.value===Ii.value?void 0:c.value}))},Qi=c=>{re.log("toggle subtitles");let b=xe(Wi);(b==null?void 0:b.value)===Ii.value?cr(c):Tn(c)},yo=(c,b)=>{re.log("change subtitle",{enabled:c}),c?cr(!0,b):Tn(!0)},cr=(c,b)=>{re.log("subtitle on");let A=xe(ln),X=xe(he),Se;b&&(Se=A.find(nt=>nt.value===b)),Se!=null||(Se=A.filter(nt=>nt.value!==Ii.value).find(nt=>nt.value===X)||A[1]),dn(Se,c)},Tn=c=>{re.log("subtitle off"),dn(void 0,c)};N.info.availableTextTracks$.subscribe(c=>{var A;function b(){let X=[];for(let{language:Se,isAuto:nt,id:Mt}of c){let Lt=Se&&yd(Se);Se&&Lt&&X.push({id:Mt,language:Se,title:nt?ae("subtitles_auto",{language:Lt}):Lt})}return X}(A=a==null?void 0:a.onAvailableSubtitlesChanged)==null||A.call(a,b())});let En=se(!0),ur=c=>{En.set(c)},In=(c,b,A=!0)=>{var X;if(pe({message:`seek to time, time: ${c}`}),re.log("seek to time",{time:c,action:b,forcePrecise:A}),tt.next(b),N.info.isLive$.getValue()){let Se=N.info.duration$.getValue(),nt=Math.min(0,Se+c);N.seekTime(nt,A)}else{if(E!=null&&E.getValue())return;N.info.isEnded$.getValue()&&(pe({message:"seek after ended, call callbacks.onPlay"}),(X=a==null?void 0:a.onPlay)==null||X.call(a)),N.seekTime(pv(c),A)}},Pr=c=>{pe({message:`seek to episode start time: ${c}`}),re.log("seek to episode start time",{time:c}),In(c,bs.EPISODE,!0)},xo=(c,b)=>{pe({message:`seek to percent, percent: ${c}`}),re.log("seek to percent",{percent:c,action:b});let A=xe(rn)*c;In(A,b,!1)},kn=c=>{pe({message:`seek external, time: ${c}`}),re.log("seek external",{time:c}),tt.next(bs.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},jr=c=>{var X,Se;let b=(X=c.max)!=null?X:"none",A=(Se=c.min)!=null?Se:"none";pe({message:`set auto quality limitation. Max: ${b}. Min: ${A}`}),re.log("set auto quality limits",{max:b,min:A}),N.setAutoQualityLimits(c)},Ye=c=>{pe({message:`seek external to episode start time: ${c}`}),re.log("seek external to episode start time",{time:c}),In(c,bs.EPISODE,!0)},ei=c=>{pe({message:`set playback rate to: ${c}`}),re.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},_i=se(void 0),wo=se(!1),_e=c=>{pe({message:`start scrubbing, progress: ${c}`}),re.log("start scrubbing",{progress:c}),wo.set(!0),Tt(c)},Tt=c=>{_i.set(c)},Gt,ci,Gi=()=>{_i.set(void 0),wo.set(!1)},oo=()=>{clearTimeout(ci),clearTimeout(Gt),Gt=window.setTimeout(()=>{Gi()},500),Z==null||Z.removeEventListener("seeked",oo)},Ze=c=>{pe({message:`complete scrubbing, progress: ${c}`}),re.log("complete scrubbing",{progress:c}),xo(c,bs.SLIDER),xe(kt.ui.isMobile)&&xe(kt.state.currentFormat$)===wd.HLS?(Z==null||Z.addEventListener("seeked",oo),ci=window.setTimeout(()=>{oo()},300)):Gi()},Wt=xi([oi,rn,_i],([c,b,A],X)=>{X(dy(A)?A*b:c)}),Ni=se(!1),Ro=()=>{Ni.set(!0)},cn=()=>{Ni.set(!1)},Qn=xi([Je],([{width:c}],b)=>{let A=d1(c);b(A)}),pr=se(!1),Ar=Y.filter(c=>mh(c)),ji=xi([Qn,pr],([c,b])=>b?Ar.filter(A=>!A.hideOnMobile):Ar.filter(A=>{var X;return!((X=A.hideOnDesktopGridTypes)!=null&&X.includes(c))})),ui=se(Y.filter(c=>vh(c))),un=xi([ui,Qn],([c,b])=>c.filter(A=>{var X;return!((X=A.hideOnDesktopGridTypes)!=null&&X.includes(b))})),fr=xi([un,ji],([c,b])=>[...ne.features.additionalButtonsDesktopControlPanelRight?c.filter(A=>A.type==="desktop-control-panel-right"):[],...ne.features.additionalButtons?b.map((A,X)=>{var Se;return{id:X,weight:X,type:"desktop-control-panel-right",testId:A.testId,icon:A.iconUrl,onClick:A.onClick,ariaLabel:(Se=A.ariaLabel)!=null?Se:A.tooltip,tooltipText:A.tooltip}}):[]]),No=se(H),fo=xi([No],([c])=>ne.features.additionalSettingsMenuItems?c.map(b=>b.type==="SWITCH"?{...b,onClick:b.onChangeEnabled}:b):[]),Aa=(c,b)=>{let A=xe(ui).map(X=>X.id!==c?X:{...X,...b});ui.set(A)},_t=c=>{let b=xe(ui);if(b.some(A=>A.id===c.id)){pe({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),ui.set(b)},bt=c=>{let b=xe(ui);if(!b.some(A=>A.id===c)){pe({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}b=b.filter(A=>A.id!==c),ui.set(b)},no=c=>{tt.next(bs.LIVE),pe({message:"live switch to low latency "+c}),re.log("live switch to low latency "+c),N.setLiveLowLatency(c)},pn=(c,b)=>{let A=xe(No).map(X=>X.id!==c?X:{...X,...b});No.set(A)},Oi=c=>{let b=xe(No);if(b.some(A=>A.id===c.id)){pe({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),No.set(b)},pi=c=>{let b=xe(No);if(!b.some(A=>A.id===c)){pe({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),No.set(b)},fi=se(F),zs=xi([fi],([c])=>ne.features.additionalContextMenuItems?c:[]),Ma=(c,b)=>{let A=xe(fi).map(X=>X.id!==c?X:{...X,...b});fi.set(A)},Nu=c=>{let b=xe(fi);if(b.some(A=>A.id===c.id)){pe({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),fi.set(b)},Yd=c=>{let b=xe(fi);if(!b.some(A=>A.id===c)){pe({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),fi.set(b)},Ou=xi([pr,oe],([c,b],A)=>{A(c&&b)}),Zd=()=>{tt.next(bs.LIVE),pe({message:"switch to active live"}),re.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==xd.PLAYING&&kt.actions.internal.togglePlay()},Bu=()=>{re.log("skip adman"),le.skip()},Xd=(c=!0)=>{var X;or(kt),pe({message:`switch from ads to video, callPlay: ${c}`}),re.log("switch from ads to video",{callPlay:c}),Re.set("video"),c&&N.play(),l&&Ri(!0,!0);let b=(X=xe(Le))==null?void 0:X.muted,A=!N.info.muted$.getValue();b!==void 0&&!A&&Ri(b,!0),Le.set(void 0)},Du=()=>{or(kt),pe({message:"switch from video to ads"}),re.log("switch from video to ads"),kt.actions.internal.pause(),vo(),Re.set("ads")},Jd=c=>{or(kt);let b=c?"LiveWaitingStart":"thumb";re.log("set live waiting start",{state:c,playerPhase:b}),Re.set(b)},Hu=c=>{or(kt);let b=c?"LiveWaitingRecover":"thumb";re.log("set live waiting recover",{state:c,playerPhase:b}),Re.set(b)},ec=c=>{or(kt);let b=c?"LiveWaitingRecord":"thumb";re.log("set live waiting record",{state:c,playerPhase:b}),Re.set(b)},tc=()=>(or(kt),re.log("get debug text data"),uh(N,st,kt,Ve.getTraceId())),ic=()=>(or(kt),JSON.stringify(Ve.getFinishedSpans())),Fu=()=>(or(kt),ph(N,st,kt)),Ws=()=>Z,Uu=()=>{pe({message:"toggle chromecast"}),re.log("toggle chromecast"),N.toggleChromecast()},bl=c=>{var A;if(or(kt),N.info.isEnded$.getValue())return;let b=!c;if(xe(kt.playerPhase)==="ads"){pe({message:`pause ads, internalCall: ${b}`}),re.log("pause ads",{internalCall:b}),le.pause();return}pe({message:`pause video, internalCall: ${b}`}),re.log("pause video",{internalCall:b}),b&&((A=a==null?void 0:a.onPause)==null||A.call(a)),N.pause()},oc=c=>{var A;or(kt);let b=!c;if(xe(kt.playerPhase)==="ads"){pe({message:`play ads, internalCall: ${b}`}),re.log("play ads",{internalCall:b}),le.play();return}pe({message:`play video, internalCall: ${b}`}),re.log("play video",{internalCall:b}),b&&((A=a==null?void 0:a.onPlay)==null||A.call(a)),N.play()},zu=c=>{or(kt);let b=!c;if(xe(kt.playerPhase)==="ads"){pe({message:"player cannot be stopped during ads via external method"});return}pe({message:`player will be stopped, internalCall: ${b}`}),k==null||k()},nc=(c,b)=>{or(kt),pe({message:`first start, show ads: ${c}, internalCall: ${!b}`}),re.log("first start",{showAds:c,external:b}),c?Re.set("ads"):(Re.set("video"),b?N.play():kt.actions.internal.togglePlay())},Qe=()=>(pe({message:"getting time codes"}),f),si=()=>{let c=Qe();if(!c||[0,1].includes(c.length))return;let b=N.info.position$.getValue();return c.find(A=>A.time>b)},Oo=c=>{let b=c;b||(b=si());let A=N.info.position$.getValue();re.log("seek to next episode",{currentTime:A,...b}),b&&(pe({message:"seek to next episode"}),In(b.time,bs.EPISODE,!0))},ws=()=>{let c=Qe();if(!c||[0,1].includes(c.length))return;let b=N.info.position$.getValue(),A=c.findIndex(Se=>Se.time>b),X=A===-1?c.length-2:A-2;if(!(X<0))return c[X]},fn=c=>{let b=c;b||(b=ws());let A=N.info.position$.getValue();re.log("seek to prev episode",{currentTime:A,...b}),b&&(pe({message:"seek to prev episode"}),In(b.time,bs.EPISODE,!0))},d0=()=>(pe({message:"getting preview thumbs data"}),re.log("get preview thumbs data",{...v}),v),c0=async()=>{let c=te==null?void 0:te.isActive(),b="none";te!=null&&te.isActive()?(b="exit",await(te==null?void 0:te.exit())):(b="request",await(te==null?void 0:te.request())),re.log("toggle picture in picture",{isActive:c,action:b})},u0=(c=-90)=>{re.log("rotate video",{alphaDiff:c}),Ge.update(b=>b+c)},rc=se([]);T==null||T.subscribe(c=>{let b=[];for(let A=0;A<c.length;A++){let{range:[X,Se],subjects:nt}=c[A];A===0&&X!==0&&b.push({time:0,text:"",interactive:!1,completed:!0}),b.push({time:X/1e3,text:"",interactive:!0,completed:ne.features.interactiveTimeOpenUri?!nt.length||nt.every(Mt=>Mt.isRemoved):!nt.length}),Se!==1/0&&b.push({time:Se/1e3,text:"",interactive:!1,completed:!0})}rc.set(b)});let p0=se(!1);E==null||E.subscribe(c=>{c&&xe(wo)&&Gi()});let pv=c=>{if(!S)return c;let b=xe(rc),A=xe(rn),Se=xe(nr)/A,nt=b.find(Mt=>Mt.interactive&&!Mt.completed&&Mt.time>Se);return typeof(nt==null?void 0:nt.time)=="number"?Math.min(c,nt.time-.05):c},f0=()=>{kt.ui.episodes.panelOpened$.set(!1)},m0=()=>{re.log("destroy store"),clearTimeout(ci),clearTimeout(Gt),ze.unsubscribe(),Ot.unsubscribe(),N.destroy(),le.destroy(),ce==null||ce.destroy(),ve==null||ve.destroy(),Ut.unsubscribe(),Qt==null||Qt.disconnect(),Qt=null,Ie.destroy()},kt={interfaceLanguage$:he,isCyrillicRelatedInterface$:we,initVideo:zt,videoId:i,isClip:o,playerPhase:qe,vsid:at,state:{positionExact$:oi,positionWithScrubbing$:Wt,duration$:rn,playbackState$:Wo,isPlaying$:Ur,isLoaderVisible:qo,bufferedProgress$:qn,isLive$:Ue,canChangePlaybackSpeed$:ut,isActiveLive$:Fn,isOldestAvailableLive$:br,isRewindableLive$:$r,isEnded$:D,muted$:ai,volume$:dt,trafficSavingEnabled$:li,highQualityEnabled$:go,autoQualityLimitingAvailable$:di,availableVideoStreams$:rr,availableAudioStreams$:eo,videoStream$:Qo,audioStream$:Un,currentQuality$:Sr,isAutoQualityEnabled$:Wn,availableQualities$:pt,currentPlaybackRate$:Jt,availablePlaybackRates$:an,currentSubtitle$:Wi,availableTextTracks$:Go,availableSubtitlesList$:ln,currentSubtitleCaptions$:Cr,isAutoSubtitleCaptionVisible$:Kr,chromecastState$:Po,chromecastDeviceName$:Hn,chromecastConnected$:sn,currentFormat$:Li,throughputEstimation$:Ji,videoBitrate$:Ao,videoSize$:bn,errorLog$:qt,crashed$:oe,isAudioAvailable$:Ei,isAudioDisabled:!!l,canDownload:ne.features.download&&!!d,availableSources$:ar,hasMpegSources$:lr,isInteractive:S,showInteractiveGraph:ne.features.interactiveGraph,showSeekToInteractive:ne.features.seekToInteractive,showPlayPrevChapter:ne.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ne.features.interactiveTimeIndicator&&!!xe(rc).length,interactiveEpisodes$:rc,isInteractiveTime$:E?ti(E):se(!1),isInteractiveExpectation$:p0,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:R,looped$:bo,loadedMetadata$:Bt,isAutoQualityAvailable$:lo},ui:{t:ae,controlsVisible:se(!1),touched:se(!1),controls:{prevButton:se(void 0),playButton:se(void 0),replayButton:se(void 0),nextButton:se(void 0),playPrevChapterButton:se(void 0),seekToInteractiveButton:se(void 0),interactiveGraphButton:se(void 0),liveButton:se(void 0),time:se(void 0),episodes:se(void 0),volume:se(void 0),subtitles:se(void 0),settings:se(void 0),context:se(void 0),chromecast:se(void 0),pip:se(void 0),fullscreen:se(void 0),vkLogo:se(void 0),interactiveTimeIndicator:se(void 0),timeline:se(void 0),autoplayNextToggle:se(void 0),additionalButtons:Y.length?Y.reduce(c=>[...c,se(void 0)],[]):[],disabledControls$:Oe},modals:{hotKeyMap:{show:se(!1),data:se({title:"",closeBtnText:"",groups:[]})}},isFullscreen:ft,isFullscreenOpenedByKeyboard:mt,rotateAlpha:Ge,isAutoplay:se(!1),debugPanelVisible:se(!1),episodes:{panelOpened$:se(!1),openedByKeyboard$:se(!1)},contextMenu:{visible$:se(!1),btnRef$:se(void 0),openedByBtnKeyboard$:se(!1),openedByHotKey$:se(!1),lastActiveElem$:se(void 0),showContextMenuBtn$:se(!1),position$:se({top:0,left:0})},playerSize:Je,isMobile:pr,mobileNotReportControlHidden$:Ou,icon3DVideoVisible:se(!1),scrubbingInProgress:wo,volumeChangingInProgress:Ni,is3DVideo:Xt,currentGridType$:Qn,additionalButtonsDeprecated$:ji,additionalDesktopControlPanelRightButtons$:fr,additionalSettingsMenuItems$:fo,additionalContextMenuItems$:zs,interactiveHideMobileControls:se(!1),overlayContainer$:se(void 0),startedByKeyboard$:se(!1),autoplayNextEnabled$:se(!1),timerNextVideoRunning$:se(!0),settingsMenu:{visible$:se(!1),ref$:se(void 0),openedByBtnKeyboard$:se(!1)},settingsSubMenu:{visible$:se(!1),ref$:se(void 0),name$:se(void 0)},aboutToGoNextVideo:se(void 0),userActionsDisabled:se(!1),hiddenControls:{volume:se(!1),vkLogo:se(!1),pip:se(!1),chromecast:se(!1),settings:se(!1)},isControlsAvailable:En,controlBlocks:{topLeft:se(void 0),topRight:se(void 0),middle:se(void 0),bottom:se(void 0),bottomLeft:se(void 0),bottomRight:se(void 0)},videoTitleInfo:se(void 0)},ads:{position:se(0),duration:se(0),playbackState:se("inactive"),canSkip:se(!1),secondsToWatchBeforeSkip:se(0),postrollPassed:se(!1)},webApi:{pictureInPictureApi:te,annotationsApi:me,slotsApi:De},actions:{internal:{preload:kr,firstStart:c=>nc(c,!1),play:()=>oc(!1),pause:()=>bl(!1),togglePlay:ot,toggleMuted:co,openSettingsMenu:as,closeSettingsMenu:Tr,openSettingsSubMenu:Vi,closeSettingsSubMenu:Er,setVolume:c=>Ki(c,!1),setMuted:c=>Ri(c,!1),startVolumeChanging:Ro,stopVolumeChanging:cn,setVideoStream:yn,setAudioStream:c=>yr(c,!1),setQuality:(c,b)=>St(c,b,!1),setTrafficSavingEnabled:(c,b)=>mi(c,b,!1),setHighQualityEnabled:(c,b)=>qi(c,b,!1),setPlaybackRate:io,incrementPlaybackRate:Vo,decrementPlaybackRate:Cn,setSubtitle:c=>dn(c,!1),toggleSubtitle:()=>Qi(!1),togglePictureInPicture:c0,startScrubbing:_e,progressScrubbing:Tt,completeScrubbing:Ze,toggleChromecast:Uu,switchToActiveLive:Zd,switchFromAdsToVideo:Xd,switchFromVideoToAds:Du,skipAd:Bu,setLiveWaitingStart:Jd,setLiveWaitingRecover:Hu,setLiveWaitingRecord:ec,getDebugTextData:tc,getTraceTextData:ic,getDebugPanelData:Fu,getVideoElement:Ws,seekTime:(c,b,A)=>In(c,b,A),clearDelayedBufferingCheckTimeout:nn,seekEpisodeStartTime:Pr,seekToPercent:xo,getNextEpisode:si,seekToNextEpisode:Oo,getPrevEpisode:ws,seekToPrevEpisode:fn,startLogging:ri,stopLogging:on,startCameraManualRotation:It,stopCameraManualRotation:ct,moveCameraFocusPX:hi,holdCamera:ko,releaseCamera:Ui,getVideoEpisodes:Qe,getPreviewThumbsData:d0,downloadVideo:jt,addLanguage:Jp,setLanguage:Dt,nextMovie:$i,videoRotate:u0,correctSeekTimeToInteractive:pv,replayInteractive:V,setLooped:to,reportProblem:Lo,setAutoplayNextEnabled:wi,setTimerNextVideoRunning:wn,prevVideoClick:dr,nextVideoClick:qr,nextVideoAnnouncementShow:Gr,nextVideoAnnouncementClick:uo,nextVideoAnnouncementAuto:Sn,nextVideoAnnouncementCancel:Ir},external:{firstStart:c=>nc(c,!0),play:()=>oc(!0),pause:()=>bl(!0),stop:()=>zu(!0),seekTime:c=>kn(c),seekEpisodeStartTime:c=>Ye(c),setPlaybackRate:c=>ei(c),setAutoQualityLimits:c=>jr(c),setMuted:c=>Ri(c,!0),toggleSubtitle:()=>Qi(!0),changeSubtitle:yo,setVolume:c=>Ki(c,!0),returnFocusToEpisodes:f0,updateAdditionalSettingsItem:pn,addAdditionalSettingsItem:Oi,removeAdditionalSettingsItem:pi,updateAdditionalContextItem:Ma,addAdditionalContextItem:Nu,removeAdditionalContextItem:Yd,updateAdditionalButton:Aa,addAdditionalButton:_t,removeAdditionalButton:bt,setLiveLowLatency:no,hideControls:()=>ur(!1),showControls:()=>ur(!0),setQuality:c=>St(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>mi(c,"to-video",!0),setHighQualityEnabled:c=>qi(c,"to-video",!0)}},callbacks:a,setUiCallbacks:c=>{Ae={...c}},getAdmanWrapper:()=>le,getLogger:()=>Be,getPlayer:()=>N,destroy:m0};return kt};function On(t,e,i,o){var f;let n=(f=e[i])==null?void 0:f.getBoundingClientRect(),s=o&&!!n&&!!(n.right-n.left),{top:l,left:d,bottom:a,right:p}=_s(e[i],t||void 0);return{left:s?d:0,right:s?p:0,top:s?l:0,bottom:s?a:0,isDisplayed:s}}var $y=["disabledControls$","additionalButtons"],yy=["interactiveTimeIndicator"],fl=(t,e,i,o)=>{if(t){for(let[n,s]of Object.entries(e))if(!$y.includes(n)){let l=o||yy.includes(n);s.set(On(t,i,n,l))}}};var gu=async(t,e,i)=>{await Co(),e&&i&&(i.focus(),t.set(!1))};var xy=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"></path></svg>');function Zf(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=xy();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}function Xf(t,e){U(e,!0);let[i,o]=He(),n=()=>C(a,"$contextMenuVisible$",i),s=m(e,"disabled",3,!1),l=m(e,"ariaLabel",3,""),d=Ee(),a=d.ui.contextMenu.visible$,p=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,v=d.ui.contextMenu.position$,u=d.ui.contextMenu.btnRef$,y=j(void 0);Ke(()=>{r(y)&&yt(()=>{u.set(r(y))})});let w=E=>{let V=Os(E),k=t1(r(y));v.set(k),p.set(V),a.set(!n())},x=()=>{f.set(!0)},S=()=>{f.set(!1)},T=g(()=>n()?"opened":"");Rt(t,{get className(){return r(T)},testId:"btn-context-menu",get disabled(){return s()},get ariaLabel(){return l()},click:w,focus:x,blur:S,get ariaExpanded(){return n()},get ref(){return r(y)},set ref(E){O(y,E,!0)},children:(E,V)=>{Zf(E,{})},$$slots:{default:!0}}),z(),o()}var wy=t=>{t.stopPropagation()},Sy=M("<div><!> <div></div> <div></div></div>"),Cy={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"},Kh=W_;var g
|
|
|
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 Id(t,e){var oe;U(e,!0),K(t,Ay);let[i,o]=He(),n=()=>C(S,"$isMobile",i),s=()=>C(I,"$areControlsVisible",i),l=()=>C(k,"$currentGridType$",i),d=()=>C(E,"$isInteractiveTime$",i),a=()=>C(x,"$interactiveControlsOpacity$",i),p=()=>C(R,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>C(T,"$isFullscreen",i),m=v(e,"ref",15,void 0),u=Z(void 0),y=Te(),w=uo(),{interactiveControlsOpacity$:x}=w,S=y.ui.isMobile,T=y.ui.isFullscreen,E=y.state.isInteractiveTime$,R=w.showInteractiveTimeIndicatorTooltip$,I=y.ui.controlsVisible,M=(oe=y.callbacks)==null?void 0:oe.onInteractiveTimeIndicatorClick,k=y.ui.currentGridType$,G=g(()=>!n()&&s()),H=g(()=>Fs(l(),"s")),F=g(()=>!d()||!!a()||r(G)),q=Z(!1);Qe(()=>{O(q,r(F),!0)});let Y=()=>{O(q,!0)},j=()=>{var ve;ue(),(ve=r(u))==null||ve.addEventListener("animationiteration",Y,{once:!0})},ue=()=>{var ve;O(q,!1),(ve=r(u))==null||ve.removeEventListener("animationiteration",Y)},re=ve=>{R.set(ve)},fe=g(()=>p()&&!r(F));Qe(()=>{p()?j():ue()});let be=()=>{r(F)||(R.set(!0),M==null||M())};Xo(()=>{R.clearTimeout(),ue()});let me=()=>{R.set(!1)},Pe=W("tooltip_interactive_interaction_time_indicator");var se=Py();let Le;se.__mousemove=[ky],se.__click=be;var ae=_(se);So(ae,{get tooltipContent(){return Pe},get tooltipActive(){return r(fe)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:re,get ref(){return m()},set ref(ve){m(ve)},children:(ve,De)=>{bd(ve,{completed:!0})},$$slots:{default:!0}});var N=P(ae,2);let Be;et(N,ve=>m(ve),()=>m());var ce=P(N,2);let he;et(ce,ve=>O(u,ve),()=>r(u)),h(se),B((ve,De,pe)=>{Le=ie(se,1,"interactive-episode-icon-animated svelte-od3veb",null,Le,ve),Be=ie(N,1,"ref-block svelte-od3veb",null,Be,De),he=ie(ce,1,"pulse svelte-od3veb",null,he,pe)},[()=>({mobile:n(),fullscreen:f(),invisible:r(F),"icon-small":r(H)}),()=>({hidden:r(F)}),()=>({paused:r(q)})]),wt("mouseleave",se,me),$(t,se),z(),o()}st(["mousemove","click"]);function xu(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);So(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 p=g(()=>e.buttonComponent);var f=ge(a);Ci(f,()=>r(p),(m,u)=>{u(m,vs(()=>{var y;return(y=e.buttonComponentProps)!=null?y:{}}))}),$(l,a)},$$slots:{default:!0}}),z()}var $s={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var Ly=we('<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 am(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Ly();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}function Us(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");am(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 Vy=A('<div class="icon-background-mobile svelte-xtk2k4"></div>'),Ry=A("<!> <!>",1),Ny={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 ya(t,e){U(e,!0),K(t,Ny);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"disabled",3,!1),l=Te().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")),p=g(()=>`btn-${o()?"m":"d"}--${e.type}`);Ot(t,{get className(){return r(p)},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 u=Ry(),y=ge(u);{var w=T=>{var E=Vy();$(T,E)};V(y,T=>{o()&&T(w)})}var x=P(y,2);let S=g(()=>e.type==="prev");Us(x,{get isMobile(){return o()},get isPrev(){return r(S)}}),$(f,u)},$$slots:{default:!0}}),z()}var Oy=we('<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=Oy();Ie(o,()=>({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);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}import{noop as By}from"@vkontakte/videoplayer-shared/es2018";var Dy=A('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Hy=A("<!> <div><!></div>",1),Fy={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 fl(t,e){U(e,!0),K(t,Fy);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,By),d=W("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 os.KeyK},get ref(){return i()},set ref(p){i(p)},children:(p,f)=>{var m=Hy(),u=ge(m);{var y=T=>{var E=Dy();$(T,E)};V(u,T=>{o()&&T(y)})}var w=P(u,2);let x;var S=_(w);kd(S,{}),h(w),B(T=>x=ie(w,1,"svelte-1ot3duq",null,x,T),[()=>({mobile:o()})]),$(p,m)},$$slots:{default:!0}}),z()}var Uy=we('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="play-icon"><path d="M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"></path></svg>');function Fr(t,e){"use strict";let i=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=Uy(),d=_(l);h(l),B(()=>{Ue(l,"width",i()),Ue(l,"height",o()),Ue(l,"viewBox",n()),Ue(d,"fill",s())}),$(t,l)}var zy=we('<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 ys(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=zy(),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 Wy}from"@vkontakte/videoplayer-shared/es2018";var Ky=A('<div class="icon-background-mobile svelte-1ot3duq"></div>'),qy=A("<!> <div><!></div>",1),Qy={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function ml(t,e){U(e,!0),K(t,Qy);let[i,o]=He(),n=()=>C(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=uo(),l=v(e,"ref",15,void 0),d=v(e,"isMobile",3,!1),a=v(e,"isPlaying",3,!1),p=v(e,"disabled",3,!1),f=v(e,"className",3,""),m=v(e,"click",3,Wy),y=Te().ui.t,{toggle:w}=s,x=g(()=>w),S=g(()=>n()!==null),T=g(()=>r(S)?n():a()),E=g(()=>r(T)?y("tooltip_pause"):y("tooltip_play")),R=g(()=>r(T)?ys:Fr),I=g(()=>`${d()?"btn-m--play":""} ${f()}`),M=g(()=>r(S)?r(x):m());Ot(t,{get className(){return r(I)},testId:"btn-play",get click(){return r(M)},get disabled(){return p()},get ariaLabel(){return r(E)},get ariaKeyShortCut(){return os.KeyK},get ref(){return l()},set ref(k){l(k)},children:(k,G)=>{var H=qy();let F=g(()=>r(R));var q=ge(H);{var Y=fe=>{var be=Ky();$(fe,be)};V(q,fe=>{d()&&fe(Y)})}var j=P(q,2);let ue;var re=_(j);Ci(re,()=>r(F),(fe,be)=>{be(fe,{})}),h(j),B(fe=>ue=ie(j,1,"svelte-1ot3duq",null,ue,fe),[()=>({mobile:d()})]),$(k,H)},$$slots:{default:!0}}),z(),o()}var Gy=we('<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 lm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Gy();Ie(o,()=>({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);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}function Pd(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=W("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)=>{lm(d,{})},$$slots:{default:!0}}),z()}var jy=A('<span class="gutter svelte-et3q1q"><span><!></span></span>'),Yy={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),K(t,Yy);let[i,o]=He(),n=()=>C(a,"$autoplayNextEnabled$",i),s=v(e,"ref",15,void 0),l=Te(),d=l.ui.t,a=l.ui.autoplayNextEnabled$,p=l.actions.internal.setAutoplayNextEnabled,f=()=>{p(!n(),!0)},m=d("aria_label_autoplay"),u=g(()=>n()?"true":"false");Ot(t,{click:f,get ariaLabel(){return m},role:"switch",get areaChecked(){return r(u)},get ref(){return s()},set ref(y){s(y)},children:(y,w)=>{var x=jy(),S=_(x);let T;var E=_(S);{var R=M=>{Fr(M,{width:"14",height:"14",fill:"#000"})},I=M=>{ys(M,{width:"14",height:"14",fill:"#000"})};V(E,M=>{n()?M(R):M(I,!1)})}h(S),h(x),B(M=>T=ie(S,1,"toggler svelte-et3q1q",null,T,M),[()=>({enabled:n()})]),$(y,x)},$$slots:{default:!0}}),z(),o()}var Zy=we('<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 dm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Zy();Ie(o,()=>({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);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}function Md(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=W("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)=>{dm(d,{})},$$slots:{default:!0}}),z()}var Xy=we('<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 cm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Xy();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}var Jy={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function um(t,e){K(t,Jy);let i=v(e,"isOpened",3,!1),o=g(()=>i()?"graph-close-icon":"graph-open-icon");cm(t,{get"data-testid"(){return r(o)}})}function Ld(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=Te().ui.t,a=g(()=>s()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),p=g(()=>o()?"hidden":"");Ot(t,{get className(){return r(p)},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 u=g(()=>!!s());um(f,{get isOpened(){return r(u)}})},$$slots:{default:!0}}),z()}import{PlaybackState as M1}from"@vkontakte/videoplayer-core/es2018";function Vd(t,e){U(e,!0);let[i,o]=He(),n=()=>C(p,"$playbackState$",i),s=v(e,"isMobile",3,!1),l=v(e,"isLiveActive",3,!1),d=v(e,"ariaLabel",3,""),a=Te(),p=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,m=a.actions.internal.togglePlay,u=g(()=>()=>{if(!l()){f();return}n()===M1.PAUSED&&m()}),y=g(()=>s()?"":"btn--live btn-full-opacity"),w=g(()=>l()?"btn-live":"btn-live-offset"),x=g(()=>l()&&n()===M1.PLAYING);Ot(t,{get className(){return r(y)},get testId(){return r(w)},get disabled(){return r(x)},get ariaLabel(){return d()},get click(){return r(u)},children:(S,T)=>{nd(S,{get isActive(){return l()}})},$$slots:{default:!0}}),z(),o()}import{noop as L1}from"@vkontakte/videoplayer-shared/es2018";var e4=A('<div class="icon icon-error-stub"><div class="inner"></div></div>'),t4=A('<img class="icon" aria-hidden="true"/>');function xa(t,e){"use strict";let i=Z(!1),o=()=>{O(i,!0)};var n=qe(),s=ge(n);{var l=a=>{var p=e4();$(a,p)},d=a=>{var p=t4();B(()=>Ue(p,"src",e.icon)),wt("error",p,o),ia(p),$(a,p)};V(s,a=>{r(i)?a(l):a(d,!1)})}$(t,n)}function pm(t,e){U(e,!0);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,L1),n=v(e,"ref",15),s=g(()=>o()===L1),l=g(()=>r(s)||i()),d=g(()=>r(s)?"btn-full-opacity":"");So(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,p)=>{let f=g(()=>{var m;return(m=e.testId)!=null?m: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:(m,u)=>{xa(m,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),z()}var V1=t=>!!t.buttonComponent;var xs={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var wu=(t,e,i,o)=>{if(t)for(let[n,s]of Object.entries(e))s.set(Rn(t,i,n,o))};var n4=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),r4={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 mm(t,e){var $o,Ws;U(e,!0),K(t,r4);let[i,o]=He(),n=()=>C(di,"$disabledControls$",i),s=()=>C(Kt,"$adPlaybackState",i),l=()=>C(Ft,"$playbackState$",i),d=()=>C(ut,"$currentSubtitle$",i),a=()=>C(_i,"$isEnded$",i),p=()=>C(ci,"$currentGridType$",i),f=()=>C(gi,"$isLive$",i),m=()=>C(tn,"$chromecastState$",i),u=()=>C(Gt,"$isPictureInPictureActive",i),y=()=>C(lt,"$pictureInPictureType$",i),w=()=>C(At,"$availableSubtitlesList$",i),x=()=>C(ti,"$contextMenuOpenedByKeyboard$",i),S=()=>C(Wi,"$showContextMenuBtn$",i),T=()=>C(kt,"$playerSize",i),E=()=>C(Mi,"$isRewindableLive$",i),R=()=>C(dt,"$isActiveLive$",i),I=()=>C(To,"$graphIsOpened$",i),M=()=>C(Co,"$contextMenuVisible$",i),k=()=>C(It,"$isFullscreen",i),G=()=>C(ai,"$autoplayNextEnabled",i),H=()=>C(r(cn),"$prevButton",i),F=()=>C(r(Sn),"$replayButton",i),q=()=>C(r(kr),"$playButton",i),Y=()=>C(r(Pr),"$nextButton",i),j=()=>C(r(ft),"$playPrevChapterButton",i),ue=()=>C(r(_t),"$seekToInteractiveButton",i),re=()=>C(r(Ji),"$interactiveGraphButton",i),fe=()=>C(r(Ni),"$liveButton",i),be=()=>C(r(ao),"$time",i),me=()=>C(r(lo),"$episodes",i),Pe=()=>C(r(qo),"$vkLogo",i),se=()=>C(r(eo),"$volume",i),Le=()=>C(r(Wn),"$subtitles",i),ae=()=>C(r(Eo),"$settings",i),N=()=>C(r(ur),"$context",i),Be=()=>C(r(Ar),"$fullscreen",i),ce=()=>C(r(qr),"$chromecast",i),he=()=>C(Uo,"$additionalDesktopControlPanelRightButtons$",i),oe=()=>C(po,"$isInteractiveTime$",i),ve=()=>C(si,"$settingsMenuVisible",i),De=()=>C(fi,"$settingButtonRef$",i),pe=()=>C(Fo,"$startedByKeyboard$",i),rt=()=>C(Wt,"$isAudioAvailable$",i),X=()=>C(Qt,"$fakeIsPlaying$",i),Ae=()=>C(nn,"$seekToInteractiveDisabledTooltip$",i),ke=()=>C(ct,"$adPosition",i),ze=()=>C(Je,"$position$",i),nt=()=>C(Ke,"$adDuration",i),ht=()=>C(Ne,"$duration$",i),at=v(e,"playerControlsWrapperRef",15,void 0),yt=v(e,"playerControlsRef",15,void 0),Xe=v(e,"isAds",3,!1),Ht=v(e,"logoTargetUrl",3,""),Xt=v(e,"isOneVideoPlaylist",3,!1),Bt=v(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Qt}=uo(),Ee=Te(),zt=uo(),Se=Et(),te=Ee.actions.internal.toggleMuted,ne=Ee.actions.internal.togglePlay,Ve=Ee.actions.internal.pause,Fe=Ee.actions.internal.toggleSubtitle,Re=($o=Ee.callbacks)==null?void 0:$o.onAudioDoesNotExistHint,We=(Ws=Ee.callbacks)==null?void 0:Ws.onAudioDisabledHint,Ne=Ee.state.duration$,Je=Ee.state.positionWithScrubbing$,Ft=Ee.state.playbackState$,Wt=Ee.state.isAudioAvailable$,Ct=Ee.state.isAudioDisabled,_i=Ee.state.isEnded$,gi=Ee.state.isLive$,dt=Ee.state.isActiveLive$,Mi=Ee.state.isRewindableLive$,{isActive$:Gt,type$:lt}=zt.pictureInPicture$,si=Ee.ui.settingsMenu.visible$,Li=Ee.ui.settingsMenu.openedByBtnKeyboard$,Pt=Ee.ui.controls,ri=Ee.actions.internal.getVideoEpisodes(),tn=Ee.state.chromecastState$,At=Ee.state.availableSubtitlesList$,ut=Ee.state.currentSubtitle$,di=Pt.disabledControls$,Co=Ee.ui.contextMenu.visible$,Wi=Ee.ui.contextMenu.showContextMenuBtn$,ti=Ee.ui.contextMenu.openedByBtnKeyboard$,Fo=Ee.ui.startedByKeyboard$,On=Ee.ui.controlBlocks,D=Ee.ui.t,Ke=Ee.ads.duration,ct=Ee.ads.position,Kt=Ee.ads.playbackState,It=Ee.ui.isFullscreen,kt=Ee.ui.playerSize,ci=Ee.ui.currentGridType$,Uo=Ee.ui.additionalDesktopControlPanelRightButtons$,ai=Ee.ui.autoplayNextEnabled$,xt=Ee.actions.internal.getVideoElement,Xi=Ee.actions.internal.replayInteractive,Ki=Ee.actions.internal.prevVideoClick,Bn=Ee.actions.internal.nextVideoClick,Vi=Ee.state.isInteractive,po=Ee.state.isInteractiveTime$,fo=Ee.state.showInteractiveGraph,_n=Ee.state.showSeekToInteractive,on=Ee.state.showPlayPrevChapter,Ei=Ee.state.showInteractiveTimeIndicator,qi=Ee.state.playPrevChapterDisabledTooltip,nn=zt.seekToInteractiveDisabledTooltip$,To=zt.graphIsOpened$,rn=Se.features.interactiveResponsiveUi,sn=g(()=>n().has("EPISODE_BUTTON")),xr=g(()=>n().has("GRAPH_BUTTON")),Dn=g(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),wr=g(()=>n().has("PLAY_BUTTON")),ar=g(()=>n().has("REPLAY_BUTTON")),zr=g(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),an=()=>Ee.actions.internal.toggleChromecast(),Hn=g(()=>Xe()?s()==="playing":l()===fm.PLAYING),lr=g(()=>d().value!=="off"),bn=g(()=>a()&&!Xe()||Vi),ro=g(()=>rn?r(bn)&&Yi(p(),"m"):r(bn)),Fn=g(()=>!a()||Vi||Xe()),Sr=g(()=>Yi(p(),"m")),$n=g(()=>e.showNextPrevButtons&&Yi(p(),"m")&&!Xe()&&e.nextButtonActive),dr=g(()=>e.showNextPrevButtons&&Yi(p(),"m")&&!Xe()&&e.prevButtonActive),Un=g(()=>!Xe()&&!!f()),zo=g(()=>m()!==R1.NOT_AVAILABLE&&!(u()&&y()===1)&&Yi(p(),"m")&&!Vi),zn=g(()=>e.showAutoplayNext&&!Xt()&&Yi(p(),"s")),Wr=g(()=>w().length>0&&Yi(p(),"m")),Cr=g(()=>x()||S()),mo=g(()=>Yi(p(),"s")&&!Xe()),pt=g(()=>!e.logoHidden&&!Xe()),jt=g(()=>Se.features.fullscreen&&(e.logoHidden||Yi(p(),rn?"xs":"s"))&&!(u()&&y()===1)&&(Vi?Bt():!0)),yn=g(()=>(!f()||Xe())&&!(Se.features.interactiveHideTime&&Vi)),Qi=g(()=>T().width>100),Ri=g(()=>fo&&Yi(p(),"m")),Wo=g(()=>rn?_n&&Yi(p(),"s"):_n),xn=g(()=>rn?on&&Yi(p(),"s"):on),so=g(()=>!Xe()&&!f()&&!!(ri!=null&&ri.length)&&r(Sr)&&!r(sn)),ln=g(()=>!E()||!!R()),Ko=g(()=>I()?D("tooltip_interactive_graph_on"):D("tooltip_interactive_graph_off")),vo=g(()=>M()?D("tooltip_context_menu_close"):D("tooltip_context_menu_open")),Tr=(bt,gt)=>bt?gt&>===fm.PAUSED?D("tooltip_play"):"":D("tooltip_live"),Er=g(()=>Tr(r(ln),l())),Kr=g(()=>Se.logoType==="vk_video"?D("tooltip_vk_video_logo"):D("tooltip_vk_logo")),as=g(()=>r(lr)?D("tooltip_subtitles_on"):D("tooltip_subtitles_off")),wn=g(()=>k()?D("tooltip_fullscreen_on"):D("tooltip_fullscreen_off")),cr=g(()=>m()===R1.CONNECTED?D("tooltip_chromecast_on"):D("tooltip_chromecast_off")),Ir=g(()=>G()?D("tooltip_autoplay_on"):D("tooltip_autoplay_off")),go=Z(0),ii=ni({}),dn=ni({}),cn=g(()=>Pt.prevButton),Sn=g(()=>Pt.replayButton),kr=g(()=>Pt.playButton),Pr=g(()=>Pt.nextButton),ft=g(()=>Pt.playPrevChapterButton),_t=g(()=>Pt.seekToInteractiveButton),Ji=g(()=>Pt.interactiveGraphButton),Ni=g(()=>Pt.liveButton),ao=g(()=>Pt.time),lo=g(()=>Pt.episodes),qo=g(()=>Pt.vkLogo),eo=g(()=>Pt.volume),Wn=g(()=>Pt.subtitles),Eo=g(()=>Pt.settings),ur=g(()=>Pt.context),Ar=g(()=>Pt.fullscreen),qr=g(()=>Pt.chromecast),Io=g(()=>({prevButton:H()?H().right-H().left:0,replayButton:F()?F().right-F().left:0,playButton:q()?q().right-q().left:0,nextButton:Y()?Y().right-Y().left:0,playPrevChapterButton:j()?j().right-j().left:0,seekToInteractiveButton:ue()?ue().right-ue().left:0,interactiveGraphButton:re()?re().right-re().left:0,liveButton:fe()?fe().right-fe().left:0,time:be()?be().right-be().left:0,episodes:me()?me().right-me().left:0,vkLogo:Pe()?Pe().right-Pe().left:0,volume:se()?se().right-se().left:0,subtitles:Le()?Le().right-Le().left:0,settings:ae()?ae().right-ae().left:0,context:N()?N().right-N().left:0,fullscreen:Be()?Be().right-Be().left:0,chromecast:ce()?ce().right-ce().left:0,additionalButtons:he().length?he().reduce(bt=>[...bt,40],[]):[]})),Kn=Z(0);Qe(()=>{(!r(Kn)||r(Kn)<r(Io).time)&&$t(()=>O(Kn,r(Io).time,!0))});let qn=Z(!1);Qe(()=>{let bt=0;r(so)&&(Yi(p(),"xl")?bt=r(Io).time:bt=60);let gt=r(Io).prevButton+r(Io).playButton+r(Io).nextButton+r(Io).seekToInteractiveButton+r(Io).interactiveGraphButton+r(Io).liveButton+r(Kn)+bt;O(qn,r(yn)&&r(go)>=gt,!0)});let pr=g(()=>r(qn)&&Yi(p(),"m")),tt=N1(pl,260),St=N1(wu,260);Qe(()=>{T(),oe(),tt(xt(),Pt,ii,e.showControls),St(xt(),On,dn,e.showControls)}),Qe(()=>{dn.bottom=at()});let fi=le();Qe(()=>{ve(),De()&&$t(()=>rl(De(),ve(),Li))});let Oi;Qe(()=>{pe(),$t(()=>yu(Fo,pe(),Oi))});function ho(){Ds({isAudioDisabled:Ct,isAudioAvailable:rt(),isAds:Xe(),audioIsNotExistHintCallback:Re,audioDisabledHintCallback:We})&&te()}let to=Vi?Xi:ne,Ii=g(()=>X()!==null),ko=g(()=>r(Ii)?X():r(Hn)),Qn=g(()=>r(ko)?D("tooltip_pause"):D("tooltip_play")),un=D("tooltip_episodes"),_o=g(()=>{var bt,gt,co,Go;return r(dr)?{id:"prevButton",type:"desktop-control-panel-left",weight:$s.prevButton,buttonComponent:ya,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Ki.bind(null,!0)},tooltipEnabled:!((gt=(bt=Ee.callbacks)==null?void 0:bt.uiInfo)!=null&>.onPrevButtonMouseEnter)&&!((Go=(co=Ee.callbacks)==null?void 0:co.uiInfo)!=null&&Go.onPrevButtonMouseLeave),mouseEnter:()=>{var Gi,ui,vi;(vi=(ui=(Gi=Ee.callbacks)==null?void 0:Gi.uiInfo)==null?void 0:ui.onPrevButtonMouseEnter)==null||vi.call(ui,Rn(xt(),ii,"prevButton",e.showControls))},mouseLeave:()=>{var Gi,ui,vi;(vi=(ui=(Gi=Ee.callbacks)==null?void 0:Gi.uiInfo)==null?void 0:ui.onPrevButtonMouseLeave)==null||vi.call(ui,Rn(xt(),ii,"prevButton",e.showControls))},tooltipText:D("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Po=g(()=>r(ro)?{id:"replayButton",type:"desktop-control-panel-left",weight:$s.replayButton,buttonComponent:fl,buttonComponentProps:{disabled:r(ar),click:to},tooltipText:D("tooltip_restart"),disabled:r(ar)}:void 0),fr=g(()=>r(Fn)?{id:"playButton",type:"desktop-control-panel-left",weight:$s.playButton,buttonComponent:ml,buttonComponentProps:{disabled:r(wr),isPlaying:r(Hn),click:ne},tooltipText:r(Qn),disabled:r(wr)}:void 0),Cn=g(()=>{var bt,gt,co,Go;return r($n)?{id:"nextButton",type:"desktop-control-panel-left",weight:$s.nextButton,buttonComponent:ya,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:Bn.bind(null,!0)},tooltipEnabled:!((gt=(bt=Ee.callbacks)==null?void 0:bt.uiInfo)!=null&>.onNextButtonMouseEnter)&&!((Go=(co=Ee.callbacks)==null?void 0:co.uiInfo)!=null&&Go.onNextButtonMouseLeave),mouseEnter:()=>{var Gi,ui,vi;(vi=(ui=(Gi=Ee.callbacks)==null?void 0:Gi.uiInfo)==null?void 0:ui.onNextButtonMouseEnter)==null||vi.call(ui,Rn(xt(),ii,"nextButton",e.showControls))},mouseLeave:()=>{var Gi,ui,vi;(vi=(ui=(Gi=Ee.callbacks)==null?void 0:Gi.uiInfo)==null?void 0:ui.onNextButtonMouseLeave)==null||vi.call(ui,Rn(xt(),ii,"nextButton",e.showControls))},tooltipText:D("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Gn=g(()=>Vi&&r(xn)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:$s.playPrevChapterButton,buttonComponent:Pd,buttonComponentProps:{disabled:r(zr),click:e.playPrevChapter},tooltipText:D("tooltip_interactive_go_back"),disabledTooltipContent:D(qi),disabled:r(zr)}:void 0),mr=g(()=>Vi&&r(Wo)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:$s.seekToInteractiveButton,buttonComponent:Md,buttonComponentProps:{disabled:r(Dn),click:e.seekToInteractive},tooltipText:D("tooltip_interactive_seek"),disabled:r(Dn),disabledTooltipContent:D(Ae())}:void 0),Ao=g(()=>Vi&&r(Ri)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:$s.interactiveGraphButton,buttonComponent:Ld,buttonComponentProps:{disabled:r(xr),click:To.toggle,graphIsOpened:I()},tooltipText:r(Ko)}:void 0),Mr=g(()=>r(Un)?{id:"liveButton",type:"desktop-control-panel-left",weight:$s.liveButton,buttonComponent:Vd,buttonComponentProps:{isLiveActive:r(ln),ariaLabel:r(Er)},tooltipText:r(Er),disabled:r(ln)&&l()===fm.PLAYING}:void 0),Qr=g(()=>[r(_o),r(Po),r(fr),r(Cn),r(Gn),r(mr),r(Ao),r(Mr)].filter(bt=>!!bt).sort(fa)),jn=g(()=>r(pt)?{id:"vkLogo",type:"desktop-control-panel-right",weight:xs.vkLogo,buttonComponent:yd,buttonComponentProps:{targetUrl:Ht(),logoClickable:e.logoClickable,click:Ve},tooltipText:r(Kr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),vr=g(()=>r(zn)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:xs.autoplayNext,buttonComponent:Ad,tooltipText:r(Ir)}:void 0),je=g(()=>({id:"volume",type:"desktop-control-panel-right",weight:xs.volume,buttonComponent:Ff,buttonComponentProps:{click:ho,isAds:Xe()}})),Jt=g(()=>r(Wr)?{id:"subtitles",type:"desktop-control-panel-right",weight:xs.subtitles,buttonComponent:Nf,buttonComponentProps:{isSubtitlesEnabled:r(lr),click:Fe},tooltipText:r(as)}:void 0),mi=g(()=>r(mo)?{id:"settings",type:"desktop-control-panel-right",weight:xs.settings,buttonComponent:dl,buttonComponentProps:{ref$:fi},tooltipText:ve()?void 0:D("tooltip_settings_off")}:void 0),bi=g(()=>Se.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:xs.context,buttonComponent:sm,buttonComponentProps:{ariaLabel:D("aria_label_context_menu")},className:r(Cr)?"":"out-of-view",tooltipText:r(vo)}:void 0),Mo=g(()=>r(jt)?{id:"fullscreen",type:"desktop-control-panel-right",weight:xs.fullscreen,buttonComponent:$d,buttonComponentProps:{isFullscreen:k(),click:e.toggleFullscreen},tooltipText:r(wn)}:void 0),Gr=g(()=>r(zo)?{id:"chromecast",type:"desktop-control-panel-right",weight:xs.chromecast,buttonComponent:xd,buttonComponentProps:{state:m(),click:an},tooltipText:r(cr)}:void 0),Lo=g(()=>[r(jn),r(vr),r(je),r(Jt),r(mi),r(bi),r(Mo),r(Gr),...he()].filter(bt=>!!bt).sort(fa));var Tn=n4(),Yn=ge(Tn);let jr;var J=_(Yn);let Ze=g(()=>!e.showControls),Ut=g(()=>!r(Qi));ba(J,{get isHidden(){return r(Ze)},get timelineNotAvailable(){return r(Ut)},get isAds(){return Xe()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return E()},get ref(){return ii.timeline},set ref(bt){ii.timeline=bt}});var pi=P(J,2),Bi=_(pi),Di=_(Bi);Si(Di,17,()=>r(Qr),bt=>bt.id,(bt,gt)=>{xu(bt,{get buttonComponent(){return r(gt).buttonComponent},get buttonComponentProps(){return r(gt).buttonComponentProps},get tooltipText(){return r(gt).tooltipText},get disabledTooltipContent(){return r(gt).disabledTooltipContent},get disabled(){return r(gt).disabled},get className(){return r(gt).className},get tooltipEnabled(){return r(gt).tooltipEnabled},get mouseEnter(){return r(gt).mouseEnter},get mouseLeave(){return r(gt).mouseLeave},get ref(){return ii[r(gt).id]},set ref(co){ii[r(gt).id]=co}})});var xi=P(Di,2);{var En=bt=>{let gt=g(()=>!e.showControls),co=g(()=>Xe()?ke():ze()),Go=g(()=>Xe()?nt():ht());_d(bt,{get isHidden(){return r(gt)},isMobile:!1,get showDuration(){return r(pr)},get position(){return r(co)},get duration(){return r(Go)},get ref(){return ii.time},set ref(Gi){ii.time=Gi}})};V(xi,bt=>{r(yn)&&bt(En)})}var wi=P(xi,2);let li=g(()=>!r(so));So(wi,{className:"w-max",get disabled(){return r(li)},get tooltipContent(){return un},get ref(){return ii.episodes},set ref(bt){ii.episodes=bt},children:(bt,gt)=>{var co=qe(),Go=ge(co);{var Gi=ui=>{Sd(ui,{get position(){return ze()},get duration(){return ht()},get timeCodes(){return ri}})};V(Go,ui=>{r(so)&&ui(Gi)})}$(bt,co)},$$slots:{default:!0}}),h(Bi);var Qo=P(Bi,2);Si(Qo,21,()=>r(Lo),bt=>bt.id,(bt,gt)=>{var co=qe(),Go=ge(co);{var Gi=vi=>{xu(vi,{get buttonComponent(){return r(gt).buttonComponent},get buttonComponentProps(){return r(gt).buttonComponentProps},get tooltipText(){return r(gt).tooltipText},get disabledTooltipContent(){return r(gt).disabledTooltipContent},get disabled(){return r(gt).disabled},get className(){return r(gt).className},get ref(){return ii[r(gt).id]},set ref(ws){ii[r(gt).id]=ws}})},ui=vi=>{let ws=g(()=>!!r(gt).disabled);pm(vi,{get id(){return r(gt).id},get testId(){return r(gt).testId},get icon(){return r(gt).icon},get ariaLabel(){return r(gt).ariaLabel},get tooltipText(){return r(gt).tooltipText},get disabledTooltipContent(){return r(gt).disabledTooltipContent},get disabled(){return r(ws)},get onClick(){return r(gt).onClick},get disableMouseupTooltipShow(){return r(gt).disableMouseupTooltipShow},get ref(){return ii[r(gt).id]},set ref(_l){ii[r(gt).id]=_l}})};V(Go,vi=>{V1(r(gt))?vi(Gi):vi(ui,!1)})}$(bt,co)}),h(Qo),h(pi),et(pi,bt=>yt(bt),()=>yt()),h(Yn),et(Yn,bt=>at(bt),()=>at());var gr=P(Yn,2);{var bo=bt=>{Id(bt,{get ref(){return ii.interactiveTimeIndicator},set ref(gt){ii.interactiveTimeIndicator=gt}})};V(gr,bt=>{Ei&&bt(bo)})}B(bt=>jr=ie(Yn,1,"wrapper-bottom svelte-f6e8ix",null,jr,bt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),rr(Bi,"clientWidth",bt=>O(go,bt)),$(t,Tn),z(),o()}import{ChromecastState as B1,PlaybackState as D1}from"@vkontakte/videoplayer-core/es2018";import{noop as O1}from"@vkontakte/videoplayer-shared/es2018";var s4=A('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),a4=A('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),l4={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 vm(t,e){K(t,l4);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,O1),n=g(()=>o()===O1),s=g(()=>r(n)||i()),l=Z(!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:(p,f)=>{var m=qe(),u=ge(m);{var y=x=>{var S=s4();$(x,S)},w=x=>{var S=a4();B(()=>Ue(S,"src",e.iconUrl)),wt("error",S,d),ia(S),$(x,S)};V(u,x=>{r(l)?x(y):x(w,!1)})}$(p,m)},$$slots:{default:!0}})}var d4=we('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" d="M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"></path></g></svg>');function gm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=d4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}import{noop as c4}from"@vkontakte/videoplayer-shared/es2018";var u4=A('<div class="container svelte-yslgu" aria-hidden="true"><!></div>'),p4={hash:"svelte-yslgu",code:".container.svelte-yslgu {display:flex;align-items:center;}"};function Su(t,e){U(e,!0),K(t,p4);let i=v(e,"muted",3,!1),o=v(e,"click",3,c4),n=v(e,"ref",15,void 0),l=Te().ui.t,d=g(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),a=g(()=>i()?gm:Hs),p=g(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Ot(t,{get testId(){return r(p)},get click(){return o()},get ariaLabel(){return r(d)},role:"button",get ref(){return n()},set ref(f){n(f)},children:(f,m)=>{var u=u4();let y=g(()=>r(a));var w=_(u);Ci(w,()=>r(y),(x,S)=>{S(x,{})}),h(u),$(f,u)},$$slots:{default:!0}}),z()}var f4=we('<svg><!><path fill="var(--btn-color, #fff)" d="M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z" class="hidden-not-active"></path><path fill="var(--btn-color, #fff)" d="m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z" class="hidden-active"></path></svg>');function hm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=f4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(3),h(o),$(t,o)}var m4={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
|
|
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 Sd(t,e){var te;U(e,!0),q(t,Cy);let[i,o]=He(),n=()=>C(S,"$isMobile",i),s=()=>C(k,"$areControlsVisible",i),l=()=>C(R,"$currentGridType$",i),d=()=>C(E,"$isInteractiveTime$",i),a=()=>C(x,"$interactiveControlsOpacity$",i),p=()=>C(V,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>C(T,"$isFullscreen",i),v=m(e,"ref",15,void 0),u=j(void 0),y=Ee(),w=mo(),{interactiveControlsOpacity$:x}=w,S=y.ui.isMobile,T=y.ui.isFullscreen,E=y.state.isInteractiveTime$,V=w.showInteractiveTimeIndicatorTooltip$,k=y.ui.controlsVisible,I=(te=y.callbacks)==null?void 0:te.onInteractiveTimeIndicatorClick,R=y.ui.currentGridType$,Y=g(()=>!n()&&s()),H=g(()=>Hs(l(),"s")),F=g(()=>!d()||!!a()||r(Y)),W=j(!1);Ke(()=>{O(W,r(F),!0)});let J=()=>{O(W,!0)},G=()=>{var me;ce(),(me=r(u))==null||me.addEventListener("animationiteration",J,{once:!0})},ce=()=>{var me;O(W,!1),(me=r(u))==null||me.removeEventListener("animationiteration",J)},ie=me=>{V.set(me)},ue=g(()=>p()&&!r(F));Ke(()=>{p()?G():ce()});let $e=()=>{r(F)||(V.set(!0),I==null||I())};Jo(()=>{V.clearTimeout(),ce()});let fe=()=>{V.set(!1)},ke=K("tooltip_interactive_interaction_time_indicator");var ne=Sy();let Ve;ne.__mousemove=[wy],ne.__click=$e;var re=_(ne);Eo(re,{get tooltipContent(){return ke},get tooltipActive(){return r(ue)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:ie,get ref(){return v()},set ref(me){v(me)},children:(me,De)=>{vd(me,{completed:!0})},$$slots:{default:!0}});var N=P(re,2);let Be;it(N,me=>v(me),()=>v());var le=P(N,2);let ve;it(le,me=>O(u,me),()=>r(u)),h(ne),B((me,De,pe)=>{Ve=ee(ne,1,"interactive-episode-icon-animated svelte-od3veb",null,Ve,me),Be=ee(N,1,"ref-block svelte-od3veb",null,Be,De),ve=ee(le,1,"pulse svelte-od3veb",null,ve,pe)},[()=>({mobile:n(),fullscreen:f(),invisible:r(F),"icon-small":r(H)}),()=>({hidden:r(F)}),()=>({paused:r(W)})]),xt("mouseleave",ne,fe),$(t,ne),z(),o()}lt(["mousemove","click"]);function hu(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);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=We();let p=g(()=>e.buttonComponent);var f=ge(a);Ci(f,()=>r(p),(v,u)=>{u(v,vs(()=>{var y;return(y=e.buttonComponentProps)!=null?y:{}}))}),$(l,a)},$$slots:{default:!0}}),z()}var $s={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var Ey=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"></path></svg>');function Jf(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Ey();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}function Fs(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");Jf(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 Iy=M('<div class="icon-background-mobile svelte-xtk2k4"></div>'),ky=M("<!> <!>",1),Py={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 ya(t,e){U(e,!0),q(t,Py);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(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")),p=g(()=>`btn-${o()?"m":"d"}--${e.type}`);Rt(t,{get className(){return r(p)},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 u=ky(),y=ge(u);{var w=T=>{var E=Iy();$(T,E)};L(y,T=>{o()&&T(w)})}var x=P(y,2);let S=g(()=>e.type==="prev");Fs(x,{get isMobile(){return o()},get isPrev(){return r(S)}}),$(f,u)},$$slots:{default:!0}}),z()}var Ay=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M12 10.096a.4.4 0 0 1-.67.296L7.044 6.493a.67.67 0 0 1 0-.986l4.288-3.899a.4.4 0 0 1 .669.296V5a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"></path></svg>');function Cd(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Ay();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}import{noop as My}from"@vkontakte/videoplayer-shared/es2018";var Ly=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Vy=M("<!> <div><!></div>",1),Ry={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function ml(t,e){U(e,!0),q(t,Ry);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),s=m(e,"className",3,""),l=m(e,"click",3,My),d=K("tooltip_restart"),a=g(()=>`${o()?"btn-m--play":""} ${s()}`);Rt(t,{get className(){return r(a)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return n()},get click(){return l()},get ariaKeyShortCut(){return os.KeyK},get ref(){return i()},set ref(p){i(p)},children:(p,f)=>{var v=Vy(),u=ge(v);{var y=T=>{var E=Ly();$(T,E)};L(u,T=>{o()&&T(y)})}var w=P(u,2);let x;var S=_(w);Cd(S,{}),h(w),B(T=>x=ee(w,1,"svelte-1ot3duq",null,x,T),[()=>({mobile:o()})]),$(p,v)},$$slots:{default:!0}}),z()}var Ny=Te('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="play-icon"><path d="M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"></path></svg>');function Hr(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),s=m(e,"fill",3,"var(--btn-color)");var l=Ny(),d=_(l);h(l),B(()=>{Fe(l,"width",i()),Fe(l,"height",o()),Fe(l,"viewBox",n()),Fe(d,"fill",s())}),$(t,l)}var Oy=Te('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="pause-icon"><path d="M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"></path></svg>');function ys(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),s=m(e,"fill",3,"var(--btn-color)");var l=Oy(),d=_(l);h(l),B(()=>{Fe(l,"width",i()),Fe(l,"height",o()),Fe(l,"viewBox",n()),Fe(d,"fill",s())}),$(t,l)}import{noop as By}from"@vkontakte/videoplayer-shared/es2018";var Dy=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Hy=M("<!> <div><!></div>",1),Fy={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 vl(t,e){U(e,!0),q(t,Fy);let[i,o]=He(),n=()=>C(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=mo(),l=m(e,"ref",15,void 0),d=m(e,"isMobile",3,!1),a=m(e,"isPlaying",3,!1),p=m(e,"disabled",3,!1),f=m(e,"className",3,""),v=m(e,"click",3,By),y=Ee().ui.t,{toggle:w}=s,x=g(()=>w),S=g(()=>n()!==null),T=g(()=>r(S)?n():a()),E=g(()=>r(T)?y("tooltip_pause"):y("tooltip_play")),V=g(()=>r(T)?ys:Hr),k=g(()=>`${d()?"btn-m--play":""} ${f()}`),I=g(()=>r(S)?r(x):v());Rt(t,{get className(){return r(k)},testId:"btn-play",get click(){return r(I)},get disabled(){return p()},get ariaLabel(){return r(E)},get ariaKeyShortCut(){return os.KeyK},get ref(){return l()},set ref(R){l(R)},children:(R,Y)=>{var H=Hy();let F=g(()=>r(V));var W=ge(H);{var J=ue=>{var $e=Dy();$(ue,$e)};L(W,ue=>{d()&&ue(J)})}var G=P(W,2);let ce;var ie=_(G);Ci(ie,()=>r(F),(ue,$e)=>{$e(ue,{})}),h(G),B(ue=>ce=ee(G,1,"svelte-1ot3duq",null,ce,ue),[()=>({mobile:d()})]),$(R,H)},$$slots:{default:!0}}),z(),o()}var Uy=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"></path></svg>');function em(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Uy();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}function Td(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=K("tooltip_interactive_go_back"),l=g(()=>o()?"hidden":"");Rt(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)=>{em(d,{})},$$slots:{default:!0}}),z()}var zy=M('<span class="gutter svelte-et3q1q"><span><!></span></span>'),Wy={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 Ed(t,e){U(e,!0),q(t,Wy);let[i,o]=He(),n=()=>C(a,"$autoplayNextEnabled$",i),s=m(e,"ref",15,void 0),l=Ee(),d=l.ui.t,a=l.ui.autoplayNextEnabled$,p=l.actions.internal.setAutoplayNextEnabled,f=()=>{p(!n(),!0)},v=d("aria_label_autoplay"),u=g(()=>n()?"true":"false");Rt(t,{click:f,get ariaLabel(){return v},role:"switch",get areaChecked(){return r(u)},get ref(){return s()},set ref(y){s(y)},children:(y,w)=>{var x=zy(),S=_(x);let T;var E=_(S);{var V=I=>{Hr(I,{width:"14",height:"14",fill:"#000"})},k=I=>{ys(I,{width:"14",height:"14",fill:"#000"})};L(E,I=>{n()?I(V):I(k,!1)})}h(S),h(x),B(I=>T=ee(S,1,"toggler svelte-et3q1q",null,T,I),[()=>({enabled:n()})]),$(y,x)},$$slots:{default:!0}}),z(),o()}var Ky=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"></path></svg>');function tm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Ky();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),$(t,o)}function Id(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=K("tooltip_interactive_seek"),l=g(()=>o()?"hidden":"");Rt(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)=>{tm(d,{})},$$slots:{default:!0}}),z()}var qy=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z" class="_closed" clip-rule="evenodd"></path></svg>');function im(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=qy();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),$(t,o)}var Qy={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function om(t,e){q(t,Qy);let i=m(e,"isOpened",3,!1),o=g(()=>i()?"graph-close-icon":"graph-open-icon");im(t,{get"data-testid"(){return r(o)}})}function kd(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=Ee().ui.t,a=g(()=>s()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),p=g(()=>o()?"hidden":"");Rt(t,{get className(){return r(p)},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 u=g(()=>!!s());om(f,{get isOpened(){return r(u)}})},$$slots:{default:!0}}),z()}import{PlaybackState as x1}from"@vkontakte/videoplayer-core/es2018";function Pd(t,e){U(e,!0);let[i,o]=He(),n=()=>C(p,"$playbackState$",i),s=m(e,"isMobile",3,!1),l=m(e,"isLiveActive",3,!1),d=m(e,"ariaLabel",3,""),a=Ee(),p=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,v=a.actions.internal.togglePlay,u=g(()=>()=>{if(!l()){f();return}n()===x1.PAUSED&&v()}),y=g(()=>s()?"":"btn--live btn-full-opacity"),w=g(()=>l()?"btn-live":"btn-live-offset"),x=g(()=>l()&&n()===x1.PLAYING);Rt(t,{get className(){return r(y)},get testId(){return r(w)},get disabled(){return r(x)},get ariaLabel(){return d()},get click(){return r(u)},children:(S,T)=>{ed(S,{get isActive(){return l()}})},$$slots:{default:!0}}),z(),o()}import{noop as w1}from"@vkontakte/videoplayer-shared/es2018";var Gy=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),jy=M('<img class="icon" aria-hidden="true"/>');function xa(t,e){"use strict";let i=j(!1),o=()=>{O(i,!0)};var n=We(),s=ge(n);{var l=a=>{var p=Gy();$(a,p)},d=a=>{var p=jy();B(()=>Fe(p,"src",e.icon)),xt("error",p,o),ia(p),$(a,p)};L(s,a=>{r(i)?a(l):a(d,!1)})}$(t,n)}function nm(t,e){U(e,!0);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,w1),n=m(e,"ref",15),s=g(()=>o()===w1),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,p)=>{let f=g(()=>{var v;return(v=e.testId)!=null?v:e.id});Rt(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,u)=>{xa(v,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),z()}var S1=t=>!!t.buttonComponent;var xs={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var _u=(t,e,i,o)=>{if(t)for(let[n,s]of Object.entries(e))s.set(On(t,i,n,o))};var Xy=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),Jy={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 sm(t,e){var fo,Aa;U(e,!0),q(t,Jy);let[i,o]=He(),n=()=>C(hi,"$disabledControls$",i),s=()=>C(Ht,"$adPlaybackState",i),l=()=>C(At,"$playbackState$",i),d=()=>C(ct,"$currentSubtitle$",i),a=()=>C($i,"$isEnded$",i),p=()=>C(li,"$currentGridType$",i),f=()=>C(vi,"$isLive$",i),v=()=>C(on,"$chromecastState$",i),u=()=>C(Qt,"$isPictureInPictureActive",i),y=()=>C(gi,"$pictureInPictureType$",i),w=()=>C(It,"$availableSubtitlesList$",i),x=()=>C(oi,"$contextMenuOpenedByKeyboard$",i),S=()=>C(Ui,"$showContextMenuBtn$",i),T=()=>C(ai,"$playerSize",i),E=()=>C(ii,"$isRewindableLive$",i),V=()=>C(tt,"$isActiveLive$",i),k=()=>C(qo,"$graphIsOpened$",i),I=()=>C(ko,"$contextMenuVisible$",i),R=()=>C(dt,"$isFullscreen",i),Y=()=>C(di,"$autoplayNextEnabled",i),H=()=>C(r(Tr),"$prevButton",i),F=()=>C(r(as),"$replayButton",i),W=()=>C(r(Er),"$playButton",i),J=()=>C(r(Vi),"$nextButton",i),G=()=>C(r(vt),"$playPrevChapterButton",i),ce=()=>C(r(Ft),"$seekToInteractiveButton",i),ie=()=>C(r(Ki),"$interactiveGraphButton",i),ue=()=>C(r(Ri),"$liveButton",i),$e=()=>C(r(bo),"$time",i),fe=()=>C(r(to),"$episodes",i),ke=()=>C(r(Lo),"$vkLogo",i),ne=()=>C(r(wi),"$volume",i),Ve=()=>C(r(wn),"$subtitles",i),re=()=>C(r(dr),"$settings",i),N=()=>C(r(qr),"$context",i),Be=()=>C(r(Qr),"$fullscreen",i),le=()=>C(r(Gr),"$chromecast",i),ve=()=>C(go,"$additionalDesktopControlPanelRightButtons$",i),te=()=>C(Ji,"$isInteractiveTime$",i),me=()=>C(Io,"$settingsMenuVisible",i),De=()=>C(mi,"$settingButtonRef$",i),pe=()=>C(Wo,"$startedByKeyboard$",i),st=()=>C(zt,"$isAudioAvailable$",i),Z=()=>C(Ut,"$fakeIsPlaying$",i),Ae=()=>C(Ko,"$seekToInteractiveDisabledTooltip$",i),Ie=()=>C(ut,"$adPosition",i),ze=()=>C(Je,"$position$",i),at=()=>C(Ue,"$adDuration",i),ft=()=>C(Oe,"$duration$",i),mt=m(e,"playerControlsWrapperRef",15,void 0),wt=m(e,"playerControlsRef",15,void 0),Ge=m(e,"isAds",3,!1),Bt=m(e,"logoTargetUrl",3,""),Xt=m(e,"isOneVideoPlaylist",3,!1),qt=m(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Ut}=mo(),oe=Ee(),Dt=mo(),he=Et(),we=oe.actions.internal.toggleMuted,ae=oe.actions.internal.togglePlay,Re=oe.actions.internal.pause,qe=oe.actions.internal.toggleSubtitle,Le=(fo=oe.callbacks)==null?void 0:fo.onAudioDoesNotExistHint,je=(Aa=oe.callbacks)==null?void 0:Aa.onAudioDisabledHint,Oe=oe.state.duration$,Je=oe.state.positionWithScrubbing$,At=oe.state.playbackState$,zt=oe.state.isAudioAvailable$,et=oe.state.isAudioDisabled,$i=oe.state.isEnded$,vi=oe.state.isLive$,tt=oe.state.isActiveLive$,ii=oe.state.isRewindableLive$,{isActive$:Qt,type$:gi}=Dt.pictureInPicture$,Io=oe.ui.settingsMenu.visible$,vo=oe.ui.settingsMenu.openedByBtnKeyboard$,Ot=oe.ui.controls,ri=oe.actions.internal.getVideoEpisodes(),on=oe.state.chromecastState$,It=oe.state.availableSubtitlesList$,ct=oe.state.currentSubtitle$,hi=Ot.disabledControls$,ko=oe.ui.contextMenu.visible$,Ui=oe.ui.contextMenu.showContextMenuBtn$,oi=oe.ui.contextMenu.openedByBtnKeyboard$,Wo=oe.ui.startedByKeyboard$,Dn=oe.ui.controlBlocks,D=oe.ui.t,Ue=oe.ads.duration,ut=oe.ads.position,Ht=oe.ads.playbackState,dt=oe.ui.isFullscreen,ai=oe.ui.playerSize,li=oe.ui.currentGridType$,go=oe.ui.additionalDesktopControlPanelRightButtons$,di=oe.ui.autoplayNextEnabled$,$t=oe.actions.internal.getVideoElement,Mi=oe.actions.internal.replayInteractive,Po=oe.actions.internal.prevVideoClick,Hn=oe.actions.internal.nextVideoClick,Li=oe.state.isInteractive,Ji=oe.state.isInteractiveTime$,Ao=oe.state.showInteractiveGraph,bn=oe.state.showSeekToInteractive,$n=oe.state.showPlayPrevChapter,Ei=oe.state.showInteractiveTimeIndicator,zi=oe.state.playPrevChapterDisabledTooltip,Ko=Dt.seekToInteractiveDisabledTooltip$,qo=Dt.graphIsOpened$,nn=he.features.interactiveResponsiveUi,rn=g(()=>n().has("EPISODE_BUTTON")),Ur=g(()=>n().has("GRAPH_BUTTON")),Fn=g(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),br=g(()=>n().has("PLAY_BUTTON")),nr=g(()=>n().has("REPLAY_BUTTON")),$r=g(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),sn=()=>oe.actions.internal.toggleChromecast(),rr=g(()=>Ge()?s()==="playing":l()===rm.PLAYING),eo=g(()=>d().value!=="off"),Qo=g(()=>a()&&!Ge()||Li),Un=g(()=>nn?r(Qo)&&Zi(p(),"m"):r(Qo)),yn=g(()=>!a()||Li||Ge()),yr=g(()=>Zi(p(),"m")),zn=g(()=>e.showNextPrevButtons&&Zi(p(),"m")&&!Ge()&&e.nextButtonActive),sr=g(()=>e.showNextPrevButtons&&Zi(p(),"m")&&!Ge()&&e.prevButtonActive),xr=g(()=>!Ge()&&!!f()),xn=g(()=>v()!==C1.NOT_AVAILABLE&&!(u()&&y()===1)&&Zi(p(),"m")&&!Li),Wn=g(()=>e.showAutoplayNext&&!Xt()&&Zi(p(),"s")),wr=g(()=>w().length>0&&Zi(p(),"m")),Sr=g(()=>x()||S()),lo=g(()=>Zi(p(),"s")&&!Ge()),pt=g(()=>!e.logoHidden&&!Ge()),Jt=g(()=>he.features.fullscreen&&(e.logoHidden||Zi(p(),nn?"xs":"s"))&&!(u()&&y()===1)&&(Li?qt():!0)),an=g(()=>(!f()||Ge())&&!(he.features.interactiveHideTime&&Li)),Ii=g(()=>T().width>100),Wi=g(()=>Ao&&Zi(p(),"m")),Go=g(()=>nn?bn&&Zi(p(),"s"):bn),jo=g(()=>nn?$n&&Zi(p(),"s"):$n),ho=g(()=>!Ge()&&!f()&&!!(ri!=null&&ri.length)&&r(yr)&&!r(rn)),Kn=g(()=>!E()||!!V()),ln=g(()=>k()?D("tooltip_interactive_graph_on"):D("tooltip_interactive_graph_off")),Mo=g(()=>I()?D("tooltip_context_menu_close"):D("tooltip_context_menu_open")),zr=(_t,bt)=>_t?bt&&bt===rm.PAUSED?D("tooltip_play"):"":D("tooltip_live"),Wr=g(()=>zr(r(Kn),l())),Cr=g(()=>he.logoType==="vk_video"?D("tooltip_vk_video_logo"):D("tooltip_vk_logo")),Kr=g(()=>r(eo)?D("tooltip_subtitles_on"):D("tooltip_subtitles_off")),qn=g(()=>R()?D("tooltip_fullscreen_on"):D("tooltip_fullscreen_off")),ar=g(()=>v()===C1.CONNECTED?D("tooltip_chromecast_on"):D("tooltip_chromecast_off")),lr=g(()=>Y()?D("tooltip_autoplay_on"):D("tooltip_autoplay_off")),_o=j(0),jt=ni({}),co=ni({}),Tr=g(()=>Ot.prevButton),as=g(()=>Ot.replayButton),Er=g(()=>Ot.playButton),Vi=g(()=>Ot.nextButton),vt=g(()=>Ot.playPrevChapterButton),Ft=g(()=>Ot.seekToInteractiveButton),Ki=g(()=>Ot.interactiveGraphButton),Ri=g(()=>Ot.liveButton),bo=g(()=>Ot.time),to=g(()=>Ot.episodes),Lo=g(()=>Ot.vkLogo),wi=g(()=>Ot.volume),wn=g(()=>Ot.subtitles),dr=g(()=>Ot.settings),qr=g(()=>Ot.context),Qr=g(()=>Ot.fullscreen),Gr=g(()=>Ot.chromecast),uo=g(()=>({prevButton:H()?H().right-H().left:0,replayButton:F()?F().right-F().left:0,playButton:W()?W().right-W().left:0,nextButton:J()?J().right-J().left:0,playPrevChapterButton:G()?G().right-G().left:0,seekToInteractiveButton:ce()?ce().right-ce().left:0,interactiveGraphButton:ie()?ie().right-ie().left:0,liveButton:ue()?ue().right-ue().left:0,time:$e()?$e().right-$e().left:0,episodes:fe()?fe().right-fe().left:0,vkLogo:ke()?ke().right-ke().left:0,volume:ne()?ne().right-ne().left:0,subtitles:Ve()?Ve().right-Ve().left:0,settings:re()?re().right-re().left:0,context:N()?N().right-N().left:0,fullscreen:Be()?Be().right-Be().left:0,chromecast:le()?le().right-le().left:0,additionalButtons:ve().length?ve().reduce(_t=>[..._t,40],[]):[]})),Sn=j(0);Ke(()=>{(!r(Sn)||r(Sn)<r(uo).time)&&yt(()=>O(Sn,r(uo).time,!0))});let Ir=j(!1);Ke(()=>{let _t=0;r(ho)&&(Zi(p(),"xl")?_t=r(uo).time:_t=60);let bt=r(uo).prevButton+r(uo).playButton+r(uo).nextButton+r(uo).seekToInteractiveButton+r(uo).interactiveGraphButton+r(uo).liveButton+r(Sn)+_t;O(Ir,r(an)&&r(_o)>=bt,!0)});let kr=g(()=>r(Ir)&&Zi(p(),"m")),ot=T1(fl,260),St=T1(_u,260);Ke(()=>{T(),te(),ot($t(),Ot,jt,e.showControls),St($t(),Dn,co,e.showControls)}),Ke(()=>{co.bottom=mt()});let mi=se();Ke(()=>{me(),De()&&yt(()=>sl(De(),me(),vo))});let qi;Ke(()=>{pe(),yt(()=>gu(Wo,pe(),qi))});function $o(){Bs({isAudioDisabled:et,isAudioAvailable:st(),isAds:Ge(),audioIsNotExistHintCallback:Le,audioDisabledHintCallback:je})&&we()}let po=Li?Mi:ae,io=g(()=>Z()!==null),Vo=g(()=>r(io)?Z():r(rr)),Cn=g(()=>r(Vo)?D("tooltip_pause"):D("tooltip_play")),dn=D("tooltip_episodes"),Qi=g(()=>{var _t,bt,no,pn;return r(sr)?{id:"prevButton",type:"desktop-control-panel-left",weight:$s.prevButton,buttonComponent:ya,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Po.bind(null,!0)},tooltipEnabled:!((bt=(_t=oe.callbacks)==null?void 0:_t.uiInfo)!=null&&bt.onPrevButtonMouseEnter)&&!((pn=(no=oe.callbacks)==null?void 0:no.uiInfo)!=null&&pn.onPrevButtonMouseLeave),mouseEnter:()=>{var Oi,pi,fi;(fi=(pi=(Oi=oe.callbacks)==null?void 0:Oi.uiInfo)==null?void 0:pi.onPrevButtonMouseEnter)==null||fi.call(pi,On($t(),jt,"prevButton",e.showControls))},mouseLeave:()=>{var Oi,pi,fi;(fi=(pi=(Oi=oe.callbacks)==null?void 0:Oi.uiInfo)==null?void 0:pi.onPrevButtonMouseLeave)==null||fi.call(pi,On($t(),jt,"prevButton",e.showControls))},tooltipText:D("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),yo=g(()=>r(Un)?{id:"replayButton",type:"desktop-control-panel-left",weight:$s.replayButton,buttonComponent:ml,buttonComponentProps:{disabled:r(nr),click:po},tooltipText:D("tooltip_restart"),disabled:r(nr)}:void 0),cr=g(()=>r(yn)?{id:"playButton",type:"desktop-control-panel-left",weight:$s.playButton,buttonComponent:vl,buttonComponentProps:{disabled:r(br),isPlaying:r(rr),click:ae},tooltipText:r(Cn),disabled:r(br)}:void 0),Tn=g(()=>{var _t,bt,no,pn;return r(zn)?{id:"nextButton",type:"desktop-control-panel-left",weight:$s.nextButton,buttonComponent:ya,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:Hn.bind(null,!0)},tooltipEnabled:!((bt=(_t=oe.callbacks)==null?void 0:_t.uiInfo)!=null&&bt.onNextButtonMouseEnter)&&!((pn=(no=oe.callbacks)==null?void 0:no.uiInfo)!=null&&pn.onNextButtonMouseLeave),mouseEnter:()=>{var Oi,pi,fi;(fi=(pi=(Oi=oe.callbacks)==null?void 0:Oi.uiInfo)==null?void 0:pi.onNextButtonMouseEnter)==null||fi.call(pi,On($t(),jt,"nextButton",e.showControls))},mouseLeave:()=>{var Oi,pi,fi;(fi=(pi=(Oi=oe.callbacks)==null?void 0:Oi.uiInfo)==null?void 0:pi.onNextButtonMouseLeave)==null||fi.call(pi,On($t(),jt,"nextButton",e.showControls))},tooltipText:D("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),En=g(()=>Li&&r(jo)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:$s.playPrevChapterButton,buttonComponent:Td,buttonComponentProps:{disabled:r($r),click:e.playPrevChapter},tooltipText:D("tooltip_interactive_go_back"),disabledTooltipContent:D(zi),disabled:r($r)}:void 0),ur=g(()=>Li&&r(Go)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:$s.seekToInteractiveButton,buttonComponent:Id,buttonComponentProps:{disabled:r(Fn),click:e.seekToInteractive},tooltipText:D("tooltip_interactive_seek"),disabled:r(Fn),disabledTooltipContent:D(Ae())}:void 0),In=g(()=>Li&&r(Wi)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:$s.interactiveGraphButton,buttonComponent:kd,buttonComponentProps:{disabled:r(Ur),click:qo.toggle,graphIsOpened:k()},tooltipText:r(ln)}:void 0),Pr=g(()=>r(xr)?{id:"liveButton",type:"desktop-control-panel-left",weight:$s.liveButton,buttonComponent:Pd,buttonComponentProps:{isLiveActive:r(Kn),ariaLabel:r(Wr)},tooltipText:r(Wr),disabled:r(Kn)&&l()===rm.PLAYING}:void 0),xo=g(()=>[r(Qi),r(yo),r(cr),r(Tn),r(En),r(ur),r(In),r(Pr)].filter(_t=>!!_t).sort(fa)),kn=g(()=>r(pt)?{id:"vkLogo",type:"desktop-control-panel-right",weight:xs.vkLogo,buttonComponent:hd,buttonComponentProps:{targetUrl:Bt(),logoClickable:e.logoClickable,click:Re},tooltipText:r(Cr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),jr=g(()=>r(Wn)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:xs.autoplayNext,buttonComponent:Ed,tooltipText:r(lr)}:void 0),Ye=g(()=>({id:"volume",type:"desktop-control-panel-right",weight:xs.volume,buttonComponent:Lf,buttonComponentProps:{click:$o,isAds:Ge()}})),ei=g(()=>r(wr)?{id:"subtitles",type:"desktop-control-panel-right",weight:xs.subtitles,buttonComponent:If,buttonComponentProps:{isSubtitlesEnabled:r(eo),click:qe},tooltipText:r(Kr)}:void 0),_i=g(()=>r(lo)?{id:"settings",type:"desktop-control-panel-right",weight:xs.settings,buttonComponent:cl,buttonComponentProps:{ref$:mi},tooltipText:me()?void 0:D("tooltip_settings_off")}:void 0),wo=g(()=>he.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:xs.context,buttonComponent:Xf,buttonComponentProps:{ariaLabel:D("aria_label_context_menu")},className:r(Sr)?"":"out-of-view",tooltipText:r(Mo)}:void 0),_e=g(()=>r(Jt)?{id:"fullscreen",type:"desktop-control-panel-right",weight:xs.fullscreen,buttonComponent:gd,buttonComponentProps:{isFullscreen:R(),click:e.toggleFullscreen},tooltipText:r(qn)}:void 0),Tt=g(()=>r(xn)?{id:"chromecast",type:"desktop-control-panel-right",weight:xs.chromecast,buttonComponent:_d,buttonComponentProps:{state:v(),click:sn},tooltipText:r(ar)}:void 0),Gt=g(()=>[r(kn),r(jr),r(Ye),r(ei),r(_i),r(wo),r(_e),r(Tt),...ve()].filter(_t=>!!_t).sort(fa));var ci=Xy(),Gi=ge(ci);let oo;var Ze=_(Gi);let Wt=g(()=>!e.showControls),Ni=g(()=>!r(Ii));ba(Ze,{get isHidden(){return r(Wt)},get timelineNotAvailable(){return r(Ni)},get isAds(){return Ge()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return E()},get ref(){return jt.timeline},set ref(_t){jt.timeline=_t}});var Ro=P(Ze,2),cn=_(Ro),Qn=_(cn);Si(Qn,17,()=>r(xo),_t=>_t.id,(_t,bt)=>{hu(_t,{get buttonComponent(){return r(bt).buttonComponent},get buttonComponentProps(){return r(bt).buttonComponentProps},get tooltipText(){return r(bt).tooltipText},get disabledTooltipContent(){return r(bt).disabledTooltipContent},get disabled(){return r(bt).disabled},get className(){return r(bt).className},get tooltipEnabled(){return r(bt).tooltipEnabled},get mouseEnter(){return r(bt).mouseEnter},get mouseLeave(){return r(bt).mouseLeave},get ref(){return jt[r(bt).id]},set ref(no){jt[r(bt).id]=no}})});var pr=P(Qn,2);{var Ar=_t=>{let bt=g(()=>!e.showControls),no=g(()=>Ge()?Ie():ze()),pn=g(()=>Ge()?at():ft());md(_t,{get isHidden(){return r(bt)},isMobile:!1,get showDuration(){return r(kr)},get position(){return r(no)},get duration(){return r(pn)},get ref(){return jt.time},set ref(Oi){jt.time=Oi}})};L(pr,_t=>{r(an)&&_t(Ar)})}var ji=P(pr,2);let ui=g(()=>!r(ho));Eo(ji,{className:"w-max",get disabled(){return r(ui)},get tooltipContent(){return dn},get ref(){return jt.episodes},set ref(_t){jt.episodes=_t},children:(_t,bt)=>{var no=We(),pn=ge(no);{var Oi=pi=>{$d(pi,{get position(){return ze()},get duration(){return ft()},get timeCodes(){return ri}})};L(pn,pi=>{r(ho)&&pi(Oi)})}$(_t,no)},$$slots:{default:!0}}),h(cn);var un=P(cn,2);Si(un,21,()=>r(Gt),_t=>_t.id,(_t,bt)=>{var no=We(),pn=ge(no);{var Oi=fi=>{hu(fi,{get buttonComponent(){return r(bt).buttonComponent},get buttonComponentProps(){return r(bt).buttonComponentProps},get tooltipText(){return r(bt).tooltipText},get disabledTooltipContent(){return r(bt).disabledTooltipContent},get disabled(){return r(bt).disabled},get className(){return r(bt).className},get ref(){return jt[r(bt).id]},set ref(zs){jt[r(bt).id]=zs}})},pi=fi=>{let zs=g(()=>!!r(bt).disabled);nm(fi,{get id(){return r(bt).id},get testId(){return r(bt).testId},get icon(){return r(bt).icon},get ariaLabel(){return r(bt).ariaLabel},get tooltipText(){return r(bt).tooltipText},get disabledTooltipContent(){return r(bt).disabledTooltipContent},get disabled(){return r(zs)},get onClick(){return r(bt).onClick},get disableMouseupTooltipShow(){return r(bt).disableMouseupTooltipShow},get ref(){return jt[r(bt).id]},set ref(Ma){jt[r(bt).id]=Ma}})};L(pn,fi=>{S1(r(bt))?fi(Oi):fi(pi,!1)})}$(_t,no)}),h(un),h(Ro),it(Ro,_t=>wt(_t),()=>wt()),h(Gi),it(Gi,_t=>mt(_t),()=>mt());var fr=P(Gi,2);{var No=_t=>{Sd(_t,{get ref(){return jt.interactiveTimeIndicator},set ref(bt){jt.interactiveTimeIndicator=bt}})};L(fr,_t=>{Ei&&_t(No)})}B(_t=>oo=ee(Gi,1,"wrapper-bottom svelte-f6e8ix",null,oo,_t),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),ir(cn,"clientWidth",_t=>O(_o,_t)),$(t,ci),z(),o()}import{ChromecastState as I1,PlaybackState as k1}from"@vkontakte/videoplayer-core/es2018";import{noop as E1}from"@vkontakte/videoplayer-shared/es2018";var e4=M('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),t4=M('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),i4={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 am(t,e){q(t,i4);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,E1),n=g(()=>o()===E1),s=g(()=>r(n)||i()),l=j(!1),d=()=>{O(l,!0)},a=g(()=>r(n)?"btn-full-opacity":"");Rt(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:(p,f)=>{var v=We(),u=ge(v);{var y=x=>{var S=e4();$(x,S)},w=x=>{var S=t4();B(()=>Fe(S,"src",e.iconUrl)),xt("error",S,d),ia(S),$(x,S)};L(u,x=>{r(l)?x(y):x(w,!1)})}$(p,v)},$$slots:{default:!0}})}var o4=Te('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" d="M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"></path></g></svg>');function lm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=o4();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}import{noop as n4}from"@vkontakte/videoplayer-shared/es2018";var r4=M('<div class="container svelte-yslgu" aria-hidden="true"><!></div>'),s4={hash:"svelte-yslgu",code:".container.svelte-yslgu {display:flex;align-items:center;}"};function bu(t,e){U(e,!0),q(t,s4);let i=m(e,"muted",3,!1),o=m(e,"click",3,n4),n=m(e,"ref",15,void 0),l=Ee().ui.t,d=g(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),a=g(()=>i()?lm:Ds),p=g(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Rt(t,{get testId(){return r(p)},get click(){return o()},get ariaLabel(){return r(d)},role:"button",get ref(){return n()},set ref(f){n(f)},children:(f,v)=>{var u=r4();let y=g(()=>r(a));var w=_(u);Ci(w,()=>r(y),(x,S)=>{S(x,{})}),h(u),$(f,u)},$$slots:{default:!0}}),z()}var a4=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z" class="hidden-not-active"></path><path fill="var(--btn-color, #fff)" d="m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z" class="hidden-active"></path></svg>');function dm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=a4();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(3),h(o),$(t,o)}var l4={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
|
|
251
|
+
svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function cm(t,e){q(t,l4);let i=m(e,"isActive",3,!1),o=g(()=>i()?"color: #2688EB;":"color: #fff;"),n=g(()=>i()?"pip-icon--active":"pip-icon");dm(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}import{noop as d4}from"@vkontakte/videoplayer-shared/es2018";function um(t,e){U(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isPictureInPictureActive",3,!1),n=m(e,"click",3,d4),s=K("menu_pip");Rt(t,{testId:"btn-pip",get ariaLabel(){return s},get click(){return n()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{cm(l,{get isActive(){return o()}})},$$slots:{default:!0}}),z()}import{debounceFn as P1}from"@vkontakte/videoplayer-shared/es2018";var c4=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},u4=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},p4=M("<div><!></div>"),f4=M("<div><!></div>"),m4=M("<div><!></div>"),v4=M("<!> <!> <!>",1),g4=M("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),h4=M('<div class="wrapper-middle svelte-68kopu"><!></div>'),_4=M("<div><!></div> <!> <div><!></div>",1),b4=M('<div aria-hidden="true">\xB7</div> <!>',1),$4=M('<!> <!> <div><div><div><div class="controls-group contain svelte-68kopu"><!> <!> <!> <!></div> <div class="controls-group svelte-68kopu"><!> <!> <!></div></div> <!></div></div> <!>',1),y4={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"},Kh=W_;var g
|
|
|
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 $m(t,e){var qn,pr;U(e,!0),K(t,E4);let[i,o]=He(),n=()=>C(Xi,"$seekToInteractiveDisabledTooltip$",i),s=()=>C(ut,"$disabledControls$",i),l=()=>C(Ee,"$playbackState$",i),d=()=>C(Fo,"$adPlaybackState",i),a=()=>C(te,"$isEnded$",i),p=()=>C(D,"$playerSize",i),f=()=>C(Ne,"$scrubbingInProgress",i),m=()=>C(tn,"$chromecastState$",i),u=()=>C(Ft,"$isPictureInPictureActive",i),y=()=>C(Wt,"$pictureInPictureType$",i),w=()=>C(Je,"$mobileNotReportControlHidden$",i),x=()=>C(Li,"$chromecastHidden",i),S=()=>C(Xt,"$playerPhase",i),T=()=>C(lt,"$pipHidden",i),E=()=>C(Co,"$currentGridType$",i),R=()=>C(Mi,"$vkLogoHidden",i),I=()=>C(dt,"$volumeHidden",i),M=()=>C(ne,"$isLive$",i),k=()=>C(Ct,"$settingsMenuVisible",i),G=()=>C(We,"$isRewindableLive$",i),H=()=>C(Re,"$isActiveLive$",i),F=()=>C(zt,"$isAudioAvailable$",i),q=()=>C(Fe,"$muted$",i),Y=()=>C(Ve,"$volume$",i),j=()=>C(kt,"$isInteractiveTime$",i),ue=()=>C(Ko,"$settingButtonRef$",i),re=()=>C(di,"$startedByKeyboard$",i),fe=()=>C(On,"$isFullscreen",i),be=()=>C(Ke,"$additionalButtons$",i),me=()=>C(Gt,"$autoplayNextToggleHidden",i),Pe=()=>C(At,"$crashed$",i),se=()=>C(si,"$settingsHidden",i),Le=()=>C(Ki,"$graphIsOpened$",i),ae=()=>C(ti,"$adPosition",i),N=()=>C(Wi,"$adDuration",i),Be=()=>C(Qt,"$position$",i),ce=()=>C(Bt,"$duration$",i),he=v(e,"playerControlsWrapperRef",15,void 0),oe=v(e,"playerControlsRef",15,void 0),ve=v(e,"isAds",3,!1),De=v(e,"logoTargetUrl",3,""),pe=v(e,"isOneVideoPlaylist",3,!1),rt=v(e,"customFullscreenSupported",3,!0),X=Te(),Ae=uo(),ke=Et(),ze=X.actions.internal.toggleMuted,nt=X.actions.internal.togglePlay,ht=X.actions.internal.pause,at=X.actions.internal.prevVideoClick,yt=X.actions.internal.nextVideoClick,Xe=(qn=X.callbacks)==null?void 0:qn.onAudioDoesNotExistHint,Ht=(pr=X.callbacks)==null?void 0:pr.onAudioDisabledHint,Xt=X.playerPhase,Bt=X.state.duration$,Qt=X.state.positionWithScrubbing$,Ee=X.state.playbackState$,zt=X.state.isAudioAvailable$,Se=X.state.isAudioDisabled,te=X.state.isEnded$,ne=X.state.isLive$,Ve=X.state.volume$,Fe=X.state.muted$,Re=X.state.isActiveLive$,We=X.state.isRewindableLive$,Ne=X.ui.scrubbingInProgress,Je=X.ui.mobileNotReportControlHidden$,{isActive$:Ft,type$:Wt}=Ae.pictureInPicture$,Ct=X.ui.settingsMenu.visible$,_i=X.ui.settingsMenu.openedByBtnKeyboard$,gi=X.ui.controls,{volume:dt,vkLogo:Mi,autoplayNextToggle:Gt,pip:lt,settings:si,chromecast:Li}=X.ui.hiddenControls,Pt=X.actions.internal.getVideoEpisodes(),ri=X.webApi.pictureInPictureApi,tn=X.state.chromecastState$,At=X.state.crashed$,ut=gi.disabledControls$,di=X.ui.startedByKeyboard$,Co=X.ui.currentGridType$,Wi=X.ads.duration,ti=X.ads.position,Fo=X.ads.playbackState,On=X.ui.isFullscreen,D=X.ui.playerSize,Ke=X.ui.additionalButtonsDeprecated$,ct=X.actions.internal.getVideoElement,Kt=X.actions.internal.replayInteractive,It=X.state.isInteractive,kt=X.state.isInteractiveTime$,ci=X.state.showInteractiveGraph,Uo=X.state.showSeekToInteractive,ai=X.state.showPlayPrevChapter,xt=X.state.showInteractiveTimeIndicator,Xi=Ae.seekToInteractiveDisabledTooltip$,Ki=Ae.graphIsOpened$,Bn=X.ui.controlBlocks,Vi=g(()=>W(X.state.playPrevChapterDisabledTooltip)),po=g(()=>W(n())),fo=g(()=>s().has("EPISODE_BUTTON")),_n=g(()=>s().has("GRAPH_BUTTON")),on=g(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),Ei=g(()=>s().has("PLAY_BUTTON")),qi=g(()=>s().has("REPLAY_BUTTON")),nn=g(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),To=g(()=>l()===D1.PLAYING),rn=g(()=>d()==="paused"),sn=g(()=>a()&&!ve()&&!It),xr=g(()=>!a()||ve()),Dn=g(()=>e.showNextPrevButtons&&!ve()&&e.prevButtonActive),wr=g(()=>e.showNextPrevButtons&&!ve()&&e.nextButtonActive),ar=g(()=>p().width>300),zr=g(()=>p().width>400),an=g(f),Hn=g(()=>m()!==B1.NOT_AVAILABLE&&!(u()&&y()===1)&&!w()&&!It&&!x()),lr=g(()=>S()==="LiveWaitingStart"),bn=g(()=>!!ri&&m()!==B1.CONNECTED&&!w()&&(y()===1&&r(lr)||!r(lr))&&!r(an)&&!It&&!T()),ro=Z(!1);Lt(()=>{let tt=ri==null?void 0:ri.info.isActive$.subscribe(St=>O(ro,St,!0));return()=>tt==null?void 0:tt.unsubscribe()});let Fn=g(()=>!r(an)&&Yi(E(),"s")),Sr=g(()=>!e.logoHidden&&p().width>350&&!R()),$n=g(()=>ke.features.fullscreen&&!(u()&&y()===1)&&(It?rt():!0)&&!r(an)&&!r(ro)),dr=g(()=>!I()&&!r(an)),Un=g(()=>(!M()||ve())&&p().width>260&&!r(an)&&!(ke.features.interactiveHideTime&&It)),zo=g(()=>k()||e.showControls),zn=g(()=>!ve()&&!M()&&!!(Pt!=null&&Pt.length)&&r(ar)&&!r(fo)&&!r(an)),Wr=g(()=>!G()||!!H()),Cr=g(()=>ci&&Yi(E(),"m")),mo=g(()=>!F()||q()||Y()===0),pt=ni({}),jt=ni({}),yn=H1(pl,260),Qi=H1(wu,260);Qe(()=>{p(),j(),yn(ct(),gi,pt,e.showControls),Qi(ct(),Bn,jt,e.showControls)});let Ri=()=>X.actions.internal.toggleChromecast();async function Wo(){ri!=null&&ri.isActive()?await(ri==null?void 0:ri.exit()):await(ri==null?void 0:ri.request())}function xn(){Ds({isAudioDisabled:Se,audioDisabledHintCallback:Ht,isAudioAvailable:F(),audioIsNotExistHintCallback:Xe,isAds:ve()})&&ze()}let so=Z(""),ln=(tt,St)=>{if(!tt){O(so,W("tooltip_live"),!0);return}St&&St===D1.PAUSED&&O(so,W("tooltip_play"),!0)};Qe(()=>{ln(r(Wr),l())});let Ko=le();Qe(()=>{ue()&&rl(ue(),k(),_i)}),Qe(()=>{yu(di,re(),pt.playButton)});var vo=T4(),Tr=ge(vo);{var Er=tt=>{var St=x4(),fi=ge(St);let Oi;var ho=P(fi,2);let to;et(ho,J=>jt.topLeft=J,()=>jt==null?void 0:jt.topLeft);var Ii=P(ho,2);let ko;var Qn=_(Ii);Si(Qn,1,be,({iconUrl:J,ariaLabel:Ze,testId:Ut,onClick:pi,tooltip:Bi})=>J,(J,Ze)=>{let Ut=()=>r(Ze).iconUrl,pi=()=>r(Ze).ariaLabel,Bi=()=>r(Ze).testId,Di=()=>r(Ze).onClick,xi=()=>r(Ze).tooltip,En=g(()=>{var wi;return(wi=pi())!=null?wi:xi()});vm(J,{get iconUrl(){return Ut()},get ariaLabel(){return r(En)},get testId(){return Bi()},get onClick(){return Di()}})});var un=P(Qn,2);{var _o=J=>{Ad(J,{get ref(){return pt.autoplayNextToggle},set ref(Ze){pt.autoplayNextToggle=Ze}})};V(un,J=>{e.showAutoplayNext&&!pe()&&!me()&&J(_o)})}var Po=P(un,2);{var fr=J=>{xd(J,{isMobile:!0,click:Ri,get state(){return m()},get ref(){return pt.chromecast},set ref(Ze){pt.chromecast=Ze}})};V(Po,J=>{r(Hn)&&J(fr)})}var Cn=P(Po,2);{var Gn=J=>{bm(J,{click:Wo,get isPictureInPictureActive(){return u()},get ref(){return pt.pip},set ref(Ze){pt.pip=Ze}})};V(Cn,J=>{r(bn)&&J(Gn)})}var mr=P(Cn,2);{var Ao=J=>{dl(J,{get ref$(){return Ko}})};V(mr,J=>{Pe()&&!se()&&J(Ao)})}var Mr=P(mr,2);{var Qr=J=>{yd(J,{get click(){return ht},get targetUrl(){return De()},get logoClickable(){return e.logoClickable},get ref(){return pt.vkLogo},set ref(Ze){pt.vkLogo=Ze}})};V(Mr,J=>{r(Sr)&&J(Qr)})}h(Ii),et(Ii,J=>jt.topRight=J,()=>jt==null?void 0:jt.topRight);var jn=P(Ii,2);let vr;var je=_(jn);{var Jt=J=>{let Ze=g(()=>at.bind(null,!0));ya(J,{get click(){return r(Ze)},type:"prev",isMobile:!0,get ref(){return pt.prevButton},set ref(Ut){pt.prevButton=Ut}})};V(je,J=>{r(Dn)&&J(Jt)})}var mi=P(je,2);{var bi=J=>{ml(J,{get disabled(){return r(Ei)},get click(){return nt},isMobile:!0,get isPlaying(){return r(To)},get ref(){return pt.playButton},set ref(Ze){pt.playButton=Ze}})};V(mi,J=>{r(xr)&&J(bi)})}var Mo=P(mi,2);{var Gr=J=>{fl(J,{get disabled(){return r(qi)},get click(){return nt},isMobile:!0,get ref(){return pt.replayButton},set ref(Ze){pt.replayButton=Ze}})};V(Mo,J=>{r(sn)&&J(Gr)})}var Lo=P(Mo,2);{var Tn=J=>{let Ze=g(()=>yt.bind(null,!0));ya(J,{get click(){return r(Ze)},type:"next",isMobile:!0,get ref(){return pt.nextButton},set ref(Ut){pt.nextButton=Ut}})};V(Lo,J=>{r(wr)&&J(Tn)})}h(jn),et(jn,J=>jt.middle=J,()=>jt==null?void 0:jt.middle);var Yn=P(jn,2);{var jr=J=>{var Ze=y4(),Ut=ge(Ze);{var pi=wi=>{var li=_4();let Qo;li.__click=[g4,nn,e,Vi];var gr=_(li);let bo=g(()=>!e.showControls);Pd(gr,{get hidden(){return r(bo)},get disabled(){return r(nn)},get click(){return e.playPrevChapter},get ref(){return pt.playPrevChapterButton},set ref($o){pt.playPrevChapterButton=$o}}),h(li),B($o=>Qo=ie(li,1,"wrapper-middle-left svelte-68kopu",null,Qo,$o),[()=>({fullscreen:fe(),hidden:!e.showControls})]),$(wi,li)};V(Ut,wi=>{ai&&wi(pi)})}var Bi=P(Ut,2);{var Di=wi=>{var li=b4();let Qo;var gr=_(li);let bo=g(()=>!e.showControls&&!Le());Ld(gr,{get hidden(){return r(bo)},get disabled(){return r(_n)},get click(){return Ki.toggle},get graphIsOpened(){return Le()},get ref(){return pt.interactiveGraphButton},set ref($o){pt.interactiveGraphButton=$o}}),h(li),B($o=>Qo=ie(li,1,ql(ai?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-68kopu",Qo,$o),[()=>({fullscreen:fe(),hidden:!e.showControls&&!Le()})]),$(wi,li)};V(Bi,wi=>{r(Cr)&&wi(Di)})}var xi=P(Bi,2);{var En=wi=>{var li=$4();let Qo;li.__click=[h4,on,e,po];var gr=_(li);let bo=g(()=>!e.showControls);Md(gr,{get hidden(){return r(bo)},get disabled(){return r(on)},get click(){return e.seekToInteractive},get ref(){return pt.seekToInteractiveButton},set ref($o){pt.seekToInteractiveButton=$o}}),h(li),B($o=>Qo=ie(li,1,"wrapper-middle-right svelte-68kopu",null,Qo,$o),[()=>({fullscreen:fe(),hidden:!e.showControls})]),$(wi,li)};V(xi,wi=>{Uo&&wi(En)})}$(J,Ze)};V(Yn,J=>{It&&!f()&&J(jr)})}B((J,Ze,Ut,pi)=>{Oi=ie(fi,1,"overlay-mobile svelte-68kopu",null,Oi,J),to=ie(ho,1,"wrapper-top-left svelte-68kopu",null,to,Ze),ko=ie(Ii,1,"wrapper-top-right svelte-68kopu",null,ko,Ut),vr=ie(jn,1,"wrapper-middle svelte-68kopu",null,vr,pi)},[()=>({hidden:!r(zo)}),()=>({hidden:!e.showControls,fullscreen:fe()}),()=>({hidden:!e.showControls&&!w(),fullscreen:fe()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),$(tt,St)};V(Tr,tt=>{ve()||tt(Er)})}var Kr=P(Tr,2);{var as=tt=>{var St=S4(),fi=ge(St);let Oi;var ho=_(fi);Su(ho,{get muted(){return q()},click:xn,get ref(){return pt.volume},set ref(_o){pt.volume=_o}}),h(fi);var to=P(fi,2);{var Ii=_o=>{var Po=w4(),fr=_(Po);let Cn=g(()=>!r(rn));ml(fr,{get disabled(){return r(Ei)},get click(){return nt},isMobile:!0,get isPlaying(){return r(Cn)},get ref(){return pt.playButton},set ref(Gn){pt.playButton=Gn}}),h(Po),$(_o,Po)};V(to,_o=>{r(rn)&&_o(Ii)})}var ko=P(to,2);let Qn;var un=_(ko);wd(un,{get position(){return ae()},get duration(){return N()}}),h(ko),B((_o,Po)=>{Oi=ie(fi,1,"wrapper-top-right svelte-68kopu",null,Oi,_o),Qn=ie(ko,1,"wrapper-bottom ads-timeline-mobile svelte-68kopu",null,Qn,Po)},[()=>({fullscreen:fe()}),()=>({fullscreen:fe()})]),$(tt,St)};V(Kr,tt=>{ve()&&d()!=="inactive"&&tt(as)})}var wn=P(Kr,2);let cr;var Ir=_(wn);let go;var ii=_(Ir);ie(ii,1,"controls svelte-68kopu",null,{},{mobile:!0});var dn=_(ii),cn=_(dn);{var Sn=tt=>{So(tt,{get disabled(){return r(qi)},get ref(){return pt.replayButton},set ref(St){pt.replayButton=St},children:(St,fi)=>{fl(St,{get disabled(){return r(qi)},get click(){return Kt}})},$$slots:{default:!0}})};V(cn,tt=>{It&&tt(Sn)})}var kr=P(cn,2);{var Pr=tt=>{So(tt,{get ref(){return pt.liveButton},set ref(St){pt.liveButton=St},children:(St,fi)=>{Vd(St,{get isLiveActive(){return r(Wr)},isMobile:!0,get ariaLabel(){return r(so)}})},$$slots:{default:!0}})};V(kr,tt=>{!ve()&&M()&&tt(Pr)})}var ft=P(kr,2);{var _t=tt=>{let St=g(()=>ve()?ae():Be()),fi=g(()=>ve()?N():ce()),Oi=g(()=>!e.showControls);_d(tt,{get showDuration(){return r(zr)},get position(){return r(St)},get duration(){return r(fi)},isMobile:!0,get isHidden(){return r(Oi)},get ref(){return pt.time},set ref(ho){pt.time=ho}})};V(ft,tt=>{r(Un)&&tt(_t)})}var Ji=P(ft,2);let Ni=g(()=>!r(zn));So(Ji,{className:"w-max",get disabled(){return r(Ni)},get ref(){return pt.episodes},set ref(tt){pt.episodes=tt},children:(tt,St)=>{var fi=qe(),Oi=ge(fi);{var ho=to=>{var Ii=C4(),ko=P(ge(Ii),2);Sd(ko,{get position(){return Be()},get duration(){return ce()},get timeCodes(){return Pt}}),$(to,Ii)};V(Oi,to=>{r(zn)&&to(ho)})}$(tt,fi)},$$slots:{default:!0}}),h(dn),et(dn,tt=>jt.bottomRight=tt,()=>jt==null?void 0:jt.bottomRight);var ao=P(dn,2),lo=_(ao);{var qo=tt=>{So(tt,{get ref(){return pt.volume},set ref(St){pt.volume=St},children:(St,fi)=>{Su(St,{get muted(){return r(mo)},click:xn})},$$slots:{default:!0}})};V(lo,tt=>{r(dr)&&tt(qo)})}var eo=P(lo,2);{var Wn=tt=>{So(tt,{get ref(){return pt.settings},set ref(St){pt.settings=St},children:(St,fi)=>{dl(St,{get ref$(){return Ko}})},$$slots:{default:!0}})};V(eo,tt=>{r(Fn)&&tt(Wn)})}var Eo=P(eo,2);{var ur=tt=>{So(tt,{get ref(){return pt.fullscreen},set ref(St){pt.fullscreen=St},children:(St,fi)=>{$d(St,{get click(){return e.toggleFullscreen},get isFullscreen(){return fe()}})},$$slots:{default:!0}})};V(Eo,tt=>{r($n)&&tt(ur)})}h(ao),et(ao,tt=>jt.bottomRight=tt,()=>jt==null?void 0:jt.bottomRight),h(ii),et(ii,tt=>oe(tt),()=>oe());var Ar=P(ii,2);let qr=g(()=>!e.showControls);ba(Ar,{get isHidden(){return r(qr)},get isAds(){return ve()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return G()},get ref(){return pt.timeline},set ref(tt){pt.timeline=tt}}),h(Ir),h(wn),et(wn,tt=>he(tt),()=>he());var Io=P(wn,2);{var Kn=tt=>{Id(tt,{get ref(){return pt.interactiveTimeIndicator},set ref(St){pt.interactiveTimeIndicator=St}})};V(Io,tt=>{xt&&tt(Kn)})}B((tt,St)=>{cr=ie(wn,1,"wrapper-bottom svelte-68kopu",null,cr,tt),go=ie(Ir,1,"controls-wrapper svelte-68kopu",null,go,St)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:fe()})]),$(t,vo),z(),o()}st(["click"]);function Rd(t,e){U(e,!0);let[i,o]=He(),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),p=v(e,"logoTargetUrl",3,""),f=v(e,"showAutoplayNext",3,!1),m=v(e,"isOneVideoPlaylist",3,!1),u=v(e,"customFullscreenSupported",3,!0),y=v(e,"endScreenShown",3,!1),w=v(e,"onDisabledPlayPrevChapterClick",3,F1),x=v(e,"onDisabledSeekToInteractiveClick",3,F1),T=Te().ui.isMobile,E=Z(!1);Lt(()=>{let k=setTimeout(()=>O(E,!0),0);return()=>clearTimeout(k)});var R=qe(),I=ge(R);{var M=k=>{var G=qe(),H=ge(G);{var F=Y=>{$m(Y,{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 p()},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 u()},get endScreenShown(){return y()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return x()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(j){l(j)},get playerControlsRef(){return d()},set playerControlsRef(j){d(j)}})},q=Y=>{mm(Y,{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 p()},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 u()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(j){l(j)},get playerControlsRef(){return d()},set playerControlsRef(j){d(j)}})};V(H,Y=>{n()?Y(F):Y(q,!1)})}$(k,G)};V(I,k=>{r(E)&&k(M)})}$(t,R),z(),o()}var I4=we('<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 ym(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=I4();Ie(o,()=>({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);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}function xm(t,e){let i=v(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);ym(t,{get style(){return r(o)}})}var k4=we('<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 wm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=k4();Ie(o,()=>({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);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}var P4=we('<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 Sm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=P4();Ie(o,()=>({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);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}function Cu(t,e){let i=v(e,"isOff",3,!1);var o=qe(),n=ge(o);{var s=d=>{Sm(d,{})},l=d=>{wm(d,{})};V(n,d=>{i()?d(s):d(l,!1)})}$(t,o)}var A4=we('<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 Cm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=A4();Ie(o,()=>({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);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}function Tm(t,e){let i=v(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);Cm(t,{get style(){return r(o)}})}var M4=we('<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 Em(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=M4();Ie(o,()=>({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);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(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 L4=A('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),V4=A('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),R4=A("<div><!></div>"),N4={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 pm(t,e){var Ir,kr;U(e,!0),q(t,y4);let[i,o]=He(),n=()=>C(Mi,"$seekToInteractiveDisabledTooltip$",i),s=()=>C(ct,"$disabledControls$",i),l=()=>C(oe,"$playbackState$",i),d=()=>C(Wo,"$adPlaybackState",i),a=()=>C(we,"$isEnded$",i),p=()=>C(D,"$playerSize",i),f=()=>C(Oe,"$scrubbingInProgress",i),v=()=>C(on,"$chromecastState$",i),u=()=>C(At,"$isPictureInPictureActive",i),y=()=>C(zt,"$pictureInPictureType$",i),w=()=>C(Je,"$mobileNotReportControlHidden$",i),x=()=>C(vo,"$chromecastHidden",i),S=()=>C(Xt,"$playerPhase",i),T=()=>C(gi,"$pipHidden",i),E=()=>C(ko,"$currentGridType$",i),V=()=>C(ii,"$vkLogoHidden",i),k=()=>C(tt,"$volumeHidden",i),I=()=>C(ae,"$isLive$",i),R=()=>C(et,"$settingsMenuVisible",i),Y=()=>C(je,"$isRewindableLive$",i),H=()=>C(Le,"$isActiveLive$",i),F=()=>C(Dt,"$isAudioAvailable$",i),W=()=>C(qe,"$muted$",i),J=()=>C(Re,"$volume$",i),G=()=>C(ai,"$isInteractiveTime$",i),ce=()=>C(ln,"$settingButtonRef$",i),ie=()=>C(hi,"$startedByKeyboard$",i),ue=()=>C(Dn,"$isFullscreen",i),$e=()=>C(Ue,"$additionalButtons$",i),fe=()=>C(Qt,"$autoplayNextToggleHidden",i),ke=()=>C(It,"$crashed$",i),ne=()=>C(Io,"$settingsHidden",i),Ve=()=>C(Po,"$graphIsOpened$",i),re=()=>C(oi,"$adPosition",i),N=()=>C(Ui,"$adDuration",i),Be=()=>C(Ut,"$position$",i),le=()=>C(qt,"$duration$",i),ve=m(e,"playerControlsWrapperRef",15,void 0),te=m(e,"playerControlsRef",15,void 0),me=m(e,"isAds",3,!1),De=m(e,"logoTargetUrl",3,""),pe=m(e,"isOneVideoPlaylist",3,!1),st=m(e,"customFullscreenSupported",3,!0),Z=Ee(),Ae=mo(),Ie=Et(),ze=Z.actions.internal.toggleMuted,at=Z.actions.internal.togglePlay,ft=Z.actions.internal.pause,mt=Z.actions.internal.prevVideoClick,wt=Z.actions.internal.nextVideoClick,Ge=(Ir=Z.callbacks)==null?void 0:Ir.onAudioDoesNotExistHint,Bt=(kr=Z.callbacks)==null?void 0:kr.onAudioDisabledHint,Xt=Z.playerPhase,qt=Z.state.duration$,Ut=Z.state.positionWithScrubbing$,oe=Z.state.playbackState$,Dt=Z.state.isAudioAvailable$,he=Z.state.isAudioDisabled,we=Z.state.isEnded$,ae=Z.state.isLive$,Re=Z.state.volume$,qe=Z.state.muted$,Le=Z.state.isActiveLive$,je=Z.state.isRewindableLive$,Oe=Z.ui.scrubbingInProgress,Je=Z.ui.mobileNotReportControlHidden$,{isActive$:At,type$:zt}=Ae.pictureInPicture$,et=Z.ui.settingsMenu.visible$,$i=Z.ui.settingsMenu.openedByBtnKeyboard$,vi=Z.ui.controls,{volume:tt,vkLogo:ii,autoplayNextToggle:Qt,pip:gi,settings:Io,chromecast:vo}=Z.ui.hiddenControls,Ot=Z.actions.internal.getVideoEpisodes(),ri=Z.webApi.pictureInPictureApi,on=Z.state.chromecastState$,It=Z.state.crashed$,ct=vi.disabledControls$,hi=Z.ui.startedByKeyboard$,ko=Z.ui.currentGridType$,Ui=Z.ads.duration,oi=Z.ads.position,Wo=Z.ads.playbackState,Dn=Z.ui.isFullscreen,D=Z.ui.playerSize,Ue=Z.ui.additionalButtonsDeprecated$,ut=Z.actions.internal.getVideoElement,Ht=Z.actions.internal.replayInteractive,dt=Z.state.isInteractive,ai=Z.state.isInteractiveTime$,li=Z.state.showInteractiveGraph,go=Z.state.showSeekToInteractive,di=Z.state.showPlayPrevChapter,$t=Z.state.showInteractiveTimeIndicator,Mi=Ae.seekToInteractiveDisabledTooltip$,Po=Ae.graphIsOpened$,Hn=Z.ui.controlBlocks,Li=g(()=>K(Z.state.playPrevChapterDisabledTooltip)),Ji=g(()=>K(n())),Ao=g(()=>s().has("EPISODE_BUTTON")),bn=g(()=>s().has("GRAPH_BUTTON")),$n=g(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),Ei=g(()=>s().has("PLAY_BUTTON")),zi=g(()=>s().has("REPLAY_BUTTON")),Ko=g(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),qo=g(()=>l()===k1.PLAYING),nn=g(()=>d()==="paused"),rn=g(()=>a()&&!me()&&!dt),Ur=g(()=>!a()||me()),Fn=g(()=>e.showNextPrevButtons&&!me()&&e.prevButtonActive),br=g(()=>e.showNextPrevButtons&&!me()&&e.nextButtonActive),nr=g(()=>p().width>300),$r=g(()=>p().width>400),sn=g(f),rr=g(()=>v()!==I1.NOT_AVAILABLE&&!(u()&&y()===1)&&!w()&&!dt&&!x()),eo=g(()=>S()==="LiveWaitingStart"),Qo=g(()=>!!ri&&v()!==I1.CONNECTED&&!w()&&(y()===1&&r(eo)||!r(eo))&&!r(sn)&&!dt&&!T()),Un=j(!1);Pt(()=>{let ot=ri==null?void 0:ri.info.isActive$.subscribe(St=>O(Un,St,!0));return()=>ot==null?void 0:ot.unsubscribe()});let yn=g(()=>!r(sn)&&Zi(E(),"s")),yr=g(()=>!e.logoHidden&&p().width>350&&!V()),zn=g(()=>Ie.features.fullscreen&&!(u()&&y()===1)&&(dt?st():!0)&&!r(sn)&&!r(Un)),sr=g(()=>!k()&&!r(sn)),xr=g(()=>(!I()||me())&&p().width>260&&!r(sn)&&!(Ie.features.interactiveHideTime&&dt)),xn=g(()=>R()||e.showControls),Wn=g(()=>!me()&&!I()&&!!(Ot!=null&&Ot.length)&&r(nr)&&!r(Ao)&&!r(sn)),wr=g(()=>!Y()||!!H()),Sr=g(()=>li&&Zi(E(),"m")),lo=g(()=>!F()||W()||J()===0),pt=ni({}),Jt=ni({}),an=P1(fl,260),Ii=P1(_u,260);Ke(()=>{p(),G(),an(ut(),vi,pt,e.showControls),Ii(ut(),Hn,Jt,e.showControls)});let Wi=()=>Z.actions.internal.toggleChromecast();async function Go(){ri!=null&&ri.isActive()?await(ri==null?void 0:ri.exit()):await(ri==null?void 0:ri.request())}function jo(){Bs({isAudioDisabled:he,audioDisabledHintCallback:Bt,isAudioAvailable:F(),audioIsNotExistHintCallback:Ge,isAds:me()})&&ze()}let ho=j(""),Kn=(ot,St)=>{if(!ot){O(ho,K("tooltip_live"),!0);return}St&&St===k1.PAUSED&&O(ho,K("tooltip_play"),!0)};Ke(()=>{Kn(r(wr),l())});let ln=se();Ke(()=>{ce()&&sl(ce(),R(),$i)}),Ke(()=>{gu(hi,ie(),pt.playButton)});var Mo=$4(),zr=ge(Mo);{var Wr=ot=>{var St=g4(),mi=ge(St);let qi;var $o=P(mi,2);let po;it($o,Ze=>Jt.topLeft=Ze,()=>Jt==null?void 0:Jt.topLeft);var io=P($o,2);let Vo;var Cn=_(io);Si(Cn,1,$e,({iconUrl:Ze,ariaLabel:Wt,testId:Ni,onClick:Ro,tooltip:cn})=>Ze,(Ze,Wt)=>{let Ni=()=>r(Wt).iconUrl,Ro=()=>r(Wt).ariaLabel,cn=()=>r(Wt).testId,Qn=()=>r(Wt).onClick,pr=()=>r(Wt).tooltip,Ar=g(()=>{var ji;return(ji=Ro())!=null?ji:pr()});am(Ze,{get iconUrl(){return Ni()},get ariaLabel(){return r(Ar)},get testId(){return cn()},get onClick(){return Qn()}})});var dn=P(Cn,2);{var Qi=Ze=>{Ed(Ze,{get ref(){return pt.autoplayNextToggle},set ref(Wt){pt.autoplayNextToggle=Wt}})};L(dn,Ze=>{e.showAutoplayNext&&!pe()&&!fe()&&Ze(Qi)})}var yo=P(dn,2);{var cr=Ze=>{_d(Ze,{isMobile:!0,click:Wi,get state(){return v()},get ref(){return pt.chromecast},set ref(Wt){pt.chromecast=Wt}})};L(yo,Ze=>{r(rr)&&Ze(cr)})}var Tn=P(yo,2);{var En=Ze=>{um(Ze,{click:Go,get isPictureInPictureActive(){return u()},get ref(){return pt.pip},set ref(Wt){pt.pip=Wt}})};L(Tn,Ze=>{r(Qo)&&Ze(En)})}var ur=P(Tn,2);{var In=Ze=>{cl(Ze,{get ref$(){return ln}})};L(ur,Ze=>{ke()&&!ne()&&Ze(In)})}var Pr=P(ur,2);{var xo=Ze=>{hd(Ze,{get click(){return ft},get targetUrl(){return De()},get logoClickable(){return e.logoClickable},get ref(){return pt.vkLogo},set ref(Wt){pt.vkLogo=Wt}})};L(Pr,Ze=>{r(yr)&&Ze(xo)})}h(io),it(io,Ze=>Jt.topRight=Ze,()=>Jt==null?void 0:Jt.topRight);var kn=P(io,2);let jr;var Ye=_(kn);{var ei=Ze=>{let Wt=g(()=>mt.bind(null,!0));ya(Ze,{get click(){return r(Wt)},type:"prev",isMobile:!0,get ref(){return pt.prevButton},set ref(Ni){pt.prevButton=Ni}})};L(Ye,Ze=>{r(Fn)&&Ze(ei)})}var _i=P(Ye,2);{var wo=Ze=>{vl(Ze,{get disabled(){return r(Ei)},get click(){return at},isMobile:!0,get isPlaying(){return r(qo)},get ref(){return pt.playButton},set ref(Wt){pt.playButton=Wt}})};L(_i,Ze=>{r(Ur)&&Ze(wo)})}var _e=P(_i,2);{var Tt=Ze=>{ml(Ze,{get disabled(){return r(zi)},get click(){return at},isMobile:!0,get ref(){return pt.replayButton},set ref(Wt){pt.replayButton=Wt}})};L(_e,Ze=>{r(rn)&&Ze(Tt)})}var Gt=P(_e,2);{var ci=Ze=>{let Wt=g(()=>wt.bind(null,!0));ya(Ze,{get click(){return r(Wt)},type:"next",isMobile:!0,get ref(){return pt.nextButton},set ref(Ni){pt.nextButton=Ni}})};L(Gt,Ze=>{r(br)&&Ze(ci)})}h(kn),it(kn,Ze=>Jt.middle=Ze,()=>Jt==null?void 0:Jt.middle);var Gi=P(kn,2);{var oo=Ze=>{var Wt=v4(),Ni=ge(Wt);{var Ro=ji=>{var ui=p4();let un;ui.__click=[c4,Ko,e,Li];var fr=_(ui);let No=g(()=>!e.showControls);Td(fr,{get hidden(){return r(No)},get disabled(){return r(Ko)},get click(){return e.playPrevChapter},get ref(){return pt.playPrevChapterButton},set ref(fo){pt.playPrevChapterButton=fo}}),h(ui),B(fo=>un=ee(ui,1,"wrapper-middle-left svelte-68kopu",null,un,fo),[()=>({fullscreen:ue(),hidden:!e.showControls})]),$(ji,ui)};L(Ni,ji=>{di&&ji(Ro)})}var cn=P(Ni,2);{var Qn=ji=>{var ui=f4();let un;var fr=_(ui);let No=g(()=>!e.showControls&&!Ve());kd(fr,{get hidden(){return r(No)},get disabled(){return r(bn)},get click(){return Po.toggle},get graphIsOpened(){return Ve()},get ref(){return pt.interactiveGraphButton},set ref(fo){pt.interactiveGraphButton=fo}}),h(ui),B(fo=>un=ee(ui,1,Ul(di?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-68kopu",un,fo),[()=>({fullscreen:ue(),hidden:!e.showControls&&!Ve()})]),$(ji,ui)};L(cn,ji=>{r(Sr)&&ji(Qn)})}var pr=P(cn,2);{var Ar=ji=>{var ui=m4();let un;ui.__click=[u4,$n,e,Ji];var fr=_(ui);let No=g(()=>!e.showControls);Id(fr,{get hidden(){return r(No)},get disabled(){return r($n)},get click(){return e.seekToInteractive},get ref(){return pt.seekToInteractiveButton},set ref(fo){pt.seekToInteractiveButton=fo}}),h(ui),B(fo=>un=ee(ui,1,"wrapper-middle-right svelte-68kopu",null,un,fo),[()=>({fullscreen:ue(),hidden:!e.showControls})]),$(ji,ui)};L(pr,ji=>{go&&ji(Ar)})}$(Ze,Wt)};L(Gi,Ze=>{dt&&!f()&&Ze(oo)})}B((Ze,Wt,Ni,Ro)=>{qi=ee(mi,1,"overlay-mobile svelte-68kopu",null,qi,Ze),po=ee($o,1,"wrapper-top-left svelte-68kopu",null,po,Wt),Vo=ee(io,1,"wrapper-top-right svelte-68kopu",null,Vo,Ni),jr=ee(kn,1,"wrapper-middle svelte-68kopu",null,jr,Ro)},[()=>({hidden:!r(xn)}),()=>({hidden:!e.showControls,fullscreen:ue()}),()=>({hidden:!e.showControls&&!w(),fullscreen:ue()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),$(ot,St)};L(zr,ot=>{me()||ot(Wr)})}var Cr=P(zr,2);{var Kr=ot=>{var St=_4(),mi=ge(St);let qi;var $o=_(mi);bu($o,{get muted(){return W()},click:jo,get ref(){return pt.volume},set ref(Qi){pt.volume=Qi}}),h(mi);var po=P(mi,2);{var io=Qi=>{var yo=h4(),cr=_(yo);let Tn=g(()=>!r(nn));vl(cr,{get disabled(){return r(Ei)},get click(){return at},isMobile:!0,get isPlaying(){return r(Tn)},get ref(){return pt.playButton},set ref(En){pt.playButton=En}}),h(yo),$(Qi,yo)};L(po,Qi=>{r(nn)&&Qi(io)})}var Vo=P(po,2);let Cn;var dn=_(Vo);bd(dn,{get position(){return re()},get duration(){return N()}}),h(Vo),B((Qi,yo)=>{qi=ee(mi,1,"wrapper-top-right svelte-68kopu",null,qi,Qi),Cn=ee(Vo,1,"wrapper-bottom ads-timeline-mobile svelte-68kopu",null,Cn,yo)},[()=>({fullscreen:ue()}),()=>({fullscreen:ue()})]),$(ot,St)};L(Cr,ot=>{me()&&d()!=="inactive"&&ot(Kr)})}var qn=P(Cr,2);let ar;var lr=_(qn);let _o;var jt=_(lr);ee(jt,1,"controls svelte-68kopu",null,{},{mobile:!0});var co=_(jt),Tr=_(co);{var as=ot=>{Eo(ot,{get disabled(){return r(zi)},get ref(){return pt.replayButton},set ref(St){pt.replayButton=St},children:(St,mi)=>{ml(St,{get disabled(){return r(zi)},get click(){return Ht}})},$$slots:{default:!0}})};L(Tr,ot=>{dt&&ot(as)})}var Er=P(Tr,2);{var Vi=ot=>{Eo(ot,{get ref(){return pt.liveButton},set ref(St){pt.liveButton=St},children:(St,mi)=>{Pd(St,{get isLiveActive(){return r(wr)},isMobile:!0,get ariaLabel(){return r(ho)}})},$$slots:{default:!0}})};L(Er,ot=>{!me()&&I()&&ot(Vi)})}var vt=P(Er,2);{var Ft=ot=>{let St=g(()=>me()?re():Be()),mi=g(()=>me()?N():le()),qi=g(()=>!e.showControls);md(ot,{get showDuration(){return r($r)},get position(){return r(St)},get duration(){return r(mi)},isMobile:!0,get isHidden(){return r(qi)},get ref(){return pt.time},set ref($o){pt.time=$o}})};L(vt,ot=>{r(xr)&&ot(Ft)})}var Ki=P(vt,2);let Ri=g(()=>!r(Wn));Eo(Ki,{className:"w-max",get disabled(){return r(Ri)},get ref(){return pt.episodes},set ref(ot){pt.episodes=ot},children:(ot,St)=>{var mi=We(),qi=ge(mi);{var $o=po=>{var io=b4(),Vo=P(ge(io),2);$d(Vo,{get position(){return Be()},get duration(){return le()},get timeCodes(){return Ot}}),$(po,io)};L(qi,po=>{r(Wn)&&po($o)})}$(ot,mi)},$$slots:{default:!0}}),h(co),it(co,ot=>Jt.bottomRight=ot,()=>Jt==null?void 0:Jt.bottomRight);var bo=P(co,2),to=_(bo);{var Lo=ot=>{Eo(ot,{get ref(){return pt.volume},set ref(St){pt.volume=St},children:(St,mi)=>{bu(St,{get muted(){return r(lo)},click:jo})},$$slots:{default:!0}})};L(to,ot=>{r(sr)&&ot(Lo)})}var wi=P(to,2);{var wn=ot=>{Eo(ot,{get ref(){return pt.settings},set ref(St){pt.settings=St},children:(St,mi)=>{cl(St,{get ref$(){return ln}})},$$slots:{default:!0}})};L(wi,ot=>{r(yn)&&ot(wn)})}var dr=P(wi,2);{var qr=ot=>{Eo(ot,{get ref(){return pt.fullscreen},set ref(St){pt.fullscreen=St},children:(St,mi)=>{gd(St,{get click(){return e.toggleFullscreen},get isFullscreen(){return ue()}})},$$slots:{default:!0}})};L(dr,ot=>{r(zn)&&ot(qr)})}h(bo),it(bo,ot=>Jt.bottomRight=ot,()=>Jt==null?void 0:Jt.bottomRight),h(jt),it(jt,ot=>te(ot),()=>te());var Qr=P(jt,2);let Gr=g(()=>!e.showControls);ba(Qr,{get isHidden(){return r(Gr)},get isAds(){return me()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return Y()},get ref(){return pt.timeline},set ref(ot){pt.timeline=ot}}),h(lr),h(qn),it(qn,ot=>ve(ot),()=>ve());var uo=P(qn,2);{var Sn=ot=>{Sd(ot,{get ref(){return pt.interactiveTimeIndicator},set ref(St){pt.interactiveTimeIndicator=St}})};L(uo,ot=>{$t&&ot(Sn)})}B((ot,St)=>{ar=ee(qn,1,"wrapper-bottom svelte-68kopu",null,ar,ot),_o=ee(lr,1,"controls-wrapper svelte-68kopu",null,_o,St)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:ue()})]),$(t,Mo),z(),o()}lt(["click"]);function Ad(t,e){U(e,!0);let[i,o]=He(),n=()=>C(T,"$isMobile",i),s=m(e,"bottomNoSmooth",3,!1),l=m(e,"playerControlsWrapperRef",15,void 0),d=m(e,"playerControlsRef",15,void 0),a=m(e,"isAds",3,!1),p=m(e,"logoTargetUrl",3,""),f=m(e,"showAutoplayNext",3,!1),v=m(e,"isOneVideoPlaylist",3,!1),u=m(e,"customFullscreenSupported",3,!0),y=m(e,"endScreenShown",3,!1),w=m(e,"onDisabledPlayPrevChapterClick",3,A1),x=m(e,"onDisabledSeekToInteractiveClick",3,A1),T=Ee().ui.isMobile,E=j(!1);Pt(()=>{let R=setTimeout(()=>O(E,!0),0);return()=>clearTimeout(R)});var V=We(),k=ge(V);{var I=R=>{var Y=We(),H=ge(Y);{var F=J=>{pm(J,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},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 u()},get endScreenShown(){return y()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return x()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(G){l(G)},get playerControlsRef(){return d()},set playerControlsRef(G){d(G)}})},W=J=>{sm(J,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},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 u()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(G){l(G)},get playerControlsRef(){return d()},set playerControlsRef(G){d(G)}})};L(H,J=>{n()?J(F):J(W,!1)})}$(R,Y)};L(k,R=>{r(E)&&R(I)})}$(t,V),z(),o()}var x4=Te('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"></path></g><defs><filter id="a" width="43.996" height="49.5" x="2.5" y="0" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_100684"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_100684" result="shape"></feBlend></filter></defs></svg>');function fm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=x4();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),$(t,o)}function mm(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);fm(t,{get style(){return r(o)}})}var w4=Te('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22" clip-rule="evenodd"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="45" x="-1.5" y="1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104204"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104204" result="shape"></feBlend></filter></defs></svg>');function vm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=w4();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),$(t,o)}var S4=Te('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="51" x="-1.5" y="-1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104293"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104293" result="shape"></feBlend></filter></defs></svg>');function gm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=S4();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),$(t,o)}function $u(t,e){let i=m(e,"isOff",3,!1);var o=We(),n=ge(o);{var s=d=>{gm(d,{})},l=d=>{vm(d,{})};L(n,d=>{i()?d(s):d(l,!1)})}$(t,o)}var C4=Te('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"></path></g><defs><filter id="a" width="40.098" height="27.785" x="3.402" y="10.105" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_106627"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_106627" result="shape"></feBlend></filter></defs></svg>');function hm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=C4();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),$(t,o)}function _m(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);hm(t,{get style(){return r(o)}})}var T4=Te('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"></path></g><defs><filter id="a" width="37" height="37" x="5.5" y="5.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2340_106922"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2340_106922" result="shape"></feBlend></filter></defs></svg>');function bm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=T4();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(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 E4=M('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),I4=M('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),k4=M("<div><!></div>"),P4={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"},Kh=W_;var g
|
|
|
271
271
|
@keyframes svelte-1ad3n06-fadeOut {
|
|
272
272
|
0% {opacity:1;}
|
|
273
273
|
100% {opacity:0;}
|
|
274
|
-
}`};function
|
|
275
|
-
/*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function Sa(t,e){U(e,!0),
|
|
274
|
+
}`};function ym(t,e){U(e,!0),q(t,P4);let[i,o]=He(),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"}),p=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 u=k4();let y;var w=_(u);{var x=S=>{var T=I4(),E=ge(T),V=_(E);{var k=ve=>{let te=g(()=>r(f)==="FORWARD_SEEK");mm(ve,{get reversed(){return r(te)}})};L(V,ve=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(f))&&ve(k)})}var I=P(V,2);{var R=ve=>{ys(ve,{})};L(I,ve=>{r(f)==="PAUSE"&&ve(R)})}var Y=P(I,2);{var H=ve=>{Hr(ve,{})};L(Y,ve=>{r(f)==="PLAY"&&ve(H)})}var F=P(Y,2);{var W=ve=>{Cd(ve,{})};L(F,ve=>{r(f)==="REPLAY"&&ve(W)})}var J=P(F,2);{var G=ve=>{$u(ve,{isOff:!0})};L(J,ve=>{r(f)==="SUBTITLES_OFF"&&ve(G)})}var ce=P(J,2);{var ie=ve=>{$u(ve,{})};L(ce,ve=>{r(f)==="SUBTITLES_ON"&&ve(ie)})}var ue=P(ce,2);{var $e=ve=>{let te=g(()=>r(f)==="RATE_UP");_m(ve,{get reversed(){return r(te)}})};L(ue,ve=>{["RATE_DOWN","RATE_UP"].includes(r(f))&&ve($e)})}var fe=P(ue,2);{var ke=ve=>{let te=g(()=>r(f)==="EPISODE_NEXT");$m(ve,{get reversed(){return r(te)}})};L(fe,ve=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(f))&&ve(ke)})}var ne=P(fe,2);{var Ve=ve=>{Ds(ve,{volume:0})};L(ne,ve=>{r(f)==="MUTE"&&ve(Ve)})}var re=P(ne,2);{var N=ve=>{Ds(ve,{volume:1})};L(re,ve=>{r(f)==="VOLUME"&&ve(N)})}h(E);var Be=P(E,2);{var le=ve=>{var te=E4(),me=_(te,!0);h(te),B(()=>be(me,r(v))),$(ve,te)};L(Be,ve=>{r(v)&&ve(le)})}$(S,T)};L(w,S=>{!r(d)&&r(f)&&S(x)})}h(u),B(S=>y=ee(u,1,"hot-key-helpers-container svelte-1ad3n06",null,y,S),[()=>({hidden:r(d),"hot-key-helpers-container--left":r(a),"hot-key-helpers-container--right":r(p)})]),$(t,u),z(),o()}var A4=Te('<svg><!><path fill="currentColor" fill-opacity=".72" fill-rule="evenodd" d="M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272" clip-rule="evenodd"></path></svg>');function xm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=A4();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var M4=Te('<svg><!><path fill="currentColor" d="m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"></path></svg>');function wm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=M4();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}function Us(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=We(),a=ge(d);{var p=v=>{let u=g(()=>r(s)?"chevron-icon--down":"chevron-icon--up");xm(v,{get style(){return r(l)},get"data-testid"(){return r(u)}})},f=v=>{let u=g(()=>r(s)?"chevron-icon--right":"chevron-icon--left");wm(v,{get style(){return r(l)},get"data-testid"(){return r(u)}})};L(a,v=>{r(n)?v(p):v(f,!1)})}$(t,d),z()}var L4=(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}},V4=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},R4=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>'),N4={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 Md(t,e){U(e,!0),q(t,N4);let i=m(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)},p=()=>(o.actions.internal.stopCameraManualRotation(),null),f=K("aria_label_spherical_control");var v=R4();let u;v.__keydown=[L4,n,s,l,a,d],v.__keyup=[V4,n,p];var y=_(v),w=_(y),x=_(w);x.__mousedown=s,x.__mouseup=p;var S=_(x);Us(S,{direction:"up",useBtnColor:!0}),h(x);var T=P(x,2);T.__mousedown=d,T.__mouseup=p;var E=_(T);Us(E,{direction:"up",useBtnColor:!0}),h(T),h(w);var V=P(w,2),k=_(V);k.__mousedown=a,k.__mouseup=p;var I=_(k);Us(I,{direction:"up",useBtnColor:!0}),h(k);var R=P(k,2);R.__mousedown=l,R.__mouseup=p;var Y=_(R);Us(Y,{direction:"up",useBtnColor:!0}),h(R),h(V),h(y),h(v),B(H=>{u=ee(v,1,"immersive-controls svelte-1yzc86r",null,u,H),Fe(v,"aria-label",f)},[()=>({"m-shifted":i()})]),xt("mouseleave",x,p),xt("mouseleave",T,p),xt("mouseleave",k,p),xt("mouseleave",R,p),$(t,v),z()}lt(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as L1,Subscription as O4,filterChanged as B4,filter as D4}from"@vkontakte/videoplayer-shared/es2018";var M1=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var yu=class{constructor(){this.flickeringTimeout=M1(1e3);this.subscriptions=new O4;this.isAuto=!1;this.isLive=!1;this.captions$=new L1([]);this.captionsPrepared$=new L1([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(D4(()=>this.isEnabled()),B4()).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 H4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),F4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),U4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),z4=M('<div><span class="caption svelte-c2x749"><!></span></div>'),W4=M("<div><!></div>"),K4={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 Sa(t,e){U(e,!0),q(t,K4);let[i,o]=He(),n=()=>C(v,"$currentSubtitle$",i),s=()=>C(y,"$isLive$",i),l=()=>C(w,"$isFullscreen",i),d=()=>C(u,"$isAutoSubtitleCaptionVisible$",i),a=m(e,"isMobile",3,!1),p=Ee(),f=Et(),v=p.state.currentSubtitle$,u=p.state.isAutoSubtitleCaptionVisible$,y=p.state.isLive$,w=p.ui.isFullscreen,x=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=j(null);Ke(()=>{var W,J,G;(W=r(V))==null||W.setIsAuto(r(x)),(J=r(V))==null||J.setIsLive(r(S)),(G=r(V))==null||G.setCaptions(e.captions)});let k=j(ni([[]]));Pt(()=>{O(V,new yu().subscribe(),!0);let W=r(V).captionsPrepared$.subscribe(J=>{O(k,J,!0)});return()=>{var J;(J=r(V))==null||J.destroy(),W.unsubscribe()}}),Pt(()=>{if(r(x)){let W=window.setTimeout(()=>{u.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(W)}}else u.set(!1)});let I=g(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var R=W4();let Y;var H=_(R);{var F=W=>{var J=z4();let G;var ce=_(J),ie=_(ce);{var ue=fe=>{var ke=H4(),ne=_(ke),Ve=_(ne,!0);h(ne),h(ke),B(re=>{var N;rt(ne,`font-size: ${(N=r(E))!=null?N:""}px`),be(Ve,re)},[()=>K("subtitles_auto_caption")]),$(fe,ke)},$e=(fe,ke)=>{{var ne=re=>{var N=We(),Be=ge(N);Si(Be,17,()=>r(k),Hl,(le,ve)=>{var te=F4(),me=_(te);Si(me,21,()=>r(ve),({value:De,timeAppeared:pe})=>pe,(De,pe)=>{let st=()=>r(pe).value,Z=()=>r(pe).timeAppeared;var Ae=We(),Ie=ge(Ae);{var ze=at=>{var ft=ts();B(()=>be(ft,st())),$(at,ft)};L(Ie,at=>{(!Z()||Z()<=e.position)&&at(ze)})}$(De,Ae)}),h(me),h(te),B(()=>{var De;return rt(me,`font-size: ${(De=r(E))!=null?De:""}px`)}),$(le,te)}),$(re,N)},Ve=re=>{var N=We(),Be=ge(N);Si(Be,17,()=>e.captions,({value:le})=>le,(le,ve)=>{let te=()=>r(ve).value;var me=U4(),De=_(me),pe=_(De,!0);h(De),h(me),B(()=>{var st;rt(De,`font-size: ${(st=r(E))!=null?st:""}px`),be(pe,te())}),$(le,me)}),$(re,N)};L(fe,re=>{var N;r(x)&&((N=r(k))!=null&&N.length)?re(ne):re(Ve,!1)},ke)}};L(ie,fe=>{r(x)&&d()?fe(ue):fe($e,!1)})}h(ce),h(J),B(fe=>{var ke;G=ee(J,1,"subtitles-caption svelte-c2x749",null,G,fe),rt(J,`--subtitles-caption-margin: ${(ke=r(I))!=null?ke:""}%`)},[()=>({mobile:a()})]),$(W,J)};L(H,W=>{var J;(e.captions.length||(J=r(k))!=null&&J.length)&&W(F)})}h(R),B(W=>Y=ee(R,1,"subtitles-container svelte-c2x749",null,Y,W),[()=>({shifted:e.shifted,auto:r(x)&&!r(S)&&!d()})]),$(t,R),z(),o()}var q4=M('<div class="text svelte-raurnb"> </div>'),Q4=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>'),G4={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 Ld(t,e){U(e,!0),q(t,G4);let i=Et();var o=Q4();let n;var s=P(_(o),2);{var l=d=>{var a=q4(),p=_(a);h(a),B(()=>{var f;return be(p,`\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=ee(o,1,"wrapper svelte-raurnb",null,n,d),rt(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),$(t,o),z()}var j4=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657s2.315 1.158 4.357-.327c-.007.007 5.357-4.515 11.408-4.515z"></path></svg>');function Sm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=j4();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200","aria-hidden":"true","data-testid":"error-icon",viewBox:"460 190 130 90",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var Y4=M('<div class="container svelte-13zpvm8"><!></div>'),Z4={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 Ca(t){q(t,Z4);var e=Y4(),i=_(e);Sm(i,{}),h(e),$(t,e)}var X4=M('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),J4=M("<div><!></div>"),e3={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 Ta(t,e){U(e,!0),
|
|
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 Ta(t,e){U(e,!0),q(t,e3);let i=m(e,"iconVisible",3,!0),o=Ee(),n=Et(),s=o.ui.startedByKeyboard$,l=K("tooltip_play"),d=y=>{var x;let w=y.code;["Enter","Space"].includes(w)&&(y.stopPropagation(),y.preventDefault(),s.set(!0),(x=e.startVideo)==null||x.call(e))},a=y=>{var w;y.stopPropagation(),(w=e.startVideo)==null||w.call(e)};var p=J4();let f;p.__click=a;var v=_(p);{var u=y=>{var w=X4();w.__keydown=d;var x=P(_(w),2);Hr(x,{}),h(w),B(()=>Fe(w,"aria-label",l)),$(y,w)};L(v,y=>{i()&&y(u)})}return h(p),B(y=>{f=ee(p,1,"container svelte-1ciju45",null,f,y),rt(p,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),$(t,p),z({handlePressKey:d,handleClick:a})}lt(["click","keydown"]);var t3=M('<div data-testid="video_title"><span> </span></div>'),i3={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
|
|
284
|
+
);}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function Cm(t,e){U(e,!0),q(t,i3);let i=m(e,"title",3,""),o=m(e,"isHidden",3,!1),n=m(e,"ref",15),s=j(void 0);Pt(()=>{var v;requestAnimationFrame(()=>{var u;(u=e.onVisibilityChanged)==null||u.call(e,!0)});function f(u){var y;u.propertyName==="transform"&&((y=e.onVisibilityChanged)==null||y.call(e,!o()))}return(v=r(s))==null||v.addEventListener("transitionend",f),()=>{var u;return(u=r(s))==null?void 0:u.removeEventListener("transitionend",f)}});var l=t3();let d;var a=_(l),p=_(a,!0);h(a),it(a,f=>n(f),()=>n()),h(l),it(l,f=>O(s,f),()=>r(s)),B(f=>{d=ee(l,1,"title svelte-14hk510",null,d,f),be(p,i())},[()=>({hidden:o()})]),$(t,l),z()}import{throttleFn as d3}from"@vkontakte/videoplayer-shared/es2018";var o3=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),n3=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),r3=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),s3=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div>'),a3=M("<div><!> <!> <!> <!></div>"),l3={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 Tm(t,e){U(e,!0),q(t,l3);let i=j(""),o=j(""),n=j(""),s=j(""),l,d=32,a=d/2,p=H=>String(H).padStart(2,"0"),f=H=>Math.max(H.length,1),v=H=>`${(e.isSmallSize?a:d)*f(H)}px`,u=H=>{let F=Math.floor(H/86400);F&&(H-=F*86400,O(i,p(F),!0));let W=Math.floor(H/3600);O(o,p(W),!0);let J=Math.floor(H/60)%60;O(n,p(J),!0);let G=H%60;O(s,p(G),!0)},y=()=>{let H=Math.floor(Date.now()/1e3),F=e.startTime-H;u(F),F>=1?l=requestAnimationFrame(y):e.onTimerOver()};Pt(()=>{l=requestAnimationFrame(y)}),Jo(()=>{cancelAnimationFrame(l)});var w=a3();let x;var S=_(w);{var T=H=>{var F=o3(),W=ge(F);let J;var G=_(W),ce=_(G,!0);h(G);var ie=P(G,2),ue=_(ie,!0);h(ie),h(W);var $e=P(W,2),fe=_($e,!0);h($e),B((ke,ne,Ve)=>{J=rt(W,"",J,{width:ke}),be(ce,r(i)),be(ue,ne),be(fe,Ve)},[()=>v(r(i)),()=>K("waiting_live_day_value"),()=>K("waiting_live_colon")]),$(H,F)};L(S,H=>{r(i)&&H(T)})}var E=P(S,2);{var V=H=>{var F=n3(),W=ge(F);let J;var G=_(W),ce=_(G,!0);h(G);var ie=P(G,2),ue=_(ie,!0);h(ie),h(W);var $e=P(W,2),fe=_($e,!0);h($e),B((ke,ne,Ve)=>{J=rt(W,"",J,{width:ke}),be(ce,r(o)),be(ue,ne),be(fe,Ve)},[()=>v(r(o)),()=>K("waiting_live_hour_value"),()=>K("waiting_live_colon")]),$(H,F)};L(E,H=>{r(o)&&H(V)})}var k=P(E,2);{var I=H=>{var F=r3(),W=ge(F);let J;var G=_(W),ce=_(G,!0);h(G);var ie=P(G,2),ue=_(ie,!0);h(ie),h(W);var $e=P(W,2),fe=_($e,!0);h($e),B((ke,ne,Ve)=>{J=rt(W,"",J,{width:ke}),be(ce,r(n)),be(ue,ne),be(fe,Ve)},[()=>v(r(n)),()=>K("waiting_live_minute_value"),()=>K("waiting_live_colon")]),$(H,F)};L(k,H=>{r(n)&&H(I)})}var R=P(k,2);{var Y=H=>{var F=s3();let W;var J=_(F),G=_(J,!0);h(J);var ce=P(J,2),ie=_(ce,!0);h(ce),h(F),B((ue,$e)=>{W=rt(F,"",W,{width:ue}),be(G,r(s)),be(ie,$e)},[()=>v(r(s)),()=>K("waiting_live_second_value")]),$(H,F)};L(R,H=>{r(s)&&H(Y)})}h(w),B(H=>x=ee(w,1,"timer__container svelte-gt98rn",null,x,H),[()=>({small:e.isSmallSize})]),$(t,w),z()}var c3=M('<div class="waiting svelte-17m8dcd"><span> </span></div>'),u3=M('<div class="upcoming-timer timer svelte-17m8dcd"><span> </span> <!></div>'),p3=M('<div class="waiting-container svelte-17m8dcd"><!></div>'),f3={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 Vd(t,e){U(e,!0),q(t,f3);let i=m(e,"startTime",3,0),o=g(()=>i()<Math.floor(Date.now()/1e3)),n=j(void 0),s=j(void 0),l=0,d=j(void 0),a=j(void 0),p=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(p)&&(((S=r(d))!=null?S:1/0)<=699||((T=r(a))!=null?T:1/0)<=599)}),v=e.onUpcomingLiveViewStateChanged?d3(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let S={type:r(o)?"expired":"default",size:r(p)?"s":r(f)?"m":"l"},T=r(o)?r(n):r(s);e.onUpcomingLiveViewStateChanged(S,T)})},300):void 0;Ke(()=>{r(a),r(d),r(o),v==null||v()}),Jo(()=>{if(cancelAnimationFrame(l),v==null||v.cancel(),e.onUpcomingLiveViewStateChanged){let S={type:r(o)?"expired":"default",size:r(p)?"s":r(f)?"m":"l"};e.onUpcomingLiveViewStateChanged(S)}});var u=p3(),y=_(u);{var w=S=>{var T=c3(),E=_(T);let V;var k=_(E,!0);h(E),h(T),it(T,I=>O(n,I),()=>r(n)),B((I,R)=>{V=ee(E,1,"waiting__title svelte-17m8dcd",null,V,I),be(k,R)},[()=>({medium:r(f),small:r(p)}),()=>K("waiting_live_upcoming_title")]),$(S,T)},x=S=>{var T=u3(),E=_(T);let V;var k=_(E,!0);h(E);var I=P(E,2);let R=g(()=>r(p)||r(f)),Y=g(()=>i()||0);Tm(I,{get isSmallSize(){return r(R)},get startTime(){return r(Y)},onTimerOver:()=>O(o,!0)}),h(T),it(T,H=>O(s,H),()=>r(s)),B((H,F)=>{V=ee(E,1,"timer__title svelte-17m8dcd",null,V,H),be(k,F)},[()=>({medium:r(f),small:r(p)}),()=>K("waiting_live_timer_title")]),$(S,T)};L(y,S=>{r(o)?S(w):S(x,!1)})}h(u),B(()=>rt(u,`background-image: url(${e.thumbUrl})`)),ir(u,"clientWidth",S=>O(d,S)),ir(u,"clientHeight",S=>O(a,S)),$(t,u),z()}var m3=M('<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 Ea(t,e){U(e,!0),q(t,v3);let i=m(e,"thumbUrl",3,""),o={recover:K("waiting_live_recover_title"),record:K("waiting_record_title")},n=g(()=>o[e.kind]||"");var s=m3(),l=_(s),d=_(l);ga(d,{style:"position: static; transform: translate(0, 0)"});var a=P(d,2),p=_(a,!0);h(a),h(l),h(s),B(()=>{rt(s,`background-image: url('${i()}')`),be(p,r(n))}),$(t,s),z()}var g3=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"></path></svg>');function Em(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=g3();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var h3=M('<div class="select-icon svelte-124aexk"><!></div>'),_3={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function Rd(t){q(t,_3);var e=h3(),i=_(e);Em(i,{}),h(e),$(t,e)}var b3=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},$3=(t,e)=>{al(t,()=>e.item.selectItem(e.item.value))},y3=M("<p> </p>"),x3=M('<p class="sublabel svelte-1t7rx2m"> </p>'),w3=M('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),S3={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
|
|
290
|
+
.sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function Im(t,e){U(e,!0),q(t,S3);let i=m(e,"isMobile",3,!1);var o=w3();let n;o.__click=[b3,e],o.__keydown=[$3,e];var s=_(o);{var l=w=>{Rd(w,{})};L(s,w=>{e.item.selected&&w(l)})}var d=P(s,2);let a;var p=_(d);{var f=w=>{var x=We(),S=ge(x);Ci(S,()=>e.item.valueComponent,(T,E)=>{E(T,vs(()=>{var V;return(V=e.item.valueComponentParams)!=null?V:{}}))}),$(w,x)},v=w=>{var x=y3();let S;var T=_(x,!0);h(x),B(E=>{var V;S=ee(x,1,"label svelte-1t7rx2m",null,S,E),be(T,(V=e.item.label)!=null?V:e.item.value)},[()=>({mobile:i()})]),$(w,x)};L(p,w=>{e.item.valueComponent?w(f):w(v,!1)})}var u=P(p,2);{var y=w=>{var x=x3(),S=_(x,!0);h(x),B(()=>be(S,e.item.sublabel)),$(w,x)};L(u,w=>{e.item.sublabel&&w(y)})}h(d),h(o),B((w,x,S)=>{n=ee(o,1,"item",null,n,w),Fe(o,"data-value",e.item.value),Fe(o,"aria-label",x),Fe(o,"data-testid",e.item.dataTestid),a=ee(d,1,"menu-item-value svelte-1t7rx2m",null,a,S),Fe(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,x;return(x=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?x:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),$(t,o),z()}lt(["click","keydown"]);var C3=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function km(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(()=>x=>eu(x,r(n)));var l=C3();let d;l.__click=function(...x){var S;(S=r(n))==null||S.apply(this,x)},l.__keydown=function(...x){var S;(S=r(s))==null||S.apply(this,x)};var a=_(l);{var p=x=>{Rd(x,{})};L(a,x=>{e.item.selected&&x(p)})}var f=P(a,2);let v;var u=_(f);{var y=x=>{var S=We();let T=g(()=>e.item.valueComponent);var E=ge(S);Ci(E,()=>r(T),(V,k)=>{k(V,vs(()=>{var I;return(I=e.item.valueComponentParams)!=null?I:{}}))}),$(x,S)},w=x=>{var S=ts();B(()=>be(S,e.item.label)),$(x,S)};L(u,x=>{e.item.valueComponent?x(y):x(w,!1)})}h(f),h(l),it(l,x=>o(o()[e.item.id]=x,!0),()=>{var x;return(x=o())==null?void 0:x[e.item.id]}),B((x,S)=>{var T;d=ee(l,1,"item",null,d,x),Fe(l,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),Fe(l,"data-testid",e.item.id),v=ee(f,1,"menu-item-value",null,v,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),$(t,l),z()}lt(["click","keydown"]);var Fr={"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 E3=(t,e)=>{Jh(t,e.returnFromSubMenu,e.closeSettingsMenu)},I3=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},k3=(t,e)=>{od(t)&&(_r(t),e.returnFromSubMenu())},P3=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>'),A3={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"},Kh=W_;var g
|
|
|
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 Dm(t,e){U(e,!0),K(t,O3);let[i,o]=He(),n=()=>C(m,"$isFullscreen",i),s=()=>C(u,"$playerSize",i),l=v(e,"isMobile",3,!1),d=v(e,"playerControlsHeight",3,0),a=v(e,"ariaLabelReturnFromSubMenu",19,()=>W("aria_label_submenu_back")),p=v(e,"listRef",15);Lt(()=>{let j=e.items.findIndex(ue=>ue.selected);p().children[j+1].focus()});let f=Te(),m=f.ui.isFullscreen,u=f.ui.playerSize,y=Z(void 0),w=Z(0),x=Z(0),S=g(()=>l()&&n()?`max-height: ${Math.round(s().height*.6)}px`:l()?"":`max-height: ${s().height-32-r(x)-d()}px; overflow: auto;`),T=g(()=>Math.max(e.minWidth,r(w)));var E=N3();let R;var I=_(E);let M;I.__keydown=[L3,e];var k=_(I);let G;k.__click=[V3,e],k.__keydown=[R3,e];var H=_(k);zs(H,{direction:"left"});var F=P(H,2),q=_(F,!0);h(F),h(k),et(k,j=>O(y,j),()=>r(y));var Y=P(k,2);Si(Y,17,()=>e.items,Wl,(j,ue)=>{var re=qe(),fe=ge(re);{var be=Pe=>{Nm(Pe,{get item(){return r(ue)},get isMobile(){return l()}})},me=(Pe,se)=>{{var Le=ae=>{Om(ae,{get isMobile(){return l()},get item(){return r(ue)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(Pe,ae=>{r(ue).type==="OPEN_SUB_MENU"&&ae(Le)},se)}};V(fe,Pe=>{r(ue).type==="SELECT_VALUE"?Pe(be):Pe(me,!1)})}$(j,re)}),h(I),et(I,j=>p(j),()=>p()),h(E),B((j,ue,re)=>{R=ie(E,1,"sub-menu menu svelte-7dfsuh",null,R,j),Ue(E,"data-testid",`sub-menu-${e.id}`),ot(E,`min-width: ${r(T)}px`),M=ie(I,1,"items svelte-7dfsuh",null,M,ue),ot(I,r(S)),G=ie(k,1,"item header back svelte-7dfsuh",null,G,re),Ue(k,"aria-label",a()),_e(q,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),rr(k,"clientWidth",j=>O(w,j)),rr(k,"clientHeight",j=>O(x,j)),$(t,E),z(),o()}st(["keydown","click"]);import{noop as B3}from"@vkontakte/videoplayer-shared/es2018";var D3=(t,e)=>ru(t,e()),H3=(t,e)=>{t.stopPropagation(),e()()},F3=A('<div class="value svelte-1ikfjte"> </div>'),U3=A('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),z3={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function Hm(t,e){U(e,!0),K(t,z3);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,B3),n=v(e,"valueComponent",3,void 0),s=v(e,"ref",15);var l=U3();let d;l.__click=[H3,o],l.__keydown=[D3,o];var a=_(l),p=_(a);{var f=T=>{xa(T,{get icon(){return e.icon}})},m=T=>{var E=qe();let R=g(()=>e.icon);var I=ge(E);Ci(I,()=>r(R),(M,k)=>{k(M,{})}),$(T,E)};V(p,T=>{typeof e.icon=="string"?T(f):T(m,!1)})}h(a);var u=P(a,2),y=_(u,!0);h(u);var w=P(u,2);{var x=T=>{var E=qe();let R=g(n);var I=ge(E);Ci(I,()=>r(R),(M,k)=>{k(M,{})}),$(T,E)},S=T=>{var E=F3(),R=_(E,!0);h(E),B(()=>_e(R,e.value)),$(T,E)};V(w,T=>{n()?T(x):T(S,!1)})}h(l),et(l,T=>s(T),()=>s()),B(T=>{d=ie(l,1,"item",null,d,T),Ue(l,"aria-label",e.ariaLabel),Ue(l,"data-testid",e.id),_e(y,e.label)},[()=>({mobile:i()})]),$(t,l),z()}st(["click","keydown"]);import{noop as K1}from"@vkontakte/videoplayer-shared/es2018";var W3=(t,e)=>{sl(t,()=>e())},K3=A('<div class="icon icon-error-stub"><div class="inner"></div></div>'),q3=A('<img class="icon" aria-hidden="true"/>'),Q3=A('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),G3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Fm(t,e){U(e,!0),K(t,G3);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,K1),n=v(e,"closeSettings",3,K1),s=Z(!1),l=()=>{O(s,!0)},d=S=>{S==null||S.stopPropagation(),o()(),n()()};var a=Q3();let p;a.__click=d,a.__keydown=[W3,d];var f=_(a),m=_(f);{var u=S=>{var T=qe(),E=ge(T);{var R=M=>{var k=K3();$(M,k)},I=M=>{var k=q3();B(()=>Ue(k,"src",e.icon)),wt("error",k,l),ia(k),$(M,k)};V(E,M=>{r(s)?M(R):M(I,!1)})}$(S,T)},y=S=>{var T=qe();let E=g(()=>e.icon);var R=ge(T);Ci(R,()=>r(E),(I,M)=>{M(I,{})}),$(S,T)};V(m,S=>{typeof e.icon=="string"?S(u):S(y,!1)})}h(f);var w=P(f,2),x=_(w,!0);h(w),h(a),B(S=>{var T;p=ie(a,1,"item",null,p,S),Ue(a,"aria-label",(T=e.ariaLabel)!=null?T:e.label),Ue(a,"data-testid",e.id),_e(x,e.label)},[()=>({mobile:i()})]),$(t,a),z()}st(["click","keydown"]);import{noop as Z3}from"@vkontakte/videoplayer-shared/es2018";var j3=A('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),Y3={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 Um(t,e){K(t,Y3);let i=v(e,"enabled",3,!1);var o=j3(),n=_(o);let s;xe(2),h(o),B(l=>s=ie(n,1,"toggle svelte-17wbjko",null,s,l),[()=>({on:i()})]),$(t,o)}var X3=(t,e,i)=>{c1(t,e(),o=>i()(o))},J3=(t,e,i)=>{t.stopPropagation(),e()(!i())},ex=A('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),tx=A('<li role="menuitem" tabindex="0"><!></li>');function zm(t,e){U(e,!0);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,Z3),n=v(e,"enabled",3,!1),s=v(e,"tooltipText",3,void 0),l=v(e,"maxTooltipWidth",3,void 0);var d=tx();let a;d.__click=[J3,o,n],d.__keydown=[X3,n,o];var p=_(d);ha(p,{get content(){return s()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,m)=>{var u=ex();let y;var w=_(u),x=_(w);{var S=M=>{xa(M,{get icon(){return e.icon}})},T=M=>{var k=qe();let G=g(()=>e.icon);var H=ge(k);Ci(H,()=>r(G),(F,q)=>{q(F,{})}),$(M,k)};V(x,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);Um(I,{get enabled(){return n()}}),h(u),B(M=>{y=ie(u,1,"switch-wrapper",null,y,M),_e(R,e.label)},[()=>({mobile:i()})]),$(f,u)},$$slots:{default:!0}}),h(d),B(f=>{var m;a=ie(d,1,"item switch-item",null,a,f),Ue(d,"aria-label",(m=e.ariaLabel)!=null?m:e.label),Ue(d,"data-testid",e.id)},[()=>({mobile:i()})]),$(t,d),z()}st(["click","keydown"]);import{isValidURL as Cx,VideoQuality as i0}from"@vkontakte/videoplayer-shared/es2018";var q1=()=>{let t=Z(ni([])),e=g(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{O(t,r(t).slice(0,-1),!0)},popAllSubMenus:()=>{O(t,[],!0)}}};var ix=A('<div class="quality-icon svelte-t2qk8t"><!></div>'),ox=A('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),nx={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 Ia(t,e){U(e,!0),K(t,nx);let i=v(e,"isSubCase",3,!1),o=g(()=>cu(e.quality));var n=ox(),s=_(n);let l;var d=_(s,!0);h(s);var a=P(s,2);{var p=f=>{var m=ix();let u=g(()=>r(o));var y=_(m);Ci(y,()=>r(u),(w,x)=>{x(w,{})}),h(m),$(f,m)};V(a,f=>{r(o)&&!e.isMobile&&f(p)})}h(n),B(f=>{l=ie(s,1,"svelte-t2qk8t",null,l,f),_e(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),$(t,n),z()}import{VideoQuality as rx}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as Q1}from"@vkontakte/videoplayer-core/es2018";var G1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},j1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=G1({quality:t,availableQualities:e});return i?t===Q1.INVARIANT?W("auto_quality_invariant"):W("auto_quality",{actual:o}):o},Y1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Q1.INVARIANT?i:`${i}${G1({quality:t,availableQualities:e})}`:"...";var sx=A('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),ax={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function vl(t,e){U(e,!0),K(t,ax);let[i,o]=He(),n=()=>C(a,"$currentQuality$",i),s=()=>C(p,"$availableQualities$",i),l=()=>C(f,"$isMobile$",i),d=Te(),a=d.state.currentQuality$,p=d.state.availableQualities$,f=d.ui.isMobile,m=" \xB7 ",u=g(()=>e.prefix+(e.selected&&n()!==rx.INVARIANT?m:"")),y=g(()=>Y1({prefix:r(u),quality:n(),availableQualities:s(),onlyPrefix:!e.selected}));var w=sx(),x=_(w);let S=g(()=>e.selected?n():void 0);Ia(x,{get quality(){return r(S)},get label(){return r(y)},get isMobile(){return l()},isSubCase:!0}),h(w),$(t,w),z(),o()}var lx=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")},dx={br:!0,span:!0},Wm=(t,e={})=>{var d,a,p,f,m,u,y;if(!t)return t;let i={...dx,...e},o=Object.keys(i);if(!o.length)return t;let n=lx(o),s=[],l=0;for(let w of t.matchAll(n)){let x=w[0],S=((d=w.groups)==null?void 0:d.keyhtml)||((a=w.groups)==null?void 0:a.keyi18n)||((p=w.groups)==null?void 0:p.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:T}=w;if(!i[S]){s.push(t.slice(l,T)),l=T+x.length;continue}let E=(m=w.groups)!=null&&m.childrenhtml?Wm(w.groups.childrenhtml,i):"",R=(u=w.groups)!=null&&u.childrenhtml?x.replace(new RegExp((y=w.groups)==null?void 0:y.childrenhtml),()=>E||""):x;s.push(t.slice(l,T),R),l=T+x.length}return l===0?t:(s.push(t.slice(l)),s.join(""))};function Hd(t,e){U(e,!1);let i=v(e,"message",8),o=Wm(i());Dr();var n=qe(),s=ge(n);{var l=d=>{var a=qe(),p=ge(a);Kl(p,()=>o),$(d,a)};V(s,d=>{o&&d(l)})}$(t,n),z()}var cx=A('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),ux={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 Km(t,e){U(e,!1),K(t,ux),Dr();var i=cx(),o=_(i);let n=Rr(()=>W("quality_applience",{action:`<span>${W("quality_applience_action")}</span>`}));Hd(o,{get message(){return r(n)}}),h(i),$(t,i),z()}var X1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:vl,valueComponentParams:{prefix:W("other_quality"),selected:o},children:"QUALITY"}},qm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:W("auto_quality_limit"),valueComponent:e?vl:void 0,valueComponentParams:{prefix:W("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),J1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Km,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Qm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:W("high_quality"),valueComponent:t?vl:void 0,valueComponentParams:{prefix:W("high_quality"),selected:i},sublabel:W("high_quality_description")}),Gm=({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:W("traffic_saving_quality"),valueComponent:t?vl:void 0,valueComponentParams:{prefix:W("traffic_saving_quality"),selected:i},sublabel:W("traffic_saving_quality_description")});var Eu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Iu=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(l=Cd(i))!=null?l:i),o&&i&&n){let d=e.filter(a=>a.label===o&&a.language===i);if(d.length===1)return W("audio_stream_display_language_label",{language:n,label:o});{let a=Eu(t,d);return W("audio_stream_display_language_label_index",{language:n,label:o,index:a})}}if(o){let d=e.filter(a=>a.label===o);if(d.length===1)return o;{let a=Eu(t,d);return W("audio_stream_display_label_index",{label:o,index:a})}}if(i&&n){let d=e.filter(a=>a.language===i);if(d.length===1)return n;{let a=Eu(t,d);return W("audio_stream_display_language_index",{language:n,index:a})}}let s=Eu(t,e);return W("audio_stream_display_unknown",{index:s})};var px={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,s=[];return i&&s.push({handler:qm,selected:e&&!o&&!n||!1}),s.push({handler:Gm,selected:o},{handler:Qm,selected:n}),{title:W("submenu_quality"),id:"QUALITY_DETAILS",items:[J1(t),...s.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),X1(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:W("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:Ia,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:W("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:qm,selected:((i=Qc())==null?void 0:i.type)==="auto_quality"},{handler:Gm,selected:((o=Qc())==null?void 0:o.type)==="traffic_saving"},{handler:Qm,selected:((n=Qc())==null?void 0:n.type)==="high_quality"}].map(({handler:s,selected:l})=>s({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:W("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===(i==null?void 0:i.id),label:Iu(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:W("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:W("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===bu?"sub_off":void 0}))})},e0=({subMenuId:t,context:e})=>t?[px[t](e)]:[];var fx=we('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z" clip-rule="evenodd"></path></svg>');function jm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=fx();Ie(o,()=>({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);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var mx=we('<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 Ym(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=mx();Ie(o,()=>({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);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var vx=we('<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 Zm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=vx();Ie(o,()=>({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);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var gx=we('<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 Xm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=gx();Ie(o,()=>({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);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var hx=we('<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 Jm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=hx();Ie(o,()=>({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);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var _x=we('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492" clip-rule="evenodd"></path></svg>');function ku(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=_x();Ie(o,()=>({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);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var bx=we('<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 ev(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=bx();Ie(o,()=>({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);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var $x=A('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),yx={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function tv(t,e){U(e,!0),K(t,yx);let[i,o]=He(),n=()=>C(p,"$currentQuality$",i),s=()=>C(f,"$availableQualities$",i),l=()=>C(m,"$isAutoQualityEnabled$",i),d=()=>C(u,"$isMobile$",i),a=Te(),p=a.state.currentQuality$,f=a.state.availableQualities$,m=a.state.isAutoQualityEnabled$,u=a.ui.isMobile,y=g(()=>j1({quality:n(),availableQualities:s(),isAutoQualityEnabled:l()}));var w=$x(),x=_(w);Ia(x,{get quality(){return n()},get label(){return r(y)},get isMobile(){return d()}}),h(w),$(t,w),z(),o()}var wx={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?W("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:W("aria_label_menu_quality",{actual:o}),icon:gd,label:W("menu_quality"),value:e,valueComponent:tv,weight:Ur["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Ur["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:W("aria_label_submenu_traffic_saving"),icon:jm,label:W("menu_traffic_saving"),enabled:t,tooltipText:W("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=Iu(t,e);return{id:"AUDIO_LANGUAGES",weight:Ur["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:W("aria_label_menu_audio_languages",{actual:i}),icon:Ym,label:W("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(n=>n.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:Ur["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:W("aria_label_menu_rate",{actual:i}),icon:Zm,label:W("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Ur["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:W("aria_label_menu_subtitle",{actual:t.displayValue}),icon:hd,label:W("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Ur.download,type:"CLICK",onClick:t,label:W("download_video_caption"),ariaLabel:W("aria_label_menu_download"),icon:Xm}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Ur.report,type:"CLICK",onClick:t,label:W("menu_report"),ariaLabel:`${W("menu_report")}. ${W("aria_label_new_tab_alert")}`,icon:Jm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Ur["copy-data"],type:"CLICK",onClick:t,label:W("menu_copy_debug"),ariaLabel:W("menu_copy_debug"),icon:ku,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Ur["save-trace-info"],type:"CLICK",onClick:t,label:W("menu_save_debug"),ariaLabel:W("menu_save_debug"),icon:ku,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Ur["debug-info"],type:"CLICK",onClick:t,ariaLabel:W("aria_label_menu_debug_overlay"),label:W("menu_debug_overlay"),icon:ev,isHiddenFor:["desktop"]})},t0=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>wx[n](e)),...i.map(n=>({...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(fa)};var Tx=(t,e)=>{nu(t,e)},Ex=A('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),Ix=A('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),kx=A("<div><!> <!></div>"),Px={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 Am(t,e){U(e,!0),q(t,A3);let[i,o]=He(),n=()=>C(v,"$isFullscreen",i),s=()=>C(u,"$playerSize",i),l=m(e,"isMobile",3,!1),d=m(e,"playerControlsHeight",3,0),a=m(e,"ariaLabelReturnFromSubMenu",19,()=>K("aria_label_submenu_back")),p=m(e,"listRef",15);Pt(()=>{let G=e.items.findIndex(ce=>ce.selected);p().children[G+1].focus()});let f=Ee(),v=f.ui.isFullscreen,u=f.ui.playerSize,y=j(void 0),w=j(0),x=j(0),S=g(()=>l()&&n()?`max-height: ${Math.round(s().height*.6)}px`:l()?"":`max-height: ${s().height-32-r(x)-d()}px; overflow: auto;`),T=g(()=>Math.max(e.minWidth,r(w)));var E=P3();let V;var k=_(E);let I;k.__keydown=[E3,e];var R=_(k);let Y;R.__click=[I3,e],R.__keydown=[k3,e];var H=_(R);Us(H,{direction:"left"});var F=P(H,2),W=_(F,!0);h(F),h(R),it(R,G=>O(y,G),()=>r(y));var J=P(R,2);Si(J,17,()=>e.items,Hl,(G,ce)=>{var ie=We(),ue=ge(ie);{var $e=ke=>{Im(ke,{get item(){return r(ce)},get isMobile(){return l()}})},fe=(ke,ne)=>{{var Ve=re=>{km(re,{get isMobile(){return l()},get item(){return r(ce)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};L(ke,re=>{r(ce).type==="OPEN_SUB_MENU"&&re(Ve)},ne)}};L(ue,ke=>{r(ce).type==="SELECT_VALUE"?ke($e):ke(fe,!1)})}$(G,ie)}),h(k),it(k,G=>p(G),()=>p()),h(E),B((G,ce,ie)=>{V=ee(E,1,"sub-menu menu svelte-7dfsuh",null,V,G),Fe(E,"data-testid",`sub-menu-${e.id}`),rt(E,`min-width: ${r(T)}px`),I=ee(k,1,"items svelte-7dfsuh",null,I,ce),rt(k,r(S)),Y=ee(R,1,"item header back svelte-7dfsuh",null,Y,ie),Fe(R,"aria-label",a()),be(W,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),ir(R,"clientWidth",G=>O(w,G)),ir(R,"clientHeight",G=>O(x,G)),$(t,E),z(),o()}lt(["keydown","click"]);import{noop as M3}from"@vkontakte/videoplayer-shared/es2018";var L3=(t,e)=>eu(t,e()),V3=(t,e)=>{t.stopPropagation(),e()()},R3=M('<div class="value svelte-1ikfjte"> </div>'),N3=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),O3={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function Mm(t,e){U(e,!0),q(t,O3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,M3),n=m(e,"valueComponent",3,void 0),s=m(e,"ref",15);var l=N3();let d;l.__click=[V3,o],l.__keydown=[L3,o];var a=_(l),p=_(a);{var f=T=>{xa(T,{get icon(){return e.icon}})},v=T=>{var E=We();let V=g(()=>e.icon);var k=ge(E);Ci(k,()=>r(V),(I,R)=>{R(I,{})}),$(T,E)};L(p,T=>{typeof e.icon=="string"?T(f):T(v,!1)})}h(a);var u=P(a,2),y=_(u,!0);h(u);var w=P(u,2);{var x=T=>{var E=We();let V=g(n);var k=ge(E);Ci(k,()=>r(V),(I,R)=>{R(I,{})}),$(T,E)},S=T=>{var E=R3(),V=_(E,!0);h(E),B(()=>be(V,e.value)),$(T,E)};L(w,T=>{n()?T(x):T(S,!1)})}h(l),it(l,T=>s(T),()=>s()),B(T=>{d=ee(l,1,"item",null,d,T),Fe(l,"aria-label",e.ariaLabel),Fe(l,"data-testid",e.id),be(y,e.label)},[()=>({mobile:i()})]),$(t,l),z()}lt(["click","keydown"]);import{noop as R1}from"@vkontakte/videoplayer-shared/es2018";var B3=(t,e)=>{al(t,()=>e())},D3=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),H3=M('<img class="icon" aria-hidden="true"/>'),F3=M('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),U3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Lm(t,e){U(e,!0),q(t,U3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,R1),n=m(e,"closeSettings",3,R1),s=j(!1),l=()=>{O(s,!0)},d=S=>{S==null||S.stopPropagation(),o()(),n()()};var a=F3();let p;a.__click=d,a.__keydown=[B3,d];var f=_(a),v=_(f);{var u=S=>{var T=We(),E=ge(T);{var V=I=>{var R=D3();$(I,R)},k=I=>{var R=H3();B(()=>Fe(R,"src",e.icon)),xt("error",R,l),ia(R),$(I,R)};L(E,I=>{r(s)?I(V):I(k,!1)})}$(S,T)},y=S=>{var T=We();let E=g(()=>e.icon);var V=ge(T);Ci(V,()=>r(E),(k,I)=>{I(k,{})}),$(S,T)};L(v,S=>{typeof e.icon=="string"?S(u):S(y,!1)})}h(f);var w=P(f,2),x=_(w,!0);h(w),h(a),B(S=>{var T;p=ee(a,1,"item",null,p,S),Fe(a,"aria-label",(T=e.ariaLabel)!=null?T:e.label),Fe(a,"data-testid",e.id),be(x,e.label)},[()=>({mobile:i()})]),$(t,a),z()}lt(["click","keydown"]);import{noop as K3}from"@vkontakte/videoplayer-shared/es2018";var z3=M('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),W3={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 Vm(t,e){q(t,W3);let i=m(e,"enabled",3,!1);var o=z3(),n=_(o);let s;Ce(2),h(o),B(l=>s=ee(n,1,"toggle svelte-17wbjko",null,s,l),[()=>({on:i()})]),$(t,o)}var q3=(t,e,i)=>{e1(t,e(),o=>i()(o))},Q3=(t,e,i)=>{t.stopPropagation(),e()(!i())},G3=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),j3=M('<li role="menuitem" tabindex="0"><!></li>');function Rm(t,e){U(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,K3),n=m(e,"enabled",3,!1),s=m(e,"tooltipText",3,void 0),l=m(e,"maxTooltipWidth",3,void 0);var d=j3();let a;d.__click=[Q3,o,n],d.__keydown=[q3,n,o];var p=_(d);ha(p,{get content(){return s()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,v)=>{var u=G3();let y;var w=_(u),x=_(w);{var S=I=>{xa(I,{get icon(){return e.icon}})},T=I=>{var R=We();let Y=g(()=>e.icon);var H=ge(R);Ci(H,()=>r(Y),(F,W)=>{W(F,{})}),$(I,R)};L(x,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);Vm(k,{get enabled(){return n()}}),h(u),B(I=>{y=ee(u,1,"switch-wrapper",null,y,I),be(V,e.label)},[()=>({mobile:i()})]),$(f,u)},$$slots:{default:!0}}),h(d),B(f=>{var v;a=ee(d,1,"item switch-item",null,a,f),Fe(d,"aria-label",(v=e.ariaLabel)!=null?v:e.label),Fe(d,"data-testid",e.id)},[()=>({mobile:i()})]),$(t,d),z()}lt(["click","keydown"]);import{isValidURL as bx,VideoQuality as q1}from"@vkontakte/videoplayer-shared/es2018";var N1=()=>{let t=j(ni([])),e=g(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{O(t,r(t).slice(0,-1),!0)},popAllSubMenus:()=>{O(t,[],!0)}}};var Y3=M('<div class="quality-icon svelte-t2qk8t"><!></div>'),Z3=M('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),X3={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 Ia(t,e){U(e,!0),q(t,X3);let i=m(e,"isSubCase",3,!1),o=g(()=>ru(e.quality));var n=Z3(),s=_(n);let l;var d=_(s,!0);h(s);var a=P(s,2);{var p=f=>{var v=Y3();let u=g(()=>r(o));var y=_(v);Ci(y,()=>r(u),(w,x)=>{x(w,{})}),h(v),$(f,v)};L(a,f=>{r(o)&&!e.isMobile&&f(p)})}h(n),B(f=>{l=ee(s,1,"svelte-t2qk8t",null,l,f),be(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),$(t,n),z()}import{VideoQuality as J3}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as O1}from"@vkontakte/videoplayer-core/es2018";var B1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},D1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=B1({quality:t,availableQualities:e});return i?t===O1.INVARIANT?K("auto_quality_invariant"):K("auto_quality",{actual:o}):o},H1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===O1.INVARIANT?i:`${i}${B1({quality:t,availableQualities:e})}`:"...";var ex=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),tx={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function gl(t,e){U(e,!0),q(t,tx);let[i,o]=He(),n=()=>C(a,"$currentQuality$",i),s=()=>C(p,"$availableQualities$",i),l=()=>C(f,"$isMobile$",i),d=Ee(),a=d.state.currentQuality$,p=d.state.availableQualities$,f=d.ui.isMobile,v=" \xB7 ",u=g(()=>e.prefix+(e.selected&&n()!==J3.INVARIANT?v:"")),y=g(()=>H1({prefix:r(u),quality:n(),availableQualities:s(),onlyPrefix:!e.selected}));var w=ex(),x=_(w);let S=g(()=>e.selected?n():void 0);Ia(x,{get quality(){return r(S)},get label(){return r(y)},get isMobile(){return l()},isSubCase:!0}),h(w),$(t,w),z(),o()}var ix=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")},ox={br:!0,span:!0},Nm=(t,e={})=>{var d,a,p,f,v,u,y;if(!t)return t;let i={...ox,...e},o=Object.keys(i);if(!o.length)return t;let n=ix(o),s=[],l=0;for(let w of t.matchAll(n)){let x=w[0],S=((d=w.groups)==null?void 0:d.keyhtml)||((a=w.groups)==null?void 0:a.keyi18n)||((p=w.groups)==null?void 0:p.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:T}=w;if(!i[S]){s.push(t.slice(l,T)),l=T+x.length;continue}let E=(v=w.groups)!=null&&v.childrenhtml?Nm(w.groups.childrenhtml,i):"",V=(u=w.groups)!=null&&u.childrenhtml?x.replace(new RegExp((y=w.groups)==null?void 0:y.childrenhtml),()=>E||""):x;s.push(t.slice(l,T),V),l=T+x.length}return l===0?t:(s.push(t.slice(l)),s.join(""))};function Nd(t,e){U(e,!1);let i=m(e,"message",8),o=Nm(i());Br();var n=We(),s=ge(n);{var l=d=>{var a=We(),p=ge(a);Fl(p,()=>o),$(d,a)};L(s,d=>{o&&d(l)})}$(t,n),z()}var nx=M('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),rx={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 Om(t,e){U(e,!1),q(t,rx),Br();var i=nx(),o=_(i);let n=Vr(()=>K("quality_applience",{action:`<span>${K("quality_applience_action")}</span>`}));Nd(o,{get message(){return r(n)}}),h(i),$(t,i),z()}var U1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:gl,valueComponentParams:{prefix:K("other_quality"),selected:o},children:"QUALITY"}},Bm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:K("auto_quality_limit"),valueComponent:e?gl:void 0,valueComponentParams:{prefix:K("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),z1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Om,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Dm=({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?gl:void 0,valueComponentParams:{prefix:K("high_quality"),selected:i},sublabel:K("high_quality_description")}),Hm=({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?gl:void 0,valueComponentParams:{prefix:K("traffic_saving_quality"),selected:i},sublabel:K("traffic_saving_quality_description")});var xu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),wu=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(l=yd(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=xu(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=xu(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=xu(t,d);return K("audio_stream_display_language_index",{language:n,index:a})}}let s=xu(t,e);return K("audio_stream_display_unknown",{index:s})};var sx={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,s=[];return i&&s.push({handler:Bm,selected:e&&!o&&!n||!1}),s.push({handler:Hm,selected:o},{handler:Dm,selected:n}),{title:K("submenu_quality"),id:"QUALITY_DETAILS",items:[z1(t),...s.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),U1(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:Ia,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:Bm,selected:((i=Uc())==null?void 0:i.type)==="auto_quality"},{handler:Hm,selected:((o=Uc())==null?void 0:o.type)==="traffic_saving"},{handler:Dm,selected:((n=Uc())==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:wu(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===mu?"sub_off":void 0}))})},W1=({subMenuId:t,context:e})=>t?[sx[t](e)]:[];var ax=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z" clip-rule="evenodd"></path></svg>');function Fm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=ax();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var lx=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"></path></svg>');function Um(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=lx();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",viewBox:"0 0 18 15",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var dx=Te('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" fill-rule="nonzero" d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"></path></g></svg>');function zm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=dx();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var cx=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18" clip-rule="evenodd"></path></svg>');function Wm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=cx();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var ux=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z" clip-rule="evenodd"></path></svg>');function Km(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=ux();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var px=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492" clip-rule="evenodd"></path></svg>');function Su(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=px();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var fx=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"></path></svg>');function qm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=fx();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var mx=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),vx={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Qm(t,e){U(e,!0),q(t,vx);let[i,o]=He(),n=()=>C(p,"$currentQuality$",i),s=()=>C(f,"$availableQualities$",i),l=()=>C(v,"$isAutoQualityEnabled$",i),d=()=>C(u,"$isMobile$",i),a=Ee(),p=a.state.currentQuality$,f=a.state.availableQualities$,v=a.state.isAutoQualityEnabled$,u=a.ui.isMobile,y=g(()=>D1({quality:n(),availableQualities:s(),isAutoQualityEnabled:l()}));var w=mx(),x=_(w);Ia(x,{get quality(){return n()},get label(){return r(y)},get isMobile(){return d()}}),h(w),$(t,w),z(),o()}var hx={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:pd,label:K("menu_quality"),value:e,valueComponent:Qm,weight:Fr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Fr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:K("aria_label_submenu_traffic_saving"),icon:Fm,label:K("menu_traffic_saving"),enabled:t,tooltipText:K("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=wu(t,e);return{id:"AUDIO_LANGUAGES",weight:Fr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:K("aria_label_menu_audio_languages",{actual:i}),icon:Um,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:Fr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:K("aria_label_menu_rate",{actual:i}),icon:zm,label:K("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Fr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:K("aria_label_menu_subtitle",{actual:t.displayValue}),icon:fd,label:K("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Fr.download,type:"CLICK",onClick:t,label:K("download_video_caption"),ariaLabel:K("aria_label_menu_download"),icon:Wm}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Fr.report,type:"CLICK",onClick:t,label:K("menu_report"),ariaLabel:`${K("menu_report")}. ${K("aria_label_new_tab_alert")}`,icon:Km,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Fr["copy-data"],type:"CLICK",onClick:t,label:K("menu_copy_debug"),ariaLabel:K("menu_copy_debug"),icon:Su,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Fr["save-trace-info"],type:"CLICK",onClick:t,label:K("menu_save_debug"),ariaLabel:K("menu_save_debug"),icon:Su,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Fr["debug-info"],type:"CLICK",onClick:t,ariaLabel:K("aria_label_menu_debug_overlay"),label:K("menu_debug_overlay"),icon:qm,isHiddenFor:["desktop"]})},K1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>hx[n](e)),...i.map(n=>({...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(fa)};var $x=(t,e)=>{Jc(t,e)},yx=M('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),xx=M('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),wx=M("<div><!> <!></div>"),Sx={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
|
|
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 Od(t,e){U(e,!0),q(t,Sx);let[i,o]=He(),n=()=>C(pe,"$settingsMenuVisible",i),s=()=>C(st,"$settingsMenuOpenedByKeyboard",i),l=()=>C(wt,"$debugPanelVisible",i),d=()=>C(Ae,"$isMobile",i),a=()=>C(mt,"$playerSize",i),p=()=>C(De,"$hasMpegSources$",i),f=()=>C(Ie,"$mobileNotReportControlHidden$",i),v=()=>C(Ve,"$autoQualityLimitingAvailable$",i),u=()=>C(te,"$availableSubtitlesList$",i),y=()=>C(ze,"$isLiveWithPlaybackSpeed",i),w=()=>C(fe,"$availableAudioStreams$",i),x=()=>C(le,"$availablePlaybackRates$",i),S=()=>C($e,"$currentAudioStream$",i),T=()=>C(Be,"$currentPlaybackRate$",i),E=()=>C(at,"$trafficSavingEnabled",i),V=()=>C(ke,"$currentQuality$",i),k=()=>C(re,"$isAutoQualityEnabled$",i),I=()=>C(ve,"$currentSubtitle$",i),R=()=>C(Bt,"$additionalSettingsMenuItems$",i),Y=()=>C(N,"$isAutoQualityAvailable$",i),H=()=>C(ne,"$availableQualities$",i),F=()=>C(ft,"$highQualityEnabled",i),W=m(e,"ref",15,void 0),J=m(e,"playerControlsHeight",3,0),G=ni({}),ce=ni({}),ie=Ee(),ue=Et(),$e=ie.state.audioStream$,fe=ie.state.availableAudioStreams$,ke=ie.state.currentQuality$,ne=ie.state.availableQualities$,Ve=ie.state.autoQualityLimitingAvailable$,re=ie.state.isAutoQualityEnabled$,N=ie.state.isAutoQualityAvailable$,Be=ie.state.currentPlaybackRate$,le=ie.state.availablePlaybackRates$,ve=ie.state.currentSubtitle$,te=ie.state.availableSubtitlesList$,me=ie.state.canDownload,De=ie.state.hasMpegSources$,pe=ie.ui.settingsMenu.visible$,st=ie.ui.settingsMenu.openedByBtnKeyboard$,Z=ie.ui.settingsMenu.ref$,Ae=ie.ui.isMobile,Ie=ie.ui.mobileNotReportControlHidden$,ze=ie.state.canChangePlaybackSpeed$,at=ie.state.trafficSavingEnabled$,ft=ie.state.highQualityEnabled$,mt=ie.ui.playerSize,wt=ie.ui.debugPanelVisible,Ge=ie.state.isInteractiveTime$,Bt=ie.ui.additionalSettingsMenuItems$,Xt=ie.ui.t,qt=ie.actions.internal.downloadVideo,Ut=ie.actions.internal.closeSettingsMenu,oe=ie.actions.internal.openSettingsSubMenu,Dt=ie.actions.internal.closeSettingsSubMenu,he=j(!1),we=j(void 0),ae=N1();Ke(()=>{!n()&&ae.current&&(Dt(ce[ae.current]),ae.popAllSubMenus())}),Ke(()=>{n()||O(we,void 0)}),Ke(()=>{!ae.current&&r(we)&&Xh(G,r(we))}),Ke(()=>{W()&&Z.set(W())});async function Re(Ue){var Ht;ae.pushSubMenu(Ue),await Co(),oe(Ue,ce[Ue]);let ut=(Ht=W())==null?void 0:Ht.firstElementChild;ut&&uf(ut)}function qe(Ue){var ut;Ue==null||Ue.stopPropagation(),s()||(ut=e.returnFocus)==null||ut.call(e),Ut(),O(he,!1)}function Le(Ue,ut){ie.actions.internal.setQuality(Ue,{appliesTo:ut}),qe()}function je(Ue){ie.actions.internal.setAudioStream(Ue),qe()}function Oe(Ue,ut){ie.actions.internal.setTrafficSavingEnabled(Ue,ut),ue.features.qualityDetailsSubMenuEnabled&&qe()}function Je(Ue,ut){ie.actions.internal.setHighQualityEnabled(Ue,ut),qe()}function At(Ue){ie.actions.internal.setPlaybackRate(Ue),qe()}function zt(Ue){ie.actions.internal.setSubtitle(Ue),qe()}function et(){qt()}function $i(){bx(e.supportLink)&&window.open(e.supportLink,"_blank"),ie.actions.internal.reportProblem(),ie.actions.internal.pause()}function vi(){rl(ie.actions.internal.getDebugTextData())}let tt=()=>{let Ue=ie.actions.internal.getTraceTextData(),ut=new Blob([...Ue],{type:"application/json"}),Ht=window.URL.createObjectURL(ut);la(Ht,"vk_player_trace_info","json")};function ii(){wt.set(!l())}function Qt(){O(he,!0)}function gi(){O(he,!1)}function Io(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-J()}px; overflow: auto;`}let vo=g(()=>me&&p()&&!f()),Ot=g(()=>ue.features.trafficSaving&&!f()&&v()&&!ue.features.qualityDetailsSubMenuEnabled),ri=g(()=>u().length>0&&!f()),on=g(()=>!!y()&&!f()),It=g(()=>ue.features.audioLanguages&&w().length>=2&&!f()),ct=g(()=>!f());Pt(()=>Ge.subscribe(Ue=>{Ue&&!d()&&!r(he)&&!s()&&qe()}));let hi=g(()=>{let Ue=[r(ct)&&"QUALITY_SETTINGS",r(It)&&"AUDIO_LANGUAGES",r(on)&&"PLAYBACK_RATE",r(ri)&&"SUBTITLES",r(Ot)&&"TRAFFIC_SAVING_SWITCH",r(vo)&&"DOWNLOAD",ue.showSupport&&"SHOW_SUPPORT","COPY_DATA",ue.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(ut=>!!ut);return K1({items:Ue,context:{qualityDetailsSubMenuEnabled:ue.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:x(),currentAudioStream:S(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:At,trafficSavingEnabled:E(),toggleTrafficSaving:Oe,currentQuality:V()||q1.INVARIANT,isAutoQualityEnabled:k()||!1,currentSubtitle:I(),isMobile:d(),onDownloadClick:et,onCopyDataClick:vi,onReportProblemClick:$i,onSaveTraceDataClick:tt,toggleShowDebugInfo:ii},additionalSettingsMenuItems:R()})}),ko=g(()=>W1({subMenuId:ae.current,context:{availablePlaybackRates:x(),selectPlaybackRate:At,trafficSavingEnabled:E(),toggleTrafficSaving:Oe,currentQuality:V()||q1.INVARIANT,isAutoQualityEnabled:k()||!1,isAutoQualityAvailable:Y()||!1,availableQualities:H(),highQualityEnabled:F(),toggleHighQuality:Je,availableAudioStreams:w(),availableSubtitlesList:u(),closeSettingsMenu:Ut,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:je,selectQuality:Le,selectSubtitle:zt}}));var Ui=wx();let oi;var Wo=_(Ui);{var Dn=Ue=>{var ut=xx();let Ht;ut.__keydown=[$x,Ut];var dt=_(ut);{var ai=di=>{var $t=yx();let Mi;var Po=_($t),Hn=_(Po,!0);h(Po);var Li=P(Po,2);Li.__click=qe,h($t),B((Ji,Ao)=>{Mi=ee($t,1,"item header svelte-17or3al",null,Mi,Ji),be(Hn,Ao)},[()=>({mobile:d()}),()=>Xt("submenu_settings")]),$(di,$t)};L(dt,di=>{d()&&di(ai)})}var li=P(dt,2);let go;Si(li,21,()=>r(hi),di=>di.id,(di,$t)=>{var Mi=We(),Po=ge(Mi);{var Hn=Ji=>{Mm(Ji,{get isMobile(){return d()},get id(){return r($t).id},get icon(){return r($t).icon},get label(){return r($t).label},get ariaLabel(){return r($t).ariaLabel},get value(){return r($t).value},get valueComponent(){return r($t).valueComponent},onClick:()=>{Re(r($t).children),O(we,r($t).id,!0)},get ref(){return G[r($t).id]},set ref(Ao){G[r($t).id]=Ao}})},Li=(Ji,Ao)=>{{var bn=Ei=>{Lm(Ei,{get isMobile(){return d()},get id(){return r($t).id},get onClick(){return r($t).onClick},get icon(){return r($t).icon},get label(){return r($t).label},get ariaLabel(){return r($t).ariaLabel},closeSettings:qe})},$n=(Ei,zi)=>{{var Ko=qo=>{Rm(qo,{get isMobile(){return d()},get id(){return r($t).id},get onClick(){return r($t).onClick},get icon(){return r($t).icon},get label(){return r($t).label},get ariaLabel(){return r($t).ariaLabel},get enabled(){return r($t).enabled},get tooltipText(){return r($t).tooltipText},get maxTooltipWidth(){return r($t).maxTooltipWidth}})};L(Ei,qo=>{r($t).type==="SWITCH"&&qo(Ko)},zi)}};L(Ji,Ei=>{r($t).type==="CLICK"?Ei(bn):Ei($n,!1)},Ao)}};L(Po,Ji=>{r($t).type==="OPEN_SUB_MENU"?Ji(Hn):Ji(Li,!1)})}$(di,Mi)}),h(li),it(li,di=>W(di),()=>W()),h(ut),B((di,$t,Mi)=>{Ht=ee(ut,1,"settings-menu menu svelte-17or3al",null,Ht,di),go=ee(li,1,"items",null,go,$t),rt(li,Mi)},[()=>({desktop:!d(),mobile:d(),hidden:!!ae.current}),()=>({mobile:d()}),Io]),xt("mouseenter",ut,Qt),xt("mouseleave",ut,gi),$(Ue,ut)};L(Wo,Ue=>{n()&&Ue(Dn)})}var D=P(Wo,2);Si(D,17,()=>r(ko),Ue=>Ue.id,(Ue,ut)=>{let Ht=g(()=>{var dt;return(dt=r(ut).minWidth)!=null?dt:137});Am(Ue,{get isMobile(){return d()},get playerControlsHeight(){return J()},get returnFromSubMenu(){return ae.popSubMenu},get id(){return r(ut).id},get title(){return r(ut).title},get closeSettingsMenu(){return Ut},openSubMenuList:Re,get items(){return r(ut).items},get minWidth(){return r(Ht)},get refMenuItems(){return G},get listRef(){return ce[r(ut).id]},set listRef(dt){ce[r(ut).id]=dt}})}),h(Ui),B(Ue=>oi=ee(Ui,1,"settings-menu-container svelte-17or3al",null,oi,Ue),[()=>({mobile:d(),hidden:!n()})]),$(t,Ui),z(),o()}lt(["keydown","click"]);var Cx=t=>t;function Q1(t,{delay:e=0,duration:i=400,easing:o=Cx}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:s=>`opacity: ${s*n}`}}var Tx=M('<button class="button svelte-1sbbskl"> </button>'),Ex={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 Gm(t,e){q(t,Ex);var i=Tx();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)}lt(["click"]);var Ix=M('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),kx={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
|
|
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 Bd(t,e){U(e,!0),q(t,kx);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Et(),{ui:{t:n}}=Ee(),s=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=Ix(),d=_(l),a=_(d),p=_(a),f=_(p);Nd(f,{get message(){return s}}),h(p);var v=P(p,2);{var u=w=>{let x=g(()=>n("slow_video_notification_button"));Gm(w,{get label(){return r(x)},get onClick(){return e.onSelectAutoQuality}})};L(v,w=>{o||w(u)})}h(a);var y=P(a,2);ma(y,{get onClick(){return e.onClose}}),h(d),h(l),Ap(3,d,()=>Q1,()=>({duration:i})),$(t,l),z()}import{isIntersecting as G1,Subscription as Px}from"@vkontakte/videoplayer-shared/es2018";var ka="annotation",Cu=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",ka),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"}}async runHidingControlsWhenIntersected(e,{observedSlotElementId:i,controlsToObserve:o}){var f;let n=this.slots.get(e);if(!n)return;let s=await this.findSlotElement(n.rootElement,i,e),{controls:l,hiddenControls:d}=((f=this.store)==null?void 0:f.ui)||{},a=new MutationObserver(v=>v.forEach(()=>{let u=_s(s,this.shadowRootContainer);o.forEach(y=>{let w=l==null?void 0:l[y],x=w?xe(w):null,S=d==null?void 0:d[y];x&&(S==null||S.set(G1(x,u)))})}));a.observe(s,{childList:!0,subtree:!0}),n.observer=a;let p=new Px;o.forEach(v=>{l&&p.add(l[v].subscribe(u=>{let y=d==null?void 0:d[v];u&&u.isDisplayed?y==null||y.set(G1(u,_s(s,this.shadowRootContainer))):y==null||y.set(!1)}))}),n.subs=p}async findSlotElement(e,i,o){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 p,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&&((p=this.store)==null||p.ui.isControlsAvailable.set(!0)),(f=d==null?void 0:d.controlsToObserve)==null||f.forEach(v=>{var u,y;(y=(u=this.store)==null?void 0:u.ui.hiddenControls[v])==null||y.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var Ax=M('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),Mx={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"},Kh=W_;var g
|
|
|
335
335
|
opacity: 0;
|
|
336
336
|
scale: 0;
|
|
337
337
|
}
|
|
338
|
-
}`};function
|
|
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 Pa(t,e){U(e,!0),K(t,Hx);let[i,o]=He(),n=()=>C(f,"$rotateAlpha",i),s=()=>C(m,"$playerSize",i),l=()=>C(p,"$playerPhase",i),d=()=>C(u,"$isPlaying$",i),a=v(e,"videoContainer",15),{playerPhase:p,ui:{rotateAlpha:f,playerSize:m},state:{isPlaying$:u}}=Te(),{isSmoothVideoRotate:y}=Et(),w=g(()=>a()&&n()%180?s().height/s().width:1);var x=Dx();let S;x.__contextmenu=function(...R){var I;(I=e.onContextMenu)==null||I.apply(this,R)},x.__mousedown=function(...R){var I;(I=e.onMouseDown)==null||I.apply(this,R)},x.__mouseup=function(...R){var I;(I=e.onMouseUp)==null||I.apply(this,R)},x.__click=function(...R){var I;(I=e.onClick)==null||I.apply(this,R)},x.__dblclick=function(...R){var I;(I=e.onDblClick)==null||I.apply(this,R)};var T=_(x);let E;et(T,R=>a(R),()=>a()),h(x),B((R,I)=>{S=ie(x,1,"video-wrapper svelte-1czns9r",null,S,R),E=ie(T,1,"video-container svelte-1czns9r",null,E,I),ot(T,`transform: rotate(${n()}deg) scale(${r(w)})`),Ue(T,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!y})]),$(t,x),z(),o()}st(["contextmenu","mousedown","mouseup","click","dblclick"]);var Fx=we('<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 nv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Fx();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var Ux=A('<div><span class="text svelte-1tixim0"> </span> <!></div>'),zx={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 rv(t,e){U(e,!0),K(t,zx);let{ui:{t:i}}=Te();var o=Ux();let n;var s=_(o),l=_(s,!0);h(s);var d=P(s,2);nv(d,{}),h(o),B((a,p)=>{n=ie(o,1,"root svelte-1tixim0",null,n,a),_e(l,p)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),$(t,o),z()}var Wx=(t,e,i,o,n,s)=>{if(t.stopPropagation(),e()||o()){s();return}},Kx=A("<div><!></div>"),qx=A('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),Qx=A("<div><!></div>"),Gx=A('<div class="settings-menu svelte-jtgjmv"><!></div>'),jx=A("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Yx=A("<!> <!> <!>",1),Zx=A('<div class="blocked svelte-jtgjmv"></div>'),Xx=A('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),Jx={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 sv(t,e){U(e,!0),K(t,Jx);let[i,o]=He(),n=()=>C(Wr,"$notificationsToShow$",i),s=()=>C(lt,"$playerPhase",i),l=()=>C(Wi,"$isLoaderVisible",i),d=()=>C(dt,"$adPlaybackState",i),a=()=>C(Kt,"$crashed",i),p=()=>C(Bn,"$isInteractiveTime$",i),f=()=>C(ri,"$settingsMenuVisible",i),m=()=>C(Vi,"$isInteractiveExpectation$",i),u=()=>C(Pt,"$controlsVisible",i),y=()=>C(fo,"$touched",i),w=()=>C(bn,"$graphIsOpened$",i),x=()=>C(si,"$isFullscreen",i),S=()=>C(xr,"$autoplayNextEnabled$",i),T=()=>C(D,"$postrollPassed",i),E=()=>C(ti,"$isEnded$",i),R=()=>C(xn,"$cursorInside",i),I=()=>C(wr,"$isControlsAvailable",i),M=()=>C(zr,"$doubleForwardOn$",i),k=()=>C(Hn,"$fakeIsPlaying$",i),G=()=>C(yn,"$bottomNoSmooth",i),H=()=>C(qi,"$interactiveTimeIndicator",i),F=()=>C(ai,"$playerSize",i),q=()=>C(xt,"$is3DVideo",i),Y=()=>C(di,"$contextMenuVisible$",i),j=()=>C(gi,"$playbackState$",i),ue=()=>C(_n,"$hotKeyMapData",i),re=()=>C(At,"$scrubbingInProgress",i),fe=()=>C(ut,"$volumeChangingInProgress",i),be=()=>C(Fo,"$chromecastConnected$",i),me=()=>C(Ri,"$controlsTimeoutActive",i),Pe=()=>C(tn,"$settingsMenuOpenedByKeyboard",i),se=()=>C(Gn,"$contextMenuOpenedByKeyboard$",i),Le=()=>C(Mr,"$contextMenuOpenedByHotKey$",i),ae=()=>C(mr,"$contextMenuButtonRef$",i),N=()=>C(Qr,"$contextMenuLastActiveElem$",i),Be=()=>C(Li,"$isFullscreenOpenedByKeyboard",i),ce=()=>C(_i,"$language$",i),he=()=>C(Xi,"$icon3DVideoVisible",i),oe=()=>C(On,"$chromecastDeviceName$",i),ve=()=>C(ci,"$currentSubtitle$",i),De=()=>C(Uo,"$currentSubtitleCaptions$",i),pe=()=>C(Mi,"$position$",i),rt=()=>C(Gt,"$duration$",i),X=()=>C(Ke,"$isLive$",i),Ae=()=>C(ct,"$isPlaying$",i),ke=()=>C(To,"$contextMenuPosition$",i),ze=()=>C(on,"$showHotKeyMap",i),nt=()=>C(Co,"$debugPanelVisible",i),ht=()=>C(Dn,"$userActionsDisabled$",i),at=v(e,"videoContainer",15),yt=v(e,"adsSlotId",3,void 0),Xe=v(e,"adsParams",3,void 0),Ht=v(e,"adsPreviewParam",3,void 0),Xt=v(e,"adsAutoplayParam",3,void 0),Bt=v(e,"duration",3,void 0),Qt=v(e,"logoTargetUrl",3,""),Ee=v(e,"showNextPrevButtons",3,!1),zt=v(e,"nextButtonActive",3,!1),Se=v(e,"prevButtonActive",3,!1),te=v(e,"endScreenVideoTitle",3,void 0),ne=v(e,"endScreenVideoThumb",3,void 0),Ve=v(e,"isOneVideoPlaylist",3,!1),Fe=v(e,"shadowRootContainer",3,void 0),Re=v(e,"outerContainerRef",3,void 0),We=v(e,"playerStarted",3,!1),Ne=v(e,"fullScreenTarget",3,void 0),Je=v(e,"showMiniTimer",3,!1),Ft=v(e,"showEndScreen",3,!0),Wt=v(e,"keyboardControls",15),Ct=e.store.getLogger().createComponentLog("Root component"),_i=e.store.interfaceLanguage$,gi=e.store.state.playbackState$,dt=e.store.ads.playbackState,Mi=e.store.state.positionWithScrubbing$,Gt=e.store.state.duration$,lt=e.store.playerPhase,si=e.store.ui.isFullscreen,Li=e.store.ui.isFullscreenOpenedByKeyboard,Pt=e.store.ui.controlsVisible,ri=e.store.ui.settingsMenu.visible$,tn=e.store.ui.settingsMenu.openedByBtnKeyboard$,At=e.store.ui.scrubbingInProgress,ut=e.store.ui.volumeChangingInProgress,di=e.store.ui.contextMenu.visible$,Co=e.store.ui.debugPanelVisible,Wi=e.store.state.isLoaderVisible,ti=e.store.state.isEnded$,Fo=e.store.state.chromecastConnected$,On=e.store.state.chromecastDeviceName$,D=e.store.ads.postrollPassed,Ke=e.store.state.isLive$,ct=e.store.state.isPlaying$,Kt=e.store.state.crashed$,It=e.store.webApi.annotationsApi,kt=e.store.webApi.pictureInPictureApi,ci=e.store.state.currentSubtitle$,Uo=e.store.state.currentSubtitleCaptions$,ai=e.store.ui.playerSize,xt=e.store.ui.is3DVideo,Xi=e.store.ui.icon3DVideoVisible,Ki=e.store.state.isInteractive,Bn=e.store.state.isInteractiveTime$,Vi=e.store.state.isInteractiveExpectation$,po=e.store.state.hasInteractiveBranches,fo=e.store.ui.touched,_n=e.store.ui.modals.hotKeyMap.data,on=e.store.ui.modals.hotKeyMap.show,Ei=e.store.ui.overlayContainer$,qi=e.store.ui.controls.interactiveTimeIndicator,nn=e.store.state.showInteractiveTimeIndicator,To=e.store.ui.contextMenu.position$,rn=e.store.actions.internal.setQuality,sn=e.store.actions.internal.closeSettingsMenu,xr=e.store.ui.autoplayNextEnabled$,Dn=e.store.ui.userActionsDisabled,wr=e.store.ui.isControlsAvailable,ar=e.store.ui.videoTitleInfo,zr=e.store.ui.doubleForwardOn$,an=e.store.actions.internal.getVideoElement,{fakeIsPlaying$:Hn,notifications$:lr,graphIsOpened$:bn}=uo(),ro=Z(void 0),Fn=Z(void 0),Sr=Z(void 0),$n=Z(void 0),dr,Un,zo;_n.set(e1());let{closeNotification:zn,notificationsToShow$:Wr}=lr,Cr=g(()=>!!n().slow_video),mo=()=>zn("slow_video"),pt=g(()=>(s()==="video"&&l()||s()==="ads"&&d()==="inactive")&&!a()),jt=Z(void 0),yn=le(!1),Qi,Ri=le(!1),Wo=le(),xn=le(!1),so=Z(!1),ln=Z(!1),Ko=Z(!1),vo=Z(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Tr=g(()=>p()&&!f()&&!(r(so)||r(ln))&&!(r(Ko)&&!m())),Er=!0,Kr=g(()=>e.uiConfig.features.thumbTimer&&Je()&&s()==="video"&&!u()&&!a()&&!Ki&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),as=g(()=>s()==="video"&&!w()&&x()),wn=Z(!1),cr=g(()=>(Ft()||e.showAutoplayNext&&S())&&!!te()&&!!ne()&&(e.showAds&&T()||!e.showAds)&&E()&&!a()&&!r(wn)),Ir=g(()=>R()&&!(u()||r(cr))&&!p()&&I()&&!M()),go=Z(!1),ii=g(()=>k()!==null),{toggle:dn}=Hn,cn=!1,Sn=null;kt==null||kt.setContext(Il());let kr=()=>{e.autoplay&&!Ki&&e.uiConfig.controls.showOnStartupAtAutoplay&&_t(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:kr});let Pr=()=>{window.clearTimeout(dr),Ri.set(!1)},ft=()=>{window.clearTimeout(Un),Wo.set(null)},_t=J=>{Pr(),Ri.set(!0),dr=window.setTimeout(()=>Ri.set(!1),J);let Ze=J-100;Qi=window.setTimeout(()=>{G()&&yn.set(!1)},Ze>0?Ze:J)},Ji=(J,Ze)=>{ft(),Wo.set(Ze),Un=window.setTimeout(()=>Wo.set(null),J)},Ni=xt.subscribe(J=>{Xi.set(J),J&&(window.clearTimeout(zo),zo=window.setTimeout(()=>Xi.set(!1),e.uiConfig.controls.hide360IconTimeout))}),ao=async()=>{var Ze,Ut,pi,Bi;let J=Rs();if(J){let Di=td(),xi=eo();J=Di===xi||Di===Fe()}if(J){_t(e.uiConfig.controls.hideTimeoutFullscreen);try{await(kt==null?void 0:kt.exit())}catch(Di){Ct({message:String(Di)})}}si.set(J),e.store.getAdmanWrapper().setFullscreen(J),x()?(Ut=(Ze=e.store.callbacks)==null?void 0:Ze.onFullscreenEnter)==null||Ut.call(Ze):(Bi=(pi=e.store.callbacks)==null?void 0:pi.onFullscreenExit)==null||Bi.call(pi)},lo=J=>{let{width:Ze,height:Ut}=J.target;ai.set({width:Ze,height:Ut})},qo=()=>{let{width:J,height:Ze}=r(ro).getBoundingClientRect();ai.set({width:J,height:Ze})};Lt(()=>{var Ze;return iu(ao),e.uiConfig.features.annotationsInside&&(It==null||It.init(r(ro))),ua(kt)&&(kt==null||kt.assignPlayerContainer(r(ro)),kt==null||kt.setExternalEventHandlers({resize:lo,leavepictureinpicture:qo})),e.interactiveContainer&&((Ze=at().parentElement)==null||Ze.insertBefore(e.interactiveContainer,at().nextSibling)),()=>{window.clearTimeout(dr),window.clearTimeout(Qi),window.clearTimeout(Un),window.clearTimeout(zo),Ni(),kt==null||kt.dispose().catch(Ut=>{Ct({message:String(Ut)})}),ou(ao)}});let eo=()=>{let J=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Re()?r(ro):Re(),Ze=J.getRootNode(),Ut=Ze instanceof ShadowRoot?Ze.host:Ze,pi=Ne()instanceof HTMLElement&&Ne().contains(Ut);return e.uiConfig.allowChangingFullscreenTarget&&Ne()&&pi?Ne():J},Wn=()=>{di.set(!1)},Eo=()=>{sn(),Wn()},ur=async()=>{Wn(),Rs()?(await tu(document),Ct({message:"exit fullscreen"})):(Ct({message:"request fullscreen"}),await eu(eo()))},Ar=J=>{w()||(J.preventDefault(),di.set(!0),To.set({left:J.clientX,top:J.clientY}))};function qr(){xn.set(!0),Ki||_t(e.uiConfig.controls.hideTimeoutCursor)}function Io(){Ki||(yn.set(!0),_t(e.uiConfig.controls.hideTimeoutCursor))}function Kn(){xn.set(!1),O(ln,!1),O(so,!1),cn=!1,e.store.actions.internal.releaseCamera(),_t(e.uiConfig.controls.hideTimeout)}function qn(J){return J?J.offsetTop+qn(J.offsetParent):0}function pr(J){return J?J.offsetLeft+pr(J.offsetParent):0}function tt(J){if(H()&&nn){let Ze=J.currentTarget,Ut=qn(Ze),pi=pr(Ze),Bi=J.pageX-pi,Di=J.pageY-Ut,{left:xi,bottom:En,right:wi}=H(),li=wi-xi;return Bi>=xi-li&&Di<=En+li}}function St(J){if(r(ro)){let Ze=qn(J.currentTarget),Ut=F().height,pi=J.pageY-Ze;if(tt(J)){O(ln,!1);return}pi<40?O(ln,!0):pi>Ut-40?O(so,!0):(O(ln,!1),f()||O(so,!1))}}function fi(J){St(J),!r(Tr)&&!M()&&_t(e.uiConfig.controls.hideTimeoutCursor),q()&&cn&&Sn&&e.store.actions.internal.moveCameraFocusPX(Sn.clientX-J.clientX,Sn.clientY-J.clientY,J.timeStamp-Sn.timeStamp),Sn=J}let Oi=0,ho=600,to=()=>{Oi=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),Pr()},ho)},Ii=()=>{setTimeout(()=>e.store.actions.internal.changeDoubleForwardOn(!1),0),clearTimeout(Oi)},ko=J=>{J.preventDefault(),J.button===0&&(cn=!0,e.store.actions.internal.holdCamera(),e.uiConfig.features.doubleForwardAvailable&&to()),!cn&&_t(e.uiConfig.controls.hideTimeoutCursor)},Qn=J=>{J.preventDefault(),J.button===0&&(Sn=J,cn=!1,e.store.actions.internal.releaseCamera(),e.uiConfig.features.doubleForwardAvailable&&Ii()),!M()&&_t(e.uiConfig.controls.hideTimeoutCursor)},un=J=>{J.preventDefault(),Er&&(Ct({message:"double click on video"}),ur(),_t(e.uiConfig.controls.hideTimeoutCursor))},_o=J=>{var Ze;if(J.preventDefault(),Y()||f()){Eo();return}if(!M()&&!(E()&&!po)){if(r(ii))return dn();if((Ze=Wt())==null||Ze.focus(),!We()){e.firstStart(),_t(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||j()!==s0.PLAYING)&&e.store.actions.internal.togglePlay(),_t(e.uiConfig.controls.hideTimeoutCursor)}},Po=J=>{Eo(),fo.set(!0),_t(e.uiConfig.controls.hideTimeout),J&&Ji(e.uiConfig.controls.hideHotKeyHelpers,J)},fr=()=>{var J,Ze;Eo(),(J=e.store.callbacks)!=null&&J.onOpenHotKeyMap?(Ze=e.store.callbacks)==null||Ze.onOpenHotKeyMap(ue()):on.update(Ut=>!Ut)},Cn=()=>{fo.set(!0)},Gn=e.store.ui.contextMenu.openedByBtnKeyboard$,mr=e.store.ui.contextMenu.btnRef$,Ao=Z(void 0),Mr=e.store.ui.contextMenu.openedByHotKey$,Qr=e.store.ui.contextMenu.lastActiveElem$;Qe(()=>{Ei.set(r(jt))}),Qe(()=>{O(Ko,r(vo)&&j()!==s0.PLAYING,!0),r(vo)||$t(()=>O(vo,!0))}),Qe(()=>{Pt.set((r(Ko)||E()||f()||re()||fe()||be()||me())&&!r(Tr)&&(s()==="video"||s()==="ads")&&!a()&&I())}),Qe(()=>{!re()&&r(go)&&!p()&&_t(e.uiConfig.controls.hideTimeoutCursor),$t(()=>O(go,re(),!0))}),Qe(()=>{r($n),f(),Pe(),$t(()=>ld(r($n),f(),Pe()))}),Qe(()=>{r(Ao),Y(),se(),Le(),$t(()=>{let J=se()||Le();ld(r(Ao),Y(),J)})}),Qe(()=>{let J=ae();J&&(Y(),$t(()=>rl(J,Y(),Gn)))}),Qe(()=>{let J=N();J&&(Y(),$t(()=>a1(J,Y(),Mr)))}),Qe(()=>{var J;!Be()&&x()&&($t(()=>Li.set(!1)),(J=Wt())==null||J.focus())}),Qe(()=>{w()&&Eo()});let jn=W("video360"),vr=Z(void 0),je=J=>{ar.set(Rn(an(),{title:r(vr)},"title",J))},Jt=(J,Ze)=>{var Di,xi;let Ut=(xi=(Di=e.store.callbacks)==null?void 0:Di.uiInfo)==null?void 0:xi.onUpcomingLiveViewStateChanged;if(!Ut)return;let pi=!!Ze,Bi={...Rn(r(ro),{upcomingLiveScreen:Ze},"upcomingLiveScreen",pi),...J};Ut(Bi)};var mi=Xx();wt("blur",Xs,Eo);var bi=ge(mi);bi.__mousemove=fi;var Mo=_(bi);let Gr=g(()=>s()==="ads"),Lo=g(()=>r(ii)?dn:void 0);et(Cf(Mo,{startDoubleForwardActivationTimer:to,stopDoubleForward:Ii,toggleFullscreen:ur,hideContextMenu:Eo,showHotKeyHelpers:Po,showKeyMap:fr,get isAds(){return r(Gr)},get fakePlayButtonHandler(){return r(Lo)},get nextButtonActive(){return zt()},get prevButtonActive(){return Se()},children:(J,Ze)=>{var Ut=Yx(),pi=ge(Ut);Pa(pi,{get hideCursor(){return r(Ir)},onClick:_o,onContextMenu:Ar,onMouseDown:ko,onMouseUp:Qn,onDblClick:un,get videoContainer(){return at()},set videoContainer(xi){at(xi)}});var Bi=P(pi,2);ra(Bi,()=>"slot",!1,(xi,En)=>{Ie(xi,()=>({name:ka}))});var Di=P(Bi,2);na(Di,ce,xi=>{var En=jx(),wi=ge(En);let li=g(()=>s()!=="thumb"||a()||Ki&&e.autoplay);Ta(wi,{get hidden(){return r(li)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Qo=P(wi,2);ov(Qo,{});var gr=P(Qo,2);rv(gr,{get isVisible(){return M()}});var bo=P(gr,2);{var $o=Ge=>{let oi=g(()=>{var Vo;return(Vo=e.live)==null?void 0:Vo.startTime});Bd(Ge,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(oi)},onUpcomingLiveViewStateChanged:Jt})};V(bo,Ge=>{s()==="LiveWaitingStart"&&Ge($o)})}var Ws=P(bo,2);{var bt=Ge=>{Ea(Ge,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(Ws,Ge=>{s()==="LiveWaitingRecover"&&Ge(bt)})}var gt=P(Ws,2);{var co=Ge=>{Ea(Ge,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(gt,Ge=>{s()==="LiveWaitingRecord"&&Ge(co)})}var Go=P(gt,2);{var Gi=Ge=>{var oi=Kx();let Vo;var Ss=_(oi);od(Ss,{get adsSlotId(){return yt()},get adsParams(){return Xe()},get adsPreviewParam(){return Ht()},get adsAutoplayParam(){return Xt()},get duration(){return Bt()}}),h(oi),B(pn=>Vo=ie(oi,1,"ads-container svelte-jtgjmv",null,Vo,pn),[()=>({hidden:s()!=="ads"})]),$(Ge,oi)};V(Go,Ge=>{e.showAds&&We()&&Ge(Gi)})}var ui=P(Go,2);{var vi=Ge=>{let oi=g(()=>!Ft()&&e.showAutoplayNext&&S());xf(Ge,{get title(){return te()},get thumb(){return ne()},get isHide(){return r(oi)},clickCloseIcon:()=>O(wn,!0)})};V(ui,Ge=>{r(cr)&&te()&&ne()&&Ge(vi)})}var ws=P(ui,2);{var _l=Ge=>{let oi=g(()=>!u());Lm(Ge,{get title(){return e.title},get isHidden(){return r(oi)},onVisibilityChanged:je,get ref(){return r(vr)},set ref(Vo){O(vr,Vo,!0)}})};V(ws,Ge=>{r(as)&&Ge(_l)})}var ec=P(ws,2);{var Fu=Ge=>{let oi=g(()=>s()==="video"&&u());Nd(Ge,{get isShifted(){return r(oi)}})};V(ec,Ge=>{q()&&Ge(Fu)})}var tc=P(ec,2);{var Uu=Ge=>{var oi=qx(),Vo=_(oi);ed(Vo,{get"aria-label"(){return jn}}),h(oi),$(Ge,oi)};V(tc,Ge=>{he()&&Ge(Uu)})}var ic=P(tc,2);{var zu=Ge=>{Od(Ge,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return oe()}})};V(ic,Ge=>{be()&&Ge(zu)})}var oc=P(ic,2);{var Wu=Ge=>{Sa(Ge,{get shifted(){return u()},get captions(){return De()},get position(){return pe()},get playerSize(){return F()}})};V(oc,Ge=>{ve().value!=="off"&&Ge(Wu)})}var nc=P(oc,2);{var Ku=Ge=>{var oi=Qx();oi.__contextmenu=Ar,oi.__click=[Wx,Y,di,f,ri,Eo];var Vo=_(oi);Ca(Vo,{}),h(oi),$(Ge,oi)};V(nc,Ge=>{a()&&Ge(Ku)})}var rc=P(nc,2);{var qu=Ge=>{let oi=g(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),Vo=g(()=>s()==="ads"),Ss=g(()=>e.canRewindLive&&rt()!==0);Rd(Ge,{get bottomHidden(){return r(oi)},get bottomNoSmooth(){return G()},get showControls(){return u()},get isAds(){return r(Vo)},get canRewindLive(){return r(Ss)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Qt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Ee()},get nextButtonActive(){return zt()},get prevButtonActive(){return Se()},get isOneVideoPlaylist(){return Ve()},customFullscreenSupported:Er,toggleFullscreen:ur,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(Fn)},set playerControlsWrapperRef(pn){O(Fn,pn,!0)},get playerControlsRef(){return r(Sr)},set playerControlsRef(pn){O(Sr,pn,!0)}})};V(rc,Ge=>{We()&&Ge(qu)})}var sc=P(rc,2);{var Aa=Ge=>{var oi=Gx(),Vo=_(oi);let Ss=g(()=>{var pn;return(pn=r(Sr))==null?void 0:pn.clientHeight});Fd(Vo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(Ss)},returnFocus:()=>{var pn;return(pn=Wt())==null?void 0:pn.focus()},get ref(){return r($n)},set ref(pn){O($n,pn,!0)}}),h(oi),$(Ge,oi)};V(sc,Ge=>{!be()&&s()!=="ads"&&Ge(Aa)})}var ac=P(sc,2);let lc=g(()=>!r(Kr));sd(ac,{get isLive(){return X()},get isHidden(){return r(lc)},get isPlaying(){return Ae()},get position(){return pe()},get duration(){return rt()}});var bl=P(ac,2);km(bl,{get data(){return Wo}});var dc=P(bl,2);yf(dc,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ge;return(Ge=Wt())==null?void 0:Ge.focus()},get visible(){return Y()},get playerContainerRef(){return r(ro)},get controlsContainerRef(){return r(Fn)},get position(){return ke()},get menuElementRef(){return r(Ao)},set menuElementRef(Ge){O(Ao,Ge,!0)}});var $l=P(dc,2);{var yl=Ge=>{Ud(Ge,{onClose:mo,onSelectAutoQuality:()=>{rn("auto"),mo()}})};V($l,Ge=>{r(Cr)&&Ge(yl)})}var xl=P($l,2);{var Qu=Ge=>{ga(Ge,{})};V(xl,Ge=>{r(pt)&&Ge(Qu)})}var wl=P(xl,2);{var Gu=Ge=>{If(Ge,{})};V(wl,Ge=>{ze()&&Ge(Gu)})}var ju=P(wl,2);{var Yu=Ge=>{ud(Ge,{})};V(ju,Ge=>{nt()&&Ge(Yu)})}$(xi,En)}),$(J,Ut)},$$slots:{default:!0}}),J=>Wt(J),()=>Wt());var Tn=P(Mo,2);et(Tn,J=>O(jt,J),()=>r(jt)),h(bi),et(bi,J=>O(ro,J),()=>r(ro));var Yn=P(bi,2);{var jr=J=>{var Ze=Zx();$(J,Ze)};V(Yn,J=>{ht()&&J(jr)})}wt("mouseenter",bi,qr),wt("mouseleave",bi,Kn),wt("click",bi,Cn,!0),wt("focusin",bi,Io,!0),$(t,mi),z(),o()}st(["mousemove","contextmenu","click"]);import{clientChecker as zd,PlaybackState as d5}from"@vkontakte/videoplayer-core/es2018";import{noop as c5}from"@vkontakte/videoplayer-shared/es2018";var e5=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),t5=A("<div><!></div>"),i5={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 jm(t,e){U(e,!0),q(t,Mx);let[i,o]=He(),n=()=>C(l,"$isPlaying$",i),s=()=>C(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:l},ui:{aboutToGoNextVideo:d},actions:a}=Ee(),{features:{playbackStatusShow:p,playbackStatusAnimationDuration:f,playbackStatusNextVideoAnimationDuration:v}}=Et(),u=0,y=j(null),w=j(!1);Ke(()=>{O(y,n()?Hr:ys,!0)}),Ke(()=>{O(y,s()?Fs:null,!0)}),Ke(()=>{if(p)return u=window.setTimeout(()=>{u=0,s()&&r(y)===Fs&&(s()==="next"?a.internal.nextVideoClick(!1):a.internal.prevVideoClick(!1)),O(y,null)},r(y)!==Fs?f:v),()=>{u&&(window.clearTimeout(u),u=0)}}),Ke(()=>{n()&&!r(w)&&(O(w,!0),O(y,null))});var x=We(),S=ge(x);{var T=E=>{var V=We(),k=ge(V);na(k,()=>r(y),I=>{var R=Ax(),Y=_(R),H=_(Y);let F=g(()=>s()==="prev");Ci(H,()=>r(y),(W,J)=>{J(W,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return r(F)}})}),h(Y),h(R),B(()=>rt(Y,`animation-duration: ${r(y)!==Fs?f:v}ms`)),$(I,R)}),$(E,V)};L(S,E=>{r(y)&&p&&E(T)})}$(t,x),z(),o()}var Lx=M('<div><div data-testid="video-container"></div></div>'),Vx={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 Pa(t,e){U(e,!0),q(t,Vx);let[i,o]=He(),n=()=>C(f,"$rotateAlpha",i),s=()=>C(v,"$playerSize",i),l=()=>C(p,"$playerPhase",i),d=()=>C(u,"$isPlaying$",i),a=m(e,"videoContainer",15),{playerPhase:p,ui:{rotateAlpha:f,playerSize:v},state:{isPlaying$:u}}=Ee(),{isSmoothVideoRotate:y}=Et(),w=g(()=>a()&&n()%180?s().height/s().width:1);var x=Lx();let S;x.__contextmenu=function(...V){var k;(k=e.onContextMenu)==null||k.apply(this,V)},x.__mousedown=function(...V){var k;(k=e.onMouseDown)==null||k.apply(this,V)},x.__mouseup=function(...V){var k;(k=e.onMouseUp)==null||k.apply(this,V)},x.__click=function(...V){var k;(k=e.onClick)==null||k.apply(this,V)},x.__dblclick=function(...V){var k;(k=e.onDblClick)==null||k.apply(this,V)};var T=_(x);let E;it(T,V=>a(V),()=>a()),h(x),B((V,k)=>{S=ee(x,1,"video-wrapper svelte-1czns9r",null,S,V),E=ee(T,1,"video-container svelte-1czns9r",null,E,k),rt(T,`transform: rotate(${n()}deg) scale(${r(w)})`),Fe(T,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!y})]),$(t,x),z(),o()}lt(["contextmenu","mousedown","mouseup","click","dblclick"]);var Rx=(t,e,i,o,n,s)=>{if(t.stopPropagation(),e()||o()){s();return}},Nx=M("<div><!></div>"),Ox=M('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),Bx=M("<div><!></div>"),Dx=M('<div class="settings-menu svelte-jtgjmv"><!></div>'),Hx=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Fx=M("<!> <!> <!>",1),Ux=M('<div class="blocked svelte-jtgjmv"></div>'),zx=M('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),Wx={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 Ym(t,e){U(e,!0),q(t,Wx);let[i,o]=He(),n=()=>C(xn,"$notificationsToShow$",i),s=()=>C(Qt,"$playerPhase",i),l=()=>C(ko,"$isLoaderVisible",i),d=()=>C(vi,"$adPlaybackState",i),a=()=>C(ut,"$crashed",i),p=()=>C(Po,"$isInteractiveTime$",i),f=()=>C(Ot,"$settingsMenuVisible",i),v=()=>C(Hn,"$isInteractiveExpectation$",i),u=()=>C(vo,"$controlsVisible",i),y=()=>C(Ji,"$touched",i),w=()=>C(rr,"$graphIsOpened$",i),x=()=>C(gi,"$isFullscreen",i),S=()=>C(rn,"$autoplayNextEnabled$",i),T=()=>C(Dn,"$postrollPassed",i),E=()=>C(Ui,"$isEnded$",i),V=()=>C(Wi,"$cursorInside",i),k=()=>C(Fn,"$isControlsAvailable",i),I=()=>C($r,"$fakeIsPlaying$",i),R=()=>C(pt,"$bottomNoSmooth",i),Y=()=>C(Ei,"$interactiveTimeIndicator",i),H=()=>C(go,"$playerSize",i),F=()=>C(di,"$is3DVideo",i),W=()=>C(ct,"$contextMenuVisible$",i),J=()=>C($i,"$playbackState$",i),G=()=>C(Ao,"$hotKeyMapData",i),ce=()=>C(on,"$scrubbingInProgress",i),ie=()=>C(It,"$volumeChangingInProgress",i),ue=()=>C(oi,"$chromecastConnected$",i),$e=()=>C(an,"$controlsTimeoutActive",i),fe=()=>C(ri,"$settingsMenuOpenedByKeyboard",i),ke=()=>C(Cn,"$contextMenuOpenedByKeyboard$",i),ne=()=>C(yo,"$contextMenuOpenedByHotKey$",i),Ve=()=>C(dn,"$contextMenuButtonRef$",i),re=()=>C(cr,"$contextMenuLastActiveElem$",i),N=()=>C(Io,"$isFullscreenOpenedByKeyboard",i),Be=()=>C(et,"$language$",i),le=()=>C($t,"$icon3DVideoVisible",i),ve=()=>C(Wo,"$chromecastDeviceName$",i),te=()=>C(ai,"$currentSubtitle$",i),me=()=>C(li,"$currentSubtitleCaptions$",i),De=()=>C(tt,"$position$",i),pe=()=>C(ii,"$duration$",i),st=()=>C(D,"$isLive$",i),Z=()=>C(Ue,"$isPlaying$",i),Ae=()=>C(Ko,"$contextMenuPosition$",i),Ie=()=>C(bn,"$showHotKeyMap",i),ze=()=>C(hi,"$debugPanelVisible",i),at=()=>C(Ur,"$userActionsDisabled$",i),ft=m(e,"videoContainer",15),mt=m(e,"adsSlotId",3,void 0),wt=m(e,"adsParams",3,void 0),Ge=m(e,"adsPreviewParam",3,void 0),Bt=m(e,"adsAutoplayParam",3,void 0),Xt=m(e,"duration",3,void 0),qt=m(e,"logoTargetUrl",3,""),Ut=m(e,"showNextPrevButtons",3,!1),oe=m(e,"nextButtonActive",3,!1),Dt=m(e,"prevButtonActive",3,!1),he=m(e,"endScreenVideoTitle",3,void 0),we=m(e,"endScreenVideoThumb",3,void 0),ae=m(e,"isOneVideoPlaylist",3,!1),Re=m(e,"shadowRootContainer",3,void 0),qe=m(e,"outerContainerRef",3,void 0),Le=m(e,"playerStarted",3,!1),je=m(e,"fullScreenTarget",3,void 0),Oe=m(e,"showMiniTimer",3,!1),Je=m(e,"showEndScreen",3,!0),At=m(e,"keyboardControls",15),zt=e.store.getLogger().createComponentLog("Root component"),et=e.store.interfaceLanguage$,$i=e.store.state.playbackState$,vi=e.store.ads.playbackState,tt=e.store.state.positionWithScrubbing$,ii=e.store.state.duration$,Qt=e.store.playerPhase,gi=e.store.ui.isFullscreen,Io=e.store.ui.isFullscreenOpenedByKeyboard,vo=e.store.ui.controlsVisible,Ot=e.store.ui.settingsMenu.visible$,ri=e.store.ui.settingsMenu.openedByBtnKeyboard$,on=e.store.ui.scrubbingInProgress,It=e.store.ui.volumeChangingInProgress,ct=e.store.ui.contextMenu.visible$,hi=e.store.ui.debugPanelVisible,ko=e.store.state.isLoaderVisible,Ui=e.store.state.isEnded$,oi=e.store.state.chromecastConnected$,Wo=e.store.state.chromecastDeviceName$,Dn=e.store.ads.postrollPassed,D=e.store.state.isLive$,Ue=e.store.state.isPlaying$,ut=e.store.state.crashed$,Ht=e.store.webApi.annotationsApi,dt=e.store.webApi.pictureInPictureApi,ai=e.store.state.currentSubtitle$,li=e.store.state.currentSubtitleCaptions$,go=e.store.ui.playerSize,di=e.store.ui.is3DVideo,$t=e.store.ui.icon3DVideoVisible,Mi=e.store.state.isInteractive,Po=e.store.state.isInteractiveTime$,Hn=e.store.state.isInteractiveExpectation$,Li=e.store.state.hasInteractiveBranches,Ji=e.store.ui.touched,Ao=e.store.ui.modals.hotKeyMap.data,bn=e.store.ui.modals.hotKeyMap.show,$n=e.store.ui.overlayContainer$,Ei=e.store.ui.controls.interactiveTimeIndicator,zi=e.store.state.showInteractiveTimeIndicator,Ko=e.store.ui.contextMenu.position$,qo=e.store.actions.internal.setQuality,nn=e.store.actions.internal.closeSettingsMenu,rn=e.store.ui.autoplayNextEnabled$,Ur=e.store.ui.userActionsDisabled,Fn=e.store.ui.isControlsAvailable,br=e.store.ui.videoTitleInfo,nr=e.store.actions.internal.getVideoElement,{fakeIsPlaying$:$r,notifications$:sn,graphIsOpened$:rr}=mo(),eo=j(void 0),Qo=j(void 0),Un=j(void 0),yn=j(void 0),yr,zn,sr;Ao.set(Wh());let{closeNotification:xr,notificationsToShow$:xn}=sn,Wn=g(()=>!!n().slow_video),wr=()=>xr("slow_video"),Sr=g(()=>(s()==="video"&&l()||s()==="ads"&&d()==="inactive")&&!a()),lo=j(void 0),pt=se(!1),Jt,an=se(!1),Ii=se(),Wi=se(!1),Go=j(!1),jo=j(!1),ho=j(!1),Kn=j(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),ln=g(()=>p()&&!f()&&!(r(Go)||r(jo))&&!(r(ho)&&!v())),Mo=!0,zr=g(()=>e.uiConfig.features.thumbTimer&&Oe()&&s()==="video"&&!u()&&!a()&&!Mi&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),Wr=g(()=>s()==="video"&&!w()&&x()),Cr=j(!1),Kr=g(()=>(Je()||e.showAutoplayNext&&S())&&!!he()&&!!we()&&(e.showAds&&T()||!e.showAds)&&E()&&!a()&&!r(Cr)),qn=g(()=>V()&&!(u()||r(Kr))&&!p()&&k()),ar=j(!1),lr=g(()=>I()!==null),{toggle:_o}=$r,jt=!1,co=null;dt==null||dt.setContext(Sl());let Tr=()=>{e.autoplay&&!Mi&&e.uiConfig.controls.showOnStartupAtAutoplay&&Vi(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Tr});let as=()=>{window.clearTimeout(yr),an.set(!1)},Er=()=>{window.clearTimeout(zn),Ii.set(null)},Vi=_e=>{as(),an.set(!0),yr=window.setTimeout(()=>an.set(!1),_e);let Tt=_e-100;Jt=window.setTimeout(()=>{R()&&pt.set(!1)},Tt>0?Tt:_e)},vt=(_e,Tt)=>{Er(),Ii.set(Tt),zn=window.setTimeout(()=>Ii.set(null),_e)},Ft=di.subscribe(_e=>{$t.set(_e),_e&&(window.clearTimeout(sr),sr=window.setTimeout(()=>$t.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Ki=async()=>{var Tt,Gt,ci,Gi;let _e=Vs();if(_e){let oo=Zl(),Ze=to();_e=oo===Ze||oo===Re()}if(_e){Vi(e.uiConfig.controls.hideTimeoutFullscreen);try{await(dt==null?void 0:dt.exit())}catch(oo){zt({message:String(oo)})}}gi.set(_e),e.store.getAdmanWrapper().setFullscreen(_e),x()?(Gt=(Tt=e.store.callbacks)==null?void 0:Tt.onFullscreenEnter)==null||Gt.call(Tt):(Gi=(ci=e.store.callbacks)==null?void 0:ci.onFullscreenExit)==null||Gi.call(ci)},Ri=_e=>{let{width:Tt,height:Gt}=_e.target;go.set({width:Tt,height:Gt})},bo=()=>{let{width:_e,height:Tt}=r(eo).getBoundingClientRect();go.set({width:_e,height:Tt})};Pt(()=>{var Tt;return Zc(Ki),e.uiConfig.features.annotationsInside&&(Ht==null||Ht.init(r(eo))),ua(dt)&&(dt==null||dt.assignPlayerContainer(r(eo)),dt==null||dt.setExternalEventHandlers({resize:Ri,leavepictureinpicture:bo})),e.interactiveContainer&&((Tt=ft().parentElement)==null||Tt.insertBefore(e.interactiveContainer,ft().nextSibling)),()=>{window.clearTimeout(yr),window.clearTimeout(Jt),window.clearTimeout(zn),window.clearTimeout(sr),Ft(),dt==null||dt.dispose().catch(Gt=>{zt({message:String(Gt)})}),Xc(Ki)}});let to=()=>{let _e=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!qe()?r(eo):qe(),Tt=_e.getRootNode(),Gt=Tt instanceof ShadowRoot?Tt.host:Tt,ci=je()instanceof HTMLElement&&je().contains(Gt);return e.uiConfig.allowChangingFullscreenTarget&&je()&&ci?je():_e},Lo=()=>{ct.set(!1)},wi=()=>{nn(),Lo()},wn=async()=>{Lo(),Vs()?(await Yc(document),zt({message:"exit fullscreen"})):(zt({message:"request fullscreen"}),await jc(to()))},dr=_e=>{w()||(_e.preventDefault(),ct.set(!0),Ko.set({left:_e.clientX,top:_e.clientY}))};function qr(){Wi.set(!0),Mi||Vi(e.uiConfig.controls.hideTimeoutCursor)}function Qr(){Mi||(pt.set(!0),Vi(e.uiConfig.controls.hideTimeoutCursor))}function Gr(){Wi.set(!1),O(jo,!1),O(Go,!1),jt=!1,e.store.actions.internal.releaseCamera(),Vi(e.uiConfig.controls.hideTimeout)}function uo(_e){return _e?_e.offsetTop+uo(_e.offsetParent):0}function Sn(_e){return _e?_e.offsetLeft+Sn(_e.offsetParent):0}function Ir(_e){if(Y()&&zi){let Tt=_e.currentTarget,Gt=uo(Tt),ci=Sn(Tt),Gi=_e.pageX-ci,oo=_e.pageY-Gt,{left:Ze,bottom:Wt,right:Ni}=Y(),Ro=Ni-Ze;return Gi>=Ze-Ro&&oo<=Wt+Ro}}function kr(_e){if(r(eo)){let Tt=uo(_e.currentTarget),Gt=H().height,ci=_e.pageY-Tt;if(Ir(_e)){O(jo,!1);return}ci<40?O(jo,!0):ci>Gt-40?O(Go,!0):(O(jo,!1),f()||O(Go,!1))}}function ot(_e){kr(_e),r(ln)||Vi(e.uiConfig.controls.hideTimeoutCursor),F()&&jt&&co&&e.store.actions.internal.moveCameraFocusPX(co.clientX-_e.clientX,co.clientY-_e.clientY,_e.timeStamp-co.timeStamp),co=_e}let St=_e=>{_e.preventDefault(),_e.button===0&&(jt=!0,e.store.actions.internal.holdCamera()),Vi(e.uiConfig.controls.hideTimeoutCursor)},mi=_e=>{_e.preventDefault(),_e.button===0&&(co=_e,jt=!1,e.store.actions.internal.releaseCamera()),Vi(e.uiConfig.controls.hideTimeoutCursor)},qi=_e=>{_e.preventDefault(),Mo&&(zt({message:"double click on video"}),wn(),Vi(e.uiConfig.controls.hideTimeoutCursor))},$o=_e=>{var Tt;if(_e.preventDefault(),W()||f()){wi();return}if(!(E()&&!Li)){if(r(lr))return _o();if((Tt=At())==null||Tt.focus(),!Le()){e.firstStart(),Vi(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||J()!==Y1.PLAYING)&&e.store.actions.internal.togglePlay(),Vi(e.uiConfig.controls.hideTimeoutCursor)}},po=_e=>{wi(),Ji.set(!0),Vi(e.uiConfig.controls.hideTimeout),_e&&vt(e.uiConfig.controls.hideHotKeyHelpers,_e)},io=()=>{var _e,Tt;wi(),(_e=e.store.callbacks)!=null&&_e.onOpenHotKeyMap?(Tt=e.store.callbacks)==null||Tt.onOpenHotKeyMap(G()):bn.update(Gt=>!Gt)},Vo=()=>{Ji.set(!0)},Cn=e.store.ui.contextMenu.openedByBtnKeyboard$,dn=e.store.ui.contextMenu.btnRef$,Qi=j(void 0),yo=e.store.ui.contextMenu.openedByHotKey$,cr=e.store.ui.contextMenu.lastActiveElem$;Ke(()=>{$n.set(r(lo))}),Ke(()=>{O(ho,r(Kn)&&J()!==Y1.PLAYING,!0),r(Kn)||yt(()=>O(Kn,!0))}),Ke(()=>{vo.set((r(ho)||E()||f()||ce()||ie()||ue()||$e())&&!r(ln)&&(s()==="video"||s()==="ads")&&!a()&&k())}),Ke(()=>{!ce()&&r(ar)&&!p()&&Vi(e.uiConfig.controls.hideTimeoutCursor),yt(()=>O(ar,ce(),!0))}),Ke(()=>{r(yn),f(),fe(),yt(()=>nd(r(yn),f(),fe()))}),Ke(()=>{r(Qi),W(),ke(),ne(),yt(()=>{let _e=ke()||ne();nd(r(Qi),W(),_e)})}),Ke(()=>{let _e=Ve();_e&&(W(),yt(()=>sl(_e,W(),Cn)))}),Ke(()=>{let _e=re();_e&&(W(),yt(()=>Zh(_e,W(),yo)))}),Ke(()=>{var _e;!N()&&x()&&(yt(()=>Io.set(!1)),(_e=At())==null||_e.focus())}),Ke(()=>{w()&&wi()});let Tn=K("video360"),En=j(void 0),ur=_e=>{br.set(On(nr(),{title:r(En)},"title",_e))},In=(_e,Tt)=>{var oo,Ze;let Gt=(Ze=(oo=e.store.callbacks)==null?void 0:oo.uiInfo)==null?void 0:Ze.onUpcomingLiveViewStateChanged;if(!Gt)return;let ci=!!Tt,Gi={...On(r(eo),{upcomingLiveScreen:Tt},"upcomingLiveScreen",ci),..._e};Gt(Gi)};var Pr=zx();xt("blur",Xs,wi);var xo=ge(Pr);xo.__mousemove=ot;var kn=_(xo);let jr=g(()=>s()==="ads"),Ye=g(()=>r(lr)?_o:void 0);it(hf(kn,{toggleFullscreen:wn,hideContextMenu:wi,showHotKeyHelpers:po,showKeyMap:io,get isAds(){return r(jr)},get fakePlayButtonHandler(){return r(Ye)},get nextButtonActive(){return oe()},get prevButtonActive(){return Dt()},children:(_e,Tt)=>{var Gt=Fx(),ci=ge(Gt);Pa(ci,{get hideCursor(){return r(qn)},onClick:$o,onContextMenu:dr,onMouseDown:St,onMouseUp:mi,onDblClick:qi,get videoContainer(){return ft()},set videoContainer(Ze){ft(Ze)}});var Gi=P(ci,2);ra(Gi,()=>"slot",!1,(Ze,Wt)=>{Pe(Ze,()=>({name:ka}))});var oo=P(Gi,2);na(oo,Be,Ze=>{var Wt=Hx(),Ni=ge(Wt);let Ro=g(()=>s()!=="thumb"||a()||Mi&&e.autoplay);Ta(Ni,{get hidden(){return r(Ro)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var cn=P(Ni,2);jm(cn,{});var Qn=P(cn,2);{var pr=Qe=>{let si=g(()=>{var Oo;return(Oo=e.live)==null?void 0:Oo.startTime});Vd(Qe,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(si)},onUpcomingLiveViewStateChanged:In})};L(Qn,Qe=>{s()==="LiveWaitingStart"&&Qe(pr)})}var Ar=P(Qn,2);{var ji=Qe=>{Ea(Qe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};L(Ar,Qe=>{s()==="LiveWaitingRecover"&&Qe(ji)})}var ui=P(Ar,2);{var un=Qe=>{Ea(Qe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};L(ui,Qe=>{s()==="LiveWaitingRecord"&&Qe(un)})}var fr=P(ui,2);{var No=Qe=>{var si=Nx();let Oo;var ws=_(si);Jl(ws,{get adsSlotId(){return mt()},get adsParams(){return wt()},get adsPreviewParam(){return Ge()},get adsAutoplayParam(){return Bt()},get duration(){return Xt()}}),h(si),B(fn=>Oo=ee(si,1,"ads-container svelte-jtgjmv",null,Oo,fn),[()=>({hidden:s()!=="ads"})]),$(Qe,si)};L(fr,Qe=>{e.showAds&&Le()&&Qe(No)})}var fo=P(fr,2);{var Aa=Qe=>{let si=g(()=>!Je()&&e.showAutoplayNext&&S());mf(Qe,{get title(){return he()},get thumb(){return we()},get isHide(){return r(si)},clickCloseIcon:()=>O(Cr,!0)})};L(fo,Qe=>{r(Kr)&&he()&&we()&&Qe(Aa)})}var _t=P(fo,2);{var bt=Qe=>{let si=g(()=>!u());Cm(Qe,{get title(){return e.title},get isHidden(){return r(si)},onVisibilityChanged:ur,get ref(){return r(En)},set ref(Oo){O(En,Oo,!0)}})};L(_t,Qe=>{r(Wr)&&Qe(bt)})}var no=P(_t,2);{var pn=Qe=>{let si=g(()=>s()==="video"&&u());Md(Qe,{get isShifted(){return r(si)}})};L(no,Qe=>{F()&&Qe(pn)})}var Oi=P(no,2);{var pi=Qe=>{var si=Ox(),Oo=_(si);Yl(Oo,{get"aria-label"(){return Tn}}),h(si),$(Qe,si)};L(Oi,Qe=>{le()&&Qe(pi)})}var fi=P(Oi,2);{var zs=Qe=>{Ld(Qe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ve()}})};L(fi,Qe=>{ue()&&Qe(zs)})}var Ma=P(fi,2);{var Nu=Qe=>{Sa(Qe,{get shifted(){return u()},get captions(){return me()},get position(){return De()},get playerSize(){return H()}})};L(Ma,Qe=>{te().value!=="off"&&Qe(Nu)})}var Yd=P(Ma,2);{var Ou=Qe=>{var si=Bx();si.__contextmenu=dr,si.__click=[Rx,W,ct,f,Ot,wi];var Oo=_(si);Ca(Oo,{}),h(si),$(Qe,si)};L(Yd,Qe=>{a()&&Qe(Ou)})}var Zd=P(Yd,2);{var Bu=Qe=>{let si=g(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),Oo=g(()=>s()==="ads"),ws=g(()=>e.canRewindLive&&pe()!==0);Ad(Qe,{get bottomHidden(){return r(si)},get bottomNoSmooth(){return R()},get showControls(){return u()},get isAds(){return r(Oo)},get canRewindLive(){return r(ws)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return qt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Ut()},get nextButtonActive(){return oe()},get prevButtonActive(){return Dt()},get isOneVideoPlaylist(){return ae()},customFullscreenSupported:Mo,toggleFullscreen:wn,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(Qo)},set playerControlsWrapperRef(fn){O(Qo,fn,!0)},get playerControlsRef(){return r(Un)},set playerControlsRef(fn){O(Un,fn,!0)}})};L(Zd,Qe=>{Le()&&Qe(Bu)})}var Xd=P(Zd,2);{var Du=Qe=>{var si=Dx(),Oo=_(si);let ws=g(()=>{var fn;return(fn=r(Un))==null?void 0:fn.clientHeight});Od(Oo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(ws)},returnFocus:()=>{var fn;return(fn=At())==null?void 0:fn.focus()},get ref(){return r(yn)},set ref(fn){O(yn,fn,!0)}}),h(si),$(Qe,si)};L(Xd,Qe=>{!ue()&&s()!=="ads"&&Qe(Du)})}var Jd=P(Xd,2);let Hu=g(()=>!r(zr));id(Jd,{get isLive(){return st()},get isHidden(){return r(Hu)},get isPlaying(){return Z()},get position(){return De()},get duration(){return pe()}});var ec=P(Jd,2);ym(ec,{get data(){return Ii}});var tc=P(ec,2);ff(tc,{get supportLink(){return e.supportLink},returnFocus:()=>{var Qe;return(Qe=At())==null?void 0:Qe.focus()},get visible(){return W()},get playerContainerRef(){return r(eo)},get controlsContainerRef(){return r(Qo)},get position(){return Ae()},get menuElementRef(){return r(Qi)},set menuElementRef(Qe){O(Qi,Qe,!0)}});var ic=P(tc,2);{var Fu=Qe=>{Bd(Qe,{onClose:wr,onSelectAutoQuality:()=>{qo("auto"),wr()}})};L(ic,Qe=>{r(Wn)&&Qe(Fu)})}var Ws=P(ic,2);{var Uu=Qe=>{ga(Qe,{})};L(Ws,Qe=>{r(Sr)&&Qe(Uu)})}var bl=P(Ws,2);{var oc=Qe=>{$f(Qe,{})};L(bl,Qe=>{Ie()&&Qe(oc)})}var zu=P(bl,2);{var nc=Qe=>{ad(Qe,{})};L(zu,Qe=>{ze()&&Qe(nc)})}$(Ze,Wt)}),$(_e,Gt)},$$slots:{default:!0}}),_e=>At(_e),()=>At());var ei=P(kn,2);it(ei,_e=>O(lo,_e),()=>r(lo)),h(xo),it(xo,_e=>O(eo,_e),()=>r(eo));var _i=P(xo,2);{var wo=_e=>{var Tt=Ux();$(_e,Tt)};L(_i,_e=>{at()&&_e(wo)})}xt("mouseenter",xo,qr),xt("mouseleave",xo,Gr),xt("click",xo,Vo,!0),xt("focusin",xo,Qr,!0),$(t,Pr),z(),o()}lt(["mousemove","contextmenu","click"]);import{clientChecker as Dd,PlaybackState as e5}from"@vkontakte/videoplayer-core/es2018";import{noop as t5}from"@vkontakte/videoplayer-shared/es2018";var Kx=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),qx=M("<div><!></div>"),Qx={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"},Kh=W_;var g
|
|
|
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 Au(t,e){U(e,!0),K(t,i5);let i=v(e,"seekStep",3,0),o=Z(!1),n=0,s=0,l=Z(ni(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)};Xo(()=>{window.clearTimeout(n)});var a=t5();a.__click=d;var p=_(a);{var f=m=>{var u=e5(),y=ge(u),w=P(y,2),x=_(w),S=_(x),T=P(S,2),E=P(T,2);h(x);var R=P(x,2),I=_(R,!0);h(R),h(w),B(M=>{var k,G,H,F;ie(y,1,`semicircle ${(k=e.side)!=null?k:""}`,"svelte-nhq2ld"),ie(S,1,`triangle ${(G=e.side)!=null?G:""}`,"svelte-nhq2ld"),ie(T,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),ie(E,1,`triangle ${(F=e.side)!=null?F:""}`,"svelte-nhq2ld"),_e(I,M)},[()=>W("doubletap_seek_step",{seconds:r(l).toFixed(0)})]),$(m,u)};V(p,m=>{r(o)&&m(f)})}h(a),B(()=>{var m;return ie(a,1,`double-click-area ${(m=e.side)!=null?m:""}`,"svelte-nhq2ld")}),$(t,a),z()}st(["click"]);var o5=(t,e,i)=>{e(!1),i()},n5=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),r5={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 av(t,e){U(e,!0),K(t,r5);let[i,o]=He(),n=()=>C(d,"$autoplayNextEnabled$",i),s=()=>C(a,"$timerNextVideoRunning$",i),l=Te(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,p=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,m=l.actions.internal.nextVideoAnnouncementClick,u=l.actions.internal.nextVideoAnnouncementAuto,y=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{p(!1),u()},x=()=>{e.clickCloseIcon(),y()};Lt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var S=qe(),T=ge(S);{var E=R=>{var I=n5(),M=P(ge(I),2),k=_(M),G=_(k),H=_(G,!0);h(G);var F=P(G,2);ma(F,{onClick:x}),h(k);var q=P(k,2);q.__click=[o5,p,m];var Y=_(q),j=_(Y),ue=_(j);let re;var fe=P(ue,2);{var be=Le=>{pd(Le,{get isRunning(){return s()},onTimerEnded:w})};V(fe,Le=>{n()&&Le(be)})}h(j),h(Y);var me=P(Y,2),Pe=_(me),se=_(Pe,!0);h(Pe),h(me),h(q),h(M),B((Le,ae)=>{_e(H,Le),ot(j,`background-image: url('${e.thumb}')`),re=ie(ue,1,"thumb-overlay svelte-1qdxi6t",null,re,ae),_e(se,e.title)},[()=>n()?W("end_screen_next_video"):W("end_screen_recommended_video"),()=>({withOpacity:n()})]),$(R,I)};V(T,R=>{e.isHide||R(E)})}$(t,S),z(),o()}st(["click"]);import{clientChecker as s5}from"@vkontakte/videoplayer-core/es2018";var a0=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Lt(()=>{s5.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))}),Xo(()=>{i==null||i(),clearTimeout(o)})};import{VideoFormat as a5}from"@vkontakte/videoplayer-core/es2018";var Mu=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};import{clientChecker as l5}from"@vkontakte/videoplayer-core/es2018";var l0=({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,p=()=>e().querySelector("video"),f=()=>l5.device.isIOS&&ye(l)===a5.DASH_LIVE_CMAF,m=()=>{a==null||a(),a=null},u=y=>{if(m(),!f()||!y)return;let w=p();if(!w)return;let x=new Mu(w),S=ye(d),T=ye(s),E=ye(n);for(let M of S)T.some(G=>G.value===M.id)&&x.attach(M,E.value===M.id);let R=d.subscribe(M=>{for(let k of M)x.updateSrc(k)}),I=()=>{let M=x.getCurrentShowingId();o(ye(s).find(k=>k.value===M))};w.textTracks.addEventListener("change",I),a=()=>{R(),x.detachAll(),w.textTracks.removeEventListener("change",I)}};Lt(()=>i.subscribe(u)),Xo(m)};var u5=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},p5=A("<!> <!>",1),f5=A("<div><!></div>"),m5=A('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),v5=A("<div><!></div>"),g5=A('<div class="settings-mobile svelte-7yl31d"><!></div>'),h5=A("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),_5=A('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),b5={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 lv(t,e){var kr,Pr;U(e,!0),K(t,b5);let[i,o]=He(),n=()=>C(Ne,"$playerPhase",i),s=()=>C(lt,"$isLoaderVisible",i),l=()=>C(Fe,"$adPlaybackState",i),d=()=>C(Co,"$crashed",i),a=()=>C(ar,"$notificationsToShow$",i),p=()=>C(Ve,"$playbackState$",i),f=()=>C(Se,"$graphIsOpened$",i),m=()=>C(Ct,"$interactiveHideMobileControls",i),u=()=>C(si,"$isEnded$",i),y=()=>C(Uo,"$isInteractiveExpectation$",i),w=()=>C(Ft,"$controlsVisible",i),x=()=>C(Xi,"$touched",i),S=()=>C(Bn,"$autoplayNextEnabled$",i),T=()=>C(ri,"$postrollPassed",i),E=()=>C(Hn,"$bottomNoSmooth",i),R=()=>C(Fo,"$videoSize",i),I=()=>C(ct,"$playerSize",i),M=()=>C(Je,"$isFullscreen",i),k=()=>C(Re,"$position$",i),G=()=>C(We,"$duration$",i),H=()=>C(Vi,"$loadedMetadata",i),F=()=>C(_i,"$settingsMenuVisible",i),q=()=>C(dt,"$scrubbingInProgress",i),Y=()=>C(Mi,"$volumeChangingInProgress",i),j=()=>C(Li,"$chromecastConnected$",i),ue=()=>C(Wt,"$isControlsAvailable",i),re=()=>C(ci,"$isInteractiveTime$",i),fe=()=>C(ut,"$isActiveLive",i),be=()=>C(gi,"$settingsMenuOpenedByKeyboard",i),me=()=>C(ne,"$language$",i),Pe=()=>C(xt,"$disabledControls$",i),se=()=>C(Kt,"$is3DVideo",i),Le=()=>C(It,"$icon3DVideoVisible",i),ae=()=>C(Pt,"$chromecastDeviceName$",i),N=()=>C(On,"$currentSubtitle$",i),Be=()=>C(D,"$currentSubtitleCaptions$",i),ce=()=>C(Ke,"$realDuration$",i),he=()=>C(tn,"$isLive$",i),oe=()=>C(At,"$isPlaying$",i),ve=()=>C(Gt,"$debugPanelVisible",i),De=v(e,"videoContainer",15),pe=v(e,"adsSlotId",3,void 0),rt=v(e,"adsParams",3,void 0),X=v(e,"adsPreviewParam",3,void 0),Ae=v(e,"adsAutoplayParam",3,void 0),ke=v(e,"duration",3,void 0),ze=v(e,"logoTargetUrl",3,""),nt=v(e,"showNextPrevButtons",3,!1),ht=v(e,"nextButtonActive",3,!1),at=v(e,"prevButtonActive",3,!1),yt=v(e,"endScreenVideoTitle",3,void 0),Xe=v(e,"endScreenVideoThumb",3,void 0),Ht=v(e,"isOneVideoPlaylist",3,!1),Xt=v(e,"showMiniTimer",3,!1),Bt=v(e,"fullScreenTarget",3,void 0),Qt=v(e,"playerStarted",3,!1),Ee=v(e,"showEndScreen",3,!0),{notifications$:zt,graphIsOpened$:Se}=uo(),te=e.store.getLogger().createComponentLog("Root component"),ne=e.store.interfaceLanguage$,Ve=e.store.state.playbackState$,Fe=e.store.ads.playbackState,Re=e.store.state.positionWithScrubbing$,We=e.store.state.duration$,Ne=e.store.playerPhase,Je=e.store.ui.isFullscreen,Ft=e.store.ui.controlsVisible,Wt=e.store.ui.isControlsAvailable,Ct=e.store.ui.interactiveHideMobileControls,_i=e.store.ui.settingsMenu.visible$,gi=e.store.ui.settingsMenu.openedByBtnKeyboard$,dt=e.store.ui.scrubbingInProgress,Mi=e.store.ui.volumeChangingInProgress,Gt=e.store.ui.debugPanelVisible,lt=e.store.state.isLoaderVisible,si=e.store.state.isEnded$,Li=e.store.state.chromecastConnected$,Pt=e.store.state.chromecastDeviceName$,ri=e.store.ads.postrollPassed,tn=e.store.state.isLive$,At=e.store.state.isPlaying$,ut=e.store.state.isActiveLive$,di=e.store.state.isRewindableLive$,Co=e.store.state.crashed$,Wi=e.store.webApi.annotationsApi,ti=e.store.webApi.pictureInPictureApi,Fo=e.store.state.videoSize$,On=e.store.state.currentSubtitle$,D=e.store.state.currentSubtitleCaptions$,Ke=e.store.state.duration$,ct=e.store.ui.playerSize,Kt=e.store.ui.is3DVideo,It=e.store.ui.icon3DVideoVisible,kt=e.store.state.isInteractive,ci=e.store.state.isInteractiveTime$,Uo=e.store.state.isInteractiveExpectation$,ai=e.store.state.hasInteractiveBranches,xt=e.store.ui.controls.disabledControls$,Xi=e.store.ui.touched,Ki=e.store.ui.overlayContainer$,Bn=e.store.ui.autoplayNextEnabled$,Vi=e.store.state.loadedMetadata$,po=e.store.actions.internal.closeSettingsMenu,fo=(kr=e.store.callbacks)==null?void 0:kr.onDisabledPlayPrevChapterClick,_n=(Pr=e.store.callbacks)==null?void 0:Pr.onDisabledSeekToInteractiveClick,on=e.store.actions.internal.setQuality,Ei=Z(void 0),qi=Z(void 0),nn=Z(void 0),To=Z(void 0),rn,sn,xr=g(()=>(n()==="video"&&s()||n()==="ads"&&l()==="inactive")&&!d()),Dn=Z(void 0),{closeNotification:wr,notificationsToShow$:ar}=zt,zr=g(()=>!!a().slow_video),an=()=>wr("slow_video"),Hn=le(!1),lr,bn=Z(!1),ro=g(()=>p()!==d5.PLAYING),Fn=Z(!1),Sr=g(()=>f()||m()||!r(bn)&&(u()&&!!ai||r(ro)&&y())),$n=Z(!0),dr=g(()=>e.uiConfig.features.thumbTimer&&Xt()&&n()==="video"&&!w()&&!d()&&!kt&&(e.uiConfig.hideThumbTimerAfterTouch&&!x()||!e.uiConfig.hideThumbTimerAfterTouch)),Un=Z(!1),zo=g(()=>(Ee()||e.showAutoplayNext&&S())&&!!yt()&&!!Xe()&&(e.showAds&&T()||!e.showAds)&&u()&&!d()&&!r(Un)),zn=Z(!1);ti==null||ti.setContext(Il());let Wr=ft=>{ft&&!kt&&mo(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:Wr});let Cr=()=>{clearTimeout(rn),O(bn,!1),m()&&Ct.set(!1)},mo=ft=>{Cr(),O(bn,!0),rn=setTimeout(()=>O(bn,!1),ft);let _t=ft-100;lr=setTimeout(()=>{E()&&Hn.set(!1)},_t>0?_t:ft)},pt=Kt.subscribe(ft=>{It.set(ft),ft&&(clearTimeout(sn),sn=setTimeout(()=>It.set(!1),e.uiConfig.controls.hide360IconTimeout))}),jt=async(ft=Rs())=>{var _t,Ji,Ni,ao,lo,qo;if(ft&&!zd.device.isIOS){let eo=td(),Wn=so(),Eo=zd.browser.isSamsungBrowser&&eo===e.shadowRootContainer;ft=eo===Wn||Eo}if(ft){mo(e.uiConfig.controls.hideTimeoutFullscreen);try{await(ti==null?void 0:ti.exit())}catch(eo){te({message:String(eo)})}try{let eo=(_t=R())!=null&&_t.width&&((Ji=R())!=null&&Ji.height)?R():I();await Xh(eo)}catch(eo){te({message:String(eo)})}}Je.set(ft),e.store.getAdmanWrapper().setFullscreen(ft),M()?(ao=(Ni=e.store.callbacks)==null?void 0:Ni.onFullscreenEnter)==null||ao.call(Ni):(qo=(lo=e.store.callbacks)==null?void 0:lo.onFullscreenExit)==null||qo.call(lo)},yn=ft=>{let _t=ft,{width:Ji,height:Ni}=_t.target;ct.set({width:Ji,height:Ni})},Qi=()=>{let{width:ft,height:_t}=r(Ei).getBoundingClientRect();ct.set({width:ft,height:_t})};Lt(()=>{var ft;return iu(jt),e.uiConfig.features.annotationsInside&&(Wi==null||Wi.init(r(Ei))),ua(ti)&&(ti==null||ti.assignPlayerContainer(r(Ei)),ti==null||ti.setExternalEventHandlers({resize:yn,leavepictureinpicture:Qi})),O($n,!zd.device.isIphoneOrOldIpad),e.interactiveContainer&&((ft=De().parentElement)==null||ft.insertBefore(e.interactiveContainer,De().nextSibling)),()=>{clearTimeout(rn),clearTimeout(lr),clearTimeout(sn),pt(),ti==null||ti.dispose().catch(_t=>{te({message:String(_t)})}),ou(jt)}});let Ri=Z(!0),Wo=Z(!0),xn=ft=>{let _t=k()+(ft==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;_t<0?(O(Ri,!1),_t=0):_t>=G()&&(O(Wo,!1),_t=G()),O(Fn,!0),e.seekTime(_t)},so=()=>zd.device.isIOS?r(Ei):!e.uiConfig.allowChangingFullscreenTarget||!Bt()?e.outerContainerRef:Bt().contains(e.outerContainerRef)?Bt():e.outerContainerRef,ln=async()=>{try{if(Rs())await tu(document),te({message:"exit fullscreen"});else{if(te({message:"request fullscreen"}),zd.device.isIOS&&!H())return;await eu(so())}}catch(ft){te({message:String(ft)})}},Ko=()=>{po()},vo=ft=>{if(ft.preventDefault(),F()){Ko();return}if(!Qt()){e.firstStart(),mo(e.uiConfig.controls.hideTimeoutCursor);return}O(Fn,!1),w()?Cr():mo(e.uiConfig.controls.hideTimeoutMobile)},Tr=()=>{Xi.set(!0)},Er=()=>{kt||(Hn.set(!0),mo(e.uiConfig.controls.hideTimeoutCursor))},Kr=ft=>{fo&&(fo(ft),mo(e.uiConfig.controls.hideTimeoutMobile))},as=ft=>{_n&&(_n(ft),mo(e.uiConfig.controls.hideTimeoutMobile))};Qe(()=>{Ki.set(r(Dn))}),Qe(()=>{Ft.set((r(ro)||F()||q()||Y()||j()||!r(zo)&&(u()||r(bn)&&!r(Fn)))&&!r(Sr)&&n()==="video"&&!d()&&ue())}),Qe(()=>{!q()&&r(zn)&&!re()&&mo(e.uiConfig.controls.hideTimeoutMobile),O(zn,q(),!0)}),Qe(()=>{O(Ri,k()>0),O(Wo,!fe()&&k()<G(),!0)}),Qe(()=>{ld(r(To),F(),be(),!0)});let wn=W("aria_label_video_player"),cr=W("video360");a0({fullScreenChangeHandler:jt,getFullscreenTarget:so}),l0({store:e.store,getFullscreenTarget:so});let Ir=(ft,_t)=>{var lo,qo;let Ji=(qo=(lo=e.store.callbacks)==null?void 0:lo.uiInfo)==null?void 0:qo.onUpcomingLiveViewStateChanged;if(!Ji)return;let Ni=!!_t,ao={...Rn(r(Ei),{upcomingLiveScreen:_t},"upcomingLiveScreen",Ni),...ft};Ji(ao)};var go=_5();wt("blur",Xs,Ko);var ii=_(go);Pa(ii,{onClick:vo,get videoContainer(){return De()},set videoContainer(ft){De(ft)}});var dn=P(ii,2);ra(dn,()=>"slot",!1,(ft,_t)=>{Ie(ft,()=>({name:ka}))});var cn=P(dn,2);na(cn,me,ft=>{var _t=h5(),Ji=ge(_t);let Ni=g(()=>n()!=="thumb"||d()||kt&&e.autoplay);Ta(Ji,{get hidden(){return r(Ni)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var ao=P(Ji,2);{var lo=je=>{var Jt=p5(),mi=ge(Jt);{var bi=Lo=>{let Tn=g(()=>e.uiConfig.controls.seekStepMobile/1e3);Au(Lo,{side:"left",get seekStep(){return r(Tn)},handleSingleFirstClick:vo,handleSecondClick:()=>xn("backward")})};V(mi,Lo=>{r(Ri)&&Lo(bi)})}var Mo=P(mi,2);{var Gr=Lo=>{let Tn=g(()=>e.uiConfig.controls.seekStepMobile/1e3);Au(Lo,{side:"right",get seekStep(){return r(Tn)},handleSingleFirstClick:vo,handleSecondClick:()=>xn("forward")})};V(Mo,Lo=>{r(Wo)&&Lo(Gr)})}$(je,Jt)};V(ao,je=>{e.canRewindLive&&di&&!Pe().has("TIMELINE")&&je(lo)})}var qo=P(ao,2);{var eo=je=>{let Jt=g(()=>{var mi;return(mi=e.live)==null?void 0:mi.startTime});Bd(je,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(Jt)},onUpcomingLiveViewStateChanged:Ir})};V(qo,je=>{n()==="LiveWaitingStart"&&je(eo)})}var Wn=P(qo,2);{var Eo=je=>{Ea(je,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(Wn,je=>{n()==="LiveWaitingRecover"&&je(Eo)})}var ur=P(Wn,2);{var Ar=je=>{Ea(je,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(ur,je=>{n()==="LiveWaitingRecord"&&je(Ar)})}var qr=P(ur,2);{var Io=je=>{var Jt=f5();let mi;var bi=_(Jt);od(bi,{get adsSlotId(){return pe()},get adsParams(){return rt()},get adsPreviewParam(){return X()},get adsAutoplayParam(){return Ae()},get duration(){return ke()}}),h(Jt),B(Mo=>mi=ie(Jt,1,"ads-container svelte-7yl31d",null,mi,Mo),[()=>({hidden:n()!=="ads"})]),$(je,Jt)};V(qr,je=>{e.showAds&&Qt()&&je(Io)})}var Kn=P(qr,2);{var qn=je=>{let Jt=g(()=>!Ee()&&e.showAutoplayNext&&S());av(je,{get title(){return yt()},get thumb(){return Xe()},get isHide(){return r(Jt)},clickCloseIcon:()=>O(Un,!0)})};V(Kn,je=>{r(zo)&&yt()&&Xe()&&je(qn)})}var pr=P(Kn,2);{var tt=je=>{Nd(je,{})};V(pr,je=>{se()&&je(tt)})}var St=P(pr,2);{var fi=je=>{var Jt=m5(),mi=_(Jt);ed(mi,{get"aria-label"(){return cr}}),h(Jt),$(je,Jt)};V(St,je=>{Le()&&je(fi)})}var Oi=P(St,2);{var ho=je=>{Od(je,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ae()}})};V(Oi,je=>{j()&&je(ho)})}var to=P(Oi,2);{var Ii=je=>{Sa(je,{get shifted(){return w()},get captions(){return Be()},get position(){return k()},get playerSize(){return I()},isMobile:!0})};V(to,je=>{N().value!=="off"&&je(Ii)})}var ko=P(to,2);{var Qn=je=>{var Jt=v5();Jt.__click=[u5,F,_i,Ko];var mi=_(Jt);Ca(mi,{}),h(Jt),$(je,Jt)};V(ko,je=>{d()&&je(Qn)})}var un=P(ko,2);{var _o=je=>{let Jt=g(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),mi=g(()=>n()==="ads"),bi=g(()=>e.canRewindLive&&ce()!==0);Rd(je,{get bottomHidden(){return r(Jt)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return r(mi)},get canRewindLive(){return r(bi)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return ze()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return nt()},get nextButtonActive(){return ht()},get prevButtonActive(){return at()},get isOneVideoPlaylist(){return Ht()},get customFullscreenSupported(){return r($n)},get endScreenShown(){return r(zo)},toggleFullscreen:ln,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Kr,onDisabledSeekToInteractiveClick:as,get playerControlsWrapperRef(){return r(qi)},set playerControlsWrapperRef(Mo){O(qi,Mo,!0)},get playerControlsRef(){return r(nn)},set playerControlsRef(Mo){O(nn,Mo,!0)}})};V(un,je=>{Qt()&&je(_o)})}var Po=P(un,2);{var fr=je=>{var Jt=g5(),mi=_(Jt);Fd(mi,{get supportLink(){return e.supportLink},get returnFocus(){return c5},get ref(){return r(To)},set ref(bi){O(To,bi,!0)}}),h(Jt),$(je,Jt)};V(Po,je=>{F()&&je(fr)})}var Cn=P(Po,2);let Gn=g(()=>!r(dr));sd(Cn,{get isLive(){return he()},get isHidden(){return r(Gn)},get isPlaying(){return oe()},get position(){return k()},get duration(){return G()}});var mr=P(Cn,2);{var Ao=je=>{ga(je,{})};V(mr,je=>{r(xr)&&je(Ao)})}var Mr=P(mr,2);{var Qr=je=>{ud(je,{})};V(Mr,je=>{ve()&&je(Qr)})}var jn=P(Mr,2);{var vr=je=>{Ud(je,{onClose:an,onSelectAutoQuality:()=>{on("auto"),an()}})};V(jn,je=>{r(zr)&&je(vr)})}$(ft,_t)});var Sn=P(cn,2);et(Sn,ft=>O(Dn,ft),()=>r(Dn)),h(go),et(go,ft=>O(Ei,ft),()=>r(Ei)),B(()=>Ue(go,"aria-label",wn)),wt("click",go,Tr,!0),wt("focusin",go,Er,!0),$(t,go),z(),o()}st(["click"]);function Lu(t){let e="";return Zi(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Zi(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Zi(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Zi(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Zi(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Zi(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Zi(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Zi(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Zi(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Zi(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Zi(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Zi(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Zi(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),Zi(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),Zi(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),Zi(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),Zi(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),Zi(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),Zi(t.font)&&(e+=`--font:${t.font};`),Zi(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),Zi(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function Zi(t){return typeof t=="string"&&!t.includes(";")}import{debounceFn as $5}from"@vkontakte/videoplayer-shared/es2018";var y5=A('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),x5={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 dv(t,e){U(e,!0),K(t,x5);let[i,o]=He(),n=()=>C(Y,"$playerSize",i),s=()=>C(M,"$isPlaying$",i),l=()=>C(R,"$duration$",i),d=()=>C(H,"$positionWithScrubbing$",i),a=()=>C(T,"$playerPhase",i),p=()=>C(E,"$crashed$",i),f=()=>C(k,"$currentSubtitle$",i),m=()=>C(G,"$currentSubtitleCaptions$",i),u=()=>C(I,"$positionExact$",i),y=()=>C(F,"$isLive$",i),w=()=>C(q,"$isRewindableLive$",i),x=v(e,"outsideDuration",3,0),S=v(e,"videoContainer",15),{playerPhase:T,state:{crashed$:E,duration$:R,positionExact$:I,isPlaying$:M,currentSubtitle$:k,currentSubtitleCaptions$:G,positionWithScrubbing$:H,isLive$:F,isRewindableLive$:q},ui:{playerSize:Y,controls:j},actions:{internal:{getVideoElement:ue}}}=Te(),re=8,fe=Z(!1),be=ni({}),me=()=>{O(fe,!0)},Pe=()=>{O(fe,!1)},se=$5(pl,260);Qe(()=>{n(),se(ue(),j,be,r(fe))});let Le=g(()=>s()?hn(l()-d()):hn(isFinite(l())?l():x()));var ae=y5(),N=_(ae);Pa(N,{hideCursor:!1,get videoContainer(){return S()},set videoContainer(ke){S(ke)}});var Be=P(N,2);ra(Be,()=>"slot",!1,(ke,ze)=>{Ie(ke,()=>({name:ka}))});var ce=P(Be,2);let he=g(()=>a()!=="thumb"||p());Ta(ce,{get hidden(){return r(he)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var oe=P(ce,2);{var ve=ke=>{Sa(ke,{shifted:!1,get captions(){return m()},get position(){return u()},get playerSize(){return n()}})};V(oe,ke=>{f().value!=="off"&&ke(ve)})}var De=P(oe,2),pe=_(De);rd(pe,{get isLive(){return y()},get isPlaying(){return s()},get time(){return r(Le)}}),h(De);var rt=P(De,2);let X;var Ae=_(rt);ba(Ae,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:re,tooltipRightOffset:re,get ref(){return be.timeline},set ref(ke){be.timeline=ke}}),h(rt),h(ae),B(ke=>X=ie(rt,1,"timeline svelte-1qfjf44",null,X,ke),[()=>({visible:r(fe)})]),wt("mouseenter",ae,me),wt("mouseleave",ae,Pe),$(t,ae),z(),o()}var E5=A("<div><!></div>"),I5={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 Tu(t,e){U(e,!0),q(t,Qx);let i=m(e,"seekStep",3,0),o=j(!1),n=0,s=0,l=j(ni(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)};Jo(()=>{window.clearTimeout(n)});var a=qx();a.__click=d;var p=_(a);{var f=v=>{var u=Kx(),y=ge(u),w=P(y,2),x=_(w),S=_(x),T=P(S,2),E=P(T,2);h(x);var V=P(x,2),k=_(V,!0);h(V),h(w),B(I=>{var R,Y,H,F;ee(y,1,`semicircle ${(R=e.side)!=null?R:""}`,"svelte-nhq2ld"),ee(S,1,`triangle ${(Y=e.side)!=null?Y:""}`,"svelte-nhq2ld"),ee(T,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),ee(E,1,`triangle ${(F=e.side)!=null?F:""}`,"svelte-nhq2ld"),be(k,I)},[()=>K("doubletap_seek_step",{seconds:r(l).toFixed(0)})]),$(v,u)};L(p,v=>{r(o)&&v(f)})}h(a),B(()=>{var v;return ee(a,1,`double-click-area ${(v=e.side)!=null?v:""}`,"svelte-nhq2ld")}),$(t,a),z()}lt(["click"]);var Gx=(t,e,i)=>{e(!1),i()},jx=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),Yx={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 Zm(t,e){U(e,!0),q(t,Yx);let[i,o]=He(),n=()=>C(d,"$autoplayNextEnabled$",i),s=()=>C(a,"$timerNextVideoRunning$",i),l=Ee(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,p=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,u=l.actions.internal.nextVideoAnnouncementAuto,y=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{p(!1),u()},x=()=>{e.clickCloseIcon(),y()};Pt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var S=We(),T=ge(S);{var E=V=>{var k=jx(),I=P(ge(k),2),R=_(I),Y=_(R),H=_(Y,!0);h(Y);var F=P(Y,2);ma(F,{onClick:x}),h(R);var W=P(R,2);W.__click=[Gx,p,v];var J=_(W),G=_(J),ce=_(G);let ie;var ue=P(ce,2);{var $e=Ve=>{ld(Ve,{get isRunning(){return s()},onTimerEnded:w})};L(ue,Ve=>{n()&&Ve($e)})}h(G),h(J);var fe=P(J,2),ke=_(fe),ne=_(ke,!0);h(ke),h(fe),h(W),h(I),B((Ve,re)=>{be(H,Ve),rt(G,`background-image: url('${e.thumb}')`),ie=ee(ce,1,"thumb-overlay svelte-1qdxi6t",null,ie,re),be(ne,e.title)},[()=>n()?K("end_screen_next_video"):K("end_screen_recommended_video"),()=>({withOpacity:n()})]),$(V,k)};L(T,V=>{e.isHide||V(E)})}$(t,S),z(),o()}lt(["click"]);import{clientChecker as Zx}from"@vkontakte/videoplayer-core/es2018";var Z1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Pt(()=>{Zx.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))}),Jo(()=>{i==null||i(),clearTimeout(o)})};import{VideoFormat as Xx}from"@vkontakte/videoplayer-core/es2018";var Eu=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 Jx}from"@vkontakte/videoplayer-core/es2018";var X1=({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,p=()=>e().querySelector("video"),f=()=>Jx.device.isIOS&&xe(l)===Xx.DASH_LIVE_CMAF,v=()=>{a==null||a(),a=null},u=y=>{if(v(),!f()||!y)return;let w=p();if(!w)return;let x=new Eu(w),S=xe(d),T=xe(s),E=xe(n);for(let I of S)T.some(Y=>Y.value===I.id)&&x.attach(I,E.value===I.id);let V=d.subscribe(I=>{for(let R of I)x.updateSrc(R)}),k=()=>{let I=x.getCurrentShowingId();o(xe(s).find(R=>R.value===I))};w.textTracks.addEventListener("change",k),a=()=>{V(),x.detachAll(),w.textTracks.removeEventListener("change",k)}};Pt(()=>i.subscribe(u)),Jo(v)};var i5=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},o5=M("<!> <!>",1),n5=M("<div><!></div>"),r5=M('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),s5=M("<div><!></div>"),a5=M('<div class="settings-mobile svelte-7yl31d"><!></div>'),l5=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),d5=M('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),c5={hash:"svelte-7yl31d",code:".player-wrapper.svelte-7yl31d {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-7yl31d .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-7yl31d {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-7yl31d {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-7yl31d {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-7yl31d {position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%;}"};function Xm(t,e){var Er,Vi;U(e,!0),q(t,c5);let[i,o]=He(),n=()=>C(Oe,"$playerPhase",i),s=()=>C(gi,"$isLoaderVisible",i),l=()=>C(qe,"$adPlaybackState",i),d=()=>C(ko,"$crashed",i),a=()=>C(nr,"$notificationsToShow$",i),p=()=>C(Re,"$playbackState$",i),f=()=>C(he,"$graphIsOpened$",i),v=()=>C(et,"$interactiveHideMobileControls",i),u=()=>C(Io,"$isEnded$",i),y=()=>C(go,"$isInteractiveExpectation$",i),w=()=>C(At,"$controlsVisible",i),x=()=>C(Mi,"$touched",i),S=()=>C(Hn,"$autoplayNextEnabled$",i),T=()=>C(ri,"$postrollPassed",i),E=()=>C(rr,"$bottomNoSmooth",i),V=()=>C(Wo,"$videoSize",i),k=()=>C(ut,"$playerSize",i),I=()=>C(Je,"$isFullscreen",i),R=()=>C(Le,"$position$",i),Y=()=>C(je,"$duration$",i),H=()=>C(Li,"$loadedMetadata",i),F=()=>C($i,"$settingsMenuVisible",i),W=()=>C(tt,"$scrubbingInProgress",i),J=()=>C(ii,"$volumeChangingInProgress",i),G=()=>C(vo,"$chromecastConnected$",i),ce=()=>C(zt,"$isControlsAvailable",i),ie=()=>C(li,"$isInteractiveTime$",i),ue=()=>C(ct,"$isActiveLive",i),$e=()=>C(vi,"$settingsMenuOpenedByKeyboard",i),fe=()=>C(ae,"$language$",i),ke=()=>C($t,"$disabledControls$",i),ne=()=>C(Ht,"$is3DVideo",i),Ve=()=>C(dt,"$icon3DVideoVisible",i),re=()=>C(Ot,"$chromecastDeviceName$",i),N=()=>C(Dn,"$currentSubtitle$",i),Be=()=>C(D,"$currentSubtitleCaptions$",i),le=()=>C(Ue,"$realDuration$",i),ve=()=>C(on,"$isLive$",i),te=()=>C(It,"$isPlaying$",i),me=()=>C(Qt,"$debugPanelVisible",i),De=m(e,"videoContainer",15),pe=m(e,"adsSlotId",3,void 0),st=m(e,"adsParams",3,void 0),Z=m(e,"adsPreviewParam",3,void 0),Ae=m(e,"adsAutoplayParam",3,void 0),Ie=m(e,"duration",3,void 0),ze=m(e,"logoTargetUrl",3,""),at=m(e,"showNextPrevButtons",3,!1),ft=m(e,"nextButtonActive",3,!1),mt=m(e,"prevButtonActive",3,!1),wt=m(e,"endScreenVideoTitle",3,void 0),Ge=m(e,"endScreenVideoThumb",3,void 0),Bt=m(e,"isOneVideoPlaylist",3,!1),Xt=m(e,"showMiniTimer",3,!1),qt=m(e,"fullScreenTarget",3,void 0),Ut=m(e,"playerStarted",3,!1),oe=m(e,"showEndScreen",3,!0),{notifications$:Dt,graphIsOpened$:he}=mo(),we=e.store.getLogger().createComponentLog("Root component"),ae=e.store.interfaceLanguage$,Re=e.store.state.playbackState$,qe=e.store.ads.playbackState,Le=e.store.state.positionWithScrubbing$,je=e.store.state.duration$,Oe=e.store.playerPhase,Je=e.store.ui.isFullscreen,At=e.store.ui.controlsVisible,zt=e.store.ui.isControlsAvailable,et=e.store.ui.interactiveHideMobileControls,$i=e.store.ui.settingsMenu.visible$,vi=e.store.ui.settingsMenu.openedByBtnKeyboard$,tt=e.store.ui.scrubbingInProgress,ii=e.store.ui.volumeChangingInProgress,Qt=e.store.ui.debugPanelVisible,gi=e.store.state.isLoaderVisible,Io=e.store.state.isEnded$,vo=e.store.state.chromecastConnected$,Ot=e.store.state.chromecastDeviceName$,ri=e.store.ads.postrollPassed,on=e.store.state.isLive$,It=e.store.state.isPlaying$,ct=e.store.state.isActiveLive$,hi=e.store.state.isRewindableLive$,ko=e.store.state.crashed$,Ui=e.store.webApi.annotationsApi,oi=e.store.webApi.pictureInPictureApi,Wo=e.store.state.videoSize$,Dn=e.store.state.currentSubtitle$,D=e.store.state.currentSubtitleCaptions$,Ue=e.store.state.duration$,ut=e.store.ui.playerSize,Ht=e.store.ui.is3DVideo,dt=e.store.ui.icon3DVideoVisible,ai=e.store.state.isInteractive,li=e.store.state.isInteractiveTime$,go=e.store.state.isInteractiveExpectation$,di=e.store.state.hasInteractiveBranches,$t=e.store.ui.controls.disabledControls$,Mi=e.store.ui.touched,Po=e.store.ui.overlayContainer$,Hn=e.store.ui.autoplayNextEnabled$,Li=e.store.state.loadedMetadata$,Ji=e.store.actions.internal.closeSettingsMenu,Ao=(Er=e.store.callbacks)==null?void 0:Er.onDisabledPlayPrevChapterClick,bn=(Vi=e.store.callbacks)==null?void 0:Vi.onDisabledSeekToInteractiveClick,$n=e.store.actions.internal.setQuality,Ei=j(void 0),zi=j(void 0),Ko=j(void 0),qo=j(void 0),nn,rn,Ur=g(()=>(n()==="video"&&s()||n()==="ads"&&l()==="inactive")&&!d()),Fn=j(void 0),{closeNotification:br,notificationsToShow$:nr}=Dt,$r=g(()=>!!a().slow_video),sn=()=>br("slow_video"),rr=se(!1),eo,Qo=j(!1),Un=g(()=>p()!==e5.PLAYING),yn=j(!1),yr=g(()=>f()||v()||!r(Qo)&&(u()&&!!di||r(Un)&&y())),zn=j(!0),sr=g(()=>e.uiConfig.features.thumbTimer&&Xt()&&n()==="video"&&!w()&&!d()&&!ai&&(e.uiConfig.hideThumbTimerAfterTouch&&!x()||!e.uiConfig.hideThumbTimerAfterTouch)),xr=j(!1),xn=g(()=>(oe()||e.showAutoplayNext&&S())&&!!wt()&&!!Ge()&&(e.showAds&&T()||!e.showAds)&&u()&&!d()&&!r(xr)),Wn=j(!1);oi==null||oi.setContext(Sl());let wr=vt=>{vt&&!ai&&lo(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:wr});let Sr=()=>{clearTimeout(nn),O(Qo,!1),v()&&et.set(!1)},lo=vt=>{Sr(),O(Qo,!0),nn=setTimeout(()=>O(Qo,!1),vt);let Ft=vt-100;eo=setTimeout(()=>{E()&&rr.set(!1)},Ft>0?Ft:vt)},pt=Ht.subscribe(vt=>{dt.set(vt),vt&&(clearTimeout(rn),rn=setTimeout(()=>dt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Jt=async(vt=Vs())=>{var Ft,Ki,Ri,bo,to,Lo;if(vt&&!Dd.device.isIOS){let wi=Zl(),wn=ho(),dr=Dd.browser.isSamsungBrowser&&wi===e.shadowRootContainer;vt=wi===wn||dr}if(vt){lo(e.uiConfig.controls.hideTimeoutFullscreen);try{await(oi==null?void 0:oi.exit())}catch(wi){we({message:String(wi)})}try{let wi=(Ft=V())!=null&&Ft.width&&((Ki=V())!=null&&Ki.height)?V():k();await Uh(wi)}catch(wi){we({message:String(wi)})}}Je.set(vt),e.store.getAdmanWrapper().setFullscreen(vt),I()?(bo=(Ri=e.store.callbacks)==null?void 0:Ri.onFullscreenEnter)==null||bo.call(Ri):(Lo=(to=e.store.callbacks)==null?void 0:to.onFullscreenExit)==null||Lo.call(to)},an=vt=>{let Ft=vt,{width:Ki,height:Ri}=Ft.target;ut.set({width:Ki,height:Ri})},Ii=()=>{let{width:vt,height:Ft}=r(Ei).getBoundingClientRect();ut.set({width:vt,height:Ft})};Pt(()=>{var vt;return Zc(Jt),e.uiConfig.features.annotationsInside&&(Ui==null||Ui.init(r(Ei))),ua(oi)&&(oi==null||oi.assignPlayerContainer(r(Ei)),oi==null||oi.setExternalEventHandlers({resize:an,leavepictureinpicture:Ii})),O(zn,!Dd.device.isIphoneOrOldIpad),e.interactiveContainer&&((vt=De().parentElement)==null||vt.insertBefore(e.interactiveContainer,De().nextSibling)),()=>{clearTimeout(nn),clearTimeout(eo),clearTimeout(rn),pt(),oi==null||oi.dispose().catch(Ft=>{we({message:String(Ft)})}),Xc(Jt)}});let Wi=j(!0),Go=j(!0),jo=vt=>{let Ft=R()+(vt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Ft<0?(O(Wi,!1),Ft=0):Ft>=Y()&&(O(Go,!1),Ft=Y()),O(yn,!0),e.seekTime(Ft)},ho=()=>Dd.device.isIOS?r(Ei):!e.uiConfig.allowChangingFullscreenTarget||!qt()?e.outerContainerRef:qt().contains(e.outerContainerRef)?qt():e.outerContainerRef,Kn=async()=>{try{if(Vs())await Yc(document),we({message:"exit fullscreen"});else{if(we({message:"request fullscreen"}),Dd.device.isIOS&&!H())return;await jc(ho())}}catch(vt){we({message:String(vt)})}},ln=()=>{Ji()},Mo=vt=>{if(vt.preventDefault(),F()){ln();return}if(!Ut()){e.firstStart(),lo(e.uiConfig.controls.hideTimeoutCursor);return}O(yn,!1),w()?Sr():lo(e.uiConfig.controls.hideTimeoutMobile)},zr=()=>{Mi.set(!0)},Wr=()=>{ai||(rr.set(!0),lo(e.uiConfig.controls.hideTimeoutCursor))},Cr=vt=>{Ao&&(Ao(vt),lo(e.uiConfig.controls.hideTimeoutMobile))},Kr=vt=>{bn&&(bn(vt),lo(e.uiConfig.controls.hideTimeoutMobile))};Ke(()=>{Po.set(r(Fn))}),Ke(()=>{At.set((r(Un)||F()||W()||J()||G()||!r(xn)&&(u()||r(Qo)&&!r(yn)))&&!r(yr)&&n()==="video"&&!d()&&ce())}),Ke(()=>{!W()&&r(Wn)&&!ie()&&lo(e.uiConfig.controls.hideTimeoutMobile),O(Wn,W(),!0)}),Ke(()=>{O(Wi,R()>0),O(Go,!ue()&&R()<Y(),!0)}),Ke(()=>{nd(r(qo),F(),$e(),!0)});let qn=K("aria_label_video_player"),ar=K("video360");Z1({fullScreenChangeHandler:Jt,getFullscreenTarget:ho}),X1({store:e.store,getFullscreenTarget:ho});let lr=(vt,Ft)=>{var to,Lo;let Ki=(Lo=(to=e.store.callbacks)==null?void 0:to.uiInfo)==null?void 0:Lo.onUpcomingLiveViewStateChanged;if(!Ki)return;let Ri=!!Ft,bo={...On(r(Ei),{upcomingLiveScreen:Ft},"upcomingLiveScreen",Ri),...vt};Ki(bo)};var _o=d5();xt("blur",Xs,ln);var jt=_(_o);Pa(jt,{onClick:Mo,get videoContainer(){return De()},set videoContainer(vt){De(vt)}});var co=P(jt,2);ra(co,()=>"slot",!1,(vt,Ft)=>{Pe(vt,()=>({name:ka}))});var Tr=P(co,2);na(Tr,fe,vt=>{var Ft=l5(),Ki=ge(Ft);let Ri=g(()=>n()!=="thumb"||d()||ai&&e.autoplay);Ta(Ki,{get hidden(){return r(Ri)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var bo=P(Ki,2);{var to=Ye=>{var ei=o5(),_i=ge(ei);{var wo=Gt=>{let ci=g(()=>e.uiConfig.controls.seekStepMobile/1e3);Tu(Gt,{side:"left",get seekStep(){return r(ci)},handleSingleFirstClick:Mo,handleSecondClick:()=>jo("backward")})};L(_i,Gt=>{r(Wi)&&Gt(wo)})}var _e=P(_i,2);{var Tt=Gt=>{let ci=g(()=>e.uiConfig.controls.seekStepMobile/1e3);Tu(Gt,{side:"right",get seekStep(){return r(ci)},handleSingleFirstClick:Mo,handleSecondClick:()=>jo("forward")})};L(_e,Gt=>{r(Go)&&Gt(Tt)})}$(Ye,ei)};L(bo,Ye=>{e.canRewindLive&&hi&&!ke().has("TIMELINE")&&Ye(to)})}var Lo=P(bo,2);{var wi=Ye=>{let ei=g(()=>{var _i;return(_i=e.live)==null?void 0:_i.startTime});Vd(Ye,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(ei)},onUpcomingLiveViewStateChanged:lr})};L(Lo,Ye=>{n()==="LiveWaitingStart"&&Ye(wi)})}var wn=P(Lo,2);{var dr=Ye=>{Ea(Ye,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};L(wn,Ye=>{n()==="LiveWaitingRecover"&&Ye(dr)})}var qr=P(wn,2);{var Qr=Ye=>{Ea(Ye,{kind:"record",get thumbUrl(){return e.thumbUrl}})};L(qr,Ye=>{n()==="LiveWaitingRecord"&&Ye(Qr)})}var Gr=P(qr,2);{var uo=Ye=>{var ei=n5();let _i;var wo=_(ei);Jl(wo,{get adsSlotId(){return pe()},get adsParams(){return st()},get adsPreviewParam(){return Z()},get adsAutoplayParam(){return Ae()},get duration(){return Ie()}}),h(ei),B(_e=>_i=ee(ei,1,"ads-container svelte-7yl31d",null,_i,_e),[()=>({hidden:n()!=="ads"})]),$(Ye,ei)};L(Gr,Ye=>{e.showAds&&Ut()&&Ye(uo)})}var Sn=P(Gr,2);{var Ir=Ye=>{let ei=g(()=>!oe()&&e.showAutoplayNext&&S());Zm(Ye,{get title(){return wt()},get thumb(){return Ge()},get isHide(){return r(ei)},clickCloseIcon:()=>O(xr,!0)})};L(Sn,Ye=>{r(xn)&&wt()&&Ge()&&Ye(Ir)})}var kr=P(Sn,2);{var ot=Ye=>{Md(Ye,{})};L(kr,Ye=>{ne()&&Ye(ot)})}var St=P(kr,2);{var mi=Ye=>{var ei=r5(),_i=_(ei);Yl(_i,{get"aria-label"(){return ar}}),h(ei),$(Ye,ei)};L(St,Ye=>{Ve()&&Ye(mi)})}var qi=P(St,2);{var $o=Ye=>{Ld(Ye,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return re()}})};L(qi,Ye=>{G()&&Ye($o)})}var po=P(qi,2);{var io=Ye=>{Sa(Ye,{get shifted(){return w()},get captions(){return Be()},get position(){return R()},get playerSize(){return k()},isMobile:!0})};L(po,Ye=>{N().value!=="off"&&Ye(io)})}var Vo=P(po,2);{var Cn=Ye=>{var ei=s5();ei.__click=[i5,F,$i,ln];var _i=_(ei);Ca(_i,{}),h(ei),$(Ye,ei)};L(Vo,Ye=>{d()&&Ye(Cn)})}var dn=P(Vo,2);{var Qi=Ye=>{let ei=g(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),_i=g(()=>n()==="ads"),wo=g(()=>e.canRewindLive&&le()!==0);Ad(Ye,{get bottomHidden(){return r(ei)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return r(_i)},get canRewindLive(){return r(wo)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return ze()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return at()},get nextButtonActive(){return ft()},get prevButtonActive(){return mt()},get isOneVideoPlaylist(){return Bt()},get customFullscreenSupported(){return r(zn)},get endScreenShown(){return r(xn)},toggleFullscreen:Kn,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Cr,onDisabledSeekToInteractiveClick:Kr,get playerControlsWrapperRef(){return r(zi)},set playerControlsWrapperRef(_e){O(zi,_e,!0)},get playerControlsRef(){return r(Ko)},set playerControlsRef(_e){O(Ko,_e,!0)}})};L(dn,Ye=>{Ut()&&Ye(Qi)})}var yo=P(dn,2);{var cr=Ye=>{var ei=a5(),_i=_(ei);Od(_i,{get supportLink(){return e.supportLink},get returnFocus(){return t5},get ref(){return r(qo)},set ref(wo){O(qo,wo,!0)}}),h(ei),$(Ye,ei)};L(yo,Ye=>{F()&&Ye(cr)})}var Tn=P(yo,2);let En=g(()=>!r(sr));id(Tn,{get isLive(){return ve()},get isHidden(){return r(En)},get isPlaying(){return te()},get position(){return R()},get duration(){return Y()}});var ur=P(Tn,2);{var In=Ye=>{ga(Ye,{})};L(ur,Ye=>{r(Ur)&&Ye(In)})}var Pr=P(ur,2);{var xo=Ye=>{ad(Ye,{})};L(Pr,Ye=>{me()&&Ye(xo)})}var kn=P(Pr,2);{var jr=Ye=>{Bd(Ye,{onClose:sn,onSelectAutoQuality:()=>{$n("auto"),sn()}})};L(kn,Ye=>{r($r)&&Ye(jr)})}$(vt,Ft)});var as=P(Tr,2);it(as,vt=>O(Fn,vt),()=>r(Fn)),h(_o),it(_o,vt=>O(Ei,vt),()=>r(Ei)),B(()=>Fe(_o,"aria-label",qn)),xt("click",_o,zr,!0),xt("focusin",_o,Wr,!0),$(t,_o),z(),o()}lt(["click"]);function Iu(t){let e="";return Xi(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Xi(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Xi(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Xi(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Xi(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Xi(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Xi(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Xi(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Xi(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Xi(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Xi(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Xi(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Xi(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),Xi(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),Xi(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),Xi(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),Xi(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),Xi(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),Xi(t.font)&&(e+=`--font:${t.font};`),Xi(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),Xi(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function Xi(t){return typeof t=="string"&&!t.includes(";")}import{debounceFn as u5}from"@vkontakte/videoplayer-shared/es2018";var p5=M('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),f5={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 Jm(t,e){U(e,!0),q(t,f5);let[i,o]=He(),n=()=>C(J,"$playerSize",i),s=()=>C(I,"$isPlaying$",i),l=()=>C(V,"$duration$",i),d=()=>C(H,"$positionWithScrubbing$",i),a=()=>C(T,"$playerPhase",i),p=()=>C(E,"$crashed$",i),f=()=>C(R,"$currentSubtitle$",i),v=()=>C(Y,"$currentSubtitleCaptions$",i),u=()=>C(k,"$positionExact$",i),y=()=>C(F,"$isLive$",i),w=()=>C(W,"$isRewindableLive$",i),x=m(e,"outsideDuration",3,0),S=m(e,"videoContainer",15),{playerPhase:T,state:{crashed$:E,duration$:V,positionExact$:k,isPlaying$:I,currentSubtitle$:R,currentSubtitleCaptions$:Y,positionWithScrubbing$:H,isLive$:F,isRewindableLive$:W},ui:{playerSize:J,controls:G},actions:{internal:{getVideoElement:ce}}}=Ee(),ie=8,ue=j(!1),$e=ni({}),fe=()=>{O(ue,!0)},ke=()=>{O(ue,!1)},ne=u5(fl,260);Ke(()=>{n(),ne(ce(),G,$e,r(ue))});let Ve=g(()=>s()?_n(l()-d()):_n(isFinite(l())?l():x()));var re=p5(),N=_(re);Pa(N,{hideCursor:!1,get videoContainer(){return S()},set videoContainer(Ie){S(Ie)}});var Be=P(N,2);ra(Be,()=>"slot",!1,(Ie,ze)=>{Pe(Ie,()=>({name:ka}))});var le=P(Be,2);let ve=g(()=>a()!=="thumb"||p());Ta(le,{get hidden(){return r(ve)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var te=P(le,2);{var me=Ie=>{Sa(Ie,{shifted:!1,get captions(){return v()},get position(){return u()},get playerSize(){return n()}})};L(te,Ie=>{f().value!=="off"&&Ie(me)})}var De=P(te,2),pe=_(De);td(pe,{get isLive(){return y()},get isPlaying(){return s()},get time(){return r(Ve)}}),h(De);var st=P(De,2);let Z;var Ae=_(st);ba(Ae,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:ie,tooltipRightOffset:ie,get ref(){return $e.timeline},set ref(Ie){$e.timeline=Ie}}),h(st),h(re),B(Ie=>Z=ee(st,1,"timeline svelte-1qfjf44",null,Z,Ie),[()=>({visible:r(ue)})]),xt("mouseenter",re,fe),xt("mouseleave",re,ke),$(t,re),z(),o()}var _5=M("<div><!></div>"),b5={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"},Kh=W_;var g
|
|
|
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)
|
|
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-
|
|
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 uv(t,e){U(e,!0),K(t,I5);let[i,o]=He(),n=()=>C(Xt,"$isLive$",i),s=()=>C(ut,"$availableSubtitlesList$",i),l=v(e,"sources",7),d=v(e,"store",7),a=v(e,"microStoresRoot",7),p=v(e,"videoConfig",7),f=v(e,"uiConfig",7),m=v(e,"title",7),u=v(e,"thumbUrl",7),y=v(e,"interactiveContainer",7),w=v(e,"interactiveController",7),x=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),G=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),Y=v(e,"adsAutoplayParam",7,void 0),j=v(e,"duration",7,void 0),ue=v(e,"logoClickable",7),re=v(e,"logoHidden",7),fe=v(e,"isMobile",7),be=v(e,"showNextPrevButtons",7,!1),me=v(e,"nextButtonActive",7,!1),Pe=v(e,"prevButtonActive",7,!1),se=v(e,"endScreenVideoTitle",7,void 0),Le=v(e,"endScreenVideoThumb",7,void 0),ae=v(e,"isOneVideoPlaylist",7,!1),N=v(e,"supportLink",7),Be=v(e,"shadowRootContainer",7),ce=v(e,"outerContainerRef",7),he=v(e,"fullScreenTarget",7,void 0),oe=v(e,"failoverHosts",7,void 0),ve=v(e,"showMiniTimer",7,!1),De=v(e,"saveRate",7),pe=v(e,"seekToInteractive",7,d0),rt=v(e,"playPrevChapter",7,d0),X=v(e,"volumeMultiplier",7),Ae=v(e,"showAutoplayNext",7),ke=v(e,"showEndScreen",7,!0),ze=v(e,"keyboardControls",15,void 0),{subscribers:nt,stores:ht}=a();ch(f());let at=Et(),yt=f().logoLink,Xe=d().ui.debugPanelVisible,Ht=d().ui.playerSize,Xt=d().state.isLive$,Qt=d().state.isInteractive&&cv.device.isAndroid,Ee=Z(void 0),zt=null,Se=Z(!1);d().getAdmanWrapper().init({switchFromAdsToVideo:d().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:d().actions.internal.switchFromVideoToAds,setMuted:d().actions.external.setMuted},d().ads,{vsid:d().vsid}),$h(d(),ht),Qe(()=>{var D,Ke;d().ui.isMobile.set(fe()),(Ke=(D=p().callbacks)==null?void 0:D.onDomReady)==null||Ke.call(D)});let te=(D=!1)=>{O(Se,!0),D?d().actions.external.firstStart(G()):d().actions.internal.firstStart(G())},ne=()=>{if(at.features.qualityDetailsSubMenuEnabled){let D=Fh(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{Uh(d().videoId),of()&&d().actions.internal.setTrafficSavingEnabled(!0);let Ke=Xp(d().videoId);Ke&&d().actions.internal.setQuality(Ke)}};function Ve(D){var kt,ci,Uo;let Ke=l()||D;Ke&&d().initVideo({container:r(Ee),sources:Ke,failoverHosts:oe(),subtitles:x(),volumeMultiplier:X()});let ct=S5.get(Yl)==="true";Xe.set(ct),M()>0&&d().actions.external.seekTime(M());let Kt=fe()?at.volumeDefault:(ci=(kt=R())!=null?kt:Wc())!=null?ci:at.volumeDefault,It=(Uo=I())!=null?Uo:Rh();if(d().actions.external.setVolume(Kt),d().actions.external.setMuted(It),d().getAdmanWrapper().setInitialVolume(It?0:Kt),ne(),at.features.saveRate&&De()){let ai=Bh();ai&&!n()&&d().actions.internal.setPlaybackRate(ai)}if(Ae()){let ai=Hh();ai&&d().actions.internal.setAutoplayNextEnabled(ai)}d().ui.isAutoplay.set(E()),E()&&te(),T()&&at.features.preload&&d().actions.internal.preload()}let Fe=D=>{if(window.ResizeObserver){let Ke,ct;zt=new ResizeObserver(C5(Kt=>{let It=Kt[0];if(It.contentBoxSize){let kt=Array.isArray(It.contentBoxSize)?It.contentBoxSize[0]:It.contentBoxSize;Ke=kt.inlineSize,ct=kt.blockSize}else It.contentRect&&(Ke=It.contentRect.width,ct=It.contentRect.height);Ht.set({width:Ke,height:ct})},300)),zt.observe(D)}Ht.set({width:D.clientWidth,height:D.clientHeight})},Re=()=>{document.hidden&&d().actions.external.stop()};Lt(()=>{var ct,Kt,It,kt;Qt&&document.addEventListener("visibilitychange",Re),at.debugLog&&d().actions.internal.startLogging(),Fe(r(Ee));let D=nt.map(ci=>ci.init({store:d(),microStores:ht,config:p(),interactiveController:w(),uiConfig:f()})),Ke=()=>{Qt&&document.removeEventListener("visibilitychange",Re),zt==null||zt.disconnect(),D.forEach(ci=>ci.unsubscribe()),d().destroy()};return((ct=S())==null?void 0:ct.status)==="upcoming"?(d().actions.internal.setLiveWaitingStart(!0),Ke):((Kt=S())==null?void 0:Kt.status)==="waiting"?(d().actions.internal.setLiveWaitingRecover(!0),Ke):(((It=S())==null?void 0:It.status)==="finished"||((kt=S())==null?void 0:kt.status)==="postlive")&&!(l()&&w5(l()))?(d().actions.internal.setLiveWaitingRecord(!0),Ke):(Ve(),Ke)});function We(){r(Se)?d().actions.external.play():te(!0)}function Ne(){d().actions.external.pause()}function Je(D){d().actions.external.setMuted(D)}function Ft(){d().actions.external.toggleSubtitle()}function Wt(D,Ke){d().actions.external.changeSubtitle(D,Ke)}function Ct(){var D;(D=d().webApi.slotsApi)!=null&&D.haveSlots()&&d().actions.external.hideControls()}function _i(){var D;(D=d().webApi.slotsApi)!=null&&D.haveSlots()&&d().actions.external.showControls()}function gi(D){fe()||D>=0&&D<=1&&d().actions.external.setVolume(D)}function dt(D){d().actions.internal.seekTime(D,T5.UNKNOWN)}function Mi(D){d().actions.external.seekEpisodeStartTime(D)}function Gt(){d().actions.external.returnFocusToEpisodes()}function lt(D){d().actions.external.setPlaybackRate(D)}function si(D){d().actions.external.setAutoQualityLimits(D)}function Li(){d().actions.external.setQuality("auto")}function Pt(D){d().actions.external.setTrafficSavingEnabled(D)}function ri(D){d().actions.external.setHighQualityEnabled(D)}let tn=Lu(at.view),At=p().playerView==="preview",ut=d().state.availableSubtitlesList$;if(at.features.initSubtitles){let D=!1;Qe(()=>{if(!D&&s().length){D=!0;let Ke;if(at.features.userVideoPrefs&&d().videoId){let Kt=Gc(at.userSalt,String(d().videoId));Kt!=null&&Kt.subtitleTrackId&&(Ke=s().find(It=>It.value===Kt.subtitleTrackId))}let ct=rf();ct&&(Ke!=null||(Ke=s().find(Kt=>Kt.language===ct))),d().actions.internal.setSubtitle(Ke)}})}var di=E5();let Co;var Wi=_(di);{var ti=D=>{lv(D,{get store(){return d()},get uiConfig(){return at},get thumbUrl(){return u()},get interactiveContainer(){return y()},get live(){return S()},get autoplay(){return E()},get canRewindLive(){return k()},get showAds(){return G()},get adsSlotId(){return H()},get adsParams(){return F()},get adsPreviewParam(){return q()},get adsAutoplayParam(){return Y()},get duration(){return j()},get logoClickable(){return ue()},get logoHidden(){return re()},get logoTargetUrl(){return yt},get nextButtonActive(){return me()},get prevButtonActive(){return Pe()},get endScreenVideoTitle(){return se()},get endScreenVideoThumb(){return Le()},get isOneVideoPlaylist(){return ae()},get supportLink(){return N()},get shadowRootContainer(){return Be()},get outerContainerRef(){return ce()},get fullScreenTarget(){return he()},get showMiniTimer(){return ve()},get playerStarted(){return r(Se)},get seekToInteractive(){return pe()},get playPrevChapter(){return rt()},firstStart:te,seekTime:dt,get showEndScreen(){return ke()},get showAutoplayNext(){return Ae()},get showNextPrevButtons(){return be()},get videoContainer(){return r(Ee)},set videoContainer(Ke){O(Ee,Ke,!0)}})},Fo=D=>{var Ke=qe(),ct=ge(Ke);{var Kt=kt=>{dv(kt,{get thumbUrl(){return u()},get outsideDuration(){return j()},get canRewindLive(){return k()},get videoContainer(){return r(Ee)},set videoContainer(ci){O(Ee,ci,!0)}})},It=kt=>{sv(kt,{get store(){return d()},get uiConfig(){return at},get title(){return m()},get thumbUrl(){return u()},get interactiveContainer(){return y()},get live(){return S()},get autoplay(){return E()},get canRewindLive(){return k()},get showAds(){return G()},get adsSlotId(){return H()},get adsParams(){return F()},get adsPreviewParam(){return q()},get adsAutoplayParam(){return Y()},get duration(){return j()},get logoClickable(){return ue()},get logoHidden(){return re()},get logoTargetUrl(){return yt},get nextButtonActive(){return me()},get prevButtonActive(){return Pe()},get endScreenVideoTitle(){return se()},get endScreenVideoThumb(){return Le()},get isOneVideoPlaylist(){return ae()},get supportLink(){return N()},get shadowRootContainer(){return Be()},get outerContainerRef(){return ce()},get fullScreenTarget(){return he()},get showMiniTimer(){return ve()},get playerStarted(){return r(Se)},get seekToInteractive(){return pe()},get playPrevChapter(){return rt()},firstStart:te,get showEndScreen(){return ke()},get showAutoplayNext(){return Ae()},get showNextPrevButtons(){return be()},get videoContainer(){return r(Ee)},set videoContainer(ci){O(Ee,ci,!0)},get keyboardControls(){return ze()},set keyboardControls(ci){ze(ci)}})};V(ct,kt=>{At?kt(Kt):kt(It,!1)})}$(D,Ke)};V(Wi,D=>{fe()?D(ti):D(Fo,!1)})}h(di),B(D=>{Co=ie(di,1,"root svelte-1tzrpvc",null,Co,D),ot(di,tn)},[()=>({"root--miui-browser":cv.device.isMobile&&cv.browser.isMiuiBrowser,"visible-outside":At})]),$(t,di);var On=z({initVideo:Ve,play:We,pause:Ne,setMuted:Je,toggleSubtitle:Ft,changeSubtitle:Wt,hideControls:Ct,showControls:_i,setVolume:gi,seekTime:dt,seekEpisodeStartTime:Mi,returnFocusToEpisodes:Gt,setPlaybackRate:lt,setAutoQualityLimits:si,setAutoQuality:Li,toggleTrafficSaving:Pt,toggleHighQuality:ri,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 p()},set videoConfig(D){p(D)},get uiConfig(){return f()},set uiConfig(D){f(D)},get title(){return m()},set title(D){m(D)},get thumbUrl(){return u()},set thumbUrl(D){u(D)},get interactiveContainer(){return y()},set interactiveContainer(D){y(D)},get interactiveController(){return w()},set interactiveController(D){w(D)},get subtitles(){return x()},set subtitles(D){x(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 G()},set showAds(D){G(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 Y()},set adsAutoplayParam(D){Y(D)},get duration(){return j()},set duration(D){j(D)},get logoClickable(){return ue()},set logoClickable(D){ue(D)},get logoHidden(){return re()},set logoHidden(D){re(D)},get isMobile(){return fe()},set isMobile(D){fe(D)},get showNextPrevButtons(){return be()},set showNextPrevButtons(D){be(D)},get nextButtonActive(){return me()},set nextButtonActive(D){me(D)},get prevButtonActive(){return Pe()},set prevButtonActive(D){Pe(D)},get endScreenVideoTitle(){return se()},set endScreenVideoTitle(D){se(D)},get endScreenVideoThumb(){return Le()},set endScreenVideoThumb(D){Le(D)},get isOneVideoPlaylist(){return ae()},set isOneVideoPlaylist(D){ae(D)},get supportLink(){return N()},set supportLink(D){N(D)},get shadowRootContainer(){return Be()},set shadowRootContainer(D){Be(D)},get outerContainerRef(){return ce()},set outerContainerRef(D){ce(D)},get fullScreenTarget(){return he()},set fullScreenTarget(D){he(D)},get failoverHosts(){return oe()},set failoverHosts(D){oe(D)},get showMiniTimer(){return ve()},set showMiniTimer(D){ve(D)},get saveRate(){return De()},set saveRate(D){De(D)},get showAutoplayNext(){return Ae()},set showAutoplayNext(D){Ae(D)},get seekToInteractive(){return pe()},set seekToInteractive(D){pe(D)},get playPrevChapter(){return rt()},set playPrevChapter(D){rt(D)},get volumeMultiplier(){return X()},set volumeMultiplier(D){X(D)},get showEndScreen(){return ke()},set showEndScreen(D){ke(D)},get keyboardControls(){return ze()},set keyboardControls(D){ze(D)}});return o(),On}var k5=we('<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 pv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=k5();Ie(o,()=>({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);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}function fv(t,e){let i=v(e,"isWhite",3,!1),o=g(()=>i()?"color: #fff;":"color: #909499;");pv(t,{get style(){return r(o)}})}var P5=A('<div class="title svelte-1y9fytq"> </div>'),A5=A('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),M5={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 mv(t,e){K(t,M5);var i=A5(),o=_(i);{var n=d=>{var a=P5(),p=_(a,!0);h(a),B(()=>_e(p,e.title)),$(d,a)};V(o,d=>{e.title&&d(n)})}var s=P(o,2);{var l=d=>{let a=g(()=>!!e.thumbUrl);fv(d,{get isWhite(){return r(a)}})};V(s,d=>{(!e.title||!e.thumbUrl)&&d(l)})}h(i),B(()=>ot(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),$(t,i)}var L5=A('<div class="playerError svelte-m5iv29"><!></div>'),V5={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 vv(t){K(t,V5);var e=L5(),i=_(e);Ca(i,{}),h(e),$(t,e)}import{now as sw,ValueSubject as aw}from"@vkontakte/videoplayer-shared/es2018";import{cloneDeepWith as lw,InterfaceLanguage as dw,isNonNullable as yv,Logger as cw,Observable as uw,Subscription as h0,once as pw,InternalsExposure as fw,skip as mw,getPlayerId as vw}from"@vkontakte/videoplayer-shared/es2018";import{clientChecker as _0,isMobile as gw}from"@vkontakte/videoplayer-core/es2018";import{OneStat as hw,ThinOneStat as _w,MediascopePixel as bw}from"@vkontakte/videoplayer-statistics/es2018";import{Logger as R5,Subscription as N5}from"@vkontakte/videoplayer-shared/es2018";var Vu=class{constructor(){this.subscription=new N5,this.logger=new R5,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=ye(e.state.currentPlaybackRate$),n=ye(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 _v,detectEmbed as U5}from"@vkontakte/videoplayer-shared/es2018";var O5=we('<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 gv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=O5();Ie(o,()=>({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);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var B5=A('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),D5={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 hv(t,e){U(e,!0),K(t,D5);let[i,o]=He(),n=()=>C(p,"$interfaceLanguage$",i),s=()=>C(f,"$isMobile$",i),l=Te(),d=Et(),a=!!l.webApi.pictureInPictureApi,p=l.interfaceLanguage$,f=l.ui.isMobile,m=l.ui.t,u=g(()=>n()&&m("pip_dummy_title")),y=Lu(d.view);var w=B5();let x;var S=_(w);let T;var E=_(S);gv(E,{}),h(S);var R=P(S,2),I=_(R,!0);h(R),h(w),B((M,k)=>{x=ie(w,1,"player-pip-dummy svelte-1pbsod4",null,x,M),ot(w,y),T=ie(S,1,"dummy-image svelte-1pbsod4",null,T,k),_e(I,r(u))},[()=>({"is-pip-api":a}),()=>({desktop:!s()})]),$(t,w),z(),o()}var H5=Object.defineProperty,F5=(t,e,i)=>e in t?H5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,gl=(t,e,i)=>F5(t,typeof e!="symbol"?e+"":e,i),z5=460,W5=280,Wd=class{constructor({enabled:e=!0}={enabled:!0}){gl(this,"playerDomElement"),gl(this,"playerParentShadowRoot"),gl(this,"playerDummyElement"),gl(this,"svelteContext"),gl(this,"pipWindow"),gl(this,"info",{isActive$:new _v(!1),isEnabled$:new _v(!1),type:1}),this.info.isEnabled$=new _v(e)}isSupported(){let{isEmbed:e}=U5();return"documentPictureInPicture"in window&&!e}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}async request(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:z5,height:W5,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(p=>p.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=is(hv,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||(oa(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})}async exit(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})}async dispose(){await this.exit()}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function c0(t){return t instanceof Wd}var Ru=class{static getLatestSupportedVersion(e){let i=new ca(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 u0="Inner error. Unexpectedly root annotation container null reference exception",p0="Annotation with such name already exists",f0="Annotation with such name does not exist";var hl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as K5,Subscription as q5,throttleFn as Q5}from"@vkontakte/videoplayer-shared/es2018";var G5="1",j5=100,Nu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new q5}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=Q5(()=>{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(K5(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 hl(u0);if(this.annotations.has(e))throw new hl(p0);i.style.zIndex=(o=i.style.zIndex)!=null?o:G5,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 hl(f0);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let n=e.offsetTop,s=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return n<0||s<0||s+l>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as Ou,Subscription as Y5}from"@vkontakte/videoplayer-shared/es2018";var en=class{init({store:e,microStores:i,interactiveController:o,config:n}){return Ou(e),Ou(i),Ou(n),n.interactiveData&&Ou(o),this.subscription=new Y5,this.subscription}};var qd=class extends en{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...le(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(s=>{this.state$.set(s?!0:null)})),o}};var Qd=class extends en{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...le(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:n,store:s}=i,{fakeIsPlaying$:l}=n,{isInteractiveExpectation$:d,isPlaying$:a}=s.state,{controlsVisible:p,isMobile:f}=s.ui,m=ye(f),u=()=>m&&ye(p);return o.add(p.subscribe(y=>{if(!m)return;let w=ye(l);ye(a)?this.state$.set(y):w!==null&&this.state$.set(!w||y)})),o.add(a.subscribe(y=>{this.state$.set(!y||u())})),o.add(l.subscribe(y=>{if(y===null)return;let w=ye(d);if(u()){this.state$.set(!0);return}w&&this.state$.set(!y)})),o}};var Gd=class extends en{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=le("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(s=>{s.length&&(s.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};import{combine as Z5}from"@vkontakte/videoplayer-shared/es2018";var bv=le(!1),Bu=null,jd=class extends en{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...bv,set:(i,o=!1)=>{i!==ye(bv)&&(this.clearTimeout(),bv.set(i),!i&&Bu&&(Bu=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:n,config:s}=i,{isInteractiveTime$:l,isPlaying$:d}=n.state,a=n.ui.controlsVisible,{interactiveTimeIndicator:p}=n.ui.controls;o.add(a.subscribe(m=>{ye(l)&&m&&this.state$.set(!1)}));let f=(s==null?void 0:s.interactiveData)||{tooltipHelpHintActive:!1};return o.add(Z5({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:p}).subscribe(({isPlaying$:m,isInteractiveTime$:u,interactiveTimeIndicator:y})=>{var w,x;if(!(!m||!(y!=null&&y.isDisplayed))){if(!u)return this.state$.set(!1);f.tooltipHelpHintActive&&Bu===null&&(Bu=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(x=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||x.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as X5,noop as J5}from"@vkontakte/videoplayer-shared/es2018";var Yd=class extends en{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...le(null),toggle:J5};this.checkIfShouldHide=i=>Fs(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=async()=>{if(this.checkIfShouldHide(ye(l)))return;let a=ye(this.state$),{isEnded$:p,playbackState$:f}=n.state,{disabledControls$:m}=n.ui.controls,u=ye(p),y=ye(f);if(a)try{await(s==null?void 0:s.toggleGraphView(!1)),this.state$.set(!1),m.remove(Wp),!u&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=y==="playing";try{await(s==null?void 0:s.toggleGraphView(!0)),this.state$.set(!0),m.add(Wp),!u&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add(X5({graphIsOpened:this.state$,currentGridType:l}).subscribe(async({graphIsOpened:a,currentGridType:p})=>{if(this.checkIfShouldHide(p)&&a)try{await(s==null?void 0:s.toggleGraphView(!1)),this.state$.set(!1)}catch(m){d({message:"Cant hide graph"})}})),o}};import{ValueSubject as m0}from"@vkontakte/videoplayer-shared/es2018";var Zd=class extends en{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:le(!1),isEnabled$:le(!1),type$:le(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:s,isEnabled$:l,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new m0(!1),isEnabled$:new m0(!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 iw,filterChanged as ow}from"@vkontakte/videoplayer-shared/es2018";import{safeStorage as $v}from"@vkontakte/videoplayer-shared/es2018";var v0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?ew({maxCount:t}):void 0,e!==0?tw({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},ew=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,$v.set("videoplayer_notifications_manager_count",JSON.stringify((n=e[i])!=null?n:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},tw=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse($v.get(e)||"{}")}catch(s){return{}}},o=s=>$v.set(e,JSON.stringify(s)),n=s=>{let l=i();delete l[s],o(l)};return{notificationShowed:s=>{o({...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 en{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:le({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:s,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:a}}}=i;this.notificationManager=v0({maxShowCount:s,timeout:l});let p=n.getPlayer();return o.add(p.events.severeStallOccured$.pipe(ow(),iw(f=>f)).subscribe(()=>{d&&!p.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(a&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var g0=()=>[qd,Qd,Gd,jd,Yd,Zd,Xd].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});import{devNull as Jd}from"@vkontakte/videoplayer-shared/es2018";var Du=class{constructor(e){this.shadowRoot=e;this.lastFocusedNode=null;this.init=()=>{this.shadowRoot.addEventListener("focusin",this.handleFocusChange)};this.handleFocusChange=()=>{this.lastFocusedNode=this.shadowRoot.activeElement};this.restoreFocus=()=>{var e;(e=this.lastFocusedNode)==null||e.focus()};this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange)}};var nw=Object.defineProperty,rw=(t,e,i)=>e in t?nw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,qt=(t,e,i)=>rw(t,typeof e!="symbol"?e+"":e,i),$w={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:dw.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:gw(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Nn=Z(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 aw(null)),qt(this,"createOneStat",(e,i={})=>{var o,n,s,l;if(!this.videoConfig)return;let{albumId:d,statPlace:a,statUserSalt:p,statTrackCode:f,statVKAppId:m,refreshStatAuthToken:u,autoplay:y,isMobile:w,isTouch:x,refDomain:S,deviceId:T,interactiveData:E}=Kd(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 hw({movieId:M,albumId:d,place:a,trackCode:f,vkAppId:m,autoplay:(l=y&&!this.interactiveController)!=null?l:!1,mobile:x!=null?x:w,clip:k,refDomain:S,deviceId:T,isPreviewPlayerView:this.videoConfig.playerView==="preview",...R&&(!this.isInited||I)&&{projectId:Number(R)}},{refreshAuthToken:u,userSalt:p,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 cw,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new h0,this.interactiveSubscription=new h0,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=is(vv,{target:this.playerContainer}))})}connectedCallback(){var e,i;if(this.rootContainer)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,n=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,s=ni({title:o,thumbUrl:n}),l={target:this.playerContainer,props:s};this.svelteStubComponent=is(mv,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 _w.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,p,f,m,u,y;if(!this.videoConfig)return;let{albumId:w,statPlace:x,statAuthToken:S,preload:T,autoplay:E,volume:R,muted:I,fromTime:M,canRewindLive:k,supportLink:G,showAds:H,adsSlotId:F,adsParams:q={},adsPreviewParam:Y,adsAutoplayParam:j,interfaceLanguage:ue,isCyrillicRelatedInterface:re,logoClickable:fe,logoHidden:be,isMobile:me,isTouch:Pe,isAudioDisabled:se,isLiveCatchUpMode:Le,fullScreenTarget:ae,failoverHosts:N,canDownload:Be,callbacks:ce,interactiveData:he,showThumbTimer:oe,additionalButtons:ve=[],additionalSettingsMenuItems:De=[],additionalContextMenuItems:pe=[],repeat:rt,saveRate:X,volumeMultiplier:Ae,showEndScreen:ke,showAutoplayNext:ze,mediascopePixels:nt}=Kd(this.videoConfig,i),{sources:ht,title:at,thumbUrl:yt,unitedVideoId:Xe,isClip:Ht=!1,duration:Xt,adsParams:Bt={},videoEpisodes:Qt,previewThumbsData:Ee,subtitles:zt,live:Se}=e;if(!ht&&!Se){let Gt=new Error("empty sources and live");this.fatalError$.next(Gt),(n=ce.onCrashed)==null||n.call(ce,Gt.message);return}let te={...q,...Bt},ne=this.getNextVideoInfo(),Ve={sources:ht,title:at,thumbUrl:yt,subtitles:zt,unitedVideoId:Xe,isClip:Ht,live:Se,albumId:w,statPlace:x,autoplay:E,muted:I,volume:R,fromTime:M,canRewindLive:k,showAds:H,adsSlotId:F,adsParams:te,adsPreviewParam:Y,adsAutoplayParam:j,duration:Xt,logoClickable:fe,logoHidden:be,isTouch:Pe!=null?Pe:me,repeat:rt,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ne.nextVideoTitle,endScreenVideoThumb:ne.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Fe={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(Ve)}`});let Re=(s=this.interactiveController)==null?void 0:s.state.statistics$.getValue(),We=(Re==null?void 0:Re.oneStat)||this.createOneStat(e,i),Ne=this.createThinOneStat(e,i),Je;nt&&(Je=new bw({pixels:nt})),(We||Ne)&&(this.statistics=new hu(We,Ne,Je,Re==null?void 0:Re.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new da(this.uiConfig.sentry,{version:tl,env:Fc},{movieId:Xe,albumId:w,place:x,autoplay:(l=E&&!this.interactiveController)!=null?l:!1,mobile:Pe!=null?Pe:me,clip:Ht}),this.interactiveController&&((p=this.prevIsid)!=null||(this.prevIsid=(a=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:a.isid$.getValue())),this.sentry={...this.sentry,...da.getInstance()};let Wt=!!he,Ct=[],_i="tooltip_interactive_go_back_disabled_first";if(Wt&&this.interactiveController){let Gt=this.interactiveController.state.isInitialChapter$.getValue(),lt=this.interactiveController.getHistoryState();Gt&&Ct.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Ct.push("SEEK_TO_INTERACTIVE_BUTTON"),lt.hasPrevChapter$.getValue()||(Ct.push("PLAY_PREV_CHAPTER_BUTTON"),Gt||(lt.isGoBackLimited$.getValue()?_i="tooltip_interactive_go_back_disabled_limit":_i="tooltip_interactive_go_back_disabled"))}let gi=()=>{var Gt;this.isInited=!1,this.prevIsid=void 0;let lt=(o==null?void 0:o.info.isEnded$.getValue())&&((Gt=this.interactiveController)==null?void 0:Gt.state.isEndChapter$.getValue());ce.onReplayInteractiveVideo&&!lt?ce.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=A1({player:o,interfaceLanguage:ue,isCyrillicRelatedInterface:re,videoId:Xe,isClip:Ht,isLiveCatchUpMode:Le,isAudioDisabled:se,statAuthToken:S,callbacks:ce,webApi:Fe,videoEpisodes:Qt,previewThumbsData:Ee,canDownload:Be,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Ct,isInteractive:Wt,saveRate:X,interactiveRanges$:(f=this.interactiveController)==null?void 0:f.state.interactiveRanges$,isInteractiveTime$:(m=this.interactiveController)==null?void 0:m.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:gi,playPrevChapterDisabledTooltip:_i,hasInteractiveBranches:!!((y=(u=this.interactiveController)==null?void 0:u.getChapterBranches())!=null&&y.length),additionalButtons:this.uiConfig.features.additionalButtons?ve:[],additionalSettingsMenuItems:De!=null?De:[],additionalContextMenuItems:pe!=null?pe:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:rt&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:dt}=this.microStoresRoot=g0(),Mi=()=>{var Gt,lt,si,Li,Pt,ri;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(At=>{var ut;return(ut=ce==null?void 0:ce.onCurrentFormatChanged)==null?void 0:ut.call(ce,At)})),this.subscription.add(dt.interactiveControlsOpacity$.subscribe(At=>{var ut;At!==null&&((ut=this==null?void 0:this.interactiveController)==null||ut.setDisabledControls(At))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(At=>{var ut;return(ut=ce==null?void 0:ce.onThroughputEstimationChanged)==null?void 0:ut.call(ce,At)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(At=>{var ut;return(ut=ce==null?void 0:ce.onTrafficSavingEnabledChanged)==null?void 0:ut.call(ce,At)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(At=>{var ut;return(ut=ce==null?void 0:ce.onHighQualityEnabledChanged)==null?void 0:ut.call(ce,At)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(At=>{var ut;return(ut=ce==null?void 0:ce.onAutoQualityEnabledChanged)==null?void 0:ut.call(ce,!!At)})),this.subscription.add(new uw(At=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(ut=>At.next(ut)))}).pipe(mw(1)).subscribe(At=>{var ut;return(ut=ce==null?void 0:ce.onCurrentPlaybackRateChanged)==null?void 0:ut.call(ce,At)})),this.subscription.add(this.store.state.volume$.subscribe(At=>{var ut;return(ut=ce==null?void 0:ce.onVolumeChange)==null?void 0:ut.call(ce,At)})),this.subscription.add(this.store.state.muted$.subscribe(At=>{var ut,di,Co,Wi;if(At)(ut=ce==null?void 0:ce.onMute)==null||ut.call(ce);else{let ti=(Co=((di=this.store)==null?void 0:di.state.volume$)&&ye(this.store.state.volume$))!=null?Co:0;(Wi=ce==null?void 0:ce.onUnmute)==null||Wi.call(ce,ti)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(At=>{var ut;return(ut=ce==null?void 0:ce.onVideoBitrateChanged)==null?void 0:ut.call(ce,At)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(At=>{var ut;let di=(ut=this.store)==null?void 0:ut.ui.controls.disabledControls$;di&&(At&&!di.includes(Zl)&&di.add(Zl),At||di.remove(Zl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async At=>{var ut;if(!_0.browser.isSamsungBrowser||!At||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((ut=this.videoConfig)==null?void 0:ut.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(At=>{var ut;return(ut=ce==null?void 0:ce.onVSIDChanged)==null?void 0:ut.call(ce,At)})),this.initMediaSession(),O(Nn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:ht,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:at,thumbUrl:yt,subtitles:zt,live:Se,preload:T,autoplay:E,muted:I,volume:R,fromTime:M,canRewindLive:k,supportLink:G,showAds:H,adsSlotId:F,adsParams:te,adsPreviewParam:Y,adsAutoplayParam:j,duration:Xt,logoClickable:fe,logoHidden:be,isMobile:Pe!=null?Pe:me,failoverHosts:N,fullScreenTarget:ae,saveRate:X,shadowRootContainer:this.shadowRootContainer,showMiniTimer:oe,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ne.nextVideoTitle,endScreenVideoThumb:ne.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Ae,showEndScreen:ke,showAutoplayNext:ze},!0);let tn={target:this.playerContainer,props:r(Nn)};this.svelteRootComponent=is(uv,tn),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(si=(lt=(Gt=this.videoConfig)==null?void 0:Gt.callbacks)==null?void 0:lt.onInited)==null||si.call(lt)),(Li=this.internalsExposure)==null||Li.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((ri=(Pt=this.videoConfig)==null?void 0:Pt.callbacks)!=null&&ri.onDevNullLog)?Jd.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Jd.destroy("ui")};this.coreConfig.asyncResolveClientChecker?_0.isInited$.subscribe(Gt=>{Gt&&(console.log("UI SDK async start"),Mi())}):Mi()}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:p})=>p).filter(p=>p!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&s.onAudioLanguagesAvailable&&s.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var a,p;return d?(a=s.onPiPEnter)==null?void 0:a.call(s):(p=s.onPiPExit)==null?void 0:p.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&&yv(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)}async initInteractives(){var e,i,o,n,s,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=await import("@vkontakte/videoplayer-interactive/es2018");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let a=(i=this.store)==null?void 0:i.interfaceLanguage$,p=a?ye(a):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:m,historyApi:u,videoLoader:y}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:p,graph:this.uiConfig.features.interactiveGraph,projectInfo:f,initChapterId:m,historyApi:u,vkVideoLoader:y,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation},endChapterHistoryFix:this.uiConfig.features.interactiveHistoryEndChapterFix});let{isInteractiveExpectation$:w,isSeekable$:x}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(x.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]={...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,G,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 q=ye(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:(G=k.callbacks).onDisabledInteractiveClick)==null||H.call(G)}})),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)})),await 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,p,f,m,u,y,w,x,S,T,E,R,I,M,k,G,H,F,q,Y,j,ue,re;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let fe=new Error("empty videos");this.fatalError$.next(fe),(n=(o=e.callbacks)==null?void 0:o.onCrashed)==null||n.call(o,fe.message);return}else this.fatalError$.next(null);if(this.videoConfig=Kd($w,lw(e,fe=>fe instanceof HTMLElement?fe:void 0)),this.playerId=vw(e.playerId),this.uiConfig=dh((s=i.ui)!=null?s:{}),this.coreConfig=(l=i.core)!=null?l:{configName:[]},this.statisticsConfig=(d=i.statistics)!=null?d:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer&&(this.rootContainer.style.minHeight="unset"),this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},this.uiConfig.features.exposeInternalsToGlobal&&((p=this.internalsExposure)!=null||(this.internalsExposure=new fw("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:[sw()]}),yv(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(u=(m=this.uiConfig.features.mediaSession)!=null?m:this.videoConfig.isMediaSessionEnabled)!=null?u:!0),yv(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(w=(y=this.uiConfig.features.pip)!=null?y:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0,this.uiConfig.features.dpip=(S=(x=this.uiConfig.features.dpip)!=null?x: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=!((G=this.uiConfig.showLogo)!=null?G:!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=(Y=this.uiConfig.features.autoplayNext)!=null?Y: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 fe={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Ru.getLatestSupportedVersion(fe):this.pictureInPictureApi=new ca(fe)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Vu:void 0,this.slotsApi=this.uiConfig.features.slots?new Pu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Nu(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteErrorComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),c0(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(re=this.slotsApi)==null||re.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new Du(this._shadowRoot):void 0}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();r(Nn)&&(r(Nn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Nn).nextButtonActive=this.isNextButtonActive(),r(Nn).prevButtonActive=this.isPrevButtonActive(),r(Nn).endScreenVideoTitle=o.nextVideoTitle,r(Nn).endScreenVideoThumb=o.nextVideoThumb,r(Nn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",n=>this.seekTime(n.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>{var n,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(n=this.videoConfig)==null?void 0:n.callbacks)==null?void 0:s.onNextVideoClick)==null||l.call(s)}catch(d){this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{var n,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(n=this.videoConfig)==null?void 0:n.callbacks)==null?void 0:s.onPrevVideoClick)==null||l.call(s)}catch(d){this.log({message:"onPrevVideoClick callback failed to execute"})}else this.playPrevVideo()}])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,n;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}changeSubtitle(e,i){var o;this.log({message:"change subtitle"}),(o=this.svelteRootComponent)==null||o.changeSubtitle(e,i)}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,r(Nn)&&(r(Nn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(Nn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Nn).nextButtonActive=this.isNextButtonActive(),r(Nn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(e)}setAutoQuality(){var e;(e=this.svelteRootComponent)==null||e.setAutoQuality()}toggleTrafficSaving(e){var i;(i=this.svelteRootComponent)==null||i.toggleTrafficSaving(e)}toggleHighQuality(e){var i;(i=this.svelteRootComponent)==null||i.toggleHighQuality(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}async setLanguage(e){var i;await((i=this.store)==null?void 0:i.actions.internal.setLanguage(e))}setLiveStart(e){var i,o;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()}async replayInteractiveChapter(e){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=ye(this.store.state.positionExact$),l=ye(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe(pw()).subscribe(()=>{l&&n>=l.time?this.seekTime(l.time):this.seekTime(n),e==null||e()});let d=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&(this.statistics.oneStat&&this.statistics.oneStat.updateContext(e),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}restoreFocus(){var e;(e=this.focusManager)==null||e.restoreFocus()}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}setAutoplayNext(e){var i;(i=this.store)==null||i.actions.internal.setAutoplayNextEnabled(e)}unmountComponent(e){e&&oa(e)}};import{InterfaceLanguage as Eee,VKNumericLanguage as Iee,loadVKLangPack as kee}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as Aee,VideoFormat as Mee}from"@vkontakte/videoplayer-core/es2018";var bee=()=>{window.customElements.define("vk-video-player",Hu)};export{_u as ControlButtonType,ns as GridTypes,Eee as InterfaceLanguage,dd as MenuItemType,hs as PlayerPhase,tl as VERSION,Iee as VKNumericLanguage,Mee as VideoFormat,Aee as VideoQuality,kee as loadVKLangPack,bee 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 tv(t,e){U(e,!0),q(t,b5);let[i,o]=He(),n=()=>C(Xt,"$isLive$",i),s=()=>C(ct,"$availableSubtitlesList$",i),l=m(e,"sources",7),d=m(e,"store",7),a=m(e,"microStoresRoot",7),p=m(e,"videoConfig",7),f=m(e,"uiConfig",7),v=m(e,"title",7),u=m(e,"thumbUrl",7),y=m(e,"interactiveContainer",7),w=m(e,"interactiveController",7),x=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),Y=m(e,"showAds",7),H=m(e,"adsSlotId",7,void 0),F=m(e,"adsParams",7,void 0),W=m(e,"adsPreviewParam",7,void 0),J=m(e,"adsAutoplayParam",7,void 0),G=m(e,"duration",7,void 0),ce=m(e,"logoClickable",7),ie=m(e,"logoHidden",7),ue=m(e,"isMobile",7),$e=m(e,"showNextPrevButtons",7,!1),fe=m(e,"nextButtonActive",7,!1),ke=m(e,"prevButtonActive",7,!1),ne=m(e,"endScreenVideoTitle",7,void 0),Ve=m(e,"endScreenVideoThumb",7,void 0),re=m(e,"isOneVideoPlaylist",7,!1),N=m(e,"supportLink",7),Be=m(e,"shadowRootContainer",7),le=m(e,"outerContainerRef",7),ve=m(e,"fullScreenTarget",7,void 0),te=m(e,"failoverHosts",7,void 0),me=m(e,"showMiniTimer",7,!1),De=m(e,"saveRate",7),pe=m(e,"seekToInteractive",7,J1),st=m(e,"playPrevChapter",7,J1),Z=m(e,"volumeMultiplier",7),Ae=m(e,"showAutoplayNext",7),Ie=m(e,"showEndScreen",7,!0),ze=m(e,"keyboardControls",15,void 0),{subscribers:at,stores:ft}=a();eh(f());let mt=Et(),wt=f().logoLink,Ge=d().ui.debugPanelVisible,Bt=d().ui.playerSize,Xt=d().state.isLive$,Ut=d().state.isInteractive&&ev.device.isAndroid,oe=j(void 0),Dt=null,he=j(!1);d().getAdmanWrapper().init({switchFromAdsToVideo:d().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:d().actions.internal.switchFromVideoToAds,setMuted:d().actions.external.setMuted},d().ads,{vsid:d().vsid}),ch(d(),ft),Ke(()=>{var D,Ue;d().ui.isMobile.set(ue()),(Ue=(D=p().callbacks)==null?void 0:D.onDomReady)==null||Ue.call(D)});let we=(D=!1)=>{O(he,!0),D?d().actions.external.firstStart(Y()):d().actions.internal.firstStart(Y())},ae=()=>{if(mt.features.qualityDetailsSubMenuEnabled){let D=Ah(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{Mh(d().videoId),Gp()&&d().actions.internal.setTrafficSavingEnabled(!0);let Ue=Wp(d().videoId);Ue&&d().actions.internal.setQuality(Ue)}};function Re(D){var ai,li,go;let Ue=l()||D;Ue&&d().initVideo({container:r(oe),sources:Ue,failoverHosts:te(),subtitles:x(),volumeMultiplier:Z()});let ut=v5.get(ql)==="true";Ge.set(ut),I()>0&&d().actions.external.seekTime(I());let Ht=ue()?mt.volumeDefault:(li=(ai=V())!=null?ai:Dc())!=null?li:mt.volumeDefault,dt=(go=k())!=null?go:Ch();if(d().actions.external.setVolume(Ht),d().actions.external.setMuted(dt),d().getAdmanWrapper().setInitialVolume(dt?0:Ht),ae(),mt.features.saveRate&&De()){let di=Ih();di&&!n()&&d().actions.internal.setPlaybackRate(di)}if(Ae()){let di=Ph();di&&d().actions.internal.setAutoplayNextEnabled(di)}d().ui.isAutoplay.set(E()),E()&&we(),T()&&mt.features.preload&&d().actions.internal.preload()}let qe=D=>{if(window.ResizeObserver){let Ue,ut;Dt=new ResizeObserver(g5(Ht=>{let dt=Ht[0];if(dt.contentBoxSize){let ai=Array.isArray(dt.contentBoxSize)?dt.contentBoxSize[0]:dt.contentBoxSize;Ue=ai.inlineSize,ut=ai.blockSize}else dt.contentRect&&(Ue=dt.contentRect.width,ut=dt.contentRect.height);Bt.set({width:Ue,height:ut})},300)),Dt.observe(D)}Bt.set({width:D.clientWidth,height:D.clientHeight})},Le=()=>{document.hidden&&d().actions.external.stop()};Pt(()=>{var ut,Ht,dt,ai;Ut&&document.addEventListener("visibilitychange",Le),mt.debugLog&&d().actions.internal.startLogging(),qe(r(oe));let D=at.map(li=>li.init({store:d(),microStores:ft,config:p(),interactiveController:w(),uiConfig:f()})),Ue=()=>{Ut&&document.removeEventListener("visibilitychange",Le),Dt==null||Dt.disconnect(),D.forEach(li=>li.unsubscribe()),d().destroy()};return((ut=S())==null?void 0:ut.status)==="upcoming"?(d().actions.internal.setLiveWaitingStart(!0),Ue):((Ht=S())==null?void 0:Ht.status)==="waiting"?(d().actions.internal.setLiveWaitingRecover(!0),Ue):(((dt=S())==null?void 0:dt.status)==="finished"||((ai=S())==null?void 0:ai.status)==="postlive")&&!(l()&&m5(l()))?(d().actions.internal.setLiveWaitingRecord(!0),Ue):(Re(),Ue)});function je(){r(he)?d().actions.external.play():we(!0)}function Oe(){d().actions.external.pause()}function Je(D){d().actions.external.setMuted(D)}function At(){d().actions.external.toggleSubtitle()}function zt(D,Ue){d().actions.external.changeSubtitle(D,Ue)}function et(){var D;(D=d().webApi.slotsApi)!=null&&D.haveSlots()&&d().actions.external.hideControls()}function $i(){var D;(D=d().webApi.slotsApi)!=null&&D.haveSlots()&&d().actions.external.showControls()}function vi(D){ue()||D>=0&&D<=1&&d().actions.external.setVolume(D)}function tt(D){d().actions.internal.seekTime(D,h5.UNKNOWN)}function ii(D){d().actions.external.seekEpisodeStartTime(D)}function Qt(){d().actions.external.returnFocusToEpisodes()}function gi(D){d().actions.external.setPlaybackRate(D)}function Io(D){d().actions.external.setAutoQualityLimits(D)}function vo(){d().actions.external.setQuality("auto")}function Ot(D){d().actions.external.setTrafficSavingEnabled(D)}function ri(D){d().actions.external.setHighQualityEnabled(D)}let on=Iu(mt.view),It=p().playerView==="preview",ct=d().state.availableSubtitlesList$;if(mt.features.initSubtitles){let D=!1;Ke(()=>{if(!D&&s().length){D=!0;let Ue;if(mt.features.userVideoPrefs&&d().videoId){let Ht=zc(mt.userSalt,String(d().videoId));Ht!=null&&Ht.subtitleTrackId&&(Ue=s().find(dt=>dt.value===Ht.subtitleTrackId))}let ut=Yp();ut&&(Ue!=null||(Ue=s().find(Ht=>Ht.language===ut))),d().actions.internal.setSubtitle(Ue)}})}var hi=_5();let ko;var Ui=_(hi);{var oi=D=>{Xm(D,{get store(){return d()},get uiConfig(){return mt},get thumbUrl(){return u()},get interactiveContainer(){return y()},get live(){return S()},get autoplay(){return E()},get canRewindLive(){return R()},get showAds(){return Y()},get adsSlotId(){return H()},get adsParams(){return F()},get adsPreviewParam(){return W()},get adsAutoplayParam(){return J()},get duration(){return G()},get logoClickable(){return ce()},get logoHidden(){return ie()},get logoTargetUrl(){return wt},get nextButtonActive(){return fe()},get prevButtonActive(){return ke()},get endScreenVideoTitle(){return ne()},get endScreenVideoThumb(){return Ve()},get isOneVideoPlaylist(){return re()},get supportLink(){return N()},get shadowRootContainer(){return Be()},get outerContainerRef(){return le()},get fullScreenTarget(){return ve()},get showMiniTimer(){return me()},get playerStarted(){return r(he)},get seekToInteractive(){return pe()},get playPrevChapter(){return st()},firstStart:we,seekTime:tt,get showEndScreen(){return Ie()},get showAutoplayNext(){return Ae()},get showNextPrevButtons(){return $e()},get videoContainer(){return r(oe)},set videoContainer(Ue){O(oe,Ue,!0)}})},Wo=D=>{var Ue=We(),ut=ge(Ue);{var Ht=ai=>{Jm(ai,{get thumbUrl(){return u()},get outsideDuration(){return G()},get canRewindLive(){return R()},get videoContainer(){return r(oe)},set videoContainer(li){O(oe,li,!0)}})},dt=ai=>{Ym(ai,{get store(){return d()},get uiConfig(){return mt},get title(){return v()},get thumbUrl(){return u()},get interactiveContainer(){return y()},get live(){return S()},get autoplay(){return E()},get canRewindLive(){return R()},get showAds(){return Y()},get adsSlotId(){return H()},get adsParams(){return F()},get adsPreviewParam(){return W()},get adsAutoplayParam(){return J()},get duration(){return G()},get logoClickable(){return ce()},get logoHidden(){return ie()},get logoTargetUrl(){return wt},get nextButtonActive(){return fe()},get prevButtonActive(){return ke()},get endScreenVideoTitle(){return ne()},get endScreenVideoThumb(){return Ve()},get isOneVideoPlaylist(){return re()},get supportLink(){return N()},get shadowRootContainer(){return Be()},get outerContainerRef(){return le()},get fullScreenTarget(){return ve()},get showMiniTimer(){return me()},get playerStarted(){return r(he)},get seekToInteractive(){return pe()},get playPrevChapter(){return st()},firstStart:we,get showEndScreen(){return Ie()},get showAutoplayNext(){return Ae()},get showNextPrevButtons(){return $e()},get videoContainer(){return r(oe)},set videoContainer(li){O(oe,li,!0)},get keyboardControls(){return ze()},set keyboardControls(li){ze(li)}})};L(ut,ai=>{It?ai(Ht):ai(dt,!1)})}$(D,Ue)};L(Ui,D=>{ue()?D(oi):D(Wo,!1)})}h(hi),B(D=>{ko=ee(hi,1,"root svelte-16kg8zb",null,ko,D),rt(hi,on)},[()=>({"root--miui-browser":ev.device.isMobile&&ev.browser.isMiuiBrowser,"visible-outside":It})]),$(t,hi);var Dn=z({initVideo:Re,play:je,pause:Oe,setMuted:Je,toggleSubtitle:At,changeSubtitle:zt,hideControls:et,showControls:$i,setVolume:vi,seekTime:tt,seekEpisodeStartTime:ii,returnFocusToEpisodes:Qt,setPlaybackRate:gi,setAutoQualityLimits:Io,setAutoQuality:vo,toggleTrafficSaving:Ot,toggleHighQuality:ri,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 p()},set videoConfig(D){p(D)},get uiConfig(){return f()},set uiConfig(D){f(D)},get title(){return v()},set title(D){v(D)},get thumbUrl(){return u()},set thumbUrl(D){u(D)},get interactiveContainer(){return y()},set interactiveContainer(D){y(D)},get interactiveController(){return w()},set interactiveController(D){w(D)},get subtitles(){return x()},set subtitles(D){x(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 Y()},set showAds(D){Y(D)},get adsSlotId(){return H()},set adsSlotId(D){H(D)},get adsParams(){return F()},set adsParams(D){F(D)},get adsPreviewParam(){return W()},set adsPreviewParam(D){W(D)},get adsAutoplayParam(){return J()},set adsAutoplayParam(D){J(D)},get duration(){return G()},set duration(D){G(D)},get logoClickable(){return ce()},set logoClickable(D){ce(D)},get logoHidden(){return ie()},set logoHidden(D){ie(D)},get isMobile(){return ue()},set isMobile(D){ue(D)},get showNextPrevButtons(){return $e()},set showNextPrevButtons(D){$e(D)},get nextButtonActive(){return fe()},set nextButtonActive(D){fe(D)},get prevButtonActive(){return ke()},set prevButtonActive(D){ke(D)},get endScreenVideoTitle(){return ne()},set endScreenVideoTitle(D){ne(D)},get endScreenVideoThumb(){return Ve()},set endScreenVideoThumb(D){Ve(D)},get isOneVideoPlaylist(){return re()},set isOneVideoPlaylist(D){re(D)},get supportLink(){return N()},set supportLink(D){N(D)},get shadowRootContainer(){return Be()},set shadowRootContainer(D){Be(D)},get outerContainerRef(){return le()},set outerContainerRef(D){le(D)},get fullScreenTarget(){return ve()},set fullScreenTarget(D){ve(D)},get failoverHosts(){return te()},set failoverHosts(D){te(D)},get showMiniTimer(){return me()},set showMiniTimer(D){me(D)},get saveRate(){return De()},set saveRate(D){De(D)},get showAutoplayNext(){return Ae()},set showAutoplayNext(D){Ae(D)},get seekToInteractive(){return pe()},set seekToInteractive(D){pe(D)},get playPrevChapter(){return st()},set playPrevChapter(D){st(D)},get volumeMultiplier(){return Z()},set volumeMultiplier(D){Z(D)},get showEndScreen(){return Ie()},set showEndScreen(D){Ie(D)},get keyboardControls(){return ze()},set keyboardControls(D){ze(D)}});return o(),Dn}var $5=Te('<svg><!><path fill="currentColor" d="M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"></path></svg>');function iv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=$5();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}function ov(t,e){let i=m(e,"isWhite",3,!1),o=g(()=>i()?"color: #fff;":"color: #909499;");iv(t,{get style(){return r(o)}})}var y5=M('<div class="title svelte-1y9fytq"> </div>'),x5=M('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),w5={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 nv(t,e){q(t,w5);var i=x5(),o=_(i);{var n=d=>{var a=y5(),p=_(a,!0);h(a),B(()=>be(p,e.title)),$(d,a)};L(o,d=>{e.title&&d(n)})}var s=P(o,2);{var l=d=>{let a=g(()=>!!e.thumbUrl);ov(d,{get isWhite(){return r(a)}})};L(s,d=>{(!e.title||!e.thumbUrl)&&d(l)})}h(i),B(()=>rt(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),$(t,i)}var S5=M('<div class="playerError svelte-m5iv29"><!></div>'),C5={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 rv(t){q(t,C5);var e=S5(),i=_(e);Ca(i,{}),h(e),$(t,e)}import{now as Z5,ValueSubject as X5}from"@vkontakte/videoplayer-shared/es2018";import{cloneDeepWith as J5,InterfaceLanguage as ew,isNonNullable as uv,Logger as tw,Observable as iw,Subscription as a0,once as ow,InternalsExposure as nw,skip as rw,getPlayerId as sw}from"@vkontakte/videoplayer-shared/es2018";import{clientChecker as l0,isMobile as aw}from"@vkontakte/videoplayer-core/es2018";import{OneStat as lw,ThinOneStat as dw,MediascopePixel as cw}from"@vkontakte/videoplayer-statistics/es2018";import{Logger as T5,Subscription as E5}from"@vkontakte/videoplayer-shared/es2018";var ku=class{constructor(){this.subscription=new E5,this.logger=new T5,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 lv,detectEmbed as L5}from"@vkontakte/videoplayer-shared/es2018";var I5=Te('<svg><!><g fill="var(--btn-color, #fff)"><path d="m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"></path><path d="M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"></path></g></svg>');function sv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=I5();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var k5=M('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),P5={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 av(t,e){U(e,!0),q(t,P5);let[i,o]=He(),n=()=>C(p,"$interfaceLanguage$",i),s=()=>C(f,"$isMobile$",i),l=Ee(),d=Et(),a=!!l.webApi.pictureInPictureApi,p=l.interfaceLanguage$,f=l.ui.isMobile,v=l.ui.t,u=g(()=>n()&&v("pip_dummy_title")),y=Iu(d.view);var w=k5();let x;var S=_(w);let T;var E=_(S);sv(E,{}),h(S);var V=P(S,2),k=_(V,!0);h(V),h(w),B((I,R)=>{x=ee(w,1,"player-pip-dummy svelte-1pbsod4",null,x,I),rt(w,y),T=ee(S,1,"dummy-image svelte-1pbsod4",null,T,R),be(k,r(u))},[()=>({"is-pip-api":a}),()=>({desktop:!s()})]),$(t,w),z(),o()}var A5=Object.defineProperty,M5=(t,e,i)=>e in t?A5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,hl=(t,e,i)=>M5(t,typeof e!="symbol"?e+"":e,i),V5=460,R5=280,Hd=class{constructor({enabled:e=!0}={enabled:!0}){hl(this,"playerDomElement"),hl(this,"playerParentShadowRoot"),hl(this,"playerDummyElement"),hl(this,"svelteContext"),hl(this,"pipWindow"),hl(this,"info",{isActive$:new lv(!1),isEnabled$:new lv(!1),type:1}),this.info.isEnabled$=new lv(e)}isSupported(){let{isEmbed:e}=L5();return"documentPictureInPicture"in window&&!e}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}async request(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:V5,height:R5,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(p=>p.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=is(av,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||(oa(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})}async exit(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})}async dispose(){await this.exit()}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function e0(t){return t instanceof Hd}var Pu=class{static getLatestSupportedVersion(e){let i=new ca(e),o=new Hd(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Fd(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 t0="Inner error. Unexpectedly root annotation container null reference exception",i0="Annotation with such name already exists",o0="Annotation with such name does not exist";var _l=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as N5,Subscription as O5,throttleFn as B5}from"@vkontakte/videoplayer-shared/es2018";var D5="1",H5=100,Au=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new O5}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=B5(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},H5);this.subscriptions.add(N5(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 _l(t0);if(this.annotations.has(e))throw new _l(i0);i.style.zIndex=(o=i.style.zIndex)!=null?o:D5,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 _l(o0);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 Mu,Subscription as F5}from"@vkontakte/videoplayer-shared/es2018";var tn=class{init({store:e,microStores:i,interactiveController:o,config:n}){return Mu(e),Mu(i),Mu(n),n.interactiveData&&Mu(o),this.subscription=new F5,this.subscription}};var Ud=class extends tn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...se(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 tn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...se(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:p,isMobile:f}=s.ui,v=xe(f),u=()=>v&&xe(p);return o.add(p.subscribe(y=>{if(!v)return;let w=xe(l);xe(a)?this.state$.set(y):w!==null&&this.state$.set(!w||y)})),o.add(a.subscribe(y=>{this.state$.set(!y||u())})),o.add(l.subscribe(y=>{if(y===null)return;let w=xe(d);if(u()){this.state$.set(!0);return}w&&this.state$.set(!y)})),o}};var Wd=class extends tn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=se("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 U5}from"@vkontakte/videoplayer-shared/es2018";var dv=se(!1),Lu=null,Kd=class extends tn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...dv,set:(i,o=!1)=>{i!==xe(dv)&&(this.clearTimeout(),dv.set(i),!i&&Lu&&(Lu=!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:p}=n.ui.controls;o.add(a.subscribe(v=>{xe(l)&&v&&this.state$.set(!1)}));let f=(s==null?void 0:s.interactiveData)||{tooltipHelpHintActive:!1};return o.add(U5({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:p}).subscribe(({isPlaying$:v,isInteractiveTime$:u,interactiveTimeIndicator:y})=>{var w,x;if(!(!v||!(y!=null&&y.isDisplayed))){if(!u)return this.state$.set(!1);f.tooltipHelpHintActive&&Lu===null&&(Lu=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(x=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||x.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as z5,noop as W5}from"@vkontakte/videoplayer-shared/es2018";var qd=class extends tn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...se(null),toggle:W5};this.checkIfShouldHide=i=>Hs(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=async()=>{if(this.checkIfShouldHide(xe(l)))return;let a=xe(this.state$),{isEnded$:p,playbackState$:f}=n.state,{disabledControls$:v}=n.ui.controls,u=xe(p),y=xe(f);if(a)try{await(s==null?void 0:s.toggleGraphView(!1)),this.state$.set(!1),v.remove(Np),!u&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=y==="playing";try{await(s==null?void 0:s.toggleGraphView(!0)),this.state$.set(!0),v.add(Np),!u&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add(z5({graphIsOpened:this.state$,currentGridType:l}).subscribe(async({graphIsOpened:a,currentGridType:p})=>{if(this.checkIfShouldHide(p)&&a)try{await(s==null?void 0:s.toggleGraphView(!1)),this.state$.set(!1)}catch(v){d({message:"Cant hide graph"})}})),o}};import{ValueSubject as n0}from"@vkontakte/videoplayer-shared/es2018";var Qd=class extends tn{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:se(!1),isEnabled$:se(!1),type$:se(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 n0(!1),isEnabled$:new n0(!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 Q5,filterChanged as G5}from"@vkontakte/videoplayer-shared/es2018";import{safeStorage as cv}from"@vkontakte/videoplayer-shared/es2018";var r0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?K5({maxCount:t}):void 0,e!==0?q5({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},K5=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,cv.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}}},q5=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(cv.get(e)||"{}")}catch(s){return{}}},o=s=>cv.set(e,JSON.stringify(s)),n=s=>{let l=i();delete l[s],o(l)};return{notificationShowed:s=>{o({...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 Gd=class extends tn{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:se({}),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=r0({maxShowCount:s,timeout:l});let p=n.getPlayer();return o.add(p.events.severeStallOccured$.pipe(G5(),Q5(f=>f)).subscribe(()=>{d&&!p.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(a&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var s0=()=>[Ud,zd,Wd,Kd,qd,Qd,Gd].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});import{devNull as jd}from"@vkontakte/videoplayer-shared/es2018";var Vu=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 j5=Object.defineProperty,Y5=(t,e,i)=>e in t?j5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Kt=(t,e,i)=>Y5(t,typeof e!="symbol"?e+"":e,i),uw={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:ew.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:aw(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Bn=j(void 0),Ru=class extends HTMLElement{constructor(){super(),Kt(this,"svelteStubComponent"),Kt(this,"svelteRootComponent"),Kt(this,"svelteErrorComponent"),Kt(this,"store"),Kt(this,"microStoresRoot"),Kt(this,"statistics"),Kt(this,"sentry"),Kt(this,"_shadowRoot"),Kt(this,"playerContainer"),Kt(this,"rootContainer"),Kt(this,"shadowRootContainer"),Kt(this,"playerId"),Kt(this,"uiConfig"),Kt(this,"coreConfig"),Kt(this,"statisticsConfig"),Kt(this,"interactiveController"),Kt(this,"interactiveContainer"),Kt(this,"graphMadePause"),Kt(this,"currentPlayingVideoIndex",0),Kt(this,"needToRepeatPlaylist",!1),Kt(this,"videoConfig"),Kt(this,"pictureInPictureApi"),Kt(this,"mediaSessionApi"),Kt(this,"unsubscribePlayerPhaseSubscription"),Kt(this,"logger"),Kt(this,"log"),Kt(this,"subscription"),Kt(this,"interactiveSubscription"),Kt(this,"annotationsApi"),Kt(this,"slotsApi"),Kt(this,"focusManager"),Kt(this,"prevIsid"),Kt(this,"isInited",!1),Kt(this,"internalsExposure",null),Kt(this,"shadowDOMCallbacksDisabled",!1),Kt(this,"fatalError$",new X5(null)),Kt(this,"createOneStat",(e,i={})=>{var o,n,s,l;if(!this.videoConfig)return;let{albumId:d,statPlace:a,statUserSalt:p,statTrackCode:f,statVKAppId:v,refreshStatAuthToken:u,autoplay:y,isMobile:w,isTouch:x,refDomain:S,deviceId:T,interactiveData:E}=Fd(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 lw({movieId:I,albumId:d,place:a,trackCode:f,vkAppId:v,autoplay:(l=y&&!this.interactiveController)!=null?l:!1,mobile:x!=null?x:w,clip:R,refDomain:S,deviceId:T,isPreviewPlayerView:this.videoConfig.playerView==="preview",...V&&(!this.isInited||k)&&{projectId:Number(V)}},{refreshAuthToken:u,userSalt:p,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 tw,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new a0,this.interactiveSubscription=new a0,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=is(rv,{target:this.playerContainer}))})}connectedCallback(){var e,i;if(this.rootContainer)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,n=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,s=ni({title:o,thumbUrl:n}),l={target:this.playerContainer,props:s};this.svelteStubComponent=is(nv,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}=Fd(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new dw.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,p,f,v,u,y;if(!this.videoConfig)return;let{albumId:w,statPlace:x,statAuthToken:S,preload:T,autoplay:E,volume:V,muted:k,fromTime:I,canRewindLive:R,supportLink:Y,showAds:H,adsSlotId:F,adsParams:W={},adsPreviewParam:J,adsAutoplayParam:G,interfaceLanguage:ce,isCyrillicRelatedInterface:ie,logoClickable:ue,logoHidden:$e,isMobile:fe,isTouch:ke,isAudioDisabled:ne,isLiveCatchUpMode:Ve,fullScreenTarget:re,failoverHosts:N,canDownload:Be,callbacks:le,interactiveData:ve,showThumbTimer:te,additionalButtons:me=[],additionalSettingsMenuItems:De=[],additionalContextMenuItems:pe=[],repeat:st,saveRate:Z,volumeMultiplier:Ae,showEndScreen:Ie,showAutoplayNext:ze,mediascopePixels:at}=Fd(this.videoConfig,i),{sources:ft,title:mt,thumbUrl:wt,unitedVideoId:Ge,isClip:Bt=!1,duration:Xt,adsParams:qt={},videoEpisodes:Ut,previewThumbsData:oe,subtitles:Dt,live:he}=e;if(!ft&&!he){let Qt=new Error("empty sources and live");this.fatalError$.next(Qt),(n=le.onCrashed)==null||n.call(le,Qt.message);return}let we={...W,...qt},ae=this.getNextVideoInfo(),Re={sources:ft,title:mt,thumbUrl:wt,subtitles:Dt,unitedVideoId:Ge,isClip:Bt,live:he,albumId:w,statPlace:x,autoplay:E,muted:k,volume:V,fromTime:I,canRewindLive:R,showAds:H,adsSlotId:F,adsParams:we,adsPreviewParam:J,adsAutoplayParam:G,duration:Xt,logoClickable:ue,logoHidden:$e,isTouch:ke!=null?ke:fe,repeat:st,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ae.nextVideoTitle,endScreenVideoThumb:ae.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},qe={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(Re)}`});let Le=(s=this.interactiveController)==null?void 0:s.state.statistics$.getValue(),je=(Le==null?void 0:Le.oneStat)||this.createOneStat(e,i),Oe=this.createThinOneStat(e,i),Je;at&&(Je=new cw({pixels:at})),(je||Oe)&&(this.statistics=new pu(je,Oe,Je,Le==null?void 0:Le.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new da(this.uiConfig.sentry,{version:il,env:Nc},{movieId:Ge,albumId:w,place:x,autoplay:(l=E&&!this.interactiveController)!=null?l:!1,mobile:ke!=null?ke:fe,clip:Bt}),this.interactiveController&&((p=this.prevIsid)!=null||(this.prevIsid=(a=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:a.isid$.getValue())),this.sentry={...this.sentry,...da.getInstance()};let zt=!!ve,et=[],$i="tooltip_interactive_go_back_disabled_first";if(zt&&this.interactiveController){let Qt=this.interactiveController.state.isInitialChapter$.getValue(),gi=this.interactiveController.getHistoryState();Qt&&et.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||et.push("SEEK_TO_INTERACTIVE_BUTTON"),gi.hasPrevChapter$.getValue()||(et.push("PLAY_PREV_CHAPTER_BUTTON"),Qt||(gi.isGoBackLimited$.getValue()?$i="tooltip_interactive_go_back_disabled_limit":$i="tooltip_interactive_go_back_disabled"))}let vi=()=>{var Qt;this.isInited=!1,this.prevIsid=void 0;let gi=(o==null?void 0:o.info.isEnded$.getValue())&&((Qt=this.interactiveController)==null?void 0:Qt.state.isEndChapter$.getValue());le.onReplayInteractiveVideo&&!gi?le.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=y1({player:o,interfaceLanguage:ce,isCyrillicRelatedInterface:ie,videoId:Ge,isClip:Bt,isLiveCatchUpMode:Ve,isAudioDisabled:ne,statAuthToken:S,callbacks:le,webApi:qe,videoEpisodes:Ut,previewThumbsData:oe,canDownload:Be,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:et,isInteractive:zt,saveRate:Z,interactiveRanges$:(f=this.interactiveController)==null?void 0:f.state.interactiveRanges$,isInteractiveTime$:(v=this.interactiveController)==null?void 0:v.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:vi,playPrevChapterDisabledTooltip:$i,hasInteractiveBranches:!!((y=(u=this.interactiveController)==null?void 0:u.getChapterBranches())!=null&&y.length),additionalButtons:this.uiConfig.features.additionalButtons?me:[],additionalSettingsMenuItems:De!=null?De:[],additionalContextMenuItems:pe!=null?pe:[],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:tt}=this.microStoresRoot=s0(),ii=()=>{var Qt,gi,Io,vo,Ot,ri;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(It=>{var ct;return(ct=le==null?void 0:le.onCurrentFormatChanged)==null?void 0:ct.call(le,It)})),this.subscription.add(tt.interactiveControlsOpacity$.subscribe(It=>{var ct;It!==null&&((ct=this==null?void 0:this.interactiveController)==null||ct.setDisabledControls(It))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(It=>{var ct;return(ct=le==null?void 0:le.onThroughputEstimationChanged)==null?void 0:ct.call(le,It)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(It=>{var ct;return(ct=le==null?void 0:le.onTrafficSavingEnabledChanged)==null?void 0:ct.call(le,It)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(It=>{var ct;return(ct=le==null?void 0:le.onHighQualityEnabledChanged)==null?void 0:ct.call(le,It)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(It=>{var ct;return(ct=le==null?void 0:le.onAutoQualityEnabledChanged)==null?void 0:ct.call(le,!!It)})),this.subscription.add(new iw(It=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(ct=>It.next(ct)))}).pipe(rw(1)).subscribe(It=>{var ct;return(ct=le==null?void 0:le.onCurrentPlaybackRateChanged)==null?void 0:ct.call(le,It)})),this.subscription.add(this.store.state.volume$.subscribe(It=>{var ct;return(ct=le==null?void 0:le.onVolumeChange)==null?void 0:ct.call(le,It)})),this.subscription.add(this.store.state.muted$.subscribe(It=>{var ct,hi,ko,Ui;if(It)(ct=le==null?void 0:le.onMute)==null||ct.call(le);else{let oi=(ko=((hi=this.store)==null?void 0:hi.state.volume$)&&xe(this.store.state.volume$))!=null?ko:0;(Ui=le==null?void 0:le.onUnmute)==null||Ui.call(le,oi)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(It=>{var ct;return(ct=le==null?void 0:le.onVideoBitrateChanged)==null?void 0:ct.call(le,It)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(It=>{var ct;let hi=(ct=this.store)==null?void 0:ct.ui.controls.disabledControls$;hi&&(It&&!hi.includes(Ql)&&hi.add(Ql),It||hi.remove(Ql))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async It=>{var ct;if(!l0.browser.isSamsungBrowser||!It||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((ct=this.videoConfig)==null?void 0:ct.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(It=>{var ct;return(ct=le==null?void 0:le.onVSIDChanged)==null?void 0:ct.call(le,It)})),this.initMediaSession(),O(Bn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:ft,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:mt,thumbUrl:wt,subtitles:Dt,live:he,preload:T,autoplay:E,muted:k,volume:V,fromTime:I,canRewindLive:R,supportLink:Y,showAds:H,adsSlotId:F,adsParams:we,adsPreviewParam:J,adsAutoplayParam:G,duration:Xt,logoClickable:ue,logoHidden:$e,isMobile:ke!=null?ke:fe,failoverHosts:N,fullScreenTarget:re,saveRate:Z,shadowRootContainer:this.shadowRootContainer,showMiniTimer:te,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ae.nextVideoTitle,endScreenVideoThumb:ae.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Ae,showEndScreen:Ie,showAutoplayNext:ze},!0);let on={target:this.playerContainer,props:r(Bn)};this.svelteRootComponent=is(tv,on),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Io=(gi=(Qt=this.videoConfig)==null?void 0:Qt.callbacks)==null?void 0:gi.onInited)==null||Io.call(gi)),(vo=this.internalsExposure)==null||vo.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((ri=(Ot=this.videoConfig)==null?void 0:Ot.callbacks)!=null&&ri.onDevNullLog)?jd.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):jd.destroy("ui")};this.coreConfig.asyncResolveClientChecker?l0.isInited$.subscribe(Qt=>{Qt&&(console.log("UI SDK async start"),ii())}):ii()}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:p})=>p).filter(p=>p!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&s.onAudioLanguagesAvailable&&s.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var a,p;return d?(a=s.onPiPEnter)==null?void 0:a.call(s):(p=s.onPiPExit)==null?void 0:p.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&&uv(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)}async initInteractives(){var e,i,o,n,s,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=await import("@vkontakte/videoplayer-interactive/es2018");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let a=(i=this.store)==null?void 0:i.interfaceLanguage$,p=a?xe(a):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:v,historyApi:u,videoLoader:y}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:p,graph:this.uiConfig.features.interactiveGraph,projectInfo:f,initChapterId:v,historyApi:u,vkVideoLoader:y,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation},endChapterHistoryFix:this.uiConfig.features.interactiveHistoryEndChapterFix});let{isInteractiveExpectation$:w,isSeekable$:x}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(x.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]={...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,Y,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(Gl)),T==="action-choice-canceled"){let W=xe(this.store.state.isPlaying$)||F;if(((I=(V=this.videoConfig)==null?void 0:V.isTouch)!=null?I:(k=this.videoConfig)!=null&&k.isMobile)&&W){this.store.ui.interactiveHideMobileControls.set(!0);return}(H=(R=this.videoConfig)==null?void 0:(Y=R.callbacks).onDisabledInteractiveClick)==null||H.call(Y)}})),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(Gl)})),await 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,p,f,v,u,y,w,x,S,T,E,V,k,I,R,Y,H,F,W,J,G,ce,ie;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let ue=new Error("empty videos");this.fatalError$.next(ue),(n=(o=e.callbacks)==null?void 0:o.onCrashed)==null||n.call(o,ue.message);return}else this.fatalError$.next(null);if(this.videoConfig=Fd(uw,J5(e,ue=>ue instanceof HTMLElement?ue:void 0)),this.playerId=sw(e.playerId),this.uiConfig=Jg((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&&((p=this.internalsExposure)!=null||(this.internalsExposure=new nw("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:[Z5()]}),uv(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(u=(v=this.uiConfig.features.mediaSession)!=null?v:this.videoConfig.isMediaSessionEnabled)!=null?u:!0),uv(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(w=(y=this.uiConfig.features.pip)!=null?y:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0,this.uiConfig.features.dpip=(S=(x=this.uiConfig.features.dpip)!=null?x: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=!((Y=this.uiConfig.showLogo)!=null?Y:!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=(W=this.uiConfig.features.endScreen)!=null?W:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(J=this.uiConfig.features.autoplayNext)!=null?J:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(G=this.uiConfig.features.nextPrevButtons)!=null?G:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((ce=this.videoConfig.videos)!=null&&ce[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let ue={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Pu.getLatestSupportedVersion(ue):this.pictureInPictureApi=new ca(ue)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new ku:void 0,this.slotsApi=this.uiConfig.features.slots?new Cu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Au(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]),e0(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(ie=this.slotsApi)==null||ie.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new Vu(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(Bn)&&(r(Bn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Bn).nextButtonActive=this.isNextButtonActive(),r(Bn).prevButtonActive=this.isPrevButtonActive(),r(Bn).endScreenVideoTitle=o.nextVideoTitle,r(Bn).endScreenVideoThumb=o.nextVideoThumb,r(Bn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",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(Bn)&&(r(Bn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(Bn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Bn).nextButtonActive=this.isNextButtonActive(),r(Bn).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)}async setLanguage(e){var i;await((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()}async replayInteractiveChapter(e){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(ow()).subscribe(()=>{l&&n>=l.time?this.seekTime(l.time):this.seekTime(n),e==null||e()});let d=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&(this.statistics.oneStat&&this.statistics.oneStat.updateContext(e),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}restoreFocus(){var e;(e=this.focusManager)==null||e.restoreFocus()}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}setAutoplayNext(e){var i;(i=this.store)==null||i.actions.internal.setAutoplayNextEnabled(e)}unmountComponent(e){e&&oa(e)}};import{InterfaceLanguage as uee,VKNumericLanguage as pee,loadVKLangPack as fee}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as vee,VideoFormat as gee}from"@vkontakte/videoplayer-core/es2018";var oee=()=>{window.customElements.define("vk-video-player",Ru)};export{fu as ControlButtonType,ns as GridTypes,uee as InterfaceLanguage,rd as MenuItemType,hs as PlayerPhase,il as VERSION,pee as VKNumericLanguage,gee as VideoFormat,vee as VideoQuality,fee as loadVKLangPack,oee as registerPlayerWebComponent};
|