@vkontakte/videoplayer 1.1.75-beta.0 → 1.1.75-dev.3ba5a3c2.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 +88 -77
- package/es2015.esm.js +88 -77
- package/es2018.cjs.js +88 -77
- package/es2018.esm.js +88 -77
- package/es2024.cjs.js +85 -74
- package/es2024.esm.js +85 -74
- package/esnext.cjs.js +85 -74
- package/esnext.esm.js +85 -74
- package/evergreen.esm.js +85 -74
- package/package.json +5 -5
- package/types/components/Timeline/PreviewTrack/useTransitionToPreviewTrack.svelte.d.ts +21 -0
- package/types/components/Timeline/consts.d.ts +4 -0
- package/types/components/Tooltips/TimelinePreview.utils.d.ts +0 -1
- package/types/config.d.ts +10 -1
- package/types/store/index.d.ts +11 -2
- package/types/store/utils.d.ts +1 -1
- package/types/translation/types.d.ts +1 -1
- package/types/utils/landscapeUtils.d.ts +1 -0
- package/types/utils/userSettings.d.ts +2 -0
package/es2015.esm.js
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.75-
|
|
3
|
-
*
|
|
2
|
+
* @vkontakte/videoplayer v1.1.75-dev.3ba5a3c2.0
|
|
3
|
+
* Mon, 27 Oct 2025 11:43:16 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-75/doc/
|
|
5
5
|
*/
|
|
6
|
-
var
|
|
6
|
+
var __=Object.defineProperty,b_=Object.defineProperties;var $_=Object.getOwnPropertyDescriptors;var lg=Object.getOwnPropertySymbols;var y_=Object.prototype.hasOwnProperty,x_=Object.prototype.propertyIsEnumerable;var dg=t=>{throw TypeError(t)};var bp=(t,e,i)=>e in t?__(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Q=(t,e)=>{for(var i in e||(e={}))y_.call(e,i)&&bp(t,i,e[i]);if(lg)for(var i of lg(e))x_.call(e,i)&&bp(t,i,e[i]);return t},qt=(t,e)=>b_(t,$_(e));var tr=(t,e,i)=>bp(t,typeof e!="symbol"?e+"":e,i),$p=(t,e,i)=>e.has(t)||dg("Cannot "+i);var Bi=(t,e,i)=>($p(t,e,"read from private field"),i?i.call(t):e.get(t)),Us=(t,e,i)=>e.has(t)?dg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),rl=(t,e,i,o)=>($p(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),cg=(t,e,i)=>($p(t,e,"access private method"),i);var yt=(t,e,i)=>new Promise((o,r)=>{var s=a=>{try{d(i.next(a))}catch(u){r(u)}},l=a=>{try{d(i.throw(a))}catch(u){r(u)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(s,l);d((i=i.apply(t,e)).next())});var zs="[",Ws="[!",fa="]",os={};var oo=Symbol(),On=Symbol("filename"),ug=Symbol("hmr"),pg="http://www.w3.org/1999/xhtml",Oc="http://www.w3.org/2000/svg";var yp="@attach";var Nc=!0;var vg,mg,fg=(mg=(vg=globalThis.process)==null?void 0:vg.env)==null?void 0:mg.NODE_ENV,Ve=fg&&!fg.toLowerCase().startsWith("prod");var ir=Array.isArray,gg=Array.prototype.indexOf,Zl=Array.from,xp=Object.keys,uo=Object.defineProperty,zo=Object.getOwnPropertyDescriptor,Dc=Object.getOwnPropertyDescriptors,wp=Object.prototype,hg=Array.prototype,va=Object.getPrototypeOf,Sp=Object.isExtensible;function Ks(t){return typeof t=="function"}var ue=()=>{};function _g(t){return t()}function qs(t){for(var e=0;e<t.length;e++)t[e]()}var Wo=Symbol("$state"),sl=Symbol("legacy props"),bg=Symbol(""),Bc=Symbol("proxy path"),Hc=1,al=3,or=8;function Fc(t){return t===this.v}function ll(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function $g(t,e){return t!==e}function dl(t){return!ll(t,this.v)}function yg(){if(Ve){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 xg(t){if(Ve){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 wg(){if(Ve){let t=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Sg(t){if(Ve){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 Cg(){if(Ve){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 Tg(){if(Ve){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 Eg(){if(Ve){let t=new Error("invalid_snippet\nCould not `{@render}` snippet due to the expression being `null` or `undefined`. Consider using optional chaining `{@render snippet?.()}`\nhttps://svelte.dev/e/invalid_snippet");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/invalid_snippet")}function Ig(t){if(Ve){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 kg(t){if(Ve){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 Ag(t){if(Ve){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
|
|
23
|
-
`),
|
|
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")||
|
|
25
|
-
`)}),
|
|
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 Pg(){if(Ve){let t=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Mg(){if(Ve){let t=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Lg(){if(Ve){let t=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var ns=!1,rs=!1;function Vg(){ns=!0}var Xl=null;function $s(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
|
|
23
|
+
`),r=[`
|
|
24
|
+
`];for(let s=0;s<o.length;s++){let l=o[s];if(l!=="Error"){if(l.includes("validate_each_keys"))return null;l.includes("svelte/src/internal")||r.push(l)}}if(r.length===1)return null;uo(e,"stack",{value:r.join(`
|
|
25
|
+
`)}),uo(e,"name",{value:`${t}Error`})}return e}function Kr(t,e){return t.label=e,Uc(t.v,e),t}function Uc(t,e){var i;return(i=t==null?void 0:t[Bc])==null||i.call(t,e),t}function cl(t){if(Ve){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 Ut=null;function Jl(t){Ut=t}var nr=null;function ed(t){nr=t}function ul(t){return Ep("getContext").get(t)}function pl(t,e){return Ep("setContext").set(t,e),e}function td(){return Ep("getAllContexts")}function F(t,e=!1,i){var o=Ut={p:Ut,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};ns&&!e&&(Ut.l={s:null,u:null,r1:[],r2:xr(!1)}),Io(()=>{o.d=!0}),Ve&&(Ut.function=i,nr=i)}function U(t){var l,d;let e=Ut;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=xt,o=Ot;e.e=null;try{for(var r=0;r<a.length;r++){var s=a[r];po(s.effect),Ki(s.reaction),ko(s.fn)}}finally{po(i),Ki(o)}}Ut=e.p,Ve&&(nr=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function ss(){return!ns||Ut!==null&&Ut.l===null}function Ep(t){var e;return Ut===null&&cl(t),(e=Ut.c)!=null?e:Ut.c=new Map(S_(Ut)||void 0)}function S_(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var C_=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function di(t){if(typeof t!="object"||t===null||Wo in t)return t;let e=va(t);if(e!==wp&&e!==hg)return t;var i=new Map,o=ir(t),r=j(0),s=Ve&&rs?$s("CreatedAt"):null,l=Ot,d=f=>{var v=Ot;Ki(l);var p=f();return Ki(v),p};o&&i.set("length",j(t.length,s));var a="";function u(f){a=f,Kr(r,`${a} version`);for(let[v,p]of i)Kr(p,ma(a,v))}return new Proxy(t,{defineProperty(f,v,p){(!("value"in p)||p.configurable===!1||p.enumerable===!1||p.writable===!1)&&Pg();var x=i.get(v);return x===void 0?x=d(()=>{var w=j(p.value,s);return i.set(v,w),Ve&&typeof v=="string"&&Kr(w,ma(a,v)),w}):O(x,p.value,!0),!0},deleteProperty(f,v){var p=i.get(v);if(p===void 0){if(v in f){let y=d(()=>j(oo,s));i.set(v,y),Ip(r),Ve&&Kr(y,ma(a,v))}}else{if(o&&typeof v=="string"){var x=i.get("length"),w=Number(v);Number.isInteger(w)&&w<x.v&&O(x,w)}O(p,oo),Ip(r)}return!0},get(f,v,p){var C;if(v===Wo)return t;if(Ve&&v===Bc)return u;var x=i.get(v),w=v in f;if(x===void 0&&(!w||(C=zo(f,v))!=null&&C.writable)&&(x=d(()=>{var T=di(w?f[v]:oo),E=j(T,s);return Ve&&Kr(E,ma(a,v)),E}),i.set(v,x)),x!==void 0){var y=n(x);return y===oo?void 0:y}return Reflect.get(f,v,p)},getOwnPropertyDescriptor(f,v){var p=Reflect.getOwnPropertyDescriptor(f,v);if(p&&"value"in p){var x=i.get(v);x&&(p.value=n(x))}else if(p===void 0){var w=i.get(v),y=w==null?void 0:w.v;if(w!==void 0&&y!==oo)return{enumerable:!0,configurable:!0,value:y,writable:!0}}return p},has(f,v){var y;if(v===Wo)return!0;var p=i.get(v),x=p!==void 0&&p.v!==oo||Reflect.has(f,v);if(p!==void 0||xt!==null&&(!x||(y=zo(f,v))!=null&&y.writable)){p===void 0&&(p=d(()=>{var C=x?di(f[v]):oo,T=j(C,s);return Ve&&Kr(T,ma(a,v)),T}),i.set(v,p));var w=n(p);if(w===oo)return!1}return x},set(f,v,p,x){var N;var w=i.get(v),y=v in f;if(o&&v==="length")for(var C=p;C<w.v;C+=1){var T=i.get(C+"");T!==void 0?O(T,oo):C in f&&(T=d(()=>j(oo,s)),i.set(C+"",T),Ve&&Kr(T,ma(a,C)))}if(w===void 0)(!y||(N=zo(f,v))!=null&&N.writable)&&(w=d(()=>j(void 0,s)),O(w,di(p)),i.set(v,w),Ve&&Kr(w,ma(a,v)));else{y=w.v!==oo;var E=d(()=>di(p));O(w,E)}var R=Reflect.getOwnPropertyDescriptor(f,v);if(R!=null&&R.set&&R.set.call(x,p),!y){if(o&&typeof v=="string"){var A=i.get("length"),I=Number(v);Number.isInteger(I)&&I>=A.v&&O(A,I+1)}Ip(r)}return!0},ownKeys(f){n(r);var v=Reflect.ownKeys(f).filter(w=>{var y=i.get(w);return y===void 0||y.v!==oo});for(var[p,x]of i)x.v!==oo&&!(p in f)&&v.push(p);return v},setPrototypeOf(){Mg()}})}function ma(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:C_.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function Ip(t,e=1){O(t,t.v+e)}function fl(t){try{if(t!==null&&typeof t=="object"&&Wo in t)return t[Wo]}catch(e){}return t}function kp(t,e){return Object.is(fl(t),fl(e))}function qr(t){var e=2050,i=Ot!==null&&(Ot.f&2)!==0?Ot:null;xt===null||i!==null&&(i.f&256)!==0?e|=256:xt.f|=1048576;let o={ctx:Ut,deps:null,effects:null,equals:Fc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:xt};return Ve&&rs&&(o.created=$s("CreatedAt")),o}function m(t){let e=qr(t);return Kc(e),e}function Sn(t){let e=qr(t);return e.equals=dl,e}function zc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)qi(e[i])}}var Ap=[];function T_(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function Lp(t){var e,i=xt;if(po(T_(t)),Ve){let o=ga;Pp(new Set);try{Ap.includes(t)&&yg(),Ap.push(t),zc(t),e=Wc(t)}finally{po(i),Pp(o),Ap.pop()}}else try{zc(t),e=Wc(t)}finally{po(i)}return e}function Vp(t){var e=Lp(t);if(t.equals(e)||(t.v=e,t.wv=id()),!ys){var i=(xs||(t.f&256)!==0)&&t.deps!==null?4096:1024;Cn(t,i)}}var ga=new Set,vl=new Map;function Pp(t){ga=t}function xr(t,e){var i={f:0,v:t,reactions:null,equals:Fc,rv:0,wv:0};return Ve&&rs&&(i.created=e!=null?e:$s("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function j(t,e){let i=xr(t,e);return Kc(i),i}function as(t,e=!1,i=!0){var r,s;let o=xr(t);return e||(o.equals=dl),ns&&i&&Ut!==null&&Ut.l!==null&&((s=(r=Ut.l).s)!=null?s:r.s=[]).push(o),o}function O(t,e,i=!1){var r;Ot!==null&&(!ar||(Ot.f&262144)!==0)&&ss()&&(Ot.f&262162)!==0&&!((r=qo)!=null&&r[1].includes(t)&&qo[0]===Ot)&&Lg();let o=i?di(e):e;return Ve&&Uc(o,t.label),ml(t,o)}function ml(t,e){if(!t.equals(e)){var i=t.v;if(ys?vl.set(t,e):vl.set(t,i),t.v=e,Ve&&rs&&(t.updated=$s("UpdatedAt"),xt!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&Lp(t),Cn(t,(t.f&256)===0?1024:4096)),t.wv=id(),Og(t,2048),ss()&&xt!==null&&(xt.f&1024)!==0&&(xt.f&96)===0&&(sr===null?Ng([t]):sr.push(t)),Ve&&ga.size>0){let o=Array.from(ga);for(let r of o)(r.f&1024)!==0&&Cn(r,4096),_a(r)&&gl(r);ga.clear()}}return e}function Og(t,e){var i=t.reactions;if(i!==null)for(var o=ss(),r=i.length,s=0;s<r;s++){var l=i[s],d=l.f;if((d&2048)===0&&!(!o&&l===xt)){if(Ve&&(d&262144)!==0){ga.add(l);continue}Cn(l,e),(d&1280)!==0&&((d&2)!==0?Og(l,4096):nd(l))}}}var hl="font-weight: bold",_l="font-weight: normal";function Dg(t,e,i){Ve?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`,hl,_l):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Bg(t){Ve?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`,hl,_l):console.warn("https://svelte.dev/e/hydration_html_changed")}function Qs(t){Ve?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`,hl,_l):console.warn("https://svelte.dev/e/hydration_mismatch")}function Hg(){Ve?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`,hl,_l):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Fg(){Ve?console.warn("%c[svelte] select_multiple_invalid_value\n%cThe `value` property of a `<select multiple>` element should be an array, but it received a non-array value. The selection will be kept as is.\nhttps://svelte.dev/e/select_multiple_invalid_value",hl,_l):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function qc(t){Ve?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`,
|
|
38
|
-
${o}in ${((l=e.fn)==null?void 0:l.name)||"<unknown>"}`,s=e.ctx;s!==null;)
|
|
39
|
-
${o}in ${(d=s.function)==null?void 0:d[
|
|
40
|
-
${
|
|
41
|
-
`}),t.stack&&
|
|
37
|
+
https://svelte.dev/e/state_proxy_equality_mismatch`,hl,_l):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var nt=!1;function fo(t){nt=t}var wt;function Ti(t){if(t===null)throw Qs(),os;return wt=t}function Qi(){return Ti(Qo(wt))}function g(t){if(nt){if(Qo(wt)!==null)throw Qs(),os;wt=t}}function Ee(t=1){if(nt){for(var e=t,i=wt;e--;)i=Qo(i);wt=i}}function ba(){for(var t=0,e=wt;;){if(e.nodeType===or){var i=e.data;if(i===fa){if(t===0)return e;t-=1}else(i===zs||i===Ws)&&(t+=1)}var o=Qo(e);e.remove(),e=o}}function Qc(t){if(!t||t.nodeType!==or)throw Qs(),os;return t.data}function Ug(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:r}=t;t.indexOf=function(s,l){let d=i.call(this,s,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(fl(this[a])===s){qc("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(fl(this[a])===s){qc("array.lastIndexOf(...)");break}}return d},t.includes=function(s,l){let d=r.call(this,s,l);if(!d){for(let a=0;a<this.length;a+=1)if(fl(this[a])===s){qc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=r}}var $a,zg,rd,Wg,Kg;function jc(){if($a===void 0){$a=window,zg=document,rd=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;Wg=zo(e,"firstChild").get,Kg=zo(e,"nextSibling").get,Sp(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Sp(i)&&(i.__t=void 0),Ve&&(t.__svelte_meta=null,Ug())}}function Tn(t=""){return document.createTextNode(t)}function Ii(t){return Wg.call(t)}function Qo(t){return Kg.call(t)}function _(t,e){if(!nt)return Ii(t);var i=Ii(wt);if(i===null)i=wt.appendChild(Tn());else if(e&&i.nodeType!==al){var o=Tn();return i==null||i.before(o),Ti(o),o}return Ti(i),i}function fe(t,e){var r,s;if(!nt){var i=Ii(t);return i.nodeType===8&&i.data===""?Qo(i):i}if(e&&((r=wt)==null?void 0:r.nodeType)!==al){var o=Tn();return(s=wt)==null||s.before(o),Ti(o),o}return wt}function P(t,e=1,i=!1){let o=nt?wt:t;for(var r;e--;)r=o,o=Qo(o);if(!nt)return o;if(i&&(o==null?void 0:o.nodeType)!==al){var s=Tn();return o===null?r==null||r.after(s):o.before(s),Ti(s),s}return Ti(o),o}function sd(t){t.textContent=""}function Np(t){xt===null&&Ot===null&&Sg(t),Ot!==null&&(Ot.f&256)!==0&&xt===null&&wg(),ys&&xg(t)}function E_(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function ya(t,e,i,o=!0){var a;var r=xt;if(Ve)for(;r!==null&&(r.f&262144)!==0;)r=r.parent;var s={ctx:Ut,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:r,prev:null,teardown:null,transitions:null,wv:0};if(Ve&&(s.component_function=nr),i)try{gl(s),s.f|=32768}catch(u){throw qi(s),u}else e!==null&&nd(s);var l=i&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&1048704)===0;if(!l&&o&&(r!==null&&E_(s,r),Ot!==null&&(Ot.f&2)!==0)){var d=Ot;((a=d.effects)!=null?a:d.effects=[]).push(s)}return s}function Io(t){let e=ya(8,null,!1);return Cn(e,1024),e.teardown=t,e}function We(t){var r;Np("$effect");var e=xt!==null&&(xt.f&32)!==0&&Ut!==null&&!Ut.m;if(Ve&&uo(t,"name",{value:"$effect"}),e){var i=Ut;((r=i.e)!=null?r:i.e=[]).push({fn:t,effect:xt,reaction:Ot})}else{var o=ko(t);return o}}function dd(t){return Np("$effect.pre"),Ve&&uo(t,"name",{value:"$effect.pre"}),jo(t)}function Zc(t){let e=ya(64,t,!0);return()=>{qi(e)}}function Qg(t){let e=ya(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Hn(e,()=>{qi(e),o(void 0)}):(qi(e),o(void 0))})}function ko(t){return ya(4,t,!1)}function jo(t){return ya(8,t,!0)}function D(t,e=[],i=qr){if(Ve)return jo(()=>{var r=xt,s=()=>t(...l.map(n));uo(r.fn,"name",{value:"{expression}"}),uo(s,"name",{value:"{expression}"});let l=e.map(i);ji(s)});let o=e.map(i);return ji(()=>t(...o.map(n)))}function ji(t,e=0){return ya(24|e,t,!0)}function Hi(t,e=!0){return ya(40,t,!0,e)}function Dp(t){var e=t.teardown;if(e!==null){let i=ys,o=Ot;Rp(!0),Ki(null);try{e.call(null)}finally{Rp(i),Ki(o)}}}function Bp(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;(i.f&64)!==0?i.parent=null:qi(i,e),i=o}}function jg(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&qi(e),e=i}}function qi(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(Hp(t.nodes_start,t.nodes_end),i=!0),Bp(t,e&&!i),cd(t,0),Cn(t,16384);var o=t.transitions;if(o!==null)for(let s of o)s.stop();Dp(t);var r=t.parent;r!==null&&r.first!==null&&Fp(t),Ve&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Hp(t,e){for(;t!==null;){var i=t===e?null:Qo(t);t.remove(),t=i}}function Fp(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function Hn(t,e){var i=[];Xc(t,i,!0),Up(i,()=>{qi(t),e&&e()})}function Up(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var r of t)r.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 r=o.next,s=(o.f&65536)!==0||(o.f&32)!==0;Xc(o,e,s?i:!1),o=r}}}function Ss(t){Gg(t,!0)}function Gg(t,e){if((t.f&8192)!==0){t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,r=(i.f&65536)!==0||(i.f&32)!==0;Gg(i,r?e:!1),i=o}if(t.transitions!==null)for(let s of t.transitions)(s.is_global||e)&&s.in()}}var ud=[],zp=[];function Yg(){var t=ud;ud=[],qs(t)}function I_(){var t=zp;zp=[],qs(t)}function En(t){ud.length===0&&queueMicrotask(Yg),ud.push(t)}function Zg(){ud.length>0&&Yg(),zp.length>0&&I_()}function Jg(t){var e=xt;if(Ve&&t instanceof Error&&k_(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else pd(t,e)}function pd(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var Xg=new WeakSet;function k_(t,e){var l,d;if(Xg.has(t))return;Xg.add(t);let i=zo(t,"message");if(!(i&&!i.configurable)){for(var o=rd?" ":" ",r=`
|
|
38
|
+
${o}in ${((l=e.fn)==null?void 0:l.name)||"<unknown>"}`,s=e.ctx;s!==null;)r+=`
|
|
39
|
+
${o}in ${(d=s.function)==null?void 0:d[On].split("/").pop()}`,s=s.p;uo(t,"message",{value:t.message+`
|
|
40
|
+
${r}
|
|
41
|
+
`}),t.stack&&uo(t,"stack",{value:t.stack.split(`
|
|
42
42
|
`).filter(a=>!a.includes("svelte/src/internal")).join(`
|
|
43
|
-
`)})}}var sa=!1,Za=null,aa=!1,vs=!1;function wp(t){vs=t}var Wl=[],Kl=[],kt=null,lr=!1;function zi(t){kt=t}var ht=null;function no(t){ht=t}var zo=null;function Tc(t){kt!==null&&kt.f&2097152&&(zo===null?zo=[kt,[t]]:zo[1].push(t))}var hn=null,dr=0,ar=null;function hg(t){ar=t}var Og=1,Rc=0,gs=!1,Oc=null;function Ml(){return++Og}function ia(t){var m,p;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var n,s,l=(e&512)!==0,d=o&&ht!==null&&!gs,a=i.length;if(l||d){var u=t,f=u.parent;for(n=0;n<a;n++)s=i[n],(l||!((m=s==null?void 0:s.reactions)!=null&&m.includes(u)))&&((p=s.reactions)!=null?p:s.reactions=[]).push(u);l&&(u.f^=512),d&&f!==null&&(f.f&256)===0&&(u.f^=256)}for(n=0;n<a;n++)if(s=i[n],ia(s)&&xp(s),s.wv>t.wv)return!0}(!o||ht!==null&&!gs)&&mn(t,1024)}return!1}function Ng(t,e,i=!0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var s=o[n];zo!=null&&zo[1].includes(t)&&zo[0]===kt||((s.f&2)!==0?Ng(s,e,!1):e===s&&(i?mn(s,2048):(s.f&1024)!==0&&mn(s,4096),Rl(s)))}}function Cc(t){var x,w;var e=hn,i=dr,o=ar,n=kt,s=gs,l=zo,d=Ot,a=lr,u=t.f;hn=null,dr=0,ar=null,gs=(u&256)!==0&&(lr||!aa||kt===null),kt=(u&96)===0?t:null,zo=null,Al(t.ctx),lr=!1,Rc++,t.f|=2097152;try{var f=(0,t.fn)(),m=t.deps;if(hn!==null){var p;if(Hl(t,dr),m!==null&&dr>0)for(m.length=dr+hn.length,p=0;p<hn.length;p++)m[dr+p]=hn[p];else t.deps=m=hn;if(!gs||(u&2)!==0&&t.reactions!==null)for(p=dr;p<m.length;p++)((w=(x=m[p]).reactions)!=null?w:x.reactions=[]).push(t)}else m!==null&&dr<m.length&&(Hl(t,dr),m.length=dr);if(ss()&&ar!==null&&!lr&&m!==null&&(t.f&6146)===0)for(p=0;p<ar.length;p++)Ng(ar[p],t);return n!==null&&n!==t&&(Rc++,ar!==null&&(o===null?o=ar:o.push(...ar))),f}catch(y){Mg(y)}finally{hn=e,dr=i,ar=o,kt=n,gs=s,zo=l,Al(d),lr=a,t.f^=2097152}}function i_(t,e){let i=e.reactions;if(i!==null){var o=Yv.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),Sc(e),Hl(e,0))}function Hl(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)i_(t,i[o])}function Ga(t){var e=t.f;if((e&16384)===0){mn(t,1024);var i=ht,o=aa;if(ht=t,aa=!0,Le){var n=rr;Pl(t.component_function)}try{(e&16)!==0?Ig(t):Ep(t),Tp(t);var s=Cc(t);if(t.teardown=typeof s=="function"?s:null,t.wv=Og,Le&&rs&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=Ml(),l.set_during_effect=!1);Le&&Kl.push(t)}finally{aa=o,ht=i,Le&&Pl(n)}}}function Vg(){console.error("Last ten effects were: ",Kl.slice(-10).map(t=>t.fn)),Kl=[]}function o_(){try{rg()}catch(t){if(Le&&oo(t,"stack",{value:""}),Za!==null)if(Le)try{zl(t,Za)}catch(e){throw Vg(),e}else zl(t,Za);else throw Le&&Vg(),t}}function Mp(){var t=aa;try{var e=0;for(aa=!0;Wl.length>0;){e++>1e3&&o_();var i=Wl,o=i.length;Wl=[];for(var n=0;n<o;n++){var s=r_(i[n]);n_(s)}qa.clear()}}finally{sa=!1,aa=t,Za=null,Le&&(Kl=[])}}function n_(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&ia(o)&&(Ga(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?kp(o):o.fn=null))}}function Rl(t){sa||(sa=!0,queueMicrotask(Mp));for(var e=Za=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Wl.push(e)}function r_(t){for(var e=[],i=t;i!==null;){var o=i.f,n=(o&96)!==0,s=n&&(o&1024)!==0;if(!s&&(o&8192)===0){(o&4)!==0?e.push(i):n?i.f^=1024:ia(i)&&Ga(i);var l=i.first;if(l!==null){i=l;continue}}var d=i.parent;for(i=i.next;i===null&&d!==null;)i=d.next,d=d.parent}return e}function Xa(t){var e;for(t&&(sa=!0,Mp(),sa=!0,e=t());;){if(Pg(),Wl.length===0)return sa=!1,Za=null,Le&&(Kl=[]),e;sa=!0,Mp()}}function xo(){return vt(this,null,function*(){yield Promise.resolve(),Xa()})}function r(t){var e=t.f,i=(e&2)!==0;if(Oc!==null&&Oc.add(t),kt!==null&&!lr){if(!(zo!=null&&zo[1].includes(t))||zo[0]!==kt){var o=kt.deps;t.rv<Rc&&(t.rv=Rc,hn===null&&o!==null&&o[dr]===t?dr++:hn===null?hn=[t]:(!gs||!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,ia(n)&&xp(n)),Le&&rs&&!lr&&kl!==null&&kt!==null&&kl.reaction===kt)if(t.trace)t.trace();else{var l=ms("TracedAt");if(l){var d=kl.entries.get(t);d===void 0&&(d={traces:[]},kl.entries.set(t,d));var a=d.traces[d.traces.length-1];l.stack!==(a==null?void 0:a.stack)&&d.traces.push(l)}}return vs&&qa.has(t)?qa.get(t):t.v}function St(t){var e=lr;try{return lr=!0,t()}finally{lr=e}}var s_=-7169;function mn(t,e){t.f=t.f&s_|e}function Bc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Fo in t)Nc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Fo in i&&Nc(i)}}}function Nc(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let o in t)try{Nc(t[o],e)}catch(n){}let i=Xs(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=bc(i);for(let n in o){let s=o[n].get;if(s)try{s.call(t)}catch(l){}}}}}function Vp(t,e){if(e){let i=document.body;t.autofocus=!0,gn(()=>{document.activeElement===i&&t.focus()})}}function ql(t){var e=kt,i=ht;zi(null),no(null);try{return t()}finally{zi(e),no(i)}}var Rp=new Set,Dc=new Set;function la(t){if(!Je)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Op(t,e,i,o={}){function n(s){if(o.capture||Ja.call(e,s),!s.cancelBubble)return ql(()=>i==null?void 0:i.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?gn(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Et(t,e,i,o,n){var s={capture:o,passive:n},l=Op(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Ho(()=>{e.removeEventListener(t,l,s)})}function ct(t){for(var e=0;e<t.length;e++)Rp.add(t[e]);for(var i of Dc)i(t)}function Ja(t){var E;var e=this,i=e.ownerDocument,o=t.type,n=((E=t.composedPath)==null?void 0:E.call(t))||[],s=n[0]||t.target,l=0,d=t.__root;if(d){var a=n.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var u=n.indexOf(e);if(u===-1)return;a<=u&&(l=a)}if(s=n[l]||t.target,s!==e){oo(t,"currentTarget",{configurable:!0,get(){return s||i}});var f=kt,m=ht;zi(null),no(null);try{for(var p,x=[];s!==null;){var w=s.assignedSlot||s.parentNode||s.host||null;try{var y=s["__"+o];if(y!=null&&(!s.disabled||t.target===s))if(or(y)){var[T,...C]=y;T.apply(s,[t,...C])}else y.call(s,t)}catch(R){p?x.push(R):p=R}if(t.cancelBubble||w===e||w===null)break;s=w}if(p){for(let R of x)queueMicrotask(()=>{throw R});throw p}}finally{t.__root=e,delete t.currentTarget,zi(f),no(m)}}}var l_;function Bg(){l_=void 0}function el(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function wo(t,e){var i=ht;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function M(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,s=!t.startsWith("<!>");return()=>{if(Je)return wo(_t,null),_t;n===void 0&&(n=el(s?t:"<!>"+t),i||(n=wi(n)));var l=o||Ol?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=wi(l),a=l.lastChild;wo(d,a)}else wo(l,l);return l}}function u_(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(Je)return wo(_t,null),_t;if(!l){var d=el(s),a=wi(d);if(n)for(l=document.createDocumentFragment();wi(a);)l.appendChild(wi(a));else l=wi(a)}var u=l.cloneNode(!0);if(n){var f=wi(u),m=u.lastChild;wo(f,m)}else wo(u,u);return u}}function Se(t,e){return u_(t,e,"svg")}function ls(t=""){if(!Je){var e=vn(t+"");return wo(e,e),e}var i=_t;return i.nodeType!==Da&&(i.before(i=vn()),vi(i)),wo(i,i),i}function He(){if(Je)return wo(_t,null),_t;var t=document.createDocumentFragment(),e=document.createComment(""),i=vn();return t.append(e,i),wo(e,i),t}function $(t,e){if(Je){ht.nodes_end=_t,Ki();return}t!==null&&t.before(e)}var p_=/\r/g;function Fg(t){t=t.replace(p_,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Hg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var f_=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Ug(t){return f_.includes(t)}var m_=["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 v_={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 zg(t){var e;return t=t.toLowerCase(),(e=v_[t])!=null?e:t}var FS=[...m_,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var g_=["touchstart","touchmove"];function Wg(t){return g_.includes(t)}var h_=["$state","$state.raw","$derived","$derived.by"],HS=[...h_,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var __=["textarea","script","style","title"];function Kg(t){return __.includes(t)}function Fc(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Ql=!0;function Hc(t){Ql=t}function ge(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 Wr(t,e){return qg(t,e)}function Bp(t,e){var l;kc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=Je,n=_t;try{for(var s=wi(i);s&&(s.nodeType!==nr||s.data!==Os);)s=Wo(s);if(!s)throw os;ro(!0),vi(s),Ki();let d=qg(t,Ft(K({},e),{anchor:s}));if(_t===null||_t.nodeType!==nr||_t.data!==Zs)throw Fs(),os;return ro(!1),d}catch(d){if(d===os)return e.recover===!1&&sg(),kc(),Nl(i),ro(!1),Wr(t,e);throw d}finally{ro(o),vi(n),Bg()}}var tl=new Map;function qg(t,{target:e,anchor:i,props:o={},events:n,context:s,intro:l=!0}){kc();var d=new Set,a=m=>{for(var p=0;p<m.length;p++){var x=m[p];if(!d.has(x)){d.add(x);var w=Wg(x);e.addEventListener(x,Ja,{passive:w});var y=tl.get(x);y===void 0?(document.addEventListener(x,Ja,{passive:w}),tl.set(x,1)):tl.set(x,y+1)}}};a(Il(Rp)),Dc.add(a);var u=void 0,f=Eg(()=>{var m=i!=null?i:e.appendChild(vn());return Bi(()=>{if(s){U({});var p=Ot;p.c=s}n&&(o.$$events=n),Je&&wo(m,null),Ql=l,u=t(m,o)||{},Ql=!0,Je&&(ht.nodes_end=_t),s&&z()}),()=>{var w;for(var p of d){e.removeEventListener(p,Ja);var x=tl.get(p);--x===0?(document.removeEventListener(p,Ja),tl.delete(p)):tl.set(p,x)}Dc.delete(a),m!==i&&((w=m.parentNode)==null||w.removeChild(m))}});return Np.set(u,f),u}var Np=new WeakMap;function da(t,e){let i=Np.get(t);return i?(Np.delete(t),i(e)):(Le&&$g(),Promise.resolve())}function he(t,e,...i){var o=t,n=le,s;qi(()=>{n!==(n=e())&&(s&&(Wi(s),s=null),Le&&n==null&&ag(),s=Bi(()=>n(o,...i)))},65536),Je&&(o=_t)}if(Le){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;cg(e)},set:o=>{i=o}})}};x_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var x_;function Mt(t){Ot===null&&Ua("onMount"),ns&&Ot.l!==null?y_(Ot).m.push(t):Qe(()=>{let e=St(t);if(typeof e=="function")return e})}function on(t){Ot===null&&Ua("onDestroy"),Mt(()=>()=>St(t))}function y_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var Qg=new Map;function Gg(t,e){var i=Qg.get(t);i||(i=new Set,Qg.set(t,i)),i.add(e)}function V(t,e,[i,o]=[0,0]){Je&&i===0&&Ki();var n=t,s=null,l=null,d=Xi,a=i>0?65536:0,u=!1;let f=(p,x=!0)=>{u=!0,m(x,p)},m=(p,x)=>{if(d===(d=p))return;let w=!1;if(Je&&o!==-1){if(i===0){let T=Ic(n);T===Os?o=0:T===Ns?o=1/0:(o=parseInt(T.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=oa(),vi(n),ro(!1),w=!0,o=-1)}d?(s?_s(s):x&&(s=Bi(()=>x(n))),l&&Vn(l,()=>{l=null})):(l?_s(l):x&&(l=Bi(()=>x(n,[i+1,o]))),s&&Vn(s,()=>{s=null})),w&&ro(!0)};qi(()=>{u=!1,e(f),u||m(null,null)},a),Je&&(n=_t)}function bs(t,e,i){Je&&Ki();var o=t,n=Xi,s,l=ss()?eg:Fa;qi(()=>{l(n,n=e())&&(s&&Vn(s),s=Bi(()=>i(o)))}),Je&&(o=_t)}var Us=null;function Hp(t){Us=t}function Gl(t,e){return e}function C_(t,e,i,o){for(var n=[],s=e.length,l=0;l<s;l++)Mc(e[l].e,n,!0);var d=s>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;Nl(a),a.append(i),o.clear(),Hs(t,e[0].prev,e[s-1].next)}Ap(n,()=>{for(var u=0;u<s;u++){var f=e[u];d||(o.delete(f.k),Hs(t,f.prev,f.next)),Wi(f.e,!d)}})}function Pi(t,e,i,o,n,s=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var u=t;l=Je?vi(wi(u)):u.appendChild(vn())}Je&&Ki();var f=null,m=!1,p=Hr(()=>{var x=i();return or(x)?x:x==null?[]:Il(x)});qi(()=>{var x=r(p),w=x.length;if(m&&w===0)return;m=w===0;let y=!1;if(Je){var T=Ic(l)===Ns;T!==(w===0)&&(l=oa(),vi(l),ro(!1),y=!0)}if(Je){for(var C=null,E,R=0;R<w;R++){if(_t.nodeType===nr&&_t.data===Zs){l=_t,y=!0,ro(!1);break}var I=x[R],k=o(I,R);E=Zg(_t,d,C,null,I,k,R,n,e,i),d.items.set(k,E),C=E}w>0&&vi(oa())}Je||T_(x,d,l,n,e,o,i),s!==null&&(w===0?f?_s(f):f=Bi(()=>s(l)):f!==null&&Vn(f,()=>{f=null})),y&&ro(!0),r(p)}),Je&&(l=_t)}function T_(t,e,i,o,n,s,l){var ee,fe,ve,pe;var d=(n&8)!==0,a=(n&3)!==0,u=t.length,f=e.items,m=e.first,p=m,x,w=null,y,T=[],C=[],E,R,I,k;if(d)for(k=0;k<u;k+=1)E=t[k],R=s(E,k),I=f.get(R),I!==void 0&&((ee=I.a)==null||ee.measure(),(y!=null?y:y=new Set).add(I));for(k=0;k<u;k+=1){if(E=t[k],R=s(E,k),I=f.get(R),I===void 0){var B=p?p.e.nodes_start:i;w=Zg(B,e,w,w===null?e.first:w.next,E,R,k,o,n,l),f.set(R,w),T=[],C=[],p=w.next;continue}if(a&&E_(I,E,k,n),(I.e.f&8192)!==0&&(_s(I.e),d&&((fe=I.a)==null||fe.unfix(),(y!=null?y:y=new Set).delete(I))),I!==p){if(x!==void 0&&x.has(I)){if(T.length<C.length){var F=C[0],H;w=F.prev;var W=T[0],Z=T[T.length-1];for(H=0;H<T.length;H+=1)jg(T[H],F,i);for(H=0;H<C.length;H+=1)x.delete(C[H]);Hs(e,W.prev,Z.next),Hs(e,w,W),Hs(e,Z,F),p=F,w=Z,k-=1,T=[],C=[]}else x.delete(I),jg(I,p,i),Hs(e,I.prev,I.next),Hs(e,I,w===null?e.first:w.next),Hs(e,w,I),w=I;continue}for(T=[],C=[];p!==null&&p.k!==R;)(p.e.f&8192)===0&&(x!=null?x:x=new Set).add(p),C.push(p),p=p.next;if(p===null)continue;I=p}T.push(I),w=I,p=I.next}if(p!==null||x!==void 0){for(var ne=x===void 0?[]:Il(x);p!==null;)(p.e.f&8192)===0&&ne.push(p),p=p.next;var j=ne.length;if(j>0){var _e=(n&4)!==0&&u===0?i:null;if(d){for(k=0;k<j;k+=1)(ve=ne[k].a)==null||ve.measure();for(k=0;k<j;k+=1)(pe=ne[k].a)==null||pe.fix()}C_(e,ne,_e,f)}}d&&gn(()=>{var Me;if(y!==void 0)for(I of y)(Me=I.a)==null||Me.apply()}),ht.first=e.first&&e.first.e,ht.last=w&&w.e}function E_(t,e,i,o){(o&1)!==0&&Qa(t.v,e),(o&2)!==0?Qa(t.i,i):t.i=i}function Zg(t,e,i,o,n,s,l,d,a,u){var f=Us,m=(a&1)!==0,p=(a&16)===0,x=m?p?as(n,!1,!1):Tr(n):n,w=(a&2)===0?l:Tr(l);Le&&m&&(x.trace=()=>{var T=typeof w=="number"?l:w.v;u()[T]});var y={i:w,v:x,k:s,a:null,e:null,prev:i,next:o};Us=y;try{return y.e=Bi(()=>d(t,x,w,u),Je),y.e.prev=i&&i.e,y.e.next=o&&o.e,i===null?e.first=y:(i.next=y,i.e.next=y.e),o!==null&&(o.prev=y,o.e.prev=y.e),y}finally{Us=f}}function jg(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=Wo(s);n.before(s),s=l}}function Hs(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 I_(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=rr)!=null&&l[An]&&(o=`in ${rr[An]}`),bg(Fc(o))}function jl(t,e,i=!1,o=!1,n=!1){var s=t,l="";D(()=>{var x;var d=ht;if(l===(l=(x=e())!=null?x:"")){Je&&Ki();return}if(d.nodes_start!==null&&(Ip(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(Je){for(var a=_t.data,u=Ki(),f=u;u!==null&&(u.nodeType!==nr||u.data!=="");)f=u,u=Wo(u);if(u===null)throw Fs(),os;Le&&!n&&I_(u.parentNode,a,l),wo(_t,f),s=vi(u);return}var m=l+"";i?m=`<svg>${m}</svg>`:o&&(m=`<math>${m}</math>`);var p=el(m);if((i||o)&&(p=wi(p)),wo(wi(p),p.lastChild),i||o)for(;wi(p);)s.before(wi(p));else s.before(p)}})}function Li(t,e,i){Je&&Ki();var o=t,n,s;qi(()=>{n!==(n=e())&&(s&&(Vn(s),s=null),n&&(s=Bi(()=>i(o,n))))},65536),Je&&(o=_t)}function ca(t,e,i,o,n,s){var w;let l=Je;Je&&Ki();var d=Le&&s&&((w=Ot)==null?void 0:w.function[An]),a,u,f=null;Je&&_t.nodeType===yc&&(f=_t,Ki());var m=Je?_t:t,p,x=Us;qi(()=>{let y=e()||null;var T=n?n():i||y==="svg"?hc:null;if(y!==a){var C=Us;Hp(x),p&&(y===null?Vn(p,()=>{p=null,u=null}):y===u?_s(p):(Wi(p),Hc(!1))),y&&y!==u&&(p=Bi(()=>{if(f=Je?f:T?document.createElementNS(T,y):document.createElement(y),Le&&s&&(f.__svelte_meta={loc:{file:d,line:s[0],column:s[1]}}),wo(f,f),o){Je&&Kg(y)&&f.append(document.createComment(""));var E=Je?wi(f):f.appendChild(vn());Je&&(E===null?ro(!1):vi(E)),o(f,E)}ht.nodes_end=f,m.before(f)})),a=y,a&&(u=a),Hc(!0),Hp(C)}},65536),l&&(ro(!0),vi(m))}var zp;function Xg(t){return zp=t.target,new Up(t)}var $s,Er,Up=class{constructor(e){Rs(this,$s);Rs(this,Er);var s,l;var i=new Map,o=(d,a)=>{var u=as(a,!1,!1);return i.set(d,u),u};let n=new Proxy(Ft(K({},e.props||{}),{$$events:{}}),{get(d,a){var u;return r((u=i.get(a))!=null?u:o(a,Reflect.get(d,a)))},has(d,a){var u;return a===Ba?!0:(r((u=i.get(a))!=null?u:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,u){var f;return N((f=i.get(a))!=null?f:o(a,u),u),Reflect.set(d,a,u)}});Na(this,Er,(e.hydrate?Bp:Wr)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(s=e.intro)!=null?s:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&Xa(),Na(this,$s,n.$$events);for(let d of Object.keys(Ni(this,Er)))d==="$set"||d==="$destroy"||d==="$on"||oo(this,d,{get(){return Ni(this,Er)[d]},set(a){Ni(this,Er)[d]=a},enumerable:!0});Ni(this,Er).$set=d=>{Object.assign(n,d)},Ni(this,Er).$destroy=()=>{da(Ni(this,Er))}}$set(e){Ni(this,Er).$set(e)}$on(e,i){Ni(this,$s)[e]=Ni(this,$s)[e]||[];let o=(...n)=>i.call(this,...n);return Ni(this,$s)[e].push(o),()=>{Ni(this,$s)[e]=Ni(this,$s)[e].filter(n=>n!==o)}}$destroy(){Ni(this,Er).$destroy()}};$s=new WeakMap,Er=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=zp)==null?void 0:s.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Le&&Gg(e.hash,d)}})}function ys(t,e){var i=void 0,o;qi(()=>{i!==(i=e())&&(o&&(Wi(o),o=null),i&&(o=Bi(()=>{yo(()=>i(t))})))})}function Jg(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=Jg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function eh(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Jg(t))&&(o&&(o+=" "),o+=e);return o}function Yl(t){return typeof t=="object"?eh(t):t!=null?t:""}var th=[...`
|
|
44
|
-
\r\f\xA0\v\uFEFF`];function oh(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||th.includes(o[l-1]))&&(d===o.length||th.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function ih(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 Wp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function nh(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(Wp)),n&&a.push(...Object.keys(n).map(Wp));var u=0,f=-1;let y=t.length;for(var m=0;m<y;m++){var p=t[m];if(d?p==="/"&&t[m-1]==="*"&&(d=!1):s?s===p&&(s=!1):p==="/"&&t[m+1]==="*"?d=!0:p==='"'||p==="'"?s=p:p==="("?l++:p===")"&&l--,!d&&s===!1&&l===0){if(p===":"&&f===-1)f=m;else if(p===";"||m===y-1){if(f!==-1){var x=Wp(t.substring(u,f).trim());if(!a.includes(x)){p!==";"&&m++;var w=t.substring(u,m).trim();i+=" "+w+";"}}u=m+1,f=-1}}}}return o&&(i+=ih(o)),n&&(i+=ih(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function re(t,e,i,o,n,s){var l=t.__className;if(Je||l!==i||l===void 0){var d=oh(i,o,s);(!Je||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(s&&n!==s)for(var a in s){var u=!!s[a];(n==null||u!==!!n[a])&&t.classList.toggle(a,u)}return s}function Kp(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 lt(t,e,i,o){var n=t.__style;if(Je||n!==e){var s=nh(e,o);(!Je||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}else o&&(Array.isArray(o)?(Kp(t,i==null?void 0:i[0],o[0]),Kp(t,i==null?void 0:i[1],o[1],"important")):Kp(t,i,o));return o}function Zl(t,e,i){if(t.multiple){if(e==null)return;if(!or(e))return yg();for(var o of t.options)o.selected=e.includes(rh(o));return}for(o of t.options){var n=rh(o);if(hp(n,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function qp(t){var e=new MutationObserver(()=>{Zl(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Ho(()=>{e.disconnect()})}function rh(t){return"__value"in t?t.__value:t.value}var il=Symbol("class"),ol=Symbol("style"),lh=Symbol("is custom element"),dh=Symbol("is html");function ch(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Ue(t,e,i,o){var n=ph(t);if(Je&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||O_(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Jv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&fh(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function uh(t,e,i,o,n=!1){var I;var s=ph(t),l=s[lh],d=!s[dh];let a=Je&&l;a&&ro(!1);var u=e||{},f=t.tagName==="OPTION";for(var m in e)m in i||(i[m]=null);i.class?i.class=Yl(i.class):(o||i[il])&&(i.class=null),i[ol]&&((I=i.style)!=null||(i.style=null));var p=fh(t);for(let k in i){let B=i[k];if(f&&k==="value"&&B==null){t.value=t.__value="",u[k]=B;continue}if(k==="class"){var x=t.namespaceURI==="http://www.w3.org/1999/xhtml";re(t,x,B,o,e==null?void 0:e[il],i[il]),u[k]=B,u[il]=i[il];continue}if(k==="style"){lt(t,B,e==null?void 0:e[ol],i[ol]),u[k]=B,u[ol]=i[ol];continue}var w=u[k];if(!(B===w&&!(B===void 0&&t.hasAttribute(k)))){u[k]=B;var y=k[0]+k[1];if(y!=="$$")if(y==="on"){let F={},H="$$"+k,W=k.slice(2);var T=Ug(W);if(Hg(W)&&(W=W.slice(0,-7),F.capture=!0),!T&&w){if(B!=null)continue;t.removeEventListener(W,u[H],F),u[H]=null}if(B!=null)if(T)t[`__${W}`]=B,ct([W]);else{let Z=function(ne){u[k].call(this,ne)};var R=Z;u[H]=Op(W,t,Z,F)}else T&&(t[`__${W}`]=void 0)}else if(k==="style")Ue(t,k,B);else if(k==="autofocus")Vp(t,!!B);else if(!l&&(k==="__value"||k==="value"&&B!=null))t.value=t.__value=B;else if(k==="selected"&&f)ch(t,B);else{var C=k;d||(C=zg(C));var E=C==="defaultValue"||C==="defaultChecked";if(B==null&&!l&&!E)if(s[k]=null,C==="value"||C==="checked"){let F=t,H=e===void 0;if(C==="value"){let W=F.defaultValue;F.removeAttribute(C),F.defaultValue=W,F.value=F.__value=H?W:null}else{let W=F.defaultChecked;F.removeAttribute(C),F.defaultChecked=W,F.checked=H?W:!1}}else t.removeAttribute(k);else E||p.includes(C)&&(l||typeof B!="string")?t[C]=B:typeof B!="function"&&Ue(t,C,B,n)}}}return a&&ro(!0),u}function ke(t,e,i=[],o,n=!1,s=Fr){let l=i.map(s);var d=void 0,a={},u=t.nodeName==="SELECT",f=!1;if(qi(()=>{var p=e(...l.map(r)),x=uh(t,d,p,o,n);f&&u&&"value"in p&&Zl(t,p.value,!1);for(let y of Object.getOwnPropertySymbols(a))p[y]||Wi(a[y]);for(let y of Object.getOwnPropertySymbols(p)){var w=p[y];y.description===dp&&(!d||w!==d[y])&&(a[y]&&Wi(a[y]),a[y]=Bi(()=>ys(t,()=>w))),x[y]=w}d=x}),u){var m=t;yo(()=>{Zl(m,d.value),qp(m)})}f=!0}function ph(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[lh]:t.nodeName.includes("-"),[dh]:t.namespaceURI===qv}}var sh=new Map;function fh(t){var e=sh.get(t.nodeName);if(e)return e;sh.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=bc(o);for(var s in i)i[s].set&&e.push(s);o=Xs(o)}return e}function O_(t,e,i){var o;Le&&(e==="srcset"&&N_(t,i)||Qp((o=t.getAttribute(e))!=null?o:"",i)||_g(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Qp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function ah(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function N_(t,e){var i=ah(t.srcset),o=ah(e);return o.length===i.length&&o.every(([n,s],l)=>s===i[l][1]&&(Qp(i[l][0],n)||Qp(n,i[l][0])))}var B_=_c?()=>performance.now():()=>Date.now(),Kr={tick:t=>(_c?requestAnimationFrame:le)(t),now:()=>B_(),tasks:new Set};function mh(){let t=Kr.now();Kr.tasks.forEach(e=>{e.c(t)||(Kr.tasks.delete(e),e.f())}),Kr.tasks.size!==0&&Kr.tick(mh)}function vh(t){let e;return Kr.tasks.size===0&&Kr.tick(mh),{promise:new Promise(i=>{Kr.tasks.add(e={c:t,f:i})}),abort(){Kr.tasks.delete(e)}}}function Uc(t,e){ql(()=>{t.dispatchEvent(new CustomEvent(e))})}function U_(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 gh(t){let e={},i=t.split(";");for(let o of i){let[n,s]=o.split(":");if(!n||s===void 0)break;let l=U_(n.trim());e[l]=s.trim()}return e}var z_=t=>t;function jp(t,e,i,o){var R;var n=(t&1)!==0,s=(t&2)!==0,l=n&&s,d=(t&4)!==0,a=l?"both":n?"in":"out",u,f=e.inert,m=e.style.overflow,p,x;function w(){var B;var I=kt,k=ht;zi(null),no(null);try{return u!=null?u:u=i()(e,(B=o==null?void 0:o())!=null?B:{},{direction:a})}finally{zi(I),no(k)}}var y={is_global:d,in(){var I;if(e.inert=f,!n){x==null||x.abort(),(I=x==null?void 0:x.reset)==null||I.call(x);return}s||p==null||p.abort(),Uc(e,"introstart"),p=Gp(e,w(),x,1,()=>{Uc(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=m})},out(I){if(!s){I==null||I(),u=void 0;return}e.inert=!0,Uc(e,"outrostart"),x=Gp(e,w(),p,0,()=>{Uc(e,"outroend"),I==null||I()})},stop:()=>{p==null||p.abort(),x==null||x.abort()}},T=ht;if(((R=T.transitions)!=null?R:T.transitions=[]).push(y),n&&Ql){var C=d;if(!C){for(var E=T.parent;E&&(E.f&65536)!==0;)for(;(E=E.parent)&&(E.f&16)===0;);C=!E||(E.f&32768)!==0}C&&yo(()=>{St(()=>y.in())})}}function Gp(t,e,i,o,n){var s=o===1;if(Bs(e)){var l,d=!1;return gn(()=>{if(!d){var T=e({direction:s?"in":"out"});l=Gp(t,T,i,o,n)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:le,deactivate:le,reset:le,t:()=>o};let{delay:a=0,css:u,tick:f,easing:m=z_}=e;var p=[];if(s&&i===void 0&&(f&&f(0,1),u)){var x=gh(u(0,1));p.push(x,x)}var w=()=>1-o,y=t.animate(p,{duration:a,fill:"forwards"});return y.onfinish=()=>{var W;y.cancel();var T=(W=i==null?void 0:i.t())!=null?W:1-o;i==null||i.abort();var C=o-T,E=e.duration*Math.abs(C),R=[];if(E>0){var I=!1;if(u)for(var k=Math.ceil(E/16.666666666666668),B=0;B<=k;B+=1){var F=T+C*m(B/k),H=gh(u(F,1-F));R.push(H),I||(I=H.overflow==="hidden")}I&&(t.style.overflow="hidden"),w=()=>{var Z=y.currentTime;return T+C*m(Z/E)},f&&vh(()=>{if(y.playState!=="running")return!1;var Z=w();return f(Z,1-Z),!0})}y=t.animate(R,{duration:E,fill:"forwards"}),y.onfinish=()=>{w=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=le)},deactivate:()=>{n=le},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var zs,nl,Xl,Wc,hh,Kc=class Kc{constructor(e){Rs(this,Wc);Rs(this,zs,new WeakMap);Rs(this,nl);Rs(this,Xl);Na(this,Xl,e)}observe(e,i){var o=Ni(this,zs).get(e)||new Set;return o.add(i),Ni(this,zs).set(e,o),Wv(this,Wc,hh).call(this).observe(e,Ni(this,Xl)),()=>{var n=Ni(this,zs).get(e);n.delete(i),n.size===0&&(Ni(this,zs).delete(e),Ni(this,nl).unobserve(e))}}};zs=new WeakMap,nl=new WeakMap,Xl=new WeakMap,Wc=new WeakSet,hh=function(){var e;return(e=Ni(this,nl))!=null?e:Na(this,nl,new ResizeObserver(i=>{for(var o of i){Kc.entries.set(o.target,o);for(var n of Ni(this,zs).get(o.target)||[])n(o)}}))},ir(Kc,"entries",new WeakMap);var Yp=Kc;var W_=new Yp({box:"border-box"});function cr(t,e,i){var o=W_.observe(t,()=>i(t[e]));yo(()=>(St(()=>i(t[e])),o))}function _h(t,e){return t===e||(t==null?void 0:t[Fo])===e}function at(t={},e,i,o){return yo(()=>{var n,s;return Ko(()=>{n=s,s=(o==null?void 0:o())||[],St(()=>{t!==i(...s)&&(e(t,...s),n&&_h(i(...n),t)&&e(null,...n))})}),()=>{gn(()=>{s&&_h(i(...s),t)&&e(null,...s)})}}),t}function qr(t=!1){let e=Ot,i=e.l.u;if(!i)return;let o=()=>Bc(e.s);if(t){let n=0,s={},l=Fr(()=>{let d=!1,a=e.s;for(let u in a)a[u]!==s[u]&&(s[u]=a[u],d=!0);return d&&n++,n});o=()=>r(l)}i.b.length&&Fl(()=>{bh(e,o),Ds(i.b)}),Qe(()=>{let n=St(()=>i.m.map(Xv));return()=>{for(let s of n)typeof s=="function"&&s()}}),i.a.length&&Qe(()=>{bh(e,o),Ds(i.a)})}function bh(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),le;let o=St(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var rl=[];function Ir(t,e){return{subscribe:ae(t,e).subscribe}}function ae(t,e=le){let i=null,o=new Set;function n(d){if(Fa(t,d)&&(t=d,i)){let a=!rl.length;for(let u of o)u[1](),rl.push(u,t);if(a){for(let u=0;u<rl.length;u+=2)rl[u][0](rl[u+1]);rl.length=0}}}function s(d){n(d(t))}function l(d,a=le){let u=[d,a];return o.add(u),o.size===1&&(i=e(n,s)||le),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:n,update:s,subscribe:l}}function gi(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 Ir(i,(l,d)=>{let a=!1,u=[],f=0,m=le,p=()=>{if(f)return;m();let w=e(o?u[0]:u,l,d);s?l(w):m=typeof w=="function"?w:le},x=n.map((w,y)=>Jl(w,T=>{u[y]=T,f&=~(1<<y),a&&p()},()=>{f|=1<<y}));return a=!0,p(),function(){Ds(x),m(),a=!1}})}function ye(t){let e;return Jl(t,i=>e=i)(),e}var qc=!1,Zp=Symbol();function S(t,e,i){var s;let o=(s=i[e])!=null?s:i[e]={store:null,source:as(void 0),unsubscribe:le};if(o.store!==t&&!(Zp in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=le;else{var n=!0;o.unsubscribe=Jl(t,l=>{n?o.source.v=l:N(o.source,l)}),n=!1}return t&&Zp in i?ye(t):r(o.source)}function De(){let t={};function e(){Ho(()=>{for(var i in t)t[i].unsubscribe();oo(t,Zp,{enumerable:!1,value:!0})})}return[t,e]}function Xp(t){var e=qc;try{return qc=!1,[t(),qc]}finally{qc=e}}var Z_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Le&&dg(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Re(t,e,i){return new Proxy(Le?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},Z_)}var X_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Bs(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];Bs(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(Bs(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===Fo||e===Ba)return!1;for(let i of t.props)if(Bs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Bs(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 xs(...t){return new Proxy({props:t},X_)}function $h(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function v(t,e,i,o){var F,H;var n=(i&1)!==0,s=!ns||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,u;l?[u,a]=Xp(()=>t[e]):u=t[e];var f=Fo in t||Ba in t,m=l&&((H=(F=Jo(t,e))==null?void 0:F.set)!=null?H:f&&e in t&&(W=>t[e]=W))||void 0,p=o,x=!0,w=!1,y=()=>(w=!0,x&&(x=!1,d?p=St(o):p=o),p);u===void 0&&o!==void 0&&(m&&s&&lg(e),u=y(),m&&m(u));var T;if(s)T=()=>{var W=t[e];return W===void 0?y():(x=!0,w=!1,W)};else{var C=(n?Fr:Hr)(()=>t[e]);C.f|=131072,T=()=>{var W=r(C);return W!==void 0&&(p=void 0),W===void 0?p:W}}if((i&4)===0&&s)return T;if(m){var E=t.$$legacy;return function(W,Z){return arguments.length>0?((!s||!Z||E||a)&&m(Z?T():W),W):T()}}var R=!1,I=!1,k=as(u),B=Fr(()=>{var W=T(),Z=r(k);return R?(R=!1,I=!0,Z):(I=!1,k.v=W)});return l&&r(B),n||(B.equals=Ha),function(W,Z){if(Oc!==null&&(R=I,T(),r(k)),arguments.length>0){let ne=Z?r(B):s&&l?ei(W):W;if(!B.equals(ne)){if(R=!0,N(k,ne),w&&p!==void 0&&(p=ne),$h(B))return W;St(()=>r(B))}return W}return $h(B)?B.v:r(B)}}var J_;typeof HTMLElement=="function"&&(J_=class extends HTMLElement{constructor(e,i,o){super();ir(this,"$$ctor");ir(this,"$$s");ir(this,"$$c");ir(this,"$$cn",!1);ir(this,"$$d",{});ir(this,"$$r",!1);ir(this,"$$p_d",{});ir(this,"$$l",{});ir(this,"$$l_u",new Map);ir(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}connectedCallback(){return vt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(s){return l=>{let d=document.createElement("slot");s!=="default"&&(d.name=s),$(l,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=eb(this);for(let s of this.$$s)s in n&&(s==="default"&&!this.$$d.children?(this.$$d.children=i(s),o.default=!0):o[s]=i(s));for(let s of this.attributes){let l=this.$$g_p(s.name);l in this.$$d||(this.$$d[l]=Jp(l,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=Xg({component:this.$$ctor,target:this.shadowRoot||this,props:Ft(K({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=Lc(()=>{Ko(()=>{var s;this.$$r=!0;for(let l of cp(this.$$c)){if(!((s=this.$$p_d[l])!=null&&s.reflect))continue;this.$$d[l]=this.$$c[l];let d=Jp(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let s in this.$$l)for(let l of this.$$l[s]){let d=this.$$c.$on(s,l);this.$$l_u.set(l,d)}this.$$l={}}})}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Jp(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return cp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Jp(t,e,i,o){var s;let n=(s=i[t])==null?void 0:s.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function eb(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var yh="5";var xh,wh,Sh;typeof window!="undefined"&&((Sh=(wh=(xh=window.__svelte)!=null?xh:window.__svelte={}).v)!=null?Sh:wh.v=new Set).add(yh);import{areValidLiveRecordSources as G5,clientChecker as $v}from"@vkontakte/videoplayer-core/es2015";import"@vkontakte/videoplayer-core/es2015";import{noop as I0,safeStorage as j5,throttleFn as Y5}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as Z5}from"@vkontakte/videoplayer-statistics/es2015";import{InterfaceLanguage as tb,fillWithDefault as ib,VideoQuality as Ch}from"@vkontakte/videoplayer-shared/es2015";var ob={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:tb.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:Ch.Q_480P,highQualityLimit:Ch.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,returnFocusOnControlsHide:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,interactiveHistoryEndChapterFix:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1,usePerformanceFix:!1,userVideoPrefs:!1,savePreferredStatesOnUserActionOnly:!1,useLoopSetting:!1,doubleForwardAvailable:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,paramsOverride:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null},userSalt:"0",doubleForwardActivationTime:600,playbackStatusAnimationDuration:1e3,playbackStatusNextVideoAnimationDuration:1e3},Th=t=>ib(t,ob),Eh=t=>Wa("ui-config",t),It=()=>za("ui-config");var ed="vk_player_debug_panel_opened";var Ih="videoplayer",kh="videoplayer";var ds={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Ah=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Ph=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Lh=new Set(["ShiftRight","ShiftLeft"]);var Mh=["TIMELINE"],td=[...Mh,"GRAPH_BUTTON"],ef=[...Mh,"PLAY_BUTTON"],id=[...td,"PLAY_BUTTON"];var cs=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(cs||{}),pa={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Vh,VERSION as nb}from"@vkontakte/videoplayer-shared/es2015";import{VERSION as rb}from"@vkontakte/videoplayer-core/es2015";import{VERSION as sb}from"@vkontakte/videoplayer-statistics/es2015";var Qc="prod",sl="1.1.75-beta.0";var fa=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Rh=Symbol("storeContext"),Oh=Symbol("microStoresContext"),Nh=(t,e)=>{Wa(Rh,t),Wa(Oh,e),Qc==="dev"&&(window.app={store:t,microStores:e})},Te=()=>{let t=za(Rh);return Vh(t,"Store context is empty!"),t},fo=()=>{let t=za(Oh);return Vh(t,"MicroStores context is empty!"),t},ti=(t,e)=>jc(t,t.getValue(),e),jc=(t,e,i)=>Ir(e,o=>{let n=t.subscribe(s=>{o(s),i==null||i(s)});return()=>n.unsubscribe()}),Bh=(t,e,i,o)=>{var B,F,H,W,Z,ne,j,_e;let n=t.info,{width:s,height:l}=ye(i.ui.playerSize),d=(F=(B=n.throughputEstimation$.getValue())==null?void 0:B.toFixed(0))!=null?F:0,a=(W=(H=n.rttEstimation$.getValue())==null?void 0:H.toFixed(0))!=null?W:0,u=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${sl} (core: ${rb}, stat: ${sb}, shared: ${nb})`,m=ye(i.state.errorLog$),p=m.length?`
|
|
45
|
-
`+
|
|
46
|
-
`,
|
|
47
|
-
`,
|
|
48
|
-
`;return
|
|
49
|
-
`):void 0,x=i.state.isAudioDisabled?"disabled"
|
|
50
|
-
`)},Dh=(t,e,i)=>{var F,H,W,Z;let o=t.info,{width:n,height:s}=ye(i.ui.playerSize),l={version:sl,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 u=o.intrinsicVideoSize$.getValue();u&&(l.videoSize=`${u.width}x${u.height}`);let f=o.currentBuffer$.getValue(),m=o.isLive$.getValue(),p=o.liveBufferTime$.getValue();f&&(m&&p?l.buffer=f.end-p:l.buffer=Math.max(f.end-ye(i.state.positionExact$),0)),l.position=ye(i.state.positionExact$);let x=o.throughputEstimation$.getValue();x&&(l.speed=x);let w=o.videoBitrate$.getValue();w&&(l.bitrate=w);let y=o.liveLatency$.getValue();y&&(l.liveLatency=y);let T=o.currentVideoSegmentLength$.getValue();T&&(l.currentVideoSegmentLength=T);let C=o.currentAudioSegmentLength$.getValue();C&&(l.currentAudioSegmentLength=C);let E=ye(i.vsid);typeof E=="string"&&(l.vsid=E);let R=(F=t.info.currentVideoStream$.getValue())==null?void 0:F.codec;R&&(l.videoCodec=R);let I=(H=t.info.currentAudioStream$.getValue())==null?void 0:H.codec;I&&(l.audioCodec=I),((W=t.info.currentVideoStream$.getValue())==null?void 0:W.hdr)&&(l.hdr=!0);let B=(Z=t.info.currentAudioStream$.getValue())==null?void 0:Z.language;return B&&(l.audioLanguage=B),l},Fh=(t,e)=>fa(t,e,"mp4"),Hh=t=>!t.type,Uh=t=>!!t.type,zh=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},Gc=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return vt(this,null,function*(){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=yield fetch(e,{signal:this.destroyController.signal});if(i.ok)return yield i.text();throw i}finally{this.pendingDownloads.delete(e)}})}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};import{isNullable as rf,safeStorage as Di}from"@vkontakte/videoplayer-shared/es2015";import"@vkontakte/videoplayer-core/es2015";var Wh="vk_player_prefer_traffic_saving_enabled",Kh="vk_player_preferred_volume",qh="vk_player_prefer_volume_mute",sf="vk_player_preferred_quality",tf="vk_player_preferred_default_quality_settings",of="vk_player_preferred_quality_settings_by_video",Qh="vk_player_preferred_stream_language",Gh="vk_player_preferred_rate",jh="vk_player_preferred_autoplay_next",nf="vk_player_preferred_subtitles_language",Yh="vk_player_user_video_prefs",Zh=t=>t>1?1:t<0?0:t,af=t=>Di.set(Kh,Zh(t).toString(10)),Yc=()=>{let t=Di.get(Kh);return rf(t)?void 0:Zh(parseFloat(t))},lf=(t,e)=>Di.set(sf,JSON.stringify({videoId:t,value:e})),Zc=()=>Di.remove(sf),df=t=>{let e=Di.get(sf);if(rf(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Zc();return}return o},cf=(t,e)=>{e?Di.set(t,"true"):Di.remove(t)},uf=t=>Di.get(t)==="true",pf=t=>cf(qh,t),Xh=()=>uf(qh),od=t=>cf(Wh,t),ff=()=>uf(Wh),Jh=()=>Di.get(Qh),mf=t=>Di.set(Qh,t),vf=()=>Di.get(nf),gf=t=>{t?Di.set(nf,t):Di.remove(nf)},e1=t=>Di.set(Gh,JSON.stringify({rate:t})),t1=()=>{let t=Di.get(Gh);if(rf(t))return;let{rate:e}=JSON.parse(t);return e},i1=t=>cf(jh,t),o1=()=>uf(jh),ab=()=>{let t=f=>{Di.set(tf,JSON.stringify(f))},e=()=>{try{let f=Di.get(tf);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=Di.get(of);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{Di.set(of,JSON.stringify(f))},n=f=>{u(f);let m=f?i():null;if(m&&(m==null?void 0:m.videoId)===f)return Ft(K({},m),{appliesTo:"to-video"});m&&s();let p=e();return p?Ft(K({},p),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},s=()=>{Di.remove(of)},l=()=>{Di.remove(tf)},d=(f,m="as-default")=>{f.type==="exact_quality"||m==="to-video"?o(f):t(f)},a=f=>{let m=n(f);if(m){switch(m.type){case"traffic_saving":od(!0);break;case"exact_quality":lf(f,m.quality)}s(),l()}},u=f=>{let m=df(f);if(m){o({type:"exact_quality",videoId:f,quality:m});return}ff()&&t({type:"traffic_saving",videoId:f}),od(!1),Zc()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:vf,savePreferredSubtitlesLanguage:gf}},{getPreferredQualitySettings:n1,migrateSettingsToLegacyWay:r1,savePreferredQualitySettings:Xc,savePreferredDefaultQualitySettings:mM,removePreferredQualitySettingsByVideo:vM,getPreferredDefaultQualitySettings:Jc}=ab(),lb=3,db=3,s1=()=>{let t=Di.get(Yh);if(t)try{return JSON.parse(t)}catch(e){return null}return null},eu=(t,e)=>{var n,s;let i=s1();return(s=(n=i==null?void 0:i[t])==null?void 0:n[e])!=null?s:null},hf=(t,e,i)=>{var l,d,a;let o=(l=s1())!=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=cb(o);Di.set(Yh,JSON.stringify(s))};function cb(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(db),e.reduce((o,[n])=>(o[n]=ub(t[n]),o),{})}function ub(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(lb),Object.fromEntries(e)}import{PlaybackState as C0}from"@vkontakte/videoplayer-core/es2015";var pb=Se('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"></path><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-opacity=".12" stroke-width=".5" d="m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"></path></g><defs><filter id="a" width="75" height="44" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_618_12297"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_618_12297" result="shape"></feBlend></filter></defs></svg>');function nd(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=pb();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:le}),we(2),h(o),$(t,o)}import{isNullable as d1,InterfaceLanguage as c1}from"@vkontakte/videoplayer-shared/es2015";var fb={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 xa=!1,bl=null,wa=!1,ys=!1;function Rp(t){ys=t}var fd=[],vd=[],Ot=null,ar=!1;function Ki(t){Ot=t}var xt=null;function po(t){xt=t}var qo=null;function Kc(t){Ot!==null&&Ot.f&2097152&&(qo===null?qo=[Ot,[t]]:qo[1].push(t))}var In=null,lr=0,sr=null;function Ng(t){sr=t}var ih=1,eu=0,xs=!1,tu=null;function id(){return++ih}function _a(t){var v,p;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var r,s,l=(e&512)!==0,d=o&&xt!==null&&!xs,a=i.length;if(l||d){var u=t,f=u.parent;for(r=0;r<a;r++)s=i[r],(l||!((v=s==null?void 0:s.reactions)!=null&&v.includes(u)))&&((p=s.reactions)!=null?p:s.reactions=[]).push(u);l&&(u.f^=512),d&&f!==null&&(f.f&256)===0&&(u.f^=256)}for(r=0;r<a;r++)if(s=i[r],_a(s)&&Vp(s),s.wv>t.wv)return!0}(!o||xt!==null&&!xs)&&Cn(t,1024)}return!1}function oh(t,e,i=!0){var o=t.reactions;if(o!==null)for(var r=0;r<o.length;r++){var s=o[r];qo!=null&&qo[1].includes(t)&&qo[0]===Ot||((s.f&2)!==0?oh(s,e,!1):e===s&&(i?Cn(s,2048):(s.f&1024)!==0&&Cn(s,4096),nd(s)))}}function Wc(t){var x,w;var e=In,i=lr,o=sr,r=Ot,s=xs,l=qo,d=Ut,a=ar,u=t.f;In=null,lr=0,sr=null,xs=(u&256)!==0&&(ar||!wa||Ot===null),Ot=(u&96)===0?t:null,qo=null,Jl(t.ctx),ar=!1,eu++,t.f|=2097152;try{var f=(0,t.fn)(),v=t.deps;if(In!==null){var p;if(cd(t,lr),v!==null&&lr>0)for(v.length=lr+In.length,p=0;p<In.length;p++)v[lr+p]=In[p];else t.deps=v=In;if(!xs||(u&2)!==0&&t.reactions!==null)for(p=lr;p<v.length;p++)((w=(x=v[p]).reactions)!=null?w:x.reactions=[]).push(t)}else v!==null&&lr<v.length&&(cd(t,lr),v.length=lr);if(ss()&&sr!==null&&!ar&&v!==null&&(t.f&6146)===0)for(p=0;p<sr.length;p++)oh(sr[p],t);return r!==null&&r!==t&&(eu++,sr!==null&&(o===null?o=sr:o.push(...sr))),f}catch(y){Jg(y)}finally{In=e,lr=i,sr=o,Ot=r,xs=s,qo=l,Jl(d),ar=a,t.f^=2097152}}function A_(t,e){let i=e.reactions;if(i!==null){var o=gg.call(i,t);if(o!==-1){var r=i.length-1;r===0?i=e.reactions=null:(i[o]=i[r],i.pop())}}i===null&&(e.f&2)!==0&&(In===null||!In.includes(e))&&(Cn(e,4096),(e.f&768)===0&&(e.f^=512),zc(e),cd(e,0))}function cd(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)A_(t,i[o])}function gl(t){var e=t.f;if((e&16384)===0){Cn(t,1024);var i=xt,o=wa;if(xt=t,wa=!0,Ve){var r=nr;ed(t.component_function)}try{(e&16)!==0?jg(t):Bp(t),Dp(t);var s=Wc(t);if(t.teardown=typeof s=="function"?s:null,t.wv=ih,Ve&&rs&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=id(),l.set_during_effect=!1);Ve&&vd.push(t)}finally{wa=o,xt=i,Ve&&ed(r)}}}function eh(){console.error("Last ten effects were: ",vd.slice(-10).map(t=>t.fn)),vd=[]}function P_(){try{Cg()}catch(t){if(Ve&&uo(t,"stack",{value:""}),bl!==null)if(Ve)try{pd(t,bl)}catch(e){throw eh(),e}else pd(t,bl);else throw Ve&&eh(),t}}function Kp(){var t=wa;try{var e=0;for(wa=!0;fd.length>0;){e++>1e3&&P_();var i=fd,o=i.length;fd=[];for(var r=0;r<o;r++){var s=L_(i[r]);M_(s)}vl.clear()}}finally{xa=!1,wa=t,bl=null,Ve&&(vd=[])}}function M_(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&_a(o)&&(gl(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Fp(o):o.fn=null))}}function nd(t){xa||(xa=!0,queueMicrotask(Kp));for(var e=bl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}fd.push(e)}function L_(t){for(var e=[],i=t;i!==null;){var o=i.f,r=(o&96)!==0,s=r&&(o&1024)!==0;if(!s&&(o&8192)===0){(o&4)!==0?e.push(i):r?i.f^=1024:_a(i)&&gl(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 $l(t){var e;for(t&&(xa=!0,Kp(),xa=!0,e=t());;){if(Zg(),fd.length===0)return xa=!1,bl=null,Ve&&(vd=[]),e;xa=!0,Kp()}}function Ao(){return yt(this,null,function*(){yield Promise.resolve(),$l()})}function n(t){var e=t.f,i=(e&2)!==0;if(tu!==null&&tu.add(t),Ot!==null&&!ar){if(!(qo!=null&&qo[1].includes(t))||qo[0]!==Ot){var o=Ot.deps;t.rv<eu&&(t.rv=eu,In===null&&o!==null&&o[lr]===t?lr++:In===null?In=[t]:(!xs||!In.includes(t))&&In.push(t))}}else if(i&&t.deps===null&&t.effects===null){var r=t,s=r.parent;s!==null&&(s.f&256)===0&&(r.f^=256)}if(i&&(r=t,_a(r)&&Vp(r)),Ve&&rs&&!ar&&Xl!==null&&Ot!==null&&Xl.reaction===Ot)if(t.trace)t.trace();else{var l=$s("TracedAt");if(l){var d=Xl.entries.get(t);d===void 0&&(d={traces:[]},Xl.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 ys&&vl.has(t)?vl.get(t):t.v}function Pt(t){var e=ar;try{return ar=!0,t()}finally{ar=e}}var V_=-7169;function Cn(t,e){t.f=t.f&V_|e}function ou(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Wo in t)iu(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Wo in i&&iu(i)}}}function iu(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{iu(t[o],e)}catch(r){}let i=va(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Dc(i);for(let r in o){let s=o[r].get;if(s)try{s.call(t)}catch(l){}}}}}function qp(t,e){if(e){let i=document.body;t.autofocus=!0,En(()=>{document.activeElement===i&&t.focus()})}}function md(t){var e=Ot,i=xt;Ki(null),po(null);try{return t()}finally{Ki(e),po(i)}}var Qp=new Set,nu=new Set;function Sa(t){if(!nt)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function jp(t,e,i,o={}){function r(s){if(o.capture||yl.call(e,s),!s.cancelBubble)return md(()=>i==null?void 0:i.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?En(()=>{e.addEventListener(t,r,o)}):e.addEventListener(t,r,o),r}function Ct(t,e,i,o,r){var s={capture:o,passive:r},l=jp(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Io(()=>{e.removeEventListener(t,l,s)})}function dt(t){for(var e=0;e<t.length;e++)Qp.add(t[e]);for(var i of nu)i(t)}function yl(t){var E;var e=this,i=e.ownerDocument,o=t.type,r=((E=t.composedPath)==null?void 0:E.call(t))||[],s=r[0]||t.target,l=0,d=t.__root;if(d){var a=r.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var u=r.indexOf(e);if(u===-1)return;a<=u&&(l=a)}if(s=r[l]||t.target,s!==e){uo(t,"currentTarget",{configurable:!0,get(){return s||i}});var f=Ot,v=xt;Ki(null),po(null);try{for(var p,x=[];s!==null;){var w=s.assignedSlot||s.parentNode||s.host||null;try{var y=s["__"+o];if(y!=null&&(!s.disabled||t.target===s))if(ir(y)){var[C,...T]=y;C.apply(s,[t,...T])}else y.call(s,t)}catch(R){p?x.push(R):p=R}if(t.cancelBubble||w===e||w===null)break;s=w}if(p){for(let R of x)queueMicrotask(()=>{throw R});throw p}}finally{t.__root=e,delete t.currentTarget,Ki(f),po(v)}}}var O_;function nh(){O_=void 0}function xl(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Po(t,e){var i=xt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function M(t,e){var i=(e&1)!==0,o=(e&2)!==0,r,s=!t.startsWith("<!>");return()=>{if(nt)return Po(wt,null),wt;r===void 0&&(r=xl(s?t:"<!>"+t),i||(r=Ii(r)));var l=o||rd?document.importNode(r,!0):r.cloneNode(!0);if(i){var d=Ii(l),a=l.lastChild;Po(d,a)}else Po(l,l);return l}}function B_(t,e,i="svg"){var o=!t.startsWith("<!>"),r=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(nt)return Po(wt,null),wt;if(!l){var d=xl(s),a=Ii(d);if(r)for(l=document.createDocumentFragment();Ii(a);)l.appendChild(Ii(a));else l=Ii(a)}var u=l.cloneNode(!0);if(r){var f=Ii(u),v=u.lastChild;Po(f,v)}else Po(u,u);return u}}function Ie(t,e){return B_(t,e,"svg")}function ls(t=""){if(!nt){var e=Tn(t+"");return Po(e,e),e}var i=wt;return i.nodeType!==al&&(i.before(i=Tn()),Ti(i)),Po(i,i),i}function Fe(){if(nt)return Po(wt,null),wt;var t=document.createDocumentFragment(),e=document.createComment(""),i=Tn();return t.append(e,i),Po(e,i),t}function b(t,e){if(nt){xt.nodes_end=wt,Qi();return}t!==null&&t.before(e)}var H_=/\r/g;function sh(t){t=t.replace(H_,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function ah(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var F_=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function lh(t){return F_.includes(t)}var U_=["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 z_={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 dh(t){var e;return t=t.toLowerCase(),(e=z_[t])!=null?e:t}var DC=[...U_,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var W_=["touchstart","touchmove"];function ch(t){return W_.includes(t)}var K_=["$state","$state.raw","$derived","$derived.by"],BC=[...K_,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var q_=["textarea","script","style","title"];function uh(t){return q_.includes(t)}function ru(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var gd=!0;function su(t){gd=t}function me(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function Gr(t,e){return ph(t,e)}function Yp(t,e){var l;jc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=nt,r=wt;try{for(var s=Ii(i);s&&(s.nodeType!==or||s.data!==zs);)s=Qo(s);if(!s)throw os;fo(!0),Ti(s),Qi();let d=ph(t,qt(Q({},e),{anchor:s}));if(wt===null||wt.nodeType!==or||wt.data!==fa)throw Qs(),os;return fo(!1),d}catch(d){if(d===os)return e.recover===!1&&Tg(),jc(),sd(i),fo(!1),Gr(t,e);throw d}finally{fo(o),Ti(r),nh()}}var wl=new Map;function ph(t,{target:e,anchor:i,props:o={},events:r,context:s,intro:l=!0}){jc();var d=new Set,a=v=>{for(var p=0;p<v.length;p++){var x=v[p];if(!d.has(x)){d.add(x);var w=ch(x);e.addEventListener(x,yl,{passive:w});var y=wl.get(x);y===void 0?(document.addEventListener(x,yl,{passive:w}),wl.set(x,1)):wl.set(x,y+1)}}};a(Zl(Qp)),nu.add(a);var u=void 0,f=Qg(()=>{var v=i!=null?i:e.appendChild(Tn());return Hi(()=>{if(s){F({});var p=Ut;p.c=s}r&&(o.$$events=r),nt&&Po(v,null),gd=l,u=t(v,o)||{},gd=!0,nt&&(xt.nodes_end=wt),s&&U()}),()=>{var w;for(var p of d){e.removeEventListener(p,yl);var x=wl.get(p);--x===0?(document.removeEventListener(p,yl),wl.delete(p)):wl.set(p,x)}nu.delete(a),v!==i&&((w=v.parentNode)==null||w.removeChild(v))}});return Gp.set(u,f),u}var Gp=new WeakMap;function Ca(t,e){let i=Gp.get(t);return i?(Gp.delete(t),i(e)):(Ve&&Hg(),Promise.resolve())}function be(t,e,...i){var o=t,r=ue,s;ji(()=>{r!==(r=e())&&(s&&(qi(s),s=null),Ve&&r==null&&Eg(),s=Hi(()=>r(o,...i)))},65536),nt&&(o=wt)}if(Ve){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Ag(e)},set:o=>{i=o}})}};Y_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var Y_;function Nt(t){Ut===null&&cl("onMount"),ns&&Ut.l!==null?G_(Ut).m.push(t):We(()=>{let e=Pt(t);if(typeof e=="function")return e})}function ln(t){Ut===null&&cl("onDestroy"),Nt(()=>()=>Pt(t))}function G_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var fh=new Map;function vh(t,e){var i=fh.get(t);i||(i=new Set,fh.set(t,i)),i.add(e)}function V(t,e,[i,o]=[0,0]){nt&&i===0&&Qi();var r=t,s=null,l=null,d=oo,a=i>0?65536:0,u=!1;let f=(p,x=!0)=>{u=!0,v(x,p)},v=(p,x)=>{if(d===(d=p))return;let w=!1;if(nt&&o!==-1){if(i===0){let C=Qc(r);C===zs?o=0:C===Ws?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(r=ba(),Ti(r),fo(!1),w=!0,o=-1)}d?(s?Ss(s):x&&(s=Hi(()=>x(r))),l&&Hn(l,()=>{l=null})):(l?Ss(l):x&&(l=Hi(()=>x(r,[i+1,o]))),s&&Hn(s,()=>{s=null})),w&&fo(!0)};ji(()=>{u=!1,e(f),u||v(null,null)},a),nt&&(r=wt)}function Cs(t,e,i){nt&&Qi();var o=t,r=oo,s,l=ss()?$g:ll;ji(()=>{l(r,r=e())&&(s&&Hn(s),s=Hi(()=>i(o)))}),nt&&(o=wt)}var Gs=null;function Jp(t){Gs=t}function hd(t,e){return e}function J_(t,e,i,o){for(var r=[],s=e.length,l=0;l<s;l++)Xc(e[l].e,r,!0);var d=s>0&&r.length===0&&i!==null;if(d){var a=i.parentNode;sd(a),a.append(i),o.clear(),js(t,e[0].prev,e[s-1].next)}Up(r,()=>{for(var u=0;u<s;u++){var f=e[u];d||(o.delete(f.k),js(t,f.prev,f.next)),qi(f.e,!d)}})}function Ci(t,e,i,o,r,s=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var u=t;l=nt?Ti(Ii(u)):u.appendChild(Tn())}nt&&Qi();var f=null,v=!1,p=Sn(()=>{var x=i();return ir(x)?x:x==null?[]:Zl(x)});ji(()=>{var x=n(p),w=x.length;if(v&&w===0)return;v=w===0;let y=!1;if(nt){var C=Qc(l)===Ws;C!==(w===0)&&(l=ba(),Ti(l),fo(!1),y=!0)}if(nt){for(var T=null,E,R=0;R<w;R++){if(wt.nodeType===or&&wt.data===fa){l=wt,y=!0,fo(!1);break}var A=x[R],I=o(A,R);E=hh(wt,d,T,null,A,I,R,r,e,i),d.items.set(I,E),T=E}w>0&&Ti(ba())}nt||eb(x,d,l,r,e,o,i),s!==null&&(w===0?f?Ss(f):f=Hi(()=>s(l)):f!==null&&Hn(f,()=>{f=null})),y&&fo(!0),n(p)}),nt&&(l=wt)}function eb(t,e,i,o,r,s,l){var J,ve,se,de;var d=(r&8)!==0,a=(r&3)!==0,u=t.length,f=e.items,v=e.first,p=v,x,w=null,y,C=[],T=[],E,R,A,I;if(d)for(I=0;I<u;I+=1)E=t[I],R=s(E,I),A=f.get(R),A!==void 0&&((J=A.a)==null||J.measure(),(y!=null?y:y=new Set).add(A));for(I=0;I<u;I+=1){if(E=t[I],R=s(E,I),A=f.get(R),A===void 0){var N=p?p.e.nodes_start:i;w=hh(N,e,w,w===null?e.first:w.next,E,R,I,o,r,l),f.set(R,w),C=[],T=[],p=w.next;continue}if(a&&tb(A,E,I,r),(A.e.f&8192)!==0&&(Ss(A.e),d&&((ve=A.a)==null||ve.unfix(),(y!=null?y:y=new Set).delete(A))),A!==p){if(x!==void 0&&x.has(A)){if(C.length<T.length){var H=T[0],B;w=H.prev;var z=C[0],X=C[C.length-1];for(B=0;B<C.length;B+=1)mh(C[B],H,i);for(B=0;B<T.length;B+=1)x.delete(T[B]);js(e,z.prev,X.next),js(e,w,z),js(e,X,H),p=H,w=X,I-=1,C=[],T=[]}else x.delete(A),mh(A,p,i),js(e,A.prev,A.next),js(e,A,w===null?e.first:w.next),js(e,w,A),w=A;continue}for(C=[],T=[];p!==null&&p.k!==R;)(p.e.f&8192)===0&&(x!=null?x:x=new Set).add(p),T.push(p),p=p.next;if(p===null)continue;A=p}C.push(A),w=A,p=A.next}if(p!==null||x!==void 0){for(var le=x===void 0?[]:Zl(x);p!==null;)(p.e.f&8192)===0&&le.push(p),p=p.next;var q=le.length;if(q>0){var ce=(r&4)!==0&&u===0?i:null;if(d){for(I=0;I<q;I+=1)(se=le[I].a)==null||se.measure();for(I=0;I<q;I+=1)(de=le[I].a)==null||de.fix()}J_(e,le,ce,f)}}d&&En(()=>{var Le;if(y!==void 0)for(A of y)(Le=A.a)==null||Le.apply()}),xt.first=e.first&&e.first.e,xt.last=w&&w.e}function tb(t,e,i,o){(o&1)!==0&&ml(t.v,e),(o&2)!==0?ml(t.i,i):t.i=i}function hh(t,e,i,o,r,s,l,d,a,u){var f=Gs,v=(a&1)!==0,p=(a&16)===0,x=v?p?as(r,!1,!1):xr(r):r,w=(a&2)===0?l:xr(l);Ve&&v&&(x.trace=()=>{var C=typeof w=="number"?l:w.v;u()[C]});var y={i:w,v:x,k:s,a:null,e:null,prev:i,next:o};Gs=y;try{return y.e=Hi(()=>d(t,x,w,u),nt),y.e.prev=i&&i.e,y.e.next=o&&o.e,i===null?e.first=y:(i.next=y,i.e.next=y.e),o!==null&&(o.prev=y,o.e.prev=y.e),y}finally{Gs=f}}function mh(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,r=e?e.e.nodes_start:i,s=t.e.nodes_start;s!==o;){var l=Qo(s);r.before(s),s=l}}function js(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function ib(t,e,i){var s,l;if(!e||e===sh(String(i!=null?i:"")))return;let o,r=(s=t.__svelte_meta)==null?void 0:s.loc;r?o=`near ${r.file}:${r.line}:${r.column}`:(l=nr)!=null&&l[On]&&(o=`in ${nr[On]}`),Bg(ru(o))}function _d(t,e,i=!1,o=!1,r=!1){var s=t,l="";D(()=>{var x;var d=xt;if(l===(l=(x=e())!=null?x:"")){nt&&Qi();return}if(d.nodes_start!==null&&(Hp(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(nt){for(var a=wt.data,u=Qi(),f=u;u!==null&&(u.nodeType!==or||u.data!=="");)f=u,u=Qo(u);if(u===null)throw Qs(),os;Ve&&!r&&ib(u.parentNode,a,l),Po(wt,f),s=Ti(u);return}var v=l+"";i?v=`<svg>${v}</svg>`:o&&(v=`<math>${v}</math>`);var p=xl(v);if((i||o)&&(p=Ii(p)),Po(Ii(p),p.lastChild),i||o)for(;Ii(p);)s.before(Ii(p));else s.before(p)}})}function Vi(t,e,i){nt&&Qi();var o=t,r,s;ji(()=>{r!==(r=e())&&(s&&(Hn(s),s=null),r&&(s=Hi(()=>i(o,r))))},65536),nt&&(o=wt)}function Ta(t,e,i,o,r,s){var w;let l=nt;nt&&Qi();var d=Ve&&s&&((w=Ut)==null?void 0:w.function[On]),a,u,f=null;nt&&wt.nodeType===Hc&&(f=wt,Qi());var v=nt?wt:t,p,x=Gs;ji(()=>{let y=e()||null;var C=r?r():i||y==="svg"?Oc:null;if(y!==a){var T=Gs;Jp(x),p&&(y===null?Hn(p,()=>{p=null,u=null}):y===u?Ss(p):(qi(p),su(!1))),y&&y!==u&&(p=Hi(()=>{if(f=nt?f:C?document.createElementNS(C,y):document.createElement(y),Ve&&s&&(f.__svelte_meta={loc:{file:d,line:s[0],column:s[1]}}),Po(f,f),o){nt&&uh(y)&&f.append(document.createComment(""));var E=nt?Ii(f):f.appendChild(Tn());nt&&(E===null?fo(!1):Ti(E)),o(f,E)}xt.nodes_end=f,v.before(f)})),a=y,a&&(u=a),su(!0),Jp(T)}},65536),l&&(fo(!0),Ti(v))}var tf;function _h(t){return tf=t.target,new ef(t)}var Ts,wr,ef=class{constructor(e){Us(this,Ts);Us(this,wr);var s,l;var i=new Map,o=(d,a)=>{var u=as(a,!1,!1);return i.set(d,u),u};let r=new Proxy(qt(Q({},e.props||{}),{$$events:{}}),{get(d,a){var u;return n((u=i.get(a))!=null?u:o(a,Reflect.get(d,a)))},has(d,a){var u;return a===sl?!0:(n((u=i.get(a))!=null?u:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,u){var f;return O((f=i.get(a))!=null?f:o(a,u),u),Reflect.set(d,a,u)}});rl(this,wr,(e.hydrate?Yp:Gr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:(s=e.intro)!=null?s:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&$l(),rl(this,Ts,r.$$events);for(let d of Object.keys(Bi(this,wr)))d==="$set"||d==="$destroy"||d==="$on"||uo(this,d,{get(){return Bi(this,wr)[d]},set(a){Bi(this,wr)[d]=a},enumerable:!0});Bi(this,wr).$set=d=>{Object.assign(r,d)},Bi(this,wr).$destroy=()=>{Ca(Bi(this,wr))}}$set(e){Bi(this,wr).$set(e)}$on(e,i){Bi(this,Ts)[e]=Bi(this,Ts)[e]||[];let o=(...r)=>i.call(this,...r);return Bi(this,Ts)[e].push(o),()=>{Bi(this,Ts)[e]=Bi(this,Ts)[e].filter(r=>r!==o)}}$destroy(){Bi(this,wr).$destroy()}};Ts=new WeakMap,wr=new WeakMap;function W(t,e){En(()=>{var r,s,l;var i=t.getRootNode(),o=i.host?i:(l=(r=i.head)!=null?r:i.ownerDocument.head)!=null?l:(s=tf)==null?void 0:s.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Ve&&vh(e.hash,d)}})}function Es(t,e){var i=void 0,o;ji(()=>{i!==(i=e())&&(o&&(qi(o),o=null),i&&(o=Hi(()=>{ko(()=>i(t))})))})}function bh(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(i=bh(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function $h(){for(var t,e,i=0,o="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=bh(t))&&(o&&(o+=" "),o+=e);return o}function bd(t){return typeof t=="object"?$h(t):t!=null?t:""}var yh=[...`
|
|
44
|
+
\r\f\xA0\v\uFEFF`];function wh(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var r in i)if(i[r])o=o?o+" "+r:r;else if(o.length)for(var s=r.length,l=0;(l=o.indexOf(r,l))>=0;){var d=l+s;(l===0||yh.includes(o[l-1]))&&(d===o.length||yh.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function xh(t,e=!1){var i=e?" !important;":";",o="";for(var r in t){var s=t[r];s!=null&&s!==""&&(o+=" "+r+": "+s+i)}return o}function of(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Sh(t,e){if(e){var i="",o,r;if(Array.isArray(e)?(o=e[0],r=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var s=!1,l=0,d=!1,a=[];o&&a.push(...Object.keys(o).map(of)),r&&a.push(...Object.keys(r).map(of));var u=0,f=-1;let y=t.length;for(var v=0;v<y;v++){var p=t[v];if(d?p==="/"&&t[v-1]==="*"&&(d=!1):s?s===p&&(s=!1):p==="/"&&t[v+1]==="*"?d=!0:p==='"'||p==="'"?s=p:p==="("?l++:p===")"&&l--,!d&&s===!1&&l===0){if(p===":"&&f===-1)f=v;else if(p===";"||v===y-1){if(f!==-1){var x=of(t.substring(u,f).trim());if(!a.includes(x)){p!==";"&&v++;var w=t.substring(u,v).trim();i+=" "+w+";"}}u=v+1,f=-1}}}}return o&&(i+=xh(o)),r&&(i+=xh(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function re(t,e,i,o,r,s){var l=t.__className;if(nt||l!==i||l===void 0){var d=wh(i,o,s);(!nt||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(s&&r!==s)for(var a in s){var u=!!s[a];(r==null||u!==!!r[a])&&t.classList.toggle(a,u)}return s}function nf(t,e={},i,o){for(var r in i){var s=i[r];e[r]!==s&&(i[r]==null?t.style.removeProperty(r):t.style.setProperty(r,s,o))}}function Je(t,e,i,o){var r=t.__style;if(nt||r!==e){var s=Sh(e,o);(!nt||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}else o&&(Array.isArray(o)?(nf(t,i==null?void 0:i[0],o[0]),nf(t,i==null?void 0:i[1],o[1],"important")):nf(t,i,o));return o}function $d(t,e,i){if(t.multiple){if(e==null)return;if(!ir(e))return Fg();for(var o of t.options)o.selected=e.includes(Ch(o));return}for(o of t.options){var r=Ch(o);if(kp(r,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function rf(t){var e=new MutationObserver(()=>{$d(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Io(()=>{e.disconnect()})}function Ch(t){return"__value"in t?t.__value:t.value}var Sl=Symbol("class"),Cl=Symbol("style"),Ih=Symbol("is custom element"),kh=Symbol("is html");function Ah(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Ke(t,e,i,o){var r=Mh(t);if(nt&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||cb(t,e,i!=null?i:"");return}r[e]!==(r[e]=i)&&(e==="loading"&&(t[bg]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Lh(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Ph(t,e,i,o,r=!1){var A;var s=Mh(t),l=s[Ih],d=!s[kh];let a=nt&&l;a&&fo(!1);var u=e||{},f=t.tagName==="OPTION";for(var v in e)v in i||(i[v]=null);i.class?i.class=bd(i.class):(o||i[Sl])&&(i.class=null),i[Cl]&&((A=i.style)!=null||(i.style=null));var p=Lh(t);for(let I in i){let N=i[I];if(f&&I==="value"&&N==null){t.value=t.__value="",u[I]=N;continue}if(I==="class"){var x=t.namespaceURI==="http://www.w3.org/1999/xhtml";re(t,x,N,o,e==null?void 0:e[Sl],i[Sl]),u[I]=N,u[Sl]=i[Sl];continue}if(I==="style"){Je(t,N,e==null?void 0:e[Cl],i[Cl]),u[I]=N,u[Cl]=i[Cl];continue}var w=u[I];if(!(N===w&&!(N===void 0&&t.hasAttribute(I)))){u[I]=N;var y=I[0]+I[1];if(y!=="$$")if(y==="on"){let H={},B="$$"+I,z=I.slice(2);var C=lh(z);if(ah(z)&&(z=z.slice(0,-7),H.capture=!0),!C&&w){if(N!=null)continue;t.removeEventListener(z,u[B],H),u[B]=null}if(N!=null)if(C)t[`__${z}`]=N,dt([z]);else{let X=function(le){u[I].call(this,le)};var R=X;u[B]=jp(z,t,X,H)}else C&&(t[`__${z}`]=void 0)}else if(I==="style")Ke(t,I,N);else if(I==="autofocus")qp(t,!!N);else if(!l&&(I==="__value"||I==="value"&&N!=null))t.value=t.__value=N;else if(I==="selected"&&f)Ah(t,N);else{var T=I;d||(T=dh(T));var E=T==="defaultValue"||T==="defaultChecked";if(N==null&&!l&&!E)if(s[I]=null,T==="value"||T==="checked"){let H=t,B=e===void 0;if(T==="value"){let z=H.defaultValue;H.removeAttribute(T),H.defaultValue=z,H.value=H.__value=B?z:null}else{let z=H.defaultChecked;H.removeAttribute(T),H.defaultChecked=z,H.checked=B?z:!1}}else t.removeAttribute(I);else E||p.includes(T)&&(l||typeof N!="string")?t[T]=N:typeof N!="function"&&Ke(t,T,N,r)}}}return a&&fo(!0),u}function Ae(t,e,i=[],o,r=!1,s=qr){let l=i.map(s);var d=void 0,a={},u=t.nodeName==="SELECT",f=!1;if(ji(()=>{var p=e(...l.map(n)),x=Ph(t,d,p,o,r);f&&u&&"value"in p&&$d(t,p.value,!1);for(let y of Object.getOwnPropertySymbols(a))p[y]||qi(a[y]);for(let y of Object.getOwnPropertySymbols(p)){var w=p[y];y.description===yp&&(!d||w!==d[y])&&(a[y]&&qi(a[y]),a[y]=Hi(()=>Es(t,()=>w))),x[y]=w}d=x}),u){var v=t;ko(()=>{$d(v,d.value),rf(v)})}f=!0}function Mh(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Ih]:t.nodeName.includes("-"),[kh]:t.namespaceURI===pg}}var Th=new Map;function Lh(t){var e=Th.get(t.nodeName);if(e)return e;Th.set(t.nodeName,e=[]);for(var i,o=t,r=Element.prototype;r!==o;){i=Dc(o);for(var s in i)i[s].set&&e.push(s);o=va(o)}return e}function cb(t,e,i){var o;Ve&&(e==="srcset"&&ub(t,i)||sf((o=t.getAttribute(e))!=null?o:"",i)||Dg(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function sf(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Eh(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function ub(t,e){var i=Eh(t.srcset),o=Eh(e);return o.length===i.length&&o.every(([r,s],l)=>s===i[l][1]&&(sf(i[l][0],r)||sf(r,i[l][0])))}var pb=Nc?()=>performance.now():()=>Date.now(),Yr={tick:t=>(Nc?requestAnimationFrame:ue)(t),now:()=>pb(),tasks:new Set};function Vh(){let t=Yr.now();Yr.tasks.forEach(e=>{e.c(t)||(Yr.tasks.delete(e),e.f())}),Yr.tasks.size!==0&&Yr.tick(Vh)}function Rh(t){let e;return Yr.tasks.size===0&&Yr.tick(Vh),{promise:new Promise(i=>{Yr.tasks.add(e={c:t,f:i})}),abort(){Yr.tasks.delete(e)}}}function au(t,e){md(()=>{t.dispatchEvent(new CustomEvent(e))})}function gb(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 Oh(t){let e={},i=t.split(";");for(let o of i){let[r,s]=o.split(":");if(!r||s===void 0)break;let l=gb(r.trim());e[l]=s.trim()}return e}var hb=t=>t;function Zr(t,e,i,o){var R;var r=(t&1)!==0,s=(t&2)!==0,l=r&&s,d=(t&4)!==0,a=l?"both":r?"in":"out",u,f=e.inert,v=e.style.overflow,p,x;function w(){var N;var A=Ot,I=xt;Ki(null),po(null);try{return u!=null?u:u=i()(e,(N=o==null?void 0:o())!=null?N:{},{direction:a})}finally{Ki(A),po(I)}}var y={is_global:d,in(){var A;if(e.inert=f,!r){x==null||x.abort(),(A=x==null?void 0:x.reset)==null||A.call(x);return}s||p==null||p.abort(),au(e,"introstart"),p=af(e,w(),x,1,()=>{au(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=v})},out(A){if(!s){A==null||A(),u=void 0;return}e.inert=!0,au(e,"outrostart"),x=af(e,w(),p,0,()=>{au(e,"outroend"),A==null||A()})},stop:()=>{p==null||p.abort(),x==null||x.abort()}},C=xt;if(((R=C.transitions)!=null?R:C.transitions=[]).push(y),r&&gd){var T=d;if(!T){for(var E=C.parent;E&&(E.f&65536)!==0;)for(;(E=E.parent)&&(E.f&16)===0;);T=!E||(E.f&32768)!==0}T&&ko(()=>{Pt(()=>y.in())})}}function af(t,e,i,o,r){var s=o===1;if(Ks(e)){var l,d=!1;return En(()=>{if(!d){var C=e({direction:s?"in":"out"});l=af(t,C,i,o,r)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return r(),{abort:ue,deactivate:ue,reset:ue,t:()=>o};let{delay:a=0,css:u,tick:f,easing:v=hb}=e;var p=[];if(s&&i===void 0&&(f&&f(0,1),u)){var x=Oh(u(0,1));p.push(x,x)}var w=()=>1-o,y=t.animate(p,{duration:a,fill:"forwards"});return y.onfinish=()=>{var z;y.cancel();var C=(z=i==null?void 0:i.t())!=null?z:1-o;i==null||i.abort();var T=o-C,E=e.duration*Math.abs(T),R=[];if(E>0){var A=!1;if(u)for(var I=Math.ceil(E/16.666666666666668),N=0;N<=I;N+=1){var H=C+T*v(N/I),B=Oh(u(H,1-H));R.push(B),A||(A=B.overflow==="hidden")}A&&(t.style.overflow="hidden"),w=()=>{var X=y.currentTime;return C+T*v(X/E)},f&&Rh(()=>{if(y.playState!=="running")return!1;var X=w();return f(X,1-X),!0})}y=t.animate(R,{duration:E,fill:"forwards"}),y.onfinish=()=>{w=()=>o,f==null||f(o,1-o),r()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=ue)},deactivate:()=>{r=ue},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}function lf(t,e,i){var o=zo(t,e);o&&o.set&&(t[e]=i,Io(()=>{t[e]=null}))}var Ys,Tl,yd,du,Nh,cu=class cu{constructor(e){Us(this,du);Us(this,Ys,new WeakMap);Us(this,Tl);Us(this,yd);rl(this,yd,e)}observe(e,i){var o=Bi(this,Ys).get(e)||new Set;return o.add(i),Bi(this,Ys).set(e,o),cg(this,du,Nh).call(this).observe(e,Bi(this,yd)),()=>{var r=Bi(this,Ys).get(e);r.delete(i),r.size===0&&(Bi(this,Ys).delete(e),Bi(this,Tl).unobserve(e))}}};Ys=new WeakMap,Tl=new WeakMap,yd=new WeakMap,du=new WeakSet,Nh=function(){var e;return(e=Bi(this,Tl))!=null?e:rl(this,Tl,new ResizeObserver(i=>{for(var o of i){cu.entries.set(o.target,o);for(var r of Bi(this,Ys).get(o.target)||[])r(o)}}))},tr(cu,"entries",new WeakMap);var df=cu;var _b=new df({box:"border-box"});function kn(t,e,i){var o=_b.observe(t,()=>i(t[e]));ko(()=>(Pt(()=>i(t[e])),o))}function Dh(t,e){return t===e||(t==null?void 0:t[Wo])===e}function at(t={},e,i,o){return ko(()=>{var r,s;return jo(()=>{r=s,s=(o==null?void 0:o())||[],Pt(()=>{t!==i(...s)&&(e(t,...s),r&&Dh(i(...r),t)&&e(null,...r))})}),()=>{En(()=>{s&&Dh(i(...s),t)&&e(null,...s)})}}),t}function Go(t=!1){let e=Ut,i=e.l.u;if(!i)return;let o=()=>ou(e.s);if(t){let r=0,s={},l=qr(()=>{let d=!1,a=e.s;for(let u in a)a[u]!==s[u]&&(s[u]=a[u],d=!0);return d&&r++,r});o=()=>n(l)}i.b.length&&dd(()=>{Bh(e,o),qs(i.b)}),We(()=>{let r=Pt(()=>i.m.map(_g));return()=>{for(let s of r)typeof s=="function"&&s()}}),i.a.length&&We(()=>{Bh(e,o),qs(i.a)})}function Bh(t,e){if(t.l.s)for(let i of t.l.s)n(i);e()}function xd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ue;let o=Pt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var El=[];function Sr(t,e){return{subscribe:ae(t,e).subscribe}}function ae(t,e=ue){let i=null,o=new Set;function r(d){if(ll(t,d)&&(t=d,i)){let a=!El.length;for(let u of o)u[1](),El.push(u,t);if(a){for(let u=0;u<El.length;u+=2)El[u][0](El[u+1]);El.length=0}}}function s(d){r(d(t))}function l(d,a=ue){let u=[d,a];return o.add(u),o.size===1&&(i=e(r,s)||ue),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:r,update:s,subscribe:l}}function $i(t,e,i){let o=!Array.isArray(t),r=o?[t]:t;if(!r.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let s=e.length<2;return Sr(i,(l,d)=>{let a=!1,u=[],f=0,v=ue,p=()=>{if(f)return;v();let w=e(o?u[0]:u,l,d);s?l(w):v=typeof w=="function"?w:ue},x=r.map((w,y)=>xd(w,C=>{u[y]=C,f&=~(1<<y),a&&p()},()=>{f|=1<<y}));return a=!0,p(),function(){qs(x),v(),a=!1}})}function $e(t){let e;return xd(t,i=>e=i)(),e}var uu=!1,cf=Symbol();function S(t,e,i){var s;let o=(s=i[e])!=null?s:i[e]={store:null,source:as(void 0),unsubscribe:ue};if(o.store!==t&&!(cf in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=ue;else{var r=!0;o.unsubscribe=xd(t,l=>{r?o.source.v=l:O(o.source,l)}),r=!1}return t&&cf in i?$e(t):n(o.source)}function Be(){let t={};function e(){Io(()=>{for(var i in t)t[i].unsubscribe();uo(t,cf,{enumerable:!1,value:!0})})}return[t,e]}function uf(t){var e=uu;try{return uu=!1,[t(),uu]}finally{uu=e}}var Cb={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ve&&kg(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Oe(t,e,i){return new Proxy(Ve?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},Cb)}var Tb={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 r=t.props[o];Ks(r)&&(r=r());let s=zo(r,e);if(s&&s.set)return s.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ks(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let r=zo(o,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===Wo||e===sl)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 Is(...t){return new Proxy({props:t},Tb)}function Hh(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function h(t,e,i,o){var H,B;var r=(i&1)!==0,s=!ns||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,u;l?[u,a]=uf(()=>t[e]):u=t[e];var f=Wo in t||sl in t,v=l&&((B=(H=zo(t,e))==null?void 0:H.set)!=null?B:f&&e in t&&(z=>t[e]=z))||void 0,p=o,x=!0,w=!1,y=()=>(w=!0,x&&(x=!1,d?p=Pt(o):p=o),p);u===void 0&&o!==void 0&&(v&&s&&Ig(e),u=y(),v&&v(u));var C;if(s)C=()=>{var z=t[e];return z===void 0?y():(x=!0,w=!1,z)};else{var T=(r?qr:Sn)(()=>t[e]);T.f|=131072,C=()=>{var z=n(T);return z!==void 0&&(p=void 0),z===void 0?p:z}}if((i&4)===0&&s)return C;if(v){var E=t.$$legacy;return function(z,X){return arguments.length>0?((!s||!X||E||a)&&v(X?C():z),z):C()}}var R=!1,A=!1,I=as(u),N=qr(()=>{var z=C(),X=n(I);return R?(R=!1,A=!0,X):(A=!1,I.v=z)});return l&&n(N),r||(N.equals=dl),function(z,X){if(tu!==null&&(R=A,C(),n(I)),arguments.length>0){let le=X?n(N):s&&l?di(z):z;if(!N.equals(le)){if(R=!0,O(I,le),w&&p!==void 0&&(p=le),Hh(N))return z;Pt(()=>n(N))}return z}return Hh(N)?N.v:n(N)}}var Eb;typeof HTMLElement=="function"&&(Eb=class extends HTMLElement{constructor(e,i,o){super();tr(this,"$$ctor");tr(this,"$$s");tr(this,"$$c");tr(this,"$$cn",!1);tr(this,"$$d",{});tr(this,"$$r",!1);tr(this,"$$p_d",{});tr(this,"$$l",{});tr(this,"$$l_u",new Map);tr(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let r=this.$$c.$on(e,i);this.$$l_u.set(i,r)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let r=this.$$l_u.get(i);r&&(r(),this.$$l_u.delete(i))}}connectedCallback(){return yt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(s){return l=>{let d=document.createElement("slot");s!=="default"&&(d.name=s),b(l,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},r=Ib(this);for(let s of this.$$s)s in r&&(s==="default"&&!this.$$d.children?(this.$$d.children=i(s),o.default=!0):o[s]=i(s));for(let s of this.attributes){let l=this.$$g_p(s.name);l in this.$$d||(this.$$d[l]=pf(l,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=_h({component:this.$$ctor,target:this.shadowRoot||this,props:qt(Q({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=Zc(()=>{jo(()=>{var s;this.$$r=!0;for(let l of xp(this.$$c)){if(!((s=this.$$p_d[l])!=null&&s.reflect))continue;this.$$d[l]=this.$$c[l];let d=pf(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let s in this.$$l)for(let l of this.$$l[s]){let d=this.$$c.$on(s,l);this.$$l_u.set(l,d)}this.$$l={}}})}attributeChangedCallback(e,i,o){var r;this.$$r||(e=this.$$g_p(e),this.$$d[e]=pf(e,o,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return xp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function pf(t,e,i,o){var s;let r=(s=i[t])==null?void 0:s.type;if(e=r==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(r){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(r){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Ib(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Fh="5";var Uh,zh,Wh;typeof window!="undefined"&&((Wh=(zh=(Uh=window.__svelte)!=null?Uh:window.__svelte={}).v)!=null?Wh:zh.v=new Set).add(Fh);import{areValidLiveRecordSources as qw,clientChecker as Fm}from"@vkontakte/videoplayer-core/es2015";import"@vkontakte/videoplayer-core/es2015";import{noop as X0,safeStorage as Qw,throttleFn as jw}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as Gw}from"@vkontakte/videoplayer-statistics/es2015";import{InterfaceLanguage as kb,fillWithDefault as Ab,VideoQuality as Kh}from"@vkontakte/videoplayer-shared/es2015";var Pb={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:kb.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:Kh.Q_480P,highQualityLimit:Kh.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,returnFocusOnControlsHide:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,interactiveHistoryEndChapterFix:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1,usePerformanceFix:!1,userVideoPrefs:!1,savePreferredStatesOnUserActionOnly:!1,useLoopSetting:!1,doubleForwardAvailable:!1,useRichSeek:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,paramsOverride:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null},userSalt:"0",doubleForwardActivationTime:600,playbackStatusAnimationDuration:1e3,playbackStatusNextVideoAnimationDuration:1e3,suitableDurationForUsingRichSeek:180},qh=t=>Ab(t,Pb),Qh=t=>pl("ui-config",t),Rt=()=>ul("ui-config");var wd="vk_player_debug_panel_opened";var jh="videoplayer",Gh="videoplayer";var ds={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Yh=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Zh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Xh=new Set(["ShiftRight","ShiftLeft"]);var Jh=["TIMELINE"],Sd=[...Jh,"GRAPH_BUTTON"],ff=[...Jh,"PLAY_BUTTON"],Cd=[...Sd,"PLAY_BUTTON"];var cs=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(cs||{}),Ia={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as e1,VERSION as Mb}from"@vkontakte/videoplayer-shared/es2015";import{VERSION as Lb}from"@vkontakte/videoplayer-core/es2015";import{VERSION as Vb}from"@vkontakte/videoplayer-statistics/es2015";var pu="prod",Il="1.1.75-dev.3ba5a3c2.0";var ka=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var t1=Symbol("storeContext"),i1=Symbol("microStoresContext"),o1=(t,e)=>{pl(t1,t),pl(i1,e),pu==="dev"&&(window.app={store:t,microStores:e})},_e=()=>{let t=ul(t1);return e1(t,"Store context is empty!"),t},xo=()=>{let t=ul(i1);return e1(t,"MicroStores context is empty!"),t},ci=(t,e)=>vu(t,t.getValue(),e),vu=(t,e,i)=>Sr(e,o=>{let r=t.subscribe(s=>{o(s),i==null||i(s)});return()=>r.unsubscribe()}),n1=(t,e,i,o)=>{var H,B,z,X,le,q,ce,J,ve;let r=t.info,{width:s,height:l}=$e(i.ui.playerSize),d=(B=(H=r.throughputEstimation$.getValue())==null?void 0:H.toFixed(0))!=null?B:0,a=(X=(z=r.rttEstimation$.getValue())==null?void 0:z.toFixed(0))!=null?X:0,u=r.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${Il} (core: ${Lb}, stat: ${Vb}, shared: ${Mb})`,v=$e(i.state.errorLog$),p=v.length?`
|
|
45
|
+
`+v.map((se,de)=>{var Ne;let Le=`${de}) Type: ${se.id}
|
|
46
|
+
`,Se=`Message: ${se.message} (${se.thrown})
|
|
47
|
+
`,ie=`Trace: ${(Ne=se.thrown)==null?void 0:Ne.stack}
|
|
48
|
+
`;return Le+Se+ie}).join(`
|
|
49
|
+
`):void 0,x=i.state.isAudioDisabled?"disabled":$e(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),y=t.info.currentAudioStream$.getValue(),C=[];w&&C.push(`Video: ${(le=w==null?void 0:w.codec)!=null?le:""}`+(w!=null&&w.hdr?" (HDR)":"")),y&&C.push(`Audio: ${(q=y==null?void 0:y.codec)!=null?q:""}`+(y!=null&&y.language?` (${y.language})`:""));let T=r.currentQuality$.getValue(),E="";if(T){let se=r.availableQualitiesFps$.getValue()[T];E=se?`${se}fps`:""}let R=r.httpConnectionType$.getValue(),A=(J=(ce=r.currentBuffer$.getValue())==null?void 0:ce.end)!=null?J:0,I=Math.max(A-$e(i.state.positionExact$),0),N={Version:f,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:$e(i.vsid),"Content host":r.hostname$.getValue(),"Connection type":R?R+(r.httpConnectionReused$.getValue()?" (reused)":""):"",Throughput:`${d}Kbps @ ${a}ms RTT`,Format:r.currentFormat$.getValue(),"Available Formats":e!=null&&e.sources?Object.keys(e.sources).join(", "):"",Streams:C.join(", "),Quality:`${u} ${T!=null?T:""} ${E}`,"Available qualities":r.availableQualities$.getValue().join(", "),Audio:x,Position:`${$e(i.state.positionExact$)}s`,Buffer:`${I}s`,State:`${$e(i.playerPhase)} ${(ve=r.playbackState$.getValue())!=null?ve:""}`,"Player size":`${s}x${l}`,URL:window.location.href,Errors:p};return Object.entries(N).filter(([se,de])=>de!==void 0).map(([se,de])=>`${se}: ${de}`).join(`
|
|
50
|
+
`)},r1=(t,e,i)=>{var H,B,z,X;let o=t.info,{width:r,height:s}=$e(i.ui.playerSize),l={version:Il,viewport:`${r}x${s}`,volume:Math.round($e(i.state.volume$)*100)};l.id=i.videoId,o.currentFormat$.getValue()&&(l.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(l.cdn=o.hostname$.getValue());let u=o.intrinsicVideoSize$.getValue();u&&(l.videoSize=`${u.width}x${u.height}`);let f=o.currentBuffer$.getValue(),v=o.isLive$.getValue(),p=o.liveBufferTime$.getValue();f&&(v&&p?l.buffer=f.end-p:l.buffer=Math.max(f.end-$e(i.state.positionExact$),0)),l.position=$e(i.state.positionExact$);let x=o.throughputEstimation$.getValue();x&&(l.speed=x);let w=o.videoBitrate$.getValue();w&&(l.bitrate=w);let y=o.liveLatency$.getValue();y&&(l.liveLatency=y);let C=o.currentVideoSegmentLength$.getValue();C&&(l.currentVideoSegmentLength=C);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let E=$e(i.vsid);typeof E=="string"&&(l.vsid=E);let R=(H=t.info.currentVideoStream$.getValue())==null?void 0:H.codec;R&&(l.videoCodec=R);let A=(B=t.info.currentAudioStream$.getValue())==null?void 0:B.codec;A&&(l.audioCodec=A),((z=t.info.currentVideoStream$.getValue())==null?void 0:z.hdr)&&(l.hdr=!0);let N=(X=t.info.currentAudioStream$.getValue())==null?void 0:X.language;return N&&(l.audioLanguage=N),l},s1=(t,e)=>ka(t,e,"mp4"),a1=t=>!t.type,l1=t=>!!t.type,d1=()=>{let e=[],i=0;return{add:(o,r)=>{e[i]=[o,r],i=(i+1)%10},find:o=>e.find(([r])=>r===o)}},fu=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return yt(this,null,function*(){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=yield fetch(e,{signal:this.destroyController.signal});if(i.ok)return yield i.text();throw i}finally{this.pendingDownloads.delete(e)}})}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};import{isNullable as hf,safeStorage as Ai}from"@vkontakte/videoplayer-shared/es2015";import"@vkontakte/videoplayer-core/es2015";var Rb="vk_player_",c1="vk_player_prefer_traffic_saving_enabled",u1="vk_player_preferred_volume",p1="vk_player_prefer_volume_mute",_f="vk_player_preferred_quality",vf="vk_player_preferred_default_quality_settings",mf="vk_player_preferred_quality_settings_by_video",f1="vk_player_preferred_stream_language",v1="vk_player_preferred_rate",m1="vk_player_preferred_autoplay_next",gf="vk_player_preferred_subtitles_language",g1="vk_player_user_video_prefs",h1=`${Rb}preview_track_close_tooltip`,_1=t=>t>1?1:t<0?0:t,bf=t=>Ai.set(u1,_1(t).toString(10)),mu=()=>{let t=Ai.get(u1);return hf(t)?void 0:_1(parseFloat(t))},$f=(t,e)=>Ai.set(_f,JSON.stringify({videoId:t,value:e})),gu=()=>Ai.remove(_f),yf=t=>{let e=Ai.get(_f);if(hf(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){gu();return}return o},xf=(t,e)=>{e?Ai.set(t,"true"):Ai.remove(t)},wf=t=>Ai.get(t)==="true",Sf=t=>xf(p1,t),b1=()=>wf(p1),Td=t=>xf(c1,t),Cf=()=>wf(c1),$1=()=>Ai.get(f1),Tf=t=>Ai.set(f1,t),Ef=()=>Ai.get(gf),If=t=>{t?Ai.set(gf,t):Ai.remove(gf)},y1=t=>Ai.set(v1,JSON.stringify({rate:t})),x1=()=>{let t=Ai.get(v1);if(hf(t))return;let{rate:e}=JSON.parse(t);return e},w1=t=>xf(m1,t),S1=()=>wf(m1),Ob=()=>{let t=f=>{Ai.set(vf,JSON.stringify(f))},e=()=>{try{let f=Ai.get(vf);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=Ai.get(mf);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{Ai.set(mf,JSON.stringify(f))},r=f=>{u(f);let v=f?i():null;if(v&&(v==null?void 0:v.videoId)===f)return qt(Q({},v),{appliesTo:"to-video"});v&&s();let p=e();return p?qt(Q({},p),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},s=()=>{Ai.remove(mf)},l=()=>{Ai.remove(vf)},d=(f,v="as-default")=>{f.type==="exact_quality"||v==="to-video"?o(f):t(f)},a=f=>{let v=r(f);if(v){switch(v.type){case"traffic_saving":Td(!0);break;case"exact_quality":$f(f,v.quality)}s(),l()}},u=f=>{let v=yf(f);if(v){o({type:"exact_quality",videoId:f,quality:v});return}Cf()&&t({type:"traffic_saving",videoId:f}),Td(!1),gu()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:Ef,savePreferredSubtitlesLanguage:If}},{getPreferredQualitySettings:C1,migrateSettingsToLegacyWay:T1,savePreferredQualitySettings:hu,savePreferredDefaultQualitySettings:uV,removePreferredQualitySettingsByVideo:pV,getPreferredDefaultQualitySettings:_u}=Ob(),Nb=3,Db=3,E1=()=>{let t=Ai.get(g1);if(t)try{return JSON.parse(t)}catch(e){return null}return null},bu=(t,e)=>{var r,s;let i=E1();return(s=(r=i==null?void 0:i[t])==null?void 0:r[e])!=null?s:null},kf=(t,e,i)=>{var l,d,a;let o=(l=E1())!=null?l:{},r=(a=(d=o[t])==null?void 0:d[e])!=null?a:{};Object.assign(r,i,{updatedTs:Date.now()}),t in o||(o[t]={}),o[t][e]=r;let s=Bb(o);Ai.set(g1,JSON.stringify(s))};function Bb(t){let e=Object.entries(t).reduce((o,[r,s])=>{let l=0;return Object.values(s).forEach(d=>{l<d.updatedTs&&(l=d.updatedTs)}),o.push([r,l]),o},[]);return e.sort(([,o],[,r])=>o>r?-1:1),e.splice(Db),e.reduce((o,[r])=>(o[r]=Hb(t[r]),o),{})}function Hb(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(Nb),Object.fromEntries(e)}function I1(){Ai.set(h1,JSON.stringify(!0))}function k1(){let t=Ai.get(h1);try{return t?JSON.parse(t):!1}catch(e){return!1}}import{PlaybackState as G0}from"@vkontakte/videoplayer-core/es2015";var Fb=Ie('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"></path><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-opacity=".12" stroke-width=".5" d="m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"></path></g><defs><filter id="a" width="75" height="44" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_618_12297"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_618_12297" result="shape"></feBlend></filter></defs></svg>');function Ed(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Fb();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}import{isNullable as M1,InterfaceLanguage as L1}from"@vkontakte/videoplayer-shared/es2015";var Ub={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_pip_close:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_sound_unavailable:"\u0417\u0432\u0443\u043A \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",tooltip_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving:"\u0420\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",aria_label_context_menu:"\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_autoplay:"\u0410\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
|
|
51
51
|
\u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u043E \u043D\u0430\xA0\xAB\u0410\u0432\u0442\u043E\xBB`,slow_video_notification_suggest_description:`\u0412\u0438\u0434\u0435\u043E \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E -
|
|
52
|
-
\u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0430 \xAB\u0410\u0432\u0442\u043E\xBB`,double_forward_label:"2x"},
|
|
52
|
+
\u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0430 \xAB\u0410\u0432\u0442\u043E\xBB`,double_forward_label:"2x",preview_track_notification_text:"\u041F\u043E\u0442\u044F\u043D\u0438\u0442\u0435 \u0432\u0432\u0435\u0440\u0445 \u0434\u043B\u044F \u0442\u043E\u0447\u043D\u043E\u0439 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0438",preview_track_close_tooltip:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u0440\u0435\u0436\u0438\u043C\u0430 \u0442\u043E\u0447\u043D\u043E\u0439 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0438"},A1=Ub;var zb={auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but\xA0at\xA0lower quality",quality_applience:"You can\xA0{action} the\xA0default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for\xA0all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_pip_close:"Expand video",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Volume off",tooltip_volume_muted:"Turn volume on",tooltip_sound_unavailable:"Sound unavailable",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",tooltip_context_menu_open:"Open context menu",tooltip_context_menu_close:"Close context menu",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay:"Display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving:"Data saving mode",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",aria_label_autoplay:"Autoplay",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
|
|
53
53
|
so\xA0the\xA0quality was changed to\xA0Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
|
|
54
|
-
Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},
|
|
55
|
-
`),o,
|
|
56
|
-
`).filter(i=>!!i)[0]}function yb(t){try{let e=$b(t);if(e)return e}catch(e){}return{value:p1(t),type:t&&t.name,stacktrace:{frames:[]}}}function xb(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var iu=class{constructor(e){if(e&&e.dsn){let i=bb.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 Ft(K({},this.getRequestBlank()),{exception:{values:[yb(e)]}})}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let i=new XMLHttpRequest;i.open("POST",this.apiUrl,!0),i.setRequestHeader("Content-type","application/json"),i.setRequestHeader(_b,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:xb(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function f1(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function wb(){return window}var ou=class t extends iu{constructor(e,i=wb()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=u=>u,beforeBreadcrumb:s=u=>u,blacklistUrls:l=[],ignoreErrors:d=[],release:a=void 0}=this.options||{};this.plugins=o.map(u=>new u(this)),this.beforeSend=n,this.beforeBreadcrumb=s,this.blacklistUrls=l,this.ignoreErrors=d,this.release=a}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",K({},e)),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",K({},e)),this}setUser(e){return this.setKeyState("user",K({},e)),this}clone(){let e=new t(Ft(K({},this.options),{plugins:[]}));return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[K({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send(Ft(K({},this.getRequestBlank()),{message:e,level:i}))}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>f1(i,o))):!1}getRequestBlank(){return K(Ft(K({request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}}},super.getRequestBlank()),{sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"}}),this.state)}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend(K({release:this.release},e))),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>f1(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 Ft(K({},i),{[o]:s||d?[...s||[],...d||[]]:K(K({},typeof n!="string"?n:{}),typeof l!="string"?l:{})})},this._state)}setKeyState(e,i){this._state[e]=i}};import{isNonNullable as nu,Subscription as Sb}from"@vkontakte/videoplayer-shared/es2015";var ru=null,ma=class{constructor(e,i,o={}){!ru&&e.dsn&&(this.sentryClient=new ou({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new Sb,this.options=e,this.context=o,ru=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),ru=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:n,context:s,options:l}=this,{sampleRate:d=0,whiteErrorIdList:a,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:m}=l,{errorType:p,category:x}=i;if(nu(x)&&m.includes(x)||nu(p)&&f.includes(p))return;if(Math.random()<=d||nu(x)&&u.includes(x)||nu(p)&&a.includes(p)){Object.keys(i).length&&n.setTags(K({version:this.version},i)),(Object.keys(s).length||Object.keys(o).length)&&n.setExtras(K(K({},s),o));try{p&&n.captureMessage(p,i.fatal?al.fatal:al.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return ru}};var Ss=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(Ss||{});var su=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?(e.webkitEnterFullscreen(),Promise.resolve()):Promise.reject()},au=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),m1=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,v1=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},rd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Ws=()=>!!rd(),lu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},du=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},g1=t=>{let e=window.screen;return(n=>vt(null,null,function*(){return e.orientation?e.orientation.lock(n):e.mozLockOrientation?e.mozLockOrientation(n):e.msLockOrientation?e.msLockOrientation(n):Promise.reject()}))(((n={width:0,height:0})=>n.width<=n.height?"portrait":"landscape")(t))};import{clientChecker as h1}from"@vkontakte/videoplayer-core/es2015";var _1=()=>({title:Q("hotkey_map_modal_title"),closeBtnText:Q("hotkey_map_modal_close_btn_text"),groups:[{title:Q("hotkey_map_group_title_common"),items:[{description:Q("hotkey_map_item_mute_description"),value:Q("hotkey_map_item_mute_value")},{description:Q("hotkey_map_item_volume_up_description"),value:Q("hotkey_map_item_volume_up_value")},{description:Q("hotkey_map_item_volume_down_description"),value:Q("hotkey_map_item_volume_down_value")},{description:Q("hotkey_map_item_pip_description"),value:Q("hotkey_map_item_pip_value")},{description:Q("hotkey_map_item_full_screen_description"),value:Q("hotkey_map_item_full_screen_value")},{description:Q("hotkey_map_item_show_context_menu_description"),value:Q("hotkey_map_item_show_context_menu_value")},{description:Q("hotkey_map_item_show_hotkey_map_description"),value:Q("hotkey_map_item_show_hotkey_map_value")}]},{title:Q("hotkey_map_group_title_playback"),items:[{description:Q("hotkey_map_item_play_toggle_description"),value:Q("hotkey_map_item_play_toggle_value")},{description:Q("hotkey_map_item_seek_backward_description"),value:Q("hotkey_map_item_seek_backward_value")},{description:Q("hotkey_map_item_seek_forward_description"),value:Q("hotkey_map_item_seek_forward_value")},{description:Q("hotkey_map_item_fast_seek_backward_description"),value:Q("hotkey_map_item_fast_seek_backward_value")},{description:Q("hotkey_map_item_fast_seek_forward_description"),value:Q("hotkey_map_item_fast_seek_forward_value")},{description:Q("hotkey_map_item_rate_down_description"),value:Q("hotkey_map_item_rate_down_value")},{description:Q("hotkey_map_item_rate_up_description"),value:Q("hotkey_map_item_rate_up_value")},{description:Q("hotkey_map_item_prev_frame_description"),value:Q("hotkey_map_item_prev_frame_value")},{description:Q("hotkey_map_item_next_frame_description"),value:Q("hotkey_map_item_next_frame_value")},{description:Q("hotkey_map_item_jump_seek_description"),value:Q("hotkey_map_item_jump_seek_value")},{description:Q("hotkey_map_item_next_video_description"),value:Q("hotkey_map_item_next_video_value")},{description:Q("hotkey_map_item_prev_video_description"),value:Q("hotkey_map_item_prev_video_value")}]},{title:Q("hotkey_map_group_title_subtitles"),items:[{description:Q("hotkey_map_item_subtitles_toggle_description"),value:Q("hotkey_map_item_subtitles_toggle_value")}]},{title:Q("hotkey_map_group_title_episodes"),items:[{description:Q("hotkey_map_item_prev_episode_description"),value:h1.device.isApple?Q("hotkey_map_item_prev_episode_mac_value"):Q("hotkey_map_item_prev_episode_pc_value")},{description:Q("hotkey_map_item_next_episode_description"),value:h1.device.isApple?Q("hotkey_map_item_next_episode_mac_value"):Q("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as Cb,ValueSubject as yf}from"@vkontakte/videoplayer-shared/es2015";var va=class{constructor({enabled:e=!0}={enabled:!0}){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:Cb(this.onResize.bind(this),300)};this.info={isActive$:new yf(!1),isEnabled$:new yf(!1),type:0};this.info.isEnabled$=new yf(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}revealPictureInPicture(){return vt(this,null,function*(){this.isRequested&&(this.removeEventHandlers(),yield this.request(),this.addEventHandlers())})}request(){return vt(this,null,function*(){var e;if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)==null?void 0:e.requestPictureInPicture()}catch(i){this.isRequested=!1}})}exit(){return vt(this,null,function*(){!this.isSupported()||!this.isActive()||(yield document.exitPictureInPicture())})}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.removeEventHandlers(),this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"),this.addEventHandlers())}addEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}setExternalEventHandlers(e){this.externalEventHandlers=K({},e)}removeEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}dispose(){return vt(this,null,function*(){this.removeEventHandlers(),yield this.exit(),this.info.isActive$.next(!1),this.isRequested=!1})}onEnterPictureInPicture(e){var n,s;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(s=(n=this.externalEventHandlers).enterpictureinpicture)==null||s.call(n,e))}onLeavePictureInPicture(e){var n,s;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,this.eventHandlers.resize.cancel(),o==null||o.removeEventListener("resize",this.eventHandlers.resize),(s=(n=this.externalEventHandlers).leavepictureinpicture)==null||s.call(n,e)}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function ga(t){return t instanceof va}import{devNull as b1,now as $1}from"@vkontakte/videoplayer-shared/es2015";mg();function wf(t,e){U(e,!1);let i=Te();Mt(()=>{i.getAdmanWrapper().startPostroll()}),qr(),z()}import{noop as Tb}from"@vkontakte/videoplayer-shared/es2015";var Eb=(t,e,i)=>{t.stopPropagation(),r(e)&&i()()},Ib=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>'),kb=M("<div><!></div>"),Ab={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,Ab);let[i,o]=De(),n=()=>S(u,"$isMobile",i),s=v(e,"position",3,0),l=v(e,"secondsToWatchBeforeSkip",3,0),d=v(e,"skipAd",3,Tb),u=Te().ui.isMobile,f=g(()=>s()>0&&s()>=l());var m=kb();let p;m.__click=[Eb,f,d];var x=_(m);{var w=T=>{var C=Ib(),E=_(C);we(),h(C),D(R=>ge(E,`${R!=null?R:""} `),[()=>Q("skip_ads_now")]),$(T,C)},y=T=>{var C=ls();D(E=>ge(C,E),[()=>Q("skip_ads_after",{time:Math.ceil(l()-s()).toFixed(0)})]),$(T,C)};V(x,T=>{r(f)?T(w):T(y,!1)})}h(m),D(T=>p=re(m,1,"container svelte-1k4i25s",null,p,T),[()=>({"container-mobile":n(),skippable:r(f)})]),$(t,m),z(),o()}ct(["click"]);var Pb=M('<button class="go-to-site svelte-1dzpmjp"> </button>'),Lb={hash:"svelte-1dzpmjp",code:"button.go-to-site.svelte-1dzpmjp {position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black;}"};function Cf(t,e){U(e,!1),q(t,Lb),qr();var i=Pb(),o=_(i,!0);h(i),D(n=>ge(o,n),[()=>Q("visit_advertiser")],Hr),$(t,i),z()}var Mb=M('<div class="top-gradient-mobile svelte-354ajf"></div>'),Vb=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(
|
|
54
|
+
Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x",preview_track_notification_text:"pull up to open precise rewind",preview_track_close_tooltip:"dismiss precise rewind"},P1=zb;var ks=new Map;ks.set(L1.EN,P1);ks.set(L1.RU,A1);var V1=new Map,Af=({language:t,pack:e,fallback:i})=>{if(ks.has(t)){let o=ks.get(t);ks.set(t,Q(Q({},o),e))}else ks.set(t,e);V1.set(t,i)},Pf=t=>ks.has(t),Mf=(t,e,i,o)=>{var l;let r=ks.get(t),s=r==null?void 0:r[e];if(M1(s)){let d=(l=V1.get(t))!=null?l:o,a=d?ks.get(d):void 0;s=a==null?void 0:a[e]}return M1(s)?e+Object.values(i!=null?i:{}).join(" "):i?s.replaceAll(/{(\w+?)}/g,(d,a)=>{var u;return(u=i[a])!=null?u:""}):s},Y=(t,e)=>{let{interfaceLanguage$:i}=_e(),o=$e(i),r=Rt();return Mf(o,t,e,r.defaultLanguage)};import"@vkontakte/videoplayer-core/es2015";var kl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(kl||(kl={}));var Wb=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Kb=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,qb=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,$u="?",Qb="X-Sentry-Auth",jb=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Gb(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
|
|
55
|
+
`),o,r;for(let s=0;s<i.length;++s){if(o=Wb.exec(i[s]))r={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||$u,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=qb.exec(i[s]))r={filename:o[2],function:o[1]||$u,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=Kb.exec(i[s]))s===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),r={filename:o[3],function:o[1]||$u,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!r.function&&r.lineno&&(r.function=$u),e.push(r)}return e.length?{value:R1(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function R1(t){return(t&&t.message||"No error message").split(`
|
|
56
|
+
`).filter(i=>!!i)[0]}function Yb(t){try{let e=Gb(t);if(e)return e}catch(e){}return{value:R1(t),type:t&&t.name,stacktrace:{frames:[]}}}function Zb(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var yu=class{constructor(e){if(e&&e.dsn){let i=jb.exec(e.dsn),o=i?i.slice(1):[],r=o[5].split("/"),s=r.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(s?"/"+s:"")+"/api/"+r.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return qt(Q({},this.getRequestBlank()),{exception:{values:[Yb(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(Qb,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:Zb(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function O1(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function Xb(){return window}var xu=class t extends yu{constructor(e,i=Xb()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:r=u=>u,beforeBreadcrumb:s=u=>u,blacklistUrls:l=[],ignoreErrors:d=[],release:a=void 0}=this.options||{};this.plugins=o.map(u=>new u(this)),this.beforeSend=r,this.beforeBreadcrumb=s,this.blacklistUrls=l,this.ignoreErrors=d,this.release=a}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",Q({},e)),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",Q({},e)),this}setUser(e){return this.setKeyState("user",Q({},e)),this}clone(){let e=new t(qt(Q({},this.options),{plugins:[]}));return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[Q({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send(qt(Q({},this.getRequestBlank()),{message:e,level:i}))}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>O1(i,o))):!1}getRequestBlank(){return Q(qt(Q({request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}}},super.getRequestBlank()),{sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"}}),this.state)}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend(Q({release:this.release},e))),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>O1(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let r=this._state[o],s=Array.isArray(r)?r:null,l=e[o],d=Array.isArray(l)?l:null;return qt(Q({},i),{[o]:s||d?[...s||[],...d||[]]:Q(Q({},typeof r!="string"?r:{}),typeof l!="string"?l:{})})},this._state)}setKeyState(e,i){this._state[e]=i}};import{isNonNullable as wu,Subscription as Jb}from"@vkontakte/videoplayer-shared/es2015";var Su=null,Aa=class{constructor(e,i,o={}){!Su&&e.dsn&&(this.sentryClient=new xu({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new Jb,this.options=e,this.context=o,Su=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Su=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:r,context:s,options:l}=this,{sampleRate:d=0,whiteErrorIdList:a,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:v}=l,{errorType:p,category:x}=i;if(wu(x)&&v.includes(x)||wu(p)&&f.includes(p))return;if(Math.random()<=d||wu(x)&&u.includes(x)||wu(p)&&a.includes(p)){Object.keys(i).length&&r.setTags(Q({version:this.version},i)),(Object.keys(s).length||Object.keys(o).length)&&r.setExtras(Q(Q({},s),o));try{p&&r.captureMessage(p,i.fatal?kl.fatal:kl.error),r.report(e)}catch(y){console.error(y)}}}static getInstance(){return Su}};var us=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(us||{});var Cu=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(),N1=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,D1=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},Id=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Zs=()=>!!Id(),Eu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Iu=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},B1=t=>{let e=window.screen;return(r=>yt(null,null,function*(){return e.orientation?e.orientation.lock(r):e.mozLockOrientation?e.mozLockOrientation(r):e.msLockOrientation?e.msLockOrientation(r):Promise.reject()}))(((r={width:0,height:0})=>r.width<=r.height?"portrait":"landscape")(t))};import{clientChecker as H1}from"@vkontakte/videoplayer-core/es2015";var F1=()=>({title:Y("hotkey_map_modal_title"),closeBtnText:Y("hotkey_map_modal_close_btn_text"),groups:[{title:Y("hotkey_map_group_title_common"),items:[{description:Y("hotkey_map_item_mute_description"),value:Y("hotkey_map_item_mute_value")},{description:Y("hotkey_map_item_volume_up_description"),value:Y("hotkey_map_item_volume_up_value")},{description:Y("hotkey_map_item_volume_down_description"),value:Y("hotkey_map_item_volume_down_value")},{description:Y("hotkey_map_item_pip_description"),value:Y("hotkey_map_item_pip_value")},{description:Y("hotkey_map_item_full_screen_description"),value:Y("hotkey_map_item_full_screen_value")},{description:Y("hotkey_map_item_show_context_menu_description"),value:Y("hotkey_map_item_show_context_menu_value")},{description:Y("hotkey_map_item_show_hotkey_map_description"),value:Y("hotkey_map_item_show_hotkey_map_value")}]},{title:Y("hotkey_map_group_title_playback"),items:[{description:Y("hotkey_map_item_play_toggle_description"),value:Y("hotkey_map_item_play_toggle_value")},{description:Y("hotkey_map_item_seek_backward_description"),value:Y("hotkey_map_item_seek_backward_value")},{description:Y("hotkey_map_item_seek_forward_description"),value:Y("hotkey_map_item_seek_forward_value")},{description:Y("hotkey_map_item_fast_seek_backward_description"),value:Y("hotkey_map_item_fast_seek_backward_value")},{description:Y("hotkey_map_item_fast_seek_forward_description"),value:Y("hotkey_map_item_fast_seek_forward_value")},{description:Y("hotkey_map_item_rate_down_description"),value:Y("hotkey_map_item_rate_down_value")},{description:Y("hotkey_map_item_rate_up_description"),value:Y("hotkey_map_item_rate_up_value")},{description:Y("hotkey_map_item_prev_frame_description"),value:Y("hotkey_map_item_prev_frame_value")},{description:Y("hotkey_map_item_next_frame_description"),value:Y("hotkey_map_item_next_frame_value")},{description:Y("hotkey_map_item_jump_seek_description"),value:Y("hotkey_map_item_jump_seek_value")},{description:Y("hotkey_map_item_next_video_description"),value:Y("hotkey_map_item_next_video_value")},{description:Y("hotkey_map_item_prev_video_description"),value:Y("hotkey_map_item_prev_video_value")}]},{title:Y("hotkey_map_group_title_subtitles"),items:[{description:Y("hotkey_map_item_subtitles_toggle_description"),value:Y("hotkey_map_item_subtitles_toggle_value")}]},{title:Y("hotkey_map_group_title_episodes"),items:[{description:Y("hotkey_map_item_prev_episode_description"),value:H1.device.isApple?Y("hotkey_map_item_prev_episode_mac_value"):Y("hotkey_map_item_prev_episode_pc_value")},{description:Y("hotkey_map_item_next_episode_description"),value:H1.device.isApple?Y("hotkey_map_item_next_episode_mac_value"):Y("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as e$,ValueSubject as Lf}from"@vkontakte/videoplayer-shared/es2015";var Pa=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:e$(this.onResize.bind(this),300)};this.info={isActive$:new Lf(!1),isEnabled$:new Lf(!1),type:0};this.info.isEnabled$=new Lf(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}revealPictureInPicture(){return yt(this,null,function*(){this.isRequested&&(this.removeEventHandlers(),yield this.request(),this.addEventHandlers())})}request(){return yt(this,null,function*(){var e;if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)==null?void 0:e.requestPictureInPicture()}catch(i){this.isRequested=!1}})}exit(){return yt(this,null,function*(){!this.isSupported()||!this.isActive()||(yield document.exitPictureInPicture())})}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.removeEventHandlers(),this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"),this.addEventHandlers())}addEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}setExternalEventHandlers(e){this.externalEventHandlers=Q({},e)}removeEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}dispose(){return yt(this,null,function*(){this.removeEventHandlers(),yield this.exit(),this.info.isActive$.next(!1),this.isRequested=!1})}onEnterPictureInPicture(e){var r,s;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(s=(r=this.externalEventHandlers).enterpictureinpicture)==null||s.call(r,e))}onLeavePictureInPicture(e){var r,s;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,this.eventHandlers.resize.cancel(),o==null||o.removeEventListener("resize",this.eventHandlers.resize),(s=(r=this.externalEventHandlers).leavepictureinpicture)==null||s.call(r,e)}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function Ma(t){return t instanceof Pa}import{devNull as U1,now as z1}from"@vkontakte/videoplayer-shared/es2015";Vg();function Rf(t,e){F(e,!1);let i=_e();Nt(()=>{i.getAdmanWrapper().startPostroll()}),Go(),U()}import{noop as t$}from"@vkontakte/videoplayer-shared/es2015";var i$=(t,e,i)=>{t.stopPropagation(),n(e)&&i()()},o$=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>'),n$=M("<div><!></div>"),r$={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 Of(t,e){F(e,!0),W(t,r$);let[i,o]=Be(),r=()=>S(u,"$isMobile",i),s=h(e,"position",3,0),l=h(e,"secondsToWatchBeforeSkip",3,0),d=h(e,"skipAd",3,t$),u=_e().ui.isMobile,f=m(()=>s()>0&&s()>=l());var v=n$();let p;v.__click=[i$,f,d];var x=_(v);{var w=C=>{var T=o$(),E=_(T);Ee(),g(T),D(R=>me(E,`${R!=null?R:""} `),[()=>Y("skip_ads_now")]),b(C,T)},y=C=>{var T=ls();D(E=>me(T,E),[()=>Y("skip_ads_after",{time:Math.ceil(l()-s()).toFixed(0)})]),b(C,T)};V(x,C=>{n(f)?C(w):C(y,!1)})}g(v),D(C=>p=re(v,1,"container svelte-1k4i25s",null,p,C),[()=>({"container-mobile":r(),skippable:n(f)})]),b(t,v),U(),o()}dt(["click"]);var s$=M('<button class="go-to-site svelte-1dzpmjp"> </button>'),a$={hash:"svelte-1dzpmjp",code:"button.go-to-site.svelte-1dzpmjp {position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black;}"};function Nf(t,e){F(e,!1),W(t,a$),Go();var i=s$(),o=_(i,!0);g(i),D(r=>me(o,r),[()=>Y("visit_advertiser")],Sn),b(t,i),U()}var l$=M('<div class="top-gradient-mobile svelte-354ajf"></div>'),d$=M('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),c$={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"},l1=mb;var w
|
|
|
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 Ad(t,e){F(e,!0),W(t,c$);let[i,o]=Be(),r=()=>S(B,"$canSkipAd",i),s=()=>S(H,"$adPlaybackState",i),l=()=>S(E,"$isMobile",i),d=()=>S(z,"$adPosition",i),a=()=>S(X,"$secondsToWatchBeforeSkipAd",i),u=()=>S(T,"$isVideoEnded",i),f=h(e,"adsSlotId",3,void 0),v=h(e,"adsParams",3,void 0),p=h(e,"adsAutoplayParam",3,void 0),x=h(e,"duration",3,0),w=h(e,"adsExternalApi",3,void 0),y=_e(),C=Rt(),T=y.state.isEnded$,E=y.ui.isMobile,R=C.ads.isMobileGoToSiteButton,A=j(void 0),I=j(void 0),N=!1,H=y.ads.playbackState,B=y.ads.canSkip,z=y.ads.position,X=y.ads.secondsToWatchBeforeSkip,le=m(()=>r()&&s()!=="inactive"),q=m(()=>l()&&s()!=="inactive"&&R);Nt(()=>{var he;let k=y.getAdmanWrapper();if(U1.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[z1(),f()]}),!f()){k.onAdmanLoadingError();return}let qe=Ue=>yt(null,null,function*(){yield k.initAdman(Ue),N=!0}),Re=new AbortController,Z=()=>{Re.abort()},{width:ne,height:He}=$e(y.ui.playerSize),Ze=$e(y.ui.isFullscreen),ge=(he=p())!=null?he:$e(y.ui.isAutoplay),ee=C.ads.paramsOverride,ke={width:ne,height:He,isFullscreen:Ze,isAutoplay:ge,adsContainer:n(A),adsVideoElement:n(I),slotId:f(),params:v(),paramsOverride:ee,duration:x(),externalApi:w()};return window.AdmanHTML?qe(ke):k.loadAdman(Re.signal).then(()=>qe(ke)).catch(()=>{k.onAdmanLoadingError()}),()=>{U1.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[z1(),f()]}),!N&&Z()}});var ce=d$(),J=_(ce);{var ve=k=>{var qe=l$();b(k,qe)};V(J,k=>{l()&&k(ve)})}var se=P(J,2);at(se,k=>O(I,k),()=>n(I));var de=P(se,2);{var Le=k=>{Of(k,{get position(){return d()},get secondsToWatchBeforeSkip(){return a()},get skipAd(){return y.actions.internal.skipAd}})};V(de,k=>{n(le)&&k(Le)})}var Se=P(de,2);{var ie=k=>{Rf(k,{})};V(Se,k=>{u()&&k(ie)})}var Ne=P(Se,2);{var pe=k=>{Nf(k,{})};V(Ne,k=>{n(q)&&k(pe)})}g(ce),at(ce,k=>O(A,k),()=>n(A)),b(t,ce),U(),o()}var Yo=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let o=Math.floor(e/60);e-=o*60;let r=[o,e].map(s=>String(s).padStart(2,"0")).join(":");return i>0&&(r=`${i}:${r}`),r};var u$=Ie('<svg><!><path fill="none" stroke="var(--btn-color, #fff)" stroke-width="2" d="M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"></path><path fill="var(--btn-color, #f0f2f5)" fill-rule="evenodd" d="M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"></path></svg>');function Df(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=u$();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}var p$=Ie('<svg><!><rect width="42" height="20" fill="var(--timeline-slider-filled-active-live-bg, #ff3347)" rx="5"></rect><path fill="#f2f3f5" fill-rule="evenodd" d="M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z" clip-rule="evenodd"></path></svg>');function Bf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=p$();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}function Pd(t,e){let i=h(e,"isActive",3,!1);var o=Fe(),r=fe(o);{var s=d=>{Bf(d,{})},l=d=>{Df(d,{})};V(r,d=>{i()?d(s):d(l,!1)})}b(t,o)}var f$=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>'),v$=M('<div class="live-icon svelte-1s15d2i"><!></div>'),m$=M('<span class="text svelte-1s15d2i"> </span>'),g$=M("<div><!> <!></div>"),h$={hash:"svelte-1s15d2i",code:`.wrapper.svelte-1s15d2i {padding:2px 6px;white-space:nowrap;border-radius:4px;background-color:var(--black-alpha-40);transition:visibility var(--controls-transition-duration),
|
|
67
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"},l1=mb;var w
|
|
|
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 cd(t,e){U(e,!0),q(t,Wb);let[i,o]=De(),n=()=>S(f,"$disabled",i),s=v(e,"isHidden",3,!1),l=v(e,"isLive",3,!1),d=v(e,"isPlaying",3,!1),a=It(),u=g(()=>_n(e.duration-e.position)),f=ae(!1);var m=zb();let p;var x=_(m);dd(x,{get time(){return r(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),h(m),ys(m,()=>ll(s()&&a.features.usePerformanceFix,f,a.disableInvisibleComponentsTimeout)),D(w=>p=re(m,1,"thumb-timer svelte-c6gowj",null,p,w),[()=>({"out-of-flow":n(),hidden:s()})]),$(t,m),z(),o()}var dl=t=>{if(!navigator.clipboard){y1(t);return}navigator.clipboard.writeText(t).catch(()=>y1(t))};function y1(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 t$}from"@vkontakte/videoplayer-core/es2015";import{clientChecker as x1}from"@vkontakte/videoplayer-core/es2015";var If="focus-hidden";var kr=t=>{t.stopPropagation(),t.preventDefault()},kf=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(If)},qb=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},Qb=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},Gb=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},jb=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},w1=t=>t.code==="Escape",Yb=t=>t.code==="ArrowLeft",ud=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},S1=t=>{Gb(t)?(kr(t),Qb(t.target)):jb(t)&&(kr(t),qb(t.target))},Qs=t=>!x1.device.isAndroid&&(t==null?void 0:t.detail)===0||x1.device.isAndroid&&(t==null?void 0:t.pointerType)==="",cl=(t,e,i)=>vt(null,null,function*(){yield xo(),t&&!t.classList.contains("opened")&&!e&&ye(i)&&(yield xo(),i.set(!1),t.focus())}),C1=(t,e,i)=>vt(null,null,function*(){yield xo(),t&&!e&&ye(i)&&(i.set(!1),t.focus())}),pd=(t,e,i,o=!1)=>vt(null,null,function*(){if(yield xo(),!!t&&e&&!o){let s=t.children[0];s==null||s.classList.toggle(If,!i),s==null||s.focus()}}),T1=(t,e)=>vt(null,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),cu=(t,e)=>{S1(t),kf(t.target),w1(t)&&(kr(t),e())},uu=(t,e)=>vt(null,null,function*(){ud(t,["ArrowRight"])&&(kr(t),e())}),E1=(t,e,i)=>vt(null,null,function*(){if(S1(t),Yb(t)){kr(t),e();return}w1(t)&&(kr(t),i())}),ul=(t,e)=>{ud(t)&&(kr(t),e())},I1=(t,e,i)=>{if(ud(t))kr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),kr(t);return}o==="ArrowRight"&&!e&&(i(!0),kr(t))}},k1=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},A1=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,n=e.left+o;return{bottom:e.bottom+i,left:n}};import{isNullable as pu,isValidURL as i$}from"@vkontakte/videoplayer-shared/es2015";var Qr={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};import{noop as P1}from"@vkontakte/videoplayer-shared/es2015";var Xb=(t,e)=>{ul(t,()=>e())},Jb=M('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),e$={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 Af(t,e){U(e,!0),q(t,e$);let i=v(e,"onClick",3,P1),o=v(e,"closeContextMenu",3,P1),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var s=Jb();s.__click=n,s.__keydown=[Xb,n];var l=_(s,!0);h(s),D(()=>{var d;Ue(s,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Ue(s,"data-testid",e.id),ge(l,e.label)}),$(t,s),z()}ct(["click","keydown"]);var _a=(t,e)=>t.weight-e.weight;var fd=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(fd||{});var o$=(t,e)=>{cu(t,e)},n$=t=>{t.preventDefault()},r$=M('<ul role="menu" class="svelte-1p5ukkp"></ul>'),s$={hash:"svelte-1p5ukkp",code:"ul.svelte-1p5ukkp {position:absolute;z-index:var(--context-menu-z-index);border-radius:8px;background:rgba(0, 0, 0, 0.72);transition:visibility .1s,opacity .1s;list-style:none;margin:0;padding:6px 0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto;}"};function Pf(t,e){U(e,!0),q(t,s$);let[i,o]=De(),n=()=>S(ne,"$isLive$",i),s=()=>S(fe,"$isPiPEnabled$",i),l=()=>S(Z,"$chromecastState$",i),d=()=>S(ve,"$pictureInPictureApiIsActive$",i),a=()=>S(ee,"$isLooped$",i),u=()=>S(j,"$positionExact$",i),f=()=>S(F,"$additionalContextMenuItems$",i),m=v(e,"visible",3,!1),p=v(e,"position",19,()=>({top:0,left:0})),x=v(e,"playerContainerRef",3,void 0),w=v(e,"controlsContainerRef",3,void 0),y=v(e,"menuElementRef",15,void 0),T=J(0),C=J(0),E=Te(),{pictureInPicture$:R}=fo(),I=It(),k=E.ui.contextMenu.visible$,B=E.ui.debugPanelVisible,F=E.ui.additionalContextMenuItems$,H=E.ui.t,W=E.actions.internal.togglePictureInPicture,Z=E.state.chromecastState$,ne=E.state.isLive$,j=E.state.positionExact$,_e=E.state.isInteractive,ee=E.state.looped$,{isEnabled$:fe,isActive$:ve}=R,pe=g(()=>{var ue;return I.features.copyVideoLink&&((ue=E.callbacks)==null?void 0:ue.onCopyVideoLink)}),Me=g(()=>r(pe)&&!n()&&!_e),Ve=g(()=>{var ue;return!!((ue=E.callbacks)!=null&&ue.onCopyEmbedCodeClicked)}),de=g(()=>s()&&l()!==t$.CONNECTED&&!_e),Ne=g(()=>!_e),se=g(()=>I.features.videoRotate&&!_e),P=g(()=>I.showSupport&&!d()),nt=g(()=>I.features.saveTraceInfoToFile),Be=()=>{var ue;k.set(!1),(ue=e.returnFocus)==null||ue.call(e)},G=(ue,Fe)=>{if(!y()||!x()||!w())return;let $e=y().getBoundingClientRect(),Xe=x().getBoundingClientRect();N(T,ue-Xe.left),N(C,Fe-Xe.top),r(T)+$e.width>Xe.width&&N(T,Xe.width-$e.width),r(C)+$e.height>Xe.height&&N(C,Xe.height-$e.height),N(T,Math.max(r(T),0),!0),N(C,Math.max(r(C),0),!0)};Qe(()=>{vt(null,null,function*(){if(y()&&x()&&w()){yield xo();let{top:Fe,left:$e,bottom:Xe,right:Lt}=p(),yt=$e!=null?$e:0,Vt=Fe!=null?Fe:0,hi=y().getBoundingClientRect();pu($e)&&!pu(Lt)&&(yt=Lt-hi.width),pu(Fe)&&!pu(Xe)&&(Vt=Xe-hi.height),yt=Math.max(yt,0),Vt=Math.max(Vt,0),G(yt,Vt)}})});let ie=()=>{E.actions.internal.videoRotate()},Oe=()=>{i$(e.supportLink)&&window.open(e.supportLink,"_blank"),E.actions.internal.reportProblem(),E.actions.internal.pause()},et=()=>{let ue=E.actions.internal.getDebugTextData();if(I.features.saveDebugInfoToFile){let Fe=new Blob([...ue],{type:"plain/text"}),$e=window.URL.createObjectURL(Fe);fa($e,"vk_player_debug_info","txt")}else dl(E.actions.internal.getDebugTextData())},xe=()=>{let ue=E.actions.internal.getTraceTextData(),Fe=new Blob([...ue],{type:"application/json"}),$e=window.URL.createObjectURL(Fe);fa($e,"vk_player_trace_info","json")},te=()=>{B.set(!0)},Ce=()=>vt(null,null,function*(){var ue;try{W()}finally{(ue=e.returnFocus)==null||ue.call(e)}}),Ee=()=>{E.actions.internal.setLooped(!a())},qe=()=>{var ue,Fe;if(r(Ve)){let $e=(Fe=(ue=E.callbacks)==null?void 0:ue.onCopyEmbedCodeClicked)==null?void 0:Fe.call(ue);$e&&dl($e)}},it=(ue=!1)=>{var Fe,$e;if((Fe=E.callbacks)!=null&&Fe.onCopyVideoLink){let Xe=($e=E.callbacks)==null?void 0:$e.onCopyVideoLink(ue,u());Xe&&dl(Xe)}},ft=g(()=>I.features.saveDebugInfoToFile?H("menu_save_debug"):H("menu_copy_debug")),dt=g(()=>r(pe)?{id:"copy-link",weight:Qr["copy-link"],label:H("menu_copy_video_link"),onClick:()=>it()}:void 0),gt=g(()=>r(Me)?{id:"copy-link-timestamp",weight:Qr["copy-link-timestamp"],label:H("menu_copy_video_link_with_timestamp"),onClick:()=>it(!0)}:void 0),ot=g(()=>r(Ve)?{id:"copy-embed-code",weight:Qr["copy-embed-code"],label:H("menu_copy_embed_code"),onClick:qe}:void 0),Ut=g(()=>r(de)?{id:"pip",weight:Qr.pip,label:d()?H("menu_pip_close"):H("menu_pip"),onClick:Ce}:void 0),Qt=g(()=>r(Ne)?{id:"video-loop",weight:Qr["video-loop"],label:a()?H("menu_video_loop_off"):H("menu_video_loop_on"),ariaLabel:H("aria_label_menu_loop"),onClick:Ee}:void 0),Yt=g(()=>r(se)?{id:"rotate",weight:Qr.rotate,label:H("menu_video_rotate"),ariaLabel:H("aria_label_menu_rotate"),onClick:ie}:void 0),Gt=g(()=>r(P)?{id:"report",weight:Qr.report,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,onClick:Oe}:void 0),Ae=g(()=>({id:"save-debug",weight:Qr["save-debug"],label:r(ft),onClick:et})),jt=g(()=>r(nt)?{id:"save-trace",weight:Qr["save-trace"],label:H("menu_save_debug"),onClick:xe}:void 0),be=g(()=>({id:"debug-info",weight:Qr["debug-info"],label:H("menu_debug_overlay"),ariaLabel:H("aria_label_menu_debug_overlay"),onClick:te})),Ie=g(()=>[r(dt),r(gt),r(ot),r(Ut),r(Qt),r(Yt),r(Gt),r(Ae),r(jt),r(be),...f()].filter(ue=>!!ue).sort(_a));var ce=He(),Ge=me(ce);{var ze=ue=>{var Fe=r$();Fe.__contextmenu=[n$],Fe.__keydown=[o$,Be],Pi(Fe,21,()=>r(Ie),$e=>$e.id,($e,Xe)=>{Af($e,{get id(){return r(Xe).id},get label(){return r(Xe).label},get ariaLabel(){return r(Xe).ariaLabel},get onClick(){return r(Xe).onClick},closeContextMenu:Be})}),h(Fe),at(Fe,$e=>y($e),()=>y()),D(()=>{var $e,Xe;return lt(Fe,`top: ${($e=r(C))!=null?$e:""}px; left: ${(Xe=r(T))!=null?Xe:""}px;`)}),$(ue,Fe)};V(Ge,ue=>{m()&&ue(ze)})}$(t,ce),z(),o()}ct(["contextmenu","keydown"]);var fu=class{constructor(e){this.value=e,this.next=null}};var pl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new fu(e);this.top?(this.top.next=i,this.top=i):(this.top=i,this.bottom=i),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}};var a$=M('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),l$={hash:"svelte-1ssl9eb",code:".container.svelte-1ssl9eb {display:inline-block;width:120px;height:16px;}canvas.svelte-1ssl9eb {transform:scale(1, -1);margin-top:2px;}"};function md(t,e){U(e,!0),q(t,l$);let i=v(e,"values",19,()=>[]),o=J(void 0),n=J(null),s=16,l=120,d=60,a=l/d;Mt(()=>{r(o).width=l,r(o).height=s,N(n,r(o).getContext("2d"),!0)});function u(p,x,w,y,T){T===0&&(T=1),p.fillStyle="#fff",p.fillRect(x,w,y,T)}Qe(()=>{let p="";if(r(n)){let x=i()[0];for(let y=1;y<i().length;y++)i()[y]>x&&(x=i()[y]);r(n).clearRect(0,0,l,s);let w=d-1;for(let y=i().length-1;y>=0;y--){let T=w*a,C=x>0?s*(i()[y]/x):0;u(r(n),T,0,a,C),p=C+" "+p,w--}}});var f=a$(),m=_(f);at(m,p=>N(o,p),()=>r(o)),h(f),$(t,f),z()}import{safeStorage as L1}from"@vkontakte/videoplayer-shared/es2015";var d$=(t,e)=>{t.stopPropagation(),L1.remove(ed),e.set(!1)},c$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Video id</div> <span> </span></div>'),u$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">VSID</div> <span> </span></div>'),p$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Provider</div> <span> </span></div>'),f$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Streams</div> <span> </span></div>'),m$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Viewport</div> <span> </span></div>'),v$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Video size</div> <span> </span></div>'),g$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">CDN host</div> <span> </span></div>'),h$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Volume</div> <span> </span></div>'),_$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Position</div> <span> </span></div>'),b$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Buffer</div> <span> </span></div>'),$$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Live latency</div> <span> </span></div>'),y$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Segment</div> <span> </span></div>'),x$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Network</div> <!> <span> </span></div>'),w$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">V bitrate</div> <!> <span> </span></div>'),S$=M('<div role="region"><button class="close svelte-lx3h69" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-lx3h69"><div class="svelte-lx3h69"><div class="svelte-lx3h69">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-lx3h69"><div class="svelte-lx3h69">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-lx3h69"><div class="svelte-lx3h69">FPS</div> <!> <span> </span></div></div></div>'),C$={hash:"svelte-lx3h69",code:".container.svelte-lx3h69 {background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left;user-select:text;}.container-mobile.svelte-lx3h69 {top:16px;left:16px;}button.close.svelte-lx3h69 {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.svelte-lx3h69 {padding:5px;}.content.svelte-lx3h69 > div:where(.svelte-lx3h69) > div:where(.svelte-lx3h69) {display:inline-block;text-align:right;width:60px;padding:0 5px;}"};function vd(t,e){U(e,!0),q(t,C$);let[i,o]=De(),n=()=>S(d,"$isMobile",i),s=Te(),l=s.ui.debugPanelVisible,d=s.ui.isMobile,a=J(ei(s.actions.internal.getDebugPanelData())),u=s.actions.internal.getVideoElement(),f=J(0),m=J(0),p=J(0),x=new pl(60),w=new pl(60),y=new pl(60),T=J(ei([])),C=J(ei([])),E=J(ei([])),R=Q("aria_label_debug_panel");Mt(()=>{L1.set(ed,"true"),s.actions.internal.startLogging(),u&&(N(m,u.getVideoPlaybackQuality().droppedVideoFrames,!0),N(f,u.getVideoPlaybackQuality().totalVideoFrames,!0));let be=window.setInterval(()=>{N(a,s.actions.internal.getDebugPanelData(),!0)},500),Ie;return u&&(Ie=window.setInterval(()=>{if(u){N(m,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let ce=u.getVideoPlaybackQuality().totalVideoFrames;N(p,ce-r(f)),N(f,ce,!0),x.push(r(p)),r(a).speed&&w.push(r(a).speed),r(a).bitrate&&y.push(r(a).bitrate),N(T,x.getValuesFromBottom(),!0),N(C,w.getValuesFromBottom(),!0),N(E,y.getValuesFromBottom(),!0)}},1e3)),()=>{s.actions.internal.stopLogging(),clearInterval(be),Ie&&clearInterval(Ie)}});var I=S$();let k;var B=_(I);B.__click=[d$,l];var F=A(B,2),H=_(F),W=A(_(H),2),Z=_(W,!0);h(W),h(H);var ne=A(H,2);{var j=be=>{var Ie=c$(),ce=A(_(Ie),2),Ge=_(ce,!0);h(ce),h(Ie),D(()=>ge(Ge,r(a).id)),$(be,Ie)};V(ne,be=>{r(a).id&&be(j)})}var _e=A(ne,2);{var ee=be=>{var Ie=u$(),ce=A(_(Ie),2),Ge=_(ce,!0);h(ce),h(Ie),D(()=>ge(Ge,r(a).vsid)),$(be,Ie)};V(_e,be=>{r(a).vsid&&be(ee)})}var fe=A(_e,2);{var ve=be=>{var Ie=p$(),ce=A(_(Ie),2),Ge=_(ce,!0);h(ce),h(Ie),D(()=>ge(Ge,r(a).provider)),$(be,Ie)};V(fe,be=>{r(a).provider&&be(ve)})}var pe=A(fe,2);{var Me=be=>{var Ie=f$(),ce=A(_(Ie),2),Ge=_(ce);h(ce),h(Ie),D(()=>{var ze,ue;return ge(Ge,`Video: ${(ze=r(a).videoCodec||"")!=null?ze:""} ${r(a).hdr?"(HDR)":""}
|
|
137
|
+
}.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function Md(t,e){W(t,h$);let i=h(e,"withEqualizer",3,!1),o=h(e,"isLive",3,!1),r=h(e,"isPlaying",3,!1);var s=g$();let l;var d=_(s);{var a=p=>{var x=f$();b(p,x)};V(d,p=>{i()&&p(a)})}var u=P(d,2);{var f=p=>{var x=v$(),w=_(x);Pd(w,{isActive:!0}),g(x),b(p,x)},v=p=>{var x=m$(),w=_(x,!0);g(x),D(()=>me(w,e.time)),b(p,x)};V(u,p=>{o()?p(f):p(v,!1)})}g(s),D(p=>l=re(s,1,"wrapper svelte-1s15d2i",null,l,p),[()=>({live:o(),playing:r()})]),b(t,s)}var Al=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var _$=M('<div role="timer" data-testid="thumb-timer"><!></div>'),b$={hash:"svelte-c6gowj",code:`.thumb-timer.svelte-c6gowj {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;transition:visibility var(--controls-transition-duration),
|
|
138
|
+
opacity var(--controls-transition-duration);}`};function Ld(t,e){F(e,!0),W(t,b$);let[i,o]=Be(),r=()=>S(f,"$disabled",i),s=h(e,"isHidden",3,!1),l=h(e,"isLive",3,!1),d=h(e,"isPlaying",3,!1),a=Rt(),u=m(()=>Yo(e.duration-e.position)),f=ae(!1);var v=_$();let p;var x=_(v);Md(x,{get time(){return n(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),g(v),Es(v,()=>Al(s()&&a.features.usePerformanceFix,f,a.disableInvisibleComponentsTimeout)),D(w=>p=re(v,1,"thumb-timer svelte-c6gowj",null,p,w),[()=>({"out-of-flow":r(),hidden:s()})]),b(t,v),U(),o()}var Pl=t=>{if(!navigator.clipboard){W1(t);return}navigator.clipboard.writeText(t).catch(()=>W1(t))};function W1(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 A$}from"@vkontakte/videoplayer-core/es2015";import{clientChecker as K1}from"@vkontakte/videoplayer-core/es2015";var Hf="focus-hidden";var Cr=t=>{t.stopPropagation(),t.preventDefault()},Ff=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(Hf)},y$=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},x$=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},w$=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},S$=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},q1=t=>t.code==="Escape",C$=t=>t.code==="ArrowLeft",Vd=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},Q1=t=>{w$(t)?(Cr(t),x$(t.target)):S$(t)&&(Cr(t),y$(t.target))},ea=t=>!K1.device.isAndroid&&(t==null?void 0:t.detail)===0||K1.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Ml=(t,e,i)=>yt(null,null,function*(){yield Ao(),t&&!t.classList.contains("opened")&&!e&&$e(i)&&(yield Ao(),i.set(!1),t.focus())}),j1=(t,e,i)=>yt(null,null,function*(){yield Ao(),t&&!e&&$e(i)&&(i.set(!1),t.focus())}),Rd=(t,e,i,o=!1)=>yt(null,null,function*(){if(yield Ao(),!!t&&e&&!o){let s=t.children[0];s==null||s.classList.toggle(Hf,!i),s==null||s.focus()}}),G1=(t,e)=>yt(null,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),ku=(t,e)=>{Q1(t),Ff(t.target),q1(t)&&(Cr(t),e())},Au=(t,e)=>yt(null,null,function*(){Vd(t,["ArrowRight"])&&(Cr(t),e())}),Y1=(t,e,i)=>yt(null,null,function*(){if(Q1(t),C$(t)){Cr(t),e();return}q1(t)&&(Cr(t),i())}),Ll=(t,e)=>{Vd(t)&&(Cr(t),e())},Z1=(t,e,i)=>{if(Vd(t))Cr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),Cr(t);return}o==="ArrowRight"&&!e&&(i(!0),Cr(t))}},X1=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,r=e.top+i;return{right:o,bottom:r}},J1=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,r=e.left+o;return{bottom:e.bottom+i,left:r}};import{isNullable as Pu,isValidURL as P$}from"@vkontakte/videoplayer-shared/es2015";var Xr={"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 e0}from"@vkontakte/videoplayer-shared/es2015";var E$=(t,e)=>{Ll(t,()=>e())},I$=M('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),k$={hash:"svelte-1hm4mm9",code:".item.svelte-1hm4mm9 {padding:8px 16px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;line-height:18px;letter-spacing:-0.14px;white-space:nowrap;}.item.svelte-1hm4mm9:hover {background:rgba(66, 66, 66, .5);color:var(--white);}"};function Uf(t,e){F(e,!0),W(t,k$);let i=h(e,"onClick",3,e0),o=h(e,"closeContextMenu",3,e0),r=d=>{d==null||d.stopPropagation(),i()(),o()()};var s=I$();s.__click=r,s.__keydown=[E$,r];var l=_(s,!0);g(s),D(()=>{var d;Ke(s,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Ke(s,"data-testid",e.id),me(l,e.label)}),b(t,s),U()}dt(["click","keydown"]);var Va=(t,e)=>t.weight-e.weight;var Od=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Od||{});var M$=(t,e)=>{ku(t,e)},L$=t=>{t.preventDefault()},V$=M('<ul role="menu" class="svelte-1p5ukkp"></ul>'),R$={hash:"svelte-1p5ukkp",code:"ul.svelte-1p5ukkp {position:absolute;z-index:var(--context-menu-z-index);border-radius:8px;background:rgba(0, 0, 0, 0.72);transition:visibility .1s,opacity .1s;list-style:none;margin:0;padding:6px 0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto;}"};function zf(t,e){F(e,!0),W(t,R$);let[i,o]=Be(),r=()=>S(ve,"$playerPhase",i),s=()=>S(le,"$isLive$",i),l=()=>S(se,"$isPiPEnabled$",i),d=()=>S(X,"$chromecastState$",i),a=()=>S(de,"$pictureInPictureApiIsActive$",i),u=()=>S(J,"$isLooped$",i),f=()=>S(q,"$positionExact$",i),v=()=>S(H,"$additionalContextMenuItems$",i),p=h(e,"visible",3,!1),x=h(e,"position",19,()=>({top:0,left:0})),w=h(e,"playerContainerRef",3,void 0),y=h(e,"menuElementRef",15,void 0),C=j(0),T=j(0),E=_e(),{pictureInPicture$:R}=xo(),A=Rt(),I=E.ui.contextMenu.visible$,N=E.ui.debugPanelVisible,H=E.ui.additionalContextMenuItems$,B=E.ui.t,z=E.actions.internal.togglePictureInPicture,X=E.state.chromecastState$,le=E.state.isLive$,q=E.state.positionExact$,ce=E.state.isInteractive,J=E.state.looped$,ve=E.playerPhase,{isEnabled$:se,isActive$:de}=R,Le=m(()=>r()==="video"),Se=m(()=>!!s()&&n(Le)),ie=m(()=>["thumb","LiveWaitingStart","LiveWaitingRecover","LiveWaitingRecord"].includes(r())),Ne=m(()=>{var xe;return A.features.copyVideoLink&&((xe=E.callbacks)==null?void 0:xe.onCopyVideoLink)}),pe=m(()=>n(Ne)&&!n(ie)&&!ce&&!n(Se)),k=m(()=>{var xe;return!!((xe=E.callbacks)!=null&&xe.onCopyEmbedCodeClicked)}),qe=m(()=>l()&&d()!==A$.CONNECTED&&!ce&&n(Le)),Re=m(()=>!ce&&!n(ie)&&!n(Se)),Z=m(()=>A.features.videoRotate&&!ce&&!n(ie)),ne=m(()=>A.showSupport&&!a()),He=m(()=>A.features.saveTraceInfoToFile),Ze=()=>{var xe;I.set(!1),(xe=e.returnFocus)==null||xe.call(e)},ge=(xe,ot)=>{if(!y()||!w())return;let Qe=y().getBoundingClientRect(),lt=w().getBoundingClientRect();O(C,xe-lt.left),O(T,ot-lt.top),n(C)+Qe.width>lt.width&&O(C,lt.width-Qe.width),n(T)+Qe.height>lt.height&&O(T,lt.height-Qe.height),O(C,Math.max(n(C),0),!0),O(T,Math.max(n(T),0),!0)};We(()=>{yt(null,null,function*(){if(y()&&w()){yield Ao();let{top:ot,left:Qe,bottom:lt,right:ii}=x(),ai=Qe!=null?Qe:0,mi=ot!=null?ot:0,yi=y().getBoundingClientRect();Pu(Qe)&&!Pu(ii)&&(ai=ii-yi.width),Pu(ot)&&!Pu(lt)&&(mi=lt-yi.height),ai=Math.max(ai,0),mi=Math.max(mi,0),ge(ai,mi)}})});let ee=()=>{E.actions.internal.videoRotate()},ke=()=>{P$(e.supportLink)&&window.open(e.supportLink,"_blank"),E.actions.internal.reportProblem(),E.actions.internal.pause()},he=()=>{let xe=E.actions.internal.getDebugTextData();if(A.features.saveDebugInfoToFile){let ot=new Blob([...xe],{type:"plain/text"}),Qe=window.URL.createObjectURL(ot);ka(Qe,"vk_player_debug_info","txt")}else Pl(E.actions.internal.getDebugTextData())},Ue=()=>{let xe=E.actions.internal.getTraceTextData(),ot=new Blob([...xe],{type:"application/json"}),Qe=window.URL.createObjectURL(ot);ka(Qe,"vk_player_trace_info","json")},Xe=()=>{N.set(!0)},Ge=()=>yt(null,null,function*(){var xe;try{z()}finally{(xe=e.returnFocus)==null||xe.call(e)}}),ct=()=>{E.actions.internal.setLooped(!u())},et=()=>{var xe,ot;if(n(k)){let Qe=(ot=(xe=E.callbacks)==null?void 0:xe.onCopyEmbedCodeClicked)==null?void 0:ot.call(xe);Qe&&Pl(Qe)}},Bt=(xe=!1)=>{var ot,Qe;if((ot=E.callbacks)!=null&&ot.onCopyVideoLink){let lt=(Qe=E.callbacks)==null?void 0:Qe.onCopyVideoLink(xe,f());lt&&Pl(lt)}},rt=m(()=>A.features.saveDebugInfoToFile?B("menu_save_debug"):B("menu_copy_debug")),Dt=m(()=>n(Ne)?{id:"copy-link",weight:Xr["copy-link"],label:B("menu_copy_video_link"),onClick:()=>Bt()}:void 0),Qt=m(()=>n(pe)?{id:"copy-link-timestamp",weight:Xr["copy-link-timestamp"],label:B("menu_copy_video_link_with_timestamp"),onClick:()=>Bt(!0)}:void 0),Et=m(()=>n(k)?{id:"copy-embed-code",weight:Xr["copy-embed-code"],label:B("menu_copy_embed_code"),onClick:et}:void 0),ti=m(()=>n(qe)?{id:"pip",weight:Xr.pip,label:a()?B("menu_pip_close"):B("menu_pip"),onClick:Ge}:void 0),Wt=m(()=>n(Re)?{id:"video-loop",weight:Xr["video-loop"],label:u()?B("menu_video_loop_off"):B("menu_video_loop_on"),ariaLabel:B("aria_label_menu_loop"),onClick:ct}:void 0),Ce=m(()=>n(Z)?{id:"rotate",weight:Xr.rotate,label:B("menu_video_rotate"),ariaLabel:B("aria_label_menu_rotate"),onClick:ee}:void 0),we=m(()=>n(ne)?{id:"report",weight:Xr.report,label:B("menu_report"),ariaLabel:`${B("menu_report")}. ${B("aria_label_new_tab_alert")}`,onClick:ke}:void 0),te=m(()=>({id:"save-debug",weight:Xr["save-debug"],label:n(rt),onClick:he})),Te=m(()=>n(He)?{id:"save-trace",weight:Xr["save-trace"],label:B("menu_save_debug"),onClick:Ue}:void 0),Me=m(()=>({id:"debug-info",weight:Xr["debug-info"],label:B("menu_debug_overlay"),ariaLabel:B("aria_label_menu_debug_overlay"),onClick:Xe})),It=m(()=>[n(Dt),n(Qt),n(Et),n(ti),n(Wt),n(Ce),n(we),n(te),n(Te),n(Me),...v()].filter(xe=>!!xe).sort(Va));var De=Fe(),ut=fe(De);{var $t=xe=>{var ot=V$();ot.__contextmenu=[L$],ot.__keydown=[M$,Ze],Ci(ot,21,()=>n(It),Qe=>Qe.id,(Qe,lt)=>{Uf(Qe,{get id(){return n(lt).id},get label(){return n(lt).label},get ariaLabel(){return n(lt).ariaLabel},get onClick(){return n(lt).onClick},closeContextMenu:Ze})}),g(ot),at(ot,Qe=>y(Qe),()=>y()),D(()=>{var Qe,lt;return Je(ot,`top: ${(Qe=n(T))!=null?Qe:""}px; left: ${(lt=n(C))!=null?lt:""}px;`)}),b(xe,ot)};V(ut,xe=>{p()&&xe($t)})}b(t,De),U(),o()}dt(["contextmenu","keydown"]);var Mu=class{constructor(e){this.value=e,this.next=null}};var Vl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Mu(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 O$=M('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),N$={hash:"svelte-1ssl9eb",code:".container.svelte-1ssl9eb {display:inline-block;width:120px;height:16px;}canvas.svelte-1ssl9eb {transform:scale(1, -1);margin-top:2px;}"};function Nd(t,e){F(e,!0),W(t,N$);let i=h(e,"values",19,()=>[]),o=j(void 0),r=j(null),s=16,l=120,d=60,a=l/d;Nt(()=>{n(o).width=l,n(o).height=s,O(r,n(o).getContext("2d"),!0)});function u(p,x,w,y,C){C===0&&(C=1),p.fillStyle="#fff",p.fillRect(x,w,y,C)}We(()=>{let p="";if(n(r)){let x=i()[0];for(let y=1;y<i().length;y++)i()[y]>x&&(x=i()[y]);n(r).clearRect(0,0,l,s);let w=d-1;for(let y=i().length-1;y>=0;y--){let C=w*a,T=x>0?s*(i()[y]/x):0;u(n(r),C,0,a,T),p=T+" "+p,w--}}});var f=O$(),v=_(f);at(v,p=>O(o,p),()=>n(o)),g(f),b(t,f),U()}import{safeStorage as t0}from"@vkontakte/videoplayer-shared/es2015";var D$=(t,e)=>{t.stopPropagation(),t0.remove(wd),e.set(!1)},B$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Video id</div> <span> </span></div>'),H$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">VSID</div> <span> </span></div>'),F$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Provider</div> <span> </span></div>'),U$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Streams</div> <span> </span></div>'),z$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Viewport</div> <span> </span></div>'),W$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Video size</div> <span> </span></div>'),K$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">CDN host</div> <span> </span></div>'),q$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Volume</div> <span> </span></div>'),Q$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Position</div> <span> </span></div>'),j$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Buffer</div> <span> </span></div>'),G$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Live latency</div> <span> </span></div>'),Y$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Segment</div> <span> </span></div>'),Z$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Network</div> <!> <span> </span></div>'),X$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">V bitrate</div> <!> <span> </span></div>'),J$=M('<div role="region"><button class="close svelte-lx3h69" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-lx3h69"><div class="svelte-lx3h69"><div class="svelte-lx3h69">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-lx3h69"><div class="svelte-lx3h69">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-lx3h69"><div class="svelte-lx3h69">FPS</div> <!> <span> </span></div></div></div>'),e2={hash:"svelte-lx3h69",code:".container.svelte-lx3h69 {background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left;user-select:text;}.container-mobile.svelte-lx3h69 {top:16px;left:16px;}button.close.svelte-lx3h69 {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.svelte-lx3h69 {padding:5px;}.content.svelte-lx3h69 > div:where(.svelte-lx3h69) > div:where(.svelte-lx3h69) {display:inline-block;text-align:right;width:60px;padding:0 5px;}"};function Dd(t,e){F(e,!0),W(t,e2);let[i,o]=Be(),r=()=>S(d,"$isMobile",i),s=_e(),l=s.ui.debugPanelVisible,d=s.ui.isMobile,a=j(di(s.actions.internal.getDebugPanelData())),u=s.actions.internal.getVideoElement(),f=j(0),v=j(0),p=j(0),x=new Vl(60),w=new Vl(60),y=new Vl(60),C=j(di([])),T=j(di([])),E=j(di([])),R=Y("aria_label_debug_panel");Nt(()=>{t0.set(wd,"true"),s.actions.internal.startLogging(),u&&(O(v,u.getVideoPlaybackQuality().droppedVideoFrames,!0),O(f,u.getVideoPlaybackQuality().totalVideoFrames,!0));let Ce=window.setInterval(()=>{O(a,s.actions.internal.getDebugPanelData(),!0)},500),we;return u&&(we=window.setInterval(()=>{if(u){O(v,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let te=u.getVideoPlaybackQuality().totalVideoFrames;O(p,te-n(f)),O(f,te,!0),x.push(n(p)),n(a).speed&&w.push(n(a).speed),n(a).bitrate&&y.push(n(a).bitrate),O(C,x.getValuesFromBottom(),!0),O(T,w.getValuesFromBottom(),!0),O(E,y.getValuesFromBottom(),!0)}},1e3)),()=>{s.actions.internal.stopLogging(),clearInterval(Ce),we&&clearInterval(we)}});var A=J$();let I;var N=_(A);N.__click=[D$,l];var H=P(N,2),B=_(H),z=P(_(B),2),X=_(z,!0);g(z),g(B);var le=P(B,2);{var q=Ce=>{var we=B$(),te=P(_(we),2),Te=_(te,!0);g(te),g(we),D(()=>me(Te,n(a).id)),b(Ce,we)};V(le,Ce=>{n(a).id&&Ce(q)})}var ce=P(le,2);{var J=Ce=>{var we=H$(),te=P(_(we),2),Te=_(te,!0);g(te),g(we),D(()=>me(Te,n(a).vsid)),b(Ce,we)};V(ce,Ce=>{n(a).vsid&&Ce(J)})}var ve=P(ce,2);{var se=Ce=>{var we=F$(),te=P(_(we),2),Te=_(te,!0);g(te),g(we),D(()=>me(Te,n(a).provider)),b(Ce,we)};V(ve,Ce=>{n(a).provider&&Ce(se)})}var de=P(ve,2);{var Le=Ce=>{var we=U$(),te=P(_(we),2),Te=_(te);g(te),g(we),D(()=>{var Me,It;return me(Te,`Video: ${(Me=n(a).videoCodec||"")!=null?Me:""} ${n(a).hdr?"(HDR)":""}
|
|
139
139
|
&
|
|
140
|
-
Audio: ${(ue=r(a).audioCodec||"")!=null?ue:""} ${r(a).audioLanguage?`(${r(a).audioLanguage})`:""}`)}),$(be,Ie)};V(pe,be=>{(r(a).videoCodec||r(a).audioCodec)&&be(Me)})}var Ve=A(pe,2);{var de=be=>{var Ie=m$(),ce=A(_(Ie),2),Ge=_(ce,!0);h(ce),h(Ie),D(()=>ge(Ge,r(a).viewport)),$(be,Ie)};V(Ve,be=>{r(a).viewport&&be(de)})}var Ne=A(Ve,2);{var se=be=>{var Ie=v$(),ce=A(_(Ie),2),Ge=_(ce,!0);h(ce),h(Ie),D(()=>ge(Ge,r(a).videoSize)),$(be,Ie)};V(Ne,be=>{r(a).videoSize&&be(se)})}var P=A(Ne,2);{var nt=be=>{var Ie=g$(),ce=A(_(Ie),2),Ge=_(ce,!0);h(ce),h(Ie),D(()=>ge(Ge,r(a).cdn)),$(be,Ie)};V(P,be=>{r(a).cdn&&be(nt)})}var Be=A(P,2);{var G=be=>{var Ie=h$(),ce=A(_(Ie),2),Ge=_(ce);h(ce),h(Ie),D(()=>{var ze;return ge(Ge,`${(ze=r(a).volume)!=null?ze:""} %`)}),$(be,Ie)};V(Be,be=>{r(a).volume&&be(G)})}var ie=A(Be,2);{var Oe=be=>{var Ie=_$(),ce=A(_(Ie),2),Ge=_(ce);h(ce),h(Ie),D(ze=>ge(Ge,`${ze!=null?ze:""} s`),[()=>r(a).position.toFixed(2)]),$(be,Ie)};V(ie,be=>{r(a).position&&be(Oe)})}var et=A(ie,2);{var xe=be=>{var Ie=b$(),ce=A(_(Ie),2),Ge=_(ce);h(ce),h(Ie),D(ze=>ge(Ge,`${ze!=null?ze:""} s`),[()=>r(a).buffer.toFixed(2)]),$(be,Ie)};V(et,be=>{r(a).buffer&&be(xe)})}var te=A(et,2);{var Ce=be=>{var Ie=$$(),ce=A(_(Ie),2),Ge=_(ce);h(ce),h(Ie),D(ze=>ge(Ge,`${ze!=null?ze:""} s`),[()=>r(a).liveLatency.toFixed(2)]),$(be,Ie)};V(te,be=>{r(a).liveLatency&&be(Ce)})}var Ee=A(te,2);{var qe=be=>{var Ie=y$(),ce=A(_(Ie),2),Ge=_(ce,!0);h(ce),h(Ie),D(ze=>ge(Ge,ze),[()=>[{value:r(a).currentVideoSegmentLength,title:"Video:"},{value:r(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:ze})=>ze).map(({value:ze,title:ue})=>`${ue} ${((ze!=null?ze:0)/1e3).toFixed(2)} s`).join(" & ")]),$(be,Ie)};V(Ee,be=>{(r(a).currentVideoSegmentLength||r(a).currentAudioSegmentLength)&&be(qe)})}var it=A(Ee,2),ft=A(_(it),2),dt=_(ft);h(ft),h(it);var gt=A(it,2);{var ot=be=>{var Ie=x$(),ce=A(_(Ie),2);md(ce,{get values(){return r(C)}});var Ge=A(ce,2),ze=_(Ge);h(Ge),h(Ie),D(ue=>ge(ze,`${ue!=null?ue:""} Kbps`),[()=>r(a).speed.toFixed(2)]),$(be,Ie)};V(gt,be=>{r(a).speed&&be(ot)})}var Ut=A(gt,2);{var Qt=be=>{var Ie=w$(),ce=A(_(Ie),2);md(ce,{get values(){return r(E)}});var Ge=A(ce,2),ze=_(Ge);h(Ge),h(Ie),D(ue=>ge(ze,`${ue!=null?ue:""} Kbps`),[()=>r(a).bitrate.toFixed(2)]),$(be,Ie)};V(Ut,be=>{r(a).bitrate&&be(Qt)})}var Yt=A(Ut,2),Gt=A(_(Yt),2);md(Gt,{get values(){return r(T)}});var Ae=A(Gt,2),jt=_(Ae,!0);h(Ae),h(Yt),h(F),h(I),D(be=>{var Ie,ce;k=re(I,1,"container svelte-lx3h69",null,k,be),Ue(I,"aria-label",R),ge(Z,r(a).version),ge(dt,`${(Ie=r(m))!=null?Ie:""} / ${(ce=r(f))!=null?ce:""} frames`),ge(jt,r(p))},[()=>({"container-mobile":n()})]),$(t,I),z(),o()}ct(["click"]);import{noop as T$}from"@vkontakte/videoplayer-shared/es2015";var E$=(t,e)=>{t.stopPropagation(),e()()},I$=M('<div class="close svelte-1ome55p"></div>'),k$={hash:"svelte-1ome55p",code:".close.svelte-1ome55p {cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px;}.close.svelte-1ome55p:hover {opacity:1;}.close.svelte-1ome55p:before, .close.svelte-1ome55p:after {position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white);}.close.svelte-1ome55p:before {transform:rotate(45deg);}.close.svelte-1ome55p:after {transform:rotate(-45deg);}"};function ba(t,e){U(e,!0),q(t,k$);let i=v(e,"onClick",3,T$);var o=I$();o.__click=[E$,i],$(t,o),z()}ct(["click"]);import{noop as A$}from"@vkontakte/videoplayer-shared/es2015";var P$=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>'),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 gd(t,e){U(e,!0),q(t,L$);let i=v(e,"isRunning",3,!0),o=v(e,"onTimerEnded",3,A$),n=5e3,s=J(void 0),l,d,a=0,u;Qe(()=>{i()&&St(()=>{d=Date.now(),a=requestAnimationFrame(m)})});let f=()=>{a&&(cancelAnimationFrame(a),a=0)},m=()=>{f(),i()&&(u=(Date.now()-d)/n,u<1?(l==null||l.clearRect(0,0,100,100),l==null||l.beginPath(),l==null||l.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*u),l==null||l.stroke(),a=requestAnimationFrame(m)):o()())};Mt(()=>{l=r(s).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),on(()=>{f()});var p=P$(),x=_(p);at(x,w=>N(s,w),()=>r(s)),we(2),h(p),$(t,p),z()}var M$=(t,e,i)=>{e(!1),i()},V$=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 Lf(t,e){U(e,!0),q(t,R$);let[i,o]=De(),n=()=>S(d,"$autoplayNextEnabled$",i),s=()=>S(a,"$timerNextVideoRunning$",i),l=Te(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,m=l.actions.internal.nextVideoAnnouncementClick,p=l.actions.internal.nextVideoAnnouncementAuto,x=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(u(!1),p())},y=()=>{e.clickCloseIcon(),x()};Mt(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var T=He(),C=me(T);{var E=R=>{var I=V$(),k=A(me(I),2),B=_(k),F=_(B),H=_(F,!0);h(F);var W=A(F,2);ba(W,{onClick:y}),h(B);var Z=A(B,2);Z.__click=[M$,u,m];var ne=_(Z),j=_(ne),_e=_(j);let ee;var fe=A(_e,2);{var ve=de=>{let Ne=g(()=>s()&&n());gd(de,{get isRunning(){return r(Ne)},onTimerEnded:w})};V(fe,de=>{n()&&de(ve)})}h(j),h(ne);var pe=A(ne,2),Me=_(pe),Ve=_(Me,!0);h(Me),h(pe),h(Z),h(k),D((de,Ne)=>{ge(H,de),lt(j,`background-image: url('${e.thumb}')`),ee=re(_e,1,"thumb-overlay svelte-jfbaax",null,ee,Ne),ge(Ve,e.title)},[()=>Q("end_screen_next_video"),()=>({withOpacity:n()})]),$(R,I)};V(C,R=>{e.isHide||R(E)})}$(t,T),z(),o()}ct(["click"]);import{PlaybackState as $a}from"@vkontakte/videoplayer-core/es2015";import{checkNever as N$}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as Rn}from"@vkontakte/videoplayer-statistics/es2015";var Mf=(t,e)=>Math.min(+(t+e).toFixed(2),1),Vf=(t,e)=>Math.max(+(t-e).toFixed(2),0),mu=(t,e,i)=>{let o=Mf(e,i);e<1&&t.actions.internal.setVolume(o)},vu=(t,e,i)=>{let o=Vf(e,i);e>0&&t.actions.internal.setVolume(o)};var Gs=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);function gu(){var t,e,i;return(i=(e=(t=document.activeElement)==null?void 0:t.shadowRoot)==null?void 0:e.activeElement)!=null?i:null}var B$=(t,e)=>{e(t)},D$=M('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),F$={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Rf(t,e){var Ge,ze;U(e,!0),q(t,F$);let[i,o]=De(),n=()=>S(fe,"$disabledControls$",i),s=()=>S(Ce,"$isInteractiveTime$",i),l=()=>S(Ee,"$showInteractiveTimeIndicatorTooltip$",i),d=()=>S(Z,"$playbackState$",i),a=()=>S(G,"$isEnded$",i),u=()=>S(nt,"$doubleForwardAvailable$",i),f=()=>S(P,"$doubleForwardOn$",i),m=()=>S(ne,"$adPlaybackState",i),p=()=>S(j,"$positionExact$",i),x=()=>S(_e,"$duration$",i),w=()=>S(xe,"$isAudioAvailable$",i),y=()=>S(ee,"$volume$",i),T=()=>S(Ve,"$availablePlaybackRates$",i),C=()=>S(Me,"$currentPlaybackRate$",i),E=()=>S(ve,"$muted$",i),R=()=>S(pe,"$currentSubtitle$",i),I=()=>S(ie,"$overlayContainer$",i),k=v(e,"nextButtonActive",3,!1),B=v(e,"prevButtonActive",3,!1),F=Te(),H=It(),W=F.getLogger().createComponentLog("KeyboardControls component"),Z=F.state.playbackState$,ne=F.ads.playbackState,j=F.state.positionExact$,_e=F.state.duration$,ee=F.state.volume$,fe=F.ui.controls.disabledControls$,ve=F.state.muted$,pe=F.state.currentSubtitle$,Me=F.state.currentPlaybackRate$,Ve=F.state.availablePlaybackRates$,de=F.ui.contextMenu.openedByHotKey$,Ne=F.ui.contextMenu.lastActiveElem$,se=F.ui.contextMenu.visible$,P=F.ui.doubleForwardOn$,nt=F.ui.doubleForwardAvailable$,Be=F.ui.contextMenu.position$,G=F.state.isEnded$,ie=F.ui.overlayContainer$,Oe=(Ge=F.callbacks)==null?void 0:Ge.onAudioDoesNotExistHint,et=(ze=F.callbacks)==null?void 0:ze.onAudioDisabledHint,xe=F.state.isAudioAvailable$,te=F.state.isAudioDisabled,Ce=F.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Ee}=fo(),qe=0,it=!0,ft=J(void 0),dt=ue=>(ue!==it&&(it=ue,qe=0),qe+=1,(H.controls.seekStepKeyboard+H.controls.seekStepKeyboard*qe)/1e3),gt=!0,ot=({type:ue,repeat:Fe,disableDoubleForward:$e})=>{let Xe=()=>{if(!n().has("PLAY_BUTTON"))if(s()&&l()&&Ee.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{F.actions.internal.togglePlay();let yt="PLAY";d()===$a.PAUSED?yt="PAUSE":a()&&(yt="REPLAY"),e.showHotKeyHelpers({type:yt})}},Lt=ue==="down";if(!u()||$e){Lt&&Xe(),gt=!0;return}if(Lt)gt=!1;else if(gt)return;if(Lt){!Fe&&e.startDoubleForwardActivationTimer();return}f()||Xe(),e.stopDoubleForward(),gt=!0},Ut=(ue,Fe=!1)=>{var ii,si;let $e=ue.target,Xe=(ii=$e==null?void 0:$e.getAttribute("role"))==null?void 0:ii.includes("menuitem"),Lt=$e.classList.contains("btn"),yt=ue.code;if(Lt&&yt==="Space")return!1;let Vt=Ph.has(yt);if(Xe&&Vt)return!1;let hi=!Ah.has(yt);if(ue.ctrlKey&&hi||ue.altKey&&hi||ue.metaKey)return!1;let Jt=Xe&&yt==="Escape";Lh.has(yt)||Jt||e.hideContextMenu();let _i=d()===$a.PLAYING||d()===$a.PAUSED,Ii=e.isAds&&(m()==="paused"||m()==="playing"),mo=!Ii&&!n().has("TIMELINE");if(!(_i||Ii))return!1;W({message:`key down, code: ${yt}, isExternal = ${Fe}`});let vo=!1,Ct=()=>{vo=!0,Fe||ue.preventDefault()};switch(yt){case"KeyJ":case"ArrowLeft":{if(!mo)break;if(ue.ctrlKey||ue.altKey){let We=F.actions.internal.getPrevEpisode();F.actions.internal.seekToPrevEpisode(We),We&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:We.text}),Ct()}else{let We=ue.shiftKey?dt(!1):H.controls.seekStepKeyboard/1e3,At=Math.max(p()-We,0);p()>0&&(F.actions.internal.seekTime(At,Rn.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:We.toString()}),Ct())}break}case"KeyL":case"ArrowRight":{if(!mo)break;if(ue.ctrlKey||ue.altKey){let We=F.actions.internal.getNextEpisode();F.actions.internal.seekToNextEpisode(We),We&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:We.text}),Ct()}else{let We=ue.shiftKey?dt(!0):H.controls.seekStepKeyboard/1e3,At=Math.min(p()+We,x());Math.round(p())<Math.round(x())&&(F.actions.internal.seekTime(At,Rn.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:We.toString()}),Ct())}break}case"ArrowUp":{if(Gs({isAudioDisabled:te,audioDisabledHintCallback:et,isAudioAvailable:w(),audioIsNotExistHintCallback:Oe,isAds:e.isAds})){let We=y(),At=H.controls.volumeStepKeyboard,Si=We<=1;if(mu(F,We,At),Si){let Qi=Math.round(Mf(We,At)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Qi}})}}Ct();break}case"ArrowDown":{if(Gs({isAudioDisabled:te,audioDisabledHintCallback:et,isAudioAvailable:w(),audioIsNotExistHintCallback:Oe,isAds:e.isAds})){let We=y(),At=H.controls.volumeStepKeyboard,Si=We>=0;if(vu(F,We,At),Si){let Qi=Math.round(Vf(We,At)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Qi}})}}Ct();break}case"Comma":{if(ue.shiftKey){if(!f()){F.actions.internal.decrementPlaybackRate();let We=T().find(At=>At.value===C());e.showHotKeyHelpers({type:"RATE_DOWN",text:We==null?void 0:We.displayValue}),Ct()}}else{if(Ii||d()!==$a.PAUSED)break;let We=Math.max(p()-H.controls.seekStepFrame/1e3,0);p()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),F.actions.internal.clearDelayedBufferingCheckTimeout(),F.actions.internal.seekTime(We,Rn.DOUBLE_TAP),Ct())}break}case"Period":{if(ue.shiftKey){if(!f()){F.actions.internal.incrementPlaybackRate();let We=T().find(At=>At.value===C());e.showHotKeyHelpers({type:"RATE_UP",text:We==null?void 0:We.displayValue}),Ct()}}else{if(Ii||d()!==$a.PAUSED)break;let We=Math.min(p()+H.controls.seekStepFrame/1e3,x());p()<x()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),F.actions.internal.clearDelayedBufferingCheckTimeout(),F.actions.internal.seekTime(We,Rn.DOUBLE_TAP),Ct())}break}case"KeyK":case"Space":ot({type:"down",repeat:ue.repeat,disableDoubleForward:"KeyK"===yt}),Ct();break;case"KeyM":{Gs({isAudioDisabled:te,audioDisabledHintCallback:et,isAudioAvailable:w(),audioIsNotExistHintCallback:Oe,isAds:e.isAds})&&(e.showHotKeyHelpers({type:E()?"VOLUME":"MUTE"}),F.actions.internal.toggleMuted()),Ct();break}case"KeyF":e.toggleFullscreen(),Ct();break;case"KeyC":F.actions.internal.toggleSubtitle(),R().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(si=R())==null?void 0:si.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),Ct();break;case"KeyI":F.actions.internal.togglePictureInPicture(),Ct();break;case"Digit1":case"Numpad1":if(ue.shiftKey){let We=A1(I());Be.set(We),Ne.set($e),de.set(!0),se.set(!0),Ct();break}e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.1,Rn.DOUBLE_TAP),Ct();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.2,Rn.DOUBLE_TAP),Ct();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.3,Rn.DOUBLE_TAP),Ct();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.4,Rn.DOUBLE_TAP),Ct();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.5,Rn.DOUBLE_TAP),Ct();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.6,Rn.DOUBLE_TAP),Ct();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.7,Rn.DOUBLE_TAP),Ct();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.8,Rn.DOUBLE_TAP),Ct();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.9,Rn.DOUBLE_TAP),Ct();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(0,Rn.DOUBLE_TAP),Ct();break;case"Slash":{ue.shiftKey&&H.features.hotKeyMapModal&&(e.showKeyMap(),Ct());break}case"KeyN":ue.shiftKey&&k()&&(F.actions.internal.nextVideoClick(),Ct());break;case"KeyP":ue.shiftKey&&B()&&(F.actions.internal.prevVideoClick(),Ct());break;case"ShiftLeft":case"ShiftRight":Ct();break;case"Tab":case"Escape":case"Enter":break;default:N$(yt);break}return vo},Qt=ue=>{let Fe=ue.code;if(ue.ctrlKey||ue.altKey||ue.metaKey)return;let $e=d()===$a.PLAYING||d()===$a.PAUSED,Xe=e.isAds&&(m()==="paused"||m()==="playing");if($e||Xe)switch(Fe){case"ShiftLeft":case"ShiftRight":qe=0;break;case"Space":ot({type:"up"});break}},Yt=Q("aria_label_video_player"),Gt=()=>{var ue;return(ue=r(ft))==null?void 0:ue.focus()},Ae=()=>r(ft)===gu(),jt=ue=>ue.type==="keydown"?Ut(ue,!0):(ue.type==="keyup"&&Qt(ue),!1);var be=D$();be.__keyup=Qt,be.__keydown=[B$,Ut];var Ie=_(be);he(Ie,()=>{var ue;return(ue=e.children)!=null?ue:le}),h(be),at(be,ue=>N(ft,ue),()=>r(ft)),D(()=>Ue(be,"aria-label",Yt)),$(t,be);var ce=z({focus:Gt,isFocused:Ae,handleExternalKeyboardEvent:jt});return o(),ce}ct(["keyup","keydown"]);var H$=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>'),U$={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: ${(It=n(a).audioCodec||"")!=null?It:""} ${n(a).audioLanguage?`(${n(a).audioLanguage})`:""}`)}),b(Ce,we)};V(de,Ce=>{(n(a).videoCodec||n(a).audioCodec)&&Ce(Le)})}var Se=P(de,2);{var ie=Ce=>{var we=z$(),te=P(_(we),2),Te=_(te,!0);g(te),g(we),D(()=>me(Te,n(a).viewport)),b(Ce,we)};V(Se,Ce=>{n(a).viewport&&Ce(ie)})}var Ne=P(Se,2);{var pe=Ce=>{var we=W$(),te=P(_(we),2),Te=_(te,!0);g(te),g(we),D(()=>me(Te,n(a).videoSize)),b(Ce,we)};V(Ne,Ce=>{n(a).videoSize&&Ce(pe)})}var k=P(Ne,2);{var qe=Ce=>{var we=K$(),te=P(_(we),2),Te=_(te,!0);g(te),g(we),D(()=>me(Te,n(a).cdn)),b(Ce,we)};V(k,Ce=>{n(a).cdn&&Ce(qe)})}var Re=P(k,2);{var Z=Ce=>{var we=q$(),te=P(_(we),2),Te=_(te);g(te),g(we),D(()=>{var Me;return me(Te,`${(Me=n(a).volume)!=null?Me:""} %`)}),b(Ce,we)};V(Re,Ce=>{n(a).volume&&Ce(Z)})}var ne=P(Re,2);{var He=Ce=>{var we=Q$(),te=P(_(we),2),Te=_(te);g(te),g(we),D(Me=>me(Te,`${Me!=null?Me:""} s`),[()=>n(a).position.toFixed(2)]),b(Ce,we)};V(ne,Ce=>{n(a).position&&Ce(He)})}var Ze=P(ne,2);{var ge=Ce=>{var we=j$(),te=P(_(we),2),Te=_(te);g(te),g(we),D(Me=>me(Te,`${Me!=null?Me:""} s`),[()=>n(a).buffer.toFixed(2)]),b(Ce,we)};V(Ze,Ce=>{n(a).buffer&&Ce(ge)})}var ee=P(Ze,2);{var ke=Ce=>{var we=G$(),te=P(_(we),2),Te=_(te);g(te),g(we),D(Me=>me(Te,`${Me!=null?Me:""} s`),[()=>n(a).liveLatency.toFixed(2)]),b(Ce,we)};V(ee,Ce=>{n(a).liveLatency&&Ce(ke)})}var he=P(ee,2);{var Ue=Ce=>{var we=Y$(),te=P(_(we),2),Te=_(te,!0);g(te),g(we),D(Me=>me(Te,Me),[()=>[{value:n(a).currentVideoSegmentLength,title:"Video:"},{value:n(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Me})=>Me).map(({value:Me,title:It})=>`${It} ${((Me!=null?Me:0)/1e3).toFixed(2)} s`).join(" & ")]),b(Ce,we)};V(he,Ce=>{(n(a).currentVideoSegmentLength||n(a).currentAudioSegmentLength)&&Ce(Ue)})}var Xe=P(he,2),Ge=P(_(Xe),2),ct=_(Ge);g(Ge),g(Xe);var et=P(Xe,2);{var Bt=Ce=>{var we=Z$(),te=P(_(we),2);Nd(te,{get values(){return n(T)}});var Te=P(te,2),Me=_(Te);g(Te),g(we),D(It=>me(Me,`${It!=null?It:""} Kbps`),[()=>n(a).speed.toFixed(2)]),b(Ce,we)};V(et,Ce=>{n(a).speed&&Ce(Bt)})}var rt=P(et,2);{var Dt=Ce=>{var we=X$(),te=P(_(we),2);Nd(te,{get values(){return n(E)}});var Te=P(te,2),Me=_(Te);g(Te),g(we),D(It=>me(Me,`${It!=null?It:""} Kbps`),[()=>n(a).bitrate.toFixed(2)]),b(Ce,we)};V(rt,Ce=>{n(a).bitrate&&Ce(Dt)})}var Qt=P(rt,2),Et=P(_(Qt),2);Nd(Et,{get values(){return n(C)}});var ti=P(Et,2),Wt=_(ti,!0);g(ti),g(Qt),g(H),g(A),D(Ce=>{var we,te;I=re(A,1,"container svelte-lx3h69",null,I,Ce),Ke(A,"aria-label",R),me(X,n(a).version),me(ct,`${(we=n(v))!=null?we:""} / ${(te=n(f))!=null?te:""} frames`),me(Wt,n(p))},[()=>({"container-mobile":r()})]),b(t,A),U(),o()}dt(["click"]);import{noop as t2}from"@vkontakte/videoplayer-shared/es2015";var i2=(t,e)=>{t.stopPropagation(),e()()},o2=M('<div class="close svelte-1ome55p"></div>'),n2={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 As(t,e){F(e,!0),W(t,n2);let i=h(e,"onClick",3,t2);var o=o2();o.__click=[i2,i],b(t,o),U()}dt(["click"]);import{noop as r2}from"@vkontakte/videoplayer-shared/es2015";var s2=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>'),a2={hash:"svelte-8jhsry",code:".timer.svelte-8jhsry {border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around;}.timer.svelte-8jhsry:hover {background:rgba(31, 31, 31, .85)}.timer-canvas.svelte-8jhsry {width:50px;height:50px;position:absolute;}.timer-play-icon.svelte-8jhsry {width:22px;height:26px;}"};function Bd(t,e){F(e,!0),W(t,a2);let i=h(e,"isRunning",3,!0),o=h(e,"onTimerEnded",3,r2),r=5e3,s=j(void 0),l,d,a=0,u;We(()=>{i()&&Pt(()=>{d=Date.now(),a=requestAnimationFrame(v)})});let f=()=>{a&&(cancelAnimationFrame(a),a=0)},v=()=>{f(),i()&&(u=(Date.now()-d)/r,u<1?(l==null||l.clearRect(0,0,100,100),l==null||l.beginPath(),l==null||l.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*u),l==null||l.stroke(),a=requestAnimationFrame(v)):o()())};Nt(()=>{l=n(s).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),ln(()=>{f()});var p=s2(),x=_(p);at(x,w=>O(s,w),()=>n(s)),Ee(2),g(p),b(t,p),U()}var l2=(t,e,i)=>{e(!1),i()},d2=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),c2={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 Wf(t,e){F(e,!0),W(t,c2);let[i,o]=Be(),r=()=>S(d,"$autoplayNextEnabled$",i),s=()=>S(a,"$timerNextVideoRunning$",i),l=_e(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,p=l.actions.internal.nextVideoAnnouncementAuto,x=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{r()&&(u(!1),p())},y=()=>{e.clickCloseIcon(),x()};Nt(()=>{e.isHide||f(),e.isHide&&r()&&(u(!1),p())});var C=Fe(),T=fe(C);{var E=R=>{var A=d2(),I=P(fe(A),2),N=_(I),H=_(N),B=_(H,!0);g(H);var z=P(H,2);As(z,{onClick:y}),g(N);var X=P(N,2);X.__click=[l2,u,v];var le=_(X),q=_(le),ce=_(q);let J;var ve=P(ce,2);{var se=ie=>{let Ne=m(()=>s()&&r());Bd(ie,{get isRunning(){return n(Ne)},onTimerEnded:w})};V(ve,ie=>{r()&&ie(se)})}g(q),g(le);var de=P(le,2),Le=_(de),Se=_(Le,!0);g(Le),g(de),g(X),g(I),D((ie,Ne)=>{me(B,ie),Je(q,`background-image: url('${e.thumb}')`),J=re(ce,1,"thumb-overlay svelte-jfbaax",null,J,Ne),me(Se,e.title)},[()=>Y("end_screen_next_video"),()=>({withOpacity:r()})]),b(R,A)};V(T,R=>{e.isHide||R(E)})}b(t,C),U(),o()}dt(["click"]);import{PlaybackState as Ra}from"@vkontakte/videoplayer-core/es2015";import{checkNever as p2}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as Fn}from"@vkontakte/videoplayer-statistics/es2015";var Kf=(t,e)=>Math.min(+(t+e).toFixed(2),1),qf=(t,e)=>Math.max(+(t-e).toFixed(2),0),Lu=(t,e,i)=>{let o=Kf(e,i);e<1&&t.actions.internal.setVolume(o)},Vu=(t,e,i)=>{let o=qf(e,i);e>0&&t.actions.internal.setVolume(o)};var ta=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:r})=>t?i?!0:(o==null||o(),!1):e?!0:(r==null||r(),!1);function Ru(){var t,e,i;return(i=(e=(t=document.activeElement)==null?void 0:t.shadowRoot)==null?void 0:e.activeElement)!=null?i:null}var f2=(t,e)=>{e(t)},v2=M('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),m2={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Qf(t,e){var Me,It;F(e,!0),W(t,m2);let[i,o]=Be(),r=()=>S(ve,"$disabledControls$",i),s=()=>S(ke,"$isInteractiveTime$",i),l=()=>S(he,"$showInteractiveTimeIndicatorTooltip$",i),d=()=>S(X,"$playbackState$",i),a=()=>S(Z,"$isEnded$",i),u=()=>S(qe,"$doubleForwardAvailable$",i),f=()=>S(k,"$doubleForwardOn$",i),v=()=>S(ne,"$overlayContainer$",i),p=()=>S(le,"$adPlaybackState",i),x=()=>S(q,"$positionExact$",i),w=()=>S(ce,"$duration$",i),y=()=>S(ge,"$isAudioAvailable$",i),C=()=>S(J,"$volume$",i),T=()=>S(Se,"$availablePlaybackRates$",i),E=()=>S(Le,"$currentPlaybackRate$",i),R=()=>S(se,"$muted$",i),A=()=>S(de,"$currentSubtitle$",i),I=h(e,"nextButtonActive",3,!1),N=h(e,"prevButtonActive",3,!1),H=_e(),B=Rt(),z=H.getLogger().createComponentLog("KeyboardControls component"),X=H.state.playbackState$,le=H.ads.playbackState,q=H.state.positionExact$,ce=H.state.duration$,J=H.state.volume$,ve=H.ui.controls.disabledControls$,se=H.state.muted$,de=H.state.currentSubtitle$,Le=H.state.currentPlaybackRate$,Se=H.state.availablePlaybackRates$,ie=H.ui.contextMenu.openedByHotKey$,Ne=H.ui.contextMenu.lastActiveElem$,pe=H.ui.contextMenu.visible$,k=H.ui.doubleForwardOn$,qe=H.ui.doubleForwardAvailable$,Re=H.ui.contextMenu.position$,Z=H.state.isEnded$,ne=H.ui.overlayContainer$,He=(Me=H.callbacks)==null?void 0:Me.onAudioDoesNotExistHint,Ze=(It=H.callbacks)==null?void 0:It.onAudioDisabledHint,ge=H.state.isAudioAvailable$,ee=H.state.isAudioDisabled,ke=H.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:he}=xo(),Ue=0,Xe=!0,Ge=j(void 0),ct=De=>(De!==Xe&&(Xe=De,Ue=0),Ue+=1,(B.controls.seekStepKeyboard+B.controls.seekStepKeyboard*Ue)/1e3),et=!0,Bt=({type:De,repeat:ut,disableDoubleForward:$t})=>{let xe=()=>{if(!r().has("PLAY_BUTTON"))if(s()&&l()&&he.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{H.actions.internal.togglePlay();let Qe="PLAY";d()===Ra.PAUSED?Qe="PAUSE":a()&&(Qe="REPLAY"),e.showHotKeyHelpers({type:Qe})}},ot=De==="down";if(!u()||$t){ot&&xe(),et=!0;return}if(ot)et=!1;else if(et)return;if(ot){!ut&&e.startDoubleForwardActivationTimer();return}f()||xe(),e.stopDoubleForward(),et=!0},rt=De=>{let ut=J1(v());Re.set(ut),Ne.set(De.target),ie.set(!0),pe.set(!0)},Dt=(De,ut=!1)=>{var Pi,Yt;let $t=De.target,xe=(Pi=$t==null?void 0:$t.getAttribute("role"))==null?void 0:Pi.includes("menuitem"),ot=$t.classList.contains("btn"),Qe=De.code;if(ot&&Qe==="Space")return!1;let lt=Zh.has(Qe);if(xe&<)return!1;let ii=!Yh.has(Qe);if(De.ctrlKey&&ii||De.altKey&&ii||De.metaKey)return!1;let ai=xe&&Qe==="Escape";Xh.has(Qe)||ai||e.hideContextMenu();let mi=d()===Ra.PLAYING||d()===Ra.PAUSED,yi=e.isAds&&(p()==="paused"||p()==="playing"),so=!yi&&!r().has("TIMELINE"),vo=De.shiftKey&&["Digit1","Numpad1"].includes(Qe);if(!vo&&!(mi||yi))return!1;z({message:`key down, code: ${Qe}, isExternal = ${ut}`});let ui=!1,mt=()=>{ui=!0,ut||De.preventDefault()};if(vo)return rt(De),mt(),!0;switch(Qe){case"KeyJ":case"ArrowLeft":{if(!so)break;if(De.ctrlKey||De.altKey){let Tt=H.actions.internal.getPrevEpisode();H.actions.internal.seekToPrevEpisode(Tt),Tt&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:Tt.text}),mt()}else{let Tt=De.shiftKey?ct(!1):B.controls.seekStepKeyboard/1e3,ni=Math.max(x()-Tt,0);x()>0&&(H.actions.internal.seekTime(ni,Fn.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:Tt.toString()}),mt())}break}case"KeyL":case"ArrowRight":{if(!so)break;if(De.ctrlKey||De.altKey){let Tt=H.actions.internal.getNextEpisode();H.actions.internal.seekToNextEpisode(Tt),Tt&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:Tt.text}),mt()}else{let Tt=De.shiftKey?ct(!0):B.controls.seekStepKeyboard/1e3,ni=Math.min(x()+Tt,w());Math.round(x())<Math.round(w())&&(H.actions.internal.seekTime(ni,Fn.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:Tt.toString()}),mt())}break}case"ArrowUp":{if(ta({isAudioDisabled:ee,audioDisabledHintCallback:Ze,isAudioAvailable:y(),audioIsNotExistHintCallback:He,isAds:e.isAds})){let Tt=C(),ni=B.controls.volumeStepKeyboard,Zt=Tt<=1;if(Lu(H,Tt,ni),Zt){let St=Math.round(Kf(Tt,ni)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:St}})}}mt();break}case"ArrowDown":{if(ta({isAudioDisabled:ee,audioDisabledHintCallback:Ze,isAudioAvailable:y(),audioIsNotExistHintCallback:He,isAds:e.isAds})){let Tt=C(),ni=B.controls.volumeStepKeyboard,Zt=Tt>=0;if(Vu(H,Tt,ni),Zt){let St=Math.round(qf(Tt,ni)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:St}})}}mt();break}case"Comma":{if(De.shiftKey){if(!f()){H.actions.internal.decrementPlaybackRate();let Tt=T().find(ni=>ni.value===E());e.showHotKeyHelpers({type:"RATE_DOWN",text:Tt==null?void 0:Tt.displayValue}),mt()}}else{if(yi||d()!==Ra.PAUSED)break;let Tt=Math.max(x()-B.controls.seekStepFrame/1e3,0);x()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),H.actions.internal.clearDelayedBufferingCheckTimeout(),H.actions.internal.seekTime(Tt,Fn.DOUBLE_TAP),mt())}break}case"Period":{if(De.shiftKey){if(!f()){H.actions.internal.incrementPlaybackRate();let Tt=T().find(ni=>ni.value===E());e.showHotKeyHelpers({type:"RATE_UP",text:Tt==null?void 0:Tt.displayValue}),mt()}}else{if(yi||d()!==Ra.PAUSED)break;let Tt=Math.min(x()+B.controls.seekStepFrame/1e3,w());x()<w()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),H.actions.internal.clearDelayedBufferingCheckTimeout(),H.actions.internal.seekTime(Tt,Fn.DOUBLE_TAP),mt())}break}case"KeyK":case"Space":Bt({type:"down",repeat:De.repeat,disableDoubleForward:"KeyK"===Qe}),mt();break;case"KeyM":{ta({isAudioDisabled:ee,audioDisabledHintCallback:Ze,isAudioAvailable:y(),audioIsNotExistHintCallback:He,isAds:e.isAds})&&(e.showHotKeyHelpers({type:R()?"VOLUME":"MUTE"}),H.actions.internal.toggleMuted()),mt();break}case"KeyF":e.toggleFullscreen(),mt();break;case"KeyC":H.actions.internal.toggleSubtitle(),A().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(Yt=A())==null?void 0:Yt.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),mt();break;case"KeyI":H.actions.internal.togglePictureInPicture(),mt();break;case"Digit1":case"Numpad1":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.1,Fn.DOUBLE_TAP),mt();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.2,Fn.DOUBLE_TAP),mt();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.3,Fn.DOUBLE_TAP),mt();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.4,Fn.DOUBLE_TAP),mt();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.5,Fn.DOUBLE_TAP),mt();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.6,Fn.DOUBLE_TAP),mt();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.7,Fn.DOUBLE_TAP),mt();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.8,Fn.DOUBLE_TAP),mt();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.9,Fn.DOUBLE_TAP),mt();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(0,Fn.DOUBLE_TAP),mt();break;case"Slash":{De.shiftKey&&B.features.hotKeyMapModal&&(e.showKeyMap(),mt());break}case"KeyN":De.shiftKey&&I()&&(H.actions.internal.nextVideoClick(),mt());break;case"KeyP":De.shiftKey&&N()&&(H.actions.internal.prevVideoClick(),mt());break;case"ShiftLeft":case"ShiftRight":mt();break;case"Tab":case"Escape":case"Enter":break;default:p2(Qe);break}return ui},Qt=De=>{let ut=De.code;if(De.ctrlKey||De.altKey||De.metaKey)return;let $t=d()===Ra.PLAYING||d()===Ra.PAUSED,xe=e.isAds&&(p()==="paused"||p()==="playing");if($t||xe)switch(ut){case"ShiftLeft":case"ShiftRight":Ue=0;break;case"Space":Bt({type:"up"});break}},Et=Y("aria_label_video_player"),ti=()=>{var De;return(De=n(Ge))==null?void 0:De.focus()},Wt=()=>n(Ge)===Ru(),Ce=De=>De.type==="keydown"?Dt(De,!0):(De.type==="keyup"&&Qt(De),!1);var we=v2();we.__keyup=Qt,we.__keydown=[f2,Dt];var te=_(we);be(te,()=>{var De;return(De=e.children)!=null?De:ue}),g(we),at(we,De=>O(Ge,De),()=>n(Ge)),D(()=>Ke(we,"aria-label",Et)),b(t,we);var Te=U({focus:ti,isFocused:Wt,handleExternalKeyboardEvent:Ce});return o(),Te}dt(["keyup","keydown"]);var g2=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>'),h2={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,7 +150,7 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},l1=mb;var w
|
|
|
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
|
|
153
|
+
animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function Oa(t,e){W(t,h2);let i=h(e,"style",3,"");var o=g2();D(()=>Je(o,i())),b(t,o)}var _2=Ie('<svg><!><g filter="url(#a)"><path fill="#fff" d="M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"></path></g><defs><filter id="a" width="23" height="23" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2422_111980"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2422_111980" result="shape"></feBlend></filter></defs></svg>');function jf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=_2();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}import{noop as Rl}from"@vkontakte/videoplayer-shared/es2015";var b2=t=>{t.stopPropagation()},$2=M("<button><!></button>"),y2={hash:"svelte-7jez3e",code:`button.btn.svelte-7jez3e {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;
|
|
154
154
|
/**
|
|
155
155
|
* \u0412 \u0441\u0430\u0444\u0430\u0440\u0438 \u043F\u0440\u0438 \u0445\u043E\u0432\u0435\u0440\u0435 \u043F\u043E\u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u043E\u043F\u0430\u0441\u0438\u0442\u0438, \u0432\u0438\u0434\u0438\u043C\u043E, \u0441\u0430\u0444\u0430\u0440\u0438 \u043A\u0440\u0438\u0432\u043E \u0432\u044B\u043D\u043E\u0441\u0438\u0442 \u044D\u0442\u043E \u0432 \u043E\u0442\u0434\u0435\u043B\u044C\u043D\u044B\u0439 \u0441\u043B\u043E\u0439
|
|
156
156
|
* \u0438\u0437 \u0437\u0430 \u044D\u0442\u043E\u0433\u043E \u043C\u043E\u0436\u0435\u0442 \u043E\u0431\u0440\u0435\u0437\u0430\u0442\u044C\u0441\u044F \u0448\u0438\u043B\u0434\u0438\u043A \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0430, \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u0432\u044B\u043B\u0430\u0437\u0438\u0435\u0442 \u0437\u0430 \u043F\u0440\u0435\u0434\u0435\u043B\u044B \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430.
|
|
@@ -162,25 +162,27 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},l1=mb;var w
|
|
|
162
162
|
/* mobile */
|
|
163
163
|
/* container mobile */button.btn-m.svelte-7jez3e {position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}button.btn-m--play.svelte-7jez3e {width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px;}.btn-m--play.svelte-7jez3e svg {transform:scale(2);}button.btn-m--prev.svelte-7jez3e,
|
|
164
164
|
button.btn-m--next.svelte-7jez3e {position:absolute;width:50px;height:50px;}button.btn-m--prev.svelte-7jez3e {right:calc(100% + 35px);}button.btn-m--next.svelte-7jez3e {left:calc(100% + 35px);}button.btn.svelte-7jez3e:disabled {cursor:default;
|
|
165
|
-
/* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}button.btn.svelte-7jez3e:not(.btn-full-opacity):disabled {opacity:0.4;}button.btn.svelte-7jez3e:not(:disabled):hover {opacity:0.8;}button.pr-0.svelte-7jez3e {padding-right:0;}button.pl-0.svelte-7jez3e {padding-left:0;}`};function
|
|
165
|
+
/* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}button.btn.svelte-7jez3e:not(.btn-full-opacity):disabled {opacity:0.4;}button.btn.svelte-7jez3e:not(:disabled):hover {opacity:0.8;}button.pr-0.svelte-7jez3e {padding-right:0;}button.pl-0.svelte-7jez3e {padding-left:0;}`};function zt(t,e){F(e,!0),W(t,y2);let i=h(e,"className",3,""),o=h(e,"style",3,""),r=h(e,"disabled",3,void 0),s=h(e,"testId",3,void 0),l=h(e,"ariaHidden",3,void 0),d=h(e,"ariaLabel",3,void 0),a=h(e,"ref",15,void 0),u=h(e,"ariaKeyShortCut",3,void 0),f=h(e,"ariaExpanded",3,void 0),v=h(e,"tabIndex",3,0),p=h(e,"click",3,Rl),x=h(e,"focus",3,Rl),w=h(e,"blur",3,Rl),y=m(()=>p()===Rl?null:A=>{A.stopPropagation(),p()(A)}),C=m(()=>x()===Rl?null:A=>{A.preventDefault(),x()()}),T=m(()=>w()===Rl?null:A=>{A.preventDefault(),w()()});var E=$2();E.__pointerdown=[b2],E.__click=function(...A){var I;(I=n(y))==null||I.apply(this,A)};var R=_(E);be(R,()=>{var A;return(A=e.children)!=null?A:ue}),g(E),at(E,A=>a(A),()=>a()),D(()=>{var A,I,N,H,B,z,X,le;re(E,1,`btn ${(A=i())!=null?A:""}`,"svelte-7jez3e"),Je(E,o()||null),E.disabled=(I=r())!=null?I:null,Ke(E,"aria-hidden",(N=l())!=null?N:null),Ke(E,"aria-label",(H=d())!=null?H:null),Ke(E,"aria-keyshortcuts",(B=u())!=null?B:null),Ke(E,"aria-expanded",(z=f())!=null?z:null),Ke(E,"data-testid",(X=s())!=null?X:null),Ke(E,"tabindex",v()),Ke(E,"role",e.role),Ke(E,"aria-checked",(le=e.areaChecked)!=null?le:null)}),Ct("focus",E,function(...A){var I;(I=n(C))==null||I.apply(this,A)}),Ct("blur",E,function(...A){var I;(I=n(T))==null||I.apply(this,A)}),b(t,E),U()}dt(["pointerdown","click"]);var x2=M('<div class="modal-header svelte-ijitjb"><h3 class="modal-title svelte-ijitjb"> </h3> <!></div>'),w2=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>'),S2={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 Gf(t,e){F(e,!0),W(t,S2);let i=h(e,"showHeader",3,!0),o=h(e,"showCloseCross",3,!0),r=Y("hotkey_map_modal_close_btn_text");var s=w2(),l=_(s),d=_(l);{var a=p=>{var x=x2(),w=_(x),y=_(w,!0);g(w);var C=P(w,2);{var T=E=>{zt(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return r},children:(R,A)=>{jf(R,{})},$$slots:{default:!0}})};V(C,E=>{o()&&E(T)})}g(x),D(()=>me(y,e.title)),b(p,x)};V(d,p=>{i()&&p(a)})}var u=P(d,2),f=_(u),v=_(f);be(v,()=>{var p;return(p=e.children)!=null?p:ue}),g(f),g(u),g(l),g(s),b(t,s),U()}var C2=new Set(["BR"]),i0=t=>{var r;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let s=i[o],l=s.tagName;C2.has(l)||(r=s.parentElement)==null||r.removeChild(s)}return e.innerHTML};var T2=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>'),E2=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>'),I2=M('<div class="hot-key-map svelte-quklnq"></div>'),k2={hash:"svelte-quklnq",code:`.hot-key-map.svelte-quklnq {color:var(--black);box-sizing:border-box;overflow-x:hidden;}.hot-key-map-group.svelte-quklnq {border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px;}.hot-key-map-group.svelte-quklnq:last-child {border-bottom:none;}.hot-key-map-group-title.svelte-quklnq {color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.hot-key-map-group-title.svelte-quklnq,
|
|
166
166
|
.hot-key-map-item.svelte-quklnq {padding:12px 0;margin:0;width:100%;}.hot-key-map-group-items.svelte-quklnq {box-sizing:border-box;list-style:none;padding:0;margin:0;}.hot-key-map-item.svelte-quklnq {box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width: 156px;--videoplayer-hotkey-item-value-padding-left: 24px;}.hot-key-map-item-description.svelte-quklnq {color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px;}.hot-key-map-item-value.svelte-quklnq {color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px;}.hot-key-map-item-description.svelte-quklnq,
|
|
167
|
-
.hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function Bf(t,e){U(e,!1),q(t,e2);let[i,o]=De(),n=()=>S(l,"$data",i),s=Te(),{data:l,show:d}=s.ui.modals.hotKeyMap,a=()=>{d.set(!1)};qr(),Nf(t,{get title(){return n().title},onClose:a,children:(u,f)=>{var m=J$();Pi(m,5,()=>n().groups,({title:p,items:x})=>p,(p,x)=>{let w=()=>r(x).title,y=()=>r(x).items;var T=X$(),C=_(T),E=_(C,!0);h(C);var R=A(C,2);Pi(R,5,y,({description:I,value:k})=>k,(I,k)=>{let B=()=>r(k).description,F=()=>r(k).value;var H=Z$(),W=_(H),Z=_(W);jl(Z,()=>M1(B())),h(W);var ne=A(W,2),j=_(ne,!0);h(ne),h(H),D(()=>ge(j,F())),$(I,H)}),h(R),h(T),D(()=>ge(E,w())),$(p,T)}),h(m),$(u,m)},$$slots:{default:!0}}),z(),o()}import{noop as r0}from"@vkontakte/videoplayer-shared/es2015";import{ChromecastState as J1,PlaybackState as wm}from"@vkontakte/videoplayer-core/es2015";import"@vkontakte/videoplayer-shared/es2015";var t2=M('<div class="pillow svelte-1oe0j8n"><!></div>'),i2={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 Df(t,e){q(t,i2);var i=t2(),o=_(i);he(o,()=>{var n;return(n=e.children)!=null?n:le}),h(i),$(t,i)}import{VideoQuality as bd}from"@vkontakte/videoplayer-shared/es2015";var o2=Se('<svg><!><path fill="currentColor" d="M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"></path><path fill="currentColor" fill-rule="evenodd" d="m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z" clip-rule="evenodd"></path></svg>');function Ff(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=o2();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:le}),we(2),h(o),$(t,o)}var n2=Se('<svg><!><path fill="currentColor" d="M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"></path><path fill="currentColor" fill-rule="evenodd" d="M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524" clip-rule="evenodd"></path></svg>');function Hf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=n2();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:le}),we(2),h(o),$(t,o)}var r2=Se('<svg><!><path fill="currentColor" d="M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"></path></svg>');function Uf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=r2();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:le}),we(),h(o),$(t,o)}var s2=Se('<svg><!><path fill="currentColor" d="M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"></path></svg>');function hd(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=s2();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:le}),we(),h(o),$(t,o)}var a2=Se('<svg><!><path fill="currentColor" d="M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"></path><path fill="currentColor" fill-rule="evenodd" d="M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02" clip-rule="evenodd"></path></svg>');function _d(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=a2();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:le}),we(2),h(o),$(t,o)}var hu=t=>{switch(t){case bd.Q_720P:return Uf;case bd.Q_1080P:return hd;case bd.Q_1440P:return _d;case bd.Q_2160P:return Ff;case bd.Q_4320P:return Hf}};var l2=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"></path></svg>');function zf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=l2();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:le}),we(),h(o),$(t,o)}var d2=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5" class="_full"></path></svg>');function Wf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=d2();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:le}),we(2),h(o),$(t,o)}var c2=M('<div aria-hidden="true"><!> <!></div>'),u2={hash:"svelte-8t5w85",code:'.icon.svelte-8t5w85 {display:flex;position:relative;width:24px;height:24px;}.icon.svelte-8t5w85 .pillow {position:absolute;top:1px;right:-9px;}.icon.triple.svelte-8t5w85 .pillow {right:-13px;}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full {visibility:hidden;opacity:0;}'};function $d(t,e){U(e,!0),q(t,u2);let i=v(e,"isMobile",3,!1),o=v(e,"currentQuality",3,void 0),n=g(()=>hu(o())),s=g(()=>!!r(n)&&[hd,_d].includes(r(n)));var l=He(),d=me(l);{var a=f=>{zf(f,{})},u=f=>{var m=c2();let p;var x=_(m);{var w=C=>{Df(C,{children:(E,R)=>{var I=He(),k=me(I);Li(k,()=>r(n),(B,F)=>{F(B,{})}),$(E,I)},$$slots:{default:!0}})};V(x,C=>{r(n)&&C(w)})}var y=A(x,2);let T=g(()=>r(n)?"settings-icon--labeled":"settings-icon");Wf(y,{get"data-testid"(){return r(T)},fill:"var(--btn-color, #fff)"}),h(m),D(C=>p=re(m,1,"icon svelte-8t5w85",null,p,C),[()=>({triple:r(s)})]),$(f,m)};V(d,f=>{i()?f(a):f(u,!1)})}$(t,l),z()}var p2=M('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),f2={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function ml(t,e){U(e,!0),q(t,f2);let[i,o]=De(),n=()=>S(u,"$settingsMenuVisible",i),s=()=>S(p,"$isMobile",i),l=()=>S(a,"$currentQuality",i),d=Te(),a=d.state.currentQuality$,u=d.ui.settingsMenu.visible$,f=d.actions.internal.openSettingsMenu,m=d.actions.internal.closeSettingsMenu,p=d.ui.isMobile,x=d.ui.t,w=J(void 0);Qe(()=>{r(w)&&St(()=>{e.ref$.set(r(w))})});let y=x("aria_label_settings");function T(E){return vt(this,null,function*(){let R=Qs(E);n()?m():f(R,xo)})}let C=g(()=>n()?"opened":"");Nt(t,{get className(){return r(C)},testId:"btn-settings",click:T,get ariaLabel(){return y},get ariaExpanded(){return n()},get ref(){return r(w)},set ref(E){N(w,E,!0)},children:(E,R)=>{var I=p2(),k=_(I);$d(k,{get isMobile(){return s()},get currentQuality(){return l()}}),h(I),$(E,I)},$$slots:{default:!0}}),z(),o()}var m2=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.538 4c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.334v3.076c0 .948 0 1.714-.05 2.334-.053.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.922c-.267-.523-.377-1.087-.43-1.726C2 15.252 2 14.486 2 13.538v-3.076c0-.948 0-1.714.05-2.334.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.267 1.087-.377 1.726-.43C6.748 4 7.514 4 8.462 4zM6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9m.9-4.7a.9.9 0 1 0 0 1.8h1.7a.9.9 0 1 0 0-1.8zm7.6 4.7a.9.9 0 0 1 .9-.9h1.7a.9.9 0 0 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9m-2.6-4.7a.9.9 0 1 0 0 1.8h5.2a.9.9 0 0 0 0-1.8z" clip-rule="evenodd"></path></svg>');function Kf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=m2();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",viewBox:"0 0 24 24",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:le}),we(),h(o),$(t,o)}var v2=Se('<svg><!><g fill="var(--btn-color, #fff)" fill-rule="evenodd" clip-rule="evenodd"><path d="M8.462 4h7.076c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.333v3.077c0 .948 0 1.713-.05 2.334-.053.64-.163 1.203-.43 1.725a4.4 4.4 0 0 1-1.922 1.923c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.923c-.267-.522-.377-1.086-.43-1.725C2 15.252 2 14.486 2 13.538v-3.077c0-.947 0-1.713.05-2.333.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.266 1.087-.376 1.726-.428C6.748 4 7.514 4 8.462 4M6.275 5.845c-.528.043-.83.123-1.055.238A2.6 2.6 0 0 0 4.083 7.22c-.115.227-.195.527-.238 1.055C3.8 8.813 3.8 9.504 3.8 10.5v3c0 .995 0 1.687.045 2.225.043.528.123.829.238 1.055a2.6 2.6 0 0 0 1.137 1.136c.226.116.527.196 1.055.24.538.043 1.23.044 2.225.044h7c.995 0 1.687 0 2.226-.045.527-.043.828-.123 1.054-.239a2.6 2.6 0 0 0 1.137-1.136c.115-.226.195-.527.238-1.055.044-.538.045-1.23.045-2.225v-3c0-.995 0-1.687-.045-2.226-.043-.528-.123-.828-.238-1.054a2.6 2.6 0 0 0-1.137-1.137c-.226-.115-.527-.195-1.055-.238-.538-.044-1.23-.045-2.225-.045h-7c-.995 0-1.687 0-2.226.045"></path><path d="M6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M6 11.1a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M14.5 14.9a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9M11 11.1a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8h-5.2a.9.9 0 0 1-.9-.9"></path></g></svg>');function yd(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=v2();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",viewBox:"0 0 24 24",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:le}),we(),h(o),$(t,o)}function qf(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"));Nt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(s)},get click(){return e.click},get ariaKeyShortCut(){return ds.KeyC},role:"button",children:(l,d)=>{var a=He(),u=me(a);{var f=p=>{Kf(p,{})},m=p=>{yd(p,{})};V(u,p=>{i()?p(f):p(m,!1)})}$(l,a)},$$slots:{default:!0}}),z()}var g2=M('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),h2=M('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),_2={hash:"svelte-sz9er7",code:".time.svelte-sz9er7 {display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px;color:var(--controls-time);}.time.mobile.svelte-sz9er7 {padding:0 0 0 8px;}.current.svelte-sz9er7 {position:relative;}.duration.svelte-sz9er7 {opacity:0.7;}.duration.svelte-sz9er7:before {content:' / ';white-space:pre;}"};function xd(t,e){U(e,!0),q(t,_2);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=It(),d=ae(!1),a=g(()=>_n(e.duration)),u=g(()=>_n(e.position));var f=h2();let m;var p=_(f),x=_(p,!0);h(p);var w=A(p,2);{var y=T=>{var C=g2(),E=_(C,!0);h(C),D(()=>ge(E,r(a))),$(T,C)};V(w,T=>{n()&&T(y)})}h(f),ys(f,()=>ll(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),at(f,T=>s(T),()=>s()),D(T=>{m=re(f,1,"time svelte-sz9er7",null,m,T),ge(x,r(u))},[()=>({mobile:i()})]),$(t,f),z()}import{noop as _u}from"@vkontakte/videoplayer-shared/es2015";var b2=Se('<svg xmlns="http://www.w3.org/2000/svg" class="icon svelte-v40k9i" aria-hidden="true"><g fill="var(--btn-color, #fff)" fill-rule="evenodd"><path d="M2 9.94595C2 9.41522 2.41461 8.97693 2.94453 8.94749L5.775 8.79025C6.24338 8.76422 6.6877 8.57439 7.03029 8.25394L11.3169 4.24433C11.9558 3.64667 13 4.09974 13 4.97464V19.0253C13 19.9002 11.9558 20.3533 11.3169 19.7556L7.03029 15.746C6.6877 15.4255 6.24337 15.2357 5.77499 15.2097L2.94453 15.0524C2.41461 15.023 2 14.5847 2 14.054V9.94595Z"></path><path class="cross svelte-v40k9i" d="M22.4636 8.26359C22.8151 7.91212 23.3849 7.91212 23.7364 8.26359C24.0879 8.61506 24.0879 9.18491 23.7364 9.53638L21.2728 12L23.7364 14.4636C24.0879 14.815 24.0879 15.3849 23.7364 15.7364C23.3849 16.0878 22.8151 16.0878 22.4636 15.7364L20 13.2728L17.5364 15.7364C17.1849 16.0878 16.6151 16.0878 16.2636 15.7364C15.9121 15.3849 15.9121 14.815 16.2636 14.4636L18.7272 12L16.2636 9.53638C15.9121 9.18491 15.9121 8.61506 16.2636 8.26359C16.6151 7.91212 17.1849 7.91212 17.5364 8.26359L20 10.7272L22.4636 8.26359Z"></path><path class="wave1 svelte-v40k9i" d="M15.7484 8.89758C16.0811 8.52829 16.6501 8.49862 17.0194 8.83132C17.8726 9.59994 18.4 10.7425 18.4 12C18.4 13.2575 17.8726 14.4001 17.0194 15.1687C16.6501 15.5014 16.0811 15.4717 15.7484 15.1024C15.4157 14.7331 15.4453 14.1641 15.8146 13.8314C16.2849 13.4077 16.6 12.753 16.6 12C16.6 11.2471 16.2849 10.5923 15.8146 10.1686C15.4453 9.83595 15.4157 9.26687 15.7484 8.89758Z"></path><path class="wave2 svelte-v40k9i" d="M18.8141 6.67424C19.1924 6.35184 19.7605 6.39716 20.0829 6.77547C21.2779 8.17774 22 10.0053 22 12C22 13.9946 21.2779 15.8222 20.0829 17.2245C19.7605 17.6028 19.1924 17.6481 18.8141 17.3257C18.4358 17.0033 18.3905 16.4353 18.7129 16.057C19.639 14.9702 20.2 13.5535 20.2 12C20.2 10.4464 19.639 9.02976 18.7129 7.943C18.3905 7.56469 18.4358 6.99665 18.8141 6.67424Z"></path></g></svg>'),$2={hash:"svelte-v40k9i",code:`.icon.svelte-v40k9i {display:block;width:24px;height:24px;}.icon.svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .wave1:where(.svelte-v40k9i),
|
|
167
|
+
.hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function Yf(t,e){F(e,!1),W(t,k2);let[i,o]=Be(),r=()=>S(l,"$data",i),s=_e(),{data:l,show:d}=s.ui.modals.hotKeyMap,a=()=>{d.set(!1)};Go(),Gf(t,{get title(){return r().title},onClose:a,children:(u,f)=>{var v=I2();Ci(v,5,()=>r().groups,({title:p,items:x})=>p,(p,x)=>{let w=()=>n(x).title,y=()=>n(x).items;var C=E2(),T=_(C),E=_(T,!0);g(T);var R=P(T,2);Ci(R,5,y,({description:A,value:I})=>I,(A,I)=>{let N=()=>n(I).description,H=()=>n(I).value;var B=T2(),z=_(B),X=_(z);_d(X,()=>i0(N())),g(z);var le=P(z,2),q=_(le,!0);g(le),g(B),D(()=>me(q,H())),b(A,B)}),g(R),g(C),D(()=>me(E,w())),b(p,C)}),g(v),b(u,v)},$$slots:{default:!0}}),U(),o()}import{noop as A0}from"@vkontakte/videoplayer-shared/es2015";import{ChromecastState as S0,PlaybackState as Uv}from"@vkontakte/videoplayer-core/es2015";import"@vkontakte/videoplayer-shared/es2015";var A2=M('<div class="pillow svelte-1oe0j8n"><!></div>'),P2={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 Zf(t,e){W(t,P2);var i=A2(),o=_(i);be(o,()=>{var r;return(r=e.children)!=null?r:ue}),g(i),b(t,i)}import{VideoQuality as Ud}from"@vkontakte/videoplayer-shared/es2015";var M2=Ie('<svg><!><path fill="currentColor" d="M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"></path><path fill="currentColor" fill-rule="evenodd" d="m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z" clip-rule="evenodd"></path></svg>');function Xf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=M2();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}var L2=Ie('<svg><!><path fill="currentColor" d="M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"></path><path fill="currentColor" fill-rule="evenodd" d="M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524" clip-rule="evenodd"></path></svg>');function Jf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=L2();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}var V2=Ie('<svg><!><path fill="currentColor" d="M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"></path></svg>');function ev(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=V2();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var R2=Ie('<svg><!><path fill="currentColor" d="M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"></path></svg>');function Hd(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=R2();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var O2=Ie('<svg><!><path fill="currentColor" d="M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"></path><path fill="currentColor" fill-rule="evenodd" d="M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02" clip-rule="evenodd"></path></svg>');function Fd(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=O2();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}var Ou=t=>{switch(t){case Ud.Q_720P:return ev;case Ud.Q_1080P:return Hd;case Ud.Q_1440P:return Fd;case Ud.Q_2160P:return Xf;case Ud.Q_4320P:return Jf}};var N2=Ie('<svg><!><path fill="var(--btn-color, #fff)" d="M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"></path></svg>');function tv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=N2();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var D2=Ie('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5" class="_full"></path></svg>');function iv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=D2();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}var B2=M('<div aria-hidden="true"><!> <!></div>'),H2={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 zd(t,e){F(e,!0),W(t,H2);let i=h(e,"isMobile",3,!1),o=h(e,"currentQuality",3,void 0),r=m(()=>Ou(o())),s=m(()=>!!n(r)&&[Hd,Fd].includes(n(r)));var l=Fe(),d=fe(l);{var a=f=>{tv(f,{})},u=f=>{var v=B2();let p;var x=_(v);{var w=T=>{Zf(T,{children:(E,R)=>{var A=Fe(),I=fe(A);Vi(I,()=>n(r),(N,H)=>{H(N,{})}),b(E,A)},$$slots:{default:!0}})};V(x,T=>{n(r)&&T(w)})}var y=P(x,2);let C=m(()=>n(r)?"settings-icon--labeled":"settings-icon");iv(y,{get"data-testid"(){return n(C)},fill:"var(--btn-color, #fff)"}),g(v),D(T=>p=re(v,1,"icon svelte-8t5w85",null,p,T),[()=>({triple:n(s)})]),b(f,v)};V(d,f=>{i()?f(a):f(u,!1)})}b(t,l),U()}var F2=M('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),U2={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function Ol(t,e){F(e,!0),W(t,U2);let[i,o]=Be(),r=()=>S(u,"$settingsMenuVisible",i),s=()=>S(p,"$isMobile",i),l=()=>S(a,"$currentQuality",i),d=_e(),a=d.state.currentQuality$,u=d.ui.settingsMenu.visible$,f=d.actions.internal.openSettingsMenu,v=d.actions.internal.closeSettingsMenu,p=d.ui.isMobile,x=d.ui.t,w=j(void 0);We(()=>{n(w)&&Pt(()=>{e.ref$.set(n(w))})});let y=x("aria_label_settings");function C(E){return yt(this,null,function*(){let R=ea(E);r()?v():f(R,Ao)})}let T=m(()=>r()?"opened":"");zt(t,{get className(){return n(T)},testId:"btn-settings",click:C,get ariaLabel(){return y},get ariaExpanded(){return r()},get ref(){return n(w)},set ref(E){O(w,E,!0)},children:(E,R)=>{var A=F2(),I=_(A);zd(I,{get isMobile(){return s()},get currentQuality(){return l()}}),g(A),b(E,A)},$$slots:{default:!0}}),U(),o()}var z2=Ie('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.538 4c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.334v3.076c0 .948 0 1.714-.05 2.334-.053.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.922c-.267-.523-.377-1.087-.43-1.726C2 15.252 2 14.486 2 13.538v-3.076c0-.948 0-1.714.05-2.334.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.267 1.087-.377 1.726-.43C6.748 4 7.514 4 8.462 4zM6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9m.9-4.7a.9.9 0 1 0 0 1.8h1.7a.9.9 0 1 0 0-1.8zm7.6 4.7a.9.9 0 0 1 .9-.9h1.7a.9.9 0 0 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9m-2.6-4.7a.9.9 0 1 0 0 1.8h5.2a.9.9 0 0 0 0-1.8z" clip-rule="evenodd"></path></svg>');function ov(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=z2();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",viewBox:"0 0 24 24",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var W2=Ie('<svg><!><g fill="var(--btn-color, #fff)" fill-rule="evenodd" clip-rule="evenodd"><path d="M8.462 4h7.076c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.333v3.077c0 .948 0 1.713-.05 2.334-.053.64-.163 1.203-.43 1.725a4.4 4.4 0 0 1-1.922 1.923c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.923c-.267-.522-.377-1.086-.43-1.725C2 15.252 2 14.486 2 13.538v-3.077c0-.947 0-1.713.05-2.333.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.266 1.087-.376 1.726-.428C6.748 4 7.514 4 8.462 4M6.275 5.845c-.528.043-.83.123-1.055.238A2.6 2.6 0 0 0 4.083 7.22c-.115.227-.195.527-.238 1.055C3.8 8.813 3.8 9.504 3.8 10.5v3c0 .995 0 1.687.045 2.225.043.528.123.829.238 1.055a2.6 2.6 0 0 0 1.137 1.136c.226.116.527.196 1.055.24.538.043 1.23.044 2.225.044h7c.995 0 1.687 0 2.226-.045.527-.043.828-.123 1.054-.239a2.6 2.6 0 0 0 1.137-1.136c.115-.226.195-.527.238-1.055.044-.538.045-1.23.045-2.225v-3c0-.995 0-1.687-.045-2.226-.043-.528-.123-.828-.238-1.054a2.6 2.6 0 0 0-1.137-1.137c-.226-.115-.527-.195-1.055-.238-.538-.044-1.23-.045-2.225-.045h-7c-.995 0-1.687 0-2.226.045"></path><path d="M6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M6 11.1a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M14.5 14.9a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9M11 11.1a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8h-5.2a.9.9 0 0 1-.9-.9"></path></g></svg>');function Wd(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=W2();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",viewBox:"0 0 24 24",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}function nv(t,e){F(e,!0);let i=h(e,"isSubtitlesEnabled",3,!1),r=_e().ui.t,s=m(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));zt(t,{testId:"btn-Subtitles",get ariaLabel(){return n(s)},get click(){return e.click},get ariaKeyShortCut(){return ds.KeyC},role:"button",children:(l,d)=>{var a=Fe(),u=fe(a);{var f=p=>{ov(p,{})},v=p=>{Wd(p,{})};V(u,p=>{i()?p(f):p(v,!1)})}b(l,a)},$$slots:{default:!0}}),U()}var K2=M('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),q2=M('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),Q2={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 Kd(t,e){F(e,!0),W(t,Q2);let i=h(e,"isMobile",3,!1),o=h(e,"isHidden",3,!1),r=h(e,"showDuration",3,!0),s=h(e,"ref",15),l=Rt(),d=ae(!1),a=m(()=>Yo(e.duration)),u=m(()=>Yo(e.position));var f=q2();let v;var p=_(f),x=_(p,!0);g(p);var w=P(p,2);{var y=C=>{var T=K2(),E=_(T,!0);g(T),D(()=>me(E,n(a))),b(C,T)};V(w,C=>{r()&&C(y)})}g(f),Es(f,()=>Al(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),at(f,C=>s(C),()=>s()),D(C=>{v=re(f,1,"time svelte-sz9er7",null,v,C),me(x,n(u))},[()=>({mobile:i()})]),b(t,f),U()}import{noop as Nu}from"@vkontakte/videoplayer-shared/es2015";var j2=Ie('<svg xmlns="http://www.w3.org/2000/svg" class="icon svelte-v40k9i" aria-hidden="true"><g fill="var(--btn-color, #fff)" fill-rule="evenodd"><path d="M2 9.94595C2 9.41522 2.41461 8.97693 2.94453 8.94749L5.775 8.79025C6.24338 8.76422 6.6877 8.57439 7.03029 8.25394L11.3169 4.24433C11.9558 3.64667 13 4.09974 13 4.97464V19.0253C13 19.9002 11.9558 20.3533 11.3169 19.7556L7.03029 15.746C6.6877 15.4255 6.24337 15.2357 5.77499 15.2097L2.94453 15.0524C2.41461 15.023 2 14.5847 2 14.054V9.94595Z"></path><path class="cross svelte-v40k9i" d="M22.4636 8.26359C22.8151 7.91212 23.3849 7.91212 23.7364 8.26359C24.0879 8.61506 24.0879 9.18491 23.7364 9.53638L21.2728 12L23.7364 14.4636C24.0879 14.815 24.0879 15.3849 23.7364 15.7364C23.3849 16.0878 22.8151 16.0878 22.4636 15.7364L20 13.2728L17.5364 15.7364C17.1849 16.0878 16.6151 16.0878 16.2636 15.7364C15.9121 15.3849 15.9121 14.815 16.2636 14.4636L18.7272 12L16.2636 9.53638C15.9121 9.18491 15.9121 8.61506 16.2636 8.26359C16.6151 7.91212 17.1849 7.91212 17.5364 8.26359L20 10.7272L22.4636 8.26359Z"></path><path class="wave1 svelte-v40k9i" d="M15.7484 8.89758C16.0811 8.52829 16.6501 8.49862 17.0194 8.83132C17.8726 9.59994 18.4 10.7425 18.4 12C18.4 13.2575 17.8726 14.4001 17.0194 15.1687C16.6501 15.5014 16.0811 15.4717 15.7484 15.1024C15.4157 14.7331 15.4453 14.1641 15.8146 13.8314C16.2849 13.4077 16.6 12.753 16.6 12C16.6 11.2471 16.2849 10.5923 15.8146 10.1686C15.4453 9.83595 15.4157 9.26687 15.7484 8.89758Z"></path><path class="wave2 svelte-v40k9i" d="M18.8141 6.67424C19.1924 6.35184 19.7605 6.39716 20.0829 6.77547C21.2779 8.17774 22 10.0053 22 12C22 13.9946 21.2779 15.8222 20.0829 17.2245C19.7605 17.6028 19.1924 17.6481 18.8141 17.3257C18.4358 17.0033 18.3905 16.4353 18.7129 16.057C19.639 14.9702 20.2 13.5535 20.2 12C20.2 10.4464 19.639 9.02976 18.7129 7.943C18.3905 7.56469 18.4358 6.99665 18.8141 6.67424Z"></path></g></svg>'),G2={hash:"svelte-v40k9i",code:`.icon.svelte-v40k9i {display:block;width:24px;height:24px;}.icon.svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .wave1:where(.svelte-v40k9i),
|
|
168
168
|
.icon[data-value='off'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:visible;}.icon[data-value='mid'].svelte-v40k9i .wave2:where(.svelte-v40k9i),
|
|
169
|
-
.icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function js(t,e){q(t,$2);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=b2();D(()=>{var d;Ue(l,"data-value",r(s)),Ue(l,"data-testid",`volume-${(d=r(s))!=null?d:""}-icon`)}),$(t,l)}import{isNonNullable as R1,noop as On}from"@vkontakte/videoplayer-shared/es2015";import{noop as Gf}from"@vkontakte/videoplayer-shared/es2015";import{noop as x2}from"@vkontakte/videoplayer-shared/es2015";var y2=M('<div class="overlay"><!></div>');function Qf(t,e){U(e,!0);let[i,o]=De(),n=()=>S(l,"$overlayContainer$",i),l=Te().ui.overlayContainer$,d=J(void 0),a=p=>{!p||!r(d)||!p.contains(r(d))||p.removeChild(r(d))},u=p=>{!p||!r(d)||p.contains(r(d))||p.appendChild(r(d))};Qe(()=>{u(n())}),Mt(()=>(u(n()),()=>a(n())));var f=y2(),m=_(f);he(m,()=>{var p;return(p=e.children)!=null?p:le}),h(f),at(f,p=>N(d,p),()=>r(d)),$(t,f),z(),o()}var w2=M('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),S2=M("<div><!></div> <!>",1),C2={hash:"svelte-hxlyne",code:'.tooltip-wrapper.svelte-hxlyne {display:flex;flex-direction:column;min-width:0;}.full-width.svelte-hxlyne {width:100%;}.tooltip.svelte-hxlyne {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0;}.content.svelte-hxlyne {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.tooltip-pointer.svelte-hxlyne {position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;}'};function xa(t,e){U(e,!0),q(t,C2);let[i,o]=De(),n=()=>S(Z,"$overlayContainer$",i),s=()=>S(W,"$containerSize",i),l=v(e,"isMobile",3,!1),d=v(e,"content",3,""),a=v(e,"active",15,!1),u=v(e,"translateX",3,0),f=v(e,"translateY",3,0),m=v(e,"isFullWidthWrapper",3,!1),p=v(e,"maxTooltipWidth",3,void 0),x=v(e,"placement",3,"top"),w=v(e,"onVisibilityChange",3,x2),y=5,T=J(void 0),C=J(void 0),E,R=J(0),I=J(0),k=J(0),B=J(0),F=It(),H=Te(),W=H.ui.playerSize,Z=H.ui.overlayContainer$;Qe(()=>{St(()=>{w()(a())})});let ne=H.getLogger().createComponentLog("Tooltip component"),j=()=>{if(!n()||!r(C)||!r(T))return;N(I,y);let te=n().getBoundingClientRect(),Ce=r(T).getBoundingClientRect(),Ee=Ce.width,qe=r(C).clientWidth,it=s().width,ft=(Ee-qe)/2,dt=Ce.left+u()-te.left,gt=dt+ft,ot=Ce.top+f()-te.top,Ut=qe/2-y,Qt=gt<8,Yt=gt+qe>it-8;Qt&&(gt=8,Ut=dt+Ce.width/2-2.5*y),Yt&&(gt=it-8-qe,Ut=Ce.left-te.left+Ce.width/2-gt-y),N(k,gt,!0),N(B,ot),N(R,Ut,!0)},_e=()=>{!n()||!r(C)||!r(T)||N(I,-y)},ee=()=>{if(!n()||!r(C)||!r(T))return;N(R,y);let te=n().getBoundingClientRect(),Ce=r(T).getBoundingClientRect(),Ee=Ce.height,qe=r(C).clientHeight,it=(Ee-qe)/2+qe,ft=Ce.left+u()-te.left-r(C).clientWidth,dt=2,gt=ft-y;gt<8&&(gt=8);let Ut=Ce.top+f()-te.top+it,Qt=dt-it/2,Yt=dt-y;N(k,gt,!0),N(B,Ut),N(I,Qt),N(R,Yt)},fe=()=>{!n()||!r(C)||!r(T)||N(R,-y)},ve=()=>{switch(x()){case"top":j();break;case"bottom":_e();break;case"left":ee();break;default:fe()}},pe=()=>{try{if(!n()||!r(T))return;ve(),a(!0)}catch(te){ne({message:String(te)})}},Me=()=>{a(!1)},Ve=()=>{r(C)&&(E||(E=window.setTimeout(pe,F.controls.hideTimeoutTooltips)),a()&&pe())},de=()=>{Me(),window.clearTimeout(E),E=void 0},Ne=(te,Ce,Ee)=>{let qe="";switch(x()){case"top":qe=`transform: translate(${te}px, ${Ce}px);`;break;case"bottom":qe=`transform: translate(${te}px, ${Ce}px); top: auto; bottom: 100%;`;break;case"left":qe=`transform: translate(${te}px, ${Ce}px); left: 0; right: auto;`;break;default:qe=`transform: translate(${te}px, ${Ce}px);`}return qe+=` max-width: ${p()===void 0?"auto":`${p()}px`};`,qe+=` opacity: ${Ee?1:0}; visibility: ${Ee?"visible":"hidden"}`,qe},se=(te,Ce)=>{let Ee="";switch(x()){case"top":Ee=`transform: translate(${te}px, ${Ce}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ee=`transform: translate(${te}px, ${Ce}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ee=`transform: translate(${te}px, ${Ce}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ee=`transform: translate(${te}px, ${Ce}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ee},P=g(()=>Ne(r(k),r(B),a())),nt=g(()=>se(r(R),r(I)));Mt(ve),on(()=>window.clearTimeout(E));var Be=S2(),G=me(Be);let ie;G.__mousemove=Ve,G.__mousedown=de,G.__mouseup=function(...te){var Ce;(Ce=e.disableMouseupTooltipShow?void 0:Ve)==null||Ce.apply(this,te)};var Oe=_(G);he(Oe,()=>{var te;return(te=e.children)!=null?te:le}),h(G),at(G,te=>N(T,te),()=>r(T));var et=A(G,2);{var xe=te=>{Qf(te,{children:(Ce,Ee)=>{var qe=w2(),it=_(qe),ft=_(it,!0);h(it);var dt=A(it,2);h(qe),at(qe,gt=>N(C,gt),()=>r(C)),D(()=>{lt(qe,r(P)),ge(ft,d()),lt(dt,r(nt))}),$(Ce,qe)},$$slots:{default:!0}})};V(et,te=>{d()&&!l()&&te(xe)})}D(te=>ie=re(G,1,"tooltip-wrapper svelte-hxlyne",null,ie,te),[()=>({"full-width":m()})]),Et("mouseenter",G,Ve),Et("mouseleave",G,de),$(t,Be),z(),o()}ct(["mousemove","mousedown","mouseup"]);var V1=t=>{t.stopPropagation()},T2=M("<div><!></div>"),E2={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),q(t,E2);let[i,o]=De(),n=()=>S(u,"$isGraphOpened$",i),s=()=>S(a,"$isMobile",i),l=Te(),d=fo(),a=l.ui.isMobile,u=d.graphIsOpened$,f=l.ui.t,m=v(e,"className",3,""),p=v(e,"disabled",3,!1),x=v(e,"hasTooltip",3,!0),w=v(e,"ref",15,void 0),y=v(e,"width",15,void 0),T=v(e,"isFullWidthTooltip",3,!0),C=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")),k=v(e,"isAriaHidden",3,!1),B=v(e,"onTooltipVisibilityChange",3,Gf),F=v(e,"initialTranslateXPx",3,0),H=v(e,"initialTranslateYPx",19,()=>-18),W=v(e,"mouseEnter",3,Gf),Z=v(e,"mouseLeave",3,Gf),ne=g(()=>p()?n()?f("tooltip_disabled_when_graph_on"):I():C());var j=T2();j.__pointerdown=[V1],j.__click=[V1];var _e=_(j);{var ee=ve=>{xa(ve,{get content(){return r(ne)},get translateX(){return F()},get translateY(){return H()},get isFullWidthWrapper(){return T()},get active(){return E()},get placement(){return R()},get onVisibilityChange(){return B()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},children:(pe,Me)=>{var Ve=He(),de=me(Ve);he(de,()=>{var Ne;return(Ne=e.children)!=null?Ne:le}),$(pe,Ve)},$$slots:{default:!0}})},fe=ve=>{var pe=He(),Me=me(pe);he(Me,()=>{var Ve;return(Ve=e.children)!=null?Ve:le}),$(ve,pe)};V(_e,ve=>{x()&&r(ne)&&!s()?ve(ee):ve(fe,!1)})}h(j),at(j,ve=>w(ve),()=>w()),D(()=>{var ve;re(j,1,`btn-container ${(ve=m())!=null?ve:""}`,"svelte-p9r045"),Ue(j,"aria-hidden",k()||null)}),Et("mouseenter",j,function(...ve){var pe;(pe=W())==null||pe.apply(this,ve)}),Et("mouseleave",j,function(...ve){var pe;(pe=Z())==null||pe.apply(this,ve)}),cr(j,"clientWidth",y),$(t,j),z(),o()}ct(["pointerdown","click"]);var I2=Se('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect width="20" height="20" rx="10" fill="var(--btn-color, #fff)"></rect><path d="M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"></path></svg>');function wd(t,e){"use strict";var i=I2(),o=_(i),n=A(o);h(i),D(()=>{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 k2=M("<div><!></div>"),A2={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 jf(t,e){U(e,!0),q(t,A2);let o=Te().ui.t,n=J(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=k2();let u;var f=_(a);let m=g(()=>!!e.videoEpisode.completed);wd(f,{get completed(){return r(m)}}),h(a),D(p=>{u=re(a,1,"interactive-episode-icon svelte-bklhpe",null,u,p),lt(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),cr(a,"clientWidth",p=>N(n,p)),$(l,a)},$$slots:{default:!0}}),z()}var P2=M('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),L2=M('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),M2={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,
|
|
170
|
-
.video-episode-loaded.svelte-
|
|
171
|
-
.video-episode-filled.svelte-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
.slider.square.svelte-
|
|
175
|
-
.slider.square.svelte-
|
|
176
|
-
.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {transform:scale(1.3);}.slider-vertical.svelte-1tpemng {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-1tpemng {cursor:default;opacity:0.4;}`};function wa(t,e){U(e,!0),q(t,U2);let i=v(e,"ref",15,void 0),o=v(e,"className",3,""),n=v(e,"testId",3,void 0),s=v(e,"isHidden",3,!1),l=v(e,"isVertical",3,!1),d=v(e,"isActiveLive",3,!1),a=v(e,"isMobile",3,!1),u=v(e,"squareBorders",3,!1),f=v(e,"videoEpisodes",19,()=>[]),m=v(e,"withWheelHandler",3,!1),p=v(e,"isInteractive",3,!1),x=v(e,"disabled",3,!1),w=v(e,"hideHandel",3,!1),y=v(e,"onPointerDown",3,On),T=v(e,"onHandleMove",3,On),C=v(e,"onPointerUp",3,On),E=v(e,"onPointerEnter",3,On),R=v(e,"onPointerMove",3,On),I=v(e,"onPointerLeave",3,On),k=v(e,"onMouseEnter",3,On),B=v(e,"onMouseLeave",3,On),F=v(e,"onWheelUp",3,On),H=v(e,"onWheelDown",3,On),W=v(e,"onWheelLeft",3,On),Z=v(e,"onWheelRight",3,On),ne=v(e,"onDisabledClick",3,On),j=v(e,"loadedProgress",3,0),_e=v(e,"filledProgress",3,0),ee=v(e,"handleProgress",3,0),fe=v(e,"ariaLabel",3,""),ve=v(e,"ariaValueMin",3,void 0),pe=v(e,"ariaValueMax",3,void 0),Me=v(e,"ariaValueNow",3,void 0),Ve=v(e,"ariaValueText",3,""),de=v(e,"onContextMenu",3,On),Ne=It(),se=J(void 0),P=J(!1),nt=g(()=>{var ce;return(ce=pe())!=null?ce:0}),Be=g(()=>{var ce;return R1(f())&&((ce=f()[f().length-1])==null?void 0:ce.time)<r(nt)}),G=g(()=>R1(f())&&f().length&&r(Be)&&r(nt)?qe(j()*100,_e()*100):[]);function ie(ce){if(ce.preventDefault(),i()&&N(se,i().getBoundingClientRect(),!0),x())return;let Ge=Ce(ce.clientX,ce.clientY),ze=Ee(ce.clientX);E()(Ge,ze,r(se).width)}function Oe(ce){ce.preventDefault(),!x()&&I()()}function et(){k()()}function xe(){B()()}function te(ce){x()||m()&&(ce.preventDefault(),ce.deltaY<0?F()():ce.deltaY>0?H()():ce.deltaX>0?Z()():W()())}function Ce(ce,Ge){return l()?Math.max(0,Math.min(1,(r(se).height-(Ge-r(se).top))/r(se).height)):Math.min(Math.max(ce-r(se).x,0),r(se).width)/r(se).width}function Ee(ce){return Math.min(Math.max(ce-r(se).x,0),r(se).width)}function qe(ce,Ge){let ze=Ne.features.episodesClustering&&!p()?Ne.episodeMinWidthPc:0,ue=[],Fe=f()[0].time/r(nt)*100,$e=0,Xe=0;for(let Vt=1;Vt<f().length;Vt++)$e=f()[Vt].time/r(nt)*100,$e-Fe>ze&&(ue.push({from:Fe,width:Math.max(0,$e-Fe),loadedWidth:Math.max(0,Math.min($e,ce)-Fe),filledWidth:Math.max(0,Math.min($e,Ge)-Fe),interactive:f()[Vt-1].interactive,completed:f()[Vt-1].completed}),Fe=f()[Vt].time/r(nt)*100,Xe++);let Lt={from:Fe,width:Math.max(0,100-Fe),loadedWidth:Math.max(0,Math.min(ce,100)-Fe),filledWidth:Math.max(0,Math.min(Ge,100)-Fe),interactive:f()[Xe].interactive,completed:f()[Xe].completed};100-Fe<ze?(Xe-=1,ue[Xe].width+=100-Fe,ue[Xe].loadedWidth+=Math.max(0,Math.min(ce,100)-Fe),ue[Xe].filledWidth+=Math.max(0,Math.min(Ge,100)-Fe)):ue[Xe]=Lt;let yt=f()[0].time;if(yt!==0){let Vt=yt/r(nt)*100;ue.unshift({from:0,width:Vt,loadedWidth:Math.min(Vt,ce),filledWidth:Math.min(Vt,Ge)})}return ue}function it(ce){return Math.max(0,Math.min(100,ce*100))}var ft=H2(),dt=me(ft);{var gt=ce=>{var Ge=D2();let ze;Pi(Ge,21,()=>r(G),ue=>ue.from,(ue,Fe)=>{var $e=He(),Xe=me($e);{var Lt=yt=>{jf(yt,{get videoEpisode(){return r(Fe)},get disabled(){return x()}})};V(Xe,yt=>{r(Fe).interactive&&yt(Lt)})}$(ue,$e)}),h(Ge),D(ue=>ze=re(Ge,1,"interactive-icons svelte-1tpemng",null,ze,ue),[()=>({mobile:a(),hidden:a()&&!r(P)})]),$(ce,Ge)};V(dt,ce=>{p()&&ce(gt)})}var ot=A(dt,2);let Ut;ot.__pointerdown=[V2,i,se,x,P,Ce,y],ot.__pointermove=[R2,x,Ce,Ee,R,se,P,T],ot.__pointerup=[O2,x,P,Ce,C],ot.__click=[N2,x,ne,Ce],ot.__contextmenu=[B2,Ce,x,ne,P,de];var Qt=_(ot);{var Yt=ce=>{Yf(ce,{get videoEpisodes(){return r(G)},get disabled(){return x()},get isMobile(){return a()}})},Gt=ce=>{var Ge=F2(),ze=_(Ge),ue=A(ze,2);let Fe;h(Ge),D(($e,Xe,Lt)=>{lt(ze,$e),Fe=re(ue,1,"filled svelte-1tpemng",null,Fe,Xe),lt(ue,Lt)},[()=>`transform: translateX(${it(j())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${it(_e())}%);`]),$(ce,Ge)};V(Qt,ce=>{r(G).length?ce(Yt):ce(Gt,!1)})}var Ae=A(Qt,2);let jt;var be=_(Ae);let Ie;h(Ae),h(ot),at(ot,ce=>i(ce),()=>i()),D((ce,Ge,ze,ue)=>{var Fe,$e;Ut=re(ot,1,`slider ${(Fe=o())!=null?Fe:""}`,"svelte-1tpemng",Ut,ce),Ue(ot,"aria-label",fe()),Ue(ot,"aria-valuemin",ve()),Ue(ot,"aria-valuemax",pe()),Ue(ot,"aria-valuenow",Me()),Ue(ot,"aria-valuetext",Ve()),Ue(ot,"data-testid",($e=n())!=null?$e:null),jt=re(Ae,1,"handleWrap svelte-1tpemng",null,jt,Ge),lt(Ae,ze),Ie=re(be,1,"handle svelte-1tpemng",null,Ie,ue)},[()=>({disabled:x(),"slider-dragging":r(P),hidden:s(),"slider-vertical":l(),"no-handle":w(),square:u()}),()=>({hidden:w()}),()=>`transform: translateX(${it(ee())}%);`,()=>({"active-live":d()})]),Et("pointerenter",ot,ie),Et("pointerleave",ot,Oe),Et("mouseenter",ot,et),Et("mouseleave",ot,xe),Et("wheel",ot,te),$(t,ft),z()}ct(["pointerdown","pointermove","pointerup","click","contextmenu"]);var Ji=(t,e)=>pa[t]>=pa[e],O1=(t,e)=>pa[t]<pa[e],Cs=(t,e)=>pa[t]<=pa[e],N1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var W2=M("<div><!></div>"),K2=M("<div><!> <!></div>"),q2={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 Zf(t,e){var te,Ce;U(e,!0),q(t,q2);let[i,o]=De(),n=()=>S(E,"$isAudioAvailable$",i),s=()=>S(m,"$muted$",i),l=()=>S(f,"$volume$",i),d=()=>S(y,"$currentGridType$",i),a=Te(),u=It(),f=a.state.volume$,m=a.state.muted$,{setVolume:p,startVolumeChanging:x,stopVolumeChanging:w}=a.actions.internal,y=a.ui.currentGridType$,T=(te=a.callbacks)==null?void 0:te.onAudioDoesNotExistHint,C=(Ce=a.callbacks)==null?void 0:Ce.onAudioDisabledHint,E=a.state.isAudioAvailable$,R=a.state.isAudioDisabled,I=a.ui.t,k=J(!1),B,F=g(()=>e.isAds||n()),H=g(()=>!r(F)||s()||l()===0),W=g(()=>Cs(d(),"s")),Z=g(()=>r(W)?"":r(H)?!n()||R?I("tooltip_sound_unavailable"):I("tooltip_volume"):I("tooltip_volume_muted")),ne=g(()=>r(H)?I("tooltip_volume"):I("tooltip_volume_muted")),j=g(()=>r(H)?0:l()),_e=!1,ee=g(()=>e.isAds?!1:R?!C:n()?!1:!T);function fe(Ee){x(),p(Ee)}function ve(){mu(a,l(),u.controls.volumeStepWheel)}function pe(){vu(a,l(),u.controls.volumeStepWheel)}function Me(Ee){p(Ee)}function Ve(Ee){p(Ee),w()}function de(){_e=!0}function Ne(){_e=!1,nt()}function se(){clearTimeout(B),N(k,!0)}function P(){nt()}function nt(){B=window.setTimeout(()=>{_e||N(k,!1)},u.controls.volumeBarTimeout)}function Be(Ee){Ee.preventDefault(),Ee.deltaY<0?ve():Ee.deltaY>0&&pe()}var G=K2();let ie;var Oe=_(G);xa(Oe,{get content(){return r(Z)},translateY:-18,children:(Ee,qe)=>{let it=g(()=>r(W)?"btn-volume-vertical":"btn-volume-horizontal");Nt(Ee,{className:"btn-full-opacity",get disabled(){return r(ee)},get testId(){return r(it)},get ariaLabel(){return r(ne)},get click(){return e.click},get ariaKeyShortCut(){return ds.KeyM},role:"button",children:(ft,dt)=>{js(ft,{get volume(){return l()},get muted(){return r(H)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var et=A(Oe,2);{var xe=Ee=>{var qe=W2();let it;var ft=_(qe);let dt=g(()=>r(W)?"volumeBar-slider-vertical":""),gt=g(()=>r(W)&&!r(k)),ot=g(()=>r(W)?de:_u),Ut=g(()=>r(W)?Ne:_u),Qt=g(()=>Math.round(r(j)*100)),Yt=g(()=>`${Math.round(r(j)*100)}%`),Gt=g(()=>r(W)?"volume-slider-vertical":"volume-slider");wa(ft,{get className(){return r(dt)},get isHidden(){return r(gt)},get isVertical(){return r(W)},withWheelHandler:!0,onWheelUp:ve,onWheelDown:pe,onPointerDown:fe,onHandleMove:Me,onPointerUp:Ve,get onPointerEnter(){return r(ot)},get onPointerLeave(){return r(Ut)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return r(Qt)},get ariaValueText(){return r(Yt)},get filledProgress(){return r(j)},get handleProgress(){return r(j)},get testId(){return r(Gt)}}),h(qe),D(Ae=>it=re(qe,1,"volumeBar svelte-1auih1j",null,it,Ae),[()=>({"volumeBar-vertical":r(W)})]),$(Ee,qe)};V(et,Ee=>{r(F)&&Ee(xe)})}h(G),D(Ee=>ie=re(G,1,"volumeBar-container svelte-1auih1j",null,ie,Ee),[()=>({vertical:r(W)})]),Et("mouseenter",G,function(...Ee){var qe;(qe=r(W)?se:_u)==null||qe.apply(this,Ee)}),Et("mouseleave",G,function(...Ee){var qe;(qe=r(W)?P:_u)==null||qe.apply(this,Ee)}),Et("wheel",G,Be),$(t,G),z(),o()}import{noop as j2}from"@vkontakte/videoplayer-shared/es2015";var Q2=Se('<svg><!><g fill-rule="evenodd"><path d="M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z" class="_exit"></path><path d="M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z" class="_enter"></path></g></svg>');function Xf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Q2();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",viewBox:"0 0 24 24",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:le}),we(),h(o),$(t,o)}var G2={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
|
|
177
|
-
|
|
169
|
+
.icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function ia(t,e){W(t,G2);let i=h(e,"volume",3,1),o=h(e,"muted",3,!1),r=(d,a)=>a?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",s=m(()=>r(i(),o()));var l=j2();D(()=>{var d;Ke(l,"data-value",n(s)),Ke(l,"data-testid",`volume-${(d=n(s))!=null?d:""}-icon`)}),b(t,l)}import{isNonNullable as n0,noop as Un}from"@vkontakte/videoplayer-shared/es2015";import{noop as sv}from"@vkontakte/videoplayer-shared/es2015";import{noop as Z2}from"@vkontakte/videoplayer-shared/es2015";var Y2=M('<div class="overlay"><!></div>');function rv(t,e){F(e,!0);let[i,o]=Be(),r=()=>S(l,"$overlayContainer$",i),l=_e().ui.overlayContainer$,d=j(void 0),a=p=>{!p||!n(d)||!p.contains(n(d))||p.removeChild(n(d))},u=p=>{!p||!n(d)||p.contains(n(d))||p.appendChild(n(d))};We(()=>{u(r())}),Nt(()=>(u(r()),()=>a(r())));var f=Y2(),v=_(f);be(v,()=>{var p;return(p=e.children)!=null?p:ue}),g(f),at(f,p=>O(d,p),()=>n(d)),b(t,f),U(),o()}var X2=M('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),J2=M("<div><!></div> <!>",1),ey={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 Na(t,e){F(e,!0),W(t,ey);let[i,o]=Be(),r=()=>S(X,"$overlayContainer$",i),s=()=>S(z,"$containerSize",i),l=h(e,"isMobile",3,!1),d=h(e,"content",3,""),a=h(e,"active",15,!1),u=h(e,"translateX",3,0),f=h(e,"translateY",3,0),v=h(e,"isFullWidthWrapper",3,!1),p=h(e,"maxTooltipWidth",3,void 0),x=h(e,"placement",3,"top"),w=h(e,"onVisibilityChange",3,Z2),y=5,C=j(void 0),T=j(void 0),E,R=j(0),A=j(0),I=j(0),N=j(0),H=Rt(),B=_e(),z=B.ui.playerSize,X=B.ui.overlayContainer$;We(()=>{Pt(()=>{w()(a())})});let le=B.getLogger().createComponentLog("Tooltip component"),q=()=>{if(!r()||!n(T)||!n(C))return;O(A,y);let ee=r().getBoundingClientRect(),ke=n(C).getBoundingClientRect(),he=ke.width,Ue=n(T).clientWidth,Xe=s().width,Ge=(he-Ue)/2,ct=ke.left+u()-ee.left,et=ct+Ge,Bt=ke.top+f()-ee.top,rt=Ue/2-y,Dt=et<8,Qt=et+Ue>Xe-8;Dt&&(et=8,rt=ct+ke.width/2-2.5*y),Qt&&(et=Xe-8-Ue,rt=ke.left-ee.left+ke.width/2-et-y),O(I,et,!0),O(N,Bt),O(R,rt,!0)},ce=()=>{!r()||!n(T)||!n(C)||O(A,-y)},J=()=>{if(!r()||!n(T)||!n(C))return;O(R,y);let ee=r().getBoundingClientRect(),ke=n(C).getBoundingClientRect(),he=ke.height,Ue=n(T).clientHeight,Xe=(he-Ue)/2+Ue,Ge=ke.left+u()-ee.left-n(T).clientWidth,ct=2,et=Ge-y;et<8&&(et=8);let rt=ke.top+f()-ee.top+Xe,Dt=ct-Xe/2,Qt=ct-y;O(I,et,!0),O(N,rt),O(A,Dt),O(R,Qt)},ve=()=>{!r()||!n(T)||!n(C)||O(R,-y)},se=()=>{switch(x()){case"top":q();break;case"bottom":ce();break;case"left":J();break;default:ve()}},de=()=>{try{if(!r()||!n(C))return;se(),a(!0)}catch(ee){le({message:String(ee)})}},Le=()=>{a(!1)},Se=()=>{n(T)&&(E||(E=window.setTimeout(de,H.controls.hideTimeoutTooltips)),a()&&de())},ie=()=>{Le(),window.clearTimeout(E),E=void 0},Ne=(ee,ke,he)=>{let Ue="";switch(x()){case"top":Ue=`transform: translate(${ee}px, ${ke}px);`;break;case"bottom":Ue=`transform: translate(${ee}px, ${ke}px); top: auto; bottom: 100%;`;break;case"left":Ue=`transform: translate(${ee}px, ${ke}px); left: 0; right: auto;`;break;default:Ue=`transform: translate(${ee}px, ${ke}px);`}return Ue+=` max-width: ${p()===void 0?"auto":`${p()}px`};`,Ue+=` opacity: ${he?1:0}; visibility: ${he?"visible":"hidden"}`,Ue},pe=(ee,ke)=>{let he="";switch(x()){case"top":he=`transform: translate(${ee}px, ${ke}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":he=`transform: translate(${ee}px, ${ke}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":he=`transform: translate(${ee}px, ${ke}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:he=`transform: translate(${ee}px, ${ke}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return he},k=m(()=>Ne(n(I),n(N),a())),qe=m(()=>pe(n(R),n(A)));Nt(se),ln(()=>window.clearTimeout(E));var Re=J2(),Z=fe(Re);let ne;Z.__mousemove=Se,Z.__mousedown=ie,Z.__mouseup=function(...ee){var ke;(ke=e.disableMouseupTooltipShow?void 0:Se)==null||ke.apply(this,ee)};var He=_(Z);be(He,()=>{var ee;return(ee=e.children)!=null?ee:ue}),g(Z),at(Z,ee=>O(C,ee),()=>n(C));var Ze=P(Z,2);{var ge=ee=>{rv(ee,{children:(ke,he)=>{var Ue=X2(),Xe=_(Ue),Ge=_(Xe,!0);g(Xe);var ct=P(Xe,2);g(Ue),at(Ue,et=>O(T,et),()=>n(T)),D(()=>{Je(Ue,n(k)),me(Ge,d()),Je(ct,n(qe))}),b(ke,Ue)},$$slots:{default:!0}})};V(Ze,ee=>{d()&&!l()&&ee(ge)})}D(ee=>ne=re(Z,1,"tooltip-wrapper svelte-hxlyne",null,ne,ee),[()=>({"full-width":v()})]),Ct("mouseenter",Z,Se),Ct("mouseleave",Z,ie),b(t,Re),U(),o()}dt(["mousemove","mousedown","mouseup"]);var o0=t=>{t.stopPropagation()},ty=M("<div><!></div>"),iy={hash:"svelte-p9r045",code:".btn-container.svelte-p9r045 {position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent;}.w-max.svelte-p9r045 {width:100%;min-width:0;}"};function Mo(t,e){F(e,!0),W(t,iy);let[i,o]=Be(),r=()=>S(u,"$isGraphOpened$",i),s=()=>S(a,"$isMobile",i),l=_e(),d=xo(),a=l.ui.isMobile,u=d.graphIsOpened$,f=l.ui.t,v=h(e,"className",3,""),p=h(e,"disabled",3,!1),x=h(e,"hasTooltip",3,!0),w=h(e,"ref",15,void 0),y=h(e,"width",15,void 0),C=h(e,"isFullWidthTooltip",3,!0),T=h(e,"tooltipContent",3,""),E=h(e,"tooltipActive",3,!1),R=h(e,"tooltipPlacement",3,"top"),A=h(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),I=h(e,"isAriaHidden",3,!1),N=h(e,"onTooltipVisibilityChange",3,sv),H=h(e,"initialTranslateXPx",3,0),B=h(e,"initialTranslateYPx",19,()=>-18),z=h(e,"mouseEnter",3,sv),X=h(e,"mouseLeave",3,sv),le=m(()=>p()?r()?f("tooltip_disabled_when_graph_on"):A():T());var q=ty();q.__pointerdown=[o0],q.__click=[o0];var ce=_(q);{var J=se=>{Na(se,{get content(){return n(le)},get translateX(){return H()},get translateY(){return B()},get isFullWidthWrapper(){return C()},get active(){return E()},get placement(){return R()},get onVisibilityChange(){return N()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},children:(de,Le)=>{var Se=Fe(),ie=fe(Se);be(ie,()=>{var Ne;return(Ne=e.children)!=null?Ne:ue}),b(de,Se)},$$slots:{default:!0}})},ve=se=>{var de=Fe(),Le=fe(de);be(Le,()=>{var Se;return(Se=e.children)!=null?Se:ue}),b(se,de)};V(ce,se=>{x()&&n(le)&&!s()?se(J):se(ve,!1)})}g(q),at(q,se=>w(se),()=>w()),D(()=>{var se;re(q,1,`btn-container ${(se=v())!=null?se:""}`,"svelte-p9r045"),Ke(q,"aria-hidden",I()||null)}),Ct("mouseenter",q,function(...se){var de;(de=z())==null||de.apply(this,se)}),Ct("mouseleave",q,function(...se){var de;(de=X())==null||de.apply(this,se)}),kn(q,"clientWidth",y),b(t,q),U(),o()}dt(["pointerdown","click"]);var oy=Ie('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect width="20" height="20" rx="10" fill="var(--btn-color, #fff)"></rect><path d="M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"></path></svg>');function qd(t,e){"use strict";var i=oy(),o=_(i),r=P(o);g(i),D(()=>{Ke(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Ke(o,"fill-opacity",e.completed?1:.24),Ke(r,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(t,i)}var ny=M("<div><!></div>"),ry={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 av(t,e){F(e,!0),W(t,ry);let o=_e().ui.t,r=j(0),s=m(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Mo(t,{get tooltipContent(){return n(s)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return n(r)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var a=ny();let u;var f=_(a);let v=m(()=>!!e.videoEpisode.completed);qd(f,{get completed(){return n(v)}}),g(a),D(p=>{u=re(a,1,"interactive-episode-icon svelte-bklhpe",null,u,p),Je(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),kn(a,"clientWidth",p=>O(r,p)),b(l,a)},$$slots:{default:!0}}),U()}var sy=M('<div><div class="video-episode-inner svelte-1uc247w"><div class="video-episode-loaded svelte-1uc247w"></div> <div></div></div></div>'),ay=M('<div class="video-episodes-wrap svelte-1uc247w"></div>'),ly={hash:"svelte-1uc247w",code:`.video-episodes-wrap.svelte-1uc247w {position:absolute;width:100%;height:100%;}.video-episode.svelte-1uc247w {position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:calc(-1 * var(--slider-height));padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s;}.video-episode.svelte-1uc247w:first-child {padding-left:0;}.video-episode.svelte-1uc247w:last-child {padding-right:0;}.video-episode.svelte-1uc247w:not(.disabled):where(:hover, :active) {transform:scaleY(1.5);}.video-episode-inner.svelte-1uc247w,
|
|
170
|
+
.video-episode-loaded.svelte-1uc247w,
|
|
171
|
+
.video-episode-filled.svelte-1uc247w {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1uc247w {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode.svelte-1uc247w:first-child .video-episode-inner:where(.svelte-1uc247w),
|
|
172
|
+
.video-episode.svelte-1uc247w:last-child .video-episode-inner:where(.svelte-1uc247w) {width:calc(100% - var(--slider-video-episode-gap));}.video-episode-loaded.svelte-1uc247w {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1uc247w {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function lv(t,e){W(t,ly);let i=h(e,"videoEpisodes",19,()=>[]);var o=ay();Ci(o,21,i,r=>r.from,(r,s)=>{var l=sy();let d;var a=_(l),u=_(a),f=P(u,2);let v;g(a),g(l),D((p,x)=>{d=re(l,1,"video-episode svelte-1uc247w",null,d,p),Je(l,`left: ${n(s).from}%; width: ${n(s).width}%`),Je(u,`transform: translateX(${n(s).loadedWidth/n(s).width*100}%)`),v=re(f,1,"video-episode-filled svelte-1uc247w",null,v,x),Je(f,`transform: translateX(${n(s).filledWidth/n(s).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(r,l)}),g(o),b(t,o)}function dy(t,e,i,o,r,s,l){if(t.preventDefault(),e()&&O(i,e().getBoundingClientRect(),!0),o()||n(r)||!e())return;O(r,!0);let d=s(t.clientX,t.clientY);l()(d,t),e().setPointerCapture(t.pointerId)}function cy(t,e,i,o,r,s,l,d){if(t.preventDefault(),e())return;let a=i(t.clientX,t.clientY),u=o(t.clientX);r()(a,u,n(s).width,t),n(l)&&d()(a)}function uy(t,e,i,o,r){if(t.preventDefault(),e()||!n(i))return;O(i,!1);let s=o(t.clientX,t.clientY);r()(s,t)}function py(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function fy(t,e,i,o,r,s){let l=e(t.clientX,t.clientY);i()&&o()(l),O(r,!1),s()(l)}var vy=M("<div></div>"),my=M('<div class="bars svelte-12bsb23"><div class="loaded svelte-12bsb23"></div> <div></div></div>'),gy=M('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),hy={hash:"svelte-12bsb23",code:`.interactive-icons.svelte-12bsb23 {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-12bsb23 {top:-10px;}.slider.svelte-12bsb23 {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-12bsb23 {cursor:default;}.slider.svelte-12bsb23:before {
|
|
173
|
+
/* hit area */content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2);}.bars.svelte-12bsb23 {position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg);}.loaded.svelte-12bsb23 {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;will-change:transform;}.filled.svelte-12bsb23 {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}.slider.square.svelte-12bsb23,
|
|
174
|
+
.slider.square.svelte-12bsb23 > .bars:where(.svelte-12bsb23),
|
|
175
|
+
.slider.square.svelte-12bsb23 .loaded:where(.svelte-12bsb23),
|
|
176
|
+
.slider.square.svelte-12bsb23 .filled:where(.svelte-12bsb23) {border-radius:unset;}.filled.active-live.svelte-12bsb23 {background-color:var(--timeline-slider-filled-active-live-bg);}.filled.ads.svelte-12bsb23 {background-color:var(--slider-filled-ads);}.handleWrap.svelte-12bsb23 {position:absolute;left:-100%;width:100%;}.handle.svelte-12bsb23 {position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-handle-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s;will-change:opacity, transform;}.handle.active-live.svelte-12bsb23 {background-color:var(--timeline-slider-handle-active-live-bg);}.handle-always-visible.svelte-12bsb23 .handle:where(.svelte-12bsb23),
|
|
177
|
+
.slider.svelte-12bsb23:hover .handle:where(.svelte-12bsb23),
|
|
178
|
+
.slider-dragging.svelte-12bsb23 .handle:where(.svelte-12bsb23) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-12bsb23 .handle:where(.svelte-12bsb23) {transform:scale(1.3);}.slider-vertical.svelte-12bsb23 {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-12bsb23 {cursor:default;opacity:0.4;}`};function Da(t,e){F(e,!0),W(t,hy);let i=h(e,"ref",15,void 0),o=h(e,"className",3,""),r=h(e,"testId",3,void 0),s=h(e,"isHidden",3,!1),l=h(e,"isVertical",3,!1),d=h(e,"isActiveLive",3,!1),a=h(e,"isMobile",3,!1),u=h(e,"squareBorders",3,!1),f=h(e,"videoEpisodes",19,()=>[]),v=h(e,"withWheelHandler",3,!1),p=h(e,"isInteractive",3,!1),x=h(e,"disabled",3,!1),w=h(e,"hideHandel",3,!1),y=h(e,"onPointerDown",3,Un),C=h(e,"onHandleMove",3,Un),T=h(e,"onPointerUp",3,Un),E=h(e,"onPointerEnter",3,Un),R=h(e,"onPointerMove",3,Un),A=h(e,"onPointerLeave",3,Un),I=h(e,"onMouseEnter",3,Un),N=h(e,"onMouseLeave",3,Un),H=h(e,"onWheelUp",3,Un),B=h(e,"onWheelDown",3,Un),z=h(e,"onWheelLeft",3,Un),X=h(e,"onWheelRight",3,Un),le=h(e,"onDisabledClick",3,Un),q=h(e,"loadedProgress",3,0),ce=h(e,"filledProgress",3,0),J=h(e,"handleProgress",3,0),ve=h(e,"ariaLabel",3,""),se=h(e,"ariaValueMin",3,void 0),de=h(e,"ariaValueMax",3,void 0),Le=h(e,"ariaValueNow",3,void 0),Se=h(e,"ariaValueText",3,""),ie=h(e,"onContextMenu",3,Un),Ne=h(e,"handleAlwaysVisible",3,!1),pe=Rt(),k=j(void 0),qe=j(!1),Re=m(()=>{var Te;return(Te=de())!=null?Te:0}),Z=m(()=>{var Te;return n0(f())&&((Te=f()[f().length-1])==null?void 0:Te.time)<n(Re)}),ne=m(()=>n0(f())&&f().length&&n(Z)&&n(Re)?Xe(q()*100,ce()*100):[]);function He(Te){if(Te.preventDefault(),i()&&O(k,i().getBoundingClientRect(),!0),x())return;let Me=he(Te.clientX,Te.clientY),It=Ue(Te.clientX);E()(Me,It,n(k).width)}function Ze(Te){Te.preventDefault(),!x()&&A()()}function ge(){I()()}function ee(){N()()}function ke(Te){x()||v()&&(Te.preventDefault(),Te.deltaY<0?H()():Te.deltaY>0?B()():Te.deltaX>0?X()():z()())}function he(Te,Me){return l()?Math.max(0,Math.min(1,(n(k).height-(Me-n(k).top))/n(k).height)):Math.min(Math.max(Te-n(k).x,0),n(k).width)/n(k).width}function Ue(Te){return Math.min(Math.max(Te-n(k).x,0),n(k).width)}function Xe(Te,Me){let It=pe.features.episodesClustering&&!p()?pe.episodeMinWidthPc:0,De=[],ut=f()[0].time/n(Re)*100,$t=0,xe=0;for(let lt=1;lt<f().length;lt++)$t=f()[lt].time/n(Re)*100,$t-ut>It&&(De.push({from:ut,width:Math.max(0,$t-ut),loadedWidth:Math.max(0,Math.min($t,Te)-ut),filledWidth:Math.max(0,Math.min($t,Me)-ut),interactive:f()[lt-1].interactive,completed:f()[lt-1].completed}),ut=f()[lt].time/n(Re)*100,xe++);let ot={from:ut,width:Math.max(0,100-ut),loadedWidth:Math.max(0,Math.min(Te,100)-ut),filledWidth:Math.max(0,Math.min(Me,100)-ut),interactive:f()[xe].interactive,completed:f()[xe].completed};100-ut<It?(xe-=1,De[xe].width+=100-ut,De[xe].loadedWidth+=Math.max(0,Math.min(Te,100)-ut),De[xe].filledWidth+=Math.max(0,Math.min(Me,100)-ut)):De[xe]=ot;let Qe=f()[0].time;if(Qe!==0){let lt=Qe/n(Re)*100;De.unshift({from:0,width:lt,loadedWidth:Math.min(lt,Te),filledWidth:Math.min(lt,Me)})}return De}function Ge(Te){return Math.max(0,Math.min(100,Te*100))}var ct=gy(),et=fe(ct);{var Bt=Te=>{var Me=vy();let It;Ci(Me,21,()=>n(ne),De=>De.from,(De,ut)=>{var $t=Fe(),xe=fe($t);{var ot=Qe=>{av(Qe,{get videoEpisode(){return n(ut)},get disabled(){return x()}})};V(xe,Qe=>{n(ut).interactive&&Qe(ot)})}b(De,$t)}),g(Me),D(De=>It=re(Me,1,"interactive-icons svelte-12bsb23",null,It,De),[()=>({mobile:a(),hidden:a()&&!n(qe)})]),b(Te,Me)};V(et,Te=>{p()&&Te(Bt)})}var rt=P(et,2);let Dt;rt.__pointerdown=[dy,i,k,x,qe,he,y],rt.__pointermove=[cy,x,he,Ue,R,k,qe,C],rt.__pointerup=[uy,x,qe,he,T],rt.__click=[py,x,le,he],rt.__contextmenu=[fy,he,x,le,qe,ie];var Qt=_(rt);{var Et=Te=>{lv(Te,{get videoEpisodes(){return n(ne)},get disabled(){return x()},get isMobile(){return a()}})},ti=Te=>{var Me=my(),It=_(Me),De=P(It,2);let ut;g(Me),D(($t,xe,ot)=>{Je(It,$t),ut=re(De,1,"filled svelte-12bsb23",null,ut,xe),Je(De,ot)},[()=>`transform: translateX(${Ge(q())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${Ge(ce())}%);`]),b(Te,Me)};V(Qt,Te=>{n(ne).length?Te(Et):Te(ti,!1)})}var Wt=P(Qt,2);let Ce;var we=_(Wt);let te;g(Wt),g(rt),at(rt,Te=>i(Te),()=>i()),D((Te,Me,It,De)=>{var ut,$t;Dt=re(rt,1,`slider ${(ut=o())!=null?ut:""}`,"svelte-12bsb23",Dt,Te),Ke(rt,"aria-label",ve()),Ke(rt,"aria-valuemin",se()),Ke(rt,"aria-valuemax",de()),Ke(rt,"aria-valuenow",Le()),Ke(rt,"aria-valuetext",Se()),Ke(rt,"data-testid",($t=r())!=null?$t:null),Ce=re(Wt,1,"handleWrap svelte-12bsb23",null,Ce,Me),Je(Wt,It),te=re(we,1,"handle svelte-12bsb23",null,te,De)},[()=>({disabled:x(),"slider-dragging":n(qe),hidden:s(),"handle-always-visible":Ne(),"slider-vertical":l(),"no-handle":w(),square:u()}),()=>({hidden:w()}),()=>`transform: translateX(${Ge(J())}%);`,()=>({"active-live":d()})]),Ct("pointerenter",rt,He),Ct("pointerleave",rt,Ze),Ct("mouseenter",rt,ge),Ct("mouseleave",rt,ee),Ct("wheel",rt,ke),b(t,ct),U()}dt(["pointerdown","pointermove","pointerup","click","contextmenu"]);var no=(t,e)=>Ia[t]>=Ia[e],r0=(t,e)=>Ia[t]<Ia[e],Ps=(t,e)=>Ia[t]<=Ia[e],s0=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var by=M("<div><!></div>"),$y=M("<div><!> <!></div>"),yy={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 dv(t,e){var ee,ke;F(e,!0),W(t,yy);let[i,o]=Be(),r=()=>S(E,"$isAudioAvailable$",i),s=()=>S(v,"$muted$",i),l=()=>S(f,"$volume$",i),d=()=>S(y,"$currentGridType$",i),a=_e(),u=Rt(),f=a.state.volume$,v=a.state.muted$,{setVolume:p,startVolumeChanging:x,stopVolumeChanging:w}=a.actions.internal,y=a.ui.currentGridType$,C=(ee=a.callbacks)==null?void 0:ee.onAudioDoesNotExistHint,T=(ke=a.callbacks)==null?void 0:ke.onAudioDisabledHint,E=a.state.isAudioAvailable$,R=a.state.isAudioDisabled,A=a.ui.t,I=j(!1),N,H=m(()=>e.isAds||r()),B=m(()=>!n(H)||s()||l()===0),z=m(()=>Ps(d(),"s")),X=m(()=>n(z)?"":n(B)?!r()||R?A("tooltip_sound_unavailable"):A("tooltip_volume"):A("tooltip_volume_muted")),le=m(()=>n(B)?A("tooltip_volume"):A("tooltip_volume_muted")),q=m(()=>n(B)?0:l()),ce=!1,J=m(()=>e.isAds?!1:R?!T:r()?!1:!C);function ve(he){x(),p(he)}function se(){Lu(a,l(),u.controls.volumeStepWheel)}function de(){Vu(a,l(),u.controls.volumeStepWheel)}function Le(he){p(he)}function Se(he){p(he),w()}function ie(){ce=!0}function Ne(){ce=!1,qe()}function pe(){clearTimeout(N),O(I,!0)}function k(){qe()}function qe(){N=window.setTimeout(()=>{ce||O(I,!1)},u.controls.volumeBarTimeout)}function Re(he){he.preventDefault(),he.deltaY<0?se():he.deltaY>0&&de()}var Z=$y();let ne;var He=_(Z);Na(He,{get content(){return n(X)},translateY:-18,children:(he,Ue)=>{let Xe=m(()=>n(z)?"btn-volume-vertical":"btn-volume-horizontal");zt(he,{className:"btn-full-opacity",get disabled(){return n(J)},get testId(){return n(Xe)},get ariaLabel(){return n(le)},get click(){return e.click},get ariaKeyShortCut(){return ds.KeyM},role:"button",children:(Ge,ct)=>{ia(Ge,{get volume(){return l()},get muted(){return n(B)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Ze=P(He,2);{var ge=he=>{var Ue=by();let Xe;var Ge=_(Ue);let ct=m(()=>n(z)?"volumeBar-slider-vertical":""),et=m(()=>n(z)&&!n(I)),Bt=m(()=>n(z)?ie:Nu),rt=m(()=>n(z)?Ne:Nu),Dt=m(()=>Math.round(n(q)*100)),Qt=m(()=>`${Math.round(n(q)*100)}%`),Et=m(()=>n(z)?"volume-slider-vertical":"volume-slider");Da(Ge,{get className(){return n(ct)},get isHidden(){return n(et)},get isVertical(){return n(z)},withWheelHandler:!0,onWheelUp:se,onWheelDown:de,onPointerDown:ve,onHandleMove:Le,onPointerUp:Se,get onPointerEnter(){return n(Bt)},get onPointerLeave(){return n(rt)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return n(Dt)},get ariaValueText(){return n(Qt)},get filledProgress(){return n(q)},get handleProgress(){return n(q)},get testId(){return n(Et)}}),g(Ue),D(ti=>Xe=re(Ue,1,"volumeBar svelte-1auih1j",null,Xe,ti),[()=>({"volumeBar-vertical":n(z)})]),b(he,Ue)};V(Ze,he=>{n(H)&&he(ge)})}g(Z),D(he=>ne=re(Z,1,"volumeBar-container svelte-1auih1j",null,ne,he),[()=>({vertical:n(z)})]),Ct("mouseenter",Z,function(...he){var Ue;(Ue=n(z)?pe:Nu)==null||Ue.apply(this,he)}),Ct("mouseleave",Z,function(...he){var Ue;(Ue=n(z)?k:Nu)==null||Ue.apply(this,he)}),Ct("wheel",Z,Re),b(t,Z),U(),o()}import{noop as Sy}from"@vkontakte/videoplayer-shared/es2015";var xy=Ie('<svg><!><g fill-rule="evenodd"><path d="M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z" class="_exit"></path><path d="M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z" class="_enter"></path></g></svg>');function cv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=xy();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",viewBox:"0 0 24 24",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var wy={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
|
|
179
|
+
svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function uv(t,e){W(t,wy);let i=h(e,"isFullscreen",8,!1),o=Sn(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");cv(t,{get"data-testid"(){return n(o)},fill:"var(--btn-color, #fff)"})}function Qd(t,e){F(e,!0);let i=h(e,"isFullscreen",3,!1),o=h(e,"click",3,Sy),r=_e(),s=r.ui.isFullscreenOpenedByKeyboard,l=r.ui.t,d=m(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));zt(t,{testId:"btn-fullscreen",get ariaLabel(){return n(d)},click:u=>{let f=ea(u);s.set(f),o()()},get ariaKeyShortCut(){return ds.KeyF},role:"button",children:(u,f)=>{uv(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),U()}var Cy=Ie('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z" clip-rule="evenodd"></path></svg>');function pv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Cy();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var Ty=Ie('<svg><!><svg data-logo="vk_video"><path d="M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z"></path></svg><svg x="4" y="3" data-logo="play_market"><path d="M0 1.261v15.474c0 .435.114.778.335.988l.002.002 9.178-8.728L.332.282C.075.532 0 .92 0 1.26"></path><path d="M.332.282.384.235c.34-.3.881-.326 1.482 0L12.623 6.04 10.018 8.52zm10.286 8.747 2.884 2.452-.532.288-.345.184-2.572-2.446-9.716 8.218c.336.34.9.378 1.529.044l11.104-6 .534-.286-.002-.002 2.725-1.472c1.03-.56 1.03-1.47 0-2.022l-2.77-1.495-.833-.452-.001.001.834.45.098.054z"></path></svg><svg x="3" data-logo="app_store"><path d="M17.623 16.365a11.4 11.4 0 0 1-1.15 2.03q-.906 1.27-1.48 1.758-.885.8-1.901.823-.732.001-1.757-.412-1.029-.412-1.892-.411-.906 0-1.945.411-1.04.413-1.68.434-.975.041-1.946-.845-.62-.53-1.548-1.82-.995-1.376-1.637-3.195Q.001 13.173 0 11.33 0 9.218.93 7.69a5.4 5.4 0 0 1 1.946-1.934 5.3 5.3 0 0 1 2.63-.73q.774.002 2.036.465 1.26.466 1.614.467.267 0 1.79-.55 1.44-.508 2.433-.424 2.699.214 4.047 2.094-2.412 1.437-2.387 4.019.022 2.01 1.481 3.34.66.615 1.48.954a16 16 0 0 1-.377.973M13.499.42q0 1.576-1.168 2.939c-.94 1.079-2.075 1.702-3.307 1.604a3 3 0 0 1-.025-.398c0-1.008.446-2.087 1.24-2.97q.595-.67 1.51-1.114.915-.438 1.728-.481.023.21.022.42"></path></svg><path d="M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"></path><path d="M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35" class="_ru"></path><path d="M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635" class="_en"></path></svg>');function fv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Ty();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"var(--btn-color, #fff)","fill-rule":"evenodd","aria-hidden":"true","clip-rule":"evenodd",viewBox:"0 0 95 24",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(6),g(o),b(t,o)}var Ey={hash:"svelte-e5e2xr",code:`svg [data-logo],
|
|
178
180
|
svg[data-testid="vk-video-logo-icon--short"] ._ru,
|
|
179
181
|
svg[data-testid="vk-video-logo-icon--short"] ._en,
|
|
180
182
|
svg[data-testid="vk-video-logo-icon"] ._en,
|
|
181
183
|
svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}svg[data-logo="vk_video"] [data-logo="vk_video"],
|
|
182
184
|
svg[data-logo="play_market"] [data-logo="play_market"],
|
|
183
|
-
svg[data-logo="app_store"] [data-logo="app_store"] {visibility:visible;opacity:1;}`};function im(t,e){U(e,!0),q(t,X2);let i=v(e,"short",3,!1),o=v(e,"isCyrillic",3,!0),n=v(e,"logo",19,()=>"vk_video"),s="vk-video-logo-icon--short",l=24,d=g(()=>!o()&&!i()?91:i()?l:95),a=g(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?s:"vk-video-logo-icon"),u=g(()=>`0 0 ${r(d)} 24`);tm(t,{get width(){return r(d)},height:"24",get viewBox(){return r(u)},get"data-testid"(){return r(a)},get"data-logo"(){return n()}}),z()}function Cd(t,e){U(e,!0);let[i,o]=De(),n=()=>S(x,"$isMobile",i),s=()=>S(p,"$currentGridType$",i),l=()=>S(y,"$isCyrillicRelatedInterface$",i),d=v(e,"ref",15,void 0),a=v(e,"logoClickable",3,!1),u=v(e,"targetUrl",3,""),f=It(),m=Te(),p=m.ui.currentGridType$,x=m.ui.isMobile,w=m.ui.t,y=m.isCyrillicRelatedInterface$,T=g(()=>f.logoType!=="vk"),C=g(()=>r(T)?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),E=g(()=>(n()&&Cs(s(),"m")||Cs(s(),"l"))&&r(T)),R=()=>{var B,F;e.click(),(B=m.callbacks)!=null&&B.onLogoClicked?(F=m.callbacks)==null||F.onLogoClicked():u()&&window.open(u(),"_blank")},I=g(()=>!a()),k=g(()=>r(T)?"btn-vk-video-logo":"btn-vk-logo");Nt(t,{className:"btn-full-opacity",get disabled(){return r(I)},click:R,get testId(){return r(k)},get ariaLabel(){return r(C)},get ref(){return d()},set ref(B){d(B)},children:(B,F)=>{var H=He(),W=me(H);{var Z=j=>{im(j,{get logo(){return f.logoType},get short(){return r(E)},get isCyrillic(){return l()}})},ne=j=>{em(j,{})};V(W,j=>{r(T)?j(Z):j(ne,!1)})}$(B,H)},$$slots:{default:!0}}),z(),o()}import{ChromecastState as iy}from"@vkontakte/videoplayer-core/es2015";import{ChromecastState as D1}from"@vkontakte/videoplayer-core/es2015";var J2=Se('<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-mobile-icon" class="svelte-8z1bf5"><g filter="url(#b)" clip-path="url(#a)" class="svelte-8z1bf5"><mask id="c" maskUnits="userSpaceOnUse" x="1.1" y="3.1" width="22" height="18" fill="#000" class="svelte-8z1bf5"><path d="M1.1 3.1h22v18h-22z" class="svelte-8z1bf5"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path></mask><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path><path d="m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z" fill="#000" fill-opacity=".12" mask="url(#c)" class="svelte-8z1bf5"></path></g><defs class="svelte-8z1bf5"><clipPath id="a" class="svelte-8z1bf5"><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path></clipPath><filter id="b" x="-3.4" y="-1.4" width="30.8" height="26.802" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" class="svelte-8z1bf5"><feFlood flood-opacity="0" result="BackgroundImageFix" class="svelte-8z1bf5"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" class="svelte-8z1bf5"></feColorMatrix><feOffset class="svelte-8z1bf5"></feOffset><feGaussianBlur stdDeviation="2.5" class="svelte-8z1bf5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0" class="svelte-8z1bf5"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_4085_178456" class="svelte-8z1bf5"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_4085_178456" result="shape" class="svelte-8z1bf5"></feBlend></filter></defs></svg>'),ey=Se('<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-icon"><g fill="none" fill-rule="evenodd" class="svelte-8z1bf5"><path class="wave wave1 svelte-8z1bf5" d="M1 18v3h3c0-1.66-1.34-3-3-3z" fill="var(--btn-color, #fff)"></path><path class="wave wave2 svelte-8z1bf5" d="M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z" fill="var(--btn-color, #fff)"></path><path class="wave wave3 svelte-8z1bf5" d="M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z" fill="var(--btn-color, #fff)"></path><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)" class="svelte-8z1bf5"></path><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z" fill="var(--btn-color, #fff)"></path></g></svg>'),ty={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
|
|
185
|
+
svg[data-logo="app_store"] [data-logo="app_store"] {visibility:visible;opacity:1;}`};function vv(t,e){F(e,!0),W(t,Ey);let i=h(e,"short",3,!1),o=h(e,"isCyrillic",3,!0),r=h(e,"logo",19,()=>"vk_video"),s="vk-video-logo-icon--short",l=24,d=m(()=>!o()&&!i()?91:i()?l:95),a=m(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?s:"vk-video-logo-icon"),u=m(()=>`0 0 ${n(d)} 24`);fv(t,{get width(){return n(d)},height:"24",get viewBox(){return n(u)},get"data-testid"(){return n(a)},get"data-logo"(){return r()}}),U()}function jd(t,e){F(e,!0);let[i,o]=Be(),r=()=>S(x,"$isMobile",i),s=()=>S(p,"$currentGridType$",i),l=()=>S(y,"$isCyrillicRelatedInterface$",i),d=h(e,"ref",15,void 0),a=h(e,"logoClickable",3,!1),u=h(e,"targetUrl",3,""),f=Rt(),v=_e(),p=v.ui.currentGridType$,x=v.ui.isMobile,w=v.ui.t,y=v.isCyrillicRelatedInterface$,C=m(()=>f.logoType!=="vk"),T=m(()=>n(C)?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),E=m(()=>(r()&&Ps(s(),"m")||Ps(s(),"l"))&&n(C)),R=()=>{var N,H;e.click(),(N=v.callbacks)!=null&&N.onLogoClicked?(H=v.callbacks)==null||H.onLogoClicked():u()&&window.open(u(),"_blank")},A=m(()=>!a()),I=m(()=>n(C)?"btn-vk-video-logo":"btn-vk-logo");zt(t,{className:"btn-full-opacity",get disabled(){return n(A)},click:R,get testId(){return n(I)},get ariaLabel(){return n(T)},get ref(){return d()},set ref(N){d(N)},children:(N,H)=>{var B=Fe(),z=fe(B);{var X=q=>{vv(q,{get logo(){return f.logoType},get short(){return n(E)},get isCyrillic(){return l()}})},le=q=>{pv(q,{})};V(z,q=>{n(C)?q(X):q(le,!1)})}b(N,B)},$$slots:{default:!0}}),U(),o()}import{ChromecastState as Py}from"@vkontakte/videoplayer-core/es2015";import{ChromecastState as l0}from"@vkontakte/videoplayer-core/es2015";var Iy=Ie('<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-mobile-icon" class="svelte-8z1bf5"><g filter="url(#b)" clip-path="url(#a)" class="svelte-8z1bf5"><mask id="c" maskUnits="userSpaceOnUse" x="1.1" y="3.1" width="22" height="18" fill="#000" class="svelte-8z1bf5"><path d="M1.1 3.1h22v18h-22z" class="svelte-8z1bf5"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path></mask><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path><path d="m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z" fill="#000" fill-opacity=".12" mask="url(#c)" class="svelte-8z1bf5"></path></g><defs class="svelte-8z1bf5"><clipPath id="a" class="svelte-8z1bf5"><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path></clipPath><filter id="b" x="-3.4" y="-1.4" width="30.8" height="26.802" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" class="svelte-8z1bf5"><feFlood flood-opacity="0" result="BackgroundImageFix" class="svelte-8z1bf5"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" class="svelte-8z1bf5"></feColorMatrix><feOffset class="svelte-8z1bf5"></feOffset><feGaussianBlur stdDeviation="2.5" class="svelte-8z1bf5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0" class="svelte-8z1bf5"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_4085_178456" class="svelte-8z1bf5"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_4085_178456" result="shape" class="svelte-8z1bf5"></feBlend></filter></defs></svg>'),ky=Ie('<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-icon"><g fill="none" fill-rule="evenodd" class="svelte-8z1bf5"><path class="wave wave1 svelte-8z1bf5" d="M1 18v3h3c0-1.66-1.34-3-3-3z" fill="var(--btn-color, #fff)"></path><path class="wave wave2 svelte-8z1bf5" d="M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z" fill="var(--btn-color, #fff)"></path><path class="wave wave3 svelte-8z1bf5" d="M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z" fill="var(--btn-color, #fff)"></path><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)" class="svelte-8z1bf5"></path><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z" fill="var(--btn-color, #fff)"></path></g></svg>'),Ay={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) {
|
|
184
186
|
animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
|
|
185
187
|
animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
|
|
186
188
|
animation-name: svelte-8z1bf5-wave3;}
|
|
@@ -228,9 +230,7 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},l1=mb;var w
|
|
|
228
230
|
100% {
|
|
229
231
|
opacity: 1;
|
|
230
232
|
}
|
|
231
|
-
}`};function om(t,e){U(e,!0),q(t,ty);let i=v(e,"isMobile",3,!1),o=g(()=>e.iconState===D1.CONNECTED),n=g(()=>e.iconState===D1.CONNECTING);var s=He(),l=me(s);{var d=u=>{var f=J2(),m=_(f),p=_(m),x=_(p);we(),h(p);var w=A(p);we(),h(m);var y=A(m),T=_(y),C=_(T);h(T),we(),h(y),h(f),D(()=>{Ue(x,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Ue(w,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Ue(C,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),$(u,f)},a=u=>{var f=ey();let m;var p=_(f),x=A(_(p),5);let w;h(p),h(f),D((y,T)=>{m=re(f,0,"svelte-8z1bf5",null,m,y),w=re(x,0,"svelte-8z1bf5",null,w,T)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),$(u,f)};V(l,u=>{i()?u(d):u(a,!1)})}$(t,s),z()}import{noop as oy}from"@vkontakte/videoplayer-shared/es2015";function Td(t,e){U(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"click",3,oy),l=Te().ui.t,d=g(()=>e.state===iy.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Nt(t,{get ariaLabel(){return r(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(a){i(a)},children:(a,u)=>{om(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),z()}var ny=M('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),ry={hash:"svelte-5ygsa2",code:'.tooltip-wrapper.svelte-5ygsa2 {position:relative;display:block;}.tooltip.svelte-5ygsa2 {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%);}.pointer.svelte-5ygsa2:after {position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px);}.tooltip.active.svelte-5ygsa2 {opacity:1;visibility:visible;}'};function nm(t,e){q(t,ry);let i=v(e,"active",3,!1),o=v(e,"pointer",3,!1),n=v(e,"translateXPx",3,0),s=v(e,"translateYPx",3,0),l=v(e,"leftOffset",3,0),d=v(e,"rightOffset",3,0),a=J(void 0),u=J(void 0);function f(T){if(!r(u))return 0;let{width:C}=r(u).getBoundingClientRect(),E=C/2;return T<E?E+l():T>e.containerWidth-E?e.containerWidth-E-d():T}let m=g(()=>f(n()));var p=ny(),x=_(p);let w;var y=_(x);he(y,()=>{var T;return(T=e.children)!=null?T:le}),h(x),at(x,T=>N(u,T),()=>r(u)),h(p),at(p,T=>N(a,T),()=>r(a)),D(T=>{lt(p,`transform: translate(${r(m)}px, ${s()}px);`),w=re(x,1,"tooltip svelte-5ygsa2",null,w,T),lt(x,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),$(t,p)}var bu=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var F1=t=>!!(Math.round(Math.abs(t)/90)%2),H1=t=>Math.abs(t)/90%4===1;var sy=M('<div class="preview svelte-1wqg760"></div>'),ay=M('<div class="time svelte-1wqg760"> </div>'),ly=M('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),dy={hash:"svelte-1wqg760",code:".timeline-preview.svelte-1wqg760 {bottom:18px;border-radius:2px;pointer-events:none;}.timeline-preview.mobile.svelte-1wqg760 {bottom:72px;}.preview.svelte-1wqg760 {background-color:var(--timeline-preview-bg);box-shadow:0 0 2px var(--timeline-preview-shadow), 0 8px 24px var(--timeline-preview-shadow);border-radius:8px;border:1px solid var(--white);}.episode.svelte-1wqg760 {margin-top:10px;margin-bottom:4px;font-size:13px;line-height:16px;text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-weight:500;}.time.svelte-1wqg760 {font-size:13px;line-height:16px;text-align:center;color:var(--white);text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);font-weight:500;}"};function rm(t,e){U(e,!0),q(t,dy);let[i,o]=De(),n=()=>S(w,"$rotateAlpha",i),s=()=>S(y,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=v(e,"time",3,""),a=v(e,"isMobile",3,!1),u=v(e,"videoEpisodes",19,()=>[]),f=v(e,"progress",3,0),m=v(e,"duration",3,0),p=v(e,"isInteractive",3,!1),x=Te(),w=x.ui.rotateAlpha,y=x.ui.playerSize,T=J(0),C=J(0),E=J(""),R=J(0),I=J(0),k=J(0),B=J(0),F=g(()=>bu(f(),m(),u())),H=g(()=>F1(n())),W=g(()=>H1(n())),Z=g(_e),ne=g(()=>(r(W)?1:-1)*(r(T)/2-r(C)/2)),j=g(()=>r(ne)*-1);Qe(()=>{(G=>{N(T,G.width,!0),N(C,G.height,!0)})(fe())}),Qe(()=>{(G=>{N(E,G.imgSrc,!0),N(R,G.imgWidth,!0),N(I,G.imgHeight,!0),N(k,G.imgOffsetX,!0),N(B,G.imgOffsetY,!0)})(ve(f()))});function _e(){var et;let G=a()?l.MOBILE:l.DESKTOP,{isVertical:ie}=ee(),Oe=30;return(et=r(F))!=null&&et.text&&(Oe+=16),(ie||r(H))&&(Oe+=18,Oe+=50),Math.min(Math.max(s().height-Oe,0),G)}function ee(){let G=e.previewThumbsData.frameWidth,ie=e.previewThumbsData.frameHeight,Oe=ie>G;return{width:G,height:ie,isHorizontal:!Oe,isVertical:Oe}}function fe(){let{height:G,isHorizontal:ie,isVertical:Oe,width:et}=ee();return ie&&(G=G/et*r(Z),et=r(Z)),Oe&&(et=et/G*r(Z),G=r(Z)),{width:et,height:G}}function ve(G){let ie;e.previewThumbsData.isUV?ie=Math.floor(m()*G/e.previewThumbsData.frequency):ie=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*G)));let Oe=Math.floor(ie/e.previewThumbsData.countPerImage),et=Math.floor(ie%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),xe=ie%e.previewThumbsData.countPerRow,te=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Oe===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(te=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&te++);let Ce=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Oe===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Ce=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Ee=r(T)*Ce,qe=r(C)*te,it=-xe*r(T),ft=-et*r(C);return{imgSrc:e.previewThumbsData.links[Oe],imgWidth:Ee,imgHeight:qe,imgOffsetX:it,imgOffsetY:ft}}var pe=ly();let Me;var Ve=_(pe);{var de=G=>{var ie=sy();D(()=>lt(ie,`width: ${r(T)}px; height: ${r(C)}px; background-image: url(${r(E)}); background-size: ${r(R)}px ${r(I)}px; background-position: ${r(k)}px ${r(B)}px;
|
|
232
|
-
transform: rotate(${n()}deg) ${r(H)?`translate(${r(ne)}px, ${r(j)}px)`:""};
|
|
233
|
-
`)),$(G,ie)};V(Ve,G=>{r(E)&&G(de)})}var Ne=A(Ve,2),se=_(Ne);{var P=G=>{var ie=He(),Oe=me(ie);{var et=te=>{var Ce=ls();D(Ee=>ge(Ce,Ee),[()=>Q("tooltip_episode_unfinished")]),$(te,Ce)},xe=te=>{var Ce=ls();D(()=>ge(Ce,r(F).text||"")),$(te,Ce)};V(Oe,te=>{p()&&r(F).completed===!1?te(et):te(xe,!1)})}$(G,ie)};V(se,G=>{r(F)&&G(P)})}h(Ne);var nt=A(Ne,2);{var Be=G=>{var ie=ay(),Oe=_(ie,!0);h(ie),D(()=>ge(Oe,d())),$(G,ie)};V(nt,G=>{p()||G(Be)})}h(pe),D(G=>{Me=re(pe,1,"timeline-preview svelte-1wqg760",null,Me,G),lt(pe,`width: ${r(H)?r(C):r(T)}px;`)},[()=>({mobile:a()})]),$(t,pe),z(),o()}var cy=M('<span class="time svelte-1jr6obn"> </span>'),uy=M("<!> <!>",1),py={hash:"svelte-1jr6obn",code:".time.svelte-1jr6obn {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.timeline-slider {--slider-bg: var(--timeline-slider-bg);--slider-filled-bg: var(--timeline-slider-filled-bg);--slider-handle-bg: var(--timeline-slider-handle-bg);--slider-loaded-bg: var(--timeline-slider-loaded-bg);}"};function sm(t,e){var ce,Ge,ze,ue,Fe;U(e,!0),q(t,py);let[i,o]=De(),n=()=>S(ne,"$interactiveEpisodes$",i),s=()=>S(k,"$duration$",i),l=()=>S(I,"$position$",i),d=()=>S(ee,"$isInteractiveExpectation$",i),a=()=>S(_e,"$isInteractiveTime$",i),u=()=>S(B,"$isLive$",i),f=()=>S(H,"$isMobile",i),m=()=>S(F,"$isActiveLive$",i),p=()=>S(R,"$bufferedProgress$",i),x=()=>S(pe,"$disabledControls$",i),w=v(e,"showTimeline",3,!1),y=v(e,"withEpisodes",3,!0),T=v(e,"ref",15,void 0),C=Te(),E=It(),R=C.state.bufferedProgress$,I=C.state.positionWithScrubbing$,k=C.state.duration$,B=C.state.isLive$,F=C.state.isActiveLive$,H=C.ui.isMobile,W=E.features.episodes&&y()?C.actions.internal.getVideoEpisodes():void 0,Z=C.actions.internal.getPreviewThumbsData(),ne=C.state.interactiveEpisodes$,j=C.state.isInteractive,_e=C.state.isInteractiveTime$,ee=C.state.isInteractiveExpectation$,fe=C.actions.internal.correctSeekTimeToInteractive,ve=(ce=C.callbacks)==null?void 0:ce.onDisabledTimelineClick,pe=C.ui.controls.disabledControls$,Me=(ze=(Ge=C.callbacks)==null?void 0:Ge.uiInfo)==null?void 0:ze.onTimelineMouseEnter,Ve=(Fe=(ue=C.callbacks)==null?void 0:ue.uiInfo)==null?void 0:Fe.onTimelineMouseLeave,de=C.ui.t,Ne=E.features.interactiveResponsiveUi,se=g(()=>j?n():W),P=g(()=>_n(s())),nt=g(()=>_n(l())),Be=g(()=>l()/s()),G=g(()=>d()||a()),ie=J(!1),Oe=J(""),et=J(0),xe=J(0),te=J(0),Ce=g(()=>({containerWidth:r(xe),translateXPx:r(et),translateYPx:j&&Z?-36:-16,active:r(ie)&&w()&&!r(G)&&!Ne,pointer:!E.features.timelinePreview||!Z||u()})),Ee=de("aria_timeline"),qe=g(()=>de("aria_timeline_value",{position:r(nt),duration:r(P)}));function it($e){return!fe||!j?$e:fe($e*s())/s()}function ft($e){C.actions.internal.startScrubbing(it($e))}function dt($e){a()||C.actions.internal.progressScrubbing(it($e))}function gt($e){C.actions.internal.completeScrubbing(it($e)),N(ie,!1)}function ot($e,Xe,Lt){Yt($e,Xe,Lt),N(ie,!0)}function Ut($e,Xe,Lt){Yt($e,Xe,Lt),N(ie,!0)}function Qt(){N(ie,!1)}function Yt($e,Xe,Lt){N(te,it($e),!0),N(et,Xe,!0),Lt&&N(xe,Lt,!0),N(Oe,Gt($e),!0)}function Gt($e){let Xe=_n((u()?1-$e:$e)*s());return u()?`-${Xe}`:Xe}var Ae=uy(),jt=me(Ae);nm(jt,xs(()=>r(Ce),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:($e,Xe)=>{var Lt=He(),yt=me(Lt);{var Vt=Jt=>{rm(Jt,{get time(){return r(Oe)},get isMobile(){return f()},get videoEpisodes(){return r(se)},get previewThumbsData(){return Z},get progress(){return r(te)},get duration(){return s()},get isInteractive(){return j}})},hi=Jt=>{var _i=cy(),Ii=_(_i,!0);h(_i),D(()=>ge(Ii,r(Oe))),$(Jt,_i)};V(yt,Jt=>{E.features.timelinePreview&&Z&&!u()?Jt(Vt):Jt(hi,!1)})}$($e,Lt)},$$slots:{default:!0}}));var be=A(jt,2);let Ie=g(()=>x().has("TIMELINE"));wa(be,{className:"timeline-slider",get isActiveLive(){return m()},get isMobile(){return f()},get ariaLabel(){return Ee},ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return l()},get ariaValueText(){return r(qe)},get loadedProgress(){return p()},get filledProgress(){return r(Be)},get handleProgress(){return r(Be)},get videoEpisodes(){return r(se)},onPointerDown:ft,onHandleMove:dt,onPointerMove:Ut,onPointerUp:gt,onPointerEnter:ot,onPointerLeave:Qt,get onMouseEnter(){return Me},get onMouseLeave(){return Ve},get onDisabledClick(){return ve},get isInteractive(){return j},get disabled(){return r(Ie)},get hideHandel(){return a()},testId:"progress_bar",onContextMenu:gt,get ref(){return T()},set ref($e){T($e)}}),$(t,Ae),z(),o()}var fy={hash:"svelte-1yate8h",code:".timeline-ads-slider {--slider-bg: var(--timeline-slider-bg);--slider-filled-bg: var(--timeline-slider-filled-bg);--slider-handle-bg: var(--timeline-slider-handle-bg);--slider-loaded-bg: var(--timeline-slider-loaded-bg);}"};function Ed(t,e){U(e,!0),q(t,fy);let[i,o]=De(),n=()=>S(a,"$isMobile",i),s=v(e,"position",3,0),l=v(e,"duration",3,0),d=Te(),a=d.ui.isMobile,u=d.ui.t,f=g(()=>_n(l())),m=g(()=>_n(s())),p=g(()=>s()/l()),x=g(()=>u("aria_timeline_value",{position:r(m),duration:r(f)})),w=g(()=>Math.round(r(p)*100));wa(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return r(w)},get ariaValueText(){return r(x)},get filledProgress(){return r(p)},hideHandel:!0,get squareBorders(){return n()}}),z(),o()}var my=M("<div><!></div>"),vy=M("<div></div>"),gy={hash:"svelte-41cp6d",code:".timeline.svelte-41cp6d {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px var(--timeline-padding-horizontal) 4px;box-sizing:border-box;}.timeline.mobile.svelte-41cp6d {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-41cp6d {padding:0;}.timeline-stub.svelte-41cp6d {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-41cp6d {height:8px;}"};function Sa(t,e){U(e,!0),q(t,gy);let[i,o]=De(),n=()=>S(T,"$isLive$",i),s=()=>S(R,"$isMobile",i),l=()=>S(I,"$disabled",i),d=()=>S(E,"$adPosition",i),a=()=>S(C,"$adDuration",i),u=v(e,"isAds",3,!1),f=v(e,"isHidden",3,!1),m=v(e,"timelineNotAvailable",3,!1),p=v(e,"needPadding",3,!0),x=v(e,"ref",15,void 0),w=Te(),y=It(),T=w.state.isLive$,C=w.ads.duration,E=w.ads.position,R=w.ui.isMobile,I=ae(!1),k=g(()=>!m()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||u()));var B=He(),F=me(B);{var H=Z=>{var ne=my();let j;var _e=_(ne);{var ee=ve=>{Ed(ve,{get position(){return d()},get duration(){return a()}})},fe=ve=>{sm(ve,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return r(k)},get withEpisodes(){return e.withEpisodes},get ref(){return x()},set ref(pe){x(pe)}})};V(_e,ve=>{u()?ve(ee):ve(fe,!1)})}h(ne),ys(ne,()=>ll(f()&&y.features.usePerformanceFix,I,y.disableInvisibleComponentsTimeout)),D(ve=>j=re(ne,1,"timeline svelte-41cp6d",null,j,ve),[()=>({withoutPadding:!p(),mobile:s(),"out-of-flow":l()})]),$(Z,ne)},W=Z=>{var ne=vy();let j;D(_e=>j=re(ne,1,"timeline-stub svelte-41cp6d",null,j,_e),[()=>({mobile:s()})]),$(Z,ne)};V(F,Z=>{r(k)?Z(H):Z(W,!1)})}$(t,B),z(),o()}import{noop as by}from"@vkontakte/videoplayer-shared/es2015";var hy=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"></path></svg>');function am(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=hy();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:le}),we(3),h(o),$(t,o)}var _y=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708" clip-rule="evenodd" opacity=".7"></path></svg>');function lm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=_y();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:le}),we(),h(o),$(t,o)}var $y=M('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),yy=M('<span class="text svelte-1yhs2ga"> </span>'),xy=M('<span class="text count svelte-1yhs2ga"> </span>'),wy=M("<!> <!>",1),Sy={hash:"svelte-1yhs2ga",code:".text.svelte-1yhs2ga {padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.text.count.svelte-1yhs2ga {overflow:visible;}.text.mobile.svelte-1yhs2ga {padding:0 3px 0 4px;}.chevron-episodes.svelte-1yhs2ga {margin-bottom:-4px;}"};function Id(t,e){var ee,fe,ve;U(e,!0),q(t,Sy);let[i,o]=De(),n=()=>S(w,"$currentGridType$",i),s=()=>S(y,"$openedByKeyboard$",i),l=()=>S(T,"$panelOpened$",i),d=()=>S(C,"$isMobile",i),a=v(e,"position",3,0),u=v(e,"duration",3,0),f=v(e,"timeCodes",19,()=>[]),m=Te(),p=(fe=(ee=m.callbacks)==null?void 0:ee.onEpisodeChanged)!=null?fe:by,x=!!((ve=m.callbacks)!=null&&ve.onEpisodeClicked),w=m.ui.currentGridType$,y=m.ui.episodes.openedByKeyboard$,T=m.ui.episodes.panelOpened$,C=m.ui.isMobile,E=m.ui.t,R=J(void 0),I=pe=>{var Ve,de,Ne;if(!!((Ve=m.callbacks)!=null&&Ve.onEpisodeClicked)){let se=Qs(pe);y.set(se),T.set(!0),(Ne=(de=m.callbacks)==null?void 0:de.onEpisodeClicked)==null||Ne.call(de,se)}},k=J(null),B=g(()=>a()/u());Qe(()=>{var Me;let pe=bu(r(B),u(),f());pe?((Me=r(k))==null?void 0:Me.time)!==pe.time&&(p(pe),N(k,pe,!0)):N(k,null)});let F=g(()=>{var pe;return((pe=r(k))==null?void 0:pe.text)||""}),H=g(()=>Ji(n(),"xl")?"FULL":Ji(n(),"m")&&O1(n(),"xl")?"COUNT":"SHORT"),W=g(()=>`${E("tooltip_episodes")}: ${r(F)}`),Z=(pe,Me,Ve)=>vt(null,null,function*(){yield xo(),(pe==null?void 0:pe.getAttribute("aria-expanded"))==="false"&&Me&&!Ve&&St(()=>{y.set(!1),pe.focus()})});Qe(()=>{Z(r(R),s(),l())});var ne=He(),j=me(ne);{var _e=pe=>{let Me=g(()=>d()?"px-0":""),Ve=g(()=>!x);Nt(pe,{get className(){var de;return`w-max btn-full-opacity btn-jc-l ${(de=r(Me))!=null?de:""}`},testId:"btn-episodes",click:I,get disabled(){return r(Ve)},get ariaExpanded(){return l()},get ariaLabel(){return r(W)},get ref(){return r(R)},set ref(de){N(R,de,!0)},children:(de,Ne)=>{var se=He(),P=me(se);{var nt=G=>{var ie=$y(),Oe=me(ie),et=_(Oe,!0);h(Oe);var xe=A(Oe,2),te=_(xe);lm(te,{}),h(xe),D(()=>ge(et,r(F))),$(G,ie)},Be=G=>{var ie=wy(),Oe=me(ie);am(Oe,{});var et=A(Oe,2);{var xe=Ce=>{var Ee=yy(),qe=_(Ee,!0);h(Ee),D(()=>ge(qe,r(F))),$(Ce,Ee)},te=(Ce,Ee)=>{{var qe=it=>{var ft=xy(),dt=_(ft,!0);h(ft),D(()=>ge(dt,f().length)),$(it,ft)};V(Ce,it=>{r(H)==="COUNT"&&it(qe)},Ee)}};V(et,Ce=>{r(H)==="FULL"?Ce(xe):Ce(te,!1)})}$(G,ie)};V(P,G=>{d()?G(nt):G(Be,!1)})}$(de,se)},$$slots:{default:!0}})};V(j,pe=>{r(k)&&pe(_e)})}$(t,ne),z(),o()}import{debounceFn as e0}from"@vkontakte/videoplayer-shared/es2015";import{ChromecastState as My,PlaybackState as Ad,Player as Vy,PredefinedQualityLimits as ps,VideoFormat as Pd,clientChecker as Q1}from"@vkontakte/videoplayer-core/es2015";import{assertNonNullable as ur,getHighestQuality as Ry,InterfaceLanguage as Oy,isInvariantQuality as Ny,isNonNullable as By,loadVKLangPack as Dy,Logger as Fy,map as G1,merge as Hy,Observable as Eu,Subject as Iu,Subscription as mm,TracerFactory as Uy,ValueSubject as zy,VideoQuality as Wy,devNull as Ky,now as qy,filter as Qy,once as Gy}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as Es}from"@vkontakte/videoplayer-statistics/es2015";import{detectEmbed as Cy,devNull as Zt,isNonNullable as Ty,now as Xt}from"@vkontakte/videoplayer-shared/es2015";import{addScript as Ey,Subject as nn,clearVideoElement as Iy}from"@vkontakte/videoplayer-shared/es2015";var ky="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",$u=class{constructor(e,i){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new nn,loadStarted$:new nn,loadEnded$:new nn,loadError$:new nn,ready$:new nn,slotRequested$:new nn,started$:new nn,timeRemained$:new nn,paused$:new nn,resumed$:new nn,ended$:new nn,empty$:new nn,skipped$:new nn,clicked$:new nn,closed$:new nn,error$:new nn};this.loadAdman=e=>(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[Xt()]}),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?(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[Xt()]}),i(),this.events.loadEnded$.next()):(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[Xt()]}),o())};Ey(ky,e,this.loadTimeout).then(()=>{Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[Xt()]}),window.AdmanHTML?(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[Xt()]}),i(),this.events.loadEnded$.next()):(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[Xt()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout))}).catch(l=>{Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[Xt()]}),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?(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[Xt()]}),i(),this.events.loadEnded$.next()):(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[Xt()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[Xt()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[Xt()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[Xt()]}),!d&&(window.AdmanHTML?(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[Xt()]}),i(),this.events.loadEnded$.next()):(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[Xt()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout)))},l).finally(()=>{clearTimeout(n),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[Xt()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{var o;Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[Xt(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"})),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog(),(o=this.externalApi)!=null&&o.videoTrackAdEvent&&this.safeExternalCall(this.externalApi.videoTrackAdEvent,e,String(i.bannerID))):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{var o;((o=this.adsState)!=null&&o.playbackState?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;Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[Xt()]}),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;Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[Xt()]}),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(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[Xt()]}),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;Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[Xt()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[Xt()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[Xt()]}),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;Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[Xt()]}),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")=>{Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[Xt()]}),this.log({message:e}),this.events.error$.next(e),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[Xt()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){return vt(this,null,function*(){var R,I;if(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[Xt(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isAutoplay:n,adsContainer:s,adsVideoElement:l,slotId:d,params:a={},paramsOverride:u={},duration:f,externalApi:m}=e;this.externalApi=m;let p,x=this.playerState&&ye(this.playerState.vsid);x&&(this.isVsidOriginal?p=x:p=parseInt(x,36));let{isEmbed:w,immediateOrigin:y}=Cy(),T=(R=w?y:window.location.href)!=null?R:window.location.href,C=K(Ft(K(Ft(K({},a),{dl:encodeURIComponent(T),autoplay:n?1:0,player_width:i,player_height:o}),p?{request_id:p}:{}),{duration:f}),u);C=Object.fromEntries(Object.entries(C).filter(([k,B])=>Ty(B)));let E={slot:d,wrapper:s,videoEl:l,videoQuality:o,params:C,browser:{mobile:!1}};try{let k=new window.AdmanHTML;if(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.setDebug(!1),(I=this.externalApi)!=null&&I.videoGetAds){let B=yield this.safeExternalCall(this.externalApi.videoGetAds,C);B&&(delete E.slot,delete E.params,Object.assign(E,{json:B}))}k.init(E),this.adman=k,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(E)}`})}catch(k){Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(k)],numbers:[Xt()]}),this.onAdError("could not init adman")}})}switchToVideo(e=!1){var o,n,s;if(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[Xt()]}),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(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[Xt()]}),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(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[Xt()]}),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(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[Xt()]}),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(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[Xt()]}),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(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[Xt()]}),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(Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[Xt()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,s,l,d,a,u,f,m,p;Zt.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[Xt()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(n=this.adman)==null||n.onPaused(void 0),(s=this.adman)==null||s.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(a=this.adman)==null||a.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(m=this.adman)==null||m.onError(void 0),(p=this.adman)==null||p.destroy(),this.videoElement&&Iy(this.videoElement),this.isDestroyed=!0}safeExternalCall(e,...i){return vt(this,null,function*(){var o;try{return yield e(...i)}catch(n){return this.onAdError((o=n==null?void 0:n.message)!=null?o:"External call failed"),null}})}};var U1=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 dm=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],n=e.split(this.twoLinesRegExp);for(let s of n){let l={startTime:0,endTime:0,texts:[],lang:i},d=s.split(this.oneLineRegExp);for(let a of d)if(!l.startTime&&!l.endTime){let u=new yu,{startTime:f,endTime:m}=u.parse(a);l.startTime=f,l.endTime=m}else if(a.trim()!==""){let u=new cm,{texts:f}=u.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},yu=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}},cm=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,a=[];for(;d<l.length;){let u=["<",">"].reduce((f,m)=>{let p=l.indexOf(m,d);return f===-1||f>p?p:f},-1);if(u===-1){a.push(l.substring(d));break}a.push(l.substring(d,u)),d=u+1}return a}}),s=new yu;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}},z1=dm;import{isNonNullable as um}from"@vkontakte/videoplayer-shared/es2015";var Ca,Mi,pm=0,fm=!1,W1="",K1=(t,e=0,i=0)=>t<e&&t<i,xu=(t,e=0,i=0)=>t>=e&&t<=i,Ay=(t,e=0,i=0)=>t>e&&t>i,q1=(t,e,i,o=!1)=>{var d;let n=(d=i.find(({id:a})=>a===e.value))==null?void 0:d.subtitles;if(o)return n==null?void 0:n.find(({startTime:u,endTime:f})=>xu(t,u,f));let s=t>=pm,l=t<pm;if(pm=t,l&&(fm=!1),um(Ca)&&xu(t,Ca.startTime,Ca.endTime)&&W1===e.value)return Ca;if(!um(Mi)&&(n!=null&&n.length)&&!fm){Mi=n.find(({startTime:u,endTime:f})=>xu(t,u,f)||s&&K1(t,u,f)),Ca=void 0,!um(Mi)&&n[n.length-1].endTime<t&&(fm=!0);return}else{if(xu(t,Mi==null?void 0:Mi.startTime,Mi==null?void 0:Mi.endTime))return Ca=Mi,Mi=void 0,W1=e.value,Ca;(s&&Ay(t,Mi==null?void 0:Mi.startTime,Mi==null?void 0:Mi.endTime)||l&&K1(t,Mi==null?void 0:Mi.startTime,Mi==null?void 0:Mi.endTime))&&(Mi=void 0)}};var wu={ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",en:"English",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F (\u0442\u0430\u0440\u0430\u0448\u043A\u0435\u0432i\u0446\u0430)",es:"Espa\xF1ol",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",hr:"Hrvatski",hu:"Magyar",sr:"\u0421\u0440\u043F\u0441\u043A\u0438",pt:"Portugu\xEAs",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",pl:"Polski",fr:"Fran\xE7ais",ko:"\uD55C\uAD6D\uC5B4","zh-CN":"\u6C49\u8BED",lt:"Lietuvi\u0173",ja:"\u65E5\u672C\u8A9E",cs:"\u010Ce\u0161tina",et:"Eesti",tt:"\u0422\u0430\u0442\u0430\u0440\u0447\u0430",ba:"\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430",cv:"\u0427\u0103\u0432\u0430\u0448\u043B\u0430",sk:"Sloven\u010Dina",ro:"Rom\xE2n\u0103",no:"Norsk",lv:"Latvie\u0161u",az:"Az\u0259rbaycan dili",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",sv:"Svenska",nl:"Nederlands",tk:"T\xFCrkmen",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",da:"Dansk",uz:"O\u2018zbek",th:"\u0E20\u0E32\u0E29\u0E32\u0E44\u0E17\u0E22",id:"Bahasa Indonesia",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",sl:"Sloven\u0161\u010Dina",bs:"Bosanski","pt-BR":"Portugu\xEAs brasileiro",fa:"\u0641\u0627\u0631\u0633\u06CC",vi:"Ti\u1EBFng Vi\u1EC7t",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",tl:"Tagalog",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",my:"\u1017\u1019\u102C\u1005\u102C",tr:"T\xFCrk\xE7e",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",ur:"\u0627\u0631\u062F\u0648",ky:"\u041A\u044B\u0440\u0433\u044B\u0437 \u0442\u0438\u043B\u0438",pa:"\u067E\u0646\u062C\u0627\u0628\u06CC",os:"\u0418\u0440\u043E\u043D",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",sw:"Kiswahili",kk:"\u049A\u0430\u0437\u0430\u049B\u0448\u0430",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",ab:"\u0410\u04A7\u0441\u0448\u04D9\u0430",eu:"Euskara",eo:"Esperanto"},Py={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"},kd=t=>{var e,i;return(i=(e=wu[t])!=null?e:wu[Py[t]])!=null?i:void 0};import{Subscription as Ly}from"@vkontakte/videoplayer-shared/es2015";import"@vkontakte/videoplayer-statistics/es2015";var Su=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 Cu=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Cu||{});var us=t=>t!=null?t:0,Ts=(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(us(i==null?void 0:i.top)-us(o==null?void 0:o.top)),left:Math.round(us(i==null?void 0:i.left)-us(o==null?void 0:o.left)),bottom:Math.round(us(i==null?void 0:i.bottom)-us(o==null?void 0:o.top)),right:Math.round(us(i==null?void 0:i.right)-us(o==null?void 0:o.left))}},vl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:us(e==null?void 0:e.width),height:us(e==null?void 0:e.height)}};var Tu="off";var j1=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:s,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:u,videoEpisodes:f,previewThumbsData:m,uiConfig:p,coreConfig:x,player:w,disabledControls:y,isInteractive:T,interactiveRanges$:C,isInteractiveTime$:E,replayInteractive:R,stopPlayer:I,hasInteractiveBranches:k,playPrevChapterDisabledTooltip:B,additionalButtons:F,additionalSettingsMenuItems:H,additionalContextMenuItems:W,playPrevVideo:Z,playNextVideo:ne,onVideoChanged:j,looped:_e=!1,statistics:ee,saveRate:fe,internalsExposure:ve,playerView:pe,playerId:Me})=>{var Dv,Fv,Hv;let Ve=Ft(K({},x),{configName:[...(Dv=x.configName)!=null?Dv:[],"ui"],isAudioDisabled:l,live:Ft(K({},(Fv=x.live)!=null?Fv:{}),{isLiveCatchUpMode:!!n})}),de=p,Ne=Uy.createRootTracer(de.features.tracer),se=Ne.createComponentTracer("Store"),P=w||new Vy(Ve,Ne,{playerId:Me});ve==null||ve.expose({corePlayer:P});let nt=new Fy,Be=new $u(nt,{loadTimeout:de.ads.loadTimeout,initTimeout:de.ads.initTimeout,runtimeTimeout:de.ads.runtimeTimeout,useAdmanFromNPM:de.ads.useAdmanFromNPM,volumeMultiplier:de.ads.volumeMultiplier,isVsidOriginal:de.ads.isVsidOriginal}),G=ma.getInstance(),ie=u==null?void 0:u.pictureInPictureApi,Oe=u==null?void 0:u.annotationsApi,et=u==null?void 0:u.slotsApi,xe=nt.createComponentLog("Store"),te,Ce,Ee={},qe=new Gc,it=new mm,ft="",dt=ae(!1),gt=ee&&ee.oneStat?ti(ee.oneStat.vsid$):Ir(void 0),ot=ae(Ws()),Ut=ae(!1),Qt=()=>m1(document,Q1.device.isIOS),Yt=(Hv=ie==null?void 0:ie.info.isActive$)!=null?Hv:new zy(!1),Gt=ae(0),Ae=ae(!1),jt=ae(!1),be=ae([]),Ie=Hy(P.events.fatalError$,P.events.managedError$).subscribe(c=>be.update(b=>[...b,c])),ce=Ir(!1,c=>{let b=P.events.fatalError$.subscribe(()=>c(!0));return()=>b.unsubscribe()}),Ge=c=>vt(null,null,function*(){var oe;let b=Object.values(Oy).includes(c);if(de.downloadVKLanguages&&(b&&de.updateBuiltinLanguages||!bf(c))){let Pe;try{Pe=yield Dy(c,Ih,kh)}catch(rt){(oe=ee==null?void 0:ee.oneStat)==null||oe.logError({errorType:"VKLangPack",fatal:!1}),G==null||G.report(rt,{errorType:"VKLangPack",fatal:!1})}Pe&&(_f({language:c,pack:Pe,fallback:de.defaultLanguage}),ze.set(c))}bf(c)&&ze.set(c)}),ze=ae(t),ue=ae(e);Ge(t);let Fe=(c,b)=>{let L=ye(ze);return $f(L,c,b,de.defaultLanguage)},$e=ae("thumb");$e.subscribe(c=>{c==="ads"&&P.info.playbackState$.getValue()&&yt()});let Xe=(()=>{let c=gi([ce,$e],([b,L])=>b?"crashed":L);return Ft(K({},c),{is:b=>ye(c)===b})})(),Lt=ae(),yt=()=>{Lt.set({muted:P.info.muted$.getValue()})},Vt=(()=>{let c=ae(new Set(y));return Ft(K({},c),{add:b=>{c.update(L=>new Set([...L].concat(b)))},remove:b=>{c.update(L=>{let oe=[...L];return new Set(Array.isArray(b)?oe.filter(Pe=>!b.includes(Pe)):oe.filter(Pe=>Pe!==b))})},includes:b=>{let L=ye(c);return Array.isArray(b)?b.every(oe=>L.has(oe)):L.has(b)}})})(),hi=ae({width:0,height:0}),Jt=null,_i=P.info.isBuffering$,Ii=Ir(_i.getValue(),c=>{let b=_i.subscribe(L=>{L&&Jt===null?Jt=window.setTimeout(()=>{c(_i.getValue()),Jt=null},de.loaderDelay):c(L)});return()=>{b.unsubscribe(),Jt&&clearTimeout(Jt)}});se.log("create store"),xe({message:"create store"});let mo=c=>{let b=c.container,L=()=>{Si=new MutationObserver(Pe=>{let{removedNodes:rt}=Pe[0];rt.length&&b.append(P.experimental.element$.getValue())}),Si.observe(b,{childList:!0})},oe=P.experimental.element$.getValue();if(oe)b.append(oe),L();else{let Pe=P.experimental.element$.pipe(Qy(rt=>!!rt),Gy()).subscribe(rt=>{b.append(rt),L()});it.add(Pe)}},vo=c=>{xe({message:`init video, config: ${JSON.stringify(c)}`}),T?mo(c):(Ky.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[qy()]}),P.initVideo(c)),se.log("init video",{isInteractive:T}),c.subtitles&&P.setExternalTextTracks(c.subtitles),te=c,ft=c.subtitlesForcedLanguage||""},Ct=new Iu,ii=c=>Ct.next(c),si=new Iu,We=new Iu,At=new Iu,Si=null,Qi={actionRewind$:si,actionSeek$:We,inPiP$:Yt,inFullscreen$:new Eu(c=>ot.subscribe(b=>c.next(b))),actionSetSubtitle$:At,nextMovie$:Ct},go={actionSeek$:We,playerSize$:new Eu(c=>hi.subscribe(b=>c.next(b))),inPiP$:Yt,inFullscreen$:new Eu(c=>ot.subscribe(b=>c.next(b))),isLoaderVisible$:new Eu(c=>Ii.subscribe(b=>c.next(b)))};if(ee){let{oneStat:c,thinOneStat:b,mediascopePixel:L,statSubscription:oe}=ee;c&&(T||oe.add(c.attachTo(P)),oe.add(c.attachToUi(Qi)),oe.add(c.attachToAds(Be.events)),c.authorize(s).catch(Pe=>{xe({message:`onestat auth error ${String(Pe)}`})}),L&&L.attachTo(P)),b&&(oe.add(b.attachTo(P,Be.events)),oe.add(b.attachToUi(go)),oe.add(b.attachToAds(Be.events)),b.updateContext({isMobile:ye(dt)}),b.authorize(s))}if(G){let c=new mm,b=(L,oe)=>c.add(L.subscribe(oe));if(b(P.events.managedError$,L=>{G.logIError(L)}),b(P.events.fatalError$,L=>{G.logIError(L,!0)}),ee){let{oneStat:L}=ee;L&&b(L.experimental.error$,oe=>{G.logIError(oe)})}G.sentrySubscription.add(c)}let xt=()=>{if(Q1.device.isIOS&&Ce)try{v1(Ce)}catch(c){xe({message:`exitIosSafariFullscreen failed: ${c}`})}};it.add(P.experimental.element$.subscribe(c=>{c&&(Ce=c,c.classList.add("player-media"),ga(ie)&&ie.updateVideoElement(),T&&c.setAttribute("pip","false"),pe==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(P.events.ended$.subscribe(()=>{var c;xt(),(c=a==null?void 0:a.onEnded)==null||c.call(a)})).add(P.events.looped$.subscribe(()=>{var c;(c=a==null?void 0:a.onLooped)==null||c.call(a)})).add(P.events.started$.subscribe(()=>vt(null,null,function*(){var b,L;ga(ie)&&(yield ie==null?void 0:ie.revealPictureInPicture());let c=P.info.muted$.getValue();(b=a==null?void 0:a.onStarted)==null||b.call(a),(L=Ee.onStarted)==null||L.call(Ee,c)}))).add(P.events.willSeek$.subscribe(({from:c,to:b})=>{var L;(L=a==null?void 0:a.onSeek)==null||L.call(a,c,b)})).add(P.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=a==null?void 0:a.onAutoplaySoundProhibited)==null||c.call(a)})).add(P.info.position$.subscribe(c=>{var L;let b=P.info.duration$.getValue();isFinite(b)&&b>0&&((L=a==null?void 0:a.onTimeupdate)==null||L.call(a,b,c),Be.setPosition(c,b))})).add(P.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(P.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(P.events.loadedMetadata$.subscribe(()=>{Ae.set(!0)})).add(P.info.is3DVideo$.subscribe(c=>{jt.set(c)})).add(P.info.isEnded$.subscribe(c=>{T&&(c?(E!=null&&E.getValue()&&Vt.add(id),Vt.add("PLAY_BUTTON")):Vt.remove("PLAY_BUTTON"))})).add(P.info.liveTime$.subscribe(c=>{var b;(b=a==null?void 0:a.onLiveTime)==null||b.call(a,c)})).add(P.info.isStalled$.subscribe(c=>{var b;(b=a==null?void 0:a.onStalledChanged)==null||b.call(a,c)})).add(P.info.isLiveEnded$.subscribe(c=>{var b;return c&&((b=a==null?void 0:a.onLiveEnded)==null?void 0:b.call(a))})).add(Be.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(Be.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(Be.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(Be.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(Be.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(Be.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(Be.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(Be.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(Be.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(Be.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(Be.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(Be.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(Be.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(Be.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 Ye=new mm,Vi=()=>{var rt,Tt,Rt;let{debugLog:c}=de,b,L="#9df7b7",oe="#efd169";if(c&&c!==!0){let{colors:Ht}=c;b=c.tag,L=(rt=Ht==null?void 0:Ht[0])!=null?rt:L,oe=(Rt=(Tt=Ht==null?void 0:Ht[1])!=null?Tt:Ht==null?void 0:Ht[0])!=null?Rt:oe}let Pe=b?`: ${b}`:"";Ye.add(P.events.log$.subscribe(Ht=>{console.debug(`%c sdk${Pe} `,`background:${L};`,`sdk component: ${Ht.component}`,Ht.message)})).add(nt.log$.subscribe(Ht=>{console.debug(`%c ui${Pe} `,`background:${oe};`,`ui component: ${Ht.component}.`,Ht.message)}))},Co=()=>{Ye.unsubscribe()},To=(c,b)=>{se.log("start camera manual rotation",{mx:c,my:b}),P.startCameraManualRotation(c,b)},sn=(c=!1)=>{se.log("stop camera manual rotation",{immediate:c}),P.stopCameraManualRotation(c)},O=(c,b,L)=>{se.log("move camera focus px",{xpx:c,ypx:b,dt:L}),P.moveCameraFocusPX(c,b,L)},tt=()=>{P.holdCamera()},Wt=()=>{P.releaseCamera()},Kt=Ir(P.info.position$.getValue(),c=>{let b,L,oe=()=>{let Pe=P.info.playbackState$.getValue(),rt=P.info.isLive$.getValue(),Tt=P.info.duration$.getValue(),Rt=P.info.position$.getValue();if(Pe&&[Ad.PLAYING,Ad.PAUSED].includes(Pe)){let Ht=rt?Rt-Tt:P.getExactTime();Ht!==L&&c(Ht),L=Ht}b=requestAnimationFrame(oe)};return oe(),()=>cancelAnimationFrame(b)}),mt=ti(P.info.playbackState$),oi=ti(P.info.currentBuffer$),bi=ti(P.info.isEnded$),mi=ti(P.info.isLive$),bt=de.features.playbackRate?ti(P.info.canChangePlaybackSpeed$):Ir(!1),ki=ti(P.info.liveBufferTime$),so=ti(P.info.volume$),bn=ti(P.info.muted$),$n=jc(P.info.predefinedQualityLimitType$.pipe(G1(c=>c===ps.TRAFFIC_SAVING)),P.info.predefinedQualityLimitType$.getValue()===ps.TRAFFIC_SAVING),pi=jc(P.info.predefinedQualityLimitType$.pipe(G1(c=>c===ps.HIGH_QUALITY)),P.info.predefinedQualityLimitType$.getValue()===ps.HIGH_QUALITY),ao=ti(P.info.autoQualityLimitingAvailable$),pr=ti(P.info.availableQualities$),lo=ti(P.info.availableQualitiesFps$),to=ti(P.info.chromecastState$),Dn=ti(P.info.chromecastDeviceName$),qo=ti(P.info.currentFormat$),Eo=ti(P.info.throughputEstimation$),fr=ti(P.info.videoBitrate$),Fn=ti(P.info.intrinsicVideoSize$),mr=ti(P.info.duration$),fs=ti(P.info.isAudioAvailable$),Yr=()=>{Jt&&clearTimeout(Jt),Jt=null},yn=gi([mr,mi],([c,b])=>b?-c:c),Hn=gi([mt],([c])=>c===Ad.PLAYING),xn=ti(P.info.atLiveEdge$),Qo=ti(P.info.atLiveDurationEdge$),Go=ti(P.info.position$),Un=gi([Go,mr],([c,b])=>isFinite(c)&&isFinite(b)&&!!b),vr=gi([to],([c])=>c===My.CONNECTED),Zr=ti(P.info.availableVideoStreams$),co=de.features.audioLanguages?ti(P.info.availableAudioStreams$):Ir([]),Ar=ti(P.info.currentVideoStream$),an=ti(P.info.currentAudioStream$),wn=c=>{c.language&&mf(c.language),P.setVideoStream(c)},zn=(c,b)=>{P.setAudioStream(c),Gi(b)&&(c.language&&mf(c.language),de.features.userVideoPrefs&&i&&hf(de.userSalt,String(i),{audioTrackId:c.id}))},gr=c=>{let b;if(c.length===1&&(b=c.at(0)),b!=null||(b=c.find(oe=>"isDefault"in oe&&oe.isDefault)),de.features.userVideoPrefs&&i){let oe=eu(de.userSalt,String(i));if(oe!=null&&oe.audioTrackId){let Pe=c.find(rt=>rt.id===oe.audioTrackId);b=Pe!=null?Pe:b}}let L=Jh();return L&&(b!=null||(b=c.find(({language:oe})=>L===oe))),b!=null||(b=c.at(0)),b},Wn=c=>{se.log("change audio stream",{id:c});let b=P.info.availableAudioStreams$.getValue().find(L=>L.id===c);b&&zn(b,!0)},ho=!1;it.add(P.info.availableAudioStreams$.subscribe(c=>{if(!ho&&c.length){let b=gr(c);b&&(P.setAudioStream(b),ho=!0)}})),co.subscribe(c=>{var b;(b=a==null?void 0:a.onAvailableAudioStreamsChanged)==null||b.call(a,c.map(({label:L="",id:oe="",language:Pe=""})=>({label:L,language:Pe,id:oe})))}),an.subscribe(c=>{var b;return c&&((b=a==null?void 0:a.onAudioStreamChanged)==null?void 0:b.call(a,c.id))});let Xr=!1;it.add(P.info.availableVideoStreams$.subscribe(c=>{if(!Xr&&c.length){let b=gr(c);b&&(P.setVideoStream(b),Xr=!0)}}));let Sn=ae(void 0),ut=ti(P.info.isAutoQualityEnabled$,c=>c&&Sn.set(void 0)),ai=ti(P.info.currentQuality$,()=>Sn.set(void 0)),ln=gi([Sn,ai],([c,b])=>c!=null?c:b),Cn=gi(qo,c=>c!==Pd.MPEG),Pr=gi([pr,lo,ut,ln,Cn],([c,b,L,oe,Pe])=>{let rt=[];Pe&&rt.push({value:"auto",displayValue:Fe("auto_quality_option"),selected:L});let Tt=c.filter(Rt=>!Ny(Rt));for(let Rt of Tt){let Ht=b[Rt];rt.push({value:Rt,displayValue:`${Rt}${Ht?U1(Ht):""}`,selected:L?!1:Rt===oe})}return rt}),Io=ti(P.info.currentPlaybackRate$),dn=gi([Io,xn,Qo],([c,b,L])=>{let oe=L||T?1:de.controls.playbackRateMin,Pe=b?1:de.controls.playbackRateMax,rt=de.controls.playbackRateStep,Tt=[];for(let Rt=oe;Rt<=Pe;Rt+=rt)Tt.push({value:Rt,displayValue:Rt===1?Fe("playback_rate_1"):Fe("playback_rate",{multiplier:Rt.toString(10)}),selected:c===Rt});return Tt}),fi={displayValue:Fe("subtitles_off"),value:Tu,language:""},Ai=ae(K({},fi)),ko=de.features.subtitles?ti(P.info.availableTextTracks$):Ir([]),Kn=zh(),hr=gi([ko,Ai],([c,b],L)=>{var rt;let oe=[],Pe=c.find(({id:Tt})=>Tt===b.value);if(Pe!=null&&Pe.url){let[,Tt]=(rt=Kn.find(Pe.url))!=null?rt:[];if(Tt){L(Tt);return}qe.download(Pe.url).then(Rt=>{if(!Rt||qe.isDestroyed())return;let Ht=new z1,Vs=Pe.language;if(Vs){let U0=!!Pe.isAuto,z0=Ht.parse(Rt,Vs);oe.push({lang:Vs,subtitles:z0,isAuto:U0,id:Pe.id})}Kn.add(Pe.url,oe),ye(Ai).value===b.value&&L(oe)}).catch(Rt=>{var Ht;(Ht=ee==null?void 0:ee.oneStat)==null||Ht.logError({errorType:"Subtitles download",fatal:!1}),G==null||G.report(Rt,{errorType:"Subtitles download",fatal:!1})})}L(oe)}),Lr=gi([Io,Hn,Ai],([c,b,L],oe)=>{let Tt;if(P.info.isLive$.getValue()&&b&&L.value!==fi.value){let Ht=()=>{let Vs=1e3/(3*c);Tt=setTimeout(Ht,Vs),oe(Date.now())};return Ht(),()=>clearTimeout(Tt)}}),_r=gi([ko,Ai],([c,b])=>{if(!c.length)return[];let L=[];for(let{language:oe,isAuto:Pe,id:rt}of c){let Tt=oe&&kd(oe);oe&&Tt&&L.push({displayValue:Pe?Fe("subtitles_auto",{language:Tt}):Tt,value:rt,selected:(b==null?void 0:b.value)===rt,isAuto:Pe,language:oe})}return L.length?(L.unshift(Ft(K({},fi),{selected:(b==null?void 0:b.value)===fi.value})),L):[]}),qn={available:[],prev:[]},Qn=()=>{var b,L;let c=P.experimental.getCurrentTime$.getValue();return(L=(b=c==null?void 0:c())!=null?b:Ce==null?void 0:Ce.currentTime)!=null?L:0},Ao=gi([Kt,Ai,hr,Lr],([c,b,L,oe])=>{var rt;let Pe=P.info.isLive$.getValue();if(Pe&&qn.prev!==L){let Tt=L.find(({id:Ht})=>Ht===b.value),Rt=qn.prev.find(({id:Ht})=>Ht===b.value);if(Tt){let Ht=Ft(K({},Tt),{subtitles:[...(rt=Rt==null?void 0:Rt.subtitles)!=null?rt:[],...Tt.subtitles]});qn.available=[Ht],qn.prev=L}}if(b&&b.value!==fi.value){let Tt=Pe?Qn():c,Rt=Pe?qn.available:L;return q1(Tt,b,Rt,Pe)}}),Gn=gi([Ao],([c])=>c!=null&&c.texts?c.texts:[]);it.add(Ai.subscribe(c=>{var b,L;if(c.value===fi.value)(b=a==null?void 0:a.onSubtitleOff)==null||b.call(a);else{let oe=Object.entries(wu).find(([Pe,rt])=>rt===c.displayValue);(L=a==null?void 0:a.onSubtitleOn)==null||L.call(a,oe?oe[0]:"",c.value)}}));let br=ae(!0),ni=gi([oi,yn,Go,ki],([c,b,L,oe])=>{var Rt;let Pe=(Rt=c==null?void 0:c.end)!=null?Rt:0;if(!oe)return Pe/b;let Tt=-L+oe-b;return(Pe-Tt)/b}),cn=ti(P.info.availableSources$),$r=gi([cn],([c])=>Object.keys((c==null?void 0:c[Pd.MPEG])||{}).length>0),Tn=()=>{var L,oe,Pe;let c=Object.keys(((oe=(L=P.info.availableSources$)==null?void 0:L.getValue())==null?void 0:oe[Pd.MPEG])||{}),b=Ry(c)||Wy.Q_144P;return(Pe=te.sources[Pd.MPEG])==null?void 0:Pe[b]},pt=()=>{var b;let c=Tn();if(c)se.log("download video",{url:c}),Fh(c,((b=te==null?void 0:te.meta)==null?void 0:b.title)||"video");else{let L="There is no URL for download video";se.log("download video",{message:L}),xe({message:L})}},ci=()=>{xe({message:"toggle muted"});let c=P.info.muted$.getValue();P.info.volume$.getValue()===0&&!c?ji(Fi(),!1):Yo(!c,!1)},io=()=>{var c;if(Dt.ui.settingsMenu.visible$.set(!1),!ye(Dt.ui.settingsSubMenu.visible$)){let b=ye(Dt.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&b){let oe=vl(b),Pe={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:oe,position:Pe,name:"settings"})}}se.log("close settings menu")},jo=(c,b=()=>Promise.resolve())=>vt(null,null,function*(){var Pe;Dt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Dt.ui.settingsMenu.visible$.set(!0),yield b();let L=ye(Dt.ui.settingsMenu.ref$),oe=Oa();if((Pe=a==null?void 0:a.uiInfo)!=null&&Pe.onSettingsMenu&&L&&oe){let Tt=vl(L),Rt=Ts(L,oe);a.uiInfo.onSettingsMenu({visible:!0,size:Tt,position:Rt,name:"settings"})}se.log("open settings menu",{wasOpenedByKeyboard:c})}),ui=(c,b=!1)=>{var rt;Dt.ui.settingsSubMenu.visible$.set(!1);let L=ye(Dt.ui.settingsMenu.ref$),oe=Oa(),Pe=ye(Dt.ui.settingsMenu.visible$);if((rt=a==null?void 0:a.uiInfo)!=null&&rt.onSettingsMenu&&L&&oe)if(Pe&&!b){let Rt=vl(L),Ht=Ts(L,oe);a.uiInfo.onSettingsMenu({visible:!0,size:Rt,position:Ht,name:"settings"})}else{let Rt=vl(c),Ht={top:0,left:0,bottom:0,right:0},Vs=ye(Dt.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:Rt,position:Ht,name:Vs})}se.log("close settings sub menu")},un=(c,b)=>{var oe;Dt.ui.settingsSubMenu.visible$.set(!0),Dt.ui.settingsSubMenu.ref$.set(b),Dt.ui.settingsSubMenu.name$.set(c);let L=Oa();if((oe=a==null?void 0:a.uiInfo)!=null&&oe.onSettingsMenu&&b&&L){let rt=vl(b),Tt=Ts(b,L);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:rt,position:Tt})}se.log("open settings sub menu",{name:c})},Fi=()=>{var b;let c=Math.max(de.volumeMinRestore,(b=Yc())!=null?b:0);return c===0?de.volumeDefault:c},Gi=c=>{let b=de.features.savePreferredStatesOnUserActionOnly;return!b||b&&!c},ji=(c,b)=>{let L=c===0?Fi():c,oe=P.info.muted$.getValue();xe({message:`set volume, volume: ${c}, preferredVolume: ${L}`});let Pe=!l||Xe.is("ads");oe&&c>0&&Pe&&(oe=!1,Gi(b)&&pf(!1)),P.setVolume(c,oe),Be.setVolume(c),Gi(b)&&af(L)},Yo=(c,b)=>{let L=P.info.volume$.getValue();xe({message:`set muted, currentVolume: ${L}, mute: ${c}`});let oe=Xe.is("ads");if(P.setMuted(c,oe),Be.setVolume(c?0:L),Gi(b)&&(!oe||!c)&&pf(c),!c&&L===0){let Pe=Fi();P.setVolume(Pe),Gi(b)&&af(Pe),Be.setVolume(Pe)}},En=ae(!1),Mr=c=>{var b,L;se.log("set looped",{isLooped:c}),En.set(c),P.setLooped(c),(L=(b=a==null?void 0:a.uiInfo)==null?void 0:b.onLoopedChanged)==null||L.call(b,c)};Mr(_e);let Zo=()=>{var c,b;(b=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||b.call(c)},Vr=(c,b=!1)=>{var L;xe({message:`set autoplayNextEnabled, value: ${c}`}),se.log("set autoplay next enabled",{autoplayNextEnabled:c}),Dt.ui.autoplayNextEnabled$.set(c),i1(c),b&&((L=a==null?void 0:a.onSetAutoplayNextEnabled)==null||L.call(a,c))},Rr=c=>{xe({message:`set timerNextVideoRunning, value: ${c}`}),se.log("set timer next video running",{timerNextVideoRunning:c}),Dt.ui.timerNextVideoRunning$.set(c)},Po=(c=!0)=>{var L;let b=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{b=(L=a==null?void 0:a.onPrevVideoClick)==null?void 0:L.call(a)}catch(oe){xe({message:"onPrevVideoClick callback failed to execute"})}j(!0),b&&Z()},jn=(c=!0)=>{var L;let b=!0;if(c&&(a!=null&&a.onNextVideoClick))try{b=(L=a==null?void 0:a.onNextVideoClick)==null?void 0:L.call(a)}catch(oe){xe({message:"onNextVideoClick callback failed to execute"})}j(!1),b&&ne()},Or=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},Yn=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},st=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},Pt=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},$i=()=>{P.prepare()},uo=()=>{ur(Dt);let c=ye(Dt.ui.controls.disabledControls$),b=ye(Dt.playerPhase),L={playerPhase:b,isInteractive:T,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(xe({message:"toggle play"}),b==="ads"){L.action="play",se.log("toggle adman play",L),Be.togglePlay();return}let oe=()=>{var rt;xe({message:"toggle play, call player.play"}),L.action="play",P.play(),(rt=a==null?void 0:a.onPlay)==null||rt.call(a)},Pe=()=>{var rt;xe({message:"toggle play, call player.pause"}),L.action="pause",P.pause(),(rt=a==null?void 0:a.onPause)==null||rt.call(a)};if(P.info.isEnded$.getValue()){if(xe({message:"toggle play, video ended, seek to 0"}),si.next(),We.next(Es.REWIND),T){R==null||R();return}P.seekTime(0),oe()}else P.info.playbackState$.getValue()!==Ad.PLAYING?oe():Pe();se.log("toggle play",L)},Ri=(c,{changeReason:b="default",appliesTo:L="to-video"}={},oe)=>{xe({message:`set quality, quality: ${c}`}),se.log("set quality",{quality:c}),P.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Pe}=de.features;Zc(),c!=="auto"?(Pe?(Xc({type:"exact_quality",quality:c,videoId:i},L),P.setPredefinedQualityLimits(ps.UNKNOWN)):lf(i,c),Sn.set(c),P.setQuality(c)):Pe&&b==="default"&&(In("auto_quality",L,oe),ye($n)&&Yi(!1,void 0,oe),ye(pi)&&Oi(!1,void 0,oe))},Yi=(c,b="as-default",L)=>{xe({message:`set trafficSavingEnabled, value: ${c}`}),se.log("set traffic saving enabled",{trafficSavingEnabled:c});let oe=c?ps.TRAFFIC_SAVING:ps.UNKNOWN;de.features.qualityDetailsSubMenuEnabled?(_o(oe,b,L),od(!1)):(P.setPredefinedQualityLimits(oe),Gi(L)&&od(c))},Oi=(c,b="as-default",L)=>{xe({message:`set highQualityEnabled, value: ${c}`}),se.log("set high quality enabled",{highQualityEnabled:c}),_o(c?ps.HIGH_QUALITY:ps.UNKNOWN,b,L)},_o=(c,b,L)=>{c!==ps.UNKNOWN&&(ye(ao)&&!ye(ut)&&Ri("auto",{appliesTo:b,changeReason:"limit-changed"},L),In(c,b,L)),P.setPredefinedQualityLimits(c)},In=(c,b,L)=>{Gi(L)&&(Xc({type:c,videoId:i},b),b==="as-default"&&Xc({type:c,videoId:i},"to-video"))},Lo=(c,b=!0)=>{se.log("set playback rate",{playbackRate:c}),P.setPlaybackRate(c),de.features.saveRate&&fe&&!P.info.isLive$.getValue()&&b&&e1(c)},Mo=()=>{let c=ye(dn),b=c.findIndex(({selected:oe})=>oe);if(b===c.length-1)return;let L=c[b+1];Lo(L.value)},Vo=()=>{let c=ye(dn),b=c.findIndex(({selected:oe})=>oe);if(b===0)return;let L=c[b-1];Lo(L.value)},Zn=(c=Ft(K({},fi),{selected:!1}),b)=>{se.log("set subtitles",K({},c)),c.value!==fi.value&&At.next(c.isAuto?c.value+"_auto":c.value),Ai.set(c),Gi(b)&&(gf(c.value===fi.value?void 0:c.language),de.features.userVideoPrefs&&i&&hf(de.userSalt,String(i),{subtitleTrackId:c.value===fi.value?void 0:c.value}))},kn=c=>{se.log("toggle subtitles");let b=ye(Ai);(b==null?void 0:b.value)===fi.value?xr(c):Xn(c)},yr=(c,b)=>{se.log("change subtitle",{enabled:c}),c?xr(!0,b):Xn(!0)},xr=(c,b)=>{se.log("subtitle on");let L=ye(_r),oe=ye(ze),Pe=ft!=null?ft:oe,rt;b&&(rt=L.find(Tt=>Tt.value===b)),rt!=null||(rt=L.filter(Tt=>Tt.value!==fi.value).find(Tt=>Tt.language===Pe)),Zn(rt!=null?rt:L[1],c)},Xn=c=>{se.log("subtitle off"),Zn(void 0,c)};it.add(P.info.availableTextTracks$.subscribe(c=>{var L;function b(){let oe=[];for(let{language:Pe,isAuto:rt,id:Tt}of c){let Rt=Pe&&kd(Pe);Pe&&Rt&&oe.push({id:Tt,language:Pe,title:rt?Fe("subtitles_auto",{language:Rt}):Rt})}return oe}(L=a==null?void 0:a.onAvailableSubtitlesChanged)==null||L.call(a,b())}));let Nr=ae(!0),Jr=c=>{Nr.set(c)},Ke=(c,b,L=!0)=>{var oe;if(xe({message:`seek to time, time: ${c}`}),se.log("seek to time",{time:c,action:b,forcePrecise:L}),We.next(b),P.info.isLive$.getValue()){let Pe=P.info.duration$.getValue(),rt=Math.min(0,Pe+c);P.seekTime(rt,L)}else{if(E!=null&&E.getValue())return;P.info.isEnded$.getValue()&&(xe({message:"seek after ended, call callbacks.onPlay"}),(oe=a==null?void 0:a.onPlay)==null||oe.call(a)),P.seekTime(Ov(c),L)}},qt=c=>{xe({message:`seek to episode start time: ${c}`}),se.log("seek to episode start time",{time:c}),Ke(c,Es.EPISODE,!0)},yi=(c,b)=>{xe({message:`seek to percent, percent: ${c}`}),se.log("seek to percent",{percent:c,action:b});let L=ye(yn)*c;Ke(L,b,!1)},pn=c=>{xe({message:`seek external, time: ${c}`}),se.log("seek external",{time:c}),We.next(Es.UNKNOWN),P.seekTime(P.info.isLive$.getValue()?-c:c)},Ro=c=>{var oe,Pe;let b=(oe=c.max)!=null?oe:"none",L=(Pe=c.min)!=null?Pe:"none";xe({message:`set auto quality limitation. Max: ${b}. Min: ${L}`}),se.log("set auto quality limits",{max:b,min:L}),P.setAutoQualityLimits(c)},Oo=c=>{xe({message:`seek external to episode start time: ${c}`}),se.log("seek external to episode start time",{time:c}),Ke(c,Es.EPISODE,!0)},No=c=>{xe({message:`set playback rate to: ${c}`}),se.log("set playback rate external",{playbackRate:c}),P.setPlaybackRate(c)},Jn=ae(void 0),es=ae(!1),Ls=c=>{xe({message:`start scrubbing, progress: ${c}`}),se.log("start scrubbing",{progress:c}),es.set(!0),wr(c)},wr=c=>{Jn.set(c)},ts,X,je=()=>{Jn.set(void 0),es.set(!1)},Bt=()=>{clearTimeout(X),clearTimeout(ts),ts=window.setTimeout(()=>{je()},500),Ce==null||Ce.removeEventListener("seeked",Bt)},ri=c=>{xe({message:`complete scrubbing, progress: ${c}`}),se.log("complete scrubbing",{progress:c}),yi(c,Es.SLIDER),ye(Dt.ui.isMobile)&&ye(Dt.state.currentFormat$)===Pd.HLS?(Ce==null||Ce.addEventListener("seeked",Bt),X=window.setTimeout(()=>{Bt()},300)):je()},Ci=gi([Kt,yn,Jn],([c,b,L],oe)=>{oe(By(L)?L*b:c)}),Ti=ae(!1),Hi=()=>{Ti.set(!0)},er=()=>{Ti.set(!1)},Ei=gi([hi],([{width:c}],b)=>{let L=N1(c);b(L)}),xi=F.filter(c=>Hh(c)),Bo=gi([Ei,dt],([c,b])=>b?xi.filter(L=>!L.hideOnMobile):xi.filter(L=>{var oe;return!((oe=L.hideOnDesktopGridTypes)!=null&&oe.includes(c))})),bo=ae(F.filter(c=>Uh(c))),Sr=gi([bo,Ei],([c,b])=>c.filter(L=>{var oe;return!((oe=L.hideOnDesktopGridTypes)!=null&&oe.includes(b))})),$o=gi([Sr,Bo],([c,b])=>[...de.features.additionalButtonsDesktopControlPanelRight?c.filter(L=>L.type==="desktop-control-panel-right"):[],...de.features.additionalButtons?b.map((L,oe)=>{var Pe;return{id:oe,weight:oe,type:"desktop-control-panel-right",testId:L.testId,icon:L.iconUrl,onClick:L.onClick,ariaLabel:(Pe=L.ariaLabel)!=null?Pe:L.tooltip,tooltipText:L.tooltip}}):[]]),tr=ae(H),wt=gi([tr],([c])=>de.features.additionalSettingsMenuItems?c.map(b=>b.type==="SWITCH"?Ft(K({},b),{onClick:b.onChangeEnabled}):b):[]),$t=(c,b)=>{let L=ye(bo).map(oe=>oe.id!==c?oe:K(K({},oe),b));bo.set(L)},po=c=>{let b=ye(bo);if(b.some(L=>L.id===c.id)){xe({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),bo.set(b)},Xo=c=>{let b=ye(bo);if(!b.some(L=>L.id===c)){xe({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}b=b.filter(L=>L.id!==c),bo.set(b)},Zi=c=>{We.next(Es.LIVE),xe({message:"live switch to low latency "+c}),se.log("live switch to low latency "+c),P.setLiveLowLatency(c)},li=(c,b)=>{let L=ye(tr).map(oe=>oe.id!==c?oe:K(K({},oe),b));tr.set(L)},Ui=c=>{let b=ye(tr);if(b.some(L=>L.id===c.id)){xe({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),tr.set(b)},Ms=c=>{let b=ye(tr);if(!b.some(L=>L.id===c)){xe({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),tr.set(b)},Br=ae(W),sc=gi([Br],([c])=>de.features.additionalContextMenuItems?c:[]),Yu=(c,b)=>{let L=ye(Br).map(oe=>oe.id!==c?oe:K(K({},oe),b));Br.set(L)},ac=c=>{let b=ye(Br);if(b.some(L=>L.id===c.id)){xe({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),Br.set(b)},Zu=c=>{let b=ye(Br);if(!b.some(L=>L.id===c)){xe({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),Br.set(b)},lc=gi([dt,ce],([c,b],L)=>{L(c&&b)}),Xu=()=>{We.next(Es.LIVE),xe({message:"switch to active live"}),se.log("switch to active live"),P.seekTime(0),P.info.playbackState$.getValue()!==Ad.PLAYING&&Dt.actions.internal.togglePlay()},dc=()=>{se.log("skip adman"),Be.skip()},Ju=(c=!0)=>{var oe;ur(Dt),xe({message:`switch from ads to video, callPlay: ${c}`}),se.log("switch from ads to video",{callPlay:c}),$e.set("video"),c&&P.play(),l&&Yo(!0,!0);let b=(oe=ye(Lt))==null?void 0:oe.muted,L=!P.info.muted$.getValue();b!==void 0&&!L&&Yo(b,!0),Lt.set(void 0)},cc=()=>{ur(Dt),xe({message:"switch from video to ads"}),se.log("switch from video to ads"),Dt.actions.internal.pause(),xt(),$e.set("ads")},ep=c=>{ur(Dt);let b=c?"LiveWaitingStart":"thumb";se.log("set live waiting start",{state:c,playerPhase:b}),$e.set(b)},uc=c=>{ur(Dt);let b=c?"LiveWaitingRecover":"thumb";se.log("set live waiting recover",{state:c,playerPhase:b}),$e.set(b)},tp=c=>{ur(Dt);let b=c?"LiveWaitingRecord":"thumb";se.log("set live waiting record",{state:c,playerPhase:b}),$e.set(b)},pc=()=>(ur(Dt),se.log("get debug text data"),Bh(P,te,Dt,Ne.getTraceId())),ip=()=>(ur(Dt),JSON.stringify(Ne.getFinishedSpans())),fc=()=>(ur(Dt),Dh(P,te,Dt)),Oa=()=>Ce,mc=()=>{xe({message:"toggle chromecast"}),se.log("toggle chromecast"),P.toggleChromecast()},wl=c=>{var L;if(ur(Dt),P.info.isEnded$.getValue())return;let b=!c;if(ye(Dt.playerPhase)==="ads"){xe({message:`pause ads, internalCall: ${b}`}),se.log("pause ads",{internalCall:b}),Be.pause();return}xe({message:`pause video, internalCall: ${b}`}),se.log("pause video",{internalCall:b}),b&&((L=a==null?void 0:a.onPause)==null||L.call(a)),P.pause()},Sl=c=>{var L;ur(Dt);let b=!c;if(ye(Dt.playerPhase)==="ads"){xe({message:`play ads, internalCall: ${b}`}),se.log("play ads",{internalCall:b}),Be.play();return}xe({message:`play video, internalCall: ${b}`}),se.log("play video",{internalCall:b}),b&&((L=a==null?void 0:a.onPlay)==null||L.call(a)),P.play()},op=c=>{ur(Dt);let b=!c;if(ye(Dt.playerPhase)==="ads"){xe({message:"player cannot be stopped during ads via external method"});return}xe({message:`player will be stopped, internalCall: ${b}`}),I==null||I()},Cl=(c,b)=>{ur(Dt),xe({message:`first start, show ads: ${c}, internalCall: ${!b}`}),se.log("first start",{showAds:c,external:b}),c?$e.set("ads"):($e.set("video"),b?P.play():Dt.actions.internal.togglePlay())},Tl=()=>(xe({message:"getting time codes"}),f),El=()=>{let c=Tl();if(!c||[0,1].includes(c.length))return;let b=P.info.position$.getValue();return c.find(L=>L.time>b)},np=c=>{let b=c;b||(b=El());let L=P.info.position$.getValue();se.log("seek to next episode",K({currentTime:L},b)),b&&(xe({message:"seek to next episode"}),Ke(b.time,Es.EPISODE,!0))},vc=()=>{let c=Tl();if(!c||[0,1].includes(c.length))return;let b=P.info.position$.getValue(),L=c.findIndex(Pe=>Pe.time>b),oe=L===-1?c.length-2:L-2;if(!(oe<0))return c[oe]},rp=c=>{let b=c;b||(b=vc());let L=P.info.position$.getValue();se.log("seek to prev episode",K({currentTime:L},b)),b&&(xe({message:"seek to prev episode"}),Ke(b.time,Es.EPISODE,!0))},Ze=()=>(xe({message:"getting preview thumbs data"}),se.log("get preview thumbs data",K({},m)),m),di=()=>vt(null,null,function*(){let c=ie==null?void 0:ie.isActive(),b="none";ie!=null&&ie.isActive()?(b="exit",yield ie==null?void 0:ie.exit()):(b="request",yield ie==null?void 0:ie.request()),se.log("toggle picture in picture",{isActive:c,action:b})}),Do=(c=-90)=>{se.log("rotate video",{alphaDiff:c}),Gt.update(b=>b+c)},is=ae([]);C==null||C.subscribe(c=>{let b=[];for(let L=0;L<c.length;L++){let{range:[oe,Pe],subjects:rt}=c[L];L===0&&oe!==0&&b.push({time:0,text:"",interactive:!1,completed:!0}),b.push({time:oe/1e3,text:"",interactive:!0,completed:de.features.interactiveTimeOpenUri?!rt.length||rt.every(Tt=>Tt.isRemoved):!rt.length}),Pe!==1/0&&b.push({time:Pe/1e3,text:"",interactive:!1,completed:!0})}is.set(b)});let fn=ae(!1);E==null||E.subscribe(c=>{c&&ye(es)&&je()});let Ov=c=>{if(!T)return c;let b=ye(is),L=ye(yn),Pe=ye(Go)/L,rt=b.find(Tt=>Tt.interactive&&!Tt.completed&&Tt.time>Pe);return typeof(rt==null?void 0:rt.time)=="number"?Math.min(c,rt.time-.05):c},D0=()=>{Dt.ui.episodes.panelOpened$.set(!1)},F0=()=>{se.log("destroy store"),clearTimeout(X),clearTimeout(ts),it.unsubscribe(),Ye.unsubscribe(),P.destroy(),Be.destroy(),ee==null||ee.destroy(),G==null||G.destroy(),Ie.unsubscribe(),Si==null||Si.disconnect(),Si=null,qe.destroy()},H0=gi([xn,Xe,bt],([c,b,L])=>p.features.doubleForwardAvailable&&!c&&b==="video"&&L),sp=ae(!1),Nv=2,gc=null,Bv=c=>{if(!ye(Hn)&&c)return;let b=P.info.currentPlaybackRate$.getValue();c?b!==Nv&&(gc=b,Lo(Nv,!1),sp.set(!0)):(gc&&Lo(gc,!1),sp.set(!1),gc=null)};Xe.subscribe(c=>{c!=="video"&&Bv(!1)});let Dt={interfaceLanguage$:ze,isCyrillicRelatedInterface$:ue,initVideo:vo,videoId:i,isClip:o,playerPhase:Xe,vsid:gt,state:{positionExact$:Kt,positionWithScrubbing$:Ci,duration$:yn,playbackState$:mt,isPlaying$:Hn,isLoaderVisible:Ii,bufferedProgress$:ni,isLive$:mi,canChangePlaybackSpeed$:bt,isActiveLive$:xn,isOldestAvailableLive$:Qo,isRewindableLive$:Un,isEnded$:bi,muted$:bn,volume$:so,trafficSavingEnabled$:$n,highQualityEnabled$:pi,autoQualityLimitingAvailable$:ao,availableVideoStreams$:Zr,availableAudioStreams$:co,videoStream$:Ar,audioStream$:an,currentQuality$:ln,isAutoQualityEnabled$:ut,availableQualities$:Pr,currentPlaybackRate$:Io,availablePlaybackRates$:dn,currentSubtitle$:Ai,availableTextTracks$:ko,availableSubtitlesList$:_r,currentSubtitleCaptions$:Gn,isAutoSubtitleCaptionVisible$:br,chromecastState$:to,chromecastDeviceName$:Dn,chromecastConnected$:vr,currentFormat$:qo,throughputEstimation$:Eo,videoBitrate$:fr,videoSize$:Fn,errorLog$:be,crashed$:ce,isAudioAvailable$:fs,isAudioDisabled:!!l,canDownload:de.features.download&&!!d,availableSources$:cn,hasMpegSources$:$r,isInteractive:T,showInteractiveGraph:de.features.interactiveGraph,showSeekToInteractive:de.features.seekToInteractive,showPlayPrevChapter:de.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:de.features.interactiveTimeIndicator&&!!ye(is).length,interactiveEpisodes$:is,isInteractiveTime$:E?ti(E):ae(!1),isInteractiveExpectation$:fn,hasInteractiveBranches:k,playPrevChapterDisabledTooltip:B,looped$:En,loadedMetadata$:Ae,isAutoQualityAvailable$:Cn},ui:{t:Fe,controlsVisible:ae(!1),touched:ae(!1),controls:{prevButton:ae(void 0),playButton:ae(void 0),replayButton:ae(void 0),nextButton:ae(void 0),playPrevChapterButton:ae(void 0),seekToInteractiveButton:ae(void 0),interactiveGraphButton:ae(void 0),liveButton:ae(void 0),time:ae(void 0),episodes:ae(void 0),volume:ae(void 0),subtitles:ae(void 0),settings:ae(void 0),context:ae(void 0),chromecast:ae(void 0),pip:ae(void 0),fullscreen:ae(void 0),vkLogo:ae(void 0),interactiveTimeIndicator:ae(void 0),timeline:ae(void 0),autoplayNextToggle:ae(void 0),additionalButtons:F.length?F.reduce(c=>[...c,ae(void 0)],[]):[],disabledControls$:Vt},modals:{hotKeyMap:{show:ae(!1),data:ae({title:"",closeBtnText:"",groups:[]})}},isFullscreen:ot,isFullscreenOpenedByKeyboard:Ut,rotateAlpha:Gt,isAutoplay:ae(!1),debugPanelVisible:ae(!1),episodes:{panelOpened$:ae(!1),openedByKeyboard$:ae(!1)},contextMenu:{visible$:ae(!1),btnRef$:ae(void 0),openedByBtnKeyboard$:ae(!1),openedByHotKey$:ae(!1),lastActiveElem$:ae(void 0),showContextMenuBtn$:ae(!1),position$:ae({top:0,left:0})},playerSize:hi,isMobile:dt,mobileNotReportControlHidden$:lc,icon3DVideoVisible:ae(!1),scrubbingInProgress:es,volumeChangingInProgress:Ti,is3DVideo:jt,currentGridType$:Ei,additionalButtonsDeprecated$:Bo,additionalDesktopControlPanelRightButtons$:$o,additionalSettingsMenuItems$:wt,additionalContextMenuItems$:sc,interactiveHideMobileControls:ae(!1),overlayContainer$:ae(void 0),startedByKeyboard$:ae(!1),autoplayNextEnabled$:ae(!1),timerNextVideoRunning$:ae(!0),settingsMenu:{visible$:ae(!1),ref$:ae(void 0),openedByBtnKeyboard$:ae(!1)},settingsSubMenu:{visible$:ae(!1),ref$:ae(void 0),name$:ae(void 0)},userActionsDisabled:ae(!1),hiddenControls:{volume:ae(!1),vkLogo:ae(!1),pip:ae(!1),chromecast:ae(!1),settings:ae(!1)},isControlsAvailable:Nr,controlBlocks:{topLeft:ae(void 0),topRight:ae(void 0),middle:ae(void 0),bottom:ae(void 0),bottomLeft:ae(void 0),bottomRight:ae(void 0)},videoTitleInfo:ae(void 0),doubleForwardOn$:sp,doubleForwardAvailable$:H0},ads:{position:ae(0),duration:ae(0),playbackState:ae("inactive"),canSkip:ae(!1),secondsToWatchBeforeSkip:ae(0),postrollPassed:ae(!1)},webApi:{pictureInPictureApi:ie,annotationsApi:Oe,slotsApi:et},actions:{internal:{preload:$i,firstStart:c=>Cl(c,!1),play:()=>Sl(!1),pause:()=>wl(!1),togglePlay:uo,toggleMuted:ci,openSettingsMenu:jo,closeSettingsMenu:io,openSettingsSubMenu:un,closeSettingsSubMenu:ui,setVolume:c=>ji(c,!1),setMuted:c=>Yo(c,!1),startVolumeChanging:Hi,stopVolumeChanging:er,setVideoStream:wn,setAudioStream:c=>zn(c,!1),setQuality:(c,b)=>Ri(c,b,!1),setTrafficSavingEnabled:(c,b)=>Yi(c,b,!1),setHighQualityEnabled:(c,b)=>Oi(c,b,!1),setPlaybackRate:Lo,incrementPlaybackRate:Mo,decrementPlaybackRate:Vo,setSubtitle:c=>Zn(c,!1),toggleSubtitle:()=>kn(!1),togglePictureInPicture:di,startScrubbing:Ls,progressScrubbing:wr,completeScrubbing:ri,toggleChromecast:mc,switchToActiveLive:Xu,switchFromAdsToVideo:Ju,switchFromVideoToAds:cc,skipAd:dc,setLiveWaitingStart:ep,setLiveWaitingRecover:uc,setLiveWaitingRecord:tp,getDebugTextData:pc,getTraceTextData:ip,getDebugPanelData:fc,getVideoElement:Oa,seekTime:(c,b,L)=>Ke(c,b,L),clearDelayedBufferingCheckTimeout:Yr,seekEpisodeStartTime:qt,seekToPercent:yi,getNextEpisode:El,seekToNextEpisode:np,getPrevEpisode:vc,seekToPrevEpisode:rp,startLogging:Vi,stopLogging:Co,startCameraManualRotation:To,stopCameraManualRotation:sn,moveCameraFocusPX:O,holdCamera:tt,releaseCamera:Wt,getVideoEpisodes:Tl,getPreviewThumbsData:Ze,downloadVideo:pt,addLanguage:_f,setLanguage:Ge,nextMovie:ii,videoRotate:Do,correctSeekTimeToInteractive:Ov,replayInteractive:R,setLooped:Mr,reportProblem:Zo,setAutoplayNextEnabled:Vr,setTimerNextVideoRunning:Rr,prevVideoClick:Po,nextVideoClick:jn,nextVideoAnnouncementShow:Or,nextVideoAnnouncementClick:Yn,nextVideoAnnouncementAuto:st,nextVideoAnnouncementCancel:Pt,checkFullscreenSupport:Qt,changeDoubleForwardOn:Bv},external:{firstStart:c=>Cl(c,!0),play:()=>Sl(!0),pause:()=>wl(!0),stop:()=>op(!0),seekTime:c=>pn(c),seekEpisodeStartTime:c=>Oo(c),setPlaybackRate:c=>No(c),setAutoQualityLimits:c=>Ro(c),setMuted:c=>Yo(c,!0),toggleSubtitle:()=>kn(!0),changeSubtitle:yr,setVolume:c=>ji(c,!0),returnFocusToEpisodes:D0,updateAdditionalSettingsItem:li,addAdditionalSettingsItem:Ui,removeAdditionalSettingsItem:Ms,updateAdditionalContextItem:Yu,addAdditionalContextItem:ac,removeAdditionalContextItem:Zu,updateAdditionalButton:$t,addAdditionalButton:po,removeAdditionalButton:Xo,setLiveLowLatency:Zi,hideControls:()=>Jr(!1),showControls:()=>Jr(!0),setQuality:c=>Ri(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>Yi(c,"to-video",!0),setHighQualityEnabled:c=>Oi(c,"to-video",!0),changeAudioStream:Wn}},callbacks:a,setUiCallbacks:c=>{Ee=K({},c)},getAdmanWrapper:()=>Be,getLogger:()=>nt,getPlayer:()=>P,destroy:F0};return Dt};function Nn(t,e,i,o){var f;let n=(f=e[i])==null?void 0:f.getBoundingClientRect(),s=o&&!!n&&!!(n.right-n.left),{top:l,left:d,bottom:a,right:u}=Ts(e[i],t||void 0);return{left:s?d:0,right:s?u:0,top:s?l:0,bottom:s?a:0,isDisplayed:s}}var jy=["disabledControls$","additionalButtons"],Yy=["interactiveTimeIndicator"],hl=(t,e,i,o)=>{if(t){for(let[n,s]of Object.entries(e))if(!jy.includes(n)){let l=o||Yy.includes(n);s.set(Nn(t,i,n,l))}}};var ku=(t,e,i)=>vt(null,null,function*(){yield xo(),e&&i&&(i.focus(),t.set(!1))});var Zy=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"></path></svg>');function vm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Zy();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:le}),we(),h(o),$(t,o)}function gm(t,e){U(e,!0);let[i,o]=De(),n=()=>S(a,"$contextMenuVisible$",i),s=v(e,"disabled",3,!1),l=v(e,"ariaLabel",3,""),d=Te(),a=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,m=d.ui.contextMenu.position$,p=d.ui.contextMenu.btnRef$,x=J(void 0);Qe(()=>{r(x)&&St(()=>{p.set(r(x))})});let w=E=>{let R=Qs(E),I=k1(r(x));m.set(I),u.set(R),a.set(!n())},y=()=>{f.set(!0)},T=()=>{f.set(!1)},C=g(()=>n()?"opened":"");Nt(t,{get className(){return r(C)},testId:"btn-context-menu",get disabled(){return s()},get ariaLabel(){return l()},click:w,focus:y,blur:T,get ariaExpanded(){return n()},get ref(){return r(x)},set ref(E){N(x,E,!0)},children:(E,R)=>{vm(E,{})},$$slots:{default:!0}}),z(),o()}var Xy=t=>{t.stopPropagation()},Jy=M("<div><!> <div></div> <div></div></div>"),e4={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
|
|
233
|
+
}`};function mv(t,e){F(e,!0),W(t,Ay);let i=h(e,"isMobile",3,!1),o=m(()=>e.iconState===l0.CONNECTED),r=m(()=>e.iconState===l0.CONNECTING);var s=Fe(),l=fe(s);{var d=u=>{var f=Iy(),v=_(f),p=_(v),x=_(p);Ee(),g(p);var w=P(p);Ee(),g(v);var y=P(v),C=_(y),T=_(C);g(C),Ee(),g(y),g(f),D(()=>{Ke(x,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)"),Ke(w,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)"),Ke(T,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)")}),b(u,f)},a=u=>{var f=ky();let v;var p=_(f),x=P(_(p),5);let w;g(p),g(f),D((y,C)=>{v=re(f,0,"svelte-8z1bf5",null,v,y),w=re(x,0,"svelte-8z1bf5",null,w,C)},[()=>({connecting:n(r)}),()=>({hidden:!n(o)})]),b(u,f)};V(l,u=>{i()?u(d):u(a,!1)})}b(t,s),U()}import{noop as My}from"@vkontakte/videoplayer-shared/es2015";function Gd(t,e){F(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"click",3,My),l=_e().ui.t,d=m(()=>e.state===Py.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));zt(t,{get ariaLabel(){return n(d)},get click(){return r()},testId:"btn-chromecast",get ref(){return i()},set ref(a){i(a)},children:(a,u)=>{mv(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),U()}import{noop as Ry}from"@vkontakte/videoplayer-shared/es2015";var Ly=Ie('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"></path></svg>');function gv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Ly();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(3),g(o),b(t,o)}var Vy=Ie('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708" clip-rule="evenodd" opacity=".7"></path></svg>');function hv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Vy();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var Du=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Oy=M('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),Ny=M('<span class="text svelte-1yhs2ga"> </span>'),Dy=M('<span class="text count svelte-1yhs2ga"> </span>'),By=M("<!> <!>",1),Hy={hash:"svelte-1yhs2ga",code:".text.svelte-1yhs2ga {padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.text.count.svelte-1yhs2ga {overflow:visible;}.text.mobile.svelte-1yhs2ga {padding:0 3px 0 4px;}.chevron-episodes.svelte-1yhs2ga {margin-bottom:-4px;}"};function Yd(t,e){var J,ve,se;F(e,!0),W(t,Hy);let[i,o]=Be(),r=()=>S(w,"$currentGridType$",i),s=()=>S(y,"$openedByKeyboard$",i),l=()=>S(C,"$panelOpened$",i),d=()=>S(T,"$isMobile",i),a=h(e,"position",3,0),u=h(e,"duration",3,0),f=h(e,"timeCodes",19,()=>[]),v=_e(),p=(ve=(J=v.callbacks)==null?void 0:J.onEpisodeChanged)!=null?ve:Ry,x=!!((se=v.callbacks)!=null&&se.onEpisodeClicked),w=v.ui.currentGridType$,y=v.ui.episodes.openedByKeyboard$,C=v.ui.episodes.panelOpened$,T=v.ui.isMobile,E=v.ui.t,R=j(void 0),A=de=>{var Se,ie,Ne;if(!!((Se=v.callbacks)!=null&&Se.onEpisodeClicked)){let pe=ea(de);y.set(pe),C.set(!0),(Ne=(ie=v.callbacks)==null?void 0:ie.onEpisodeClicked)==null||Ne.call(ie,pe)}},I=j(null),N=m(()=>a()/u());We(()=>{var Le;let de=Du(n(N),u(),f());de?((Le=n(I))==null?void 0:Le.time)!==de.time&&(p(de),O(I,de,!0)):O(I,null)});let H=m(()=>{var de;return((de=n(I))==null?void 0:de.text)||""}),B=m(()=>no(r(),"xl")?"FULL":no(r(),"m")&&r0(r(),"xl")?"COUNT":"SHORT"),z=m(()=>`${E("tooltip_episodes")}: ${n(H)}`),X=(de,Le,Se)=>yt(null,null,function*(){yield Ao(),(de==null?void 0:de.getAttribute("aria-expanded"))==="false"&&Le&&!Se&&Pt(()=>{y.set(!1),de.focus()})});We(()=>{X(n(R),s(),l())});var le=Fe(),q=fe(le);{var ce=de=>{let Le=m(()=>d()?"px-0":""),Se=m(()=>!x);zt(de,{get className(){var ie;return`w-max btn-full-opacity btn-jc-l ${(ie=n(Le))!=null?ie:""}`},testId:"btn-episodes",click:A,get disabled(){return n(Se)},get ariaExpanded(){return l()},get ariaLabel(){return n(z)},get ref(){return n(R)},set ref(ie){O(R,ie,!0)},children:(ie,Ne)=>{var pe=Fe(),k=fe(pe);{var qe=Z=>{var ne=Oy(),He=fe(ne),Ze=_(He,!0);g(He);var ge=P(He,2),ee=_(ge);hv(ee,{}),g(ge),D(()=>me(Ze,n(H))),b(Z,ne)},Re=Z=>{var ne=By(),He=fe(ne);gv(He,{});var Ze=P(He,2);{var ge=ke=>{var he=Ny(),Ue=_(he,!0);g(he),D(()=>me(Ue,n(H))),b(ke,he)},ee=(ke,he)=>{{var Ue=Xe=>{var Ge=Dy(),ct=_(Ge,!0);g(Ge),D(()=>me(ct,f().length)),b(Xe,Ge)};V(ke,Xe=>{n(B)==="COUNT"&&Xe(Ue)},he)}};V(Ze,ke=>{n(B)==="FULL"?ke(ge):ke(ee,!1)})}b(Z,ne)};V(k,Z=>{d()?Z(qe):Z(Re,!1)})}b(ie,pe)},$$slots:{default:!0}})};V(q,de=>{n(I)&&de(ce)})}b(t,le),U(),o()}import{debounceFn as C0}from"@vkontakte/videoplayer-shared/es2015";import{ChromecastState as Gy,PlaybackState as Bl,Player as Yy,PredefinedQualityLimits as fs,VideoFormat as Xd,clientChecker as v0}from"@vkontakte/videoplayer-core/es2015";import{assertNonNullable as dr,getHighestQuality as Zy,InterfaceLanguage as Xy,isInvariantQuality as Jy,isNonNullable as e4,loadVKLangPack as t4,Logger as i4,map as m0,merge as o4,Observable as Ku,Subject as qu,Subscription as wv,TracerFactory as n4,ValueSubject as r4,VideoQuality as s4,devNull as a4,now as l4,filter as d4,once as c4}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as Ls}from"@vkontakte/videoplayer-statistics/es2015";import{detectEmbed as Fy,devNull as ri,isNonNullable as Uy,now as si}from"@vkontakte/videoplayer-shared/es2015";import{addScript as zy,Subject as dn,clearVideoElement as Wy}from"@vkontakte/videoplayer-shared/es2015";var Ky="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Bu=class{constructor(e,i){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new dn,loadStarted$:new dn,loadEnded$:new dn,loadError$:new dn,ready$:new dn,slotRequested$:new dn,started$:new dn,timeRemained$:new dn,paused$:new dn,resumed$:new dn,ended$:new dn,empty$:new dn,skipped$:new dn,clicked$:new dn,closed$:new dn,error$:new dn};this.loadAdman=e=>(ri.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[si()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let s=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(ri.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[si()]}),i(),this.events.loadEnded$.next()):(ri.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[si()]}),o())};zy(Ky,e,this.loadTimeout).then(()=>{ri.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[si()]}),window.AdmanHTML?(ri.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[si()]}),i(),this.events.loadEnded$.next()):(ri.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[si()]}),window.admanAsyncInit=s,r=window.setTimeout(s,this.initTimeout))}).catch(l=>{ri.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[si()]}),o(),clearTimeout(r)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let s=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(ri.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[si()]}),i(),this.events.loadEnded$.next()):(ri.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[si()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{ri.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[si()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(ri.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[si()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{ri.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[si()]}),!d&&(window.AdmanHTML?(ri.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[si()]}),i(),this.events.loadEnded$.next()):(ri.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[si()]}),window.admanAsyncInit=s,r=window.setTimeout(s,this.initTimeout)))},l).finally(()=>{clearTimeout(r),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{ri.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[si()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{var o;ri.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[si(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"})),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog(),(o=this.externalApi)!=null&&o.videoTrackAdEvent&&this.safeExternalCall(this.externalApi.videoTrackAdEvent,e,String(i.bannerID))):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{var o;((o=this.adsState)!=null&&o.playbackState?$e(this.adsState.playbackState):void 0)!=="inactive"&&(this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized"))};this.onAdPaused=()=>{var e;ri.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[si()]}),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;ri.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[si()]}),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(ri.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[si()]}),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;ri.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[si()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;ri.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[si()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;ri.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[si()]}),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;ri.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[si()]}),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")=>{ri.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[si()]}),this.log({message:e}),this.events.error$.next(e),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),ri.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[si()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){return yt(this,null,function*(){var R,A;if(ri.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[si(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isAutoplay:r,adsContainer:s,adsVideoElement:l,slotId:d,params:a={},paramsOverride:u={},duration:f,externalApi:v}=e;this.externalApi=v;let p,x=this.playerState&&$e(this.playerState.vsid);x&&(this.isVsidOriginal?p=x:p=parseInt(x,36));let{isEmbed:w,immediateOrigin:y}=Fy(),C=(R=w?y:window.location.href)!=null?R:window.location.href,T=Q(qt(Q(qt(Q({},a),{dl:encodeURIComponent(C),autoplay:r?1:0,player_width:i,player_height:o}),p?{request_id:p}:{}),{duration:f}),u);T=Object.fromEntries(Object.entries(T).filter(([I,N])=>Uy(N)));let E={slot:d,wrapper:s,videoEl:l,videoQuality:o,params:T,browser:{mobile:!1}};try{let I=new window.AdmanHTML;if(I.onReady(this.onAdsReady),I.onStarted(this.onAdStarted),I.onPlayed(this.onAdPlayed),I.onPaused(this.onAdPaused),I.adMidrollPoint(this.onAdMidrollPoint),I.onClosed(this.onAdClosed),I.onSkipped(this.onAdSkipped),I.onClicked(this.onAdClicked),I.onTimeRemained(this.onAdTimeRemained),I.onCompleted(this.onAdCompleted),I.onError(this.onAdError),(A=this.externalApi)!=null&&A.videoGetAds){let N=yield this.safeExternalCall(this.externalApi.videoGetAds,T);N&&(delete E.slot,delete E.params,Object.assign(E,{json:N}))}I.init(E),this.adman=I,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(E)}`})}catch(I){ri.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(I)],numbers:[si()]}),this.onAdError("could not init adman")}})}switchToVideo(e=!1){var o,r,s;if(ri.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[si()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.log({message:`switch to video, isPostroll: ${i}`});else{let l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(s=(r=this.actions).switchFromAdsToVideo)==null||s.call(r,!i)}}setPostrollPassed(e){var i;(i=this.adsState)==null||i.postrollPassed.set(e),this.log({message:"postroll passed"})}togglePlay(){var e;if(ri.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[si()]}),this.adsState){this.log({message:"toggle play"});let i=$e(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(ri.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[si()]}),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(ri.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[si()]}),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(ri.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[si()]}),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(ri.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[si()]}),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(ri.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[si()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,r,s,l,d,a,u,f,v,p;ri.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[si()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(r=this.adman)==null||r.onPaused(void 0),(s=this.adman)==null||s.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(a=this.adman)==null||a.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(v=this.adman)==null||v.onError(void 0),(p=this.adman)==null||p.destroy(),this.videoElement&&Wy(this.videoElement),this.isDestroyed=!0}safeExternalCall(e,...i){return yt(this,null,function*(){var o;try{return yield e(...i)}catch(r){return this.onAdError((o=r==null?void 0:r.message)!=null?o:"External call failed"),null}})}};var d0=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 _v=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],r=e.split(this.twoLinesRegExp);for(let s of r){let l={startTime:0,endTime:0,texts:[],lang:i},d=s.split(this.oneLineRegExp);for(let a of d)if(!l.startTime&&!l.endTime){let u=new Hu,{startTime:f,endTime:v}=u.parse(a);l.startTime=f,l.endTime=v}else if(a.trim()!==""){let u=new bv,{texts:f}=u.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},Hu=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",r="0"){let s=Number(e)*60*60,l=Number(i)*60,d=Number(o),a=+`0.${r}`;return s+l+d+a}},bv=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},r=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,a=[];for(;d<l.length;){let u=["<",">"].reduce((f,v)=>{let p=l.indexOf(v,d);return f===-1||f>p?p:f},-1);if(u===-1){a.push(l.substring(d));break}a.push(l.substring(d,u)),d=u+1}return a}}),s=new Hu;for(let l of r)s.isTime(l)?i.texts.push({type:"timestamp",value:s.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},c0=_v;import{isNonNullable as $v}from"@vkontakte/videoplayer-shared/es2015";var Ba,Ri,yv=0,xv=!1,u0="",p0=(t,e=0,i=0)=>t<e&&t<i,Fu=(t,e=0,i=0)=>t>=e&&t<=i,qy=(t,e=0,i=0)=>t>e&&t>i,f0=(t,e,i,o=!1)=>{var d;let r=(d=i.find(({id:a})=>a===e.value))==null?void 0:d.subtitles;if(o)return r==null?void 0:r.find(({startTime:u,endTime:f})=>Fu(t,u,f));let s=t>=yv,l=t<yv;if(yv=t,l&&(xv=!1),$v(Ba)&&Fu(t,Ba.startTime,Ba.endTime)&&u0===e.value)return Ba;if(!$v(Ri)&&(r!=null&&r.length)&&!xv){Ri=r.find(({startTime:u,endTime:f})=>Fu(t,u,f)||s&&p0(t,u,f)),Ba=void 0,!$v(Ri)&&r[r.length-1].endTime<t&&(xv=!0);return}else{if(Fu(t,Ri==null?void 0:Ri.startTime,Ri==null?void 0:Ri.endTime))return Ba=Ri,Ri=void 0,u0=e.value,Ba;(s&&qy(t,Ri==null?void 0:Ri.startTime,Ri==null?void 0:Ri.endTime)||l&&p0(t,Ri==null?void 0:Ri.startTime,Ri==null?void 0:Ri.endTime))&&(Ri=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"},Qy={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"},Zd=t=>{var e,i;return(i=(e=Uu[t])!=null?e:Uu[Qy[t]])!=null?i:void 0};import{Subscription as jy}from"@vkontakte/videoplayer-shared/es2015";import"@vkontakte/videoplayer-statistics/es2015";var zu=class{constructor(e,i,o,r=new jy){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=r}destroy(){var e,i,o;(e=this.oneStat)==null||e.destroy(),(i=this.thinOneStat)==null||i.destroy(),(o=this.mediascopePixel)==null||o.destroy(),this.statSubscription.unsubscribe()}};var Wu=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Wu||{});var ps=t=>t!=null?t:0,Ms=(t,e)=>{var r,s;let i=(r=t==null?void 0:t.getBoundingClientRect)==null?void 0:r.call(t),o=(s=e==null?void 0:e.getBoundingClientRect)==null?void 0:s.call(e);return{top:Math.round(ps(i==null?void 0:i.top)-ps(o==null?void 0:o.top)),left:Math.round(ps(i==null?void 0:i.left)-ps(o==null?void 0:o.left)),bottom:Math.round(ps(i==null?void 0:i.bottom)-ps(o==null?void 0:o.top)),right:Math.round(ps(i==null?void 0:i.right)-ps(o==null?void 0:o.left))}},Nl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:ps(e==null?void 0:e.width),height:ps(e==null?void 0:e.height)}};var zn="off";var Dl=t=>!!(Math.round(Math.abs(t)/90)%2);var g0=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:r,statAuthToken:s,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:u,videoEpisodes:f,previewThumbsData:v,uiConfig:p,coreConfig:x,player:w,disabledControls:y,isInteractive:C,interactiveRanges$:T,isInteractiveTime$:E,replayInteractive:R,stopPlayer:A,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:N,additionalButtons:H,additionalSettingsMenuItems:B,additionalContextMenuItems:z,playPrevVideo:X,playNextVideo:le,onVideoChanged:q,looped:ce=!1,statistics:J,saveRate:ve,internalsExposure:se,playerView:de,playerId:Le})=>{var rg,sg,ag;let Se=qt(Q({},x),{configName:[...(rg=x.configName)!=null?rg:[],"ui"],isAudioDisabled:l,live:qt(Q({},(sg=x.live)!=null?sg:{}),{isLiveCatchUpMode:!!r})}),ie=p,Ne=n4.createRootTracer(ie.features.tracer),pe=Ne.createComponentTracer("Store"),k=w||new Yy(Se,Ne,{playerId:Le});se==null||se.expose({corePlayer:k});let qe=new i4,Re=new Bu(qe,{loadTimeout:ie.ads.loadTimeout,initTimeout:ie.ads.initTimeout,runtimeTimeout:ie.ads.runtimeTimeout,useAdmanFromNPM:ie.ads.useAdmanFromNPM,volumeMultiplier:ie.ads.volumeMultiplier,isVsidOriginal:ie.ads.isVsidOriginal}),Z=Aa.getInstance(),ne=u==null?void 0:u.pictureInPictureApi,He=u==null?void 0:u.annotationsApi,Ze=u==null?void 0:u.slotsApi,ge=qe.createComponentLog("Store"),ee,ke,he={},Ue=new fu,Xe=new wv,Ge="",ct=ae(!1),et=J&&J.oneStat?ci(J.oneStat.vsid$):Sr(void 0),Bt=ae(Zs()),rt=ae(!1),Dt=()=>N1(document,v0.device.isIOS),Qt=(ag=ne==null?void 0:ne.info.isActive$)!=null?ag:new r4(!1),Et=ae(0),ti=ae(!1),Wt=ae(!1),Ce=ae([]),we=o4(k.events.fatalError$,k.events.managedError$).subscribe(c=>Ce.update($=>[...$,c])),te=Sr(!1,c=>{let $=k.events.fatalError$.subscribe(()=>c(!0));return()=>$.unsubscribe()}),Te=c=>yt(null,null,function*(){var oe;let $=Object.values(Xy).includes(c);if(ie.downloadVKLanguages&&($&&ie.updateBuiltinLanguages||!Pf(c))){let Pe;try{Pe=yield t4(c,jh,Gh)}catch(st){(oe=J==null?void 0:J.oneStat)==null||oe.logError({errorType:"VKLangPack",fatal:!1}),Z==null||Z.report(st,{errorType:"VKLangPack",fatal:!1})}Pe&&(Af({language:c,pack:Pe,fallback:ie.defaultLanguage}),Me.set(c),It.update(st=>st+1))}Pf(c)&&Me.set(c)}),Me=ae(t),It=ae(0),De=ae(e);Te(t);let ut=(c,$)=>{let L=$e(Me);return Mf(L,c,$,ie.defaultLanguage)},$t=ae("thumb");$t.subscribe(c=>{c==="ads"&&k.info.playbackState$.getValue()&&Qe()});let xe=(()=>{let c=$i([te,$t],([$,L])=>$?"crashed":L);return qt(Q({},c),{is:$=>$e(c)===$})})(),ot=ae(),Qe=()=>{ot.set({muted:k.info.muted$.getValue()})},lt=(()=>{let c=ae(new Set(y));return qt(Q({},c),{add:$=>{c.update(L=>new Set([...L].concat($)))},remove:$=>{c.update(L=>{let oe=[...L];return new Set(Array.isArray($)?oe.filter(Pe=>!$.includes(Pe)):oe.filter(Pe=>Pe!==$))})},includes:$=>{let L=$e(c);return Array.isArray($)?$.every(oe=>L.has(oe)):L.has($)}})})(),ii=ae({width:0,height:0}),ai=null,mi=k.info.isBuffering$,yi=Sr(mi.getValue(),c=>{let $=mi.subscribe(L=>{L&&ai===null?ai=window.setTimeout(()=>{c(mi.getValue()),ai=null},ie.loaderDelay):c(L)});return()=>{$.unsubscribe(),ai&&clearTimeout(ai)}});pe.log("create store"),ge({message:"create store"});let so=c=>{let $=c.container,L=()=>{ni=new MutationObserver(Pe=>{let{removedNodes:st}=Pe[0];st.length&&$.append(k.experimental.element$.getValue())}),ni.observe($,{childList:!0})},oe=k.experimental.element$.getValue();if(oe)$.append(oe),L();else{let Pe=k.experimental.element$.pipe(d4(st=>!!st),c4()).subscribe(st=>{$.append(st),L()});Xe.add(Pe)}},vo=c=>{ge({message:`init video, config: ${JSON.stringify(c)}`}),C?so(c):(a4.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[l4()]}),k.initVideo(c)),pe.log("init video",{isInteractive:C}),c.subtitles&&k.setExternalTextTracks(c.subtitles),ee=c,Ge=c.subtitlesForcedLanguage||""},ui=new qu,mt=c=>ui.next(c),Pi=new qu,Yt=new qu,Tt=new qu,ni=null,Zt={actionRewind$:Pi,actionSeek$:Yt,inPiP$:Qt,inFullscreen$:new Ku(c=>Bt.subscribe($=>c.next($))),actionSetSubtitle$:Tt,nextMovie$:ui},St={actionSeek$:Yt,playerSize$:new Ku(c=>ii.subscribe($=>c.next($))),inPiP$:Qt,inFullscreen$:new Ku(c=>Bt.subscribe($=>c.next($))),isLoaderVisible$:new Ku(c=>yi.subscribe($=>c.next($)))};if(J){let{oneStat:c,thinOneStat:$,mediascopePixel:L,statSubscription:oe}=J;c&&(C||oe.add(c.attachTo(k)),oe.add(c.attachToUi(Zt)),oe.add(c.attachToAds(Re.events)),c.authorize(s).catch(Pe=>{ge({message:`onestat auth error ${String(Pe)}`})}),L&&L.attachTo(k)),$&&(oe.add($.attachTo(k,Re.events)),oe.add($.attachToUi(St)),oe.add($.attachToAds(Re.events)),$.updateContext({isMobile:$e(ct)}),$.authorize(s))}if(Z){let c=new wv,$=(L,oe)=>c.add(L.subscribe(oe));if($(k.events.managedError$,L=>{Z.logIError(L)}),$(k.events.fatalError$,L=>{Z.logIError(L,!0)}),J){let{oneStat:L}=J;L&&$(L.experimental.error$,oe=>{Z.logIError(oe)})}Z.sentrySubscription.add(c)}let Ye=()=>{if(v0.device.isIOS&&ke)try{D1(ke)}catch(c){ge({message:`exitIosSafariFullscreen failed: ${c}`})}};Xe.add(k.experimental.element$.subscribe(c=>{c&&(ke=c,c.classList.add("player-media"),Ma(ne)&&ne.updateVideoElement(),C&&c.setAttribute("pip","false"),de==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(k.events.ended$.subscribe(()=>{var c;Ye(),(c=a==null?void 0:a.onEnded)==null||c.call(a)})).add(k.events.looped$.subscribe(()=>{var c;(c=a==null?void 0:a.onLooped)==null||c.call(a)})).add(k.events.started$.subscribe(()=>yt(null,null,function*(){var $,L;Ma(ne)&&(yield ne==null?void 0:ne.revealPictureInPicture());let c=k.info.muted$.getValue();($=a==null?void 0:a.onStarted)==null||$.call(a),(L=he.onStarted)==null||L.call(he,c)}))).add(k.events.willSeek$.subscribe(({from:c,to:$})=>{var L;(L=a==null?void 0:a.onSeek)==null||L.call(a,c,$)})).add(k.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=a==null?void 0:a.onAutoplaySoundProhibited)==null||c.call(a)})).add(k.info.position$.subscribe(c=>{var L;let $=k.info.duration$.getValue();isFinite($)&&$>0&&((L=a==null?void 0:a.onTimeupdate)==null||L.call(a,$,c),Re.setPosition(c,$))})).add(k.events.fatalError$.subscribe(c=>{var $;($=a==null?void 0:a.onCrashed)==null||$.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(k.events.fetcherRecoverableError$.subscribe(c=>{var $;($=a==null?void 0:a.onRecoverableError)==null||$.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(k.events.loadedMetadata$.subscribe(()=>{ti.set(!0)})).add(k.info.is3DVideo$.subscribe(c=>{Wt.set(c)})).add(k.info.isEnded$.subscribe(c=>{C&&(c?(E!=null&&E.getValue()&<.add(Cd),lt.add("PLAY_BUTTON")):lt.remove("PLAY_BUTTON"))})).add(k.info.liveTime$.subscribe(c=>{var $;($=a==null?void 0:a.onLiveTime)==null||$.call(a,c)})).add(k.info.isStalled$.subscribe(c=>{var $;($=a==null?void 0:a.onStalledChanged)==null||$.call(a,c)})).add(k.info.isLiveEnded$.subscribe(c=>{var $;return c&&(($=a==null?void 0:a.onLiveEnded)==null?void 0:$.call(a))})).add(Re.events.loadStarted$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:$.call(c)})).add(Re.events.loadEnded$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:$.call(c)})).add(Re.events.loadError$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadError)==null?void 0:$.call(c)})).add(Re.events.init$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onInit)==null?void 0:$.call(c)})).add(Re.events.ready$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onReady)==null?void 0:$.call(c)})).add(Re.events.started$.subscribe(c=>{var $,L;return(L=($=a==null?void 0:a.adsInfo)==null?void 0:$.onStarted)==null?void 0:L.call($,c)})).add(Re.events.timeRemained$.subscribe(c=>{var $,L;return(L=($=a==null?void 0:a.adsInfo)==null?void 0:$.onTimeRemained)==null?void 0:L.call($,c)})).add(Re.events.ended$.subscribe(c=>{var $,L;return(L=($=a==null?void 0:a.adsInfo)==null?void 0:$.onCompleted)==null?void 0:L.call($,c)})).add(Re.events.empty$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onEmpty)==null?void 0:$.call(c)})).add(Re.events.clicked$.subscribe(c=>{var $,L;return(L=($=a==null?void 0:a.adsInfo)==null?void 0:$.onClicked)==null?void 0:L.call($,c)})).add(Re.events.closed$.subscribe(c=>{var $,L;return(L=($=a==null?void 0:a.adsInfo)==null?void 0:$.onClosed)==null?void 0:L.call($,c)})).add(Re.events.error$.subscribe(c=>{var $,L;return(L=($=a==null?void 0:a.adsInfo)==null?void 0:$.onError)==null?void 0:L.call($,c)})).add(Re.events.paused$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onPaused)==null?void 0:$.call(c)})).add(Re.events.resumed$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onResumed)==null?void 0:$.call(c)}));let xi=new wv,wo=()=>{var st,Lt,Ft;let{debugLog:c}=ie,$,L="#9df7b7",oe="#efd169";if(c&&c!==!0){let{colors:jt}=c;$=c.tag,L=(st=jt==null?void 0:jt[0])!=null?st:L,oe=(Ft=(Lt=jt==null?void 0:jt[1])!=null?Lt:jt==null?void 0:jt[0])!=null?Ft:oe}let Pe=$?`: ${$}`:"";xi.add(k.events.log$.subscribe(jt=>{console.debug(`%c sdk${Pe} `,`background:${L};`,`sdk component: ${jt.component}`,jt.message)})).add(qe.log$.subscribe(jt=>{console.debug(`%c ui${Pe} `,`background:${oe};`,`ui component: ${jt.component}.`,jt.message)}))},Zo=()=>{xi.unsubscribe()},un=(c,$)=>{pe.log("start camera manual rotation",{mx:c,my:$}),k.startCameraManualRotation(c,$)},kt=(c=!1)=>{pe.log("stop camera manual rotation",{immediate:c}),k.stopCameraManualRotation(c)},Ht=(c,$,L)=>{pe.log("move camera focus px",{xpx:c,ypx:$,dt:L}),k.moveCameraFocusPX(c,$,L)},K=()=>{k.holdCamera()},Vt=()=>{k.releaseCamera()},oi=Sr(k.info.position$.getValue(),c=>{let $,L,oe=()=>{let Pe=k.info.playbackState$.getValue(),st=k.info.isLive$.getValue(),Lt=k.info.duration$.getValue(),Ft=k.info.position$.getValue();if(Pe&&[Bl.PLAYING,Bl.PAUSED].includes(Pe)){let jt=st?Ft-Lt:k.getExactTime();jt!==L&&c(jt),L=jt}$=requestAnimationFrame(oe)};return oe(),()=>cancelAnimationFrame($)}),ft=ci(k.info.playbackState$),At=ci(k.info.currentBuffer$),Gt=ci(k.info.isEnded$),pt=ci(k.info.isLive$),Oi=ie.features.playbackRate?ci(k.info.canChangePlaybackSpeed$):Sr(!1),Fi=ci(k.info.liveBufferTime$),Xo=ci(k.info.volume$),Lo=ci(k.info.muted$),ao=vu(k.info.predefinedQualityLimitType$.pipe(m0(c=>c===fs.TRAFFIC_SAVING)),k.info.predefinedQualityLimitType$.getValue()===fs.TRAFFIC_SAVING),Ui=vu(k.info.predefinedQualityLimitType$.pipe(m0(c=>c===fs.HIGH_QUALITY)),k.info.predefinedQualityLimitType$.getValue()===fs.HIGH_QUALITY),ur=ci(k.info.autoQualityLimitingAvailable$),mo=ci(k.info.availableQualities$),go=ci(k.info.availableQualitiesFps$),Ni=ci(k.info.chromecastState$),pn=ci(k.info.chromecastDeviceName$),Vo=ci(k.info.currentFormat$),pr=ci(k.info.throughputEstimation$),fr=ci(k.info.videoBitrate$),Tr=ci(k.info.intrinsicVideoSize$),es=ci(k.info.duration$),ms=ci(k.info.isAudioAvailable$),ts=()=>{ai&&clearTimeout(ai),ai=null},So=$i([es,pt],([c,$])=>$?-c:c),qn=$i([ft],([c])=>c===Bl.PLAYING),Ro=ci(k.info.atLiveEdge$),fn=ci(k.info.atLiveDurationEdge$),An=ci(k.info.position$),vr=$i([An,es],([c,$])=>isFinite(c)&&isFinite($)&&!!$),Er=$i([Ni],([c])=>c===Gy.CONNECTED),Ir=ci(k.info.availableVideoStreams$),kr=ie.features.audioLanguages?ci(k.info.availableAudioStreams$):Sr([]),Ar=ci(k.info.currentVideoStream$),Gi=ci(k.info.currentAudioStream$),Pr=c=>{c.language&&Tf(c.language),k.setVideoStream(c)},Pn=(c,$)=>{k.setAudioStream(c),bo($)&&(c.language&&Tf(c.language),ie.features.userVideoPrefs&&i&&kf(ie.userSalt,String(i),{audioTrackId:c.id}))},vn=c=>{let $;if(c.length===1&&($=c.at(0)),$!=null||($=c.find(oe=>"isDefault"in oe&&oe.isDefault)),ie.features.userVideoPrefs&&i){let oe=bu(ie.userSalt,String(i));if(oe!=null&&oe.audioTrackId){let Pe=c.find(st=>st.id===oe.audioTrackId);$=Pe!=null?Pe:$}}let L=$1();return L&&($!=null||($=c.find(({language:oe})=>L===oe))),$!=null||($=c.at(0)),$},ho=c=>{pe.log("change audio stream",{id:c});let $=k.info.availableAudioStreams$.getValue().find(L=>L.id===c);$&&Pn($,!0)},mr=!1;Xe.add(k.info.availableAudioStreams$.subscribe(c=>{if(!mr&&c.length){let $=vn(c);$&&(k.setAudioStream($),mr=!0)}})),kr.subscribe(c=>{var $;($=a==null?void 0:a.onAvailableAudioStreamsChanged)==null||$.call(a,c.map(({label:L="",id:oe="",language:Pe=""})=>({label:L,language:Pe,id:oe})))}),Gi.subscribe(c=>{var $;return c&&(($=a==null?void 0:a.onAudioStreamChanged)==null?void 0:$.call(a,c.id))});let Mn=!1;Xe.add(k.info.availableVideoStreams$.subscribe(c=>{if(!Mn&&c.length){let $=vn(c);$&&(k.setVideoStream($),Mn=!0)}}));let gt=ae(void 0),vi=ci(k.info.isAutoQualityEnabled$,c=>c&>.set(void 0)),Mr=ci(k.info.currentQuality$,()=>gt.set(void 0)),Qn=$i([gt,Mr],([c,$])=>c!=null?c:$),Lr=$i(Vo,c=>c!==Xd.MPEG),Ln=$i([mo,go,vi,Qn,Lr],([c,$,L,oe,Pe])=>{let st=[];Pe&&st.push({value:"auto",displayValue:ut("auto_quality_option"),selected:L});let Lt=c.filter(Ft=>!Jy(Ft));for(let Ft of Lt){let jt=$[Ft];st.push({value:Ft,displayValue:`${Ft}${jt?d0(jt):""}`,selected:L?!1:Ft===oe})}return st}),Vn=ci(k.info.currentPlaybackRate$),Oo=$i([Vn,Ro,fn],([c,$,L])=>{let oe=L||C?1:ie.controls.playbackRateMin,Pe=$?1:ie.controls.playbackRateMax,st=ie.controls.playbackRateStep,Lt=[];for(let Ft=oe;Ft<=Pe;Ft+=st)Lt.push({value:Ft,displayValue:Ft===1?ut("playback_rate_1"):ut("playback_rate",{multiplier:Ft.toString(10)}),selected:c===Ft});return Lt}),No=()=>({displayValue:ut("subtitles_off"),value:zn,language:""}),mn=ae(No()),_o=$i([mn,It],([c],$)=>{c.value===zn?$(No()):$(c)}),Do=ie.features.subtitles?ci(k.info.availableTextTracks$):Sr([]),Jo=d1(),gr=$i([Do,_o],([c,$],L)=>{var st;let oe=[],Pe=c.find(({id:Lt})=>Lt===$.value);if(Pe!=null&&Pe.url){let[,Lt]=(st=Jo.find(Pe.url))!=null?st:[];if(Lt){L(Lt);return}Ue.download(Pe.url).then(Ft=>{if(!Ft||Ue.isDestroyed())return;let jt=new c0,Fs=Pe.language;if(Fs){let g_=!!Pe.isAuto,h_=jt.parse(Ft,Fs);oe.push({lang:Fs,subtitles:h_,isAuto:g_,id:Pe.id})}Jo.add(Pe.url,oe),$e(_o).value===$.value&&L(oe)}).catch(Ft=>{var jt;(jt=J==null?void 0:J.oneStat)==null||jt.logError({errorType:"Subtitles download",fatal:!1}),Z==null||Z.report(Ft,{errorType:"Subtitles download",fatal:!1})})}L(oe)}),Vr=$i([Vn,qn,_o],([c,$,L],oe)=>{let Lt;if(k.info.isLive$.getValue()&&$&&L.value!==zn){let jt=()=>{let Fs=1e3/(3*c);Lt=setTimeout(jt,Fs),oe(Date.now())};return jt(),()=>clearTimeout(Lt)}}),gn=$i([Do,_o],([c,$])=>{if(!c.length)return[];let L=[];for(let{language:oe,isAuto:Pe,id:st}of c){let Lt=oe&&Zd(oe);oe&&Lt&&L.push({displayValue:Pe?ut("subtitles_auto",{language:Lt}):Lt,value:st,selected:($==null?void 0:$.value)===st,isAuto:Pe,language:oe})}return L.length?(L.unshift(qt(Q({},No()),{selected:($==null?void 0:$.value)===zn})),L):[]}),zi={available:[],prev:[]},hr=()=>{var $,L;let c=k.experimental.getCurrentTime$.getValue();return(L=($=c==null?void 0:c())!=null?$:ke==null?void 0:ke.currentTime)!=null?L:0},Rr=$i([oi,_o,gr,Vr],([c,$,L,oe])=>{var st;let Pe=k.info.isLive$.getValue();if(Pe&&zi.prev!==L){let Lt=L.find(({id:jt})=>jt===$.value),Ft=zi.prev.find(({id:jt})=>jt===$.value);if(Lt){let jt=qt(Q({},Lt),{subtitles:[...(st=Ft==null?void 0:Ft.subtitles)!=null?st:[],...Lt.subtitles]});zi.available=[jt],zi.prev=L}}if($&&$.value!==zn){let Lt=Pe?hr():c,Ft=Pe?zi.available:L;return f0(Lt,$,Ft,Pe)}}),Rn=$i([Rr],([c])=>c!=null&&c.texts?c.texts:[]);Xe.add(_o.subscribe(c=>{var $,L;if(c.value===zn)($=a==null?void 0:a.onSubtitleOff)==null||$.call(a);else{let oe=Object.entries(Uu).find(([Pe,st])=>st===c.displayValue);(L=a==null?void 0:a.onSubtitleOn)==null||L.call(a,oe?oe[0]:"",c.value)}}));let jn=ae(!0),Or=$i([At,So,An,Fi],([c,$,L,oe])=>{var Ft;let Pe=(Ft=c==null?void 0:c.end)!=null?Ft:0;if(!oe)return Pe/$;let Lt=-L+oe-$;return(Pe-Lt)/$}),Gn=ci(k.info.availableSources$),it=$i([Gn],([c])=>Object.keys((c==null?void 0:c[Xd.MPEG])||{}).length>0),gi=()=>{var L,oe,Pe;let c=Object.keys(((oe=(L=k.info.availableSources$)==null?void 0:L.getValue())==null?void 0:oe[Xd.MPEG])||{}),$=Zy(c)||s4.Q_144P;return(Pe=ee.sources[Xd.MPEG])==null?void 0:Pe[$]},Di=()=>{var $;let c=gi();if(c)pe.log("download video",{url:c}),s1(c,(($=ee==null?void 0:ee.meta)==null?void 0:$.title)||"video");else{let L="There is no URL for download video";pe.log("download video",{message:L}),ge({message:L})}},Yi=()=>{ge({message:"toggle muted"});let c=k.info.muted$.getValue();k.info.volume$.getValue()===0&&!c?hn(Zi(),!1):Yn(!c,!1)},Bo=()=>{var c;if(Kt.ui.settingsMenu.visible$.set(!1),!$e(Kt.ui.settingsSubMenu.visible$)){let $=$e(Kt.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&$){let oe=Nl($),Pe={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:oe,position:Pe,name:"settings"})}}pe.log("close settings menu")},en=(c,$=()=>Promise.resolve())=>yt(null,null,function*(){var Pe;Kt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Kt.ui.settingsMenu.visible$.set(!0),yield $();let L=$e(Kt.ui.settingsMenu.ref$),oe=ua();if((Pe=a==null?void 0:a.uiInfo)!=null&&Pe.onSettingsMenu&&L&&oe){let Lt=Nl(L),Ft=Ms(L,oe);a.uiInfo.onSettingsMenu({visible:!0,size:Lt,position:Ft,name:"settings"})}pe.log("open settings menu",{wasOpenedByKeyboard:c})}),lo=(c,$=!1)=>{var st;Kt.ui.settingsSubMenu.visible$.set(!1);let L=$e(Kt.ui.settingsMenu.ref$),oe=ua(),Pe=$e(Kt.ui.settingsMenu.visible$);if((st=a==null?void 0:a.uiInfo)!=null&&st.onSettingsMenu&&L&&oe)if(Pe&&!$){let Ft=Nl(L),jt=Ms(L,oe);a.uiInfo.onSettingsMenu({visible:!0,size:Ft,position:jt,name:"settings"})}else{let Ft=Nl(c),jt={top:0,left:0,bottom:0,right:0},Fs=$e(Kt.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:Ft,position:jt,name:Fs})}pe.log("close settings sub menu")},ki=(c,$)=>{var oe;Kt.ui.settingsSubMenu.visible$.set(!0),Kt.ui.settingsSubMenu.ref$.set($),Kt.ui.settingsSubMenu.name$.set(c);let L=ua();if((oe=a==null?void 0:a.uiInfo)!=null&&oe.onSettingsMenu&&$&&L){let st=Nl($),Lt=Ms($,L);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:st,position:Lt})}pe.log("open settings sub menu",{name:c})},Zi=()=>{var $;let c=Math.max(ie.volumeMinRestore,($=mu())!=null?$:0);return c===0?ie.volumeDefault:c},bo=c=>{let $=ie.features.savePreferredStatesOnUserActionOnly;return!$||$&&!c},hn=(c,$)=>{let L=c===0?Zi():c,oe=k.info.muted$.getValue();ge({message:`set volume, volume: ${c}, preferredVolume: ${L}`});let Pe=!l||xe.is("ads");oe&&c>0&&Pe&&(oe=!1,bo($)&&Sf(!1)),k.setVolume(c,oe),Re.setVolume(c),bo($)&&bf(L)},Yn=(c,$)=>{let L=k.info.volume$.getValue();ge({message:`set muted, currentVolume: ${L}, mute: ${c}`});let oe=xe.is("ads");if(k.setMuted(c,oe),Re.setVolume(c?0:L),bo($)&&(!oe||!c)&&Sf(c),!c&&L===0){let Pe=Zi();k.setVolume(Pe),bo($)&&bf(Pe),Re.setVolume(Pe)}},Nr=ae(!1),Dr=c=>{var $,L;pe.log("set looped",{isLooped:c}),Nr.set(c),k.setLooped(c),(L=($=a==null?void 0:a.uiInfo)==null?void 0:$.onLoopedChanged)==null||L.call($,c)};Dr(ce);let _n=()=>{var c,$;($=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||$.call(c)},bn=(c,$=!1)=>{var L;ge({message:`set autoplayNextEnabled, value: ${c}`}),pe.log("set autoplay next enabled",{autoplayNextEnabled:c}),Kt.ui.autoplayNextEnabled$.set(c),w1(c),$&&((L=a==null?void 0:a.onSetAutoplayNextEnabled)==null||L.call(a,c))},_r=c=>{ge({message:`set timerNextVideoRunning, value: ${c}`}),pe.log("set timer next video running",{timerNextVideoRunning:c}),Kt.ui.timerNextVideoRunning$.set(c)},$n=(c=!0)=>{var L;let $=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{$=(L=a==null?void 0:a.onPrevVideoClick)==null?void 0:L.call(a)}catch(oe){ge({message:"onPrevVideoClick callback failed to execute"})}q(!0),$&&X()},Br=(c=!0)=>{var L;let $=!0;if(c&&(a!=null&&a.onNextVideoClick))try{$=(L=a==null?void 0:a.onNextVideoClick)==null?void 0:L.call(a)}catch(oe){ge({message:"onNextVideoClick callback failed to execute"})}q(!1),$&&le()},tt=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},Mt=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},wi=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},$o=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},Ho=()=>{k.prepare()},Co=()=>{dr(Kt);let c=$e(Kt.ui.controls.disabledControls$),$=$e(Kt.playerPhase),L={playerPhase:$,isInteractive:C,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(ge({message:"toggle play"}),$==="ads"){L.action="play",pe.log("toggle adman play",L),Re.togglePlay();return}let oe=()=>{var st;ge({message:"toggle play, call player.play"}),L.action="play",k.play(),(st=a==null?void 0:a.onPlay)==null||st.call(a)},Pe=()=>{var st;ge({message:"toggle play, call player.pause"}),L.action="pause",k.pause(),(st=a==null?void 0:a.onPause)==null||st.call(a)};if(k.info.isEnded$.getValue()){if(ge({message:"toggle play, video ended, seek to 0"}),Pi.next(),Yt.next(Ls.REWIND),C){R==null||R();return}k.seekTime(0),oe()}else k.info.playbackState$.getValue()!==Bl.PLAYING?oe():Pe();pe.log("toggle play",L)},Xi=(c,{changeReason:$="default",appliesTo:L="to-video"}={},oe)=>{ge({message:`set quality, quality: ${c}`}),pe.log("set quality",{quality:c}),k.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Pe}=ie.features;gu(),c!=="auto"?(Pe?(hu({type:"exact_quality",quality:c,videoId:i},L),k.setPredefinedQualityLimits(fs.UNKNOWN)):$f(i,c),gt.set(c),k.setQuality(c)):Pe&&$==="default"&&(To("auto_quality",L,oe),$e(ao)&&Mi(!1,void 0,oe),$e(Ui)&&tn(!1,void 0,oe))},Mi=(c,$="as-default",L)=>{ge({message:`set trafficSavingEnabled, value: ${c}`}),pe.log("set traffic saving enabled",{trafficSavingEnabled:c});let oe=c?fs.TRAFFIC_SAVING:fs.UNKNOWN;ie.features.qualityDetailsSubMenuEnabled?(Fo(oe,$,L),Td(!1)):(k.setPredefinedQualityLimits(oe),bo(L)&&Td(c))},tn=(c,$="as-default",L)=>{ge({message:`set highQualityEnabled, value: ${c}`}),pe.log("set high quality enabled",{highQualityEnabled:c}),Fo(c?fs.HIGH_QUALITY:fs.UNKNOWN,$,L)},Fo=(c,$,L)=>{c!==fs.UNKNOWN&&($e(ur)&&!$e(vi)&&Xi("auto",{appliesTo:$,changeReason:"limit-changed"},L),To(c,$,L)),k.setPredefinedQualityLimits(c)},To=(c,$,L)=>{bo(L)&&(hu({type:c,videoId:i},$),$==="as-default"&&hu({type:c,videoId:i},"to-video"))},Ji=(c,$=!0)=>{pe.log("set playback rate",{playbackRate:c}),k.setPlaybackRate(c),ie.features.saveRate&&ve&&!k.info.isLive$.getValue()&&$&&y1(c)},Hr=()=>{let c=$e(Oo),$=c.findIndex(({selected:oe})=>oe);if($===c.length-1)return;let L=c[$+1];Ji(L.value)},Zn=()=>{let c=$e(Oo),$=c.findIndex(({selected:oe})=>oe);if($===0)return;let L=c[$-1];Ji(L.value)},Xn=(c=qt(Q({},No()),{selected:!1}),$)=>{pe.log("set subtitles",Q({},c)),c.value!==zn&&Tt.next(c.isAuto?c.value+"_auto":c.value),mn.set(c),bo($)&&(If(c.value===zn?void 0:c.language),ie.features.userVideoPrefs&&i&&kf(ie.userSalt,String(i),{subtitleTrackId:c.value===zn?void 0:c.value}))},br=c=>{pe.log("toggle subtitles");let $=$e(_o);($==null?void 0:$.value)===zn?Fr(c):is(c)},gs=(c,$)=>{pe.log("change subtitle",{enabled:c}),c?Fr(!0,$):is(!0)},Fr=(c,$)=>{pe.log("subtitle on");let L=$e(gn),oe=$e(Me),Pe=Ge!=null?Ge:oe,st;$&&(st=L.find(Lt=>Lt.value===$)),st!=null||(st=L.filter(Lt=>Lt.value!==zn).find(Lt=>Lt.language===Pe)),Xn(st!=null?st:L[1],c)},is=c=>{pe.log("subtitle off"),Xn(void 0,c)};Xe.add(k.info.availableTextTracks$.subscribe(c=>{var L;function $(){let oe=[];for(let{language:Pe,isAuto:st,id:Lt}of c){let Ft=Pe&&Zd(Pe);Pe&&Ft&&oe.push({id:Lt,language:Pe,title:st?ut("subtitles_auto",{language:Ft}):Ft})}return oe}(L=a==null?void 0:a.onAvailableSubtitlesChanged)==null||L.call(a,$())}));let je=ae(!0),Jt=c=>{je.set(c)},hi=(c,$,L=!0)=>{var oe;if(ge({message:`seek to time, time: ${c}`}),pe.log("seek to time",{time:c,action:$,forcePrecise:L}),Yt.next($),k.info.isLive$.getValue()){let Pe=k.info.duration$.getValue(),st=Math.min(0,Pe+c);k.seekTime(st,L)}else{if(E!=null&&E.getValue())return;k.info.isEnded$.getValue()&&(ge({message:"seek after ended, call callbacks.onPlay"}),(oe=a==null?void 0:a.onPlay)==null||oe.call(a)),k.seekTime(rn(c),L)}},yn=c=>{ge({message:`seek to episode start time: ${c}`}),pe.log("seek to episode start time",{time:c}),hi(c,Ls.EPISODE,!0)},Uo=(c,$,L=!1)=>{ge({message:`seek to percent, percent: ${c}`}),pe.log("seek to percent",{percent:c,action:$});let oe=$e(So)*c;hi(oe,$,L)},Ur=c=>{ge({message:`seek external, time: ${c}`}),pe.log("seek external",{time:c}),Yt.next(Ls.UNKNOWN),k.seekTime(k.info.isLive$.getValue()?-c:c)},on=c=>{var oe,Pe;let $=(oe=c.max)!=null?oe:"none",L=(Pe=c.min)!=null?Pe:"none";ge({message:`set auto quality limitation. Max: ${$}. Min: ${L}`}),pe.log("set auto quality limits",{max:$,min:L}),k.setAutoQualityLimits(c)},zr=c=>{ge({message:`seek external to episode start time: ${c}`}),pe.log("seek external to episode start time",{time:c}),hi(c,Ls.EPISODE,!0)},Ds=c=>{ge({message:`set playback rate to: ${c}`}),pe.log("set playback rate external",{playbackRate:c}),k.setPlaybackRate(c)},eo=ae(!1),Wr=ae(!1),na=$i([So],([c])=>!!v&&c>=ie.suitableDurationForUsingRichSeek&&ie.features.useRichSeek&&!C),ht=((v==null?void 0:v.frameWidth)||0)>=((v==null?void 0:v.frameHeight)||0),pi=$i([Et],([c])=>{let $=Dl(c);return ht?!$:$});Xe.add(xe.subscribe(c=>{c!=="video"&&eo.set(!1)}));let yo=ae(void 0),xn=ae(!1),ye=c=>{ge({message:`start scrubbing, progress: ${c}`}),pe.log("start scrubbing",{progress:c}),xn.set(!0),vt(c)},vt=c=>{yo.set(c)},li,Si,fi=()=>{yo.set(void 0),xn.set(!1)},ei=()=>{clearTimeout(Si),clearTimeout(li),li=window.setTimeout(()=>{fi()},500),ke==null||ke.removeEventListener("seeked",ei)},Ei=(c,$=!1)=>{ge({message:`complete scrubbing, progress: ${c}`}),pe.log("complete scrubbing",{progress:c}),Uo(c,Ls.SLIDER,$),$e(Kt.ui.isMobile)&&$e(Kt.state.currentFormat$)===Xd.HLS?(ke==null||ke.addEventListener("seeked",ei),Si=window.setTimeout(()=>{ei()},300)):fi()},wn=$i([oi,So,yo],([c,$,L],oe)=>{oe(e4(L)?L*$:c)}),nn=ae(!1),Li=()=>{nn.set(!0)},Za=()=>{nn.set(!1)},ra=$i([ii],([{width:c}],$)=>{let L=s0(c);$(L)}),sa=H.filter(c=>a1(c)),aa=$i([ra,ct],([c,$])=>$?sa.filter(L=>!L.hideOnMobile):sa.filter(L=>{var oe;return!((oe=L.hideOnDesktopGridTypes)!=null&&oe.includes(c))})),Jn=ae(H.filter(c=>l1(c))),hs=$i([Jn,ra],([c,$])=>c.filter(L=>{var oe;return!((oe=L.hideOnDesktopGridTypes)!=null&&oe.includes($))})),la=$i([hs,aa],([c,$])=>[...ie.features.additionalButtonsDesktopControlPanelRight?c.filter(L=>L.type==="desktop-control-panel-right"):[],...ie.features.additionalButtons?$.map((L,oe)=>{var Pe;return{id:oe,weight:oe,type:"desktop-control-panel-right",testId:L.testId,icon:L.iconUrl,onClick:L.onClick,ariaLabel:(Pe=L.ariaLabel)!=null?Pe:L.tooltip,tooltipText:L.tooltip}}):[]]),$r=ae(B),Xa=$i([$r],([c])=>ie.features.additionalSettingsMenuItems?c.map($=>$.type==="SWITCH"?qt(Q({},$),{onClick:$.onChangeEnabled}):$):[]),_s=(c,$)=>{let L=$e(Jn).map(oe=>oe.id!==c?oe:Q(Q({},oe),$));Jn.set(L)},bs=c=>{let $=$e(Jn);if($.some(L=>L.id===c.id)){ge({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}$.push(c),Jn.set($)},Ja=c=>{let $=$e(Jn);if(!$.some(L=>L.id===c)){ge({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}$=$.filter(L=>L.id!==c),Jn.set($)},da=c=>{Yt.next(Ls.LIVE),ge({message:"live switch to low latency "+c}),pe.log("live switch to low latency "+c),k.setLiveLowLatency(c)},Ql=(c,$)=>{let L=$e($r).map(oe=>oe.id!==c?oe:Q(Q({},oe),$));$r.set(L)},el=c=>{let $=$e($r);if($.some(L=>L.id===c.id)){ge({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}$.push(c),$r.set($)},jl=c=>{let $=$e($r);if(!$.some(L=>L.id===c)){ge({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}$=$.filter(L=>L.id!==c),$r.set($)},er=ae(z),Gl=$i([er],([c])=>ie.features.additionalContextMenuItems?c:[]),tl=(c,$)=>{let L=$e(er).map(oe=>oe.id!==c?oe:Q(Q({},oe),$));er.set(L)},il=c=>{let $=$e(er);if($.some(L=>L.id===c.id)){ge({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}$.push(c),er.set($)},ca=c=>{let $=$e(er);if(!$.some(L=>L.id===c)){ge({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}$=$.filter(L=>L.id!==c),er.set($)},_t=$i([ct,te],([c,$],L)=>{L(c&&$)}),bt=()=>{Yt.next(Ls.LIVE),ge({message:"switch to active live"}),pe.log("switch to active live"),k.seekTime(0),k.info.playbackState$.getValue()!==Bl.PLAYING&&Kt.actions.internal.togglePlay()},to=()=>{pe.log("skip adman"),Re.skip()},Eo=(c=!0)=>{var oe;dr(Kt),ge({message:`switch from ads to video, callPlay: ${c}`}),pe.log("switch from ads to video",{callPlay:c}),$t.set("video"),c&&k.play(),l&&Yn(!0,!0);let $=(oe=$e(ot))==null?void 0:oe.muted,L=!k.info.muted$.getValue();$!==void 0&&!L&&Yn($,!0),ot.set(void 0)},io=()=>{dr(Kt),ge({message:"switch from video to ads"}),pe.log("switch from video to ads"),Kt.actions.internal.pause(),Ye(),$t.set("ads")},_i=c=>{dr(Kt);let $=c?"LiveWaitingStart":"thumb";pe.log("set live waiting start",{state:c,playerPhase:$}),$t.set($)},Wi=c=>{dr(Kt);let $=c?"LiveWaitingRecover":"thumb";pe.log("set live waiting recover",{state:c,playerPhase:$}),$t.set($)},Bs=c=>{dr(Kt);let $=c?"LiveWaitingRecord":"thumb";pe.log("set live waiting record",{state:c,playerPhase:$}),$t.set($)},Yl=()=>(dr(Kt),pe.log("get debug text data"),n1(k,ee,Kt,Ne.getTraceId())),Ic=()=>(dr(Kt),JSON.stringify(Ne.getFinishedSpans())),vp=()=>(dr(Kt),r1(k,ee,Kt)),ua=()=>ke,kc=()=>{ge({message:"toggle chromecast"}),pe.log("toggle chromecast"),k.toggleChromecast()},Hs=c=>{var L;if(dr(Kt),k.info.isEnded$.getValue())return;let $=!c;if($e(Kt.playerPhase)==="ads"){ge({message:`pause ads, internalCall: ${$}`}),pe.log("pause ads",{internalCall:$}),Re.pause();return}ge({message:`pause video, internalCall: ${$}`}),pe.log("pause video",{internalCall:$}),$&&((L=a==null?void 0:a.onPause)==null||L.call(a)),k.pause()},ol=c=>{var L;dr(Kt);let $=!c;if($e(Kt.playerPhase)==="ads"){ge({message:`play ads, internalCall: ${$}`}),pe.log("play ads",{internalCall:$}),Re.play();return}ge({message:`play video, internalCall: ${$}`}),pe.log("play video",{internalCall:$}),$&&((L=a==null?void 0:a.onPlay)==null||L.call(a)),k.play()},Ac=c=>{dr(Kt);let $=!c;if($e(Kt.playerPhase)==="ads"){ge({message:"player cannot be stopped during ads via external method"});return}ge({message:`player will be stopped, internalCall: ${$}`}),A==null||A()},Pc=(c,$)=>{dr(Kt),ge({message:`first start, show ads: ${c}, internalCall: ${!$}`}),pe.log("first start",{showAds:c,external:$}),c?$t.set("ads"):($t.set("video"),$?k.play():Kt.actions.internal.togglePlay())},nl=()=>(ge({message:"getting time codes"}),f),Mc=()=>{let c=nl();if(!c||[0,1].includes(c.length))return;let $=k.info.position$.getValue();return c.find(L=>L.time>$)},Lc=c=>{let $=c;$||($=Mc());let L=k.info.position$.getValue();pe.log("seek to next episode",Q({currentTime:L},$)),$&&(ge({message:"seek to next episode"}),hi($.time,Ls.EPISODE,!0))},Vc=()=>{let c=nl();if(!c||[0,1].includes(c.length))return;let $=k.info.position$.getValue(),L=c.findIndex(Pe=>Pe.time>$),oe=L===-1?c.length-2:L-2;if(!(oe<0))return c[oe]},mp=c=>{let $=c;$||($=Vc());let L=k.info.position$.getValue();pe.log("seek to prev episode",Q({currentTime:L},$)),$&&(ge({message:"seek to prev episode"}),hi($.time,Ls.EPISODE,!0))},gp=()=>(ge({message:"getting preview thumbs data"}),pe.log("get preview thumbs data",Q({},v)),v),ze=()=>yt(null,null,function*(){let c=ne==null?void 0:ne.isActive(),$="none";ne!=null&&ne.isActive()?($="exit",yield ne==null?void 0:ne.exit()):($="request",yield ne==null?void 0:ne.request()),pe.log("toggle picture in picture",{isActive:c,action:$})}),bi=(c=-90)=>{pe.log("rotate video",{alphaDiff:c}),Et.update($=>$+c)},co=ae([]);T==null||T.subscribe(c=>{let $=[];for(let L=0;L<c.length;L++){let{range:[oe,Pe],subjects:st}=c[L];L===0&&oe!==0&&$.push({time:0,text:"",interactive:!1,completed:!0}),$.push({time:oe/1e3,text:"",interactive:!0,completed:ie.features.interactiveTimeOpenUri?!st.length||st.every(Lt=>Lt.isRemoved):!st.length}),Pe!==1/0&&$.push({time:Pe/1e3,text:"",interactive:!1,completed:!0})}co.set($)});let pa=ae(!1);E==null||E.subscribe(c=>{c&&$e(xn)&&fi()});let rn=c=>{if(!C)return c;let $=$e(co),L=$e(So),Pe=$e(An)/L,st=$.find(Lt=>Lt.interactive&&!Lt.completed&&Lt.time>Pe);return typeof(st==null?void 0:st.time)=="number"?Math.min(c,st.time-.05):c},d_=()=>{Kt.ui.episodes.panelOpened$.set(!1)},c_=()=>{pe.log("destroy store"),clearTimeout(Si),clearTimeout(li),Xe.unsubscribe(),xi.unsubscribe(),k.destroy(),Re.destroy(),J==null||J.destroy(),Z==null||Z.destroy(),we.unsubscribe(),ni==null||ni.disconnect(),ni=null,Ue.destroy()},u_=$i([Ro,xe,Oi],([c,$,L])=>p.features.doubleForwardAvailable&&!c&&$==="video"&&L),hp=ae(!1),og=2,Rc=null,ng=c=>{if(!$e(qn)&&c)return;let $=k.info.currentPlaybackRate$.getValue();c?$!==og&&(Rc=$,Ji(og,!1),hp.set(!0)):(Rc&&Ji(Rc,!1),hp.set(!1),Rc=null)};xe.subscribe(c=>{c!=="video"&&ng(!1)});let p_=()=>{Hs(!1),eo.set(!0)},f_=()=>{ol(!1),eo.set(!1)},_p=!1,v_=()=>{Wr.set(!0),_p=k.info.playbackState$.getValue()===Bl.PLAYING,Hs(!1)},m_=()=>{Wr.set(!1),!$e(eo)&&_p&&ol(!1),_p=!1};k.events.playing$.subscribe(()=>{$e(eo)&&Hs(!1)});let Kt={interfaceLanguage$:Me,isCyrillicRelatedInterface$:De,initVideo:vo,videoId:i,isClip:o,playerPhase:xe,vsid:et,state:{positionExact$:oi,positionWithScrubbing$:wn,duration$:So,playbackState$:ft,isPlaying$:qn,isLoaderVisible:yi,bufferedProgress$:Or,isLive$:pt,canChangePlaybackSpeed$:Oi,isActiveLive$:Ro,isOldestAvailableLive$:fn,isRewindableLive$:vr,isEnded$:Gt,muted$:Lo,volume$:Xo,trafficSavingEnabled$:ao,highQualityEnabled$:Ui,autoQualityLimitingAvailable$:ur,availableVideoStreams$:Ir,availableAudioStreams$:kr,videoStream$:Ar,audioStream$:Gi,currentQuality$:Qn,isAutoQualityEnabled$:vi,availableQualities$:Ln,currentPlaybackRate$:Vn,availablePlaybackRates$:Oo,currentSubtitle$:_o,availableTextTracks$:Do,availableSubtitlesList$:gn,currentSubtitleCaptions$:Rn,isAutoSubtitleCaptionVisible$:jn,chromecastState$:Ni,chromecastDeviceName$:pn,chromecastConnected$:Er,currentFormat$:Vo,throughputEstimation$:pr,videoBitrate$:fr,videoSize$:Tr,errorLog$:Ce,crashed$:te,isAudioAvailable$:ms,isAudioDisabled:!!l,canDownload:ie.features.download&&!!d,availableSources$:Gn,hasMpegSources$:it,isInteractive:C,showInteractiveGraph:ie.features.interactiveGraph,showSeekToInteractive:ie.features.seekToInteractive,showPlayPrevChapter:ie.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ie.features.interactiveTimeIndicator&&!!$e(co).length,interactiveEpisodes$:co,isInteractiveTime$:E?ci(E):ae(!1),isInteractiveExpectation$:pa,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:N,looped$:Nr,loadedMetadata$:ti,isAutoQualityAvailable$:Lr,previewTrackActive:eo,previewTrackDragInProgress:Wr},ui:{t:ut,controlsVisible:ae(!1),touched:ae(!1),controls:{prevButton:ae(void 0),playButton:ae(void 0),replayButton:ae(void 0),nextButton:ae(void 0),playPrevChapterButton:ae(void 0),seekToInteractiveButton:ae(void 0),interactiveGraphButton:ae(void 0),liveButton:ae(void 0),time:ae(void 0),episodes:ae(void 0),volume:ae(void 0),subtitles:ae(void 0),settings:ae(void 0),context:ae(void 0),chromecast:ae(void 0),pip:ae(void 0),fullscreen:ae(void 0),vkLogo:ae(void 0),interactiveTimeIndicator:ae(void 0),timeline:ae(void 0),autoplayNextToggle:ae(void 0),additionalButtons:H.length?H.reduce(c=>[...c,ae(void 0)],[]):[],disabledControls$:lt},modals:{hotKeyMap:{show:ae(!1),data:ae({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Bt,isFullscreenOpenedByKeyboard:rt,rotateAlpha:Et,isAutoplay:ae(!1),debugPanelVisible:ae(!1),episodes:{panelOpened$:ae(!1),openedByKeyboard$:ae(!1)},contextMenu:{visible$:ae(!1),btnRef$:ae(void 0),openedByBtnKeyboard$:ae(!1),openedByHotKey$:ae(!1),lastActiveElem$:ae(void 0),showContextMenuBtn$:ae(!1),position$:ae({top:0,left:0})},playerSize:ii,isMobile:ct,mobileNotReportControlHidden$:_t,icon3DVideoVisible:ae(!1),scrubbingInProgress:xn,volumeChangingInProgress:nn,is3DVideo:Wt,currentGridType$:ra,additionalButtonsDeprecated$:aa,additionalDesktopControlPanelRightButtons$:la,additionalSettingsMenuItems$:Xa,additionalContextMenuItems$:Gl,interactiveHideMobileControls:ae(!1),overlayContainer$:ae(void 0),startedByKeyboard$:ae(!1),autoplayNextEnabled$:ae(!1),timerNextVideoRunning$:ae(!0),settingsMenu:{visible$:ae(!1),ref$:ae(void 0),openedByBtnKeyboard$:ae(!1)},settingsSubMenu:{visible$:ae(!1),ref$:ae(void 0),name$:ae(void 0)},userActionsDisabled:ae(!1),hiddenControls:{volume:ae(!1),vkLogo:ae(!1),pip:ae(!1),chromecast:ae(!1),settings:ae(!1)},isControlsAvailable:je,controlBlocks:{topLeft:ae(void 0),topRight:ae(void 0),middle:ae(void 0),bottom:ae(void 0),bottomLeft:ae(void 0),bottomRight:ae(void 0)},videoTitleInfo:ae(void 0),doubleForwardOn$:hp,doubleForwardAvailable$:u_,previewTrackNotificationVisible:ae(!1),previewTrackActive:eo,previewTrackDragInProgress:Wr,previewTrackAvailable:na,isPreviewTrackHorizontallyAligned:pi},ads:{position:ae(0),duration:ae(0),playbackState:ae("inactive"),canSkip:ae(!1),secondsToWatchBeforeSkip:ae(0),postrollPassed:ae(!1)},webApi:{pictureInPictureApi:ne,annotationsApi:He,slotsApi:Ze},actions:{internal:{preload:Ho,firstStart:c=>Pc(c,!1),play:()=>ol(!1),pause:()=>Hs(!1),togglePlay:Co,toggleMuted:Yi,openSettingsMenu:en,closeSettingsMenu:Bo,openSettingsSubMenu:ki,closeSettingsSubMenu:lo,setVolume:c=>hn(c,!1),setMuted:c=>Yn(c,!1),startVolumeChanging:Li,stopVolumeChanging:Za,setVideoStream:Pr,setAudioStream:c=>Pn(c,!1),setQuality:(c,$)=>Xi(c,$,!1),setTrafficSavingEnabled:(c,$)=>Mi(c,$,!1),setHighQualityEnabled:(c,$)=>tn(c,$,!1),setPlaybackRate:Ji,incrementPlaybackRate:Hr,decrementPlaybackRate:Zn,setSubtitle:c=>Xn(c,!1),toggleSubtitle:()=>br(!1),togglePictureInPicture:ze,startScrubbing:ye,progressScrubbing:vt,completeScrubbing:Ei,toggleChromecast:kc,switchToActiveLive:bt,switchFromAdsToVideo:Eo,switchFromVideoToAds:io,skipAd:to,setLiveWaitingStart:_i,setLiveWaitingRecover:Wi,setLiveWaitingRecord:Bs,getDebugTextData:Yl,getTraceTextData:Ic,getDebugPanelData:vp,getVideoElement:ua,seekTime:(c,$,L)=>hi(c,$,L),clearDelayedBufferingCheckTimeout:ts,seekEpisodeStartTime:yn,seekToPercent:Uo,getNextEpisode:Mc,seekToNextEpisode:Lc,getPrevEpisode:Vc,seekToPrevEpisode:mp,startLogging:wo,stopLogging:Zo,startCameraManualRotation:un,stopCameraManualRotation:kt,moveCameraFocusPX:Ht,holdCamera:K,releaseCamera:Vt,getVideoEpisodes:nl,getPreviewThumbsData:gp,downloadVideo:Di,addLanguage:Af,setLanguage:Te,nextMovie:mt,videoRotate:bi,correctSeekTimeToInteractive:rn,replayInteractive:R,setLooped:Dr,reportProblem:_n,setAutoplayNextEnabled:bn,setTimerNextVideoRunning:_r,prevVideoClick:$n,nextVideoClick:Br,nextVideoAnnouncementShow:tt,nextVideoAnnouncementClick:Mt,nextVideoAnnouncementAuto:wi,nextVideoAnnouncementCancel:$o,checkFullscreenSupport:Dt,changeDoubleForwardOn:ng,closePreviewTrack:f_,previewTrackOpened:p_,previewTrackDragStarted:v_,previewTrackDragFinished:m_},external:{firstStart:c=>Pc(c,!0),play:()=>ol(!0),pause:()=>Hs(!0),stop:()=>Ac(!0),seekTime:c=>Ur(c),seekEpisodeStartTime:c=>zr(c),setPlaybackRate:c=>Ds(c),setAutoQualityLimits:c=>on(c),setMuted:c=>Yn(c,!0),toggleSubtitle:()=>br(!0),changeSubtitle:gs,setVolume:c=>hn(c,!0),returnFocusToEpisodes:d_,updateAdditionalSettingsItem:Ql,addAdditionalSettingsItem:el,removeAdditionalSettingsItem:jl,updateAdditionalContextItem:tl,addAdditionalContextItem:il,removeAdditionalContextItem:ca,updateAdditionalButton:_s,addAdditionalButton:bs,removeAdditionalButton:Ja,setLiveLowLatency:da,hideControls:()=>Jt(!1),showControls:()=>Jt(!0),setQuality:c=>Xi(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>Mi(c,"to-video",!0),setHighQualityEnabled:c=>tn(c,"to-video",!0),changeAudioStream:ho}},callbacks:a,setUiCallbacks:c=>{he=Q({},c)},getAdmanWrapper:()=>Re,getLogger:()=>qe,getPlayer:()=>k,destroy:c_};return Kt};function Wn(t,e,i,o){var f;let r=(f=e[i])==null?void 0:f.getBoundingClientRect(),s=o&&!!r&&!!(r.right-r.left),{top:l,left:d,bottom:a,right:u}=Ms(e[i],t||void 0);return{left:s?d:0,right:s?u:0,top:s?l:0,bottom:s?a:0,isDisplayed:s}}var u4=["disabledControls$","additionalButtons"],p4=["interactiveTimeIndicator"],Fl=(t,e,i,o)=>{if(t){for(let[r,s]of Object.entries(e))if(!u4.includes(r)){let l=o||p4.includes(r);s.set(Wn(t,i,r,l))}}};var Qu=(t,e,i)=>yt(null,null,function*(){yield Ao(),e&&i&&(i.focus(),t.set(!1))});var f4=Ie('<svg><!><path fill="var(--btn-color, #fff)" d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"></path></svg>');function Sv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=f4();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}function Cv(t,e){F(e,!0);let[i,o]=Be(),r=()=>S(a,"$contextMenuVisible$",i),s=h(e,"disabled",3,!1),l=h(e,"ariaLabel",3,""),d=_e(),a=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,v=d.ui.contextMenu.position$,p=d.ui.contextMenu.btnRef$,x=j(void 0);We(()=>{n(x)&&Pt(()=>{p.set(n(x))})});let w=E=>{let R=ea(E),A=X1(n(x));v.set(A),u.set(R),a.set(!r())},y=()=>{f.set(!0)},C=()=>{f.set(!1)},T=m(()=>r()?"opened":"");zt(t,{get className(){return n(T)},testId:"btn-context-menu",get disabled(){return s()},get ariaLabel(){return l()},click:w,focus:y,blur:C,get ariaExpanded(){return r()},get ref(){return n(x)},set ref(E){O(x,E,!0)},children:(E,R)=>{Sv(E,{})},$$slots:{default:!0}}),U(),o()}var v4=t=>{t.stopPropagation()},m4=M("<div><!> <div></div> <div></div></div>"),g4={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
|
|
234
234
|
|
|
235
235
|
@media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
|
|
236
236
|
}
|
|
@@ -255,8 +255,16 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},l1=mb;var w
|
|
|
255
255
|
opacity: 0;
|
|
256
256
|
}
|
|
257
257
|
}.pulse.svelte-od3veb {display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);
|
|
258
|
-
animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function Ld(t,e){var G;U(e,!0),q(t,e4);let[i,o]=De(),n=()=>S(T,"$isMobile",i),s=()=>S(I,"$areControlsVisible",i),l=()=>S(B,"$currentGridType$",i),d=()=>S(E,"$isInteractiveTime$",i),a=()=>S(y,"$interactiveControlsOpacity$",i),u=()=>S(R,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>S(C,"$isFullscreen",i),m=v(e,"ref",15,void 0),p=J(void 0),x=Te(),w=fo(),{interactiveControlsOpacity$:y}=w,T=x.ui.isMobile,C=x.ui.isFullscreen,E=x.state.isInteractiveTime$,R=w.showInteractiveTimeIndicatorTooltip$,I=x.ui.controlsVisible,k=(G=x.callbacks)==null?void 0:G.onInteractiveTimeIndicatorClick,B=x.ui.currentGridType$,F=g(()=>!n()&&s()),H=g(()=>Cs(l(),"s")),W=g(()=>!d()||!!a()||r(F)),Z=J(!1);Qe(()=>{N(Z,r(W),!0)});let ne=()=>{N(Z,!0)},j=()=>{var ie;_e(),(ie=r(p))==null||ie.addEventListener("animationiteration",ne,{once:!0})},_e=()=>{var ie;N(Z,!1),(ie=r(p))==null||ie.removeEventListener("animationiteration",ne)},ee=ie=>{R.set(ie)},fe=g(()=>u()&&!r(W));Qe(()=>{u()?j():_e()});let ve=()=>{r(W)||(R.set(!0),k==null||k())};on(()=>{R.clearTimeout(),_e()});let pe=()=>{R.set(!1)},Me=Q("tooltip_interactive_interaction_time_indicator");var Ve=Jy();let de;Ve.__mousemove=[Xy],Ve.__click=ve;var Ne=_(Ve);So(Ne,{get tooltipContent(){return Me},get tooltipActive(){return r(fe)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:ee,get ref(){return m()},set ref(ie){m(ie)},children:(ie,Oe)=>{wd(ie,{completed:!0})},$$slots:{default:!0}});var se=A(Ne,2);let P;at(se,ie=>m(ie),()=>m());var nt=A(se,2);let Be;at(nt,ie=>N(p,ie),()=>r(p)),h(Ve),D((ie,Oe,et)=>{de=re(Ve,1,"interactive-episode-icon-animated svelte-od3veb",null,de,ie),P=re(se,1,"ref-block svelte-od3veb",null,P,Oe),Be=re(nt,1,"pulse svelte-od3veb",null,Be,et)},[()=>({mobile:n(),fullscreen:f(),invisible:r(W),"icon-small":r(H)}),()=>({hidden:r(W)}),()=>({paused:r(Z)})]),Et("mouseleave",Ve,pe),$(t,Ve),z(),o()}ct(["mousemove","click"]);function Au(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=He();let u=g(()=>e.buttonComponent);var f=me(a);Li(f,()=>r(u),(m,p)=>{p(m,xs(()=>{var x;return(x=e.buttonComponentProps)!=null?x:{}}))}),$(l,a)},$$slots:{default:!0}}),z()}var Is={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var i4=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"></path></svg>');function hm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=i4();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:le}),we(),h(o),$(t,o)}function Md(t,e){let i=v(e,"isPrev",3,!1),o=v(e,"isMobile",3,!1),n=v(e,"width",3,"24"),s=v(e,"height",3,"24"),l=g(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=g(()=>i()?"prev-icon":"next-icon");hm(t,{get style(){return r(l)},get width(){return n()},get height(){return s()},get viewBox(){return e.viewBox},get"data-testid"(){return r(d)}})}var o4=M('<div class="icon-background-mobile svelte-xtk2k4"></div>'),n4=M("<!> <!>",1),r4={hash:"svelte-xtk2k4",code:".icon-background-mobile.svelte-xtk2k4 {position:absolute;top:0;left:0;width:100%;height:100%;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);}"};function Ta(t,e){U(e,!0),q(t,r4);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"disabled",3,!1),l=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")),u=g(()=>`btn-${o()?"m":"d"}--${e.type}`);Nt(t,{get className(){return r(u)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return n()},get ariaLabel(){return r(d)},get click(){return e.click},get ariaKeyShortCut(){return r(a)},get ref(){return i()},set ref(f){i(f)},children:(f,m)=>{var p=n4(),x=me(p);{var w=C=>{var E=o4();$(C,E)};V(x,C=>{o()&&C(w)})}var y=A(x,2);let T=g(()=>e.type==="prev");Md(y,{get isMobile(){return o()},get isPrev(){return r(T)}}),$(f,p)},$$slots:{default:!0}}),z()}var s4=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M12 10.096a.4.4 0 0 1-.67.296L7.044 6.493a.67.67 0 0 1 0-.986l4.288-3.899a.4.4 0 0 1 .669.296V5a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"></path></svg>');function Vd(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=s4();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:le}),we(),h(o),$(t,o)}import{noop as a4}from"@vkontakte/videoplayer-shared/es2015";var l4=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),d4=M("<!> <div><!></div>",1),c4={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function _l(t,e){U(e,!0),q(t,c4);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"disabled",3,!1),s=v(e,"className",3,""),l=v(e,"click",3,a4),d=Q("tooltip_restart"),a=g(()=>`${o()?"btn-m--play":""} ${s()}`);Nt(t,{get className(){return r(a)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return n()},get click(){return l()},get ariaKeyShortCut(){return ds.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,f)=>{var m=d4(),p=me(m);{var x=C=>{var E=l4();$(C,E)};V(p,C=>{o()&&C(x)})}var w=A(p,2);let y;var T=_(w);Vd(T,{}),h(w),D(C=>y=re(w,1,"svelte-1ot3duq",null,y,C),[()=>({mobile:o()})]),$(u,m)},$$slots:{default:!0}}),z()}var u4=Se('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="play-icon"><path d="M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"></path></svg>');function Gr(t,e){"use strict";let i=v(e,"width",3,"24"),o=v(e,"height",3,"24"),n=v(e,"viewBox",3,"0 0 24 24"),s=v(e,"fill",3,"var(--btn-color)");var l=u4(),d=_(l);h(l),D(()=>{Ue(l,"width",i()),Ue(l,"height",o()),Ue(l,"viewBox",n()),Ue(d,"fill",s())}),$(t,l)}var p4=Se('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="pause-icon"><path d="M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"></path></svg>');function ks(t,e){"use strict";let i=v(e,"width",3,"24"),o=v(e,"height",3,"24"),n=v(e,"viewBox",3,"0 0 24 24"),s=v(e,"fill",3,"var(--btn-color)");var l=p4(),d=_(l);h(l),D(()=>{Ue(l,"width",i()),Ue(l,"height",o()),Ue(l,"viewBox",n()),Ue(d,"fill",s())}),$(t,l)}import{noop as f4}from"@vkontakte/videoplayer-shared/es2015";var m4=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),v4=M("<!> <div><!></div>",1),g4={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function bl(t,e){U(e,!0),q(t,g4);let[i,o]=De(),n=()=>S(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=fo(),l=v(e,"ref",15,void 0),d=v(e,"isMobile",3,!1),a=v(e,"isPlaying",3,!1),u=v(e,"disabled",3,!1),f=v(e,"className",3,""),m=v(e,"click",3,f4),x=Te().ui.t,{toggle:w}=s,y=g(()=>w),T=g(()=>n()!==null),C=g(()=>r(T)?n():a()),E=g(()=>r(C)?x("tooltip_pause"):x("tooltip_play")),R=g(()=>r(C)?ks:Gr),I=g(()=>`${d()?"btn-m--play":""} ${f()}`),k=g(()=>r(T)?r(y):m());Nt(t,{get className(){return r(I)},testId:"btn-play",get click(){return r(k)},get disabled(){return u()},get ariaLabel(){return r(E)},get ariaKeyShortCut(){return ds.KeyK},get ref(){return l()},set ref(B){l(B)},children:(B,F)=>{var H=v4();let W=g(()=>r(R));var Z=me(H);{var ne=fe=>{var ve=m4();$(fe,ve)};V(Z,fe=>{d()&&fe(ne)})}var j=A(Z,2);let _e;var ee=_(j);Li(ee,()=>r(W),(fe,ve)=>{ve(fe,{})}),h(j),D(fe=>_e=re(j,1,"svelte-1ot3duq",null,_e,fe),[()=>({mobile:d()})]),$(B,H)},$$slots:{default:!0}}),z(),o()}var h4=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"></path></svg>');function _m(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=h4();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:le}),we(),h(o),$(t,o)}function Rd(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=Q("tooltip_interactive_go_back"),l=g(()=>o()?"hidden":"");Nt(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)=>{_m(d,{})},$$slots:{default:!0}}),z()}var _4=M('<span class="gutter svelte-et3q1q"><span><!></span></span>'),b4={hash:"svelte-et3q1q",code:".gutter.svelte-et3q1q {--gutterWidth: 32px;--gutterHeight: 12px;--togglerWidth: 18px;--togglerHeight: 18px;--togglerGap: calc(var(--togglerWidth) / 6);position:relative;width:var(--gutterWidth);height:var(--gutterHeight);background-color:rgba(255, 255, 255, 0.3);border-radius:50px;}.toggler.svelte-et3q1q {position:absolute;top:calc(((var(--togglerHeight) - var(--gutterHeight)) / 2) * -1);left:0;display:flex;align-items:center;justify-content:center;width:var(--togglerWidth);height:var(--togglerHeight);background-color:rgba(98, 99, 100, 1);border-radius:50%;transform:translateX(calc(var(--togglerGap) * -1));transition-property:background-color, transform;transition-duration:0.2s;transition-timing-function:ease;}.toggler.enabled.svelte-et3q1q {background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)));}"};function Od(t,e){U(e,!0),q(t,b4);let[i,o]=De(),n=()=>S(a,"$autoplayNextEnabled$",i),s=v(e,"ref",15,void 0),l=Te(),d=l.ui.t,a=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,f=()=>{u(!n(),!0)},m=d("aria_label_autoplay"),p=g(()=>n()?"true":"false");Nt(t,{click:f,get ariaLabel(){return m},role:"switch",get areaChecked(){return r(p)},get ref(){return s()},set ref(x){s(x)},children:(x,w)=>{var y=_4(),T=_(y);let C;var E=_(T);{var R=k=>{Gr(k,{width:"14",height:"14",fill:"#000"})},I=k=>{ks(k,{width:"14",height:"14",fill:"#000"})};V(E,k=>{n()?k(R):k(I,!1)})}h(T),h(y),D(k=>C=re(T,1,"toggler svelte-et3q1q",null,C,k),[()=>({enabled:n()})]),$(x,y)},$$slots:{default:!0}}),z(),o()}var $4=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"></path></svg>');function bm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=$4();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:le}),we(2),h(o),$(t,o)}function Nd(t,e){U(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),s=Q("tooltip_interactive_seek"),l=g(()=>o()?"hidden":"");Nt(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)=>{bm(d,{})},$$slots:{default:!0}}),z()}var y4=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z" class="_closed" clip-rule="evenodd"></path></svg>');function $m(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=y4();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:le}),we(2),h(o),$(t,o)}var x4={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function ym(t,e){q(t,x4);let i=v(e,"isOpened",3,!1),o=g(()=>i()?"graph-close-icon":"graph-open-icon");$m(t,{get"data-testid"(){return r(o)}})}function Bd(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")),u=g(()=>o()?"hidden":"");Nt(t,{get className(){return r(u)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return r(a)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,m)=>{let p=g(()=>!!s());ym(f,{get isOpened(){return r(p)}})},$$slots:{default:!0}}),z()}import{PlaybackState as Y1}from"@vkontakte/videoplayer-core/es2015";function Dd(t,e){U(e,!0);let[i,o]=De(),n=()=>S(u,"$playbackState$",i),s=v(e,"isMobile",3,!1),l=v(e,"isLiveActive",3,!1),d=v(e,"ariaLabel",3,""),a=Te(),u=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,m=a.actions.internal.togglePlay,p=g(()=>()=>{if(!l()){f();return}n()===Y1.PAUSED&&m()}),x=g(()=>s()?"":"btn--live btn-full-opacity"),w=g(()=>l()?"btn-live":"btn-live-offset"),y=g(()=>l()&&n()===Y1.PLAYING);Nt(t,{get className(){return r(x)},get testId(){return r(w)},get disabled(){return r(y)},get ariaLabel(){return d()},get click(){return r(p)},children:(T,C)=>{ld(T,{get isActive(){return l()}})},$$slots:{default:!0}}),z(),o()}import{noop as Z1}from"@vkontakte/videoplayer-shared/es2015";var w4=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),S4=M('<img class="icon" aria-hidden="true"/>');function Ea(t,e){"use strict";let i=J(!1),o=()=>{N(i,!0)};var n=He(),s=me(n);{var l=a=>{var u=w4();$(a,u)},d=a=>{var u=S4();D(()=>Ue(u,"src",e.icon)),Et("error",u,o),la(u),$(a,u)};V(s,a=>{r(i)?a(l):a(d,!1)})}$(t,n)}function xm(t,e){U(e,!0);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,Z1),n=v(e,"ref",15),s=g(()=>o()===Z1),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,u)=>{let f=g(()=>{var m;return(m=e.testId)!=null?m:e.id});Nt(a,{get className(){return r(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(l)},get testId(){return r(f)},children:(m,p)=>{Ea(m,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),z()}var X1=t=>!!t.buttonComponent;var As={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var Pu=(t,e,i,o)=>{if(t)for(let[n,s]of Object.entries(e))s.set(Nn(t,i,n,o))};var E4=M('<div><!> <div class="controls svelte-1iiubm3" data-testid="player_controls"><div class="controls-left svelte-1iiubm3"><!> <!> <!></div> <div class="controls-right svelte-1iiubm3"></div></div></div> <!>',1),I4={hash:"svelte-1iiubm3",code:".wrapper-bottom.svelte-1iiubm3 {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-1iiubm3::before {content:'';height:var(--controls-gradient-height);background:var(--controls-gradient);position:absolute;width:100%;}.wrapper-bottom.svelte-1iiubm3 > :where(.svelte-1iiubm3) {pointer-events:auto;}.controls.svelte-1iiubm3 {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 var(--controls-desktop-padding-horizontal) 4px;box-sizing:border-box;}.controls-left.svelte-1iiubm3, .controls-right.svelte-1iiubm3 {display:flex;align-content:center;}.controls-left.svelte-1iiubm3 {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-1iiubm3 > *:not(:first-child), .controls-right.svelte-1iiubm3 > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-1iiubm3 {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1iiubm3 {transition:none;}"};function Sm(t,e){var $o,tr;U(e,!0),q(t,I4);let[i,o]=De(),n=()=>S(xt,"$disabledControls$",i),s=()=>S(Kt,"$adPlaybackState",i),l=()=>S(yt,"$playbackState$",i),d=()=>S(go,"$currentSubtitle$",i),a=()=>S(Jt,"$isEnded$",i),u=()=>S(bi,"$currentGridType$",i),f=()=>S(_i,"$isLive$",i),m=()=>S(Si,"$chromecastState$",i),p=()=>S(vo,"$isPictureInPictureActive",i),x=()=>S(Ct,"$pictureInPictureType$",i),w=()=>S(Qi,"$availableSubtitlesList$",i),y=()=>S(Co,"$contextMenuOpenedByKeyboard$",i),T=()=>S(Vi,"$showContextMenuBtn$",i),C=()=>S(oi,"$playerSize",i),E=()=>S(mo,"$isRewindableLive$",i),R=()=>S(Ii,"$isActiveLive$",i),I=()=>S(fr,"$graphIsOpened$",i),k=()=>S(Ye,"$contextMenuVisible$",i),B=()=>S(mt,"$isFullscreen",i),F=()=>S(bt,"$autoplayNextEnabled",i),H=()=>S(r($r),"$prevButton",i),W=()=>S(r(Tn),"$replayButton",i),Z=()=>S(r(pt),"$playButton",i),ne=()=>S(r(ci),"$nextButton",i),j=()=>S(r(io),"$playPrevChapterButton",i),_e=()=>S(r(jo),"$seekToInteractiveButton",i),ee=()=>S(r(ui),"$interactiveGraphButton",i),fe=()=>S(r(un),"$liveButton",i),ve=()=>S(r(Fi),"$time",i),pe=()=>S(r(Gi),"$episodes",i),Me=()=>S(r(ji),"$vkLogo",i),Ve=()=>S(r(Yo),"$volume",i),de=()=>S(r(En),"$subtitles",i),Ne=()=>S(r(Mr),"$settings",i),se=()=>S(r(Zo),"$context",i),P=()=>S(r(Vr),"$fullscreen",i),nt=()=>S(r(Rr),"$chromecast",i),Be=()=>S(mi,"$additionalDesktopControlPanelRightButtons$",i),G=()=>S(ao,"$isInteractiveTime$",i),ie=()=>S(ii,"$settingsMenuVisible",i),Oe=()=>S($i,"$settingButtonRef$",i),et=()=>S(To,"$startedByKeyboard$",i),xe=()=>S(Vt,"$isAudioAvailable$",i),te=()=>S(Gt,"$fakeIsPlaying$",i),Ce=()=>S(Eo,"$seekToInteractiveDisabledTooltip$",i),Ee=()=>S(Wt,"$adPosition",i),qe=()=>S(Lt,"$position$",i),it=()=>S(tt,"$adDuration",i),ft=()=>S(Xe,"$duration$",i),dt=v(e,"playerControlsWrapperRef",15,void 0),gt=v(e,"playerControlsRef",15,void 0),ot=v(e,"isAds",3,!1),Ut=v(e,"logoTargetUrl",3,""),Qt=v(e,"isOneVideoPlaylist",3,!1),Yt=v(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Gt}=fo(),Ae=Te(),jt=fo(),be=It(),Ie=Ae.actions.internal.toggleMuted,ce=Ae.actions.internal.togglePlay,Ge=Ae.actions.internal.pause,ze=Ae.actions.internal.toggleSubtitle,ue=Ae.actions.internal.checkFullscreenSupport,Fe=($o=Ae.callbacks)==null?void 0:$o.onAudioDoesNotExistHint,$e=(tr=Ae.callbacks)==null?void 0:tr.onAudioDisabledHint,Xe=Ae.state.duration$,Lt=Ae.state.positionWithScrubbing$,yt=Ae.state.playbackState$,Vt=Ae.state.isAudioAvailable$,hi=Ae.state.isAudioDisabled,Jt=Ae.state.isEnded$,_i=Ae.state.isLive$,Ii=Ae.state.isActiveLive$,mo=Ae.state.isRewindableLive$,{isActive$:vo,type$:Ct}=jt.pictureInPicture$,ii=Ae.ui.settingsMenu.visible$,si=Ae.ui.settingsMenu.openedByBtnKeyboard$,We=Ae.ui.controls,At=Ae.actions.internal.getVideoEpisodes(),Si=Ae.state.chromecastState$,Qi=Ae.state.availableSubtitlesList$,go=Ae.state.currentSubtitle$,xt=We.disabledControls$,Ye=Ae.ui.contextMenu.visible$,Vi=Ae.ui.contextMenu.showContextMenuBtn$,Co=Ae.ui.contextMenu.openedByBtnKeyboard$,To=Ae.ui.startedByKeyboard$,sn=Ae.ui.controlBlocks,O=Ae.ui.t,tt=Ae.ads.duration,Wt=Ae.ads.position,Kt=Ae.ads.playbackState,mt=Ae.ui.isFullscreen,oi=Ae.ui.playerSize,bi=Ae.ui.currentGridType$,mi=Ae.ui.additionalDesktopControlPanelRightButtons$,bt=Ae.ui.autoplayNextEnabled$,ki=Ae.actions.internal.getVideoElement,so=Ae.actions.internal.replayInteractive,bn=Ae.actions.internal.prevVideoClick,$n=Ae.actions.internal.nextVideoClick,pi=Ae.state.isInteractive,ao=Ae.state.isInteractiveTime$,pr=Ae.state.showInteractiveGraph,lo=Ae.state.showSeekToInteractive,to=Ae.state.showPlayPrevChapter,Dn=Ae.state.showInteractiveTimeIndicator,qo=Ae.state.playPrevChapterDisabledTooltip,Eo=jt.seekToInteractiveDisabledTooltip$,fr=jt.graphIsOpened$,Fn=be.features.interactiveResponsiveUi,mr=g(()=>n().has("EPISODE_BUTTON")),fs=g(()=>n().has("GRAPH_BUTTON")),Yr=g(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),yn=g(()=>n().has("PLAY_BUTTON")),Hn=g(()=>n().has("REPLAY_BUTTON")),xn=g(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),Qo=()=>Ae.actions.internal.toggleChromecast(),Go=g(()=>ot()?s()==="playing":l()===wm.PLAYING),Un=g(()=>d().value!=="off"),vr=g(()=>a()&&!ot()||pi),Zr=g(()=>Fn?r(vr)&&Ji(u(),"m"):r(vr)),co=g(()=>!a()||pi||ot()),Ar=g(()=>Ji(u(),"m")),an=g(()=>e.showNextPrevButtons&&Ji(u(),"m")&&!ot()&&e.nextButtonActive),wn=g(()=>e.showNextPrevButtons&&Ji(u(),"m")&&!ot()&&e.prevButtonActive),zn=g(()=>!ot()&&!!f()),gr=g(()=>m()!==J1.NOT_AVAILABLE&&!(p()&&x()===1)&&Ji(u(),"m")&&!pi),Wn=g(()=>e.showAutoplayNext&&!Qt()&&Ji(u(),"s")),ho=g(()=>w().length>0&&Ji(u(),"m")),Xr=g(()=>y()||T()),Sn=g(()=>Ji(u(),"s")&&!ot()),ut=g(()=>!e.logoHidden&&!ot()),ai=g(()=>be.features.fullscreen&&ue()&&(e.logoHidden||Ji(u(),Fn?"xs":"s"))&&!(p()&&x()===1)&&(pi?Yt():!0)),ln=g(()=>(!f()||ot())&&!(be.features.interactiveHideTime&&pi)),Cn=g(()=>C().width>100),Pr=g(()=>pr&&Ji(u(),"m")),Io=g(()=>Fn?lo&&Ji(u(),"s"):lo),dn=g(()=>Fn?to&&Ji(u(),"s"):to),fi=g(()=>!ot()&&!f()&&!!(At!=null&&At.length)&&r(Ar)&&!r(mr)),Ai=g(()=>!E()||!!R()),ko=g(()=>I()?O("tooltip_interactive_graph_on"):O("tooltip_interactive_graph_off")),Kn=g(()=>k()?O("tooltip_context_menu_close"):O("tooltip_context_menu_open")),hr=(wt,$t)=>wt?$t&&$t===wm.PAUSED?O("tooltip_play"):"":O("tooltip_live"),Lr=g(()=>hr(r(Ai),l())),_r=g(()=>be.logoType==="vk_video"?O("tooltip_vk_video_logo"):O("tooltip_vk_logo")),qn=g(()=>r(Un)?O("tooltip_subtitles_on"):O("tooltip_subtitles_off")),Qn=g(()=>B()?O("tooltip_fullscreen_on"):O("tooltip_fullscreen_off")),Ao=g(()=>m()===J1.CONNECTED?O("tooltip_chromecast_on"):O("tooltip_chromecast_off")),Gn=g(()=>F()?O("tooltip_autoplay_on"):O("tooltip_autoplay_off")),br=J(0),ni=ei({}),cn=ei({}),$r=g(()=>We.prevButton),Tn=g(()=>We.replayButton),pt=g(()=>We.playButton),ci=g(()=>We.nextButton),io=g(()=>We.playPrevChapterButton),jo=g(()=>We.seekToInteractiveButton),ui=g(()=>We.interactiveGraphButton),un=g(()=>We.liveButton),Fi=g(()=>We.time),Gi=g(()=>We.episodes),ji=g(()=>We.vkLogo),Yo=g(()=>We.volume),En=g(()=>We.subtitles),Mr=g(()=>We.settings),Zo=g(()=>We.context),Vr=g(()=>We.fullscreen),Rr=g(()=>We.chromecast),Po=g(()=>({prevButton:H()?H().right-H().left:0,replayButton:W()?W().right-W().left:0,playButton:Z()?Z().right-Z().left:0,nextButton:ne()?ne().right-ne().left:0,playPrevChapterButton:j()?j().right-j().left:0,seekToInteractiveButton:_e()?_e().right-_e().left:0,interactiveGraphButton:ee()?ee().right-ee().left:0,liveButton:fe()?fe().right-fe().left:0,time:ve()?ve().right-ve().left:0,episodes:pe()?pe().right-pe().left:0,vkLogo:Me()?Me().right-Me().left:0,volume:Ve()?Ve().right-Ve().left:0,subtitles:de()?de().right-de().left:0,settings:Ne()?Ne().right-Ne().left:0,context:se()?se().right-se().left:0,fullscreen:P()?P().right-P().left:0,chromecast:nt()?nt().right-nt().left:0,additionalButtons:Be().length?Be().reduce(wt=>[...wt,40],[]):[]})),jn=J(0);Qe(()=>{(!r(jn)||r(jn)<r(Po).time)&&St(()=>N(jn,r(Po).time,!0))});let Or=J(!1);Qe(()=>{let wt=0;r(fi)&&(Ji(u(),"xl")?wt=r(Po).time:wt=60);let $t=r(Po).prevButton+r(Po).playButton+r(Po).nextButton+r(Po).seekToInteractiveButton+r(Po).interactiveGraphButton+r(Po).liveButton+r(jn)+wt;N(Or,r(ln)&&r(br)>=$t,!0)});let Yn=g(()=>r(Or)&&Ji(u(),"m")),st=e0(hl,260),Pt=e0(Pu,260);Qe(()=>{C(),G(),st(ki(),We,ni,e.showControls),Pt(ki(),sn,cn,e.showControls)}),Qe(()=>{cn.bottom=dt()});let $i=ae();Qe(()=>{ie(),Oe()&&St(()=>cl(Oe(),ie(),si))});let uo;Qe(()=>{et(),St(()=>ku(To,et(),uo))});function Ri(){Gs({isAudioDisabled:hi,isAudioAvailable:xe(),isAds:ot(),audioIsNotExistHintCallback:Fe,audioDisabledHintCallback:$e})&&Ie()}let Yi=pi?so:ce,Oi=g(()=>te()!==null),_o=g(()=>r(Oi)?te():r(Go)),In=g(()=>r(_o)?O("tooltip_pause"):O("tooltip_play")),Lo=O("tooltip_episodes"),Mo=g(()=>{var wt,$t,po,Xo;return r(wn)?{id:"prevButton",type:"desktop-control-panel-left",weight:Is.prevButton,buttonComponent:Ta,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:bn.bind(null,!0)},tooltipEnabled:!(($t=(wt=Ae.callbacks)==null?void 0:wt.uiInfo)!=null&&$t.onPrevButtonMouseEnter)&&!((Xo=(po=Ae.callbacks)==null?void 0:po.uiInfo)!=null&&Xo.onPrevButtonMouseLeave),mouseEnter:()=>{var Zi,li,Ui;(Ui=(li=(Zi=Ae.callbacks)==null?void 0:Zi.uiInfo)==null?void 0:li.onPrevButtonMouseEnter)==null||Ui.call(li,Nn(ki(),ni,"prevButton",e.showControls))},mouseLeave:()=>{var Zi,li,Ui;(Ui=(li=(Zi=Ae.callbacks)==null?void 0:Zi.uiInfo)==null?void 0:li.onPrevButtonMouseLeave)==null||Ui.call(li,Nn(ki(),ni,"prevButton",e.showControls))},tooltipText:O("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Vo=g(()=>r(Zr)?{id:"replayButton",type:"desktop-control-panel-left",weight:Is.replayButton,buttonComponent:_l,buttonComponentProps:{disabled:r(Hn),click:Yi},tooltipText:O("tooltip_restart"),disabled:r(Hn)}:void 0),Zn=g(()=>r(co)?{id:"playButton",type:"desktop-control-panel-left",weight:Is.playButton,buttonComponent:bl,buttonComponentProps:{disabled:r(yn),isPlaying:r(Go),click:ce},tooltipText:r(In),disabled:r(yn)}:void 0),kn=g(()=>{var wt,$t,po,Xo;return r(an)?{id:"nextButton",type:"desktop-control-panel-left",weight:Is.nextButton,buttonComponent:Ta,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:$n.bind(null,!0)},tooltipEnabled:!(($t=(wt=Ae.callbacks)==null?void 0:wt.uiInfo)!=null&&$t.onNextButtonMouseEnter)&&!((Xo=(po=Ae.callbacks)==null?void 0:po.uiInfo)!=null&&Xo.onNextButtonMouseLeave),mouseEnter:()=>{var Zi,li,Ui;(Ui=(li=(Zi=Ae.callbacks)==null?void 0:Zi.uiInfo)==null?void 0:li.onNextButtonMouseEnter)==null||Ui.call(li,Nn(ki(),ni,"nextButton",e.showControls))},mouseLeave:()=>{var Zi,li,Ui;(Ui=(li=(Zi=Ae.callbacks)==null?void 0:Zi.uiInfo)==null?void 0:li.onNextButtonMouseLeave)==null||Ui.call(li,Nn(ki(),ni,"nextButton",e.showControls))},tooltipText:O("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),yr=g(()=>pi&&r(dn)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Is.playPrevChapterButton,buttonComponent:Rd,buttonComponentProps:{disabled:r(xn),click:e.playPrevChapter},tooltipText:O("tooltip_interactive_go_back"),disabledTooltipContent:O(qo),disabled:r(xn)}:void 0),xr=g(()=>pi&&r(Io)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Is.seekToInteractiveButton,buttonComponent:Nd,buttonComponentProps:{disabled:r(Yr),click:e.seekToInteractive},tooltipText:O("tooltip_interactive_seek"),disabled:r(Yr),disabledTooltipContent:O(Ce())}:void 0),Xn=g(()=>pi&&r(Pr)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Is.interactiveGraphButton,buttonComponent:Bd,buttonComponentProps:{disabled:r(fs),click:fr.toggle,graphIsOpened:I()},tooltipText:r(ko)}:void 0),Nr=g(()=>r(zn)?{id:"liveButton",type:"desktop-control-panel-left",weight:Is.liveButton,buttonComponent:Dd,buttonComponentProps:{isLiveActive:r(Ai),ariaLabel:r(Lr)},tooltipText:r(Lr),disabled:r(Ai)&&l()===wm.PLAYING}:void 0),Jr=g(()=>[r(Mo),r(Vo),r(Zn),r(kn),r(yr),r(xr),r(Xn),r(Nr)].filter(wt=>!!wt).sort(_a)),Ke=g(()=>r(ut)?{id:"vkLogo",type:"desktop-control-panel-right",weight:As.vkLogo,buttonComponent:Cd,buttonComponentProps:{targetUrl:Ut(),logoClickable:e.logoClickable,click:Ge},tooltipText:r(_r),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),qt=g(()=>r(Wn)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:As.autoplayNext,buttonComponent:Od,tooltipText:r(Gn)}:void 0),yi=g(()=>({id:"volume",type:"desktop-control-panel-right",weight:As.volume,buttonComponent:Zf,buttonComponentProps:{click:Ri,isAds:ot()}})),pn=g(()=>r(ho)?{id:"subtitles",type:"desktop-control-panel-right",weight:As.subtitles,buttonComponent:qf,buttonComponentProps:{isSubtitlesEnabled:r(Un),click:ze},tooltipText:r(qn)}:void 0),Ro=g(()=>r(Sn)?{id:"settings",type:"desktop-control-panel-right",weight:As.settings,buttonComponent:ml,buttonComponentProps:{ref$:$i},tooltipText:ie()?void 0:O("tooltip_settings_off")}:void 0),Oo=g(()=>be.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:As.context,buttonComponent:gm,buttonComponentProps:{ariaLabel:O("aria_label_context_menu")},className:r(Xr)?"":"out-of-view",tooltipText:r(Kn)}:void 0),No=g(()=>r(ai)?{id:"fullscreen",type:"desktop-control-panel-right",weight:As.fullscreen,buttonComponent:Sd,buttonComponentProps:{isFullscreen:B(),click:e.toggleFullscreen},tooltipText:r(Qn)}:void 0),Jn=g(()=>r(gr)?{id:"chromecast",type:"desktop-control-panel-right",weight:As.chromecast,buttonComponent:Td,buttonComponentProps:{state:m(),click:Qo},tooltipText:r(Ao)}:void 0),es=g(()=>[r(Ke),r(qt),r(yi),r(pn),r(Ro),r(Oo),r(No),r(Jn),...Be()].filter(wt=>!!wt).sort(_a));var Ls=E4(),wr=me(Ls);let ts;var X=_(wr);let je=g(()=>!e.showControls),Bt=g(()=>!r(Cn));Sa(X,{get isHidden(){return r(je)},get timelineNotAvailable(){return r(Bt)},get isAds(){return ot()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return E()},get ref(){return ni.timeline},set ref(wt){ni.timeline=wt}});var ri=A(X,2),Ci=_(ri),Ti=_(Ci);Pi(Ti,17,()=>r(Jr),wt=>wt.id,(wt,$t)=>{Au(wt,{get buttonComponent(){return r($t).buttonComponent},get buttonComponentProps(){return r($t).buttonComponentProps},get tooltipText(){return r($t).tooltipText},get disabledTooltipContent(){return r($t).disabledTooltipContent},get disabled(){return r($t).disabled},get className(){return r($t).className},get tooltipEnabled(){return r($t).tooltipEnabled},get mouseEnter(){return r($t).mouseEnter},get mouseLeave(){return r($t).mouseLeave},get ref(){return ni[r($t).id]},set ref(po){ni[r($t).id]=po}})});var Hi=A(Ti,2);{var er=wt=>{let $t=g(()=>!e.showControls),po=g(()=>ot()?Ee():qe()),Xo=g(()=>ot()?it():ft());xd(wt,{get isHidden(){return r($t)},isMobile:!1,get showDuration(){return r(Yn)},get position(){return r(po)},get duration(){return r(Xo)},get ref(){return ni.time},set ref(Zi){ni.time=Zi}})};V(Hi,wt=>{r(ln)&&wt(er)})}var Ei=A(Hi,2);let xi=g(()=>!r(fi));So(Ei,{className:"w-max",get disabled(){return r(xi)},get tooltipContent(){return Lo},get ref(){return ni.episodes},set ref(wt){ni.episodes=wt},children:(wt,$t)=>{var po=He(),Xo=me(po);{var Zi=li=>{Id(li,{get position(){return qe()},get duration(){return ft()},get timeCodes(){return At}})};V(Xo,li=>{r(fi)&&li(Zi)})}$(wt,po)},$$slots:{default:!0}}),h(Ci);var Bo=A(Ci,2);Pi(Bo,21,()=>r(es),wt=>wt.id,(wt,$t)=>{var po=He(),Xo=me(po);{var Zi=Ui=>{Au(Ui,{get buttonComponent(){return r($t).buttonComponent},get buttonComponentProps(){return r($t).buttonComponentProps},get tooltipText(){return r($t).tooltipText},get disabledTooltipContent(){return r($t).disabledTooltipContent},get disabled(){return r($t).disabled},get className(){return r($t).className},get ref(){return ni[r($t).id]},set ref(Ms){ni[r($t).id]=Ms}})},li=Ui=>{let Ms=g(()=>!!r($t).disabled);xm(Ui,{get id(){return r($t).id},get testId(){return r($t).testId},get icon(){return r($t).icon},get ariaLabel(){return r($t).ariaLabel},get tooltipText(){return r($t).tooltipText},get disabledTooltipContent(){return r($t).disabledTooltipContent},get disabled(){return r(Ms)},get onClick(){return r($t).onClick},get disableMouseupTooltipShow(){return r($t).disableMouseupTooltipShow},get ref(){return ni[r($t).id]},set ref(Br){ni[r($t).id]=Br}})};V(Xo,Ui=>{X1(r($t))?Ui(Zi):Ui(li,!1)})}$(wt,po)}),h(Bo),h(ri),at(ri,wt=>gt(wt),()=>gt()),h(wr),at(wr,wt=>dt(wt),()=>dt());var bo=A(wr,2);{var Sr=wt=>{Ld(wt,{get ref(){return ni.interactiveTimeIndicator},set ref($t){ni.interactiveTimeIndicator=$t}})};V(bo,wt=>{Dn&&wt(Sr)})}D(wt=>ts=re(wr,1,"wrapper-bottom svelte-1iiubm3",null,ts,wt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),cr(Ci,"clientWidth",wt=>N(br,wt)),$(t,Ls),z(),o()}import{ChromecastState as i0,PlaybackState as o0}from"@vkontakte/videoplayer-core/es2015";import{noop as t0}from"@vkontakte/videoplayer-shared/es2015";var k4=M('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),A4=M('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),P4={hash:"svelte-167ouw6",code:".icon.svelte-167ouw6 {width:24px !important;height:24px !important;}.inner.svelte-167ouw6 {width:16px;height:16px;background-color:var(--white);}"};function Cm(t,e){q(t,P4);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,t0),n=g(()=>o()===t0),s=g(()=>r(n)||i()),l=J(!1),d=()=>{N(l,!0)},a=g(()=>r(n)?"btn-full-opacity":"");Nt(t,{get className(){return r(a)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(s)},get testId(){return e.testId},children:(u,f)=>{var m=He(),p=me(m);{var x=y=>{var T=k4();$(y,T)},w=y=>{var T=A4();D(()=>Ue(T,"src",e.iconUrl)),Et("error",T,d),la(T),$(y,T)};V(p,y=>{r(l)?y(x):y(w,!1)})}$(u,m)},$$slots:{default:!0}})}var L4=Se('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" d="M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"></path></g></svg>');function Tm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=L4();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:le}),we(),h(o),$(t,o)}import{noop as M4}from"@vkontakte/videoplayer-shared/es2015";var V4=M('<div class="container svelte-yslgu" aria-hidden="true"><!></div>'),R4={hash:"svelte-yslgu",code:".container.svelte-yslgu {display:flex;align-items:center;}"};function Lu(t,e){U(e,!0),q(t,R4);let i=v(e,"muted",3,!1),o=v(e,"click",3,M4),n=v(e,"ref",15,void 0),l=Te().ui.t,d=g(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),a=g(()=>i()?Tm:js),u=g(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Nt(t,{get testId(){return r(u)},get click(){return o()},get ariaLabel(){return r(d)},role:"button",get ref(){return n()},set ref(f){n(f)},children:(f,m)=>{var p=V4();let x=g(()=>r(a));var w=_(p);Li(w,()=>r(x),(y,T)=>{T(y,{})}),h(p),$(f,p)},$$slots:{default:!0}}),z()}var O4=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z" class="hidden-not-active"></path><path fill="var(--btn-color, #fff)" d="m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z" class="hidden-active"></path></svg>');function Em(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=O4();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:le}),we(3),h(o),$(t,o)}var N4={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
|
|
259
|
-
|
|
258
|
+
animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function Jd(t,e){var Z;F(e,!0),W(t,g4);let[i,o]=Be(),r=()=>S(C,"$isMobile",i),s=()=>S(A,"$areControlsVisible",i),l=()=>S(N,"$currentGridType$",i),d=()=>S(E,"$isInteractiveTime$",i),a=()=>S(y,"$interactiveControlsOpacity$",i),u=()=>S(R,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>S(T,"$isFullscreen",i),v=h(e,"ref",15,void 0),p=j(void 0),x=_e(),w=xo(),{interactiveControlsOpacity$:y}=w,C=x.ui.isMobile,T=x.ui.isFullscreen,E=x.state.isInteractiveTime$,R=w.showInteractiveTimeIndicatorTooltip$,A=x.ui.controlsVisible,I=(Z=x.callbacks)==null?void 0:Z.onInteractiveTimeIndicatorClick,N=x.ui.currentGridType$,H=m(()=>!r()&&s()),B=m(()=>Ps(l(),"s")),z=m(()=>!d()||!!a()||n(H)),X=j(!1);We(()=>{O(X,n(z),!0)});let le=()=>{O(X,!0)},q=()=>{var ne;ce(),(ne=n(p))==null||ne.addEventListener("animationiteration",le,{once:!0})},ce=()=>{var ne;O(X,!1),(ne=n(p))==null||ne.removeEventListener("animationiteration",le)},J=ne=>{R.set(ne)},ve=m(()=>u()&&!n(z));We(()=>{u()?q():ce()});let se=()=>{n(z)||(R.set(!0),I==null||I())};ln(()=>{R.clearTimeout(),ce()});let de=()=>{R.set(!1)},Le=Y("tooltip_interactive_interaction_time_indicator");var Se=m4();let ie;Se.__mousemove=[v4],Se.__click=se;var Ne=_(Se);Mo(Ne,{get tooltipContent(){return Le},get tooltipActive(){return n(ve)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:J,get ref(){return v()},set ref(ne){v(ne)},children:(ne,He)=>{qd(ne,{completed:!0})},$$slots:{default:!0}});var pe=P(Ne,2);let k;at(pe,ne=>v(ne),()=>v());var qe=P(pe,2);let Re;at(qe,ne=>O(p,ne),()=>n(p)),g(Se),D((ne,He,Ze)=>{ie=re(Se,1,"interactive-episode-icon-animated svelte-od3veb",null,ie,ne),k=re(pe,1,"ref-block svelte-od3veb",null,k,He),Re=re(qe,1,"pulse svelte-od3veb",null,Re,Ze)},[()=>({mobile:r(),fullscreen:f(),invisible:n(z),"icon-small":n(B)}),()=>({hidden:n(z)}),()=>({paused:n(X)})]),Ct("mouseleave",Se,de),b(t,Se),U(),o()}dt(["mousemove","click"]);function ju(t,e){F(e,!0);let i=h(e,"tooltipEnabled",3,!0),o=h(e,"disabled",3,!1),r=h(e,"className",3,void 0),s=h(e,"ref",15);Mo(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return r()},get ref(){return s()},set ref(l){s(l)},children:(l,d)=>{var a=Fe();let u=m(()=>e.buttonComponent);var f=fe(a);Vi(f,()=>n(u),(v,p)=>{p(v,Is(()=>{var x;return(x=e.buttonComponentProps)!=null?x:{}}))}),b(l,a)},$$slots:{default:!0}}),U()}var Vs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var _4=Ie('<svg><!><path fill="var(--btn-color, #fff)" d="M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"></path></svg>');function Tv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=_4();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}function ec(t,e){let i=h(e,"isPrev",3,!1),o=h(e,"isMobile",3,!1),r=h(e,"width",3,"24"),s=h(e,"height",3,"24"),l=m(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=m(()=>i()?"prev-icon":"next-icon");Tv(t,{get style(){return n(l)},get width(){return r()},get height(){return s()},get viewBox(){return e.viewBox},get"data-testid"(){return n(d)}})}var b4=M('<div class="icon-background-mobile svelte-xtk2k4"></div>'),$4=M("<!> <!>",1),y4={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 Ha(t,e){F(e,!0),W(t,y4);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"disabled",3,!1),l=_e().ui.t,d=m(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),a=m(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=m(()=>`btn-${o()?"m":"d"}--${e.type}`);zt(t,{get className(){return n(u)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return r()},get ariaLabel(){return n(d)},get click(){return e.click},get ariaKeyShortCut(){return n(a)},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{var p=$4(),x=fe(p);{var w=T=>{var E=b4();b(T,E)};V(x,T=>{o()&&T(w)})}var y=P(x,2);let C=m(()=>e.type==="prev");ec(y,{get isMobile(){return o()},get isPrev(){return n(C)}}),b(f,p)},$$slots:{default:!0}}),U()}var x4=Ie('<svg><!><path fill="var(--btn-color, #fff)" d="M12 10.096a.4.4 0 0 1-.67.296L7.044 6.493a.67.67 0 0 1 0-.986l4.288-3.899a.4.4 0 0 1 .669.296V5a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"></path></svg>');function tc(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=x4();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}import{noop as w4}from"@vkontakte/videoplayer-shared/es2015";var S4=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),C4=M("<!> <div><!></div>",1),T4={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 Ul(t,e){F(e,!0),W(t,T4);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"disabled",3,!1),s=h(e,"className",3,""),l=h(e,"click",3,w4),d=Y("tooltip_restart"),a=m(()=>`${o()?"btn-m--play":""} ${s()}`);zt(t,{get className(){return n(a)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return r()},get click(){return l()},get ariaKeyShortCut(){return ds.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,f)=>{var v=C4(),p=fe(v);{var x=T=>{var E=S4();b(T,E)};V(p,T=>{o()&&T(x)})}var w=P(p,2);let y;var C=_(w);tc(C,{}),g(w),D(T=>y=re(w,1,"svelte-1ot3duq",null,y,T),[()=>({mobile:o()})]),b(u,v)},$$slots:{default:!0}}),U()}var E4=Ie('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="play-icon"><path d="M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"></path></svg>');function cr(t,e){"use strict";let i=h(e,"width",3,"24"),o=h(e,"height",3,"24"),r=h(e,"viewBox",3,"0 0 24 24"),s=h(e,"fill",3,"var(--btn-color)");var l=E4(),d=_(l);g(l),D(()=>{Ke(l,"width",i()),Ke(l,"height",o()),Ke(l,"viewBox",r()),Ke(d,"fill",s())}),b(t,l)}var I4=Ie('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="pause-icon"><path d="M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"></path></svg>');function Rs(t,e){"use strict";let i=h(e,"width",3,"24"),o=h(e,"height",3,"24"),r=h(e,"viewBox",3,"0 0 24 24"),s=h(e,"fill",3,"var(--btn-color)");var l=I4(),d=_(l);g(l),D(()=>{Ke(l,"width",i()),Ke(l,"height",o()),Ke(l,"viewBox",r()),Ke(d,"fill",s())}),b(t,l)}import{noop as k4}from"@vkontakte/videoplayer-shared/es2015";var A4=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),P4=M("<!> <div><!></div>",1),M4={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 zl(t,e){F(e,!0),W(t,M4);let[i,o]=Be(),r=()=>S(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=xo(),l=h(e,"ref",15,void 0),d=h(e,"isMobile",3,!1),a=h(e,"isPlaying",3,!1),u=h(e,"disabled",3,!1),f=h(e,"className",3,""),v=h(e,"click",3,k4),x=_e().ui.t,{toggle:w}=s,y=m(()=>w),C=m(()=>r()!==null),T=m(()=>n(C)?r():a()),E=m(()=>n(T)?x("tooltip_pause"):x("tooltip_play")),R=m(()=>n(T)?Rs:cr),A=m(()=>`${d()?"btn-m--play":""} ${f()}`),I=m(()=>n(C)?n(y):v());zt(t,{get className(){return n(A)},testId:"btn-play",get click(){return n(I)},get disabled(){return u()},get ariaLabel(){return n(E)},get ariaKeyShortCut(){return ds.KeyK},get ref(){return l()},set ref(N){l(N)},children:(N,H)=>{var B=P4();let z=m(()=>n(R));var X=fe(B);{var le=ve=>{var se=A4();b(ve,se)};V(X,ve=>{d()&&ve(le)})}var q=P(X,2);let ce;var J=_(q);Vi(J,()=>n(z),(ve,se)=>{se(ve,{})}),g(q),D(ve=>ce=re(q,1,"svelte-1ot3duq",null,ce,ve),[()=>({mobile:d()})]),b(N,B)},$$slots:{default:!0}}),U(),o()}var L4=Ie('<svg><!><path fill="var(--btn-color, #fff)" d="M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"></path></svg>');function Ev(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=L4();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}function ic(t,e){F(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),s=Y("tooltip_interactive_go_back"),l=m(()=>o()?"hidden":"");zt(t,{get className(){return n(l)},testId:"btn-play-prev-chapter",get ariaLabel(){return s},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Ev(d,{})},$$slots:{default:!0}}),U()}var V4=M('<span class="gutter svelte-et3q1q"><span><!></span></span>'),R4={hash:"svelte-et3q1q",code:".gutter.svelte-et3q1q {--gutterWidth: 32px;--gutterHeight: 12px;--togglerWidth: 18px;--togglerHeight: 18px;--togglerGap: calc(var(--togglerWidth) / 6);position:relative;width:var(--gutterWidth);height:var(--gutterHeight);background-color:rgba(255, 255, 255, 0.3);border-radius:50px;}.toggler.svelte-et3q1q {position:absolute;top:calc(((var(--togglerHeight) - var(--gutterHeight)) / 2) * -1);left:0;display:flex;align-items:center;justify-content:center;width:var(--togglerWidth);height:var(--togglerHeight);background-color:rgba(98, 99, 100, 1);border-radius:50%;transform:translateX(calc(var(--togglerGap) * -1));transition-property:background-color, transform;transition-duration:0.2s;transition-timing-function:ease;}.toggler.enabled.svelte-et3q1q {background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)));}"};function oc(t,e){F(e,!0),W(t,R4);let[i,o]=Be(),r=()=>S(a,"$autoplayNextEnabled$",i),s=h(e,"ref",15,void 0),l=_e(),d=l.ui.t,a=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,f=()=>{u(!r(),!0)},v=d("aria_label_autoplay"),p=m(()=>r()?"true":"false");zt(t,{click:f,get ariaLabel(){return v},role:"switch",get areaChecked(){return n(p)},get ref(){return s()},set ref(x){s(x)},children:(x,w)=>{var y=V4(),C=_(y);let T;var E=_(C);{var R=I=>{cr(I,{width:"14",height:"14",fill:"#000"})},A=I=>{Rs(I,{width:"14",height:"14",fill:"#000"})};V(E,I=>{r()?I(R):I(A,!1)})}g(C),g(y),D(I=>T=re(C,1,"toggler svelte-et3q1q",null,T,I),[()=>({enabled:r()})]),b(x,y)},$$slots:{default:!0}}),U(),o()}var O4=Ie('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"></path></svg>');function Iv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=O4();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}function nc(t,e){F(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),s=Y("tooltip_interactive_seek"),l=m(()=>o()?"hidden":"");zt(t,{get className(){return n(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return s},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Iv(d,{})},$$slots:{default:!0}}),U()}var N4=Ie('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z" class="_closed" clip-rule="evenodd"></path></svg>');function kv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=N4();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}var D4={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Av(t,e){W(t,D4);let i=h(e,"isOpened",3,!1),o=m(()=>i()?"graph-close-icon":"graph-open-icon");kv(t,{get"data-testid"(){return n(o)}})}function rc(t,e){F(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),s=h(e,"graphIsOpened",3,!1),d=_e().ui.t,a=m(()=>s()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=m(()=>o()?"hidden":"");zt(t,{get className(){return n(u)},testId:"btn-graph",get disabled(){return r()},get ariaLabel(){return n(a)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{let p=m(()=>!!s());Av(f,{get isOpened(){return n(p)}})},$$slots:{default:!0}}),U()}import{PlaybackState as h0}from"@vkontakte/videoplayer-core/es2015";function sc(t,e){F(e,!0);let[i,o]=Be(),r=()=>S(u,"$playbackState$",i),s=h(e,"isMobile",3,!1),l=h(e,"isLiveActive",3,!1),d=h(e,"ariaLabel",3,""),a=_e(),u=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,v=a.actions.internal.togglePlay,p=m(()=>()=>{if(!l()){f();return}r()===h0.PAUSED&&v()}),x=m(()=>s()?"":"btn--live btn-full-opacity"),w=m(()=>l()?"btn-live":"btn-live-offset"),y=m(()=>l()&&r()===h0.PLAYING);zt(t,{get className(){return n(x)},get testId(){return n(w)},get disabled(){return n(y)},get ariaLabel(){return d()},get click(){return n(p)},children:(C,T)=>{Pd(C,{get isActive(){return l()}})},$$slots:{default:!0}}),U(),o()}import{noop as _0}from"@vkontakte/videoplayer-shared/es2015";var B4=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),H4=M('<img class="icon" aria-hidden="true"/>');function Fa(t,e){"use strict";let i=j(!1),o=()=>{O(i,!0)};var r=Fe(),s=fe(r);{var l=a=>{var u=B4();b(a,u)},d=a=>{var u=H4();D(()=>Ke(u,"src",e.icon)),Ct("error",u,o),Sa(u),b(a,u)};V(s,a=>{n(i)?a(l):a(d,!1)})}b(t,r)}function Pv(t,e){F(e,!0);let i=h(e,"disabled",3,!1),o=h(e,"onClick",3,_0),r=h(e,"ref",15),s=m(()=>o()===_0),l=m(()=>n(s)||i()),d=m(()=>n(s)?"btn-full-opacity":"");Mo(t,{get disabled(){return n(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get ref(){return r()},set ref(a){r(a)},children:(a,u)=>{let f=m(()=>{var v;return(v=e.testId)!=null?v:e.id});zt(a,{get className(){return n(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(l)},get testId(){return n(f)},children:(v,p)=>{Fa(v,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),U()}var b0=t=>!!t.buttonComponent;var Os={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var Gu=(t,e,i,o)=>{if(t)for(let[r,s]of Object.entries(e))s.set(Wn(t,i,r,o))};import{interpolate as Mv}from"@vkontakte/videoplayer-shared/es2015";var $0=10,y0=40,Lv=.2,U4=.5,z4=65,W4=114,K4=4,x0=({onPreviewTrackOpened:t,getTimelineRef:e,isHorizontal:i})=>{let o=m(()=>i?z4:W4),r=j(!1),s=j(0),l=j(0),d=m(()=>n(o)+$0-y0-K4),a=m(()=>Mv(n(s),[Lv,1],[0,-n(d)])),u=m(()=>Mv(n(s),[Lv,1],[0,y0])),f=m(()=>Mv(n(s),[Lv,1],[0,n(o)+$0]));return{progressBarY:()=>n(a),controlsY:()=>n(u),calculatedHeight:()=>n(f),onPointerDown:y=>{var C;O(l,((C=e())==null?void 0:C.getBoundingClientRect().bottom)||0,!0),O(r,!0)},onPointerMove:y=>{if(!n(r))return;let C=Math.max(Math.min(y.clientY-n(l),0),-n(d));O(s,Math.abs(C/n(d)),!0)},onPointerUp:()=>{O(r,!1),O(s,n(s)>=U4?1:0,!0),n(s)===1&&t()},closePreviewTrack:()=>{O(s,0)}}};var q4=t=>t;function vs(t,{delay:e=0,duration:i=400,easing:o=q4}={}){let r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:s=>`opacity: ${s*r}`}}var Q4=M('<span class="root svelte-mx6l45"> </span>'),j4={hash:"svelte-mx6l45",code:".root.svelte-mx6l45 {font-size:13px;line-height:16px;color:rgba(255, 255, 255, 1);box-shadow:0px 8px 24px 0px rgba(0, 0, 0, 0.08);box-shadow:0px 0px 2px 0px rgba(0, 0, 0, 0.08);font-weight:500;}"};function Vv(t,e){W(t,j4);var i=Q4(),o=_(i,!0);g(i),D(()=>me(o,e.time)),b(t,i)}var G4=M('<div class="tooltip-wrapper svelte-1xyyqd0"><div><!></div></div>'),Y4={hash:"svelte-1xyyqd0",code:'.tooltip-wrapper.svelte-1xyyqd0 {position:relative;display:block;}.tooltip.svelte-1xyyqd0 {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms;bottom:100%;transform:translateX(-50%);}.pointer.svelte-1xyyqd0:after {position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px);}.tooltip.active.svelte-1xyyqd0 {opacity:1;visibility:visible;}'};function Rv(t,e){W(t,Y4);let i=h(e,"active",3,!1),o=h(e,"pointer",3,!1),r=h(e,"translateXPx",3,0),s=h(e,"translateYPx",3,0),l=h(e,"leftOffset",3,0),d=h(e,"rightOffset",3,0),a=j(void 0),u=j(void 0);function f(C){if(!n(u))return 0;let{width:T}=n(u).getBoundingClientRect(),E=T/2;return C<E?E+l():C>e.containerWidth-E?e.containerWidth-E-d():C}let v=m(()=>f(r()));var p=G4(),x=_(p);let w;var y=_(x);be(y,()=>{var C;return(C=e.children)!=null?C:ue}),g(x),at(x,C=>O(u,C),()=>n(u)),g(p),at(p,C=>O(a,C),()=>n(a)),D(C=>{Je(p,`transform: translate(${n(v)}px, ${s()}px);`),w=re(x,1,"tooltip svelte-1xyyqd0",null,w,C),Je(x,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,p)}var w0=t=>Math.abs(t)/90%4===1;var Z4=M('<div class="preview svelte-1wqg760"></div>'),X4=M('<div class="time svelte-1wqg760"> </div>'),J4=M('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),e3={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 Ov(t,e){F(e,!0),W(t,e3);let[i,o]=Be(),r=()=>S(w,"$rotateAlpha",i),s=()=>S(y,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=h(e,"time",3,""),a=h(e,"isMobile",3,!1),u=h(e,"videoEpisodes",19,()=>[]),f=h(e,"progress",3,0),v=h(e,"duration",3,0),p=h(e,"isInteractive",3,!1),x=_e(),w=x.ui.rotateAlpha,y=x.ui.playerSize,C=j(0),T=j(0),E=j(""),R=j(0),A=j(0),I=j(0),N=j(0),H=m(()=>Du(f(),v(),u())),B=m(()=>Dl(r())),z=m(()=>w0(r())),X=m(ce),le=m(()=>(n(z)?1:-1)*(n(C)/2-n(T)/2)),q=m(()=>n(le)*-1);We(()=>{(Z=>{O(C,Z.width,!0),O(T,Z.height,!0)})(ve())}),We(()=>{(Z=>{O(E,Z.imgSrc,!0),O(R,Z.imgWidth,!0),O(A,Z.imgHeight,!0),O(I,Z.imgOffsetX,!0),O(N,Z.imgOffsetY,!0)})(se(f()))});function ce(){var Ze;let Z=a()?l.MOBILE:l.DESKTOP,{isVertical:ne}=J(),He=30;return(Ze=n(H))!=null&&Ze.text&&(He+=16),(ne||n(B))&&(He+=18,He+=50),Math.min(Math.max(s().height-He,0),Z)}function J(){let Z=e.previewThumbsData.frameWidth,ne=e.previewThumbsData.frameHeight,He=ne>Z;return{width:Z,height:ne,isHorizontal:!He,isVertical:He}}function ve(){let{height:Z,isHorizontal:ne,isVertical:He,width:Ze}=J();return ne&&(Z=Z/Ze*n(X),Ze=n(X)),He&&(Ze=Ze/Z*n(X),Z=n(X)),{width:Ze,height:Z}}function se(Z){let ne;e.previewThumbsData.isUV?ne=Math.floor(v()*Z/e.previewThumbsData.frequency):ne=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*Z)));let He=Math.floor(ne/e.previewThumbsData.countPerImage),Ze=Math.floor(ne%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),ge=ne%e.previewThumbsData.countPerRow,ee=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&He===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(ee=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&ee++);let ke=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&He===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(ke=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let he=n(C)*ke,Ue=n(T)*ee,Xe=-ge*n(C),Ge=-Ze*n(T);return{imgSrc:e.previewThumbsData.links[He],imgWidth:he,imgHeight:Ue,imgOffsetX:Xe,imgOffsetY:Ge}}var de=J4();let Le;var Se=_(de);{var ie=Z=>{var ne=Z4();D(()=>Je(ne,`width: ${n(C)}px; height: ${n(T)}px; background-image: url(${n(E)}); background-size: ${n(R)}px ${n(A)}px; background-position: ${n(I)}px ${n(N)}px;
|
|
259
|
+
transform: rotate(${r()}deg) ${n(B)?`translate(${n(le)}px, ${n(q)}px)`:""};
|
|
260
|
+
`)),b(Z,ne)};V(Se,Z=>{n(E)&&Z(ie)})}var Ne=P(Se,2),pe=_(Ne);{var k=Z=>{var ne=Fe(),He=fe(ne);{var Ze=ee=>{var ke=ls();D(he=>me(ke,he),[()=>Y("tooltip_episode_unfinished")]),b(ee,ke)},ge=ee=>{var ke=ls();D(()=>me(ke,n(H).text||"")),b(ee,ke)};V(He,ee=>{p()&&n(H).completed===!1?ee(Ze):ee(ge,!1)})}b(Z,ne)};V(pe,Z=>{n(H)&&Z(k)})}g(Ne);var qe=P(Ne,2);{var Re=Z=>{var ne=X4(),He=_(ne,!0);g(ne),D(()=>me(He,d())),b(Z,ne)};V(qe,Z=>{p()||Z(Re)})}g(de),D(Z=>{Le=re(de,1,"timeline-preview svelte-1wqg760",null,Le,Z),Je(de,`width: ${n(B)?n(T):n(C)}px;`)},[()=>({mobile:a()})]),b(t,de),U(),o()}var t3=M('<span class="time svelte-1jr6obn"> </span>'),i3=M("<!> <!>",1),o3={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 Nv(t,e){var Me,It,De,ut,$t;F(e,!0),W(t,o3);let[i,o]=Be(),r=()=>S(q,"$interactiveEpisodes$",i),s=()=>S(N,"$duration$",i),l=()=>S(I,"$position$",i),d=()=>S(ve,"$isInteractiveExpectation$",i),a=()=>S(J,"$isInteractiveTime$",i),u=()=>S(Se,"$previewTrackActive",i),f=()=>S(H,"$isLive$",i),v=()=>S(Le,"$disabledControls$",i),p=()=>S(z,"$isMobile",i),x=()=>S(B,"$isActiveLive$",i),w=()=>S(A,"$bufferedProgress$",i),y=h(e,"showTimeline",3,!1),C=h(e,"withEpisodes",3,!0),T=h(e,"ref",15,void 0),E=_e(),R=Rt(),A=E.state.bufferedProgress$,I=E.state.positionWithScrubbing$,N=E.state.duration$,H=E.state.isLive$,B=E.state.isActiveLive$,z=E.ui.isMobile,X=R.features.episodes&&C()?E.actions.internal.getVideoEpisodes():void 0,le=E.actions.internal.getPreviewThumbsData(),q=E.state.interactiveEpisodes$,ce=E.state.isInteractive,J=E.state.isInteractiveTime$,ve=E.state.isInteractiveExpectation$,se=E.actions.internal.correctSeekTimeToInteractive,de=(Me=E.callbacks)==null?void 0:Me.onDisabledTimelineClick,Le=E.ui.controls.disabledControls$,Se=E.ui.previewTrackActive,ie=(De=(It=E.callbacks)==null?void 0:It.uiInfo)==null?void 0:De.onTimelineMouseEnter,Ne=($t=(ut=E.callbacks)==null?void 0:ut.uiInfo)==null?void 0:$t.onTimelineMouseLeave,pe=E.ui.t,k=R.features.interactiveResponsiveUi,qe=m(()=>ce?r():X),Re=m(()=>Yo(s())),Z=m(()=>Yo(l())),ne=m(()=>l()/s()),He=m(()=>d()||a()),Ze=j(!1),ge=j(""),ee=j(0),ke=j(0),he=j(0),Ue=m(()=>({containerWidth:n(ke),translateXPx:n(ee),translateYPx:ce&&le?-36:-16,active:n(Ze)&&y()&&!n(He)&&!k&&!u(),pointer:!R.features.timelinePreview||!le||f()})),Xe=pe("aria_timeline"),Ge=m(()=>pe("aria_timeline_value",{position:n(Z),duration:n(Re)}));function ct(xe){return!se||!ce?xe:se(xe*s())/s()}function et(xe,ot){var Qe;(Qe=e.onSliderPointerDown)==null||Qe.call(e,ot),E.actions.internal.startScrubbing(ct(xe))}function Bt(xe){a()||E.actions.internal.progressScrubbing(ct(xe))}function rt(xe){var ot;E.actions.internal.completeScrubbing(ct(xe)),O(Ze,!1),(ot=e.onSliderPointerUp)==null||ot.call(e)}function Dt(xe,ot,Qe){var lt;(lt=e.onSliderPointerEnter)==null||lt.call(e,xe),ti(xe,ot,Qe),O(Ze,!0)}function Qt(xe,ot,Qe,lt){var ii;(ii=e.onSliderMove)==null||ii.call(e,lt,xe),ti(xe,ot,Qe),O(Ze,!0)}function Et(){var xe;O(Ze,!1),(xe=e.onSliderLeave)==null||xe.call(e)}function ti(xe,ot,Qe){O(he,ct(xe),!0),O(ee,ot,!0),Qe&&O(ke,Qe,!0),O(ge,Wt(xe),!0)}function Wt(xe){let ot=Yo((f()?1-xe:xe)*s());return f()?`-${ot}`:ot}let Ce=m(()=>v().has("TIMELINE"));var we=i3(),te=fe(we);Rv(te,Is(()=>n(Ue),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(xe,ot)=>{var Qe=Fe(),lt=fe(Qe);{var ii=mi=>{Ov(mi,{get time(){return n(ge)},get isMobile(){return p()},get videoEpisodes(){return n(qe)},get previewThumbsData(){return le},get progress(){return n(he)},get duration(){return s()},get isInteractive(){return ce}})},ai=mi=>{var yi=t3(),so=_(yi,!0);g(yi),D(()=>me(so,n(ge))),b(mi,yi)};V(lt,mi=>{R.features.timelinePreview&&le&&!f()?mi(ii):mi(ai,!1)})}b(xe,Qe)},$$slots:{default:!0}}));var Te=P(te,2);Da(Te,{className:"timeline-slider",get isActiveLive(){return x()},get isMobile(){return p()},get ariaLabel(){return Xe},ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return l()},get ariaValueText(){return n(Ge)},get loadedProgress(){return w()},get filledProgress(){return n(ne)},get handleProgress(){return n(ne)},get videoEpisodes(){return n(qe)},onPointerDown:et,onHandleMove:Bt,onPointerMove:Qt,onPointerUp:rt,onPointerEnter:Dt,onPointerLeave:Et,get onMouseEnter(){return ie},get onMouseLeave(){return Ne},get onDisabledClick(){return de},get isInteractive(){return ce},get disabled(){return n(Ce)},get handleAlwaysVisible(){return u()},get hideHandel(){return a()},testId:"progress_bar",onContextMenu:rt,get ref(){return T()},set ref(xe){T(xe)}}),b(t,we),U(),o()}var n3={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 ac(t,e){F(e,!0),W(t,n3);let[i,o]=Be(),r=()=>S(a,"$isMobile",i),s=h(e,"position",3,0),l=h(e,"duration",3,0),d=_e(),a=d.ui.isMobile,u=d.ui.t,f=m(()=>Yo(l())),v=m(()=>Yo(s())),p=m(()=>s()/l()),x=m(()=>u("aria_timeline_value",{position:n(v),duration:n(f)})),w=m(()=>Math.round(n(p)*100));Da(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return n(w)},get ariaValueText(){return n(x)},get filledProgress(){return n(p)},hideHandel:!0,get squareBorders(){return r()}}),U(),o()}var r3=M("<div><!></div>"),s3=M("<div></div>"),a3={hash:"svelte-1b7iyrc",code:".timeline.svelte-1b7iyrc {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;box-sizing:border-box;}.timeline.mobile.svelte-1b7iyrc {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-1b7iyrc {padding:0;}.timeline-stub.svelte-1b7iyrc {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-1b7iyrc {height:8px;}"};function Ua(t,e){F(e,!0),W(t,a3);let[i,o]=Be(),r=()=>S(C,"$isLive$",i),s=()=>S(R,"$isMobile",i),l=()=>S(A,"$disabled",i),d=()=>S(E,"$adPosition",i),a=()=>S(T,"$adDuration",i),u=h(e,"isAds",3,!1),f=h(e,"isHidden",3,!1),v=h(e,"timelineNotAvailable",3,!1),p=h(e,"needPadding",3,!0),x=h(e,"ref",15,void 0),w=_e(),y=Rt(),C=w.state.isLive$,T=w.ads.duration,E=w.ads.position,R=w.ui.isMobile,A=ae(!1),I=m(()=>!v()&&(!r()||r()&&e.canRewindLive&&e.isRewindableLive||u()));var N=Fe(),H=fe(N);{var B=X=>{var le=r3();let q;var ce=_(le);{var J=se=>{ac(se,{get position(){return d()},get duration(){return a()}})},ve=se=>{Nv(se,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return n(I)},get withEpisodes(){return e.withEpisodes},get onSliderMove(){return e.onSliderMove},get onSliderPointerDown(){return e.onSliderPointerDown},get onSliderPointerUp(){return e.onSliderPointerUp},get onSliderLeave(){return e.onSliderLeave},get onSliderPointerEnter(){return e.onSliderPointerEnter},get ref(){return x()},set ref(de){x(de)}})};V(ce,se=>{u()?se(J):se(ve,!1)})}g(le),Es(le,()=>Al(f()&&y.features.usePerformanceFix,A,y.disableInvisibleComponentsTimeout)),D(se=>q=re(le,1,"timeline svelte-1b7iyrc",null,q,se),[()=>({withoutPadding:!p(),mobile:s(),"out-of-flow":l()})]),b(X,le)},z=X=>{var le=s3();let q;D(ce=>q=re(le,1,"timeline-stub svelte-1b7iyrc",null,q,ce),[()=>({mobile:s()})]),b(X,le)};V(H,X=>{n(I)?X(B):X(z,!1)})}b(t,N),U(),o()}import{getRangeAroundIndex as l3}from"@vkontakte/videoplayer-shared/es2015";var d3=(t,e,i,o,r,s,l)=>{O(e,!0),O(i,t.clientX,!0),O(o,n(r),!0),s(l())},c3=M("<div></div>"),u3=M('<div><div class="track svelte-j4sfvm"></div></div>'),p3={hash:"svelte-j4sfvm",code:`.root.svelte-j4sfvm {height:var(--preview-track-frame-height-horizontal);position:relative;overflow:hidden;width:100%;display:flex;}.root.is-vertical-video.svelte-j4sfvm,
|
|
261
|
+
.root.vertically-rotated.svelte-j4sfvm {height:var(--preview-track-frame-height-vertical);}
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* \u041A\u0430\u0440\u0435\u0442\u043A\u0430, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0443\u043A\u0430\u0437\u044B\u0432\u0430\u0435\u0442 \u043D\u0430 \u0442\u0435\u043A\u0443\u0449\u0438\u0439 \u043A\u0430\u0434\u0440.
|
|
265
|
+
*/.root.svelte-j4sfvm::after {content:'';height:100%;z-index:1;margin:0 auto;width:3px;background-color:rgba(255, 255, 255, 1);box-shadow:0px 2px 2px 0px rgba(0, 0, 0, 0.12);box-shadow:0px 0px 2px 0px rgba(0, 0, 0, 0.06);pointer-events:none;}.track.svelte-j4sfvm {position:absolute;bottom:0;left:0;top:0;display:flex;padding:0 50%;}.frame.svelte-j4sfvm {flex-shrink:0;position:absolute;pointer-events:none;background-position-y:calc(-1 * var(--frame-height) * var(--row-index));background-position-x:calc(-1 * var(--column-index)*var(--frame-width));background-size:calc(var(--frame-width)*var(--column-numbers)) calc(var(--frame-height)*var(--row-numbers));width:var(--frame-width);height:var(--frame-height);transform-origin:center;}.vertically-rotated.svelte-j4sfvm .frame:where(.svelte-j4sfvm) {transform-origin:0 0;}.rotate-1.svelte-j4sfvm {transform:rotate(-90deg) translateX(-100%);}.rotate-2.svelte-j4sfvm {transform:rotate(-180deg);}.rotate-3.svelte-j4sfvm {transform:rotate(-270deg) translateY(-100%);}`};function Bv(t,e){F(e,!0),W(t,p3);let[i,o]=Be(),r=()=>S(R,"$rotateAlpha",i),s=()=>S(y,"$position$",i),l=()=>S(w,"$duration$",i),d=_e(),{countPerImage:a=0,countPerRow:u=0,countTotal:f=0,links:v=[],frameHeight:p=0,frameWidth:x=0}=d.actions.internal.getPreviewThumbsData()||{},{duration$:w,positionWithScrubbing$:y}=d.state,{startScrubbing:C,progressScrubbing:T,completeScrubbing:E}=d.actions.internal,R=d.ui.rotateAlpha,A=j(void 0),I=j(!1),N=j(0),H=j(0),B=j(0),z=j(0),X=m(()=>p<=x),le=m(()=>Dl(r())),q=m(()=>n(X)?!n(le):n(le)),ce=114,J=65,ve=3,se=m(()=>n(q)?ce:J),de=m(()=>n(X)?ce:J),Le=m(()=>n(X)?"var(--preview-track-frame-height-horizontal)":"var(--preview-track-frame-height-vertical)"),Se=m(()=>f*n(se)),ie=j(0);We(()=>{O(z,Math.ceil(-n(B)/n(se))-1),O(B,-n(Se)*s()/l())});let Ne=()=>{E(pe(),!0)},pe=()=>l()*-n(B)/n(Se)/l(),k=!1,qe=Ge=>{if(!n(I))return!1;let ct=Ge.clientX-n(N);O(B,n(H)+ct),O(B,Math.max(Math.min(n(B),0),-n(Se)),!0),Math.abs(ct)>1&&(k=!0),T(pe())},Re=Ge=>{n(I)&&(O(I,!1),!k&&Ge&&O(B,-(Ge.offsetX-n(ie)/2)),k=!1,Ne())},Z=()=>{n(I)&&Re()},ne=m(()=>a/u),He=(Ge,ct)=>{if(Ge!==v.length-1)return u;let et=0,Bt=ct*u;for(let rt=1;rt<=u;rt++)Ge*a+et+Bt<f&&et++;return et},Ze=m(()=>Math.floor(n(z)/a)),ge=m(()=>l3(3,n(Ze),v.length-1)),ee=(Ge,ct,et)=>{let Bt=a*n(se);return Ge*Bt+ct*n(se)*u+n(ie)/2-ve/2+et*n(se)},ke=m(()=>[`--row-numbers: ${n(ne)}`,`--column-numbers: ${u}`,`--frame-width: ${n(de)}px`,`--frame-height: ${n(Le)}`].join(";"));var he=u3();let Ue;var Xe=_(he);Xe.__pointerdown=[d3,I,N,H,B,C,pe],Xe.__pointermove=qe,Xe.__pointerup=Re,Ci(Xe,20,()=>n(ge),Ge=>Ge,(Ge,ct)=>{var et=Fe(),Bt=fe(et);Ci(Bt,16,()=>Array.from({length:n(ne)},(rt,Dt)=>Dt),rt=>rt,(rt,Dt)=>{var Qt=Fe(),Et=fe(Qt);Ci(Et,16,()=>Array.from({length:He(ct,Dt)},(ti,Wt)=>Wt),ti=>ti,(ti,Wt)=>{var Ce=c3();D((we,te)=>{Je(Ce,we),re(Ce,1,te,"svelte-j4sfvm")},[()=>`--row-index: ${Dt}; --column-index: ${Wt}; left: ${ee(ct,Dt,Wt)}px; background-image: url(${v[ct]});`,()=>`frame rotate-${Math.abs(r())/90%4}`]),b(ti,Ce)}),b(rt,Qt)}),b(Ge,et)}),g(Xe),g(he),at(he,Ge=>O(A,Ge),()=>n(A)),D(Ge=>{Ue=re(he,1,"root svelte-j4sfvm",null,Ue,Ge),Je(he,n(ke)),Je(Xe,`transform: translateX(${n(B)}px); width: ${n(Se)}px;`)},[()=>({"is-vertical-video":!n(X),"vertically-rotated":n(le)})]),Ct("mouseleave",Xe,Z),kn(he,"clientWidth",Ge=>O(ie,Ge)),b(t,he),U(),o()}dt(["pointerdown","pointermove","pointerup"]);var f3=M('<div class="notification svelte-1u3ref1"><span class="description svelte-1u3ref1"> </span></div>'),v3={hash:"svelte-1u3ref1",code:".notification.svelte-1u3ref1 {padding:9px 14px 10px 12px;background:var(--notification-bg);border-radius:var(--notification-radius);}.description.svelte-1u3ref1 {line-height:18px;font-size:14px;}"};function Hv(t,e){F(e,!1),W(t,v3);let i=340,{ui:{t:o}}=_e();Go();var r=f3(),s=_(r),l=_(s,!0);g(s),g(r),D(d=>me(l,d),[()=>o("preview_track_close_tooltip")],Sn),Zr(3,r,()=>vs,()=>({duration:i})),b(t,r),U()}import{getRangeAroundIndex as m3}from"@vkontakte/videoplayer-shared/es2015";var g3=M('<div class="preview-track-close tooltip svelte-19h243g"><!></div>'),h3=M('<div class="preview-track-control svelte-19h243g"><!> <div class="preview-track-close svelte-19h243g"><!></div> <!></div>'),_3=M('<div class="wrapper-preview-track svelte-19h243g"><!></div>'),b3=M('<div class="enriched-timeline svelte-19h243g"><!> <!> <!></div>'),$3={hash:"svelte-19h243g",code:`.enriched-timeline.svelte-19h243g {padding:var(--timeline-padding-vertical-top) var(--timeline-padding-horizontal)
|
|
266
|
+
var(--timeline-padding-vertical-bottom);position:relative;pointer-events:auto;}.preview-track-control.svelte-19h243g {top:calc((var(--timeline-height) + var(--preview-track-controls-top)) * -1);position:absolute;left:0;right:0;padding:0 calc(var(--timeline-padding-horizontal));display:flex;align-items:center;justify-content:center;pointer-events:none;}.preview-track-close.svelte-19h243g {position:absolute;right:calc(var(--timeline-padding-horizontal));pointer-events:auto;}.preview-track-close.tooltip.svelte-19h243g {bottom:32px;opacity:0;transition:opacity 200ms;}.preview-track-close.svelte-19h243g:hover + .tooltip:where(.svelte-19h243g) {opacity:1;}.wrapper-preview-track.svelte-19h243g {position:absolute;left:0;right:0;overflow:hidden;z-index:-1;padding:0 calc(var(--timeline-padding-horizontal));box-sizing:border-box;}`};function Fv(t,e){F(e,!0),W(t,$3);let[i,o]=Be(),r=()=>S(y,"$playerSize",i),s=()=>S(w,"$duration$",i),l=()=>S(C,"$previewTrackActive",i),d=()=>S(p,"$position$",i),a=()=>S(x,"$isRewindableLive$",i),u=h(e,"timelineRef",15,void 0),f=_e(),v=200,{positionWithScrubbing$:p,isRewindableLive$:x,duration$:w}=f.state,{playerSize:y,previewTrackActive:C}=f.ui,{countPerImage:T=0,links:E=[],frequency:R=0}=f.actions.internal.getPreviewThumbsData()||{},A=m(()=>r().width>100),I=j(!k1()),N=()=>{n(I)&&(I1(),O(I,!1))},H=se=>{let de=Math.floor(s()*se/R),Le=Math.floor(de/T),Se=m3(3,Le,E.length-1);for(let ie of Se){let Ne=new Image;Ne.src=E[ie]}},B=(se,de)=>{H(de),!l()&&e.onTimelineMove(se)};var z=b3(),X=_(z);{var le=se=>{var de=h3(),Le=_(de);let Se=m(()=>Yo(d()));Vv(Le,{get time(){return n(Se)}});var ie=P(Le,2),Ne=_(ie);As(Ne,{onClick:()=>f.actions.internal.closePreviewTrack()}),g(ie);var pe=P(ie,2);{var k=qe=>{var Re=g3(),Z=_(Re);Hv(Z,{}),g(Re),b(qe,Re)};V(pe,qe=>{n(I)&&qe(k)})}g(de),Ct("mouseleave",ie,N),Zr(3,de,()=>vs,()=>({duration:v})),b(se,de)};V(X,se=>{l()&&se(le)})}var q=P(X,2);let ce=m(()=>!n(A));Ua(q,{get isHidden(){return n(ce)},get isAds(){return e.isAds},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return a()},onSliderMove:B,get onSliderPointerDown(){return e.onTimelinePointerDown},get onSliderPointerUp(){return e.onTimelinePointerUp},get onSliderLeave(){return e.onTimelinePointerLeave},onSliderPointerEnter:H,get ref(){return u()},set ref(se){u(se)}});var J=P(q,2);{var ve=se=>{var de=_3(),Le=_(de);Bv(Le,{}),g(de),D(()=>Je(de,`height: ${e.animatedPreviewTrackHeight}px;`)),b(se,de)};V(J,se=>{e.previewTrackAvailable&&se(ve)})}g(z),D(()=>Je(z,`transform: translateY(${e.animatedOffsetY}px);`)),b(t,z),U(),o()}var x3=M('<div><!> <div class="controls svelte-1ojrdvx" data-testid="player_controls"><div class="controls-left svelte-1ojrdvx"><!> <!> <!></div> <div class="controls-right svelte-1ojrdvx"></div></div></div> <!>',1),w3={hash:"svelte-1ojrdvx",code:".wrapper-bottom.svelte-1ojrdvx {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-1ojrdvx::before {content:'';height:var(--controls-gradient-height);background:var(--controls-gradient);position:absolute;width:100%;}.wrapper-bottom.svelte-1ojrdvx > :where(.svelte-1ojrdvx) {pointer-events:auto;}.controls.svelte-1ojrdvx {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;padding:0 var(--controls-desktop-padding-horizontal) 4px;box-sizing:border-box;}.controls-left.svelte-1ojrdvx, .controls-right.svelte-1ojrdvx {display:flex;align-content:center;}.controls-left.svelte-1ojrdvx {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-1ojrdvx > *:not(:first-child), .controls-right.svelte-1ojrdvx > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-1ojrdvx {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1ojrdvx {transition:none;}"};function zv(t,e){var il,ca;F(e,!0),W(t,w3);let[i,o]=Be(),r=()=>S(Zo,"$disabledControls$",i),s=()=>S(pt,"$adPlaybackState",i),l=()=>S(ai,"$playbackState$",i),d=()=>S(wo,"$currentSubtitle$",i),a=()=>S(so,"$isEnded$",i),u=()=>S(Xo,"$currentGridType$",i),f=()=>S(vo,"$isLive$",i),v=()=>S(Ye,"$chromecastState$",i),p=()=>S(Pi,"$isPictureInPictureActive",i),x=()=>S(Yt,"$pictureInPictureType$",i),w=()=>S(xi,"$availableSubtitlesList$",i),y=()=>S(Ht,"$contextMenuOpenedByKeyboard$",i),C=()=>S(kt,"$showContextMenuBtn$",i),T=()=>S(mt,"$isRewindableLive$",i),E=()=>S(ui,"$isActiveLive$",i),R=()=>S(ts,"$graphIsOpened$",i),A=()=>S(un,"$contextMenuVisible$",i),I=()=>S(Oi,"$isFullscreen",i),N=()=>S(ao,"$autoplayNextEnabled",i),H=()=>S(n(Di),"$prevButton",i),B=()=>S(n(Yi),"$replayButton",i),z=()=>S(n(Bo),"$playButton",i),X=()=>S(n(en),"$nextButton",i),le=()=>S(n(lo),"$playPrevChapterButton",i),q=()=>S(n(ki),"$seekToInteractiveButton",i),ce=()=>S(n(Zi),"$interactiveGraphButton",i),J=()=>S(n(bo),"$liveButton",i),ve=()=>S(n(hn),"$time",i),se=()=>S(n(Yn),"$episodes",i),de=()=>S(n(Nr),"$vkLogo",i),Le=()=>S(n(Dr),"$volume",i),Se=()=>S(n(_n),"$subtitles",i),ie=()=>S(n(bn),"$settings",i),Ne=()=>S(n(_r),"$context",i),pe=()=>S(n($n),"$fullscreen",i),k=()=>S(n(Br),"$chromecast",i),qe=()=>S(Lo,"$additionalDesktopControlPanelRightButtons$",i),Re=()=>S(Fi,"$playerSize",i),Z=()=>S(pn,"$isInteractiveTime$",i),ne=()=>S(pi,"$previewTrackActive",i),He=()=>S(Tt,"$settingsMenuVisible",i),Ze=()=>S(Xi,"$settingButtonRef$",i),ge=()=>S(K,"$startedByKeyboard$",i),ee=()=>S(mi,"$isAudioAvailable$",i),ke=()=>S(we,"$fakeIsPlaying$",i),he=()=>S(ms,"$seekToInteractiveDisabledTooltip$",i),Ue=()=>S(ye,"$isPreviewTrackHorizontallyAligned$",i),Xe=()=>S(xn,"$previewTrackAvailable",i),Ge=()=>S(yo,"$previewTrackDragInProgress",i),ct=()=>S(Gt,"$adPosition",i),et=()=>S(ii,"$position$",i),Bt=()=>S(At,"$adDuration",i),rt=()=>S(lt,"$duration$",i),Dt=h(e,"playerControlsWrapperRef",15,void 0),Qt=h(e,"playerControlsRef",15,void 0),Et=h(e,"isAds",3,!1),ti=h(e,"logoTargetUrl",3,""),Wt=h(e,"isOneVideoPlaylist",3,!1),Ce=h(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:we}=xo(),te=_e(),Te=xo(),Me=Rt(),It=te.actions.internal.toggleMuted,De=te.actions.internal.togglePlay,ut=te.actions.internal.pause,$t=te.actions.internal.toggleSubtitle,xe=te.actions.internal.checkFullscreenSupport,ot=(il=te.callbacks)==null?void 0:il.onAudioDoesNotExistHint,Qe=(ca=te.callbacks)==null?void 0:ca.onAudioDisabledHint,lt=te.state.duration$,ii=te.state.positionWithScrubbing$,ai=te.state.playbackState$,mi=te.state.isAudioAvailable$,yi=te.state.isAudioDisabled,so=te.state.isEnded$,vo=te.state.isLive$,ui=te.state.isActiveLive$,mt=te.state.isRewindableLive$,{isActive$:Pi,type$:Yt}=Te.pictureInPicture$,Tt=te.ui.settingsMenu.visible$,ni=te.ui.settingsMenu.openedByBtnKeyboard$,Zt=te.ui.controls,St=te.actions.internal.getVideoEpisodes(),Ye=te.state.chromecastState$,xi=te.state.availableSubtitlesList$,wo=te.state.currentSubtitle$,Zo=Zt.disabledControls$,un=te.ui.contextMenu.visible$,kt=te.ui.contextMenu.showContextMenuBtn$,Ht=te.ui.contextMenu.openedByBtnKeyboard$,K=te.ui.startedByKeyboard$,Vt=te.ui.controlBlocks,oi=te.ui.previewTrackNotificationVisible,ft=te.ui.t,At=te.ads.duration,Gt=te.ads.position,pt=te.ads.playbackState,Oi=te.ui.isFullscreen,Fi=te.ui.playerSize,Xo=te.ui.currentGridType$,Lo=te.ui.additionalDesktopControlPanelRightButtons$,ao=te.ui.autoplayNextEnabled$,Ui=te.actions.internal.getVideoElement,ur=te.actions.internal.replayInteractive,mo=te.actions.internal.prevVideoClick,go=te.actions.internal.nextVideoClick,Ni=te.state.isInteractive,pn=te.state.isInteractiveTime$,Vo=te.state.showInteractiveGraph,pr=te.state.showSeekToInteractive,fr=te.state.showPlayPrevChapter,Tr=te.state.showInteractiveTimeIndicator,es=te.state.playPrevChapterDisabledTooltip,ms=Te.seekToInteractiveDisabledTooltip$,ts=Te.graphIsOpened$,So=Me.features.interactiveResponsiveUi,qn=m(()=>r().has("EPISODE_BUTTON")),Ro=m(()=>r().has("GRAPH_BUTTON")),fn=m(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),An=m(()=>r().has("PLAY_BUTTON")),vr=m(()=>r().has("REPLAY_BUTTON")),Er=m(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),Ir=()=>te.actions.internal.toggleChromecast(),kr=m(()=>Et()?s()==="playing":l()===Uv.PLAYING),Ar=m(()=>d().value!=="off"),Gi=m(()=>a()&&!Et()||Ni),Pr=m(()=>So?n(Gi)&&no(u(),"m"):n(Gi)),Pn=m(()=>!a()||Ni||Et()),vn=m(()=>no(u(),"m")),ho=m(()=>e.showNextPrevButtons&&no(u(),"m")&&!Et()&&e.nextButtonActive),mr=m(()=>e.showNextPrevButtons&&no(u(),"m")&&!Et()&&e.prevButtonActive),Mn=m(()=>!Et()&&!!f()),gt=m(()=>v()!==S0.NOT_AVAILABLE&&!(p()&&x()===1)&&no(u(),"m")&&!Ni),vi=m(()=>e.showAutoplayNext&&!Wt()&&no(u(),"s")),Mr=m(()=>w().length>0&&no(u(),"m")),Qn=m(()=>y()||C()),Lr=m(()=>no(u(),"s")&&!Et()),Ln=m(()=>!e.logoHidden&&!Et()),Vn=m(()=>Me.features.fullscreen&&xe()&&(e.logoHidden||no(u(),So?"xs":"s"))&&!(p()&&x()===1)&&(Ni?Ce():!0)),Oo=m(()=>(!f()||Et())&&!(Me.features.interactiveHideTime&&Ni)),No=m(()=>Vo&&no(u(),"m")),mn=m(()=>So?pr&&no(u(),"s"):pr),_o=m(()=>So?fr&&no(u(),"s"):fr),Do=m(()=>!Et()&&!f()&&!!(St!=null&&St.length)&&n(vn)&&!n(qn)),Jo=m(()=>!T()||!!E()),gr=m(()=>R()?ft("tooltip_interactive_graph_on"):ft("tooltip_interactive_graph_off")),Vr=m(()=>A()?ft("tooltip_context_menu_close"):ft("tooltip_context_menu_open")),gn=(_t,bt)=>_t?bt&&bt===Uv.PAUSED?ft("tooltip_play"):"":ft("tooltip_live"),zi=m(()=>gn(n(Jo),l())),hr=m(()=>Me.logoType==="vk_video"?ft("tooltip_vk_video_logo"):ft("tooltip_vk_logo")),Rr=m(()=>n(Ar)?ft("tooltip_subtitles_on"):ft("tooltip_subtitles_off")),Rn=m(()=>I()?ft("tooltip_fullscreen_on"):ft("tooltip_fullscreen_off")),jn=m(()=>v()===S0.CONNECTED?ft("tooltip_chromecast_on"):ft("tooltip_chromecast_off")),Or=m(()=>N()?ft("tooltip_autoplay_on"):ft("tooltip_autoplay_off")),Gn=j(0),it=di({}),gi=di({}),Di=m(()=>Zt.prevButton),Yi=m(()=>Zt.replayButton),Bo=m(()=>Zt.playButton),en=m(()=>Zt.nextButton),lo=m(()=>Zt.playPrevChapterButton),ki=m(()=>Zt.seekToInteractiveButton),Zi=m(()=>Zt.interactiveGraphButton),bo=m(()=>Zt.liveButton),hn=m(()=>Zt.time),Yn=m(()=>Zt.episodes),Nr=m(()=>Zt.vkLogo),Dr=m(()=>Zt.volume),_n=m(()=>Zt.subtitles),bn=m(()=>Zt.settings),_r=m(()=>Zt.context),$n=m(()=>Zt.fullscreen),Br=m(()=>Zt.chromecast),tt=m(()=>({prevButton:H()?H().right-H().left:0,replayButton:B()?B().right-B().left:0,playButton:z()?z().right-z().left:0,nextButton:X()?X().right-X().left:0,playPrevChapterButton:le()?le().right-le().left:0,seekToInteractiveButton:q()?q().right-q().left:0,interactiveGraphButton:ce()?ce().right-ce().left:0,liveButton:J()?J().right-J().left:0,time:ve()?ve().right-ve().left:0,episodes:se()?se().right-se().left:0,vkLogo:de()?de().right-de().left:0,volume:Le()?Le().right-Le().left:0,subtitles:Se()?Se().right-Se().left:0,settings:ie()?ie().right-ie().left:0,context:Ne()?Ne().right-Ne().left:0,fullscreen:pe()?pe().right-pe().left:0,chromecast:k()?k().right-k().left:0,additionalButtons:qe().length?qe().reduce(_t=>[..._t,40],[]):[]})),Mt=j(0);We(()=>{(!n(Mt)||n(Mt)<n(tt).time)&&Pt(()=>O(Mt,n(tt).time,!0))});let wi=j(!1);We(()=>{let _t=0;n(Do)&&(no(u(),"xl")?_t=n(tt).time:_t=60);let bt=n(tt).prevButton+n(tt).playButton+n(tt).nextButton+n(tt).seekToInteractiveButton+n(tt).interactiveGraphButton+n(tt).liveButton+n(Mt)+_t;O(wi,n(Oo)&&n(Gn)>=bt,!0)});let $o=m(()=>n(wi)&&no(u(),"m")),Ho=C0(Fl,260),Co=C0(Gu,260);We(()=>{Re(),Z(),ne(),Ho(Ui(),Zt,it,e.showControls),Co(Ui(),Vt,gi,e.showControls)}),We(()=>{gi.bottom=Dt()});let Xi=ae();We(()=>{He(),Ze()&&Pt(()=>Ml(Ze(),He(),ni))});let Mi;We(()=>{ge(),Pt(()=>Qu(K,ge(),Mi))});function tn(){ta({isAudioDisabled:yi,isAudioAvailable:ee(),isAds:Et(),audioIsNotExistHintCallback:ot,audioDisabledHintCallback:Qe})&&It()}let Fo=Ni?ur:De,To=m(()=>ke()!==null),Ji=m(()=>n(To)?ke():n(kr)),Hr=m(()=>n(Ji)?ft("tooltip_pause"):ft("tooltip_play")),Zn=ft("tooltip_episodes"),Xn=m(()=>{var _t,bt,to,Eo;return n(mr)?{id:"prevButton",type:"desktop-control-panel-left",weight:Vs.prevButton,buttonComponent:Ha,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:mo.bind(null,!0)},tooltipEnabled:!((bt=(_t=te.callbacks)==null?void 0:_t.uiInfo)!=null&&bt.onPrevButtonMouseEnter)&&!((Eo=(to=te.callbacks)==null?void 0:to.uiInfo)!=null&&Eo.onPrevButtonMouseLeave),mouseEnter:()=>{var io,_i,Wi;(Wi=(_i=(io=te.callbacks)==null?void 0:io.uiInfo)==null?void 0:_i.onPrevButtonMouseEnter)==null||Wi.call(_i,Wn(Ui(),it,"prevButton",e.showControls))},mouseLeave:()=>{var io,_i,Wi;(Wi=(_i=(io=te.callbacks)==null?void 0:io.uiInfo)==null?void 0:_i.onPrevButtonMouseLeave)==null||Wi.call(_i,Wn(Ui(),it,"prevButton",e.showControls))},tooltipText:ft("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),br=m(()=>n(Pr)?{id:"replayButton",type:"desktop-control-panel-left",weight:Vs.replayButton,buttonComponent:Ul,buttonComponentProps:{disabled:n(vr),click:Fo},tooltipText:ft("tooltip_restart"),disabled:n(vr)}:void 0),gs=m(()=>n(Pn)?{id:"playButton",type:"desktop-control-panel-left",weight:Vs.playButton,buttonComponent:zl,buttonComponentProps:{disabled:n(An),isPlaying:n(kr),click:De},tooltipText:n(Hr),disabled:n(An)}:void 0),Fr=m(()=>{var _t,bt,to,Eo;return n(ho)?{id:"nextButton",type:"desktop-control-panel-left",weight:Vs.nextButton,buttonComponent:Ha,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:go.bind(null,!0)},tooltipEnabled:!((bt=(_t=te.callbacks)==null?void 0:_t.uiInfo)!=null&&bt.onNextButtonMouseEnter)&&!((Eo=(to=te.callbacks)==null?void 0:to.uiInfo)!=null&&Eo.onNextButtonMouseLeave),mouseEnter:()=>{var io,_i,Wi;(Wi=(_i=(io=te.callbacks)==null?void 0:io.uiInfo)==null?void 0:_i.onNextButtonMouseEnter)==null||Wi.call(_i,Wn(Ui(),it,"nextButton",e.showControls))},mouseLeave:()=>{var io,_i,Wi;(Wi=(_i=(io=te.callbacks)==null?void 0:io.uiInfo)==null?void 0:_i.onNextButtonMouseLeave)==null||Wi.call(_i,Wn(Ui(),it,"nextButton",e.showControls))},tooltipText:ft("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),is=m(()=>Ni&&n(_o)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Vs.playPrevChapterButton,buttonComponent:ic,buttonComponentProps:{disabled:n(Er),click:e.playPrevChapter},tooltipText:ft("tooltip_interactive_go_back"),disabledTooltipContent:ft(es),disabled:n(Er)}:void 0),je=m(()=>Ni&&n(mn)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Vs.seekToInteractiveButton,buttonComponent:nc,buttonComponentProps:{disabled:n(fn),click:e.seekToInteractive},tooltipText:ft("tooltip_interactive_seek"),disabled:n(fn),disabledTooltipContent:ft(he())}:void 0),Jt=m(()=>Ni&&n(No)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Vs.interactiveGraphButton,buttonComponent:rc,buttonComponentProps:{disabled:n(Ro),click:ts.toggle,graphIsOpened:R()},tooltipText:n(gr)}:void 0),hi=m(()=>n(Mn)?{id:"liveButton",type:"desktop-control-panel-left",weight:Vs.liveButton,buttonComponent:sc,buttonComponentProps:{isLiveActive:n(Jo),ariaLabel:n(zi)},tooltipText:n(zi),disabled:n(Jo)&&l()===Uv.PLAYING}:void 0),yn=m(()=>[n(Xn),n(br),n(gs),n(Fr),n(is),n(je),n(Jt),n(hi)].filter(_t=>!!_t).sort(Va)),Uo=m(()=>n(Ln)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Os.vkLogo,buttonComponent:jd,buttonComponentProps:{targetUrl:ti(),logoClickable:e.logoClickable,click:ut},tooltipText:n(hr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Ur=m(()=>n(vi)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Os.autoplayNext,buttonComponent:oc,tooltipText:n(Or)}:void 0),on=m(()=>({id:"volume",type:"desktop-control-panel-right",weight:Os.volume,buttonComponent:dv,buttonComponentProps:{click:tn,isAds:Et()}})),zr=m(()=>n(Mr)?{id:"subtitles",type:"desktop-control-panel-right",weight:Os.subtitles,buttonComponent:nv,buttonComponentProps:{isSubtitlesEnabled:n(Ar),click:$t},tooltipText:n(Rr)}:void 0),Ds=m(()=>n(Lr)?{id:"settings",type:"desktop-control-panel-right",weight:Os.settings,buttonComponent:Ol,buttonComponentProps:{ref$:Xi},tooltipText:He()?void 0:ft("tooltip_settings_off")}:void 0),eo=m(()=>Me.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Os.context,buttonComponent:Cv,buttonComponentProps:{ariaLabel:ft("aria_label_context_menu")},className:n(Qn)?"":"out-of-view",tooltipText:n(Vr)}:void 0),Wr=m(()=>n(Vn)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Os.fullscreen,buttonComponent:Qd,buttonComponentProps:{isFullscreen:I(),click:e.toggleFullscreen},tooltipText:n(Rn)}:void 0),na=m(()=>n(gt)?{id:"chromecast",type:"desktop-control-panel-right",weight:Os.chromecast,buttonComponent:Gd,buttonComponentProps:{state:v(),click:Ir},tooltipText:n(jn)}:void 0),ht=m(()=>[n(Uo),n(Ur),n(on),n(zr),n(Ds),n(eo),n(Wr),n(na),...qe()].filter(_t=>!!_t).sort(Va)),pi=te.ui.previewTrackActive,yo=te.ui.previewTrackDragInProgress,xn=te.ui.previewTrackAvailable,ye=te.ui.isPreviewTrackHorizontallyAligned,vt=m(()=>x0({onPreviewTrackOpened:te.actions.internal.previewTrackOpened,getTimelineRef:()=>it.timeline,isHorizontal:Ue()})),li=m(()=>n(vt).progressBarY),Si=m(()=>n(vt).controlsY),fi=m(()=>n(vt).onPointerDown),ei=m(()=>n(vt).onPointerMove),Ei=m(()=>n(vt).onPointerUp),wn=m(()=>n(vt).calculatedHeight),nn=m(()=>n(vt).closePreviewTrack);We(()=>{ne()?oi.set(!1):n(nn)()});let Li;Nt(()=>()=>Li&&clearTimeout(Li));let Za=_t=>{ne()||!Xe()||(n(fi)(_t),Li=setTimeout(()=>{te.actions.internal.previewTrackDragStarted()},200))},ra=()=>{ne()||n(Ei)(),Li&&clearTimeout(Li),Ge()&&te.actions.internal.previewTrackDragFinished()},sa=_t=>{n(ei)(_t),!ne()&&Xe()&&!ne()&&oi.set(!0)},aa=()=>{oi.set(!1)};var Jn=x3(),hs=fe(Jn);let la;var $r=_(hs);{var Xa=_t=>{let bt=m(()=>n(li)()),to=m(()=>n(wn)());Fv(_t,{get animatedOffsetY(){return n(bt)},get animatedPreviewTrackHeight(){return n(to)},get canRewindLive(){return e.canRewindLive},get isAds(){return Et()},onTimelineMove:sa,onTimelinePointerDown:Za,onTimelinePointerUp:ra,onTimelinePointerLeave:aa,get previewTrackAvailable(){return Xe()},get timelineRef(){return it.timeline},set timelineRef(Eo){it.timeline=Eo}})};V($r,_t=>{e.showControls&&_t(Xa)})}var _s=P($r,2),bs=_(_s),Ja=_(bs);Ci(Ja,17,()=>n(yn),_t=>_t.id,(_t,bt)=>{ju(_t,{get buttonComponent(){return n(bt).buttonComponent},get buttonComponentProps(){return n(bt).buttonComponentProps},get tooltipText(){return n(bt).tooltipText},get disabledTooltipContent(){return n(bt).disabledTooltipContent},get disabled(){return n(bt).disabled},get className(){return n(bt).className},get tooltipEnabled(){return n(bt).tooltipEnabled},get mouseEnter(){return n(bt).mouseEnter},get mouseLeave(){return n(bt).mouseLeave},get ref(){return it[n(bt).id]},set ref(to){it[n(bt).id]=to}})});var da=P(Ja,2);{var Ql=_t=>{let bt=m(()=>!e.showControls),to=m(()=>Et()?ct():et()),Eo=m(()=>Et()?Bt():rt());Kd(_t,{get isHidden(){return n(bt)},isMobile:!1,get showDuration(){return n($o)},get position(){return n(to)},get duration(){return n(Eo)},get ref(){return it.time},set ref(io){it.time=io}})};V(da,_t=>{n(Oo)&&_t(Ql)})}var el=P(da,2);let jl=m(()=>!n(Do));Mo(el,{className:"w-max",get disabled(){return n(jl)},get tooltipContent(){return Zn},get ref(){return it.episodes},set ref(_t){it.episodes=_t},children:(_t,bt)=>{var to=Fe(),Eo=fe(to);{var io=_i=>{Yd(_i,{get position(){return et()},get duration(){return rt()},get timeCodes(){return St}})};V(Eo,_i=>{n(Do)&&_i(io)})}b(_t,to)},$$slots:{default:!0}}),g(bs);var er=P(bs,2);Ci(er,21,()=>n(ht),_t=>_t.id,(_t,bt)=>{var to=Fe(),Eo=fe(to);{var io=Wi=>{ju(Wi,{get buttonComponent(){return n(bt).buttonComponent},get buttonComponentProps(){return n(bt).buttonComponentProps},get tooltipText(){return n(bt).tooltipText},get disabledTooltipContent(){return n(bt).disabledTooltipContent},get disabled(){return n(bt).disabled},get className(){return n(bt).className},get ref(){return it[n(bt).id]},set ref(Bs){it[n(bt).id]=Bs}})},_i=Wi=>{let Bs=m(()=>!!n(bt).disabled);Pv(Wi,{get id(){return n(bt).id},get testId(){return n(bt).testId},get icon(){return n(bt).icon},get ariaLabel(){return n(bt).ariaLabel},get tooltipText(){return n(bt).tooltipText},get disabledTooltipContent(){return n(bt).disabledTooltipContent},get disabled(){return n(Bs)},get onClick(){return n(bt).onClick},get disableMouseupTooltipShow(){return n(bt).disableMouseupTooltipShow},get ref(){return it[n(bt).id]},set ref(Yl){it[n(bt).id]=Yl}})};V(Eo,Wi=>{b0(n(bt))?Wi(io):Wi(_i,!1)})}b(_t,to)}),g(er),g(_s),at(_s,_t=>Qt(_t),()=>Qt()),g(hs),at(hs,_t=>Dt(_t),()=>Dt());var Gl=P(hs,2);{var tl=_t=>{Jd(_t,{get ref(){return it.interactiveTimeIndicator},set ref(bt){it.interactiveTimeIndicator=bt}})};V(Gl,_t=>{Tr&&_t(tl)})}D((_t,bt)=>{la=re(hs,1,"wrapper-bottom svelte-1ojrdvx",null,la,_t),Je(_s,bt),_s.inert=ne()},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth||Ge()}),()=>`transform: translateY(${n(Si)()}px);`]),kn(bs,"clientWidth",_t=>O(Gn,_t)),b(t,Jn),U(),o()}import{ChromecastState as E0,PlaybackState as I0}from"@vkontakte/videoplayer-core/es2015";import{noop as T0}from"@vkontakte/videoplayer-shared/es2015";var S3=M('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),C3=M('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),T3={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 Wv(t,e){W(t,T3);let i=h(e,"disabled",3,!1),o=h(e,"onClick",3,T0),r=m(()=>o()===T0),s=m(()=>n(r)||i()),l=j(!1),d=()=>{O(l,!0)},a=m(()=>n(r)?"btn-full-opacity":"");zt(t,{get className(){return n(a)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(s)},get testId(){return e.testId},children:(u,f)=>{var v=Fe(),p=fe(v);{var x=y=>{var C=S3();b(y,C)},w=y=>{var C=C3();D(()=>Ke(C,"src",e.iconUrl)),Ct("error",C,d),Sa(C),b(y,C)};V(p,y=>{n(l)?y(x):y(w,!1)})}b(u,v)},$$slots:{default:!0}})}var E3=Ie('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" d="M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"></path></g></svg>');function Kv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=E3();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}import{noop as I3}from"@vkontakte/videoplayer-shared/es2015";var k3=M('<div class="container svelte-yslgu" aria-hidden="true"><!></div>'),A3={hash:"svelte-yslgu",code:".container.svelte-yslgu {display:flex;align-items:center;}"};function Yu(t,e){F(e,!0),W(t,A3);let i=h(e,"muted",3,!1),o=h(e,"click",3,I3),r=h(e,"ref",15,void 0),l=_e().ui.t,d=m(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),a=m(()=>i()?Kv:ia),u=m(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");zt(t,{get testId(){return n(u)},get click(){return o()},get ariaLabel(){return n(d)},role:"button",get ref(){return r()},set ref(f){r(f)},children:(f,v)=>{var p=k3();let x=m(()=>n(a));var w=_(p);Vi(w,()=>n(x),(y,C)=>{C(y,{})}),g(p),b(f,p)},$$slots:{default:!0}}),U()}var P3=Ie('<svg><!><path fill="var(--btn-color, #fff)" d="M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z" class="hidden-not-active"></path><path fill="var(--btn-color, #fff)" d="m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z" class="hidden-active"></path></svg>');function qv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=P3();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(3),g(o),b(t,o)}var M3={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
|
|
267
|
+
svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function Qv(t,e){W(t,M3);let i=h(e,"isActive",3,!1),o=m(()=>i()?"color: #2688EB;":"color: #fff;"),r=m(()=>i()?"pip-icon--active":"pip-icon");qv(t,{get style(){return n(o)},get"data-testid"(){return n(r)}})}import{noop as L3}from"@vkontakte/videoplayer-shared/es2015";function jv(t,e){F(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"isPictureInPictureActive",3,!1),r=h(e,"click",3,L3),s=Y("menu_pip");zt(t,{testId:"btn-pip",get ariaLabel(){return s},get click(){return r()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{Qv(l,{get isActive(){return o()}})},$$slots:{default:!0}}),U()}import{debounceFn as k0}from"@vkontakte/videoplayer-shared/es2015";var V3=(t,e,i,o)=>{n(e)&&i.onDisabledPlayPrevChapterClick(n(o))},R3=(t,e,i,o)=>{n(e)&&i.onDisabledSeekToInteractiveClick(n(o))},O3=M("<div><!></div>"),N3=M("<div><!></div>"),D3=M("<div><!></div>"),B3=M("<!> <!> <!>",1),H3=M("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),F3=M('<div class="wrapper-middle svelte-tg0ura"><!></div>'),U3=M("<div><!></div> <!> <div><!></div>",1),z3=M('<div aria-hidden="true">\xB7</div> <!>',1),W3=M('<!> <!> <div><div><div class="controls mobile svelte-tg0ura"><div class="controls-group contain svelte-tg0ura"><!> <!> <!> <!></div> <div class="controls-group svelte-tg0ura"><!> <!> <!></div></div> <!></div></div> <!>',1),K3={hash:"svelte-tg0ura",code:`.wrapper-bottom.svelte-tg0ura {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px;}.wrapper-bottom.svelte-tg0ura::before {content:'';height:var(--controls-gradient-height);background:var(--controls-gradient);position:absolute;width:100%;}.wrapper-bottom.svelte-tg0ura > :where(.svelte-tg0ura) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-tg0ura {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-tg0ura {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;z-index:var(--controls-container-z-index);}.wrapper-top-right.svelte-tg0ura {position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex;z-index:var(--controls-container-z-index);}.wrapper-top-left.svelte-tg0ura {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-tg0ura,
|
|
260
268
|
.wrapper-middle-left-second.svelte-tg0ura,
|
|
261
269
|
.wrapper-middle-right.svelte-tg0ura {position:absolute;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.wrapper-middle-left.svelte-tg0ura {left:12px;}.wrapper-middle-left-second.svelte-tg0ura {left:64px;}.wrapper-middle-right.svelte-tg0ura {right:12px;}.controls.svelte-tg0ura {width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box;justify-content:space-between;}.controls-group.svelte-tg0ura {display:flex;}.controls-group.contain.svelte-tg0ura {min-width:0;}.controls-group.svelte-tg0ura > *:not(:first-child) {margin-left:8px;}.hidden.svelte-tg0ura {visibility:hidden;opacity:0;}.controls-hidden.svelte-tg0ura {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-tg0ura {transition:none;}.overlay-mobile.svelte-tg0ura {position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.3);pointer-events:none;transition:opacity var(--controls-transition-duration);}
|
|
262
270
|
|
|
@@ -264,7 +272,7 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},l1=mb;var w
|
|
|
264
272
|
}
|
|
265
273
|
|
|
266
274
|
@media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-tg0ura {top:12px;left:44px;}.wrapper-top-right.fullscreen.svelte-tg0ura {top:12px;right:44px;}.wrapper-middle-left.fullscreen.svelte-tg0ura {left:44px;}.wrapper-middle-left-second.fullscreen.svelte-tg0ura {left:96px;}.wrapper-middle-right.fullscreen.svelte-tg0ura {right:44px;}.controls-wrapper.fullscreen.svelte-tg0ura {position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px);}
|
|
267
|
-
}`};function Am(t,e){var Or,Yn;U(e,!0),q(t,Y4);let[i,o]=De(),n=()=>S(so,"$seekToInteractiveDisabledTooltip$",i),s=()=>S(go,"$disabledControls$",i),l=()=>S(jt,"$playbackState$",i),d=()=>S(To,"$adPlaybackState",i),a=()=>S(ce,"$isEnded$",i),u=()=>S(O,"$playerSize",i),f=()=>S(Xe,"$scrubbingInProgress",i),m=()=>S(Si,"$chromecastState$",i),p=()=>S(yt,"$isPictureInPictureActive",i),x=()=>S(Vt,"$pictureInPictureType$",i),w=()=>S(Lt,"$mobileNotReportControlHidden$",i),y=()=>S(si,"$chromecastHidden",i),T=()=>S(Yt,"$playerPhase",i),C=()=>S(Ct,"$pipHidden",i),E=()=>S(Ye,"$currentGridType$",i),R=()=>S(mo,"$vkLogoHidden",i),I=()=>S(Ii,"$volumeHidden",i),k=()=>S(Ge,"$isLive$",i),B=()=>S(hi,"$settingsMenuVisible",i),F=()=>S($e,"$isRewindableLive$",i),H=()=>S(Fe,"$isActiveLive$",i),W=()=>S(be,"$isAudioAvailable$",i),Z=()=>S(ue,"$muted$",i),ne=()=>S(ze,"$volume$",i),j=()=>S(oi,"$isInteractiveTime$",i),_e=()=>S(ko,"$settingButtonRef$",i),ee=()=>S(xt,"$startedByKeyboard$",i),fe=()=>S(sn,"$isFullscreen",i),ve=()=>S(tt,"$additionalButtons$",i),pe=()=>S(vo,"$autoplayNextToggleHidden",i),Me=()=>S(Qi,"$crashed$",i),Ve=()=>S(ii,"$settingsHidden",i),de=()=>S(bn,"$graphIsOpened$",i),Ne=()=>S(Co,"$adPosition",i),se=()=>S(Vi,"$adDuration",i),P=()=>S(Ae,"$position$",i),nt=()=>S(Gt,"$duration$",i),Be=v(e,"playerControlsWrapperRef",15,void 0),G=v(e,"playerControlsRef",15,void 0),ie=v(e,"isAds",3,!1),Oe=v(e,"logoTargetUrl",3,""),et=v(e,"isOneVideoPlaylist",3,!1),xe=v(e,"customFullscreenSupported",3,!0),te=Te(),Ce=fo(),Ee=It(),qe=te.actions.internal.toggleMuted,it=te.actions.internal.togglePlay,ft=te.actions.internal.pause,dt=te.actions.internal.prevVideoClick,gt=te.actions.internal.nextVideoClick,ot=te.actions.internal.checkFullscreenSupport,Ut=(Or=te.callbacks)==null?void 0:Or.onAudioDoesNotExistHint,Qt=(Yn=te.callbacks)==null?void 0:Yn.onAudioDisabledHint,Yt=te.playerPhase,Gt=te.state.duration$,Ae=te.state.positionWithScrubbing$,jt=te.state.playbackState$,be=te.state.isAudioAvailable$,Ie=te.state.isAudioDisabled,ce=te.state.isEnded$,Ge=te.state.isLive$,ze=te.state.volume$,ue=te.state.muted$,Fe=te.state.isActiveLive$,$e=te.state.isRewindableLive$,Xe=te.ui.scrubbingInProgress,Lt=te.ui.mobileNotReportControlHidden$,{isActive$:yt,type$:Vt}=Ce.pictureInPicture$,hi=te.ui.settingsMenu.visible$,Jt=te.ui.settingsMenu.openedByBtnKeyboard$,_i=te.ui.controls,{volume:Ii,vkLogo:mo,autoplayNextToggle:vo,pip:Ct,settings:ii,chromecast:si}=te.ui.hiddenControls,We=te.actions.internal.getVideoEpisodes(),At=te.webApi.pictureInPictureApi,Si=te.state.chromecastState$,Qi=te.state.crashed$,go=_i.disabledControls$,xt=te.ui.startedByKeyboard$,Ye=te.ui.currentGridType$,Vi=te.ads.duration,Co=te.ads.position,To=te.ads.playbackState,sn=te.ui.isFullscreen,O=te.ui.playerSize,tt=te.ui.additionalButtonsDeprecated$,Wt=te.actions.internal.getVideoElement,Kt=te.actions.internal.replayInteractive,mt=te.state.isInteractive,oi=te.state.isInteractiveTime$,bi=te.state.showInteractiveGraph,mi=te.state.showSeekToInteractive,bt=te.state.showPlayPrevChapter,ki=te.state.showInteractiveTimeIndicator,so=Ce.seekToInteractiveDisabledTooltip$,bn=Ce.graphIsOpened$,$n=te.ui.controlBlocks,pi=g(()=>Q(te.state.playPrevChapterDisabledTooltip)),ao=g(()=>Q(n())),pr=g(()=>s().has("EPISODE_BUTTON")),lo=g(()=>s().has("GRAPH_BUTTON")),to=g(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),Dn=g(()=>s().has("PLAY_BUTTON")),qo=g(()=>s().has("REPLAY_BUTTON")),Eo=g(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),fr=g(()=>l()===o0.PLAYING),Fn=g(()=>d()==="paused"),mr=g(()=>a()&&!ie()&&!mt),fs=g(()=>!a()||ie()),Yr=g(()=>e.showNextPrevButtons&&!ie()&&e.prevButtonActive),yn=g(()=>e.showNextPrevButtons&&!ie()&&e.nextButtonActive),Hn=g(()=>u().width>300),xn=g(()=>u().width>400),Qo=g(f),Go=g(()=>m()!==i0.NOT_AVAILABLE&&!(p()&&x()===1)&&!w()&&!mt&&!y()),Un=g(()=>T()==="LiveWaitingStart"),vr=g(()=>!!At&&m()!==i0.CONNECTED&&!w()&&(x()===1&&r(Un)||!r(Un))&&!r(Qo)&&!mt&&!C()),Zr=J(!1);Mt(()=>{let st=At==null?void 0:At.info.isActive$.subscribe(Pt=>N(Zr,Pt,!0));return()=>st==null?void 0:st.unsubscribe()});let co=g(()=>!r(Qo)&&Ji(E(),"s")),Ar=g(()=>!e.logoHidden&&u().width>350&&!R()),an=g(()=>Ee.features.fullscreen&&ot()&&!(p()&&x()===1)&&(mt?xe():!0)&&!r(Qo)&&!r(Zr)),wn=g(()=>!I()&&!r(Qo)),zn=g(()=>(!k()||ie())&&u().width>260&&!r(Qo)&&!(Ee.features.interactiveHideTime&&mt)),gr=g(()=>B()||e.showControls),Wn=g(()=>!ie()&&!k()&&!!(We!=null&&We.length)&&r(Hn)&&!r(pr)&&!r(Qo)),ho=g(()=>!F()||!!H()),Xr=g(()=>bi&&Ji(E(),"m")),Sn=g(()=>!W()||Z()||ne()===0),ut=ei({}),ai=ei({}),ln=n0(hl,260),Cn=n0(Pu,260);Qe(()=>{u(),j(),ln(Wt(),_i,ut,e.showControls),Cn(Wt(),$n,ai,e.showControls)});let Pr=()=>te.actions.internal.toggleChromecast();function Io(){return vt(this,null,function*(){At!=null&&At.isActive()?yield At==null?void 0:At.exit():yield At==null?void 0:At.request()})}function dn(){Gs({isAudioDisabled:Ie,audioDisabledHintCallback:Qt,isAudioAvailable:W(),audioIsNotExistHintCallback:Ut,isAds:ie()})&&qe()}let fi=J(""),Ai=(st,Pt)=>{if(!st){N(fi,Q("tooltip_live"),!0);return}Pt&&Pt===o0.PAUSED&&N(fi,Q("tooltip_play"),!0)};Qe(()=>{Ai(r(ho),l())});let ko=ae();Qe(()=>{_e()&&cl(_e(),B(),Jt)}),Qe(()=>{ku(xt,ee(),ut.playButton)}),Qe(()=>{ai.bottom=Be()});var Kn=j4(),hr=me(Kn);{var Lr=st=>{var Pt=K4(),$i=me(Pt);let uo;var Ri=A($i,2);let Yi;at(Ri,X=>ai.topLeft=X,()=>ai==null?void 0:ai.topLeft);var Oi=A(Ri,2);let _o;var In=_(Oi);Pi(In,1,ve,({iconUrl:X,ariaLabel:je,testId:Bt,onClick:ri,tooltip:Ci})=>X,(X,je)=>{let Bt=()=>r(je).iconUrl,ri=()=>r(je).ariaLabel,Ci=()=>r(je).testId,Ti=()=>r(je).onClick,Hi=()=>r(je).tooltip,er=g(()=>{var Ei;return(Ei=ri())!=null?Ei:Hi()});Cm(X,{get iconUrl(){return Bt()},get ariaLabel(){return r(er)},get testId(){return Ci()},get onClick(){return Ti()}})});var Lo=A(In,2);{var Mo=X=>{Od(X,{get ref(){return ut.autoplayNextToggle},set ref(je){ut.autoplayNextToggle=je}})};V(Lo,X=>{e.showAutoplayNext&&!et()&&!pe()&&X(Mo)})}var Vo=A(Lo,2);{var Zn=X=>{Td(X,{isMobile:!0,click:Pr,get state(){return m()},get ref(){return ut.chromecast},set ref(je){ut.chromecast=je}})};V(Vo,X=>{r(Go)&&X(Zn)})}var kn=A(Vo,2);{var yr=X=>{km(X,{click:Io,get isPictureInPictureActive(){return p()},get ref(){return ut.pip},set ref(je){ut.pip=je}})};V(kn,X=>{r(vr)&&X(yr)})}var xr=A(kn,2);{var Xn=X=>{ml(X,{get ref$(){return ko}})};V(xr,X=>{Me()&&!Ve()&&X(Xn)})}var Nr=A(xr,2);{var Jr=X=>{Cd(X,{get click(){return ft},get targetUrl(){return Oe()},get logoClickable(){return e.logoClickable},get ref(){return ut.vkLogo},set ref(je){ut.vkLogo=je}})};V(Nr,X=>{r(Ar)&&X(Jr)})}h(Oi),at(Oi,X=>ai.topRight=X,()=>ai==null?void 0:ai.topRight);var Ke=A(Oi,2);let qt;var yi=_(Ke);{var pn=X=>{let je=g(()=>dt.bind(null,!0));Ta(X,{get click(){return r(je)},type:"prev",isMobile:!0,get ref(){return ut.prevButton},set ref(Bt){ut.prevButton=Bt}})};V(yi,X=>{r(Yr)&&X(pn)})}var Ro=A(yi,2);{var Oo=X=>{bl(X,{get disabled(){return r(Dn)},get click(){return it},isMobile:!0,get isPlaying(){return r(fr)},get ref(){return ut.playButton},set ref(je){ut.playButton=je}})};V(Ro,X=>{r(fs)&&X(Oo)})}var No=A(Ro,2);{var Jn=X=>{_l(X,{get disabled(){return r(qo)},get click(){return it},isMobile:!0,get ref(){return ut.replayButton},set ref(je){ut.replayButton=je}})};V(No,X=>{r(mr)&&X(Jn)})}var es=A(No,2);{var Ls=X=>{let je=g(()=>gt.bind(null,!0));Ta(X,{get click(){return r(je)},type:"next",isMobile:!0,get ref(){return ut.nextButton},set ref(Bt){ut.nextButton=Bt}})};V(es,X=>{r(yn)&&X(Ls)})}h(Ke),at(Ke,X=>ai.middle=X,()=>ai==null?void 0:ai.middle);var wr=A(Ke,2);{var ts=X=>{var je=W4(),Bt=me(je);{var ri=Ei=>{var xi=H4();let Bo;xi.__click=[D4,Eo,e,pi];var bo=_(xi);let Sr=g(()=>!e.showControls);Rd(bo,{get hidden(){return r(Sr)},get disabled(){return r(Eo)},get click(){return e.playPrevChapter},get ref(){return ut.playPrevChapterButton},set ref($o){ut.playPrevChapterButton=$o}}),h(xi),D($o=>Bo=re(xi,1,"wrapper-middle-left svelte-tg0ura",null,Bo,$o),[()=>({fullscreen:fe(),hidden:!e.showControls})]),$(Ei,xi)};V(Bt,Ei=>{bt&&Ei(ri)})}var Ci=A(Bt,2);{var Ti=Ei=>{var xi=U4();let Bo;var bo=_(xi);let Sr=g(()=>!e.showControls&&!de());Bd(bo,{get hidden(){return r(Sr)},get disabled(){return r(lo)},get click(){return bn.toggle},get graphIsOpened(){return de()},get ref(){return ut.interactiveGraphButton},set ref($o){ut.interactiveGraphButton=$o}}),h(xi),D($o=>Bo=re(xi,1,Yl(bt?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-tg0ura",Bo,$o),[()=>({fullscreen:fe(),hidden:!e.showControls&&!de()})]),$(Ei,xi)};V(Ci,Ei=>{r(Xr)&&Ei(Ti)})}var Hi=A(Ci,2);{var er=Ei=>{var xi=z4();let Bo;xi.__click=[F4,to,e,ao];var bo=_(xi);let Sr=g(()=>!e.showControls);Nd(bo,{get hidden(){return r(Sr)},get disabled(){return r(to)},get click(){return e.seekToInteractive},get ref(){return ut.seekToInteractiveButton},set ref($o){ut.seekToInteractiveButton=$o}}),h(xi),D($o=>Bo=re(xi,1,"wrapper-middle-right svelte-tg0ura",null,Bo,$o),[()=>({fullscreen:fe(),hidden:!e.showControls})]),$(Ei,xi)};V(Hi,Ei=>{mi&&Ei(er)})}$(X,je)};V(wr,X=>{mt&&!f()&&X(ts)})}D((X,je,Bt,ri)=>{uo=re($i,1,"overlay-mobile svelte-tg0ura",null,uo,X),Yi=re(Ri,1,"wrapper-top-left svelte-tg0ura",null,Yi,je),_o=re(Oi,1,"wrapper-top-right svelte-tg0ura",null,_o,Bt),qt=re(Ke,1,"wrapper-middle svelte-tg0ura",null,qt,ri)},[()=>({hidden:!r(gr)}),()=>({hidden:!e.showControls,fullscreen:fe()}),()=>({hidden:!e.showControls&&!w(),fullscreen:fe()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),$(st,Pt)};V(hr,st=>{ie()||st(Lr)})}var _r=A(hr,2);{var qn=st=>{var Pt=Q4(),$i=me(Pt);let uo;var Ri=_($i);Lu(Ri,{get muted(){return Z()},click:dn,get ref(){return ut.volume},set ref(Mo){ut.volume=Mo}}),h($i);var Yi=A($i,2);{var Oi=Mo=>{var Vo=q4(),Zn=_(Vo);let kn=g(()=>!r(Fn));bl(Zn,{get disabled(){return r(Dn)},get click(){return it},isMobile:!0,get isPlaying(){return r(kn)},get ref(){return ut.playButton},set ref(yr){ut.playButton=yr}}),h(Vo),$(Mo,Vo)};V(Yi,Mo=>{r(Fn)&&Mo(Oi)})}var _o=A(Yi,2);let In;var Lo=_(_o);Ed(Lo,{get position(){return Ne()},get duration(){return se()}}),h(_o),D((Mo,Vo)=>{uo=re($i,1,"wrapper-top-right svelte-tg0ura",null,uo,Mo),In=re(_o,1,"wrapper-bottom ads-timeline-mobile svelte-tg0ura",null,In,Vo)},[()=>({fullscreen:fe()}),()=>({fullscreen:fe()})]),$(st,Pt)};V(_r,st=>{ie()&&d()!=="inactive"&&st(qn)})}var Qn=A(_r,2);let Ao;var Gn=_(Qn);let br;var ni=_(Gn),cn=_(ni),$r=_(cn);{var Tn=st=>{So(st,{get disabled(){return r(qo)},get ref(){return ut.replayButton},set ref(Pt){ut.replayButton=Pt},children:(Pt,$i)=>{_l(Pt,{get disabled(){return r(qo)},get click(){return Kt}})},$$slots:{default:!0}})};V($r,st=>{mt&&st(Tn)})}var pt=A($r,2);{var ci=st=>{So(st,{get ref(){return ut.liveButton},set ref(Pt){ut.liveButton=Pt},children:(Pt,$i)=>{Dd(Pt,{get isLiveActive(){return r(ho)},isMobile:!0,get ariaLabel(){return r(fi)}})},$$slots:{default:!0}})};V(pt,st=>{!ie()&&k()&&st(ci)})}var io=A(pt,2);{var jo=st=>{let Pt=g(()=>ie()?Ne():P()),$i=g(()=>ie()?se():nt()),uo=g(()=>!e.showControls);xd(st,{get showDuration(){return r(xn)},get position(){return r(Pt)},get duration(){return r($i)},isMobile:!0,get isHidden(){return r(uo)},get ref(){return ut.time},set ref(Ri){ut.time=Ri}})};V(io,st=>{r(zn)&&st(jo)})}var ui=A(io,2);let un=g(()=>!r(Wn));So(ui,{className:"w-max",get disabled(){return r(un)},get ref(){return ut.episodes},set ref(st){ut.episodes=st},children:(st,Pt)=>{var $i=He(),uo=me($i);{var Ri=Yi=>{var Oi=G4(),_o=A(me(Oi),2);Id(_o,{get position(){return P()},get duration(){return nt()},get timeCodes(){return We}}),$(Yi,Oi)};V(uo,Yi=>{r(Wn)&&Yi(Ri)})}$(st,$i)},$$slots:{default:!0}}),h(cn),at(cn,st=>ai.bottomLeft=st,()=>ai==null?void 0:ai.bottomLeft);var Fi=A(cn,2),Gi=_(Fi);{var ji=st=>{So(st,{get ref(){return ut.volume},set ref(Pt){ut.volume=Pt},children:(Pt,$i)=>{Lu(Pt,{get muted(){return r(Sn)},click:dn})},$$slots:{default:!0}})};V(Gi,st=>{r(wn)&&st(ji)})}var Yo=A(Gi,2);{var En=st=>{So(st,{get ref(){return ut.settings},set ref(Pt){ut.settings=Pt},children:(Pt,$i)=>{ml(Pt,{get ref$(){return ko}})},$$slots:{default:!0}})};V(Yo,st=>{r(co)&&st(En)})}var Mr=A(Yo,2);{var Zo=st=>{So(st,{get ref(){return ut.fullscreen},set ref(Pt){ut.fullscreen=Pt},children:(Pt,$i)=>{Sd(Pt,{get click(){return e.toggleFullscreen},get isFullscreen(){return fe()}})},$$slots:{default:!0}})};V(Mr,st=>{r(an)&&st(Zo)})}h(Fi),at(Fi,st=>ai.bottomRight=st,()=>ai==null?void 0:ai.bottomRight),h(ni),at(ni,st=>G(st),()=>G());var Vr=A(ni,2);let Rr=g(()=>!e.showControls);Sa(Vr,{get isHidden(){return r(Rr)},get isAds(){return ie()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return F()},get ref(){return ut.timeline},set ref(st){ut.timeline=st}}),h(Gn),h(Qn),at(Qn,st=>Be(st),()=>Be());var Po=A(Qn,2);{var jn=st=>{Ld(st,{get ref(){return ut.interactiveTimeIndicator},set ref(Pt){ut.interactiveTimeIndicator=Pt}})};V(Po,st=>{ki&&st(jn)})}D((st,Pt)=>{Ao=re(Qn,1,"wrapper-bottom mobile svelte-tg0ura",null,Ao,st),br=re(Gn,1,"controls-wrapper svelte-tg0ura",null,br,Pt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:fe()})]),$(t,Kn),z(),o()}ct(["click"]);function Fd(t,e){U(e,!0);let[i,o]=De(),n=()=>S(C,"$isMobile",i),s=v(e,"bottomNoSmooth",3,!1),l=v(e,"playerControlsWrapperRef",15,void 0),d=v(e,"playerControlsRef",15,void 0),a=v(e,"isAds",3,!1),u=v(e,"logoTargetUrl",3,""),f=v(e,"showAutoplayNext",3,!1),m=v(e,"isOneVideoPlaylist",3,!1),p=v(e,"customFullscreenSupported",3,!0),x=v(e,"endScreenShown",3,!1),w=v(e,"onDisabledPlayPrevChapterClick",3,r0),y=v(e,"onDisabledSeekToInteractiveClick",3,r0),C=Te().ui.isMobile,E=J(!1);Mt(()=>{let B=setTimeout(()=>N(E,!0),0);return()=>clearTimeout(B)});var R=He(),I=me(R);{var k=B=>{var F=He(),H=me(F);{var W=ne=>{Am(ne,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return m()},get customFullscreenSupported(){return p()},get endScreenShown(){return x()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return y()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(j){l(j)},get playerControlsRef(){return d()},set playerControlsRef(j){d(j)}})},Z=ne=>{Sm(ne,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get isOneVideoPlaylist(){return m()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return p()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(j){l(j)},get playerControlsRef(){return d()},set playerControlsRef(j){d(j)}})};V(H,ne=>{n()?ne(W):ne(Z,!1)})}$(B,F)};V(I,B=>{r(E)&&B(k)})}$(t,R),z(),o()}var Z4=Se('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"></path></g><defs><filter id="a" width="43.996" height="49.5" x="2.5" y="0" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_100684"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_100684" result="shape"></feBlend></filter></defs></svg>');function Pm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Z4();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:le}),we(2),h(o),$(t,o)}function Lm(t,e){let i=v(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);Pm(t,{get style(){return r(o)}})}var X4=Se('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22" clip-rule="evenodd"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="45" x="-1.5" y="1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104204"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104204" result="shape"></feBlend></filter></defs></svg>');function Mm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=X4();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:le}),we(2),h(o),$(t,o)}var J4=Se('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="51" x="-1.5" y="-1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104293"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104293" result="shape"></feBlend></filter></defs></svg>');function Vm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=J4();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:le}),we(2),h(o),$(t,o)}function Mu(t,e){let i=v(e,"isOff",3,!1);var o=He(),n=me(o);{var s=d=>{Vm(d,{})},l=d=>{Mm(d,{})};V(n,d=>{i()?d(s):d(l,!1)})}$(t,o)}var e3=Se('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"></path></g><defs><filter id="a" width="40.098" height="27.785" x="3.402" y="10.105" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_106627"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_106627" result="shape"></feBlend></filter></defs></svg>');function Rm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=e3();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:le}),we(2),h(o),$(t,o)}function Om(t,e){let i=v(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);Rm(t,{get style(){return r(o)}})}var t3=Se('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"></path></g><defs><filter id="a" width="37" height="37" x="5.5" y="5.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2340_106922"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2340_106922" result="shape"></feBlend></filter></defs></svg>');function Nm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=t3();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:le}),we(2),h(o),$(t,o)}function Bm(t,e){let i=v(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);Nm(t,{get style(){return r(o)}})}var i3=M('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),o3=M('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),n3=M("<div><!></div>"),r3={hash:"svelte-1ad3n06",code:`.hot-key-helpers-container.svelte-1ad3n06 {position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;
|
|
275
|
+
}`};function Gv(t,e){var $n,Br;F(e,!0),W(t,K3);let[i,o]=Be(),r=()=>S(Fi,"$seekToInteractiveDisabledTooltip$",i),s=()=>S(Zt,"$disabledControls$",i),l=()=>S(Wt,"$playbackState$",i),d=()=>S(Zo,"$adPlaybackState",i),a=()=>S(te,"$isEnded$",i),u=()=>S(kt,"$playerSize",i),f=()=>S($t,"$scrubbingInProgress",i),v=()=>S(Tt,"$chromecastState$",i),p=()=>S(ot,"$isPictureInPictureActive",i),x=()=>S(Qe,"$pictureInPictureType$",i),w=()=>S(xe,"$mobileNotReportControlHidden$",i),y=()=>S(mt,"$chromecastHidden",i),C=()=>S(Qt,"$playerPhase",i),T=()=>S(vo,"$pipHidden",i),E=()=>S(Ye,"$currentGridType$",i),R=()=>S(yi,"$vkLogoHidden",i),A=()=>S(mi,"$volumeHidden",i),I=()=>S(Te,"$isLive$",i),N=()=>S(lt,"$settingsMenuVisible",i),H=()=>S(ut,"$isRewindableLive$",i),B=()=>S(De,"$isActiveLive$",i),z=()=>S(Ce,"$isAudioAvailable$",i),X=()=>S(It,"$muted$",i),le=()=>S(Me,"$volume$",i),q=()=>S(ft,"$isInteractiveTime$",i),ce=()=>S(mn,"$settingButtonRef$",i),J=()=>S(St,"$startedByKeyboard$",i),ve=()=>S(un,"$isFullscreen",i),se=()=>S(Ht,"$additionalButtons$",i),de=()=>S(so,"$autoplayNextToggleHidden",i),Le=()=>S(ni,"$crashed$",i),Se=()=>S(ui,"$settingsHidden",i),ie=()=>S(Xo,"$graphIsOpened$",i),Ne=()=>S(wo,"$adPosition",i),pe=()=>S(xi,"$adDuration",i),k=()=>S(ti,"$position$",i),qe=()=>S(Et,"$duration$",i),Re=h(e,"playerControlsWrapperRef",15,void 0),Z=h(e,"playerControlsRef",15,void 0),ne=h(e,"isAds",3,!1),He=h(e,"logoTargetUrl",3,""),Ze=h(e,"isOneVideoPlaylist",3,!1),ge=h(e,"customFullscreenSupported",3,!0),ee=_e(),ke=xo(),he=Rt(),Ue=ee.actions.internal.toggleMuted,Xe=ee.actions.internal.togglePlay,Ge=ee.actions.internal.pause,ct=ee.actions.internal.prevVideoClick,et=ee.actions.internal.nextVideoClick,Bt=ee.actions.internal.checkFullscreenSupport,rt=($n=ee.callbacks)==null?void 0:$n.onAudioDoesNotExistHint,Dt=(Br=ee.callbacks)==null?void 0:Br.onAudioDisabledHint,Qt=ee.playerPhase,Et=ee.state.duration$,ti=ee.state.positionWithScrubbing$,Wt=ee.state.playbackState$,Ce=ee.state.isAudioAvailable$,we=ee.state.isAudioDisabled,te=ee.state.isEnded$,Te=ee.state.isLive$,Me=ee.state.volume$,It=ee.state.muted$,De=ee.state.isActiveLive$,ut=ee.state.isRewindableLive$,$t=ee.ui.scrubbingInProgress,xe=ee.ui.mobileNotReportControlHidden$,{isActive$:ot,type$:Qe}=ke.pictureInPicture$,lt=ee.ui.settingsMenu.visible$,ii=ee.ui.settingsMenu.openedByBtnKeyboard$,ai=ee.ui.controls,{volume:mi,vkLogo:yi,autoplayNextToggle:so,pip:vo,settings:ui,chromecast:mt}=ee.ui.hiddenControls,Pi=ee.actions.internal.getVideoEpisodes(),Yt=ee.webApi.pictureInPictureApi,Tt=ee.state.chromecastState$,ni=ee.state.crashed$,Zt=ai.disabledControls$,St=ee.ui.startedByKeyboard$,Ye=ee.ui.currentGridType$,xi=ee.ads.duration,wo=ee.ads.position,Zo=ee.ads.playbackState,un=ee.ui.isFullscreen,kt=ee.ui.playerSize,Ht=ee.ui.additionalButtonsDeprecated$,K=ee.actions.internal.getVideoElement,Vt=ee.actions.internal.replayInteractive,oi=ee.state.isInteractive,ft=ee.state.isInteractiveTime$,At=ee.state.showInteractiveGraph,Gt=ee.state.showSeekToInteractive,pt=ee.state.showPlayPrevChapter,Oi=ee.state.showInteractiveTimeIndicator,Fi=ke.seekToInteractiveDisabledTooltip$,Xo=ke.graphIsOpened$,Lo=ee.ui.controlBlocks,ao=m(()=>Y(ee.state.playPrevChapterDisabledTooltip)),Ui=m(()=>Y(r())),ur=m(()=>s().has("EPISODE_BUTTON")),mo=m(()=>s().has("GRAPH_BUTTON")),go=m(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),Ni=m(()=>s().has("PLAY_BUTTON")),pn=m(()=>s().has("REPLAY_BUTTON")),Vo=m(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),pr=m(()=>l()===I0.PLAYING),fr=m(()=>d()==="paused"),Tr=m(()=>a()&&!ne()&&!oi),es=m(()=>!a()||ne()),ms=m(()=>e.showNextPrevButtons&&!ne()&&e.prevButtonActive),ts=m(()=>e.showNextPrevButtons&&!ne()&&e.nextButtonActive),So=m(()=>u().width>300),qn=m(()=>u().width>400),Ro=m(f),fn=m(()=>v()!==E0.NOT_AVAILABLE&&!(p()&&x()===1)&&!w()&&!oi&&!y()),An=m(()=>C()==="LiveWaitingStart"),vr=m(()=>!!Yt&&v()!==E0.CONNECTED&&!w()&&(x()===1&&n(An)||!n(An))&&!n(Ro)&&!oi&&!T()),Er=j(!1);Nt(()=>{let tt=Yt==null?void 0:Yt.info.isActive$.subscribe(Mt=>O(Er,Mt,!0));return()=>tt==null?void 0:tt.unsubscribe()});let Ir=m(()=>!n(Ro)&&no(E(),"s")),kr=m(()=>!e.logoHidden&&u().width>350&&!R()),Ar=m(()=>he.features.fullscreen&&Bt()&&!(p()&&x()===1)&&(oi?ge():!0)&&!n(Ro)&&!n(Er)),Gi=m(()=>!A()&&!n(Ro)),Pr=m(()=>(!I()||ne())&&u().width>260&&!n(Ro)&&!(he.features.interactiveHideTime&&oi)),Pn=m(()=>N()||e.showControls),vn=m(()=>!ne()&&!I()&&!!(Pi!=null&&Pi.length)&&n(So)&&!n(ur)&&!n(Ro)),ho=m(()=>!H()||!!B()),mr=m(()=>At&&no(E(),"m")),Mn=m(()=>!z()||X()||le()===0),gt=di({}),vi=di({}),Mr=k0(Fl,260),Qn=k0(Gu,260);We(()=>{u(),q(),Mr(K(),ai,gt,e.showControls),Qn(K(),Lo,vi,e.showControls)});let Lr=()=>ee.actions.internal.toggleChromecast();function Ln(){return yt(this,null,function*(){Yt!=null&&Yt.isActive()?yield Yt==null?void 0:Yt.exit():yield Yt==null?void 0:Yt.request()})}function Vn(){ta({isAudioDisabled:we,audioDisabledHintCallback:Dt,isAudioAvailable:z(),audioIsNotExistHintCallback:rt,isAds:ne()})&&Ue()}let Oo=j(""),No=(tt,Mt)=>{if(!tt){O(Oo,Y("tooltip_live"),!0);return}Mt&&Mt===I0.PAUSED&&O(Oo,Y("tooltip_play"),!0)};We(()=>{No(n(ho),l())});let mn=ae();We(()=>{ce()&&Ml(ce(),N(),ii)}),We(()=>{Qu(St,J(),gt.playButton)}),We(()=>{vi.bottom=Re()});var _o=W3(),Do=fe(_o);{var Jo=tt=>{var Mt=H3(),wi=fe(Mt);let $o;var Ho=P(wi,2);let Co;at(Ho,ht=>vi.topLeft=ht,()=>vi==null?void 0:vi.topLeft);var Xi=P(Ho,2);let Mi;var tn=_(Xi);Ci(tn,1,se,({iconUrl:ht,ariaLabel:pi,testId:yo,onClick:xn,tooltip:ye})=>ht,(ht,pi)=>{let yo=()=>n(pi).iconUrl,xn=()=>n(pi).ariaLabel,ye=()=>n(pi).testId,vt=()=>n(pi).onClick,li=()=>n(pi).tooltip,Si=m(()=>{var fi;return(fi=xn())!=null?fi:li()});Wv(ht,{get iconUrl(){return yo()},get ariaLabel(){return n(Si)},get testId(){return ye()},get onClick(){return vt()}})});var Fo=P(tn,2);{var To=ht=>{oc(ht,{get ref(){return gt.autoplayNextToggle},set ref(pi){gt.autoplayNextToggle=pi}})};V(Fo,ht=>{e.showAutoplayNext&&!Ze()&&!de()&&ht(To)})}var Ji=P(Fo,2);{var Hr=ht=>{Gd(ht,{isMobile:!0,click:Lr,get state(){return v()},get ref(){return gt.chromecast},set ref(pi){gt.chromecast=pi}})};V(Ji,ht=>{n(fn)&&ht(Hr)})}var Zn=P(Ji,2);{var Xn=ht=>{jv(ht,{click:Ln,get isPictureInPictureActive(){return p()},get ref(){return gt.pip},set ref(pi){gt.pip=pi}})};V(Zn,ht=>{n(vr)&&ht(Xn)})}var br=P(Zn,2);{var gs=ht=>{Ol(ht,{get ref$(){return mn}})};V(br,ht=>{Le()&&!Se()&&ht(gs)})}var Fr=P(br,2);{var is=ht=>{jd(ht,{get click(){return Ge},get targetUrl(){return He()},get logoClickable(){return e.logoClickable},get ref(){return gt.vkLogo},set ref(pi){gt.vkLogo=pi}})};V(Fr,ht=>{n(kr)&&ht(is)})}g(Xi),at(Xi,ht=>vi.topRight=ht,()=>vi==null?void 0:vi.topRight);var je=P(Xi,2);let Jt;var hi=_(je);{var yn=ht=>{let pi=m(()=>ct.bind(null,!0));Ha(ht,{get click(){return n(pi)},type:"prev",isMobile:!0,get ref(){return gt.prevButton},set ref(yo){gt.prevButton=yo}})};V(hi,ht=>{n(ms)&&ht(yn)})}var Uo=P(hi,2);{var Ur=ht=>{zl(ht,{get disabled(){return n(Ni)},get click(){return Xe},isMobile:!0,get isPlaying(){return n(pr)},get ref(){return gt.playButton},set ref(pi){gt.playButton=pi}})};V(Uo,ht=>{n(es)&&ht(Ur)})}var on=P(Uo,2);{var zr=ht=>{Ul(ht,{get disabled(){return n(pn)},get click(){return Xe},isMobile:!0,get ref(){return gt.replayButton},set ref(pi){gt.replayButton=pi}})};V(on,ht=>{n(Tr)&&ht(zr)})}var Ds=P(on,2);{var eo=ht=>{let pi=m(()=>et.bind(null,!0));Ha(ht,{get click(){return n(pi)},type:"next",isMobile:!0,get ref(){return gt.nextButton},set ref(yo){gt.nextButton=yo}})};V(Ds,ht=>{n(ts)&&ht(eo)})}g(je),at(je,ht=>vi.middle=ht,()=>vi==null?void 0:vi.middle);var Wr=P(je,2);{var na=ht=>{var pi=B3(),yo=fe(pi);{var xn=fi=>{var ei=O3();let Ei;ei.__click=[V3,Vo,e,ao];var wn=_(ei);let nn=m(()=>!e.showControls);ic(wn,{get hidden(){return n(nn)},get disabled(){return n(Vo)},get click(){return e.playPrevChapter},get ref(){return gt.playPrevChapterButton},set ref(Li){gt.playPrevChapterButton=Li}}),g(ei),D(Li=>Ei=re(ei,1,"wrapper-middle-left svelte-tg0ura",null,Ei,Li),[()=>({fullscreen:ve(),hidden:!e.showControls})]),b(fi,ei)};V(yo,fi=>{pt&&fi(xn)})}var ye=P(yo,2);{var vt=fi=>{var ei=N3();let Ei;var wn=_(ei);let nn=m(()=>!e.showControls&&!ie());rc(wn,{get hidden(){return n(nn)},get disabled(){return n(mo)},get click(){return Xo.toggle},get graphIsOpened(){return ie()},get ref(){return gt.interactiveGraphButton},set ref(Li){gt.interactiveGraphButton=Li}}),g(ei),D(Li=>Ei=re(ei,1,bd(pt?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-tg0ura",Ei,Li),[()=>({fullscreen:ve(),hidden:!e.showControls&&!ie()})]),b(fi,ei)};V(ye,fi=>{n(mr)&&fi(vt)})}var li=P(ye,2);{var Si=fi=>{var ei=D3();let Ei;ei.__click=[R3,go,e,Ui];var wn=_(ei);let nn=m(()=>!e.showControls);nc(wn,{get hidden(){return n(nn)},get disabled(){return n(go)},get click(){return e.seekToInteractive},get ref(){return gt.seekToInteractiveButton},set ref(Li){gt.seekToInteractiveButton=Li}}),g(ei),D(Li=>Ei=re(ei,1,"wrapper-middle-right svelte-tg0ura",null,Ei,Li),[()=>({fullscreen:ve(),hidden:!e.showControls})]),b(fi,ei)};V(li,fi=>{Gt&&fi(Si)})}b(ht,pi)};V(Wr,ht=>{oi&&!f()&&ht(na)})}D((ht,pi,yo,xn)=>{$o=re(wi,1,"overlay-mobile svelte-tg0ura",null,$o,ht),Co=re(Ho,1,"wrapper-top-left svelte-tg0ura",null,Co,pi),Mi=re(Xi,1,"wrapper-top-right svelte-tg0ura",null,Mi,yo),Jt=re(je,1,"wrapper-middle svelte-tg0ura",null,Jt,xn)},[()=>({hidden:!n(Pn)}),()=>({hidden:!e.showControls,fullscreen:ve()}),()=>({hidden:!e.showControls&&!w(),fullscreen:ve()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),b(tt,Mt)};V(Do,tt=>{ne()||tt(Jo)})}var gr=P(Do,2);{var Vr=tt=>{var Mt=U3(),wi=fe(Mt);let $o;var Ho=_(wi);Yu(Ho,{get muted(){return X()},click:Vn,get ref(){return gt.volume},set ref(To){gt.volume=To}}),g(wi);var Co=P(wi,2);{var Xi=To=>{var Ji=F3(),Hr=_(Ji);let Zn=m(()=>!n(fr));zl(Hr,{get disabled(){return n(Ni)},get click(){return Xe},isMobile:!0,get isPlaying(){return n(Zn)},get ref(){return gt.playButton},set ref(Xn){gt.playButton=Xn}}),g(Ji),b(To,Ji)};V(Co,To=>{n(fr)&&To(Xi)})}var Mi=P(Co,2);let tn;var Fo=_(Mi);ac(Fo,{get position(){return Ne()},get duration(){return pe()}}),g(Mi),D((To,Ji)=>{$o=re(wi,1,"wrapper-top-right svelte-tg0ura",null,$o,To),tn=re(Mi,1,"wrapper-bottom ads-timeline-mobile svelte-tg0ura",null,tn,Ji)},[()=>({fullscreen:ve()}),()=>({fullscreen:ve()})]),b(tt,Mt)};V(gr,tt=>{ne()&&d()!=="inactive"&&tt(Vr)})}var gn=P(gr,2);let zi;var hr=_(gn);let Rr;var Rn=_(hr),jn=_(Rn),Or=_(jn);{var Gn=tt=>{Mo(tt,{get disabled(){return n(pn)},get ref(){return gt.replayButton},set ref(Mt){gt.replayButton=Mt},children:(Mt,wi)=>{Ul(Mt,{get disabled(){return n(pn)},get click(){return Vt}})},$$slots:{default:!0}})};V(Or,tt=>{oi&&tt(Gn)})}var it=P(Or,2);{var gi=tt=>{Mo(tt,{get ref(){return gt.liveButton},set ref(Mt){gt.liveButton=Mt},children:(Mt,wi)=>{sc(Mt,{get isLiveActive(){return n(ho)},isMobile:!0,get ariaLabel(){return n(Oo)}})},$$slots:{default:!0}})};V(it,tt=>{!ne()&&I()&&tt(gi)})}var Di=P(it,2);{var Yi=tt=>{let Mt=m(()=>ne()?Ne():k()),wi=m(()=>ne()?pe():qe()),$o=m(()=>!e.showControls);Kd(tt,{get showDuration(){return n(qn)},get position(){return n(Mt)},get duration(){return n(wi)},isMobile:!0,get isHidden(){return n($o)},get ref(){return gt.time},set ref(Ho){gt.time=Ho}})};V(Di,tt=>{n(Pr)&&tt(Yi)})}var Bo=P(Di,2);let en=m(()=>!n(vn));Mo(Bo,{className:"w-max",get disabled(){return n(en)},get ref(){return gt.episodes},set ref(tt){gt.episodes=tt},children:(tt,Mt)=>{var wi=Fe(),$o=fe(wi);{var Ho=Co=>{var Xi=z3(),Mi=P(fe(Xi),2);Yd(Mi,{get position(){return k()},get duration(){return qe()},get timeCodes(){return Pi}}),b(Co,Xi)};V($o,Co=>{n(vn)&&Co(Ho)})}b(tt,wi)},$$slots:{default:!0}}),g(jn),at(jn,tt=>vi.bottomLeft=tt,()=>vi==null?void 0:vi.bottomLeft);var lo=P(jn,2),ki=_(lo);{var Zi=tt=>{Mo(tt,{get ref(){return gt.volume},set ref(Mt){gt.volume=Mt},children:(Mt,wi)=>{Yu(Mt,{get muted(){return n(Mn)},click:Vn})},$$slots:{default:!0}})};V(ki,tt=>{n(Gi)&&tt(Zi)})}var bo=P(ki,2);{var hn=tt=>{Mo(tt,{get ref(){return gt.settings},set ref(Mt){gt.settings=Mt},children:(Mt,wi)=>{Ol(Mt,{get ref$(){return mn}})},$$slots:{default:!0}})};V(bo,tt=>{n(Ir)&&tt(hn)})}var Yn=P(bo,2);{var Nr=tt=>{Mo(tt,{get ref(){return gt.fullscreen},set ref(Mt){gt.fullscreen=Mt},children:(Mt,wi)=>{Qd(Mt,{get click(){return e.toggleFullscreen},get isFullscreen(){return ve()}})},$$slots:{default:!0}})};V(Yn,tt=>{n(Ar)&&tt(Nr)})}g(lo),at(lo,tt=>vi.bottomRight=tt,()=>vi==null?void 0:vi.bottomRight),g(Rn),at(Rn,tt=>Z(tt),()=>Z());var Dr=P(Rn,2);let _n=m(()=>!e.showControls);Ua(Dr,{get isHidden(){return n(_n)},get isAds(){return ne()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return H()},get ref(){return gt.timeline},set ref(tt){gt.timeline=tt}}),g(hr),g(gn),at(gn,tt=>Re(tt),()=>Re());var bn=P(gn,2);{var _r=tt=>{Jd(tt,{get ref(){return gt.interactiveTimeIndicator},set ref(Mt){gt.interactiveTimeIndicator=Mt}})};V(bn,tt=>{Oi&&tt(_r)})}D((tt,Mt)=>{zi=re(gn,1,"wrapper-bottom mobile svelte-tg0ura",null,zi,tt),Rr=re(hr,1,"controls-wrapper svelte-tg0ura",null,Rr,Mt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:ve()})]),b(t,_o),U(),o()}dt(["click"]);function lc(t,e){F(e,!0);let[i,o]=Be(),r=()=>S(T,"$isMobile",i),s=h(e,"bottomNoSmooth",3,!1),l=h(e,"playerControlsWrapperRef",15,void 0),d=h(e,"playerControlsRef",15,void 0),a=h(e,"isAds",3,!1),u=h(e,"logoTargetUrl",3,""),f=h(e,"showAutoplayNext",3,!1),v=h(e,"isOneVideoPlaylist",3,!1),p=h(e,"customFullscreenSupported",3,!0),x=h(e,"endScreenShown",3,!1),w=h(e,"onDisabledPlayPrevChapterClick",3,A0),y=h(e,"onDisabledSeekToInteractiveClick",3,A0),T=_e().ui.isMobile,E=j(!1);Nt(()=>{let N=setTimeout(()=>O(E,!0),0);return()=>clearTimeout(N)});var R=Fe(),A=fe(R);{var I=N=>{var H=Fe(),B=fe(H);{var z=le=>{Gv(le,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return v()},get customFullscreenSupported(){return p()},get endScreenShown(){return x()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return y()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(q){l(q)},get playerControlsRef(){return d()},set playerControlsRef(q){d(q)}})},X=le=>{zv(le,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get isOneVideoPlaylist(){return v()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return p()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(q){l(q)},get playerControlsRef(){return d()},set playerControlsRef(q){d(q)}})};V(B,le=>{r()?le(z):le(X,!1)})}b(N,H)};V(A,N=>{n(E)&&N(I)})}b(t,R),U(),o()}var q3=Ie('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"></path></g><defs><filter id="a" width="43.996" height="49.5" x="2.5" y="0" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_100684"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_100684" result="shape"></feBlend></filter></defs></svg>');function Yv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=q3();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}function Zv(t,e){let i=h(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);Yv(t,{get style(){return n(o)}})}var Q3=Ie('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22" clip-rule="evenodd"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="45" x="-1.5" y="1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104204"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104204" result="shape"></feBlend></filter></defs></svg>');function Xv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Q3();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}var j3=Ie('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="51" x="-1.5" y="-1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104293"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104293" result="shape"></feBlend></filter></defs></svg>');function Jv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=j3();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}function Zu(t,e){let i=h(e,"isOff",3,!1);var o=Fe(),r=fe(o);{var s=d=>{Jv(d,{})},l=d=>{Xv(d,{})};V(r,d=>{i()?d(s):d(l,!1)})}b(t,o)}var G3=Ie('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"></path></g><defs><filter id="a" width="40.098" height="27.785" x="3.402" y="10.105" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_106627"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_106627" result="shape"></feBlend></filter></defs></svg>');function em(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=G3();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}function tm(t,e){let i=h(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);em(t,{get style(){return n(o)}})}var Y3=Ie('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"></path></g><defs><filter id="a" width="37" height="37" x="5.5" y="5.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2340_106922"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2340_106922" result="shape"></feBlend></filter></defs></svg>');function im(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Y3();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),b(t,o)}function om(t,e){let i=h(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);im(t,{get style(){return n(o)}})}var Z3=M('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),X3=M('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),J3=M("<div><!></div>"),ex={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;
|
|
268
276
|
animation: svelte-1ad3n06-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box;}.hot-key-helpers-container.svelte-1ad3n06 > div:where(.svelte-1ad3n06) {width:48px;height:48px;display:flex;justify-content:center;align-items:center;}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-off-icon"],
|
|
269
277
|
.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-max-icon"] {transform:scale(2);}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="replay-icon"],
|
|
270
278
|
.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
|
|
@@ -279,23 +287,23 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},l1=mb;var w
|
|
|
279
287
|
@keyframes svelte-1ad3n06-fadeOut {
|
|
280
288
|
0% {opacity:1;}
|
|
281
289
|
100% {opacity:0;}
|
|
282
|
-
}`};function
|
|
283
|
-
/*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function
|
|
290
|
+
}`};function nm(t,e){F(e,!0),W(t,ex);let[i,o]=Be(),r=()=>S(e.data,"$data",i),s=_e(),{features:l}=Rt(),d=s.ui.t,a=m(()=>!r()),u=m(()=>{var T;return((T=r())==null?void 0:T.type)==="BACKWARD_SEEK"}),f=m(()=>{var T;return((T=r())==null?void 0:T.type)==="FORWARD_SEEK"}),v=m(()=>{var T;return(T=r())==null?void 0:T.type}),p=m(()=>{var T,E;return(T=r())!=null&&T.t?d(r().t.key,{value:r().t.value||""}):(E=r())==null?void 0:E.text});var x=J3();let w;var y=_(x);{var C=T=>{var E=X3(),R=fe(E),A=_(R);{var I=Z=>{let ne=m(()=>n(v)==="FORWARD_SEEK");Zv(Z,{get reversed(){return n(ne)}})};V(A,Z=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(n(v))&&Z(I)})}var N=P(A,2);{var H=Z=>{Rs(Z,{})};V(N,Z=>{n(v)==="PAUSE"&&!l.playbackStatusShow&&Z(H)})}var B=P(N,2);{var z=Z=>{cr(Z,{})};V(B,Z=>{n(v)==="PLAY"&&!l.playbackStatusShow&&Z(z)})}var X=P(B,2);{var le=Z=>{tc(Z,{})};V(X,Z=>{n(v)==="REPLAY"&&!l.playbackStatusShow&&Z(le)})}var q=P(X,2);{var ce=Z=>{Zu(Z,{isOff:!0})};V(q,Z=>{n(v)==="SUBTITLES_OFF"&&Z(ce)})}var J=P(q,2);{var ve=Z=>{Zu(Z,{})};V(J,Z=>{n(v)==="SUBTITLES_ON"&&Z(ve)})}var se=P(J,2);{var de=Z=>{let ne=m(()=>n(v)==="RATE_UP");tm(Z,{get reversed(){return n(ne)}})};V(se,Z=>{["RATE_DOWN","RATE_UP"].includes(n(v))&&Z(de)})}var Le=P(se,2);{var Se=Z=>{let ne=m(()=>n(v)==="EPISODE_NEXT");om(Z,{get reversed(){return n(ne)}})};V(Le,Z=>{["EPISODE_PREV","EPISODE_NEXT"].includes(n(v))&&Z(Se)})}var ie=P(Le,2);{var Ne=Z=>{ia(Z,{volume:0})};V(ie,Z=>{n(v)==="MUTE"&&Z(Ne)})}var pe=P(ie,2);{var k=Z=>{ia(Z,{volume:1})};V(pe,Z=>{n(v)==="VOLUME"&&Z(k)})}g(R);var qe=P(R,2);{var Re=Z=>{var ne=Z3(),He=_(ne,!0);g(ne),D(()=>me(He,n(p))),b(Z,ne)};V(qe,Z=>{n(p)&&Z(Re)})}b(T,E)};V(y,T=>{!n(a)&&n(v)&&T(C)})}g(x),D(T=>w=re(x,1,"hot-key-helpers-container svelte-1ad3n06",null,w,T),[()=>({hidden:n(a),"hot-key-helpers-container--left":n(u),"hot-key-helpers-container--right":n(f)})]),b(t,x),U(),o()}var tx=Ie('<svg><!><path fill="currentColor" fill-opacity=".72" fill-rule="evenodd" d="M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272" clip-rule="evenodd"></path></svg>');function rm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=tx();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var ix=Ie('<svg><!><path fill="currentColor" d="m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"></path></svg>');function sm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=ix();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}function oa(t,e){F(e,!0);let i=h(e,"direction",3,"left"),o=h(e,"useBtnColor",3,!1),r=m(()=>["up","down"].includes(i())),s=m(()=>["right","down"].includes(i())),l=m(()=>(()=>{let v="";return n(s)&&(v+="transform: rotate(180deg);"),o()&&(v+="color: var(--btn-color, #fff);"),v.length?v:void 0})());var d=Fe(),a=fe(d);{var u=v=>{let p=m(()=>n(s)?"chevron-icon--down":"chevron-icon--up");rm(v,{get style(){return n(l)},get"data-testid"(){return n(p)}})},f=v=>{let p=m(()=>n(s)?"chevron-icon--right":"chevron-icon--left");sm(v,{get style(){return n(l)},get"data-testid"(){return n(p)}})};V(a,v=>{n(r)?v(u):v(f,!1)})}b(t,d),U()}var ox=(t,e,i,o,r,s)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":r();break;case"ArrowRight":s();break}},nx=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},rx=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>'),sx={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 dc(t,e){F(e,!0),W(t,sx);let i=h(e,"isShifted",3,!1),o=_e(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),s=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},a=()=>{o.actions.internal.startCameraManualRotation(-1,0)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),f=Y("aria_label_spherical_control");var v=rx();let p;v.__keydown=[ox,r,s,l,a,d],v.__keyup=[nx,r,u];var x=_(v),w=_(x),y=_(w);y.__mousedown=s,y.__mouseup=u;var C=_(y);oa(C,{direction:"up",useBtnColor:!0}),g(y);var T=P(y,2);T.__mousedown=d,T.__mouseup=u;var E=_(T);oa(E,{direction:"up",useBtnColor:!0}),g(T),g(w);var R=P(w,2),A=_(R);A.__mousedown=a,A.__mouseup=u;var I=_(A);oa(I,{direction:"up",useBtnColor:!0}),g(A);var N=P(A,2);N.__mousedown=l,N.__mouseup=u;var H=_(N);oa(H,{direction:"up",useBtnColor:!0}),g(N),g(R),g(x),g(v),D(B=>{p=re(v,1,"immersive-controls svelte-1yzc86r",null,p,B),Ke(v,"aria-label",f)},[()=>({"m-shifted":i()})]),Ct("mouseleave",y,u),Ct("mouseleave",T,u),Ct("mouseleave",A,u),Ct("mouseleave",N,u),b(t,v),U()}dt(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as M0,Subscription as ax,filterChanged as lx,filter as dx}from"@vkontakte/videoplayer-shared/es2015";var P0=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var Xu=class{constructor(){this.flickeringTimeout=P0(1e3);this.subscriptions=new ax;this.isAuto=!1;this.isLive=!1;this.captions$=new M0([]);this.captionsPrepared$=new M0([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(dx(()=>this.isEnabled()),lx()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let i=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&i.push([{value:String(e[0].value),timeAppeared:null}]),i.push(e.reduce((r,{type:s,value:l},d)=>(o&&!d||(s==="timestamp"?r.push({timeAppeared:Number(l),value:""}):r.length===0?r.push({value:String(l)}):r[r.length-1].value=String(l)),r),[])),this.captionsPrepared$.next(i)}};var cx=M('<span class="caption-line svelte-1i1hgvc"><span class="caption-segment svelte-1i1hgvc"> </span></span>'),ux=M('<span class="caption-line svelte-1i1hgvc"><span class="caption-segment svelte-1i1hgvc"></span></span>'),px=M('<span class="caption-line svelte-1i1hgvc"><span class="caption-segment svelte-1i1hgvc"> </span></span>'),fx=M('<div><span class="caption svelte-1i1hgvc"><!></span></div>'),vx=M("<div><!></div>"),mx={hash:"svelte-1i1hgvc",code:`.subtitles-container.svelte-1i1hgvc {position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration);}.subtitles-container.shifted.svelte-1i1hgvc {transform:translateY(calc(var(--controls-height) * -1));}.subtitles-container.preview-track-active.svelte-1i1hgvc {transform:translateY(calc(var(--preview-track-height) * -1));}.preview-track-active.svelte-1i1hgvc .subtitles-caption:where(.svelte-1i1hgvc) {bottom:var(--preview-track-controls-top-offset);}.subtitles-caption.svelte-1i1hgvc {position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center;}.subtitles-caption.mobile.svelte-1i1hgvc {bottom:8%;}.subtitles-container.auto.svelte-1i1hgvc .subtitles-caption:where(.svelte-1i1hgvc) {left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin);}.caption.svelte-1i1hgvc {display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4);}.subtitles-container.auto.svelte-1i1hgvc .caption:where(.svelte-1i1hgvc) {width:100%;}.caption-line.svelte-1i1hgvc {display:block;text-align:center;}.subtitles-container.auto.svelte-1i1hgvc .caption-line:where(.svelte-1i1hgvc) {text-align:left;}.caption-segment.svelte-1i1hgvc {display:inline-block;line-height:1.2;font-size:13px;
|
|
291
|
+
/*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function Wa(t,e){F(e,!0),W(t,mx);let[i,o]=Be(),r=()=>S(p,"$currentSubtitle$",i),s=()=>S(w,"$isLive$",i),l=()=>S(y,"$isFullscreen",i),d=()=>S(C,"$previewTrackActive",i),a=()=>S(x,"$isAutoSubtitleCaptionVisible$",i),u=h(e,"isMobile",3,!1),f=_e(),v=Rt(),p=f.state.currentSubtitle$,x=f.state.isAutoSubtitleCaptionVisible$,w=f.state.isLive$,y=f.ui.isFullscreen,C=f.ui.previewTrackActive,T=m(()=>!!r().isAuto),E=m(()=>!!s()),R=m(()=>e.playerSize.width*.02),A=m(()=>u()&&!l()||n(R)<=v.minSubtitlesFontSize?v.minSubtitlesFontSize:n(R)),I=j(null);We(()=>{var q,ce,J;(q=n(I))==null||q.setIsAuto(n(T)),(ce=n(I))==null||ce.setIsLive(n(E)),(J=n(I))==null||J.setCaptions(e.captions)});let N=j(di([[]]));Nt(()=>{O(I,new Xu().subscribe(),!0);let q=n(I).captionsPrepared$.subscribe(ce=>{O(N,ce,!0)});return()=>{var ce;(ce=n(I))==null||ce.destroy(),q.unsubscribe()}}),Nt(()=>{if(n(T)){let q=window.setTimeout(()=>{x.set(!1)},v.autoSubtitlesTimeout);return()=>{window.clearTimeout(q)}}else x.set(!1)});let H=m(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var B=vx();let z;var X=_(B);{var le=q=>{var ce=fx();let J;var ve=_(ce),se=_(ve);{var de=Se=>{var ie=cx(),Ne=_(ie),pe=_(Ne,!0);g(Ne),g(ie),D(k=>{var qe;Je(Ne,`font-size: ${(qe=n(A))!=null?qe:""}px`),me(pe,k)},[()=>Y("subtitles_auto_caption")]),b(Se,ie)},Le=(Se,ie)=>{{var Ne=k=>{var qe=Fe(),Re=fe(qe);Ci(Re,17,()=>n(N),hd,(Z,ne)=>{var He=ux(),Ze=_(He);Ci(Ze,21,()=>n(ne),({value:ge,timeAppeared:ee})=>ee,(ge,ee)=>{let ke=()=>n(ee).value,he=()=>n(ee).timeAppeared;var Ue=Fe(),Xe=fe(Ue);{var Ge=ct=>{var et=ls();D(()=>me(et,ke())),b(ct,et)};V(Xe,ct=>{(!he()||he()<=e.position)&&ct(Ge)})}b(ge,Ue)}),g(Ze),g(He),D(()=>{var ge;return Je(Ze,`font-size: ${(ge=n(A))!=null?ge:""}px`)}),b(Z,He)}),b(k,qe)},pe=k=>{var qe=Fe(),Re=fe(qe);Ci(Re,17,()=>e.captions,({value:Z})=>Z,(Z,ne)=>{let He=()=>n(ne).value;var Ze=px(),ge=_(Ze),ee=_(ge,!0);g(ge),g(Ze),D(()=>{var ke;Je(ge,`font-size: ${(ke=n(A))!=null?ke:""}px`),me(ee,He())}),b(Z,Ze)}),b(k,qe)};V(Se,k=>{var qe;n(T)&&((qe=n(N))!=null&&qe.length)?k(Ne):k(pe,!1)},ie)}};V(se,Se=>{n(T)&&a()?Se(de):Se(Le,!1)})}g(ve),g(ce),D(Se=>{var ie;J=re(ce,1,"subtitles-caption svelte-1i1hgvc",null,J,Se),Je(ce,`--subtitles-caption-margin: ${(ie=n(H))!=null?ie:""}%`)},[()=>({mobile:u()})]),b(q,ce)};V(X,q=>{var ce;(e.captions.length||(ce=n(N))!=null&&ce.length)&&q(le)})}g(B),D(q=>z=re(B,1,"subtitles-container svelte-1i1hgvc",null,z,q),[()=>({shifted:e.shifted,"preview-track-active":d(),auto:n(T)&&!n(E)&&!a()})]),b(t,B),U(),o()}var gx=M('<div class="text svelte-raurnb"> </div>'),hx=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>'),_x={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 cc(t,e){F(e,!0),W(t,_x);let i=Rt();var o=hx();let r;var s=P(_(o),2);{var l=d=>{var a=gx(),u=_(a);g(a),D(()=>{var f;return me(u,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(f=e.chromecastDeviceName)!=null?f:""}`)}),b(d,a)};V(s,d=>{e.chromecastDeviceName&&d(l)})}g(o),D(d=>{r=re(o,1,"wrapper svelte-raurnb",null,r,d),Je(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),b(t,o),U()}var bx=Ie('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657s2.315 1.158 4.357-.327c-.007.007 5.357-4.515 11.408-4.515z"></path></svg>');function am(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=bx();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200","aria-hidden":"true","data-testid":"error-icon",viewBox:"460 190 130 90",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var $x=M('<div class="container svelte-13zpvm8"><!></div>'),yx={hash:"svelte-13zpvm8",code:".container.svelte-13zpvm8 {position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center;}"};function Ka(t){W(t,yx);var e=$x(),i=_(e);am(i,{}),g(e),b(t,e)}var xx=M('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),wx=M("<div><!></div>"),Sx={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,
|
|
284
292
|
visibility 0.2s;will-change:opacity;}.container.hidden.svelte-1ciju45 {opacity:0;visibility:hidden;}.container.bgCover.svelte-1ciju45 {background-size:cover;}.playButton.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;}.playButtonBackground.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s,
|
|
285
|
-
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
|
|
293
|
+
transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1ciju45:hover .playButtonBackground:where(.svelte-1ciju45) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1ciju45 svg {transform:scale(2);}`};function qa(t,e){F(e,!0),W(t,Sx);let i=h(e,"iconVisible",3,!0),o=_e(),r=Rt(),s=o.ui.startedByKeyboard$,l=Y("tooltip_play"),d=x=>{var y;let w=x.code;["Enter","Space"].includes(w)&&(x.stopPropagation(),x.preventDefault(),s.set(!0),(y=e.startVideo)==null||y.call(e))},a=x=>{var w,y;x.stopPropagation(),(w=e.startVideo)==null||w.call(e),(y=e.onClick)==null||y.call(e,x)};var u=wx();let f;u.__click=a,u.__contextmenu=function(...x){var w;(w=e.onContextMenu)==null||w.apply(this,x)};var v=_(u);{var p=x=>{var w=xx();w.__keydown=d;var y=P(_(w),2);cr(y,{}),g(w),D(()=>Ke(w,"aria-label",l)),b(x,w)};V(v,x=>{i()&&x(p)})}return g(u),D(x=>{f=re(u,1,"container svelte-1ciju45",null,f,x),Je(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:r.features.previewNoEmptySpace})]),b(t,u),U({handlePressKey:d,handleClick:a})}dt(["click","contextmenu","keydown"]);var Cx=M('<div data-testid="video_title"><span> </span></div>'),Tx={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(
|
|
286
294
|
0deg,
|
|
287
295
|
rgba(0, 0, 0, 0) 0%,
|
|
288
296
|
rgba(0, 0, 0, 0.02) 19%,
|
|
289
297
|
rgba(0, 0, 0, 0.1) 34%,
|
|
290
298
|
rgba(0, 0, 0, 0.4) 60%,
|
|
291
299
|
rgba(0, 0, 0, 0.6) 100%
|
|
292
|
-
);}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function
|
|
300
|
+
);}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function lm(t,e){F(e,!0),W(t,Tx);let i=h(e,"title",3,""),o=h(e,"isHidden",3,!1),r=h(e,"ref",15),s=j(void 0);Nt(()=>{var v;requestAnimationFrame(()=>{var p;(p=e.onVisibilityChanged)==null||p.call(e,!0)});function f(p){var x;p.propertyName==="transform"&&((x=e.onVisibilityChanged)==null||x.call(e,!o()))}return(v=n(s))==null||v.addEventListener("transitionend",f),()=>{var p;return(p=n(s))==null?void 0:p.removeEventListener("transitionend",f)}});var l=Cx();let d;var a=_(l),u=_(a,!0);g(a),at(a,f=>r(f),()=>r()),g(l),at(l,f=>O(s,f),()=>n(s)),D(f=>{d=re(l,1,"title svelte-14hk510",null,d,f),me(u,i())},[()=>({hidden:o()})]),b(t,l),U()}import{throttleFn as Lx}from"@vkontakte/videoplayer-shared/es2015";var Ex=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),Ix=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),kx=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),Ax=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div>'),Px=M("<div><!> <!> <!> <!></div>"),Mx={hash:"svelte-gt98rn",code:".timer__container.svelte-gt98rn {display:flex;align-items:flex-start;justify-content:center;}.cell.svelte-gt98rn {display:flex;flex-direction:column;align-items:center;}.cell__value.svelte-gt98rn {font-size:48px;line-height:1.2;font-weight:600;}.small.svelte-gt98rn .cell__value:where(.svelte-gt98rn) {font-size:24px;}.cell__unit.svelte-gt98rn {font-size:14px;line-height:1.2;font-weight:400;}.small.svelte-gt98rn .cell__unit:where(.svelte-gt98rn) {font-size:12px;}.timer__points.svelte-gt98rn {display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600;}.small.svelte-gt98rn .timer__points:where(.svelte-gt98rn) {font-size:20px;}"};function dm(t,e){F(e,!0),W(t,Mx);let i=j(""),o=j(""),r=j(""),s=j(""),l,d=32,a=d/2,u=B=>String(B).padStart(2,"0"),f=B=>Math.max(B.length,1),v=B=>`${(e.isSmallSize?a:d)*f(B)}px`,p=B=>{let z=Math.floor(B/86400);z&&(B-=z*86400,O(i,u(z),!0));let X=Math.floor(B/3600);O(o,u(X),!0);let le=Math.floor(B/60)%60;O(r,u(le),!0);let q=B%60;O(s,u(q),!0)},x=()=>{let B=Math.floor(Date.now()/1e3),z=e.startTime-B;p(z),z>=1?l=requestAnimationFrame(x):e.onTimerOver()};Nt(()=>{l=requestAnimationFrame(x)}),ln(()=>{cancelAnimationFrame(l)});var w=Px();let y;var C=_(w);{var T=B=>{var z=Ex(),X=fe(z);let le;var q=_(X),ce=_(q,!0);g(q);var J=P(q,2),ve=_(J,!0);g(J),g(X);var se=P(X,2),de=_(se,!0);g(se),D((Le,Se,ie)=>{le=Je(X,"",le,{width:Le}),me(ce,n(i)),me(ve,Se),me(de,ie)},[()=>v(n(i)),()=>Y("waiting_live_day_value"),()=>Y("waiting_live_colon")]),b(B,z)};V(C,B=>{n(i)&&B(T)})}var E=P(C,2);{var R=B=>{var z=Ix(),X=fe(z);let le;var q=_(X),ce=_(q,!0);g(q);var J=P(q,2),ve=_(J,!0);g(J),g(X);var se=P(X,2),de=_(se,!0);g(se),D((Le,Se,ie)=>{le=Je(X,"",le,{width:Le}),me(ce,n(o)),me(ve,Se),me(de,ie)},[()=>v(n(o)),()=>Y("waiting_live_hour_value"),()=>Y("waiting_live_colon")]),b(B,z)};V(E,B=>{n(o)&&B(R)})}var A=P(E,2);{var I=B=>{var z=kx(),X=fe(z);let le;var q=_(X),ce=_(q,!0);g(q);var J=P(q,2),ve=_(J,!0);g(J),g(X);var se=P(X,2),de=_(se,!0);g(se),D((Le,Se,ie)=>{le=Je(X,"",le,{width:Le}),me(ce,n(r)),me(ve,Se),me(de,ie)},[()=>v(n(r)),()=>Y("waiting_live_minute_value"),()=>Y("waiting_live_colon")]),b(B,z)};V(A,B=>{n(r)&&B(I)})}var N=P(A,2);{var H=B=>{var z=Ax();let X;var le=_(z),q=_(le,!0);g(le);var ce=P(le,2),J=_(ce,!0);g(ce),g(z),D((ve,se)=>{X=Je(z,"",X,{width:ve}),me(q,n(s)),me(J,se)},[()=>v(n(s)),()=>Y("waiting_live_second_value")]),b(B,z)};V(N,B=>{n(s)&&B(H)})}g(w),D(B=>y=re(w,1,"timer__container svelte-gt98rn",null,y,B),[()=>({small:e.isSmallSize})]),b(t,w),U()}var Vx=M('<div class="waiting svelte-17m8dcd"><span> </span></div>'),Rx=M('<div class="upcoming-timer timer svelte-17m8dcd"><span> </span> <!></div>'),Ox=M('<div class="waiting-container svelte-17m8dcd"><!></div>'),Nx={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 uc(t,e){F(e,!0),W(t,Nx);let i=h(e,"startTime",3,0),o=m(()=>i()<Math.floor(Date.now()/1e3)),r=j(void 0),s=j(void 0),l=0,d=j(void 0),a=j(void 0),u=m(()=>{var C,T;return((C=n(d))!=null?C:1/0)<=509||((T=n(a))!=null?T:1/0)<=320}),f=m(()=>{var C,T;return!n(u)&&(((C=n(d))!=null?C:1/0)<=699||((T=n(a))!=null?T:1/0)<=599)}),v=e.onUpcomingLiveViewStateChanged?Lx(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let C={type:n(o)?"expired":"default",size:n(u)?"s":n(f)?"m":"l"},T=n(o)?n(r):n(s);e.onUpcomingLiveViewStateChanged(C,T)})},300):void 0;We(()=>{n(a),n(d),n(o),v==null||v()}),ln(()=>{if(cancelAnimationFrame(l),v==null||v.cancel(),e.onUpcomingLiveViewStateChanged){let C={type:n(o)?"expired":"default",size:n(u)?"s":n(f)?"m":"l"};e.onUpcomingLiveViewStateChanged(C)}});var p=Ox();p.__contextmenu=function(...C){var T;(T=e.onContextMenu)==null||T.apply(this,C)},p.__click=function(...C){var T;(T=e.onClick)==null||T.apply(this,C)};var x=_(p);{var w=C=>{var T=Vx(),E=_(T);let R;var A=_(E,!0);g(E),g(T),at(T,I=>O(r,I),()=>n(r)),D((I,N)=>{R=re(E,1,"waiting__title svelte-17m8dcd",null,R,I),me(A,N)},[()=>({medium:n(f),small:n(u)}),()=>Y("waiting_live_upcoming_title")]),b(C,T)},y=C=>{var T=Rx(),E=_(T);let R;var A=_(E,!0);g(E);var I=P(E,2);let N=m(()=>n(u)||n(f)),H=m(()=>i()||0);dm(I,{get isSmallSize(){return n(N)},get startTime(){return n(H)},onTimerOver:()=>O(o,!0)}),g(T),at(T,B=>O(s,B),()=>n(s)),D((B,z)=>{R=re(E,1,"timer__title svelte-17m8dcd",null,R,B),me(A,z)},[()=>({medium:n(f),small:n(u)}),()=>Y("waiting_live_timer_title")]),b(C,T)};V(x,C=>{n(o)?C(w):C(y,!1)})}g(p),D(()=>Je(p,`background-image: url(${e.thumbUrl})`)),kn(p,"clientWidth",C=>O(d,C)),kn(p,"clientHeight",C=>O(a,C)),b(t,p),U()}dt(["contextmenu","click"]);var Dx=M('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),Bx={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 Qa(t,e){F(e,!0),W(t,Bx);let i=h(e,"thumbUrl",3,""),o={recover:Y("waiting_live_recover_title"),record:Y("waiting_record_title")},r=m(()=>o[e.kind]||"");var s=Dx();s.__contextmenu=function(...f){var v;(v=e.onContextMenu)==null||v.apply(this,f)},s.__click=function(...f){var v;(v=e.onClick)==null||v.apply(this,f)};var l=_(s),d=_(l);Oa(d,{style:"position: static; transform: translate(0, 0)"});var a=P(d,2),u=_(a,!0);g(a),g(l),g(s),D(()=>{Je(s,`background-image: url('${i()}')`),me(u,n(r))}),b(t,s),U()}dt(["contextmenu","click"]);var Hx=Ie('<svg><!><path fill="var(--btn-color, #fff)" d="M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"></path></svg>');function cm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Hx();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var Fx=M('<div class="select-icon svelte-124aexk"><!></div>'),Ux={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function pc(t){W(t,Ux);var e=Fx(),i=_(e);cm(i,{}),g(e),b(t,e)}var zx=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},Wx=(t,e)=>{Ll(t,()=>e.item.selectItem(e.item.value))},Kx=M("<p> </p>"),qx=M('<p class="sublabel svelte-1t7rx2m"> </p>'),Qx=M('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),jx={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;
|
|
293
301
|
|
|
294
302
|
/**
|
|
295
303
|
* \u0415\u0441\u043B\u0438 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D(\u0438\u043A\u043E\u043D\u043A\u0430 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442), \u0442\u043E \u0434\u043E\u043B\u0436\u043D\u044B \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043F\u0443\u0441\u0442\u043E\u0435 \u043C\u0435\u0441\u0442\u043E
|
|
296
304
|
* \u0447\u0442\u043E\u0431\u044B \u0432\u0441\u0435 \u043B\u0435\u0439\u0431\u043B\u044B \u043D\u0430\u0447\u0438\u043D\u0430\u043B\u0438\u0441\u044C \u0441 \u043E\u0434\u043D\u043E\u0433\u043E \u043E\u0442\u0441\u0442\u0443\u043F\u0430.
|
|
297
305
|
*/margin-left:calc(var(--icon-padding) + var(--select-icon-width));}.label.svelte-1t7rx2m,
|
|
298
|
-
.sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function
|
|
306
|
+
.sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function um(t,e){F(e,!0),W(t,jx);let i=h(e,"isMobile",3,!1);var o=Qx();let r;o.__click=[zx,e],o.__keydown=[Wx,e];var s=_(o);{var l=w=>{pc(w,{})};V(s,w=>{e.item.selected&&w(l)})}var d=P(s,2);let a;var u=_(d);{var f=w=>{var y=Fe(),C=fe(y);Vi(C,()=>e.item.valueComponent,(T,E)=>{E(T,Is(()=>{var R;return(R=e.item.valueComponentParams)!=null?R:{}}))}),b(w,y)},v=w=>{var y=Kx();let C;var T=_(y,!0);g(y),D(E=>{var R;C=re(y,1,"label svelte-1t7rx2m",null,C,E),me(T,(R=e.item.label)!=null?R:e.item.value)},[()=>({mobile:i()})]),b(w,y)};V(u,w=>{e.item.valueComponent?w(f):w(v,!1)})}var p=P(u,2);{var x=w=>{var y=qx(),C=_(y,!0);g(y),D(()=>me(C,e.item.sublabel)),b(w,y)};V(p,w=>{e.item.sublabel&&w(x)})}g(d),g(o),D((w,y,C)=>{r=re(o,1,"item",null,r,w),Ke(o,"data-value",e.item.value),Ke(o,"aria-label",y),Ke(o,"data-testid",e.item.dataTestid),a=re(d,1,"menu-item-value svelte-1t7rx2m",null,a,C),Ke(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,y;return(y=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?y:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),b(t,o),U()}dt(["click","keydown"]);var Gx=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function pm(t,e){F(e,!0);let i=h(e,"isMobile",3,!1),o=h(e,"refMenuItems",15),r=m(()=>()=>e.openSubMenuList(e.item.children)),s=m(()=>y=>Au(y,n(r)));var l=Gx();let d;l.__click=function(...y){var C;(C=n(r))==null||C.apply(this,y)},l.__keydown=function(...y){var C;(C=n(s))==null||C.apply(this,y)};var a=_(l);{var u=y=>{pc(y,{})};V(a,y=>{e.item.selected&&y(u)})}var f=P(a,2);let v;var p=_(f);{var x=y=>{var C=Fe();let T=m(()=>e.item.valueComponent);var E=fe(C);Vi(E,()=>n(T),(R,A)=>{A(R,Is(()=>{var I;return(I=e.item.valueComponentParams)!=null?I:{}}))}),b(y,C)},w=y=>{var C=ls();D(()=>me(C,e.item.label)),b(y,C)};V(p,y=>{e.item.valueComponent?y(x):y(w,!1)})}g(f),g(l),at(l,y=>o(o()[e.item.id]=y,!0),()=>{var y;return(y=o())==null?void 0:y[e.item.id]}),D((y,C)=>{var T;d=re(l,1,"item",null,d,y),Ke(l,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),Ke(l,"data-testid",e.item.id),v=re(f,1,"menu-item-value",null,v,C)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,l),U()}dt(["click","keydown"]);var Jr={"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 Zx=(t,e)=>{Y1(t,e.returnFromSubMenu,e.closeSettingsMenu)},Xx=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},Jx=(t,e)=>{Vd(t)&&(Cr(t),e.returnFromSubMenu())},e5=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>'),t5={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
|
|
299
307
|
/*\u0414\u043B\u044F \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u0438 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0433\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430 \u0441\u043F\u0438\u0441\u043A\u0430*/--edge-item-padding-vertical-mobile: calc(6px + var(--item-padding-vertical-mobile));--edge-item-padding-vertical: calc(8px + var(--item-padding-vertical));}.sub-menu.svelte-7dfsuh .item.mobile {padding:var(--item-padding-vertical-mobile) 17px;line-height:var(--item-label-line-height);font-size:14px;}.sub-menu.svelte-7dfsuh {
|
|
300
308
|
/**
|
|
301
309
|
* \u0422\u0430\u043A \u043A\u0430\u043A \u0443 \u043D\u0430\u0441 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0441\u0442\u0438\u043A\u0438, \u043D\u0443\u0436\u043D\u043E \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0430\u0434\u0434\u0438\u043D\u0433 \u0441 \u0432\u044B\u0441\u043E\u0442\u0443 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0430.
|
|
@@ -305,14 +313,14 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},l1=mb;var w
|
|
|
305
313
|
var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
|
|
306
314
|
1px
|
|
307
315
|
);}.sub-menu.svelte-7dfsuh .items:where(.svelte-7dfsuh) .item.header:where(.svelte-7dfsuh) {position:absolute;top:0;left:0;right:0;min-width:max-content;display:flex;justify-content:space-between;border-bottom:var(--divider-border);}.header.svelte-7dfsuh .title:where(.svelte-7dfsuh) {margin-left:8px;}.sub-menu.svelte-7dfsuh .item {padding:var(--item-padding-vertical) 12px;padding-right:22px;}.items.svelte-7dfsuh .item:first-child:not(.mobile) {padding-top:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item:last-child:not(.mobile) {padding-bottom:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item.mobile:first-child {padding-top:var(--edge-item-padding-vertical-mobile);}.items.svelte-7dfsuh .item.mobile:last-child {padding-bottom:var(--edge-item-padding-vertical-mobile);}.sub-menu.svelte-7dfsuh .item.bottomBordered {border-bottom:var(--divider-border);}.sub-menu.svelte-7dfsuh .item .sublabel {line-height:14px;font-size:12px;}.sub-menu.svelte-7dfsuh .item:not(.mobile) .label,
|
|
308
|
-
.item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function jm(t,e){U(e,!0),q(t,sx);let[i,o]=De(),n=()=>S(m,"$isFullscreen",i),s=()=>S(p,"$playerSize",i),l=v(e,"isMobile",3,!1),d=v(e,"playerControlsHeight",3,0),a=v(e,"ariaLabelReturnFromSubMenu",19,()=>Q("aria_label_submenu_back")),u=v(e,"listRef",15);Mt(()=>{let j=e.items.findIndex(_e=>_e.selected);u().children[j+1].focus()});let f=Te(),m=f.ui.isFullscreen,p=f.ui.playerSize,x=J(void 0),w=J(0),y=J(0),T=g(()=>l()&&n()?`max-height: ${Math.round(s().height*.6)}px`:l()?"":`max-height: ${s().height-32-r(y)-d()}px; overflow: auto;`),C=g(()=>Math.max(e.minWidth,r(w)));var E=rx();let R;var I=_(E);let k;I.__keydown=[ix,e];var B=_(I);let F;B.__click=[ox,e],B.__keydown=[nx,e];var H=_(B);Ys(H,{direction:"left"});var W=A(H,2),Z=_(W,!0);h(W),h(B),at(B,j=>N(x,j),()=>r(x));var ne=A(B,2);Pi(ne,17,()=>e.items,Gl,(j,_e)=>{var ee=He(),fe=me(ee);{var ve=Me=>{qm(Me,{get item(){return r(_e)},get isMobile(){return l()}})},pe=(Me,Ve)=>{{var de=Ne=>{Qm(Ne,{get isMobile(){return l()},get item(){return r(_e)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(Me,Ne=>{r(_e).type==="OPEN_SUB_MENU"&&Ne(de)},Ve)}};V(fe,Me=>{r(_e).type==="SELECT_VALUE"?Me(ve):Me(pe,!1)})}$(j,ee)}),h(I),at(I,j=>u(j),()=>u()),h(E),D((j,_e,ee)=>{R=re(E,1,"sub-menu menu svelte-7dfsuh",null,R,j),Ue(E,"data-testid",`sub-menu-${e.id}`),lt(E,`min-width: ${r(C)}px`),k=re(I,1,"items svelte-7dfsuh",null,k,_e),lt(I,r(T)),F=re(B,1,"item header back svelte-7dfsuh",null,F,ee),Ue(B,"aria-label",a()),ge(Z,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),cr(B,"clientWidth",j=>N(w,j)),cr(B,"clientHeight",j=>N(y,j)),$(t,E),z(),o()}ct(["keydown","click"]);import{noop as ax}from"@vkontakte/videoplayer-shared/es2015";var lx=(t,e)=>uu(t,e()),dx=(t,e)=>{t.stopPropagation(),e()()},cx=M('<div class="value svelte-1ikfjte"> </div>'),ux=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),px={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function Ym(t,e){U(e,!0),q(t,px);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,ax),n=v(e,"valueComponent",3,void 0),s=v(e,"ref",15);var l=ux();let d;l.__click=[dx,o],l.__keydown=[lx,o];var a=_(l),u=_(a);{var f=C=>{Ea(C,{get icon(){return e.icon}})},m=C=>{var E=He();let R=g(()=>e.icon);var I=me(E);Li(I,()=>r(R),(k,B)=>{B(k,{})}),$(C,E)};V(u,C=>{typeof e.icon=="string"?C(f):C(m,!1)})}h(a);var p=A(a,2),x=_(p,!0);h(p);var w=A(p,2);{var y=C=>{var E=He();let R=g(n);var I=me(E);Li(I,()=>r(R),(k,B)=>{B(k,{})}),$(C,E)},T=C=>{var E=cx(),R=_(E,!0);h(E),D(()=>ge(R,e.value)),$(C,E)};V(w,C=>{n()?C(y):C(T,!1)})}h(l),at(l,C=>s(C),()=>s()),D(C=>{d=re(l,1,"item",null,d,C),Ue(l,"aria-label",e.ariaLabel),Ue(l,"data-testid",e.id),ge(x,e.label)},[()=>({mobile:i()})]),$(t,l),z()}ct(["click","keydown"]);import{noop as d0}from"@vkontakte/videoplayer-shared/es2015";var fx=(t,e)=>{ul(t,()=>e())},mx=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),vx=M('<img class="icon" aria-hidden="true"/>'),gx=M('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),hx={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Zm(t,e){U(e,!0),q(t,hx);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,d0),n=v(e,"closeSettings",3,d0),s=J(!1),l=()=>{N(s,!0)},d=T=>{T==null||T.stopPropagation(),o()(),n()()};var a=gx();let u;a.__click=d,a.__keydown=[fx,d];var f=_(a),m=_(f);{var p=T=>{var C=He(),E=me(C);{var R=k=>{var B=mx();$(k,B)},I=k=>{var B=vx();D(()=>Ue(B,"src",e.icon)),Et("error",B,l),la(B),$(k,B)};V(E,k=>{r(s)?k(R):k(I,!1)})}$(T,C)},x=T=>{var C=He();let E=g(()=>e.icon);var R=me(C);Li(R,()=>r(E),(I,k)=>{k(I,{})}),$(T,C)};V(m,T=>{typeof e.icon=="string"?T(p):T(x,!1)})}h(f);var w=A(f,2),y=_(w,!0);h(w),h(a),D(T=>{var C;u=re(a,1,"item",null,u,T),Ue(a,"aria-label",(C=e.ariaLabel)!=null?C:e.label),Ue(a,"data-testid",e.id),ge(y,e.label)},[()=>({mobile:i()})]),$(t,a),z()}ct(["click","keydown"]);import{noop as $x}from"@vkontakte/videoplayer-shared/es2015";var _x=M('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),bx={hash:"svelte-17wbjko",code:'.toggle_wrap.svelte-17wbjko {min-height:15px;padding:0;font-size:12px;line-height:15px;cursor:pointer;user-select:none;}.toggle.svelte-17wbjko {float:right;margin-top:3px;width:28px;height:9px;border-radius:45px;background-color:var(--toggle-color-separator);cursor:pointer;}.toggle.svelte-17wbjko::after {content:"";float:left;position:relative;width:15px;height:15px;border-radius:50%;background-color:var(--toggle-color-off);top:-3px;left:0;transition:left .1s ease;}.toggle.on.svelte-17wbjko::after {background-color:var(--toggle-color-on);left:13px;}.toggle-label.svelte-17wbjko {overflow:hidden;}'};function Xm(t,e){q(t,bx);let i=v(e,"enabled",3,!1);var o=_x(),n=_(o);let s;we(2),h(o),D(l=>s=re(n,1,"toggle svelte-17wbjko",null,s,l),[()=>({on:i()})]),$(t,o)}var yx=(t,e,i)=>{I1(t,e(),o=>i()(o))},xx=(t,e,i)=>{t.stopPropagation(),e()(!i())},wx=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),Sx=M('<li role="menuitem" tabindex="0"><!></li>');function Jm(t,e){U(e,!0);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,$x),n=v(e,"enabled",3,!1),s=v(e,"tooltipText",3,void 0),l=v(e,"maxTooltipWidth",3,void 0);var d=Sx();let a;d.__click=[xx,o,n],d.__keydown=[yx,n,o];var u=_(d);xa(u,{get content(){return s()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,m)=>{var p=wx();let x;var w=_(p),y=_(w);{var T=k=>{Ea(k,{get icon(){return e.icon}})},C=k=>{var B=He();let F=g(()=>e.icon);var H=me(B);Li(H,()=>r(F),(W,Z)=>{Z(W,{})}),$(k,B)};V(y,k=>{typeof e.icon=="string"?k(T):k(C,!1)})}h(w);var E=A(w,2),R=_(E,!0);h(E);var I=A(E,2);Xm(I,{get enabled(){return n()}}),h(p),D(k=>{x=re(p,1,"switch-wrapper",null,x,k),ge(R,e.label)},[()=>({mobile:i()})]),$(f,p)},$$slots:{default:!0}}),h(d),D(f=>{var m;a=re(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()}ct(["click","keydown"]);import{isValidURL as Gx,VideoQuality as $0}from"@vkontakte/videoplayer-shared/es2015";var c0=()=>{let t=J(ei([])),e=g(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{N(t,r(t).slice(0,-1),!0)},popAllSubMenus:()=>{N(t,[],!0)}}};var Cx=M('<div class="quality-icon svelte-t2qk8t"><!></div>'),Tx=M('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),Ex={hash:"svelte-t2qk8t",code:".quality-label.svelte-t2qk8t {position:relative;}.quality.svelte-t2qk8t {font-size:13px;line-height:18px;}.quality.sub.svelte-t2qk8t {opacity:0.7;}.quality-icon.svelte-t2qk8t {position:absolute;padding-left:2px;transform:translateX(100%);display:flex;top:0;right:0;}.quality-icon.svelte-t2qk8t svg {color:var(--blue-light);}"};function Ma(t,e){U(e,!0),q(t,Ex);let i=v(e,"isSubCase",3,!1),o=g(()=>hu(e.quality));var n=Tx(),s=_(n);let l;var d=_(s,!0);h(s);var a=A(s,2);{var u=f=>{var m=Cx();let p=g(()=>r(o));var x=_(m);Li(x,()=>r(p),(w,y)=>{y(w,{})}),h(m),$(f,m)};V(a,f=>{r(o)&&!e.isMobile&&f(u)})}h(n),D(f=>{l=re(s,1,"svelte-t2qk8t",null,l,f),ge(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),$(t,n),z()}import{VideoQuality as Ix}from"@vkontakte/videoplayer-shared/es2015";import{VideoQuality as u0}from"@vkontakte/videoplayer-core/es2015";var p0=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},f0=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=p0({quality:t,availableQualities:e});return i?t===u0.INVARIANT?Q("auto_quality_invariant"):Q("auto_quality",{actual:o}):o},m0=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===u0.INVARIANT?i:`${i}${p0({quality:t,availableQualities:e})}`:"...";var kx=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),Ax={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function $l(t,e){U(e,!0),q(t,Ax);let[i,o]=De(),n=()=>S(a,"$currentQuality$",i),s=()=>S(u,"$availableQualities$",i),l=()=>S(f,"$isMobile$",i),d=Te(),a=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,m=" \xB7 ",p=g(()=>e.prefix+(e.selected&&n()!==Ix.INVARIANT?m:"")),x=g(()=>m0({prefix:r(p),quality:n(),availableQualities:s(),onlyPrefix:!e.selected}));var w=kx(),y=_(w);let T=g(()=>e.selected?n():void 0);Ma(y,{get quality(){return r(T)},get label(){return r(x)},get isMobile(){return l()},isSubCase:!0}),h(w),$(t,w),z(),o()}var Px=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,n="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",s=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${n}|${s}`,"g")},Lx={br:!0,span:!0},ev=(t,e={})=>{var d,a,u,f,m,p,x;if(!t)return t;let i=K(K({},Lx),e),o=Object.keys(i);if(!o.length)return t;let n=Px(o),s=[],l=0;for(let w of t.matchAll(n)){let y=w[0],T=((d=w.groups)==null?void 0:d.keyhtml)||((a=w.groups)==null?void 0:a.keyi18n)||((u=w.groups)==null?void 0:u.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:C}=w;if(!i[T]){s.push(t.slice(l,C)),l=C+y.length;continue}let E=(m=w.groups)!=null&&m.childrenhtml?ev(w.groups.childrenhtml,i):"",R=(p=w.groups)!=null&&p.childrenhtml?y.replace(new RegExp((x=w.groups)==null?void 0:x.childrenhtml),()=>E||""):y;s.push(t.slice(l,C),R),l=C+y.length}return l===0?t:(s.push(t.slice(l)),s.join(""))};function Kd(t,e){U(e,!1);let i=v(e,"message",8),o=ev(i());qr();var n=He(),s=me(n);{var l=d=>{var a=He(),u=me(a);jl(u,()=>o),$(d,a)};V(s,d=>{o&&d(l)})}$(t,n),z()}var Mx=M('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),Vx={hash:"svelte-1qk3zto",code:".quality-applies.svelte-1qk3zto {display:flex;justify-content:end;padding:3px 0;color:rgba(255, 255, 255, 0.5);}.quality-applies span {color:#70c1ff;}"};function tv(t,e){U(e,!1),q(t,Vx),qr();var i=Mx(),o=_(i);let n=Hr(()=>Q("quality_applience",{action:`<span>${Q("quality_applience_action")}</span>`}));Kd(o,{get message(){return r(n)}}),h(i),$(t,i),z()}var g0=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:$l,valueComponentParams:{prefix:Q("other_quality"),selected:o},children:"QUALITY"}},iv=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:Q("auto_quality_limit"),valueComponent:e?$l:void 0,valueComponentParams:{prefix:Q("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),h0=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:tv,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),ov=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:Q("high_quality"),valueComponent:t?$l:void 0,valueComponentParams:{prefix:Q("high_quality"),selected:i},sublabel:Q("high_quality_description")}),nv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"QUALITY_TRAFFIC_SAVING",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:Q("traffic_saving_quality"),valueComponent:t?$l:void 0,valueComponentParams:{prefix:Q("traffic_saving_quality"),selected:i},sublabel:Q("traffic_saving_quality_description")});var Ru=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Ou=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(l=kd(i))!=null?l:i),o&&i&&n){let d=e.filter(a=>a.label===o&&a.language===i);if(d.length===1)return Q("audio_stream_display_language_label",{language:n,label:o});{let a=Ru(t,d);return Q("audio_stream_display_language_label_index",{language:n,label:o,index:a})}}if(o){let d=e.filter(a=>a.label===o);if(d.length===1)return o;{let a=Ru(t,d);return Q("audio_stream_display_label_index",{label:o,index:a})}}if(i&&n){let d=e.filter(a=>a.language===i);if(d.length===1)return n;{let a=Ru(t,d);return Q("audio_stream_display_language_index",{language:n,index:a})}}let s=Ru(t,e);return Q("audio_stream_display_unknown",{index:s})};var Rx={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,s=[];return i&&s.push({handler:iv,selected:e&&!o&&!n||!1}),s.push({handler:nv,selected:o},{handler:ov,selected:n}),{title:Q("submenu_quality"),id:"QUALITY_DETAILS",items:[h0(t),...s.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),g0(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:Q("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:Ma,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:s=>e(s,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:Q("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:iv,selected:((i=Jc())==null?void 0:i.type)==="auto_quality"},{handler:nv,selected:((o=Jc())==null?void 0:o.type)==="traffic_saving"},{handler:ov,selected:((n=Jc())==null?void 0:n.type)==="high_quality"}].map(({handler:s,selected:l})=>s({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:Q("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===(i==null?void 0:i.id),label:Ou(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:Q("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),SUBTITLES:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"SUBTITLES",minWidth:164,title:Q("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===Tu?"sub_off":void 0}))})},_0=({subMenuId:t,context:e})=>t?[Rx[t](e)]:[];var Ox=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z" clip-rule="evenodd"></path></svg>');function rv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Ox();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:le}),we(),h(o),$(t,o)}var Nx=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"></path></svg>');function sv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Nx();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",viewBox:"0 0 18 15",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:le}),we(),h(o),$(t,o)}var Bx=Se('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" fill-rule="nonzero" d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"></path></g></svg>');function av(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Bx();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:le}),we(),h(o),$(t,o)}var Dx=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18" clip-rule="evenodd"></path></svg>');function lv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Dx();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:le}),we(),h(o),$(t,o)}var Fx=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z" clip-rule="evenodd"></path></svg>');function dv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Fx();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:le}),we(),h(o),$(t,o)}var Hx=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492" clip-rule="evenodd"></path></svg>');function Nu(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Hx();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:le}),we(),h(o),$(t,o)}var Ux=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"></path></svg>');function cv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Ux();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:le}),we(),h(o),$(t,o)}var zx=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),Wx={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function uv(t,e){U(e,!0),q(t,Wx);let[i,o]=De(),n=()=>S(u,"$currentQuality$",i),s=()=>S(f,"$availableQualities$",i),l=()=>S(m,"$isAutoQualityEnabled$",i),d=()=>S(p,"$isMobile$",i),a=Te(),u=a.state.currentQuality$,f=a.state.availableQualities$,m=a.state.isAutoQualityEnabled$,p=a.ui.isMobile,x=g(()=>f0({quality:n(),availableQualities:s(),isAutoQualityEnabled:l()}));var w=zx(),y=_(w);Ma(y,{get quality(){return n()},get label(){return r(x)},get isMobile(){return d()}}),h(w),$(t,w),z(),o()}var qx={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?Q("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:Q("aria_label_menu_quality",{actual:o}),icon:$d,label:Q("menu_quality"),value:e,valueComponent:uv,weight:jr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:jr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:Q("aria_label_submenu_traffic_saving"),icon:rv,label:Q("menu_traffic_saving"),enabled:t,tooltipText:Q("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=Ou(t,e);return{id:"AUDIO_LANGUAGES",weight:jr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:Q("aria_label_menu_audio_languages",{actual:i}),icon:sv,label:Q("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(n=>n.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:jr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:Q("aria_label_menu_rate",{actual:i}),icon:av,label:Q("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:jr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:Q("aria_label_menu_subtitle",{actual:t.displayValue}),icon:yd,label:Q("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:jr.download,type:"CLICK",onClick:t,label:Q("download_video_caption"),ariaLabel:Q("aria_label_menu_download"),icon:lv}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:jr.report,type:"CLICK",onClick:t,label:Q("menu_report"),ariaLabel:`${Q("menu_report")}. ${Q("aria_label_new_tab_alert")}`,icon:dv,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:jr["copy-data"],type:"CLICK",onClick:t,label:Q("menu_copy_debug"),ariaLabel:Q("menu_copy_debug"),icon:Nu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:jr["save-trace-info"],type:"CLICK",onClick:t,label:Q("menu_save_debug"),ariaLabel:Q("menu_save_debug"),icon:Nu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:jr["debug-info"],type:"CLICK",onClick:t,ariaLabel:Q("aria_label_menu_debug_overlay"),label:Q("menu_debug_overlay"),icon:cv,isHiddenFor:["desktop"]})},b0=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>qx[n](e)),...i.map(n=>Ft(K({},n),{isAdditional:!0}))].filter(n=>{var s,l,d;return!((s=n==null?void 0:n.isHiddenFor)!=null&&s.length)||!((l=n==null?void 0:n.isHiddenFor)!=null&&l.includes("desktop"))&&!o||!((d=n==null?void 0:n.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(_a)};var jx=(t,e)=>{cu(t,e)},Yx=M('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),Zx=M('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),Xx=M("<div><!> <!></div>"),Jx={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
|
|
316
|
+
.item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function vm(t,e){F(e,!0),W(t,t5);let[i,o]=Be(),r=()=>S(v,"$isFullscreen",i),s=()=>S(p,"$playerSize",i),l=h(e,"isMobile",3,!1),d=h(e,"playerControlsHeight",3,0),a=h(e,"ariaLabelReturnFromSubMenu",19,()=>Y("aria_label_submenu_back")),u=h(e,"listRef",15);Nt(()=>{let q=e.items.findIndex(ce=>ce.selected);u().children[q+1].focus()});let f=_e(),v=f.ui.isFullscreen,p=f.ui.playerSize,x=j(void 0),w=j(0),y=j(0),C=m(()=>l()&&r()?`max-height: ${Math.round(s().height*.6)}px`:l()?"":`max-height: ${s().height-32-n(y)-d()}px; overflow: auto;`),T=m(()=>Math.max(e.minWidth,n(w)));var E=e5();let R;var A=_(E);let I;A.__keydown=[Zx,e];var N=_(A);let H;N.__click=[Xx,e],N.__keydown=[Jx,e];var B=_(N);oa(B,{direction:"left"});var z=P(B,2),X=_(z,!0);g(z),g(N),at(N,q=>O(x,q),()=>n(x));var le=P(N,2);Ci(le,17,()=>e.items,hd,(q,ce)=>{var J=Fe(),ve=fe(J);{var se=Le=>{um(Le,{get item(){return n(ce)},get isMobile(){return l()}})},de=(Le,Se)=>{{var ie=Ne=>{pm(Ne,{get isMobile(){return l()},get item(){return n(ce)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(Le,Ne=>{n(ce).type==="OPEN_SUB_MENU"&&Ne(ie)},Se)}};V(ve,Le=>{n(ce).type==="SELECT_VALUE"?Le(se):Le(de,!1)})}b(q,J)}),g(A),at(A,q=>u(q),()=>u()),g(E),D((q,ce,J)=>{R=re(E,1,"sub-menu menu svelte-7dfsuh",null,R,q),Ke(E,"data-testid",`sub-menu-${e.id}`),Je(E,`min-width: ${n(T)}px`),I=re(A,1,"items svelte-7dfsuh",null,I,ce),Je(A,n(C)),H=re(N,1,"item header back svelte-7dfsuh",null,H,J),Ke(N,"aria-label",a()),me(X,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),kn(N,"clientWidth",q=>O(w,q)),kn(N,"clientHeight",q=>O(y,q)),b(t,E),U(),o()}dt(["keydown","click"]);import{noop as i5}from"@vkontakte/videoplayer-shared/es2015";var o5=(t,e)=>Au(t,e()),n5=(t,e)=>{t.stopPropagation(),e()()},r5=M('<div class="value svelte-1ikfjte"> </div>'),s5=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),a5={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function mm(t,e){F(e,!0),W(t,a5);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,i5),r=h(e,"valueComponent",3,void 0),s=h(e,"ref",15);var l=s5();let d;l.__click=[n5,o],l.__keydown=[o5,o];var a=_(l),u=_(a);{var f=T=>{Fa(T,{get icon(){return e.icon}})},v=T=>{var E=Fe();let R=m(()=>e.icon);var A=fe(E);Vi(A,()=>n(R),(I,N)=>{N(I,{})}),b(T,E)};V(u,T=>{typeof e.icon=="string"?T(f):T(v,!1)})}g(a);var p=P(a,2),x=_(p,!0);g(p);var w=P(p,2);{var y=T=>{var E=Fe();let R=m(r);var A=fe(E);Vi(A,()=>n(R),(I,N)=>{N(I,{})}),b(T,E)},C=T=>{var E=r5(),R=_(E,!0);g(E),D(()=>me(R,e.value)),b(T,E)};V(w,T=>{r()?T(y):T(C,!1)})}g(l),at(l,T=>s(T),()=>s()),D(T=>{d=re(l,1,"item",null,d,T),Ke(l,"aria-label",e.ariaLabel),Ke(l,"data-testid",e.id),me(x,e.label)},[()=>({mobile:i()})]),b(t,l),U()}dt(["click","keydown"]);import{noop as V0}from"@vkontakte/videoplayer-shared/es2015";var l5=(t,e)=>{Ll(t,()=>e())},d5=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),c5=M('<img class="icon" aria-hidden="true"/>'),u5=M('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),p5={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function gm(t,e){F(e,!0),W(t,p5);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,V0),r=h(e,"closeSettings",3,V0),s=j(!1),l=()=>{O(s,!0)},d=C=>{C==null||C.stopPropagation(),o()(),r()()};var a=u5();let u;a.__click=d,a.__keydown=[l5,d];var f=_(a),v=_(f);{var p=C=>{var T=Fe(),E=fe(T);{var R=I=>{var N=d5();b(I,N)},A=I=>{var N=c5();D(()=>Ke(N,"src",e.icon)),Ct("error",N,l),Sa(N),b(I,N)};V(E,I=>{n(s)?I(R):I(A,!1)})}b(C,T)},x=C=>{var T=Fe();let E=m(()=>e.icon);var R=fe(T);Vi(R,()=>n(E),(A,I)=>{I(A,{})}),b(C,T)};V(v,C=>{typeof e.icon=="string"?C(p):C(x,!1)})}g(f);var w=P(f,2),y=_(w,!0);g(w),g(a),D(C=>{var T;u=re(a,1,"item",null,u,C),Ke(a,"aria-label",(T=e.ariaLabel)!=null?T:e.label),Ke(a,"data-testid",e.id),me(y,e.label)},[()=>({mobile:i()})]),b(t,a),U()}dt(["click","keydown"]);import{noop as m5}from"@vkontakte/videoplayer-shared/es2015";var f5=M('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),v5={hash:"svelte-17wbjko",code:'.toggle_wrap.svelte-17wbjko {min-height:15px;padding:0;font-size:12px;line-height:15px;cursor:pointer;user-select:none;}.toggle.svelte-17wbjko {float:right;margin-top:3px;width:28px;height:9px;border-radius:45px;background-color:var(--toggle-color-separator);cursor:pointer;}.toggle.svelte-17wbjko::after {content:"";float:left;position:relative;width:15px;height:15px;border-radius:50%;background-color:var(--toggle-color-off);top:-3px;left:0;transition:left .1s ease;}.toggle.on.svelte-17wbjko::after {background-color:var(--toggle-color-on);left:13px;}.toggle-label.svelte-17wbjko {overflow:hidden;}'};function hm(t,e){W(t,v5);let i=h(e,"enabled",3,!1);var o=f5(),r=_(o);let s;Ee(2),g(o),D(l=>s=re(r,1,"toggle svelte-17wbjko",null,s,l),[()=>({on:i()})]),b(t,o)}var g5=(t,e,i)=>{Z1(t,e(),o=>i()(o))},h5=(t,e,i)=>{t.stopPropagation(),e()(!i())},_5=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),b5=M('<li role="menuitem" tabindex="0"><!></li>');function _m(t,e){F(e,!0);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,m5),r=h(e,"enabled",3,!1),s=h(e,"tooltipText",3,void 0),l=h(e,"maxTooltipWidth",3,void 0);var d=b5();let a;d.__click=[h5,o,r],d.__keydown=[g5,r,o];var u=_(d);Na(u,{get content(){return s()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,v)=>{var p=_5();let x;var w=_(p),y=_(w);{var C=I=>{Fa(I,{get icon(){return e.icon}})},T=I=>{var N=Fe();let H=m(()=>e.icon);var B=fe(N);Vi(B,()=>n(H),(z,X)=>{X(z,{})}),b(I,N)};V(y,I=>{typeof e.icon=="string"?I(C):I(T,!1)})}g(w);var E=P(w,2),R=_(E,!0);g(E);var A=P(E,2);hm(A,{get enabled(){return r()}}),g(p),D(I=>{x=re(p,1,"switch-wrapper",null,x,I),me(R,e.label)},[()=>({mobile:i()})]),b(f,p)},$$slots:{default:!0}}),g(d),D(f=>{var v;a=re(d,1,"item switch-item",null,a,f),Ke(d,"aria-label",(v=e.ariaLabel)!=null?v:e.label),Ke(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),U()}dt(["click","keydown"]);import{isValidURL as z5,VideoQuality as K0}from"@vkontakte/videoplayer-shared/es2015";var R0=()=>{let t=j(di([])),e=m(()=>(n(t).length?n(t).at(-1):null)||null);return{get current(){return n(e)},pushSubMenu:i=>{n(t).push(i)},popSubMenu:()=>{O(t,n(t).slice(0,-1),!0)},popAllSubMenus:()=>{O(t,[],!0)}}};var $5=M('<div class="quality-icon svelte-t2qk8t"><!></div>'),y5=M('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),x5={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 ja(t,e){F(e,!0),W(t,x5);let i=h(e,"isSubCase",3,!1),o=m(()=>Ou(e.quality));var r=y5(),s=_(r);let l;var d=_(s,!0);g(s);var a=P(s,2);{var u=f=>{var v=$5();let p=m(()=>n(o));var x=_(v);Vi(x,()=>n(p),(w,y)=>{y(w,{})}),g(v),b(f,v)};V(a,f=>{n(o)&&!e.isMobile&&f(u)})}g(r),D(f=>{l=re(s,1,"svelte-t2qk8t",null,l,f),me(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,r),U()}import{VideoQuality as w5}from"@vkontakte/videoplayer-shared/es2015";import{VideoQuality as O0}from"@vkontakte/videoplayer-core/es2015";var N0=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},D0=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=N0({quality:t,availableQualities:e});return i?t===O0.INVARIANT?Y("auto_quality_invariant"):Y("auto_quality",{actual:o}):o},B0=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===O0.INVARIANT?i:`${i}${N0({quality:t,availableQualities:e})}`:"...";var S5=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),C5={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Wl(t,e){F(e,!0),W(t,C5);let[i,o]=Be(),r=()=>S(a,"$currentQuality$",i),s=()=>S(u,"$availableQualities$",i),l=()=>S(f,"$isMobile$",i),d=_e(),a=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,v=" \xB7 ",p=m(()=>e.prefix+(e.selected&&r()!==w5.INVARIANT?v:"")),x=m(()=>B0({prefix:n(p),quality:r(),availableQualities:s(),onlyPrefix:!e.selected}));var w=S5(),y=_(w);let C=m(()=>e.selected?r():void 0);ja(y,{get quality(){return n(C)},get label(){return n(x)},get isMobile(){return l()},isSubCase:!0}),g(w),b(t,w),U(),o()}var T5=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,r="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",s=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${r}|${s}`,"g")},E5={br:!0,span:!0},bm=(t,e={})=>{var d,a,u,f,v,p,x;if(!t)return t;let i=Q(Q({},E5),e),o=Object.keys(i);if(!o.length)return t;let r=T5(o),s=[],l=0;for(let w of t.matchAll(r)){let y=w[0],C=((d=w.groups)==null?void 0:d.keyhtml)||((a=w.groups)==null?void 0:a.keyi18n)||((u=w.groups)==null?void 0:u.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:T}=w;if(!i[C]){s.push(t.slice(l,T)),l=T+y.length;continue}let E=(v=w.groups)!=null&&v.childrenhtml?bm(w.groups.childrenhtml,i):"",R=(p=w.groups)!=null&&p.childrenhtml?y.replace(new RegExp((x=w.groups)==null?void 0:x.childrenhtml),()=>E||""):y;s.push(t.slice(l,T),R),l=T+y.length}return l===0?t:(s.push(t.slice(l)),s.join(""))};function fc(t,e){F(e,!1);let i=h(e,"message",8),o=bm(i());Go();var r=Fe(),s=fe(r);{var l=d=>{var a=Fe(),u=fe(a);_d(u,()=>o),b(d,a)};V(s,d=>{o&&d(l)})}b(t,r),U()}var I5=M('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),k5={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 $m(t,e){F(e,!1),W(t,k5),Go();var i=I5(),o=_(i);let r=Sn(()=>Y("quality_applience",{action:`<span>${Y("quality_applience_action")}</span>`}));fc(o,{get message(){return n(r)}}),g(i),b(t,i),U()}var F0=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:Wl,valueComponentParams:{prefix:Y("other_quality"),selected:o},children:"QUALITY"}},ym=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:Y("auto_quality_limit"),valueComponent:e?Wl:void 0,valueComponentParams:{prefix:Y("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),U0=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:$m,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),xm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:Y("high_quality"),valueComponent:t?Wl:void 0,valueComponentParams:{prefix:Y("high_quality"),selected:i},sublabel:Y("high_quality_description")}),wm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"QUALITY_TRAFFIC_SAVING",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:Y("traffic_saving_quality"),valueComponent:t?Wl:void 0,valueComponentParams:{prefix:Y("traffic_saving_quality"),selected:i},sublabel:Y("traffic_saving_quality_description")});var Ju=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),ep=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,r;if(i==="und"?r=void 0:i&&(r=(l=Zd(i))!=null?l:i),o&&i&&r){let d=e.filter(a=>a.label===o&&a.language===i);if(d.length===1)return Y("audio_stream_display_language_label",{language:r,label:o});{let a=Ju(t,d);return Y("audio_stream_display_language_label_index",{language:r,label:o,index:a})}}if(o){let d=e.filter(a=>a.label===o);if(d.length===1)return o;{let a=Ju(t,d);return Y("audio_stream_display_label_index",{label:o,index:a})}}if(i&&r){let d=e.filter(a=>a.language===i);if(d.length===1)return r;{let a=Ju(t,d);return Y("audio_stream_display_language_index",{language:r,index:a})}}let s=Ju(t,e);return Y("audio_stream_display_unknown",{index:s})};var A5={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:r}=t,s=[];return i&&s.push({handler:ym,selected:e&&!o&&!r||!1}),s.push({handler:wm,selected:o},{handler:xm,selected:r}),{title:Y("submenu_quality"),id:"QUALITY_DETAILS",items:[U0(t),...s.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),F0(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:Y("submenu_quality"),closeSettingsMenu:t,items:i.map(r=>({type:"SELECT_VALUE",value:r.value,valueComponent:ja,valueComponentParams:{quality:r.value,label:r.displayValue,isMobile:o,isSubCase:!0},selectItem:s=>e(s,"to-video"),selected:r.selected,label:r.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,r;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:Y("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:ym,selected:((i=_u())==null?void 0:i.type)==="auto_quality"},{handler:wm,selected:((o=_u())==null?void 0:o.type)==="traffic_saving"},{handler:xm,selected:((r=_u())==null?void 0:r.type)==="high_quality"}].map(({handler:s,selected:l})=>s({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:Y("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(r=>({type:"SELECT_VALUE",value:r,dataValue:r.id,selectItem:o,selected:r.id===(i==null?void 0:i.id),label:ep(r,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:Y("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),SUBTITLES:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"SUBTITLES",minWidth:164,title:Y("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===zn?"sub_off":void 0}))})},z0=({subMenuId:t,context:e})=>t?[A5[t](e)]:[];var P5=Ie('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z" clip-rule="evenodd"></path></svg>');function Sm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=P5();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var M5=Ie('<svg><!><path fill="var(--btn-color, #fff)" d="M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"></path></svg>');function Cm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=M5();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",viewBox:"0 0 18 15",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var L5=Ie('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" fill-rule="nonzero" d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"></path></g></svg>');function Tm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=L5();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var V5=Ie('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18" clip-rule="evenodd"></path></svg>');function Em(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=V5();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var R5=Ie('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z" clip-rule="evenodd"></path></svg>');function Im(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=R5();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var O5=Ie('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492" clip-rule="evenodd"></path></svg>');function tp(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=O5();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var N5=Ie('<svg><!><path fill="var(--btn-color, #fff)" d="M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"></path></svg>');function km(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=N5();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var D5=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),B5={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Am(t,e){F(e,!0),W(t,B5);let[i,o]=Be(),r=()=>S(u,"$currentQuality$",i),s=()=>S(f,"$availableQualities$",i),l=()=>S(v,"$isAutoQualityEnabled$",i),d=()=>S(p,"$isMobile$",i),a=_e(),u=a.state.currentQuality$,f=a.state.availableQualities$,v=a.state.isAutoQualityEnabled$,p=a.ui.isMobile,x=m(()=>D0({quality:r(),availableQualities:s(),isAutoQualityEnabled:l()}));var w=D5(),y=_(w);ja(y,{get quality(){return r()},get label(){return n(x)},get isMobile(){return d()}}),g(w),b(t,w),U(),o()}var F5={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?Y("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:Y("aria_label_menu_quality",{actual:o}),icon:zd,label:Y("menu_quality"),value:e,valueComponent:Am,weight:Jr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Jr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:Y("aria_label_submenu_traffic_saving"),icon:Sm,label:Y("menu_traffic_saving"),enabled:t,tooltipText:Y("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=ep(t,e);return{id:"AUDIO_LANGUAGES",weight:Jr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:Y("aria_label_menu_audio_languages",{actual:i}),icon:Cm,label:Y("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(r=>r.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:Jr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:Y("aria_label_menu_rate",{actual:i}),icon:Tm,label:Y("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Jr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:Y("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Wd,label:Y("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Jr.download,type:"CLICK",onClick:t,label:Y("download_video_caption"),ariaLabel:Y("aria_label_menu_download"),icon:Em}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Jr.report,type:"CLICK",onClick:t,label:Y("menu_report"),ariaLabel:`${Y("menu_report")}. ${Y("aria_label_new_tab_alert")}`,icon:Im,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Jr["copy-data"],type:"CLICK",onClick:t,label:Y("menu_copy_debug"),ariaLabel:Y("menu_copy_debug"),icon:tp,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Jr["save-trace-info"],type:"CLICK",onClick:t,label:Y("menu_save_debug"),ariaLabel:Y("menu_save_debug"),icon:tp,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Jr["debug-info"],type:"CLICK",onClick:t,ariaLabel:Y("aria_label_menu_debug_overlay"),label:Y("menu_debug_overlay"),icon:km,isHiddenFor:["desktop"]})},W0=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(r=>F5[r](e)),...i.map(r=>qt(Q({},r),{isAdditional:!0}))].filter(r=>{var s,l,d;return!((s=r==null?void 0:r.isHiddenFor)!=null&&s.length)||!((l=r==null?void 0:r.isHiddenFor)!=null&&l.includes("desktop"))&&!o||!((d=r==null?void 0:r.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(Va)};var W5=(t,e)=>{ku(t,e)},K5=M('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),q5=M('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),Q5=M("<div><!> <!></div>"),j5={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 {
|
|
309
317
|
/* \u043D\u0443\u0436\u043D\u043E \u0447\u0442\u043E\u0431 \u043C\u0435\u043D\u044E \u043D\u0435 \u0441\u043A\u0430\u043A\u0430\u043B\u043E \u0432 \u0448\u0438\u0440\u0438\u043D\u0435 \u043F\u0440\u0438 \u0441\u043C\u0435\u043D\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u044F, \u043E\u0441\u043E\u0431\u043E \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u043E \u043F\u0440\u0438 \u0430\u0432\u0442\u043E \u0440\u0435\u0436\u0438\u043C\u0435 */min-width:300px;}.settings-menu-container.svelte-17or3al .menu.mobile {width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px;}.settings-menu-container.svelte-17or3al .menu.mobile.hidden {display:none;}.settings-menu-container.svelte-17or3al .menu .item:not(.switch-item),
|
|
310
318
|
.settings-menu-container.svelte-17or3al .menu .switch-wrapper {align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;white-space:nowrap;position:relative;}.settings-menu-container.svelte-17or3al .menu .item:hover {background-color:var(--settings-item-bg-hover);}.settings-menu-container.svelte-17or3al .menu .item.mobile:hover {background:var(--mobile-settings-bg);}.settings-menu.svelte-17or3al .item:not(.switch-item),
|
|
311
319
|
.settings-menu.svelte-17or3al .switch-wrapper {padding:0 32px 0 18px;}.settings-menu.svelte-17or3al .item.mobile:not(.switch-item),
|
|
312
|
-
.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
|
|
320
|
+
.settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function vc(t,e){F(e,!0),W(t,j5);let[i,o]=Be(),r=()=>S(Ze,"$settingsMenuVisible",i),s=()=>S(ge,"$settingsMenuOpenedByKeyboard",i),l=()=>S(et,"$debugPanelVisible",i),d=()=>S(ke,"$isMobile",i),a=()=>S(ct,"$playerSize",i),u=()=>S(He,"$hasMpegSources$",i),f=()=>S(he,"$mobileNotReportControlHidden$",i),v=()=>S(ie,"$autoQualityLimitingAvailable$",i),p=()=>S(Z,"$availableSubtitlesList$",i),x=()=>S(Ue,"$isLiveWithPlaybackSpeed",i),w=()=>S(de,"$availableAudioStreams$",i),y=()=>S(qe,"$availablePlaybackRates$",i),C=()=>S(se,"$currentAudioStream$",i),T=()=>S(k,"$currentPlaybackRate$",i),E=()=>S(Xe,"$trafficSavingEnabled",i),R=()=>S(Le,"$currentQuality$",i),A=()=>S(Ne,"$isAutoQualityEnabled$",i),I=()=>S(Re,"$currentSubtitle$",i),N=()=>S(rt,"$additionalSettingsMenuItems$",i),H=()=>S(pe,"$isAutoQualityAvailable$",i),B=()=>S(Se,"$availableQualities$",i),z=()=>S(Ge,"$highQualityEnabled",i),X=h(e,"ref",15,void 0),le=h(e,"playerControlsHeight",3,0),q=di({}),ce=di({}),J=_e(),ve=Rt(),se=J.state.audioStream$,de=J.state.availableAudioStreams$,Le=J.state.currentQuality$,Se=J.state.availableQualities$,ie=J.state.autoQualityLimitingAvailable$,Ne=J.state.isAutoQualityEnabled$,pe=J.state.isAutoQualityAvailable$,k=J.state.currentPlaybackRate$,qe=J.state.availablePlaybackRates$,Re=J.state.currentSubtitle$,Z=J.state.availableSubtitlesList$,ne=J.state.canDownload,He=J.state.hasMpegSources$,Ze=J.ui.settingsMenu.visible$,ge=J.ui.settingsMenu.openedByBtnKeyboard$,ee=J.ui.settingsMenu.ref$,ke=J.ui.isMobile,he=J.ui.mobileNotReportControlHidden$,Ue=J.state.canChangePlaybackSpeed$,Xe=J.state.trafficSavingEnabled$,Ge=J.state.highQualityEnabled$,ct=J.ui.playerSize,et=J.ui.debugPanelVisible,Bt=J.state.isInteractiveTime$,rt=J.ui.additionalSettingsMenuItems$,Dt=J.ui.t,Qt=J.actions.internal.downloadVideo,Et=J.actions.internal.closeSettingsMenu,ti=J.actions.internal.openSettingsSubMenu,Wt=J.actions.internal.closeSettingsSubMenu,Ce=j(!1),we=j(void 0),te=R0();We(()=>{!r()&&te.current&&(Wt(ce[te.current]),te.popAllSubMenus())}),We(()=>{r()||O(we,void 0)}),We(()=>{!te.current&&n(we)&&G1(q,n(we))}),We(()=>{X()&&ee.set(X())});function Te(kt){return yt(this,null,function*(){var K;te.pushSubMenu(kt),yield Ao(),ti(kt,ce[kt]);let Ht=(K=X())==null?void 0:K.firstElementChild;Ht&&Ff(Ht)})}function Me(kt){var Ht;kt==null||kt.stopPropagation(),s()||(Ht=e.returnFocus)==null||Ht.call(e),Et(),O(Ce,!1)}function It(kt,Ht){J.actions.internal.setQuality(kt,{appliesTo:Ht}),Me()}function De(kt){J.actions.internal.setAudioStream(kt),Me()}function ut(kt,Ht){J.actions.internal.setTrafficSavingEnabled(kt,Ht),ve.features.qualityDetailsSubMenuEnabled&&Me()}function $t(kt,Ht){J.actions.internal.setHighQualityEnabled(kt,Ht),Me()}function xe(kt){J.actions.internal.setPlaybackRate(kt),Me()}function ot(kt){J.actions.internal.setSubtitle(kt),Me()}function Qe(){Qt()}function lt(){z5(e.supportLink)&&window.open(e.supportLink,"_blank"),J.actions.internal.reportProblem(),J.actions.internal.pause()}function ii(){Pl(J.actions.internal.getDebugTextData())}let ai=()=>{let kt=J.actions.internal.getTraceTextData(),Ht=new Blob([...kt],{type:"application/json"}),K=window.URL.createObjectURL(Ht);ka(K,"vk_player_trace_info","json")};function mi(){et.set(!l())}function yi(){O(Ce,!0)}function so(){O(Ce,!1)}function vo(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-le()}px; overflow: auto;`}let ui=m(()=>ne&&u()&&!f()),mt=m(()=>ve.features.trafficSaving&&!f()&&v()&&!ve.features.qualityDetailsSubMenuEnabled),Pi=m(()=>p().length>0&&!f()),Yt=m(()=>!!x()&&!f()),Tt=m(()=>ve.features.audioLanguages&&w().length>=2&&!f()),ni=m(()=>!f());Nt(()=>Bt.subscribe(kt=>{kt&&!d()&&!n(Ce)&&!s()&&Me()}));let Zt=m(()=>{let kt=[n(ni)&&"QUALITY_SETTINGS",n(Tt)&&"AUDIO_LANGUAGES",n(Yt)&&"PLAYBACK_RATE",n(Pi)&&"SUBTITLES",n(mt)&&"TRAFFIC_SAVING_SWITCH",n(ui)&&"DOWNLOAD",ve.showSupport&&"SHOW_SUPPORT","COPY_DATA",ve.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Ht=>!!Ht);return W0({items:kt,context:{qualityDetailsSubMenuEnabled:ve.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:y(),currentAudioStream:C(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:xe,trafficSavingEnabled:E(),toggleTrafficSaving:ut,currentQuality:R()||K0.INVARIANT,isAutoQualityEnabled:A()||!1,currentSubtitle:I(),isMobile:d(),onDownloadClick:Qe,onCopyDataClick:ii,onReportProblemClick:lt,onSaveTraceDataClick:ai,toggleShowDebugInfo:mi},additionalSettingsMenuItems:N()})}),St=m(()=>z0({subMenuId:te.current,context:{availablePlaybackRates:y(),selectPlaybackRate:xe,trafficSavingEnabled:E(),toggleTrafficSaving:ut,currentQuality:R()||K0.INVARIANT,isAutoQualityEnabled:A()||!1,isAutoQualityAvailable:H()||!1,availableQualities:B(),highQualityEnabled:z(),toggleHighQuality:$t,availableAudioStreams:w(),availableSubtitlesList:p(),closeSettingsMenu:Et,currentAudioStream:C(),isMobile:d(),selectAudioLanguage:De,selectQuality:It,selectSubtitle:ot}}));var Ye=Q5();let xi;var wo=_(Ye);{var Zo=kt=>{var Ht=q5();let K;Ht.__keydown=[W5,Et];var Vt=_(Ht);{var oi=Gt=>{var pt=K5();let Oi;var Fi=_(pt),Xo=_(Fi,!0);g(Fi);var Lo=P(Fi,2);Lo.__click=Me,g(pt),D((ao,Ui)=>{Oi=re(pt,1,"item header svelte-17or3al",null,Oi,ao),me(Xo,Ui)},[()=>({mobile:d()}),()=>Dt("submenu_settings")]),b(Gt,pt)};V(Vt,Gt=>{d()&&Gt(oi)})}var ft=P(Vt,2);let At;Ci(ft,21,()=>n(Zt),Gt=>Gt.id,(Gt,pt)=>{var Oi=Fe(),Fi=fe(Oi);{var Xo=ao=>{mm(ao,{get isMobile(){return d()},get id(){return n(pt).id},get icon(){return n(pt).icon},get label(){return n(pt).label},get ariaLabel(){return n(pt).ariaLabel},get value(){return n(pt).value},get valueComponent(){return n(pt).valueComponent},onClick:()=>{Te(n(pt).children),O(we,n(pt).id,!0)},get ref(){return q[n(pt).id]},set ref(Ui){q[n(pt).id]=Ui}})},Lo=(ao,Ui)=>{{var ur=go=>{gm(go,{get isMobile(){return d()},get id(){return n(pt).id},get onClick(){return n(pt).onClick},get icon(){return n(pt).icon},get label(){return n(pt).label},get ariaLabel(){return n(pt).ariaLabel},closeSettings:Me})},mo=(go,Ni)=>{{var pn=Vo=>{_m(Vo,{get isMobile(){return d()},get id(){return n(pt).id},get onClick(){return n(pt).onClick},get icon(){return n(pt).icon},get label(){return n(pt).label},get ariaLabel(){return n(pt).ariaLabel},get enabled(){return n(pt).enabled},get tooltipText(){return n(pt).tooltipText},get maxTooltipWidth(){return n(pt).maxTooltipWidth}})};V(go,Vo=>{n(pt).type==="SWITCH"&&Vo(pn)},Ni)}};V(ao,go=>{n(pt).type==="CLICK"?go(ur):go(mo,!1)},Ui)}};V(Fi,ao=>{n(pt).type==="OPEN_SUB_MENU"?ao(Xo):ao(Lo,!1)})}b(Gt,Oi)}),g(ft),at(ft,Gt=>X(Gt),()=>X()),g(Ht),D((Gt,pt,Oi)=>{K=re(Ht,1,"settings-menu menu svelte-17or3al",null,K,Gt),At=re(ft,1,"items",null,At,pt),Je(ft,Oi)},[()=>({desktop:!d(),mobile:d(),hidden:!!te.current}),()=>({mobile:d()}),vo]),Ct("mouseenter",Ht,yi),Ct("mouseleave",Ht,so),b(kt,Ht)};V(wo,kt=>{r()&&kt(Zo)})}var un=P(wo,2);Ci(un,17,()=>n(St),kt=>kt.id,(kt,Ht)=>{let K=m(()=>{var Vt;return(Vt=n(Ht).minWidth)!=null?Vt:137});vm(kt,{get isMobile(){return d()},get playerControlsHeight(){return le()},get returnFromSubMenu(){return te.popSubMenu},get id(){return n(Ht).id},get title(){return n(Ht).title},get closeSettingsMenu(){return Et},openSubMenuList:Te,get items(){return n(Ht).items},get minWidth(){return n(K)},get refMenuItems(){return q},get listRef(){return ce[n(Ht).id]},set listRef(Vt){ce[n(Ht).id]=Vt}})}),g(Ye),D(kt=>xi=re(Ye,1,"settings-menu-container svelte-17or3al",null,xi,kt),[()=>({mobile:d(),hidden:!r()})]),b(t,Ye),U(),o()}dt(["keydown","click"]);var G5=M('<button class="btn svelte-1f0voc7"> </button>'),Y5={hash:"svelte-1f0voc7",code:"button.btn.svelte-1f0voc7 {margin-top:12px;font-size:14px;line-height:18px;background:rgba(255, 255, 255, 0.1);padding:6px 12px 7px;border-radius:8px;}"};function Pm(t,e){W(t,Y5);var i=G5();i.__click=function(...r){var s;(s=e.onClick)==null||s.apply(this,r)};var o=_(i,!0);g(i),D(()=>me(o,e.label)),b(t,i)}dt(["click"]);var Z5=M('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),X5={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
|
|
313
321
|
/**
|
|
314
322
|
* \u0415\u0441\u043B\u0438 \u043D\u0435 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u043C \u0443 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 \u0441\u043E\u0431\u044B\u0442\u0438\u044F, \u0442\u043E \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u043C \u043F\u043E \u044D\u0442\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0432\u044B\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E.
|
|
315
|
-
*/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
|
|
323
|
+
*/pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function mc(t,e){F(e,!0),W(t,X5);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Rt(),{ui:{t:r}}=_e(),s=r(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=Z5(),d=_(l),a=_(d),u=_(a),f=_(u);fc(f,{get message(){return s}}),g(u);var v=P(u,2);{var p=w=>{let y=m(()=>r("slow_video_notification_button"));Pm(w,{get label(){return n(y)},get onClick(){return e.onSelectAutoQuality}})};V(v,w=>{o||w(p)})}g(a);var x=P(a,2);As(x,{get onClick(){return e.onClose}}),g(d),g(l),Zr(3,d,()=>vs,()=>({duration:i})),b(t,l),U()}import{isIntersecting as q0,Subscription as J5}from"@vkontakte/videoplayer-shared/es2015";var Ga="annotation",ip=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var d;let{overlay:o,id:r,controlsBehaviour:s,hideAllControls:l}=i;e.setAttribute("slot",Ga),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(r,{rootElement:e,options:i}),s&&this.runHidingControlsWhenIntersected(r,s),l&&((d=this.store)==null||d.ui.isControlsAvailable.set(!1))}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}runHidingControlsWhenIntersected(r,s){return yt(this,arguments,function*(e,{observedSlotElementId:i,controlsToObserve:o}){var p;let l=this.slots.get(e);if(!l)return;let d=yield this.findSlotElement(l.rootElement,i,e),{controls:a,hiddenControls:u}=((p=this.store)==null?void 0:p.ui)||{},f=new MutationObserver(x=>x.forEach(()=>{let w=Ms(d,this.shadowRootContainer);o.forEach(y=>{let C=a==null?void 0:a[y],T=C?$e(C):null,E=u==null?void 0:u[y];T&&(E==null||E.set(q0(T,w)))})}));f.observe(d,{childList:!0,subtree:!0}),l.observer=f;let v=new J5;o.forEach(x=>{a&&v.add(a[x].subscribe(w=>{let y=u==null?void 0:u[x];w&&w.isDisplayed?y==null||y.set(q0(w,Ms(d,this.shadowRootContainer))):y==null||y.set(!1)}))}),l.subs=v})}findSlotElement(e,i,o){return yt(this,null,function*(){return new Promise(r=>{let s=null,l=new MutationObserver(()=>{if(s=e.querySelector(`#${i}`),s){l.disconnect();let a=this.slots.get(o);a&&(a.observerForFindingSlotElement=void 0),r(s)}});l.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=l)})})}remove(e){var u,f;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:r,observerForFindingSlotElement:s,subs:l,options:{controlsBehaviour:d,hideAllControls:a}}=i;o&&o.remove(),[r,s].forEach(v=>v==null?void 0:v.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),a&&((u=this.store)==null||u.ui.isControlsAvailable.set(!0)),(f=d==null?void 0:d.controlsToObserve)==null||f.forEach(v=>{var p,x;(x=(p=this.store)==null?void 0:p.ui.hiddenControls[v])==null||x.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var ew=M('<div class="container svelte-16aykgd"><!></div>'),tw={hash:"svelte-16aykgd",code:`.container.svelte-16aykgd {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
|
|
316
324
|
|
|
317
325
|
animation-name: svelte-16aykgd-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
|
|
318
326
|
|
|
@@ -343,8 +351,11 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},l1=mb;var w
|
|
|
343
351
|
opacity: 0;
|
|
344
352
|
scale: 0;
|
|
345
353
|
}
|
|
346
|
-
}`};function
|
|
347
|
-
.video-container.svelte-1czns9r {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1czns9r {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1czns9r {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1czns9r {transition:none;}.nocursor.svelte-1czns9r {cursor:none;}`};function Ra(t,e){U(e,!0),q(t,u5);let[i,o]=De(),n=()=>S(f,"$rotateAlpha",i),s=()=>S(m,"$playerSize",i),l=()=>S(u,"$playerPhase",i),d=()=>S(p,"$isPlaying$",i),a=v(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:f,playerSize:m},state:{isPlaying$:p}}=Te(),{isSmoothVideoRotate:x}=It(),w=g(()=>a()&&n()%180?s().height/s().width:1);var y=c5();let T;y.__contextmenu=function(...R){var I;(I=e.onContextMenu)==null||I.apply(this,R)},y.__mousedown=function(...R){var I;(I=e.onMouseDown)==null||I.apply(this,R)},y.__mouseup=function(...R){var I;(I=e.onMouseUp)==null||I.apply(this,R)},y.__click=function(...R){var I;(I=e.onClick)==null||I.apply(this,R)},y.__dblclick=function(...R){var I;(I=e.onDblClick)==null||I.apply(this,R)};var C=_(y);let E;at(C,R=>a(R),()=>a()),h(y),D((R,I)=>{T=re(y,1,"video-wrapper svelte-1czns9r",null,T,R),E=re(C,1,"video-container svelte-1czns9r",null,E,I),lt(C,`transform: rotate(${n()}deg) scale(${r(w)})`),Ue(C,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!x})]),$(t,y),z(),o()}ct(["contextmenu","mousedown","mouseup","click","dblclick"]);var p5=Se('<svg><!><path fill="currentColor" d="M8 7.389V5.725c0-.52.57-.84 1.015-.569l3.721 2.275a.667.667 0 0 1 0 1.138l-3.721 2.275A.667.667 0 0 1 8 10.275V8.611l-3.652 2.233a.667.667 0 0 1-1.014-.569v-4.55c0-.52.57-.84 1.014-.569z"></path></svg>');function mv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=p5();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:le}),we(),h(o),$(t,o)}var f5=M('<div><span class="text svelte-1gi6268"> </span> <!></div>'),m5={hash:"svelte-1gi6268",code:".root.svelte-1gi6268 {padding:6px 12px;gap:4px;background-color:var(--double-forward-bg);color:var(--white);display:flex;border-radius:100px;position:absolute;top:24px;left:50%;transform:translateX(-50%);transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);visibility:hidden;opacity:0;pointer-events:none;}.root.visible.svelte-1gi6268 {transform:translateX(-50%);visibility:visible;opacity:1;}.text.svelte-1gi6268 {font-size:13px;line-height:16px;font-weight:600;}"};function vv(t,e){U(e,!0),q(t,m5);let{ui:{t:i}}=Te();var o=f5();let n;var s=_(o),l=_(s,!0);h(s);var d=A(s,2);mv(d,{}),h(o),D((a,u)=>{n=re(o,1,"root svelte-1gi6268",null,n,a),ge(l,u)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),$(t,o),z()}var v5=(t,e,i,o,n,s)=>{if(t.stopPropagation(),e()||o()){s();return}},g5=M("<div><!></div>"),h5=M('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),_5=M("<div><!></div>"),b5=M('<div class="settings-menu svelte-jtgjmv"><!></div>'),$5=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),y5=M("<!> <!> <!>",1),x5=M('<div class="blocked svelte-jtgjmv"></div>'),w5=M('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),S5={hash:"svelte-jtgjmv",code:".player-wrapper.svelte-jtgjmv {position:absolute;width:100%;height:100%;}.blocked.svelte-jtgjmv {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-jtgjmv .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-jtgjmv {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-jtgjmv {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-jtgjmv {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-jtgjmv {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}"};function gv(t,e){U(e,!0),q(t,S5);let[i,o]=De(),n=()=>S(Xr,"$notificationsToShow$",i),s=()=>S(vo,"$playerPhase",i),l=()=>S(Ye,"$isLoaderVisible",i),d=()=>S(_i,"$adPlaybackState",i),a=()=>S(Wt,"$crashed",i),u=()=>S(bn,"$isInteractiveTime$",i),f=()=>S(We,"$settingsMenuVisible",i),m=()=>S($n,"$isInteractiveExpectation$",i),p=()=>S(si,"$controlsVisible",i),x=()=>S(ao,"$touched",i),w=()=>S(Zr,"$graphIsOpened$",i),y=()=>S(Ct,"$isFullscreen",i),T=()=>S(mr,"$autoplayNextEnabled$",i),C=()=>S(sn,"$postrollPassed",i),E=()=>S(Vi,"$isEnded$",i),R=()=>S(fi,"$cursorInside",i),I=()=>S(Yr,"$isControlsAvailable",i),k=()=>S(Hn,"$doubleForwardOn$",i),B=()=>S(Un,"$fakeIsPlaying$",i),F=()=>S(Cn,"$bottomNoSmooth",i),H=()=>S(Dn,"$interactiveTimeIndicator",i),W=()=>S(mi,"$playerSize",i),Z=()=>S(bt,"$is3DVideo",i),ne=()=>S(xn,"$doubleForwardAvailable$",i),j=()=>S(go,"$contextMenuVisible$",i),_e=()=>S(Jt,"$playbackState$",i),ee=()=>S(pr,"$hotKeyMapData",i),fe=()=>S(Si,"$scrubbingInProgress",i),ve=()=>S(Qi,"$volumeChangingInProgress",i),pe=()=>S(Co,"$chromecastConnected$",i),Me=()=>S(Io,"$controlsTimeoutActive",i),Ve=()=>S(At,"$settingsMenuOpenedByKeyboard",i),de=()=>S(yr,"$contextMenuOpenedByKeyboard$",i),Ne=()=>S(Nr,"$contextMenuOpenedByHotKey$",i),se=()=>S(xr,"$contextMenuButtonRef$",i),P=()=>S(Jr,"$contextMenuLastActiveElem$",i),nt=()=>S(ii,"$isFullscreenOpenedByKeyboard",i),Be=()=>S(hi,"$language$",i),G=()=>S(ki,"$icon3DVideoVisible",i),ie=()=>S(To,"$chromecastDeviceName$",i),Oe=()=>S(oi,"$currentSubtitle$",i),et=()=>S(bi,"$currentSubtitleCaptions$",i),xe=()=>S(Ii,"$position$",i),te=()=>S(mo,"$duration$",i),Ce=()=>S(O,"$isLive$",i),Ee=()=>S(tt,"$isPlaying$",i),qe=()=>S(Eo,"$contextMenuPosition$",i),it=()=>S(lo,"$showHotKeyMap",i),ft=()=>S(xt,"$debugPanelVisible",i),dt=()=>S(fs,"$userActionsDisabled$",i),gt=v(e,"videoContainer",15),ot=v(e,"adsSlotId",3,void 0),Ut=v(e,"adsParams",3,void 0),Qt=v(e,"adsAutoplayParam",3,void 0),Yt=v(e,"duration",3,void 0),Gt=v(e,"logoTargetUrl",3,""),Ae=v(e,"showNextPrevButtons",3,!1),jt=v(e,"nextButtonActive",3,!1),be=v(e,"prevButtonActive",3,!1),Ie=v(e,"endScreenVideoTitle",3,void 0),ce=v(e,"endScreenVideoThumb",3,void 0),Ge=v(e,"isOneVideoPlaylist",3,!1),ze=v(e,"shadowRootContainer",3,void 0),ue=v(e,"outerContainerRef",3,void 0),Fe=v(e,"playerStarted",3,!1),$e=v(e,"fullScreenTarget",3,void 0),Xe=v(e,"showMiniTimer",3,!1),Lt=v(e,"showEndScreen",3,!0),yt=v(e,"keyboardControls",15),Vt=e.store.getLogger().createComponentLog("Root component"),hi=e.store.interfaceLanguage$,Jt=e.store.state.playbackState$,_i=e.store.ads.playbackState,Ii=e.store.state.positionWithScrubbing$,mo=e.store.state.duration$,vo=e.store.playerPhase,Ct=e.store.ui.isFullscreen,ii=e.store.ui.isFullscreenOpenedByKeyboard,si=e.store.ui.controlsVisible,We=e.store.ui.settingsMenu.visible$,At=e.store.ui.settingsMenu.openedByBtnKeyboard$,Si=e.store.ui.scrubbingInProgress,Qi=e.store.ui.volumeChangingInProgress,go=e.store.ui.contextMenu.visible$,xt=e.store.ui.debugPanelVisible,Ye=e.store.state.isLoaderVisible,Vi=e.store.state.isEnded$,Co=e.store.state.chromecastConnected$,To=e.store.state.chromecastDeviceName$,sn=e.store.ads.postrollPassed,O=e.store.state.isLive$,tt=e.store.state.isPlaying$,Wt=e.store.state.crashed$,Kt=e.store.webApi.annotationsApi,mt=e.store.webApi.pictureInPictureApi,oi=e.store.state.currentSubtitle$,bi=e.store.state.currentSubtitleCaptions$,mi=e.store.ui.playerSize,bt=e.store.ui.is3DVideo,ki=e.store.ui.icon3DVideoVisible,so=e.store.state.isInteractive,bn=e.store.state.isInteractiveTime$,$n=e.store.state.isInteractiveExpectation$,pi=e.store.state.hasInteractiveBranches,ao=e.store.ui.touched,pr=e.store.ui.modals.hotKeyMap.data,lo=e.store.ui.modals.hotKeyMap.show,to=e.store.ui.overlayContainer$,Dn=e.store.ui.controls.interactiveTimeIndicator,qo=e.store.state.showInteractiveTimeIndicator,Eo=e.store.ui.contextMenu.position$,fr=e.store.actions.internal.setQuality,Fn=e.store.actions.internal.closeSettingsMenu,mr=e.store.ui.autoplayNextEnabled$,fs=e.store.ui.userActionsDisabled,Yr=e.store.ui.isControlsAvailable,yn=e.store.ui.videoTitleInfo,Hn=e.store.ui.doubleForwardOn$,xn=e.store.ui.doubleForwardAvailable$,Qo=e.store.actions.internal.getVideoElement,Go=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:Un,notifications$:vr,graphIsOpened$:Zr}=fo(),co=J(void 0),Ar=J(void 0),an=J(void 0),wn=J(void 0),zn,gr,Wn;pr.set(_1());let{closeNotification:ho,notificationsToShow$:Xr}=vr,Sn=g(()=>!!n().slow_video),ut=()=>ho("slow_video"),ai=g(()=>(s()==="video"&&l()||s()==="ads"&&d()==="inactive")&&!a()),ln=J(void 0),Cn=ae(!1),Pr,Io=ae(!1),dn=ae(),fi=ae(!1),Ai=J(!1),ko=J(!1),Kn=J(!1),hr=J(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Lr=g(()=>u()&&!f()&&!(r(Ai)||r(ko))&&!(r(Kn)&&!m())),_r=!0,qn=g(()=>e.uiConfig.features.thumbTimer&&Xe()&&s()==="video"&&!p()&&!a()&&!so&&(e.uiConfig.hideThumbTimerAfterTouch&&!x()||!e.uiConfig.hideThumbTimerAfterTouch)),Qn=g(()=>s()==="video"&&!w()&&y()),Ao=J(!1),Gn=g(()=>(Lt()||e.showAutoplayNext&&T())&&!!Ie()&&!!ce()&&(e.showAds&&C()||!e.showAds)&&E()&&!a()&&!r(Ao)),br=g(()=>R()&&!(p()||r(Gn))&&!u()&&I()&&!k()),ni=J(!1),cn=g(()=>B()!==null),{toggle:$r}=Un,Tn=!1,pt=null;mt==null||mt.setContext(Ll());let ci=()=>{e.autoplay&&!so&&e.uiConfig.controls.showOnStartupAtAutoplay&&ui(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:ci});let io=()=>{window.clearTimeout(zn),Io.set(!1)},jo=()=>{window.clearTimeout(gr),dn.set(null)},ui=X=>{io(),Io.set(!0),zn=window.setTimeout(()=>Io.set(!1),X);let je=X-100;Pr=window.setTimeout(()=>{F()&&Cn.set(!1)},je>0?je:X)},un=(X,je)=>{jo(),dn.set(je),gr=window.setTimeout(()=>dn.set(null),X)},Fi=bt.subscribe(X=>{ki.set(X),X&&(window.clearTimeout(Wn),Wn=window.setTimeout(()=>ki.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Gi=()=>vt(null,null,function*(){var je,Bt,ri,Ci;let X=Ws();if(X){let Ti=rd(),Hi=En();X=Ti===Hi||Ti===ze()}if(X){ui(e.uiConfig.controls.hideTimeoutFullscreen);try{yield mt==null?void 0:mt.exit()}catch(Ti){Vt({message:String(Ti)})}}Ct.set(X),e.store.getAdmanWrapper().setFullscreen(X),y()?(Bt=(je=e.store.callbacks)==null?void 0:je.onFullscreenEnter)==null||Bt.call(je):(Ci=(ri=e.store.callbacks)==null?void 0:ri.onFullscreenExit)==null||Ci.call(ri)}),ji=X=>{let{width:je,height:Bt}=X.target;mi.set({width:je,height:Bt})},Yo=()=>{let{width:X,height:je}=r(co).getBoundingClientRect();mi.set({width:X,height:je})};Mt(()=>{var je;return lu(Gi),e.uiConfig.features.annotationsInside&&(Kt==null||Kt.init(r(co))),ga(mt)&&(mt==null||mt.assignPlayerContainer(r(co)),mt==null||mt.setExternalEventHandlers({resize:ji,leavepictureinpicture:Yo})),e.interactiveContainer&&((je=gt().parentElement)==null||je.insertBefore(e.interactiveContainer,gt().nextSibling)),()=>{window.clearTimeout(zn),window.clearTimeout(Pr),window.clearTimeout(gr),window.clearTimeout(Wn),Fi(),mt==null||mt.dispose().catch(Bt=>{Vt({message:String(Bt)})}),du(Gi)}});let En=()=>{let X=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!ue()?r(co):ue(),je=X.getRootNode(),Bt=je instanceof ShadowRoot?je.host:je,ri=$e()instanceof HTMLElement&&$e().contains(Bt);return e.uiConfig.allowChangingFullscreenTarget&&$e()&&ri?$e():X},Mr=()=>{go.set(!1)},Zo=()=>{Fn(),Mr()},Vr=()=>vt(null,null,function*(){if(!Go()){Vt({message:"fullscreen disabled"});return}Mr(),Ws()?(yield au(document),Vt({message:"exit fullscreen"})):(Vt({message:"request fullscreen"}),yield su(En()))}),Rr=X=>{w()||(X.preventDefault(),go.set(!0),Eo.set({left:X.clientX,top:X.clientY}))};function Po(){fi.set(!0),so||ui(e.uiConfig.controls.hideTimeoutCursor)}function jn(X){var Ci,Ti;let{relatedTarget:je}=X,ri=!!(je&&((Ci=r(an))!=null&&Ci.contains(je)))&&((Ti=yt())==null?void 0:Ti.isFocused());!so&&!ri&&(Cn.set(!0),ui(e.uiConfig.controls.hideTimeoutCursor))}function Or(){fi.set(!1),N(ko,!1),N(Ai,!1),Tn=!1,e.store.actions.internal.releaseCamera(),ui(e.uiConfig.controls.hideTimeout),k()&&Oi()}function Yn(X){return X?X.offsetTop+Yn(X.offsetParent):0}function st(X){return X?X.offsetLeft+st(X.offsetParent):0}function Pt(X){if(H()&&qo){let je=X.currentTarget,Bt=Yn(je),ri=st(je),Ci=X.pageX-ri,Ti=X.pageY-Bt,{left:Hi,bottom:er,right:Ei}=H(),xi=Ei-Hi;return Ci>=Hi-xi&&Ti<=er+xi}}function $i(X){if(r(co)){let je=Yn(X.currentTarget),Bt=W().height,ri=X.pageY-je;if(Pt(X)){N(ko,!1);return}ri<40?N(ko,!0):ri>Bt-40?N(Ai,!0):(N(ko,!1),f()||N(Ai,!1))}}function uo(X){$i(X),!r(Lr)&&!k()&&ui(e.uiConfig.controls.hideTimeoutCursor),Z()&&Tn&&pt&&e.store.actions.internal.moveCameraFocusPX(pt.clientX-X.clientX,pt.clientY-X.clientY,X.timeStamp-pt.timeStamp),pt=X}let Ri=null,Yi=()=>{Ri=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),io()},e.uiConfig.doubleForwardActivationTime)},Oi=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),Ri&&clearTimeout(Ri),Ri=null},_o=X=>{X.preventDefault(),X.button===0&&(Tn=!0,e.store.actions.internal.holdCamera(),ne()&&Yi()),!Tn&&ui(e.uiConfig.controls.hideTimeoutCursor)},In=X=>{X.preventDefault(),X.button===0&&(pt=X,Tn=!1,e.store.actions.internal.releaseCamera()),!k()&&ui(e.uiConfig.controls.hideTimeoutCursor)},Lo=X=>{X.preventDefault(),_r&&(Vt({message:"double click on video"}),Vr(),ui(e.uiConfig.controls.hideTimeoutCursor))},Mo=X=>{var je;if(X.preventDefault(),k()){Oi();return}if(Ri&&Oi(),j()||f()){Zo();return}if(!(E()&&!pi)){if(r(cn))return $r();if((je=yt())==null||je.focus(),!Fe()){e.firstStart(),ui(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||_e()!==C0.PLAYING)&&e.store.actions.internal.togglePlay(),ui(e.uiConfig.controls.hideTimeoutCursor)}},Vo=X=>{Zo(),ao.set(!0),ui(e.uiConfig.controls.hideTimeout),X&&un(e.uiConfig.controls.hideHotKeyHelpers,X)},Zn=()=>{var X,je;Zo(),(X=e.store.callbacks)!=null&&X.onOpenHotKeyMap?(je=e.store.callbacks)==null||je.onOpenHotKeyMap(ee()):lo.update(Bt=>!Bt)},kn=()=>{ao.set(!0)},yr=e.store.ui.contextMenu.openedByBtnKeyboard$,xr=e.store.ui.contextMenu.btnRef$,Xn=J(void 0),Nr=e.store.ui.contextMenu.openedByHotKey$,Jr=e.store.ui.contextMenu.lastActiveElem$;Qe(()=>{to.set(r(ln))}),Qe(()=>{N(Kn,r(hr)&&_e()!==C0.PLAYING,!0),r(hr)||St(()=>N(hr,!0))}),Qe(()=>{var je,Bt;let X=(r(Kn)||E()||f()||fe()||ve()||pe()||Me())&&!r(Lr)&&(s()==="video"||s()==="ads")&&!a()&&I();si.set(X),!X&&!Me()&&e.uiConfig.returnFocusOnControlsHide&&((je=r(an))!=null&&je.contains(gu()))&&((Bt=yt())==null||Bt.focus())}),Qe(()=>{!fe()&&r(ni)&&!u()&&ui(e.uiConfig.controls.hideTimeoutCursor),St(()=>N(ni,fe(),!0))}),Qe(()=>{r(wn),f(),Ve(),St(()=>pd(r(wn),f(),Ve()))}),Qe(()=>{r(Xn),j(),de(),Ne(),St(()=>{let X=de()||Ne();pd(r(Xn),j(),X)})}),Qe(()=>{let X=se();X&&(j(),St(()=>cl(X,j(),yr)))}),Qe(()=>{let X=P();X&&(j(),St(()=>C1(X,j(),Nr)))}),Qe(()=>{var X;!nt()&&y()&&(St(()=>ii.set(!1)),(X=yt())==null||X.focus())}),Qe(()=>{w()&&Zo()});let Ke=Q("video360"),qt=J(void 0),yi=X=>{yn.set(Nn(Qo(),{title:r(qt)},"title",X))},pn=(X,je)=>{var Ti,Hi;let Bt=(Hi=(Ti=e.store.callbacks)==null?void 0:Ti.uiInfo)==null?void 0:Hi.onUpcomingLiveViewStateChanged;if(!Bt)return;let ri=!!je,Ci=K(K({},Nn(r(co),{upcomingLiveScreen:je},"upcomingLiveScreen",ri)),X);Bt(Ci)};var Ro=w5();Et("blur",na,Zo);var Oo=me(Ro);Oo.__mousemove=uo;var No=_(Oo);let Jn=g(()=>s()==="ads"),es=g(()=>r(cn)?$r:void 0);at(Rf(No,{startDoubleForwardActivationTimer:Yi,stopDoubleForward:Oi,toggleFullscreen:Vr,hideContextMenu:Zo,showHotKeyHelpers:Vo,showKeyMap:Zn,get isAds(){return r(Jn)},get fakePlayButtonHandler(){return r(es)},get nextButtonActive(){return jt()},get prevButtonActive(){return be()},children:(X,je)=>{var Bt=y5(),ri=me(Bt);Ra(ri,{get hideCursor(){return r(br)},onClick:Mo,onContextMenu:Rr,onMouseDown:_o,onMouseUp:In,onDblClick:Lo,get videoContainer(){return gt()},set videoContainer(Hi){gt(Hi)}});var Ci=A(ri,2);ca(Ci,()=>"slot",!1,(Hi,er)=>{ke(Hi,()=>({name:Va}))});var Ti=A(Ci,2);bs(Ti,Be,Hi=>{var er=$5(),Ei=me(er);let xi=g(()=>s()!=="thumb"||a()||so&&e.autoplay);Pa(Ei,{get hidden(){return r(xi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Bo=A(Ei,2);fv(Bo,{});var bo=A(Bo,2);vv(bo,{get isVisible(){return k()}});var Sr=A(bo,2);{var $o=Ze=>{let di=g(()=>{var Do;return(Do=e.live)==null?void 0:Do.startTime});zd(Ze,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(di)},onUpcomingLiveViewStateChanged:pn})};V(Sr,Ze=>{s()==="LiveWaitingStart"&&Ze($o)})}var tr=A(Sr,2);{var wt=Ze=>{La(Ze,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(tr,Ze=>{s()==="LiveWaitingRecover"&&Ze(wt)})}var $t=A(tr,2);{var po=Ze=>{La(Ze,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V($t,Ze=>{s()==="LiveWaitingRecord"&&Ze(po)})}var Xo=A($t,2);{var Zi=Ze=>{var di=g5();let Do;var is=_(di);ad(is,{get adsSlotId(){return ot()},get adsParams(){return Ut()},get adsAutoplayParam(){return Qt()},get duration(){return Yt()},get adsExternalApi(){return e.adsExternalApi}}),h(di),D(fn=>Do=re(di,1,"ads-container svelte-jtgjmv",null,Do,fn),[()=>({hidden:s()!=="ads"})]),$(Ze,di)};V(Xo,Ze=>{e.showAds&&Fe()&&Ze(Zi)})}var li=A(Xo,2);{var Ui=Ze=>{let di=g(()=>!Lt()&&e.showAutoplayNext&&T());Lf(Ze,{get title(){return Ie()},get thumb(){return ce()},get isHide(){return r(di)},clickCloseIcon:()=>N(Ao,!0)})};V(li,Ze=>{r(Gn)&&Ie()&&ce()&&Ze(Ui)})}var Ms=A(li,2);{var Br=Ze=>{let di=g(()=>!p());zm(Ze,{get title(){return e.title},get isHidden(){return r(di)},onVisibilityChanged:yi,get ref(){return r(qt)},set ref(Do){N(qt,Do,!0)}})};V(Ms,Ze=>{r(Qn)&&Ze(Br)})}var sc=A(Ms,2);{var Yu=Ze=>{let di=g(()=>s()==="video"&&p());Hd(Ze,{get isShifted(){return r(di)}})};V(sc,Ze=>{Z()&&Ze(Yu)})}var ac=A(sc,2);{var Zu=Ze=>{var di=h5(),Do=_(di);nd(Do,{get"aria-label"(){return Ke}}),h(di),$(Ze,di)};V(ac,Ze=>{G()&&Ze(Zu)})}var lc=A(ac,2);{var Xu=Ze=>{Ud(Ze,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ie()}})};V(lc,Ze=>{pe()&&Ze(Xu)})}var dc=A(lc,2);{var Ju=Ze=>{ka(Ze,{get shifted(){return p()},get captions(){return et()},get position(){return xe()},get playerSize(){return W()}})};V(dc,Ze=>{Oe().value!=="off"&&Ze(Ju)})}var cc=A(dc,2);{var ep=Ze=>{var di=_5();di.__contextmenu=Rr,di.__click=[v5,j,go,f,We,Zo];var Do=_(di);Aa(Do,{}),h(di),$(Ze,di)};V(cc,Ze=>{a()&&Ze(ep)})}var uc=A(cc,2);{var tp=Ze=>{let di=g(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),Do=g(()=>s()==="ads"),is=g(()=>e.canRewindLive&&te()!==0);Fd(Ze,{get bottomHidden(){return r(di)},get bottomNoSmooth(){return F()},get showControls(){return p()},get isAds(){return r(Do)},get canRewindLive(){return r(is)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Gt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Ae()},get nextButtonActive(){return jt()},get prevButtonActive(){return be()},get isOneVideoPlaylist(){return Ge()},customFullscreenSupported:_r,toggleFullscreen:Vr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(Ar)},set playerControlsWrapperRef(fn){N(Ar,fn,!0)},get playerControlsRef(){return r(an)},set playerControlsRef(fn){N(an,fn,!0)}})};V(uc,Ze=>{Fe()&&Ze(tp)})}var pc=A(uc,2);{var ip=Ze=>{var di=b5(),Do=_(di);let is=g(()=>{var fn;return(fn=r(an))==null?void 0:fn.clientHeight});qd(Do,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(is)},returnFocus:()=>{var fn;return(fn=yt())==null?void 0:fn.focus()},get ref(){return r(wn)},set ref(fn){N(wn,fn,!0)}}),h(di),$(Ze,di)};V(pc,Ze=>{!pe()&&s()!=="ads"&&Ze(ip)})}var fc=A(pc,2);let Oa=g(()=>!r(qn));cd(fc,{get isLive(){return Ce()},get isHidden(){return r(Oa)},get isPlaying(){return Ee()},get position(){return xe()},get duration(){return te()}});var mc=A(fc,2);Dm(mc,{get data(){return dn}});var wl=A(mc,2);Pf(wl,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ze;return(Ze=yt())==null?void 0:Ze.focus()},get visible(){return j()},get playerContainerRef(){return r(co)},get controlsContainerRef(){return r(Ar)},get position(){return qe()},get menuElementRef(){return r(Xn)},set menuElementRef(Ze){N(Xn,Ze,!0)}});var Sl=A(wl,2);{var op=Ze=>{Qd(Ze,{onClose:ut,onSelectAutoQuality:()=>{fr("auto"),ut()}})};V(Sl,Ze=>{r(Sn)&&Ze(op)})}var Cl=A(Sl,2);{var Tl=Ze=>{ya(Ze,{})};V(Cl,Ze=>{r(ai)&&Ze(Tl)})}var El=A(Cl,2);{var np=Ze=>{Bf(Ze,{})};V(El,Ze=>{it()&&Ze(np)})}var vc=A(El,2);{var rp=Ze=>{vd(Ze,{})};V(vc,Ze=>{ft()&&Ze(rp)})}$(Hi,er)}),$(X,Bt)},$$slots:{default:!0}}),X=>yt(X),()=>yt());var Ls=A(No,2);at(Ls,X=>N(ln,X),()=>r(ln)),h(Oo),at(Oo,X=>N(co,X),()=>r(co));var wr=A(Oo,2);{var ts=X=>{var je=x5();$(X,je)};V(wr,X=>{dt()&&X(ts)})}Et("mouseenter",Oo,Po),Et("mouseleave",Oo,Or),Et("click",Oo,kn,!0),Et("focusin",Oo,jn,!0),$(t,Ro),z(),o()}ct(["mousemove","contextmenu","click"]);import{clientChecker as jd,PlaybackState as V5}from"@vkontakte/videoplayer-core/es2015";import{noop as R5}from"@vkontakte/videoplayer-shared/es2015";var C5=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),T5=M("<div><!></div>"),E5={hash:"svelte-nhq2ld",code:`.double-click-area.svelte-nhq2ld {position:absolute;top:0;height:100%;width:25%;overflow:hidden;}.double-click-area.left.svelte-nhq2ld {left:0;}.double-click-area.right.svelte-nhq2ld {right:0;}.semicircle.svelte-nhq2ld {position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);}.semicircle.left.svelte-nhq2ld {left:0;border-top-right-radius:50%;border-bottom-right-radius:50%;}.semicircle.right.svelte-nhq2ld {right:0;border-top-left-radius:50%;border-bottom-left-radius:50%;}.info.svelte-nhq2ld {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center;}.triangles-wrapper.svelte-nhq2ld {position:relative;display:flex;margin-bottom:10px;justify-content:center;}.triangle.svelte-nhq2ld {width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;
|
|
354
|
+
}`};function gc(t,e){W(t,tw);let i=h(e,"isPrev",3,!1);var o=Fe(),r=fe(o);Cs(r,()=>e.Icon,s=>{var l=ew(),d=_(l);Vi(d,()=>e.Icon,(a,u)=>{u(a,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return i()}})}),g(l),D(()=>Je(l,`animation-duration: ${e.duration}ms`)),b(s,l)}),b(t,o)}import{PlaybackState as Q0}from"@vkontakte/videoplayer-core/es2015";var iw=M('<div class="container svelte-1sw36pi"><!></div>'),ow={hash:"svelte-1sw36pi",code:".container.svelte-1sw36pi {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}"};function Mm(t,e){F(e,!0),W(t,ow);let[i,o]=Be(),r=()=>S(a,"$playbackState$",i),s=()=>S(f,"$previewTrackActive",i),l=()=>S(v,"$previewTrackDragInProgress",i),d=()=>S(u,"$isPlaying$",i),{state:{playbackState$:a,isPlaying$:u},ui:{previewTrackActive:f,previewTrackDragInProgress:v}}=_e(),{features:{playbackStatusShow:p},playbackStatusAnimationDuration:x}=Rt(),w=0,y=j(null),C=j(!1);We(()=>{r()===Q0.PLAYING?O(y,cr,!0):r()===Q0.PAUSED?O(y,Rs,!0):O(y,null)}),We(()=>{if(!(!p||s()||l()))return w=window.setTimeout(()=>{w=0,O(y,null)},x),()=>{w&&(window.clearTimeout(w),w=0)}}),We(()=>{d()&&!n(C)&&(O(C,!0),O(y,null))});var T=Fe(),E=fe(T);{var R=A=>{var I=iw(),N=_(I);gc(N,{get duration(){return x},get Icon(){return n(y)}}),g(I),b(A,I)};V(E,A=>{n(y)&&p&&A(R)})}b(t,T),U(),o()}var nw=M('<div><div data-testid="video-container"></div></div>'),rw={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
|
|
355
|
+
.video-container.svelte-1czns9r {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1czns9r {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1czns9r {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1czns9r {transition:none;}.nocursor.svelte-1czns9r {cursor:none;}`};function Ya(t,e){F(e,!0),W(t,rw);let[i,o]=Be(),r=()=>S(f,"$rotateAlpha",i),s=()=>S(v,"$playerSize",i),l=()=>S(u,"$playerPhase",i),d=()=>S(p,"$isPlaying$",i),a=h(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:f,playerSize:v},state:{isPlaying$:p}}=_e(),{isSmoothVideoRotate:x}=Rt(),w=m(()=>a()&&r()%180?s().height/s().width:1);var y=nw();let C;y.__contextmenu=function(...R){var A;(A=e.onContextMenu)==null||A.apply(this,R)},y.__mousedown=function(...R){var A;(A=e.onMouseDown)==null||A.apply(this,R)},y.__mouseup=function(...R){var A;(A=e.onMouseUp)==null||A.apply(this,R)},y.__click=function(...R){var A;(A=e.onClick)==null||A.apply(this,R)},y.__dblclick=function(...R){var A;(A=e.onDblClick)==null||A.apply(this,R)};var T=_(y);let E;at(T,R=>a(R),()=>a()),g(y),D((R,A)=>{C=re(y,1,"video-wrapper svelte-1czns9r",null,C,R),E=re(T,1,"video-container svelte-1czns9r",null,E,A),Je(T,`transform: rotate(${r()}deg) scale(${n(w)})`),Ke(T,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!x})]),b(t,y),U(),o()}dt(["contextmenu","mousedown","mouseup","click","dblclick"]);var sw=Ie('<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 Lm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=sw();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var aw=M('<div><span class="text svelte-1gi6268"> </span> <!></div>'),lw={hash:"svelte-1gi6268",code:".root.svelte-1gi6268 {padding:6px 12px;gap:4px;background-color:var(--double-forward-bg);color:var(--white);display:flex;border-radius:100px;position:absolute;top:24px;left:50%;transform:translateX(-50%);transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);visibility:hidden;opacity:0;pointer-events:none;}.root.visible.svelte-1gi6268 {transform:translateX(-50%);visibility:visible;opacity:1;}.text.svelte-1gi6268 {font-size:13px;line-height:16px;font-weight:600;}"};function Vm(t,e){F(e,!0),W(t,lw);let{ui:{t:i}}=_e();var o=aw();let r;var s=_(o),l=_(s,!0);g(s);var d=P(s,2);Lm(d,{}),g(o),D((a,u)=>{r=re(o,1,"root svelte-1gi6268",null,r,a),me(l,u)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),b(t,o),U()}var dw=M('<div class="container svelte-1k32wyl" role="button"><div class="icon svelte-1k32wyl"><!></div></div>'),cw={hash:"svelte-1k32wyl",code:".container.svelte-1k32wyl {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;background-color:rgba(0, 0, 0, 0.48);cursor:pointer;}.icon.svelte-1k32wyl {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;transition:transform 0.2s;transition-timing-function:ease-out;will-change:transform;}.container.svelte-1k32wyl:hover .icon:where(.svelte-1k32wyl) {transform:scale(1.15);}"};function Rm(t,e){F(e,!1),W(t,cw);let o=_e().actions.internal.closePreviewTrack,r=200,s=u=>{u.stopPropagation(),o()};Go();var l=dw();l.__click=s;var d=_(l),a=_(d);return cr(a,{width:"40",height:"40",viewBox:"0 0 24 24"}),g(d),g(l),Zr(3,l,()=>vs,()=>({duration:r})),b(t,l),lf(e,"handleClick",s),U({handleClick:s})}dt(["click"]);var uw=M('<div class="container svelte-17g9o6z"><div class="notification svelte-17g9o6z"><span class="text svelte-17g9o6z"> </span></div></div>'),pw={hash:"svelte-17g9o6z",code:`.container.svelte-17g9o6z {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
|
|
356
|
+
/**
|
|
357
|
+
* \u0415\u0441\u043B\u0438 \u043D\u0435 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u043C \u0443 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 \u0441\u043E\u0431\u044B\u0442\u0438\u044F, \u0442\u043E \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u043C \u043F\u043E \u044D\u0442\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0432\u044B\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E.
|
|
358
|
+
*/pointer-events:none;}.notification.svelte-17g9o6z {padding:10px 16px;background-color:var(--black-alpha-40);border-radius:var(--notification-radius);}.text.svelte-17g9o6z {line-height:18px;font-size:14px;font-weight:500;}`};function Om(t,e){F(e,!1),W(t,pw);let{ui:{t:i}}=_e();Go();var o=uw(),r=_(o),s=_(r),l=_(s,!0);g(s),g(r),g(o),D(d=>me(l,d),[()=>i("preview_track_notification_text")],Sn),Zr(3,r,()=>vs,()=>({duration:340})),b(t,o),U()}var fw=(t,e,i,o,r,s)=>{if(t.stopPropagation(),e()||o()){s();return}},vw=M("<div><!></div>"),mw=M('<div class="spherical-video-icon svelte-nqua3g"><!></div>'),gw=M("<div><!></div>"),hw=M('<div class="settings-menu svelte-nqua3g"><!></div>'),_w=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),bw=M("<!> <!> <!>",1),$w=M('<div class="blocked svelte-nqua3g"></div>'),yw=M('<div class="player-wrapper svelte-nqua3g"><!> <div class="overlay-container"></div></div> <!>',1),xw={hash:"svelte-nqua3g",code:".player-wrapper.svelte-nqua3g {position:absolute;width:100%;height:100%;}.blocked.svelte-nqua3g {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-nqua3g .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-nqua3g {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-nqua3g {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-nqua3g {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-nqua3g {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s;}"};function Nm(t,e){F(e,!0),W(t,xw);let[i,o]=Be(),r=()=>S(vi,"$notificationsToShow$",i),s=()=>S(ui,"$playerPhase",i),l=()=>S(wo,"$isLoaderVisible",i),d=()=>S(yi,"$adPlaybackState",i),a=()=>S(oi,"$crashed",i),u=()=>S(ao,"$isInteractiveTime$",i),f=()=>S(Tt,"$settingsMenuVisible",i),v=()=>S(Ui,"$isInteractiveExpectation$",i),p=()=>S(Yt,"$controlsVisible",i),x=()=>S(mo,"$touched",i),w=()=>S(Ar,"$graphIsOpened$",i),y=()=>S(mt,"$isFullscreen",i),C=()=>S(ms,"$autoplayNextEnabled$",i),T=()=>S(Ht,"$postrollPassed",i),E=()=>S(Zo,"$isEnded$",i),R=()=>S(_o,"$cursorInside",i),A=()=>S(So,"$isControlsAvailable",i),I=()=>S(Ro,"$doubleForwardOn$",i),N=()=>S(Ir,"$fakeIsPlaying$",i),H=()=>S(Vn,"$bottomNoSmooth",i),B=()=>S(Vo,"$interactiveTimeIndicator",i),z=()=>S(Oi,"$playerSize",i),X=()=>S(Fi,"$is3DVideo",i),le=()=>S(fn,"$doubleForwardAvailable$",i),q=()=>S(Ye,"$contextMenuVisible$",i),ce=()=>S(mi,"$playbackState$",i),J=()=>S(go,"$hotKeyMapData",i),ve=()=>S(Zt,"$scrubbingInProgress",i),se=()=>S(St,"$volumeChangingInProgress",i),de=()=>S(un,"$chromecastConnected$",i),Le=()=>S(No,"$controlsTimeoutActive",i),Se=()=>S(ni,"$settingsMenuOpenedByKeyboard",i),ie=()=>S(Fr,"$contextMenuOpenedByKeyboard$",i),Ne=()=>S(Jt,"$contextMenuOpenedByHotKey$",i),pe=()=>S(is,"$contextMenuButtonRef$",i),k=()=>S(hi,"$contextMenuLastActiveElem$",i),qe=()=>S(Pi,"$isFullscreenOpenedByKeyboard",i),Re=()=>S(ai,"$language$",i),Z=()=>S(yn,"$previewTrackActive$",i),ne=()=>S(Xo,"$icon3DVideoVisible",i),He=()=>S(kt,"$chromecastDeviceName$",i),Ze=()=>S(Gt,"$currentSubtitle$",i),ge=()=>S(pt,"$currentSubtitleCaptions$",i),ee=()=>S(so,"$position$",i),ke=()=>S(vo,"$duration$",i),he=()=>S(K,"$isLive$",i),Ue=()=>S(Vt,"$isPlaying$",i),Xe=()=>S(fr,"$contextMenuPosition$",i),Ge=()=>S(An,"$previewTrackNotificationVisible$",i),ct=()=>S(Ni,"$showHotKeyMap",i),et=()=>S(xi,"$debugPanelVisible",i),Bt=()=>S(ts,"$userActionsDisabled$",i),rt=h(e,"videoContainer",15),Dt=h(e,"adsSlotId",3,void 0),Qt=h(e,"adsParams",3,void 0),Et=h(e,"adsAutoplayParam",3,void 0),ti=h(e,"duration",3,void 0),Wt=h(e,"logoTargetUrl",3,""),Ce=h(e,"showNextPrevButtons",3,!1),we=h(e,"nextButtonActive",3,!1),te=h(e,"prevButtonActive",3,!1),Te=h(e,"endScreenVideoTitle",3,void 0),Me=h(e,"endScreenVideoThumb",3,void 0),It=h(e,"isOneVideoPlaylist",3,!1),De=h(e,"shadowRootContainer",3,void 0),ut=h(e,"outerContainerRef",3,void 0),$t=h(e,"playerStarted",3,!1),xe=h(e,"fullScreenTarget",3,void 0),ot=h(e,"showMiniTimer",3,!1),Qe=h(e,"showEndScreen",3,!0),lt=h(e,"keyboardControls",15),ii=e.store.getLogger().createComponentLog("Root component"),ai=e.store.interfaceLanguage$,mi=e.store.state.playbackState$,yi=e.store.ads.playbackState,so=e.store.state.positionWithScrubbing$,vo=e.store.state.duration$,ui=e.store.playerPhase,mt=e.store.ui.isFullscreen,Pi=e.store.ui.isFullscreenOpenedByKeyboard,Yt=e.store.ui.controlsVisible,Tt=e.store.ui.settingsMenu.visible$,ni=e.store.ui.settingsMenu.openedByBtnKeyboard$,Zt=e.store.ui.scrubbingInProgress,St=e.store.ui.volumeChangingInProgress,Ye=e.store.ui.contextMenu.visible$,xi=e.store.ui.debugPanelVisible,wo=e.store.state.isLoaderVisible,Zo=e.store.state.isEnded$,un=e.store.state.chromecastConnected$,kt=e.store.state.chromecastDeviceName$,Ht=e.store.ads.postrollPassed,K=e.store.state.isLive$,Vt=e.store.state.isPlaying$,oi=e.store.state.crashed$,ft=e.store.webApi.annotationsApi,At=e.store.webApi.pictureInPictureApi,Gt=e.store.state.currentSubtitle$,pt=e.store.state.currentSubtitleCaptions$,Oi=e.store.ui.playerSize,Fi=e.store.ui.is3DVideo,Xo=e.store.ui.icon3DVideoVisible,Lo=e.store.state.isInteractive,ao=e.store.state.isInteractiveTime$,Ui=e.store.state.isInteractiveExpectation$,ur=e.store.state.hasInteractiveBranches,mo=e.store.ui.touched,go=e.store.ui.modals.hotKeyMap.data,Ni=e.store.ui.modals.hotKeyMap.show,pn=e.store.ui.overlayContainer$,Vo=e.store.ui.controls.interactiveTimeIndicator,pr=e.store.state.showInteractiveTimeIndicator,fr=e.store.ui.contextMenu.position$,Tr=e.store.actions.internal.setQuality,es=e.store.actions.internal.closeSettingsMenu,ms=e.store.ui.autoplayNextEnabled$,ts=e.store.ui.userActionsDisabled,So=e.store.ui.isControlsAvailable,qn=e.store.ui.videoTitleInfo,Ro=e.store.ui.doubleForwardOn$,fn=e.store.ui.doubleForwardAvailable$,An=e.store.ui.previewTrackNotificationVisible,vr=e.store.actions.internal.getVideoElement,Er=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:Ir,notifications$:kr,graphIsOpened$:Ar}=xo(),Gi=j(void 0),Pr=j(void 0),Pn=j(void 0),vn=j(void 0),ho,mr,Mn;go.set(F1());let{closeNotification:gt,notificationsToShow$:vi}=kr,Mr=m(()=>!!r().slow_video),Qn=()=>gt("slow_video"),Lr=m(()=>(s()==="video"&&l()||s()==="ads"&&d()==="inactive")&&!a()),Ln=j(void 0),Vn=ae(!1),Oo,No=ae(!1),mn=ae(),_o=ae(!1),Do=j(!1),Jo=j(!1),gr=j(!1),Vr=j(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),gn=m(()=>u()&&!f()&&!(n(Do)||n(Jo))&&!(n(gr)&&!v())),zi=!0,hr=m(()=>e.uiConfig.features.thumbTimer&&ot()&&s()==="video"&&!p()&&!a()&&!Lo&&(e.uiConfig.hideThumbTimerAfterTouch&&!x()||!e.uiConfig.hideThumbTimerAfterTouch)),Rr=m(()=>s()==="video"&&!w()&&y()),Rn=j(!1),jn=m(()=>(Qe()||e.showAutoplayNext&&C())&&!!Te()&&!!Me()&&(e.showAds&&T()||!e.showAds)&&E()&&!a()&&!n(Rn)),Or=m(()=>R()&&!(p()||n(jn))&&!u()&&A()&&!I()),Gn=j(!1),it=m(()=>N()!==null),{toggle:gi}=Ir,Di=!1,Yi=null;At==null||At.setContext(td());let Bo=()=>{e.autoplay&&!Lo&&e.uiConfig.controls.showOnStartupAtAutoplay&&ki(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Bo});let en=()=>{window.clearTimeout(ho),No.set(!1)},lo=()=>{window.clearTimeout(mr),mn.set(null)},ki=ye=>{en(),No.set(!0),ho=window.setTimeout(()=>No.set(!1),ye);let vt=ye-100;Oo=window.setTimeout(()=>{H()&&Vn.set(!1)},vt>0?vt:ye)},Zi=(ye,vt)=>{lo(),mn.set(vt),mr=window.setTimeout(()=>mn.set(null),ye)},bo=Fi.subscribe(ye=>{Xo.set(ye),ye&&(window.clearTimeout(Mn),Mn=window.setTimeout(()=>Xo.set(!1),e.uiConfig.controls.hide360IconTimeout))}),hn=()=>yt(null,null,function*(){var vt,li,Si,fi;let ye=Zs();if(ye){let ei=Id(),Ei=Dr();ye=ei===Ei||ei===De()}if(ye){ki(e.uiConfig.controls.hideTimeoutFullscreen);try{yield At==null?void 0:At.exit()}catch(ei){ii({message:String(ei)})}}mt.set(ye),e.store.getAdmanWrapper().setFullscreen(ye),y()?(li=(vt=e.store.callbacks)==null?void 0:vt.onFullscreenEnter)==null||li.call(vt):(fi=(Si=e.store.callbacks)==null?void 0:Si.onFullscreenExit)==null||fi.call(Si)}),Yn=ye=>{let{width:vt,height:li}=ye.target;Oi.set({width:vt,height:li})},Nr=()=>{let{width:ye,height:vt}=n(Gi).getBoundingClientRect();Oi.set({width:ye,height:vt})};Nt(()=>{var vt;return Eu(hn),e.uiConfig.features.annotationsInside&&(ft==null||ft.init(n(Gi))),Ma(At)&&(At==null||At.assignPlayerContainer(n(Gi)),At==null||At.setExternalEventHandlers({resize:Yn,leavepictureinpicture:Nr})),e.interactiveContainer&&((vt=rt().parentElement)==null||vt.insertBefore(e.interactiveContainer,rt().nextSibling)),()=>{window.clearTimeout(ho),window.clearTimeout(Oo),window.clearTimeout(mr),window.clearTimeout(Mn),bo(),At==null||At.dispose().catch(li=>{ii({message:String(li)})}),Iu(hn)}});let Dr=()=>{let ye=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!ut()?n(Gi):ut(),vt=ye.getRootNode(),li=vt instanceof ShadowRoot?vt.host:vt,Si=xe()instanceof HTMLElement&&xe().contains(li);return e.uiConfig.allowChangingFullscreenTarget&&xe()&&Si?xe():ye},_n=()=>{Ye.set(!1)},bn=()=>{es(),_n()},_r=()=>yt(null,null,function*(){if(!Er()){ii({message:"fullscreen disabled"});return}_n(),Zs()?(yield Tu(document),ii({message:"exit fullscreen"})):(ii({message:"request fullscreen"}),yield Cu(Dr()))}),$n=ye=>{w()||(ye.preventDefault(),Ye.set(!0),fr.set({left:ye.clientX,top:ye.clientY}))};function Br(){_o.set(!0),Lo||ki(e.uiConfig.controls.hideTimeoutCursor)}function tt(ye){var fi,ei;let{relatedTarget:vt}=ye,Si=!!(vt&&((fi=n(Pn))!=null&&fi.contains(vt)))&&((ei=lt())==null?void 0:ei.isFocused());!Lo&&!Si&&(Vn.set(!0),ki(e.uiConfig.controls.hideTimeoutCursor))}function Mt(){_o.set(!1),O(Jo,!1),O(Do,!1),Di=!1,e.store.actions.internal.releaseCamera(),ki(e.uiConfig.controls.hideTimeout),I()&&Fo()}function wi(ye){return ye?ye.offsetTop+wi(ye.offsetParent):0}function $o(ye){return ye?ye.offsetLeft+$o(ye.offsetParent):0}function Ho(ye){if(B()&&pr){let vt=ye.currentTarget,li=wi(vt),Si=$o(vt),fi=ye.pageX-Si,ei=ye.pageY-li,{left:Ei,bottom:wn,right:nn}=B(),Li=nn-Ei;return fi>=Ei-Li&&ei<=wn+Li}}function Co(ye){if(n(Gi)){let vt=wi(ye.currentTarget),li=z().height,Si=ye.pageY-vt;if(Ho(ye)){O(Jo,!1);return}Si<40?O(Jo,!0):Si>li-40?O(Do,!0):(O(Jo,!1),f()||O(Do,!1))}}function Xi(ye){Co(ye),!n(gn)&&!I()&&ki(e.uiConfig.controls.hideTimeoutCursor),X()&&Di&&Yi&&e.store.actions.internal.moveCameraFocusPX(Yi.clientX-ye.clientX,Yi.clientY-ye.clientY,ye.timeStamp-Yi.timeStamp),Yi=ye}let Mi=null,tn=()=>{Mi=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),en()},e.uiConfig.doubleForwardActivationTime)},Fo=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),Mi&&clearTimeout(Mi),Mi=null},To=ye=>{ye.preventDefault(),ye.button===0&&(Di=!0,e.store.actions.internal.holdCamera(),le()&&tn()),!Di&&ki(e.uiConfig.controls.hideTimeoutCursor)},Ji=ye=>{ye.preventDefault(),ye.button===0&&(Yi=ye,Di=!1,e.store.actions.internal.releaseCamera()),!I()&&ki(e.uiConfig.controls.hideTimeoutCursor)},Hr=ye=>{ye.preventDefault(),zi&&(ii({message:"double click on video"}),_r(),ki(e.uiConfig.controls.hideTimeoutCursor))},Zn=ye=>{var vt;if(ye.preventDefault(),I()){Fo();return}if(Mi&&Fo(),q()||f()){bn();return}if(!(E()&&!ur)){if(n(it))return gi();if((vt=lt())==null||vt.focus(),!$t()){e.firstStart(),ki(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||ce()!==G0.PLAYING)&&e.store.actions.internal.togglePlay(),ki(e.uiConfig.controls.hideTimeoutCursor)}},Xn=ye=>{bn(),mo.set(!0),ki(e.uiConfig.controls.hideTimeout),ye&&Zi(e.uiConfig.controls.hideHotKeyHelpers,ye)},br=()=>{var ye,vt;bn(),(ye=e.store.callbacks)!=null&&ye.onOpenHotKeyMap?(vt=e.store.callbacks)==null||vt.onOpenHotKeyMap(J()):Ni.update(li=>!li)},gs=()=>{mo.set(!0)},Fr=e.store.ui.contextMenu.openedByBtnKeyboard$,is=e.store.ui.contextMenu.btnRef$,je=j(void 0),Jt=e.store.ui.contextMenu.openedByHotKey$,hi=e.store.ui.contextMenu.lastActiveElem$,yn=e.store.ui.previewTrackActive;We(()=>{pn.set(n(Ln))}),We(()=>{O(gr,n(Vr)&&ce()!==G0.PLAYING,!0),n(Vr)||Pt(()=>O(Vr,!0))}),We(()=>{var vt,li;let ye=(n(gr)||E()||f()||ve()||se()||de()||Le())&&!n(gn)&&(s()==="video"||s()==="ads")&&!a()&&A();Yt.set(ye),!ye&&!Le()&&e.uiConfig.returnFocusOnControlsHide&&((vt=n(Pn))!=null&&vt.contains(Ru()))&&((li=lt())==null||li.focus())}),We(()=>{!ve()&&n(Gn)&&!u()&&ki(e.uiConfig.controls.hideTimeoutCursor),Pt(()=>O(Gn,ve(),!0))}),We(()=>{n(vn),f(),Se(),Pt(()=>Rd(n(vn),f(),Se()))}),We(()=>{n(je),q(),ie(),Ne(),Pt(()=>{let ye=ie()||Ne();Rd(n(je),q(),ye)})}),We(()=>{let ye=pe();ye&&(q(),Pt(()=>Ml(ye,q(),Fr)))}),We(()=>{let ye=k();ye&&(q(),Pt(()=>j1(ye,q(),Jt)))}),We(()=>{var ye;!qe()&&y()&&(Pt(()=>Pi.set(!1)),(ye=lt())==null||ye.focus())}),We(()=>{w()&&bn()});let Uo=Y("video360"),Ur=j(void 0),on=ye=>{qn.set(Wn(vr(),{title:n(Ur)},"title",ye))},zr=(ye,vt)=>{var ei,Ei;let li=(Ei=(ei=e.store.callbacks)==null?void 0:ei.uiInfo)==null?void 0:Ei.onUpcomingLiveViewStateChanged;if(!li)return;let Si=!!vt,fi=Q(Q({},Wn(n(Gi),{upcomingLiveScreen:vt},"upcomingLiveScreen",Si)),ye);li(fi)};var Ds=yw();Ct("blur",$a,bn);var eo=fe(Ds);eo.__mousemove=Xi;var Wr=_(eo);let na=m(()=>s()==="ads"),ht=m(()=>n(it)?gi:void 0);at(Qf(Wr,{startDoubleForwardActivationTimer:tn,stopDoubleForward:Fo,toggleFullscreen:_r,hideContextMenu:bn,showHotKeyHelpers:Xn,showKeyMap:br,get isAds(){return n(na)},get fakePlayButtonHandler(){return n(ht)},get nextButtonActive(){return we()},get prevButtonActive(){return te()},children:(ye,vt)=>{var li=bw(),Si=fe(li);Ya(Si,{get hideCursor(){return n(Or)},onClick:Zn,onContextMenu:$n,onMouseDown:To,onMouseUp:Ji,onDblClick:Hr,get videoContainer(){return rt()},set videoContainer(Ei){rt(Ei)}});var fi=P(Si,2);Ta(fi,()=>"slot",!1,(Ei,wn)=>{Ae(Ei,()=>({name:Ga}))});var ei=P(fi,2);Cs(ei,Re,Ei=>{var wn=_w(),nn=fe(wn);let Li=m(()=>s()!=="thumb"||a()||Lo&&e.autoplay);qa(nn,{get hidden(){return n(Li)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart},onContextMenu:$n,onClick:_n});var Za=P(nn,2);{var ra=ze=>{Rm(ze,{})};V(Za,ze=>{Z()&&ze(ra)})}var sa=P(Za,2);Mm(sa,{});var aa=P(sa,2);Vm(aa,{get isVisible(){return I()}});var Jn=P(aa,2);{var hs=ze=>{let bi=m(()=>{var co;return(co=e.live)==null?void 0:co.startTime});uc(ze,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(bi)},onUpcomingLiveViewStateChanged:zr,onContextMenu:$n,onClick:_n})};V(Jn,ze=>{s()==="LiveWaitingStart"&&ze(hs)})}var la=P(Jn,2);{var $r=ze=>{Qa(ze,{kind:"recover",get thumbUrl(){return e.thumbUrl},onContextMenu:$n,onClick:_n})};V(la,ze=>{s()==="LiveWaitingRecover"&&ze($r)})}var Xa=P(la,2);{var _s=ze=>{Qa(ze,{kind:"record",get thumbUrl(){return e.thumbUrl},onContextMenu:$n,onClick:_n})};V(Xa,ze=>{s()==="LiveWaitingRecord"&&ze(_s)})}var bs=P(Xa,2);{var Ja=ze=>{var bi=vw();let co;var pa=_(bi);Ad(pa,{get adsSlotId(){return Dt()},get adsParams(){return Qt()},get adsAutoplayParam(){return Et()},get duration(){return ti()},get adsExternalApi(){return e.adsExternalApi}}),g(bi),D(rn=>co=re(bi,1,"ads-container svelte-nqua3g",null,co,rn),[()=>({hidden:s()!=="ads"})]),b(ze,bi)};V(bs,ze=>{e.showAds&&$t()&&ze(Ja)})}var da=P(bs,2);{var Ql=ze=>{let bi=m(()=>!Qe()&&e.showAutoplayNext&&C());Wf(ze,{get title(){return Te()},get thumb(){return Me()},get isHide(){return n(bi)},clickCloseIcon:()=>O(Rn,!0)})};V(da,ze=>{n(jn)&&Te()&&Me()&&ze(Ql)})}var el=P(da,2);{var jl=ze=>{let bi=m(()=>!p());lm(ze,{get title(){return e.title},get isHidden(){return n(bi)},onVisibilityChanged:on,get ref(){return n(Ur)},set ref(co){O(Ur,co,!0)}})};V(el,ze=>{n(Rr)&&ze(jl)})}var er=P(el,2);{var Gl=ze=>{let bi=m(()=>s()==="video"&&p());dc(ze,{get isShifted(){return n(bi)}})};V(er,ze=>{X()&&ze(Gl)})}var tl=P(er,2);{var il=ze=>{var bi=mw(),co=_(bi);Ed(co,{get"aria-label"(){return Uo}}),g(bi),b(ze,bi)};V(tl,ze=>{ne()&&ze(il)})}var ca=P(tl,2);{var _t=ze=>{cc(ze,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return He()}})};V(ca,ze=>{de()&&ze(_t)})}var bt=P(ca,2);{var to=ze=>{Wa(ze,{get shifted(){return p()},get captions(){return ge()},get position(){return ee()},get playerSize(){return z()}})};V(bt,ze=>{Ze().value!=="off"&&ze(to)})}var Eo=P(bt,2);{var io=ze=>{var bi=gw();bi.__contextmenu=$n,bi.__click=[fw,q,Ye,f,Tt,bn];var co=_(bi);Ka(co,{}),g(bi),b(ze,bi)};V(Eo,ze=>{a()&&ze(io)})}var _i=P(Eo,2);{var Wi=ze=>{let bi=m(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),co=m(()=>s()==="ads"),pa=m(()=>e.canRewindLive&&ke()!==0);lc(ze,{get bottomHidden(){return n(bi)},get bottomNoSmooth(){return H()},get showControls(){return p()},get isAds(){return n(co)},get canRewindLive(){return n(pa)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Wt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Ce()},get nextButtonActive(){return we()},get prevButtonActive(){return te()},get isOneVideoPlaylist(){return It()},customFullscreenSupported:zi,toggleFullscreen:_r,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return n(Pr)},set playerControlsWrapperRef(rn){O(Pr,rn,!0)},get playerControlsRef(){return n(Pn)},set playerControlsRef(rn){O(Pn,rn,!0)}})};V(_i,ze=>{$t()&&ze(Wi)})}var Bs=P(_i,2);{var Yl=ze=>{var bi=hw(),co=_(bi);let pa=m(()=>{var rn;return(rn=n(Pn))==null?void 0:rn.clientHeight});vc(co,{get supportLink(){return e.supportLink},get playerControlsHeight(){return n(pa)},returnFocus:()=>{var rn;return(rn=lt())==null?void 0:rn.focus()},get ref(){return n(vn)},set ref(rn){O(vn,rn,!0)}}),g(bi),b(ze,bi)};V(Bs,ze=>{!de()&&s()!=="ads"&&ze(Yl)})}var Ic=P(Bs,2);let vp=m(()=>!n(hr));Ld(Ic,{get isLive(){return he()},get isHidden(){return n(vp)},get isPlaying(){return Ue()},get position(){return ee()},get duration(){return ke()}});var ua=P(Ic,2);nm(ua,{get data(){return mn}});var kc=P(ua,2);zf(kc,{get supportLink(){return e.supportLink},returnFocus:()=>{var ze;return(ze=lt())==null?void 0:ze.focus()},get visible(){return q()},get playerContainerRef(){return n(Gi)},get position(){return Xe()},get menuElementRef(){return n(je)},set menuElementRef(ze){O(je,ze,!0)}});var Hs=P(kc,2);{var ol=ze=>{mc(ze,{onClose:Qn,onSelectAutoQuality:()=>{Tr("auto"),Qn()}})};V(Hs,ze=>{n(Mr)&&ze(ol)})}var Ac=P(Hs,2);{var Pc=ze=>{Om(ze,{})};V(Ac,ze=>{Ge()&&ze(Pc)})}var nl=P(Ac,2);{var Mc=ze=>{Oa(ze,{})};V(nl,ze=>{n(Lr)&&ze(Mc)})}var Lc=P(nl,2);{var Vc=ze=>{Yf(ze,{})};V(Lc,ze=>{ct()&&ze(Vc)})}var mp=P(Lc,2);{var gp=ze=>{Dd(ze,{})};V(mp,ze=>{et()&&ze(gp)})}b(Ei,wn)}),b(ye,li)},$$slots:{default:!0}}),ye=>lt(ye),()=>lt());var pi=P(Wr,2);at(pi,ye=>O(Ln,ye),()=>n(Ln)),g(eo),at(eo,ye=>O(Gi,ye),()=>n(Gi));var yo=P(eo,2);{var xn=ye=>{var vt=$w();b(ye,vt)};V(yo,ye=>{Bt()&&ye(xn)})}Ct("mouseenter",eo,Br),Ct("mouseleave",eo,Mt),Ct("click",eo,gs,!0),Ct("focusin",eo,tt,!0),b(t,Ds),U(),o()}dt(["mousemove","contextmenu","click"]);import{clientChecker as hc,PlaybackState as Mw}from"@vkontakte/videoplayer-core/es2015";import{noop as Lw}from"@vkontakte/videoplayer-shared/es2015";var ww=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),Sw=M("<div><!></div>"),Cw={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;
|
|
348
359
|
animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
|
|
349
360
|
.triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
|
|
350
361
|
.triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
|
|
@@ -360,7 +371,7 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},l1=mb;var w
|
|
|
360
371
|
100% {
|
|
361
372
|
opacity: 0;
|
|
362
373
|
}
|
|
363
|
-
}.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 Du(t,e){U(e,!0),q(t,E5);let i=v(e,"seekStep",3,0),o=J(!1),n=0,s=0,l=J(ei(i())),d=m=>{m.stopPropagation(),s+=1,N(l,i()*(s-1)),s===1?e.handleSingleFirstClick(m):(N(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{s=0,N(o,!1)},300)};on(()=>{window.clearTimeout(n)});var a=T5();a.__click=d;var u=_(a);{var f=m=>{var p=C5(),x=me(p),w=A(x,2),y=_(w),T=_(y),C=A(T,2),E=A(C,2);h(y);var R=A(y,2),I=_(R,!0);h(R),h(w),D(k=>{var B,F,H,W;re(x,1,`semicircle ${(B=e.side)!=null?B:""}`,"svelte-nhq2ld"),re(T,1,`triangle ${(F=e.side)!=null?F:""}`,"svelte-nhq2ld"),re(C,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),re(E,1,`triangle ${(W=e.side)!=null?W:""}`,"svelte-nhq2ld"),ge(I,k)},[()=>Q("doubletap_seek_step",{seconds:r(l).toFixed(0)})]),$(m,p)};V(u,m=>{r(o)&&m(f)})}h(a),D(()=>{var m;return re(a,1,`double-click-area ${(m=e.side)!=null?m:""}`,"svelte-nhq2ld")}),$(t,a),z()}ct(["click"]);var I5=(t,e,i)=>{e(!1),i()},k5=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),A5={hash:"svelte-1qdxi6t",code:".overlay.svelte-1qdxi6t {width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute;}.next-video.svelte-1qdxi6t {position:absolute;top:50%;left:50%;z-index:var(--end-screen-mobile-z-index);transform:translate(-50%, -50%);display:flex;flex-direction:column;max-width:362px;min-width:320px;margin:0 auto;padding-bottom:12px;}.top.svelte-1qdxi6t {display:flex;justify-content:space-between;}.caption.svelte-1qdxi6t {font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8;}.row.svelte-1qdxi6t {height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%;}.column.svelte-1qdxi6t {display:flex;flex-direction:column;flex-basis:50%;}.thumb.svelte-1qdxi6t {width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around;}.thumb-overlay.svelte-1qdxi6t {width:100%;height:100%;position:absolute;}.thumb-overlay.withOpacity.svelte-1qdxi6t {background:var(--black);opacity:0.3;}.title.svelte-1qdxi6t {padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden;}"};function hv(t,e){U(e,!0),q(t,A5);let[i,o]=De(),n=()=>S(d,"$autoplayNextEnabled$",i),s=()=>S(a,"$timerNextVideoRunning$",i),l=Te(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,m=l.actions.internal.nextVideoAnnouncementClick,p=l.actions.internal.nextVideoAnnouncementAuto,x=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{u(!1),p()},y=()=>{e.clickCloseIcon(),x()};Mt(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var T=He(),C=me(T);{var E=R=>{var I=k5(),k=A(me(I),2),B=_(k),F=_(B),H=_(F,!0);h(F);var W=A(F,2);ba(W,{onClick:y}),h(B);var Z=A(B,2);Z.__click=[I5,u,m];var ne=_(Z),j=_(ne),_e=_(j);let ee;var fe=A(_e,2);{var ve=de=>{gd(de,{get isRunning(){return s()},onTimerEnded:w})};V(fe,de=>{n()&&de(ve)})}h(j),h(ne);var pe=A(ne,2),Me=_(pe),Ve=_(Me,!0);h(Me),h(pe),h(Z),h(k),D((de,Ne)=>{ge(H,de),lt(j,`background-image: url('${e.thumb}')`),ee=re(_e,1,"thumb-overlay svelte-1qdxi6t",null,ee,Ne),ge(Ve,e.title)},[()=>n()?Q("end_screen_next_video"):Q("end_screen_recommended_video"),()=>({withOpacity:n()})]),$(R,I)};V(C,R=>{e.isHide||R(E)})}$(t,T),z(),o()}ct(["click"]);import{clientChecker as P5}from"@vkontakte/videoplayer-core/es2015";var T0=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Mt(()=>{P5.device.isIOS&&(o=setTimeout(()=>{let s=t().querySelector("video");if(!s)return;let l=()=>e(!0),d=()=>e(!1);s.addEventListener("webkitbeginfullscreen",l),s.addEventListener("webkitendfullscreen",d),i=()=>{s.removeEventListener("webkitbeginfullscreen",l),s.removeEventListener("webkitendfullscreen",d)}},0))}),on(()=>{i==null||i(),clearTimeout(o)})};import{VideoFormat as L5}from"@vkontakte/videoplayer-core/es2015";var Fu=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};import{clientChecker as M5}from"@vkontakte/videoplayer-core/es2015";var E0=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:s,currentFormat$:l,availableTextTracks$:d}=t.state,a=null,u=()=>e().querySelector("video"),f=()=>M5.device.isIOS&&ye(l)===L5.DASH_LIVE_CMAF,m=()=>{a==null||a(),a=null},p=x=>{if(m(),!f()||!x)return;let w=u();if(!w)return;let y=new Fu(w),T=ye(d),C=ye(s),E=ye(n);for(let k of T)C.some(F=>F.value===k.id)&&y.attach(k,E.value===k.id);let R=d.subscribe(k=>{for(let B of k)y.updateSrc(B)}),I=()=>{let k=y.getCurrentShowingId();o(ye(s).find(B=>B.value===k))};w.textTracks.addEventListener("change",I),a=()=>{R(),y.detachAll(),w.textTracks.removeEventListener("change",I)}};Mt(()=>i.subscribe(p)),on(m)};var O5=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},N5=M("<!> <!>",1),B5=M("<div><!></div>"),D5=M('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),F5=M("<div><!></div>"),H5=M('<div class="settings-mobile svelte-7yl31d"><!></div>'),U5=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),z5=M('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),W5={hash:"svelte-7yl31d",code:".player-wrapper.svelte-7yl31d {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-7yl31d .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-7yl31d {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-7yl31d {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-7yl31d {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-7yl31d {position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%;}"};function _v(t,e){var $r,Tn;U(e,!0),q(t,W5);let[i,o]=De(),n=()=>S(Fe,"$playerPhase",i),s=()=>S(mo,"$isLoaderVisible",i),l=()=>S(Ge,"$adPlaybackState",i),d=()=>S(go,"$crashed",i),a=()=>S(Yr,"$notificationsToShow$",i),u=()=>S(ce,"$playbackState$",i),f=()=>S(jt,"$graphIsOpened$",i),m=()=>S(yt,"$interactiveHideMobileControls",i),p=()=>S(vo,"$isEnded$",i),x=()=>S(oi,"$isInteractiveExpectation$",i),w=()=>S(Xe,"$controlsVisible",i),y=()=>S(bt,"$touched",i),T=()=>S(so,"$autoplayNextEnabled$",i),C=()=>S(si,"$postrollPassed",i),E=()=>S(xn,"$bottomNoSmooth",i),R=()=>S(Vi,"$videoSize",i),I=()=>S(O,"$playerSize",i),k=()=>S($e,"$isFullscreen",i),B=()=>S(ze,"$position$",i),F=()=>S(ue,"$duration$",i),H=()=>S(bn,"$loadedMetadata",i),W=()=>S(Vt,"$settingsMenuVisible",i),Z=()=>S(Jt,"$scrubbingInProgress",i),ne=()=>S(_i,"$volumeChangingInProgress",i),j=()=>S(Ct,"$chromecastConnected$",i),_e=()=>S(Lt,"$isControlsAvailable",i),ee=()=>S(mt,"$isInteractiveTime$",i),fe=()=>S(Si,"$isActiveLive",i),ve=()=>S(hi,"$settingsMenuOpenedByKeyboard",i),pe=()=>S(Ie,"$language$",i),Me=()=>S(mi,"$disabledControls$",i),Ve=()=>S(tt,"$is3DVideo",i),de=()=>S(Wt,"$icon3DVideoVisible",i),Ne=()=>S(ii,"$chromecastDeviceName$",i),se=()=>S(Co,"$currentSubtitle$",i),P=()=>S(To,"$currentSubtitleCaptions$",i),nt=()=>S(sn,"$realDuration$",i),Be=()=>S(We,"$isLive$",i),G=()=>S(At,"$isPlaying$",i),ie=()=>S(Ii,"$debugPanelVisible",i),Oe=v(e,"videoContainer",15),et=v(e,"adsSlotId",3,void 0),xe=v(e,"adsParams",3,void 0),te=v(e,"adsAutoplayParam",3,void 0),Ce=v(e,"duration",3,void 0),Ee=v(e,"logoTargetUrl",3,""),qe=v(e,"showNextPrevButtons",3,!1),it=v(e,"nextButtonActive",3,!1),ft=v(e,"prevButtonActive",3,!1),dt=v(e,"endScreenVideoTitle",3,void 0),gt=v(e,"endScreenVideoThumb",3,void 0),ot=v(e,"isOneVideoPlaylist",3,!1),Ut=v(e,"showMiniTimer",3,!1),Qt=v(e,"fullScreenTarget",3,void 0),Yt=v(e,"playerStarted",3,!1),Gt=v(e,"showEndScreen",3,!0),{notifications$:Ae,graphIsOpened$:jt}=fo(),be=e.store.getLogger().createComponentLog("Root component"),Ie=e.store.interfaceLanguage$,ce=e.store.state.playbackState$,Ge=e.store.ads.playbackState,ze=e.store.state.positionWithScrubbing$,ue=e.store.state.duration$,Fe=e.store.playerPhase,$e=e.store.ui.isFullscreen,Xe=e.store.ui.controlsVisible,Lt=e.store.ui.isControlsAvailable,yt=e.store.ui.interactiveHideMobileControls,Vt=e.store.ui.settingsMenu.visible$,hi=e.store.ui.settingsMenu.openedByBtnKeyboard$,Jt=e.store.ui.scrubbingInProgress,_i=e.store.ui.volumeChangingInProgress,Ii=e.store.ui.debugPanelVisible,mo=e.store.state.isLoaderVisible,vo=e.store.state.isEnded$,Ct=e.store.state.chromecastConnected$,ii=e.store.state.chromecastDeviceName$,si=e.store.ads.postrollPassed,We=e.store.state.isLive$,At=e.store.state.isPlaying$,Si=e.store.state.isActiveLive$,Qi=e.store.state.isRewindableLive$,go=e.store.state.crashed$,xt=e.store.webApi.annotationsApi,Ye=e.store.webApi.pictureInPictureApi,Vi=e.store.state.videoSize$,Co=e.store.state.currentSubtitle$,To=e.store.state.currentSubtitleCaptions$,sn=e.store.state.duration$,O=e.store.ui.playerSize,tt=e.store.ui.is3DVideo,Wt=e.store.ui.icon3DVideoVisible,Kt=e.store.state.isInteractive,mt=e.store.state.isInteractiveTime$,oi=e.store.state.isInteractiveExpectation$,bi=e.store.state.hasInteractiveBranches,mi=e.store.ui.controls.disabledControls$,bt=e.store.ui.touched,ki=e.store.ui.overlayContainer$,so=e.store.ui.autoplayNextEnabled$,bn=e.store.state.loadedMetadata$,$n=e.store.actions.internal.closeSettingsMenu,pi=($r=e.store.callbacks)==null?void 0:$r.onDisabledPlayPrevChapterClick,ao=(Tn=e.store.callbacks)==null?void 0:Tn.onDisabledSeekToInteractiveClick,pr=e.store.actions.internal.setQuality,lo=J(void 0),to=J(void 0),Dn=J(void 0),qo=J(void 0),Eo,fr,Fn=g(()=>(n()==="video"&&s()||n()==="ads"&&l()==="inactive")&&!d()),mr=J(void 0),{closeNotification:fs,notificationsToShow$:Yr}=Ae,yn=g(()=>!!a().slow_video),Hn=()=>fs("slow_video"),xn=ae(!1),Qo,Go=J(!1),Un=g(()=>u()!==V5.PLAYING),vr=J(!1),Zr=g(()=>f()||m()||!r(Go)&&(p()&&!!bi||r(Un)&&x())),co=J(!0),Ar=g(()=>e.uiConfig.features.thumbTimer&&Ut()&&n()==="video"&&!w()&&!d()&&!Kt&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),an=J(!1),wn=g(()=>(Gt()||e.showAutoplayNext&&T())&&!!dt()&&!!gt()&&(e.showAds&&C()||!e.showAds)&&p()&&!d()&&!r(an)),zn=J(!1);Ye==null||Ye.setContext(Ll());let gr=pt=>{pt&&!Kt&&ho(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:gr});let Wn=()=>{clearTimeout(Eo),N(Go,!1),m()&&yt.set(!1)},ho=pt=>{Wn(),N(Go,!0),Eo=setTimeout(()=>N(Go,!1),pt);let ci=pt-100;Qo=setTimeout(()=>{E()&&xn.set(!1)},ci>0?ci:pt)},Xr=tt.subscribe(pt=>{Wt.set(pt),pt&&(clearTimeout(fr),fr=setTimeout(()=>Wt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Sn=(...ci)=>vt(null,[...ci],function*(pt=Ws()){var io,jo,ui,un,Fi,Gi;if(pt&&!jd.device.isIOS){let ji=rd(),Yo=Io(),En=jd.browser.isSamsungBrowser&&ji===e.shadowRootContainer;pt=ji===Yo||En}if(pt){ho(e.uiConfig.controls.hideTimeoutFullscreen);try{yield Ye==null?void 0:Ye.exit()}catch(ji){be({message:String(ji)})}try{let ji=(io=R())!=null&&io.width&&((jo=R())!=null&&jo.height)?R():I();yield g1(ji)}catch(ji){be({message:String(ji)})}}$e.set(pt),e.store.getAdmanWrapper().setFullscreen(pt),k()?(un=(ui=e.store.callbacks)==null?void 0:ui.onFullscreenEnter)==null||un.call(ui):(Gi=(Fi=e.store.callbacks)==null?void 0:Fi.onFullscreenExit)==null||Gi.call(Fi)}),ut=pt=>{let ci=pt,{width:io,height:jo}=ci.target;O.set({width:io,height:jo})},ai=()=>{let{width:pt,height:ci}=r(lo).getBoundingClientRect();O.set({width:pt,height:ci})};Mt(()=>{var pt;return lu(Sn),e.uiConfig.features.annotationsInside&&(xt==null||xt.init(r(lo))),ga(Ye)&&(Ye==null||Ye.assignPlayerContainer(r(lo)),Ye==null||Ye.setExternalEventHandlers({resize:ut,leavepictureinpicture:ai})),N(co,!jd.device.isIphoneOrOldIpad),e.interactiveContainer&&((pt=Oe().parentElement)==null||pt.insertBefore(e.interactiveContainer,Oe().nextSibling)),()=>{clearTimeout(Eo),clearTimeout(Qo),clearTimeout(fr),Xr(),Ye==null||Ye.dispose().catch(ci=>{be({message:String(ci)})}),du(Sn)}});let ln=J(!0),Cn=J(!0),Pr=pt=>{let ci=B()+(pt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;ci<0?(N(ln,!1),ci=0):ci>=F()&&(N(Cn,!1),ci=F()),N(vr,!0),e.seekTime(ci)},Io=()=>jd.device.isIOS?r(lo):!e.uiConfig.allowChangingFullscreenTarget||!Qt()?e.outerContainerRef:Qt().contains(e.outerContainerRef)?Qt():e.outerContainerRef,dn=()=>vt(null,null,function*(){try{if(Ws())yield au(document),be({message:"exit fullscreen"});else{if(be({message:"request fullscreen"}),jd.device.isIOS&&!H())return;yield su(Io())}}catch(pt){be({message:String(pt)})}}),fi=()=>{$n()},Ai=pt=>{if(pt.preventDefault(),W()){fi();return}if(!Yt()){e.firstStart(),ho(e.uiConfig.controls.hideTimeoutCursor);return}N(vr,!1),w()?Wn():ho(e.uiConfig.controls.hideTimeoutMobile)},ko=()=>{bt.set(!0)},Kn=()=>{Kt||(xn.set(!0),ho(e.uiConfig.controls.hideTimeoutCursor))},hr=pt=>{pi&&(pi(pt),ho(e.uiConfig.controls.hideTimeoutMobile))},Lr=pt=>{ao&&(ao(pt),ho(e.uiConfig.controls.hideTimeoutMobile))};Qe(()=>{ki.set(r(mr))}),Qe(()=>{Xe.set((r(Un)||W()||Z()||ne()||j()||!r(wn)&&(p()||r(Go)&&!r(vr)))&&!r(Zr)&&n()==="video"&&!d()&&_e())}),Qe(()=>{!Z()&&r(zn)&&!ee()&&ho(e.uiConfig.controls.hideTimeoutMobile),N(zn,Z(),!0)}),Qe(()=>{N(ln,B()>0),N(Cn,!fe()&&B()<F(),!0)}),Qe(()=>{pd(r(qo),W(),ve(),!0)});let _r=Q("aria_label_video_player"),qn=Q("video360");T0({fullScreenChangeHandler:Sn,getFullscreenTarget:Io}),E0({store:e.store,getFullscreenTarget:Io});let Qn=(pt,ci)=>{var un,Fi;let io=(Fi=(un=e.store.callbacks)==null?void 0:un.uiInfo)==null?void 0:Fi.onUpcomingLiveViewStateChanged;if(!io)return;let jo=!!ci,ui=K(K({},Nn(r(lo),{upcomingLiveScreen:ci},"upcomingLiveScreen",jo)),pt);io(ui)};var Ao=z5();Et("blur",na,fi);var Gn=_(Ao);Ra(Gn,{onClick:Ai,get videoContainer(){return Oe()},set videoContainer(pt){Oe(pt)}});var br=A(Gn,2);ca(br,()=>"slot",!1,(pt,ci)=>{ke(pt,()=>({name:Va}))});var ni=A(br,2);bs(ni,pe,pt=>{var ci=U5(),io=me(ci);let jo=g(()=>n()!=="thumb"||d()||Kt&&e.autoplay);Pa(io,{get hidden(){return r(jo)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var ui=A(io,2);{var un=Ke=>{var qt=N5(),yi=me(qt);{var pn=No=>{let Jn=g(()=>e.uiConfig.controls.seekStepMobile/1e3);Du(No,{side:"left",get seekStep(){return r(Jn)},handleSingleFirstClick:Ai,handleSecondClick:()=>Pr("backward")})};V(yi,No=>{r(ln)&&No(pn)})}var Ro=A(yi,2);{var Oo=No=>{let Jn=g(()=>e.uiConfig.controls.seekStepMobile/1e3);Du(No,{side:"right",get seekStep(){return r(Jn)},handleSingleFirstClick:Ai,handleSecondClick:()=>Pr("forward")})};V(Ro,No=>{r(Cn)&&No(Oo)})}$(Ke,qt)};V(ui,Ke=>{e.canRewindLive&&Qi&&!Me().has("TIMELINE")&&Ke(un)})}var Fi=A(ui,2);{var Gi=Ke=>{let qt=g(()=>{var yi;return(yi=e.live)==null?void 0:yi.startTime});zd(Ke,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(qt)},onUpcomingLiveViewStateChanged:Qn})};V(Fi,Ke=>{n()==="LiveWaitingStart"&&Ke(Gi)})}var ji=A(Fi,2);{var Yo=Ke=>{La(Ke,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(ji,Ke=>{n()==="LiveWaitingRecover"&&Ke(Yo)})}var En=A(ji,2);{var Mr=Ke=>{La(Ke,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(En,Ke=>{n()==="LiveWaitingRecord"&&Ke(Mr)})}var Zo=A(En,2);{var Vr=Ke=>{var qt=B5();let yi;var pn=_(qt);ad(pn,{get adsSlotId(){return et()},get adsParams(){return xe()},get adsAutoplayParam(){return te()},get duration(){return Ce()},get adsExternalApi(){return e.adsExternalApi}}),h(qt),D(Ro=>yi=re(qt,1,"ads-container svelte-7yl31d",null,yi,Ro),[()=>({hidden:n()!=="ads"})]),$(Ke,qt)};V(Zo,Ke=>{e.showAds&&Yt()&&Ke(Vr)})}var Rr=A(Zo,2);{var Po=Ke=>{let qt=g(()=>!Gt()&&e.showAutoplayNext&&T());hv(Ke,{get title(){return dt()},get thumb(){return gt()},get isHide(){return r(qt)},clickCloseIcon:()=>N(an,!0)})};V(Rr,Ke=>{r(wn)&&dt()&>()&&Ke(Po)})}var jn=A(Rr,2);{var Or=Ke=>{Hd(Ke,{})};V(jn,Ke=>{Ve()&&Ke(Or)})}var Yn=A(jn,2);{var st=Ke=>{var qt=D5(),yi=_(qt);nd(yi,{get"aria-label"(){return qn}}),h(qt),$(Ke,qt)};V(Yn,Ke=>{de()&&Ke(st)})}var Pt=A(Yn,2);{var $i=Ke=>{Ud(Ke,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Ne()}})};V(Pt,Ke=>{j()&&Ke($i)})}var uo=A(Pt,2);{var Ri=Ke=>{ka(Ke,{get shifted(){return w()},get captions(){return P()},get position(){return B()},get playerSize(){return I()},isMobile:!0})};V(uo,Ke=>{se().value!=="off"&&Ke(Ri)})}var Yi=A(uo,2);{var Oi=Ke=>{var qt=F5();qt.__click=[O5,W,Vt,fi];var yi=_(qt);Aa(yi,{}),h(qt),$(Ke,qt)};V(Yi,Ke=>{d()&&Ke(Oi)})}var _o=A(Yi,2);{var In=Ke=>{let qt=g(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),yi=g(()=>n()==="ads"),pn=g(()=>e.canRewindLive&&nt()!==0);Fd(Ke,{get bottomHidden(){return r(qt)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return r(yi)},get canRewindLive(){return r(pn)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ee()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return qe()},get nextButtonActive(){return it()},get prevButtonActive(){return ft()},get isOneVideoPlaylist(){return ot()},get customFullscreenSupported(){return r(co)},get endScreenShown(){return r(wn)},toggleFullscreen:dn,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:hr,onDisabledSeekToInteractiveClick:Lr,get playerControlsWrapperRef(){return r(to)},set playerControlsWrapperRef(Ro){N(to,Ro,!0)},get playerControlsRef(){return r(Dn)},set playerControlsRef(Ro){N(Dn,Ro,!0)}})};V(_o,Ke=>{Yt()&&Ke(In)})}var Lo=A(_o,2);{var Mo=Ke=>{var qt=H5(),yi=_(qt);qd(yi,{get supportLink(){return e.supportLink},get returnFocus(){return R5},get ref(){return r(qo)},set ref(pn){N(qo,pn,!0)}}),h(qt),$(Ke,qt)};V(Lo,Ke=>{W()&&Ke(Mo)})}var Vo=A(Lo,2);let Zn=g(()=>!r(Ar));cd(Vo,{get isLive(){return Be()},get isHidden(){return r(Zn)},get isPlaying(){return G()},get position(){return B()},get duration(){return F()}});var kn=A(Vo,2);{var yr=Ke=>{ya(Ke,{})};V(kn,Ke=>{r(Fn)&&Ke(yr)})}var xr=A(kn,2);{var Xn=Ke=>{vd(Ke,{})};V(xr,Ke=>{ie()&&Ke(Xn)})}var Nr=A(xr,2);{var Jr=Ke=>{Qd(Ke,{onClose:Hn,onSelectAutoQuality:()=>{pr("auto"),Hn()}})};V(Nr,Ke=>{r(yn)&&Ke(Jr)})}$(pt,ci)});var cn=A(ni,2);at(cn,pt=>N(mr,pt),()=>r(mr)),h(Ao),at(Ao,pt=>N(lo,pt),()=>r(lo)),D(()=>Ue(Ao,"aria-label",_r)),Et("click",Ao,ko,!0),Et("focusin",Ao,Kn,!0),$(t,Ao),z(),o()}ct(["click"]);function Hu(t){let e="";return eo(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),eo(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),eo(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),eo(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),eo(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),eo(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),eo(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),eo(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),eo(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),eo(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),eo(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),eo(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),eo(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),eo(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),eo(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),eo(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),eo(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),eo(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),eo(t.font)&&(e+=`--font:${t.font};`),eo(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),eo(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function eo(t){return typeof t=="string"&&!t.includes(";")}import{debounceFn as K5}from"@vkontakte/videoplayer-shared/es2015";var q5=M('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),Q5={hash:"svelte-1qfjf44",code:".player-wrapper.svelte-1qfjf44 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-1qfjf44 .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.timeline.svelte-1qfjf44 {opacity:0;opacity:1;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);}.visible.svelte-1qfjf44 {opacity:1;}.time-container.svelte-1qfjf44 {position:absolute;bottom:8px;right:8px;z-index:var(--thumb-timer-z-index);}"};function bv(t,e){U(e,!0),q(t,Q5);let[i,o]=De(),n=()=>S(ne,"$playerSize",i),s=()=>S(k,"$isPlaying$",i),l=()=>S(R,"$duration$",i),d=()=>S(H,"$positionWithScrubbing$",i),a=()=>S(C,"$playerPhase",i),u=()=>S(E,"$crashed$",i),f=()=>S(B,"$currentSubtitle$",i),m=()=>S(F,"$currentSubtitleCaptions$",i),p=()=>S(I,"$positionExact$",i),x=()=>S(W,"$isLive$",i),w=()=>S(Z,"$isRewindableLive$",i),y=v(e,"outsideDuration",3,0),T=v(e,"videoContainer",15),{playerPhase:C,state:{crashed$:E,duration$:R,positionExact$:I,isPlaying$:k,currentSubtitle$:B,currentSubtitleCaptions$:F,positionWithScrubbing$:H,isLive$:W,isRewindableLive$:Z},ui:{playerSize:ne,controls:j},actions:{internal:{getVideoElement:_e}}}=Te(),ee=8,fe=J(!1),ve=ei({}),pe=()=>{N(fe,!0)},Me=()=>{N(fe,!1)},Ve=K5(hl,260);Qe(()=>{n(),Ve(_e(),j,ve,r(fe))});let de=g(()=>s()?_n(l()-d()):_n(isFinite(l())?l():y()));var Ne=q5(),se=_(Ne);Ra(se,{hideCursor:!1,get videoContainer(){return T()},set videoContainer(Ee){T(Ee)}});var P=A(se,2);ca(P,()=>"slot",!1,(Ee,qe)=>{ke(Ee,()=>({name:Va}))});var nt=A(P,2);let Be=g(()=>a()!=="thumb"||u());Pa(nt,{get hidden(){return r(Be)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var G=A(nt,2);{var ie=Ee=>{ka(Ee,{shifted:!1,get captions(){return m()},get position(){return p()},get playerSize(){return n()}})};V(G,Ee=>{f().value!=="off"&&Ee(ie)})}var Oe=A(G,2),et=_(Oe);dd(et,{get isLive(){return x()},get isPlaying(){return s()},get time(){return r(de)}}),h(Oe);var xe=A(Oe,2);let te;var Ce=_(xe);Sa(Ce,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:ee,tooltipRightOffset:ee,get ref(){return ve.timeline},set ref(Ee){ve.timeline=Ee}}),h(xe),h(Ne),D(Ee=>te=re(xe,1,"timeline svelte-1qfjf44",null,te,Ee),[()=>({visible:r(fe)})]),Et("mouseenter",Ne,pe),Et("mouseleave",Ne,Me),$(t,Ne),z(),o()}var X5=M("<div><!></div>"),J5={hash:"svelte-78n29",code:`.vk-vp-root.svelte-78n29 {--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;
|
|
374
|
+
}.triangle.left.svelte-nhq2ld {border-right:8px solid var(--white);}.triangle.right.svelte-nhq2ld {border-left:8px solid var(--white);}.triangle.svelte-nhq2ld:not(:last-child) {margin-right:5px;}.step-caption.svelte-nhq2ld {margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white);}`};function op(t,e){F(e,!0),W(t,Cw);let i=h(e,"seekStep",3,0),o=j(!1),r=0,s=0,l=j(di(i())),d=v=>{v.stopPropagation(),s+=1,O(l,i()*(s-1)),s===1?e.handleSingleFirstClick(v):(O(o,!0),e.handleSecondClick()),window.clearTimeout(r),r=window.setTimeout(()=>{s=0,O(o,!1)},300)};ln(()=>{window.clearTimeout(r)});var a=Sw();a.__click=d;var u=_(a);{var f=v=>{var p=ww(),x=fe(p),w=P(x,2),y=_(w),C=_(y),T=P(C,2),E=P(T,2);g(y);var R=P(y,2),A=_(R,!0);g(R),g(w),D(I=>{var N,H,B,z;re(x,1,`semicircle ${(N=e.side)!=null?N:""}`,"svelte-nhq2ld"),re(C,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),re(T,1,`triangle ${(B=e.side)!=null?B:""}`,"svelte-nhq2ld"),re(E,1,`triangle ${(z=e.side)!=null?z:""}`,"svelte-nhq2ld"),me(A,I)},[()=>Y("doubletap_seek_step",{seconds:n(l).toFixed(0)})]),b(v,p)};V(u,v=>{n(o)&&v(f)})}g(a),D(()=>{var v;return re(a,1,`double-click-area ${(v=e.side)!=null?v:""}`,"svelte-nhq2ld")}),b(t,a),U()}dt(["click"]);var Tw=(t,e,i)=>{e(!1),i()},Ew=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),Iw={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 Dm(t,e){F(e,!0),W(t,Iw);let[i,o]=Be(),r=()=>S(d,"$autoplayNextEnabled$",i),s=()=>S(a,"$timerNextVideoRunning$",i),l=_e(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,p=l.actions.internal.nextVideoAnnouncementAuto,x=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{u(!1),p()},y=()=>{e.clickCloseIcon(),x()};Nt(()=>{e.isHide||f(),e.isHide&&r()&&(u(!1),p())});var C=Fe(),T=fe(C);{var E=R=>{var A=Ew(),I=P(fe(A),2),N=_(I),H=_(N),B=_(H,!0);g(H);var z=P(H,2);As(z,{onClick:y}),g(N);var X=P(N,2);X.__click=[Tw,u,v];var le=_(X),q=_(le),ce=_(q);let J;var ve=P(ce,2);{var se=ie=>{Bd(ie,{get isRunning(){return s()},onTimerEnded:w})};V(ve,ie=>{r()&&ie(se)})}g(q),g(le);var de=P(le,2),Le=_(de),Se=_(Le,!0);g(Le),g(de),g(X),g(I),D((ie,Ne)=>{me(B,ie),Je(q,`background-image: url('${e.thumb}')`),J=re(ce,1,"thumb-overlay svelte-1qdxi6t",null,J,Ne),me(Se,e.title)},[()=>r()?Y("end_screen_next_video"):Y("end_screen_recommended_video"),()=>({withOpacity:r()})]),b(R,A)};V(T,R=>{e.isHide||R(E)})}b(t,C),U(),o()}dt(["click"]);import{clientChecker as kw}from"@vkontakte/videoplayer-core/es2015";var Y0=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Nt(()=>{kw.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))}),ln(()=>{i==null||i(),clearTimeout(o)})};import{VideoFormat as Aw}from"@vkontakte/videoplayer-core/es2015";var np=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 Pw}from"@vkontakte/videoplayer-core/es2015";var Z0=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:r,availableSubtitlesList$:s,currentFormat$:l,availableTextTracks$:d}=t.state,a=null,u=()=>e().querySelector("video"),f=()=>Pw.device.isIOS&&$e(l)===Aw.DASH_LIVE_CMAF,v=()=>{a==null||a(),a=null},p=x=>{if(v(),!f()||!x)return;let w=u();if(!w)return;let y=new np(w),C=$e(d),T=$e(s),E=$e(r);for(let I of C)T.some(H=>H.value===I.id)&&y.attach(I,E.value===I.id);let R=d.subscribe(I=>{for(let N of I)y.updateSrc(N)}),A=()=>{let I=y.getCurrentShowingId();o($e(s).find(N=>N.value===I))};w.textTracks.addEventListener("change",A),a=()=>{R(),y.detachAll(),w.textTracks.removeEventListener("change",A)}};Nt(()=>i.subscribe(p)),ln(v)};var Vw=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},Rw=M("<!> <!>",1),Ow=M("<div><!></div>"),Nw=M('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),Dw=M("<div><!></div>"),Bw=M('<div class="settings-mobile svelte-7yl31d"><!></div>'),Hw=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Fw=M('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),Uw={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 Bm(t,e){var Or,Gn;F(e,!0),W(t,Uw);let[i,o]=Be(),r=()=>S(De,"$playerPhase",i),s=()=>S(yi,"$isLoaderVisible",i),l=()=>S(Te,"$adPlaybackState",i),d=()=>S(Zt,"$crashed",i),a=()=>S(ms,"$notificationsToShow$",i),u=()=>S(te,"$playbackState$",i),f=()=>S(Wt,"$graphIsOpened$",i),v=()=>S(ot,"$interactiveHideMobileControls",i),p=()=>S(so,"$isEnded$",i),x=()=>S(ft,"$isInteractiveExpectation$",i),w=()=>S($t,"$controlsVisible",i),y=()=>S(pt,"$touched",i),C=()=>S(Fi,"$autoplayNextEnabled$",i),T=()=>S(mt,"$postrollPassed",i),E=()=>S(qn,"$bottomNoSmooth",i),R=()=>S(xi,"$videoSize",i),A=()=>S(kt,"$playerSize",i),I=()=>S(ut,"$isFullscreen",i),N=()=>S(Me,"$position$",i),H=()=>S(It,"$duration$",i),B=()=>S(Xo,"$loadedMetadata",i),z=()=>S(Qe,"$settingsMenuVisible",i),X=()=>S(ii,"$scrubbingInProgress",i),le=()=>S(ai,"$volumeChangingInProgress",i),q=()=>S(vo,"$chromecastConnected$",i),ce=()=>S(xe,"$isControlsAvailable",i),J=()=>S(oi,"$isInteractiveTime$",i),ve=()=>S(Tt,"$isActiveLive",i),se=()=>S(lt,"$settingsMenuOpenedByKeyboard",i),de=()=>S(we,"$language$",i),Le=()=>S(Gt,"$disabledControls$",i),Se=()=>S(Ht,"$is3DVideo",i),ie=()=>S(K,"$icon3DVideoVisible",i),Ne=()=>S(ui,"$chromecastDeviceName$",i),pe=()=>S(wo,"$currentSubtitle$",i),k=()=>S(Zo,"$currentSubtitleCaptions$",i),qe=()=>S(un,"$realDuration$",i),Re=()=>S(Pi,"$isLive$",i),Z=()=>S(Yt,"$isPlaying$",i),ne=()=>S(mi,"$debugPanelVisible",i),He=h(e,"videoContainer",15),Ze=h(e,"adsSlotId",3,void 0),ge=h(e,"adsParams",3,void 0),ee=h(e,"adsAutoplayParam",3,void 0),ke=h(e,"duration",3,void 0),he=h(e,"logoTargetUrl",3,""),Ue=h(e,"showNextPrevButtons",3,!1),Xe=h(e,"nextButtonActive",3,!1),Ge=h(e,"prevButtonActive",3,!1),ct=h(e,"endScreenVideoTitle",3,void 0),et=h(e,"endScreenVideoThumb",3,void 0),Bt=h(e,"isOneVideoPlaylist",3,!1),rt=h(e,"showMiniTimer",3,!1),Dt=h(e,"fullScreenTarget",3,void 0),Qt=h(e,"playerStarted",3,!1),Et=h(e,"showEndScreen",3,!0),{notifications$:ti,graphIsOpened$:Wt}=xo(),Ce=e.store.getLogger().createComponentLog("Root component"),we=e.store.interfaceLanguage$,te=e.store.state.playbackState$,Te=e.store.ads.playbackState,Me=e.store.state.positionWithScrubbing$,It=e.store.state.duration$,De=e.store.playerPhase,ut=e.store.ui.isFullscreen,$t=e.store.ui.controlsVisible,xe=e.store.ui.isControlsAvailable,ot=e.store.ui.interactiveHideMobileControls,Qe=e.store.ui.settingsMenu.visible$,lt=e.store.ui.settingsMenu.openedByBtnKeyboard$,ii=e.store.ui.scrubbingInProgress,ai=e.store.ui.volumeChangingInProgress,mi=e.store.ui.debugPanelVisible,yi=e.store.state.isLoaderVisible,so=e.store.state.isEnded$,vo=e.store.state.chromecastConnected$,ui=e.store.state.chromecastDeviceName$,mt=e.store.ads.postrollPassed,Pi=e.store.state.isLive$,Yt=e.store.state.isPlaying$,Tt=e.store.state.isActiveLive$,ni=e.store.state.isRewindableLive$,Zt=e.store.state.crashed$,St=e.store.webApi.annotationsApi,Ye=e.store.webApi.pictureInPictureApi,xi=e.store.state.videoSize$,wo=e.store.state.currentSubtitle$,Zo=e.store.state.currentSubtitleCaptions$,un=e.store.state.duration$,kt=e.store.ui.playerSize,Ht=e.store.ui.is3DVideo,K=e.store.ui.icon3DVideoVisible,Vt=e.store.state.isInteractive,oi=e.store.state.isInteractiveTime$,ft=e.store.state.isInteractiveExpectation$,At=e.store.state.hasInteractiveBranches,Gt=e.store.ui.controls.disabledControls$,pt=e.store.ui.touched,Oi=e.store.ui.overlayContainer$,Fi=e.store.ui.autoplayNextEnabled$,Xo=e.store.state.loadedMetadata$,Lo=e.store.actions.internal.closeSettingsMenu,ao=(Or=e.store.callbacks)==null?void 0:Or.onDisabledPlayPrevChapterClick,Ui=(Gn=e.store.callbacks)==null?void 0:Gn.onDisabledSeekToInteractiveClick,ur=e.store.actions.internal.setQuality,mo=j(void 0),go=j(void 0),Ni=j(void 0),pn=j(void 0),Vo,pr,fr=m(()=>(r()==="video"&&s()||r()==="ads"&&l()==="inactive")&&!d()),Tr=j(void 0),{closeNotification:es,notificationsToShow$:ms}=ti,ts=m(()=>!!a().slow_video),So=()=>es("slow_video"),qn=ae(!1),Ro,fn=j(!1),An=m(()=>u()!==Mw.PLAYING),vr=j(!1),Er=m(()=>f()||v()||!n(fn)&&(p()&&!!At||n(An)&&x())),Ir=j(!0),kr=m(()=>e.uiConfig.features.thumbTimer&&rt()&&r()==="video"&&!w()&&!d()&&!Vt&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),Ar=j(!1),Gi=m(()=>(Et()||e.showAutoplayNext&&C())&&!!ct()&&!!et()&&(e.showAds&&T()||!e.showAds)&&p()&&!d()&&!n(Ar)),Pr=j(!1);Ye==null||Ye.setContext(td());let Pn=it=>{it&&!Vt&&ho(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:Pn});let vn=()=>{clearTimeout(Vo),O(fn,!1),v()&&ot.set(!1)},ho=it=>{vn(),O(fn,!0),Vo=setTimeout(()=>O(fn,!1),it);let gi=it-100;Ro=setTimeout(()=>{E()&&qn.set(!1)},gi>0?gi:it)},mr=Ht.subscribe(it=>{K.set(it),it&&(clearTimeout(pr),pr=setTimeout(()=>K.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Mn=(...gi)=>yt(null,[...gi],function*(it=Zs()){var Di,Yi,Bo,en,lo,ki;if(it&&!hc.device.isIOS){let Zi=Id(),bo=Ln(),hn=hc.browser.isSamsungBrowser&&Zi===e.shadowRootContainer;it=Zi===bo||hn}if(it){ho(e.uiConfig.controls.hideTimeoutFullscreen);try{yield Ye==null?void 0:Ye.exit()}catch(Zi){Ce({message:String(Zi)})}try{let Zi=(Di=R())!=null&&Di.width&&((Yi=R())!=null&&Yi.height)?R():A();yield B1(Zi)}catch(Zi){Ce({message:String(Zi)})}}ut.set(it),e.store.getAdmanWrapper().setFullscreen(it),I()?(en=(Bo=e.store.callbacks)==null?void 0:Bo.onFullscreenEnter)==null||en.call(Bo):(ki=(lo=e.store.callbacks)==null?void 0:lo.onFullscreenExit)==null||ki.call(lo)}),gt=it=>{let gi=it,{width:Di,height:Yi}=gi.target;kt.set({width:Di,height:Yi})},vi=()=>{let{width:it,height:gi}=n(mo).getBoundingClientRect();kt.set({width:it,height:gi})};Nt(()=>{var it;return Eu(Mn),e.uiConfig.features.annotationsInside&&(St==null||St.init(n(mo))),Ma(Ye)&&(Ye==null||Ye.assignPlayerContainer(n(mo)),Ye==null||Ye.setExternalEventHandlers({resize:gt,leavepictureinpicture:vi})),O(Ir,!hc.device.isIphoneOrOldIpad),e.interactiveContainer&&((it=He().parentElement)==null||it.insertBefore(e.interactiveContainer,He().nextSibling)),()=>{clearTimeout(Vo),clearTimeout(Ro),clearTimeout(pr),mr(),Ye==null||Ye.dispose().catch(gi=>{Ce({message:String(gi)})}),Iu(Mn)}});let Mr=j(!0),Qn=j(!0),Lr=it=>{let gi=N()+(it==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;gi<0?(O(Mr,!1),gi=0):gi>=H()&&(O(Qn,!1),gi=H()),O(vr,!0),e.seekTime(gi)},Ln=()=>hc.device.isIOS?n(mo):!e.uiConfig.allowChangingFullscreenTarget||!Dt()?e.outerContainerRef:Dt().contains(e.outerContainerRef)?Dt():e.outerContainerRef,Vn=()=>yt(null,null,function*(){try{if(Zs())yield Tu(document),Ce({message:"exit fullscreen"});else{if(Ce({message:"request fullscreen"}),hc.device.isIOS&&!B())return;yield Cu(Ln())}}catch(it){Ce({message:String(it)})}}),Oo=()=>{Lo()},No=it=>{if(it.preventDefault(),z()){Oo();return}if(!Qt()){e.firstStart(),ho(e.uiConfig.controls.hideTimeoutCursor);return}O(vr,!1),w()?vn():ho(e.uiConfig.controls.hideTimeoutMobile)},mn=()=>{pt.set(!0)},_o=()=>{Vt||(qn.set(!0),ho(e.uiConfig.controls.hideTimeoutCursor))},Do=it=>{ao&&(ao(it),ho(e.uiConfig.controls.hideTimeoutMobile))},Jo=it=>{Ui&&(Ui(it),ho(e.uiConfig.controls.hideTimeoutMobile))};We(()=>{Oi.set(n(Tr))}),We(()=>{$t.set((n(An)||z()||X()||le()||q()||!n(Gi)&&(p()||n(fn)&&!n(vr)))&&!n(Er)&&r()==="video"&&!d()&&ce())}),We(()=>{!X()&&n(Pr)&&!J()&&ho(e.uiConfig.controls.hideTimeoutMobile),O(Pr,X(),!0)}),We(()=>{O(Mr,N()>0),O(Qn,!ve()&&N()<H(),!0)}),We(()=>{Rd(n(pn),z(),se(),!0)});let gr=Y("aria_label_video_player"),Vr=Y("video360");Y0({fullScreenChangeHandler:Mn,getFullscreenTarget:Ln}),Z0({store:e.store,getFullscreenTarget:Ln});let gn=(it,gi)=>{var en,lo;let Di=(lo=(en=e.store.callbacks)==null?void 0:en.uiInfo)==null?void 0:lo.onUpcomingLiveViewStateChanged;if(!Di)return;let Yi=!!gi,Bo=Q(Q({},Wn(n(mo),{upcomingLiveScreen:gi},"upcomingLiveScreen",Yi)),it);Di(Bo)};var zi=Fw();Ct("blur",$a,Oo);var hr=_(zi);Ya(hr,{onClick:No,get videoContainer(){return He()},set videoContainer(it){He(it)}});var Rr=P(hr,2);Ta(Rr,()=>"slot",!1,(it,gi)=>{Ae(it,()=>({name:Ga}))});var Rn=P(Rr,2);Cs(Rn,de,it=>{var gi=Hw(),Di=fe(gi);let Yi=m(()=>r()!=="thumb"||d()||Vt&&e.autoplay);qa(Di,{get hidden(){return n(Yi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Bo=P(Di,2);{var en=je=>{var Jt=Rw(),hi=fe(Jt);{var yn=on=>{let zr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);op(on,{side:"left",get seekStep(){return n(zr)},handleSingleFirstClick:No,handleSecondClick:()=>Lr("backward")})};V(hi,on=>{n(Mr)&&on(yn)})}var Uo=P(hi,2);{var Ur=on=>{let zr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);op(on,{side:"right",get seekStep(){return n(zr)},handleSingleFirstClick:No,handleSecondClick:()=>Lr("forward")})};V(Uo,on=>{n(Qn)&&on(Ur)})}b(je,Jt)};V(Bo,je=>{e.canRewindLive&&ni&&!Le().has("TIMELINE")&&je(en)})}var lo=P(Bo,2);{var ki=je=>{let Jt=m(()=>{var hi;return(hi=e.live)==null?void 0:hi.startTime});uc(je,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(Jt)},onUpcomingLiveViewStateChanged:gn})};V(lo,je=>{r()==="LiveWaitingStart"&&je(ki)})}var Zi=P(lo,2);{var bo=je=>{Qa(je,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(Zi,je=>{r()==="LiveWaitingRecover"&&je(bo)})}var hn=P(Zi,2);{var Yn=je=>{Qa(je,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(hn,je=>{r()==="LiveWaitingRecord"&&je(Yn)})}var Nr=P(hn,2);{var Dr=je=>{var Jt=Ow();let hi;var yn=_(Jt);Ad(yn,{get adsSlotId(){return Ze()},get adsParams(){return ge()},get adsAutoplayParam(){return ee()},get duration(){return ke()},get adsExternalApi(){return e.adsExternalApi}}),g(Jt),D(Uo=>hi=re(Jt,1,"ads-container svelte-7yl31d",null,hi,Uo),[()=>({hidden:r()!=="ads"})]),b(je,Jt)};V(Nr,je=>{e.showAds&&Qt()&&je(Dr)})}var _n=P(Nr,2);{var bn=je=>{let Jt=m(()=>!Et()&&e.showAutoplayNext&&C());Dm(je,{get title(){return ct()},get thumb(){return et()},get isHide(){return n(Jt)},clickCloseIcon:()=>O(Ar,!0)})};V(_n,je=>{n(Gi)&&ct()&&et()&&je(bn)})}var _r=P(_n,2);{var $n=je=>{dc(je,{})};V(_r,je=>{Se()&&je($n)})}var Br=P(_r,2);{var tt=je=>{var Jt=Nw(),hi=_(Jt);Ed(hi,{get"aria-label"(){return Vr}}),g(Jt),b(je,Jt)};V(Br,je=>{ie()&&je(tt)})}var Mt=P(Br,2);{var wi=je=>{cc(je,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Ne()}})};V(Mt,je=>{q()&&je(wi)})}var $o=P(Mt,2);{var Ho=je=>{Wa(je,{get shifted(){return w()},get captions(){return k()},get position(){return N()},get playerSize(){return A()},isMobile:!0})};V($o,je=>{pe().value!=="off"&&je(Ho)})}var Co=P($o,2);{var Xi=je=>{var Jt=Dw();Jt.__click=[Vw,z,Qe,Oo];var hi=_(Jt);Ka(hi,{}),g(Jt),b(je,Jt)};V(Co,je=>{d()&&je(Xi)})}var Mi=P(Co,2);{var tn=je=>{let Jt=m(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"||r()==="ads"),hi=m(()=>r()==="ads"),yn=m(()=>e.canRewindLive&&qe()!==0);lc(je,{get bottomHidden(){return n(Jt)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return n(hi)},get canRewindLive(){return n(yn)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return he()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Ue()},get nextButtonActive(){return Xe()},get prevButtonActive(){return Ge()},get isOneVideoPlaylist(){return Bt()},get customFullscreenSupported(){return n(Ir)},get endScreenShown(){return n(Gi)},toggleFullscreen:Vn,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Do,onDisabledSeekToInteractiveClick:Jo,get playerControlsWrapperRef(){return n(go)},set playerControlsWrapperRef(Uo){O(go,Uo,!0)},get playerControlsRef(){return n(Ni)},set playerControlsRef(Uo){O(Ni,Uo,!0)}})};V(Mi,je=>{Qt()&&je(tn)})}var Fo=P(Mi,2);{var To=je=>{var Jt=Bw(),hi=_(Jt);vc(hi,{get supportLink(){return e.supportLink},get returnFocus(){return Lw},get ref(){return n(pn)},set ref(yn){O(pn,yn,!0)}}),g(Jt),b(je,Jt)};V(Fo,je=>{z()&&je(To)})}var Ji=P(Fo,2);let Hr=m(()=>!n(kr));Ld(Ji,{get isLive(){return Re()},get isHidden(){return n(Hr)},get isPlaying(){return Z()},get position(){return N()},get duration(){return H()}});var Zn=P(Ji,2);{var Xn=je=>{Oa(je,{})};V(Zn,je=>{n(fr)&&je(Xn)})}var br=P(Zn,2);{var gs=je=>{Dd(je,{})};V(br,je=>{ne()&&je(gs)})}var Fr=P(br,2);{var is=je=>{mc(je,{onClose:So,onSelectAutoQuality:()=>{ur("auto"),So()}})};V(Fr,je=>{n(ts)&&je(is)})}b(it,gi)});var jn=P(Rn,2);at(jn,it=>O(Tr,it),()=>n(Tr)),g(zi),at(zi,it=>O(mo,it),()=>n(mo)),D(()=>Ke(zi,"aria-label",gr)),Ct("click",zi,mn,!0),Ct("focusin",zi,_o,!0),b(t,zi),U(),o()}dt(["click"]);function rp(t){let e="";return ro(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),ro(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),ro(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),ro(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),ro(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),ro(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),ro(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),ro(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),ro(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),ro(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),ro(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),ro(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),ro(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),ro(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),ro(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),ro(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),ro(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),ro(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),ro(t.font)&&(e+=`--font:${t.font};`),ro(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),ro(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function ro(t){return typeof t=="string"&&!t.includes(";")}import{debounceFn as zw}from"@vkontakte/videoplayer-shared/es2015";var Ww=M('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),Kw={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 Hm(t,e){F(e,!0),W(t,Kw);let[i,o]=Be(),r=()=>S(le,"$playerSize",i),s=()=>S(I,"$isPlaying$",i),l=()=>S(R,"$duration$",i),d=()=>S(B,"$positionWithScrubbing$",i),a=()=>S(T,"$playerPhase",i),u=()=>S(E,"$crashed$",i),f=()=>S(N,"$currentSubtitle$",i),v=()=>S(H,"$currentSubtitleCaptions$",i),p=()=>S(A,"$positionExact$",i),x=()=>S(z,"$isLive$",i),w=()=>S(X,"$isRewindableLive$",i),y=h(e,"outsideDuration",3,0),C=h(e,"videoContainer",15),{playerPhase:T,state:{crashed$:E,duration$:R,positionExact$:A,isPlaying$:I,currentSubtitle$:N,currentSubtitleCaptions$:H,positionWithScrubbing$:B,isLive$:z,isRewindableLive$:X},ui:{playerSize:le,controls:q},actions:{internal:{getVideoElement:ce}}}=_e(),J=8,ve=j(!1),se=di({}),de=()=>{O(ve,!0)},Le=()=>{O(ve,!1)},Se=zw(Fl,260);We(()=>{r(),Se(ce(),q,se,n(ve))});let ie=m(()=>s()?Yo(l()-d()):Yo(isFinite(l())?l():y()));var Ne=Ww(),pe=_(Ne);Ya(pe,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(he){C(he)}});var k=P(pe,2);Ta(k,()=>"slot",!1,(he,Ue)=>{Ae(he,()=>({name:Ga}))});var qe=P(k,2);let Re=m(()=>a()!=="thumb"||u());qa(qe,{get hidden(){return n(Re)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var Z=P(qe,2);{var ne=he=>{Wa(he,{shifted:!1,get captions(){return v()},get position(){return p()},get playerSize(){return r()}})};V(Z,he=>{f().value!=="off"&&he(ne)})}var He=P(Z,2),Ze=_(He);Md(Ze,{get isLive(){return x()},get isPlaying(){return s()},get time(){return n(ie)}}),g(He);var ge=P(He,2);let ee;var ke=_(ge);Ua(ke,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:J,tooltipRightOffset:J,get ref(){return se.timeline},set ref(he){se.timeline=he}}),g(ge),g(Ne),D(he=>ee=re(ge,1,"timeline svelte-1qfjf44",null,ee,he),[()=>({visible:n(ve)})]),Ct("mouseenter",Ne,de),Ct("mouseleave",Ne,Le),b(t,Ne),U(),o()}var Yw=M("<div><!></div>"),Zw={hash:"svelte-3c0y7j",code:`.vk-vp-root.svelte-3c0y7j {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--controls-desktop-padding-horizontal: 4px;--focused: var(--white);--focused-outline-width: 2px;--focused-outline-radius: 0;--focused-element-shadow: inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
|
|
364
375
|
|
|
365
376
|
/* USER DEFINED COLORS */
|
|
366
377
|
|
|
@@ -386,12 +397,12 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},l1=mb;var w
|
|
|
386
397
|
rgba(9, 9, 9, 0.46) 80%,
|
|
387
398
|
rgba(10, 10, 10, 0.48) 86.67%,
|
|
388
399
|
rgba(10, 10, 10, 0.50) 100%
|
|
389
|
-
);--timeline-preview-shadow: rgba(0, 0, 0, 0.08);--timeline-preview-bg: rgba(34, 34, 34, 1);--timeline-padding-horizontal: 10px;--settings-bg: rgba(0, 0, 0, 0.72);--settings-item-bg-hover: rgba(255, 255, 255, 0.08);--settings-radius: 8px;--mobile-settings-bg: #2c2d2e;--divider-border: 1px solid var(--white-alpha-24);--toggle-color-separator: #363738;--toggle-color-off: #656565;--toggle-color-on: #71aaeb;--toggle-color-autoplay-on: var(--white);--notification-bg: #2C2D2E;--notification-radius: 8px;--button-hover-transition: opacity 0.2s;--video-container-z-index: 0;--controls-container-z-index: 1;--ads-container-z-index: 1;--end-screen-mobile-z-index: 1;--notification-z-index: 1;--thumb-timer-z-index: 2;--debug-panel-z-index: 2;--settings-menu-z-index: 2;--context-menu-z-index: 3;--hot-key-helpers-container-z-index: 3;--overlay-container-z-index: 4;--rotate-transition-duration: 0.25s;--btn-color: var(--white);--double-forward-bg: rgba(0, 0, 0, 0.6);position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;
|
|
390
|
-
/* --vk-vp-custom-font - vk video player custom font */font-family:var(--vk-vp-custom-font, var(--font));background:var(--black);}.vk-vp-root.visible-outside.svelte-
|
|
400
|
+
);--timeline-preview-shadow: rgba(0, 0, 0, 0.08);--timeline-preview-bg: rgba(34, 34, 34, 1);--timeline-padding-horizontal: 10px;--timeline-padding-vertical-top: 3px;--timeline-padding-vertical-bottom: 4px;--timeline-height: calc(var(--timeline-padding-vertical-bottom) + var(--timeline-padding-vertical-top) + var(--slider-height));--preview-track-frame-height-vertical: 114px;--preview-track-frame-height-horizontal: 65px;--preview-track-controls-top: 16px;--preview-track-time-line-height: 16px;--preview-track-bottom-offset: 10px;--preview-track-height: calc(var(--preview-track-frame-height-vertical)+var(--preview-track-bottom-offset));--preview-track-controls-top-offset: calc((var(--timeline-height) + var(--preview-track-controls-top) + var(--preview-track-time-line-height)));--settings-bg: rgba(0, 0, 0, 0.72);--settings-item-bg-hover: rgba(255, 255, 255, 0.08);--settings-radius: 8px;--mobile-settings-bg: #2c2d2e;--divider-border: 1px solid var(--white-alpha-24);--toggle-color-separator: #363738;--toggle-color-off: #656565;--toggle-color-on: #71aaeb;--toggle-color-autoplay-on: var(--white);--notification-bg: #2C2D2E;--notification-radius: 8px;--button-hover-transition: opacity 0.2s;--video-container-z-index: 0;--controls-container-z-index: 1;--ads-container-z-index: 1;--end-screen-mobile-z-index: 1;--notification-z-index: 1;--thumb-timer-z-index: 2;--debug-panel-z-index: 2;--settings-menu-z-index: 2;--context-menu-z-index: 3;--hot-key-helpers-container-z-index: 3;--overlay-container-z-index: 4;--rotate-transition-duration: 0.25s;--btn-color: var(--white);--double-forward-bg: rgba(0, 0, 0, 0.6);position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;
|
|
401
|
+
/* --vk-vp-custom-font - vk video player custom font */font-family:var(--vk-vp-custom-font, var(--font));background:var(--black);}.vk-vp-root.visible-outside.svelte-3c0y7j {overflow:visible;}
|
|
391
402
|
|
|
392
|
-
/* css reset start */.vk-vp-root.svelte-
|
|
393
|
-
/* --vk-vp-int-custom-font - vk video player interactive custom font */font-family:var(--vk-vp-int-custom-font, inherit);}.vk-vp-root.svelte-
|
|
394
|
-
/* css reset end */.vk-vp-root.svelte-
|
|
403
|
+
/* css reset start */.vk-vp-root.svelte-3c0y7j * {-webkit-tap-highlight-color:transparent;}.vk-vp-root.svelte-3c0y7j button {border:none;margin:0;padding:0;width:auto;overflow:visible;background:transparent;color:inherit;font:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer;}.vk-vp-root.svelte-3c0y7j p {margin:0;}.vk-vp-root.svelte-3c0y7j svg:not(.interactive-root svg) {pointer-events:none;}.vk-vp-root.svelte-3c0y7j .interactive-root {
|
|
404
|
+
/* --vk-vp-int-custom-font - vk video player interactive custom font */font-family:var(--vk-vp-int-custom-font, inherit);}.vk-vp-root.svelte-3c0y7j *:focus, .vk-vp-root.svelte-3c0y7j *:focus-visible {outline:none;}.vk-vp-root.svelte-3c0y7j *:focus-visible {box-shadow:var(--focused-element-shadow);border-radius:var(--focused-outline-radius);}.vk-vp-root.svelte-3c0y7j *.focus-hidden:focus-visible {box-shadow:none;}
|
|
405
|
+
/* css reset end */.vk-vp-root.svelte-3c0y7j .hidden {visibility:hidden;opacity:0;}.vk-vp-root.svelte-3c0y7j .out-of-flow {content-visibility:hidden !important;}.vk-vp-root.svelte-3c0y7j .overlay-container {pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index);}
|
|
395
406
|
|
|
396
|
-
/* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.vk-vp-root.svelte-78n29 .out-of-view {position:absolute !important;left:-1000vh !important;}.vk-vp-root.svelte-78n29 .icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function yv(t,e){U(e,!0),q(t,J5);let[i,o]=De(),n=()=>S(Qt,"$isLive$",i),s=()=>S(go,"$availableSubtitlesList$",i),l=v(e,"sources",7),d=v(e,"store",7),a=v(e,"microStoresRoot",7),u=v(e,"videoConfig",7),f=v(e,"uiConfig",7),m=v(e,"title",7),p=v(e,"thumbUrl",7),x=v(e,"interactiveContainer",7),w=v(e,"interactiveController",7),y=v(e,"subtitles",7),T=v(e,"subtitlesForcedLanguage",7),C=v(e,"live",7),E=v(e,"preload",7),R=v(e,"autoplay",7),I=v(e,"volume",7,void 0),k=v(e,"muted",7,void 0),B=v(e,"fromTime",7),F=v(e,"canRewindLive",7),H=v(e,"showAds",7),W=v(e,"adsSlotId",7,void 0),Z=v(e,"adsParams",7,void 0),ne=v(e,"adsAutoplayParam",7,void 0),j=v(e,"duration",7,void 0),_e=v(e,"logoClickable",7),ee=v(e,"logoHidden",7),fe=v(e,"isMobile",7),ve=v(e,"showNextPrevButtons",7,!1),pe=v(e,"nextButtonActive",7,!1),Me=v(e,"prevButtonActive",7,!1),Ve=v(e,"endScreenVideoTitle",7,void 0),de=v(e,"endScreenVideoThumb",7,void 0),Ne=v(e,"isOneVideoPlaylist",7,!1),se=v(e,"supportLink",7),P=v(e,"shadowRootContainer",7),nt=v(e,"outerContainerRef",7),Be=v(e,"fullScreenTarget",7,void 0),G=v(e,"failoverHosts",7,void 0),ie=v(e,"showMiniTimer",7,!1),Oe=v(e,"saveRate",7),et=v(e,"seekToInteractive",7,I0),xe=v(e,"playPrevChapter",7,I0),te=v(e,"volumeMultiplier",7),Ce=v(e,"showAutoplayNext",7),Ee=v(e,"showEndScreen",7,!0),qe=v(e,"keyboardControls",15,void 0),{subscribers:it,stores:ft}=a();Eh(f());let dt=It(),gt=f().logoLink,ot=d().ui.debugPanelVisible,Ut=d().ui.playerSize,Qt=d().state.isLive$,Gt=d().state.isInteractive&&$v.device.isAndroid,Ae=J(void 0),jt=null,be=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}),Nh(d(),ft),Qe(()=>{var O,tt;d().ui.isMobile.set(fe()),(tt=(O=u().callbacks)==null?void 0:O.onDomReady)==null||tt.call(O)});let Ie=(O=!1)=>{N(be,!0),O?d().actions.external.firstStart(H()):d().actions.internal.firstStart(H())},ce=()=>{if(dt.features.qualityDetailsSubMenuEnabled){let O=n1(d().videoId);if(O)switch(O.type){case"high_quality":d().actions.internal.setHighQualityEnabled(!0,O.appliesTo);break;case"traffic_saving":d().actions.internal.setTrafficSavingEnabled(!0,O.appliesTo);break;case"exact_quality":d().actions.internal.setQuality(O.quality);break}}else{r1(d().videoId),ff()&&d().actions.internal.setTrafficSavingEnabled(!0);let tt=df(d().videoId);tt&&d().actions.internal.setQuality(tt)}};function Ge(O){var oi,bi,mi;let tt=l()||O;tt&&d().initVideo({container:r(Ae),sources:tt,failoverHosts:G(),subtitles:y(),subtitlesForcedLanguage:T(),volumeMultiplier:te()});let Wt=j5.get(ed)==="true";ot.set(Wt),B()>0&&d().actions.external.seekTime(B());let Kt=fe()?dt.volumeDefault:(bi=(oi=I())!=null?oi:Yc())!=null?bi:dt.volumeDefault,mt=(mi=k())!=null?mi:Xh();if(d().actions.external.setVolume(Kt),d().actions.external.setMuted(mt),d().getAdmanWrapper().setInitialVolume(mt?0:Kt),ce(),dt.features.saveRate&&Oe()){let bt=t1();bt&&!n()&&d().actions.internal.setPlaybackRate(bt)}if(Ce()){let bt=o1();bt&&d().actions.internal.setAutoplayNextEnabled(bt)}d().ui.isAutoplay.set(R()),R()&&Ie(),E()&&dt.features.preload&&d().actions.internal.preload()}let ze=O=>{if(window.ResizeObserver){let tt,Wt;jt=new ResizeObserver(Y5(Kt=>{let mt=Kt[0];if(mt.contentBoxSize){let oi=Array.isArray(mt.contentBoxSize)?mt.contentBoxSize[0]:mt.contentBoxSize;tt=oi.inlineSize,Wt=oi.blockSize}else mt.contentRect&&(tt=mt.contentRect.width,Wt=mt.contentRect.height);Ut.set({width:tt,height:Wt})},300)),jt.observe(O)}Ut.set({width:O.clientWidth,height:O.clientHeight})},ue=()=>{document.hidden&&d().actions.external.stop()};Mt(()=>{var Wt,Kt,mt,oi;Gt&&document.addEventListener("visibilitychange",ue),dt.debugLog&&d().actions.internal.startLogging(),ze(r(Ae));let O=it.map(bi=>bi.init({store:d(),microStores:ft,config:u(),interactiveController:w(),uiConfig:f()})),tt=()=>{Gt&&document.removeEventListener("visibilitychange",ue),jt==null||jt.disconnect(),O.forEach(bi=>bi.unsubscribe()),d().destroy()};return((Wt=C())==null?void 0:Wt.status)==="upcoming"?(d().actions.internal.setLiveWaitingStart(!0),tt):((Kt=C())==null?void 0:Kt.status)==="waiting"?(d().actions.internal.setLiveWaitingRecover(!0),tt):(((mt=C())==null?void 0:mt.status)==="finished"||((oi=C())==null?void 0:oi.status)==="postlive")&&!(l()&&G5(l()))?(d().actions.internal.setLiveWaitingRecord(!0),tt):(Ge(),tt)});function Fe(){r(be)?d().actions.external.play():Ie(!0)}function $e(){d().actions.external.pause()}function Xe(O){d().actions.external.setMuted(O)}function Lt(){d().actions.external.toggleSubtitle()}function yt(O,tt){d().actions.external.changeSubtitle(O,tt)}function Vt(O){d().actions.external.changeAudioStream(O)}function hi(){var O;(O=d().webApi.slotsApi)!=null&&O.haveSlots()&&d().actions.external.hideControls()}function Jt(){var O;(O=d().webApi.slotsApi)!=null&&O.haveSlots()&&d().actions.external.showControls()}function _i(O){fe()||O>=0&&O<=1&&d().actions.external.setVolume(O)}function Ii(O){d().actions.internal.seekTime(O,Z5.UNKNOWN)}function mo(O){d().actions.external.seekEpisodeStartTime(O)}function vo(){d().actions.external.returnFocusToEpisodes()}function Ct(O){d().actions.external.setPlaybackRate(O)}function ii(O){d().actions.external.setAutoQualityLimits(O)}function si(){d().actions.external.setQuality("auto")}function We(O){d().actions.external.setTrafficSavingEnabled(O)}function At(O){d().actions.external.setHighQualityEnabled(O)}let Si=Hu(dt.view),Qi=u().playerView==="preview",go=d().state.availableSubtitlesList$;if(dt.features.initSubtitles){let O=!1;Qe(()=>{var tt;if(!O&&s().length){O=!0;let Wt;if(dt.features.userVideoPrefs&&d().videoId){let mt=eu(dt.userSalt,String(d().videoId));mt!=null&&mt.subtitleTrackId&&(Wt=s().find(oi=>oi.value===mt.subtitleTrackId))}let Kt=(tt=T())!=null?tt:vf();Kt&&(Wt=s().find(mt=>mt.language===Kt)),d().actions.internal.setSubtitle(Wt)}})}var xt=X5();let Ye;var Vi=_(xt);{var Co=O=>{_v(O,{get store(){return d()},get uiConfig(){return dt},get thumbUrl(){return p()},get interactiveContainer(){return x()},get live(){return C()},get autoplay(){return R()},get canRewindLive(){return F()},get showAds(){return H()},get adsSlotId(){return W()},get adsParams(){return Z()},get adsAutoplayParam(){return ne()},get duration(){return j()},get logoClickable(){return _e()},get logoHidden(){return ee()},get logoTargetUrl(){return gt},get nextButtonActive(){return pe()},get prevButtonActive(){return Me()},get endScreenVideoTitle(){return Ve()},get endScreenVideoThumb(){return de()},get isOneVideoPlaylist(){return Ne()},get supportLink(){return se()},get shadowRootContainer(){return P()},get outerContainerRef(){return nt()},get fullScreenTarget(){return Be()},get showMiniTimer(){return ie()},get playerStarted(){return r(be)},get seekToInteractive(){return et()},get playPrevChapter(){return xe()},firstStart:Ie,seekTime:Ii,get showEndScreen(){return Ee()},get showAutoplayNext(){return Ce()},get showNextPrevButtons(){return ve()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return r(Ae)},set videoContainer(tt){N(Ae,tt,!0)}})},To=O=>{var tt=He(),Wt=me(tt);{var Kt=oi=>{bv(oi,{get thumbUrl(){return p()},get outsideDuration(){return j()},get canRewindLive(){return F()},get videoContainer(){return r(Ae)},set videoContainer(bi){N(Ae,bi,!0)}})},mt=oi=>{gv(oi,{get store(){return d()},get uiConfig(){return dt},get title(){return m()},get thumbUrl(){return p()},get interactiveContainer(){return x()},get live(){return C()},get autoplay(){return R()},get canRewindLive(){return F()},get showAds(){return H()},get adsSlotId(){return W()},get adsParams(){return Z()},get adsAutoplayParam(){return ne()},get duration(){return j()},get logoClickable(){return _e()},get logoHidden(){return ee()},get logoTargetUrl(){return gt},get nextButtonActive(){return pe()},get prevButtonActive(){return Me()},get endScreenVideoTitle(){return Ve()},get endScreenVideoThumb(){return de()},get isOneVideoPlaylist(){return Ne()},get supportLink(){return se()},get shadowRootContainer(){return P()},get outerContainerRef(){return nt()},get fullScreenTarget(){return Be()},get showMiniTimer(){return ie()},get playerStarted(){return r(be)},get seekToInteractive(){return et()},get playPrevChapter(){return xe()},firstStart:Ie,get showEndScreen(){return Ee()},get showAutoplayNext(){return Ce()},get showNextPrevButtons(){return ve()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return r(Ae)},set videoContainer(bi){N(Ae,bi,!0)},get keyboardControls(){return qe()},set keyboardControls(bi){qe(bi)}})};V(Wt,oi=>{Qi?oi(Kt):oi(mt,!1)})}$(O,tt)};V(Vi,O=>{fe()?O(Co):O(To,!1)})}h(xt),D(O=>{Ye=re(xt,1,"vk-vp-root svelte-78n29",null,Ye,O),lt(xt,Si)},[()=>({"root--miui-browser":$v.device.isMobile&&$v.browser.isMiuiBrowser,"visible-outside":Qi})]),$(t,xt);var sn=z({initVideo:Ge,play:Fe,pause:$e,setMuted:Xe,toggleSubtitle:Lt,changeSubtitle:yt,changeAudioStream:Vt,hideControls:hi,showControls:Jt,setVolume:_i,seekTime:Ii,seekEpisodeStartTime:mo,returnFocusToEpisodes:vo,setPlaybackRate:Ct,setAutoQualityLimits:ii,setAutoQuality:si,toggleTrafficSaving:We,toggleHighQuality:At,get sources(){return l()},set sources(O){l(O)},get store(){return d()},set store(O){d(O)},get microStoresRoot(){return a()},set microStoresRoot(O){a(O)},get videoConfig(){return u()},set videoConfig(O){u(O)},get uiConfig(){return f()},set uiConfig(O){f(O)},get title(){return m()},set title(O){m(O)},get thumbUrl(){return p()},set thumbUrl(O){p(O)},get interactiveContainer(){return x()},set interactiveContainer(O){x(O)},get interactiveController(){return w()},set interactiveController(O){w(O)},get subtitles(){return y()},set subtitles(O){y(O)},get subtitlesForcedLanguage(){return T()},set subtitlesForcedLanguage(O){T(O)},get live(){return C()},set live(O){C(O)},get preload(){return E()},set preload(O){E(O)},get autoplay(){return R()},set autoplay(O){R(O)},get volume(){return I()},set volume(O){I(O)},get muted(){return k()},set muted(O){k(O)},get fromTime(){return B()},set fromTime(O){B(O)},get canRewindLive(){return F()},set canRewindLive(O){F(O)},get showAds(){return H()},set showAds(O){H(O)},get adsSlotId(){return W()},set adsSlotId(O){W(O)},get adsParams(){return Z()},set adsParams(O){Z(O)},get adsAutoplayParam(){return ne()},set adsAutoplayParam(O){ne(O)},get duration(){return j()},set duration(O){j(O)},get logoClickable(){return _e()},set logoClickable(O){_e(O)},get logoHidden(){return ee()},set logoHidden(O){ee(O)},get isMobile(){return fe()},set isMobile(O){fe(O)},get showNextPrevButtons(){return ve()},set showNextPrevButtons(O){ve(O)},get nextButtonActive(){return pe()},set nextButtonActive(O){pe(O)},get prevButtonActive(){return Me()},set prevButtonActive(O){Me(O)},get endScreenVideoTitle(){return Ve()},set endScreenVideoTitle(O){Ve(O)},get endScreenVideoThumb(){return de()},set endScreenVideoThumb(O){de(O)},get isOneVideoPlaylist(){return Ne()},set isOneVideoPlaylist(O){Ne(O)},get supportLink(){return se()},set supportLink(O){se(O)},get shadowRootContainer(){return P()},set shadowRootContainer(O){P(O)},get outerContainerRef(){return nt()},set outerContainerRef(O){nt(O)},get fullScreenTarget(){return Be()},set fullScreenTarget(O){Be(O)},get failoverHosts(){return G()},set failoverHosts(O){G(O)},get showMiniTimer(){return ie()},set showMiniTimer(O){ie(O)},get saveRate(){return Oe()},set saveRate(O){Oe(O)},get showAutoplayNext(){return Ce()},set showAutoplayNext(O){Ce(O)},get seekToInteractive(){return et()},set seekToInteractive(O){et(O)},get playPrevChapter(){return xe()},set playPrevChapter(O){xe(O)},get volumeMultiplier(){return te()},set volumeMultiplier(O){te(O)},get showEndScreen(){return Ee()},set showEndScreen(O){Ee(O)},get keyboardControls(){return qe()},set keyboardControls(O){qe(O)}});return o(),sn}var ew=Se('<svg><!><path fill="currentColor" d="M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"></path></svg>');function xv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=ew();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:le}),we(),h(o),$(t,o)}function wv(t,e){let i=v(e,"isWhite",3,!1),o=g(()=>i()?"color: #fff;":"color: #909499;");xv(t,{get style(){return r(o)}})}var tw=M('<div class="title svelte-1y9fytq"> </div>'),iw=M('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),ow={hash:"svelte-1y9fytq",code:".playerStub.svelte-1y9fytq {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.title.svelte-1y9fytq {position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}"};function Sv(t,e){q(t,ow);var i=iw(),o=_(i);{var n=d=>{var a=tw(),u=_(a,!0);h(a),D(()=>ge(u,e.title)),$(d,a)};V(o,d=>{e.title&&d(n)})}var s=A(o,2);{var l=d=>{let a=g(()=>!!e.thumbUrl);wv(d,{get isWhite(){return r(a)}})};V(s,d=>{(!e.title||!e.thumbUrl)&&d(l)})}h(i),D(()=>lt(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),$(t,i)}var nw=M('<div class="playerError svelte-m5iv29"><!></div>'),rw={hash:"svelte-m5iv29",code:".playerError.svelte-m5iv29 {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}"};function Cv(t){q(t,rw);var e=nw(),i=_(e);Aa(i,{}),h(e),$(t,e)}import{now as Nw,ValueSubject as Bw}from"@vkontakte/videoplayer-shared/es2015";import{cloneDeepWith as Dw,InterfaceLanguage as Fw,isNonNullable as Mv,Logger as Hw,Observable as Uw,Subscription as N0,once as zw,InternalsExposure as Ww,skip as Kw,getPlayerId as qw}from"@vkontakte/videoplayer-shared/es2015";import{clientChecker as B0,isMobile as Qw}from"@vkontakte/videoplayer-core/es2015";import{OneStat as Gw,ThinOneStat as jw,MediascopePixel as Yw}from"@vkontakte/videoplayer-statistics/es2015";import{Logger as sw,Subscription as aw}from"@vkontakte/videoplayer-shared/es2015";var Uu=class{constructor(){this.subscription=new aw,this.logger=new sw,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,s]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,s)}catch(l){throw new Error(`The media session action "${n}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var s,l;let o=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 kv,detectEmbed as fw}from"@vkontakte/videoplayer-shared/es2015";var lw=Se('<svg><!><g fill="var(--btn-color, #fff)"><path d="m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"></path><path d="M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"></path></g></svg>');function Tv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=lw();ke(o,()=>K({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img"},i));var n=_(o);he(n,()=>{var s;return(s=e.children)!=null?s:le}),we(),h(o),$(t,o)}var dw=M('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),cw={hash:"svelte-1pbsod4",code:".player-pip-dummy.svelte-1pbsod4 {width:100%;height:100%;background-color:#19191A;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.player-pip-dummy.is-pip-api.svelte-1pbsod4 {position:relative;}.dummy-image.svelte-1pbsod4 svg {transform:scale(1.07143);}.dummy-image.desktop.svelte-1pbsod4 {transform:scale(1.07143) rotate(-90deg) rotateY(180deg);}.title.svelte-1pbsod4 {font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center;}"};function Ev(t,e){U(e,!0),q(t,cw);let[i,o]=De(),n=()=>S(u,"$interfaceLanguage$",i),s=()=>S(f,"$isMobile$",i),l=Te(),d=It(),a=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,f=l.ui.isMobile,m=l.ui.t,p=g(()=>n()&&m("pip_dummy_title")),x=Hu(d.view);var w=dw();let y;var T=_(w);let C;var E=_(T);Tv(E,{}),h(T);var R=A(T,2),I=_(R,!0);h(R),h(w),D((k,B)=>{y=re(w,1,"player-pip-dummy svelte-1pbsod4",null,y,k),lt(w,x),C=re(T,1,"dummy-image svelte-1pbsod4",null,C,B),ge(I,r(p))},[()=>({"is-pip-api":a}),()=>({desktop:!s()})]),$(t,w),z(),o()}var uw=Object.defineProperty,pw=(t,e,i)=>e in t?uw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,yl=(t,e,i)=>pw(t,typeof e!="symbol"?e+"":e,i),Iv=(t,e,i)=>new Promise((o,n)=>{var s=a=>{try{d(i.next(a))}catch(u){n(u)}},l=a=>{try{d(i.throw(a))}catch(u){n(u)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(s,l);d((i=i.apply(t,e)).next())}),mw=460,vw=280,Yd=class{constructor({enabled:e=!0}={enabled:!0}){yl(this,"playerDomElement"),yl(this,"playerParentShadowRoot"),yl(this,"playerDummyElement"),yl(this,"svelteContext"),yl(this,"pipWindow"),yl(this,"info",{isActive$:new kv(!1),isEnabled$:new kv(!1),type:1}),this.info.isEnabled$=new kv(e)}isSupported(){let{isEmbed:e}=fw();return"documentPictureInPicture"in window&&!e}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}request(){return Iv(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:mw,height:vw,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(u=>u.cssText).join(" ")).filter(Boolean).join(`
|
|
397
|
-
`),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=Wr(Ev,d),(e=this.pipWindow)==null||e.document.body.append(s),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(da(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})})}exit(){return Iv(this,null,function*(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})})}dispose(){return Iv(this,null,function*(){yield this.exit()})}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function k0(t){return t instanceof Yd}var zu=class{static getLatestSupportedVersion(e){let i=new va(e),o=new Yd(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Zd(t,e){var n,s;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(s=(n=e[l])!=null?n:t[l])!=null?s:void 0;return o}var A0="Inner error. Unexpectedly root annotation container null reference exception",P0="Annotation with such name already exists",L0="Annotation with such name does not exist";var xl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as gw,Subscription as hw,throttleFn as _w}from"@vkontakte/videoplayer-shared/es2015";var bw="1",$w=100,Wu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new hw}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=_w(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},$w);this.subscriptions.add(gw(this.rootAnnotationsContainer).subscribe(({width:o,height:n})=>{this.playerSize={width:o,height:n},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new xl(A0);if(this.annotations.has(e))throw new xl(P0);i.style.zIndex=(o=i.style.zIndex)!=null?o:bw,i.style.position="absolute",this.rootAnnotationsContainer.append(i),this.annotations.set(e,i)}get(e){let i=this.annotations.get(e);if(!i)throw new xl(L0);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 Ku,Subscription as yw}from"@vkontakte/videoplayer-shared/es2015";var rn=class{init({store:e,microStores:i,interactiveController:o,config:n}){return Ku(e),Ku(i),Ku(n),n.interactiveData&&Ku(o),this.subscription=new yw,this.subscription}};var Xd=class extends rn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Ft(K({},ae(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(s=>{this.state$.set(s?!0:null)})),o}};var Jd=class extends rn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Ft(K({},ae(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{microStores:n,store:s}=i,{fakeIsPlaying$:l}=n,{isInteractiveExpectation$:d,isPlaying$:a}=s.state,{controlsVisible:u,isMobile:f}=s.ui,m=ye(f),p=()=>m&&ye(u);return o.add(u.subscribe(x=>{if(!m)return;let w=ye(l);ye(a)?this.state$.set(x):w!==null&&this.state$.set(!w||x)})),o.add(a.subscribe(x=>{this.state$.set(!x||p())})),o.add(l.subscribe(x=>{if(x===null)return;let w=ye(d);if(p()){this.state$.set(!0);return}w&&this.state$.set(!x)})),o}};var ec=class extends rn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=ae("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(s=>{s.length&&(s.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};import{combine as xw}from"@vkontakte/videoplayer-shared/es2015";var Av=ae(!1),qu=null,tc=class extends rn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Ft(K({},Av),{set:(i,o=!1)=>{i!==ye(Av)&&(this.clearTimeout(),Av.set(i),!i&&qu&&(qu=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()})}init(i){let o=super.init(i),{store:n,config:s}=i,{isInteractiveTime$:l,isPlaying$:d}=n.state,a=n.ui.controlsVisible,{interactiveTimeIndicator:u}=n.ui.controls;o.add(a.subscribe(m=>{ye(l)&&m&&this.state$.set(!1)}));let f=(s==null?void 0:s.interactiveData)||{tooltipHelpHintActive:!1};return o.add(xw({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:m,isInteractiveTime$:p,interactiveTimeIndicator:x})=>{var w,y;if(!(!m||!(x!=null&&x.isDisplayed))){if(!p)return this.state$.set(!1);f.tooltipHelpHintActive&&qu===null&&(qu=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(y=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||y.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as ww,noop as Sw}from"@vkontakte/videoplayer-shared/es2015";var ic=class extends rn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=Ft(K({},ae(null)),{toggle:Sw});this.checkIfShouldHide=i=>Cs(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=()=>vt(this,null,function*(){if(this.checkIfShouldHide(ye(l)))return;let a=ye(this.state$),{isEnded$:u,playbackState$:f}=n.state,{disabledControls$:m}=n.ui.controls,p=ye(u),x=ye(f);if(a)try{yield s==null?void 0:s.toggleGraphView(!1),this.state$.set(!1),m.remove(ef),!p&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=x==="playing";try{yield s==null?void 0:s.toggleGraphView(!0),this.state$.set(!0),m.add(ef),!p&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}}),o.add(ww({graphIsOpened:this.state$,currentGridType:l}).subscribe(f=>vt(this,[f],function*({graphIsOpened:a,currentGridType:u}){if(this.checkIfShouldHide(u)&&a)try{yield s==null?void 0:s.toggleGraphView(!1),this.state$.set(!1)}catch(p){d({message:"Cant hide graph"})}}))),o}};import{ValueSubject as M0}from"@vkontakte/videoplayer-shared/es2015";var oc=class extends rn{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:ae(!1),isEnabled$:ae(!1),type$:ae(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:s,isEnabled$:l,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new 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 Ew,filterChanged as Iw}from"@vkontakte/videoplayer-shared/es2015";import{safeStorage as Pv}from"@vkontakte/videoplayer-shared/es2015";var V0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?Cw({maxCount:t}):void 0,e!==0?Tw({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},Cw=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Pv.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(Pv.get(e)||"{}")}catch(s){return{}}},o=s=>Pv.set(e,JSON.stringify(s)),n=s=>{let l=i();delete l[s],o(l)};return{notificationShowed:s=>{o(Ft(K({},i()),{[s]:{timeout:t,launchTime:Date.now()}}))},canShowNotification:s=>{let l=i()[s];if(l){let d=Date.now()-l.launchTime>t;return d&&n(s),d}else return!0}}};var nc=class extends rn{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:ae({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:s,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:a}}}=i;this.notificationManager=V0({maxShowCount:s,timeout:l});let u=n.getPlayer();return o.add(u.events.severeStallOccured$.pipe(Iw(),Ew(f=>f)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(a&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var R0=()=>[Xd,Jd,ec,tc,ic,oc,nc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:Ft(K({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});import{devNull as rc}from"@vkontakte/videoplayer-shared/es2015";var Qu=class{constructor(e){this.shadowRoot=e;this.lastFocusedNode=null;this.init=()=>{this.shadowRoot.addEventListener("focusin",this.handleFocusChange)};this.handleFocusChange=()=>{this.lastFocusedNode=this.shadowRoot.activeElement};this.restoreFocus=()=>{var e;(e=this.lastFocusedNode)==null||e.focus()};this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange)}};var kw=M('<div class="root svelte-9ubj1t"><!></div>'),Aw={hash:"svelte-9ubj1t",code:".root.svelte-9ubj1t {position:absolute;display:flex;inset:0;align-items:center;justify-content:center;pointer-events:none;z-index:1;}"};function Lv(t,e){U(e,!0),q(t,Aw);let i=null,o=J(null);Qe(()=>(r(o)&&(i=window.setTimeout(()=>{N(o,null)},e.animationDuration)),()=>{i&&clearTimeout(i)}));function n(a){e.playbackStatusShow&&N(o,a?"prev":"next",!0)}var s=He(),l=me(s);{var d=a=>{var u=He(),f=me(u);bs(f,()=>r(o),m=>{var p=kw(),x=_(p);let w=g(()=>r(o)==="prev");Gd(x,{get duration(){return e.animationDuration},get Icon(){return Md},get isPrev(){return r(w)}}),h(p),$(m,p)}),$(a,u)};V(l,a=>{e.playbackStatusShow&&r(o)&&a(d)})}return $(t,s),z({startVideoChangedAnimation:n})}var Pw=Object.defineProperty,Lw=Object.defineProperties,Mw=Object.getOwnPropertyDescriptors,O0=Object.getOwnPropertySymbols,Vw=Object.prototype.hasOwnProperty,Rw=Object.prototype.propertyIsEnumerable,Rv=(t,e,i)=>e in t?Pw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Ps=(t,e)=>{for(var i in e||(e={}))Vw.call(e,i)&&Rv(t,i,e[i]);if(O0)for(var i of O0(e))Rw.call(e,i)&&Rv(t,i,e[i]);return t},Ow=(t,e)=>Lw(t,Mw(e)),zt=(t,e,i)=>Rv(t,typeof e!="symbol"?e+"":e,i),Gu=(t,e,i)=>new Promise((o,n)=>{var s=a=>{try{d(i.next(a))}catch(u){n(u)}},l=a=>{try{d(i.throw(a))}catch(u){n(u)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(s,l);d((i=i.apply(t,e)).next())}),Zw={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Fw.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:Qw(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Bn=J(void 0),Vv=ei({animationDuration:0,playbackStatusShow:!1}),ju=class extends HTMLElement{constructor(){super(),zt(this,"svelteStubComponent"),zt(this,"svelteRootComponent"),zt(this,"sveltePersistentLayerComponent"),zt(this,"svelteErrorComponent"),zt(this,"store"),zt(this,"microStoresRoot"),zt(this,"statistics"),zt(this,"sentry"),zt(this,"_shadowRoot"),zt(this,"playerContainer"),zt(this,"rootContainer"),zt(this,"shadowRootContainer"),zt(this,"playerId"),zt(this,"uiConfig"),zt(this,"coreConfig"),zt(this,"statisticsConfig"),zt(this,"interactiveController"),zt(this,"interactiveContainer"),zt(this,"graphMadePause"),zt(this,"currentPlayingVideoIndex",0),zt(this,"needToRepeatPlaylist",!1),zt(this,"videoConfig"),zt(this,"pictureInPictureApi"),zt(this,"mediaSessionApi"),zt(this,"unsubscribePlayerPhaseSubscription"),zt(this,"logger"),zt(this,"log"),zt(this,"subscription"),zt(this,"interactiveSubscription"),zt(this,"annotationsApi"),zt(this,"slotsApi"),zt(this,"focusManager"),zt(this,"prevIsid"),zt(this,"isInited",!1),zt(this,"internalsExposure",null),zt(this,"shadowDOMCallbacksDisabled",!1),zt(this,"fatalError$",new Bw(null)),zt(this,"createOneStat",(e,i={})=>{var o,n,s,l;if(!this.videoConfig)return;let{albumId:d,statPlace:a,statUserSalt:u,statTrackCode:f,statVKAppId:m,refreshStatAuthToken:p,autoplay:x,isMobile:w,isTouch:y,refDomain:T,deviceId:C,interactiveData:E}=Zd(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:k,isClip:B=!1}=e;if(this.uiConfig.features.statistics&&k)try{return new Gw(Ps({movieId:k,albumId:d,place:a,trackCode:f,vkAppId:m,autoplay:(l=x&&!this.interactiveController)!=null?l:!1,mobile:y!=null?y:w,clip:B,refDomain:T,deviceId:C,isPreviewPlayerView:this.videoConfig.playerView==="preview"},R&&(!this.isInited||I)&&{projectId:Number(R)}),Ps({refreshAuthToken:p,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}catch(H){console.error(H),this.log({message:H.message})}}),rc.create("ui"),this.logger=new Hw,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new N0,this.interactiveSubscription=new N0,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=Wr(Cv,{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=ei({title:o,thumbUrl:n}),l={target:this.playerContainer,props:s};this.svelteStubComponent=Wr(Sv,l),this.sveltePersistentLayerComponent=Wr(Lv,{target:this.playerContainer,props:Vv})}updatePersistentLayerProps(){if(!this.uiConfig)return;let{playbackStatusNextVideoAnimationDuration:e,features:{playbackStatusShow:i,playbackStatusNextVideoShow:o}}=this.uiConfig;Vv.animationDuration=e,Vv.playbackStatusShow=i&&o}disconnectedCallback(){var e,i,o,n,s,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(n=this.mediaSessionApi)==null||n.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),this.unmountComponent(this.sveltePersistentLayerComponent),this.subscription.unsubscribe(),(s=this.unsubscribePlayerPhaseSubscription)==null||s.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),rc.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:n,refreshStatAuthToken:s}=Zd(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new jw.ThinOneStat({deviceId:o,movieId:l,preload:n,isPreviewPlayerView:this.videoConfig.playerView==="preview"},{config:this.statisticsConfig,refreshAuthToken:s})}createPlayer(e,i={},o){var n,s,l,d,a,u,f,m,p,x;if(!this.videoConfig)return;let{albumId:w,statPlace:y,statAuthToken:T,preload:C,autoplay:E,volume:R,muted:I,fromTime:k,canRewindLive:B,supportLink:F,showAds:H,adsSlotId:W,adsParams:Z={},adsAutoplayParam:ne,interfaceLanguage:j,isCyrillicRelatedInterface:_e,logoClickable:ee,logoHidden:fe,isMobile:ve,isTouch:pe,isAudioDisabled:Me,isLiveCatchUpMode:Ve,fullScreenTarget:de,failoverHosts:Ne,canDownload:se,callbacks:P,interactiveData:nt,showThumbTimer:Be,additionalButtons:G=[],additionalSettingsMenuItems:ie=[],additionalContextMenuItems:Oe=[],repeat:et,loop:xe,saveRate:te,volumeMultiplier:Ce,showEndScreen:Ee,showAutoplayNext:qe,mediascopePixels:it}=Zd(this.videoConfig,i),{sources:ft,title:dt,thumbUrl:gt,unitedVideoId:ot,isClip:Ut=!1,duration:Qt,adsParams:Yt={},videoEpisodes:Gt,previewThumbsData:Ae,subtitles:jt,subtitlesForcedLanguage:be,live:Ie,adsExternalApi:ce}=e;if(!ft&&!Ie){let ii=new Error("empty sources and live");this.fatalError$.next(ii),(n=P.onCrashed)==null||n.call(P,ii.message);return}let Ge=Ps(Ps({},Z),Yt),ze=this.getNextVideoInfo(),ue={sources:ft,title:dt,thumbUrl:gt,subtitles:jt,subtitlesForcedLanguage:be,unitedVideoId:ot,isClip:Ut,live:Ie,albumId:w,statPlace:y,autoplay:E,muted:I,volume:R,fromTime:k,canRewindLive:B,showAds:H,adsSlotId:W,adsParams:Ge,adsAutoplayParam:ne,duration:Qt,logoClickable:ee,logoHidden:fe,isTouch:pe!=null?pe:ve,repeat:et,loop:xe,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ze.nextVideoTitle,endScreenVideoThumb:ze.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Fe={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(ue)}`});let $e=(s=this.interactiveController)==null?void 0:s.state.statistics$.getValue(),Xe=($e==null?void 0:$e.oneStat)||this.createOneStat(e,i),Lt=this.createThinOneStat(e,i),yt;it&&(yt=new Yw({pixels:it})),(Xe||Lt)&&(this.statistics=new Su(Xe,Lt,yt,$e==null?void 0:$e.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new ma(this.uiConfig.sentry,{version:sl,env:Qc},{movieId:ot,albumId:w,place:y,autoplay:(l=E&&!this.interactiveController)!=null?l:!1,mobile:pe!=null?pe:ve,clip:Ut}),this.interactiveController&&((u=this.prevIsid)!=null||(this.prevIsid=(a=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:a.isid$.getValue())),this.sentry=Ps(Ps({},this.sentry),ma.getInstance());let hi=!!nt,Jt=[],_i="tooltip_interactive_go_back_disabled_first";if(hi&&this.interactiveController){let ii=this.interactiveController.state.isInitialChapter$.getValue(),si=this.interactiveController.getHistoryState();ii&&Jt.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Jt.push("SEEK_TO_INTERACTIVE_BUTTON"),si.hasPrevChapter$.getValue()||(Jt.push("PLAY_PREV_CHAPTER_BUTTON"),ii||(si.isGoBackLimited$.getValue()?_i="tooltip_interactive_go_back_disabled_limit":_i="tooltip_interactive_go_back_disabled"))}let Ii=()=>{var ii;this.isInited=!1,this.prevIsid=void 0;let si=(o==null?void 0:o.info.isEnded$.getValue())&&((ii=this.interactiveController)==null?void 0:ii.state.isEndChapter$.getValue());P.onReplayInteractiveVideo&&!si?P.onReplayInteractiveVideo():this.replayInteractiveVideo()},mo=et&&this.videoConfig.videos.length===1;this.store=j1({player:o,interfaceLanguage:j,isCyrillicRelatedInterface:_e,videoId:ot,isClip:Ut,isLiveCatchUpMode:Ve,isAudioDisabled:Me,statAuthToken:T,callbacks:P,webApi:Fe,videoEpisodes:Gt,previewThumbsData:Ae,canDownload:se,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Jt,isInteractive:hi,saveRate:te,interactiveRanges$:(f=this.interactiveController)==null?void 0:f.state.interactiveRanges$,isInteractiveTime$:(m=this.interactiveController)==null?void 0:m.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:Ii,playPrevChapterDisabledTooltip:_i,hasInteractiveBranches:!!((x=(p=this.interactiveController)==null?void 0:p.getChapterBranches())!=null&&x.length),additionalButtons:this.uiConfig.features.additionalButtons?G:[],additionalSettingsMenuItems:ie!=null?ie:[],additionalContextMenuItems:Oe!=null?Oe:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:ii=>{var si;return(si=this.sveltePersistentLayerComponent)==null?void 0:si.startVideoChangedAnimation(ii)},looped:this.uiConfig.features.useLoopSetting?xe:mo,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:vo}=this.microStoresRoot=R0(),Ct=()=>{var ii,si,We,At,Si,Qi;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(xt=>{var Ye;return(Ye=P==null?void 0:P.onCurrentFormatChanged)==null?void 0:Ye.call(P,xt)})),this.subscription.add(vo.interactiveControlsOpacity$.subscribe(xt=>{var Ye;xt!==null&&((Ye=this==null?void 0:this.interactiveController)==null||Ye.setDisabledControls(xt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(xt=>{var Ye;return(Ye=P==null?void 0:P.onThroughputEstimationChanged)==null?void 0:Ye.call(P,xt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(xt=>{var Ye;return(Ye=P==null?void 0:P.onTrafficSavingEnabledChanged)==null?void 0:Ye.call(P,xt)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(xt=>{var Ye;return(Ye=P==null?void 0:P.onHighQualityEnabledChanged)==null?void 0:Ye.call(P,xt)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(xt=>{var Ye;return(Ye=P==null?void 0:P.onAutoQualityEnabledChanged)==null?void 0:Ye.call(P,!!xt)})),this.subscription.add(new Uw(xt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Ye=>xt.next(Ye)))}).pipe(Kw(1)).subscribe(xt=>{var Ye;return(Ye=P==null?void 0:P.onCurrentPlaybackRateChanged)==null?void 0:Ye.call(P,xt)})),this.subscription.add(this.store.state.volume$.subscribe(xt=>{var Ye;return(Ye=P==null?void 0:P.onVolumeChange)==null?void 0:Ye.call(P,xt)})),this.subscription.add(this.store.state.muted$.subscribe(xt=>{var Ye,Vi,Co,To;if(xt)(Ye=P==null?void 0:P.onMute)==null||Ye.call(P);else{let sn=(Co=((Vi=this.store)==null?void 0:Vi.state.volume$)&&ye(this.store.state.volume$))!=null?Co:0;(To=P==null?void 0:P.onUnmute)==null||To.call(P,sn)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(xt=>{var Ye;return(Ye=P==null?void 0:P.onVideoBitrateChanged)==null?void 0:Ye.call(P,xt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(xt=>{var Ye;let Vi=(Ye=this.store)==null?void 0:Ye.ui.controls.disabledControls$;Vi&&(xt&&!Vi.includes(td)&&Vi.add(td),xt||Vi.remove(td))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(xt=>Gu(this,null,function*(){var Ye;if(!B0.browser.isSamsungBrowser||!xt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((Ye=this.videoConfig)==null?void 0:Ye.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(xt=>{var Ye;return(Ye=P==null?void 0:P.onVSIDChanged)==null?void 0:Ye.call(P,xt)})),this.initMediaSession(),N(Bn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:ft,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:dt,thumbUrl:gt,subtitles:jt,subtitlesForcedLanguage:be,live:Ie,preload:C,autoplay:E,muted:I,volume:R,fromTime:k,canRewindLive:B,supportLink:F,showAds:H,adsSlotId:W,adsParams:Ge,adsAutoplayParam:ne,duration:Qt,logoClickable:ee,logoHidden:fe,isMobile:pe!=null?pe:ve,failoverHosts:Ne,fullScreenTarget:de,saveRate:te,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Be,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ze.nextVideoTitle,endScreenVideoThumb:ze.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Ce,showEndScreen:Ee,showAutoplayNext:qe,adsExternalApi:ce},!0);let go={target:this.playerContainer,props:r(Bn)};this.svelteRootComponent=Wr(yv,go),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(We=(si=(ii=this.videoConfig)==null?void 0:ii.callbacks)==null?void 0:si.onInited)==null||We.call(si)),(At=this.internalsExposure)==null||At.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Qi=(Si=this.videoConfig)==null?void 0:Si.callbacks)!=null&&Qi.onDevNullLog)?rc.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):rc.destroy("ui")};this.coreConfig.asyncResolveClientChecker?B0.isInited$.subscribe(ii=>{ii&&(console.log("UI SDK async start"),Ct())}):Ct()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,n=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!n)return;let s=(i=this.videoConfig)==null?void 0:i.callbacks;s&&this.subscription.add(o.playerPhase.subscribe(d=>{var a;return(a=s.onPlayerPhaseChanged)==null?void 0:a.call(s,d)})).add(o.state.playbackState$.subscribe(d=>{var a;return d&&((a=s.onPlaybackStateChanged)==null?void 0:a.call(s,d))})).add(o.state.isLive$.subscribe(d=>{var a;return(a=s.onIsLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isActiveLive$.subscribe(d=>{var a;return(a=s.onIsActiveLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var a;return(a=s.onIsAudioAvailableChanged)==null?void 0:a.call(s,d)})).add(o.state.currentQuality$.subscribe(d=>{var a;return(a=s.onCurrentQualityChanged)==null?void 0:a.call(s,d)})).add(o.state.availableQualities$.subscribe(d=>{var a;return(a=s.onAvailableQualitiesChanged)==null?void 0:a.call(s,d.map(({value:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&s.onAudioLanguagesAvailable&&s.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var a,u;return d?(a=s.onPiPEnter)==null?void 0:a.call(s):(u=s.onPiPExit)==null?void 0:u.call(s)}));let l=s==null?void 0:s.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var a;return(a=l.onControlsVisibleChanged)==null?void 0:a.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var a;return(a=l.onIsMobileChanged)==null?void 0:a.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var a;return(a=l.onPlayerSizeChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var a;return(a=l.onPrevButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var a;return(a=l.onPlayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var a;return(a=l.onReplayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var a;return(a=l.onNextButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var a;return(a=l.onPlayPrevChapterChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var a;return(a=l.onSeekToInteractiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var a;return(a=l.onGraphButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var a;return(a=l.onLiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var a;return(a=l.onTimeUpdateChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var a;return(a=l.onEpisodesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var a;return(a=l.onSubtitlesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var a;return(a=l.onTopLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var a;return(a=l.onTopRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var a;return(a=l.onBottomLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var a;return(a=l.onBottomRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var a;return(a=l.onMiddleControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var a;return(a=l.onBottomControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var a;return(a=l.onTitleChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var a;return(a=l.onSettingsChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var a;return(a=l.onFullscreenChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var a;return(a=l.onChromecastChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var a;return(a=l.onPipChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var a;return(a=l.onVkLogoChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var a;return(a=l.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var a;return(a=l.onTimelineChanged)==null?void 0:a.call(l,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let n=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!n){this.log({message:"no next video"});return}this.isInited&&Mv(n.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(n.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(n,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}initInteractives(){return Gu(this,null,function*(){var e,i,o,n,s,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=yield import("@vkontakte/videoplayer-interactive/es2015");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let a=(i=this.store)==null?void 0:i.interfaceLanguage$,u=a?ye(a):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:m,historyApi:p,videoLoader:x}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:u,graph:this.uiConfig.features.interactiveGraph,projectInfo:f,initChapterId:m,historyApi:p,vkVideoLoader:x,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation},endChapterHistoryFix:this.uiConfig.features.interactiveHistoryEndChapterFix});let{isInteractiveExpectation$:w,isSeekable$:y}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(y.subscribe(C=>{if(!this.isInited)return;let E=this.store;C?E.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):E.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(w.subscribe(C=>{this.store&&this.store.state.isInteractiveExpectation$.set(C)}));let T=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(C=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=Ow(Ps({},C.config),{title:(f==null?void 0:f.title)||C.config.title});let E=T?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(C.player,E),T&&(T=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:C,actionType:E})=>{var R,I,k,B,F,H;if(!this.store||!this.microStoresRoot)return;let W=w.getValue();if(C==="action-choice"&&E==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(id)),C==="action-choice-canceled"){let Z=ye(this.store.state.isPlaying$)||W;if(((k=(R=this.videoConfig)==null?void 0:R.isTouch)!=null?k:(I=this.videoConfig)!=null&&I.isMobile)&&Z){this.store.ui.interactiveHideMobileControls.set(!0);return}(H=(B=this.videoConfig)==null?void 0:(F=B.callbacks).onDisabledInteractiveClick)==null||H.call(F)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:C,removeAllOpenURI:E})=>{this.store&&C==="container-fake-removed"&&E&&this.store.ui.controls.disabledControls$.remove(id)})),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let C=this.interactiveController.getHistoryState();this.subscription.add(C.history$.subscribe(E=>{var R,I,k;E.length&&((k=(I=(R=this.videoConfig)==null?void 0:R.callbacks)==null?void 0:I.onInteractiveHistoryChanged)==null||k.call(I,E))}))}(l=(s=this.videoConfig)==null?void 0:s.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(C=>{var E,R,I;(I=(E=this.videoConfig)==null?void 0:(R=E.callbacks).onInteractiveChapterChanged)==null||I.call(R,C.chapter,C.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var C,E,R,I;(C=this.microStoresRoot)==null||C.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(C=>{this.log({message:C.toString()})}))}catch(d){this.log({message:d.message})}})}initPlayer(e,i={}){var o,n,s,l,d,a,u,f,m,p,x,w,y,T,C,E,R,I,k,B,F,H,W,Z,ne,j,_e,ee;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=Zd(Zw,Dw(e,fe=>fe instanceof HTMLElement?fe:void 0)),this.playerId=qw(e.playerId),this.uiConfig=Th((s=i.ui)!=null?s:{}),this.updatePersistentLayerProps(),this.coreConfig=(l=i.core)!=null?l:{configName:[]},this.statisticsConfig=(d=i.statistics)!=null?d:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer&&(this.rootContainer.style.minHeight="unset"),this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},this.uiConfig.features.exposeInternalsToGlobal&&((u=this.internalsExposure)!=null||(this.internalsExposure=new Ww("ui",this.playerId))),rc.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((f=this.videoConfig)==null?void 0:f.showAds)],numbers:[Nw()]}),Mv(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(p=(m=this.uiConfig.features.mediaSession)!=null?m:this.videoConfig.isMediaSessionEnabled)!=null?p:!0),Mv(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(w=(x=this.uiConfig.features.pip)!=null?x:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0,this.uiConfig.features.dpip=(T=(y=this.uiConfig.features.dpip)!=null?y:this.videoConfig.isPictureInPictureEnabled)!=null?T:!0),this.uiConfig.ads.paramsOverride=Ps({preview:(C=this.uiConfig.ads.preview)!=null?C:this.videoConfig.adsPreviewParam},this.uiConfig.ads.paramsOverride),this.videoConfig.isTouch=(R=(E=this.uiConfig.isMobile)!=null?E:this.videoConfig.isTouch)!=null?R:this.videoConfig.isMobile,(I=this.videoConfig).autoplay&&(I.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(k=this.uiConfig.ads.enable)!=null?k:this.videoConfig.showAds,this.videoConfig.adsSlotId=(B=this.uiConfig.ads.slot)!=null?B:this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!((F=this.uiConfig.showLogo)!=null?F:!this.videoConfig.logoHidden),(H=this.videoConfig).canRewindLive&&(H.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(W=this.videoConfig.supportLink)!=null?W:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(Z=this.uiConfig.features.endScreen)!=null?Z:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(ne=this.uiConfig.features.autoplayNext)!=null?ne:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(j=this.uiConfig.features.nextPrevButtons)!=null?j:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((_e=this.videoConfig.videos)!=null&&_e[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=zu.getLatestSupportedVersion(fe):this.pictureInPictureApi=new va(fe)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Uu:void 0,this.slotsApi=this.uiConfig.features.slots?new Bu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Wu(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]),k0(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(ee=this.slotsApi)==null||ee.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new Qu(this._shadowRoot):void 0}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();r(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}=Ps({},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)}changeAudioStream(e){var i;(i=this.svelteRootComponent)==null||i.changeAudioStream(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}setLanguage(e){return Gu(this,null,function*(){var i;yield(i=this.store)==null?void 0:i.actions.internal.setLanguage(e)})}setLiveStart(e){var i,o;let n=this.isLiveTailPlaying();this.log({message:`live started: liveTailPlaying = ${n}`}),n||((i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0}))}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){var e;let i=(e=this.store)==null?void 0:e.getPlayer();if(!i)return!1;let{info:o}=i;return o.canPlayLiveTailBuffer$.getValue()&&!o.isStalled$.getValue()&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),n=e||!o;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${o}`});let s=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};n&&s(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;n||s(),(l=this.store)==null||l.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let n=()=>{var s;(s=this.store)==null||s.actions.internal.setLiveWaitingRecord(!0)};o&&n(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var s;o||n(),(s=this.store)==null||s.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),n=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let s=()=>{var l,d;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!1),(d=this.store)==null||d.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(n){s();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=s)}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}replayInteractiveChapter(e){return Gu(this,null,function*(){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(zw()).subscribe(()=>{l&&n>=l.time?this.seekTime(l.time):this.seekTime(n),e==null||e()});let d=this.interactiveController.getCurrentChapter();yield this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}})}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&(this.statistics.oneStat&&this.statistics.oneStat.updateContext(e),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}restoreFocus(){var e;(e=this.focusManager)==null||e.restoreFocus()}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}setAutoplayNext(e){var i;(i=this.store)==null||i.actions.internal.setAutoplayNextEnabled(e)}getTotalViewTime(){var e,i;return(i=(e=this.statistics)==null?void 0:e.thinOneStat)==null?void 0:i.getTotalViewTime()}unmountComponent(e){e&&da(e)}};import{InterfaceLanguage as Bie,VKNumericLanguage as Die,loadVKLangPack as Fie}from"@vkontakte/videoplayer-shared/es2015";import{VideoQuality as Uie,VideoFormat as zie}from"@vkontakte/videoplayer-core/es2015";var Aie=()=>{window.customElements.define("vk-video-player",ju)};export{Cu as ControlButtonType,cs as GridTypes,Bie as InterfaceLanguage,fd as MenuItemType,Ss as PlayerPhase,sl as VERSION,Die as VKNumericLanguage,zie as VideoFormat,Uie as VideoQuality,Fie as loadVKLangPack,Aie as registerPlayerWebComponent};
|
|
407
|
+
/* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.vk-vp-root.svelte-3c0y7j .out-of-view {position:absolute !important;left:-1000vh !important;}.vk-vp-root.svelte-3c0y7j .icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function Um(t,e){F(e,!0),W(t,Zw);let[i,o]=Be(),r=()=>S(Qt,"$isLive$",i),s=()=>S(St,"$availableSubtitlesList$",i),l=()=>S(Ye,"$isPreviewTrackHorizontallyAligned$",i),d=h(e,"sources",7),a=h(e,"store",7),u=h(e,"microStoresRoot",7),f=h(e,"videoConfig",7),v=h(e,"uiConfig",7),p=h(e,"title",7),x=h(e,"thumbUrl",7),w=h(e,"interactiveContainer",7),y=h(e,"interactiveController",7),C=h(e,"subtitles",7),T=h(e,"subtitlesForcedLanguage",7),E=h(e,"live",7),R=h(e,"preload",7),A=h(e,"autoplay",7),I=h(e,"volume",7,void 0),N=h(e,"muted",7,void 0),H=h(e,"fromTime",7),B=h(e,"canRewindLive",7),z=h(e,"showAds",7),X=h(e,"adsSlotId",7,void 0),le=h(e,"adsParams",7,void 0),q=h(e,"adsAutoplayParam",7,void 0),ce=h(e,"duration",7,void 0),J=h(e,"logoClickable",7),ve=h(e,"logoHidden",7),se=h(e,"isMobile",7),de=h(e,"showNextPrevButtons",7,!1),Le=h(e,"nextButtonActive",7,!1),Se=h(e,"prevButtonActive",7,!1),ie=h(e,"endScreenVideoTitle",7,void 0),Ne=h(e,"endScreenVideoThumb",7,void 0),pe=h(e,"isOneVideoPlaylist",7,!1),k=h(e,"supportLink",7),qe=h(e,"shadowRootContainer",7),Re=h(e,"outerContainerRef",7),Z=h(e,"fullScreenTarget",7,void 0),ne=h(e,"failoverHosts",7,void 0),He=h(e,"showMiniTimer",7,!1),Ze=h(e,"saveRate",7),ge=h(e,"seekToInteractive",7,X0),ee=h(e,"playPrevChapter",7,X0),ke=h(e,"volumeMultiplier",7),he=h(e,"showAutoplayNext",7),Ue=h(e,"showEndScreen",7,!0),Xe=h(e,"keyboardControls",15,void 0),{subscribers:Ge,stores:ct}=u();Qh(v());let et=Rt(),Bt=v().logoLink,rt=a().ui.debugPanelVisible,Dt=a().ui.playerSize,Qt=a().state.isLive$,ti=a().state.isInteractive&&Fm.device.isAndroid,Wt=j(void 0),Ce=null,we=j(!1);a().getAdmanWrapper().init({switchFromAdsToVideo:a().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:a().actions.internal.switchFromVideoToAds,setMuted:a().actions.external.setMuted},a().ads,{vsid:a().vsid}),o1(a(),ct),We(()=>{var K,Vt;a().ui.isMobile.set(se()),(Vt=(K=f().callbacks)==null?void 0:K.onDomReady)==null||Vt.call(K)});let te=(K=!1)=>{O(we,!0),K?a().actions.external.firstStart(z()):a().actions.internal.firstStart(z())},Te=()=>{if(et.features.qualityDetailsSubMenuEnabled){let K=C1(a().videoId);if(K)switch(K.type){case"high_quality":a().actions.internal.setHighQualityEnabled(!0,K.appliesTo);break;case"traffic_saving":a().actions.internal.setTrafficSavingEnabled(!0,K.appliesTo);break;case"exact_quality":a().actions.internal.setQuality(K.quality);break}}else{T1(a().videoId),Cf()&&a().actions.internal.setTrafficSavingEnabled(!0);let Vt=yf(a().videoId);Vt&&a().actions.internal.setQuality(Vt)}};function Me(K){var Gt,pt,Oi;let Vt=d()||K;Vt&&a().initVideo({container:n(Wt),sources:Vt,failoverHosts:ne(),subtitles:C(),subtitlesForcedLanguage:T(),volumeMultiplier:ke()});let oi=Qw.get(wd)==="true";rt.set(oi),H()>0&&a().actions.external.seekTime(H());let ft=se()?et.volumeDefault:(pt=(Gt=I())!=null?Gt:mu())!=null?pt:et.volumeDefault,At=(Oi=N())!=null?Oi:b1();if(a().actions.external.setVolume(ft),a().actions.external.setMuted(At),a().getAdmanWrapper().setInitialVolume(At?0:ft),Te(),et.features.saveRate&&Ze()){let Fi=x1();Fi&&!r()&&a().actions.internal.setPlaybackRate(Fi)}if(he()){let Fi=S1();Fi&&a().actions.internal.setAutoplayNextEnabled(Fi)}a().ui.isAutoplay.set(A()),A()&&te(),R()&&et.features.preload&&a().actions.internal.preload()}let It=K=>{if(window.ResizeObserver){let Vt,oi;Ce=new ResizeObserver(jw(ft=>{let At=ft[0];if(At.contentBoxSize){let Gt=Array.isArray(At.contentBoxSize)?At.contentBoxSize[0]:At.contentBoxSize;Vt=Gt.inlineSize,oi=Gt.blockSize}else At.contentRect&&(Vt=At.contentRect.width,oi=At.contentRect.height);Dt.set({width:Vt,height:oi})},300)),Ce.observe(K)}Dt.set({width:K.clientWidth,height:K.clientHeight})},De=()=>{document.hidden&&a().actions.external.stop()};Nt(()=>{var oi,ft,At,Gt;ti&&document.addEventListener("visibilitychange",De),et.debugLog&&a().actions.internal.startLogging(),It(n(Wt));let K=Ge.map(pt=>pt.init({store:a(),microStores:ct,config:f(),interactiveController:y(),uiConfig:v()})),Vt=()=>{ti&&document.removeEventListener("visibilitychange",De),Ce==null||Ce.disconnect(),K.forEach(pt=>pt.unsubscribe()),a().destroy()};return((oi=E())==null?void 0:oi.status)==="upcoming"?(a().actions.internal.setLiveWaitingStart(!0),Vt):((ft=E())==null?void 0:ft.status)==="waiting"?(a().actions.internal.setLiveWaitingRecover(!0),Vt):(((At=E())==null?void 0:At.status)==="finished"||((Gt=E())==null?void 0:Gt.status)==="postlive")&&!(d()&&qw(d()))?(a().actions.internal.setLiveWaitingRecord(!0),Vt):(Me(),Vt)});function ut(){n(we)?a().actions.external.play():te(!0)}function $t(){a().actions.external.pause()}function xe(K){a().actions.external.setMuted(K)}function ot(){a().actions.external.toggleSubtitle()}function Qe(K,Vt){a().actions.external.changeSubtitle(K,Vt)}function lt(K){a().actions.external.changeAudioStream(K)}function ii(){var K;(K=a().webApi.slotsApi)!=null&&K.haveSlots()&&a().actions.external.hideControls()}function ai(){var K;(K=a().webApi.slotsApi)!=null&&K.haveSlots()&&a().actions.external.showControls()}function mi(K){se()||K>=0&&K<=1&&a().actions.external.setVolume(K)}function yi(K){a().actions.internal.seekTime(K,Gw.UNKNOWN)}function so(K){a().actions.external.seekEpisodeStartTime(K)}function vo(){a().actions.external.returnFocusToEpisodes()}function ui(K){a().actions.external.setPlaybackRate(K)}function mt(K){a().actions.external.setAutoQualityLimits(K)}function Pi(){a().actions.external.setQuality("auto")}function Yt(K){a().actions.external.setTrafficSavingEnabled(K)}function Tt(K){a().actions.external.setHighQualityEnabled(K)}let ni=rp(et.view),Zt=f().playerView==="preview",St=a().state.availableSubtitlesList$;if(et.features.initSubtitles){let K=!1;We(()=>{var Vt;if(!K&&s().length){K=!0;let oi;if(et.features.userVideoPrefs&&a().videoId){let At=bu(et.userSalt,String(a().videoId));At!=null&&At.subtitleTrackId&&(oi=s().find(Gt=>Gt.value===At.subtitleTrackId))}let ft=(Vt=T())!=null?Vt:Ef();ft&&(oi=s().find(At=>At.language===ft)),a().actions.internal.setSubtitle(oi)}})}let Ye=a().ui.isPreviewTrackHorizontallyAligned;var xi=Yw();let wo;var Zo=_(xi);{var un=K=>{Bm(K,{get store(){return a()},get uiConfig(){return et},get thumbUrl(){return x()},get interactiveContainer(){return w()},get live(){return E()},get autoplay(){return A()},get canRewindLive(){return B()},get showAds(){return z()},get adsSlotId(){return X()},get adsParams(){return le()},get adsAutoplayParam(){return q()},get duration(){return ce()},get logoClickable(){return J()},get logoHidden(){return ve()},get logoTargetUrl(){return Bt},get nextButtonActive(){return Le()},get prevButtonActive(){return Se()},get endScreenVideoTitle(){return ie()},get endScreenVideoThumb(){return Ne()},get isOneVideoPlaylist(){return pe()},get supportLink(){return k()},get shadowRootContainer(){return qe()},get outerContainerRef(){return Re()},get fullScreenTarget(){return Z()},get showMiniTimer(){return He()},get playerStarted(){return n(we)},get seekToInteractive(){return ge()},get playPrevChapter(){return ee()},firstStart:te,seekTime:yi,get showEndScreen(){return Ue()},get showAutoplayNext(){return he()},get showNextPrevButtons(){return de()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(Wt)},set videoContainer(Vt){O(Wt,Vt,!0)}})},kt=K=>{var Vt=Fe(),oi=fe(Vt);{var ft=Gt=>{Hm(Gt,{get thumbUrl(){return x()},get outsideDuration(){return ce()},get canRewindLive(){return B()},get videoContainer(){return n(Wt)},set videoContainer(pt){O(Wt,pt,!0)}})},At=Gt=>{Nm(Gt,{get store(){return a()},get uiConfig(){return et},get title(){return p()},get thumbUrl(){return x()},get interactiveContainer(){return w()},get live(){return E()},get autoplay(){return A()},get canRewindLive(){return B()},get showAds(){return z()},get adsSlotId(){return X()},get adsParams(){return le()},get adsAutoplayParam(){return q()},get duration(){return ce()},get logoClickable(){return J()},get logoHidden(){return ve()},get logoTargetUrl(){return Bt},get nextButtonActive(){return Le()},get prevButtonActive(){return Se()},get endScreenVideoTitle(){return ie()},get endScreenVideoThumb(){return Ne()},get isOneVideoPlaylist(){return pe()},get supportLink(){return k()},get shadowRootContainer(){return qe()},get outerContainerRef(){return Re()},get fullScreenTarget(){return Z()},get showMiniTimer(){return He()},get playerStarted(){return n(we)},get seekToInteractive(){return ge()},get playPrevChapter(){return ee()},firstStart:te,get showEndScreen(){return Ue()},get showAutoplayNext(){return he()},get showNextPrevButtons(){return de()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(Wt)},set videoContainer(pt){O(Wt,pt,!0)},get keyboardControls(){return Xe()},set keyboardControls(pt){Xe(pt)}})};V(oi,Gt=>{Zt?Gt(ft):Gt(At,!1)})}b(K,Vt)};V(Zo,K=>{se()?K(un):K(kt,!1)})}g(xi),D(K=>{wo=re(xi,1,"vk-vp-root svelte-3c0y7j",null,wo,K),Je(xi,ni)},[()=>({"root--miui-browser":Fm.device.isMobile&&Fm.browser.isMiuiBrowser,"visible-outside":Zt,"preview-track-horizontally-alinged":l()})]),b(t,xi);var Ht=U({initVideo:Me,play:ut,pause:$t,setMuted:xe,toggleSubtitle:ot,changeSubtitle:Qe,changeAudioStream:lt,hideControls:ii,showControls:ai,setVolume:mi,seekTime:yi,seekEpisodeStartTime:so,returnFocusToEpisodes:vo,setPlaybackRate:ui,setAutoQualityLimits:mt,setAutoQuality:Pi,toggleTrafficSaving:Yt,toggleHighQuality:Tt,get sources(){return d()},set sources(K){d(K)},get store(){return a()},set store(K){a(K)},get microStoresRoot(){return u()},set microStoresRoot(K){u(K)},get videoConfig(){return f()},set videoConfig(K){f(K)},get uiConfig(){return v()},set uiConfig(K){v(K)},get title(){return p()},set title(K){p(K)},get thumbUrl(){return x()},set thumbUrl(K){x(K)},get interactiveContainer(){return w()},set interactiveContainer(K){w(K)},get interactiveController(){return y()},set interactiveController(K){y(K)},get subtitles(){return C()},set subtitles(K){C(K)},get subtitlesForcedLanguage(){return T()},set subtitlesForcedLanguage(K){T(K)},get live(){return E()},set live(K){E(K)},get preload(){return R()},set preload(K){R(K)},get autoplay(){return A()},set autoplay(K){A(K)},get volume(){return I()},set volume(K){I(K)},get muted(){return N()},set muted(K){N(K)},get fromTime(){return H()},set fromTime(K){H(K)},get canRewindLive(){return B()},set canRewindLive(K){B(K)},get showAds(){return z()},set showAds(K){z(K)},get adsSlotId(){return X()},set adsSlotId(K){X(K)},get adsParams(){return le()},set adsParams(K){le(K)},get adsAutoplayParam(){return q()},set adsAutoplayParam(K){q(K)},get duration(){return ce()},set duration(K){ce(K)},get logoClickable(){return J()},set logoClickable(K){J(K)},get logoHidden(){return ve()},set logoHidden(K){ve(K)},get isMobile(){return se()},set isMobile(K){se(K)},get showNextPrevButtons(){return de()},set showNextPrevButtons(K){de(K)},get nextButtonActive(){return Le()},set nextButtonActive(K){Le(K)},get prevButtonActive(){return Se()},set prevButtonActive(K){Se(K)},get endScreenVideoTitle(){return ie()},set endScreenVideoTitle(K){ie(K)},get endScreenVideoThumb(){return Ne()},set endScreenVideoThumb(K){Ne(K)},get isOneVideoPlaylist(){return pe()},set isOneVideoPlaylist(K){pe(K)},get supportLink(){return k()},set supportLink(K){k(K)},get shadowRootContainer(){return qe()},set shadowRootContainer(K){qe(K)},get outerContainerRef(){return Re()},set outerContainerRef(K){Re(K)},get fullScreenTarget(){return Z()},set fullScreenTarget(K){Z(K)},get failoverHosts(){return ne()},set failoverHosts(K){ne(K)},get showMiniTimer(){return He()},set showMiniTimer(K){He(K)},get saveRate(){return Ze()},set saveRate(K){Ze(K)},get showAutoplayNext(){return he()},set showAutoplayNext(K){he(K)},get seekToInteractive(){return ge()},set seekToInteractive(K){ge(K)},get playPrevChapter(){return ee()},set playPrevChapter(K){ee(K)},get volumeMultiplier(){return ke()},set volumeMultiplier(K){ke(K)},get showEndScreen(){return Ue()},set showEndScreen(K){Ue(K)},get keyboardControls(){return Xe()},set keyboardControls(K){Xe(K)}});return o(),Ht}var Xw=Ie('<svg><!><path fill="currentColor" d="M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"></path></svg>');function zm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Xw();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}function Wm(t,e){let i=h(e,"isWhite",3,!1),o=m(()=>i()?"color: #fff;":"color: #909499;");zm(t,{get style(){return n(o)}})}var Jw=M('<div class="title svelte-1y9fytq"> </div>'),e6=M('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),t6={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 Km(t,e){W(t,t6);var i=e6(),o=_(i);{var r=d=>{var a=Jw(),u=_(a,!0);g(a),D(()=>me(u,e.title)),b(d,a)};V(o,d=>{e.title&&d(r)})}var s=P(o,2);{var l=d=>{let a=m(()=>!!e.thumbUrl);Wm(d,{get isWhite(){return n(a)}})};V(s,d=>{(!e.title||!e.thumbUrl)&&d(l)})}g(i),D(()=>Je(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}var i6=M('<div class="playerError svelte-m5iv29"><!></div>'),o6={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 qm(t){W(t,o6);var e=i6(),i=_(e);Ka(i,{}),g(e),b(t,e)}import{now as R6,ValueSubject as O6}from"@vkontakte/videoplayer-shared/es2015";import{cloneDeepWith as N6,InterfaceLanguage as D6,isNonNullable as eg,Logger as B6,Observable as H6,Subscription as a_,once as F6,InternalsExposure as U6,skip as z6,getPlayerId as W6}from"@vkontakte/videoplayer-shared/es2015";import{clientChecker as l_,isMobile as K6}from"@vkontakte/videoplayer-core/es2015";import{OneStat as q6,ThinOneStat as Q6,MediascopePixel as j6}from"@vkontakte/videoplayer-statistics/es2015";import{Logger as n6,Subscription as r6}from"@vkontakte/videoplayer-shared/es2015";var sp=class{constructor(){this.subscription=new r6,this.logger=new n6,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[r,s]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,r,s)}catch(l){throw new Error(`The media session action "${r}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var s,l;let o=$e(e.state.currentPlaybackRate$),r=$e(e.state.duration$);if(!(!isFinite(i)||!isFinite(r)))try{(l=(s=navigator.mediaSession).setPositionState)==null||l.call(s,{position:i,playbackRate:o,duration:r})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${r}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{ValueSubject as Ym,detectEmbed as u6}from"@vkontakte/videoplayer-shared/es2015";var s6=Ie('<svg><!><g fill="var(--btn-color, #fff)"><path d="m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"></path><path d="M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"></path></g></svg>');function Qm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=s6();Ae(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img"},i));var r=_(o);be(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),b(t,o)}var a6=M('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),l6={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 jm(t,e){F(e,!0),W(t,l6);let[i,o]=Be(),r=()=>S(u,"$interfaceLanguage$",i),s=()=>S(f,"$isMobile$",i),l=_e(),d=Rt(),a=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,f=l.ui.isMobile,v=l.ui.t,p=m(()=>r()&&v("pip_dummy_title")),x=rp(d.view);var w=a6();let y;var C=_(w);let T;var E=_(C);Qm(E,{}),g(C);var R=P(C,2),A=_(R,!0);g(R),g(w),D((I,N)=>{y=re(w,1,"player-pip-dummy svelte-1pbsod4",null,y,I),Je(w,x),T=re(C,1,"dummy-image svelte-1pbsod4",null,T,N),me(A,n(p))},[()=>({"is-pip-api":a}),()=>({desktop:!s()})]),b(t,w),U(),o()}var d6=Object.defineProperty,c6=(t,e,i)=>e in t?d6(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Kl=(t,e,i)=>c6(t,typeof e!="symbol"?e+"":e,i),Gm=(t,e,i)=>new Promise((o,r)=>{var s=a=>{try{d(i.next(a))}catch(u){r(u)}},l=a=>{try{d(i.throw(a))}catch(u){r(u)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(s,l);d((i=i.apply(t,e)).next())}),p6=460,f6=280,_c=class{constructor({enabled:e=!0}={enabled:!0}){Kl(this,"playerDomElement"),Kl(this,"playerParentShadowRoot"),Kl(this,"playerDummyElement"),Kl(this,"svelteContext"),Kl(this,"pipWindow"),Kl(this,"info",{isActive$:new Ym(!1),isEnabled$:new Ym(!1),type:1}),this.info.isEnabled$=new Ym(e)}isSupported(){let{isEmbed:e}=u6();return"documentPictureInPicture"in window&&!e}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}request(){return Gm(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:p6,height:f6,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(u=>u.cssText).join(" ")).filter(Boolean).join(`
|
|
408
|
+
`),r=document.createElement("style");r.textContent=o;let s=this.createStretchedContainer(),l=s.attachShadow({mode:"open"});l.append(r),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Gr(jm,d),(e=this.pipWindow)==null||e.document.body.append(s),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(Ca(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})})}exit(){return Gm(this,null,function*(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})})}dispose(){return Gm(this,null,function*(){yield this.exit()})}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function J0(t){return t instanceof _c}var ap=class{static getLatestSupportedVersion(e){let i=new Pa(e),o=new _c(e);if(o.isSupported())return o;if(i.isSupported())return i}};function bc(t,e){var r,s;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(s=(r=e[l])!=null?r:t[l])!=null?s:void 0;return o}var e_="Inner error. Unexpectedly root annotation container null reference exception",t_="Annotation with such name already exists",i_="Annotation with such name does not exist";var ql=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as v6,Subscription as m6,throttleFn as g6}from"@vkontakte/videoplayer-shared/es2015";var h6="1",_6=100,lp=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new m6}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=g6(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},_6);this.subscriptions.add(v6(this.rootAnnotationsContainer).subscribe(({width:o,height:r})=>{this.playerSize={width:o,height:r},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new ql(e_);if(this.annotations.has(e))throw new ql(t_);i.style.zIndex=(o=i.style.zIndex)!=null?o:h6,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 ql(i_);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let r=e.offsetTop,s=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return r<0||s<0||s+l>i||r+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as dp,Subscription as b6}from"@vkontakte/videoplayer-shared/es2015";var cn=class{init({store:e,microStores:i,interactiveController:o,config:r}){return dp(e),dp(i),dp(r),r.interactiveData&&dp(o),this.subscription=new b6,this.subscription}};var $c=class extends cn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=qt(Q({},ae(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{isInteractiveExpectation$:r}=i.store.state;return o.add(r.subscribe(s=>{this.state$.set(s?!0:null)})),o}};var yc=class extends cn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=qt(Q({},ae(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{microStores:r,store:s}=i,{fakeIsPlaying$:l}=r,{isInteractiveExpectation$:d,isPlaying$:a}=s.state,{controlsVisible:u,isMobile:f}=s.ui,v=$e(f),p=()=>v&&$e(u);return o.add(u.subscribe(x=>{if(!v)return;let w=$e(l);$e(a)?this.state$.set(x):w!==null&&this.state$.set(!w||x)})),o.add(a.subscribe(x=>{this.state$.set(!x||p())})),o.add(l.subscribe(x=>{if(x===null)return;let w=$e(d);if(p()){this.state$.set(!0);return}w&&this.state$.set(!x)})),o}};var xc=class extends cn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=ae("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:r}=i;return o.add(r.state.interactiveEpisodes$.subscribe(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 $6}from"@vkontakte/videoplayer-shared/es2015";var Zm=ae(!1),cp=null,wc=class extends cn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=qt(Q({},Zm),{set:(i,o=!1)=>{i!==$e(Zm)&&(this.clearTimeout(),Zm.set(i),!i&&cp&&(cp=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()})}init(i){let o=super.init(i),{store:r,config:s}=i,{isInteractiveTime$:l,isPlaying$:d}=r.state,a=r.ui.controlsVisible,{interactiveTimeIndicator:u}=r.ui.controls;o.add(a.subscribe(v=>{$e(l)&&v&&this.state$.set(!1)}));let f=(s==null?void 0:s.interactiveData)||{tooltipHelpHintActive:!1};return o.add($6({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:v,isInteractiveTime$:p,interactiveTimeIndicator:x})=>{var w,y;if(!(!v||!(x!=null&&x.isDisplayed))){if(!p)return this.state$.set(!1);f.tooltipHelpHintActive&&cp===null&&(cp=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(y=(w=r.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||y.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as y6,noop as x6}from"@vkontakte/videoplayer-shared/es2015";var Sc=class extends cn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=qt(Q({},ae(null)),{toggle:x6});this.checkIfShouldHide=i=>Ps(i,"s")}init(i){let o=super.init(i),{store:r,interactiveController:s}=i,l=r.ui.currentGridType$,d=r.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=()=>yt(this,null,function*(){if(this.checkIfShouldHide($e(l)))return;let a=$e(this.state$),{isEnded$:u,playbackState$:f}=r.state,{disabledControls$:v}=r.ui.controls,p=$e(u),x=$e(f);if(a)try{yield s==null?void 0:s.toggleGraphView(!1),this.state$.set(!1),v.remove(ff),!p&&this.graphMadePause&&r.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=x==="playing";try{yield s==null?void 0:s.toggleGraphView(!0),this.state$.set(!0),v.add(ff),!p&&this.graphMadePause&&r.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}}),o.add(y6({graphIsOpened:this.state$,currentGridType:l}).subscribe(f=>yt(this,[f],function*({graphIsOpened:a,currentGridType:u}){if(this.checkIfShouldHide(u)&&a)try{yield s==null?void 0:s.toggleGraphView(!1),this.state$.set(!1)}catch(p){d({message:"Cant hide graph"})}}))),o}};import{ValueSubject as o_}from"@vkontakte/videoplayer-shared/es2015";var Cc=class extends cn{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:ae(!1),isEnabled$:ae(!1),type$:ae(void 0)}}init(i){let o=super.init(i),{store:r}=i,{info:{isActive$:s,isEnabled$:l,type:d}}=r.webApi.pictureInPictureApi||{info:{isActive$:new o_(!1),isEnabled$:new o_(!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 C6,filterChanged as T6}from"@vkontakte/videoplayer-shared/es2015";import{safeStorage as Xm}from"@vkontakte/videoplayer-shared/es2015";var n_=({maxShowCount:t,timeout:e})=>{let i=[t!==0?w6({maxCount:t}):void 0,e!==0?S6({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(r=>r.notificationShowed(o)),canShowNotification:o=>i.every(r=>r.canShowNotification(o))}},w6=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,r;e[i]=((o=e[i])!=null?o:0)+1,Xm.set("videoplayer_notifications_manager_count",JSON.stringify((r=e[i])!=null?r:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},S6=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Xm.get(e)||"{}")}catch(s){return{}}},o=s=>Xm.set(e,JSON.stringify(s)),r=s=>{let l=i();delete l[s],o(l)};return{notificationShowed:s=>{o(qt(Q({},i()),{[s]:{timeout:t,launchTime:Date.now()}}))},canShowNotification:s=>{let l=i()[s];if(l){let d=Date.now()-l.launchTime>t;return d&&r(s),d}else return!0}}};var Tc=class extends cn{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:ae({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:r,uiConfig:{features:{maxCountShowSlowVideoNotification:s,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:a}}}=i;this.notificationManager=n_({maxShowCount:s,timeout:l});let u=r.getPlayer();return o.add(u.events.severeStallOccured$.pipe(T6(),C6(f=>f)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(a&&r.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var r_=()=>[$c,yc,xc,wc,Sc,Cc,Tc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:qt(Q({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});import{devNull as Ec}from"@vkontakte/videoplayer-shared/es2015";var up=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 E6=M('<div class="root svelte-9ubj1t"><!></div>'),I6={hash:"svelte-9ubj1t",code:".root.svelte-9ubj1t {position:absolute;display:flex;inset:0;align-items:center;justify-content:center;pointer-events:none;z-index:1;}"};function Jm(t,e){F(e,!0),W(t,I6);let i=null,o=j(null);We(()=>(n(o)&&(i=window.setTimeout(()=>{O(o,null)},e.animationDuration)),()=>{i&&clearTimeout(i)}));function r(a){e.playbackStatusShow&&O(o,a?"prev":"next",!0)}var s=Fe(),l=fe(s);{var d=a=>{var u=Fe(),f=fe(u);Cs(f,()=>n(o),v=>{var p=E6(),x=_(p);let w=m(()=>n(o)==="prev");gc(x,{get duration(){return e.animationDuration},get Icon(){return ec},get isPrev(){return n(w)}}),g(p),b(v,p)}),b(a,u)};V(l,a=>{e.playbackStatusShow&&n(o)&&a(d)})}return b(t,s),U({startVideoChangedAnimation:r})}var k6=Object.defineProperty,A6=Object.defineProperties,P6=Object.getOwnPropertyDescriptors,s_=Object.getOwnPropertySymbols,M6=Object.prototype.hasOwnProperty,L6=Object.prototype.propertyIsEnumerable,ig=(t,e,i)=>e in t?k6(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Ns=(t,e)=>{for(var i in e||(e={}))M6.call(e,i)&&ig(t,i,e[i]);if(s_)for(var i of s_(e))L6.call(e,i)&&ig(t,i,e[i]);return t},V6=(t,e)=>A6(t,P6(e)),Xt=(t,e,i)=>ig(t,typeof e!="symbol"?e+"":e,i),pp=(t,e,i)=>new Promise((o,r)=>{var s=a=>{try{d(i.next(a))}catch(u){r(u)}},l=a=>{try{d(i.throw(a))}catch(u){r(u)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(s,l);d((i=i.apply(t,e)).next())}),G6={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:D6.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:K6(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Kn=j(void 0),tg=di({animationDuration:0,playbackStatusShow:!1}),fp=class extends HTMLElement{constructor(){super(),Xt(this,"svelteStubComponent"),Xt(this,"svelteRootComponent"),Xt(this,"sveltePersistentLayerComponent"),Xt(this,"svelteErrorComponent"),Xt(this,"store"),Xt(this,"microStoresRoot"),Xt(this,"statistics"),Xt(this,"sentry"),Xt(this,"_shadowRoot"),Xt(this,"playerContainer"),Xt(this,"rootContainer"),Xt(this,"shadowRootContainer"),Xt(this,"playerId"),Xt(this,"uiConfig"),Xt(this,"coreConfig"),Xt(this,"statisticsConfig"),Xt(this,"interactiveController"),Xt(this,"interactiveContainer"),Xt(this,"graphMadePause"),Xt(this,"currentPlayingVideoIndex",0),Xt(this,"needToRepeatPlaylist",!1),Xt(this,"videoConfig"),Xt(this,"pictureInPictureApi"),Xt(this,"mediaSessionApi"),Xt(this,"unsubscribePlayerPhaseSubscription"),Xt(this,"logger"),Xt(this,"log"),Xt(this,"subscription"),Xt(this,"interactiveSubscription"),Xt(this,"annotationsApi"),Xt(this,"slotsApi"),Xt(this,"focusManager"),Xt(this,"prevIsid"),Xt(this,"isInited",!1),Xt(this,"internalsExposure",null),Xt(this,"shadowDOMCallbacksDisabled",!1),Xt(this,"fatalError$",new O6(null)),Xt(this,"createOneStat",(e,i={})=>{var o,r,s,l;if(!this.videoConfig)return;let{albumId:d,statPlace:a,statUserSalt:u,statTrackCode:f,statVKAppId:v,refreshStatAuthToken:p,autoplay:x,isMobile:w,isTouch:y,refDomain:C,deviceId:T,interactiveData:E}=bc(this.videoConfig,i),R=(o=E==null?void 0:E.projectInfo)==null?void 0:o.pid,A=(s=(r=this.interactiveController)==null?void 0:r.state.isReplay$.getValue())!=null?s:!1;A&&(this.prevIsid=void 0);let{unitedVideoId:I,isClip:N=!1}=e;if(this.uiConfig.features.statistics&&I)try{return new q6(Ns({movieId:I,albumId:d,place:a,trackCode:f,vkAppId:v,autoplay:(l=x&&!this.interactiveController)!=null?l:!1,mobile:y!=null?y:w,clip:N,refDomain:C,deviceId:T,isPreviewPlayerView:this.videoConfig.playerView==="preview"},R&&(!this.isInited||A)&&{projectId:Number(R)}),Ns({refreshAuthToken:p,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}catch(B){console.error(B),this.log({message:B.message})}}),Ec.create("ui"),this.logger=new B6,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new a_,this.interactiveSubscription=new a_,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=Gr(qm,{target:this.playerContainer}))})}connectedCallback(){var e,i;if(this.rootContainer)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,r=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,s=di({title:o,thumbUrl:r}),l={target:this.playerContainer,props:s};this.svelteStubComponent=Gr(Km,l),this.sveltePersistentLayerComponent=Gr(Jm,{target:this.playerContainer,props:tg})}updatePersistentLayerProps(){if(!this.uiConfig)return;let{playbackStatusNextVideoAnimationDuration:e,features:{playbackStatusShow:i,playbackStatusNextVideoShow:o}}=this.uiConfig;tg.animationDuration=e,tg.playbackStatusShow=i&&o}disconnectedCallback(){var e,i,o,r,s,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(r=this.mediaSessionApi)==null||r.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),this.unmountComponent(this.sveltePersistentLayerComponent),this.subscription.unsubscribe(),(s=this.unsubscribePlayerPhaseSubscription)==null||s.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),Ec.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:r,refreshStatAuthToken:s}=bc(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new Q6.ThinOneStat({deviceId:o,movieId:l,preload:r,isPreviewPlayerView:this.videoConfig.playerView==="preview"},{config:this.statisticsConfig,refreshAuthToken:s})}createPlayer(e,i={},o){var r,s,l,d,a,u,f,v,p,x;if(!this.videoConfig)return;let{albumId:w,statPlace:y,statAuthToken:C,preload:T,autoplay:E,volume:R,muted:A,fromTime:I,canRewindLive:N,supportLink:H,showAds:B,adsSlotId:z,adsParams:X={},adsAutoplayParam:le,interfaceLanguage:q,isCyrillicRelatedInterface:ce,logoClickable:J,logoHidden:ve,isMobile:se,isTouch:de,isAudioDisabled:Le,isLiveCatchUpMode:Se,fullScreenTarget:ie,failoverHosts:Ne,canDownload:pe,callbacks:k,interactiveData:qe,showThumbTimer:Re,additionalButtons:Z=[],additionalSettingsMenuItems:ne=[],additionalContextMenuItems:He=[],repeat:Ze,loop:ge,saveRate:ee,volumeMultiplier:ke,showEndScreen:he,showAutoplayNext:Ue,mediascopePixels:Xe}=bc(this.videoConfig,i),{sources:Ge,title:ct,thumbUrl:et,unitedVideoId:Bt,isClip:rt=!1,duration:Dt,adsParams:Qt={},videoEpisodes:Et,previewThumbsData:ti,subtitles:Wt,subtitlesForcedLanguage:Ce,live:we,adsExternalApi:te}=e;if(!Ge&&!we){let ui=new Error("empty sources and live");this.fatalError$.next(ui),(r=k.onCrashed)==null||r.call(k,ui.message);return}let Te=Ns(Ns({},X),Qt),Me=this.getNextVideoInfo(),It={sources:Ge,title:ct,thumbUrl:et,subtitles:Wt,subtitlesForcedLanguage:Ce,unitedVideoId:Bt,isClip:rt,live:we,albumId:w,statPlace:y,autoplay:E,muted:A,volume:R,fromTime:I,canRewindLive:N,showAds:B,adsSlotId:z,adsParams:Te,adsAutoplayParam:le,duration:Dt,logoClickable:J,logoHidden:ve,isTouch:de!=null?de:se,repeat:Ze,loop:ge,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Me.nextVideoTitle,endScreenVideoThumb:Me.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},De={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(It)}`});let ut=(s=this.interactiveController)==null?void 0:s.state.statistics$.getValue(),$t=(ut==null?void 0:ut.oneStat)||this.createOneStat(e,i),xe=this.createThinOneStat(e,i),ot;Xe&&(ot=new j6({pixels:Xe})),($t||xe)&&(this.statistics=new zu($t,xe,ot,ut==null?void 0:ut.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Aa(this.uiConfig.sentry,{version:Il,env:pu},{movieId:Bt,albumId:w,place:y,autoplay:(l=E&&!this.interactiveController)!=null?l:!1,mobile:de!=null?de:se,clip:rt}),this.interactiveController&&((u=this.prevIsid)!=null||(this.prevIsid=(a=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:a.isid$.getValue())),this.sentry=Ns(Ns({},this.sentry),Aa.getInstance());let lt=!!qe,ii=[],ai="tooltip_interactive_go_back_disabled_first";if(lt&&this.interactiveController){let ui=this.interactiveController.state.isInitialChapter$.getValue(),mt=this.interactiveController.getHistoryState();ui&&ii.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||ii.push("SEEK_TO_INTERACTIVE_BUTTON"),mt.hasPrevChapter$.getValue()||(ii.push("PLAY_PREV_CHAPTER_BUTTON"),ui||(mt.isGoBackLimited$.getValue()?ai="tooltip_interactive_go_back_disabled_limit":ai="tooltip_interactive_go_back_disabled"))}let mi=()=>{var ui;this.isInited=!1,this.prevIsid=void 0;let mt=(o==null?void 0:o.info.isEnded$.getValue())&&((ui=this.interactiveController)==null?void 0:ui.state.isEndChapter$.getValue());k.onReplayInteractiveVideo&&!mt?k.onReplayInteractiveVideo():this.replayInteractiveVideo()},yi=Ze&&this.videoConfig.videos.length===1;this.store=g0({player:o,interfaceLanguage:q,isCyrillicRelatedInterface:ce,videoId:Bt,isClip:rt,isLiveCatchUpMode:Se,isAudioDisabled:Le,statAuthToken:C,callbacks:k,webApi:De,videoEpisodes:Et,previewThumbsData:ti,canDownload:pe,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:ii,isInteractive:lt,saveRate:ee,interactiveRanges$:(f=this.interactiveController)==null?void 0:f.state.interactiveRanges$,isInteractiveTime$:(v=this.interactiveController)==null?void 0:v.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:mi,playPrevChapterDisabledTooltip:ai,hasInteractiveBranches:!!((x=(p=this.interactiveController)==null?void 0:p.getChapterBranches())!=null&&x.length),additionalButtons:this.uiConfig.features.additionalButtons?Z:[],additionalSettingsMenuItems:ne!=null?ne:[],additionalContextMenuItems:He!=null?He:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:ui=>{var mt;return(mt=this.sveltePersistentLayerComponent)==null?void 0:mt.startVideoChangedAnimation(ui)},looped:this.uiConfig.features.useLoopSetting?ge:yi,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:so}=this.microStoresRoot=r_(),vo=()=>{var ui,mt,Pi,Yt,Tt,ni;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(St=>{var Ye;return(Ye=k==null?void 0:k.onCurrentFormatChanged)==null?void 0:Ye.call(k,St)})),this.subscription.add(so.interactiveControlsOpacity$.subscribe(St=>{var Ye;St!==null&&((Ye=this==null?void 0:this.interactiveController)==null||Ye.setDisabledControls(St))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(St=>{var Ye;return(Ye=k==null?void 0:k.onThroughputEstimationChanged)==null?void 0:Ye.call(k,St)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(St=>{var Ye;return(Ye=k==null?void 0:k.onTrafficSavingEnabledChanged)==null?void 0:Ye.call(k,St)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(St=>{var Ye;return(Ye=k==null?void 0:k.onHighQualityEnabledChanged)==null?void 0:Ye.call(k,St)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(St=>{var Ye;return(Ye=k==null?void 0:k.onAutoQualityEnabledChanged)==null?void 0:Ye.call(k,!!St)})),this.subscription.add(new H6(St=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Ye=>St.next(Ye)))}).pipe(z6(1)).subscribe(St=>{var Ye;return(Ye=k==null?void 0:k.onCurrentPlaybackRateChanged)==null?void 0:Ye.call(k,St)})),this.subscription.add(this.store.state.volume$.subscribe(St=>{var Ye;return(Ye=k==null?void 0:k.onVolumeChange)==null?void 0:Ye.call(k,St)})),this.subscription.add(this.store.state.muted$.subscribe(St=>{var Ye,xi,wo,Zo;if(St)(Ye=k==null?void 0:k.onMute)==null||Ye.call(k);else{let un=(wo=((xi=this.store)==null?void 0:xi.state.volume$)&&$e(this.store.state.volume$))!=null?wo:0;(Zo=k==null?void 0:k.onUnmute)==null||Zo.call(k,un)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(St=>{var Ye;return(Ye=k==null?void 0:k.onVideoBitrateChanged)==null?void 0:Ye.call(k,St)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(St=>{var Ye;let xi=(Ye=this.store)==null?void 0:Ye.ui.controls.disabledControls$;xi&&(St&&!xi.includes(Sd)&&xi.add(Sd),St||xi.remove(Sd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(St=>pp(this,null,function*(){var Ye;if(!l_.browser.isSamsungBrowser||!St||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((Ye=this.videoConfig)==null?void 0:Ye.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(St=>{var Ye;return(Ye=k==null?void 0:k.onVSIDChanged)==null?void 0:Ye.call(k,St)})),this.initMediaSession(),O(Kn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Ge,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:ct,thumbUrl:et,subtitles:Wt,subtitlesForcedLanguage:Ce,live:we,preload:T,autoplay:E,muted:A,volume:R,fromTime:I,canRewindLive:N,supportLink:H,showAds:B,adsSlotId:z,adsParams:Te,adsAutoplayParam:le,duration:Dt,logoClickable:J,logoHidden:ve,isMobile:de!=null?de:se,failoverHosts:Ne,fullScreenTarget:ie,saveRate:ee,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Re,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Me.nextVideoTitle,endScreenVideoThumb:Me.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:ke,showEndScreen:he,showAutoplayNext:Ue,adsExternalApi:te},!0);let Zt={target:this.playerContainer,props:n(Kn)};this.svelteRootComponent=Gr(Um,Zt),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Pi=(mt=(ui=this.videoConfig)==null?void 0:ui.callbacks)==null?void 0:mt.onInited)==null||Pi.call(mt)),(Yt=this.internalsExposure)==null||Yt.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((ni=(Tt=this.videoConfig)==null?void 0:Tt.callbacks)!=null&&ni.onDevNullLog)?Ec.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Ec.destroy("ui")};this.coreConfig.asyncResolveClientChecker?l_.isInited$.subscribe(ui=>{ui&&(console.log("UI SDK async start"),vo())}):vo()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,r=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!r)return;let s=(i=this.videoConfig)==null?void 0:i.callbacks;s&&this.subscription.add(o.playerPhase.subscribe(d=>{var a;return(a=s.onPlayerPhaseChanged)==null?void 0:a.call(s,d)})).add(o.state.playbackState$.subscribe(d=>{var a;return d&&((a=s.onPlaybackStateChanged)==null?void 0:a.call(s,d))})).add(o.state.isLive$.subscribe(d=>{var a;return(a=s.onIsLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isActiveLive$.subscribe(d=>{var a;return(a=s.onIsActiveLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var a;return(a=s.onIsAudioAvailableChanged)==null?void 0:a.call(s,d)})).add(o.state.currentQuality$.subscribe(d=>{var a;return(a=s.onCurrentQualityChanged)==null?void 0:a.call(s,d)})).add(o.state.availableQualities$.subscribe(d=>{var a;return(a=s.onAvailableQualitiesChanged)==null?void 0:a.call(s,d.map(({value:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&s.onAudioLanguagesAvailable&&s.onAudioLanguagesAvailable()})).add(r.pictureInPicture$.isActive$.subscribe(d=>{var a,u;return d?(a=s.onPiPEnter)==null?void 0:a.call(s):(u=s.onPiPExit)==null?void 0:u.call(s)}));let l=s==null?void 0:s.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var a;return(a=l.onControlsVisibleChanged)==null?void 0:a.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var a;return(a=l.onIsMobileChanged)==null?void 0:a.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var a;return(a=l.onPlayerSizeChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var a;return(a=l.onPrevButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var a;return(a=l.onPlayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var a;return(a=l.onReplayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var a;return(a=l.onNextButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var a;return(a=l.onPlayPrevChapterChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var a;return(a=l.onSeekToInteractiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var a;return(a=l.onGraphButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var a;return(a=l.onLiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var a;return(a=l.onTimeUpdateChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var a;return(a=l.onEpisodesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var a;return(a=l.onSubtitlesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var a;return(a=l.onTopLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var a;return(a=l.onTopRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var a;return(a=l.onBottomLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var a;return(a=l.onBottomRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var a;return(a=l.onMiddleControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var a;return(a=l.onBottomControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var a;return(a=l.onTitleChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var a;return(a=l.onSettingsChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var a;return(a=l.onFullscreenChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var a;return(a=l.onChromecastChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var a;return(a=l.onPipChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var a;return(a=l.onVkLogoChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var a;return(a=l.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var a;return(a=l.onTimelineChanged)==null?void 0:a.call(l,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let r=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!r){this.log({message:"no next video"});return}this.isInited&&eg(r.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(r.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(r,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}initInteractives(){return pp(this,null,function*(){var e,i,o,r,s,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=yield import("@vkontakte/videoplayer-interactive/es2015");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let a=(i=this.store)==null?void 0:i.interfaceLanguage$,u=a?$e(a):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:v,historyApi:p,videoLoader:x}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:u,graph:this.uiConfig.features.interactiveGraph,projectInfo:f,initChapterId:v,historyApi:p,vkVideoLoader:x,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation},endChapterHistoryFix:this.uiConfig.features.interactiveHistoryEndChapterFix});let{isInteractiveExpectation$:w,isSeekable$:y}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(y.subscribe(T=>{if(!this.isInited)return;let E=this.store;T?E.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):E.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(w.subscribe(T=>{this.store&&this.store.state.isInteractiveExpectation$.set(T)}));let C=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(T=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=V6(Ns({},T.config),{title:(f==null?void 0:f.title)||T.config.title});let E=C?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(T.player,E),C&&(C=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:T,actionType:E})=>{var R,A,I,N,H,B;if(!this.store||!this.microStoresRoot)return;let z=w.getValue();if(T==="action-choice"&&E==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Cd)),T==="action-choice-canceled"){let X=$e(this.store.state.isPlaying$)||z;if(((I=(R=this.videoConfig)==null?void 0:R.isTouch)!=null?I:(A=this.videoConfig)!=null&&A.isMobile)&&X){this.store.ui.interactiveHideMobileControls.set(!0);return}(B=(N=this.videoConfig)==null?void 0:(H=N.callbacks).onDisabledInteractiveClick)==null||B.call(H)}})),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(Cd)})),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let T=this.interactiveController.getHistoryState();this.subscription.add(T.history$.subscribe(E=>{var R,A,I;E.length&&((I=(A=(R=this.videoConfig)==null?void 0:R.callbacks)==null?void 0:A.onInteractiveHistoryChanged)==null||I.call(A,E))}))}(l=(s=this.videoConfig)==null?void 0:s.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(T=>{var E,R,A;(A=(E=this.videoConfig)==null?void 0:(R=E.callbacks).onInteractiveChapterChanged)==null||A.call(R,T.chapter,T.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var T,E,R,A;(T=this.microStoresRoot)==null||T.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(A=(E=this.videoConfig)==null?void 0:(R=E.callbacks).onInteractiveTimeIndicatorClick)==null||A.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,r,s,l,d,a,u,f,v,p,x,w,y,C,T,E,R,A,I,N,H,B,z,X,le,q,ce,J;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let ve=new Error("empty videos");this.fatalError$.next(ve),(r=(o=e.callbacks)==null?void 0:o.onCrashed)==null||r.call(o,ve.message);return}else this.fatalError$.next(null);if(this.videoConfig=bc(G6,N6(e,ve=>ve instanceof HTMLElement?ve:void 0)),this.playerId=W6(e.playerId),this.uiConfig=qh((s=i.ui)!=null?s:{}),this.updatePersistentLayerProps(),this.coreConfig=(l=i.core)!=null?l:{configName:[]},this.statisticsConfig=(d=i.statistics)!=null?d:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer&&(this.rootContainer.style.minHeight="unset"),this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},this.uiConfig.features.exposeInternalsToGlobal&&((u=this.internalsExposure)!=null||(this.internalsExposure=new U6("ui",this.playerId))),Ec.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((f=this.videoConfig)==null?void 0:f.showAds)],numbers:[R6()]}),eg(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(p=(v=this.uiConfig.features.mediaSession)!=null?v:this.videoConfig.isMediaSessionEnabled)!=null?p:!0),eg(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(w=(x=this.uiConfig.features.pip)!=null?x:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0,this.uiConfig.features.dpip=(C=(y=this.uiConfig.features.dpip)!=null?y:this.videoConfig.isPictureInPictureEnabled)!=null?C:!0),this.uiConfig.ads.paramsOverride=Ns({preview:(T=this.uiConfig.ads.preview)!=null?T:this.videoConfig.adsPreviewParam},this.uiConfig.ads.paramsOverride),this.videoConfig.isTouch=(R=(E=this.uiConfig.isMobile)!=null?E:this.videoConfig.isTouch)!=null?R:this.videoConfig.isMobile,(A=this.videoConfig).autoplay&&(A.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(I=this.uiConfig.ads.enable)!=null?I:this.videoConfig.showAds,this.videoConfig.adsSlotId=(N=this.uiConfig.ads.slot)!=null?N:this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!((H=this.uiConfig.showLogo)!=null?H:!this.videoConfig.logoHidden),(B=this.videoConfig).canRewindLive&&(B.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(z=this.videoConfig.supportLink)!=null?z:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(X=this.uiConfig.features.endScreen)!=null?X:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(le=this.uiConfig.features.autoplayNext)!=null?le:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(q=this.uiConfig.features.nextPrevButtons)!=null?q: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 ve={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=ap.getLatestSupportedVersion(ve):this.pictureInPictureApi=new Pa(ve)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new sp:void 0,this.slotsApi=this.uiConfig.features.slots?new ip:void 0,this.annotationsApi=this.uiConfig.features.annotations?new lp(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteErrorComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),J0(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(J=this.slotsApi)==null||J.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new up(this._shadowRoot):void 0}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();n(Kn)&&(n(Kn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Kn).nextButtonActive=this.isNextButtonActive(),n(Kn).prevButtonActive=this.isPrevButtonActive(),n(Kn).endScreenVideoTitle=o.nextVideoTitle,n(Kn).endScreenVideoThumb=o.nextVideoThumb,n(Kn).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}=Ns({},this.videoConfig.videos[this.currentPlayingVideoIndex]),o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",r=>this.seekTime(r.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>{var r,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:s.onNextVideoClick)==null||l.call(s)}catch(d){this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{var r,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:s.onPrevVideoClick)==null||l.call(s)}catch(d){this.log({message:"onPrevVideoClick callback failed to execute"})}else this.playPrevVideo()}])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,r;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(r=this.svelteRootComponent)==null||r.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}changeSubtitle(e,i){var o;this.log({message:"change subtitle"}),(o=this.svelteRootComponent)==null||o.changeSubtitle(e,i)}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,n(Kn)&&(n(Kn).needToRepeatPlaylist=this.needToRepeatPlaylist,n(Kn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Kn).nextButtonActive=this.isNextButtonActive(),n(Kn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,r;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(r=this.svelteRootComponent)==null||r.setAutoQualityLimits(e)}setAutoQuality(){var e;(e=this.svelteRootComponent)==null||e.setAutoQuality()}toggleTrafficSaving(e){var i;(i=this.svelteRootComponent)==null||i.toggleTrafficSaving(e)}toggleHighQuality(e){var i;(i=this.svelteRootComponent)==null||i.toggleHighQuality(e)}changeAudioStream(e){var i;(i=this.svelteRootComponent)==null||i.changeAudioStream(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}setLanguage(e){return pp(this,null,function*(){var i;yield(i=this.store)==null?void 0:i.actions.internal.setLanguage(e)})}setLiveStart(e){var i,o;let r=this.isLiveTailPlaying();this.log({message:`live started: liveTailPlaying = ${r}`}),r||((i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0}))}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){var e;let i=(e=this.store)==null?void 0:e.getPlayer();if(!i)return!1;let{info:o}=i;return o.canPlayLiveTailBuffer$.getValue()&&!o.isStalled$.getValue()&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),r=e||!o;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${o}`});let s=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};r&&s(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;r||s(),(l=this.store)==null||l.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let r=()=>{var s;(s=this.store)==null||s.actions.internal.setLiveWaitingRecord(!0)};o&&r(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var s;o||r(),(s=this.store)==null||s.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),r=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let s=()=>{var l,d;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!1),(d=this.store)==null||d.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(r){s();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=s)}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}replayInteractiveChapter(e){return pp(this,null,function*(){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let r=$e(this.store.state.positionExact$),l=$e(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe(F6()).subscribe(()=>{l&&r>=l.time?this.seekTime(l.time):this.seekTime(r),e==null||e()});let d=this.interactiveController.getCurrentChapter();yield this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}})}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&(this.statistics.oneStat&&this.statistics.oneStat.updateContext(e),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}restoreFocus(){var e;(e=this.focusManager)==null||e.restoreFocus()}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}setAutoplayNext(e){var i;(i=this.store)==null||i.actions.internal.setAutoplayNextEnabled(e)}getTotalViewTime(){var e,i;return(i=(e=this.statistics)==null?void 0:e.thinOneStat)==null?void 0:i.getTotalViewTime()}unmountComponent(e){e&&Ca(e)}};import{InterfaceLanguage as Ene,VKNumericLanguage as Ine,loadVKLangPack as kne}from"@vkontakte/videoplayer-shared/es2015";import{VideoQuality as Pne,VideoFormat as Mne}from"@vkontakte/videoplayer-core/es2015";var bne=()=>{window.customElements.define("vk-video-player",fp)};export{Wu as ControlButtonType,cs as GridTypes,Ene as InterfaceLanguage,Od as MenuItemType,us as PlayerPhase,Il as VERSION,Ine as VKNumericLanguage,Mne as VideoFormat,Pne as VideoQuality,kne as loadVKLangPack,bne as registerPlayerWebComponent};
|