@vkontakte/videoplayer 1.1.64-dev.dae0b8a8.0 → 1.1.64-dev.dc6a30a0.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 +70 -71
- package/es2015.esm.js +70 -71
- package/es2018.cjs.js +70 -71
- package/es2018.esm.js +70 -71
- package/es2024.cjs.js +70 -71
- package/es2024.esm.js +70 -71
- package/esnext.cjs.js +70 -71
- package/esnext.esm.js +70 -71
- package/evergreen.esm.js +70 -71
- package/package.json +5 -5
- package/types/VKVideoPlayer/index.svelte.d.ts +10 -3
- package/types/components/Menus/subMenuTabs/rootMenuItems.d.ts +0 -1
- package/types/components/Menus/subMenuTabs/types.d.ts +1 -0
- package/types/components/Root/types.d.ts +5 -2
- package/types/config.d.ts +8 -0
- package/types/constans/subtitles.d.ts +1 -0
- package/types/services/statistics.d.ts +6 -6
- package/types/store/index.d.ts +8 -0
- package/types/store/utils.d.ts +1 -1
- package/types/translation/types.d.ts +1 -1
- package/types/types/index.d.ts +3 -0
- package/types/utils/changeVolume.d.ts +6 -3
- package/types/utils/webAPI/slotsApi.d.ts +1 -0
package/es2018.cjs.js
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.64-dev.
|
|
3
|
-
*
|
|
2
|
+
* @vkontakte/videoplayer v1.1.64-dev.dc6a30a0.0
|
|
3
|
+
* Fri, 20 Jun 2025 11:05:01 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-64/doc/
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var
|
|
6
|
+
"use strict";var c0=Object.create;var Il=Object.defineProperty;var u0=Object.getOwnPropertyDescriptor;var p0=Object.getOwnPropertyNames;var f0=Object.getPrototypeOf,m0=Object.prototype.hasOwnProperty;var fv=t=>{throw TypeError(t)};var v0=(t,e,i)=>e in t?Il(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var g0=(t,e)=>{for(var i in e)Il(t,i,{get:e[i],enumerable:!0})},mv=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of p0(e))!m0.call(t,n)&&n!==i&&Il(t,n,{get:()=>e[n],enumerable:!(o=u0(e,n))||o.enumerable});return t};var vv=(t,e,i)=>(i=t!=null?c0(f0(t)):{},mv(e||!t||!t.__esModule?Il(i,"default",{value:t,enumerable:!0}):i,t)),h0=t=>mv(Il({},"__esModule",{value:!0}),t);var Bn=(t,e,i)=>v0(t,typeof e!="symbol"?e+"":e,i),Fu=(t,e,i)=>e.has(t)||fv("Cannot "+i);var Ai=(t,e,i)=>(Fu(t,e,"read from private field"),i?i.call(t):e.get(t)),ls=(t,e,i)=>e.has(t)?fv("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Aa=(t,e,i,o)=>(Fu(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),gv=(t,e,i)=>(Fu(t,e,"access private method"),i);var Tx={};g0(Tx,{ControlButtonType:()=>Cd,GridTypes:()=>wr,InterfaceLanguage:()=>wl.InterfaceLanguage,MenuItemType:()=>al,PlayerPhase:()=>Hr,VERSION:()=>js,VKNumericLanguage:()=>wl.VKNumericLanguage,VideoFormat:()=>Ru.VideoFormat,VideoQuality:()=>Ru.VideoQuality,loadVKLangPack:()=>wl.loadVKLangPack,registerPlayerWebComponent:()=>Cx});module.exports=h0(Tx);var ds="[",Ms="[!",Ls="]",Wr={};var Mi=Symbol(),hi=Symbol("filename"),hv=Symbol("hmr"),_v="http://www.w3.org/1999/xhtml",Uu="http://www.w3.org/2000/svg";var dc=!0;var $v,yv,bv=(yv=($v=globalThis.process)==null?void 0:$v.env)==null?void 0:yv.NODE_ENV,ke=bv&&!bv.toLowerCase().startsWith("prod");var Ho=Symbol("$state"),Kr=Symbol("$state metadata"),kl=Symbol("legacy props"),xv=Symbol("");var gr=Array.isArray,wv=Array.prototype.indexOf,El=Array.from,zu=Object.keys,oo=Object.defineProperty,Nn=Object.getOwnPropertyDescriptor,cc=Object.getOwnPropertyDescriptors,qu=Object.prototype,Sv=Array.prototype,Qr=Object.getPrototypeOf;function cs(t){return typeof t=="function"}var ie=()=>{};function Cv(t){return t()}function us(t){for(var e=0;e<t.length;e++)t[e]()}var Pl=[],Wu=[];function Tv(){var t=Pl;Pl=[],us(t)}function _0(){var t=Wu;Wu=[],us(t)}function on(t){Pl.length===0&&queueMicrotask(Tv),Pl.push(t)}function Ku(){Pl.length>0&&Tv(),Wu.length>0&&_0()}function uc(t){return t===this.v}function Ma(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Iv(t,e){return t!==e}function La(t){return!Ma(t,this.v)}function kv(){if(ke){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 Ev(t){if(ke){let e=new Error(`effect_in_teardown
|
|
9
9
|
\`${t}\` cannot be used inside an effect cleanup function
|
|
10
|
-
https://svelte.dev/e/effect_in_teardown`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function
|
|
10
|
+
https://svelte.dev/e/effect_in_teardown`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function Pv(){if(ke){let t=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Av(t){if(ke){let e=new Error(`effect_orphan
|
|
11
11
|
\`${t}\` can only be used inside an effect (e.g. during component initialisation)
|
|
12
|
-
https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function
|
|
12
|
+
https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function Mv(){if(ke){let t=new Error(`effect_update_depth_exceeded
|
|
13
13
|
Maximum update depth exceeded. This can happen when a reactive block or effect repeatedly sets a new value. Svelte limits the number of nested updates to prevent infinite loops
|
|
14
|
-
https://svelte.dev/e/effect_update_depth_exceeded`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function
|
|
14
|
+
https://svelte.dev/e/effect_update_depth_exceeded`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Lv(){if(ke){let t=new Error(`hydration_failed
|
|
15
15
|
Failed to hydrate the application
|
|
16
|
-
https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function
|
|
16
|
+
https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function Vv(){if(ke){let t=new Error("invalid_snippet\nCould not `{@render}` snippet due to the expression being `null` or `undefined`. Consider using optional chaining `{@render snippet?.()}`\nhttps://svelte.dev/e/invalid_snippet");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/invalid_snippet")}function Rv(t){if(ke){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 Bv(t){if(ke){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 Nv(t){if(ke){let e=new Error(`rune_outside_svelte
|
|
21
21
|
The \`${t}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
|
|
22
|
-
https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function
|
|
22
|
+
https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function Dv(){if(ke){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 Ov(){if(ke){let t=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Hv(){if(ke){let t=new Error("state_unsafe_local_read\nReading state that was created inside the same derived is forbidden. Consider using `untrack` to read locally created state\nhttps://svelte.dev/e/state_unsafe_local_read");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Fv(){if(ke){let t=new Error("state_unsafe_mutation\nUpdating state inside a derived 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 Vr=!1,Rr=!1;function Uv(){Vr=!0}var Al=null;function Gr(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
|
|
23
23
|
`),n=[`
|
|
24
|
-
`];for(let a=0;a<o.length;a++){let s=o[a];if(s!=="Error"){if(s.includes("validate_each_keys"))return null;s.includes("svelte/src/internal")||n.push(s)}}if(n.length===1)return null;
|
|
25
|
-
`)}),
|
|
24
|
+
`];for(let a=0;a<o.length;a++){let s=o[a];if(s!=="Error"){if(s.includes("validate_each_keys"))return null;s.includes("svelte/src/internal")||n.push(s)}}if(n.length===1)return null;oo(e,"stack",{value:n.join(`
|
|
25
|
+
`)}),oo(e,"name",{value:`${t}Error`})}return e}var Vs=new Set,Va=new Map;function ju(t){Vs=t}function Wi(t,e){var i={f:0,v:t,reactions:null,equals:uc,rv:0,wv:0};return ke&&Rr&&(i.created=e!=null?e:Gr("CreatedAt"),i.debug=null),i}function X(t){return b0(Wi(t))}function jr(t,e=!1){var o,n;let i=Wi(t);return e||(i.equals=La),Vr&&At!==null&&At.l!==null&&((n=(o=At.l).s)!=null?n:o.s=[]).push(i),i}function b0(t){return Ft!==null&&!On&&(Ft.f&2)!==0&&(hr===null?Wv([t]):hr.push(t)),t}function D(t,e){return Ft!==null&&!On&&Br()&&(Ft.f&18)!==0&&(hr===null||!hr.includes(t))&&Fv(),Ra(t,e)}function Ra(t,e){var o;if(!t.equals(e)){var i=t.v;if(Bs?Va.set(t,e):Va.set(t,i),t.v=e,t.wv=Ll(),ke&&Rr&&(t.updated=Gr("UpdatedAt"),Et!=null&&(t.trace_need_increase=!0,(o=t.trace_v)!=null||(t.trace_v=i))),qv(t,2048),Br()&&Et!==null&&(Et.f&1024)!==0&&(Et.f&96)===0&&(Dn===null?Kv([t]):Dn.push(t)),ke&&Vs.size>0){let n=Array.from(Vs);for(let a of n)(a.f&1024)!==0&&sn(a,4096),ps(a)&&Ba(a);Vs.clear()}}return e}function qv(t,e){var i=t.reactions;if(i!==null)for(var o=Br(),n=i.length,a=0;a<n;a++){var s=i[a],d=s.f;if((d&2048)===0&&!(!o&&s===Et)){if(ke&&(d&262144)!==0){Vs.add(s);continue}sn(s,e),(d&1280)!==0&&((d&2)!==0?qv(s,4096):Na(s))}}}function v(t){var e=2050,i=Ft!==null&&(Ft.f&2)!==0?Ft:null;Et===null||i!==null&&(i.f&256)!==0?e|=256:Et.f|=1048576;let o={ctx:At,deps:null,effects:null,equals:uc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:Et};return ke&&Rr&&(o.created=Gr("CreatedAt")),o}function br(t){let e=v(t);return e.equals=La,e}function pc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)ro(e[i])}}var Zu=[];function $0(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function y0(t){var e,i=Et;if(no($0(t)),ke){let o=Vs;ju(new Set);try{Zu.includes(t)&&kv(),Zu.push(t),pc(t),e=fc(t)}finally{no(i),ju(o),Zu.pop()}}else try{pc(t),e=fc(t)}finally{no(i)}return e}function Ju(t){var e=y0(t),i=(Zr||(t.f&256)!==0)&&t.deps!==null?4096:1024;sn(t,i),t.equals(e)||(t.v=e,t.wv=Ll())}var Ns="font-weight: bold",Ds="font-weight: normal";function Qv(t,e,i){ke?console.warn(`%c[svelte] hydration_attribute_changed
|
|
26
26
|
%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
|
|
27
|
-
https://svelte.dev/e/hydration_attribute_changed`,
|
|
27
|
+
https://svelte.dev/e/hydration_attribute_changed`,Ns,Ds):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Gv(t){ke?console.warn(`%c[svelte] hydration_html_changed
|
|
28
28
|
%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"}
|
|
29
|
-
https://svelte.dev/e/hydration_html_changed`,
|
|
29
|
+
https://svelte.dev/e/hydration_html_changed`,Ns,Ds):console.warn("https://svelte.dev/e/hydration_html_changed")}function Os(t){ke?console.warn(`%c[svelte] hydration_mismatch
|
|
30
30
|
%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"}
|
|
31
|
-
https://svelte.dev/e/hydration_mismatch`,
|
|
31
|
+
https://svelte.dev/e/hydration_mismatch`,Ns,Ds):console.warn("https://svelte.dev/e/hydration_mismatch")}function Yv(){ke?console.warn(`%c[svelte] lifecycle_double_unmount
|
|
32
32
|
%cTried to unmount a component that was not mounted
|
|
33
|
-
https://svelte.dev/e/lifecycle_double_unmount`,
|
|
33
|
+
https://svelte.dev/e/lifecycle_double_unmount`,Ns,Ds):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function jv(t,e,i){ke?console.warn(`%c[svelte] ownership_invalid_binding
|
|
34
34
|
%c${t} passed a value to ${e} with \`bind:\`, but the value is owned by ${i}. Consider creating a binding between ${i} and ${t}
|
|
35
|
-
https://svelte.dev/e/ownership_invalid_binding`,
|
|
35
|
+
https://svelte.dev/e/ownership_invalid_binding`,Ns,Ds):console.warn("https://svelte.dev/e/ownership_invalid_binding")}function ep(t,e){ke?console.warn(`%c[svelte] ownership_invalid_mutation
|
|
36
36
|
%c${t?`${t} mutated a value owned by ${e}. This is strongly discouraged. Consider passing values to child components with \`bind:\`, or use a callback instead`:"Mutating a value outside the component that created it is strongly discouraged. Consider passing values to child components with `bind:`, or use a callback instead"}
|
|
37
|
-
https://svelte.dev/e/ownership_invalid_mutation`,
|
|
37
|
+
https://svelte.dev/e/ownership_invalid_mutation`,Ns,Ds):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function mc(t){ke?console.warn(`%c[svelte] state_proxy_equality_mismatch
|
|
38
38
|
%cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${t}\` will produce unexpected results
|
|
39
|
-
https://svelte.dev/e/state_proxy_equality_mismatch`,
|
|
39
|
+
https://svelte.dev/e/state_proxy_equality_mismatch`,Ns,Ds):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Ye=!1;function so(t){Ye=t}var ht;function _i(t){if(t===null)throw Os(),Wr;return ht=t}function Di(){return _i(Ao(ht))}function g(t){if(Ye){if(Ao(ht)!==null)throw Os(),Wr;ht=t}}function $e(t=1){if(Ye){for(var e=t,i=ht;e--;)i=Ao(i);ht=i}}function Da(){for(var t=0,e=ht;;){if(e.nodeType===8){var i=e.data;if(i===Ls){if(t===0)return e;t-=1}else(i===ds||i===Ms)&&(t+=1)}var o=Ao(e);e.remove(),e=o}}function pe(t,e=null,i){var p,m;var o=null;if(ke&&Rr&&(o=Gr("CreatedAt")),typeof t!="object"||t===null||Ho in t)return t;let n=Qr(t);if(n!==qu&&n!==Sv)return t;var a=new Map,s=gr(t),d=Wi(0);s&&a.set("length",Wi(t.length,o));var l;if(ke)if(l={parent:e,owners:null},i){let y=(m=(p=i.v)==null?void 0:p[Kr])==null?void 0:m.owners;l.owners=y?new Set(y):null}else l.owners=e===null?At!==null?new Set([At.function]):null:new Set;return new Proxy(t,{defineProperty(y,u,$){(!("value"in $)||$.configurable===!1||$.enumerable===!1||$.writable===!1)&&Dv();var w=a.get(u);return w===void 0?(w=Wi($.value,o),a.set(u,w)):D(w,pe($.value,l)),!0},deleteProperty(y,u){var $=a.get(u);if($===void 0)u in y&&a.set(u,Wi(Mi,o));else{if(s&&typeof u=="string"){var w=a.get("length"),b=Number(u);Number.isInteger(b)&&b<w.v&&D(w,b)}D($,Mi),Zv(d)}return!0},get(y,u,$){var I;if(ke&&u===Kr)return l;if(u===Ho)return t;var w=a.get(u),b=u in y;if(w===void 0&&(!b||(I=Nn(y,u))!=null&&I.writable)&&(w=Wi(pe(b?y[u]:Mi,l),o),a.set(u,w)),w!==void 0){var C=r(w);if(ke){var T=C==null?void 0:C[Kr];T&&(T==null?void 0:T.parent)!==l&&tp(l,T)}return C===Mi?void 0:C}return Reflect.get(y,u,$)},getOwnPropertyDescriptor(y,u){var $=Reflect.getOwnPropertyDescriptor(y,u);if($&&"value"in $){var w=a.get(u);w&&($.value=r(w))}else if($===void 0){var b=a.get(u),C=b==null?void 0:b.v;if(b!==void 0&&C!==Mi)return{enumerable:!0,configurable:!0,value:C,writable:!0}}return $},has(y,u){var C;if(ke&&u===Kr||u===Ho)return!0;var $=a.get(u),w=$!==void 0&&$.v!==Mi||Reflect.has(y,u);if($!==void 0||Et!==null&&(!w||(C=Nn(y,u))!=null&&C.writable)){$===void 0&&($=Wi(w?pe(y[u],l):Mi,o),a.set(u,$));var b=r($);if(b===Mi)return!1}return w},set(y,u,$,w){var W;var b=a.get(u),C=u in y;if(s&&u==="length")for(var T=$;T<b.v;T+=1){var I=a.get(T+"");I!==void 0?D(I,Mi):T in y&&(I=Wi(Mi,o),a.set(T+"",I))}if(b===void 0?(!C||(W=Nn(y,u))!=null&&W.writable)&&(b=Wi(void 0,o),D(b,pe($,l)),a.set(u,b)):(C=b.v!==Mi,D(b,pe($,l))),ke){var M=$==null?void 0:$[Kr];M&&(M==null?void 0:M.parent)!==l&&tp(l,M),Xv(l)}var P=Reflect.getOwnPropertyDescriptor(y,u);if(P!=null&&P.set&&P.set.call(w,$),!C){if(s&&typeof u=="string"){var k=a.get("length"),R=Number(u);Number.isInteger(R)&&R>=k.v&&D(k,R+1)}Zv(d)}return!0},ownKeys(y){r(d);var u=Reflect.ownKeys(y).filter(b=>{var C=a.get(b);return C===void 0||C.v!==Mi});for(var[$,w]of a)w.v!==Mi&&!($ in y)&&u.push($);return u},setPrototypeOf(){Ov()}})}function Zv(t,e=1){D(t,t.v+e)}function vc(t){return t!==null&&typeof t=="object"&&Ho in t?t[Ho]:t}function Jv(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(a,s){let d=i.call(this,a,s);if(d===-1){for(let l=s!=null?s:0;l<this.length;l+=1)if(vc(this[l])===a){mc("array.indexOf(...)");break}}return d},t.lastIndexOf=function(a,s){let d=o.call(this,a,s!=null?s:this.length-1);if(d===-1){for(let l=0;l<=(s!=null?s:this.length-1);l+=1)if(vc(this[l])===a){mc("array.lastIndexOf(...)");break}}return d},t.includes=function(a,s){let d=n.call(this,a,s);if(!d){for(let l=0;l<this.length;l+=1)if(vc(this[l])===a){mc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Hs,eg,Vl,tg,ig;function gc(){if(Hs===void 0){Hs=window,eg=document,Vl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype;tg=Nn(e,"firstChild").get,ig=Nn(e,"nextSibling").get,t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0,Text.prototype.__t=void 0,ke&&(t.__svelte_meta=null,Jv())}}function an(t=""){return document.createTextNode(t)}function bi(t){return tg.call(t)}function Ao(t){return ig.call(t)}function h(t,e){if(!Ye)return bi(t);var i=bi(ht);if(i===null)i=ht.appendChild(an());else if(e&&i.nodeType!==3){var o=an();return i==null||i.before(o),_i(o),o}return _i(i),i}function ue(t,e){var n,a;if(!Ye){var i=bi(t);return i.nodeType===8&&i.data===""?Ao(i):i}if(e&&((n=ht)==null?void 0:n.nodeType)!==3){var o=an();return(a=ht)==null||a.before(o),_i(o),o}return ht}function A(t,e=1,i=!1){let o=Ye?ht:t;for(var n;e--;)n=o,o=Ao(o);if(!Ye)return o;var a=o==null?void 0:o.nodeType;if(i&&a!==3){var s=an();return o===null?n==null||n.after(s):o.before(s),_i(s),s}return _i(o),o}function Rl(t){t.textContent=""}var og=new WeakSet,hc=!1,Dl=!1,Bl=null,Fs=!1,Bs=!1;function np(t){Bs=t}var Nl=[],bc=[],Ft=null,On=!1;function xo(t){Ft=t}var Et=null;function no(t){Et=t}var hr=null;function Wv(t){hr=t}var ln=null,Fn=0,Dn=null;function Kv(t){Dn=t}var lg=1,$c=0,Zr=!1,Ml=null;function Ll(){return++lg}function ps(t){var y,u;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var n,a,s=(e&512)!==0,d=o&&Et!==null&&!Zr,l=i.length;if(s||d){var p=t,m=p.parent;for(n=0;n<l;n++)a=i[n],(s||!((y=a==null?void 0:a.reactions)!=null&&y.includes(p)))&&((u=a.reactions)!=null?u:a.reactions=[]).push(p);s&&(p.f^=512),d&&m!==null&&(m.f&256)===0&&(p.f^=256)}for(n=0;n<l;n++)if(a=i[n],ps(a)&&Ju(a),a.wv>t.wv)return!0}(!o||Et!==null&&!Zr)&&sn(t,1024)}return!1}function ng(t,e){for(var i=e;i!==null;){if((i.f&128)!==0)try{i.fn(t);return}catch(o){i.f^=128}i=i.parent}throw hc=!1,t}function rg(t){return(t.f&16384)===0&&(t.parent===null||(t.parent.f&128)===0)}function Ha(t,e,i,o){var m,y;if(hc){if(i===null&&(hc=!1),rg(e))throw t;return}if(i!==null&&(hc=!0),!ke||o===null||!(t instanceof Error)||og.has(t)){ng(t,e);return}og.add(t);let n=[],a=(m=e.fn)==null?void 0:m.name;a&&n.push(a);let s=o;for(;s!==null;){if(ke){var d=(y=s.function)==null?void 0:y[hi];if(d){let u=d.split("/").pop();n.push(u)}}s=s.p}let l=Vl?" ":" ";oo(t,"message",{value:t.message+`
|
|
40
40
|
${n.map(u=>`
|
|
41
41
|
${l}in ${u}`).join("")}
|
|
42
|
-
`}),
|
|
43
|
-
`)
|
|
44
|
-
`)})}if(
|
|
45
|
-
`)){let n=(i=
|
|
42
|
+
`}),oo(t,"component_stack",{value:n});let p=t.stack;if(p){let u=p.split(`
|
|
43
|
+
`),$=[];for(let w=0;w<u.length;w++){let b=u[w];b.includes("svelte/src/internal")||$.push(b)}oo(t,"stack",{value:$.join(`
|
|
44
|
+
`)})}if(ng(t,e),rg(e))throw t}function dg(t,e,i=!0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var a=o[n];(a.f&2)!==0?dg(a,e,!1):e===a&&(i?sn(a,2048):(a.f&1024)!==0&&sn(a,4096),Na(a))}}function fc(t){var $,w;var e=ln,i=Fn,o=Dn,n=Ft,a=Zr,s=hr,d=At,l=On,p=t.f;ln=null,Fn=0,Dn=null,Zr=(p&256)!==0&&(On||!Fs||Ft===null),Ft=(p&96)===0?t:null,hr=null,Hl(t.ctx),On=!1,$c++;try{var m=(0,t.fn)(),y=t.deps;if(ln!==null){var u;if(Ol(t,Fn),y!==null&&Fn>0)for(y.length=Fn+ln.length,u=0;u<ln.length;u++)y[Fn+u]=ln[u];else t.deps=y=ln;if(!Zr)for(u=Fn;u<y.length;u++)((w=($=y[u]).reactions)!=null?w:$.reactions=[]).push(t)}else y!==null&&Fn<y.length&&(Ol(t,Fn),y.length=Fn);if(Br()&&Dn!==null&&!On&&y!==null&&(t.f&6146)===0)for(u=0;u<Dn.length;u++)dg(Dn[u],t);return n!==null&&($c++,Dn!==null&&(o===null?o=Dn:o.push(...Dn))),m}finally{ln=e,Fn=i,Dn=o,Ft=n,Zr=a,hr=s,Hl(d),On=l}}function x0(t,e){let i=e.reactions;if(i!==null){var o=wv.call(i,t);if(o!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[o]=i[n],i.pop())}}i===null&&(e.f&2)!==0&&(ln===null||!ln.includes(e))&&(sn(e,4096),(e.f&768)===0&&(e.f^=512),pc(e),Ol(e,0))}function Ol(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)x0(t,i[o])}function Ba(t){var e=t.f;if((e&16384)===0){sn(t,1024);var i=Et,o=At,n=Fs;if(Et=t,Fs=!0,ke){var a=dn;Fl(t.component_function)}try{(e&16)!==0?cg(t):sp(t),rp(t);var s=fc(t);t.teardown=typeof s=="function"?s:null,t.wv=lg;var d=t.deps;if(ke&&Rr&&(t.f&2048)!==0&&d!==null)for(let p=0;p<d.length;p++){var l=d[p];l.trace_need_increase&&(l.wv=Ll(),l.trace_need_increase=void 0,l.trace_v=void 0)}ke&&bc.push(t)}catch(p){Ha(p,t,i,o||t.ctx)}finally{Fs=n,Et=i,ke&&Fl(a)}}}function sg(){console.error("Last ten effects were: ",bc.slice(-10).map(t=>t.fn)),bc=[]}function w0(){try{Mv()}catch(t){if(ke&&oo(t,"stack",{value:""}),Bl!==null)if(ke)try{Ha(t,Bl,null,null)}catch(e){throw sg(),e}else Ha(t,Bl,null,null);else throw ke&&sg(),t}}function ip(){var t=Fs;try{var e=0;for(Fs=!0;Nl.length>0;){e++>1e3&&w0();var i=Nl,o=i.length;Nl=[];for(var n=0;n<o;n++){var a=C0(i[n]);S0(a)}}}finally{Dl=!1,Fs=t,Bl=null,ke&&(bc=[]),Va.clear()}}function S0(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];if((o.f&24576)===0)try{ps(o)&&(Ba(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?ap(o):o.fn=null))}catch(n){Ha(n,o,null,o.ctx)}}}function Na(t){Dl||(Dl=!0,queueMicrotask(ip));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}}Nl.push(e)}function C0(t){for(var e=[],i=t;i!==null;){var o=i.f,n=(o&96)!==0,a=n&&(o&1024)!==0;if(!a&&(o&8192)===0){if((o&4)!==0)e.push(i);else if(n)i.f^=1024;else{var s=Ft;try{Ft=i,ps(i)&&Ba(i)}catch(p){Ha(p,i,null,i.ctx)}finally{Ft=s}}var d=i.first;if(d!==null){i=d;continue}}var l=i.parent;for(i=i.next;i===null&&l!==null;)i=l.next,l=l.parent}return e}function Fa(t){var e;for(t&&(Dl=!0,ip(),e=t()),Ku();Nl.length>0;)Dl=!0,ip(),Ku();return e}async function wo(){await Promise.resolve(),Fa()}function r(t){var e=t.f,i=(e&2)!==0;if(Ml!==null&&Ml.add(t),Ft!==null&&!On){hr!==null&&hr.includes(t)&&Hv();var o=Ft.deps;t.rv<$c&&(t.rv=$c,ln===null&&o!==null&&o[Fn]===t?Fn++:ln===null?ln=[t]:(!Zr||!ln.includes(t))&&ln.push(t))}else if(i&&t.deps===null&&t.effects===null){var n=t,a=n.parent;a!==null&&(a.f&256)===0&&(n.f^=256)}if(i&&(n=t,ps(n)&&Ju(n)),ke&&Rr&&Al!==null&&Ft!==null&&Al.reaction===Ft){if(t.debug)t.debug();else if(t.created){var s=Al.entries.get(t);s===void 0&&(s={read:[]},Al.entries.set(t,s)),s.read.push(Gr("TracedAt"))}}return Bs&&Va.has(t)?Va.get(t):t.v}function St(t){var e=On;try{return On=!0,t()}finally{On=e}}var T0=-7169;function sn(t,e){t.f=t.f&T0|e}function xc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Ho in t)yc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Ho in i&&yc(i)}}}function yc(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{yc(t[o],e)}catch(n){}let i=Qr(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=cc(i);for(let n in o){let a=o[n].get;if(a)try{a.call(t)}catch(s){}}}}}function dp(t){Et===null&&Ft===null&&Av(t),Ft!==null&&(Ft.f&256)!==0&&Et===null&&Pv(),Bs&&Ev(t)}function I0(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Us(t,e,i,o=!0){var l;var n=Et;if(ke)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var a={ctx:At,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n,prev:null,teardown:null,transitions:null,wv:0};if(ke&&(a.component_function=dn),i)try{Ba(a),a.f|=32768}catch(p){throw ro(a),p}else e!==null&&Na(a);var s=i&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&1048704)===0;if(!s&&o&&(n!==null&&I0(a,n),Ft!==null&&(Ft.f&2)!==0)){var d=Ft;((l=d.effects)!=null?l:d.effects=[]).push(a)}return a}function cn(t){let e=Us(8,null,!1);return sn(e,1024),e.teardown=t,e}function Fe(t){var n;dp("$effect");var e=Et!==null&&(Et.f&32)!==0&&At!==null&&!At.m;if(ke&&oo(t,"name",{value:"$effect"}),e){var i=At;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:Et,reaction:Ft})}else{var o=Cn(t);return o}}function Ua(t){return dp("$effect.pre"),ke&&oo(t,"name",{value:"$effect.pre"}),So(t)}function Sc(t){let e=Us(64,t,!0);return()=>{ro(e)}}function pg(t){let e=Us(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Tn(e,()=>{ro(e),o(void 0)}):(ro(e),o(void 0))})}function Cn(t){return Us(4,t,!1)}function So(t){return Us(8,t,!0)}function E(t,e=[],i=v){let o=e.map(i),n=()=>t(...o.map(r));return ke&&oo(n,"name",{value:"{expression}"}),ao(n)}function ao(t,e=0){return Us(24|e,t,!0)}function Ki(t,e=!0){return Us(40,t,!0,e)}function rp(t){var e=t.teardown;if(e!==null){let i=Bs,o=Ft;np(!0),xo(null);try{e.call(null)}finally{np(i),xo(o)}}}function sp(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:ro(i,e),i=o}}function cg(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&ro(e),e=i}}function ro(t,e=!0){var i=!1;if((e||(t.f&524288)!==0)&&t.nodes_start!==null){for(var o=t.nodes_start,n=t.nodes_end;o!==null;){var a=o===n?null:Ao(o);o.remove(),o=a}i=!0}sp(t,e&&!i),Ol(t,0),sn(t,16384);var s=t.transitions;if(s!==null)for(let l of s)l.stop();rp(t);var d=t.parent;d!==null&&d.first!==null&&ap(t),ke&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function ap(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 Tn(t,e){var i=[];Cc(t,i,!0),cp(i,()=>{ro(t),e&&e()})}function cp(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function Cc(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let s of t.transitions)(s.is_global||i)&&e.push(s);for(var o=t.first;o!==null;){var n=o.next,a=(o.f&65536)!==0||(o.f&32)!==0;Cc(o,e,a?i:!1),o=n}}}function Xr(t){fg(t,!0)}function fg(t,e){if((t.f&8192)!==0){t.f^=8192,(t.f&1024)===0&&(t.f^=1024),ps(t)&&(sn(t,2048),Na(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;fg(i,n?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var k0={},E0=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,P0=/@(.+):(\d+):(\d+)$/;function A0(){var i;let t=new Error().stack;if(!t)return null;let e=[];for(let o of t.split(`
|
|
45
|
+
`)){let n=(i=E0.exec(o))!=null?i:P0.exec(o);n&&e.push({file:n[1],line:+n[2],column:+n[3]})}return e}function mg(){var e;let t=(e=A0())==null?void 0:e.slice(4);if(!t)return null;for(let i=0;i<t.length;i++){let o=t[i],n=k0[o.file];if(!n){if(i===0)return null;continue}for(let a of n){if(a.end==null)return null;if(a.start.line<o.line&&a.end.line>o.line)return a.component}}return null}var Tc=Symbol("ADD_OWNER");function up(t,e,i=!1,o=!1){if(t&&!i){let n=dn,a=t[Kr];if(a&&!pp(a,n)){let s=fp(a);e&&e[hi]!==n[hi]&&!o&&jv(n[hi],e[hi],s[hi])}}Ic(t,e,new Set)}function tp(t,e){if(e.owners!==null)for(;t;){if(t.owners===null){e.owners=null;break}for(let i of t.owners)e.owners.add(i);t=t.parent}}function Ic(t,e,i){var a;let o=t==null?void 0:t[Kr];if(o)"owners"in o&&o.owners!=null&&(e?o.owners.add(e):o.owners=null);else if(t&&typeof t=="object"){if(i.has(t))return;if(i.add(t),Tc in t&&t[Tc])So(()=>{t[Tc](e)});else{var n=Qr(t);if(n===Object.prototype)for(let s in t)if((a=Object.getOwnPropertyDescriptor(t,s))!=null&&a.get){let d=Mi;So(()=>{let l=t[s];d!==l&&(d=l,Ic(l,e,i))})}else Ic(t[s],e,i);else if(n===Array.prototype)for(let s=0;s<t.length;s+=1)Ic(t[s],e,i)}}}function pp(t,e){return t.owners===null?!0:t.owners.has(e)||hi in e&&[...t.owners].some(i=>i[hi]===e[hi])||t.parent!==null&&pp(t.parent,e)}function fp(t){var e,i;return(i=(e=t==null?void 0:t.owners)==null?void 0:e.values().next().value)!=null?i:fp(t.parent)}var M0=!1;function Xv(t){if(M0)return;let e=mg();if(e&&!pp(t,e)){let i=fp(t);i[hi]!==e[hi]?ep(e[hi],i[hi]):ep()}}function za(t){if(ke){let e=new Error(`lifecycle_outside_component
|
|
46
46
|
\`${t}(...)\` can only be used during component initialisation
|
|
47
|
-
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 Lt=null;function Fl(t){Lt=t}var dn=null;function Ul(t){dn=t}function Fa(t){return up("getContext").get(t)}function Ua(t,e){let i=up("setContext");return ke&&xt(()=>lp(e,null,!0)),i.set(t,e),e}function ql(){return up("getAllContexts")}function U(t,e=!1,i){var o=Lt={p:Lt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Rr&&!e&&(Lt.l={s:null,u:null,r1:[],r2:Wi(!1)}),cn(()=>{o.d=!0}),ke&&(Lt.function=i,dn=i)}function z(t){var s,d;let e=Lt;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=kt,o=Bt;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];lo(a.effect),yo(a.reaction),xn(a.fn)}}finally{lo(i),yo(o)}}Lt=e.p,ke&&(dn=(d=(s=e.p)==null?void 0:s.function)!=null?d:null),e.m=!0}return t||{}}function Dr(){return!Rr||Lt!==null&&Lt.l===null}function up(t){var e;return Lt===null&&Ha(t),(e=Lt.c)!=null?e:Lt.c=new Map(A0(Lt)||void 0)}function A0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var M0=/\r/g;function pg(t){t=t.replace(M0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function fg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var L0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function mg(t){return L0.includes(t)}var V0=["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 R0={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 vg(t){var e;return t=t.toLowerCase(),(e=R0[t])!=null?e:t}var ww=[...V0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var N0=["touchstart","touchmove"];function gg(t){return N0.includes(t)}var D0=["textarea","script","style","title"];function hg(t){return D0.includes(t)}function pp(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var _g=new Map;function bg(t,e){var i=_g.get(t);i||(i=new Set,_g.set(t,i)),i.add(e)}function fp(t,e){if(e){let i=document.body;t.autofocus=!0,on(()=>{document.activeElement===i&&t.focus()})}}function Wl(t){var e=Bt,i=kt;yo(null),lo(null);try{return t()}finally{yo(e),lo(i)}}var mp=new Set,kc=new Set;function qs(t){if(!je)return;t.onload&&t.removeAttribute("onload"),t.onerror&&t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function vp(t,e,i,o={}){function n(a){if(o.capture||za.call(e,a),!a.cancelBubble)return Wl(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?on(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function St(t,e,i,o,n){var a={capture:o,passive:n},s=vp(t,e,i,a);(e===document.body||e===window||e===document)&&cn(()=>{e.removeEventListener(t,s,a)})}function at(t){for(var e=0;e<t.length;e++)mp.add(t[e]);for(var i of kc)i(t)}function za(t){var E;var e=this,i=e.ownerDocument,o=t.type,n=((E=t.composedPath)==null?void 0:E.call(t))||[],a=n[0]||t.target,s=0,d=t.__root;if(d){var l=n.indexOf(d);if(l!==-1&&(e===document||e===window)){t.__root=e;return}var p=n.indexOf(e);if(p===-1)return;l<=p&&(s=l)}if(a=n[s]||t.target,a!==e){ao(t,"currentTarget",{configurable:!0,get(){return a||i}});var m=Bt,$=kt;yo(null),lo(null);try{for(var u,_=[];a!==null;){var w=a.assignedSlot||a.parentNode||a.host||null;try{var y=a["__"+o];if(y!=null&&(!a.disabled||t.target===a))if(pr(y)){var[C,...T]=y;C.apply(a,[t,...T])}else y.call(a,t)}catch(P){u?_.push(P):u=P}if(t.cancelBubble||w===e||w===null)break;a=w}if(u){for(let P of _)queueMicrotask(()=>{throw P});throw u}}finally{t.__root=e,delete t.currentTarget,yo(m),lo($)}}}var O0;function $g(){O0=void 0}function qa(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function So(t,e){var i=kt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function L(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,a=!t.startsWith("<!>");return()=>{if(je)return So(vt,null),vt;n===void 0&&(n=qa(a?t:"<!>"+t),i||(n=bi(n)));var s=o||Rl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=bi(s),l=s.lastChild;So(d,l)}else So(s,s);return s}}function be(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,s;return()=>{if(je)return So(vt,null),vt;if(!s){var d=qa(a),l=bi(d);if(n)for(s=document.createDocumentFragment();bi(l);)s.appendChild(bi(l));else s=bi(l)}var p=s.cloneNode(!0);if(n){var m=bi(p),$=p.lastChild;So(m,$)}else So(p,p);return p}}function Br(t=""){if(!je){var e=an(t+"");return So(e,e),e}var i=vt;return i.nodeType!==3&&(i.before(i=an()),_i(i)),So(i,i),i}function Fe(){if(je)return So(vt,null),vt;var t=document.createDocumentFragment(),e=document.createComment(""),i=an();return t.append(e,i),So(e,i),t}function b(t,e){if(je){kt.nodes_end=vt,Oi();return}t!==null&&t.before(e)}var Kl=!0;function Ec(t){Kl=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 Xr(t,e){return xg(t,e)}function hp(t,e){var s;gc(),e.intro=(s=e.intro)!=null?s:!1;let i=e.target,o=je,n=vt;try{for(var a=bi(i);a&&(a.nodeType!==8||a.data!==ds);)a=Vo(a);if(!a)throw qr;uo(!0),_i(a),Oi();let d=xg(t,{...e,anchor:a});if(vt===null||vt.nodeType!==8||vt.data!==Vs)throw Hs(),qr;return uo(!1),d}catch(d){if(d===qr)return e.recover===!1&&Pv(),gc(),Nl(i),uo(!1),Xr(t,e);throw d}finally{uo(o),_i(n),$g()}}var Wa=new Map;function xg(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){gc();var d=new Set,l=$=>{for(var u=0;u<$.length;u++){var _=$[u];if(!d.has(_)){d.add(_);var w=gg(_);e.addEventListener(_,za,{passive:w});var y=Wa.get(_);y===void 0?(document.addEventListener(_,za,{passive:w}),Wa.set(_,1)):Wa.set(_,y+1)}}};l(Pl(mp)),kc.add(l);var p=void 0,m=dg(()=>{var $=i!=null?i:e.appendChild(an());return Ki(()=>{if(a){U({});var u=Lt;u.c=a}n&&(o.$$events=n),je&&So($,null),Kl=s,p=t($,o)||{},Kl=!0,je&&(kt.nodes_end=vt),a&&z()}),()=>{var w;for(var u of d){e.removeEventListener(u,za);var _=Wa.get(u);--_===0?(document.removeEventListener(u,za),Wa.delete(u)):Wa.set(u,_)}kc.delete(l),$!==i&&((w=$.parentNode)==null||w.removeChild($))}});return gp.set(p,m),p}var gp=new WeakMap;function Ws(t,e){let i=gp.get(t);return i?(gp.delete(t),i(e)):(ke&&Kv(),Promise.resolve())}function R(t,e,[i,o]=[0,0]){je&&i===0&&Oi();var n=t,a=null,s=null,d=Vi,l=i>0?65536:0,p=!1;let m=(u,_=!0)=>{p=!0,$(_,u)},$=(u,_)=>{if(d===(d=u))return;let w=!1;if(je&&o!==-1){if(i===0){let C=n.data;C===ds?o=0:C===Ls?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=Ra(),_i(n),uo(!1),w=!0,o=-1)}d?(a?Zr(a):_&&(a=Ki(()=>_(n))),s&&wn(s,()=>{s=null})):(s?Zr(s):_&&(s=Ki(()=>_(n,[i+1,o]))),a&&wn(a,()=>{a=null})),w&&uo(!0)};po(()=>{p=!1,e(m),p||$(null,null)},l),je&&(n=vt)}function Ks(t,e,i){je&&Oi();var o=t,n=Vi,a,s=Dr()?Sv:Ea;po(()=>{s(n,n=e())&&(a&&wn(a),a=Ki(()=>i(o)))}),je&&(o=vt)}var ms=null;function $p(t){ms=t}function Ql(t,e){return e}function z0(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)Cc(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;Nl(l),l.append(i),o.clear(),fs(t,e[0].prev,e[a-1].next)}ap(n,()=>{for(var p=0;p<a;p++){var m=e[p];d||(o.delete(m.k),fs(t,m.prev,m.next)),co(m.e,!d)}})}function Ti(t,e,i,o,n,a=null){var s=t,d={flags:e,items:new Map,first:null},l=(e&4)!==0;if(l){var p=t;s=je?_i(bi(p)):p.appendChild(an())}je&&Oi();var m=null,$=!1,u=vr(()=>{var _=i();return pr(_)?_:_==null?[]:Pl(_)});po(()=>{var _=r(u),w=_.length;if($&&w===0)return;$=w===0;let y=!1;if(je){var C=s.data===Ls;C!==(w===0)&&(s=Ra(),_i(s),uo(!1),y=!0)}if(je){for(var T=null,E,P=0;P<w;P++){if(vt.nodeType===8&&vt.data===Vs){s=vt,y=!0,uo(!1);break}var A=_[P],I=o(A,P);E=Cg(vt,d,T,null,A,I,P,n,e,i),d.items.set(I,E),T=E}w>0&&_i(Ra())}je||q0(_,d,s,n,e,o,i),a!==null&&(w===0?m?Zr(m):m=Ki(()=>a(s)):m!==null&&wn(m,()=>{m=null})),y&&uo(!0),r(u)}),je&&(s=vt)}function q0(t,e,i,o,n,a,s){var le,Me,Ae,me;var d=(n&8)!==0,l=(n&3)!==0,p=t.length,m=e.items,$=e.first,u=$,_,w=null,y,C=[],T=[],E,P,A,I;if(d)for(I=0;I<p;I+=1)E=t[I],P=a(E,I),A=m.get(P),A!==void 0&&((le=A.a)==null||le.measure(),(y!=null?y:y=new Set).add(A));for(I=0;I<p;I+=1){if(E=t[I],P=a(E,I),A=m.get(P),A===void 0){var V=u?u.e.nodes_start:i;w=Cg(V,e,w,w===null?e.first:w.next,E,P,I,o,n,s),m.set(P,w),C=[],T=[],u=w.next;continue}if(l&&W0(A,E,I,n),(A.e.f&8192)!==0&&(Zr(A.e),d&&((Me=A.a)==null||Me.unfix(),(y!=null?y:y=new Set).delete(A))),A!==u){if(_!==void 0&&_.has(A)){if(C.length<T.length){var H=T[0],j;w=H.prev;var O=C[0],X=C[C.length-1];for(j=0;j<C.length;j+=1)wg(C[j],H,i);for(j=0;j<T.length;j+=1)_.delete(T[j]);fs(e,O.prev,X.next),fs(e,w,O),fs(e,X,H),u=H,w=X,I-=1,C=[],T=[]}else _.delete(A),wg(A,u,i),fs(e,A.prev,A.next),fs(e,A,w===null?e.first:w.next),fs(e,w,A),w=A;continue}for(C=[],T=[];u!==null&&u.k!==P;)(u.e.f&8192)===0&&(_!=null?_:_=new Set).add(u),T.push(u),u=u.next;if(u===null)continue;A=u}C.push(A),w=A,u=A.next}if(u!==null||_!==void 0){for(var ne=_===void 0?[]:Pl(_);u!==null;)(u.e.f&8192)===0&&ne.push(u),u=u.next;var Y=ne.length;if(Y>0){var fe=(n&4)!==0&&p===0?i:null;if(d){for(I=0;I<Y;I+=1)(Ae=ne[I].a)==null||Ae.measure();for(I=0;I<Y;I+=1)(me=ne[I].a)==null||me.fix()}z0(e,ne,fe,m)}}d&&on(()=>{var ae;if(y!==void 0)for(A of y)(ae=A.a)==null||ae.apply()}),kt.first=e.first&&e.first.e,kt.last=w&&w.e}function W0(t,e,i,o){(o&1)!==0&&Ma(t.v,e),(o&2)!==0?Ma(t.i,i):t.i=i}function Cg(t,e,i,o,n,a,s,d,l,p){var m=ms,$=(l&1)!==0,u=(l&16)===0,_=$?u?jr(n):Wi(n):n,w=(l&2)===0?s:Wi(s);ke&&$&&(_.debug=()=>{var C=typeof w=="number"?s:w.v;p()[C]});var y={i:w,v:_,k:a,a:null,e:null,prev:i,next:o};ms=y;try{return y.e=Ki(()=>d(t,_,w,p),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{ms=m}}function wg(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,a=t.e.nodes_start;a!==o;){var s=Vo(a);n.before(a),a=s}}function fs(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function K0(t,e,i){var a,s;if(!e||e===pg(String(i!=null?i:"")))return;let o,n=(a=t.__svelte_meta)==null?void 0:a.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(s=dn)!=null&&s[hi]&&(o=`in ${dn[hi]}`),Wv(pp(o))}function Gl(t,e,i,o,n){var a=t,s="",d;po(()=>{var l;if(s===(s=(l=e())!=null?l:"")){je&&Oi();return}d!==void 0&&(co(d),d=void 0),s!==""&&(d=Ki(()=>{if(je){for(var p=vt.data,m=Oi(),$=m;m!==null&&(m.nodeType!==8||m.data!=="");)$=m,m=Vo(m);if(m===null)throw Hs(),qr;ke&&!n&&K0(m.parentNode,p,s),So(vt,$),a=_i(m);return}var u=s+"";i?u=`<svg>${u}</svg>`:o&&(u=`<math>${u}</math>`);var _=qa(u);if((i||o)&&(_=bi(_)),So(bi(_),_.lastChild),i||o)for(;bi(_);)a.before(bi(_));else a.before(_)}))})}function he(t,e,...i){var o=t,n=oe,a;po(()=>{n!==(n=e())&&(a&&(co(a),a=null),ke&&n==null&&Av(),a=Ki(()=>n(o,...i)))},65536),je&&(o=vt)}function Ii(t,e,i){je&&Oi();var o=t,n,a;po(()=>{n!==(n=e())&&(a&&(wn(a),a=null),n&&(a=Ki(()=>i(o,n))))},65536),je&&(o=vt)}function Qs(t,e,i,o,n,a){var w;let s=je;je&&Oi();var d=ke&&a&&((w=Lt)==null?void 0:w.function[hi]),l,p,m=null;je&&vt.nodeType===1&&(m=vt,Oi());var $=je?vt:t,u,_=ms;po(()=>{let y=e()||null;var C=n?n():i||y==="svg"?Ou:null;if(y!==l){var T=ms;$p(_),u&&(y===null?wn(u,()=>{u=null,p=null}):y===p?Zr(u):(co(u),Ec(!1))),y&&y!==p&&(u=Ki(()=>{if(m=je?m:C?document.createElementNS(C,y):document.createElement(y),ke&&a&&(m.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),So(m,m),o){je&&hg(y)&&m.append(document.createComment(""));var E=je?bi(m):m.appendChild(an());je&&(E===null?uo(!1):_i(E)),o(m,E)}kt.nodes_end=m,$.before(m)})),l=y,l&&(p=l),Ec(!0),$p(T)}},65536),s&&(uo(!0),_i($))}var xp;function Tg(t){return xp=t.target,new yp(t)}var Jr,or,yp=class{constructor(e){ls(this,Jr);ls(this,or);var a,s;var i=new Map,o=(d,l)=>{var p=jr(l);return i.set(d,p),p};let n=new Proxy({...e.props||{},$$events:{}},{get(d,l){var p;return r((p=i.get(l))!=null?p:o(l,Reflect.get(d,l)))},has(d,l){var p;return l===El?!0:(r((p=i.get(l))!=null?p:o(l,Reflect.get(d,l))),Reflect.has(d,l))},set(d,l,p){var m;return B((m=i.get(l))!=null?m:o(l,p),p),Reflect.set(d,l,p)}});ka(this,or,(e.hydrate?hp:Xr)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(a=e.intro)!=null?a:!1,recover:e.recover})),(!((s=e==null?void 0:e.props)!=null&&s.$$host)||e.sync===!1)&&Ba(),ka(this,Jr,n.$$events);for(let d of Object.keys(Li(this,or)))d==="$set"||d==="$destroy"||d==="$on"||ao(this,d,{get(){return Li(this,or)[d]},set(l){Li(this,or)[d]=l},enumerable:!0});Li(this,or).$set=d=>{Object.assign(n,d)},Li(this,or).$destroy=()=>{Ws(Li(this,or))}}$set(e){Li(this,or).$set(e)}$on(e,i){Li(this,Jr)[e]=Li(this,Jr)[e]||[];let o=(...n)=>i.call(this,...n);return Li(this,Jr)[e].push(o),()=>{Li(this,Jr)[e]=Li(this,Jr)[e].filter(n=>n!==o)}}$destroy(){Li(this,or).$destroy()}};Jr=new WeakMap,or=new WeakMap;function q(t,e){on(()=>{var n,a,s;var i=t.getRootNode(),o=i.host?i:(s=(n=i.head)!=null?n:i.ownerDocument.head)!=null?s:(a=xp)==null?void 0:a.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),ke&&bg(e.hash,d)}})}function Ig(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=Ig(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function kg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Ig(t))&&(o&&(o+=" "),o+=e);return o}function jl(t){return typeof t=="object"?kg(t):t!=null?t:""}var Eg=[...`
|
|
48
|
-
\r\f\xA0\v\uFEFF`];function Ag(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 a=n.length,s=0;(s=o.indexOf(n,s))>=0;){var d=s+a;(s===0||Eg.includes(o[s-1]))&&(d===o.length||Eg.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function Pg(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var a=t[n];a!=null&&a!==""&&(o+=" "+n+": "+a+i)}return o}function wp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Mg(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 a=!1,s=0,d=!1,l=[];o&&l.push(...Object.keys(o).map(wp)),n&&l.push(...Object.keys(n).map(wp));var p=0,m=-1;let y=t.length;for(var $=0;$<y;$++){var u=t[$];if(d?u==="/"&&t[$-1]==="*"&&(d=!1):a?a===u&&(a=!1):u==="/"&&t[$+1]==="*"?d=!0:u==='"'||u==="'"?a=u:u==="("?s++:u===")"&&s--,!d&&a===!1&&s===0){if(u===":"&&m===-1)m=$;else if(u===";"||$===y-1){if(m!==-1){var _=wp(t.substring(p,m).trim());if(!l.includes(_)){u!==";"&&$++;var w=t.substring(p,$).trim();i+=" "+w+";"}}p=$+1,m=-1}}}}return o&&(i+=Pg(o)),n&&(i+=Pg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ee(t,e,i,o,n,a){var s=t.__className;if(je||s!==i){var d=Ag(i,o,a);(!je||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&n!==a)for(var l in a){var p=!!a[l];(n==null||p!==!!n[l])&&t.classList.toggle(l,p)}return a}function Sp(t,e={},i,o){for(var n in i){var a=i[n];e[n]!==a&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,a,o))}}function it(t,e,i,o){var n=t.__style;if(je||n!==e){var a=Mg(e,o);(!je||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(Sp(t,i==null?void 0:i[0],o[0]),Sp(t,i==null?void 0:i[1],o[1],"important")):Sp(t,i,o));return o}var Ka=Symbol("class"),Qa=Symbol("style"),Rg=Symbol("is custom element"),Ng=Symbol("is html");function Dg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function He(t,e,i,o){var n=Bg(t);if(je&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||J0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[bv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Og(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Ce(t,e,i,o,n=!1){var A;var a=Bg(t),s=a[Rg],d=!a[Ng];let l=je&&s;l&&uo(!1);var p=e||{},m=t.tagName==="OPTION";for(var $ in e)$ in i||(i[$]=null);i.class?i.class=jl(i.class):(o||i[Ka])&&(i.class=null),i[Qa]&&((A=i.style)!=null||(i.style=null));var u=Og(t);for(let I in i){let V=i[I];if(m&&I==="value"&&V==null){t.value=t.__value="",p[I]=V;continue}if(I==="class"){var _=t.namespaceURI==="http://www.w3.org/1999/xhtml";ee(t,_,V,o,e==null?void 0:e[Ka],i[Ka]),p[I]=V,p[Ka]=i[Ka];continue}if(I==="style"){it(t,V,e==null?void 0:e[Qa],i[Qa]),p[I]=V,p[Qa]=i[Qa];continue}var w=p[I];if(V!==w){p[I]=V;var y=I[0]+I[1];if(y!=="$$")if(y==="on"){let H={},j="$$"+I,O=I.slice(2);var C=mg(O);if(fg(O)&&(O=O.slice(0,-7),H.capture=!0),!C&&w){if(V!=null)continue;t.removeEventListener(O,p[j],H),p[j]=null}if(V!=null)if(C)t[`__${O}`]=V,at([O]);else{let X=function(ne){p[I].call(this,ne)};var P=X;p[j]=vp(O,t,X,H)}else C&&(t[`__${O}`]=void 0)}else if(I==="style")He(t,I,V);else if(I==="autofocus")fp(t,!!V);else if(!s&&(I==="__value"||I==="value"&&V!=null))t.value=t.__value=V;else if(I==="selected"&&m)Dg(t,V);else{var T=I;d||(T=vg(T));var E=T==="defaultValue"||T==="defaultChecked";if(V==null&&!s&&!E)if(a[I]=null,T==="value"||T==="checked"){let H=t,j=e===void 0;if(T==="value"){let O=H.defaultValue;H.removeAttribute(T),H.defaultValue=O,H.value=H.__value=j?O:null}else{let O=H.defaultChecked;H.removeAttribute(T),H.defaultChecked=O,H.checked=j?O:!1}}else t.removeAttribute(I);else E||u.includes(T)&&(s||typeof V!="string")?t[T]=V:typeof V!="function"&&He(t,T,V,n)}}}return l&&uo(!0),p}function Bg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Rg]:t.nodeName.includes("-"),[Ng]:t.namespaceURI===vv}}var Lg=new Map;function Og(t){var e=Lg.get(t.nodeName);if(e)return e;Lg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=cc(o);for(var a in i)i[a].set&&e.push(a);o=Kr(o)}return e}function J0(t,e,i){var o;ke&&(e==="srcset"&&e_(t,i)||Cp((o=t.getAttribute(e))!=null?o:"",i)||qv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Cp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Vg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function e_(t,e){var i=Vg(t.srcset),o=Vg(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(Cp(i[s][0],n)||Cp(n,i[s][0])))}var t_=dc?()=>performance.now():()=>Date.now(),hr={tick:t=>(dc?requestAnimationFrame:oe)(t),now:()=>t_(),tasks:new Set};function Hg(){let t=hr.now();hr.tasks.forEach(e=>{e.c(t)||(hr.tasks.delete(e),e.f())}),hr.tasks.size!==0&&hr.tick(Hg)}function Fg(t){let e;return hr.tasks.size===0&&hr.tick(Hg),{promise:new Promise(i=>{hr.tasks.add(e={c:t,f:i})}),abort(){hr.tasks.delete(e)}}}function Pc(t,e){Wl(()=>{t.dispatchEvent(new CustomEvent(e))})}function r_(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 Ug(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=r_(n.trim());e[s]=a.trim()}return e}var s_=t=>t;function Ip(t,e,i,o){var P;var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",p,m=e.inert,$=e.style.overflow,u,_;function w(){var V;var A=Bt,I=kt;yo(null),lo(null);try{return p!=null?p:p=i()(e,(V=o==null?void 0:o())!=null?V:{},{direction:l})}finally{yo(A),lo(I)}}var y={is_global:d,in(){var A;if(e.inert=m,!n){_==null||_.abort(),(A=_==null?void 0:_.reset)==null||A.call(_);return}a||u==null||u.abort(),Pc(e,"introstart"),u=Tp(e,w(),_,1,()=>{Pc(e,"introend"),u==null||u.abort(),u=p=void 0,e.style.overflow=$})},out(A){if(!a){A==null||A(),p=void 0;return}e.inert=!0,Pc(e,"outrostart"),_=Tp(e,w(),u,0,()=>{Pc(e,"outroend"),A==null||A()})},stop:()=>{u==null||u.abort(),_==null||_.abort()}},C=kt;if(((P=C.transitions)!=null?P:C.transitions=[]).push(y),n&&Kl){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&&xn(()=>{xt(()=>y.in())})}}function Tp(t,e,i,o,n){var a=o===1;if(cs(e)){var s,d=!1;return on(()=>{if(!d){var C=e({direction:a?"in":"out"});s=Tp(t,C,i,o,n)}}),{abort:()=>{d=!0,s==null||s.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:oe,deactivate:oe,reset:oe,t:()=>o};let{delay:l=0,css:p,tick:m,easing:$=s_}=e;var u=[];if(a&&i===void 0&&(m&&m(0,1),p)){var _=Ug(p(0,1));u.push(_,_)}var w=()=>1-o,y=t.animate(u,{duration:l});return y.onfinish=()=>{var O;var C=(O=i==null?void 0:i.t())!=null?O:1-o;i==null||i.abort();var T=o-C,E=e.duration*Math.abs(T),P=[];if(E>0){var A=!1;if(p)for(var I=Math.ceil(E/16.666666666666668),V=0;V<=I;V+=1){var H=C+T*$(V/I),j=Ug(p(H,1-H));P.push(j),A||(A=j.overflow==="hidden")}A&&(t.style.overflow="hidden"),w=()=>{var X=y.currentTime;return C+T*$(X/E)},m&&Fg(()=>{if(y.playState!=="running")return!1;var X=w();return m(X,1-X),!0})}y=t.animate(P,{duration:E,fill:"forwards"}),y.onfinish=()=>{w=()=>o,m==null||m(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=oe)},deactivate:()=>{n=oe},reset:()=>{o===0&&(m==null||m(1,0))},t:()=>w()}}var vs,Ga,Yl,Mc,zg,Lc=class Lc{constructor(e){ls(this,Mc);ls(this,vs,new WeakMap);ls(this,Ga);ls(this,Yl);ka(this,Yl,e)}observe(e,i){var o=Li(this,vs).get(e)||new Set;return o.add(i),Li(this,vs).set(e,o),fv(this,Mc,zg).call(this).observe(e,Li(this,Yl)),()=>{var n=Li(this,vs).get(e);n.delete(i),n.size===0&&(Li(this,vs).delete(e),Li(this,Ga).unobserve(e))}}};vs=new WeakMap,Ga=new WeakMap,Yl=new WeakMap,Mc=new WeakSet,zg=function(){var e;return(e=Li(this,Ga))!=null?e:ka(this,Ga,new ResizeObserver(i=>{for(var o of i){Lc.entries.set(o.target,o);for(var n of Li(this,vs).get(o.target)||[])n(o)}}))},Nn(Lc,"entries",new WeakMap);var kp=Lc;var d_=new kp({box:"border-box"});function Or(t,e,i){var o=d_.observe(t,()=>i(t[e]));xn(()=>(xt(()=>i(t[e])),o))}function qg(t,e){return t===e||(t==null?void 0:t[zo])===e}function ft(t={},e,i,o){return xn(()=>{var n,a;return wo(()=>{n=a,a=(o==null?void 0:o())||[],xt(()=>{t!==i(...a)&&(e(t,...a),n&&qg(i(...n),t)&&e(null,...n))})}),()=>{on(()=>{a&&qg(i(...a),t)&&e(null,...a)})}}),t}function _r(t=!1){let e=Lt,i=e.l.u;if(!i)return;let o=()=>xc(e.s);if(t){let n=0,a={},s=v(()=>{let d=!1,l=e.s;for(let p in l)l[p]!==a[p]&&(a[p]=l[p],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&Oa(()=>{Wg(e,o),us(i.b)}),Ue(()=>{let n=xt(()=>i.m.map(xv));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&Ue(()=>{Wg(e,o),us(i.a)})}function Wg(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(ke){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Vv(e)},set:o=>{i=o}})}};u_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var u_;function Ft(t){Lt===null&&Ha("onMount"),Rr&&Lt.l!==null?c_(Lt).m.push(t):Ue(()=>{let e=xt(t);if(typeof e=="function")return e})}function Sn(t){Lt===null&&Ha("onDestroy"),Ft(()=>()=>xt(t))}function c_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function Zl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),oe;let o=xt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var ja=[];function nr(t,e){return{subscribe:ce(t,e).subscribe}}function ce(t,e=oe){let i=null,o=new Set;function n(d){if(Ea(t,d)&&(t=d,i)){let l=!ja.length;for(let p of o)p[1](),ja.push(p,t);if(l){for(let p=0;p<ja.length;p+=2)ja[p][0](ja[p+1]);ja.length=0}}}function a(d){n(d(t))}function s(d,l=oe){let p=[d,l];return o.add(p),o.size===1&&(i=e(n,a)||oe),d(t),()=>{o.delete(p),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function $i(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let a=e.length<2;return nr(i,(s,d)=>{let l=!1,p=[],m=0,$=oe,u=()=>{if(m)return;$();let w=e(o?p[0]:p,s,d);a?s(w):$=typeof w=="function"?w:oe},_=n.map((w,y)=>Zl(w,C=>{p[y]=C,m&=~(1<<y),l&&u()},()=>{m|=1<<y}));return l=!0,u(),function(){us(_),$(),l=!1}})}function we(t){let e;return Zl(t,i=>e=i)(),e}var Vc=!1,Ep=Symbol();function S(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:jr(void 0),unsubscribe:oe};if(o.store!==t&&!(Ep in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=oe;else{var n=!0;o.unsubscribe=Zl(t,s=>{n?o.source.v=s:B(o.source,s)}),n=!1}return t&&Ep in i?we(t):r(o.source)}function Be(){let t={};function e(){cn(()=>{for(var i in t)t[i].unsubscribe();ao(t,Ep,{enumerable:!1,value:!0})})}return[t,e]}function Pp(t){var e=Vc;try{return Vc=!1,[t(),Vc]}finally{Vc=e}}var __={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return ke&&Lv(`${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 Ee(t,e,i){return new Proxy(ke?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},__)}var b_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(cs(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];cs(n)&&(n=n());let a=Dn(n,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(cs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Dn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===zo||e===El)return!1;for(let i of t.props)if(cs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){cs(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function es(...t){return new Proxy({props:t},b_)}function Kg(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function f(t,e,i,o){var H,j;var n=(i&1)!==0,a=!Rr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,p;s?[p,l]=Pp(()=>t[e]):p=t[e];var m=zo in t||El in t,$=s&&((j=(H=Dn(t,e))==null?void 0:H.set)!=null?j:m&&e in t&&(O=>t[e]=O))||void 0,u=o,_=!0,w=!1,y=()=>(w=!0,_&&(_=!1,d?u=xt(o):u=o),u);p===void 0&&o!==void 0&&($&&a&&Mv(e),p=y(),$&&$(p));var C;if(a)C=()=>{var O=t[e];return O===void 0?y():(_=!0,w=!1,O)};else{var T=(n?v:vr)(()=>t[e]);T.f|=131072,C=()=>{var O=r(T);return O!==void 0&&(u=void 0),O===void 0?u:O}}if((i&4)===0)return C;if($){var E=t.$$legacy;return function(O,X){return arguments.length>0?((!a||!X||E||l)&&$(X?C():O),O):C()}}var P=!1,A=!1,I=jr(p),V=v(()=>{var O=C(),X=r(I);return P?(P=!1,A=!0,X):(A=!1,I.v=O)});return s&&r(V),n||(V.equals=Pa),function(O,X){if(Ll!==null&&(P=A,C(),r(I)),arguments.length>0){let ne=X?r(V):a&&s?pe(O):O;if(!V.equals(ne)){if(P=!0,B(I,ne),w&&u!==void 0&&(u=ne),Kg(V))return O;xt(()=>r(V))}return O}return Kg(V)?V.v:r(V)}}var $_;typeof HTMLElement=="function"&&($_=class extends HTMLElement{constructor(e,i,o){super();Nn(this,"$$ctor");Nn(this,"$$s");Nn(this,"$$c");Nn(this,"$$cn",!1);Nn(this,"$$d",{});Nn(this,"$$r",!1);Nn(this,"$$p_d",{});Nn(this,"$$l",{});Nn(this,"$$l_u",new Map);Nn(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(a){return s=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),b(s,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=y_(this);for(let a of this.$$s)a in n&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),o.default=!0):o[a]=i(a));for(let a of this.attributes){let s=this.$$g_p(a.name);s in this.$$d||(this.$$d[s]=Ap(s,a.value,this.$$p_d,"toProp"))}for(let a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=Tg({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=Sc(()=>{wo(()=>{var a;this.$$r=!0;for(let s of Hu(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=Ap(s,this.$$d[s],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,d)}this.$$r=!1})});for(let a in this.$$l)for(let s of this.$$l[a]){let d=this.$$c.$on(a,s);this.$$l_u.set(s,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ap(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 Hu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Ap(t,e,i,o){var a;let n=(a=i[t])==null?void 0:a.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 y_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Qg="5";var Gg,jg,Yg;typeof window!="undefined"&&((Yg=(jg=(Gg=window.__svelte)!=null?Gg:window.__svelte={}).v)!=null?Yg:jg.v=new Set).add(Qg);var xu=require("@vkontakte/videoplayer-core/es2018"),NQ=require("@vkontakte/videoplayer-core/es2018"),wa=require("@vkontakte/videoplayer-shared/es2018"),Q1=require("@vkontakte/videoplayer-statistics/es2018");var Gs=require("@vkontakte/videoplayer-shared/es2018");var w_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:Gs.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Gs.VideoQuality.Q_480P,highQualityLimit:Gs.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,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,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,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},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}},Zg=t=>(0,Gs.fillWithDefault)(t,w_),Xg=t=>Ua("ui-config",t),Ut=()=>Fa("ui-config");var Xl="vk_player_debug_panel_opened";var Jg="videoplayer",eh="videoplayer";var Hr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},th=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),ih=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),oh=new Set(["ShiftRight","ShiftLeft"]);var nh=["TIMELINE"],Jl=[...nh,"GRAPH_BUTTON"],Mp=[...nh,"PLAY_BUTTON"],ed=[...Jl,"PLAY_BUTTON"];var br=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(br||{}),Ys={xs:0,s:1,m:2,l:3,xl:4};var td=require("@vkontakte/videoplayer-shared/es2018"),rh=require("@vkontakte/videoplayer-core/es2018"),sh=require("@vkontakte/videoplayer-statistics/es2018");var Rc="prod",Zs="1.1.64-dev.dae0b8a8.0";var Xs=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var ah=Symbol("storeContext"),lh=Symbol("microStoresContext"),dh=(t,e)=>{Ua(ah,t),Ua(lh,e),Rc==="dev"&&(window.app={store:t,microStores:e})},Se=()=>{let t=Fa(ah);return(0,td.assertNonNullable)(t,"Store context is empty!"),t},fo=()=>{let t=Fa(lh);return(0,td.assertNonNullable)(t,"MicroStores context is empty!"),t},Gt=(t,e)=>Dc(t,t.getValue(),e),Dc=(t,e,i)=>nr(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),ch=(t,e,i)=>{var T,E,P,A,I,V;let o=t.info,{width:n,height:a}=we(i.ui.playerSize),s=(E=(T=o.throughputEstimation$.getValue())==null?void 0:T.toFixed(0))!=null?E:0,d=(A=(P=o.rttEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?A:0,l=o.isAutoQualityEnabled$.getValue()?"auto":"manual",p=`${Zs} (core: ${rh.VERSION}, stat: ${sh.VERSION}, shared: ${td.VERSION})`,m=we(i.state.errorLog$),$=m.length?`
|
|
49
|
-
`+
|
|
50
|
-
`,
|
|
51
|
-
`,
|
|
52
|
-
`;return
|
|
53
|
-
`):void 0
|
|
54
|
-
`)},uh=(t,e,i)=>{var H,j,O,X;let o=t.info,{width:n,height:a}=we(i.ui.playerSize),s={version:Zs,viewport:`${n}x${a}`,volume:Math.round(we(i.state.volume$)*100)};s.id=i.videoId,o.currentFormat$.getValue()&&(s.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(s.cdn=o.hostname$.getValue());let p=o.intrinsicVideoSize$.getValue();p&&(s.videoSize=`${p.width}x${p.height}`);let m=o.currentBuffer$.getValue(),$=o.isLive$.getValue(),u=o.liveBufferTime$.getValue();m&&($&&u?s.buffer=m.end-u:s.buffer=Math.max(m.end-we(i.state.positionExact$),0));let _=o.throughputEstimation$.getValue();_&&(s.speed=_);let w=o.videoBitrate$.getValue();w&&(s.bitrate=w);let y=o.liveLatency$.getValue();y&&(s.liveLatency=y);let C=o.currentVideoSegmentLength$.getValue();C&&(s.currentVideoSegmentLength=C);let T=o.currentAudioSegmentLength$.getValue();T&&(s.currentAudioSegmentLength=T);let E=we(i.vsid);typeof E=="string"&&(s.vsid=E);let P=(H=t.info.currentVideoStream$.getValue())==null?void 0:H.codec;P&&(s.videoCodec=P);let A=(j=t.info.currentAudioStream$.getValue())==null?void 0:j.codec;A&&(s.audioCodec=A),((O=t.info.currentVideoStream$.getValue())==null?void 0:O.hdr)&&(s.hdr=!0);let V=(X=t.info.currentAudioStream$.getValue())==null?void 0:X.language;return V&&(s.audioLanguage=V),s},ph=(t,e)=>Xs(t,e,"mp4"),fh=t=>!t.type,mh=t=>!!t.type,vh=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},Nc=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=await fetch(e,{signal:this.destroyController.signal});if(i.ok)return await i.text();throw i}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var Ri=require("@vkontakte/videoplayer-shared/es2018"),KE=require("@vkontakte/videoplayer-core/es2018"),gh="vk_player_prefer_traffic_saving_enabled",hh="vk_player_preferred_volume",_h="vk_player_prefer_volume_mute",Rp="vk_player_preferred_quality",Lp="vk_player_preferred_default_quality_settings",Vp="vk_player_preferred_quality_settings_by_video",bh="vk_player_preferred_stream_language",$h="vk_player_preferred_rate",yh="vk_player_preferred_autoplay_next",xh=t=>t>1?1:t<0?0:t,Np=t=>Ri.safeStorage.set(hh,xh(t).toString(10)),Bc=()=>{let t=Ri.safeStorage.get(hh);return(0,Ri.isNullable)(t)?void 0:xh(parseFloat(t))},Dp=(t,e)=>Ri.safeStorage.set(Rp,JSON.stringify({videoId:t,value:e})),od=()=>Ri.safeStorage.remove(Rp),Bp=t=>{let e=Ri.safeStorage.get(Rp);if((0,Ri.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){od();return}return o},Op=(t,e)=>{e?Ri.safeStorage.set(t,"true"):Ri.safeStorage.remove(t)},Hp=t=>Ri.safeStorage.get(t)==="true",Fp=t=>Op(_h,t),wh=()=>Hp(_h),id=t=>Op(gh,t),Up=()=>Hp(gh),Sh=()=>Ri.safeStorage.get(bh),zp=t=>Ri.safeStorage.set(bh,t),Ch=t=>Ri.safeStorage.set($h,JSON.stringify({rate:t})),Th=()=>{let t=Ri.safeStorage.get($h);if((0,Ri.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},Ih=t=>Op(yh,t),kh=()=>Hp(yh),S_=()=>{let t=m=>{Ri.safeStorage.set(Lp,JSON.stringify(m))},e=()=>{try{let m=Ri.safeStorage.get(Lp);return m?JSON.parse(m):null}catch(m){return null}},i=()=>{try{let m=Ri.safeStorage.get(Vp);return m?JSON.parse(m):null}catch(m){return null}},o=m=>{Ri.safeStorage.set(Vp,JSON.stringify(m))},n=m=>{p(m);let $=m?i():null;if($&&($==null?void 0:$.videoId)===m)return{...$,appliesTo:"to-video"};$&&a();let u=e();return u?{...u,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{Ri.safeStorage.remove(Vp)},s=()=>{Ri.safeStorage.remove(Lp)},d=(m,$="as-default")=>{m.type==="exact_quality"?o(m):$==="as-default"?t(m):o(m)},l=m=>{let $=n(m);if($){switch($.type){case"traffic_saving":id(!0);break;case"exact_quality":Dp(m,$.quality)}a(),s()}},p=m=>{let $=Bp(m);if($){o({type:"exact_quality",videoId:m,quality:$});return}Up()&&t({type:"traffic_saving",videoId:m}),id(!1),od()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:Eh,migrateSettingsToLegacyWay:Ph,savePreferredQualitySettings:Oc,savePreferredDefaultQualitySettings:QE,removePreferredQualitySettingsByVideo:GE,getPreferredDefaultQualitySettings:Hc}=S_();var Qm=require("@vkontakte/videoplayer-core/es2018");var C_=be('<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=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=C_();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(2),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i})),b(t,o)}var Ya=require("@vkontakte/videoplayer-shared/es2018");var T_={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_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",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",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}",aria_open_settings:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432\u0438\u0434\u0435\u043E\u043F\u043B\u0435\u0435\u0440\u0430",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_disable:"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_enable:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0430",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",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_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",aria_label_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",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_enable:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\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_debug_overlay_disable:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\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_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_submenu_traffic_saving_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",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,
|
|
47
|
+
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 At=null;function Hl(t){At=t}var dn=null;function Fl(t){dn=t}function qa(t){return mp("getContext").get(t)}function Wa(t,e){let i=mp("setContext");return ke&&St(()=>up(e,null,!0)),i.set(t,e),e}function zl(){return mp("getAllContexts")}function U(t,e=!1,i){var o=At={p:At,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Vr&&!e&&(At.l={s:null,u:null,r1:[],r2:Wi(!1)}),cn(()=>{o.d=!0}),ke&&(At.function=i,dn=i)}function z(t){var s,d;let e=At;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=Et,o=Ft;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];no(a.effect),xo(a.reaction),Cn(a.fn)}}finally{no(i),xo(o)}}At=e.p,ke&&(dn=(d=(s=e.p)==null?void 0:s.function)!=null?d:null),e.m=!0}return t||{}}function Br(){return!Vr||At!==null&&At.l===null}function mp(t){var e;return At===null&&za(t),(e=At.c)!=null?e:At.c=new Map(V0(At)||void 0)}function V0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var R0=/\r/g;function vg(t){t=t.replace(R0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function gg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var B0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function hg(t){return B0.includes(t)}var N0=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var D0={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function _g(t){var e;return t=t.toLowerCase(),(e=D0[t])!=null?e:t}var Tw=[...N0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var O0=["touchstart","touchmove"];function bg(t){return O0.includes(t)}var H0=["textarea","script","style","title"];function $g(t){return H0.includes(t)}function vp(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var yg=new Map;function xg(t,e){var i=yg.get(t);i||(i=new Set,yg.set(t,i)),i.add(e)}function gp(t,e){if(e){let i=document.body;t.autofocus=!0,on(()=>{document.activeElement===i&&t.focus()})}}function ql(t){var e=Ft,i=Et;xo(null),no(null);try{return t()}finally{xo(e),no(i)}}var hp=new Set,kc=new Set;function zs(t){if(!Ye)return;t.onload&&t.removeAttribute("onload"),t.onerror&&t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function _p(t,e,i,o={}){function n(a){if(o.capture||Ka.call(e,a),!a.cancelBubble)return ql(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?on(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function kt(t,e,i,o,n){var a={capture:o,passive:n},s=_p(t,e,i,a);(e===document.body||e===window||e===document)&&cn(()=>{e.removeEventListener(t,s,a)})}function at(t){for(var e=0;e<t.length;e++)hp.add(t[e]);for(var i of kc)i(t)}function Ka(t){var I;var e=this,i=e.ownerDocument,o=t.type,n=((I=t.composedPath)==null?void 0:I.call(t))||[],a=n[0]||t.target,s=0,d=t.__root;if(d){var l=n.indexOf(d);if(l!==-1&&(e===document||e===window)){t.__root=e;return}var p=n.indexOf(e);if(p===-1)return;l<=p&&(s=l)}if(a=n[s]||t.target,a!==e){oo(t,"currentTarget",{configurable:!0,get(){return a||i}});var m=Ft,y=Et;xo(null),no(null);try{for(var u,$=[];a!==null;){var w=a.assignedSlot||a.parentNode||a.host||null;try{var b=a["__"+o];if(b!=null&&(!a.disabled||t.target===a))if(gr(b)){var[C,...T]=b;C.apply(a,[t,...T])}else b.call(a,t)}catch(M){u?$.push(M):u=M}if(t.cancelBubble||w===e||w===null)break;a=w}if(u){for(let M of $)queueMicrotask(()=>{throw M});throw u}}finally{t.__root=e,delete t.currentTarget,xo(m),no(y)}}}var U0;function wg(){U0=void 0}function Qa(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function Co(t,e){var i=Et;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function L(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,a=!t.startsWith("<!>");return()=>{if(Ye)return Co(ht,null),ht;n===void 0&&(n=Qa(a?t:"<!>"+t),i||(n=bi(n)));var s=o||Vl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=bi(s),l=s.lastChild;Co(d,l)}else Co(s,s);return s}}function ye(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,s;return()=>{if(Ye)return Co(ht,null),ht;if(!s){var d=Qa(a),l=bi(d);if(n)for(s=document.createDocumentFragment();bi(l);)s.appendChild(bi(l));else s=bi(l)}var p=s.cloneNode(!0);if(n){var m=bi(p),y=p.lastChild;Co(m,y)}else Co(p,p);return p}}function Nr(t=""){if(!Ye){var e=an(t+"");return Co(e,e),e}var i=ht;return i.nodeType!==3&&(i.before(i=an()),_i(i)),Co(i,i),i}function Oe(){if(Ye)return Co(ht,null),ht;var t=document.createDocumentFragment(),e=document.createComment(""),i=an();return t.append(e,i),Co(e,i),t}function _(t,e){if(Ye){Et.nodes_end=ht,Di();return}t!==null&&t.before(e)}var Wl=!0;function Ec(t){Wl=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 Jr(t,e){return Cg(t,e)}function $p(t,e){var s;gc(),e.intro=(s=e.intro)!=null?s:!1;let i=e.target,o=Ye,n=ht;try{for(var a=bi(i);a&&(a.nodeType!==8||a.data!==ds);)a=Ao(a);if(!a)throw Wr;so(!0),_i(a),Di();let d=Cg(t,{...e,anchor:a});if(ht===null||ht.nodeType!==8||ht.data!==Ls)throw Os(),Wr;return so(!1),d}catch(d){if(d===Wr)return e.recover===!1&&Lv(),gc(),Rl(i),so(!1),Jr(t,e);throw d}finally{so(o),_i(n),wg()}}var Ga=new Map;function Cg(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){gc();var d=new Set,l=y=>{for(var u=0;u<y.length;u++){var $=y[u];if(!d.has($)){d.add($);var w=bg($);e.addEventListener($,Ka,{passive:w});var b=Ga.get($);b===void 0?(document.addEventListener($,Ka,{passive:w}),Ga.set($,1)):Ga.set($,b+1)}}};l(El(hp)),kc.add(l);var p=void 0,m=pg(()=>{var y=i!=null?i:e.appendChild(an());return Ki(()=>{if(a){U({});var u=At;u.c=a}n&&(o.$$events=n),Ye&&Co(y,null),Wl=s,p=t(y,o)||{},Wl=!0,Ye&&(Et.nodes_end=ht),a&&z()}),()=>{var w;for(var u of d){e.removeEventListener(u,Ka);var $=Ga.get(u);--$===0?(document.removeEventListener(u,Ka),Ga.delete(u)):Ga.set(u,$)}kc.delete(l),y!==i&&((w=y.parentNode)==null||w.removeChild(y))}});return bp.set(p,m),p}var bp=new WeakMap;function qs(t,e){let i=bp.get(t);return i?(bp.delete(t),i(e)):(ke&&Yv(),Promise.resolve())}function B(t,e,[i,o]=[0,0]){Ye&&i===0&&Di();var n=t,a=null,s=null,d=Mi,l=i>0?65536:0,p=!1;let m=(u,$=!0)=>{p=!0,y($,u)},y=(u,$)=>{if(d===(d=u))return;let w=!1;if(Ye&&o!==-1){if(i===0){let C=n.data;C===ds?o=0:C===Ms?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let b=o>i;!!d===b&&(n=Da(),_i(n),so(!1),w=!0,o=-1)}d?(a?Xr(a):$&&(a=Ki(()=>$(n))),s&&Tn(s,()=>{s=null})):(s?Xr(s):$&&(s=Ki(()=>$(n,[i+1,o]))),a&&Tn(a,()=>{a=null})),w&&so(!0)};ao(()=>{p=!1,e(m),p||y(null,null)},l),Ye&&(n=ht)}function Ws(t,e,i){Ye&&Di();var o=t,n=Mi,a,s=Br()?Iv:Ma;ao(()=>{s(n,n=e())&&(a&&Tn(a),a=Ki(()=>i(o)))}),Ye&&(o=ht)}var ms=null;function wp(t){ms=t}function Kl(t,e){return e}function K0(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)Cc(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;Rl(l),l.append(i),o.clear(),fs(t,e[0].prev,e[a-1].next)}cp(n,()=>{for(var p=0;p<a;p++){var m=e[p];d||(o.delete(m.k),fs(t,m.prev,m.next)),ro(m.e,!d)}})}function Ci(t,e,i,o,n,a=null){var s=t,d={flags:e,items:new Map,first:null},l=(e&4)!==0;if(l){var p=t;s=Ye?_i(bi(p)):p.appendChild(an())}Ye&&Di();var m=null,y=!1,u=br(()=>{var $=i();return gr($)?$:$==null?[]:El($)});ao(()=>{var $=r(u),w=$.length;if(y&&w===0)return;y=w===0;let b=!1;if(Ye){var C=s.data===Ms;C!==(w===0)&&(s=Da(),_i(s),so(!1),b=!0)}if(Ye){for(var T=null,I,M=0;M<w;M++){if(ht.nodeType===8&&ht.data===Ls){s=ht,b=!0,so(!1);break}var P=$[M],k=o(P,M);I=kg(ht,d,T,null,P,k,M,n,e,i),d.items.set(k,I),T=I}w>0&&_i(Da())}Ye||Q0($,d,s,n,e,o,i),a!==null&&(w===0?m?Xr(m):m=Ki(()=>a(s)):m!==null&&Tn(m,()=>{m=null})),b&&so(!0),r(u)}),Ye&&(s=ht)}function Q0(t,e,i,o,n,a,s){var de,Ae,Me,ge;var d=(n&8)!==0,l=(n&3)!==0,p=t.length,m=e.items,y=e.first,u=y,$,w=null,b,C=[],T=[],I,M,P,k;if(d)for(k=0;k<p;k+=1)I=t[k],M=a(I,k),P=m.get(M),P!==void 0&&((de=P.a)==null||de.measure(),(b!=null?b:b=new Set).add(P));for(k=0;k<p;k+=1){if(I=t[k],M=a(I,k),P=m.get(M),P===void 0){var R=u?u.e.nodes_start:i;w=kg(R,e,w,w===null?e.first:w.next,I,M,k,o,n,s),m.set(M,w),C=[],T=[],u=w.next;continue}if(l&&G0(P,I,k,n),(P.e.f&8192)!==0&&(Xr(P.e),d&&((Ae=P.a)==null||Ae.unfix(),(b!=null?b:b=new Set).delete(P))),P!==u){if($!==void 0&&$.has(P)){if(C.length<T.length){var W=T[0],Y;w=W.prev;var F=C[0],Q=C[C.length-1];for(Y=0;Y<C.length;Y+=1)Tg(C[Y],W,i);for(Y=0;Y<T.length;Y+=1)$.delete(T[Y]);fs(e,F.prev,Q.next),fs(e,w,F),fs(e,Q,W),u=W,w=Q,k-=1,C=[],T=[]}else $.delete(P),Tg(P,u,i),fs(e,P.prev,P.next),fs(e,P,w===null?e.first:w.next),fs(e,w,P),w=P;continue}for(C=[],T=[];u!==null&&u.k!==M;)(u.e.f&8192)===0&&($!=null?$:$=new Set).add(u),T.push(u),u=u.next;if(u===null)continue;P=u}C.push(P),w=P,u=P.next}if(u!==null||$!==void 0){for(var oe=$===void 0?[]:El($);u!==null;)(u.e.f&8192)===0&&oe.push(u),u=u.next;var Z=oe.length;if(Z>0){var re=(n&4)!==0&&p===0?i:null;if(d){for(k=0;k<Z;k+=1)(Me=oe[k].a)==null||Me.measure();for(k=0;k<Z;k+=1)(ge=oe[k].a)==null||ge.fix()}K0(e,oe,re,m)}}d&&on(()=>{var se;if(b!==void 0)for(P of b)(se=P.a)==null||se.apply()}),Et.first=e.first&&e.first.e,Et.last=w&&w.e}function G0(t,e,i,o){(o&1)!==0&&Ra(t.v,e),(o&2)!==0?Ra(t.i,i):t.i=i}function kg(t,e,i,o,n,a,s,d,l,p){var m=ms,y=(l&1)!==0,u=(l&16)===0,$=y?u?jr(n):Wi(n):n,w=(l&2)===0?s:Wi(s);ke&&y&&($.debug=()=>{var C=typeof w=="number"?s:w.v;p()[C]});var b={i:w,v:$,k:a,a:null,e:null,prev:i,next:o};ms=b;try{return b.e=Ki(()=>d(t,$,w,p),Ye),b.e.prev=i&&i.e,b.e.next=o&&o.e,i===null?e.first=b:(i.next=b,i.e.next=b.e),o!==null&&(o.prev=b,o.e.prev=b.e),b}finally{ms=m}}function Tg(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,a=t.e.nodes_start;a!==o;){var s=Ao(a);n.before(a),a=s}}function fs(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function Y0(t,e,i){var a,s;if(!e||e===vg(String(i!=null?i:"")))return;let o,n=(a=t.__svelte_meta)==null?void 0:a.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(s=dn)!=null&&s[hi]&&(o=`in ${dn[hi]}`),Gv(vp(o))}function Ql(t,e,i,o,n){var a=t,s="",d;ao(()=>{var l;if(s===(s=(l=e())!=null?l:"")){Ye&&Di();return}d!==void 0&&(ro(d),d=void 0),s!==""&&(d=Ki(()=>{if(Ye){for(var p=ht.data,m=Di(),y=m;m!==null&&(m.nodeType!==8||m.data!=="");)y=m,m=Ao(m);if(m===null)throw Os(),Wr;ke&&!n&&Y0(m.parentNode,p,s),Co(ht,y),a=_i(m);return}var u=s+"";i?u=`<svg>${u}</svg>`:o&&(u=`<math>${u}</math>`);var $=Qa(u);if((i||o)&&($=bi($)),Co(bi($),$.lastChild),i||o)for(;bi($);)a.before(bi($));else a.before($)}))})}function ve(t,e,...i){var o=t,n=ie,a;ao(()=>{n!==(n=e())&&(a&&(ro(a),a=null),ke&&n==null&&Vv(),a=Ki(()=>n(o,...i)))},65536),Ye&&(o=ht)}function Ti(t,e,i){Ye&&Di();var o=t,n,a;ao(()=>{n!==(n=e())&&(a&&(Tn(a),a=null),n&&(a=Ki(()=>i(o,n))))},65536),Ye&&(o=ht)}function Ks(t,e,i,o,n,a){var w;let s=Ye;Ye&&Di();var d=ke&&a&&((w=At)==null?void 0:w.function[hi]),l,p,m=null;Ye&&ht.nodeType===1&&(m=ht,Di());var y=Ye?ht:t,u,$=ms;ao(()=>{let b=e()||null;var C=n?n():i||b==="svg"?Uu:null;if(b!==l){var T=ms;wp($),u&&(b===null?Tn(u,()=>{u=null,p=null}):b===p?Xr(u):(ro(u),Ec(!1))),b&&b!==p&&(u=Ki(()=>{if(m=Ye?m:C?document.createElementNS(C,b):document.createElement(b),ke&&a&&(m.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),Co(m,m),o){Ye&&$g(b)&&m.append(document.createComment(""));var I=Ye?bi(m):m.appendChild(an());Ye&&(I===null?so(!1):_i(I)),o(m,I)}Et.nodes_end=m,y.before(m)})),l=b,l&&(p=l),Ec(!0),wp(T)}},65536),s&&(so(!0),_i(y))}var Cp;function Eg(t){return Cp=t.target,new Sp(t)}var es,sr,Sp=class{constructor(e){ls(this,es);ls(this,sr);var a,s;var i=new Map,o=(d,l)=>{var p=jr(l);return i.set(d,p),p};let n=new Proxy({...e.props||{},$$events:{}},{get(d,l){var p;return r((p=i.get(l))!=null?p:o(l,Reflect.get(d,l)))},has(d,l){var p;return l===kl?!0:(r((p=i.get(l))!=null?p:o(l,Reflect.get(d,l))),Reflect.has(d,l))},set(d,l,p){var m;return D((m=i.get(l))!=null?m:o(l,p),p),Reflect.set(d,l,p)}});Aa(this,sr,(e.hydrate?$p:Jr)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(a=e.intro)!=null?a:!1,recover:e.recover})),(!((s=e==null?void 0:e.props)!=null&&s.$$host)||e.sync===!1)&&Fa(),Aa(this,es,n.$$events);for(let d of Object.keys(Ai(this,sr)))d==="$set"||d==="$destroy"||d==="$on"||oo(this,d,{get(){return Ai(this,sr)[d]},set(l){Ai(this,sr)[d]=l},enumerable:!0});Ai(this,sr).$set=d=>{Object.assign(n,d)},Ai(this,sr).$destroy=()=>{qs(Ai(this,sr))}}$set(e){Ai(this,sr).$set(e)}$on(e,i){Ai(this,es)[e]=Ai(this,es)[e]||[];let o=(...n)=>i.call(this,...n);return Ai(this,es)[e].push(o),()=>{Ai(this,es)[e]=Ai(this,es)[e].filter(n=>n!==o)}}$destroy(){Ai(this,sr).$destroy()}};es=new WeakMap,sr=new WeakMap;function K(t,e){on(()=>{var n,a,s;var i=t.getRootNode(),o=i.host?i:(s=(n=i.head)!=null?n:i.ownerDocument.head)!=null?s:(a=Cp)==null?void 0:a.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),ke&&xg(e.hash,d)}})}function Pg(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=Pg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Ag(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Pg(t))&&(o&&(o+=" "),o+=e);return o}function Gl(t){return typeof t=="object"?Ag(t):t!=null?t:""}var Mg=[...`
|
|
48
|
+
\r\f\xA0\v\uFEFF`];function Vg(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 a=n.length,s=0;(s=o.indexOf(n,s))>=0;){var d=s+a;(s===0||Mg.includes(o[s-1]))&&(d===o.length||Mg.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function Lg(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var a=t[n];a!=null&&a!==""&&(o+=" "+n+": "+a+i)}return o}function Tp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Rg(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 a=!1,s=0,d=!1,l=[];o&&l.push(...Object.keys(o).map(Tp)),n&&l.push(...Object.keys(n).map(Tp));var p=0,m=-1;let b=t.length;for(var y=0;y<b;y++){var u=t[y];if(d?u==="/"&&t[y-1]==="*"&&(d=!1):a?a===u&&(a=!1):u==="/"&&t[y+1]==="*"?d=!0:u==='"'||u==="'"?a=u:u==="("?s++:u===")"&&s--,!d&&a===!1&&s===0){if(u===":"&&m===-1)m=y;else if(u===";"||y===b-1){if(m!==-1){var $=Tp(t.substring(p,m).trim());if(!l.includes($)){u!==";"&&y++;var w=t.substring(p,y).trim();i+=" "+w+";"}}p=y+1,m=-1}}}}return o&&(i+=Lg(o)),n&&(i+=Lg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function J(t,e,i,o,n,a){var s=t.__className;if(Ye||s!==i){var d=Vg(i,o,a);(!Ye||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&n!==a)for(var l in a){var p=!!a[l];(n==null||p!==!!n[l])&&t.classList.toggle(l,p)}return a}function Ip(t,e={},i,o){for(var n in i){var a=i[n];e[n]!==a&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,a,o))}}function st(t,e,i,o){var n=t.__style;if(Ye||n!==e){var a=Rg(e,o);(!Ye||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(Ip(t,i==null?void 0:i[0],o[0]),Ip(t,i==null?void 0:i[1],o[1],"important")):Ip(t,i,o));return o}var Ya=Symbol("class"),ja=Symbol("style"),Dg=Symbol("is custom element"),Og=Symbol("is html");function Hg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Be(t,e,i,o){var n=Fg(t);if(Ye&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||i_(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[xv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Ug(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Te(t,e,i,o,n=!1){var P;var a=Fg(t),s=a[Dg],d=!a[Og];let l=Ye&&s;l&&so(!1);var p=e||{},m=t.tagName==="OPTION";for(var y in e)y in i||(i[y]=null);i.class?i.class=Gl(i.class):(o||i[Ya])&&(i.class=null),i[ja]&&((P=i.style)!=null||(i.style=null));var u=Ug(t);for(let k in i){let R=i[k];if(m&&k==="value"&&R==null){t.value=t.__value="",p[k]=R;continue}if(k==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";J(t,$,R,o,e==null?void 0:e[Ya],i[Ya]),p[k]=R,p[Ya]=i[Ya];continue}if(k==="style"){st(t,R,e==null?void 0:e[ja],i[ja]),p[k]=R,p[ja]=i[ja];continue}var w=p[k];if(R!==w){p[k]=R;var b=k[0]+k[1];if(b!=="$$")if(b==="on"){let W={},Y="$$"+k,F=k.slice(2);var C=hg(F);if(gg(F)&&(F=F.slice(0,-7),W.capture=!0),!C&&w){if(R!=null)continue;t.removeEventListener(F,p[Y],W),p[Y]=null}if(R!=null)if(C)t[`__${F}`]=R,at([F]);else{let Q=function(oe){p[k].call(this,oe)};var M=Q;p[Y]=_p(F,t,Q,W)}else C&&(t[`__${F}`]=void 0)}else if(k==="style")Be(t,k,R);else if(k==="autofocus")gp(t,!!R);else if(!s&&(k==="__value"||k==="value"&&R!=null))t.value=t.__value=R;else if(k==="selected"&&m)Hg(t,R);else{var T=k;d||(T=_g(T));var I=T==="defaultValue"||T==="defaultChecked";if(R==null&&!s&&!I)if(a[k]=null,T==="value"||T==="checked"){let W=t,Y=e===void 0;if(T==="value"){let F=W.defaultValue;W.removeAttribute(T),W.defaultValue=F,W.value=W.__value=Y?F:null}else{let F=W.defaultChecked;W.removeAttribute(T),W.defaultChecked=F,W.checked=Y?F:!1}}else t.removeAttribute(k);else I||u.includes(T)&&(s||typeof R!="string")?t[T]=R:typeof R!="function"&&Be(t,T,R,n)}}}return l&&so(!0),p}function Fg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Dg]:t.nodeName.includes("-"),[Og]:t.namespaceURI===_v}}var Bg=new Map;function Ug(t){var e=Bg.get(t.nodeName);if(e)return e;Bg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=cc(o);for(var a in i)i[a].set&&e.push(a);o=Qr(o)}return e}function i_(t,e,i){var o;ke&&(e==="srcset"&&o_(t,i)||kp((o=t.getAttribute(e))!=null?o:"",i)||Qv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function kp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Ng(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function o_(t,e){var i=Ng(t.srcset),o=Ng(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(kp(i[s][0],n)||kp(n,i[s][0])))}var n_=dc?()=>performance.now():()=>Date.now(),yr={tick:t=>(dc?requestAnimationFrame:ie)(t),now:()=>n_(),tasks:new Set};function zg(){let t=yr.now();yr.tasks.forEach(e=>{e.c(t)||(yr.tasks.delete(e),e.f())}),yr.tasks.size!==0&&yr.tick(zg)}function qg(t){let e;return yr.tasks.size===0&&yr.tick(zg),{promise:new Promise(i=>{yr.tasks.add(e={c:t,f:i})}),abort(){yr.tasks.delete(e)}}}function Pc(t,e){ql(()=>{t.dispatchEvent(new CustomEvent(e))})}function l_(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 Wg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=l_(n.trim());e[s]=a.trim()}return e}var d_=t=>t;function Pp(t,e,i,o){var M;var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",p,m=e.inert,y=e.style.overflow,u,$;function w(){var R;var P=Ft,k=Et;xo(null),no(null);try{return p!=null?p:p=i()(e,(R=o==null?void 0:o())!=null?R:{},{direction:l})}finally{xo(P),no(k)}}var b={is_global:d,in(){var P;if(e.inert=m,!n){$==null||$.abort(),(P=$==null?void 0:$.reset)==null||P.call($);return}a||u==null||u.abort(),Pc(e,"introstart"),u=Ep(e,w(),$,1,()=>{Pc(e,"introend"),u==null||u.abort(),u=p=void 0,e.style.overflow=y})},out(P){if(!a){P==null||P(),p=void 0;return}e.inert=!0,Pc(e,"outrostart"),$=Ep(e,w(),u,0,()=>{Pc(e,"outroend"),P==null||P()})},stop:()=>{u==null||u.abort(),$==null||$.abort()}},C=Et;if(((M=C.transitions)!=null?M:C.transitions=[]).push(b),n&&Wl){var T=d;if(!T){for(var I=C.parent;I&&(I.f&65536)!==0;)for(;(I=I.parent)&&(I.f&16)===0;);T=!I||(I.f&32768)!==0}T&&Cn(()=>{St(()=>b.in())})}}function Ep(t,e,i,o,n){var a=o===1;if(cs(e)){var s,d=!1;return on(()=>{if(!d){var C=e({direction:a?"in":"out"});s=Ep(t,C,i,o,n)}}),{abort:()=>{d=!0,s==null||s.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:ie,deactivate:ie,reset:ie,t:()=>o};let{delay:l=0,css:p,tick:m,easing:y=d_}=e;var u=[];if(a&&i===void 0&&(m&&m(0,1),p)){var $=Wg(p(0,1));u.push($,$)}var w=()=>1-o,b=t.animate(u,{duration:l});return b.onfinish=()=>{var F;var C=(F=i==null?void 0:i.t())!=null?F:1-o;i==null||i.abort();var T=o-C,I=e.duration*Math.abs(T),M=[];if(I>0){var P=!1;if(p)for(var k=Math.ceil(I/16.666666666666668),R=0;R<=k;R+=1){var W=C+T*y(R/k),Y=Wg(p(W,1-W));M.push(Y),P||(P=Y.overflow==="hidden")}P&&(t.style.overflow="hidden"),w=()=>{var Q=b.currentTime;return C+T*y(Q/I)},m&&qg(()=>{if(b.playState!=="running")return!1;var Q=w();return m(Q,1-Q),!0})}b=t.animate(M,{duration:I,fill:"forwards"}),b.onfinish=()=>{w=()=>o,m==null||m(o,1-o),n()}},{abort:()=>{b&&(b.cancel(),b.effect=null,b.onfinish=ie)},deactivate:()=>{n=ie},reset:()=>{o===0&&(m==null||m(1,0))},t:()=>w()}}var vs,Za,Yl,Mc,Kg,Lc=class Lc{constructor(e){ls(this,Mc);ls(this,vs,new WeakMap);ls(this,Za);ls(this,Yl);Aa(this,Yl,e)}observe(e,i){var o=Ai(this,vs).get(e)||new Set;return o.add(i),Ai(this,vs).set(e,o),gv(this,Mc,Kg).call(this).observe(e,Ai(this,Yl)),()=>{var n=Ai(this,vs).get(e);n.delete(i),n.size===0&&(Ai(this,vs).delete(e),Ai(this,Za).unobserve(e))}}};vs=new WeakMap,Za=new WeakMap,Yl=new WeakMap,Mc=new WeakSet,Kg=function(){var e;return(e=Ai(this,Za))!=null?e:Aa(this,Za,new ResizeObserver(i=>{for(var o of i){Lc.entries.set(o.target,o);for(var n of Ai(this,vs).get(o.target)||[])n(o)}}))},Bn(Lc,"entries",new WeakMap);var Ap=Lc;var p_=new Ap({box:"border-box"});function Dr(t,e,i){var o=p_.observe(t,()=>i(t[e]));Cn(()=>(St(()=>i(t[e])),o))}function Qg(t,e){return t===e||(t==null?void 0:t[Ho])===e}function gt(t={},e,i,o){return Cn(()=>{var n,a;return So(()=>{n=a,a=(o==null?void 0:o())||[],St(()=>{t!==i(...a)&&(e(t,...a),n&&Qg(i(...n),t)&&e(null,...n))})}),()=>{on(()=>{a&&Qg(i(...a),t)&&e(null,...a)})}}),t}function xr(t=!1){let e=At,i=e.l.u;if(!i)return;let o=()=>xc(e.s);if(t){let n=0,a={},s=v(()=>{let d=!1,l=e.s;for(let p in l)l[p]!==a[p]&&(a[p]=l[p],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&Ua(()=>{Gg(e,o),us(i.b)}),Fe(()=>{let n=St(()=>i.m.map(Cv));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&Fe(()=>{Gg(e,o),us(i.a)})}function Gg(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(ke){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Nv(e)},set:o=>{i=o}})}};m_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var m_;function Ut(t){At===null&&za("onMount"),Vr&&At.l!==null?f_(At).m.push(t):Fe(()=>{let e=St(t);if(typeof e=="function")return e})}function In(t){At===null&&za("onDestroy"),Ut(()=>()=>St(t))}function f_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function jl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ie;let o=St(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Xa=[];function ar(t,e){return{subscribe:ce(t,e).subscribe}}function ce(t,e=ie){let i=null,o=new Set;function n(d){if(Ma(t,d)&&(t=d,i)){let l=!Xa.length;for(let p of o)p[1](),Xa.push(p,t);if(l){for(let p=0;p<Xa.length;p+=2)Xa[p][0](Xa[p+1]);Xa.length=0}}}function a(d){n(d(t))}function s(d,l=ie){let p=[d,l];return o.add(p),o.size===1&&(i=e(n,a)||ie),d(t),()=>{o.delete(p),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function $i(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let a=e.length<2;return ar(i,(s,d)=>{let l=!1,p=[],m=0,y=ie,u=()=>{if(m)return;y();let w=e(o?p[0]:p,s,d);a?s(w):y=typeof w=="function"?w:ie},$=n.map((w,b)=>jl(w,C=>{p[b]=C,m&=~(1<<b),l&&u()},()=>{m|=1<<b}));return l=!0,u(),function(){us($),y(),l=!1}})}function Se(t){let e;return jl(t,i=>e=i)(),e}var Vc=!1,Mp=Symbol();function S(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:jr(void 0),unsubscribe:ie};if(o.store!==t&&!(Mp in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=ie;else{var n=!0;o.unsubscribe=jl(t,s=>{n?o.source.v=s:D(o.source,s)}),n=!1}return t&&Mp in i?Se(t):r(o.source)}function Ne(){let t={};function e(){cn(()=>{for(var i in t)t[i].unsubscribe();oo(t,Mp,{enumerable:!1,value:!0})})}return[t,e]}function Lp(t){var e=Vc;try{return Vc=!1,[t(),Vc]}finally{Vc=e}}var y_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return ke&&Bv(`${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 Pe(t,e,i){return new Proxy(ke?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},y_)}var x_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(cs(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];cs(n)&&(n=n());let a=Nn(n,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(cs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Nn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Ho||e===kl)return!1;for(let i of t.props)if(cs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){cs(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function ts(...t){return new Proxy({props:t},x_)}function Yg(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function f(t,e,i,o){var W,Y;var n=(i&1)!==0,a=!Vr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,p;s?[p,l]=Lp(()=>t[e]):p=t[e];var m=Ho in t||kl in t,y=s&&((Y=(W=Nn(t,e))==null?void 0:W.set)!=null?Y:m&&e in t&&(F=>t[e]=F))||void 0,u=o,$=!0,w=!1,b=()=>(w=!0,$&&($=!1,d?u=St(o):u=o),u);p===void 0&&o!==void 0&&(y&&a&&Rv(e),p=b(),y&&y(p));var C;if(a)C=()=>{var F=t[e];return F===void 0?b():($=!0,w=!1,F)};else{var T=(n?v:br)(()=>t[e]);T.f|=131072,C=()=>{var F=r(T);return F!==void 0&&(u=void 0),F===void 0?u:F}}if((i&4)===0)return C;if(y){var I=t.$$legacy;return function(F,Q){return arguments.length>0?((!a||!Q||I||l)&&y(Q?C():F),F):C()}}var M=!1,P=!1,k=jr(p),R=v(()=>{var F=C(),Q=r(k);return M?(M=!1,P=!0,Q):(P=!1,k.v=F)});return s&&r(R),n||(R.equals=La),function(F,Q){if(Ml!==null&&(M=P,C(),r(k)),arguments.length>0){let oe=Q?r(R):a&&s?pe(F):F;if(!R.equals(oe)){if(M=!0,D(k,oe),w&&u!==void 0&&(u=oe),Yg(R))return F;St(()=>r(R))}return F}return Yg(R)?R.v:r(R)}}var w_;typeof HTMLElement=="function"&&(w_=class extends HTMLElement{constructor(e,i,o){super();Bn(this,"$$ctor");Bn(this,"$$s");Bn(this,"$$c");Bn(this,"$$cn",!1);Bn(this,"$$d",{});Bn(this,"$$r",!1);Bn(this,"$$p_d",{});Bn(this,"$$l",{});Bn(this,"$$l_u",new Map);Bn(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(a){return s=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),_(s,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=S_(this);for(let a of this.$$s)a in n&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),o.default=!0):o[a]=i(a));for(let a of this.attributes){let s=this.$$g_p(a.name);s in this.$$d||(this.$$d[s]=Vp(s,a.value,this.$$p_d,"toProp"))}for(let a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=Eg({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=Sc(()=>{So(()=>{var a;this.$$r=!0;for(let s of zu(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=Vp(s,this.$$d[s],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,d)}this.$$r=!1})});for(let a in this.$$l)for(let s of this.$$l[a]){let d=this.$$c.$on(a,s);this.$$l_u.set(s,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Vp(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 zu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Vp(t,e,i,o){var a;let n=(a=i[t])==null?void 0:a.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function S_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var jg="5";var Zg,Xg,Jg;typeof window!="undefined"&&((Jg=(Xg=(Zg=window.__svelte)!=null?Zg:window.__svelte={}).v)!=null?Jg:Xg.v=new Set).add(jg);var wu=require("@vkontakte/videoplayer-core/es2018"),UQ=require("@vkontakte/videoplayer-core/es2018"),xa=require("@vkontakte/videoplayer-shared/es2018"),j1=require("@vkontakte/videoplayer-statistics/es2018");var Qs=require("@vkontakte/videoplayer-shared/es2018");var T_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:Qs.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Qs.VideoQuality.Q_480P,highQualityLimit:Qs.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,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,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},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}},eh=t=>(0,Qs.fillWithDefault)(t,T_),th=t=>Wa("ui-config",t),zt=()=>qa("ui-config");var Zl="vk_player_debug_panel_opened";var ih="videoplayer",oh="videoplayer";var Or={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},nh=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),rh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),sh=new Set(["ShiftRight","ShiftLeft"]);var ah=["TIMELINE"],Xl=[...ah,"GRAPH_BUTTON"],Rp=[...ah,"PLAY_BUTTON"],Jl=[...Xl,"PLAY_BUTTON"];var wr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(wr||{}),Ys={xs:0,s:1,m:2,l:3,xl:4};var ed=require("@vkontakte/videoplayer-shared/es2018"),lh=require("@vkontakte/videoplayer-core/es2018"),dh=require("@vkontakte/videoplayer-statistics/es2018");var Rc="prod",js="1.1.64-dev.dc6a30a0.0";var Zs=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var ch=Symbol("storeContext"),uh=Symbol("microStoresContext"),ph=(t,e)=>{Wa(ch,t),Wa(uh,e),Rc==="dev"&&(window.app={store:t,microStores:e})},Ce=()=>{let t=qa(ch);return(0,ed.assertNonNullable)(t,"Store context is empty!"),t},lo=()=>{let t=qa(uh);return(0,ed.assertNonNullable)(t,"MicroStores context is empty!"),t},Xt=(t,e)=>Nc(t,t.getValue(),e),Nc=(t,e,i)=>ar(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),fh=(t,e,i,o)=>{var P,k,R,W,Y,F;let n=t.info,{width:a,height:s}=Se(i.ui.playerSize),d=(k=(P=n.throughputEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?k:0,l=(W=(R=n.rttEstimation$.getValue())==null?void 0:R.toFixed(0))!=null?W:0,p=n.isAutoQualityEnabled$.getValue()?"auto":"manual",m=`${js} (core: ${lh.VERSION}, stat: ${dh.VERSION}, shared: ${ed.VERSION})`,y=Se(i.state.errorLog$),u=y.length?`
|
|
49
|
+
`+y.map((Q,oe)=>{var Ae;let Z=`${oe}) Type: ${Q.id}
|
|
50
|
+
`,re=`Message: ${Q.message} (${Q.thrown})
|
|
51
|
+
`,de=`Trace: ${(Ae=Q.thrown)==null?void 0:Ae.stack}
|
|
52
|
+
`;return Z+re+de}).join(`
|
|
53
|
+
`):void 0,$=i.state.isAudioDisabled?"disabled":Se(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),b=t.info.currentAudioStream$.getValue(),C=[];w&&C.push(`Video: ${(Y=w==null?void 0:w.codec)!=null?Y:""}`+(w!=null&&w.hdr?" (HDR)":"")),b&&C.push(`Audio: ${(F=b==null?void 0:b.codec)!=null?F:""}`+(b!=null&&b.language?` (${b.language})`:""));let T=n.currentQuality$.getValue(),I="";if(T){let Q=n.availableQualitiesFps$.getValue()[T];I=Q?`${Q}fps`:""}let M={Version:m,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:Se(i.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${d}Kbps @ ${l}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:C.join(", "),Quality:`${p} ${T} ${I}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:$,Position:`${Se(i.state.positionExact$)}s`,State:`${Se(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${a}x${s}`,URL:window.location.href,Errors:u};return Object.entries(M).filter(([Q,oe])=>oe!==void 0).map(([Q,oe])=>`${Q}: ${oe}`).join(`
|
|
54
|
+
`)},mh=(t,e,i)=>{var W,Y,F,Q;let o=t.info,{width:n,height:a}=Se(i.ui.playerSize),s={version:js,viewport:`${n}x${a}`,volume:Math.round(Se(i.state.volume$)*100)};s.id=i.videoId,o.currentFormat$.getValue()&&(s.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(s.cdn=o.hostname$.getValue());let p=o.intrinsicVideoSize$.getValue();p&&(s.videoSize=`${p.width}x${p.height}`);let m=o.currentBuffer$.getValue(),y=o.isLive$.getValue(),u=o.liveBufferTime$.getValue();m&&(y&&u?s.buffer=m.end-u:s.buffer=Math.max(m.end-Se(i.state.positionExact$),0));let $=o.throughputEstimation$.getValue();$&&(s.speed=$);let w=o.videoBitrate$.getValue();w&&(s.bitrate=w);let b=o.liveLatency$.getValue();b&&(s.liveLatency=b);let C=o.currentVideoSegmentLength$.getValue();C&&(s.currentVideoSegmentLength=C);let T=o.currentAudioSegmentLength$.getValue();T&&(s.currentAudioSegmentLength=T);let I=Se(i.vsid);typeof I=="string"&&(s.vsid=I);let M=(W=t.info.currentVideoStream$.getValue())==null?void 0:W.codec;M&&(s.videoCodec=M);let P=(Y=t.info.currentAudioStream$.getValue())==null?void 0:Y.codec;P&&(s.audioCodec=P),((F=t.info.currentVideoStream$.getValue())==null?void 0:F.hdr)&&(s.hdr=!0);let R=(Q=t.info.currentAudioStream$.getValue())==null?void 0:Q.language;return R&&(s.audioLanguage=R),s},vh=(t,e)=>Zs(t,e,"mp4"),gh=t=>!t.type,hh=t=>!!t.type,_h=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},Bc=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=await fetch(e,{signal:this.destroyController.signal});if(i.ok)return await i.text();throw i}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var Li=require("@vkontakte/videoplayer-shared/es2018"),YE=require("@vkontakte/videoplayer-core/es2018"),bh="vk_player_prefer_traffic_saving_enabled",$h="vk_player_preferred_volume",yh="vk_player_prefer_volume_mute",Dp="vk_player_preferred_quality",Bp="vk_player_preferred_default_quality_settings",Np="vk_player_preferred_quality_settings_by_video",xh="vk_player_preferred_stream_language",wh="vk_player_preferred_rate",Sh="vk_player_preferred_autoplay_next",Ch=t=>t>1?1:t<0?0:t,Op=t=>Li.safeStorage.set($h,Ch(t).toString(10)),Dc=()=>{let t=Li.safeStorage.get($h);return(0,Li.isNullable)(t)?void 0:Ch(parseFloat(t))},Hp=(t,e)=>Li.safeStorage.set(Dp,JSON.stringify({videoId:t,value:e})),id=()=>Li.safeStorage.remove(Dp),Fp=t=>{let e=Li.safeStorage.get(Dp);if((0,Li.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){id();return}return o},Up=(t,e)=>{e?Li.safeStorage.set(t,"true"):Li.safeStorage.remove(t)},zp=t=>Li.safeStorage.get(t)==="true",qp=t=>Up(yh,t),Th=()=>zp(yh),td=t=>Up(bh,t),Wp=()=>zp(bh),Ih=()=>Li.safeStorage.get(xh),Kp=t=>Li.safeStorage.set(xh,t),kh=t=>Li.safeStorage.set(wh,JSON.stringify({rate:t})),Eh=()=>{let t=Li.safeStorage.get(wh);if((0,Li.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},Ph=t=>Up(Sh,t),Ah=()=>zp(Sh),I_=()=>{let t=m=>{Li.safeStorage.set(Bp,JSON.stringify(m))},e=()=>{try{let m=Li.safeStorage.get(Bp);return m?JSON.parse(m):null}catch(m){return null}},i=()=>{try{let m=Li.safeStorage.get(Np);return m?JSON.parse(m):null}catch(m){return null}},o=m=>{Li.safeStorage.set(Np,JSON.stringify(m))},n=m=>{p(m);let y=m?i():null;if(y&&(y==null?void 0:y.videoId)===m)return{...y,appliesTo:"to-video"};y&&a();let u=e();return u?{...u,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{Li.safeStorage.remove(Np)},s=()=>{Li.safeStorage.remove(Bp)},d=(m,y="as-default")=>{m.type==="exact_quality"?o(m):y==="as-default"?t(m):o(m)},l=m=>{let y=n(m);if(y){switch(y.type){case"traffic_saving":td(!0);break;case"exact_quality":Hp(m,y.quality)}a(),s()}},p=m=>{let y=Fp(m);if(y){o({type:"exact_quality",videoId:m,quality:y});return}Wp()&&t({type:"traffic_saving",videoId:m}),td(!1),id()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:Mh,migrateSettingsToLegacyWay:Lh,savePreferredQualitySettings:Oc,savePreferredDefaultQualitySettings:jE,removePreferredQualitySettingsByVideo:ZE,getPreferredDefaultQualitySettings:Hc}=I_();var jm=require("@vkontakte/videoplayer-core/es2018");var k_=ye('<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 od(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=k_();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i})),_(t,o)}var Ja=require("@vkontakte/videoplayer-shared/es2018");var E_={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_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",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",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_on:"\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_volume:"\u0417\u0432\u0443\u043A",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",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,
|
|
55
55
|
\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 -
|
|
56
|
-
\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`},
|
|
56
|
+
\u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0430 \xAB\u0410\u0432\u0442\u043E\xBB`},Vh=E_;var P_={mobile_unmute:"Unmute",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_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_on:"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_volume:"Volume",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",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,
|
|
57
57
|
so\xA0the\xA0quality was changed to\xA0Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
|
|
58
|
-
Try switching the\xA0quality to\xA0Auto.`},
|
|
59
|
-
`),o,n;for(let a=0;a<i.length;++a){if(o=
|
|
60
|
-
`).filter(i=>!!i)[0]}function V_(t){try{let e=L_(t);if(e)return e}catch(e){}return{value:Vh(t),type:t&&t.name,stacktrace:{frames:[]}}}function R_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Uc=class{constructor(e){if(e&&e.dsn){let i=M_.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),a=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(a?"/"+a:"")+"/api/"+n.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[V_(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(A_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:R_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Rh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function N_(){return window}var zc=class t extends Uc{constructor(e,i=N_()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=p=>p,beforeBreadcrumb:a=p=>p,blacklistUrls:s=[],ignoreErrors:d=[],release:l=void 0}=this.options||{};this.plugins=o.map(p=>new p(this)),this.beforeSend=n,this.beforeBreadcrumb=a,this.blacklistUrls=s,this.ignoreErrors=d,this.release=l}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new t({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send({...this.getRequestBlank(),message:e,level:i})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>Rh(i,o))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>Rh(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],a=Array.isArray(n)?n:null,s=e[o],d=Array.isArray(s)?s:null;return{...i,[o]:a||d?[...a||[],...d||[]]:{...typeof n!="string"?n:{},...typeof s!="string"?s:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};var Js=require("@vkontakte/videoplayer-shared/es2018");var qc=null,ea=class{constructor(e,i,o={}){!qc&&e.dsn&&(this.sentryClient=new zc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new Js.Subscription,this.options=e,this.context=o,qc=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),qc=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:a,options:s}=this,{sampleRate:d=0,whiteErrorIdList:l,whiteErrorCategoryList:p=[],blackErrorIdList:m,blackErrorCategoryList:$}=s,{errorType:u,category:_}=i;if((0,Js.isNonNullable)(_)&&$.includes(_)||(0,Js.isNonNullable)(u)&&m.includes(u))return;if(Math.random()<=d||(0,Js.isNonNullable)(_)&&p.includes(_)||(0,Js.isNonNullable)(u)&&l.includes(u)){Object.keys(i).length&&n.setTags({version:this.version,...i}),(Object.keys(a).length||Object.keys(o).length)&&n.setExtras({...a,...o});try{u&&n.captureMessage(u,i.fatal?Za.fatal:Za.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return qc}};var Fr=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(Fr||{});var Wc=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.reject()},Kc=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),Nh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},rd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},gs=()=>!!rd(),Qc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Gc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Dh=t=>{let e=window.screen;return(async n=>e.orientation?e.orientation.lock(n):e.mozLockOrientation?e.mozLockOrientation(n):e.msLockOrientation?e.msLockOrientation(n):Promise.reject())(((n={width:0,height:0})=>n.width<=n.height?"portrait":"landscape")(t))};var Qp=require("@vkontakte/videoplayer-core/es2018"),Bh=()=>({title:F("hotkey_map_modal_title"),closeBtnText:F("hotkey_map_modal_close_btn_text"),groups:[{title:F("hotkey_map_group_title_common"),items:[{description:F("hotkey_map_item_mute_description"),value:F("hotkey_map_item_mute_value")},{description:F("hotkey_map_item_volume_up_description"),value:F("hotkey_map_item_volume_up_value")},{description:F("hotkey_map_item_volume_down_description"),value:F("hotkey_map_item_volume_down_value")},{description:F("hotkey_map_item_pip_description"),value:F("hotkey_map_item_pip_value")},{description:F("hotkey_map_item_full_screen_description"),value:F("hotkey_map_item_full_screen_value")},{description:F("hotkey_map_item_show_context_menu_description"),value:F("hotkey_map_item_show_context_menu_value")},{description:F("hotkey_map_item_show_hotkey_map_description"),value:F("hotkey_map_item_show_hotkey_map_value")}]},{title:F("hotkey_map_group_title_playback"),items:[{description:F("hotkey_map_item_play_toggle_description"),value:F("hotkey_map_item_play_toggle_value")},{description:F("hotkey_map_item_seek_backward_description"),value:F("hotkey_map_item_seek_backward_value")},{description:F("hotkey_map_item_seek_forward_description"),value:F("hotkey_map_item_seek_forward_value")},{description:F("hotkey_map_item_fast_seek_backward_description"),value:F("hotkey_map_item_fast_seek_backward_value")},{description:F("hotkey_map_item_fast_seek_forward_description"),value:F("hotkey_map_item_fast_seek_forward_value")},{description:F("hotkey_map_item_rate_down_description"),value:F("hotkey_map_item_rate_down_value")},{description:F("hotkey_map_item_rate_up_description"),value:F("hotkey_map_item_rate_up_value")},{description:F("hotkey_map_item_prev_frame_description"),value:F("hotkey_map_item_prev_frame_value")},{description:F("hotkey_map_item_next_frame_description"),value:F("hotkey_map_item_next_frame_value")},{description:F("hotkey_map_item_jump_seek_description"),value:F("hotkey_map_item_jump_seek_value")},{description:F("hotkey_map_item_next_video_description"),value:F("hotkey_map_item_next_video_value")},{description:F("hotkey_map_item_prev_video_description"),value:F("hotkey_map_item_prev_video_value")}]},{title:F("hotkey_map_group_title_subtitles"),items:[{description:F("hotkey_map_item_subtitles_toggle_description"),value:F("hotkey_map_item_subtitles_toggle_value")}]},{title:F("hotkey_map_group_title_episodes"),items:[{description:F("hotkey_map_item_prev_episode_description"),value:Qp.clientChecker.device.isApple?F("hotkey_map_item_prev_episode_mac_value"):F("hotkey_map_item_prev_episode_pc_value")},{description:F("hotkey_map_item_next_episode_description"),value:Qp.clientChecker.device.isApple?F("hotkey_map_item_next_episode_mac_value"):F("hotkey_map_item_next_episode_pc_value")}]}]});var Xa=require("@vkontakte/videoplayer-shared/es2018");var ta=class{constructor({enabled:e=!0}={enabled:!0}){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,Xa.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new Xa.ValueSubject(!1),isEnabled$:new Xa.ValueSubject(!1),type:0};this.info.isEnabled$=new Xa.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}async request(){var e;if(!(!this.isSupported()||this.isActive()))try{await((e=this.videoElement)==null?void 0:e.requestPictureInPicture())}catch(i){this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"))}registryEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers={...e}}unregistryEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.unregistryEventHandlers(),await this.remove()}onEnterPictureInPicture(e){var n,a;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(a=(n=this.externalEventHandlers).enterpictureinpicture)==null||a.call(n,e))}onLeavePictureInPicture(e){var n,a,s;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,o==null||o.removeEventListener("resize",this.eventHandlers.resize),(a=(n=this.externalEventHandlers).leavepictureinpicture)==null||a.call(n,e),(s=this.playerDummyElement)==null||s.$destroy()}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function ia(t){return t instanceof ta}var Ja=require("@vkontakte/videoplayer-shared/es2018");Ov();function Yp(t,e){U(e,!1);let i=Se();Ft(()=>{i.getAdmanWrapper().startPostroll()}),_r(),z()}var Oh=require("@vkontakte/videoplayer-shared/es2018");var D_=(t,e)=>{t.stopPropagation(),e()()},B_=L('<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>'),O_=L("<div><!></div>"),H_={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 Zp(t,e){U(e,!0),q(t,H_);let[i,o]=Be(),n=()=>S(p,"$isMobile",i),a=f(e,"position",3,0),s=f(e,"secondsToWatchBeforeSkip",3,0),d=f(e,"skipAd",3,Oh.noop),p=Se().ui.isMobile,m=v(()=>a()>0&&a()>=s());var $=O_();let u;var _=h($);{var w=C=>{var T=B_();T.__click=[D_,d];var E=h(T);_e(),g(T),k(P=>ge(E,`${P!=null?P:""} `),[()=>F("skip_ads_now")]),b(C,T)},y=C=>{var T=Br();k(E=>ge(T,E),[()=>F("skip_ads_after",{time:Math.ceil(s()-a()).toFixed(0)})]),b(C,T)};R(_,C=>{r(m)?C(w):C(y,!1)})}g($),k(C=>u=ee($,1,"container svelte-1k4i25s",null,u,C),[()=>({"container-mobile":n(),skippable:r(m)})]),b(t,$),z(),o()}at(["click"]);var F_=L('<button class="svelte-1wy3dql"> </button>'),U_={hash:"svelte-1wy3dql",code:"button.svelte-1wy3dql {position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black;}"};function Xp(t,e){U(e,!1),q(t,U_),_r();var i=F_(),o=h(i,!0);g(i),k(n=>ge(o,n),[()=>F("visit_advertiser")],vr),b(t,i),z()}var z_=L('<div class="top-gradient-mobile svelte-354ajf"></div>'),q_=L('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),W_={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(
|
|
58
|
+
Try switching the\xA0quality to\xA0Auto.`},Rh=P_;var is=new Map;is.set(Ja.InterfaceLanguage.EN,Rh);is.set(Ja.InterfaceLanguage.RU,Vh);var Bh=new Map,Qp=({language:t,pack:e,fallback:i})=>{if(is.has(t)){let o=is.get(t);is.set(t,{...o,...e})}else is.set(t,e);Bh.set(t,i)},Gp=t=>is.has(t),Yp=(t,e,i,o)=>{var s;let n=is.get(t),a=n==null?void 0:n[e];if((0,Ja.isNullable)(a)){let d=(s=Bh.get(t))!=null?s:o,l=d?is.get(d):void 0;a=l==null?void 0:l[e]}return(0,Ja.isNullable)(a)?e+Object.values(i!=null?i:{}).join(" "):i?a.replaceAll(/{(\w+?)}/g,(d,l)=>{var p;return(p=i[l])!=null?p:""}):a},q=(t,e)=>{let{interfaceLanguage$:i}=Ce(),o=Se(i),n=zt();return Yp(o,t,e,n.defaultLanguage)};var gP=require("@vkontakte/videoplayer-core/es2018");var el;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(el||(el={}));var A_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,M_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,L_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Fc="?",V_="X-Sentry-Auth",R_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function B_(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
|
|
59
|
+
`),o,n;for(let a=0;a<i.length;++a){if(o=A_.exec(i[a]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||Fc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=L_.exec(i[a]))n={filename:o[2],function:o[1]||Fc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=M_.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||Fc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=Fc),e.push(n)}return e.length?{value:Nh(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function Nh(t){return(t&&t.message||"No error message").split(`
|
|
60
|
+
`).filter(i=>!!i)[0]}function N_(t){try{let e=B_(t);if(e)return e}catch(e){}return{value:Nh(t),type:t&&t.name,stacktrace:{frames:[]}}}function D_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Uc=class{constructor(e){if(e&&e.dsn){let i=R_.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),a=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(a?"/"+a:"")+"/api/"+n.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[N_(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(V_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:D_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Dh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function O_(){return window}var zc=class t extends Uc{constructor(e,i=O_()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=p=>p,beforeBreadcrumb:a=p=>p,blacklistUrls:s=[],ignoreErrors:d=[],release:l=void 0}=this.options||{};this.plugins=o.map(p=>new p(this)),this.beforeSend=n,this.beforeBreadcrumb=a,this.blacklistUrls=s,this.ignoreErrors=d,this.release=l}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new t({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send({...this.getRequestBlank(),message:e,level:i})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>Dh(i,o))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>Dh(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],a=Array.isArray(n)?n:null,s=e[o],d=Array.isArray(s)?s:null;return{...i,[o]:a||d?[...a||[],...d||[]]:{...typeof n!="string"?n:{},...typeof s!="string"?s:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};var Xs=require("@vkontakte/videoplayer-shared/es2018");var qc=null,Js=class{constructor(e,i,o={}){!qc&&e.dsn&&(this.sentryClient=new zc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new Xs.Subscription,this.options=e,this.context=o,qc=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),qc=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:a,options:s}=this,{sampleRate:d=0,whiteErrorIdList:l,whiteErrorCategoryList:p=[],blackErrorIdList:m,blackErrorCategoryList:y}=s,{errorType:u,category:$}=i;if((0,Xs.isNonNullable)($)&&y.includes($)||(0,Xs.isNonNullable)(u)&&m.includes(u))return;if(Math.random()<=d||(0,Xs.isNonNullable)($)&&p.includes($)||(0,Xs.isNonNullable)(u)&&l.includes(u)){Object.keys(i).length&&n.setTags({version:this.version,...i}),(Object.keys(a).length||Object.keys(o).length)&&n.setExtras({...a,...o});try{u&&n.captureMessage(u,i.fatal?el.fatal:el.error),n.report(e)}catch(b){console.error(b)}}}static getInstance(){return qc}};var Hr=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(Hr||{});var Wc=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.reject()},Kc=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),Oh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},nd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},gs=()=>!!nd(),Qc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Gc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Hh=t=>{let e=window.screen;return(async n=>e.orientation?e.orientation.lock(n):e.mozLockOrientation?e.mozLockOrientation(n):e.msLockOrientation?e.msLockOrientation(n):Promise.reject())(((n={width:0,height:0})=>n.width<=n.height?"portrait":"landscape")(t))};var jp=require("@vkontakte/videoplayer-core/es2018"),Fh=()=>({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:jp.clientChecker.device.isApple?q("hotkey_map_item_prev_episode_mac_value"):q("hotkey_map_item_prev_episode_pc_value")},{description:q("hotkey_map_item_next_episode_description"),value:jp.clientChecker.device.isApple?q("hotkey_map_item_next_episode_mac_value"):q("hotkey_map_item_next_episode_pc_value")}]}]});var tl=require("@vkontakte/videoplayer-shared/es2018");var ea=class{constructor({enabled:e=!0}={enabled:!0}){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,tl.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new tl.ValueSubject(!1),isEnabled$:new tl.ValueSubject(!1),type:0};this.info.isEnabled$=new tl.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}async request(){var e;if(!(!this.isSupported()||this.isActive()))try{await((e=this.videoElement)==null?void 0:e.requestPictureInPicture())}catch(i){this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"))}registryEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers={...e}}unregistryEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.unregistryEventHandlers(),await this.remove()}onEnterPictureInPicture(e){var n,a;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(a=(n=this.externalEventHandlers).enterpictureinpicture)==null||a.call(n,e))}onLeavePictureInPicture(e){var n,a,s;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,o==null||o.removeEventListener("resize",this.eventHandlers.resize),(a=(n=this.externalEventHandlers).leavepictureinpicture)==null||a.call(n,e),(s=this.playerDummyElement)==null||s.$destroy()}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function ta(t){return t instanceof ea}var il=require("@vkontakte/videoplayer-shared/es2018");Uv();function Jp(t,e){U(e,!1);let i=Ce();Ut(()=>{i.getAdmanWrapper().startPostroll()}),xr(),z()}var Uh=require("@vkontakte/videoplayer-shared/es2018");var H_=(t,e)=>{t.stopPropagation(),e()()},F_=L('<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>'),U_=L("<div><!></div>"),z_={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 ef(t,e){U(e,!0),K(t,z_);let[i,o]=Ne(),n=()=>S(p,"$isMobile",i),a=f(e,"position",3,0),s=f(e,"secondsToWatchBeforeSkip",3,0),d=f(e,"skipAd",3,Uh.noop),p=Ce().ui.isMobile,m=v(()=>a()>0&&a()>=s());var y=U_();let u;var $=h(y);{var w=C=>{var T=F_();T.__click=[H_,d];var I=h(T);$e(),g(T),E(M=>me(I,`${M!=null?M:""} `),[()=>q("skip_ads_now")]),_(C,T)},b=C=>{var T=Nr();E(I=>me(T,I),[()=>q("skip_ads_after",{time:Math.ceil(s()-a()).toFixed(0)})]),_(C,T)};B($,C=>{r(m)?C(w):C(b,!1)})}g(y),E(C=>u=J(y,1,"container svelte-1k4i25s",null,u,C),[()=>({"container-mobile":n(),skippable:r(m)})]),_(t,y),z(),o()}at(["click"]);var q_=L('<button class="svelte-1wy3dql"> </button>'),W_={hash:"svelte-1wy3dql",code:"button.svelte-1wy3dql {position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black;}"};function tf(t,e){U(e,!1),K(t,W_),xr();var i=q_(),o=h(i,!0);g(i),E(n=>me(o,n),[()=>q("visit_advertiser")],br),_(t,i),z()}var K_=L('<div class="top-gradient-mobile svelte-354ajf"></div>'),Q_=L('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),G_={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(
|
|
61
61
|
360deg,
|
|
62
62
|
rgba(0, 0, 0, 0) 0%,
|
|
63
63
|
rgba(0, 0, 0, 0.05) 12%,
|
|
@@ -67,7 +67,7 @@ Try switching the\xA0quality to\xA0Auto.`},Mh=I_;var ts=new Map;ts.set(Ya.Interf
|
|
|
67
67
|
rgba(0, 0, 0, 0.5) 77%,
|
|
68
68
|
rgba(0, 0, 0, 0.55) 88%,
|
|
69
69
|
rgba(0, 0, 0, 0.65) 100%
|
|
70
|
-
);}`};function
|
|
70
|
+
);}`};function rd(t,e){U(e,!0),K(t,G_);let[i,o]=Ne(),n=()=>S(Y,"$canSkipAd",i),a=()=>S(W,"$adPlaybackState",i),s=()=>S(I,"$isMobile",i),d=()=>S(F,"$adPosition",i),l=()=>S(Q,"$secondsToWatchBeforeSkipAd",i),p=()=>S(T,"$isVideoEnded",i),m=f(e,"adsSlotId",3,void 0),y=f(e,"adsParams",3,void 0),u=f(e,"adsPreviewParam",3,void 0),$=f(e,"adsAutoplayParam",3,void 0),w=f(e,"duration",3,0),b=Ce(),C=zt(),T=b.state.isEnded$,I=b.ui.isMobile,M=C.ads.isMobileGoToSiteButton,P=X(void 0),k=X(void 0),R=!1,W=b.ads.playbackState,Y=b.ads.canSkip,F=b.ads.position,Q=b.ads.secondsToWatchBeforeSkip,oe=v(()=>n()&&a()!=="inactive"),Z=v(()=>s()&&a()!=="inactive"&&M);Ut(()=>{var Ve;let _e=b.getAdmanWrapper();if(il.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,il.now)(),m()]}),!m()){_e.onAdmanLoadingError();return}let ze=Ie=>{_e.initAdman(Ie),R=!0},H=new AbortController,le=()=>{H.abort()},{width:he,height:ee}=Se(b.ui.playerSize),De=Se(b.ui.isFullscreen),Ze=(Ve=$())!=null?Ve:Se(b.ui.isAutoplay),we={width:he,height:ee,isFullscreen:De,isAutoplay:Ze,adsContainer:r(P),adsVideoElement:r(k),slotId:m(),params:y(),previewParam:u(),duration:w()};return window.AdmanHTML?ze(we):_e.loadAdman(H.signal).then(()=>{ze(we)}).catch(()=>{_e.onAdmanLoadingError()}),()=>{il.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,il.now)(),m()]}),!R&&le()}});var re=Q_(),de=h(re);{var Ae=_e=>{var ze=K_();_(_e,ze)};B(de,_e=>{s()&&_e(Ae)})}var Me=A(de,2);gt(Me,_e=>D(k,_e),()=>r(k));var ge=A(Me,2);{var se=_e=>{ef(_e,{get position(){return d()},get secondsToWatchBeforeSkip(){return l()},get skipAd(){return b.actions.internal.skipAd}})};B(ge,_e=>{r(oe)&&_e(se)})}var Ee=A(ge,2);{var ne=_e=>{Jp(_e,{})};B(Ee,_e=>{p()&&_e(ne)})}var V=A(Ee,2);{var xe=_e=>{tf(_e,{})};B(V,_e=>{r(Z)&&_e(xe)})}g(re),gt(re,_e=>D(P,_e),()=>r(P)),_(t,re),z(),o()}var un=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let o=Math.floor(e/60);e-=o*60;let n=[o,e].map(a=>String(a).padStart(2,"0")).join(":");return i>0&&(n=`${i}:${n}`),n};var Y_=ye('<svg><!><path fill="none" stroke="var(--btn-color, #fff)" stroke-width="2" d="M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"></path><path fill="var(--btn-color, #f0f2f5)" fill-rule="evenodd" d="M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"></path></svg>');function of(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Y_();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img",...i})),_(t,o)}var j_=ye('<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 nf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=j_();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img",...i})),_(t,o)}function sd(t,e){let i=f(e,"isActive",3,!1);var o=Oe(),n=ue(o);{var a=d=>{nf(d,{})},s=d=>{of(d,{})};B(n,d=>{i()?d(a):d(s,!1)})}_(t,o)}var Z_=L('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),X_=L('<div class="live-icon svelte-1s15d2i"><!></div>'),J_=L('<span class="text svelte-1s15d2i"> </span>'),eb=L("<div><!> <!></div>"),tb={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),
|
|
71
71
|
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%;
|
|
72
72
|
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;
|
|
73
73
|
animation-name: svelte-1s15d2i-thumb-timer-equalizer-col1;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(2) {left:3px;
|
|
@@ -138,10 +138,10 @@ Try switching the\xA0quality to\xA0Auto.`},Mh=I_;var ts=new Map;ts.set(Ya.Interf
|
|
|
138
138
|
100% {
|
|
139
139
|
transform: scaleY(0.6);
|
|
140
140
|
}
|
|
141
|
-
}.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function
|
|
142
|
-
opacity var(--controls-transition-duration);}.thumb-timer.hidden.svelte-1b40w20 {visibility:hidden;opacity:0;}`};function dd(t,e){U(e,!0),q(t,eb);let i=f(e,"isHidden",3,!1),o=f(e,"isLive",3,!1),n=f(e,"isPlaying",3,!1),a=v(()=>un(e.duration-e.position));var s=J_();let d;var l=h(s);ld(l,{get time(){return r(a)},get isLive(){return o()},get isPlaying(){return n()},withEqualizer:!0}),g(s),k(p=>d=ee(s,1,"thumb-timer svelte-1b40w20",null,d,p),[()=>({hidden:i()})]),b(t,s),z()}var el=t=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}};var Gh=require("@vkontakte/videoplayer-core/es2018");var tf=require("@vkontakte/videoplayer-core/es2018"),rr=t=>{t.stopPropagation(),t.preventDefault()},ib=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},ob=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},nb=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},rb=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},Hh=t=>t.code==="Escape",sb=t=>t.code==="ArrowLeft",cd=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},Fh=t=>{if(nb(t)){rr(t),ob(t.target);return}rb(t)&&(rr(t),ib(t.target))},bs=t=>!tf.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||tf.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",tl=async(t,e,i)=>{await xo(),t&&!t.classList.contains("opened")&&!e&&we(i)&&(await xo(),i.set(!1),t.focus())},Uh=async(t,e,i)=>{await xo(),t&&!e&&we(i)&&(i.set(!1),t.focus())},il=async(t,e,i)=>{var n;await xo(),!!t&&e&&i&&((n=t.children[0])==null||n.focus())},zh=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},jc=(t,e)=>{Fh(t),Hh(t)&&(rr(t),e())},Yc=async(t,e)=>{cd(t,["ArrowRight"])&&(rr(t),e())},qh=async(t,e,i)=>{if(Fh(t),sb(t)){rr(t),e();return}Hh(t)&&(rr(t),i())},ol=(t,e)=>{cd(t)&&(rr(t),e())},Wh=(t,e,i)=>{if(cd(t))rr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),rr(t);return}o==="ArrowRight"&&!e&&(i(!0),rr(t))}},Kh=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},Qh=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,n=e.left+o;return{bottom:e.bottom+i,left:n}};var ra=require("@vkontakte/videoplayer-shared/es2018");var $r={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};var of=require("@vkontakte/videoplayer-shared/es2018");var lb=(t,e)=>{ol(t,()=>e())},db=L('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),cb={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 nf(t,e){U(e,!0),q(t,cb);let i=f(e,"onClick",3,of.noop),o=f(e,"closeContextMenu",3,of.noop),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=db();a.__click=n,a.__keydown=[lb,n];var s=h(a,!0);g(a),k(()=>{var d;He(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),He(a,"data-testid",e.id),ge(s,e.label)}),b(t,a),z()}at(["click","keydown"]);var na=(t,e)=>t.weight-e.weight;var nl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(nl||{});var ub=(t,e)=>{jc(t,e)},pb=t=>{t.preventDefault()},fb=L('<ul role="menu" class="svelte-1p5ukkp"></ul>'),mb={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 rf(t,e){U(e,!0),q(t,mb);let[i,o]=Be(),n=()=>S(Y,"$isLive$",i),a=()=>S(Ae,"$isPiPEnabled$",i),s=()=>S(ne,"$chromecastState$",i),d=()=>S(me,"$pictureInPictureApiIsActive$",i),l=()=>S(Me,"$isLooped$",i),p=()=>S(fe,"$positionExact$",i),m=()=>S(H,"$debugPanelVisible",i),$=()=>S(j,"$additionalContextMenuItems$",i),u=f(e,"visible",3,!1),_=f(e,"position",19,()=>({top:0,left:0})),w=f(e,"playerContainerRef",3,void 0),y=f(e,"controlsContainerRef",3,void 0),C=f(e,"menuElementRef",15,void 0),T=J(0),E=J(0),P=Se(),{pictureInPicture$:A}=fo(),I=Ut(),V=P.ui.contextMenu.visible$,H=P.ui.debugPanelVisible,j=P.ui.additionalContextMenuItems$,O=P.ui.t,X=P.actions.internal.togglePictureInPicture,ne=P.state.chromecastState$,Y=P.state.isLive$,fe=P.state.positionExact$,le=P.state.isInteractive,Me=P.state.looped$,{isEnabled$:Ae,isActive$:me}=A,ae=v(()=>{var Ye;return I.features.copyVideoLink&&((Ye=P.callbacks)==null?void 0:Ye.onCopyVideoLink)}),Pe=v(()=>r(ae)&&!n()&&!le),re=v(()=>{var Ye;return!!((Ye=P.callbacks)!=null&&Ye.onCopyEmbedCodeClicked)}),D=v(()=>a()&&s()!==Gh.ChromecastState.CONNECTED&&!le),Ve=v(()=>I.features.videoRotate&&!le),te=v(()=>I.showSupport&&!d()),Ge=v(()=>I.features.saveTraceInfoToFile),ie=()=>{var Ye;V.set(!1),(Ye=e.returnFocus)==null||Ye.call(e)},Q=(Ye,Xe)=>{if(!C()||!w()||!y())return;let dt=C().getBoundingClientRect(),Re=w().getBoundingClientRect();B(T,Ye-Re.left),B(E,Xe-Re.top),r(T)+dt.width>Re.width&&B(T,Re.width-dt.width),r(E)+dt.height>Re.height&&B(E,Re.height-dt.height),B(T,pe(Math.max(r(T),0))),B(E,pe(Math.max(r(E),0)))};Ue(()=>{(async()=>{if(C()&&w()&&y()){await xo();let{top:Xe,left:dt,bottom:Re,right:$t}=_(),qe=dt!=null?dt:0,Pt=Xe!=null?Xe:0,ni=C().getBoundingClientRect();(0,ra.isNullable)(dt)&&!(0,ra.isNullable)($t)&&(qe=$t-ni.width),(0,ra.isNullable)(Xe)&&!(0,ra.isNullable)(Re)&&(Pt=Re-ni.height),qe=Math.max(qe,0),Pt=Math.max(Pt,0),Q(qe,Pt)}})()});let W=()=>{P.actions.internal.videoRotate()},Le=()=>{(0,ra.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),P.actions.internal.reportProblem(),P.actions.internal.pause()},Ne=()=>{let Ye=P.actions.internal.getDebugTextData();if(I.features.saveDebugInfoToFile){let Xe=new Blob([...Ye],{type:"plain/text"}),dt=window.URL.createObjectURL(Xe);Xs(dt,"vk_player_debug_info","txt")}else el(P.actions.internal.getDebugTextData())},Je=()=>{let Ye=P.actions.internal.getTraceTextData(),Xe=new Blob([...Ye],{type:"application/json"}),dt=window.URL.createObjectURL(Xe);Xs(dt,"vk_player_trace_info","json")},ye=()=>{H.set(!0)},xe=async()=>{var Ye;try{X()}finally{(Ye=e.returnFocus)==null||Ye.call(e)}},De=()=>{P.actions.internal.setLooped(!l())},Ze=()=>{var Ye,Xe;if(r(re)){let dt=(Xe=(Ye=P.callbacks)==null?void 0:Ye.onCopyEmbedCodeClicked)==null?void 0:Xe.call(Ye);dt&&el(dt)}},ot=(Ye=!1)=>{var Xe,dt;if((Xe=P.callbacks)!=null&&Xe.onCopyVideoLink){let Re=(dt=P.callbacks)==null?void 0:dt.onCopyVideoLink(Ye,p());Re&&el(Re)}},gt=v(()=>I.features.saveDebugInfoToFile?O("menu_save_debug"):O("menu_copy_debug")),et=v(()=>r(ae)?{id:"copy-link",weight:$r["copy-link"],label:O("menu_copy_video_link"),onClick:()=>ot()}:void 0),mt=v(()=>r(Pe)?{id:"copy-link-timestamp",weight:$r["copy-link-timestamp"],label:O("menu_copy_video_link_with_timestamp"),onClick:()=>ot(!0)}:void 0),Et=v(()=>r(re)?{id:"copy-embed-code",weight:$r["copy-embed-code"],label:O("menu_copy_embed_code"),onClick:Ze}:void 0),Qt=v(()=>r(D)?{id:"pip",weight:$r.pip,label:O("menu_pip"),onClick:xe}:void 0),zt=v(()=>({id:"video-loop",weight:$r["video-loop"],label:l()?O("menu_video_loop_off"):O("menu_video_loop_on"),ariaLabel:O("aria_label_menu_loop"),onClick:De})),Kt=v(()=>r(Ve)?{id:"rotate",weight:$r.rotate,label:O("menu_video_rotate"),ariaLabel:O("aria_label_menu_rotate"),onClick:W}:void 0),ve=v(()=>r(te)?{id:"report",weight:$r.report,label:O("menu_report"),ariaLabel:`${O("menu_report")}. ${O("aria_label_new_tab_alert")}`,onClick:Le}:void 0),G=v(()=>({id:"save-debug",weight:$r["save-debug"],label:r(gt),onClick:Ne})),Te=v(()=>r(Ge)?{id:"save-trace",weight:$r["save-trace"],label:O("menu_save_debug"),onClick:Je}:void 0),se=v(()=>({id:"debug-info",weight:$r["debug-info"],label:O("menu_debug_overlay"),ariaLabel:m()?O("aria_label_menu_debug_overlay_disable"):O("aria_label_menu_debug_overlay_enable"),onClick:ye})),Oe=v(()=>[r(et),r(mt),r(Et),r(Qt),r(zt),r(Kt),r(ve),r(G),r(Te),r(se),...$()].filter(Ye=>!!Ye).sort(na));var ze=Fe(),tt=ue(ze);{var lt=Ye=>{var Xe=fb();Xe.__contextmenu=[pb],Xe.__keydown=[ub,ie],Ti(Xe,21,()=>r(Oe),dt=>dt.id,(dt,Re)=>{nf(dt,{get id(){return r(Re).id},get label(){return r(Re).label},get ariaLabel(){return r(Re).ariaLabel},get onClick(){return r(Re).onClick},closeContextMenu:ie})}),g(Xe),ft(Xe,dt=>C(dt),()=>C()),k(()=>{var dt,Re;return it(Xe,`top: ${(dt=r(E))!=null?dt:""}px; left: ${(Re=r(T))!=null?Re:""}px;`)}),b(Ye,Xe)};R(tt,Ye=>{u()&&Ye(lt)})}b(t,ze),z(),o()}at(["contextmenu","keydown"]);var Zc=class{constructor(e){this.value=e,this.next=null}};var rl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Zc(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 vb=L('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),gb={hash:"svelte-1ssl9eb",code:".container.svelte-1ssl9eb {display:inline-block;width:120px;height:16px;}canvas.svelte-1ssl9eb {transform:scale(1, -1);margin-top:2px;}"};function ud(t,e){U(e,!0),q(t,gb);let i=f(e,"values",19,()=>[]),o=J(void 0),n=J(null),a=16,s=120,d=60,l=s/d;Ft(()=>{r(o).width=s,r(o).height=a,B(n,pe(r(o).getContext("2d")))});function p(u,_,w,y,C){C===0&&(C=1),u.fillStyle="#fff",u.fillRect(_,w,y,C)}Ue(()=>{let u="";if(r(n)){let _=i()[0];for(let y=1;y<i().length;y++)i()[y]>_&&(_=i()[y]);r(n).clearRect(0,0,s,a);let w=d-1;for(let y=i().length-1;y>=0;y--){let C=w*l,T=_>0?a*(i()[y]/_):0;p(r(n),C,0,l,T),u=T+" "+u,w--}}});var m=vb(),$=h(m);ft($,u=>B(o,u),()=>r(o)),g(m),b(t,m),z()}var sf=require("@vkontakte/videoplayer-shared/es2018");var hb=(t,e)=>{t.stopPropagation(),sf.safeStorage.remove(Xl),e.set(!1)},_b=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),bb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),$b=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),yb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),xb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),wb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),Sb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),Cb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),Tb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),Ib=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),kb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),Eb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),Pb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),Ab=L('<div role="region"><button class="close svelte-4deykz" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-4deykz"><div class="svelte-4deykz"><div class="svelte-4deykz">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">FPS</div> <!> <span> </span></div></div></div>'),Mb={hash:"svelte-4deykz",code:".container.svelte-4deykz {background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left;user-select:text;}.container-mobile.svelte-4deykz {top:16px;left:16px;}button.svelte-4deykz {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.svelte-4deykz {padding:5px;}.content.svelte-4deykz > div:where(.svelte-4deykz) > div:where(.svelte-4deykz) {display:inline-block;text-align:right;width:60px;padding:0 5px;}"};function pd(t,e){U(e,!0),q(t,Mb);let[i,o]=Be(),n=()=>S(d,"$isMobile",i),a=Se(),s=a.ui.debugPanelVisible,d=a.ui.isMobile,l=J(pe(a.actions.internal.getDebugPanelData())),p=a.actions.internal.getVideoElement(),m=J(0),$=J(0),u=J(0),_=new rl(60),w=new rl(60),y=new rl(60),C=J(pe([])),T=J(pe([])),E=J(pe([])),P=F("aria_label_debug_panel");Ft(()=>{sf.safeStorage.set(Xl,"true"),a.actions.internal.startLogging(),p&&(B($,pe(p.getVideoPlaybackQuality().droppedVideoFrames)),B(m,pe(p.getVideoPlaybackQuality().totalVideoFrames)));let G=window.setInterval(()=>{B(l,pe(a.actions.internal.getDebugPanelData()))},500),Te;return p&&(Te=window.setInterval(()=>{if(p){B($,pe(p.getVideoPlaybackQuality().droppedVideoFrames));let se=p.getVideoPlaybackQuality().totalVideoFrames;B(u,se-r(m)),B(m,pe(se)),_.push(r(u)),r(l).speed&&w.push(r(l).speed),r(l).bitrate&&y.push(r(l).bitrate),B(C,pe(_.getValuesFromBottom())),B(T,pe(w.getValuesFromBottom())),B(E,pe(y.getValuesFromBottom()))}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(G),Te&&clearInterval(Te)}});var A=Ab();let I;He(A,"aria-label",P);var V=h(A);V.__click=[hb,s];var H=M(V,2),j=h(H),O=M(h(j),2),X=h(O,!0);g(O),g(j);var ne=M(j,2);{var Y=G=>{var Te=_b(),se=M(h(Te),2),Oe=h(se,!0);g(se),g(Te),k(()=>ge(Oe,r(l).id)),b(G,Te)};R(ne,G=>{r(l).id&&G(Y)})}var fe=M(ne,2);{var le=G=>{var Te=bb(),se=M(h(Te),2),Oe=h(se,!0);g(se),g(Te),k(()=>ge(Oe,r(l).vsid)),b(G,Te)};R(fe,G=>{r(l).vsid&&G(le)})}var Me=M(fe,2);{var Ae=G=>{var Te=$b(),se=M(h(Te),2),Oe=h(se,!0);g(se),g(Te),k(()=>ge(Oe,r(l).provider)),b(G,Te)};R(Me,G=>{r(l).provider&&G(Ae)})}var me=M(Me,2);{var ae=G=>{var Te=yb(),se=M(h(Te),2),Oe=h(se);g(se),g(Te),k(()=>{var ze,tt;return ge(Oe,`Video: ${r(l).videoCodec||""} ${(ze=r(l).hdr?"(HDR)":"")!=null?ze:""}
|
|
141
|
+
}.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function ad(t,e){K(t,tb);let i=f(e,"withEqualizer",3,!1),o=f(e,"isLive",3,!1),n=f(e,"isPlaying",3,!1);var a=eb();let s;var d=h(a);{var l=u=>{var $=Z_();_(u,$)};B(d,u=>{i()&&u(l)})}var p=A(d,2);{var m=u=>{var $=X_(),w=h($);sd(w,{isActive:!0}),g($),_(u,$)},y=u=>{var $=J_(),w=h($,!0);g($),E(()=>me(w,e.time)),_(u,$)};B(p,u=>{o()?u(m):u(y,!1)})}g(a),E(u=>s=J(a,1,"wrapper svelte-1s15d2i",null,s,u),[()=>({live:o(),playing:n()})]),_(t,a)}var ib=L('<div role="timer" data-testid="thumb-timer"><!></div>'),ob={hash:"svelte-1b40w20",code:`.thumb-timer.svelte-1b40w20 {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;transition:visibility var(--controls-transition-duration),
|
|
142
|
+
opacity var(--controls-transition-duration);}.thumb-timer.hidden.svelte-1b40w20 {visibility:hidden;opacity:0;}`};function ld(t,e){U(e,!0),K(t,ob);let i=f(e,"isHidden",3,!1),o=f(e,"isLive",3,!1),n=f(e,"isPlaying",3,!1),a=v(()=>un(e.duration-e.position));var s=ib();let d;var l=h(s);ad(l,{get time(){return r(a)},get isLive(){return o()},get isPlaying(){return n()},withEqualizer:!0}),g(s),E(p=>d=J(s,1,"thumb-timer svelte-1b40w20",null,d,p),[()=>({hidden:i()})]),_(t,s),z()}var ol=t=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}};var Zh=require("@vkontakte/videoplayer-core/es2018");var rf=require("@vkontakte/videoplayer-core/es2018"),lr=t=>{t.stopPropagation(),t.preventDefault()},rb=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},sb=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},ab=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},lb=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},zh=t=>t.code==="Escape",db=t=>t.code==="ArrowLeft",dd=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},qh=t=>{if(ab(t)){lr(t),sb(t.target);return}lb(t)&&(lr(t),rb(t.target))},bs=t=>!rf.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||rf.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",nl=async(t,e,i)=>{await wo(),t&&!t.classList.contains("opened")&&!e&&Se(i)&&(await wo(),i.set(!1),t.focus())},Wh=async(t,e,i)=>{await wo(),t&&!e&&Se(i)&&(i.set(!1),t.focus())},rl=async(t,e,i)=>{var n;await wo(),!!t&&e&&i&&((n=t.children[0])==null||n.focus())},Kh=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Yc=(t,e)=>{qh(t),zh(t)&&(lr(t),e())},jc=async(t,e)=>{dd(t,["ArrowRight"])&&(lr(t),e())},Qh=async(t,e,i)=>{if(qh(t),db(t)){lr(t),e();return}zh(t)&&(lr(t),i())},sl=(t,e)=>{dd(t)&&(lr(t),e())},Gh=(t,e,i)=>{if(dd(t))lr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),lr(t);return}o==="ArrowRight"&&!e&&(i(!0),lr(t))}},Yh=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},jh=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,n=e.left+o;return{bottom:e.bottom+i,left:n}};var na=require("@vkontakte/videoplayer-shared/es2018");var Sr={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};var sf=require("@vkontakte/videoplayer-shared/es2018");var ub=(t,e)=>{sl(t,()=>e())},pb=L('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),fb={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),K(t,fb);let i=f(e,"onClick",3,sf.noop),o=f(e,"closeContextMenu",3,sf.noop),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=pb();a.__click=n,a.__keydown=[ub,n];var s=h(a,!0);g(a),E(()=>{var d;Be(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Be(a,"data-testid",e.id),me(s,e.label)}),_(t,a),z()}at(["click","keydown"]);var oa=(t,e)=>t.weight-e.weight;var al=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(al||{});var mb=(t,e)=>{Yc(t,e)},vb=t=>{t.preventDefault()},gb=L('<ul role="menu" class="svelte-1p5ukkp"></ul>'),hb={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 lf(t,e){U(e,!0),K(t,hb);let[i,o]=Ne(),n=()=>S(oe,"$isLive$",i),a=()=>S(Ae,"$isPiPEnabled$",i),s=()=>S(Q,"$chromecastState$",i),d=()=>S(Me,"$pictureInPictureApiIsActive$",i),l=()=>S(de,"$isLooped$",i),p=()=>S(Z,"$positionExact$",i),m=()=>S(W,"$additionalContextMenuItems$",i),y=f(e,"visible",3,!1),u=f(e,"position",19,()=>({top:0,left:0})),$=f(e,"playerContainerRef",3,void 0),w=f(e,"controlsContainerRef",3,void 0),b=f(e,"menuElementRef",15,void 0),C=X(0),T=X(0),I=Ce(),{pictureInPicture$:M}=lo(),P=zt(),k=I.ui.contextMenu.visible$,R=I.ui.debugPanelVisible,W=I.ui.additionalContextMenuItems$,Y=I.ui.t,F=I.actions.internal.togglePictureInPicture,Q=I.state.chromecastState$,oe=I.state.isLive$,Z=I.state.positionExact$,re=I.state.isInteractive,de=I.state.looped$,{isEnabled$:Ae,isActive$:Me}=M,ge=v(()=>{var Le;return P.features.copyVideoLink&&((Le=I.callbacks)==null?void 0:Le.onCopyVideoLink)}),se=v(()=>r(ge)&&!n()&&!re),Ee=v(()=>{var Le;return!!((Le=I.callbacks)!=null&&Le.onCopyEmbedCodeClicked)}),ne=v(()=>a()&&s()!==Zh.ChromecastState.CONNECTED&&!re),V=v(()=>P.features.videoRotate&&!re),xe=v(()=>P.showSupport&&!d()),_e=v(()=>P.features.saveTraceInfoToFile),ze=()=>{var Le;k.set(!1),(Le=e.returnFocus)==null||Le.call(e)},H=(Le,rt)=>{if(!b()||!$()||!w())return;let et=b().getBoundingClientRect(),_t=$().getBoundingClientRect();D(C,Le-_t.left),D(T,rt-_t.top),r(C)+et.width>_t.width&&D(C,_t.width-et.width),r(T)+et.height>_t.height&&D(T,_t.height-et.height),D(C,pe(Math.max(r(C),0))),D(T,pe(Math.max(r(T),0)))};Fe(()=>{(async()=>{if(b()&&$()&&w()){await wo();let{top:rt,left:et,bottom:_t,right:it}=u(),Xe=et!=null?et:0,Kt=rt!=null?rt:0,bt=b().getBoundingClientRect();(0,na.isNullable)(et)&&!(0,na.isNullable)(it)&&(Xe=it-bt.width),(0,na.isNullable)(rt)&&!(0,na.isNullable)(_t)&&(Kt=_t-bt.height),Xe=Math.max(Xe,0),Kt=Math.max(Kt,0),H(Xe,Kt)}})()});let le=()=>{I.actions.internal.videoRotate()},he=()=>{(0,na.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),I.actions.internal.reportProblem(),I.actions.internal.pause()},ee=()=>{let Le=I.actions.internal.getDebugTextData();if(P.features.saveDebugInfoToFile){let rt=new Blob([...Le],{type:"plain/text"}),et=window.URL.createObjectURL(rt);Zs(et,"vk_player_debug_info","txt")}else ol(I.actions.internal.getDebugTextData())},De=()=>{let Le=I.actions.internal.getTraceTextData(),rt=new Blob([...Le],{type:"application/json"}),et=window.URL.createObjectURL(rt);Zs(et,"vk_player_trace_info","json")},Ze=()=>{R.set(!0)},we=async()=>{var Le;try{F()}finally{(Le=e.returnFocus)==null||Le.call(e)}},Ve=()=>{I.actions.internal.setLooped(!l())},Ie=()=>{var Le,rt;if(r(Ee)){let et=(rt=(Le=I.callbacks)==null?void 0:Le.onCopyEmbedCodeClicked)==null?void 0:rt.call(Le);et&&ol(et)}},Ue=(Le=!1)=>{var rt,et;if((rt=I.callbacks)!=null&&rt.onCopyVideoLink){let _t=(et=I.callbacks)==null?void 0:et.onCopyVideoLink(Le,p());_t&&ol(_t)}},ct=v(()=>P.features.saveDebugInfoToFile?Y("menu_save_debug"):Y("menu_copy_debug")),ut=v(()=>r(ge)?{id:"copy-link",weight:Sr["copy-link"],label:Y("menu_copy_video_link"),onClick:()=>Ue()}:void 0),nt=v(()=>r(se)?{id:"copy-link-timestamp",weight:Sr["copy-link-timestamp"],label:Y("menu_copy_video_link_with_timestamp"),onClick:()=>Ue(!0)}:void 0),Ct=v(()=>r(Ee)?{id:"copy-embed-code",weight:Sr["copy-embed-code"],label:Y("menu_copy_embed_code"),onClick:Ie}:void 0),mt=v(()=>r(ne)?{id:"pip",weight:Sr.pip,label:Y("menu_pip"),onClick:we}:void 0),Wt=v(()=>({id:"video-loop",weight:Sr["video-loop"],label:l()?Y("menu_video_loop_off"):Y("menu_video_loop_on"),ariaLabel:Y("aria_label_menu_loop"),onClick:Ve})),ti=v(()=>r(V)?{id:"rotate",weight:Sr.rotate,label:Y("menu_video_rotate"),ariaLabel:Y("aria_label_menu_rotate"),onClick:le}:void 0),Lt=v(()=>r(xe)?{id:"report",weight:Sr.report,label:Y("menu_report"),ariaLabel:`${Y("menu_report")}. ${Y("aria_label_new_tab_alert")}`,onClick:he}:void 0),Nt=v(()=>({id:"save-debug",weight:Sr["save-debug"],label:r(ct),onClick:ee})),O=v(()=>r(_e)?{id:"save-trace",weight:Sr["save-trace"],label:Y("menu_save_debug"),onClick:De}:void 0),be=v(()=>({id:"debug-info",weight:Sr["debug-info"],label:Y("menu_debug_overlay"),ariaLabel:Y("aria_label_menu_debug_overlay"),onClick:Ze})),te=v(()=>[r(ut),r(nt),r(Ct),r(mt),r(Wt),r(ti),r(Lt),r(Nt),r(O),r(be),...m()].filter(Le=>!!Le).sort(oa));var Re=Oe(),je=ue(Re);{var Qe=Le=>{var rt=gb();rt.__contextmenu=[vb],rt.__keydown=[mb,ze],Ci(rt,21,()=>r(te),et=>et.id,(et,_t)=>{af(et,{get id(){return r(_t).id},get label(){return r(_t).label},get ariaLabel(){return r(_t).ariaLabel},get onClick(){return r(_t).onClick},closeContextMenu:ze})}),g(rt),gt(rt,et=>b(et),()=>b()),E(()=>{var et,_t;return st(rt,`top: ${(et=r(T))!=null?et:""}px; left: ${(_t=r(C))!=null?_t:""}px;`)}),_(Le,rt)};B(je,Le=>{y()&&Le(Qe)})}_(t,Re),z(),o()}at(["contextmenu","keydown"]);var Zc=class{constructor(e){this.value=e,this.next=null}};var ll=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Zc(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 _b=L('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),bb={hash:"svelte-1ssl9eb",code:".container.svelte-1ssl9eb {display:inline-block;width:120px;height:16px;}canvas.svelte-1ssl9eb {transform:scale(1, -1);margin-top:2px;}"};function cd(t,e){U(e,!0),K(t,bb);let i=f(e,"values",19,()=>[]),o=X(void 0),n=X(null),a=16,s=120,d=60,l=s/d;Ut(()=>{r(o).width=s,r(o).height=a,D(n,pe(r(o).getContext("2d")))});function p(u,$,w,b,C){C===0&&(C=1),u.fillStyle="#fff",u.fillRect($,w,b,C)}Fe(()=>{let u="";if(r(n)){let $=i()[0];for(let b=1;b<i().length;b++)i()[b]>$&&($=i()[b]);r(n).clearRect(0,0,s,a);let w=d-1;for(let b=i().length-1;b>=0;b--){let C=w*l,T=$>0?a*(i()[b]/$):0;p(r(n),C,0,l,T),u=T+" "+u,w--}}});var m=_b(),y=h(m);gt(y,u=>D(o,u),()=>r(o)),g(m),_(t,m),z()}var df=require("@vkontakte/videoplayer-shared/es2018");var $b=(t,e)=>{t.stopPropagation(),df.safeStorage.remove(Zl),e.set(!1)},yb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),xb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),wb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),Sb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),Cb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),Tb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),Ib=L('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),kb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),Eb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),Pb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),Ab=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),Mb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),Lb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),Vb=L('<div role="region"><button class="close svelte-4deykz" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-4deykz"><div class="svelte-4deykz"><div class="svelte-4deykz">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">FPS</div> <!> <span> </span></div></div></div>'),Rb={hash:"svelte-4deykz",code:".container.svelte-4deykz {background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left;user-select:text;}.container-mobile.svelte-4deykz {top:16px;left:16px;}button.svelte-4deykz {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.svelte-4deykz {padding:5px;}.content.svelte-4deykz > div:where(.svelte-4deykz) > div:where(.svelte-4deykz) {display:inline-block;text-align:right;width:60px;padding:0 5px;}"};function ud(t,e){U(e,!0),K(t,Rb);let[i,o]=Ne(),n=()=>S(d,"$isMobile",i),a=Ce(),s=a.ui.debugPanelVisible,d=a.ui.isMobile,l=X(pe(a.actions.internal.getDebugPanelData())),p=a.actions.internal.getVideoElement(),m=X(0),y=X(0),u=X(0),$=new ll(60),w=new ll(60),b=new ll(60),C=X(pe([])),T=X(pe([])),I=X(pe([])),M=q("aria_label_debug_panel");Ut(()=>{df.safeStorage.set(Zl,"true"),a.actions.internal.startLogging(),p&&(D(y,pe(p.getVideoPlaybackQuality().droppedVideoFrames)),D(m,pe(p.getVideoPlaybackQuality().totalVideoFrames)));let O=window.setInterval(()=>{D(l,pe(a.actions.internal.getDebugPanelData()))},500),be;return p&&(be=window.setInterval(()=>{if(p){D(y,pe(p.getVideoPlaybackQuality().droppedVideoFrames));let te=p.getVideoPlaybackQuality().totalVideoFrames;D(u,te-r(m)),D(m,pe(te)),$.push(r(u)),r(l).speed&&w.push(r(l).speed),r(l).bitrate&&b.push(r(l).bitrate),D(C,pe($.getValuesFromBottom())),D(T,pe(w.getValuesFromBottom())),D(I,pe(b.getValuesFromBottom()))}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(O),be&&clearInterval(be)}});var P=Vb();let k;Be(P,"aria-label",M);var R=h(P);R.__click=[$b,s];var W=A(R,2),Y=h(W),F=A(h(Y),2),Q=h(F,!0);g(F),g(Y);var oe=A(Y,2);{var Z=O=>{var be=yb(),te=A(h(be),2),Re=h(te,!0);g(te),g(be),E(()=>me(Re,r(l).id)),_(O,be)};B(oe,O=>{r(l).id&&O(Z)})}var re=A(oe,2);{var de=O=>{var be=xb(),te=A(h(be),2),Re=h(te,!0);g(te),g(be),E(()=>me(Re,r(l).vsid)),_(O,be)};B(re,O=>{r(l).vsid&&O(de)})}var Ae=A(re,2);{var Me=O=>{var be=wb(),te=A(h(be),2),Re=h(te,!0);g(te),g(be),E(()=>me(Re,r(l).provider)),_(O,be)};B(Ae,O=>{r(l).provider&&O(Me)})}var ge=A(Ae,2);{var se=O=>{var be=Sb(),te=A(h(be),2),Re=h(te);g(te),g(be),E(()=>{var je,Qe;return me(Re,`Video: ${r(l).videoCodec||""} ${(je=r(l).hdr?"(HDR)":"")!=null?je:""}
|
|
143
143
|
&
|
|
144
|
-
Audio: ${r(l).audioCodec||""} ${(tt=r(l).audioLanguage?`(${r(l).audioLanguage})`:"")!=null?tt:""}`)}),b(G,Te)};R(me,G=>{(r(l).videoCodec||r(l).audioCodec)&&G(ae)})}var Pe=M(me,2);{var re=G=>{var Te=xb(),se=M(h(Te),2),Oe=h(se,!0);g(se),g(Te),k(()=>ge(Oe,r(l).viewport)),b(G,Te)};R(Pe,G=>{r(l).viewport&&G(re)})}var D=M(Pe,2);{var Ve=G=>{var Te=wb(),se=M(h(Te),2),Oe=h(se,!0);g(se),g(Te),k(()=>ge(Oe,r(l).videoSize)),b(G,Te)};R(D,G=>{r(l).videoSize&&G(Ve)})}var te=M(D,2);{var Ge=G=>{var Te=Sb(),se=M(h(Te),2),Oe=h(se,!0);g(se),g(Te),k(()=>ge(Oe,r(l).cdn)),b(G,Te)};R(te,G=>{r(l).cdn&&G(Ge)})}var ie=M(te,2);{var Q=G=>{var Te=Cb(),se=M(h(Te),2),Oe=h(se);g(se),g(Te),k(()=>{var ze;return ge(Oe,`${(ze=r(l).volume)!=null?ze:""} %`)}),b(G,Te)};R(ie,G=>{r(l).volume&&G(Q)})}var W=M(ie,2);{var Le=G=>{var Te=Tb(),se=M(h(Te),2),Oe=h(se);g(se),g(Te),k(ze=>ge(Oe,`${ze!=null?ze:""} s`),[()=>r(l).buffer.toFixed(2)]),b(G,Te)};R(W,G=>{r(l).buffer&&G(Le)})}var Ne=M(W,2);{var Je=G=>{var Te=Ib(),se=M(h(Te),2),Oe=h(se);g(se),g(Te),k(ze=>ge(Oe,`${ze!=null?ze:""} s`),[()=>r(l).liveLatency.toFixed(2)]),b(G,Te)};R(Ne,G=>{r(l).liveLatency&&G(Je)})}var ye=M(Ne,2);{var xe=G=>{var Te=kb(),se=M(h(Te),2),Oe=h(se,!0);g(se),g(Te),k(ze=>ge(Oe,ze),[()=>[{value:r(l).currentVideoSegmentLength,title:"Video:"},{value:r(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:ze})=>ze).map(({value:ze,title:tt})=>`${tt} ${((ze!=null?ze:0)/1e3).toFixed(2)} s`).join(" & ")]),b(G,Te)};R(ye,G=>{(r(l).currentVideoSegmentLength||r(l).currentAudioSegmentLength)&&G(xe)})}var De=M(ye,2),Ze=M(h(De),2),ot=h(Ze);g(Ze),g(De);var gt=M(De,2);{var et=G=>{var Te=Eb(),se=M(h(Te),2);ud(se,{get values(){return r(T)}});var Oe=M(se,2),ze=h(Oe);g(Oe),g(Te),k(tt=>ge(ze,`${tt!=null?tt:""} Kbps`),[()=>r(l).speed.toFixed(2)]),b(G,Te)};R(gt,G=>{r(l).speed&&G(et)})}var mt=M(gt,2);{var Et=G=>{var Te=Pb(),se=M(h(Te),2);ud(se,{get values(){return r(E)}});var Oe=M(se,2),ze=h(Oe);g(Oe),g(Te),k(tt=>ge(ze,`${tt!=null?tt:""} Kbps`),[()=>r(l).bitrate.toFixed(2)]),b(G,Te)};R(mt,G=>{r(l).bitrate&&G(Et)})}var Qt=M(mt,2),zt=M(h(Qt),2);ud(zt,{get values(){return r(C)}});var Kt=M(zt,2),ve=h(Kt,!0);g(Kt),g(Qt),g(H),g(A),k(G=>{var Te,se;I=ee(A,1,"container svelte-4deykz",null,I,G),ge(X,r(l).version),ge(ot,`${(Te=r($))!=null?Te:""} / ${(se=r(m))!=null?se:""} frames`),ge(ve,r(u))},[()=>({"container-mobile":n()})]),b(t,A),z(),o()}at(["click"]);var jh=require("@vkontakte/videoplayer-shared/es2018"),Lb=(t,e)=>{t.stopPropagation(),e()()},Vb=L('<div class="close svelte-1ome55p"></div>'),Rb={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 sa(t,e){U(e,!0),q(t,Rb);let i=f(e,"onClick",3,jh.noop);var o=Vb();o.__click=[Lb,i],b(t,o),z()}at(["click"]);var Yh=require("@vkontakte/videoplayer-shared/es2018"),Nb=L('<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>'),Db={hash:"svelte-8jhsry",code:".timer.svelte-8jhsry {border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around;}.timer.svelte-8jhsry:hover {background:rgba(31, 31, 31, .85)}.timer-canvas.svelte-8jhsry {width:50px;height:50px;position:absolute;}.timer-play-icon.svelte-8jhsry {width:22px;height:26px;}"};function fd(t,e){U(e,!0),q(t,Db);let i=f(e,"isRunning",3,!0),o=f(e,"onTimerEnded",3,Yh.noop),n=5e3,a=J(void 0),s,d,l=J(0),p;Ue(()=>{i()&&(d=Date.now(),B(l,pe(requestAnimationFrame($))))});let m=()=>{r(l)&&(cancelAnimationFrame(r(l)),B(l,0))},$=()=>{if(!i()){m();return}p=(Date.now()-d)/n,p<1?(s==null||s.clearRect(0,0,100,100),s==null||s.beginPath(),s==null||s.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*p),s==null||s.stroke(),B(l,pe(requestAnimationFrame($)))):o()()};Ft(()=>{if(s=r(a).getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{m()}}),Sn(()=>{m()});var u=Nb(),_=h(u);ft(_,w=>B(a,w),()=>r(a)),_e(2),g(u),b(t,u),z()}var Bb=(t,e,i)=>{e(!1),i()},Ob=L('<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),Hb={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 af(t,e){U(e,!0),q(t,Hb);let[i,o]=Be(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),s=Se(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,p=s.actions.internal.nextVideoClick,m=s.actions.internal.nextVideoAnnouncementShow,$=s.actions.internal.nextVideoAnnouncementClick,u=s.actions.internal.nextVideoAnnouncementAuto,_=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(p(!1),u())},y=()=>{e.clickCloseIcon(),_()};Ft(()=>{e.isHide||m(),e.isHide&&n()&&(p(!1),u())});var C=Fe(),T=ue(C);{var E=P=>{var A=Ob(),I=M(ue(A),2),V=h(I),H=h(V),j=h(H,!0);g(H);var O=M(H,2);sa(O,{onClick:y}),g(V);var X=M(V,2);X.__click=[Bb,p,$];var ne=h(X),Y=h(ne),fe=h(Y);let le;var Me=M(fe,2);{var Ae=re=>{let D=v(()=>a()&&n());fd(re,{get isRunning(){return r(D)},onTimerEnded:w})};R(Me,re=>{n()&&re(Ae)})}g(Y),g(ne);var me=M(ne,2),ae=h(me),Pe=h(ae,!0);g(ae),g(me),g(X),g(I),k((re,D)=>{ge(j,re),it(Y,`background-image: url('${e.thumb}')`),le=ee(fe,1,"thumb-overlay svelte-jfbaax",null,le,D),ge(Pe,e.title)},[()=>F("end_screen_next_video"),()=>({withOpacity:n()})]),b(P,A)};R(T,P=>{e.isHide||P(E)})}b(t,C),z(),o()}at(["click"]);var ys=require("@vkontakte/videoplayer-core/es2018"),Zh=require("@vkontakte/videoplayer-shared/es2018"),pn=require("@vkontakte/videoplayer-statistics/es2018");var lf=(t,e)=>Math.min(+(t+e).toFixed(2),1),df=(t,e)=>Math.max(+(t-e).toFixed(2),0),Xc=(t,e,i)=>{let o=lf(e,i);e<1&&t.actions.internal.setVolume(o)},Jc=(t,e,i)=>{let o=df(e,i);e>0&&t.actions.internal.setVolume(o)};var $s=({isAudioDisabled:t,audioDisabledHintCallback:e,isAudioAvailable:i,audioIsNotExistHintCallback:o})=>t?(e==null||e(),!1):i?!0:(o==null||o(),!1);var Ub=L('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),zb={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function cf(t,e){var zt,Kt;U(e,!0),q(t,zb);let[i,o]=Be(),n=()=>S(j,"$playbackState$",i),a=()=>S(O,"$adPlaybackState",i),s=()=>S(fe,"$disabledControls$",i),d=()=>S(X,"$positionExact$",i),l=()=>S(ne,"$duration$",i),p=()=>S(Q,"$isAudioAvailable$",i),m=()=>S(Y,"$volume$",i),$=()=>S(me,"$availablePlaybackRates$",i),u=()=>S(Ae,"$currentPlaybackRate$",i),_=()=>S(Le,"$isInteractiveTime$",i),w=()=>S(Ne,"$showInteractiveTimeIndicatorTooltip$",i),y=()=>S(Ve,"$isEnded$",i),C=()=>S(le,"$muted$",i),T=()=>S(Me,"$currentSubtitle$",i),E=()=>S(te,"$overlayContainer$",i),P=f(e,"nextButtonActive",3,!1),A=f(e,"prevButtonActive",3,!1),I=Se(),V=Ut(),H=I.getLogger().createComponentLog("KeyboardControls component"),j=I.state.playbackState$,O=I.ads.playbackState,X=I.state.positionExact$,ne=I.state.duration$,Y=I.state.volume$,fe=I.ui.controls.disabledControls$,le=I.state.muted$,Me=I.state.currentSubtitle$,Ae=I.state.currentPlaybackRate$,me=I.state.availablePlaybackRates$,ae=I.ui.contextMenu.openedByHotKey$,Pe=I.ui.contextMenu.lastActiveElem$,re=I.ui.contextMenu.visible$,D=I.ui.contextMenu.position$,Ve=I.state.isEnded$,te=I.ui.overlayContainer$,Ge=(zt=I.callbacks)==null?void 0:zt.onAudioDoesNotExistHint,ie=(Kt=I.callbacks)==null?void 0:Kt.onAudioDisabledHint,Q=I.state.isAudioAvailable$,W=I.state.isAudioDisabled,Le=I.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Ne}=fo(),Je=0,ye=!0,xe=J(void 0),De=()=>{var ve;return(ve=r(xe))==null?void 0:ve.focus()},Ze=ve=>(ve!==ye&&(ye=ve,Je=0),Je+=1,(V.controls.seekStepKeyboard+V.controls.seekStepKeyboard*Je)/1e3),ot=ve=>{var Re,$t;let G=ve.target,Te=(Re=G==null?void 0:G.getAttribute("role"))==null?void 0:Re.includes("menuitem"),se=G.classList.contains("btn"),Oe=ve.code;if(se&&Oe==="Space")return;let ze=ih.has(Oe);if(Te&&ze)return;let tt=!th.has(Oe);if(ve.ctrlKey&&tt||ve.altKey&&tt||ve.metaKey)return;let lt=Te&&Oe==="Escape";oh.has(Oe)||lt||e.hideContextMenu();let Ye=n()===ys.PlaybackState.PLAYING||n()===ys.PlaybackState.PAUSED,Xe=e.isAds&&(a()==="paused"||a()==="playing"),dt=!Xe&&!s().has("TIMELINE");if(Ye||Xe)switch(H({message:`key down, code: ${Oe}`}),Oe){case"KeyJ":case"ArrowLeft":{if(!dt)break;if(ve.ctrlKey||ve.altKey){let qe=I.actions.internal.getPrevEpisode();I.actions.internal.seekToPrevEpisode(qe),qe&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:qe.text}),ve.preventDefault()}else{let qe=ve.shiftKey?Ze(!1):V.controls.seekStepKeyboard/1e3,Pt=Math.max(d()-qe,0);d()>0&&(I.actions.internal.seekTime(Pt,pn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:qe.toString()}),ve.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!dt)break;if(ve.ctrlKey||ve.altKey){let qe=I.actions.internal.getNextEpisode();I.actions.internal.seekToNextEpisode(qe),qe&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:qe.text}),ve.preventDefault()}else{let qe=ve.shiftKey?Ze(!0):V.controls.seekStepKeyboard/1e3,Pt=Math.min(d()+qe,l());Math.round(d())<Math.round(l())&&(I.actions.internal.seekTime(Pt,pn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:qe.toString()}),ve.preventDefault())}break}case"ArrowUp":{if($s({isAudioDisabled:W,audioDisabledHintCallback:ie,isAudioAvailable:p(),audioIsNotExistHintCallback:Ge})){let qe=m(),Pt=V.controls.volumeStepKeyboard,ni=qe<=1;if(Xc(I,qe,Pt),ni){let Zt=Math.round(lf(qe,Pt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Zt}})}}ve.preventDefault();break}case"ArrowDown":{if($s({isAudioDisabled:W,audioDisabledHintCallback:ie,isAudioAvailable:p(),audioIsNotExistHintCallback:Ge})){let qe=m(),Pt=V.controls.volumeStepKeyboard,ni=qe>=0;if(Jc(I,qe,Pt),ni){let Zt=Math.round(df(qe,Pt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Zt}})}}ve.preventDefault();break}case"Comma":{if(ve.shiftKey){I.actions.internal.decrementPlaybackRate();let qe=$().find(Pt=>Pt.value===u());e.showHotKeyHelpers({type:"RATE_DOWN",text:qe==null?void 0:qe.displayValue}),ve.preventDefault()}else{if(Xe||n()!==ys.PlaybackState.PAUSED)break;let qe=Math.max(d()-V.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(qe,pn.SeekAction.DOUBLE_TAP),ve.preventDefault())}break}case"Period":{if(ve.shiftKey){I.actions.internal.incrementPlaybackRate();let qe=$().find(Pt=>Pt.value===u());e.showHotKeyHelpers({type:"RATE_UP",text:qe==null?void 0:qe.displayValue}),ve.preventDefault()}else{if(Xe||n()!==ys.PlaybackState.PAUSED)break;let qe=Math.min(d()+V.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(qe,pn.SeekAction.DOUBLE_TAP),ve.preventDefault())}break}case"KeyK":case"Space":if(!s().has("PLAY_BUTTON"))if(_()&&w()&&Ne.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{I.actions.internal.togglePlay();let qe="PLAY";n()===ys.PlaybackState.PAUSED?qe="PAUSE":y()&&(qe="REPLAY"),e.showHotKeyHelpers({type:qe})}ve.preventDefault();break;case"KeyM":{$s({isAudioDisabled:W,audioDisabledHintCallback:ie,isAudioAvailable:p(),audioIsNotExistHintCallback:Ge})&&(e.showHotKeyHelpers({type:C()?"VOLUME":"MUTE"}),I.actions.internal.toggleMuted()),ve.preventDefault();break}case"KeyF":e.toggleFullscreen(),ve.preventDefault();break;case"KeyC":I.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:($t=T())==null?void 0:$t.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),ve.preventDefault();break;case"KeyI":I.actions.internal.togglePictureInPicture(),ve.preventDefault();break;case"Digit1":case"Numpad1":if(ve.shiftKey){let qe=Qh(E());D.set(qe),Pe.set(G),ae.set(!0),re.set(!0),ve.preventDefault();break}e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.1,pn.SeekAction.DOUBLE_TAP),ve.preventDefault();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.2,pn.SeekAction.DOUBLE_TAP),ve.preventDefault();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.3,pn.SeekAction.DOUBLE_TAP),ve.preventDefault();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.4,pn.SeekAction.DOUBLE_TAP),ve.preventDefault();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.5,pn.SeekAction.DOUBLE_TAP),ve.preventDefault();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.6,pn.SeekAction.DOUBLE_TAP),ve.preventDefault();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.7,pn.SeekAction.DOUBLE_TAP),ve.preventDefault();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.8,pn.SeekAction.DOUBLE_TAP),ve.preventDefault();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.9,pn.SeekAction.DOUBLE_TAP),ve.preventDefault();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(0,pn.SeekAction.DOUBLE_TAP),ve.preventDefault();break;case"Slash":{ve.shiftKey&&V.features.hotKeyMapModal&&(e.showKeyMap(),ve.preventDefault());break}case"KeyN":ve.shiftKey&&P()&&I.actions.internal.nextVideoClick();break;case"KeyP":ve.shiftKey&&A()&&I.actions.internal.prevVideoClick();break;case"ShiftLeft":case"ShiftRight":ve.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:(0,Zh.checkNever)(Oe);break}},gt=ve=>{let G=ve.code;if(ve.ctrlKey||ve.altKey||ve.metaKey)return;let Te=n()===ys.PlaybackState.PLAYING||n()===ys.PlaybackState.PAUSED,se=e.isAds&&(a()==="paused"||a()==="playing");if(Te||se)switch(G){case"ShiftLeft":case"ShiftRight":Je=0;break}},et=F("aria_label_video_player");var mt=Ub();mt.__keyup=gt,mt.__keydown=ot,He(mt,"aria-label",et);var Et=h(mt);he(Et,()=>{var ve;return(ve=e.children)!=null?ve:oe}),g(mt),ft(mt,ve=>B(xe,ve),()=>r(xe)),b(t,mt);var Qt=z({focus:De});return o(),Qt}at(["keyup","keydown"]);var qb=L('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),Wb={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);}
|
|
144
|
+
Audio: ${r(l).audioCodec||""} ${(Qe=r(l).audioLanguage?`(${r(l).audioLanguage})`:"")!=null?Qe:""}`)}),_(O,be)};B(ge,O=>{(r(l).videoCodec||r(l).audioCodec)&&O(se)})}var Ee=A(ge,2);{var ne=O=>{var be=Cb(),te=A(h(be),2),Re=h(te,!0);g(te),g(be),E(()=>me(Re,r(l).viewport)),_(O,be)};B(Ee,O=>{r(l).viewport&&O(ne)})}var V=A(Ee,2);{var xe=O=>{var be=Tb(),te=A(h(be),2),Re=h(te,!0);g(te),g(be),E(()=>me(Re,r(l).videoSize)),_(O,be)};B(V,O=>{r(l).videoSize&&O(xe)})}var _e=A(V,2);{var ze=O=>{var be=Ib(),te=A(h(be),2),Re=h(te,!0);g(te),g(be),E(()=>me(Re,r(l).cdn)),_(O,be)};B(_e,O=>{r(l).cdn&&O(ze)})}var H=A(_e,2);{var le=O=>{var be=kb(),te=A(h(be),2),Re=h(te);g(te),g(be),E(()=>{var je;return me(Re,`${(je=r(l).volume)!=null?je:""} %`)}),_(O,be)};B(H,O=>{r(l).volume&&O(le)})}var he=A(H,2);{var ee=O=>{var be=Eb(),te=A(h(be),2),Re=h(te);g(te),g(be),E(je=>me(Re,`${je!=null?je:""} s`),[()=>r(l).buffer.toFixed(2)]),_(O,be)};B(he,O=>{r(l).buffer&&O(ee)})}var De=A(he,2);{var Ze=O=>{var be=Pb(),te=A(h(be),2),Re=h(te);g(te),g(be),E(je=>me(Re,`${je!=null?je:""} s`),[()=>r(l).liveLatency.toFixed(2)]),_(O,be)};B(De,O=>{r(l).liveLatency&&O(Ze)})}var we=A(De,2);{var Ve=O=>{var be=Ab(),te=A(h(be),2),Re=h(te,!0);g(te),g(be),E(je=>me(Re,je),[()=>[{value:r(l).currentVideoSegmentLength,title:"Video:"},{value:r(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:je})=>je).map(({value:je,title:Qe})=>`${Qe} ${((je!=null?je:0)/1e3).toFixed(2)} s`).join(" & ")]),_(O,be)};B(we,O=>{(r(l).currentVideoSegmentLength||r(l).currentAudioSegmentLength)&&O(Ve)})}var Ie=A(we,2),Ue=A(h(Ie),2),ct=h(Ue);g(Ue),g(Ie);var ut=A(Ie,2);{var nt=O=>{var be=Mb(),te=A(h(be),2);cd(te,{get values(){return r(T)}});var Re=A(te,2),je=h(Re);g(Re),g(be),E(Qe=>me(je,`${Qe!=null?Qe:""} Kbps`),[()=>r(l).speed.toFixed(2)]),_(O,be)};B(ut,O=>{r(l).speed&&O(nt)})}var Ct=A(ut,2);{var mt=O=>{var be=Lb(),te=A(h(be),2);cd(te,{get values(){return r(I)}});var Re=A(te,2),je=h(Re);g(Re),g(be),E(Qe=>me(je,`${Qe!=null?Qe:""} Kbps`),[()=>r(l).bitrate.toFixed(2)]),_(O,be)};B(Ct,O=>{r(l).bitrate&&O(mt)})}var Wt=A(Ct,2),ti=A(h(Wt),2);cd(ti,{get values(){return r(C)}});var Lt=A(ti,2),Nt=h(Lt,!0);g(Lt),g(Wt),g(W),g(P),E(O=>{var be,te;k=J(P,1,"container svelte-4deykz",null,k,O),me(Q,r(l).version),me(ct,`${(be=r(y))!=null?be:""} / ${(te=r(m))!=null?te:""} frames`),me(Nt,r(u))},[()=>({"container-mobile":n()})]),_(t,P),z(),o()}at(["click"]);var Xh=require("@vkontakte/videoplayer-shared/es2018"),Bb=(t,e)=>{t.stopPropagation(),e()()},Nb=L('<div class="close svelte-1ome55p"></div>'),Db={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 ra(t,e){U(e,!0),K(t,Db);let i=f(e,"onClick",3,Xh.noop);var o=Nb();o.__click=[Bb,i],_(t,o),z()}at(["click"]);var Jh=require("@vkontakte/videoplayer-shared/es2018"),Ob=L('<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>'),Hb={hash:"svelte-8jhsry",code:".timer.svelte-8jhsry {border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around;}.timer.svelte-8jhsry:hover {background:rgba(31, 31, 31, .85)}.timer-canvas.svelte-8jhsry {width:50px;height:50px;position:absolute;}.timer-play-icon.svelte-8jhsry {width:22px;height:26px;}"};function pd(t,e){U(e,!0),K(t,Hb);let i=f(e,"isRunning",3,!0),o=f(e,"onTimerEnded",3,Jh.noop),n=5e3,a=X(void 0),s,d,l=X(0),p;Fe(()=>{i()&&(d=Date.now(),D(l,pe(requestAnimationFrame(y))))});let m=()=>{r(l)&&(cancelAnimationFrame(r(l)),D(l,0))},y=()=>{if(!i()){m();return}p=(Date.now()-d)/n,p<1?(s==null||s.clearRect(0,0,100,100),s==null||s.beginPath(),s==null||s.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*p),s==null||s.stroke(),D(l,pe(requestAnimationFrame(y)))):o()()};Ut(()=>{if(s=r(a).getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{m()}}),In(()=>{m()});var u=Ob(),$=h(u);gt($,w=>D(a,w),()=>r(a)),$e(2),g(u),_(t,u),z()}var Fb=(t,e,i)=>{e(!1),i()},Ub=L('<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),zb={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 cf(t,e){U(e,!0),K(t,zb);let[i,o]=Ne(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),s=Ce(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,p=s.actions.internal.nextVideoClick,m=s.actions.internal.nextVideoAnnouncementShow,y=s.actions.internal.nextVideoAnnouncementClick,u=s.actions.internal.nextVideoAnnouncementAuto,$=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(p(!1),u())},b=()=>{e.clickCloseIcon(),$()};Ut(()=>{e.isHide||m(),e.isHide&&n()&&(p(!1),u())});var C=Oe(),T=ue(C);{var I=M=>{var P=Ub(),k=A(ue(P),2),R=h(k),W=h(R),Y=h(W,!0);g(W);var F=A(W,2);ra(F,{onClick:b}),g(R);var Q=A(R,2);Q.__click=[Fb,p,y];var oe=h(Q),Z=h(oe),re=h(Z);let de;var Ae=A(re,2);{var Me=ne=>{let V=v(()=>a()&&n());pd(ne,{get isRunning(){return r(V)},onTimerEnded:w})};B(Ae,ne=>{n()&&ne(Me)})}g(Z),g(oe);var ge=A(oe,2),se=h(ge),Ee=h(se,!0);g(se),g(ge),g(Q),g(k),E((ne,V)=>{me(Y,ne),st(Z,`background-image: url('${e.thumb}')`),de=J(re,1,"thumb-overlay svelte-jfbaax",null,de,V),me(Ee,e.title)},[()=>q("end_screen_next_video"),()=>({withOpacity:n()})]),_(M,P)};B(T,M=>{e.isHide||M(I)})}_(t,C),z(),o()}at(["click"]);var ys=require("@vkontakte/videoplayer-core/es2018"),e1=require("@vkontakte/videoplayer-shared/es2018"),pn=require("@vkontakte/videoplayer-statistics/es2018");var uf=(t,e)=>Math.min(+(t+e).toFixed(2),1),pf=(t,e)=>Math.max(+(t-e).toFixed(2),0),Xc=(t,e,i)=>{let o=uf(e,i);e<1?t.actions.internal.setVolume(o):Se(t.state.muted$)&&t.actions.external.setMuted(!1)},Jc=(t,e,i)=>{let o=pf(e,i);e>0&&t.actions.internal.setVolume(o)};var $s=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var Wb=(t,e)=>{e(t)},Kb=L('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),Qb={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function ff(t,e){var Lt,Nt;U(e,!0),K(t,Qb);let[i,o]=Ne(),n=()=>S(Y,"$playbackState$",i),a=()=>S(F,"$adPlaybackState",i),s=()=>S(re,"$disabledControls$",i),d=()=>S(Q,"$positionExact$",i),l=()=>S(oe,"$duration$",i),p=()=>S(le,"$isAudioAvailable$",i),m=()=>S(Z,"$volume$",i),y=()=>S(ge,"$availablePlaybackRates$",i),u=()=>S(Me,"$currentPlaybackRate$",i),$=()=>S(ee,"$isInteractiveTime$",i),w=()=>S(De,"$showInteractiveTimeIndicatorTooltip$",i),b=()=>S(xe,"$isEnded$",i),C=()=>S(de,"$muted$",i),T=()=>S(Ae,"$currentSubtitle$",i),I=()=>S(_e,"$overlayContainer$",i),M=f(e,"nextButtonActive",3,!1),P=f(e,"prevButtonActive",3,!1),k=Ce(),R=zt(),W=k.getLogger().createComponentLog("KeyboardControls component"),Y=k.state.playbackState$,F=k.ads.playbackState,Q=k.state.positionExact$,oe=k.state.duration$,Z=k.state.volume$,re=k.ui.controls.disabledControls$,de=k.state.muted$,Ae=k.state.currentSubtitle$,Me=k.state.currentPlaybackRate$,ge=k.state.availablePlaybackRates$,se=k.ui.contextMenu.openedByHotKey$,Ee=k.ui.contextMenu.lastActiveElem$,ne=k.ui.contextMenu.visible$,V=k.ui.contextMenu.position$,xe=k.state.isEnded$,_e=k.ui.overlayContainer$,ze=(Lt=k.callbacks)==null?void 0:Lt.onAudioDoesNotExistHint,H=(Nt=k.callbacks)==null?void 0:Nt.onAudioDisabledHint,le=k.state.isAudioAvailable$,he=k.state.isAudioDisabled,ee=k.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:De}=lo(),Ze=0,we=!0,Ve=X(void 0),Ie=O=>(O!==we&&(we=O,Ze=0),Ze+=1,(R.controls.seekStepKeyboard+R.controls.seekStepKeyboard*Ze)/1e3),Ue=(O,be=!1)=>{var yi,Jt;let te=O.target,Re=(yi=te==null?void 0:te.getAttribute("role"))==null?void 0:yi.includes("menuitem"),je=te.classList.contains("btn"),Qe=O.code;if(je&&Qe==="Space")return!1;let Le=rh.has(Qe);if(Re&&Le)return!1;let rt=!nh.has(Qe);if(O.ctrlKey&&rt||O.altKey&&rt||O.metaKey)return!1;let et=Re&&Qe==="Escape";sh.has(Qe)||et||e.hideContextMenu();let _t=n()===ys.PlaybackState.PLAYING||n()===ys.PlaybackState.PAUSED,it=e.isAds&&(a()==="paused"||a()==="playing"),Xe=!it&&!s().has("TIMELINE");if(!(_t||it))return!1;W({message:`key down, code: ${Qe}, isExternal = ${be}`});let Kt=!1,bt=()=>{Kt=!0,be||O.preventDefault()};switch(Qe){case"KeyJ":case"ArrowLeft":{if(!Xe)break;if(O.ctrlKey||O.altKey){let Ge=k.actions.internal.getPrevEpisode();k.actions.internal.seekToPrevEpisode(Ge),Ge&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:Ge.text}),bt()}else{let Ge=O.shiftKey?Ie(!1):R.controls.seekStepKeyboard/1e3,Yt=Math.max(d()-Ge,0);d()>0&&(k.actions.internal.seekTime(Yt,pn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:Ge.toString()}),bt())}break}case"KeyL":case"ArrowRight":{if(!Xe)break;if(O.ctrlKey||O.altKey){let Ge=k.actions.internal.getNextEpisode();k.actions.internal.seekToNextEpisode(Ge),Ge&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:Ge.text}),bt()}else{let Ge=O.shiftKey?Ie(!0):R.controls.seekStepKeyboard/1e3,Yt=Math.min(d()+Ge,l());Math.round(d())<Math.round(l())&&(k.actions.internal.seekTime(Yt,pn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:Ge.toString()}),bt())}break}case"ArrowUp":{if($s({isAudioDisabled:he,audioDisabledHintCallback:H,isAudioAvailable:p(),audioIsNotExistHintCallback:ze,isAds:e.isAds})){let Ge=m(),Yt=R.controls.volumeStepKeyboard,Vi=Ge<=1;if(Xc(k,Ge,Yt),Vi){let Oi=Math.round(uf(Ge,Yt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Oi}})}}bt();break}case"ArrowDown":{if($s({isAudioDisabled:he,audioDisabledHintCallback:H,isAudioAvailable:p(),audioIsNotExistHintCallback:ze,isAds:e.isAds})){let Ge=m(),Yt=R.controls.volumeStepKeyboard,Vi=Ge>=0;if(Jc(k,Ge,Yt),Vi){let Oi=Math.round(pf(Ge,Yt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Oi}})}}bt();break}case"Comma":{if(O.shiftKey){k.actions.internal.decrementPlaybackRate();let Ge=y().find(Yt=>Yt.value===u());e.showHotKeyHelpers({type:"RATE_DOWN",text:Ge==null?void 0:Ge.displayValue}),bt()}else{if(it||n()!==ys.PlaybackState.PAUSED)break;let Ge=Math.max(d()-R.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),k.actions.internal.clearDelayedBufferingCheckTimeout(),k.actions.internal.seekTime(Ge,pn.SeekAction.DOUBLE_TAP),bt())}break}case"Period":{if(O.shiftKey){k.actions.internal.incrementPlaybackRate();let Ge=y().find(Yt=>Yt.value===u());e.showHotKeyHelpers({type:"RATE_UP",text:Ge==null?void 0:Ge.displayValue}),bt()}else{if(it||n()!==ys.PlaybackState.PAUSED)break;let Ge=Math.min(d()+R.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),k.actions.internal.clearDelayedBufferingCheckTimeout(),k.actions.internal.seekTime(Ge,pn.SeekAction.DOUBLE_TAP),bt())}break}case"KeyK":case"Space":if(!s().has("PLAY_BUTTON"))if($()&&w()&&De.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{k.actions.internal.togglePlay();let Ge="PLAY";n()===ys.PlaybackState.PAUSED?Ge="PAUSE":b()&&(Ge="REPLAY"),e.showHotKeyHelpers({type:Ge})}bt();break;case"KeyM":{$s({isAudioDisabled:he,audioDisabledHintCallback:H,isAudioAvailable:p(),audioIsNotExistHintCallback:ze,isAds:e.isAds})&&(e.showHotKeyHelpers({type:C()?"VOLUME":"MUTE"}),k.actions.internal.toggleMuted()),bt();break}case"KeyF":e.toggleFullscreen(),bt();break;case"KeyC":k.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(Jt=T())==null?void 0:Jt.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),bt();break;case"KeyI":k.actions.internal.togglePictureInPicture(),bt();break;case"Digit1":case"Numpad1":if(O.shiftKey){let Ge=jh(I());V.set(Ge),Ee.set(te),se.set(!0),ne.set(!0),bt();break}e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.1,pn.SeekAction.DOUBLE_TAP),bt();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.2,pn.SeekAction.DOUBLE_TAP),bt();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.3,pn.SeekAction.DOUBLE_TAP),bt();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.4,pn.SeekAction.DOUBLE_TAP),bt();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.5,pn.SeekAction.DOUBLE_TAP),bt();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.6,pn.SeekAction.DOUBLE_TAP),bt();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.7,pn.SeekAction.DOUBLE_TAP),bt();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.8,pn.SeekAction.DOUBLE_TAP),bt();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.9,pn.SeekAction.DOUBLE_TAP),bt();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(0,pn.SeekAction.DOUBLE_TAP),bt();break;case"Slash":{O.shiftKey&&R.features.hotKeyMapModal&&(e.showKeyMap(),bt());break}case"KeyN":O.shiftKey&&M()&&(k.actions.internal.nextVideoClick(),bt());break;case"KeyP":O.shiftKey&&P()&&(k.actions.internal.prevVideoClick(),bt());break;case"ShiftLeft":case"ShiftRight":bt();break;case"Tab":case"Escape":case"Enter":break;default:(0,e1.checkNever)(Qe);break}return Kt},ct=O=>{let be=O.code;if(O.ctrlKey||O.altKey||O.metaKey)return;let te=n()===ys.PlaybackState.PLAYING||n()===ys.PlaybackState.PAUSED,Re=e.isAds&&(a()==="paused"||a()==="playing");if(te||Re)switch(be){case"ShiftLeft":case"ShiftRight":Ze=0;break}},ut=q("aria_label_video_player"),nt=()=>{var O;return(O=r(Ve))==null?void 0:O.focus()},Ct=O=>O.type==="keydown"?Ue(O,!0):(O.type==="keyup"&&ct(O),!1);var mt=Kb();mt.__keyup=ct,mt.__keydown=[Wb,Ue],Be(mt,"aria-label",ut);var Wt=h(mt);ve(Wt,()=>{var O;return(O=e.children)!=null?O:ie}),g(mt),gt(mt,O=>D(Ve,O),()=>r(Ve)),_(t,mt);var ti=z({focus:nt,handleExternalKeyboardEvent:Ct});return o(),ti}at(["keyup","keydown"]);var Gb=L('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),Yb={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);}
|
|
145
145
|
|
|
146
146
|
@keyframes svelte-1dbnjb1-dot_animation {
|
|
147
147
|
0% {
|
|
@@ -154,7 +154,7 @@ Try switching the\xA0quality to\xA0Auto.`},Mh=I_;var ts=new Map;ts.set(Ya.Interf
|
|
|
154
154
|
opacity: 0.2;
|
|
155
155
|
}
|
|
156
156
|
}.dot.svelte-1dbnjb1 {border-radius:4px;width:8px;height:8px;background:var(--btn-color);animation-duration:750ms;
|
|
157
|
-
animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function
|
|
157
|
+
animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function sa(t,e){K(t,Yb);let i=f(e,"style",3,"");var o=Gb();E(()=>st(o,i())),_(t,o)}var jb=ye('<svg><!><g filter="url(#a)"><path fill="#fff" d="M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"></path></g><defs><filter id="a" width="23" height="23" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2422_111980"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2422_111980" result="shape"></feBlend></filter></defs></svg>');function mf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=jb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img",...i})),_(t,o)}var aa=require("@vkontakte/videoplayer-shared/es2018"),Zb=t=>{t.stopPropagation()},Xb=L("<button><!></button>"),Jb={hash:"svelte-wr0kwr",code:`.btn.svelte-wr0kwr {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;}
|
|
158
158
|
|
|
159
159
|
/* \u041D\u0438\u0436\u0435 \u0438\u0434\u0443\u0442 \u0430\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u044B\u0435 \u0438 \u0441\u043F\u0435\u0446\u0438\u0444\u0438\u043A \u043A\u043B\u0430\u0441\u0441\u044B \u0434\u043B\u044F \u043A\u043D\u043E\u043F\u043E\u043A \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043C\u043E\u0436\u043D\u043E \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u044C \u0447\u0435\u0440\u0435\u0437 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 className */.w-max.svelte-wr0kwr {width:100%;}.btn--live.svelte-wr0kwr {padding:10px 4px;}.btn-jc-l.svelte-wr0kwr {justify-content:left;}
|
|
160
160
|
|
|
@@ -162,22 +162,22 @@ Try switching the\xA0quality to\xA0Auto.`},Mh=I_;var ts=new Map;ts.set(Ya.Interf
|
|
|
162
162
|
/* mobile */
|
|
163
163
|
/* container mobile */.btn-m.svelte-wr0kwr {position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.btn-m--play.svelte-wr0kwr {width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px;}.btn-m--play.svelte-wr0kwr svg {transform:scale(2);}.btn-m--prev.svelte-wr0kwr,
|
|
164
164
|
.btn-m--next.svelte-wr0kwr {position:absolute;width:50px;height:50px;}.btn-m--prev.svelte-wr0kwr {right:calc(100% + 35px);}.btn-m--next.svelte-wr0kwr {left:calc(100% + 35px);}.btn.svelte-wr0kwr:disabled {cursor:default;
|
|
165
|
-
/* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-wr0kwr:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-wr0kwr {padding-right:0;}.pl-0.svelte-wr0kwr {padding-left:0;}`};function
|
|
165
|
+
/* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-wr0kwr:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-wr0kwr {padding-right:0;}.pl-0.svelte-wr0kwr {padding-left:0;}`};function Bt(t,e){U(e,!0),K(t,Jb);let i=f(e,"className",3,""),o=f(e,"style",3,""),n=f(e,"disabled",3,void 0),a=f(e,"testId",3,void 0),s=f(e,"ariaHidden",3,void 0),d=f(e,"ariaLabel",3,void 0),l=f(e,"ref",15,void 0),p=f(e,"ariaKeyShortCut",3,void 0),m=f(e,"ariaExpanded",3,void 0),y=f(e,"tabIndex",3,0),u=f(e,"click",3,aa.noop),$=f(e,"focus",3,aa.noop),w=f(e,"blur",3,aa.noop),b=v(()=>u()===aa.noop?null:P=>{P.stopPropagation(),u()(P)}),C=v(()=>$()===aa.noop?null:P=>{P.preventDefault(),$()()}),T=v(()=>w()===aa.noop?null:P=>{P.preventDefault(),w()()});var I=Xb();I.__pointerdown=[Zb],I.__click=function(...P){var k;(k=r(b))==null||k.apply(this,P)};var M=h(I);ve(M,()=>{var P;return(P=e.children)!=null?P:ie}),g(I),gt(I,P=>l(P),()=>l()),E(()=>{var P,k,R,W,Y,F,Q;J(I,1,`btn ${(P=i())!=null?P:""}`,"svelte-wr0kwr"),st(I,o()||null),I.disabled=(k=n())!=null?k:null,Be(I,"aria-hidden",(R=s())!=null?R:null),Be(I,"aria-label",(W=d())!=null?W:null),Be(I,"aria-keyshortcuts",(Y=p())!=null?Y:null),Be(I,"aria-expanded",(F=m())!=null?F:null),Be(I,"data-testid",(Q=a())!=null?Q:null),Be(I,"tabindex",y()),Be(I,"role",e.role)}),kt("focus",I,function(...P){var k;(k=r(C))==null||k.apply(this,P)}),kt("blur",I,function(...P){var k;(k=r(T))==null||k.apply(this,P)}),_(t,I),z()}at(["pointerdown","click"]);var e$=L('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),t$=L('<div class="modal-overlay svelte-1witlsj"><div class="modal-container svelte-1witlsj"><!> <div class="modal-scroll svelte-1witlsj"><div class="modal-main svelte-1witlsj"><!></div></div></div></div>'),i$={hash:"svelte-1witlsj",code:".modal-overlay.svelte-1witlsj {position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center;}.modal-container.svelte-1witlsj {display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px;}.modal-header.svelte-1witlsj {box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24);}.modal-title.svelte-1witlsj {margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.modal-scroll.svelte-1witlsj {overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar {width:8px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track {box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover {background-color:#777;}.modal-main.svelte-1witlsj {margin:-8px -4px 0 0;}"};function vf(t,e){U(e,!0),K(t,i$);let i=f(e,"showHeader",3,!0),o=f(e,"showCloseCross",3,!0),n=q("hotkey_map_modal_close_btn_text");var a=t$(),s=h(a),d=h(s);{var l=u=>{var $=e$(),w=h($),b=h(w,!0);g(w);var C=A(w,2);{var T=I=>{Bt(I,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:n,children:(M,P)=>{mf(M,{})},$$slots:{default:!0}})};B(C,I=>{o()&&I(T)})}g($),E(()=>me(b,e.title)),_(u,$)};B(d,u=>{i()&&u(l)})}var p=A(d,2),m=h(p),y=h(m);ve(y,()=>{var u;return(u=e.children)!=null?u:ie}),g(m),g(p),g(s),g(a),_(t,a),z()}var o$=new Set(["BR"]),t1=t=>{var n;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let a=i[o],s=a.tagName;o$.has(s)||(n=a.parentElement)==null||n.removeChild(a)}return e.innerHTML};var n$=L('<li class="hot-key-map-item svelte-quklnq"><span class="hot-key-map-item-description svelte-quklnq"><!></span> <span class="hot-key-map-item-value svelte-quklnq"> </span></li>'),r$=L('<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>'),s$=L('<div class="hot-key-map svelte-quklnq"></div>'),a$={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 ff(t,e){U(e,!1),q(t,o$);let[i,o]=Be(),n=()=>S(s,"$data",i),a=Se(),{data:s,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};_r(),pf(t,{get title(){return n().title},onClose:l,children:(p,m)=>{var $=i$();Ti($,5,()=>n().groups,({title:u,items:_})=>u,(u,_)=>{let w=()=>r(_).title,y=()=>r(_).items;var C=t$(),T=h(C),E=h(T,!0);g(T);var P=M(T,2);Ti(P,5,y,({description:A,value:I})=>I,(A,I)=>{let V=()=>r(I).description,H=()=>r(I).value;var j=e$(),O=h(j),X=h(O);Gl(X,()=>Xh(V()),!1,!1),g(O);var ne=M(O,2),Y=h(ne,!0);g(ne),g(j),k(()=>ge(Y,H())),b(A,j)}),g(P),g(C),k(()=>ge(E,w())),b(u,C)}),g($),b(p,$)},$$slots:{default:!0}}),z(),o()}var sm=require("@vkontakte/videoplayer-shared/es2018");var ga=require("@vkontakte/videoplayer-core/es2018");var mL=require("@vkontakte/videoplayer-shared/es2018");var n$=L('<div class="pillow svelte-1oe0j8n"><!></div>'),r$={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 mf(t,e){q(t,r$);var i=n$(),o=h(i);he(o,()=>{var n;return(n=e.children)!=null?n:oe}),g(i),b(t,i)}var sl=require("@vkontakte/videoplayer-shared/es2018");var s$=be('<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 vf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=s$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(2),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var a$=be('<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 gf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=a$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(2),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var l$=be('<svg><!><path fill="currentColor" d="M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"></path></svg>');function hf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=l$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var d$=be('<svg><!><path fill="currentColor" d="M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"></path></svg>');function md(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=d$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i})),b(t,o)}var c$=be('<svg><!><path fill="currentColor" d="M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"></path><path fill="currentColor" fill-rule="evenodd" d="M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02" clip-rule="evenodd"></path></svg>');function vd(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=c$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(2),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i})),b(t,o)}var eu=t=>{switch(t){case sl.VideoQuality.Q_720P:return hf;case sl.VideoQuality.Q_1080P:return md;case sl.VideoQuality.Q_1440P:return vd;case sl.VideoQuality.Q_2160P:return vf;case sl.VideoQuality.Q_4320P:return gf}};var u$=be('<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 _f(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=u$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img",...i})),b(t,o)}var p$=be('<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 bf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=p$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(2),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i})),b(t,o)}var f$=L('<div aria-hidden="true"><!> <!></div>'),m$={hash:"svelte-8t5w85",code:'.icon.svelte-8t5w85 {display:flex;position:relative;width:24px;height:24px;}.icon.svelte-8t5w85 .pillow {position:absolute;top:1px;right:-9px;}.icon.triple.svelte-8t5w85 .pillow {right:-13px;}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full {visibility:hidden;opacity:0;}'};function gd(t,e){U(e,!0),q(t,m$);let i=f(e,"isMobile",3,!1),o=f(e,"currentQuality",3,void 0),n=v(()=>eu(o())),a=v(()=>!!r(n)&&[md,vd].includes(r(n)));var s=Fe(),d=ue(s);{var l=m=>{_f(m,{})},p=m=>{var $=f$();let u;var _=h($);{var w=T=>{mf(T,{children:(E,P)=>{var A=Fe(),I=ue(A);Ii(I,()=>r(n),(V,H)=>{H(V,{})}),b(E,A)},$$slots:{default:!0}})};R(_,T=>{r(n)&&T(w)})}var y=M(_,2);let C=v(()=>r(n)?"settings-icon--labeled":"settings-icon");bf(y,{get"data-testid"(){return r(C)},fill:"var(--btn-color, #fff)"}),g($),k(T=>u=ee($,1,"icon svelte-8t5w85",null,u,T),[()=>({triple:r(a)})]),b(m,$)};R(d,m=>{i()?m(l):m(p,!1)})}b(t,s),z()}var v$=L('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),g$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function al(t,e){U(e,!0),q(t,g$);let[i,o]=Be(),n=()=>S(e.ref$,"$ref$",i),a=()=>S(m,"$settingsMenuVisible",i),s=()=>S(_,"$isMobile",i),d=()=>S(p,"$currentQuality",i),l=Se(),p=l.state.currentQuality$,m=l.ui.settingsMenu.visible$,$=l.actions.internal.openSettingsMenu,u=l.actions.internal.closeSettingsMenu,_=l.ui.isMobile,w=l.ui.t,y=J(void 0);Ue(()=>{n()&&xt(()=>{e.ref$.set(r(y))})});let C=v(()=>a()?w("tooltip_settings_on"):w("tooltip_settings_off"));async function T(P){let A=bs(P);a()?u():$(A,xo)}let E=v(()=>a()?"opened":"");Vt(t,{get className(){return r(E)},testId:"btn-settings",click:T,get ariaLabel(){return r(C)},get ariaExpanded(){return a()},get ref(){return r(y)},set ref(P){B(y,pe(P))},children:(P,A)=>{var I=v$(),V=h(I);gd(V,{get isMobile(){return s()},get currentQuality(){return d()}}),g(I),b(P,I)},$$slots:{default:!0}}),z(),o()}var h$=be('<svg><!><path fill="var(--btn-color, #fff)" d="M3 0h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3m1 9h2a1 1 0 0 0 0-2H4a1 1 0 0 0 0 2m5 0h7a1 1 0 1 0 0-2H9a1 1 0 0 0 0 2m-5 4h7a1 1 0 1 0 0-2H4a1 1 0 1 0 0 2m10 0h2a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2"></path></svg>');function $f(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=h$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"16",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",role:"img",...i})),b(t,o)}var _$=be('<svg><!><path fill="var(--btn-color, #fff)" d="M14.692.428c2.293 0 3.124.24 3.962.687a4.67 4.67 0 0 1 1.944 1.944c.449.839.687 1.67.687 3.962v3.958c0 2.292-.238 3.123-.687 3.961a4.67 4.67 0 0 1-1.944 1.944c-.838.449-1.67.687-3.962.687H7.307c-2.293 0-3.124-.238-3.962-.687A4.67 4.67 0 0 1 1.4 14.94c-.448-.838-.687-1.669-.687-3.961V7.02c0-2.292.239-3.123.687-3.962a4.67 4.67 0 0 1 1.944-1.944C4.183.667 5.015.428 7.307.428zm.243 1.716-7.628-.001c-1.832 0-2.484.126-3.154.484a2.96 2.96 0 0 0-1.24 1.24c-.343.64-.473 1.264-.484 2.912v4.2c0 1.83.125 2.483.483 3.153q.433.809 1.241 1.24c.67.36 1.322.485 3.154.485h7.385c1.832 0 2.484-.126 3.154-.484a2.96 2.96 0 0 0 1.24-1.241c.36-.67.485-1.322.485-3.153V7.02c0-1.831-.126-2.483-.484-3.153a2.96 2.96 0 0 0-1.241-1.24c-.64-.343-1.263-.473-2.911-.484ZM11 10.714a.857.857 0 1 1 0 1.714H5.857a.857.857 0 0 1 0-1.714zm5.142 0a.857.857 0 1 1 0 1.714h-1.714a.857.857 0 0 1 0-1.714zm0-3.428a.857.857 0 1 1 0 1.714H11a.857.857 0 1 1 0-1.714zm-8.571 0a.857.857 0 0 1 0 1.714H5.857a.857.857 0 0 1 0-1.714z"></path></svg>');function hd(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=_$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"18",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",role:"img",...i})),b(t,o)}function yf(t,e){U(e,!0);let i=f(e,"isSubtitlesEnabled",3,!1),n=Se().ui.t,a=v(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Vt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(a)},get click(){return e.click},get ariaKeyShortCut(){return Hr.KeyC},children:(s,d)=>{var l=Fe(),p=ue(l);{var m=u=>{$f(u,{})},$=u=>{hd(u,{})};R(p,u=>{i()?u(m):u($,!1)})}b(s,l)},$$slots:{default:!0}}),z()}var b$=L('<span class="duration svelte-sz9er7"> </span>'),$$=L('<div><span class="current svelte-sz9er7"> </span> <!></div>'),y$={hash:"svelte-sz9er7",code:".time.svelte-sz9er7 {display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px;color:var(--controls-time);}.time.mobile.svelte-sz9er7 {padding:0 0 0 8px;}.current.svelte-sz9er7 {position:relative;}.duration.svelte-sz9er7 {opacity:0.7;}.duration.svelte-sz9er7:before {content:' / ';white-space:pre;}"};function _d(t,e){U(e,!0),q(t,y$);let i=f(e,"isMobile",3,!1),o=f(e,"showDuration",3,!0),n=f(e,"ref",15),a=v(()=>un(e.duration)),s=v(()=>un(e.position));var d=$$();let l;var p=h(d),m=h(p,!0);g(p);var $=M(p,2);{var u=_=>{var w=b$(),y=h(w,!0);g(w),k(()=>ge(y,r(a))),b(_,w)};R($,_=>{o()&&_(u)})}g(d),ft(d,_=>n(_),()=>n()),k(_=>{l=ee(d,1,"time svelte-sz9er7",null,l,_),ge(m,r(s))},[()=>({mobile:i()})]),b(t,d),z()}var $d=require("@vkontakte/videoplayer-shared/es2018");var x$=be('<svg xmlns="http://www.w3.org/2000/svg" class="icon svelte-1n5yyua" aria-hidden="true"><g fill="var(--btn-color, #fff)" fill-rule="evenodd"><path class="wave2 svelte-1n5yyua" d="M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503zm3-2A.875.875 0 1 1 20.12 6.88c.263.264.62.74.966 1.432.517 1.033.843 2.255.89 3.716-.047 1.403-.373 2.625-.89 3.658-.346.692-.703 1.168-.966 1.432a.875.875 0 1 1-1.238-1.238c.138-.137.383-.464.639-.976.407-.814.667-1.79.705-2.876-.038-1.144-.298-2.12-.705-2.934-.256-.512-.501-.839-.639-.976z"></path><path class="wave1 svelte-1n5yyua" d="M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503z"></path><path class="cross svelte-1n5yyua" d="m20 10.763 2.381-2.382A.875.875 0 1 1 23.62 9.62L21.237 12l2.382 2.381a.875.875 0 1 1-1.238 1.238L20 13.237l-2.381 2.382a.875.875 0 1 1-1.238-1.238L18.763 12 16.38 9.619A.875.875 0 1 1 17.62 8.38zm-7.02 8.06c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963z"></path></g></svg>'),w$={hash:"svelte-1n5yyua",code:`.icon.svelte-1n5yyua {display:block;width:24px;height:24px;}.icon.svelte-1n5yyua .cross:where(.svelte-1n5yyua) {visibility:hidden;}.icon[data-value='off'].svelte-1n5yyua .wave1:where(.svelte-1n5yyua),
|
|
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 gf(t,e){U(e,!1),K(t,a$);let[i,o]=Ne(),n=()=>S(s,"$data",i),a=Ce(),{data:s,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};xr(),vf(t,{get title(){return n().title},onClose:l,children:(p,m)=>{var y=s$();Ci(y,5,()=>n().groups,({title:u,items:$})=>u,(u,$)=>{let w=()=>r($).title,b=()=>r($).items;var C=r$(),T=h(C),I=h(T,!0);g(T);var M=A(T,2);Ci(M,5,b,({description:P,value:k})=>k,(P,k)=>{let R=()=>r(k).description,W=()=>r(k).value;var Y=n$(),F=h(Y),Q=h(F);Ql(Q,()=>t1(R()),!1,!1),g(F);var oe=A(F,2),Z=h(oe,!0);g(oe),g(Y),E(()=>me(Z,W())),_(P,Y)}),g(M),g(C),E(()=>me(I,w())),_(u,C)}),g(y),_(p,y)},$$slots:{default:!0}}),z(),o()}var dm=require("@vkontakte/videoplayer-shared/es2018");var va=require("@vkontakte/videoplayer-core/es2018");var _L=require("@vkontakte/videoplayer-shared/es2018");var l$=L('<div class="pillow svelte-1oe0j8n"><!></div>'),d$={hash:"svelte-1oe0j8n",code:".pillow.svelte-1oe0j8n {background-color:#679FF8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;padding:2px 4px;border-radius:12px;}"};function hf(t,e){K(t,d$);var i=l$(),o=h(i);ve(o,()=>{var n;return(n=e.children)!=null?n:ie}),g(i),_(t,i)}var dl=require("@vkontakte/videoplayer-shared/es2018");var c$=ye('<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 _f(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=c$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),_(t,o)}var u$=ye('<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 bf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=u$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),_(t,o)}var p$=ye('<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 $f(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=p$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),_(t,o)}var f$=ye('<svg><!><path fill="currentColor" d="M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"></path></svg>');function fd(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=f$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i})),_(t,o)}var m$=ye('<svg><!><path fill="currentColor" d="M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"></path><path fill="currentColor" fill-rule="evenodd" d="M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02" clip-rule="evenodd"></path></svg>');function md(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=m$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i})),_(t,o)}var eu=t=>{switch(t){case dl.VideoQuality.Q_720P:return $f;case dl.VideoQuality.Q_1080P:return fd;case dl.VideoQuality.Q_1440P:return md;case dl.VideoQuality.Q_2160P:return _f;case dl.VideoQuality.Q_4320P:return bf}};var v$=ye('<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 yf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=v$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img",...i})),_(t,o)}var g$=ye('<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 xf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=g$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i})),_(t,o)}var h$=L('<div aria-hidden="true"><!> <!></div>'),_$={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 vd(t,e){U(e,!0),K(t,_$);let i=f(e,"isMobile",3,!1),o=f(e,"currentQuality",3,void 0),n=v(()=>eu(o())),a=v(()=>!!r(n)&&[fd,md].includes(r(n)));var s=Oe(),d=ue(s);{var l=m=>{yf(m,{})},p=m=>{var y=h$();let u;var $=h(y);{var w=T=>{hf(T,{children:(I,M)=>{var P=Oe(),k=ue(P);Ti(k,()=>r(n),(R,W)=>{W(R,{})}),_(I,P)},$$slots:{default:!0}})};B($,T=>{r(n)&&T(w)})}var b=A($,2);let C=v(()=>r(n)?"settings-icon--labeled":"settings-icon");xf(b,{get"data-testid"(){return r(C)},fill:"var(--btn-color, #fff)"}),g(y),E(T=>u=J(y,1,"icon svelte-8t5w85",null,u,T),[()=>({triple:r(a)})]),_(m,y)};B(d,m=>{i()?m(l):m(p,!1)})}_(t,s),z()}var b$=L('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),$$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function cl(t,e){U(e,!0),K(t,$$);let[i,o]=Ne(),n=()=>S(e.ref$,"$ref$",i),a=()=>S(m,"$settingsMenuVisible",i),s=()=>S($,"$isMobile",i),d=()=>S(p,"$currentQuality",i),l=Ce(),p=l.state.currentQuality$,m=l.ui.settingsMenu.visible$,y=l.actions.internal.openSettingsMenu,u=l.actions.internal.closeSettingsMenu,$=l.ui.isMobile,w=l.ui.t,b=X(void 0);Fe(()=>{n()&&St(()=>{e.ref$.set(r(b))})});let C=w("aria_label_settings");async function T(M){let P=bs(M);a()?u():y(P,wo)}let I=v(()=>a()?"opened":"");Bt(t,{get className(){return r(I)},testId:"btn-settings",click:T,ariaLabel:C,get ariaExpanded(){return a()},get ref(){return r(b)},set ref(M){D(b,pe(M))},children:(M,P)=>{var k=b$(),R=h(k);vd(R,{get isMobile(){return s()},get currentQuality(){return d()}}),g(k),_(M,k)},$$slots:{default:!0}}),z(),o()}var y$=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M3 0h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3m1 9h2a1 1 0 0 0 0-2H4a1 1 0 0 0 0 2m5 0h7a1 1 0 1 0 0-2H9a1 1 0 0 0 0 2m-5 4h7a1 1 0 1 0 0-2H4a1 1 0 1 0 0 2m10 0h2a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2"></path></svg>');function wf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=y$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"16",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",role:"img",...i})),_(t,o)}var x$=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M14.692.428c2.293 0 3.124.24 3.962.687a4.67 4.67 0 0 1 1.944 1.944c.449.839.687 1.67.687 3.962v3.958c0 2.292-.238 3.123-.687 3.961a4.67 4.67 0 0 1-1.944 1.944c-.838.449-1.67.687-3.962.687H7.307c-2.293 0-3.124-.238-3.962-.687A4.67 4.67 0 0 1 1.4 14.94c-.448-.838-.687-1.669-.687-3.961V7.02c0-2.292.239-3.123.687-3.962a4.67 4.67 0 0 1 1.944-1.944C4.183.667 5.015.428 7.307.428zm.243 1.716-7.628-.001c-1.832 0-2.484.126-3.154.484a2.96 2.96 0 0 0-1.24 1.24c-.343.64-.473 1.264-.484 2.912v4.2c0 1.83.125 2.483.483 3.153q.433.809 1.241 1.24c.67.36 1.322.485 3.154.485h7.385c1.832 0 2.484-.126 3.154-.484a2.96 2.96 0 0 0 1.24-1.241c.36-.67.485-1.322.485-3.153V7.02c0-1.831-.126-2.483-.484-3.153a2.96 2.96 0 0 0-1.241-1.24c-.64-.343-1.263-.473-2.911-.484ZM11 10.714a.857.857 0 1 1 0 1.714H5.857a.857.857 0 0 1 0-1.714zm5.142 0a.857.857 0 1 1 0 1.714h-1.714a.857.857 0 0 1 0-1.714zm0-3.428a.857.857 0 1 1 0 1.714H11a.857.857 0 1 1 0-1.714zm-8.571 0a.857.857 0 0 1 0 1.714H5.857a.857.857 0 0 1 0-1.714z"></path></svg>');function gd(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=x$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"18",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",role:"img",...i})),_(t,o)}function Sf(t,e){U(e,!0);let i=f(e,"isSubtitlesEnabled",3,!1),n=Ce().ui.t,a=v(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Bt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(a)},get click(){return e.click},get ariaKeyShortCut(){return Or.KeyC},children:(s,d)=>{var l=Oe(),p=ue(l);{var m=u=>{wf(u,{})},y=u=>{gd(u,{})};B(p,u=>{i()?u(m):u(y,!1)})}_(s,l)},$$slots:{default:!0}}),z()}var w$=L('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),S$=L('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),C$={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 hd(t,e){U(e,!0),K(t,C$);let i=f(e,"isMobile",3,!1),o=f(e,"showDuration",3,!0),n=f(e,"ref",15),a=v(()=>un(e.duration)),s=v(()=>un(e.position));var d=S$();let l;var p=h(d),m=h(p,!0);g(p);var y=A(p,2);{var u=$=>{var w=w$(),b=h(w,!0);g(w),E(()=>me(b,r(a))),_($,w)};B(y,$=>{o()&&$(u)})}g(d),gt(d,$=>n($),()=>n()),E($=>{l=J(d,1,"time svelte-sz9er7",null,l,$),me(m,r(s))},[()=>({mobile:i()})]),_(t,d),z()}var bd=require("@vkontakte/videoplayer-shared/es2018");var T$=ye('<svg xmlns="http://www.w3.org/2000/svg" class="icon svelte-1n5yyua" aria-hidden="true"><g fill="var(--btn-color, #fff)" fill-rule="evenodd"><path class="wave2 svelte-1n5yyua" d="M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503zm3-2A.875.875 0 1 1 20.12 6.88c.263.264.62.74.966 1.432.517 1.033.843 2.255.89 3.716-.047 1.403-.373 2.625-.89 3.658-.346.692-.703 1.168-.966 1.432a.875.875 0 1 1-1.238-1.238c.138-.137.383-.464.639-.976.407-.814.667-1.79.705-2.876-.038-1.144-.298-2.12-.705-2.934-.256-.512-.501-.839-.639-.976z"></path><path class="wave1 svelte-1n5yyua" d="M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503z"></path><path class="cross svelte-1n5yyua" d="m20 10.763 2.381-2.382A.875.875 0 1 1 23.62 9.62L21.237 12l2.382 2.381a.875.875 0 1 1-1.238 1.238L20 13.237l-2.381 2.382a.875.875 0 1 1-1.238-1.238L18.763 12 16.38 9.619A.875.875 0 1 1 17.62 8.38zm-7.02 8.06c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963z"></path></g></svg>'),I$={hash:"svelte-1n5yyua",code:`.icon.svelte-1n5yyua {display:block;width:24px;height:24px;}.icon.svelte-1n5yyua .cross:where(.svelte-1n5yyua) {visibility:hidden;}.icon[data-value='off'].svelte-1n5yyua .wave1:where(.svelte-1n5yyua),
|
|
168
168
|
.icon[data-value='off'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}.icon[data-value='off'].svelte-1n5yyua .cross:where(.svelte-1n5yyua) {visibility:visible;}.icon[data-value='mid'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua),
|
|
169
|
-
.icon[data-value='min'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}`};function xs(t,e){
|
|
169
|
+
.icon[data-value='min'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}`};function xs(t,e){K(t,I$);let i=f(e,"volume",3,1),o=f(e,"muted",3,!1),n=(d,l)=>l?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",a=v(()=>n(i(),o()));var s=T$();E(()=>{var d;Be(s,"data-value",r(a)),Be(s,"data-testid",`volume-${(d=r(a))!=null?d:""}-icon`)}),_(t,s)}var Lo=require("@vkontakte/videoplayer-shared/es2018");var tu=require("@vkontakte/videoplayer-shared/es2018");var i1=require("@vkontakte/videoplayer-shared/es2018");var k$=L('<div class="overlay"><!></div>');function Cf(t,e){U(e,!0);let[i,o]=Ne(),n=()=>S(s,"$overlayContainer$",i),s=Ce().ui.overlayContainer$,d=X(void 0),l=u=>{!u||!r(d)||!u.contains(r(d))||u.removeChild(r(d))},p=u=>{!u||!r(d)||u.contains(r(d))||u.appendChild(r(d))};Fe(()=>{p(n())}),Ut(()=>(p(n()),()=>l(n())));var m=k$(),y=h(m);ve(y,()=>{var u;return(u=e.children)!=null?u:ie}),g(m),gt(m,u=>D(d,u),()=>r(d)),_(t,m),z(),o()}var E$=L('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),P$=L("<div><!></div> <!>",1),A$={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 la(t,e){U(e,!0),K(t,A$);let[i,o]=Ne(),n=()=>S(Q,"$overlayContainer$",i),a=()=>S(F,"$containerSize",i),s=f(e,"isMobile",3,!1),d=f(e,"content",3,""),l=f(e,"active",15,!1),p=f(e,"translateX",3,0),m=f(e,"translateY",3,0),y=f(e,"isFullWidthWrapper",3,!1),u=f(e,"maxTooltipWidth",3,void 0),$=f(e,"placement",3,"top"),w=f(e,"onVisibilityChange",3,i1.noop),b=5,C=X(void 0),T=X(void 0),I,M=X(0),P=X(0),k=X(0),R=X(0),W=zt(),Y=Ce(),F=Y.ui.playerSize,Q=Y.ui.overlayContainer$;Fe(()=>{St(()=>{w()(l())})});let oe=Y.getLogger().createComponentLog("Tooltip component"),Z=()=>{if(!n()||!r(T)||!r(C))return;D(P,b);let we=n().getBoundingClientRect(),Ve=r(C).getBoundingClientRect(),Ie=Ve.width,Ue=r(T).clientWidth,ct=a().width,ut=(Ie-Ue)/2,nt=Ve.left+p()-we.left,Ct=nt+ut,mt=Ve.top+m()-we.top,Wt=Ue/2-b,ti=Ct<8,Lt=Ct+Ue>ct-8;ti&&(Ct=8,Wt=nt+Ve.width/2-2.5*b),Lt&&(Ct=ct-8-Ue,Wt=Ve.left-we.left+Ve.width/2-Ct-b),D(k,pe(Ct)),D(R,mt),D(M,pe(Wt))},re=()=>{!n()||!r(T)||!r(C)||D(P,-b)},de=()=>{if(!n()||!r(T)||!r(C))return;D(M,b);let we=n().getBoundingClientRect(),Ve=r(C).getBoundingClientRect(),Ie=Ve.height,Ue=r(T).clientHeight,ct=(Ie-Ue)/2+Ue,ut=Ve.left+p()-we.left-r(T).clientWidth,nt=2,Ct=ut-b;Ct<8&&(Ct=8);let Wt=Ve.top+m()-we.top+ct,ti=nt-ct/2,Lt=nt-b;D(k,pe(Ct)),D(R,Wt),D(P,ti),D(M,Lt)},Ae=()=>{!n()||!r(T)||!r(C)||D(M,-b)},Me=()=>{switch($()){case"top":Z();break;case"bottom":re();break;case"left":de();break;default:Ae()}},ge=()=>{try{if(!n()||!r(C))return;Me(),l(!0)}catch(we){oe({message:String(we)})}},se=()=>{l(!1)},Ee=()=>{r(T)&&(I||(I=window.setTimeout(ge,W.controls.hideTimeoutTooltips)),l()&&ge())},ne=()=>{se(),window.clearTimeout(I),I=void 0},V=(we,Ve,Ie)=>{let Ue="";switch($()){case"top":Ue=`transform: translate(${we}px, ${Ve}px);`;break;case"bottom":Ue=`transform: translate(${we}px, ${Ve}px); top: auto; bottom: 100%;`;break;case"left":Ue=`transform: translate(${we}px, ${Ve}px); left: 0; right: auto;`;break;default:Ue=`transform: translate(${we}px, ${Ve}px);`}return Ue+=` max-width: ${u()===void 0?"auto":`${u()}px`};`,Ue+=` opacity: ${Ie?1:0}; visibility: ${Ie?"visible":"hidden"}`,Ue},xe=(we,Ve)=>{let Ie="";switch($()){case"top":Ie=`transform: translate(${we}px, ${Ve}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ie=`transform: translate(${we}px, ${Ve}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ie=`transform: translate(${we}px, ${Ve}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ie=`transform: translate(${we}px, ${Ve}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ie},_e=v(()=>V(r(k),r(R),l())),ze=v(()=>xe(r(M),r(P)));Ut(Me),In(()=>window.clearTimeout(I));var H=P$(),le=ue(H);let he;le.__mousemove=Ee,le.__mousedown=ne,le.__mouseup=Ee;var ee=h(le);ve(ee,()=>{var we;return(we=e.children)!=null?we:ie}),g(le),gt(le,we=>D(C,we),()=>r(C));var De=A(le,2);{var Ze=we=>{Cf(we,{children:(Ve,Ie)=>{var Ue=E$(),ct=h(Ue),ut=h(ct,!0);g(ct);var nt=A(ct,2);g(Ue),gt(Ue,Ct=>D(T,Ct),()=>r(T)),E(()=>{st(Ue,r(_e)),me(ut,d()),st(nt,r(ze))}),_(Ve,Ue)},$$slots:{default:!0}})};B(De,we=>{d()&&!s()&&we(Ze)})}E(we=>he=J(le,1,"tooltip-wrapper svelte-hxlyne",null,he,we),[()=>({"full-width":y()})]),kt("mouseenter",le,Ee),kt("mouseleave",le,ne),_(t,H),z(),o()}at(["mousemove","mousedown","mouseup"]);var o1=t=>{t.stopPropagation()},M$=L("<div><!></div>"),L$={hash:"svelte-p9r045",code:".btn-container.svelte-p9r045 {position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent;}.w-max.svelte-p9r045 {width:100%;min-width:0;}"};function Mo(t,e){U(e,!0),K(t,L$);let[i,o]=Ne(),n=()=>S(p,"$isGraphOpened$",i),a=()=>S(l,"$isMobile",i),s=Ce(),d=lo(),l=s.ui.isMobile,p=d.graphIsOpened$,m=s.ui.t,y=f(e,"className",3,""),u=f(e,"disabled",3,!1),$=f(e,"hasTooltip",3,!0),w=f(e,"ref",15,void 0),b=f(e,"width",15,void 0),C=f(e,"isFullWidthTooltip",3,!0),T=f(e,"tooltipContent",3,""),I=f(e,"tooltipActive",3,!1),M=f(e,"tooltipPlacement",3,"top"),P=f(e,"disabledTooltipContent",19,()=>m("tooltip_button_disabled")),k=f(e,"isAriaHidden",3,!1),R=f(e,"onTooltipVisibilityChange",3,tu.noop),W=f(e,"initialTranslateXPx",3,0),Y=f(e,"initialTranslateYPx",19,()=>-18),F=f(e,"mouseEnter",3,tu.noop),Q=f(e,"mouseLeave",3,tu.noop),oe=v(()=>u()?n()?m("tooltip_disabled_when_graph_on"):P():T());var Z=M$();Z.__pointerdown=[o1],Z.__click=[o1];var re=h(Z);{var de=Me=>{la(Me,{get content(){return r(oe)},get translateX(){return W()},get translateY(){return Y()},get isFullWidthWrapper(){return C()},get active(){return I()},get placement(){return M()},get onVisibilityChange(){return R()},children:(ge,se)=>{var Ee=Oe(),ne=ue(Ee);ve(ne,()=>{var V;return(V=e.children)!=null?V:ie}),_(ge,Ee)},$$slots:{default:!0}})},Ae=Me=>{var ge=Oe(),se=ue(ge);ve(se,()=>{var Ee;return(Ee=e.children)!=null?Ee:ie}),_(Me,ge)};B(re,Me=>{$()&&r(oe)&&!a()?Me(de):Me(Ae,!1)})}g(Z),gt(Z,Me=>w(Me),()=>w()),E(()=>{var Me;J(Z,1,`btn-container ${(Me=y())!=null?Me:""}`,"svelte-p9r045"),Be(Z,"aria-hidden",k()||null)}),kt("mouseenter",Z,function(...Me){var ge;(ge=F())==null||ge.apply(this,Me)}),kt("mouseleave",Z,function(...Me){var ge;(ge=Q())==null||ge.apply(this,Me)}),Dr(Z,"clientWidth",b),_(t,Z),z(),o()}at(["pointerdown","click"]);var V$=ye('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect width="20" height="20" rx="10" fill="var(--btn-color, #fff)"></rect><path d="M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"></path></svg>');function _d(t,e){"use strict";var i=V$(),o=h(i),n=A(o);g(i),E(()=>{Be(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Be(o,"fill-opacity",e.completed?1:.24),Be(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),_(t,i)}var R$=L("<div><!></div>"),B$={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 Tf(t,e){U(e,!0),K(t,B$);let o=Ce().ui.t,n=X(0),a=v(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Mo(t,{get tooltipContent(){return r(a)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return r(n)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(s,d)=>{var l=R$();let p;var m=h(l);let y=v(()=>!!e.videoEpisode.completed);_d(m,{get completed(){return r(y)}}),g(l),E(u=>{p=J(l,1,"interactive-episode-icon svelte-bklhpe",null,p,u),st(l,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Dr(l,"clientWidth",u=>D(n,u)),_(s,l)},$$slots:{default:!0}}),z()}var N$=L('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),D$=L('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),O$={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
170
|
.video-episode-loaded.svelte-1u6kv8l,
|
|
171
|
-
.video-episode-filled.svelte-1u6kv8l {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1u6kv8l {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode-loaded.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function
|
|
171
|
+
.video-episode-filled.svelte-1u6kv8l {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1u6kv8l {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode-loaded.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function If(t,e){K(t,O$);let i=f(e,"videoEpisodes",19,()=>[]);var o=D$();Ci(o,21,i,n=>n.from,(n,a)=>{var s=N$();let d;var l=h(s),p=h(l),m=A(p,2);let y;g(l),g(s),E((u,$)=>{d=J(s,1,"video-episode svelte-1u6kv8l",null,d,u),st(s,`left: ${r(a).from}%; width: ${r(a).width}%`),st(p,`transform: translateX(${r(a).loadedWidth/r(a).width*100}%)`),y=J(m,1,"video-episode-filled svelte-1u6kv8l",null,y,$),st(m,`transform: translateX(${r(a).filledWidth/r(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),_(n,s)}),g(o),_(t,o)}function H$(t,e,i,o,n,a,s){if(t.preventDefault(),e()&&D(i,pe(e().getBoundingClientRect())),o()||r(n)||!e())return;D(n,!0);let d=a(t.clientX,t.clientY);s()(d),e().setPointerCapture(t.pointerId)}function F$(t,e,i,o,n,a,s,d){if(t.preventDefault(),e())return;let l=i(t.clientX,t.clientY),p=o(t.clientX);n()(l,p,r(a).width),r(s)&&d()(l)}function U$(t,e,i,o,n){if(t.preventDefault(),e()||!r(i))return;D(i,!1);let a=o(t.clientX,t.clientY);n()(a)}function z$(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}var q$=L("<div></div>"),W$=L('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),K$=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),Q$={hash:"svelte-1tpemng",code:`.interactive-icons.svelte-1tpemng {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-1tpemng {top:-10px;}.slider.svelte-1tpemng {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-1tpemng {cursor:default;}.slider.svelte-1tpemng:before {
|
|
172
172
|
/* hit area */content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2);}.bars.svelte-1tpemng {position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg);}.loaded.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;will-change:transform;}.filled.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}.slider.square.svelte-1tpemng,
|
|
173
173
|
.slider.square.svelte-1tpemng > .bars:where(.svelte-1tpemng),
|
|
174
174
|
.slider.square.svelte-1tpemng .loaded:where(.svelte-1tpemng),
|
|
175
175
|
.slider.square.svelte-1tpemng .filled:where(.svelte-1tpemng) {border-radius:unset;}.filled.active-live.svelte-1tpemng {background-color:var(--timeline-slider-filled-active-live-bg);}.filled.ads.svelte-1tpemng {background-color:var(--slider-filled-ads);}.handleWrap.svelte-1tpemng {position:absolute;left:-100%;width:100%;}.handle.svelte-1tpemng {position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-handle-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s, visibility 0.2s;will-change:opacity, transform;}.handle.active-live.svelte-1tpemng {background-color:var(--timeline-slider-handle-active-live-bg);}.slider.svelte-1tpemng:hover .handle:where(.svelte-1tpemng),
|
|
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 ca(t,e){U(e,!0),q(t,z$);let i=f(e,"ref",15,void 0),o=f(e,"className",3,""),n=f(e,"testId",3,void 0),a=f(e,"isHidden",3,!1),s=f(e,"isVertical",3,!1),d=f(e,"isActiveLive",3,!1),l=f(e,"isMobile",3,!1),p=f(e,"squareBorders",3,!1),m=f(e,"videoEpisodes",19,()=>[]),$=f(e,"withWheelHandler",3,!1),u=f(e,"isInteractive",3,!1),_=f(e,"disabled",3,!1),w=f(e,"hideHandel",3,!1),y=f(e,"onPointerDown",3,No.noop),C=f(e,"onHandleMove",3,No.noop),T=f(e,"onPointerUp",3,No.noop),E=f(e,"onPointerEnter",3,No.noop),P=f(e,"onPointerMove",3,No.noop),A=f(e,"onPointerLeave",3,No.noop),I=f(e,"onMouseEnter",3,No.noop),V=f(e,"onMouseLeave",3,No.noop),H=f(e,"onWheelUp",3,No.noop),j=f(e,"onWheelDown",3,No.noop),O=f(e,"onWheelLeft",3,No.noop),X=f(e,"onWheelRight",3,No.noop),ne=f(e,"onDisabledClick",3,No.noop),Y=f(e,"loadedProgress",3,0),fe=f(e,"filledProgress",3,0),le=f(e,"handleProgress",3,0),Me=f(e,"ariaLabel",3,""),Ae=f(e,"ariaValueMin",3,void 0),me=f(e,"ariaValueMax",3,void 0),ae=f(e,"ariaValueNow",3,void 0),Pe=f(e,"ariaValueText",3,""),re=Ut(),D=J(void 0),Ve=J(!1),te=v(()=>{var se;return(se=me())!=null?se:0}),Ge=v(()=>{var se;return(0,No.isNonNullable)(m())&&((se=m()[m().length-1])==null?void 0:se.time)<r(te)}),ie=v(()=>(0,No.isNonNullable)(m())&&m().length&&r(Ge)&&r(te)?De(Y()*100,fe()*100):[]);function Q(se){if(se.preventDefault(),i()&&B(D,pe(i().getBoundingClientRect())),_())return;let Oe=ye(se.clientX,se.clientY),ze=xe(se.clientX);E()(Oe,ze,r(D).width)}function W(se){se.preventDefault(),!_()&&A()()}function Le(){I()()}function Ne(){V()()}function Je(se){_()||$()&&(se.preventDefault(),se.deltaY<0?H()():se.deltaY>0?j()():se.deltaX>0?X()():O()())}function ye(se,Oe){return s()?Math.max(0,Math.min(1,(r(D).height-(Oe-r(D).top))/r(D).height)):Math.min(Math.max(se-r(D).x,0),r(D).width)/r(D).width}function xe(se){return Math.min(Math.max(se-r(D).x,0),r(D).width)}function De(se,Oe){let ze=re.features.episodesClustering&&!u()?re.episodeMinWidthPc:0,tt=[],lt=m()[0].time/r(te)*100,Ye=0,Xe=0;for(let $t=1;$t<m().length;$t++)Ye=m()[$t].time/r(te)*100,Ye-lt>ze&&(tt.push({from:lt,width:Math.max(0,Ye-lt),loadedWidth:Math.max(0,Math.min(Ye,se)-lt),filledWidth:Math.max(0,Math.min(Ye,Oe)-lt),interactive:m()[$t-1].interactive,completed:m()[$t-1].completed}),lt=m()[$t].time/r(te)*100,Xe++);let dt={from:lt,width:Math.max(0,100-lt),loadedWidth:Math.max(0,Math.min(se,100)-lt),filledWidth:Math.max(0,Math.min(Oe,100)-lt),interactive:m()[Xe].interactive,completed:m()[Xe].completed};100-lt<ze?(Xe-=1,tt[Xe].width+=100-lt,tt[Xe].loadedWidth+=Math.max(0,Math.min(se,100)-lt),tt[Xe].filledWidth+=Math.max(0,Math.min(Oe,100)-lt)):tt[Xe]=dt;let Re=m()[0].time;if(Re!==0){let $t=Re/r(te)*100;tt.unshift({from:0,width:$t,loadedWidth:Math.min($t,se),filledWidth:Math.min($t,Oe)})}return tt}var Ze=U$(),ot=ue(Ze);{var gt=se=>{var Oe=H$();let ze;Ti(Oe,21,()=>r(ie),tt=>tt.from,(tt,lt)=>{var Ye=Fe(),Xe=ue(Ye);{var dt=Re=>{wf(Re,{get videoEpisode(){return r(lt)},get disabled(){return _()}})};R(Xe,Re=>{r(lt).interactive&&Re(dt)})}b(tt,Ye)}),g(Oe),k(tt=>ze=ee(Oe,1,"interactive-icons svelte-1tpemng",null,ze,tt),[()=>({mobile:l(),hidden:l()&&!r(Ve)})]),b(se,Oe)};R(ot,se=>{u()&&se(gt)})}var et=M(ot,2);let mt;et.__pointerdown=[N$,i,D,_,Ve,ye,y],et.__pointermove=[D$,_,ye,xe,P,D,Ve,C],et.__pointerup=[B$,_,Ve,ye,T],et.__click=[O$,_,ne,ye];var Et=h(et);{var Qt=se=>{Sf(se,{get videoEpisodes(){return r(ie)},get disabled(){return _()},get isMobile(){return l()}})},zt=se=>{var Oe=F$(),ze=h(Oe),tt=M(ze,2);let lt;g(Oe),k(Ye=>{it(ze,`transform: translateX(${Y()*100}%);`),lt=ee(tt,1,"filled svelte-1tpemng",null,lt,Ye),it(tt,`transform: translateX(${fe()*100}%);`)},[()=>({"active-live":d()})]),b(se,Oe)};R(Et,se=>{r(ie).length?se(Qt):se(zt,!1)})}var Kt=M(Et,2);let ve;var G=h(Kt);let Te;g(Kt),g(et),ft(et,se=>i(se),()=>i()),k((se,Oe,ze)=>{var tt,lt;mt=ee(et,1,`slider ${(tt=o())!=null?tt:""}`,"svelte-1tpemng",mt,se),He(et,"aria-label",Me()),He(et,"aria-valuemin",Ae()),He(et,"aria-valuemax",me()),He(et,"aria-valuenow",ae()),He(et,"aria-valuetext",Pe()),He(et,"data-testid",(lt=n())!=null?lt:null),ve=ee(Kt,1,"handleWrap svelte-1tpemng",null,ve,Oe),it(Kt,`transform: translateX(${le()*100}%);`),Te=ee(G,1,"handle svelte-1tpemng",null,Te,ze)},[()=>({disabled:_(),"slider-dragging":r(Ve),hidden:a(),"slider-vertical":s(),"no-handle":w(),square:p()}),()=>({hidden:w()}),()=>({"active-live":d()})]),St("pointerenter",et,Q),St("pointerleave",et,W),St("mouseenter",et,Le),St("mouseleave",et,Ne),St("wheel",et,Je),b(t,Ze),z()}at(["pointerdown","pointermove","pointerup","click"]);var Qi=(t,e)=>Ys[t]>=Ys[e],t1=(t,e)=>Ys[t]<Ys[e],ws=(t,e)=>Ys[t]<=Ys[e],i1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var q$=L("<div><!></div>"),W$=L("<div><!> <!></div>"),K$={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 Cf(t,e){var Je,ye;U(e,!0),q(t,K$);let[i,o]=Be(),n=()=>S(E,"$isAudioAvailable$",i),a=()=>S($,"$muted$",i),s=()=>S(m,"$volume$",i),d=()=>S(y,"$currentGridType$",i),l=Se(),p=Ut(),m=l.state.volume$,$=l.state.muted$,{setVolume:u,startVolumeChanging:_,stopVolumeChanging:w}=l.actions.internal,y=l.ui.currentGridType$,C=(Je=l.callbacks)==null?void 0:Je.onAudioDoesNotExistHint,T=(ye=l.callbacks)==null?void 0:ye.onAudioDisabledHint,E=l.state.isAudioAvailable$,P=l.state.isAudioDisabled,A=l.ui.t,I=J(!1),V,H=v(()=>!n()||a()||s()===0),j=v(()=>ws(d(),"s")),O=v(()=>r(j)?"":r(H)?!n()||P?A("tooltip_sound_unavailable"):A("tooltip_volume"):A("tooltip_volume_muted")),X=v(()=>r(H)?A("tooltip_volume"):A("tooltip_volume_muted")),ne=v(()=>r(H)?0:s()),Y=!1,fe=v(()=>n()?P&&!T:!C);function le(xe){_(),u(xe)}function Me(){Xc(l,s(),p.controls.volumeStepWheel)}function Ae(){Jc(l,s(),p.controls.volumeStepWheel)}function me(xe){u(xe)}function ae(xe){u(xe),w()}function Pe(){Y=!0}function re(){Y=!1,te()}function D(){clearTimeout(V),B(I,!0)}function Ve(){te()}function te(){V=window.setTimeout(()=>{Y||B(I,!1)},p.controls.volumeBarTimeout)}function Ge(xe){xe.preventDefault(),xe.deltaY<0?Me():xe.deltaY>0&&Ae()}var ie=W$();let Q;var W=h(ie);da(W,{get content(){return r(O)},translateY:-18,children:(xe,De)=>{let Ze=v(()=>r(j)?"btn-volume-vertical":"btn-volume-horizontal");Vt(xe,{className:"btn-full-opacity",get disabled(){return r(fe)},get testId(){return r(Ze)},get ariaLabel(){return r(X)},get click(){return e.click},get ariaKeyShortCut(){return Hr.KeyM},children:(ot,gt)=>{xs(ot,{get volume(){return s()},get muted(){return r(H)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Le=M(W,2);{var Ne=xe=>{var De=q$();let Ze;var ot=h(De);let gt=v(()=>r(j)?"volumeBar-slider-vertical":""),et=v(()=>r(j)&&!r(I)),mt=v(()=>r(j)?Pe:$d.noop),Et=v(()=>r(j)?re:$d.noop),Qt=v(()=>Math.round(r(ne)*100)),zt=v(()=>`${Math.round(r(ne)*100)}%`),Kt=v(()=>r(j)?"volume-slider-vertical":"volume-slider");ca(ot,{get className(){return r(gt)},get isHidden(){return r(et)},get isVertical(){return r(j)},withWheelHandler:!0,onWheelUp:Me,onWheelDown:Ae,onPointerDown:le,onHandleMove:me,onPointerUp:ae,get onPointerEnter(){return r(mt)},get onPointerLeave(){return r(Et)},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(zt)},get filledProgress(){return r(ne)},get handleProgress(){return r(ne)},get testId(){return r(Kt)}}),g(De),k(ve=>Ze=ee(De,1,"volumeBar svelte-1auih1j",null,Ze,ve),[()=>({"volumeBar-vertical":r(j)})]),b(xe,De)};R(Le,xe=>{n()&&xe(Ne)})}g(ie),k(xe=>Q=ee(ie,1,"volumeBar-container svelte-1auih1j",null,Q,xe),[()=>({vertical:r(j)})]),St("mouseenter",ie,function(...xe){var De;(De=r(j)?D:$d.noop)==null||De.apply(this,xe)}),St("mouseleave",ie,function(...xe){var De;(De=r(j)?Ve:$d.noop)==null||De.apply(this,xe)}),St("wheel",ie,Ge),b(t,ie),z(),o()}var o1=require("@vkontakte/videoplayer-shared/es2018");var Q$=be('<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 Tf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Q$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",role:"img",...i})),b(t,o)}var G$={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
|
|
177
|
-
svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function
|
|
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 da(t,e){U(e,!0),K(t,Q$);let i=f(e,"ref",15,void 0),o=f(e,"className",3,""),n=f(e,"testId",3,void 0),a=f(e,"isHidden",3,!1),s=f(e,"isVertical",3,!1),d=f(e,"isActiveLive",3,!1),l=f(e,"isMobile",3,!1),p=f(e,"squareBorders",3,!1),m=f(e,"videoEpisodes",19,()=>[]),y=f(e,"withWheelHandler",3,!1),u=f(e,"isInteractive",3,!1),$=f(e,"disabled",3,!1),w=f(e,"hideHandel",3,!1),b=f(e,"onPointerDown",3,Lo.noop),C=f(e,"onHandleMove",3,Lo.noop),T=f(e,"onPointerUp",3,Lo.noop),I=f(e,"onPointerEnter",3,Lo.noop),M=f(e,"onPointerMove",3,Lo.noop),P=f(e,"onPointerLeave",3,Lo.noop),k=f(e,"onMouseEnter",3,Lo.noop),R=f(e,"onMouseLeave",3,Lo.noop),W=f(e,"onWheelUp",3,Lo.noop),Y=f(e,"onWheelDown",3,Lo.noop),F=f(e,"onWheelLeft",3,Lo.noop),Q=f(e,"onWheelRight",3,Lo.noop),oe=f(e,"onDisabledClick",3,Lo.noop),Z=f(e,"loadedProgress",3,0),re=f(e,"filledProgress",3,0),de=f(e,"handleProgress",3,0),Ae=f(e,"ariaLabel",3,""),Me=f(e,"ariaValueMin",3,void 0),ge=f(e,"ariaValueMax",3,void 0),se=f(e,"ariaValueNow",3,void 0),Ee=f(e,"ariaValueText",3,""),ne=zt(),V=X(void 0),xe=X(!1),_e=v(()=>{var te;return(te=ge())!=null?te:0}),ze=v(()=>{var te;return(0,Lo.isNonNullable)(m())&&((te=m()[m().length-1])==null?void 0:te.time)<r(_e)}),H=v(()=>(0,Lo.isNonNullable)(m())&&m().length&&r(ze)&&r(_e)?Ie(Z()*100,re()*100):[]);function le(te){if(te.preventDefault(),i()&&D(V,pe(i().getBoundingClientRect())),$())return;let Re=we(te.clientX,te.clientY),je=Ve(te.clientX);I()(Re,je,r(V).width)}function he(te){te.preventDefault(),!$()&&P()()}function ee(){k()()}function De(){R()()}function Ze(te){$()||y()&&(te.preventDefault(),te.deltaY<0?W()():te.deltaY>0?Y()():te.deltaX>0?Q()():F()())}function we(te,Re){return s()?Math.max(0,Math.min(1,(r(V).height-(Re-r(V).top))/r(V).height)):Math.min(Math.max(te-r(V).x,0),r(V).width)/r(V).width}function Ve(te){return Math.min(Math.max(te-r(V).x,0),r(V).width)}function Ie(te,Re){let je=ne.features.episodesClustering&&!u()?ne.episodeMinWidthPc:0,Qe=[],Le=m()[0].time/r(_e)*100,rt=0,et=0;for(let Xe=1;Xe<m().length;Xe++)rt=m()[Xe].time/r(_e)*100,rt-Le>je&&(Qe.push({from:Le,width:Math.max(0,rt-Le),loadedWidth:Math.max(0,Math.min(rt,te)-Le),filledWidth:Math.max(0,Math.min(rt,Re)-Le),interactive:m()[Xe-1].interactive,completed:m()[Xe-1].completed}),Le=m()[Xe].time/r(_e)*100,et++);let _t={from:Le,width:Math.max(0,100-Le),loadedWidth:Math.max(0,Math.min(te,100)-Le),filledWidth:Math.max(0,Math.min(Re,100)-Le),interactive:m()[et].interactive,completed:m()[et].completed};100-Le<je?(et-=1,Qe[et].width+=100-Le,Qe[et].loadedWidth+=Math.max(0,Math.min(te,100)-Le),Qe[et].filledWidth+=Math.max(0,Math.min(Re,100)-Le)):Qe[et]=_t;let it=m()[0].time;if(it!==0){let Xe=it/r(_e)*100;Qe.unshift({from:0,width:Xe,loadedWidth:Math.min(Xe,te),filledWidth:Math.min(Xe,Re)})}return Qe}var Ue=K$(),ct=ue(Ue);{var ut=te=>{var Re=q$();let je;Ci(Re,21,()=>r(H),Qe=>Qe.from,(Qe,Le)=>{var rt=Oe(),et=ue(rt);{var _t=it=>{Tf(it,{get videoEpisode(){return r(Le)},get disabled(){return $()}})};B(et,it=>{r(Le).interactive&&it(_t)})}_(Qe,rt)}),g(Re),E(Qe=>je=J(Re,1,"interactive-icons svelte-1tpemng",null,je,Qe),[()=>({mobile:l(),hidden:l()&&!r(xe)})]),_(te,Re)};B(ct,te=>{u()&&te(ut)})}var nt=A(ct,2);let Ct;nt.__pointerdown=[H$,i,V,$,xe,we,b],nt.__pointermove=[F$,$,we,Ve,M,V,xe,C],nt.__pointerup=[U$,$,xe,we,T],nt.__click=[z$,$,oe,we];var mt=h(nt);{var Wt=te=>{If(te,{get videoEpisodes(){return r(H)},get disabled(){return $()},get isMobile(){return l()}})},ti=te=>{var Re=W$(),je=h(Re),Qe=A(je,2);let Le;g(Re),E(rt=>{st(je,`transform: translateX(${Z()*100}%);`),Le=J(Qe,1,"filled svelte-1tpemng",null,Le,rt),st(Qe,`transform: translateX(${re()*100}%);`)},[()=>({"active-live":d()})]),_(te,Re)};B(mt,te=>{r(H).length?te(Wt):te(ti,!1)})}var Lt=A(mt,2);let Nt;var O=h(Lt);let be;g(Lt),g(nt),gt(nt,te=>i(te),()=>i()),E((te,Re,je)=>{var Qe,Le;Ct=J(nt,1,`slider ${(Qe=o())!=null?Qe:""}`,"svelte-1tpemng",Ct,te),Be(nt,"aria-label",Ae()),Be(nt,"aria-valuemin",Me()),Be(nt,"aria-valuemax",ge()),Be(nt,"aria-valuenow",se()),Be(nt,"aria-valuetext",Ee()),Be(nt,"data-testid",(Le=n())!=null?Le:null),Nt=J(Lt,1,"handleWrap svelte-1tpemng",null,Nt,Re),st(Lt,`transform: translateX(${de()*100}%);`),be=J(O,1,"handle svelte-1tpemng",null,be,je)},[()=>({disabled:$(),"slider-dragging":r(xe),hidden:a(),"slider-vertical":s(),"no-handle":w(),square:p()}),()=>({hidden:w()}),()=>({"active-live":d()})]),kt("pointerenter",nt,le),kt("pointerleave",nt,he),kt("mouseenter",nt,ee),kt("mouseleave",nt,De),kt("wheel",nt,Ze),_(t,Ue),z()}at(["pointerdown","pointermove","pointerup","click"]);var Qi=(t,e)=>Ys[t]>=Ys[e],n1=(t,e)=>Ys[t]<Ys[e],ws=(t,e)=>Ys[t]<=Ys[e],r1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var G$=L("<div><!></div>"),Y$=L("<div><!> <!></div>"),j$={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 kf(t,e){var we,Ve;U(e,!0),K(t,j$);let[i,o]=Ne(),n=()=>S(I,"$isAudioAvailable$",i),a=()=>S(y,"$muted$",i),s=()=>S(m,"$volume$",i),d=()=>S(b,"$currentGridType$",i),l=Ce(),p=zt(),m=l.state.volume$,y=l.state.muted$,{setVolume:u,startVolumeChanging:$,stopVolumeChanging:w}=l.actions.internal,b=l.ui.currentGridType$,C=(we=l.callbacks)==null?void 0:we.onAudioDoesNotExistHint,T=(Ve=l.callbacks)==null?void 0:Ve.onAudioDisabledHint,I=l.state.isAudioAvailable$,M=l.state.isAudioDisabled,P=l.ui.t,k=X(!1),R,W=v(()=>e.isAds||n()),Y=v(()=>!r(W)||a()||s()===0),F=v(()=>ws(d(),"s")),Q=v(()=>r(F)?"":r(Y)?!n()||M?P("tooltip_sound_unavailable"):P("tooltip_volume_on"):P("tooltip_volume_muted")),oe=P("aria_label_volume"),Z=v(()=>r(Y)?0:s()),re=!1,de=v(()=>e.isAds?!1:M?!T:n()?!1:!C);function Ae(Ie){$(),u(Ie)}function Me(){Xc(l,s(),p.controls.volumeStepWheel)}function ge(){Jc(l,s(),p.controls.volumeStepWheel)}function se(Ie){u(Ie)}function Ee(Ie){u(Ie),w()}function ne(){re=!0}function V(){re=!1,ze()}function xe(){clearTimeout(R),D(k,!0)}function _e(){ze()}function ze(){R=window.setTimeout(()=>{re||D(k,!1)},p.controls.volumeBarTimeout)}function H(Ie){Ie.preventDefault(),Ie.deltaY<0?Me():Ie.deltaY>0&&ge()}var le=Y$();let he;var ee=h(le);la(ee,{get content(){return r(Q)},translateY:-18,children:(Ie,Ue)=>{let ct=v(()=>r(F)?"btn-volume-vertical":"btn-volume-horizontal");Bt(Ie,{className:"btn-full-opacity",get disabled(){return r(de)},get testId(){return r(ct)},ariaLabel:oe,get click(){return e.click},get ariaKeyShortCut(){return Or.KeyM},role:"switch",children:(ut,nt)=>{xs(ut,{get volume(){return s()},get muted(){return r(Y)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var De=A(ee,2);{var Ze=Ie=>{var Ue=G$();let ct;var ut=h(Ue);let nt=v(()=>r(F)?"volumeBar-slider-vertical":""),Ct=v(()=>r(F)&&!r(k)),mt=v(()=>r(F)?ne:bd.noop),Wt=v(()=>r(F)?V:bd.noop),ti=v(()=>Math.round(r(Z)*100)),Lt=v(()=>`${Math.round(r(Z)*100)}%`),Nt=v(()=>r(F)?"volume-slider-vertical":"volume-slider");da(ut,{get className(){return r(nt)},get isHidden(){return r(Ct)},get isVertical(){return r(F)},withWheelHandler:!0,onWheelUp:Me,onWheelDown:ge,onPointerDown:Ae,onHandleMove:se,onPointerUp:Ee,get onPointerEnter(){return r(mt)},get onPointerLeave(){return r(Wt)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return r(ti)},get ariaValueText(){return r(Lt)},get filledProgress(){return r(Z)},get handleProgress(){return r(Z)},get testId(){return r(Nt)}}),g(Ue),E(O=>ct=J(Ue,1,"volumeBar svelte-1auih1j",null,ct,O),[()=>({"volumeBar-vertical":r(F)})]),_(Ie,Ue)};B(De,Ie=>{r(W)&&Ie(Ze)})}g(le),E(Ie=>he=J(le,1,"volumeBar-container svelte-1auih1j",null,he,Ie),[()=>({vertical:r(F)})]),kt("mouseenter",le,function(...Ie){var Ue;(Ue=r(F)?xe:bd.noop)==null||Ue.apply(this,Ie)}),kt("mouseleave",le,function(...Ie){var Ue;(Ue=r(F)?_e:bd.noop)==null||Ue.apply(this,Ie)}),kt("wheel",le,H),_(t,le),z(),o()}var s1=require("@vkontakte/videoplayer-shared/es2018");var Z$=ye('<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 Ef(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Z$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",role:"img",...i})),_(t,o)}var X$={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
|
|
177
|
+
svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function Pf(t,e){K(t,X$);let i=f(e,"isFullscreen",8,!1),o=br(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Ef(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function $d(t,e){U(e,!0);let i=f(e,"isFullscreen",3,!1),o=f(e,"click",3,s1.noop),n=Ce(),a=n.ui.isFullscreenOpenedByKeyboard,s=n.ui.t,d=v(()=>i()?s("tooltip_fullscreen_on"):s("tooltip_fullscreen_off"));Bt(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:p=>{let m=bs(p);a.set(m),o()()},get ariaKeyShortCut(){return Or.KeyF},children:(p,m)=>{Pf(p,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),z()}var J$=ye('<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 Af(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=J$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img",...i})),_(t,o)}var e2=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"></path><path fill="var(--btn-color, #fff)" d="M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35" class="_ru"></path><path fill="var(--btn-color, #fff)" d="M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635" class="_en"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z" clip-rule="evenodd"></path></svg>');function Mf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=e2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(4),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),_(t,o)}var t2={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
|
|
178
178
|
svg[data-testid="vk-video-logo-icon--short"] ._en,
|
|
179
179
|
svg[data-testid="vk-video-logo-icon"] ._en,
|
|
180
|
-
svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function Pf(t,e){q(t,Z$);let i=f(e,"short",3,!1),o=f(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",a=21,s=v(()=>!o()&&!i()?91:i()?a:95),d=v(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),l=v(()=>`0 0 ${r(s)+1} 24`);Ef(t,{get width(){return r(s)},height:"24",get viewBox(){return r(l)},get"data-testid"(){return r(d)}})}function xd(t,e){U(e,!0);let[i,o]=Be(),n=()=>S(_,"$isMobile",i),a=()=>S(u,"$currentGridType$",i),s=()=>S(y,"$isCyrillicRelatedInterface$",i),d=f(e,"ref",15,void 0),l=f(e,"logoClickable",3,!1),p=f(e,"targetUrl",3,""),m=Ut(),$=Se(),u=$.ui.currentGridType$,_=$.ui.isMobile,w=$.ui.t,y=$.isCyrillicRelatedInterface$,C=v(()=>m.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),T=v(()=>m.logoType==="vk_video"||m.logoType==="vk_video_mobile"),E=v(()=>(n()||ws(a(),"l"))&&r(T)),P=()=>{var V,H;e.click(),(V=$.callbacks)!=null&&V.onLogoClicked?(H=$.callbacks)==null||H.onLogoClicked():p()&&window.open(p(),"_blank")},A=v(()=>!l()),I=v(()=>r(T)?"btn-vk-video-logo":"btn-vk-logo");Vt(t,{className:"btn-full-opacity",get disabled(){return r(A)},click:P,get testId(){return r(I)},get ariaLabel(){return r(C)},get ref(){return d()},set ref(V){d(V)},children:(V,H)=>{var j=Fe(),O=ue(j);{var X=Y=>{Pf(Y,{get short(){return r(E)},get isCyrillic(){return s()}})},ne=Y=>{kf(Y,{})};R(O,Y=>{r(T)?Y(X):Y(ne,!1)})}b(V,j)},$$slots:{default:!0}}),z(),o()}var n1=require("@vkontakte/videoplayer-core/es2018");var Af=require("@vkontakte/videoplayer-core/es2018"),J$=be('<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>'),e2=be('<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-icon"><g fill="none" fill-rule="evenodd" class="svelte-8z1bf5"><path class="wave wave1 svelte-8z1bf5" d="M1 18v3h3c0-1.66-1.34-3-3-3z" fill="var(--btn-color, #fff)"></path><path class="wave wave2 svelte-8z1bf5" d="M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z" fill="var(--btn-color, #fff)"></path><path class="wave wave3 svelte-8z1bf5" d="M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z" fill="var(--btn-color, #fff)"></path><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)" class="svelte-8z1bf5"></path><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z" fill="var(--btn-color, #fff)"></path></g></svg>'),t2={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
|
|
180
|
+
svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function Lf(t,e){K(t,t2);let i=f(e,"short",3,!1),o=f(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",a=21,s=v(()=>!o()&&!i()?91:i()?a:95),d=v(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),l=v(()=>`0 0 ${r(s)+1} 24`);Mf(t,{get width(){return r(s)},height:"24",get viewBox(){return r(l)},get"data-testid"(){return r(d)}})}function yd(t,e){U(e,!0);let[i,o]=Ne(),n=()=>S($,"$isMobile",i),a=()=>S(u,"$currentGridType$",i),s=()=>S(b,"$isCyrillicRelatedInterface$",i),d=f(e,"ref",15,void 0),l=f(e,"logoClickable",3,!1),p=f(e,"targetUrl",3,""),m=zt(),y=Ce(),u=y.ui.currentGridType$,$=y.ui.isMobile,w=y.ui.t,b=y.isCyrillicRelatedInterface$,C=v(()=>m.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),T=v(()=>m.logoType==="vk_video"||m.logoType==="vk_video_mobile"),I=v(()=>(n()||ws(a(),"l"))&&r(T)),M=()=>{var R,W;e.click(),(R=y.callbacks)!=null&&R.onLogoClicked?(W=y.callbacks)==null||W.onLogoClicked():p()&&window.open(p(),"_blank")},P=v(()=>!l()),k=v(()=>r(T)?"btn-vk-video-logo":"btn-vk-logo");Bt(t,{className:"btn-full-opacity",get disabled(){return r(P)},click:M,get testId(){return r(k)},get ariaLabel(){return r(C)},get ref(){return d()},set ref(R){d(R)},children:(R,W)=>{var Y=Oe(),F=ue(Y);{var Q=Z=>{Lf(Z,{get short(){return r(I)},get isCyrillic(){return s()}})},oe=Z=>{Af(Z,{})};B(F,Z=>{r(T)?Z(Q):Z(oe,!1)})}_(R,Y)},$$slots:{default:!0}}),z(),o()}var a1=require("@vkontakte/videoplayer-core/es2018");var Vf=require("@vkontakte/videoplayer-core/es2018"),o2=ye('<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>'),n2=ye('<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>'),r2={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) {
|
|
181
181
|
animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
|
|
182
182
|
animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
|
|
183
183
|
animation-name: svelte-8z1bf5-wave3;}
|
|
@@ -225,9 +225,9 @@ Try switching the\xA0quality to\xA0Auto.`},Mh=I_;var ts=new Map;ts.set(Ya.Interf
|
|
|
225
225
|
100% {
|
|
226
226
|
opacity: 1;
|
|
227
227
|
}
|
|
228
|
-
}`};function
|
|
229
|
-
transform: rotate(${n()}deg) ${r(
|
|
230
|
-
`)),b(Q,W)};R(Pe,Q=>{r(E)&&Q(re)})}var D=M(Pe,2),Ve=h(D);{var te=Q=>{var W=Fe(),Le=ue(W);{var Ne=ye=>{var xe=Br();k(De=>ge(xe,De),[()=>F("tooltip_episode_unfinished")]),b(ye,xe)},Je=ye=>{var xe=Br();k(()=>ge(xe,r(H).text||"")),b(ye,xe)};R(Le,ye=>{u()&&r(H).completed===!1?ye(Ne):ye(Je,!1)})}b(Q,W)};R(Ve,Q=>{r(H)&&Q(te)})}g(D);var Ge=M(D,2);{var ie=Q=>{var W=r2(),Le=h(W,!0);g(W),k(()=>ge(Le,d())),b(Q,W)};R(Ge,Q=>{u()||Q(ie)})}g(me),k(Q=>{ae=ee(me,1,"timeline-preview svelte-1wqg760",null,ae,Q),it(me,`width: ${r(j)?r(T):r(C)}px;`)},[()=>({mobile:l()})]),b(t,me),z(),o()}var l2=L('<span class="time svelte-1jr6obn"> </span>'),d2=L("<!> <!>",1),c2={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 Rf(t,e){var tt,lt,Ye,Xe,dt;U(e,!0),q(t,c2);let[i,o]=Be(),n=()=>S(ne,"$interactiveEpisodes$",i),a=()=>S(I,"$duration$",i),s=()=>S(A,"$position$",i),d=()=>S(le,"$isInteractiveExpectation$",i),l=()=>S(fe,"$isInteractiveTime$",i),p=()=>S(V,"$isLive$",i),m=()=>S(j,"$isMobile",i),$=()=>S(H,"$isActiveLive$",i),u=()=>S(P,"$bufferedProgress$",i),_=()=>S(me,"$disabledControls$",i),w=f(e,"showTimeline",3,!1),y=f(e,"withEpisodes",3,!0),C=f(e,"ref",15,void 0),T=Se(),E=Ut(),P=T.state.bufferedProgress$,A=T.state.positionWithScrubbing$,I=T.state.duration$,V=T.state.isLive$,H=T.state.isActiveLive$,j=T.ui.isMobile,O=E.features.episodes&&y()?T.actions.internal.getVideoEpisodes():void 0,X=T.actions.internal.getPreviewThumbsData(),ne=T.state.interactiveEpisodes$,Y=T.state.isInteractive,fe=T.state.isInteractiveTime$,le=T.state.isInteractiveExpectation$,Me=T.actions.internal.correctSeekTimeToInteractive,Ae=(tt=T.callbacks)==null?void 0:tt.onDisabledTimelineClick,me=T.ui.controls.disabledControls$,ae=(Ye=(lt=T.callbacks)==null?void 0:lt.uiInfo)==null?void 0:Ye.onTimelineMouseEnter,Pe=(dt=(Xe=T.callbacks)==null?void 0:Xe.uiInfo)==null?void 0:dt.onTimelineMouseLeave,re=T.ui.t,D=E.features.interactiveResponsiveUi,Ve=v(()=>Y?n():O),te=v(()=>un(a())),Ge=v(()=>un(s())),ie=v(()=>s()/a()),Q=v(()=>d()||l()),W=J(!1),Le=J(""),Ne=J(0),Je=J(0),ye=J(0),xe=v(()=>({containerWidth:r(Je),translateXPx:r(Ne),translateYPx:Y&&X?-36:-16,active:r(W)&&w()&&!r(Q)&&!D,pointer:!E.features.timelinePreview||!X||p()})),De=re("aria_timeline"),Ze=v(()=>re("aria_timeline_value",{position:r(Ge),duration:r(te)}));function ot(Re){return!Me||!Y?Re:Me(Re*a())/a()}function gt(Re){T.actions.internal.startScrubbing(ot(Re))}function et(Re){l()||T.actions.internal.progressScrubbing(ot(Re))}function mt(Re){T.actions.internal.completeScrubbing(ot(Re)),B(W,!1)}function Et(Re,$t,qe){Kt(Re,$t,qe),B(W,!0)}function Qt(Re,$t,qe){Kt(Re,$t,qe),B(W,!0)}function zt(){B(W,!1)}function Kt(Re,$t,qe){B(ye,pe(ot(Re))),B(Ne,pe($t)),qe&&B(Je,pe(qe)),B(Le,pe(ve(Re)))}function ve(Re){let $t=un((p()?1-Re:Re)*a());return p()?`-${$t}`:$t}var G=d2(),Te=ue(G);Lf(Te,es(()=>r(xe),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(Re,$t)=>{var qe=Fe(),Pt=ue(qe);{var ni=ri=>{Vf(ri,{get time(){return r(Le)},get isMobile(){return m()},get videoEpisodes(){return r(Ve)},previewThumbsData:X,get progress(){return r(ye)},get duration(){return a()},isInteractive:Y})},Zt=ri=>{var Hi=l2(),Yi=h(Hi,!0);g(Hi),k(()=>ge(Yi,r(Le))),b(ri,Hi)};R(Pt,ri=>{E.features.timelinePreview&&X&&!p()?ri(ni):ri(Zt,!1)})}b(Re,qe)},$$slots:{default:!0}}));var se=M(Te,2);let Oe=v(()=>Math.round(r(ie)*100)),ze=v(()=>_().has("TIMELINE"));ca(se,{className:"timeline-slider",get isActiveLive(){return $()},get isMobile(){return m()},ariaLabel:De,ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r(Oe)},get ariaValueText(){return r(Ze)},get loadedProgress(){return u()},get filledProgress(){return r(ie)},get handleProgress(){return r(ie)},get videoEpisodes(){return r(Ve)},onPointerDown:gt,onHandleMove:et,onPointerMove:Qt,onPointerUp:mt,onPointerEnter:Et,onPointerLeave:zt,onMouseEnter:ae,onMouseLeave:Pe,onDisabledClick:Ae,isInteractive:Y,get disabled(){return r(ze)},get hideHandel(){return l()},get ref(){return C()},set ref(Re){C(Re)}}),b(t,G),z(),o()}var u2={hash:"svelte-1yate8h",code:".timeline-ads-slider {--slider-bg: var(--timeline-slider-bg);--slider-filled-bg: var(--timeline-slider-filled-bg);--slider-handle-bg: var(--timeline-slider-handle-bg);--slider-loaded-bg: var(--timeline-slider-loaded-bg);}"};function Sd(t,e){U(e,!0),q(t,u2);let[i,o]=Be(),n=()=>S(l,"$isMobile",i),a=f(e,"position",3,0),s=f(e,"duration",3,0),d=Se(),l=d.ui.isMobile,p=d.ui.t,m=v(()=>un(s())),$=v(()=>un(a())),u=v(()=>a()/s()),_=v(()=>p("aria_timeline_value",{position:r($),duration:r(m)})),w=v(()=>Math.round(r(u)*100));ca(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return r(w)},get ariaValueText(){return r(_)},get filledProgress(){return r(u)},hideHandel:!0,get squareBorders(){return n()}}),z(),o()}var p2=L("<div><!></div>"),f2=L("<div></div>"),m2={hash:"svelte-1h5wsmk",code:".timeline.svelte-1h5wsmk {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px 10px 4px;box-sizing:border-box;}.timeline.mobile.svelte-1h5wsmk {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-1h5wsmk {padding:0;}.timeline-stub.svelte-1h5wsmk {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-1h5wsmk {height:8px;}"};function ua(t,e){U(e,!0),q(t,m2);let[i,o]=Be(),n=()=>S(_,"$isLive$",i),a=()=>S(C,"$isMobile",i),s=()=>S(y,"$adPosition",i),d=()=>S(w,"$adDuration",i),l=f(e,"isAds",3,!1),p=f(e,"isHidden",3,!1),m=f(e,"needPadding",3,!0),$=f(e,"ref",15,void 0),u=Se(),_=u.state.isLive$,w=u.ads.duration,y=u.ads.position,C=u.ui.isMobile,T=v(()=>!p()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||l()));var E=Fe(),P=ue(E);{var A=V=>{var H=p2();let j;var O=h(H);{var X=Y=>{Sd(Y,{get position(){return s()},get duration(){return d()}})},ne=Y=>{Rf(Y,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return r(T)},get withEpisodes(){return e.withEpisodes},get ref(){return $()},set ref(fe){$(fe)}})};R(O,Y=>{l()?Y(X):Y(ne,!1)})}g(H),k(Y=>j=ee(H,1,"timeline svelte-1h5wsmk",null,j,Y),[()=>({withoutPadding:!m(),mobile:a()})]),b(V,H)},I=V=>{var H=f2();let j;k(O=>j=ee(H,1,"timeline-stub svelte-1h5wsmk",null,j,O),[()=>({mobile:a()})]),b(V,H)};R(P,V=>{r(T)?V(A):V(I,!1)})}b(t,E),z(),o()}var l1=require("@vkontakte/videoplayer-shared/es2018");var v2=be('<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 Nf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=v2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(3),g(o),k(()=>n=Ce(o,n,{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})),b(t,o)}var g2=be('<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 Df(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=g2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img",...i})),b(t,o)}var h2=L('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),_2=L('<span class="text svelte-1yhs2ga"> </span>'),b2=L('<span class="text count svelte-1yhs2ga"> </span>'),$2=L("<!> <!>",1),y2={hash:"svelte-1yhs2ga",code:".text.svelte-1yhs2ga {padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.text.count.svelte-1yhs2ga {overflow:visible;}.text.mobile.svelte-1yhs2ga {padding:0 3px 0 4px;}.chevron-episodes.svelte-1yhs2ga {margin-bottom:-4px;}"};function Cd(t,e){var le,Me,Ae;U(e,!0),q(t,y2);let[i,o]=Be(),n=()=>S(w,"$currentGridType$",i),a=()=>S(y,"$openedByKeyboard$",i),s=()=>S(C,"$panelOpened$",i),d=()=>S(T,"$isMobile",i),l=f(e,"position",3,0),p=f(e,"duration",3,0),m=f(e,"timeCodes",19,()=>[]),$=Se(),u=(Me=(le=$.callbacks)==null?void 0:le.onEpisodeChanged)!=null?Me:l1.noop,_=!!((Ae=$.callbacks)!=null&&Ae.onEpisodeClicked),w=$.ui.currentGridType$,y=$.ui.episodes.openedByKeyboard$,C=$.ui.episodes.panelOpened$,T=$.ui.isMobile,E=$.ui.t,P=J(void 0),A=me=>{var Pe,re,D;if(!!((Pe=$.callbacks)!=null&&Pe.onEpisodeClicked)){let Ve=bs(me);y.set(Ve),C.set(!0),(D=(re=$.callbacks)==null?void 0:re.onEpisodeClicked)==null||D.call(re,Ve)}},I=J(null),V=v(()=>l()/p());Ue(()=>{var ae;let me=iu(r(V),p(),m());me?((ae=r(I))==null?void 0:ae.time)!==me.time&&(u(me),B(I,pe(me))):B(I,null)});let H=v(()=>{var me;return((me=r(I))==null?void 0:me.text)||""}),j=v(()=>Qi(n(),"xl")?"FULL":Qi(n(),"m")&&t1(n(),"xl")?"COUNT":"SHORT"),O=v(()=>`${E("tooltip_episodes")}: ${r(H)}`),X=async(me,ae,Pe)=>{await xo(),(me==null?void 0:me.getAttribute("aria-expanded"))==="false"&&ae&&!Pe&&xt(()=>{y.set(!1),me.focus()})};Ue(()=>{X(r(P),a(),s())});var ne=Fe(),Y=ue(ne);{var fe=me=>{let ae=v(()=>d()?"px-0":"");Vt(me,{get className(){var Pe;return`w-max btn-full-opacity btn-jc-l ${(Pe=r(ae))!=null?Pe:""}`},testId:"btn-episodes",click:A,disabled:!_,get ariaExpanded(){return s()},get ariaLabel(){return r(O)},get ref(){return r(P)},set ref(Pe){B(P,pe(Pe))},children:(Pe,re)=>{var D=Fe(),Ve=ue(D);{var te=ie=>{var Q=h2(),W=ue(Q),Le=h(W,!0);g(W);var Ne=M(W,2),Je=h(Ne);Df(Je,{}),g(Ne),k(()=>ge(Le,r(H))),b(ie,Q)},Ge=ie=>{var Q=$2(),W=ue(Q);Nf(W,{});var Le=M(W,2);{var Ne=ye=>{var xe=_2(),De=h(xe,!0);g(xe),k(()=>ge(De,r(H))),b(ye,xe)},Je=(ye,xe)=>{{var De=Ze=>{var ot=b2(),gt=h(ot,!0);g(ot),k(()=>ge(gt,m().length)),b(Ze,ot)};R(ye,Ze=>{r(j)==="COUNT"&&Ze(De)},xe)}};R(Le,ye=>{r(j)==="FULL"?ye(Ne):ye(Je,!1)})}b(ie,Q)};R(Ve,ie=>{d()?ie(te):ie(Ge,!1)})}b(Pe,D)},$$slots:{default:!0}})};R(Y,me=>{r(I)&&me(fe)})}b(t,ne),z(),o()}var $1=require("@vkontakte/videoplayer-shared/es2018");var fi=require("@vkontakte/videoplayer-core/es2018"),bt=require("@vkontakte/videoplayer-shared/es2018"),zr=require("@vkontakte/videoplayer-statistics/es2018");var Qe=require("@vkontakte/videoplayer-shared/es2018"),Gi=require("@vkontakte/videoplayer-shared/es2018");var d1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var x2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",ou=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 Gi.Subject,loadStarted$:new Gi.Subject,loadEnded$:new Gi.Subject,loadError$:new Gi.Subject,ready$:new Gi.Subject,slotRequested$:new Gi.Subject,started$:new Gi.Subject,timeRemained$:new Gi.Subject,paused$:new Gi.Subject,resumed$:new Gi.Subject,ended$:new Gi.Subject,empty$:new Gi.Subject,skipped$:new Gi.Subject,clicked$:new Gi.Subject,closed$:new Gi.Subject,error$:new Gi.Subject};this.loadAdman=e=>(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,Qe.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,Qe.now)()]}),i(),this.events.loadEnded$.next()):(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,Qe.now)()]}),o())};(0,Gi.addScript)(x2,e,this.loadTimeout).then(()=>{Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,Qe.now)()]}),window.AdmanHTML?(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,Qe.now)()]}),i(),this.events.loadEnded$.next()):(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,Qe.now)()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout))}).catch(s=>{Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(s)],numbers:[(0,Qe.now)()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,Qe.now)()]}),i(),this.events.loadEnded$.next()):(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,Qe.now)()]}),o())},s=()=>{d=!0,o()},d=!1,l=window.setTimeout(()=>{Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,Qe.now)()]}),s()},this.loadTimeout);e.addEventListener("abort",s),e.aborted&&(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,Qe.now)()]}),s()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,Qe.now)()]}),!d&&(window.AdmanHTML?(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,Qe.now)()]}),i(),this.events.loadEnded$.next()):(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,Qe.now)()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout)))},s).finally(()=>{clearTimeout(n),clearTimeout(l),e.removeEventListener("abort",s)})});this.onAdsReady=()=>{Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,Qe.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,Qe.now)(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),we(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized")};this.onAdPaused=()=>{var e;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,Qe.now)()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,Qe.now)()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,Qe.now)()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var P;if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,Qe.now)(),e.slotId]}),this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:a,adsContainer:s,adsVideoElement:d,slotId:l,params:p={},duration:m,previewParam:$}=e,u,_=this.playerState&&we(this.playerState.vsid);_&&(this.isVsidOriginal?u=_:u=parseInt(_,36));let{isEmbed:w,immediateOrigin:y}=(0,Qe.detectEmbed)(),C=(P=w?y:window.location.href)!=null?P:window.location.href,T={...p,dl:encodeURIComponent(C),autoplay:a?1:0,player_width:i,player_height:o,preview:$,...u?{request_id:u}:{},duration:m,puid10:d1(i,o),puid11:n?0:1};$||delete T.preview;let E={slot:l,wrapper:s,videoEl:d,videoQuality:o,params:T,browser:{mobile:!1}};try{let A=new window.AdmanHTML;A.setDebug(!1),A.onReady(this.onAdsReady),A.onStarted(this.onAdStarted),A.onPlayed(this.onAdPlayed),A.onPaused(this.onAdPaused),A.adMidrollPoint(this.onAdMidrollPoint),A.onClosed(this.onAdClosed),A.onSkipped(this.onAdSkipped),A.onClicked(this.onAdClicked),A.onTimeRemained(this.onAdTimeRemained),A.onCompleted(this.onAdCompleted),A.onError(this.onAdError),A.init(E),this.adman=A,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(E)}`})}catch(A){Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(A)],numbers:[(0,Qe.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,a;if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,Qe.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${i}`}),i&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"}));else{let s="Switch to video: Adman state was not updated correctly";this.log({message:s}),this.events.error$.next(s)}(a=(n=this.actions).switchFromAdsToVideo)==null||a.call(n,!i)}}togglePlay(){var e;if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.adsState){this.log({message:"toggle play"});let i=we(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,Qe.now)()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,a,s,d,l,p,m,$,u;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,Qe.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(n=this.adman)==null||n.onPaused(void 0),(a=this.adman)==null||a.adMidrollPoint(void 0),(s=this.adman)==null||s.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(l=this.adman)==null||l.onClicked(void 0),(p=this.adman)==null||p.onTimeRemained(void 0),(m=this.adman)==null||m.onCompleted(void 0),($=this.adman)==null||$.onError(void 0),(u=this.adman)==null||u.destroy(),this.videoElement&&(0,Gi.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var c1=t=>{let e=Math.round(t);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var Bf=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 a of n){let s={startTime:0,endTime:0,texts:[],lang:i},d=a.split(this.oneLineRegExp);for(let l of d)if(!s.startTime&&!s.endTime){let p=new nu,{startTime:m,endTime:$}=p.parse(l);s.startTime=m,s.endTime=$}else if(l.trim()!==""){let p=new Of,{texts:m}=p.parse(l);s.texts=[...s.texts,...m]}(s.startTime||s.endTime)&&s.texts.length>0&&o.push(s)}return o}},nu=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 a=Number(e)*60*60,s=Number(i)*60,d=Number(o),l=+`0.${n}`;return a+s+d+l}},Of=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](s){let d=0,l=[];for(;d<s.length;){let p=["<",">"].reduce((m,$)=>{let u=s.indexOf($,d);return m===-1||m>u?u:m},-1);if(p===-1){l.push(s.substring(d));break}l.push(s.substring(d,p)),d=p+1}return l}}),a=new nu;for(let s of n)a.isTime(s)?i.texts.push({type:"timestamp",value:a.parseTime(s)}):i.texts.push({type:"text",value:s});return i}},u1=Bf;var su=require("@vkontakte/videoplayer-shared/es2018"),pa,ki,Hf=0,Ff=!1,p1="",f1=(t,e=0,i=0)=>t<e&&t<i,ru=(t,e=0,i=0)=>t>=e&&t<=i,w2=(t,e=0,i=0)=>t>e&&t>i,m1=(t,e,i,o=!1)=>{var d;let n=(d=i.find(({id:l})=>l===e.value))==null?void 0:d.subtitles;if(o)return n==null?void 0:n.find(({startTime:p,endTime:m})=>ru(t,p,m));let a=t>=Hf,s=t<Hf;if(Hf=t,s&&(Ff=!1),(0,su.isNonNullable)(pa)&&ru(t,pa.startTime,pa.endTime)&&p1===e.value)return pa;if(!(0,su.isNonNullable)(ki)&&(n!=null&&n.length)&&!Ff){ki=n.find(({startTime:p,endTime:m})=>ru(t,p,m)||a&&f1(t,p,m)),pa=void 0,!(0,su.isNonNullable)(ki)&&n[n.length-1].endTime<t&&(Ff=!0);return}else{if(ru(t,ki==null?void 0:ki.startTime,ki==null?void 0:ki.endTime))return pa=ki,ki=void 0,p1=e.value,pa;(a&&w2(t,ki==null?void 0:ki.startTime,ki==null?void 0:ki.endTime)||s&&f1(t,ki==null?void 0:ki.startTime,ki==null?void 0:ki.endTime))&&(ki=void 0)}};var au={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"},S2={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"},lu=t=>{var e,i;return(i=(e=au[t])!=null?e:au[S2[t]])!=null?i:void 0};var v1=require("@vkontakte/videoplayer-shared/es2018"),bN=require("@vkontakte/videoplayer-statistics/es2018"),du=class{constructor(e,i,o=new v1.Subscription){this.oneStat=e;this.thinOneStat=i;this.statSubscription=o}destroy(){var e,i;(e=this.oneStat)==null||e.destroy(),(i=this.thinOneStat)==null||i.destroy(),this.statSubscription.unsubscribe()}};var Td=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Td||{});var Ur=t=>t!=null?t:0,ll=(t,e)=>{var n,a;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(a=e==null?void 0:e.getBoundingClientRect)==null?void 0:a.call(e);return{top:Math.round(Ur(i==null?void 0:i.top)-Ur(o==null?void 0:o.top)),left:Math.round(Ur(i==null?void 0:i.left)-Ur(o==null?void 0:o.left)),bottom:Math.round(Ur(i==null?void 0:i.bottom)-Ur(o==null?void 0:o.top)),right:Math.round(Ur(i==null?void 0:i.right)-Ur(o==null?void 0:o.left))}},dl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:Ur(e==null?void 0:e.width),height:Ur(e==null?void 0:e.height)}};var g1=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:a,isAudioDisabled:s,canDownload:d,callbacks:l,webApi:p,videoEpisodes:m,previewThumbsData:$,uiConfig:u,coreConfig:_,player:w,disabledControls:y,isInteractive:C,interactiveRanges$:T,isInteractiveTime$:E,replayInteractive:P,stopPlayer:A,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:V,additionalButtons:H,additionalSettingsMenuItems:j,additionalContextMenuItems:O,playPrevVideo:X,playNextVideo:ne,looped:Y=!1,statistics:fe,saveRate:le,internalsExposure:Me,playerView:Ae})=>{var av,lv,dv;let me={..._,configName:[...(av=_.configName)!=null?av:[],"ui"],isAudioDisabled:s,live:{...(lv=_.live)!=null?lv:{},isLiveCatchUpMode:!!n}},ae=u,Pe=bt.Tracer.createRootTracer(ae.features.saveTraceInfoToFile),re=Pe.createComponentTracer("Store"),D=w||new fi.Player(me,Pe);Me==null||Me.expose({corePlayer:D});let Ve=new bt.Logger,te=new ou(Ve,{loadTimeout:ae.ads.loadTimeout,initTimeout:ae.ads.initTimeout,runtimeTimeout:ae.ads.runtimeTimeout,useAdmanFromNPM:ae.ads.useAdmanFromNPM,volumeMultiplier:ae.ads.volumeMultiplier,isVsidOriginal:ae.ads.isVsidOriginal}),Ge=ea.getInstance(),ie=p==null?void 0:p.pictureInPictureApi,Q=p==null?void 0:p.annotationsApi,W=Ve.createComponentLog("Store"),Le,Ne,Je={},ye=new Nc,xe=fe&&fe.oneStat?Gt(fe.oneStat.vsid$):nr(void 0),De=ce(gs()),Ze=ce(!1),ot=(dv=ie==null?void 0:ie.info.isActive$)!=null?dv:new bt.ValueSubject(!1),gt=ce(0),et=ce([]),mt=(0,bt.merge)(D.events.fatalError$,D.events.managedError$).subscribe(c=>et.update(x=>[...x,c])),Et=nr(!1,c=>{let x=D.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),Qt=async c=>{var de;let x=Object.values(bt.InterfaceLanguage).includes(c);if(ae.downloadVKLanguages&&(x&&ae.updateBuiltinLanguages||!Wp(c))){let Ke;try{Ke=await(0,bt.loadVKLangPack)(c,Jg,eh)}catch(wt){(de=fe==null?void 0:fe.oneStat)==null||de.logError({errorType:"VKLangPack",fatal:!1}),Ge==null||Ge.report(wt,{errorType:"VKLangPack",fatal:!1})}Ke&&(qp({language:c,pack:Ke,fallback:ae.defaultLanguage}),zt.set(c))}Wp(c)&&zt.set(c)},zt=ce(t),Kt=ce(e);Qt(t);let ve=(c,x)=>{let N=we(zt);return Kp(N,c,x,ae.defaultLanguage)},G=ce("thumb"),Te=(()=>{let c=$i([Et,G],([x,N])=>x?"crashed":N);return{...c,is:x=>we(c)===x}})(),se=(()=>{let c=ce(new Set(y));return{...c,add:x=>{c.update(N=>new Set([...N].concat(x)))},remove:x=>{c.update(N=>{let de=[...N];return new Set(Array.isArray(x)?de.filter(Ke=>!x.includes(Ke)):de.filter(Ke=>Ke!==x))})},includes:x=>{let N=we(c);return Array.isArray(x)?x.every(de=>N.has(de)):N.has(x)}}})();re.log("create store"),W({message:"create store"});let Oe=c=>{let x=c.container;x.append(D.experimental.element$.getValue()),Re=new MutationObserver(N=>{let{removedNodes:de}=N[0];de.length&&x.append(D.experimental.element$.getValue())}),Re.observe(x,{childList:!0})},ze=c=>{W({message:`init video, config: ${JSON.stringify(c)}`}),C?Oe(c):(bt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,bt.now)()]}),D.initVideo(c)),re.log("init video",{isInteractive:C}),c.subtitles&&D.setExternalTextTracks(c.subtitles),Le=c},tt=new bt.Subject,lt=c=>tt.next(c),Ye=new bt.Subject,Xe=new bt.Subject,dt=new bt.Subject,Re=null,$t={actionRewind$:Ye,actionSeek$:Xe,inPiP$:ot,inFullscreen$:new bt.Observable(c=>De.subscribe(x=>c.next(x))),actionSetSubtitle$:dt,nextMovie$:tt},qe={actionSeek$:Xe};if(fe){let{oneStat:c,thinOneStat:x,statSubscription:N}=fe;c&&(C||N.add(c.attachTo(D)),N.add(c.attachToUi($t)),N.add(c.attachToAds(te.events)),c.authorize(a).catch(de=>{W({message:`onestat auth error ${String(de)}`})})),x&&(N.add(x.attachTo(D)),N.add(x.attachToUi(qe)),x.authorize(a))}if(Ge){let c=new bt.Subscription,x=(N,de)=>c.add(N.subscribe(de));if(x(D.events.managedError$,N=>{Ge.logIError(N)}),x(D.events.fatalError$,N=>{Ge.logIError(N,!0)}),fe){let{oneStat:N}=fe;N&&x(N.experimental.error$,de=>{Ge.logIError(de)})}Ge.sentrySubscription.add(c)}let Pt=()=>{fi.clientChecker.device.isIOS&&Ne&&Nh(Ne).catch(c=>{W({message:`exitIosSafariFullscreen failed: ${c}`})})},ni=new bt.Subscription().add(D.experimental.element$.subscribe(c=>{c&&(Ne=c,c.classList.add("player-media"),ia(ie)&&(ie.updateVideoElement(),ie.registryEventHandlers()),C&&c.setAttribute("pip","false"),Ae==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(D.events.ended$.subscribe(()=>{var c;Pt(),(c=l==null?void 0:l.onEnded)==null||c.call(l)})).add(D.events.looped$.subscribe(()=>{var c;(c=l==null?void 0:l.onLooped)==null||c.call(l)})).add(D.events.started$.subscribe(async()=>{var x,N;ia(ie)&&await(ie==null?void 0:ie.revealPictureInPicture());let c=D.info.muted$.getValue();(x=l==null?void 0:l.onStarted)==null||x.call(l),(N=Je.onStarted)==null||N.call(Je,c)})).add(D.events.willSeek$.subscribe(({from:c,to:x})=>{var N;(N=l==null?void 0:l.onSeek)==null||N.call(l,c,x)})).add(D.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=l==null?void 0:l.onAutoplaySoundProhibited)==null||c.call(l)})).add(D.info.position$.subscribe(c=>{var N;let x=D.info.duration$.getValue();isFinite(x)&&x>0&&((N=l==null?void 0:l.onTimeupdate)==null||N.call(l,x,c),te.setPosition(c,x))})).add(D.events.fatalError$.subscribe(c=>{var x;(x=l==null?void 0:l.onCrashed)==null||x.call(l,c?`${c.id}: ${c.message}`:void 0)})).add(D.events.fetcherRecoverableError$.subscribe(c=>{var x;(x=l==null?void 0:l.onRecoverableError)==null||x.call(l,c?`${c.id}: ${c.message}`:void 0)})).add(D.events.loadedMetadata$.subscribe(()=>{Mt.state.loadedMetadata$.set(!0)})).add(D.info.is3DVideo$.subscribe(c=>{Mt.ui.is3DVideo.set(c)})).add(D.info.isEnded$.subscribe(c=>{C&&(c?(E!=null&&E.getValue()&&se.add(ed),se.add("PLAY_BUTTON")):se.remove("PLAY_BUTTON"))})).add(D.info.liveTime$.subscribe(c=>{var x;(x=l==null?void 0:l.onLiveTime)==null||x.call(l,c)})).add(D.info.isStalled$.subscribe(c=>{var x;(x=l==null?void 0:l.onStalledChanged)==null||x.call(l,c)})).add(D.info.isLiveEnded$.subscribe(c=>{var x;return c&&((x=l==null?void 0:l.onLiveEnded)==null?void 0:x.call(l))})).add(te.events.loadStarted$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:x.call(c)})).add(te.events.loadEnded$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:x.call(c)})).add(te.events.loadError$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadError)==null?void 0:x.call(c)})).add(te.events.init$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onInit)==null?void 0:x.call(c)})).add(te.events.ready$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onReady)==null?void 0:x.call(c)})).add(te.events.started$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onStarted)==null?void 0:N.call(x,c)})).add(te.events.timeRemained$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onTimeRemained)==null?void 0:N.call(x,c)})).add(te.events.ended$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onCompleted)==null?void 0:N.call(x,c)})).add(te.events.empty$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onEmpty)==null?void 0:x.call(c)})).add(te.events.clicked$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClicked)==null?void 0:N.call(x,c)})).add(te.events.closed$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClosed)==null?void 0:N.call(x,c)})).add(te.events.error$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onError)==null?void 0:N.call(x,c)})).add(te.events.paused$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onPaused)==null?void 0:x.call(c)})).add(te.events.resumed$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onResumed)==null?void 0:x.call(c)})),Zt=new bt.Subscription,ri=()=>{var wt,Nt,Wt;let{debugLog:c}=ae,x,N="#9df7b7",de="#efd169";if(c&&c!==!0){let{colors:Dt}=c;x=c.tag,N=(wt=Dt==null?void 0:Dt[0])!=null?wt:N,de=(Wt=(Nt=Dt==null?void 0:Dt[1])!=null?Nt:Dt==null?void 0:Dt[0])!=null?Wt:de}let Ke=x?`: ${x}`:"";Zt.add(D.events.log$.subscribe(Dt=>{console.debug(`%c sdk${Ke} `,`background:${N};`,`sdk component: ${Dt.component}`,Dt.message)})).add(Ve.log$.subscribe(Dt=>{console.debug(`%c ui${Ke} `,`background:${de};`,`ui component: ${Dt.component}.`,Dt.message)}))},Hi=()=>{Zt.unsubscribe()},Yi=(c,x)=>{re.log("start camera manual rotation",{mx:c,my:x}),D.startCameraManualRotation(c,x)},Fi=(c=!1)=>{re.log("stop camera manual rotation",{immediate:c}),D.stopCameraManualRotation(c)},mo=(c,x,N)=>{re.log("move camera focus px",{xpx:c,ypx:x,dt:N}),D.moveCameraFocusPX(c,x,N)},Do=()=>{D.holdCamera()},nt=()=>{D.releaseCamera()},ht=nr(D.info.position$.getValue(),c=>{let x,N,de=()=>{let Ke=D.info.playbackState$.getValue(),wt=D.info.isLive$.getValue(),Nt=D.info.duration$.getValue(),Wt=D.info.position$.getValue();if(Ke&&[fi.PlaybackState.PLAYING,fi.PlaybackState.PAUSED].includes(Ke)){let Dt=wt?Wt-Nt:D.getExactTime();Dt!==N&&c(Dt),N=Dt}x=requestAnimationFrame(de)};return de(),()=>cancelAnimationFrame(x)}),wi=Gt(D.info.playbackState$),Z=Gt(D.info.currentBuffer$),Xt=Gt(D.info.isEnded$),si=Gt(D.info.isLive$),Ui=ae.features.playbackRate?Gt(D.info.canChangePlaybackSpeed$):nr(!1),ti=Gt(D.info.liveBufferTime$),mi=Gt(D.info.volume$),ai=Gt(D.info.muted$),ut=Dc(D.info.predefinedQualityLimitType$.pipe((0,bt.map)(c=>c===fi.PredefinedQualityLimits.TRAFFIC_SAVING)),D.info.predefinedQualityLimitType$.getValue()===fi.PredefinedQualityLimits.TRAFFIC_SAVING),vo=Dc(D.info.predefinedQualityLimitType$.pipe((0,bt.map)(c=>c===fi.PredefinedQualityLimits.HIGH_QUALITY)),D.info.predefinedQualityLimitType$.getValue()===fi.PredefinedQualityLimits.HIGH_QUALITY),Ct=Gt(D.info.autoQualityLimitingAvailable$),qt=Gt(D.info.availableQualities$),Jt=Gt(D.info.availableQualitiesFps$),Xi=Gt(D.info.chromecastState$),zn=Gt(D.info.chromecastDeviceName$),zi=Gt(D.info.currentFormat$),Co=Gt(D.info.throughputEstimation$),li=Gt(D.info.videoBitrate$),Tt=Gt(D.info.intrinsicVideoSize$),go=Gt(D.info.duration$),Bo=Gt(D.info.isAudioAvailable$),di=null,To=D.info.isBuffering$,Ji=nr(To.getValue(),c=>{let x=To.subscribe(N=>{N&&di===null?di=window.setTimeout(()=>{c(To.getValue()),di=null},ae.loaderDelay):c(N)});return()=>{x.unsubscribe(),di&&clearTimeout(di)}}),Io=()=>{di&&clearTimeout(di),di=null},Oo=$i([go,si],([c,x])=>x?-c:c),Tn=$i([wi],([c])=>c===fi.PlaybackState.PLAYING),Ni=Gt(D.info.atLiveEdge$),In=Gt(D.info.atLiveDurationEdge$),eo=Gt(D.info.position$),ko=$i([eo,go],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),wr=$i([Xi],([c])=>c===fi.ChromecastState.CONNECTED),sr=Gt(D.info.availableVideoStreams$),kn=ae.features.audioLanguages?Gt(D.info.availableAudioStreams$):nr([]),qn=Gt(D.info.currentVideoStream$),Wn=Gt(D.info.currentAudioStream$),ho=c=>{c.language&&zp(c.language),D.setVideoStream(c)},fn=c=>{c.language&&zp(c.language),D.setAudioStream(c)},En=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(de=>"isDefault"in de&&de.isDefault)),x)return x;let N=Sh();return N&&(x=c.find(({language:de})=>N===de)),x!=null||(x=c.at(0)),x},rt=!1;ni.add(D.info.availableAudioStreams$.subscribe(c=>{if(!rt&&c.length){let x=En(c);x&&(D.setAudioStream(x),rt=!0)}}));let Pn=!1;ni.add(D.info.availableVideoStreams$.subscribe(c=>{if(!Pn&&c.length){let x=En(c);x&&(D.setVideoStream(x),Pn=!0)}}));let Wo=ce(void 0),Ko=Gt(D.info.isAutoQualityEnabled$,c=>c&&Wo.set(void 0)),Sr=Gt(D.info.currentQuality$,()=>Wo.set(void 0)),Qo=$i([Wo,Sr],([c,x])=>c!=null?c:x),An=$i(zi,c=>c!==fi.VideoFormat.MPEG),Kn=$i([qt,Jt,Ko,Qo,An],([c,x,N,de,Ke])=>{let wt=[];Ke&&wt.push({value:"auto",displayValue:ve("auto_quality_option"),selected:N});let Nt=c.filter(Wt=>!(0,bt.isInvariantQuality)(Wt));for(let Wt of Nt){let Dt=x[Wt];wt.push({value:Wt,displayValue:`${Wt}${Dt?c1(Dt):""}`,selected:N?!1:Wt===de})}return wt}),Mn=Gt(D.info.currentPlaybackRate$),Go=$i([Mn,Ni,In],([c,x,N])=>{let de=N||C?1:ae.controls.playbackRateMin,Ke=x?1:ae.controls.playbackRateMax,wt=ae.controls.playbackRateStep,Nt=[];for(let Wt=de;Wt<=Ke;Wt+=wt)Nt.push({value:Wt,displayValue:Wt===1?ve("playback_rate_1"):ve("playback_rate",{multiplier:Wt.toString(10)}),selected:c===Wt});return Nt}),qi={displayValue:ve("subtitles_off"),value:"off"},to=ce({...qi}),Eo=ae.features.subtitles?Gt(D.info.availableTextTracks$):nr([]),mn=vh(),jo=$i([Eo,to],([c,x],N)=>{var wt;let de=[],Ke=c.find(({id:Nt})=>Nt===x.value);if(Ke!=null&&Ke.url){let[,Nt]=(wt=mn.find(Ke.url))!=null?wt:[];if(Nt){N(Nt);return}ye.download(Ke.url).then(Wt=>{if(!Wt||ye.isDestroyed())return;let Dt=new u1,as=Ke.language;if(as){let r0=!!Ke.isAuto,s0=Dt.parse(Wt,as);de.push({lang:as,subtitles:s0,isAuto:r0,id:Ke.id})}mn.add(Ke.url,de),we(to).value===x.value&&N(de)}).catch(Wt=>{var Dt;(Dt=fe==null?void 0:fe.oneStat)==null||Dt.logError({errorType:"Subtitles download",fatal:!1}),Ge==null||Ge.report(Wt,{errorType:"Subtitles download",fatal:!1})})}N(de)}),Yo=$i([Mn,Tn,to],([c,x,N],de)=>{let Nt;if(D.info.isLive$.getValue()&&x&&N.value!==qi.value){let Dt=()=>{let as=1e3/(3*c);Nt=setTimeout(Dt,as),de(Date.now())};return Dt(),()=>clearTimeout(Nt)}}),Ei=$i([Eo,to],([c,x])=>{if(!c.length)return[];let N=[];for(let{language:de,isAuto:Ke,id:wt}of c){let Nt=de&&lu(de);de&&Nt&&N.push({displayValue:Ke?ve("subtitles_auto",{language:Nt}):Nt,value:wt,selected:(x==null?void 0:x.value)===wt,isAuto:Ke})}return N.length?(N.unshift({...qi,selected:(x==null?void 0:x.value)===qi.value}),N):[]}),Ho={available:[],prev:[]},Po=()=>{var x,N;let c=D.experimental.getCurrentTime$.getValue();return(N=(x=c==null?void 0:c())!=null?x:Ne==null?void 0:Ne.currentTime)!=null?N:0},ar=$i([ht,to,jo,Yo],([c,x,N,de])=>{var wt;let Ke=D.info.isLive$.getValue();if(Ke&&Ho.prev!==N){let Nt=N.find(({id:Dt})=>Dt===x.value),Wt=Ho.prev.find(({id:Dt})=>Dt===x.value);if(Nt){let Dt={...Nt,subtitles:[...(wt=Wt==null?void 0:Wt.subtitles)!=null?wt:[],...Nt.subtitles]};Ho.available=[Dt],Ho.prev=N}}if(x&&x.value!==qi.value){let Nt=Ke?Po():c,Wt=Ke?Ho.available:N;return m1(Nt,x,Wt,Ke)}}),vn=$i([ar],([c])=>c!=null&&c.texts?c.texts:[]);ni.add(to.subscribe(c=>{var x,N;if(c.value===qi.value)(x=l==null?void 0:l.onSubtitleOff)==null||x.call(l);else{let de=Object.entries(au).find(([Ke,wt])=>wt===c.displayValue);(N=l==null?void 0:l.onSubtitleOn)==null||N.call(l,de?de[0]:"")}}));let gn=ce(!0),Cr=$i([Z,Oo,eo,ti],([c,x,N,de])=>{var Wt;let Ke=(Wt=c==null?void 0:c.end)!=null?Wt:0;if(!de)return Ke/x;let Nt=-N+de-x;return(Ke-Nt)/x}),Fo=Gt(D.info.availableSources$),Tr=$i([Fo],([c])=>Object.keys((c==null?void 0:c[fi.VideoFormat.MPEG])||{}).length>0),Ln=()=>{var N,de,Ke;let c=Object.keys(((de=(N=D.info.availableSources$)==null?void 0:N.getValue())==null?void 0:de[fi.VideoFormat.MPEG])||{}),x=(0,bt.getHighestQuality)(c)||bt.VideoQuality.Q_144P;return(Ke=Le.sources[fi.VideoFormat.MPEG])==null?void 0:Ke[x]},Qn=()=>{var x;let c=Ln();if(c)re.log("download video",{url:c}),ph(c,((x=Le==null?void 0:Le.meta)==null?void 0:x.title)||"video");else{let N="There is no URL for download video";re.log("download video",{message:N}),W({message:N})}},lr=()=>{W({message:"toggle muted"});let c=D.info.muted$.getValue();D.info.volume$.getValue()===0&&!c?Ao(ci()):Si(!c)},Ir=()=>{var c;if(Mt.ui.settingsMenu.visible$.set(!1),!we(Mt.ui.settingsSubMenu.visible$)){let x=we(Mt.ui.settingsMenu.ref$);if((c=l==null?void 0:l.uiInfo)!=null&&c.onSettingsMenu&&x){let de=dl(x),Ke={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:de,position:Ke,name:"settings"})}}re.log("close settings menu")},Gn=async(c,x=()=>Promise.resolve())=>{var Ke;Mt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Mt.ui.settingsMenu.visible$.set(!0),await x();let N=we(Mt.ui.settingsMenu.ref$),de=As();if((Ke=l==null?void 0:l.uiInfo)!=null&&Ke.onSettingsMenu&&N&&de){let Nt=dl(N),Wt=ll(N,de);l.uiInfo.onSettingsMenu({visible:!0,size:Nt,position:Wt,name:"settings"})}re.log("open settings menu",{wasOpenedByKeyboard:c})},hn=(c,x=!1)=>{var wt;Mt.ui.settingsSubMenu.visible$.set(!1);let N=we(Mt.ui.settingsMenu.ref$),de=As(),Ke=we(Mt.ui.settingsMenu.visible$);if((wt=l==null?void 0:l.uiInfo)!=null&&wt.onSettingsMenu&&N&&de)if(Ke&&!x){let Wt=dl(N),Dt=ll(N,de);l.uiInfo.onSettingsMenu({visible:!0,size:Wt,position:Dt,name:"settings"})}else{let Wt=dl(c),Dt={top:0,left:0,bottom:0,right:0},as=we(Mt.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:Wt,position:Dt,name:as})}re.log("close settings sub menu")},kr=(c,x)=>{var de;Mt.ui.settingsSubMenu.visible$.set(!0),Mt.ui.settingsSubMenu.ref$.set(x),Mt.ui.settingsSubMenu.name$.set(c);let N=As();if((de=l==null?void 0:l.uiInfo)!=null&&de.onSettingsMenu&&x&&N){let wt=dl(x),Nt=ll(x,N);l.uiInfo.onSettingsMenu({visible:!0,name:c,size:wt,position:Nt})}re.log("open settings sub menu",{name:c})},ci=()=>{var x;let c=Math.max(ae.volumeMinRestore,(x=Bc())!=null?x:0);return c===0?ae.volumeDefault:c},Ao=c=>{let x=c===0?ci():c,N=D.info.muted$.getValue();W({message:`set volume, volume: ${c}, preferredVolume: ${x}`}),N&&c>0&&!s&&(N=!1,Fp(!1)),D.setVolume(c,N),te.setVolume(c),Np(x)},Si=c=>{let x=D.info.volume$.getValue();if(W({message:`set muted, currentVolume: ${x}, mute: ${c}`}),D.setMuted(c),te.setVolume(c?0:x),Fp(c),!c&&x===0){let N=ci();D.setVolume(N),Np(N),te.setVolume(N)}},jn=ce(!1),pt=c=>{var x,N;re.log("set looped",{isLooped:c}),jn.set(c),D.setLooped(c),(N=(x=l==null?void 0:l.uiInfo)==null?void 0:x.onLoopedChanged)==null||N.call(x,c)};pt(Y);let Ot=()=>{var c,x;(x=(c=l==null?void 0:l.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},Pi=(c,x=!1)=>{var N;W({message:`set autoplayNextEnabled, value: ${c}`}),re.log("set autoplay next enabled",{autoplayNextEnabled:c}),Mt.ui.autoplayNextEnabled$.set(c),Ih(c),x&&((N=l==null?void 0:l.onSetAutoplayNextEnabled)==null||N.call(l,c))},Mo=c=>{W({message:`set timerNextVideoRunning, value: ${c}`}),re.log("set timer next video running",{timerNextVideoRunning:c}),Mt.ui.timerNextVideoRunning$.set(c)},st=(c=!0)=>{var de;let x=!0;if(c&&(l!=null&&l.onPrevVideoClick))try{x=(de=l==null?void 0:l.onPrevVideoClick)==null?void 0:de.call(l)}catch(Ke){W({message:"onPrevVideoClick callback failed to execute"})}if(!x)return;c&&ui("prev")||X()},Rt=(c=!0)=>{var de;let x=!0;if(c&&(l!=null&&l.onNextVideoClick))try{x=(de=l==null?void 0:l.onNextVideoClick)==null?void 0:de.call(l)}catch(Ke){W({message:"onNextVideoClick callback failed to execute"})}if(!x)return;c&&ui("next")||ne()},ui=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:N,playbackStatusShow:de}}=ae;return N&&de&&!x?(Mt.ui.aboutToGoNextVideo.set(c),Mt.ui.userActionsDisabled.set(!0),!0):!1},Di=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementShow)==null||c.call(l)},_o=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementClick)==null||c.call(l)},yi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementAuto)==null||c.call(l)},Ai=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementCancel)==null||c.call(l)},gi=()=>{D.prepare()},Lo=()=>{(0,bt.assertNonNullable)(Mt);let c=we(Mt.ui.controls.disabledControls$),x=we(Mt.playerPhase),N={playerPhase:x,isInteractive:C,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(W({message:"toggle play"}),x==="ads"){N.action="play",re.log("toggle adman play",N),te.togglePlay();return}let de=()=>{var wt;W({message:"toggle play, call player.play"}),N.action="play",D.play(),(wt=l==null?void 0:l.onPlay)==null||wt.call(l)},Ke=()=>{var wt;W({message:"toggle play, call player.pause"}),N.action="pause",D.pause(),(wt=l==null?void 0:l.onPause)==null||wt.call(l)};if(D.info.isEnded$.getValue()){if(W({message:"toggle play, video ended, seek to 0"}),Ye.next(),Xe.next(zr.SeekAction.REWIND),C){P==null||P();return}D.seekTime(0),de()}else D.info.playbackState$.getValue()!==fi.PlaybackState.PLAYING?de():Ke();re.log("toggle play",N)},io=(c,{changeReason:x="default",appliesTo:N="to-video"}={})=>{W({message:`set quality, quality: ${c}`}),re.log("set quality",{quality:c}),D.setAutoQuality(c==="auto"),c!=="auto"?(ae.features.qualityDetailsSubMenuEnabled?(Oc({type:"exact_quality",quality:c,videoId:i},N),od(),D.setPredefinedQualityLimits(fi.PredefinedQualityLimits.UNKNOWN)):Dp(i,c),Wo.set(c),D.setQuality(c)):ae.features.qualityDetailsSubMenuEnabled?x==="default"&&(dr("auto_quality",N),we(ut)&&oo(!1),we(vo)&&_n(!1)):od()},oo=(c,x="as-default")=>{W({message:`set trafficSavingEnabled, value: ${c}`}),re.log("set traffic saving enabled",{trafficSavingEnabled:c});let N=c?fi.PredefinedQualityLimits.TRAFFIC_SAVING:fi.PredefinedQualityLimits.UNKNOWN;ae.features.qualityDetailsSubMenuEnabled?(Yn(N,x),id(!1)):(D.setPredefinedQualityLimits(N),id(c))},_n=(c,x="as-default")=>{W({message:`set highQualityEnabled, value: ${c}`}),re.log("set high quality enabled",{highQualityEnabled:c}),Yn(c?fi.PredefinedQualityLimits.HIGH_QUALITY:fi.PredefinedQualityLimits.UNKNOWN,x)},Yn=(c,x)=>{c!==fi.PredefinedQualityLimits.UNKNOWN&&(we(Ct)&&!we(Ko)&&io("auto",{appliesTo:x,changeReason:"limit-changed"}),dr(c,x)),D.setPredefinedQualityLimits(c)},dr=(c,x)=>{Oc({type:c,videoId:i},x),x==="as-default"&&Oc({type:c,videoId:i},"to-video")},Zn=c=>{re.log("set playback rate",{playbackRate:c}),D.setPlaybackRate(c),ae.features.saveRate&&le&&!D.info.isLive$.getValue()&&Ch(c)},Er=()=>{let c=we(Go),x=c.findIndex(({selected:de})=>de);if(x===c.length-1)return;let N=c[x+1];Zn(N.value)},cr=()=>{let c=we(Go),x=c.findIndex(({selected:de})=>de);if(x===0)return;let N=c[x-1];Zn(N.value)},bn=(c={...qi,selected:!1})=>{re.log("set subtitles",{...c}),c&&c.value!==qi.value&&dt.next(c.isAuto?c.value+"_auto":c.value),to.set(c)},Vn=()=>{re.log("toggle subtitles");let c=we(Ei),x=we(to),N=we(zt);if((x==null?void 0:x.value)===qi.value){let de=c.filter(Ke=>Ke.value!==qi.value).find(Ke=>Ke.value===N)||c[1];bn(de)}else bn()},Zo=(c,x,N=!0)=>{var de;if(W({message:`seek to time, time: ${c}`}),re.log("seek to time",{time:c,action:x,forcePrecise:N}),Xe.next(x),D.info.isLive$.getValue()){let Ke=D.info.duration$.getValue(),wt=Math.min(0,Ke+c);D.seekTime(wt,N)}else{if(E!=null&&E.getValue())return;D.info.isEnded$.getValue()&&(W({message:"seek after ended, call callbacks.onPlay"}),(de=l==null?void 0:l.onPlay)==null||de.call(l)),D.seekTime(sv(c),N)}},Xo=c=>{W({message:`seek to episode start time: ${c}`}),re.log("seek to episode start time",{time:c}),Zo(c,zr.SeekAction.EPISODE,!0)},Xn=(c,x)=>{W({message:`seek to percent, percent: ${c}`}),re.log("seek to percent",{percent:c,action:x});let N=we(Oo)*c;Zo(N,x,!1)},Pr=c=>{W({message:`seek external, time: ${c}`}),re.log("seek external",{time:c}),Xe.next(zr.SeekAction.UNKNOWN),D.seekTime(D.info.isLive$.getValue()?-c:c)},Ar=c=>{var de,Ke;let x=(de=c.max)!=null?de:"none",N=(Ke=c.min)!=null?Ke:"none";W({message:`set auto quality limitation. Max: ${x}. Min: ${N}`}),re.log("set auto quality limits",{max:x,min:N}),D.setAutoQualityLimits(c)},ur=c=>{W({message:`seek external to episode start time: ${c}`}),re.log("seek external to episode start time",{time:c}),Zo(c,zr.SeekAction.EPISODE,!0)},bo=c=>{W({message:`set playback rate to: ${c}`}),re.log("set playback rate external",{playbackRate:c}),D.setPlaybackRate(c)},Rn=ce(void 0),Jn=ce(!1),Mr=c=>{W({message:`start scrubbing, progress: ${c}`}),re.log("start scrubbing",{progress:c}),Jn.set(!0),ct(c)},ct=c=>{Rn.set(c)},Ht,Mi,$e=()=>{Rn.set(void 0),Jn.set(!1)},It=()=>{clearTimeout(Mi),clearTimeout(Ht),Ht=window.setTimeout(()=>{$e()},500),Ne==null||Ne.removeEventListener("seeked",It)},vi=c=>{W({message:`complete scrubbing, progress: ${c}`}),re.log("complete scrubbing",{progress:c}),Xn(c,zr.SeekAction.SLIDER),we(Mt.ui.isMobile)&&we(Mt.state.currentFormat$)===fi.VideoFormat.HLS?(Ne==null||Ne.addEventListener("seeked",It),Mi=window.setTimeout(()=>{It()},300)):$e()},Ci=$i([ht,Oo,Rn],([c,x,N],de)=>{de((0,bt.isNonNullable)(N)?N*x:c)}),no=ce(!1),pi=()=>{no.set(!0)},Ie=()=>{no.set(!1)},At=ce({width:0,height:0}),jt=$i([At],([{width:c}],x)=>{let N=i1(c);x(N)}),xi=ce(!1),ei=H.filter(c=>fh(c)),Lr=$i([jt,xi],([c,x])=>x?ei.filter(N=>!N.hideOnMobile):ei.filter(N=>{var de;return!((de=N.hideOnDesktopGridTypes)!=null&&de.includes(c))})),Zi=ce(H.filter(c=>mh(c))),Vr=$i([Zi,jt],([c,x])=>c.filter(N=>{var de;return!((de=N.hideOnDesktopGridTypes)!=null&&de.includes(x))})),Is=$i([Vr,Lr],([c,x])=>[...ae.features.additionalButtonsDesktopControlPanelRight?c.filter(N=>N.type==="desktop-control-panel-right"):[],...ae.features.additionalButtons?x.map((N,de)=>{var Ke;return{id:de,weight:de,type:"desktop-control-panel-right",testId:N.testId,icon:N.iconUrl,onClick:N.onClick,ariaLabel:(Ke=N.ariaLabel)!=null?Ke:N.tooltip,tooltipText:N.tooltip}}):[]]),Jo=ce(j),Ca=$i([Jo],([c])=>ae.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?{...x,onClick:x.onChangeEnabled}:x):[]),ks=(c,x)=>{let N=we(Zi).map(de=>de.id!==c?de:{...de,...x});Zi.set(N)},yl=c=>{let x=we(Zi);if(x.some(N=>N.id===c.id)){W({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Zi.set(x)},Ta=c=>{let x=we(Zi);if(!x.some(N=>N.id===c)){W({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(N=>N.id!==c),Zi.set(x)},xl=c=>{Xe.next(zr.SeekAction.LIVE),W({message:"live switch to low latency "+c}),re.log("live switch to low latency "+c),D.setLiveLowLatency(c)},Es=(c,x)=>{let N=we(Jo).map(de=>de.id!==c?de:{...de,...x});Jo.set(N)},wl=c=>{let x=we(Jo);if(x.some(N=>N.id===c.id)){W({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Jo.set(x)},Ia=c=>{let x=we(Jo);if(!x.some(N=>N.id===c)){W({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(N=>N.id!==c),Jo.set(x)},er=ce(O),Ps=$i([er],([c])=>ae.features.additionalContextMenuItems?c:[]),yt=(c,x)=>{let N=we(er).map(de=>de.id!==c?de:{...de,...x});er.set(N)},_t=c=>{let x=we(er);if(x.some(N=>N.id===c.id)){W({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),er.set(x)},ro=c=>{let x=we(er);if(!x.some(N=>N.id===c)){W({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(N=>N.id!==c),er.set(x)},Uo=$i([xi,Et],([c,x],N)=>{N(c&&x)}),so=()=>{Xe.next(zr.SeekAction.LIVE),W({message:"switch to active live"}),re.log("switch to active live"),D.seekTime(0),D.info.playbackState$.getValue()!==fi.PlaybackState.PLAYING&&Mt.actions.internal.togglePlay()},ii=()=>{re.log("skip adman"),te.skip()},Bi=(c=!0)=>{(0,bt.assertNonNullable)(Mt),W({message:`switch from ads to video, callPlay: ${c}`}),re.log("switch from ads to video",{callPlay:c}),G.set("video"),c&&D.play()},ss=()=>{(0,bt.assertNonNullable)(Mt),W({message:"switch from video to ads"}),re.log("switch from video to ads"),Mt.actions.internal.pause(),Pt(),G.set("ads")},Sl=c=>{(0,bt.assertNonNullable)(Mt);let x=c?"LiveWaitingStart":"thumb";re.log("set live waiting start",{state:c,playerPhase:x}),G.set(x)},ic=c=>{(0,bt.assertNonNullable)(Mt);let x=c?"LiveWaitingRecover":"thumb";re.log("set live waiting recover",{state:c,playerPhase:x}),G.set(x)},Vu=c=>{(0,bt.assertNonNullable)(Mt);let x=c?"LiveWaitingRecord":"thumb";re.log("set live waiting record",{state:c,playerPhase:x}),G.set(x)},oc=()=>((0,bt.assertNonNullable)(Mt),re.log("get debug text data"),ch(D,Le,Mt)),Ru=()=>((0,bt.assertNonNullable)(Mt),JSON.stringify(Pe.getFinishedSpans())),nc=()=>((0,bt.assertNonNullable)(Mt),uh(D,Le,Mt)),As=()=>Ne,rc=()=>{W({message:"toggle chromecast"}),re.log("toggle chromecast"),D.toggleChromecast()},sc=c=>{var N;if((0,bt.assertNonNullable)(Mt),D.info.isEnded$.getValue())return;let x=!c;if(we(Mt.playerPhase)==="ads"){W({message:`pause ads, internalCall: ${x}`}),re.log("pause ads",{internalCall:x}),te.pause();return}W({message:`pause video, internalCall: ${x}`}),re.log("pause video",{internalCall:x}),x&&((N=l==null?void 0:l.onPause)==null||N.call(l)),D.pause()},Cl=c=>{var N;(0,bt.assertNonNullable)(Mt);let x=!c;if(we(Mt.playerPhase)==="ads"){W({message:`play ads, internalCall: ${x}`}),re.log("play ads",{internalCall:x}),te.play();return}W({message:`play video, internalCall: ${x}`}),re.log("play video",{internalCall:x}),x&&((N=l==null?void 0:l.onPlay)==null||N.call(l)),D.play()},Nu=c=>{(0,bt.assertNonNullable)(Mt);let x=!c;if(we(Mt.playerPhase)==="ads"){W({message:"player cannot be stopped during ads via external method"});return}W({message:`player will be stopped, internalCall: ${x}`}),A==null||A()},Tl=(c,x)=>{(0,bt.assertNonNullable)(Mt),W({message:`first start, show ads: ${c}, internalCall: ${!x}`}),re.log("first start",{showAds:c,external:x}),c?G.set("ads"):(G.set("video"),x?D.play():Mt.actions.internal.togglePlay())},Il=()=>(W({message:"getting time codes"}),m),ac=()=>{let c=Il();if(!c||[0,1].includes(c.length))return;let x=D.info.position$.getValue();return c.find(N=>N.time>x)},Du=c=>{let x=c;x||(x=ac());let N=D.info.position$.getValue();re.log("seek to next episode",{currentTime:N,...x}),x&&(W({message:"seek to next episode"}),Zo(x.time,zr.SeekAction.EPISODE,!0))},We=()=>{let c=Il();if(!c||[0,1].includes(c.length))return;let x=D.info.position$.getValue(),N=c.findIndex(Ke=>Ke.time>x),de=N===-1?c.length-2:N-2;if(!(de<0))return c[de]},oi=c=>{let x=c;x||(x=We());let N=D.info.position$.getValue();re.log("seek to prev episode",{currentTime:N,...x}),x&&(W({message:"seek to prev episode"}),Zo(x.time,zr.SeekAction.EPISODE,!0))},en=()=>(W({message:"getting preview thumbs data"}),re.log("get preview thumbs data",{...$}),$),Ms=async()=>{let c=ie==null?void 0:ie.isActive(),x="none";ie!=null&&ie.isActive()?(x="remove",await(ie==null?void 0:ie.remove())):(x="request",await(ie==null?void 0:ie.request())),re.log("toggle picture in picture",{isActive:c,action:x})},tn=(c=-90)=>{re.log("rotate video",{alphaDiff:c}),gt.update(x=>x+c)},lc=ce([]);T==null||T.subscribe(c=>{let x=[];for(let N=0;N<c.length;N++){let{range:[de,Ke],subjects:wt}=c[N];N===0&&de!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:de/1e3,text:"",interactive:!0,completed:ae.features.interactiveTimeOpenUri?!wt.length||wt.every(Nt=>Nt.isRemoved):!wt.length}),Ke!==1/0&&x.push({time:Ke/1e3,text:"",interactive:!1,completed:!0})}lc.set(x)});let i0=ce(!1);E==null||E.subscribe(c=>{c&&we(Jn)&&$e()});let sv=c=>{if(!C)return c;let x=we(lc),N=we(Oo),Ke=we(eo)/N,wt=x.find(Nt=>Nt.interactive&&!Nt.completed&&Nt.time>Ke);return typeof(wt==null?void 0:wt.time)=="number"?Math.min(c,wt.time-.05):c},o0=()=>{Mt.ui.episodes.panelOpened$.set(!1)},n0=()=>{re.log("destroy store"),clearTimeout(Mi),clearTimeout(Ht),ni.unsubscribe(),Zt.unsubscribe(),D.destroy(),te.destroy(),fe==null||fe.destroy(),Ge==null||Ge.destroy(),mt.unsubscribe(),Re==null||Re.disconnect(),Re=null,ye.destroy()},Mt={interfaceLanguage$:zt,isCyrillicRelatedInterface$:Kt,initVideo:ze,videoId:i,isClip:o,playerPhase:Te,vsid:xe,state:{positionExact$:ht,positionWithScrubbing$:Ci,duration$:Oo,playbackState$:wi,isPlaying$:Tn,isLoaderVisible:Ji,bufferedProgress$:Cr,isLive$:si,canChangePlaybackSpeed$:Ui,isActiveLive$:Ni,isOldestAvailableLive$:In,isRewindableLive$:ko,isEnded$:Xt,muted$:ai,volume$:mi,trafficSavingEnabled$:ut,highQualityEnabled$:vo,autoQualityLimitingAvailable$:Ct,availableVideoStreams$:sr,availableAudioStreams$:kn,videoStream$:qn,audioStream$:Wn,currentQuality$:Qo,isAutoQualityEnabled$:Ko,availableQualities$:Kn,currentPlaybackRate$:Mn,availablePlaybackRates$:Go,currentSubtitle$:to,availableTextTracks$:Eo,availableSubtitlesList$:Ei,currentSubtitleCaptions$:vn,isAutoSubtitleCaptionVisible$:gn,chromecastState$:Xi,chromecastDeviceName$:zn,chromecastConnected$:wr,currentFormat$:zi,throughputEstimation$:Co,videoBitrate$:li,videoSize$:Tt,errorLog$:et,crashed$:Et,isAudioAvailable$:Bo,isAudioDisabled:!!s,canDownload:ae.features.download&&!!d,availableSources$:Fo,hasMpegSources$:Tr,isInteractive:C,showInteractiveGraph:ae.features.interactiveGraph,showSeekToInteractive:ae.features.seekToInteractive,showPlayPrevChapter:ae.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ae.features.interactiveTimeIndicator&&!!we(lc).length,interactiveEpisodes$:lc,isInteractiveTime$:E?Gt(E):ce(!1),isInteractiveExpectation$:i0,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:V,looped$:jn,loadedMetadata$:ce(!1),isAutoQualityAvailable$:An},ui:{t:ve,controlsVisible:ce(!1),touched:ce(!1),controls:{prevButton:ce(void 0),playButton:ce(void 0),replayButton:ce(void 0),nextButton:ce(void 0),playPrevChapterButton:ce(void 0),seekToInteractiveButton:ce(void 0),interactiveGraphButton:ce(void 0),liveButton:ce(void 0),time:ce(void 0),episodes:ce(void 0),volume:ce(void 0),subtitles:ce(void 0),settings:ce(void 0),context:ce(void 0),chromecast:ce(void 0),pip:ce(void 0),fullscreen:ce(void 0),vkLogo:ce(void 0),interactiveTimeIndicator:ce(void 0),timeline:ce(void 0),autoplayNextToggle:ce(void 0),additionalButtons:H.length?H.reduce(c=>[...c,ce(void 0)],[]):[],disabledControls$:se},modals:{hotKeyMap:{show:ce(!1),data:ce({title:"",closeBtnText:"",groups:[]})}},isFullscreen:De,isFullscreenOpenedByKeyboard:Ze,rotateAlpha:gt,isAutoplay:ce(!1),debugPanelVisible:ce(!1),episodes:{panelOpened$:ce(!1),openedByKeyboard$:ce(!1)},contextMenu:{visible$:ce(!1),btnRef$:ce(void 0),openedByBtnKeyboard$:ce(!1),openedByHotKey$:ce(!1),lastActiveElem$:ce(void 0),showContextMenuBtn$:ce(!1),position$:ce({top:0,left:0})},playerSize:At,isMobile:xi,mobileNotReportControlHidden$:Uo,mobileUnmuteButtonExpanded:ce(!1),mobileUnmuteButtonVisible:ce(!1),icon3DVideoVisible:ce(!1),scrubbingInProgress:Jn,volumeChangingInProgress:no,is3DVideo:ce(!1),currentGridType$:jt,additionalButtonsDeprecated$:Lr,additionalDesktopControlPanelRightButtons$:Is,additionalSettingsMenuItems$:Ca,additionalContextMenuItems$:Ps,interactiveHideMobileControls:ce(!1),overlayContainer$:ce(void 0),startedByKeyboard$:ce(!1),autoplayNextEnabled$:ce(!1),timerNextVideoRunning$:ce(!0),settingsMenu:{visible$:ce(!1),ref$:ce(void 0),openedByBtnKeyboard$:ce(!1)},settingsSubMenu:{visible$:ce(!1),ref$:ce(void 0),name$:ce(void 0)},aboutToGoNextVideo:ce(void 0),userActionsDisabled:ce(!1)},ads:{position:ce(0),duration:ce(0),playbackState:ce("inactive"),canSkip:ce(!1),secondsToWatchBeforeSkip:ce(0),postrollPassed:ce(!1)},webApi:{pictureInPictureApi:ie,annotationsApi:Q},actions:{internal:{preload:gi,firstStart:c=>Tl(c,!1),play:()=>Cl(!1),pause:()=>sc(!1),togglePlay:Lo,toggleMuted:lr,openSettingsMenu:Gn,closeSettingsMenu:Ir,openSettingsSubMenu:kr,closeSettingsSubMenu:hn,setVolume:Ao,startVolumeChanging:pi,stopVolumeChanging:Ie,setVideoStream:ho,setAudioStream:fn,setQuality:io,setTrafficSavingEnabled:oo,setHighQualityEnabled:_n,setPlaybackRate:Zn,incrementPlaybackRate:Er,decrementPlaybackRate:cr,setSubtitle:bn,toggleSubtitle:Vn,togglePictureInPicture:Ms,startScrubbing:Mr,progressScrubbing:ct,completeScrubbing:vi,toggleChromecast:rc,switchToActiveLive:so,switchFromAdsToVideo:Bi,switchFromVideoToAds:ss,skipAd:ii,setLiveWaitingStart:Sl,setLiveWaitingRecover:ic,setLiveWaitingRecord:Vu,getDebugTextData:oc,getTraceTextData:Ru,getDebugPanelData:nc,getVideoElement:As,seekTime:(c,x,N)=>Zo(c,x,N),clearDelayedBufferingCheckTimeout:Io,seekEpisodeStartTime:Xo,seekToPercent:Xn,getNextEpisode:ac,seekToNextEpisode:Du,getPrevEpisode:We,seekToPrevEpisode:oi,startLogging:ri,stopLogging:Hi,startCameraManualRotation:Yi,stopCameraManualRotation:Fi,moveCameraFocusPX:mo,holdCamera:Do,releaseCamera:nt,getVideoEpisodes:Il,getPreviewThumbsData:en,downloadVideo:Qn,addLanguage:qp,setLanguage:Qt,nextMovie:lt,videoRotate:tn,correctSeekTimeToInteractive:sv,replayInteractive:P,setLooped:pt,reportProblem:Ot,setAutoplayNextEnabled:Pi,setTimerNextVideoRunning:Mo,prevVideoClick:st,nextVideoClick:Rt,nextVideoAnnouncementShow:Di,nextVideoAnnouncementClick:_o,nextVideoAnnouncementAuto:yi,nextVideoAnnouncementCancel:Ai},external:{firstStart:c=>Tl(c,!0),play:()=>Cl(!0),pause:()=>sc(!0),stop:()=>Nu(!0),seekTime:c=>Pr(c),seekEpisodeStartTime:c=>ur(c),setPlaybackRate:c=>bo(c),setAutoQualityLimits:c=>Ar(c),setMuted:Si,toggleSubtitle:Vn,setVolume:Ao,returnFocusToEpisodes:o0,updateAdditionalSettingsItem:Es,addAdditionalSettingsItem:wl,removeAdditionalSettingsItem:Ia,updateAdditionalContextItem:yt,addAdditionalContextItem:_t,removeAdditionalContextItem:ro,updateAdditionalButton:ks,addAdditionalButton:yl,removeAdditionalButton:Ta,setLiveLowLatency:xl}},callbacks:l,setUiCallbacks:c=>{Je={...c}},getAdmanWrapper:()=>te,getLogger:()=>Ve,getPlayer:()=>D,destroy:n0};return Mt};function fa(t,e,i,o){var $;let n=["interactiveTimeIndicator"],a=($=e[i])==null?void 0:$.getBoundingClientRect(),s=(o||n.includes(i))&&!!a&&!!(a.right-a.left),{top:d,left:l,bottom:p,right:m}=ll(e[i],t||void 0);return{left:s?l:0,right:s?m:0,top:s?d:0,bottom:s?p:0,isDisplayed:s}}var cl=(t,e,i,o)=>{if(t)for(let[n,a]of Object.entries(e))["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(n)||a.set(fa(t,i,n,o))};var cu=async(t,e,i)=>{await xo(),e&&i&&(i.focus(),t.set(!1))};var C2=be('<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 Uf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=C2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img",...i})),b(t,o)}function zf(t,e){U(e,!0);let[i,o]=Be(),n=()=>S(l,"$contextMenuVisible$",i),a=f(e,"disabled",3,!1),s=f(e,"ariaLabel",3,""),d=Se(),l=d.ui.contextMenu.visible$,p=d.ui.contextMenu.openedByBtnKeyboard$,m=d.ui.contextMenu.showContextMenuBtn$,$=d.ui.contextMenu.position$,u=d.ui.contextMenu.btnRef$,_=J(void 0);Ue(()=>{r(_)&&xt(()=>{u.set(r(_))})});let w=E=>{let P=bs(E),A=Kh(r(_));$.set(A),p.set(P),l.set(!n())},y=()=>{m.set(!0)},C=()=>{m.set(!1)},T=v(()=>n()?"opened":"");Vt(t,{get className(){return r(T)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return s()},click:w,focus:y,blur:C,get ariaExpanded(){return n()},get ref(){return r(_)},set ref(E){B(_,pe(E))},children:(E,P)=>{Uf(E,{})},$$slots:{default:!0}}),z(),o()}var T2=t=>{t.stopPropagation()},I2=L("<div><!> <div></div> <div></div></div>"),k2={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
|
|
228
|
+
}`};function Rf(t,e){U(e,!0),K(t,r2);let i=f(e,"isMobile",3,!1),o=v(()=>e.iconState===Vf.ChromecastState.CONNECTED),n=v(()=>e.iconState===Vf.ChromecastState.CONNECTING);var a=Oe(),s=ue(a);{var d=p=>{var m=o2(),y=h(m),u=h(y),$=h(u);$e(),g(u);var w=A(u);$e(),g(y);var b=A(y),C=h(b),T=h(C);g(C),$e(),g(b),g(m),E(()=>{Be($,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Be(w,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Be(T,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),_(p,m)},l=p=>{var m=n2();let y;var u=h(m),$=A(h(u),5);let w;g(u),g(m),E((b,C)=>{y=J(m,0,"svelte-8z1bf5",null,y,b),w=J($,0,"svelte-8z1bf5",null,w,C)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),_(p,m)};B(s,p=>{i()?p(d):p(l,!1)})}_(t,a),z()}var l1=require("@vkontakte/videoplayer-shared/es2018");function xd(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"isMobile",3,!1),n=f(e,"click",3,l1.noop),s=Ce().ui.t,d=v(()=>e.state===a1.ChromecastState.CONNECTED?s("tooltip_chromecast_on"):s("tooltip_chromecast_off"));Bt(t,{get ariaLabel(){return r(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(l){i(l)},children:(l,p)=>{Rf(l,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),z()}var s2=L('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),a2={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 Bf(t,e){K(t,a2);let i=f(e,"active",3,!1),o=f(e,"pointer",3,!1),n=f(e,"translateXPx",3,0),a=f(e,"translateYPx",3,0),s=f(e,"leftOffset",3,0),d=f(e,"rightOffset",3,0),l=X(void 0),p=X(void 0);function m(C){if(!r(p))return 0;let{width:T}=r(p).getBoundingClientRect(),I=T/2;return C<I?I+s():C>e.containerWidth-I?e.containerWidth-I-d():C}let y=v(()=>m(n()));var u=s2(),$=h(u);let w;var b=h($);ve(b,()=>{var C;return(C=e.children)!=null?C:ie}),g($),gt($,C=>D(p,C),()=>r(p)),g(u),gt(u,C=>D(l,C),()=>r(l)),E(C=>{st(u,`transform: translate(${r(y)}px, ${a()}px);`),w=J($,1,"tooltip svelte-5ygsa2",null,w,C),st($,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),_(t,u)}var iu=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var d1=t=>!!(Math.round(Math.abs(t)/90)%2),c1=t=>Math.abs(t)/90%4===1;var l2=L('<div class="preview svelte-1wqg760"></div>'),d2=L('<div class="time svelte-1wqg760"> </div>'),c2=L('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),u2={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 Nf(t,e){U(e,!0),K(t,u2);let[i,o]=Ne(),n=()=>S(w,"$rotateAlpha",i),a=()=>S(b,"$playerSize",i),s={MOBILE:150,DESKTOP:278},d=f(e,"time",3,""),l=f(e,"isMobile",3,!1),p=f(e,"videoEpisodes",19,()=>[]),m=f(e,"progress",3,0),y=f(e,"duration",3,0),u=f(e,"isInteractive",3,!1),$=Ce(),w=$.ui.rotateAlpha,b=$.ui.playerSize,C=X(0),T=X(0),I=X(""),M=X(0),P=X(0),k=X(0),R=X(0),W=v(()=>iu(m(),y(),p())),Y=v(()=>d1(n())),F=v(()=>c1(n())),Q=v(re),oe=v(()=>(r(F)?1:-1)*(r(C)/2-r(T)/2)),Z=v(()=>r(oe)*-1);Fe(()=>{(le=>(D(C,pe(le.width)),D(T,pe(le.height))))(Ae())}),Fe(()=>{(le=>(D(I,pe(le.imgSrc)),D(M,pe(le.imgWidth)),D(P,pe(le.imgHeight)),D(k,pe(le.imgOffsetX)),D(R,pe(le.imgOffsetY))))(Me(m()))});function re(){var De;let le=l()?s.MOBILE:s.DESKTOP,{isVertical:he}=de(),ee=30;return(De=r(W))!=null&&De.text&&(ee+=16),(he||r(Y))&&(ee+=18,ee+=50),Math.min(Math.max(a().height-ee,0),le)}function de(){let le=e.previewThumbsData.frameWidth,he=e.previewThumbsData.frameHeight,ee=he>le;return{width:le,height:he,isHorizontal:!ee,isVertical:ee}}function Ae(){let{height:le,isHorizontal:he,isVertical:ee,width:De}=de();return he&&(le=le/De*r(Q),De=r(Q)),ee&&(De=De/le*r(Q),le=r(Q)),{width:De,height:le}}function Me(le){let he;e.previewThumbsData.isUV?he=Math.floor(y()*le/e.previewThumbsData.frequency):he=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*le)));let ee=Math.floor(he/e.previewThumbsData.countPerImage),De=Math.floor(he%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),Ze=he%e.previewThumbsData.countPerRow,we=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&ee===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(we=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&we++);let Ve=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&ee===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Ve=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Ie=r(C)*Ve,Ue=r(T)*we,ct=-Ze*r(C),ut=-De*r(T);return{imgSrc:e.previewThumbsData.links[ee],imgWidth:Ie,imgHeight:Ue,imgOffsetX:ct,imgOffsetY:ut}}var ge=c2();let se;var Ee=h(ge);{var ne=le=>{var he=l2();E(()=>st(he,`width: ${r(C)}px; height: ${r(T)}px; background-image: url(${r(I)}); background-size: ${r(M)}px ${r(P)}px; background-position: ${r(k)}px ${r(R)}px;
|
|
229
|
+
transform: rotate(${n()}deg) ${r(Y)?`translate(${r(oe)}px, ${r(Z)}px)`:""};
|
|
230
|
+
`)),_(le,he)};B(Ee,le=>{r(I)&&le(ne)})}var V=A(Ee,2),xe=h(V);{var _e=le=>{var he=Oe(),ee=ue(he);{var De=we=>{var Ve=Nr();E(Ie=>me(Ve,Ie),[()=>q("tooltip_episode_unfinished")]),_(we,Ve)},Ze=we=>{var Ve=Nr();E(()=>me(Ve,r(W).text||"")),_(we,Ve)};B(ee,we=>{u()&&r(W).completed===!1?we(De):we(Ze,!1)})}_(le,he)};B(xe,le=>{r(W)&&le(_e)})}g(V);var ze=A(V,2);{var H=le=>{var he=d2(),ee=h(he,!0);g(he),E(()=>me(ee,d())),_(le,he)};B(ze,le=>{u()||le(H)})}g(ge),E(le=>{se=J(ge,1,"timeline-preview svelte-1wqg760",null,se,le),st(ge,`width: ${r(Y)?r(T):r(C)}px;`)},[()=>({mobile:l()})]),_(t,ge),z(),o()}var p2=L('<span class="time svelte-1jr6obn"> </span>'),f2=L("<!> <!>",1),m2={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 Df(t,e){var Qe,Le,rt,et,_t;U(e,!0),K(t,m2);let[i,o]=Ne(),n=()=>S(oe,"$interactiveEpisodes$",i),a=()=>S(k,"$duration$",i),s=()=>S(P,"$position$",i),d=()=>S(de,"$isInteractiveExpectation$",i),l=()=>S(re,"$isInteractiveTime$",i),p=()=>S(R,"$isLive$",i),m=()=>S(Y,"$isMobile",i),y=()=>S(W,"$isActiveLive$",i),u=()=>S(M,"$bufferedProgress$",i),$=()=>S(ge,"$disabledControls$",i),w=f(e,"showTimeline",3,!1),b=f(e,"withEpisodes",3,!0),C=f(e,"ref",15,void 0),T=Ce(),I=zt(),M=T.state.bufferedProgress$,P=T.state.positionWithScrubbing$,k=T.state.duration$,R=T.state.isLive$,W=T.state.isActiveLive$,Y=T.ui.isMobile,F=I.features.episodes&&b()?T.actions.internal.getVideoEpisodes():void 0,Q=T.actions.internal.getPreviewThumbsData(),oe=T.state.interactiveEpisodes$,Z=T.state.isInteractive,re=T.state.isInteractiveTime$,de=T.state.isInteractiveExpectation$,Ae=T.actions.internal.correctSeekTimeToInteractive,Me=(Qe=T.callbacks)==null?void 0:Qe.onDisabledTimelineClick,ge=T.ui.controls.disabledControls$,se=(rt=(Le=T.callbacks)==null?void 0:Le.uiInfo)==null?void 0:rt.onTimelineMouseEnter,Ee=(_t=(et=T.callbacks)==null?void 0:et.uiInfo)==null?void 0:_t.onTimelineMouseLeave,ne=T.ui.t,V=I.features.interactiveResponsiveUi,xe=v(()=>Z?n():F),_e=v(()=>un(a())),ze=v(()=>un(s())),H=v(()=>s()/a()),le=v(()=>d()||l()),he=X(!1),ee=X(""),De=X(0),Ze=X(0),we=X(0),Ve=v(()=>({containerWidth:r(Ze),translateXPx:r(De),translateYPx:Z&&Q?-36:-16,active:r(he)&&w()&&!r(le)&&!V,pointer:!I.features.timelinePreview||!Q||p()})),Ie=ne("aria_timeline"),Ue=v(()=>ne("aria_timeline_value",{position:r(ze),duration:r(_e)}));function ct(it){return!Ae||!Z?it:Ae(it*a())/a()}function ut(it){T.actions.internal.startScrubbing(ct(it))}function nt(it){l()||T.actions.internal.progressScrubbing(ct(it))}function Ct(it){T.actions.internal.completeScrubbing(ct(it)),D(he,!1)}function mt(it,Xe,Kt){Lt(it,Xe,Kt),D(he,!0)}function Wt(it,Xe,Kt){Lt(it,Xe,Kt),D(he,!0)}function ti(){D(he,!1)}function Lt(it,Xe,Kt){D(we,pe(ct(it))),D(De,pe(Xe)),Kt&&D(Ze,pe(Kt)),D(ee,pe(Nt(it)))}function Nt(it){let Xe=un((p()?1-it:it)*a());return p()?`-${Xe}`:Xe}var O=f2(),be=ue(O);Bf(be,ts(()=>r(Ve),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(it,Xe)=>{var Kt=Oe(),bt=ue(Kt);{var yi=Ge=>{Nf(Ge,{get time(){return r(ee)},get isMobile(){return m()},get videoEpisodes(){return r(xe)},previewThumbsData:Q,get progress(){return r(we)},get duration(){return a()},isInteractive:Z})},Jt=Ge=>{var Yt=p2(),Vi=h(Yt,!0);g(Yt),E(()=>me(Vi,r(ee))),_(Ge,Yt)};B(bt,Ge=>{I.features.timelinePreview&&Q&&!p()?Ge(yi):Ge(Jt,!1)})}_(it,Kt)},$$slots:{default:!0}}));var te=A(be,2);let Re=v(()=>Math.round(r(H)*100)),je=v(()=>$().has("TIMELINE"));da(te,{className:"timeline-slider",get isActiveLive(){return y()},get isMobile(){return m()},ariaLabel:Ie,ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r(Re)},get ariaValueText(){return r(Ue)},get loadedProgress(){return u()},get filledProgress(){return r(H)},get handleProgress(){return r(H)},get videoEpisodes(){return r(xe)},onPointerDown:ut,onHandleMove:nt,onPointerMove:Wt,onPointerUp:Ct,onPointerEnter:mt,onPointerLeave:ti,onMouseEnter:se,onMouseLeave:Ee,onDisabledClick:Me,isInteractive:Z,get disabled(){return r(je)},get hideHandel(){return l()},testId:"progress_bar",get ref(){return C()},set ref(it){C(it)}}),_(t,O),z(),o()}var v2={hash:"svelte-1yate8h",code:".timeline-ads-slider {--slider-bg: var(--timeline-slider-bg);--slider-filled-bg: var(--timeline-slider-filled-bg);--slider-handle-bg: var(--timeline-slider-handle-bg);--slider-loaded-bg: var(--timeline-slider-loaded-bg);}"};function wd(t,e){U(e,!0),K(t,v2);let[i,o]=Ne(),n=()=>S(l,"$isMobile",i),a=f(e,"position",3,0),s=f(e,"duration",3,0),d=Ce(),l=d.ui.isMobile,p=d.ui.t,m=v(()=>un(s())),y=v(()=>un(a())),u=v(()=>a()/s()),$=v(()=>p("aria_timeline_value",{position:r(y),duration:r(m)})),w=v(()=>Math.round(r(u)*100));da(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return r(w)},get ariaValueText(){return r($)},get filledProgress(){return r(u)},hideHandel:!0,get squareBorders(){return n()}}),z(),o()}var g2=L("<div><!></div>"),h2=L("<div></div>"),_2={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 ca(t,e){U(e,!0),K(t,_2);let[i,o]=Ne(),n=()=>S($,"$isLive$",i),a=()=>S(C,"$isMobile",i),s=()=>S(b,"$adPosition",i),d=()=>S(w,"$adDuration",i),l=f(e,"isAds",3,!1),p=f(e,"isHidden",3,!1),m=f(e,"needPadding",3,!0),y=f(e,"ref",15,void 0),u=Ce(),$=u.state.isLive$,w=u.ads.duration,b=u.ads.position,C=u.ui.isMobile,T=v(()=>!p()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||l()));var I=Oe(),M=ue(I);{var P=R=>{var W=g2();let Y;var F=h(W);{var Q=Z=>{wd(Z,{get position(){return s()},get duration(){return d()}})},oe=Z=>{Df(Z,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return r(T)},get withEpisodes(){return e.withEpisodes},get ref(){return y()},set ref(re){y(re)}})};B(F,Z=>{l()?Z(Q):Z(oe,!1)})}g(W),E(Z=>Y=J(W,1,"timeline svelte-41cp6d",null,Y,Z),[()=>({withoutPadding:!m(),mobile:a()})]),_(R,W)},k=R=>{var W=h2();let Y;E(F=>Y=J(W,1,"timeline-stub svelte-41cp6d",null,Y,F),[()=>({mobile:a()})]),_(R,W)};B(M,R=>{r(T)?R(P):R(k,!1)})}_(t,I),z(),o()}var u1=require("@vkontakte/videoplayer-shared/es2018");var b2=ye('<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 Of(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=b2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(3),g(o),E(()=>n=Te(o,n,{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})),_(t,o)}var $2=ye('<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 Hf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=$2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img",...i})),_(t,o)}var y2=L('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),x2=L('<span class="text svelte-1yhs2ga"> </span>'),w2=L('<span class="text count svelte-1yhs2ga"> </span>'),S2=L("<!> <!>",1),C2={hash:"svelte-1yhs2ga",code:".text.svelte-1yhs2ga {padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.text.count.svelte-1yhs2ga {overflow:visible;}.text.mobile.svelte-1yhs2ga {padding:0 3px 0 4px;}.chevron-episodes.svelte-1yhs2ga {margin-bottom:-4px;}"};function Sd(t,e){var de,Ae,Me;U(e,!0),K(t,C2);let[i,o]=Ne(),n=()=>S(w,"$currentGridType$",i),a=()=>S(b,"$openedByKeyboard$",i),s=()=>S(C,"$panelOpened$",i),d=()=>S(T,"$isMobile",i),l=f(e,"position",3,0),p=f(e,"duration",3,0),m=f(e,"timeCodes",19,()=>[]),y=Ce(),u=(Ae=(de=y.callbacks)==null?void 0:de.onEpisodeChanged)!=null?Ae:u1.noop,$=!!((Me=y.callbacks)!=null&&Me.onEpisodeClicked),w=y.ui.currentGridType$,b=y.ui.episodes.openedByKeyboard$,C=y.ui.episodes.panelOpened$,T=y.ui.isMobile,I=y.ui.t,M=X(void 0),P=ge=>{var Ee,ne,V;if(!!((Ee=y.callbacks)!=null&&Ee.onEpisodeClicked)){let xe=bs(ge);b.set(xe),C.set(!0),(V=(ne=y.callbacks)==null?void 0:ne.onEpisodeClicked)==null||V.call(ne,xe)}},k=X(null),R=v(()=>l()/p());Fe(()=>{var se;let ge=iu(r(R),p(),m());ge?((se=r(k))==null?void 0:se.time)!==ge.time&&(u(ge),D(k,pe(ge))):D(k,null)});let W=v(()=>{var ge;return((ge=r(k))==null?void 0:ge.text)||""}),Y=v(()=>Qi(n(),"xl")?"FULL":Qi(n(),"m")&&n1(n(),"xl")?"COUNT":"SHORT"),F=v(()=>`${I("tooltip_episodes")}: ${r(W)}`),Q=async(ge,se,Ee)=>{await wo(),(ge==null?void 0:ge.getAttribute("aria-expanded"))==="false"&&se&&!Ee&&St(()=>{b.set(!1),ge.focus()})};Fe(()=>{Q(r(M),a(),s())});var oe=Oe(),Z=ue(oe);{var re=ge=>{let se=v(()=>d()?"px-0":"");Bt(ge,{get className(){var Ee;return`w-max btn-full-opacity btn-jc-l ${(Ee=r(se))!=null?Ee:""}`},testId:"btn-episodes",click:P,disabled:!$,get ariaExpanded(){return s()},get ariaLabel(){return r(F)},get ref(){return r(M)},set ref(Ee){D(M,pe(Ee))},children:(Ee,ne)=>{var V=Oe(),xe=ue(V);{var _e=H=>{var le=y2(),he=ue(le),ee=h(he,!0);g(he);var De=A(he,2),Ze=h(De);Hf(Ze,{}),g(De),E(()=>me(ee,r(W))),_(H,le)},ze=H=>{var le=S2(),he=ue(le);Of(he,{});var ee=A(he,2);{var De=we=>{var Ve=x2(),Ie=h(Ve,!0);g(Ve),E(()=>me(Ie,r(W))),_(we,Ve)},Ze=(we,Ve)=>{{var Ie=Ue=>{var ct=w2(),ut=h(ct,!0);g(ct),E(()=>me(ut,m().length)),_(Ue,ct)};B(we,Ue=>{r(Y)==="COUNT"&&Ue(Ie)},Ve)}};B(ee,we=>{r(Y)==="FULL"?we(De):we(Ze,!1)})}_(H,le)};B(xe,H=>{d()?H(_e):H(ze,!1)})}_(Ee,V)},$$slots:{default:!0}})};B(Z,ge=>{r(k)&&ge(re)})}_(t,oe),z(),o()}var w1=require("@vkontakte/videoplayer-shared/es2018");var ci=require("@vkontakte/videoplayer-core/es2018"),yt=require("@vkontakte/videoplayer-shared/es2018"),Ur=require("@vkontakte/videoplayer-statistics/es2018");var Ke=require("@vkontakte/videoplayer-shared/es2018"),Gi=require("@vkontakte/videoplayer-shared/es2018");var p1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var T2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",ou=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 Gi.Subject,loadStarted$:new Gi.Subject,loadEnded$:new Gi.Subject,loadError$:new Gi.Subject,ready$:new Gi.Subject,slotRequested$:new Gi.Subject,started$:new Gi.Subject,timeRemained$:new Gi.Subject,paused$:new Gi.Subject,resumed$:new Gi.Subject,ended$:new Gi.Subject,empty$:new Gi.Subject,skipped$:new Gi.Subject,clicked$:new Gi.Subject,closed$:new Gi.Subject,error$:new Gi.Subject};this.loadAdman=e=>(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,Ke.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,Ke.now)()]}),i(),this.events.loadEnded$.next()):(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,Ke.now)()]}),o())};(0,Gi.addScript)(T2,e,this.loadTimeout).then(()=>{Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,Ke.now)()]}),window.AdmanHTML?(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,Ke.now)()]}),i(),this.events.loadEnded$.next()):(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,Ke.now)()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout))}).catch(s=>{Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(s)],numbers:[(0,Ke.now)()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,Ke.now)()]}),i(),this.events.loadEnded$.next()):(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,Ke.now)()]}),o())},s=()=>{d=!0,o()},d=!1,l=window.setTimeout(()=>{Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,Ke.now)()]}),s()},this.loadTimeout);e.addEventListener("abort",s),e.aborted&&(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,Ke.now)()]}),s()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,Ke.now)()]}),!d&&(window.AdmanHTML?(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,Ke.now)()]}),i(),this.events.loadEnded$.next()):(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,Ke.now)()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout)))},s).finally(()=>{clearTimeout(n),clearTimeout(l),e.removeEventListener("abort",s)})});this.onAdsReady=()=>{Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,Ke.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,Ke.now)(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),Se(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized")};this.onAdPaused=()=>{var e;Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,Ke.now)()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,Ke.now)()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,Ke.now)()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var M;if(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,Ke.now)(),e.slotId]}),this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:a,adsContainer:s,adsVideoElement:d,slotId:l,params:p={},duration:m,previewParam:y}=e,u,$=this.playerState&&Se(this.playerState.vsid);$&&(this.isVsidOriginal?u=$:u=parseInt($,36));let{isEmbed:w,immediateOrigin:b}=(0,Ke.detectEmbed)(),C=(M=w?b:window.location.href)!=null?M:window.location.href,T={...p,dl:encodeURIComponent(C),autoplay:a?1:0,player_width:i,player_height:o,preview:y,...u?{request_id:u}:{},duration:m,puid10:p1(i,o),puid11:n?0:1};y||delete T.preview;let I={slot:l,wrapper:s,videoEl:d,videoQuality:o,params:T,browser:{mobile:!1}};try{let P=new window.AdmanHTML;P.setDebug(!1),P.onReady(this.onAdsReady),P.onStarted(this.onAdStarted),P.onPlayed(this.onAdPlayed),P.onPaused(this.onAdPaused),P.adMidrollPoint(this.onAdMidrollPoint),P.onClosed(this.onAdClosed),P.onSkipped(this.onAdSkipped),P.onClicked(this.onAdClicked),P.onTimeRemained(this.onAdTimeRemained),P.onCompleted(this.onAdCompleted),P.onError(this.onAdError),P.init(I),this.adman=P,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(I)}`})}catch(P){Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(P)],numbers:[(0,Ke.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,a;if(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,Ke.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${i}`}),i&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"}));else{let s="Switch to video: Adman state was not updated correctly";this.log({message:s}),this.events.error$.next(s)}(a=(n=this.actions).switchFromAdsToVideo)==null||a.call(n,!i)}}togglePlay(){var e;if(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.adsState){this.log({message:"toggle play"});let i=Se(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,Ke.now)()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,a,s,d,l,p,m,y,u;Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,Ke.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(n=this.adman)==null||n.onPaused(void 0),(a=this.adman)==null||a.adMidrollPoint(void 0),(s=this.adman)==null||s.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(l=this.adman)==null||l.onClicked(void 0),(p=this.adman)==null||p.onTimeRemained(void 0),(m=this.adman)==null||m.onCompleted(void 0),(y=this.adman)==null||y.onError(void 0),(u=this.adman)==null||u.destroy(),this.videoElement&&(0,Gi.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var f1=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 Ff=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 a of n){let s={startTime:0,endTime:0,texts:[],lang:i},d=a.split(this.oneLineRegExp);for(let l of d)if(!s.startTime&&!s.endTime){let p=new nu,{startTime:m,endTime:y}=p.parse(l);s.startTime=m,s.endTime=y}else if(l.trim()!==""){let p=new Uf,{texts:m}=p.parse(l);s.texts=[...s.texts,...m]}(s.startTime||s.endTime)&&s.texts.length>0&&o.push(s)}return o}},nu=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 a=Number(e)*60*60,s=Number(i)*60,d=Number(o),l=+`0.${n}`;return a+s+d+l}},Uf=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](s){let d=0,l=[];for(;d<s.length;){let p=["<",">"].reduce((m,y)=>{let u=s.indexOf(y,d);return m===-1||m>u?u:m},-1);if(p===-1){l.push(s.substring(d));break}l.push(s.substring(d,p)),d=p+1}return l}}),a=new nu;for(let s of n)a.isTime(s)?i.texts.push({type:"timestamp",value:a.parseTime(s)}):i.texts.push({type:"text",value:s});return i}},m1=Ff;var su=require("@vkontakte/videoplayer-shared/es2018"),ua,Ii,zf=0,qf=!1,v1="",g1=(t,e=0,i=0)=>t<e&&t<i,ru=(t,e=0,i=0)=>t>=e&&t<=i,I2=(t,e=0,i=0)=>t>e&&t>i,h1=(t,e,i,o=!1)=>{var d;let n=(d=i.find(({id:l})=>l===e.value))==null?void 0:d.subtitles;if(o)return n==null?void 0:n.find(({startTime:p,endTime:m})=>ru(t,p,m));let a=t>=zf,s=t<zf;if(zf=t,s&&(qf=!1),(0,su.isNonNullable)(ua)&&ru(t,ua.startTime,ua.endTime)&&v1===e.value)return ua;if(!(0,su.isNonNullable)(Ii)&&(n!=null&&n.length)&&!qf){Ii=n.find(({startTime:p,endTime:m})=>ru(t,p,m)||a&&g1(t,p,m)),ua=void 0,!(0,su.isNonNullable)(Ii)&&n[n.length-1].endTime<t&&(qf=!0);return}else{if(ru(t,Ii==null?void 0:Ii.startTime,Ii==null?void 0:Ii.endTime))return ua=Ii,Ii=void 0,v1=e.value,ua;(a&&I2(t,Ii==null?void 0:Ii.startTime,Ii==null?void 0:Ii.endTime)||s&&g1(t,Ii==null?void 0:Ii.startTime,Ii==null?void 0:Ii.endTime))&&(Ii=void 0)}};var au={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"},k2={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"},lu=t=>{var e,i;return(i=(e=au[t])!=null?e:au[k2[t]])!=null?i:void 0};var _1=require("@vkontakte/videoplayer-shared/es2018"),wB=require("@vkontakte/videoplayer-statistics/es2018"),du=class{constructor(e,i,o=new _1.Subscription){this.oneStat=e;this.mediascopePixel=i;this.statSubscription=o}destroy(){var e;this.oneStat.destroy(),(e=this.mediascopePixel)==null||e.destroy(),this.statSubscription.unsubscribe()}};var Cd=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Cd||{});var Fr=t=>t!=null?t:0,ul=(t,e)=>{var n,a;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(a=e==null?void 0:e.getBoundingClientRect)==null?void 0:a.call(e);return{top:Math.round(Fr(i==null?void 0:i.top)-Fr(o==null?void 0:o.top)),left:Math.round(Fr(i==null?void 0:i.left)-Fr(o==null?void 0:o.left)),bottom:Math.round(Fr(i==null?void 0:i.bottom)-Fr(o==null?void 0:o.top)),right:Math.round(Fr(i==null?void 0:i.right)-Fr(o==null?void 0:o.left))}},pl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:Fr(e==null?void 0:e.width),height:Fr(e==null?void 0:e.height)}};var cu="off";var b1=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:a,isAudioDisabled:s,canDownload:d,callbacks:l,webApi:p,videoEpisodes:m,previewThumbsData:y,uiConfig:u,coreConfig:$,player:w,disabledControls:b,isInteractive:C,interactiveRanges$:T,isInteractiveTime$:I,replayInteractive:M,stopPlayer:P,hasInteractiveBranches:k,playPrevChapterDisabledTooltip:R,additionalButtons:W,additionalSettingsMenuItems:Y,additionalContextMenuItems:F,playPrevVideo:Q,playNextVideo:oe,looped:Z=!1,statistics:re,saveRate:de,internalsExposure:Ae,playerView:Me})=>{var cv,uv,pv;let ge={...$,configName:[...(cv=$.configName)!=null?cv:[],"ui"],isAudioDisabled:s,live:{...(uv=$.live)!=null?uv:{},isLiveCatchUpMode:!!n}},se=u,Ee=yt.TracerFactory.createRootTracer(se.features.tracer),ne=Ee.createComponentTracer("Store"),V=w||new ci.Player(ge,Ee);Ae==null||Ae.expose({corePlayer:V});let xe=new yt.Logger,_e=new ou(xe,{loadTimeout:se.ads.loadTimeout,initTimeout:se.ads.initTimeout,runtimeTimeout:se.ads.runtimeTimeout,useAdmanFromNPM:se.ads.useAdmanFromNPM,volumeMultiplier:se.ads.volumeMultiplier,isVsidOriginal:se.ads.isVsidOriginal}),ze=Js.getInstance(),H=p==null?void 0:p.pictureInPictureApi,le=p==null?void 0:p.annotationsApi,he=p==null?void 0:p.slotsApi,ee=xe.createComponentLog("Store"),De,Ze,we={},Ve=new Bc,Ie=re?Xt(re.oneStat.vsid$):ar(void 0),Ue=ce(gs()),ct=ce(!1),ut=(pv=H==null?void 0:H.info.isActive$)!=null?pv:new yt.ValueSubject(!1),nt=ce(0),Ct=ce([]),mt=(0,yt.merge)(V.events.fatalError$,V.events.managedError$).subscribe(c=>Ct.update(x=>[...x,c])),Wt=ar(!1,c=>{let x=V.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),ti=async c=>{var ae;let x=Object.values(yt.InterfaceLanguage).includes(c);if(se.downloadVKLanguages&&(x&&se.updateBuiltinLanguages||!Gp(c))){let We;try{We=await(0,yt.loadVKLangPack)(c,ih,oh)}catch(It){(ae=re==null?void 0:re.oneStat)==null||ae.logError({errorType:"VKLangPack",fatal:!1}),ze==null||ze.report(It,{errorType:"VKLangPack",fatal:!1})}We&&(Qp({language:c,pack:We,fallback:se.defaultLanguage}),Lt.set(c))}Gp(c)&&Lt.set(c)},Lt=ce(t),Nt=ce(e);ti(t);let O=(c,x)=>{let N=Se(Lt);return Yp(N,c,x,se.defaultLanguage)},be=ce("thumb"),te=(()=>{let c=$i([Wt,be],([x,N])=>x?"crashed":N);return{...c,is:x=>Se(c)===x}})(),Re=(()=>{let c=ce(new Set(b));return{...c,add:x=>{c.update(N=>new Set([...N].concat(x)))},remove:x=>{c.update(N=>{let ae=[...N];return new Set(Array.isArray(x)?ae.filter(We=>!x.includes(We)):ae.filter(We=>We!==x))})},includes:x=>{let N=Se(c);return Array.isArray(x)?x.every(ae=>N.has(ae)):N.has(x)}}})();ne.log("create store"),ee({message:"create store"});let je=c=>{let x=c.container;x.append(V.experimental.element$.getValue()),Xe=new MutationObserver(N=>{let{removedNodes:ae}=N[0];ae.length&&x.append(V.experimental.element$.getValue())}),Xe.observe(x,{childList:!0})},Qe=c=>{ee({message:`init video, config: ${JSON.stringify(c)}`}),C?je(c):(yt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,yt.now)()]}),V.initVideo(c)),ne.log("init video",{isInteractive:C}),c.subtitles&&V.setExternalTextTracks(c.subtitles),De=c},Le=new yt.Subject,rt=c=>Le.next(c),et=new yt.Subject,_t=new yt.Subject,it=new yt.Subject,Xe=null,Kt={actionRewind$:et,actionSeek$:_t,inPiP$:ut,inFullscreen$:new yt.Observable(c=>Ue.subscribe(x=>c.next(x))),actionSetSubtitle$:it,nextMovie$:Le};if(re){let{oneStat:c,mediascopePixel:x,statSubscription:N}=re;C||N.add(c.attachTo(V)),N.add(c.attachToUi(Kt)),N.add(c.attachToAds(_e.events)),c.authorize(a).catch(ae=>{ee({message:`onestat auth error ${String(ae)}`})}),x&&x.attachTo(V)}if(ze){let c=new yt.Subscription,x=(N,ae)=>c.add(N.subscribe(ae));if(x(V.events.managedError$,N=>{ze.logIError(N)}),x(V.events.fatalError$,N=>{ze.logIError(N,!0)}),re){let{oneStat:N}=re;x(N.experimental.error$,ae=>{ze.logIError(ae)})}ze.sentrySubscription.add(c)}let bt=()=>{ci.clientChecker.device.isIOS&&Ze&&Oh(Ze).catch(c=>{ee({message:`exitIosSafariFullscreen failed: ${c}`})})},yi=new yt.Subscription().add(V.experimental.element$.subscribe(c=>{c&&(Ze=c,c.classList.add("player-media"),ta(H)&&(H.updateVideoElement(),H.registryEventHandlers()),C&&c.setAttribute("pip","false"),Me==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(V.events.ended$.subscribe(()=>{var c;bt(),(c=l==null?void 0:l.onEnded)==null||c.call(l)})).add(V.events.looped$.subscribe(()=>{var c;(c=l==null?void 0:l.onLooped)==null||c.call(l)})).add(V.events.started$.subscribe(async()=>{var x,N;ta(H)&&await(H==null?void 0:H.revealPictureInPicture());let c=V.info.muted$.getValue();(x=l==null?void 0:l.onStarted)==null||x.call(l),(N=we.onStarted)==null||N.call(we,c)})).add(V.events.willSeek$.subscribe(({from:c,to:x})=>{var N;(N=l==null?void 0:l.onSeek)==null||N.call(l,c,x)})).add(V.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=l==null?void 0:l.onAutoplaySoundProhibited)==null||c.call(l)})).add(V.info.position$.subscribe(c=>{var N;let x=V.info.duration$.getValue();isFinite(x)&&x>0&&((N=l==null?void 0:l.onTimeupdate)==null||N.call(l,x,c),_e.setPosition(c,x))})).add(V.events.fatalError$.subscribe(c=>{var x;(x=l==null?void 0:l.onCrashed)==null||x.call(l,c?`${c.id}: ${c.message}`:void 0)})).add(V.events.fetcherRecoverableError$.subscribe(c=>{var x;(x=l==null?void 0:l.onRecoverableError)==null||x.call(l,c?`${c.id}: ${c.message}`:void 0)})).add(V.events.loadedMetadata$.subscribe(()=>{Pt.state.loadedMetadata$.set(!0)})).add(V.info.is3DVideo$.subscribe(c=>{Pt.ui.is3DVideo.set(c)})).add(V.info.isEnded$.subscribe(c=>{C&&(c?(I!=null&&I.getValue()&&Re.add(Jl),Re.add("PLAY_BUTTON")):Re.remove("PLAY_BUTTON"))})).add(V.info.liveTime$.subscribe(c=>{var x;(x=l==null?void 0:l.onLiveTime)==null||x.call(l,c)})).add(V.info.isStalled$.subscribe(c=>{var x;(x=l==null?void 0:l.onStalledChanged)==null||x.call(l,c)})).add(V.info.isLiveEnded$.subscribe(c=>{var x;return c&&((x=l==null?void 0:l.onLiveEnded)==null?void 0:x.call(l))})).add(_e.events.loadStarted$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:x.call(c)})).add(_e.events.loadEnded$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:x.call(c)})).add(_e.events.loadError$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadError)==null?void 0:x.call(c)})).add(_e.events.init$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onInit)==null?void 0:x.call(c)})).add(_e.events.ready$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onReady)==null?void 0:x.call(c)})).add(_e.events.started$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onStarted)==null?void 0:N.call(x,c)})).add(_e.events.timeRemained$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onTimeRemained)==null?void 0:N.call(x,c)})).add(_e.events.ended$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onCompleted)==null?void 0:N.call(x,c)})).add(_e.events.empty$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onEmpty)==null?void 0:x.call(c)})).add(_e.events.clicked$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClicked)==null?void 0:N.call(x,c)})).add(_e.events.closed$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClosed)==null?void 0:N.call(x,c)})).add(_e.events.error$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onError)==null?void 0:N.call(x,c)})).add(_e.events.paused$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onPaused)==null?void 0:x.call(c)})).add(_e.events.resumed$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onResumed)==null?void 0:x.call(c)})),Jt=new yt.Subscription,Ge=()=>{var It,Ot,qt;let{debugLog:c}=se,x,N="#9df7b7",ae="#efd169";if(c&&c!==!0){let{colors:Ht}=c;x=c.tag,N=(It=Ht==null?void 0:Ht[0])!=null?It:N,ae=(qt=(Ot=Ht==null?void 0:Ht[1])!=null?Ot:Ht==null?void 0:Ht[0])!=null?qt:ae}let We=x?`: ${x}`:"";Jt.add(V.events.log$.subscribe(Ht=>{console.debug(`%c sdk${We} `,`background:${N};`,`sdk component: ${Ht.component}`,Ht.message)})).add(xe.log$.subscribe(Ht=>{console.debug(`%c ui${We} `,`background:${ae};`,`ui component: ${Ht.component}.`,Ht.message)}))},Yt=()=>{Jt.unsubscribe()},Vi=(c,x)=>{ne.log("start camera manual rotation",{mx:c,my:x}),V.startCameraManualRotation(c,x)},Oi=(c=!1)=>{ne.log("stop camera manual rotation",{immediate:c}),V.stopCameraManualRotation(c)},uo=(c,x,N)=>{ne.log("move camera focus px",{xpx:c,ypx:x,dt:N}),V.moveCameraFocusPX(c,x,N)},ji=()=>{V.holdCamera()},ot=()=>{V.releaseCamera()},$t=ar(V.info.position$.getValue(),c=>{let x,N,ae=()=>{let We=V.info.playbackState$.getValue(),It=V.info.isLive$.getValue(),Ot=V.info.duration$.getValue(),qt=V.info.position$.getValue();if(We&&[ci.PlaybackState.PLAYING,ci.PlaybackState.PAUSED].includes(We)){let Ht=It?qt-Ot:V.getExactTime();Ht!==N&&c(Ht),N=Ht}x=requestAnimationFrame(ae)};return ae(),()=>cancelAnimationFrame(x)}),ki=Xt(V.info.playbackState$),eo=Xt(V.info.currentBuffer$),To=Xt(V.info.isEnded$),j=Xt(V.info.isLive$),jt=se.features.playbackRate?Xt(V.info.canChangePlaybackSpeed$):ar(!1),gi=Xt(V.info.liveBufferTime$),Ri=Xt(V.info.volume$),si=Xt(V.info.muted$),pt=Nc(V.info.predefinedQualityLimitType$.pipe((0,yt.map)(c=>c===ci.PredefinedQualityLimits.TRAFFIC_SAVING)),V.info.predefinedQualityLimitType$.getValue()===ci.PredefinedQualityLimits.TRAFFIC_SAVING),mi=Nc(V.info.predefinedQualityLimitType$.pipe((0,yt.map)(c=>c===ci.PredefinedQualityLimits.HIGH_QUALITY)),V.info.predefinedQualityLimitType$.getValue()===ci.PredefinedQualityLimits.HIGH_QUALITY),Je=Xt(V.info.autoQualityLimitingAvailable$),Vt=Xt(V.info.availableQualities$),po=Xt(V.info.availableQualitiesFps$),Zt=Xt(V.info.chromecastState$),Un=Xt(V.info.chromecastDeviceName$),to=Xt(V.info.currentFormat$),Vo=Xt(V.info.throughputEstimation$),ui=Xt(V.info.videoBitrate$),Tt=Xt(V.info.intrinsicVideoSize$),Bi=Xt(V.info.duration$),Uo=Xt(V.info.isAudioAvailable$),pi=null,zo=V.info.isBuffering$,Hi=ar(zo.getValue(),c=>{let x=zo.subscribe(N=>{N&&pi===null?pi=window.setTimeout(()=>{c(zo.getValue()),pi=null},se.loaderDelay):c(N)});return()=>{x.unsubscribe(),pi&&clearTimeout(pi)}}),Io=()=>{pi&&clearTimeout(pi),pi=null},Fi=$i([Bi,j],([c,x])=>x?-c:c),zn=$i([ki],([c])=>c===ci.PlaybackState.PLAYING),fo=Xt(V.info.atLiveEdge$),En=Xt(V.info.atLiveDurationEdge$),Ro=Xt(V.info.position$),Bo=$i([Ro,Bi],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),Pn=$i([Zt],([c])=>c===ci.ChromecastState.CONNECTED),Ir=Xt(V.info.availableVideoStreams$),dr=se.features.audioLanguages?Xt(V.info.availableAudioStreams$):ar([]),An=Xt(V.info.currentVideoStream$),fn=Xt(V.info.currentAudioStream$),qn=c=>{c.language&&Kp(c.language),V.setVideoStream(c)},ft=c=>{c.language&&Kp(c.language),V.setAudioStream(c)},mo=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(ae=>"isDefault"in ae&&ae.isDefault)),x)return x;let N=Ih();return N&&(x=c.find(({language:ae})=>N===ae)),x!=null||(x=c.at(0)),x},qo=!1;yi.add(V.info.availableAudioStreams$.subscribe(c=>{if(!qo&&c.length){let x=mo(c);x&&(V.setAudioStream(x),qo=!0)}}));let Mn=!1;yi.add(V.info.availableVideoStreams$.subscribe(c=>{if(!Mn&&c.length){let x=mo(c);x&&(V.setVideoStream(x),Mn=!0)}}));let No=ce(void 0),Wo=Xt(V.info.isAutoQualityEnabled$,c=>c&&No.set(void 0)),Wn=Xt(V.info.currentQuality$,()=>No.set(void 0)),Do=$i([No,Wn],([c,x])=>c!=null?c:x),Kn=$i(to,c=>c!==ci.VideoFormat.MPEG),mn=$i([Vt,po,Wo,Do,Kn],([c,x,N,ae,We])=>{let It=[];We&&It.push({value:"auto",displayValue:O("auto_quality_option"),selected:N});let Ot=c.filter(qt=>!(0,yt.isInvariantQuality)(qt));for(let qt of Ot){let Ht=x[qt];It.push({value:qt,displayValue:`${qt}${Ht?f1(Ht):""}`,selected:N?!1:qt===ae})}return It}),Qn=Xt(V.info.currentPlaybackRate$),Ko=$i([Qn,fo,En],([c,x,N])=>{let ae=N||C?1:se.controls.playbackRateMin,We=x?1:se.controls.playbackRateMax,It=se.controls.playbackRateStep,Ot=[];for(let qt=ae;qt<=We;qt+=It)Ot.push({value:qt,displayValue:qt===1?O("playback_rate_1"):O("playback_rate",{multiplier:qt.toString(10)}),selected:c===qt});return Ot}),vo={displayValue:O("subtitles_off"),value:cu},Si=ce({...vo}),vn=se.features.subtitles?Xt(V.info.availableTextTracks$):ar([]),gn=_h(),Qo=$i([vn,Si],([c,x],N)=>{var It;let ae=[],We=c.find(({id:Ot})=>Ot===x.value);if(We!=null&&We.url){let[,Ot]=(It=gn.find(We.url))!=null?It:[];if(Ot){N(Ot);return}Ve.download(We.url).then(qt=>{if(!qt||Ve.isDestroyed())return;let Ht=new m1,as=We.language;if(as){let l0=!!We.isAuto,d0=Ht.parse(qt,as);ae.push({lang:as,subtitles:d0,isAuto:l0,id:We.id})}gn.add(We.url,ae),Se(Si).value===x.value&&N(ae)}).catch(qt=>{var Ht;(Ht=re==null?void 0:re.oneStat)==null||Ht.logError({errorType:"Subtitles download",fatal:!1}),ze==null||ze.report(qt,{errorType:"Subtitles download",fatal:!1})})}N(ae)}),go=$i([Qn,zn,Si],([c,x,N],ae)=>{let Ot;if(V.info.isLive$.getValue()&&x&&N.value!==vo.value){let Ht=()=>{let as=1e3/(3*c);Ot=setTimeout(Ht,as),ae(Date.now())};return Ht(),()=>clearTimeout(Ot)}}),Ln=$i([vn,Si],([c,x])=>{if(!c.length)return[];let N=[];for(let{language:ae,isAuto:We,id:It}of c){let Ot=ae&&lu(ae);ae&&Ot&&N.push({displayValue:We?O("subtitles_auto",{language:Ot}):Ot,value:It,selected:(x==null?void 0:x.value)===It,isAuto:We})}return N.length?(N.unshift({...vo,selected:(x==null?void 0:x.value)===vo.value}),N):[]}),ko={available:[],prev:[]},Ui=()=>{var x,N;let c=V.experimental.getCurrentTime$.getValue();return(N=(x=c==null?void 0:c())!=null?x:Ze==null?void 0:Ze.currentTime)!=null?N:0},cr=$i([$t,Si,Qo,go],([c,x,N,ae])=>{var It;let We=V.info.isLive$.getValue();if(We&&ko.prev!==N){let Ot=N.find(({id:Ht})=>Ht===x.value),qt=ko.prev.find(({id:Ht})=>Ht===x.value);if(Ot){let Ht={...Ot,subtitles:[...(It=qt==null?void 0:qt.subtitles)!=null?It:[],...Ot.subtitles]};ko.available=[Ht],ko.prev=N}}if(x&&x.value!==vo.value){let Ot=We?Ui():c,qt=We?ko.available:N;return h1(Ot,x,qt,We)}}),Oo=$i([cr],([c])=>c!=null&&c.texts?c.texts:[]);yi.add(Si.subscribe(c=>{var x,N;if(c.value===vo.value)(x=l==null?void 0:l.onSubtitleOff)==null||x.call(l);else{let ae=Object.entries(au).find(([We,It])=>It===c.displayValue);(N=l==null?void 0:l.onSubtitleOn)==null||N.call(l,ae?ae[0]:"")}}));let Gn=ce(!0),Vn=$i([eo,Fi,Ro,gi],([c,x,N,ae])=>{var qt;let We=(qt=c==null?void 0:c.end)!=null?qt:0;if(!ae)return We/x;let Ot=-N+ae-x;return(We-Ot)/x}),Yn=Xt(V.info.availableSources$),ur=$i([Yn],([c])=>Object.keys((c==null?void 0:c[ci.VideoFormat.MPEG])||{}).length>0),hn=()=>{var N,ae,We;let c=Object.keys(((ae=(N=V.info.availableSources$)==null?void 0:N.getValue())==null?void 0:ae[ci.VideoFormat.MPEG])||{}),x=(0,yt.getHighestQuality)(c)||yt.VideoQuality.Q_144P;return(We=De.sources[ci.VideoFormat.MPEG])==null?void 0:We[x]},kr=()=>{var x;let c=hn();if(c)ne.log("download video",{url:c}),vh(c,((x=De==null?void 0:De.meta)==null?void 0:x.title)||"video");else{let N="There is no URL for download video";ne.log("download video",{message:N}),ee({message:N})}},pr=()=>{ee({message:"toggle muted"});let c=V.info.muted$.getValue();V.info.volume$.getValue()===0&&!c?vt(Gt()):Dt(!c)},jn=()=>{var c;if(Pt.ui.settingsMenu.visible$.set(!1),!Se(Pt.ui.settingsSubMenu.visible$)){let x=Se(Pt.ui.settingsMenu.ref$);if((c=l==null?void 0:l.uiInfo)!=null&&c.onSettingsMenu&&x){let ae=pl(x),We={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:ae,position:We,name:"settings"})}}ne.log("close settings menu")},Er=async(c,x=()=>Promise.resolve())=>{var We;Pt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Pt.ui.settingsMenu.visible$.set(!0),await x();let N=Se(Pt.ui.settingsMenu.ref$),ae=Ps();if((We=l==null?void 0:l.uiInfo)!=null&&We.onSettingsMenu&&N&&ae){let Ot=pl(N),qt=ul(N,ae);l.uiInfo.onSettingsMenu({visible:!0,size:Ot,position:qt,name:"settings"})}ne.log("open settings menu",{wasOpenedByKeyboard:c})},Pr=(c,x=!1)=>{var It;Pt.ui.settingsSubMenu.visible$.set(!1);let N=Se(Pt.ui.settingsMenu.ref$),ae=Ps(),We=Se(Pt.ui.settingsMenu.visible$);if((It=l==null?void 0:l.uiInfo)!=null&&It.onSettingsMenu&&N&&ae)if(We&&!x){let qt=pl(N),Ht=ul(N,ae);l.uiInfo.onSettingsMenu({visible:!0,size:qt,position:Ht,name:"settings"})}else{let qt=pl(c),Ht={top:0,left:0,bottom:0,right:0},as=Se(Pt.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:qt,position:Ht,name:as})}ne.log("close settings sub menu")},_n=(c,x)=>{var ae;Pt.ui.settingsSubMenu.visible$.set(!0),Pt.ui.settingsSubMenu.ref$.set(x),Pt.ui.settingsSubMenu.name$.set(c);let N=Ps();if((ae=l==null?void 0:l.uiInfo)!=null&&ae.onSettingsMenu&&x&&N){let It=pl(x),Ot=ul(x,N);l.uiInfo.onSettingsMenu({visible:!0,name:c,size:It,position:Ot})}ne.log("open settings sub menu",{name:c})},Gt=()=>{var x;let c=Math.max(se.volumeMinRestore,(x=Dc())!=null?x:0);return c===0?se.volumeDefault:c},vt=c=>{let x=c===0?Gt():c,N=V.info.muted$.getValue();ee({message:`set volume, volume: ${c}, preferredVolume: ${x}`});let ae=!s||te.is("ads");N&&c>0&&ae&&(N=!1,qp(!1)),V.setVolume(c,N),_e.setVolume(c),Op(x)},Dt=c=>{let x=V.info.volume$.getValue();if(ee({message:`set muted, currentVolume: ${x}, mute: ${c}`}),V.setMuted(c,te.is("ads")),_e.setVolume(c?0:x),qp(c),!c&&x===0){let N=Gt();V.setVolume(N),Op(N),_e.setVolume(N)}},ai=ce(!1),ni=c=>{var x,N;ne.log("set looped",{isLooped:c}),ai.set(c),V.setLooped(c),(N=(x=l==null?void 0:l.uiInfo)==null?void 0:x.onLoopedChanged)==null||N.call(x,c)};ni(Z);let ho=()=>{var c,x;(x=(c=l==null?void 0:l.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},Eo=(c,x=!1)=>{var N;ee({message:`set autoplayNextEnabled, value: ${c}`}),ne.log("set autoplay next enabled",{autoplayNextEnabled:c}),Pt.ui.autoplayNextEnabled$.set(c),Ph(c),x&&((N=l==null?void 0:l.onSetAutoplayNextEnabled)==null||N.call(l,c))},Po=c=>{ee({message:`set timerNextVideoRunning, value: ${c}`}),ne.log("set timer next video running",{timerNextVideoRunning:c}),Pt.ui.timerNextVideoRunning$.set(c)},Go=(c=!0)=>{var ae;let x=!0;if(c&&(l!=null&&l.onPrevVideoClick))try{x=(ae=l==null?void 0:l.onPrevVideoClick)==null?void 0:ae.call(l)}catch(We){ee({message:"onPrevVideoClick callback failed to execute"})}if(!x)return;c&&tt("prev")||Q()},Yo=(c=!0)=>{var ae;let x=!0;if(c&&(l!=null&&l.onNextVideoClick))try{x=(ae=l==null?void 0:l.onNextVideoClick)==null?void 0:ae.call(l)}catch(We){ee({message:"onNextVideoClick callback failed to execute"})}if(!x)return;c&&tt("next")||oe()},tt=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:N,playbackStatusShow:ae}}=se;return N&&ae&&!x?(Pt.ui.aboutToGoNextVideo.set(c),Pt.ui.userActionsDisabled.set(!0),!0):!1},Mt=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementShow)==null||c.call(l)},vi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementClick)==null||c.call(l)},zi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementAuto)==null||c.call(l)},Zi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementCancel)==null||c.call(l)},bn=()=>{V.prepare()},$n=()=>{(0,yt.assertNonNullable)(Pt);let c=Se(Pt.ui.controls.disabledControls$),x=Se(Pt.playerPhase),N={playerPhase:x,isInteractive:C,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(ee({message:"toggle play"}),x==="ads"){N.action="play",ne.log("toggle adman play",N),_e.togglePlay();return}let ae=()=>{var It;ee({message:"toggle play, call player.play"}),N.action="play",V.play(),(It=l==null?void 0:l.onPlay)==null||It.call(l)},We=()=>{var It;ee({message:"toggle play, call player.pause"}),N.action="pause",V.pause(),(It=l==null?void 0:l.onPause)==null||It.call(l)};if(V.info.isEnded$.getValue()){if(ee({message:"toggle play, video ended, seek to 0"}),et.next(),_t.next(Ur.SeekAction.REWIND),C){M==null||M();return}V.seekTime(0),ae()}else V.info.playbackState$.getValue()!==ci.PlaybackState.PLAYING?ae():We();ne.log("toggle play",N)},qi=(c,{changeReason:x="default",appliesTo:N="to-video"}={})=>{ee({message:`set quality, quality: ${c}`}),ne.log("set quality",{quality:c}),V.setAutoQuality(c==="auto"),c!=="auto"?(se.features.qualityDetailsSubMenuEnabled?(Oc({type:"exact_quality",quality:c,videoId:i},N),id(),V.setPredefinedQualityLimits(ci.PredefinedQualityLimits.UNKNOWN)):Hp(i,c),No.set(c),V.setQuality(c)):se.features.qualityDetailsSubMenuEnabled?x==="default"&&(Ar("auto_quality",N),Se(pt)&&Ei(!1),Se(mi)&&jo(!1)):id()},Ei=(c,x="as-default")=>{ee({message:`set trafficSavingEnabled, value: ${c}`}),ne.log("set traffic saving enabled",{trafficSavingEnabled:c});let N=c?ci.PredefinedQualityLimits.TRAFFIC_SAVING:ci.PredefinedQualityLimits.UNKNOWN;se.features.qualityDetailsSubMenuEnabled?(Zn(N,x),td(!1)):(V.setPredefinedQualityLimits(N),td(c))},jo=(c,x="as-default")=>{ee({message:`set highQualityEnabled, value: ${c}`}),ne.log("set high quality enabled",{highQualityEnabled:c}),Zn(c?ci.PredefinedQualityLimits.HIGH_QUALITY:ci.PredefinedQualityLimits.UNKNOWN,x)},Zn=(c,x)=>{c!==ci.PredefinedQualityLimits.UNKNOWN&&(Se(Je)&&!Se(Wo)&&qi("auto",{appliesTo:x,changeReason:"limit-changed"}),Ar(c,x)),V.setPredefinedQualityLimits(c)},Ar=(c,x)=>{Oc({type:c,videoId:i},x),x==="as-default"&&Oc({type:c,videoId:i},"to-video")},Zo=c=>{ne.log("set playback rate",{playbackRate:c}),V.setPlaybackRate(c),se.features.saveRate&&de&&!V.info.isLive$.getValue()&&kh(c)},fr=()=>{let c=Se(Ko),x=c.findIndex(({selected:ae})=>ae);if(x===c.length-1)return;let N=c[x+1];Zo(N.value)},Xn=()=>{let c=Se(Ko),x=c.findIndex(({selected:ae})=>ae);if(x===0)return;let N=c[x-1];Zo(N.value)},mr=(c={...vo,selected:!1})=>{ne.log("set subtitles",{...c}),c&&c.value!==vo.value&&it.next(c.isAuto?c.value+"_auto":c.value),Si.set(c)},Jn=()=>{ne.log("toggle subtitles");let c=Se(Ln),x=Se(Si),N=Se(Lt);if((x==null?void 0:x.value)===vo.value){let ae=c.filter(We=>We.value!==vo.value).find(We=>We.value===N)||c[1];mr(ae)}else mr()},Mr=ce(!0),er=c=>{Mr.set(c)},Xo=(c,x,N=!0)=>{var ae;if(ee({message:`seek to time, time: ${c}`}),ne.log("seek to time",{time:c,action:x,forcePrecise:N}),_t.next(x),V.info.isLive$.getValue()){let We=V.info.duration$.getValue(),It=Math.min(0,We+c);V.seekTime(It,N)}else{if(I!=null&&I.getValue())return;V.info.isEnded$.getValue()&&(ee({message:"seek after ended, call callbacks.onPlay"}),(ae=l==null?void 0:l.onPlay)==null||ae.call(l)),V.seekTime(dv(c),N)}},Lr=c=>{ee({message:`seek to episode start time: ${c}`}),ne.log("seek to episode start time",{time:c}),Xo(c,Ur.SeekAction.EPISODE,!0)},Jo=(c,x)=>{ee({message:`seek to percent, percent: ${c}`}),ne.log("seek to percent",{percent:c,action:x});let N=Se(Fi)*c;Xo(N,x,!1)},vr=c=>{ee({message:`seek external, time: ${c}`}),ne.log("seek external",{time:c}),_t.next(Ur.SeekAction.UNKNOWN),V.seekTime(V.info.isLive$.getValue()?-c:c)},zr=c=>{var ae,We;let x=(ae=c.max)!=null?ae:"none",N=(We=c.min)!=null?We:"none";ee({message:`set auto quality limitation. Max: ${x}. Min: ${N}`}),ne.log("set auto quality limits",{max:x,min:N}),V.setAutoQualityLimits(c)},lt=c=>{ee({message:`seek external to episode start time: ${c}`}),ne.log("seek external to episode start time",{time:c}),Xo(c,Ur.SeekAction.EPISODE,!0)},Qt=c=>{ee({message:`set playback rate to: ${c}`}),ne.log("set playback rate external",{playbackRate:c}),V.setPlaybackRate(c)},ii=ce(void 0),_o=ce(!1),yn=c=>{ee({message:`start scrubbing, progress: ${c}`}),ne.log("start scrubbing",{progress:c}),_o.set(!0),tr(c)},tr=c=>{ii.set(c)},xn,Rn,xi=()=>{ii.set(void 0),_o.set(!1)},fe=()=>{clearTimeout(Rn),clearTimeout(xn),xn=window.setTimeout(()=>{xi()},500),Ze==null||Ze.removeEventListener("seeked",fe)},wt=c=>{ee({message:`complete scrubbing, progress: ${c}`}),ne.log("complete scrubbing",{progress:c}),Jo(c,Ur.SeekAction.SLIDER),Se(Pt.ui.isMobile)&&Se(Pt.state.currentFormat$)===ci.VideoFormat.HLS?(Ze==null||Ze.addEventListener("seeked",fe),Rn=window.setTimeout(()=>{fe()},300)):xi()},li=$i([$t,Fi,ii],([c,x,N],ae)=>{ae((0,yt.isNonNullable)(N)?N*x:c)}),fi=ce(!1),wi=()=>{fi.set(!0)},He=()=>{fi.set(!1)},Rt=ce({width:0,height:0}),oi=$i([Rt],([{width:c}],x)=>{let N=r1(c);x(N)}),io=ce(!1),bo=W.filter(c=>gh(c)),qr=$i([oi,io],([c,x])=>x?bo.filter(N=>!N.hideOnMobile):bo.filter(N=>{var ae;return!((ae=N.hideOnDesktopGridTypes)!=null&&ae.includes(c))})),Ni=ce(W.filter(c=>hh(c))),ir=$i([Ni,oi],([c,x])=>c.filter(N=>{var ae;return!((ae=N.hideOnDesktopGridTypes)!=null&&ae.includes(x))})),Is=$i([ir,qr],([c,x])=>[...se.features.additionalButtonsDesktopControlPanelRight?c.filter(N=>N.type==="desktop-control-panel-right"):[],...se.features.additionalButtons?x.map((N,ae)=>{var We;return{id:ae,weight:ae,type:"desktop-control-panel-right",testId:N.testId,icon:N.iconUrl,onClick:N.onClick,ariaLabel:(We=N.ariaLabel)!=null?We:N.tooltip,tooltipText:N.tooltip}}):[]]),or=ce(Y),Sa=$i([or],([c])=>se.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?{...x,onClick:x.onChangeEnabled}:x):[]),Sl=(c,x)=>{let N=Se(Ni).map(ae=>ae.id!==c?ae:{...ae,...x});Ni.set(N)},Ca=c=>{let x=Se(Ni);if(x.some(N=>N.id===c.id)){ee({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Ni.set(x)},Ta=c=>{let x=Se(Ni);if(!x.some(N=>N.id===c)){ee({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(N=>N.id!==c),Ni.set(x)},Ia=c=>{_t.next(Ur.SeekAction.LIVE),ee({message:"live switch to low latency "+c}),ne.log("live switch to low latency "+c),V.setLiveLowLatency(c)},Cl=(c,x)=>{let N=Se(or).map(ae=>ae.id!==c?ae:{...ae,...x});or.set(N)},ks=c=>{let x=Se(or);if(x.some(N=>N.id===c.id)){ee({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),or.set(x)},ka=c=>{let x=Se(or);if(!x.some(N=>N.id===c)){ee({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(N=>N.id!==c),or.set(x)},dt=ce(F),xt=$i([dt],([c])=>se.features.additionalContextMenuItems?c:[]),Xi=(c,x)=>{let N=Se(dt).map(ae=>ae.id!==c?ae:{...ae,...x});dt.set(N)},en=c=>{let x=Se(dt);if(x.some(N=>N.id===c.id)){ee({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),dt.set(x)},Ji=c=>{let x=Se(dt);if(!x.some(N=>N.id===c)){ee({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(N=>N.id!==c),dt.set(x)},di=$i([io,Wt],([c,x],N)=>{N(c&&x)}),Pi=()=>{_t.next(Ur.SeekAction.LIVE),ee({message:"switch to active live"}),ne.log("switch to active live"),V.seekTime(0),V.info.playbackState$.getValue()!==ci.PlaybackState.PLAYING&&Pt.actions.internal.togglePlay()},Es=()=>{ne.log("skip adman"),_e.skip()},Ea=(c=!0)=>{(0,yt.assertNonNullable)(Pt),ee({message:`switch from ads to video, callPlay: ${c}`}),ne.log("switch from ads to video",{callPlay:c}),be.set("video"),c&&V.play(),s&&Dt(!0)},Bu=()=>{(0,yt.assertNonNullable)(Pt),ee({message:"switch from video to ads"}),ne.log("switch from video to ads"),Pt.actions.internal.pause(),bt(),be.set("ads")},ec=c=>{(0,yt.assertNonNullable)(Pt);let x=c?"LiveWaitingStart":"thumb";ne.log("set live waiting start",{state:c,playerPhase:x}),be.set(x)},Nu=c=>{(0,yt.assertNonNullable)(Pt);let x=c?"LiveWaitingRecover":"thumb";ne.log("set live waiting recover",{state:c,playerPhase:x}),be.set(x)},tc=c=>{(0,yt.assertNonNullable)(Pt);let x=c?"LiveWaitingRecord":"thumb";ne.log("set live waiting record",{state:c,playerPhase:x}),be.set(x)},Du=()=>((0,yt.assertNonNullable)(Pt),ne.log("get debug text data"),fh(V,De,Pt,Ee.getTraceId())),ic=()=>((0,yt.assertNonNullable)(Pt),JSON.stringify(Ee.getFinishedSpans())),Ou=()=>((0,yt.assertNonNullable)(Pt),mh(V,De,Pt)),Ps=()=>Ze,oc=()=>{ee({message:"toggle chromecast"}),ne.log("toggle chromecast"),V.toggleChromecast()},Tl=c=>{var N;if((0,yt.assertNonNullable)(Pt),V.info.isEnded$.getValue())return;let x=!c;if(Se(Pt.playerPhase)==="ads"){ee({message:`pause ads, internalCall: ${x}`}),ne.log("pause ads",{internalCall:x}),_e.pause();return}ee({message:`pause video, internalCall: ${x}`}),ne.log("pause video",{internalCall:x}),x&&((N=l==null?void 0:l.onPause)==null||N.call(l)),V.pause()},nc=c=>{var N;(0,yt.assertNonNullable)(Pt);let x=!c;if(Se(Pt.playerPhase)==="ads"){ee({message:`play ads, internalCall: ${x}`}),ne.log("play ads",{internalCall:x}),_e.play();return}ee({message:`play video, internalCall: ${x}`}),ne.log("play video",{internalCall:x}),x&&((N=l==null?void 0:l.onPlay)==null||N.call(l)),V.play()},rc=c=>{(0,yt.assertNonNullable)(Pt);let x=!c;if(Se(Pt.playerPhase)==="ads"){ee({message:"player cannot be stopped during ads via external method"});return}ee({message:`player will be stopped, internalCall: ${x}`}),P==null||P()},sc=(c,x)=>{(0,yt.assertNonNullable)(Pt),ee({message:`first start, show ads: ${c}, internalCall: ${!x}`}),ne.log("first start",{showAds:c,external:x}),c?be.set("ads"):(be.set("video"),x?V.play():Pt.actions.internal.togglePlay())},Pa=()=>(ee({message:"getting time codes"}),m),ac=()=>{let c=Pa();if(!c||[0,1].includes(c.length))return;let x=V.info.position$.getValue();return c.find(N=>N.time>x)},Hu=c=>{let x=c;x||(x=ac());let N=V.info.position$.getValue();ne.log("seek to next episode",{currentTime:N,...x}),x&&(ee({message:"seek to next episode"}),Xo(x.time,Ur.SeekAction.EPISODE,!0))},lc=()=>{let c=Pa();if(!c||[0,1].includes(c.length))return;let x=V.info.position$.getValue(),N=c.findIndex(We=>We.time>x),ae=N===-1?c.length-2:N-2;if(!(ae<0))return c[ae]},qe=c=>{let x=c;x||(x=lc());let N=V.info.position$.getValue();ne.log("seek to prev episode",{currentTime:N,...x}),x&&(ee({message:"seek to prev episode"}),Xo(x.time,Ur.SeekAction.EPISODE,!0))},ri=()=>(ee({message:"getting preview thumbs data"}),ne.log("get preview thumbs data",{...y}),y),tn=async()=>{let c=H==null?void 0:H.isActive(),x="none";H!=null&&H.isActive()?(x="remove",await(H==null?void 0:H.remove())):(x="request",await(H==null?void 0:H.request())),ne.log("toggle picture in picture",{isActive:c,action:x})},As=(c=-90)=>{ne.log("rotate video",{alphaDiff:c}),nt.update(x=>x+c)},$o=ce([]);T==null||T.subscribe(c=>{let x=[];for(let N=0;N<c.length;N++){let{range:[ae,We],subjects:It}=c[N];N===0&&ae!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:ae/1e3,text:"",interactive:!0,completed:se.features.interactiveTimeOpenUri?!It.length||It.every(Ot=>Ot.isRemoved):!It.length}),We!==1/0&&x.push({time:We/1e3,text:"",interactive:!1,completed:!0})}$o.set(x)});let r0=ce(!1);I==null||I.subscribe(c=>{c&&Se(_o)&&xi()});let dv=c=>{if(!C)return c;let x=Se($o),N=Se(Fi),We=Se(Ro)/N,It=x.find(Ot=>Ot.interactive&&!Ot.completed&&Ot.time>We);return typeof(It==null?void 0:It.time)=="number"?Math.min(c,It.time-.05):c},s0=()=>{Pt.ui.episodes.panelOpened$.set(!1)},a0=()=>{ne.log("destroy store"),clearTimeout(Rn),clearTimeout(xn),yi.unsubscribe(),Jt.unsubscribe(),V.destroy(),_e.destroy(),re==null||re.destroy(),ze==null||ze.destroy(),mt.unsubscribe(),Xe==null||Xe.disconnect(),Xe=null,Ve.destroy()},Pt={interfaceLanguage$:Lt,isCyrillicRelatedInterface$:Nt,initVideo:Qe,videoId:i,isClip:o,playerPhase:te,vsid:Ie,state:{positionExact$:$t,positionWithScrubbing$:li,duration$:Fi,playbackState$:ki,isPlaying$:zn,isLoaderVisible:Hi,bufferedProgress$:Vn,isLive$:j,canChangePlaybackSpeed$:jt,isActiveLive$:fo,isOldestAvailableLive$:En,isRewindableLive$:Bo,isEnded$:To,muted$:si,volume$:Ri,trafficSavingEnabled$:pt,highQualityEnabled$:mi,autoQualityLimitingAvailable$:Je,availableVideoStreams$:Ir,availableAudioStreams$:dr,videoStream$:An,audioStream$:fn,currentQuality$:Do,isAutoQualityEnabled$:Wo,availableQualities$:mn,currentPlaybackRate$:Qn,availablePlaybackRates$:Ko,currentSubtitle$:Si,availableTextTracks$:vn,availableSubtitlesList$:Ln,currentSubtitleCaptions$:Oo,isAutoSubtitleCaptionVisible$:Gn,chromecastState$:Zt,chromecastDeviceName$:Un,chromecastConnected$:Pn,currentFormat$:to,throughputEstimation$:Vo,videoBitrate$:ui,videoSize$:Tt,errorLog$:Ct,crashed$:Wt,isAudioAvailable$:Uo,isAudioDisabled:!!s,canDownload:se.features.download&&!!d,availableSources$:Yn,hasMpegSources$:ur,isInteractive:C,showInteractiveGraph:se.features.interactiveGraph,showSeekToInteractive:se.features.seekToInteractive,showPlayPrevChapter:se.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:se.features.interactiveTimeIndicator&&!!Se($o).length,interactiveEpisodes$:$o,isInteractiveTime$:I?Xt(I):ce(!1),isInteractiveExpectation$:r0,hasInteractiveBranches:k,playPrevChapterDisabledTooltip:R,looped$:ai,loadedMetadata$:ce(!1),isAutoQualityAvailable$:Kn},ui:{t:O,controlsVisible:ce(!1),touched:ce(!1),controls:{prevButton:ce(void 0),playButton:ce(void 0),replayButton:ce(void 0),nextButton:ce(void 0),playPrevChapterButton:ce(void 0),seekToInteractiveButton:ce(void 0),interactiveGraphButton:ce(void 0),liveButton:ce(void 0),time:ce(void 0),episodes:ce(void 0),volume:ce(void 0),subtitles:ce(void 0),settings:ce(void 0),context:ce(void 0),chromecast:ce(void 0),pip:ce(void 0),fullscreen:ce(void 0),vkLogo:ce(void 0),interactiveTimeIndicator:ce(void 0),timeline:ce(void 0),autoplayNextToggle:ce(void 0),additionalButtons:W.length?W.reduce(c=>[...c,ce(void 0)],[]):[],disabledControls$:Re},modals:{hotKeyMap:{show:ce(!1),data:ce({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Ue,isFullscreenOpenedByKeyboard:ct,rotateAlpha:nt,isAutoplay:ce(!1),debugPanelVisible:ce(!1),episodes:{panelOpened$:ce(!1),openedByKeyboard$:ce(!1)},contextMenu:{visible$:ce(!1),btnRef$:ce(void 0),openedByBtnKeyboard$:ce(!1),openedByHotKey$:ce(!1),lastActiveElem$:ce(void 0),showContextMenuBtn$:ce(!1),position$:ce({top:0,left:0})},playerSize:Rt,isMobile:io,mobileNotReportControlHidden$:di,mobileUnmuteButtonExpanded:ce(!1),mobileUnmuteButtonVisible:ce(!1),icon3DVideoVisible:ce(!1),scrubbingInProgress:_o,volumeChangingInProgress:fi,is3DVideo:ce(!1),currentGridType$:oi,additionalButtonsDeprecated$:qr,additionalDesktopControlPanelRightButtons$:Is,additionalSettingsMenuItems$:Sa,additionalContextMenuItems$:xt,interactiveHideMobileControls:ce(!1),overlayContainer$:ce(void 0),startedByKeyboard$:ce(!1),autoplayNextEnabled$:ce(!1),timerNextVideoRunning$:ce(!0),settingsMenu:{visible$:ce(!1),ref$:ce(void 0),openedByBtnKeyboard$:ce(!1)},settingsSubMenu:{visible$:ce(!1),ref$:ce(void 0),name$:ce(void 0)},aboutToGoNextVideo:ce(void 0),userActionsDisabled:ce(!1),isControlsAvailable:Mr},ads:{position:ce(0),duration:ce(0),playbackState:ce("inactive"),canSkip:ce(!1),secondsToWatchBeforeSkip:ce(0),postrollPassed:ce(!1)},webApi:{pictureInPictureApi:H,annotationsApi:le,slotsApi:he},actions:{internal:{preload:bn,firstStart:c=>sc(c,!1),play:()=>nc(!1),pause:()=>Tl(!1),togglePlay:$n,toggleMuted:pr,openSettingsMenu:Er,closeSettingsMenu:jn,openSettingsSubMenu:_n,closeSettingsSubMenu:Pr,setVolume:vt,startVolumeChanging:wi,stopVolumeChanging:He,setVideoStream:qn,setAudioStream:ft,setQuality:qi,setTrafficSavingEnabled:Ei,setHighQualityEnabled:jo,setPlaybackRate:Zo,incrementPlaybackRate:fr,decrementPlaybackRate:Xn,setSubtitle:mr,toggleSubtitle:Jn,togglePictureInPicture:tn,startScrubbing:yn,progressScrubbing:tr,completeScrubbing:wt,toggleChromecast:oc,switchToActiveLive:Pi,switchFromAdsToVideo:Ea,switchFromVideoToAds:Bu,skipAd:Es,setLiveWaitingStart:ec,setLiveWaitingRecover:Nu,setLiveWaitingRecord:tc,getDebugTextData:Du,getTraceTextData:ic,getDebugPanelData:Ou,getVideoElement:Ps,seekTime:(c,x,N)=>Xo(c,x,N),clearDelayedBufferingCheckTimeout:Io,seekEpisodeStartTime:Lr,seekToPercent:Jo,getNextEpisode:ac,seekToNextEpisode:Hu,getPrevEpisode:lc,seekToPrevEpisode:qe,startLogging:Ge,stopLogging:Yt,startCameraManualRotation:Vi,stopCameraManualRotation:Oi,moveCameraFocusPX:uo,holdCamera:ji,releaseCamera:ot,getVideoEpisodes:Pa,getPreviewThumbsData:ri,downloadVideo:kr,addLanguage:Qp,setLanguage:ti,nextMovie:rt,videoRotate:As,correctSeekTimeToInteractive:dv,replayInteractive:M,setLooped:ni,reportProblem:ho,setAutoplayNextEnabled:Eo,setTimerNextVideoRunning:Po,prevVideoClick:Go,nextVideoClick:Yo,nextVideoAnnouncementShow:Mt,nextVideoAnnouncementClick:vi,nextVideoAnnouncementAuto:zi,nextVideoAnnouncementCancel:Zi},external:{firstStart:c=>sc(c,!0),play:()=>nc(!0),pause:()=>Tl(!0),stop:()=>rc(!0),seekTime:c=>vr(c),seekEpisodeStartTime:c=>lt(c),setPlaybackRate:c=>Qt(c),setAutoQualityLimits:c=>zr(c),setMuted:Dt,toggleSubtitle:Jn,setVolume:vt,returnFocusToEpisodes:s0,updateAdditionalSettingsItem:Cl,addAdditionalSettingsItem:ks,removeAdditionalSettingsItem:ka,updateAdditionalContextItem:Xi,addAdditionalContextItem:en,removeAdditionalContextItem:Ji,updateAdditionalButton:Sl,addAdditionalButton:Ca,removeAdditionalButton:Ta,setLiveLowLatency:Ia,hideControls:()=>er(!1),showControls:()=>er(!0)}},callbacks:l,setUiCallbacks:c=>{we={...c}},getAdmanWrapper:()=>_e,getLogger:()=>xe,getPlayer:()=>V,destroy:a0};return Pt};function pa(t,e,i,o){var y;let n=["interactiveTimeIndicator"],a=(y=e[i])==null?void 0:y.getBoundingClientRect(),s=(o||n.includes(i))&&!!a&&!!(a.right-a.left),{top:d,left:l,bottom:p,right:m}=ul(e[i],t||void 0);return{left:s?l:0,right:s?m:0,top:s?d:0,bottom:s?p:0,isDisplayed:s}}var fl=(t,e,i,o)=>{if(t)for(let[n,a]of Object.entries(e))["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(n)||a.set(pa(t,i,n,o))};var uu=async(t,e,i)=>{await wo(),e&&i&&(i.focus(),t.set(!1))};var E2=ye('<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 Wf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=E2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img",...i})),_(t,o)}function Kf(t,e){U(e,!0);let[i,o]=Ne(),n=()=>S(l,"$contextMenuVisible$",i),a=f(e,"disabled",3,!1),s=f(e,"ariaLabel",3,""),d=Ce(),l=d.ui.contextMenu.visible$,p=d.ui.contextMenu.openedByBtnKeyboard$,m=d.ui.contextMenu.showContextMenuBtn$,y=d.ui.contextMenu.position$,u=d.ui.contextMenu.btnRef$,$=X(void 0);Fe(()=>{r($)&&St(()=>{u.set(r($))})});let w=I=>{let M=bs(I),P=Yh(r($));y.set(P),p.set(M),l.set(!n())},b=()=>{m.set(!0)},C=()=>{m.set(!1)},T=v(()=>n()?"opened":"");Bt(t,{get className(){return r(T)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return s()},click:w,focus:b,blur:C,get ariaExpanded(){return n()},get ref(){return r($)},set ref(I){D($,pe(I))},children:(I,M)=>{Wf(I,{})},$$slots:{default:!0}}),z(),o()}var P2=t=>{t.stopPropagation()},A2=L("<div><!> <div></div> <div></div></div>"),M2={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;}
|
|
231
231
|
|
|
232
232
|
@media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
|
|
233
233
|
}
|
|
@@ -252,8 +252,8 @@ Try switching the\xA0quality to\xA0Auto.`},Mh=I_;var ts=new Map;ts.set(Ya.Interf
|
|
|
252
252
|
opacity: 0;
|
|
253
253
|
}
|
|
254
254
|
}.pulse.svelte-od3veb {display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);
|
|
255
|
-
animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function kd(t,e){var Q;U(e,!0),q(t,k2);let[i,o]=Be(),n=()=>S(C,"$isMobile",i),a=()=>S(A,"$areControlsVisible",i),s=()=>S(V,"$currentGridType$",i),d=()=>S(E,"$isInteractiveTime$",i),l=()=>S(y,"$interactiveControlsOpacity$",i),p=()=>S(P,"$showInteractiveTimeIndicatorTooltip$",i),m=()=>S(T,"$isFullscreen",i),$=f(e,"ref",15,void 0),u=J(void 0),_=Se(),w=fo(),{interactiveControlsOpacity$:y}=w,C=_.ui.isMobile,T=_.ui.isFullscreen,E=_.state.isInteractiveTime$,P=w.showInteractiveTimeIndicatorTooltip$,A=_.ui.controlsVisible,I=(Q=_.callbacks)==null?void 0:Q.onInteractiveTimeIndicatorClick,V=_.ui.currentGridType$,H=v(()=>!n()&&a()),j=v(()=>ws(s(),"s")),O=v(()=>!d()||!!l()||r(H)),X=J(!1);Ue(()=>{B(X,pe(r(O)))});let ne=()=>{B(X,!0)},Y=()=>{var W;fe(),(W=r(u))==null||W.addEventListener("animationiteration",ne,{once:!0})},fe=()=>{var W;B(X,!1),(W=r(u))==null||W.removeEventListener("animationiteration",ne)},le=W=>{P.set(W)},Me=v(()=>p()&&!r(O));Ue(()=>{p()?Y():fe()});let Ae=()=>{r(O)||(P.set(!0),I==null||I())};Sn(()=>{P.clearTimeout(),fe()});let me=()=>{P.set(!1)},ae=F("tooltip_interactive_interaction_time_indicator");var Pe=I2();let re;Pe.__mousemove=[T2],Pe.__click=Ae;var D=h(Pe);Ro(D,{tooltipContent:ae,get tooltipActive(){return r(Me)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:le,get ref(){return $()},set ref(W){$(W)},children:(W,Le)=>{bd(W,{completed:!0})},$$slots:{default:!0}});var Ve=M(D,2);let te;ft(Ve,W=>$(W),()=>$());var Ge=M(Ve,2);let ie;ft(Ge,W=>B(u,W),()=>r(u)),g(Pe),k((W,Le,Ne)=>{re=ee(Pe,1,"interactive-episode-icon-animated svelte-od3veb",null,re,W),te=ee(Ve,1,"ref-block svelte-od3veb",null,te,Le),ie=ee(Ge,1,"pulse svelte-od3veb",null,ie,Ne)},[()=>({mobile:n(),fullscreen:m(),invisible:r(O),"icon-small":r(j)}),()=>({hidden:r(O)}),()=>({paused:r(X)})]),St("mouseleave",Pe,me),b(t,Pe),z(),o()}at(["mousemove","click"]);function uu(t,e){U(e,!0);let i=f(e,"tooltipEnabled",3,!0),o=f(e,"disabled",3,!1),n=f(e,"className",3,void 0),a=f(e,"ref",15);Ro(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 a()},set ref(s){a(s)},children:(s,d)=>{var l=Fe();let p=v(()=>e.buttonComponent);var m=ue(l);Ii(m,()=>r(p),($,u)=>{u($,es(()=>{var _;return(_=e.buttonComponentProps)!=null?_:{}}))}),b(s,l)},$$slots:{default:!0}}),z()}var is={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var P2=be('<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 qf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=P2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),b(t,o)}function Ss(t,e){let i=f(e,"isPrev",3,!1),o=f(e,"isMobile",3,!1),n=f(e,"width",3,"24"),a=f(e,"height",3,"24"),s=v(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=v(()=>i()?"prev-icon":"next-icon");qf(t,{get style(){return r(s)},get width(){return n()},get height(){return a()},get viewBox(){return e.viewBox},get"data-testid"(){return r(d)}})}var A2=L('<div class="icon-background-mobile svelte-xtk2k4"></div>'),M2=L("<!> <!>",1),L2={hash:"svelte-xtk2k4",code:".icon-background-mobile.svelte-xtk2k4 {position:absolute;top:0;left:0;width:100%;height:100%;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);}"};function ma(t,e){U(e,!0),q(t,L2);let i=f(e,"ref",15,void 0),o=f(e,"isMobile",3,!1),n=f(e,"disabled",3,!1),s=Se().ui.t,d=v(()=>e.type==="prev"?s("tooltip_previous"):s("tooltip_next")),l=v(()=>e.type==="prev"?s("hotkey_map_item_prev_video_value"):s("hotkey_map_item_next_video_value")),p=v(()=>`btn-${o()?"m":"d"}--${e.type}`);Vt(t,{get className(){return r(p)},get testId(){var m;return`btn-${(m=e.type)!=null?m:""}`},get disabled(){return n()},get ariaLabel(){return r(d)},get click(){return e.click},get ariaKeyShortCut(){return r(l)},get ref(){return i()},set ref(m){i(m)},children:(m,$)=>{var u=M2(),_=ue(u);{var w=T=>{var E=A2();b(T,E)};R(_,T=>{o()&&T(w)})}var y=M(_,2);let C=v(()=>e.type==="prev");Ss(y,{get isMobile(){return o()},get isPrev(){return r(C)}}),b(m,u)},$$slots:{default:!0}}),z()}var V2=be('<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 Ed(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=V2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img",...i})),b(t,o)}var h1=require("@vkontakte/videoplayer-shared/es2018");var R2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),N2=L("<!> <div><!></div>",1),D2={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){U(e,!0),q(t,D2);let i=f(e,"ref",15,void 0),o=f(e,"isMobile",3,!1),n=f(e,"disabled",3,!1),a=f(e,"className",3,""),s=f(e,"click",3,h1.noop),d=F("tooltip_restart"),l=v(()=>`${o()?"btn-m--play":""} ${a()}`);Vt(t,{get className(){return r(l)},testId:"btn-replay",ariaLabel:d,get disabled(){return n()},get click(){return s()},get ariaKeyShortCut(){return Hr.KeyK},get ref(){return i()},set ref(p){i(p)},children:(p,m)=>{var $=N2(),u=ue($);{var _=T=>{var E=R2();b(T,E)};R(u,T=>{o()&&T(_)})}var w=M(u,2);let y;var C=h(w);Ed(C,{}),g(w),k(T=>y=ee(w,1,"svelte-1ot3duq",null,y,T),[()=>({mobile:o()})]),b(p,$)},$$slots:{default:!0}}),z()}var B2=be('<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 yr(t,e){"use strict";let i=f(e,"width",3,"24"),o=f(e,"height",3,"24"),n=f(e,"viewBox",3,"0 0 24 24"),a=f(e,"fill",3,"var(--btn-color)");var s=B2(),d=h(s);g(s),k(()=>{He(s,"width",i()),He(s,"height",o()),He(s,"viewBox",n()),He(d,"fill",a())}),b(t,s)}var O2=be('<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 os(t,e){"use strict";let i=f(e,"width",3,"24"),o=f(e,"height",3,"24"),n=f(e,"viewBox",3,"0 0 24 24"),a=f(e,"fill",3,"var(--btn-color)");var s=O2(),d=h(s);g(s),k(()=>{He(s,"width",i()),He(s,"height",o()),He(s,"viewBox",n()),He(d,"fill",a())}),b(t,s)}var _1=require("@vkontakte/videoplayer-shared/es2018");var H2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),F2=L("<!> <div><!></div>",1),U2={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function pl(t,e){U(e,!0),q(t,U2);let[i,o]=Be(),n=()=>S(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=fo(),s=f(e,"ref",15,void 0),d=f(e,"isMobile",3,!1),l=f(e,"isPlaying",3,!1),p=f(e,"disabled",3,!1),m=f(e,"className",3,""),$=f(e,"click",3,_1.noop),_=Se().ui.t,{toggle:w}=a,y=v(()=>w),C=v(()=>n()!==null),T=v(()=>r(C)?n():l()),E=v(()=>r(T)?_("tooltip_pause"):_("tooltip_play")),P=v(()=>r(T)?os:yr),A=v(()=>`${d()?"btn-m--play":""} ${m()}`),I=v(()=>r(C)?r(y):$());Vt(t,{get className(){return r(A)},testId:"btn-play",get click(){return r(I)},get disabled(){return p()},get ariaLabel(){return r(E)},get ariaKeyShortCut(){return Hr.KeyK},get ref(){return s()},set ref(V){s(V)},children:(V,H)=>{var j=F2();let O=v(()=>r(P));var X=ue(j);{var ne=Me=>{var Ae=H2();b(Me,Ae)};R(X,Me=>{d()&&Me(ne)})}var Y=M(X,2);let fe;var le=h(Y);Ii(le,()=>r(O),(Me,Ae)=>{Ae(Me,{})}),g(Y),k(Me=>fe=ee(Y,1,"svelte-1ot3duq",null,fe,Me),[()=>({mobile:d()})]),b(V,j)},$$slots:{default:!0}}),z(),o()}var z2=be('<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 Wf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=z2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i})),b(t,o)}function Pd(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"hidden",3,!1),n=f(e,"disabled",3,!1),a=F("tooltip_interactive_go_back"),s=v(()=>o()?"hidden":"");Vt(t,{get className(){return r(s)},testId:"btn-play-prev-chapter",ariaLabel:a,get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{Wf(d,{})},$$slots:{default:!0}}),z()}var q2=L('<span class="gutter svelte-et3q1q"><span><!></span></span>'),W2={hash:"svelte-et3q1q",code:".gutter.svelte-et3q1q {--gutterWidth: 32px;--gutterHeight: 12px;--togglerWidth: 18px;--togglerHeight: 18px;--togglerGap: calc(var(--togglerWidth) / 6);position:relative;width:var(--gutterWidth);height:var(--gutterHeight);background-color:rgba(255, 255, 255, 0.3);border-radius:50px;}.toggler.svelte-et3q1q {position:absolute;top:calc(((var(--togglerHeight) - var(--gutterHeight)) / 2) * -1);left:0;display:flex;align-items:center;justify-content:center;width:var(--togglerWidth);height:var(--togglerHeight);background-color:rgba(98, 99, 100, 1);border-radius:50%;transform:translateX(calc(var(--togglerGap) * -1));transition-property:background-color, transform;transition-duration:0.2s;transition-timing-function:ease;}.toggler.enabled.svelte-et3q1q {background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)));}"};function Ad(t,e){U(e,!0),q(t,W2);let[i,o]=Be(),n=()=>S(d,"$autoplayNextEnabled$",i),a=f(e,"ref",15,void 0),s=Se(),d=s.ui.autoplayNextEnabled$,l=s.actions.internal.setAutoplayNextEnabled;Vt(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(m){a(m)},children:(m,$)=>{var u=q2(),_=h(u);let w;var y=h(_);{var C=E=>{yr(E,{width:"14",height:"14",fill:"#000"})},T=E=>{os(E,{width:"14",height:"14",fill:"#000"})};R(y,E=>{n()?E(C):E(T,!1)})}g(_),g(u),k(E=>w=ee(_,1,"toggler svelte-et3q1q",null,w,E),[()=>({enabled:n()})]),b(m,u)},$$slots:{default:!0}}),z(),o()}var K2=be('<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 Kf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=K2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(2),g(o),k(()=>n=Ce(o,n,{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})),b(t,o)}function Md(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"hidden",3,!1),n=f(e,"disabled",3,!1),a=F("tooltip_interactive_seek"),s=v(()=>o()?"hidden":"");Vt(t,{get className(){return r(s)},testId:"btn-seek-to-interactive",ariaLabel:a,get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{Kf(d,{})},$$slots:{default:!0}}),z()}var Q2=be('<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 Qf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Q2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(2),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),b(t,o)}var G2={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Gf(t,e){q(t,G2);let i=f(e,"isOpened",3,!1),o=v(()=>i()?"graph-close-icon":"graph-open-icon");Qf(t,{get"data-testid"(){return r(o)}})}function Ld(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"hidden",3,!1),n=f(e,"disabled",3,!1),a=f(e,"graphIsOpened",3,!1),d=Se().ui.t,l=v(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),p=v(()=>o()?"hidden":"");Vt(t,{get className(){return r(p)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return r(l)},get click(){return e.click},get ref(){return i()},set ref(m){i(m)},children:(m,$)=>{let u=v(()=>!!a());Gf(m,{get isOpened(){return r(u)}})},$$slots:{default:!0}}),z()}var jf=require("@vkontakte/videoplayer-core/es2018");function Vd(t,e){U(e,!0);let[i,o]=Be(),n=()=>S(p,"$playbackState$",i),a=f(e,"isMobile",3,!1),s=f(e,"isLiveActive",3,!1),d=f(e,"ariaLabel",3,""),l=Se(),p=l.state.playbackState$,m=l.actions.internal.switchToActiveLive,$=l.actions.internal.togglePlay,u=v(()=>()=>{if(!s()){m();return}n()===jf.PlaybackState.PAUSED&&$()}),_=v(()=>a()?"":"btn--live btn-full-opacity"),w=v(()=>s()?"btn-live":"btn-live-offset"),y=v(()=>s()&&n()===jf.PlaybackState.PLAYING);Vt(t,{get className(){return r(_)},get testId(){return r(w)},get disabled(){return r(y)},get ariaLabel(){return d()},get click(){return r(u)},children:(C,T)=>{ad(C,{get isActive(){return s()}})},$$slots:{default:!0}}),z(),o()}var Yf=require("@vkontakte/videoplayer-shared/es2018");var j2=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),Y2=L('<img class="icon" aria-hidden="true">');function va(t,e){"use strict";let i=J(!1),o=()=>{B(i,!0)};var n=Fe(),a=ue(n);{var s=l=>{var p=j2();b(l,p)},d=l=>{var p=Y2();k(()=>He(p,"src",e.icon)),St("error",p,o),qs(p),b(l,p)};R(a,l=>{r(i)?l(s):l(d,!1)})}b(t,n)}function Zf(t,e){U(e,!0);let i=f(e,"disabled",3,!1),o=f(e,"onClick",3,Yf.noop),n=f(e,"ref",15),a=v(()=>o()===Yf.noop),s=v(()=>r(a)||i()),d=v(()=>r(a)?"btn-full-opacity":"");Ro(t,{get disabled(){return r(s)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get ref(){return n()},set ref(l){n(l)},children:(l,p)=>{let m=v(()=>{var $;return($=e.testId)!=null?$:e.id});Vt(l,{get className(){return r(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(s)},get testId(){return r(m)},children:($,u)=>{va($,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),z()}var b1=t=>!!t.buttonComponent;var ns={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var J2=L('<div><!> <div class="controls svelte-1iedtj3"><div class="controls-left svelte-1iedtj3"><!> <!> <!></div> <div class="controls-right svelte-1iedtj3"></div></div></div> <!>',1),ey={hash:"svelte-1iedtj3",code:".wrapper-bottom.svelte-1iedtj3 {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-1iedtj3 > :where(.svelte-1iedtj3) {pointer-events:auto;}.controls.svelte-1iedtj3 {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 8px 4px;box-sizing:border-box;}.controls-left.svelte-1iedtj3, .controls-right.svelte-1iedtj3 {display:flex;align-content:center;}.controls-left.svelte-1iedtj3 {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-1iedtj3 > *:not(:first-child), .controls-right.svelte-1iedtj3 > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-1iedtj3 {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1iedtj3 {transition:none;}"};function Xf(t,e){var er,Ps;U(e,!0),q(t,ey);let[i,o]=Be(),n=()=>S(si,"$disabledControls$",i),a=()=>S(qt,"$adPlaybackState",i),s=()=>S($t,"$playbackState$",i),d=()=>S(Xt,"$currentSubtitle$",i),l=()=>S(ni,"$isEnded$",i),p=()=>S(zn,"$currentGridType$",i),m=()=>S(Zt,"$isLive$",i),$=()=>S(wi,"$chromecastState$",i),u=()=>S(Yi,"$isPictureInPictureActive",i),_=()=>S(Fi,"$pictureInPictureType$",i),w=()=>S(Z,"$availableSubtitlesList$",i),y=()=>S(mi,"$contextMenuOpenedByKeyboard$",i),C=()=>S(ti,"$showContextMenuBtn$",i),T=()=>S(Xi,"$playerSize",i),E=()=>S(Hi,"$isRewindableLive$",i),P=()=>S(ri,"$isActiveLive$",i),A=()=>S(eo,"$graphIsOpened$",i),I=()=>S(Ui,"$contextMenuVisible$",i),V=()=>S(Jt,"$isFullscreen",i),H=()=>S(Co,"$autoplayNextEnabled",i),j=()=>S(r(Ao),"$prevButton",i),O=()=>S(r(Si),"$replayButton",i),X=()=>S(r(jn),"$playButton",i),ne=()=>S(r(pt),"$nextButton",i),Y=()=>S(r(Ot),"$playPrevChapterButton",i),fe=()=>S(r(Pi),"$seekToInteractiveButton",i),le=()=>S(r(Mo),"$interactiveGraphButton",i),Me=()=>S(r(st),"$liveButton",i),Ae=()=>S(r(Rt),"$time",i),me=()=>S(r(ui),"$episodes",i),ae=()=>S(r(Di),"$vkLogo",i),Pe=()=>S(r(_o),"$volume",i),re=()=>S(r(yi),"$subtitles",i),D=()=>S(r(Ai),"$settings",i),Ve=()=>S(r(gi),"$context",i),te=()=>S(r(Lo),"$fullscreen",i),Ge=()=>S(r(io),"$chromecast",i),ie=()=>S(zi,"$additionalDesktopControlPanelRightButtons$",i),Q=()=>S(To,"$isInteractiveTime$",i),W=()=>S(mo,"$settingsMenuVisible",i),Le=()=>S(Er,"$settingButtonRef$",i),Ne=()=>S(ai,"$startedByKeyboard$",i),Je=()=>S(qe,"$isAudioAvailable$",i),ye=()=>S(ve,"$fakeIsPlaying$",i),xe=()=>S(In,"$seekToInteractiveDisabledTooltip$",i),De=()=>S(Ct,"$adPosition",i),Ze=()=>S(Re,"$position$",i),ot=()=>S(vo,"$adDuration",i),gt=()=>S(dt,"$duration$",i),et=f(e,"playerControlsWrapperRef",15,void 0),mt=f(e,"playerControlsRef",15,void 0),Et=f(e,"isAds",3,!1),Qt=f(e,"logoTargetUrl",3,""),zt=f(e,"isOneVideoPlaylist",3,!1),Kt=f(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:ve}=fo(),G=Se(),Te=fo(),se=Ut(),Oe=G.actions.internal.toggleMuted,ze=G.actions.internal.togglePlay,tt=G.actions.internal.pause,lt=G.actions.internal.toggleSubtitle,Ye=(er=G.callbacks)==null?void 0:er.onAudioDoesNotExistHint,Xe=(Ps=G.callbacks)==null?void 0:Ps.onAudioDisabledHint,dt=G.state.duration$,Re=G.state.positionWithScrubbing$,$t=G.state.playbackState$,qe=G.state.isAudioAvailable$,Pt=G.state.isAudioDisabled,ni=G.state.isEnded$,Zt=G.state.isLive$,ri=G.state.isActiveLive$,Hi=G.state.isRewindableLive$,{isActive$:Yi,type$:Fi}=Te.pictureInPicture$,mo=G.ui.settingsMenu.visible$,Do=G.ui.settingsMenu.openedByBtnKeyboard$,nt=G.ui.controls,ht=G.actions.internal.getVideoEpisodes(),wi=G.state.chromecastState$,Z=G.state.availableSubtitlesList$,Xt=G.state.currentSubtitle$,si=nt.disabledControls$,Ui=G.ui.contextMenu.visible$,ti=G.ui.contextMenu.showContextMenuBtn$,mi=G.ui.contextMenu.openedByBtnKeyboard$,ai=G.ui.startedByKeyboard$,ut=G.ui.t,vo=G.ads.duration,Ct=G.ads.position,qt=G.ads.playbackState,Jt=G.ui.isFullscreen,Xi=G.ui.playerSize,zn=G.ui.currentGridType$,zi=G.ui.additionalDesktopControlPanelRightButtons$,Co=G.ui.autoplayNextEnabled$,li=G.actions.internal.getVideoElement,Tt=G.actions.internal.replayInteractive,go=G.actions.internal.prevVideoClick,Bo=G.actions.internal.nextVideoClick,di=G.state.isInteractive,To=G.state.isInteractiveTime$,Ji=G.state.showInteractiveGraph,Io=G.state.showSeekToInteractive,Oo=G.state.showPlayPrevChapter,Tn=G.state.showInteractiveTimeIndicator,Ni=G.state.playPrevChapterDisabledTooltip,In=Te.seekToInteractiveDisabledTooltip$,eo=Te.graphIsOpened$,ko=se.features.interactiveResponsiveUi,wr=v(()=>n().has("EPISODE_BUTTON")),sr=v(()=>n().has("GRAPH_BUTTON")),kn=v(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),qn=v(()=>n().has("PLAY_BUTTON")),Wn=v(()=>n().has("REPLAY_BUTTON")),ho=v(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),fn=()=>G.actions.internal.toggleChromecast(),En=v(()=>Et()?a()==="playing":s()===ga.PlaybackState.PLAYING),rt=v(()=>d().value!=="off"),Pn=v(()=>l()&&!Et()||di),Wo=v(()=>ko?r(Pn)&&Qi(p(),"m"):r(Pn)),Ko=v(()=>!l()||di||Et()),Sr=v(()=>Qi(p(),"m")),Qo=v(()=>e.showNextPrevButtons&&Qi(p(),"m")&&!Et()&&e.nextButtonActive),An=v(()=>e.showNextPrevButtons&&Qi(p(),"m")&&!Et()&&e.prevButtonActive),Kn=v(()=>!Et()&&!!m()),Mn=v(()=>$()!==ga.ChromecastState.NOT_AVAILABLE&&!(u()&&_()===1)&&Qi(p(),"m")&&!di),Go=v(()=>e.showAutoplayNext&&!zt()&&Qi(p(),"s")),qi=v(()=>w().length>0&&Qi(p(),"m")),to=v(()=>y()||C()),Eo=v(()=>Qi(p(),"s")&&!Et()),mn=v(()=>!e.logoHidden&&!Et()),jo=v(()=>se.features.fullscreen&&(e.logoHidden||Qi(p(),ko?"xs":"s"))&&!(u()&&_()===1)&&(di?Kt():!0)),Yo=v(()=>(!m()||Et())&&!(se.features.interactiveHideTime&&di)),Ei=v(()=>T().width>100),Ho=v(()=>Ji&&Qi(p(),"m")),Po=v(()=>ko?Io&&Qi(p(),"s"):Io),ar=v(()=>ko?Oo&&Qi(p(),"s"):Oo),vn=v(()=>!Et()&&!m()&&!!(ht!=null&&ht.length)&&r(Sr)&&!r(wr)),gn=v(()=>!E()||!!P()),Cr=v(()=>A()?ut("tooltip_interactive_graph_on"):ut("tooltip_interactive_graph_off")),Fo=v(()=>I()?ut("aria_label_context_menu_close"):ut("aria_label_context_menu_open")),Tr=(yt,_t)=>yt?_t&&_t===ga.PlaybackState.PAUSED?ut("tooltip_play"):"":ut("tooltip_live"),Ln=v(()=>Tr(r(gn),s())),Qn=v(()=>se.logoType==="vk_video"?ut("tooltip_vk_video_logo"):ut("tooltip_vk_logo")),lr=v(()=>r(rt)?ut("tooltip_subtitles_on"):ut("tooltip_subtitles_off")),Ir=v(()=>V()?ut("tooltip_fullscreen_on"):ut("tooltip_fullscreen_off")),Gn=v(()=>$()===ga.ChromecastState.CONNECTED?ut("tooltip_chromecast_on"):ut("tooltip_chromecast_off")),hn=v(()=>H()?ut("tooltip_autoplay_on"):ut("tooltip_autoplay_off")),kr=J(0),ci=pe({}),Ao=v(()=>nt.prevButton),Si=v(()=>nt.replayButton),jn=v(()=>nt.playButton),pt=v(()=>nt.nextButton),Ot=v(()=>nt.playPrevChapterButton),Pi=v(()=>nt.seekToInteractiveButton),Mo=v(()=>nt.interactiveGraphButton),st=v(()=>nt.liveButton),Rt=v(()=>nt.time),ui=v(()=>nt.episodes),Di=v(()=>nt.vkLogo),_o=v(()=>nt.volume),yi=v(()=>nt.subtitles),Ai=v(()=>nt.settings),gi=v(()=>nt.context),Lo=v(()=>nt.fullscreen),io=v(()=>nt.chromecast),oo=v(()=>({prevButton:j()?j().right-j().left:0,replayButton:O()?O().right-O().left:0,playButton:X()?X().right-X().left:0,nextButton:ne()?ne().right-ne().left:0,playPrevChapterButton:Y()?Y().right-Y().left:0,seekToInteractiveButton:fe()?fe().right-fe().left:0,interactiveGraphButton:le()?le().right-le().left:0,liveButton:Me()?Me().right-Me().left:0,time:Ae()?Ae().right-Ae().left:0,episodes:me()?me().right-me().left:0,vkLogo:ae()?ae().right-ae().left:0,volume:Pe()?Pe().right-Pe().left:0,subtitles:re()?re().right-re().left:0,settings:D()?D().right-D().left:0,context:Ve()?Ve().right-Ve().left:0,fullscreen:te()?te().right-te().left:0,chromecast:Ge()?Ge().right-Ge().left:0,additionalButtons:ie().length?ie().reduce(yt=>[...yt,40],[]):[]})),_n=J(0);Ue(()=>{(!r(_n)||r(_n)<r(oo).time)&&xt(()=>B(_n,pe(r(oo).time)))});let Yn=J(!1);Ue(()=>{let yt=0;r(vn)&&(Qi(p(),"xl")?yt=r(oo).time:yt=60);let _t=r(oo).prevButton+r(oo).playButton+r(oo).nextButton+r(oo).seekToInteractiveButton+r(oo).interactiveGraphButton+r(oo).liveButton+r(_n)+yt;B(Yn,pe(r(Yo)&&r(kr)>=_t))});let dr=v(()=>r(Yn)&&Qi(p(),"m")),Zn=(0,$1.debounceFn)(cl,260);Ue(()=>{T(),Q(),Zn(li(),nt,ci,e.showControls)});let Er=ce();Ue(()=>{W(),Le()&&xt(()=>tl(Le(),W(),Do))});let cr;Ue(()=>{Ne(),xt(()=>cu(ai,Ne(),cr))});function bn(){$s({isAudioDisabled:Pt,audioDisabledHintCallback:Xe,isAudioAvailable:Je(),audioIsNotExistHintCallback:Ye})&&Oe()}let Vn=di?Tt:ze,Zo=v(()=>ye()!==null),Xo=v(()=>r(Zo)?ye():r(En)),Xn=v(()=>r(Xo)?ut("tooltip_pause"):ut("tooltip_play")),Pr=ut("tooltip_episodes"),Ar=v(()=>{var yt,_t,ro,Uo;return r(An)?{id:"prevButton",type:"desktop-control-panel-left",weight:is.prevButton,buttonComponent:ma,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:go.bind(null,!0)},tooltipEnabled:!((_t=(yt=G.callbacks)==null?void 0:yt.uiInfo)!=null&&_t.onPrevButtonMouseEnter)&&!((Uo=(ro=G.callbacks)==null?void 0:ro.uiInfo)!=null&&Uo.onPrevButtonMouseLeave),mouseEnter:()=>{var so,ii,Bi;(Bi=(ii=(so=G.callbacks)==null?void 0:so.uiInfo)==null?void 0:ii.onPrevButtonMouseEnter)==null||Bi.call(ii,fa(li(),ci,"prevButton",e.showControls))},mouseLeave:()=>{var so,ii,Bi;(Bi=(ii=(so=G.callbacks)==null?void 0:so.uiInfo)==null?void 0:ii.onPrevButtonMouseLeave)==null||Bi.call(ii,fa(li(),ci,"prevButton",e.showControls))},tooltipText:ut("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),ur=v(()=>r(Wo)?{id:"replayButton",type:"desktop-control-panel-left",weight:is.replayButton,buttonComponent:ul,buttonComponentProps:{disabled:r(Wn),click:Vn},tooltipText:ut("tooltip_restart"),disabled:r(Wn)}:void 0),bo=v(()=>r(Ko)?{id:"playButton",type:"desktop-control-panel-left",weight:is.playButton,buttonComponent:pl,buttonComponentProps:{disabled:r(qn),isPlaying:r(En),click:ze},tooltipText:r(Xn),disabled:r(qn)}:void 0),Rn=v(()=>{var yt,_t,ro,Uo;return r(Qo)?{id:"nextButton",type:"desktop-control-panel-left",weight:is.nextButton,buttonComponent:ma,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:Bo.bind(null,!0)},tooltipEnabled:!((_t=(yt=G.callbacks)==null?void 0:yt.uiInfo)!=null&&_t.onNextButtonMouseEnter)&&!((Uo=(ro=G.callbacks)==null?void 0:ro.uiInfo)!=null&&Uo.onNextButtonMouseLeave),mouseEnter:()=>{var so,ii,Bi;(Bi=(ii=(so=G.callbacks)==null?void 0:so.uiInfo)==null?void 0:ii.onNextButtonMouseEnter)==null||Bi.call(ii,fa(li(),ci,"nextButton",e.showControls))},mouseLeave:()=>{var so,ii,Bi;(Bi=(ii=(so=G.callbacks)==null?void 0:so.uiInfo)==null?void 0:ii.onNextButtonMouseLeave)==null||Bi.call(ii,fa(li(),ci,"nextButton",e.showControls))},tooltipText:ut("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Jn=v(()=>di&&r(ar)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:is.playPrevChapterButton,buttonComponent:Pd,buttonComponentProps:{disabled:r(ho),click:e.playPrevChapter},tooltipText:ut("tooltip_interactive_go_back"),disabledTooltipContent:ut(Ni),disabled:r(ho)}:void 0),Mr=v(()=>di&&r(Po)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:is.seekToInteractiveButton,buttonComponent:Md,buttonComponentProps:{disabled:r(kn),click:e.seekToInteractive},tooltipText:ut("tooltip_interactive_seek"),disabled:r(kn),disabledTooltipContent:ut(xe())}:void 0),ct=v(()=>di&&r(Ho)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:is.interactiveGraphButton,buttonComponent:Ld,buttonComponentProps:{disabled:r(sr),click:eo.toggle,graphIsOpened:A()},tooltipText:r(Cr)}:void 0),Ht=v(()=>r(Kn)?{id:"liveButton",type:"desktop-control-panel-left",weight:is.liveButton,buttonComponent:Vd,buttonComponentProps:{isLiveActive:r(gn),ariaLabel:r(Ln)},tooltipText:r(Ln),disabled:r(gn)&&s()===ga.PlaybackState.PLAYING}:void 0),Mi=v(()=>[r(Ar),r(ur),r(bo),r(Rn),r(Jn),r(Mr),r(ct),r(Ht)].filter(yt=>!!yt).sort(na)),$e=v(()=>r(mn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:ns.vkLogo,buttonComponent:xd,buttonComponentProps:{targetUrl:Qt(),logoClickable:e.logoClickable,click:tt},tooltipText:r(Qn),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),It=v(()=>r(Go)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:ns.autoplayNext,buttonComponent:Ad,tooltipText:r(hn)}:void 0),vi=v(()=>({id:"volume",type:"desktop-control-panel-right",weight:ns.volume,buttonComponent:Cf,buttonComponentProps:{click:bn}})),Ci=v(()=>r(qi)?{id:"subtitles",type:"desktop-control-panel-right",weight:ns.subtitles,buttonComponent:yf,buttonComponentProps:{isSubtitlesEnabled:r(rt),click:lt},tooltipText:r(lr)}:void 0),no=v(()=>r(Eo)?{id:"settings",type:"desktop-control-panel-right",weight:ns.settings,buttonComponent:al,buttonComponentProps:{ref$:Er},tooltipText:W()?void 0:ut("tooltip_settings_off")}:void 0),pi=v(()=>se.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:ns.context,buttonComponent:zf,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:r(Fo)},className:r(to)?"":"out-of-view",tooltipText:r(Fo)}:void 0),Ie=v(()=>r(jo)?{id:"fullscreen",type:"desktop-control-panel-right",weight:ns.fullscreen,buttonComponent:yd,buttonComponentProps:{isFullscreen:V(),click:e.toggleFullscreen},tooltipText:r(Ir)}:void 0),At=v(()=>r(Mn)?{id:"chromecast",type:"desktop-control-panel-right",weight:ns.chromecast,buttonComponent:wd,buttonComponentProps:{state:$(),click:fn},tooltipText:r(Gn)}:void 0),jt=v(()=>[r($e),r(It),r(vi),r(Ci),r(no),r(pi),r(Ie),r(At),...ie()].filter(yt=>!!yt).sort(na));var xi=J2(),ei=ue(xi);let Lr;var Zi=h(ei);let Vr=v(()=>!r(Ei));ua(Zi,{get isHidden(){return r(Vr)},get isAds(){return Et()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return E()},get ref(){return ci.timeline},set ref(yt){ci.timeline=yt}});var Is=M(Zi,2),Jo=h(Is),Ca=h(Jo);Ti(Ca,17,()=>r(Mi),yt=>yt.id,(yt,_t)=>{uu(yt,{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 ci[r(_t).id]},set ref(ro){ci[r(_t).id]=ro}})});var ks=M(Ca,2);{var yl=yt=>{let _t=v(()=>Et()?De():Ze()),ro=v(()=>Et()?ot():gt());_d(yt,{isMobile:!1,get showDuration(){return r(dr)},get position(){return r(_t)},get duration(){return r(ro)},get ref(){return ci.time},set ref(Uo){ci.time=Uo}})};R(ks,yt=>{r(Yo)&&yt(yl)})}var Ta=M(ks,2);let xl=v(()=>!r(vn));Ro(Ta,{className:"w-max",get disabled(){return r(xl)},tooltipContent:Pr,get ref(){return ci.episodes},set ref(yt){ci.episodes=yt},children:(yt,_t)=>{var ro=Fe(),Uo=ue(ro);{var so=ii=>{Cd(ii,{get position(){return Ze()},get duration(){return gt()},timeCodes:ht})};R(Uo,ii=>{r(vn)&&ii(so)})}b(yt,ro)},$$slots:{default:!0}}),g(Jo);var Es=M(Jo,2);Ti(Es,21,()=>r(jt),yt=>yt.id,(yt,_t)=>{var ro=Fe(),Uo=ue(ro);{var so=Bi=>{uu(Bi,{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 ci[r(_t).id]},set ref(ss){ci[r(_t).id]=ss}})},ii=Bi=>{let ss=v(()=>!!r(_t).disabled);Zf(Bi,{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(ss)},get onClick(){return r(_t).onClick},get ref(){return ci[r(_t).id]},set ref(Sl){ci[r(_t).id]=Sl}})};R(Uo,Bi=>{b1(r(_t))?Bi(so):Bi(ii,!1)})}b(yt,ro)}),g(Es),g(Is),ft(Is,yt=>mt(yt),()=>mt()),g(ei),ft(ei,yt=>et(yt),()=>et());var wl=M(ei,2);{var Ia=yt=>{kd(yt,{get ref(){return ci.interactiveTimeIndicator},set ref(_t){ci.interactiveTimeIndicator=_t}})};R(wl,yt=>{Tn&&yt(Ia)})}k(yt=>Lr=ee(ei,1,"wrapper-bottom svelte-1iedtj3",null,Lr,yt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Or(Jo,"clientWidth",yt=>B(kr,yt)),b(t,xi),z(),o()}var fl=require("@vkontakte/videoplayer-core/es2018");var Jf=require("@vkontakte/videoplayer-shared/es2018");var ty=L('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),iy=L('<img class="icon svelte-167ouw6" aria-hidden="true">'),oy={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 em(t,e){q(t,oy);let i=f(e,"disabled",3,!1),o=f(e,"onClick",3,Jf.noop),n=v(()=>o()===Jf.noop),a=v(()=>r(n)||i()),s=J(!1),d=()=>{B(s,!0)},l=v(()=>r(n)?"btn-full-opacity":"");Vt(t,{get className(){return r(l)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(a)},get testId(){return e.testId},children:(p,m)=>{var $=Fe(),u=ue($);{var _=y=>{var C=ty();b(y,C)},w=y=>{var C=iy();k(()=>He(C,"src",e.iconUrl)),St("error",C,d),qs(C),b(y,C)};R(u,y=>{r(s)?y(_):y(w,!1)})}b(p,$)},$$slots:{default:!0}})}var ny=be('<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=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=ny();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i})),b(t,o)}var y1=require("@vkontakte/videoplayer-shared/es2018");var ry=L('<span class="text svelte-6gmlbk"> </span>'),sy=L('<div aria-hidden="true"><!> <!></div>'),ay={hash:"svelte-6gmlbk",code:".container.svelte-6gmlbk {display:flex;align-items:center;}.expanded.svelte-6gmlbk {background-color:rgba(0, 0, 0, 0.56);border-radius:6px;}.text.svelte-6gmlbk {font-size:15px;margin-left:8px;}"};function pu(t,e){U(e,!0),q(t,ay);let i=f(e,"muted",3,!1),o=f(e,"expanded",3,!1),n=f(e,"click",3,y1.noop),a=f(e,"ref",15,void 0),d=Se().ui.t,l=v(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),p=v(()=>o()?xs:tm),m=v(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");Vt(t,{get testId(){return r(m)},get click(){return n()},get ariaLabel(){return r(l)},get ref(){return a()},set ref($){a($)},children:($,u)=>{var _=sy();let w=v(()=>r(p)),y;var C=h(_);Ii(C,()=>r(w),(P,A)=>{A(P,{})});var T=M(C,2);{var E=P=>{var A=ry(),I=h(A,!0);g(A),k(V=>ge(I,V),[()=>d("mobile_unmute")]),b(P,A)};R(T,P=>{o()&&P(E)})}g(_),k(P=>y=ee(_,1,"container svelte-6gmlbk",null,y,P),[()=>({expanded:o()})]),b($,_)},$$slots:{default:!0}}),z()}var ly=be('<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 im(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=ly();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(3),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i})),b(t,o)}var dy={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
|
|
256
|
-
svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function
|
|
255
|
+
animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function Id(t,e){var le;U(e,!0),K(t,M2);let[i,o]=Ne(),n=()=>S(C,"$isMobile",i),a=()=>S(P,"$areControlsVisible",i),s=()=>S(R,"$currentGridType$",i),d=()=>S(I,"$isInteractiveTime$",i),l=()=>S(b,"$interactiveControlsOpacity$",i),p=()=>S(M,"$showInteractiveTimeIndicatorTooltip$",i),m=()=>S(T,"$isFullscreen",i),y=f(e,"ref",15,void 0),u=X(void 0),$=Ce(),w=lo(),{interactiveControlsOpacity$:b}=w,C=$.ui.isMobile,T=$.ui.isFullscreen,I=$.state.isInteractiveTime$,M=w.showInteractiveTimeIndicatorTooltip$,P=$.ui.controlsVisible,k=(le=$.callbacks)==null?void 0:le.onInteractiveTimeIndicatorClick,R=$.ui.currentGridType$,W=v(()=>!n()&&a()),Y=v(()=>ws(s(),"s")),F=v(()=>!d()||!!l()||r(W)),Q=X(!1);Fe(()=>{D(Q,pe(r(F)))});let oe=()=>{D(Q,!0)},Z=()=>{var he;re(),(he=r(u))==null||he.addEventListener("animationiteration",oe,{once:!0})},re=()=>{var he;D(Q,!1),(he=r(u))==null||he.removeEventListener("animationiteration",oe)},de=he=>{M.set(he)},Ae=v(()=>p()&&!r(F));Fe(()=>{p()?Z():re()});let Me=()=>{r(F)||(M.set(!0),k==null||k())};In(()=>{M.clearTimeout(),re()});let ge=()=>{M.set(!1)},se=q("tooltip_interactive_interaction_time_indicator");var Ee=A2();let ne;Ee.__mousemove=[P2],Ee.__click=Me;var V=h(Ee);Mo(V,{tooltipContent:se,get tooltipActive(){return r(Ae)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:de,get ref(){return y()},set ref(he){y(he)},children:(he,ee)=>{_d(he,{completed:!0})},$$slots:{default:!0}});var xe=A(V,2);let _e;gt(xe,he=>y(he),()=>y());var ze=A(xe,2);let H;gt(ze,he=>D(u,he),()=>r(u)),g(Ee),E((he,ee,De)=>{ne=J(Ee,1,"interactive-episode-icon-animated svelte-od3veb",null,ne,he),_e=J(xe,1,"ref-block svelte-od3veb",null,_e,ee),H=J(ze,1,"pulse svelte-od3veb",null,H,De)},[()=>({mobile:n(),fullscreen:m(),invisible:r(F),"icon-small":r(Y)}),()=>({hidden:r(F)}),()=>({paused:r(Q)})]),kt("mouseleave",Ee,ge),_(t,Ee),z(),o()}at(["mousemove","click"]);function pu(t,e){U(e,!0);let i=f(e,"tooltipEnabled",3,!0),o=f(e,"disabled",3,!1),n=f(e,"className",3,void 0),a=f(e,"ref",15);Mo(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return n()},get ref(){return a()},set ref(s){a(s)},children:(s,d)=>{var l=Oe();let p=v(()=>e.buttonComponent);var m=ue(l);Ti(m,()=>r(p),(y,u)=>{u(y,ts(()=>{var $;return($=e.buttonComponentProps)!=null?$:{}}))}),_(s,l)},$$slots:{default:!0}}),z()}var os={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var V2=ye('<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 Qf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=V2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),_(t,o)}function Ss(t,e){let i=f(e,"isPrev",3,!1),o=f(e,"isMobile",3,!1),n=f(e,"width",3,"24"),a=f(e,"height",3,"24"),s=v(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=v(()=>i()?"prev-icon":"next-icon");Qf(t,{get style(){return r(s)},get width(){return n()},get height(){return a()},get viewBox(){return e.viewBox},get"data-testid"(){return r(d)}})}var R2=L('<div class="icon-background-mobile svelte-xtk2k4"></div>'),B2=L("<!> <!>",1),N2={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 fa(t,e){U(e,!0),K(t,N2);let i=f(e,"ref",15,void 0),o=f(e,"isMobile",3,!1),n=f(e,"disabled",3,!1),s=Ce().ui.t,d=v(()=>e.type==="prev"?s("tooltip_previous"):s("tooltip_next")),l=v(()=>e.type==="prev"?s("hotkey_map_item_prev_video_value"):s("hotkey_map_item_next_video_value")),p=v(()=>`btn-${o()?"m":"d"}--${e.type}`);Bt(t,{get className(){return r(p)},get testId(){var m;return`btn-${(m=e.type)!=null?m:""}`},get disabled(){return n()},get ariaLabel(){return r(d)},get click(){return e.click},get ariaKeyShortCut(){return r(l)},get ref(){return i()},set ref(m){i(m)},children:(m,y)=>{var u=B2(),$=ue(u);{var w=T=>{var I=R2();_(T,I)};B($,T=>{o()&&T(w)})}var b=A($,2);let C=v(()=>e.type==="prev");Ss(b,{get isMobile(){return o()},get isPrev(){return r(C)}}),_(m,u)},$$slots:{default:!0}}),z()}var D2=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M12 10.096a.4.4 0 0 1-.67.296L7.044 6.493a.67.67 0 0 1 0-.986l4.288-3.899a.4.4 0 0 1 .669.296V5a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"></path></svg>');function kd(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=D2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img",...i})),_(t,o)}var $1=require("@vkontakte/videoplayer-shared/es2018");var O2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),H2=L("<!> <div><!></div>",1),F2={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function ml(t,e){U(e,!0),K(t,F2);let i=f(e,"ref",15,void 0),o=f(e,"isMobile",3,!1),n=f(e,"disabled",3,!1),a=f(e,"className",3,""),s=f(e,"click",3,$1.noop),d=q("tooltip_restart"),l=v(()=>`${o()?"btn-m--play":""} ${a()}`);Bt(t,{get className(){return r(l)},testId:"btn-replay",ariaLabel:d,get disabled(){return n()},get click(){return s()},get ariaKeyShortCut(){return Or.KeyK},get ref(){return i()},set ref(p){i(p)},children:(p,m)=>{var y=H2(),u=ue(y);{var $=T=>{var I=O2();_(T,I)};B(u,T=>{o()&&T($)})}var w=A(u,2);let b;var C=h(w);kd(C,{}),g(w),E(T=>b=J(w,1,"svelte-1ot3duq",null,b,T),[()=>({mobile:o()})]),_(p,y)},$$slots:{default:!0}}),z()}var U2=ye('<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=f(e,"width",3,"24"),o=f(e,"height",3,"24"),n=f(e,"viewBox",3,"0 0 24 24"),a=f(e,"fill",3,"var(--btn-color)");var s=U2(),d=h(s);g(s),E(()=>{Be(s,"width",i()),Be(s,"height",o()),Be(s,"viewBox",n()),Be(d,"fill",a())}),_(t,s)}var z2=ye('<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 ns(t,e){"use strict";let i=f(e,"width",3,"24"),o=f(e,"height",3,"24"),n=f(e,"viewBox",3,"0 0 24 24"),a=f(e,"fill",3,"var(--btn-color)");var s=z2(),d=h(s);g(s),E(()=>{Be(s,"width",i()),Be(s,"height",o()),Be(s,"viewBox",n()),Be(d,"fill",a())}),_(t,s)}var y1=require("@vkontakte/videoplayer-shared/es2018");var q2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),W2=L("<!> <div><!></div>",1),K2={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function vl(t,e){U(e,!0),K(t,K2);let[i,o]=Ne(),n=()=>S(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=lo(),s=f(e,"ref",15,void 0),d=f(e,"isMobile",3,!1),l=f(e,"isPlaying",3,!1),p=f(e,"disabled",3,!1),m=f(e,"className",3,""),y=f(e,"click",3,y1.noop),$=Ce().ui.t,{toggle:w}=a,b=v(()=>w),C=v(()=>n()!==null),T=v(()=>r(C)?n():l()),I=v(()=>r(T)?$("tooltip_pause"):$("tooltip_play")),M=v(()=>r(T)?ns:Cr),P=v(()=>`${d()?"btn-m--play":""} ${m()}`),k=v(()=>r(C)?r(b):y());Bt(t,{get className(){return r(P)},testId:"btn-play",get click(){return r(k)},get disabled(){return p()},get ariaLabel(){return r(I)},get ariaKeyShortCut(){return Or.KeyK},get ref(){return s()},set ref(R){s(R)},children:(R,W)=>{var Y=W2();let F=v(()=>r(M));var Q=ue(Y);{var oe=Ae=>{var Me=q2();_(Ae,Me)};B(Q,Ae=>{d()&&Ae(oe)})}var Z=A(Q,2);let re;var de=h(Z);Ti(de,()=>r(F),(Ae,Me)=>{Me(Ae,{})}),g(Z),E(Ae=>re=J(Z,1,"svelte-1ot3duq",null,re,Ae),[()=>({mobile:d()})]),_(R,Y)},$$slots:{default:!0}}),z(),o()}var Q2=ye('<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 Gf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Q2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i})),_(t,o)}function Ed(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"hidden",3,!1),n=f(e,"disabled",3,!1),a=q("tooltip_interactive_go_back"),s=v(()=>o()?"hidden":"");Bt(t,{get className(){return r(s)},testId:"btn-play-prev-chapter",ariaLabel:a,get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{Gf(d,{})},$$slots:{default:!0}}),z()}var G2=L('<span class="gutter svelte-et3q1q"><span><!></span></span>'),Y2={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 Pd(t,e){U(e,!0),K(t,Y2);let[i,o]=Ne(),n=()=>S(d,"$autoplayNextEnabled$",i),a=f(e,"ref",15,void 0),s=Ce(),d=s.ui.autoplayNextEnabled$,l=s.actions.internal.setAutoplayNextEnabled;Bt(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(m){a(m)},children:(m,y)=>{var u=G2(),$=h(u);let w;var b=h($);{var C=I=>{Cr(I,{width:"14",height:"14",fill:"#000"})},T=I=>{ns(I,{width:"14",height:"14",fill:"#000"})};B(b,I=>{n()?I(C):I(T,!1)})}g($),g(u),E(I=>w=J($,1,"toggler svelte-et3q1q",null,w,I),[()=>({enabled:n()})]),_(m,u)},$$slots:{default:!0}}),z(),o()}var j2=ye('<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 Yf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=j2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),E(()=>n=Te(o,n,{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})),_(t,o)}function Ad(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"hidden",3,!1),n=f(e,"disabled",3,!1),a=q("tooltip_interactive_seek"),s=v(()=>o()?"hidden":"");Bt(t,{get className(){return r(s)},testId:"btn-seek-to-interactive",ariaLabel:a,get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{Yf(d,{})},$$slots:{default:!0}}),z()}var Z2=ye('<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 jf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Z2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),_(t,o)}var X2={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Zf(t,e){K(t,X2);let i=f(e,"isOpened",3,!1),o=v(()=>i()?"graph-close-icon":"graph-open-icon");jf(t,{get"data-testid"(){return r(o)}})}function Md(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"hidden",3,!1),n=f(e,"disabled",3,!1),a=f(e,"graphIsOpened",3,!1),d=Ce().ui.t,l=v(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),p=v(()=>o()?"hidden":"");Bt(t,{get className(){return r(p)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return r(l)},get click(){return e.click},get ref(){return i()},set ref(m){i(m)},children:(m,y)=>{let u=v(()=>!!a());Zf(m,{get isOpened(){return r(u)}})},$$slots:{default:!0}}),z()}var Xf=require("@vkontakte/videoplayer-core/es2018");function Ld(t,e){U(e,!0);let[i,o]=Ne(),n=()=>S(p,"$playbackState$",i),a=f(e,"isMobile",3,!1),s=f(e,"isLiveActive",3,!1),d=f(e,"ariaLabel",3,""),l=Ce(),p=l.state.playbackState$,m=l.actions.internal.switchToActiveLive,y=l.actions.internal.togglePlay,u=v(()=>()=>{if(!s()){m();return}n()===Xf.PlaybackState.PAUSED&&y()}),$=v(()=>a()?"":"btn--live btn-full-opacity"),w=v(()=>s()?"btn-live":"btn-live-offset"),b=v(()=>s()&&n()===Xf.PlaybackState.PLAYING);Bt(t,{get className(){return r($)},get testId(){return r(w)},get disabled(){return r(b)},get ariaLabel(){return d()},get click(){return r(u)},children:(C,T)=>{sd(C,{get isActive(){return s()}})},$$slots:{default:!0}}),z(),o()}var Jf=require("@vkontakte/videoplayer-shared/es2018");var J2=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),ey=L('<img class="icon" aria-hidden="true">');function ma(t,e){"use strict";let i=X(!1),o=()=>{D(i,!0)};var n=Oe(),a=ue(n);{var s=l=>{var p=J2();_(l,p)},d=l=>{var p=ey();E(()=>Be(p,"src",e.icon)),kt("error",p,o),zs(p),_(l,p)};B(a,l=>{r(i)?l(s):l(d,!1)})}_(t,n)}function em(t,e){U(e,!0);let i=f(e,"disabled",3,!1),o=f(e,"onClick",3,Jf.noop),n=f(e,"ref",15),a=v(()=>o()===Jf.noop),s=v(()=>r(a)||i()),d=v(()=>r(a)?"btn-full-opacity":"");Mo(t,{get disabled(){return r(s)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get ref(){return n()},set ref(l){n(l)},children:(l,p)=>{let m=v(()=>{var y;return(y=e.testId)!=null?y:e.id});Bt(l,{get className(){return r(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(s)},get testId(){return r(m)},children:(y,u)=>{ma(y,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),z()}var x1=t=>!!t.buttonComponent;var rs={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var oy=L('<div><!> <div class="controls svelte-f6e8ix" data-testid="player_controls"><div class="controls-left svelte-f6e8ix"><!> <!> <!></div> <div class="controls-right svelte-f6e8ix"></div></div></div> <!>',1),ny={hash:"svelte-f6e8ix",code:".wrapper-bottom.svelte-f6e8ix {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-f6e8ix > :where(.svelte-f6e8ix) {pointer-events:auto;}.controls.svelte-f6e8ix {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 var(--controls-desktop-padding-horizontal) 4px;box-sizing:border-box;}.controls-left.svelte-f6e8ix, .controls-right.svelte-f6e8ix {display:flex;align-content:center;}.controls-left.svelte-f6e8ix {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-f6e8ix > *:not(:first-child), .controls-right.svelte-f6e8ix > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-f6e8ix {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-f6e8ix {transition:none;}"};function tm(t,e){var ks,ka;U(e,!0),K(t,ny);let[i,o]=Ne(),n=()=>S(j,"$disabledControls$",i),a=()=>S(Vt,"$adPlaybackState",i),s=()=>S(Xe,"$playbackState$",i),d=()=>S(To,"$currentSubtitle$",i),l=()=>S(yi,"$isEnded$",i),p=()=>S(Un,"$currentGridType$",i),m=()=>S(Jt,"$isLive$",i),y=()=>S(ki,"$chromecastState$",i),u=()=>S(Vi,"$isPictureInPictureActive",i),$=()=>S(Oi,"$pictureInPictureType$",i),w=()=>S(eo,"$availableSubtitlesList$",i),b=()=>S(Ri,"$contextMenuOpenedByKeyboard$",i),C=()=>S(gi,"$showContextMenuBtn$",i),T=()=>S(Zt,"$playerSize",i),I=()=>S(Yt,"$isRewindableLive$",i),M=()=>S(Ge,"$isActiveLive$",i),P=()=>S(Ro,"$graphIsOpened$",i),k=()=>S(jt,"$contextMenuVisible$",i),R=()=>S(po,"$isFullscreen",i),W=()=>S(Vo,"$autoplayNextEnabled",i),Y=()=>S(r(vt),"$prevButton",i),F=()=>S(r(Dt),"$replayButton",i),Q=()=>S(r(ai),"$playButton",i),oe=()=>S(r(ni),"$nextButton",i),Z=()=>S(r(ho),"$playPrevChapterButton",i),re=()=>S(r(Eo),"$seekToInteractiveButton",i),de=()=>S(r(Po),"$interactiveGraphButton",i),Ae=()=>S(r(Go),"$liveButton",i),Me=()=>S(r(Yo),"$time",i),ge=()=>S(r(tt),"$episodes",i),se=()=>S(r(Mt),"$vkLogo",i),Ee=()=>S(r(vi),"$volume",i),ne=()=>S(r(zi),"$subtitles",i),V=()=>S(r(Zi),"$settings",i),xe=()=>S(r(bn),"$context",i),_e=()=>S(r($n),"$fullscreen",i),ze=()=>S(r(qi),"$chromecast",i),H=()=>S(to,"$additionalDesktopControlPanelRightButtons$",i),le=()=>S(zo,"$isInteractiveTime$",i),he=()=>S(uo,"$settingsMenuVisible",i),ee=()=>S(fr,"$settingButtonRef$",i),De=()=>S(si,"$startedByKeyboard$",i),Ze=()=>S(Kt,"$isAudioAvailable$",i),we=()=>S(Nt,"$fakeIsPlaying$",i),Ve=()=>S(En,"$seekToInteractiveDisabledTooltip$",i),Ie=()=>S(Je,"$adPosition",i),Ue=()=>S(it,"$position$",i),ct=()=>S(mi,"$adDuration",i),ut=()=>S(_t,"$duration$",i),nt=f(e,"playerControlsWrapperRef",15,void 0),Ct=f(e,"playerControlsRef",15,void 0),mt=f(e,"isAds",3,!1),Wt=f(e,"logoTargetUrl",3,""),ti=f(e,"isOneVideoPlaylist",3,!1),Lt=f(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Nt}=lo(),O=Ce(),be=lo(),te=zt(),Re=O.actions.internal.toggleMuted,je=O.actions.internal.togglePlay,Qe=O.actions.internal.pause,Le=O.actions.internal.toggleSubtitle,rt=(ks=O.callbacks)==null?void 0:ks.onAudioDoesNotExistHint,et=(ka=O.callbacks)==null?void 0:ka.onAudioDisabledHint,_t=O.state.duration$,it=O.state.positionWithScrubbing$,Xe=O.state.playbackState$,Kt=O.state.isAudioAvailable$,bt=O.state.isAudioDisabled,yi=O.state.isEnded$,Jt=O.state.isLive$,Ge=O.state.isActiveLive$,Yt=O.state.isRewindableLive$,{isActive$:Vi,type$:Oi}=be.pictureInPicture$,uo=O.ui.settingsMenu.visible$,ji=O.ui.settingsMenu.openedByBtnKeyboard$,ot=O.ui.controls,$t=O.actions.internal.getVideoEpisodes(),ki=O.state.chromecastState$,eo=O.state.availableSubtitlesList$,To=O.state.currentSubtitle$,j=ot.disabledControls$,jt=O.ui.contextMenu.visible$,gi=O.ui.contextMenu.showContextMenuBtn$,Ri=O.ui.contextMenu.openedByBtnKeyboard$,si=O.ui.startedByKeyboard$,pt=O.ui.t,mi=O.ads.duration,Je=O.ads.position,Vt=O.ads.playbackState,po=O.ui.isFullscreen,Zt=O.ui.playerSize,Un=O.ui.currentGridType$,to=O.ui.additionalDesktopControlPanelRightButtons$,Vo=O.ui.autoplayNextEnabled$,ui=O.actions.internal.getVideoElement,Tt=O.actions.internal.replayInteractive,Bi=O.actions.internal.prevVideoClick,Uo=O.actions.internal.nextVideoClick,pi=O.state.isInteractive,zo=O.state.isInteractiveTime$,Hi=O.state.showInteractiveGraph,Io=O.state.showSeekToInteractive,Fi=O.state.showPlayPrevChapter,zn=O.state.showInteractiveTimeIndicator,fo=O.state.playPrevChapterDisabledTooltip,En=be.seekToInteractiveDisabledTooltip$,Ro=be.graphIsOpened$,Bo=te.features.interactiveResponsiveUi,Pn=v(()=>n().has("EPISODE_BUTTON")),Ir=v(()=>n().has("GRAPH_BUTTON")),dr=v(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),An=v(()=>n().has("PLAY_BUTTON")),fn=v(()=>n().has("REPLAY_BUTTON")),qn=v(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),ft=()=>O.actions.internal.toggleChromecast(),mo=v(()=>mt()?a()==="playing":s()===va.PlaybackState.PLAYING),qo=v(()=>d().value!=="off"),Mn=v(()=>l()&&!mt()||pi),No=v(()=>Bo?r(Mn)&&Qi(p(),"m"):r(Mn)),Wo=v(()=>!l()||pi||mt()),Wn=v(()=>Qi(p(),"m")),Do=v(()=>e.showNextPrevButtons&&Qi(p(),"m")&&!mt()&&e.nextButtonActive),Kn=v(()=>e.showNextPrevButtons&&Qi(p(),"m")&&!mt()&&e.prevButtonActive),mn=v(()=>!mt()&&!!m()),Qn=v(()=>y()!==va.ChromecastState.NOT_AVAILABLE&&!(u()&&$()===1)&&Qi(p(),"m")&&!pi),Ko=v(()=>e.showAutoplayNext&&!ti()&&Qi(p(),"s")),vo=v(()=>w().length>0&&Qi(p(),"m")),Si=v(()=>b()||C()),vn=v(()=>Qi(p(),"s")&&!mt()),gn=v(()=>!e.logoHidden&&!mt()),Qo=v(()=>te.features.fullscreen&&(e.logoHidden||Qi(p(),Bo?"xs":"s"))&&!(u()&&$()===1)&&(pi?Lt():!0)),go=v(()=>(!m()||mt())&&!(te.features.interactiveHideTime&&pi)),Ln=v(()=>T().width>100),ko=v(()=>Hi&&Qi(p(),"m")),Ui=v(()=>Bo?Io&&Qi(p(),"s"):Io),cr=v(()=>Bo?Fi&&Qi(p(),"s"):Fi),Oo=v(()=>!mt()&&!m()&&!!($t!=null&&$t.length)&&r(Wn)&&!r(Pn)),Gn=v(()=>!I()||!!M()),Vn=v(()=>P()?pt("tooltip_interactive_graph_on"):pt("tooltip_interactive_graph_off")),Yn=v(()=>k()?pt("tooltip_context_menu_close"):pt("tooltip_context_menu_open")),ur=(dt,xt)=>dt?xt&&xt===va.PlaybackState.PAUSED?pt("tooltip_play"):"":pt("tooltip_live"),hn=v(()=>ur(r(Gn),s())),kr=v(()=>te.logoType==="vk_video"?pt("tooltip_vk_video_logo"):pt("tooltip_vk_logo")),pr=v(()=>r(qo)?pt("tooltip_subtitles_on"):pt("tooltip_subtitles_off")),jn=v(()=>R()?pt("tooltip_fullscreen_on"):pt("tooltip_fullscreen_off")),Er=v(()=>y()===va.ChromecastState.CONNECTED?pt("tooltip_chromecast_on"):pt("tooltip_chromecast_off")),Pr=v(()=>W()?pt("tooltip_autoplay_on"):pt("tooltip_autoplay_off")),_n=X(0),Gt=pe({}),vt=v(()=>ot.prevButton),Dt=v(()=>ot.replayButton),ai=v(()=>ot.playButton),ni=v(()=>ot.nextButton),ho=v(()=>ot.playPrevChapterButton),Eo=v(()=>ot.seekToInteractiveButton),Po=v(()=>ot.interactiveGraphButton),Go=v(()=>ot.liveButton),Yo=v(()=>ot.time),tt=v(()=>ot.episodes),Mt=v(()=>ot.vkLogo),vi=v(()=>ot.volume),zi=v(()=>ot.subtitles),Zi=v(()=>ot.settings),bn=v(()=>ot.context),$n=v(()=>ot.fullscreen),qi=v(()=>ot.chromecast),Ei=v(()=>({prevButton:Y()?Y().right-Y().left:0,replayButton:F()?F().right-F().left:0,playButton:Q()?Q().right-Q().left:0,nextButton:oe()?oe().right-oe().left:0,playPrevChapterButton:Z()?Z().right-Z().left:0,seekToInteractiveButton:re()?re().right-re().left:0,interactiveGraphButton:de()?de().right-de().left:0,liveButton:Ae()?Ae().right-Ae().left:0,time:Me()?Me().right-Me().left:0,episodes:ge()?ge().right-ge().left:0,vkLogo:se()?se().right-se().left:0,volume:Ee()?Ee().right-Ee().left:0,subtitles:ne()?ne().right-ne().left:0,settings:V()?V().right-V().left:0,context:xe()?xe().right-xe().left:0,fullscreen:_e()?_e().right-_e().left:0,chromecast:ze()?ze().right-ze().left:0,additionalButtons:H().length?H().reduce(dt=>[...dt,40],[]):[]})),jo=X(0);Fe(()=>{(!r(jo)||r(jo)<r(Ei).time)&&St(()=>D(jo,pe(r(Ei).time)))});let Zn=X(!1);Fe(()=>{let dt=0;r(Oo)&&(Qi(p(),"xl")?dt=r(Ei).time:dt=60);let xt=r(Ei).prevButton+r(Ei).playButton+r(Ei).nextButton+r(Ei).seekToInteractiveButton+r(Ei).interactiveGraphButton+r(Ei).liveButton+r(jo)+dt;D(Zn,pe(r(go)&&r(_n)>=xt))});let Ar=v(()=>r(Zn)&&Qi(p(),"m")),Zo=(0,w1.debounceFn)(fl,260);Fe(()=>{T(),le(),Zo(ui(),ot,Gt,e.showControls)});let fr=ce();Fe(()=>{he(),ee()&&St(()=>nl(ee(),he(),ji))});let Xn;Fe(()=>{De(),St(()=>uu(si,De(),Xn))});function mr(){$s({isAudioDisabled:bt,isAudioAvailable:Ze(),isAds:mt(),audioIsNotExistHintCallback:rt,audioDisabledHintCallback:et})&&Re()}let Jn=pi?Tt:je,Mr=v(()=>we()!==null),er=v(()=>r(Mr)?we():r(mo)),Xo=v(()=>r(er)?pt("tooltip_pause"):pt("tooltip_play")),Lr=pt("tooltip_episodes"),Jo=v(()=>{var dt,xt,Xi,en;return r(Kn)?{id:"prevButton",type:"desktop-control-panel-left",weight:os.prevButton,buttonComponent:fa,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Bi.bind(null,!0)},tooltipEnabled:!((xt=(dt=O.callbacks)==null?void 0:dt.uiInfo)!=null&&xt.onPrevButtonMouseEnter)&&!((en=(Xi=O.callbacks)==null?void 0:Xi.uiInfo)!=null&&en.onPrevButtonMouseLeave),mouseEnter:()=>{var Ji,di,Pi;(Pi=(di=(Ji=O.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:di.onPrevButtonMouseEnter)==null||Pi.call(di,pa(ui(),Gt,"prevButton",e.showControls))},mouseLeave:()=>{var Ji,di,Pi;(Pi=(di=(Ji=O.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:di.onPrevButtonMouseLeave)==null||Pi.call(di,pa(ui(),Gt,"prevButton",e.showControls))},tooltipText:pt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),vr=v(()=>r(No)?{id:"replayButton",type:"desktop-control-panel-left",weight:os.replayButton,buttonComponent:ml,buttonComponentProps:{disabled:r(fn),click:Jn},tooltipText:pt("tooltip_restart"),disabled:r(fn)}:void 0),zr=v(()=>r(Wo)?{id:"playButton",type:"desktop-control-panel-left",weight:os.playButton,buttonComponent:vl,buttonComponentProps:{disabled:r(An),isPlaying:r(mo),click:je},tooltipText:r(Xo),disabled:r(An)}:void 0),lt=v(()=>{var dt,xt,Xi,en;return r(Do)?{id:"nextButton",type:"desktop-control-panel-left",weight:os.nextButton,buttonComponent:fa,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:Uo.bind(null,!0)},tooltipEnabled:!((xt=(dt=O.callbacks)==null?void 0:dt.uiInfo)!=null&&xt.onNextButtonMouseEnter)&&!((en=(Xi=O.callbacks)==null?void 0:Xi.uiInfo)!=null&&en.onNextButtonMouseLeave),mouseEnter:()=>{var Ji,di,Pi;(Pi=(di=(Ji=O.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:di.onNextButtonMouseEnter)==null||Pi.call(di,pa(ui(),Gt,"nextButton",e.showControls))},mouseLeave:()=>{var Ji,di,Pi;(Pi=(di=(Ji=O.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:di.onNextButtonMouseLeave)==null||Pi.call(di,pa(ui(),Gt,"nextButton",e.showControls))},tooltipText:pt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Qt=v(()=>pi&&r(cr)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:os.playPrevChapterButton,buttonComponent:Ed,buttonComponentProps:{disabled:r(qn),click:e.playPrevChapter},tooltipText:pt("tooltip_interactive_go_back"),disabledTooltipContent:pt(fo),disabled:r(qn)}:void 0),ii=v(()=>pi&&r(Ui)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:os.seekToInteractiveButton,buttonComponent:Ad,buttonComponentProps:{disabled:r(dr),click:e.seekToInteractive},tooltipText:pt("tooltip_interactive_seek"),disabled:r(dr),disabledTooltipContent:pt(Ve())}:void 0),_o=v(()=>pi&&r(ko)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:os.interactiveGraphButton,buttonComponent:Md,buttonComponentProps:{disabled:r(Ir),click:Ro.toggle,graphIsOpened:P()},tooltipText:r(Vn)}:void 0),yn=v(()=>r(mn)?{id:"liveButton",type:"desktop-control-panel-left",weight:os.liveButton,buttonComponent:Ld,buttonComponentProps:{isLiveActive:r(Gn),ariaLabel:r(hn)},tooltipText:r(hn),disabled:r(Gn)&&s()===va.PlaybackState.PLAYING}:void 0),tr=v(()=>[r(Jo),r(vr),r(zr),r(lt),r(Qt),r(ii),r(_o),r(yn)].filter(dt=>!!dt).sort(oa)),xn=v(()=>r(gn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:rs.vkLogo,buttonComponent:yd,buttonComponentProps:{targetUrl:Wt(),logoClickable:e.logoClickable,click:Qe},tooltipText:r(kr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Rn=v(()=>r(Ko)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:rs.autoplayNext,buttonComponent:Pd,tooltipText:r(Pr)}:void 0),xi=v(()=>({id:"volume",type:"desktop-control-panel-right",weight:rs.volume,buttonComponent:kf,buttonComponentProps:{click:mr,isAds:mt()}})),fe=v(()=>r(vo)?{id:"subtitles",type:"desktop-control-panel-right",weight:rs.subtitles,buttonComponent:Sf,buttonComponentProps:{isSubtitlesEnabled:r(qo),click:Le},tooltipText:r(pr)}:void 0),wt=v(()=>r(vn)?{id:"settings",type:"desktop-control-panel-right",weight:rs.settings,buttonComponent:cl,buttonComponentProps:{ref$:fr},tooltipText:he()?void 0:pt("tooltip_settings_off")}:void 0),li=v(()=>te.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:rs.context,buttonComponent:Kf,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:pt("aria_label_context_menu")},className:r(Si)?"":"out-of-view",tooltipText:r(Yn)}:void 0),fi=v(()=>r(Qo)?{id:"fullscreen",type:"desktop-control-panel-right",weight:rs.fullscreen,buttonComponent:$d,buttonComponentProps:{isFullscreen:R(),click:e.toggleFullscreen},tooltipText:r(jn)}:void 0),wi=v(()=>r(Qn)?{id:"chromecast",type:"desktop-control-panel-right",weight:rs.chromecast,buttonComponent:xd,buttonComponentProps:{state:y(),click:ft},tooltipText:r(Er)}:void 0),He=v(()=>[r(xn),r(Rn),r(xi),r(fe),r(wt),r(li),r(fi),r(wi),...H()].filter(dt=>!!dt).sort(oa));var Rt=oy(),oi=ue(Rt);let io;var bo=h(oi);let qr=v(()=>!r(Ln));ca(bo,{get isHidden(){return r(qr)},get isAds(){return mt()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return I()},get ref(){return Gt.timeline},set ref(dt){Gt.timeline=dt}});var Ni=A(bo,2),ir=h(Ni),Is=h(ir);Ci(Is,17,()=>r(tr),dt=>dt.id,(dt,xt)=>{pu(dt,{get buttonComponent(){return r(xt).buttonComponent},get buttonComponentProps(){return r(xt).buttonComponentProps},get tooltipText(){return r(xt).tooltipText},get disabledTooltipContent(){return r(xt).disabledTooltipContent},get disabled(){return r(xt).disabled},get className(){return r(xt).className},get tooltipEnabled(){return r(xt).tooltipEnabled},get mouseEnter(){return r(xt).mouseEnter},get mouseLeave(){return r(xt).mouseLeave},get ref(){return Gt[r(xt).id]},set ref(Xi){Gt[r(xt).id]=Xi}})});var or=A(Is,2);{var Sa=dt=>{let xt=v(()=>mt()?Ie():Ue()),Xi=v(()=>mt()?ct():ut());hd(dt,{isMobile:!1,get showDuration(){return r(Ar)},get position(){return r(xt)},get duration(){return r(Xi)},get ref(){return Gt.time},set ref(en){Gt.time=en}})};B(or,dt=>{r(go)&&dt(Sa)})}var Sl=A(or,2);let Ca=v(()=>!r(Oo));Mo(Sl,{className:"w-max",get disabled(){return r(Ca)},tooltipContent:Lr,get ref(){return Gt.episodes},set ref(dt){Gt.episodes=dt},children:(dt,xt)=>{var Xi=Oe(),en=ue(Xi);{var Ji=di=>{Sd(di,{get position(){return Ue()},get duration(){return ut()},timeCodes:$t})};B(en,di=>{r(Oo)&&di(Ji)})}_(dt,Xi)},$$slots:{default:!0}}),g(ir);var Ta=A(ir,2);Ci(Ta,21,()=>r(He),dt=>dt.id,(dt,xt)=>{var Xi=Oe(),en=ue(Xi);{var Ji=Pi=>{pu(Pi,{get buttonComponent(){return r(xt).buttonComponent},get buttonComponentProps(){return r(xt).buttonComponentProps},get tooltipText(){return r(xt).tooltipText},get disabledTooltipContent(){return r(xt).disabledTooltipContent},get disabled(){return r(xt).disabled},get className(){return r(xt).className},get ref(){return Gt[r(xt).id]},set ref(Es){Gt[r(xt).id]=Es}})},di=Pi=>{let Es=v(()=>!!r(xt).disabled);em(Pi,{get id(){return r(xt).id},get testId(){return r(xt).testId},get icon(){return r(xt).icon},get ariaLabel(){return r(xt).ariaLabel},get tooltipText(){return r(xt).tooltipText},get disabledTooltipContent(){return r(xt).disabledTooltipContent},get disabled(){return r(Es)},get onClick(){return r(xt).onClick},get ref(){return Gt[r(xt).id]},set ref(Ea){Gt[r(xt).id]=Ea}})};B(en,Pi=>{x1(r(xt))?Pi(Ji):Pi(di,!1)})}_(dt,Xi)}),g(Ta),g(Ni),gt(Ni,dt=>Ct(dt),()=>Ct()),g(oi),gt(oi,dt=>nt(dt),()=>nt());var Ia=A(oi,2);{var Cl=dt=>{Id(dt,{get ref(){return Gt.interactiveTimeIndicator},set ref(xt){Gt.interactiveTimeIndicator=xt}})};B(Ia,dt=>{zn&&dt(Cl)})}E(dt=>io=J(oi,1,"wrapper-bottom svelte-f6e8ix",null,io,dt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Dr(ir,"clientWidth",dt=>D(_n,dt)),_(t,Rt),z(),o()}var gl=require("@vkontakte/videoplayer-core/es2018");var im=require("@vkontakte/videoplayer-shared/es2018");var ry=L('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),sy=L('<img class="icon svelte-167ouw6" aria-hidden="true">'),ay={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 om(t,e){K(t,ay);let i=f(e,"disabled",3,!1),o=f(e,"onClick",3,im.noop),n=v(()=>o()===im.noop),a=v(()=>r(n)||i()),s=X(!1),d=()=>{D(s,!0)},l=v(()=>r(n)?"btn-full-opacity":"");Bt(t,{get className(){return r(l)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(a)},get testId(){return e.testId},children:(p,m)=>{var y=Oe(),u=ue(y);{var $=b=>{var C=ry();_(b,C)},w=b=>{var C=sy();E(()=>Be(C,"src",e.iconUrl)),kt("error",C,d),zs(C),_(b,C)};B(u,b=>{r(s)?b($):b(w,!1)})}_(p,y)},$$slots:{default:!0}})}var ly=ye('<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 nm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=ly();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i})),_(t,o)}var S1=require("@vkontakte/videoplayer-shared/es2018");var dy=L('<span class="text svelte-6gmlbk"> </span>'),cy=L('<div aria-hidden="true"><!> <!></div>'),uy={hash:"svelte-6gmlbk",code:".container.svelte-6gmlbk {display:flex;align-items:center;}.expanded.svelte-6gmlbk {background-color:rgba(0, 0, 0, 0.56);border-radius:6px;}.text.svelte-6gmlbk {font-size:15px;margin-left:8px;}"};function fu(t,e){U(e,!0),K(t,uy);let i=f(e,"expanded",3,!1),o=f(e,"click",3,S1.noop),n=f(e,"ref",15,void 0),s=Ce().ui.t,d=s("aria_label_volume"),l=v(()=>i()?xs:nm),p=v(()=>i()?"btn-mobile-unmuted":"btn-mobile-muted");Bt(t,{get testId(){return r(p)},get click(){return o()},ariaLabel:d,role:"switch",get ref(){return n()},set ref(m){n(m)},children:(m,y)=>{var u=cy();let $=v(()=>r(l)),w;var b=h(u);Ti(b,()=>r($),(I,M)=>{M(I,{})});var C=A(b,2);{var T=I=>{var M=dy(),P=h(M,!0);g(M),E(k=>me(P,k),[()=>s("mobile_unmute")]),_(I,M)};B(C,I=>{i()&&I(T)})}g(u),E(I=>w=J(u,1,"container svelte-6gmlbk",null,w,I),[()=>({expanded:i()})]),_(m,u)},$$slots:{default:!0}}),z()}var py=ye('<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 rm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=py();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(3),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i})),_(t,o)}var fy={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
|
|
256
|
+
svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function sm(t,e){K(t,fy);let i=f(e,"isActive",3,!1),o=v(()=>i()?"color: #2688EB;":"color: #fff;"),n=v(()=>i()?"pip-icon--active":"pip-icon");rm(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}var C1=require("@vkontakte/videoplayer-shared/es2018");function am(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"isPictureInPictureActive",3,!1),n=f(e,"click",3,C1.noop),a=q("menu_pip");Bt(t,{testId:"btn-pip",ariaLabel:a,get click(){return n()},get ref(){return i()},set ref(s){i(s)},children:(s,d)=>{sm(s,{get isActive(){return o()}})},$$slots:{default:!0}}),z()}var T1=require("@vkontakte/videoplayer-shared/es2018");var my=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},vy=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},gy=L("<div><!></div>"),hy=L("<div><!></div>"),_y=L("<div><!></div>"),by=L("<!> <!> <!>",1),$y=L("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),yy=L("<div><!></div>"),xy=L('<div class="wrapper-middle svelte-1afsgkw"><!></div>'),wy=L("<!> <!> <div><!></div>",1),Sy=L('<div aria-hidden="true">\xB7</div> <!>',1),Cy=L("<!> <!> <div><div><div><!> <!> <!> <!> <!> <!></div> <!></div></div> <!>",1),Ty={hash:"svelte-1afsgkw",code:`.wrapper-bottom.svelte-1afsgkw {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px;}.wrapper-bottom.svelte-1afsgkw > :where(.svelte-1afsgkw) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-1afsgkw {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-1afsgkw {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-1afsgkw {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-1afsgkw {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-1afsgkw,
|
|
257
257
|
.wrapper-middle-left-second.svelte-1afsgkw,
|
|
258
258
|
.wrapper-middle-right.svelte-1afsgkw {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-1afsgkw {left:12px;}.wrapper-middle-left-second.svelte-1afsgkw {left:64px;}.wrapper-middle-right.svelte-1afsgkw {right:12px;}.controls.svelte-1afsgkw {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;}.controls.svelte-1afsgkw > *:not(:first-child) {margin-left:8px;}.hidden.svelte-1afsgkw {visibility:hidden;opacity:0;}.controls-hidden.svelte-1afsgkw {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1afsgkw {transition:none;}.overlay-mobile.svelte-1afsgkw {position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);pointer-events:none;transition:opacity var(--controls-transition-duration);}
|
|
259
259
|
|
|
@@ -261,7 +261,7 @@ Try switching the\xA0quality to\xA0Auto.`},Mh=I_;var ts=new Map;ts.set(Ya.Interf
|
|
|
261
261
|
}
|
|
262
262
|
|
|
263
263
|
@media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-1afsgkw {top:12px;left:44px;}.wrapper-top-right.fullscreen.svelte-1afsgkw {top:12px;right:44px;}.wrapper-middle-left.fullscreen.svelte-1afsgkw {left:44px;}.wrapper-middle-left-second.fullscreen.svelte-1afsgkw {left:96px;}.wrapper-middle-right.fullscreen.svelte-1afsgkw {right:44px;}.controls-wrapper.fullscreen.svelte-1afsgkw {position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px);}
|
|
264
|
-
}`};function rm(t,e){var Si,jn;U(e,!0),q(t,xy);let[i,o]=Be(),n=()=>S(vo,"$seekToInteractiveDisabledTooltip$",i),a=()=>S(ri,"$disabledControls$",i),s=()=>S(Et,"$playbackState$",i),d=()=>S(Do,"$adPlaybackState",i),l=()=>S(Kt,"$isEnded$",i),p=()=>S(ht,"$playerSize",i),m=()=>S(Oe,"$scrubbingInProgress",i),$=()=>S(ni,"$chromecastState$",i),u=()=>S(tt,"$isPictureInPictureActive",i),_=()=>S(lt,"$pictureInPictureType$",i),w=()=>S(ze,"$mobileNotReportControlHidden$",i),y=()=>S(gt,"$playerPhase",i),C=()=>S(Yi,"$currentGridType$",i),T=()=>S(ve,"$isLive$",i),E=()=>S(dt,"$settingsMenuVisible",i),P=()=>S(se,"$isRewindableLive$",i),A=()=>S(Te,"$isActiveLive$",i),I=()=>S(Ui,"$isInteractiveTime$",i),V=()=>S(Qt,"$isAudioAvailable$",i),H=()=>S(Mn,"$settingButtonRef$",i),j=()=>S(Hi,"$startedByKeyboard$",i),O=()=>S(nt,"$isFullscreen",i),X=()=>S(Xe,"$mobileUnmuteButtonVisible",i),ne=()=>S(G,"$muted$",i),Y=()=>S(Ye,"$mobileUnmuteButtonExpanded",i),fe=()=>S(wi,"$additionalButtons$",i),le=()=>S(Zt,"$crashed$",i),Me=()=>S(Ct,"$graphIsOpened$",i),Ae=()=>S(mo,"$adPosition",i),me=()=>S(Fi,"$adDuration",i),ae=()=>S(mt,"$position$",i),Pe=()=>S(et,"$duration$",i),re=f(e,"playerControlsWrapperRef",15,void 0),D=f(e,"playerControlsRef",15,void 0),Ve=f(e,"isAds",3,!1),te=f(e,"logoTargetUrl",3,""),Ge=f(e,"isOneVideoPlaylist",3,!1),ie=f(e,"customFullscreenSupported",3,!0),Q=Se(),W=fo(),Le=Ut(),Ne=Q.actions.internal.toggleMuted,Je=Q.actions.internal.togglePlay,ye=Q.actions.internal.pause,xe=Q.actions.internal.prevVideoClick,De=Q.actions.internal.nextVideoClick,Ze=(Si=Q.callbacks)==null?void 0:Si.onAudioDoesNotExistHint,ot=(jn=Q.callbacks)==null?void 0:jn.onAudioDisabledHint,gt=Q.playerPhase,et=Q.state.duration$,mt=Q.state.positionWithScrubbing$,Et=Q.state.playbackState$,Qt=Q.state.isAudioAvailable$,zt=Q.state.isAudioDisabled,Kt=Q.state.isEnded$,ve=Q.state.isLive$,G=Q.state.muted$,Te=Q.state.isActiveLive$,se=Q.state.isRewindableLive$,Oe=Q.ui.scrubbingInProgress,ze=Q.ui.mobileNotReportControlHidden$,{isActive$:tt,type$:lt}=W.pictureInPicture$,Ye=Q.ui.mobileUnmuteButtonExpanded,Xe=Q.ui.mobileUnmuteButtonVisible,dt=Q.ui.settingsMenu.visible$,Re=Q.ui.settingsMenu.openedByBtnKeyboard$,$t=Q.ui.controls,qe=Q.actions.internal.getVideoEpisodes(),Pt=Q.webApi.pictureInPictureApi,ni=Q.state.chromecastState$,Zt=Q.state.crashed$,ri=$t.disabledControls$,Hi=Q.ui.startedByKeyboard$,Yi=Q.ui.currentGridType$,Fi=Q.ads.duration,mo=Q.ads.position,Do=Q.ads.playbackState,nt=Q.ui.isFullscreen,ht=Q.ui.playerSize,wi=Q.ui.additionalButtonsDeprecated$,Z=Q.actions.internal.getVideoElement,Xt=Q.actions.internal.replayInteractive,si=Q.state.isInteractive,Ui=Q.state.isInteractiveTime$,ti=Q.state.showInteractiveGraph,mi=Q.state.showSeekToInteractive,ai=Q.state.showPlayPrevChapter,ut=Q.state.showInteractiveTimeIndicator,vo=W.seekToInteractiveDisabledTooltip$,Ct=W.graphIsOpened$,qt=v(()=>F(Q.state.playPrevChapterDisabledTooltip)),Jt=v(()=>F(n())),Xi=v(()=>a().has("EPISODE_BUTTON")),zn=v(()=>a().has("GRAPH_BUTTON")),zi=v(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),Co=v(()=>a().has("PLAY_BUTTON")),li=v(()=>a().has("REPLAY_BUTTON")),Tt=v(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),go=v(()=>s()===fl.PlaybackState.PLAYING),Bo=v(()=>d()==="paused"),di=v(()=>l()&&!Ve()&&!si),To=v(()=>!l()||Ve()),Ji=v(()=>e.showNextPrevButtons&&!Ve()&&e.prevButtonActive),Io=v(()=>e.showNextPrevButtons&&!Ve()&&e.nextButtonActive),Oo=v(()=>p().width>300),Tn=v(()=>p().width>400),Ni=v(m),In=v(()=>$()!==fl.ChromecastState.NOT_AVAILABLE&&!(u()&&_()===1)&&!w()&&!si),eo=v(()=>y()==="LiveWaitingStart"),ko=v(()=>!!Pt&&$()!==fl.ChromecastState.CONNECTED&&!w()&&(_()===1&&r(eo)||!r(eo))&&!r(Ni)&&!si),wr=v(()=>!r(Ni)&&Qi(C(),"s")),sr=v(()=>!e.logoHidden&&p().width>350),kn=v(()=>Le.features.fullscreen&&!(u()&&_()===1)&&(si?ie():!0)&&!r(Ni)),qn=v(()=>(!T()||Ve())&&p().width>260&&!r(Ni)&&!(Le.features.interactiveHideTime&&si)),Wn=v(()=>E()||e.showControls),ho=v(()=>!Ve()&&!T()&&!!(qe!=null&&qe.length)&&r(Oo)&&!r(Xi)&&!r(Ni)),fn=v(()=>!P()||!!A()),En=v(()=>ti&&Qi(C(),"m")),rt=pe({}),Pn=(0,w1.debounceFn)(cl,260);Ue(()=>{p(),I(),Pn(Z(),$t,rt,e.showControls)});let Wo=()=>Q.actions.internal.toggleChromecast();function Ko(){$s({isAudioDisabled:zt,audioDisabledHintCallback:ot,isAudioAvailable:V(),audioIsNotExistHintCallback:Ze})&&Ne()}async function Sr(){Pt!=null&&Pt.isActive()?await(Pt==null?void 0:Pt.remove()):await(Pt==null?void 0:Pt.request())}function Qo(){!zt&&V()&&Xe.set(!1),Ko()}let An=J(""),Kn=(pt,Ot)=>{if(!pt){B(An,pe(F("tooltip_live")));return}Ot&&Ot===fl.PlaybackState.PAUSED&&B(An,pe(F("tooltip_play")))};Ue(()=>{Kn(r(fn),s())});let Mn=ce();Ue(()=>{H()&&tl(H(),E(),Re)}),Ue(()=>{cu(Hi,j(),rt.playButton)});var Go=yy(),qi=ue(Go);{var to=pt=>{var Ot=gy(),Pi=ue(Ot);let Mo;var st=M(Pi,2);let Rt;var ui=h(st);{var Di=ct=>{let Ht=v(()=>V()&&!zt&&Y());pu(ct,{get muted(){return ne()},get expanded(){return r(Ht)},click:Qo,get ref(){return rt.volume},set ref(Mi){rt.volume=Mi}})};R(ui,ct=>{(!V()||X())&&ct(Di)})}g(st);var _o=M(st,2);let yi;var Ai=h(_o);Ti(Ai,1,fe,({iconUrl:ct,ariaLabel:Ht,testId:Mi,onClick:$e,tooltip:It})=>ct,(ct,Ht)=>{let Mi=()=>r(Ht).iconUrl,$e=()=>r(Ht).ariaLabel,It=()=>r(Ht).testId,vi=()=>r(Ht).onClick,Ci=()=>r(Ht).tooltip,no=v(()=>{var pi;return(pi=$e())!=null?pi:Ci()});em(ct,{get iconUrl(){return Mi()},get ariaLabel(){return r(no)},get testId(){return It()},get onClick(){return vi()}})});var gi=M(Ai,2);{var Lo=ct=>{Ad(ct,{get ref(){return rt.autoplayNextToggle},set ref(Ht){rt.autoplayNextToggle=Ht}})};R(gi,ct=>{e.showAutoplayNext&&!Ge()&&ct(Lo)})}var io=M(gi,2);{var oo=ct=>{wd(ct,{isMobile:!0,click:Wo,get state(){return $()},get ref(){return rt.chromecast},set ref(Ht){rt.chromecast=Ht}})};R(io,ct=>{r(In)&&ct(oo)})}var _n=M(io,2);{var Yn=ct=>{nm(ct,{click:Sr,get isPictureInPictureActive(){return u()},get ref(){return rt.pip},set ref(Ht){rt.pip=Ht}})};R(_n,ct=>{r(ko)&&ct(Yn)})}var dr=M(_n,2);{var Zn=ct=>{al(ct,{ref$:Mn})};R(dr,ct=>{le()&&ct(Zn)})}var Er=M(dr,2);{var cr=ct=>{xd(ct,{click:ye,get targetUrl(){return te()},get logoClickable(){return e.logoClickable},get ref(){return rt.vkLogo},set ref(Ht){rt.vkLogo=Ht}})};R(Er,ct=>{r(sr)&&ct(cr)})}g(_o);var bn=M(_o,2);let Vn;var Zo=h(bn);{var Xo=ct=>{let Ht=v(()=>xe.bind(null,!0));ma(ct,{get click(){return r(Ht)},type:"prev",isMobile:!0,get ref(){return rt.prevButton},set ref(Mi){rt.prevButton=Mi}})};R(Zo,ct=>{r(Ji)&&ct(Xo)})}var Xn=M(Zo,2);{var Pr=ct=>{pl(ct,{get disabled(){return r(Co)},click:Je,isMobile:!0,get isPlaying(){return r(go)},get ref(){return rt.playButton},set ref(Ht){rt.playButton=Ht}})};R(Xn,ct=>{r(To)&&ct(Pr)})}var Ar=M(Xn,2);{var ur=ct=>{ul(ct,{get disabled(){return r(li)},click:Je,isMobile:!0,get ref(){return rt.replayButton},set ref(Ht){rt.replayButton=Ht}})};R(Ar,ct=>{r(di)&&ct(ur)})}var bo=M(Ar,2);{var Rn=ct=>{let Ht=v(()=>De.bind(null,!0));ma(ct,{get click(){return r(Ht)},type:"next",isMobile:!0,get ref(){return rt.nextButton},set ref(Mi){rt.nextButton=Mi}})};R(bo,ct=>{r(Io)&&ct(Rn)})}g(bn);var Jn=M(bn,2);{var Mr=ct=>{var Ht=vy(),Mi=ue(Ht);{var $e=pi=>{var Ie=py();let At;Ie.__click=[cy,Tt,e,qt];var jt=h(Ie);let xi=v(()=>!e.showControls);Pd(jt,{get hidden(){return r(xi)},get disabled(){return r(Tt)},get click(){return e.playPrevChapter},get ref(){return rt.playPrevChapterButton},set ref(ei){rt.playPrevChapterButton=ei}}),g(Ie),k(ei=>At=ee(Ie,1,"wrapper-middle-left svelte-1afsgkw",null,At,ei),[()=>({fullscreen:O(),hidden:!e.showControls})]),b(pi,Ie)};R(Mi,pi=>{ai&&pi($e)})}var It=M(Mi,2);{var vi=pi=>{var Ie=fy();let At;var jt=h(Ie);let xi=v(()=>!e.showControls&&!Me());Ld(jt,{get hidden(){return r(xi)},get disabled(){return r(zn)},get click(){return Ct.toggle},get graphIsOpened(){return Me()},get ref(){return rt.interactiveGraphButton},set ref(ei){rt.interactiveGraphButton=ei}}),g(Ie),k(ei=>At=ee(Ie,1,jl(ai?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw",At,ei),[()=>({fullscreen:O(),hidden:!e.showControls&&!Me()})]),b(pi,Ie)};R(It,pi=>{r(En)&&pi(vi)})}var Ci=M(It,2);{var no=pi=>{var Ie=my();let At;Ie.__click=[uy,zi,e,Jt];var jt=h(Ie);let xi=v(()=>!e.showControls);Md(jt,{get hidden(){return r(xi)},get disabled(){return r(zi)},get click(){return e.seekToInteractive},get ref(){return rt.seekToInteractiveButton},set ref(ei){rt.seekToInteractiveButton=ei}}),g(Ie),k(ei=>At=ee(Ie,1,"wrapper-middle-right svelte-1afsgkw",null,At,ei),[()=>({fullscreen:O(),hidden:!e.showControls})]),b(pi,Ie)};R(Ci,pi=>{mi&&pi(no)})}b(ct,Ht)};R(Jn,ct=>{si&&!m()&&ct(Mr)})}k((ct,Ht,Mi,$e)=>{Mo=ee(Pi,1,"overlay-mobile svelte-1afsgkw",null,Mo,ct),Rt=ee(st,1,"wrapper-top-left svelte-1afsgkw",null,Rt,Ht),yi=ee(_o,1,"wrapper-top-right svelte-1afsgkw",null,yi,Mi),Vn=ee(bn,1,"wrapper-middle svelte-1afsgkw",null,Vn,$e)},[()=>({hidden:!r(Wn)}),()=>({hidden:!e.showControls,fullscreen:O()}),()=>({hidden:!e.showControls&&!w(),fullscreen:O()}),()=>({hidden:!e.showControls||m()||e.endScreenShown&&e.showNextPrevButtons})]),b(pt,Ot)};R(qi,pt=>{Ve()||pt(to)})}var Eo=M(qi,2);{var mn=pt=>{var Ot=by(),Pi=ue(Ot);{var Mo=yi=>{var Ai=hy();let gi;var Lo=h(Ai);pu(Lo,{get muted(){return ne()},expanded:!1,click:Qo,get ref(){return rt.volume},set ref(io){rt.volume=io}}),g(Ai),k(io=>gi=ee(Ai,1,"wrapper-top-right svelte-1afsgkw",null,gi,io),[()=>({fullscreen:O()})]),b(yi,Ai)};R(Pi,yi=>{X()&&yi(Mo)})}var st=M(Pi,2);{var Rt=yi=>{var Ai=_y(),gi=h(Ai);let Lo=v(()=>!r(Bo));pl(gi,{get disabled(){return r(Co)},click:Je,isMobile:!0,get isPlaying(){return r(Lo)},get ref(){return rt.playButton},set ref(io){rt.playButton=io}}),g(Ai),b(yi,Ai)};R(st,yi=>{r(Bo)&&yi(Rt)})}var ui=M(st,2);let Di;var _o=h(ui);Sd(_o,{get position(){return Ae()},get duration(){return me()}}),g(ui),k(yi=>Di=ee(ui,1,"wrapper-bottom ads-timeline-mobile svelte-1afsgkw",null,Di,yi),[()=>({fullscreen:O()})]),b(pt,Ot)};R(Eo,pt=>{Ve()&&d()!=="inactive"&&pt(mn)})}var jo=M(Eo,2);let Yo;var Ei=h(jo);let Ho;var Po=h(Ei);ee(Po,1,"controls svelte-1afsgkw",null,{},{mobile:!0});var ar=h(Po);{var vn=pt=>{Ro(pt,{get disabled(){return r(li)},get ref(){return rt.replayButton},set ref(Ot){rt.replayButton=Ot},children:(Ot,Pi)=>{ul(Ot,{get disabled(){return r(li)},click:Xt})},$$slots:{default:!0}})};R(ar,pt=>{si&&pt(vn)})}var gn=M(ar,2);{var Cr=pt=>{Ro(pt,{get ref(){return rt.liveButton},set ref(Ot){rt.liveButton=Ot},children:(Ot,Pi)=>{Vd(Ot,{get isLiveActive(){return r(fn)},isMobile:!0,get ariaLabel(){return r(An)}})},$$slots:{default:!0}})};R(gn,pt=>{!Ve()&&T()&&pt(Cr)})}var Fo=M(gn,2);{var Tr=pt=>{let Ot=v(()=>Ve()?Ae():ae()),Pi=v(()=>Ve()?me():Pe());_d(pt,{get showDuration(){return r(Tn)},get position(){return r(Ot)},get duration(){return r(Pi)},isMobile:!0,get ref(){return rt.time},set ref(Mo){rt.time=Mo}})};R(Fo,pt=>{r(qn)&&pt(Tr)})}var Ln=M(Fo,2);let Qn=v(()=>!r(ho));Ro(Ln,{className:"w-max",get disabled(){return r(Qn)},get ref(){return rt.episodes},set ref(pt){rt.episodes=pt},children:(pt,Ot)=>{var Pi=Fe(),Mo=ue(Pi);{var st=Rt=>{var ui=$y(),Di=M(ue(ui),2);Cd(Di,{get position(){return ae()},get duration(){return Pe()},timeCodes:qe}),b(Rt,ui)};R(Mo,Rt=>{r(ho)&&Rt(st)})}b(pt,Pi)},$$slots:{default:!0}});var lr=M(Ln,2);{var Ir=pt=>{Ro(pt,{get ref(){return rt.settings},set ref(Ot){rt.settings=Ot},children:(Ot,Pi)=>{al(Ot,{ref$:Mn})},$$slots:{default:!0}})};R(lr,pt=>{r(wr)&&pt(Ir)})}var Gn=M(lr,2);{var hn=pt=>{Ro(pt,{get ref(){return rt.fullscreen},set ref(Ot){rt.fullscreen=Ot},children:(Ot,Pi)=>{yd(Ot,{get click(){return e.toggleFullscreen},get isFullscreen(){return O()}})},$$slots:{default:!0}})};R(Gn,pt=>{r(kn)&&pt(hn)})}g(Po),ft(Po,pt=>D(pt),()=>D());var kr=M(Po,2);ua(kr,{get isAds(){return Ve()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return P()},get ref(){return rt.timeline},set ref(pt){rt.timeline=pt}}),g(Ei),g(jo),ft(jo,pt=>re(pt),()=>re());var ci=M(jo,2);{var Ao=pt=>{kd(pt,{get ref(){return rt.interactiveTimeIndicator},set ref(Ot){rt.interactiveTimeIndicator=Ot}})};R(ci,pt=>{ut&&pt(Ao)})}k((pt,Ot)=>{Yo=ee(jo,1,"wrapper-bottom svelte-1afsgkw",null,Yo,pt),Ho=ee(Ei,1,"controls-wrapper svelte-1afsgkw",null,Ho,Ot)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:O()})]),b(t,Go),z(),o()}at(["click"]);function Nd(t,e){U(e,!0);let[i,o]=Be(),n=()=>S(T,"$isMobile",i),a=f(e,"bottomNoSmooth",3,!1),s=f(e,"playerControlsWrapperRef",15,void 0),d=f(e,"playerControlsRef",15,void 0),l=f(e,"isAds",3,!1),p=f(e,"logoTargetUrl",3,""),m=f(e,"showAutoplayNext",3,!1),$=f(e,"isOneVideoPlaylist",3,!1),u=f(e,"customFullscreenSupported",3,!0),_=f(e,"endScreenShown",3,!1),w=f(e,"onDisabledPlayPrevChapterClick",3,sm.noop),y=f(e,"onDisabledSeekToInteractiveClick",3,sm.noop),T=Se().ui.isMobile,E=J(!1);Ft(()=>{let V=setTimeout(()=>B(E,!0),0);return()=>clearTimeout(V)});var P=Fe(),A=ue(P);{var I=V=>{var H=Fe(),j=ue(H);{var O=ne=>{rm(ne,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get showAutoplayNext(){return m()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return $()},get customFullscreenSupported(){return u()},get endScreenShown(){return _()},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 s()},set playerControlsWrapperRef(Y){s(Y)},get playerControlsRef(){return d()},set playerControlsRef(Y){d(Y)}})},X=ne=>{Xf(ne,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get isOneVideoPlaylist(){return $()},get showAutoplayNext(){return m()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return u()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(Y){s(Y)},get playerControlsRef(){return d()},set playerControlsRef(Y){d(Y)}})};R(j,ne=>{n()?ne(O):ne(X,!1)})}b(V,H)};R(A,V=>{r(E)&&V(I)})}b(t,P),z(),o()}var wy=be('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"></path></g><defs><filter id="a" width="43.996" height="49.5" x="2.5" y="0" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_100684"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_100684" result="shape"></feBlend></filter></defs></svg>');function am(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=wy();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(2),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img",...i})),b(t,o)}function lm(t,e){let i=f(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);am(t,{get style(){return r(o)}})}var Sy=be('<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 dm(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Sy();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(2),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img",...i})),b(t,o)}var Cy=be('<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 cm(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Cy();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(2),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img",...i})),b(t,o)}function fu(t,e){let i=f(e,"isOff",3,!1);var o=Fe(),n=ue(o);{var a=d=>{cm(d,{})},s=d=>{dm(d,{})};R(n,d=>{i()?d(a):d(s,!1)})}b(t,o)}var Ty=be('<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 um(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Ty();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(2),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img",...i})),b(t,o)}function pm(t,e){let i=f(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);um(t,{get style(){return r(o)}})}var Iy=be('<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 fm(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Iy();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(2),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img",...i})),b(t,o)}function mm(t,e){let i=f(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);fm(t,{get style(){return r(o)}})}var ky=L('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),Ey=L('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),Py=L("<div><!></div>"),Ay={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;
|
|
264
|
+
}`};function lm(t,e){var _n,Gt;U(e,!0),K(t,Ty);let[i,o]=Ne(),n=()=>S(si,"$seekToInteractiveDisabledTooltip$",i),a=()=>S(yi,"$disabledControls$",i),s=()=>S(Ct,"$playbackState$",i),d=()=>S(Oi,"$adPlaybackState",i),l=()=>S(ti,"$isEnded$",i),p=()=>S(ji,"$playerSize",i),m=()=>S(be,"$scrubbingInProgress",i),y=()=>S(Kt,"$chromecastState$",i),u=()=>S(Re,"$isPictureInPictureActive",i),$=()=>S(je,"$pictureInPictureType$",i),w=()=>S(te,"$mobileNotReportControlHidden$",i),b=()=>S(ct,"$playerPhase",i),C=()=>S(Ge,"$currentGridType$",i),T=()=>S(Lt,"$isLive$",i),I=()=>S(rt,"$settingsMenuVisible",i),M=()=>S(O,"$isRewindableLive$",i),P=()=>S(Nt,"$isActiveLive$",i),k=()=>S(To,"$isInteractiveTime$",i),R=()=>S(mt,"$isAudioAvailable$",i),W=()=>S(Do,"$settingButtonRef$",i),Y=()=>S(Jt,"$startedByKeyboard$",i),F=()=>S(uo,"$isFullscreen",i),Q=()=>S(Le,"$mobileUnmuteButtonVisible",i),oe=()=>S(Qe,"$mobileUnmuteButtonExpanded",i),Z=()=>S(ot,"$additionalButtons$",i),re=()=>S(bt,"$crashed$",i),de=()=>S(pt,"$graphIsOpened$",i),Ae=()=>S(Vi,"$adPosition",i),Me=()=>S(Yt,"$adDuration",i),ge=()=>S(nt,"$position$",i),se=()=>S(ut,"$duration$",i),Ee=f(e,"playerControlsWrapperRef",15,void 0),ne=f(e,"playerControlsRef",15,void 0),V=f(e,"isAds",3,!1),xe=f(e,"logoTargetUrl",3,""),_e=f(e,"isOneVideoPlaylist",3,!1),ze=f(e,"customFullscreenSupported",3,!0),H=Ce(),le=lo(),he=zt(),ee=H.actions.internal.toggleMuted,De=H.actions.internal.togglePlay,Ze=H.actions.internal.pause,we=H.actions.internal.prevVideoClick,Ve=H.actions.internal.nextVideoClick,Ie=(_n=H.callbacks)==null?void 0:_n.onAudioDoesNotExistHint,Ue=(Gt=H.callbacks)==null?void 0:Gt.onAudioDisabledHint,ct=H.playerPhase,ut=H.state.duration$,nt=H.state.positionWithScrubbing$,Ct=H.state.playbackState$,mt=H.state.isAudioAvailable$,Wt=H.state.isAudioDisabled,ti=H.state.isEnded$,Lt=H.state.isLive$,Nt=H.state.isActiveLive$,O=H.state.isRewindableLive$,be=H.ui.scrubbingInProgress,te=H.ui.mobileNotReportControlHidden$,{isActive$:Re,type$:je}=le.pictureInPicture$,Qe=H.ui.mobileUnmuteButtonExpanded,Le=H.ui.mobileUnmuteButtonVisible,rt=H.ui.settingsMenu.visible$,et=H.ui.settingsMenu.openedByBtnKeyboard$,_t=H.ui.controls,it=H.actions.internal.getVideoEpisodes(),Xe=H.webApi.pictureInPictureApi,Kt=H.state.chromecastState$,bt=H.state.crashed$,yi=_t.disabledControls$,Jt=H.ui.startedByKeyboard$,Ge=H.ui.currentGridType$,Yt=H.ads.duration,Vi=H.ads.position,Oi=H.ads.playbackState,uo=H.ui.isFullscreen,ji=H.ui.playerSize,ot=H.ui.additionalButtonsDeprecated$,$t=H.actions.internal.getVideoElement,ki=H.actions.internal.replayInteractive,eo=H.state.isInteractive,To=H.state.isInteractiveTime$,j=H.state.showInteractiveGraph,jt=H.state.showSeekToInteractive,gi=H.state.showPlayPrevChapter,Ri=H.state.showInteractiveTimeIndicator,si=le.seekToInteractiveDisabledTooltip$,pt=le.graphIsOpened$,mi=v(()=>q(H.state.playPrevChapterDisabledTooltip)),Je=v(()=>q(n())),Vt=v(()=>a().has("EPISODE_BUTTON")),po=v(()=>a().has("GRAPH_BUTTON")),Zt=v(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),Un=v(()=>a().has("PLAY_BUTTON")),to=v(()=>a().has("REPLAY_BUTTON")),Vo=v(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),ui=v(()=>s()===gl.PlaybackState.PLAYING),Tt=v(()=>d()==="paused"),Bi=v(()=>l()&&!V()&&!eo),Uo=v(()=>!l()||V()),pi=v(()=>e.showNextPrevButtons&&!V()&&e.prevButtonActive),zo=v(()=>e.showNextPrevButtons&&!V()&&e.nextButtonActive),Hi=v(()=>p().width>300),Io=v(()=>p().width>400),Fi=v(m),zn=v(()=>y()!==gl.ChromecastState.NOT_AVAILABLE&&!(u()&&$()===1)&&!w()&&!eo),fo=v(()=>b()==="LiveWaitingStart"),En=v(()=>!!Xe&&y()!==gl.ChromecastState.CONNECTED&&!w()&&($()===1&&r(fo)||!r(fo))&&!r(Fi)&&!eo),Ro=v(()=>!r(Fi)&&Qi(C(),"s")),Bo=v(()=>!e.logoHidden&&p().width>350),Pn=v(()=>he.features.fullscreen&&!(u()&&$()===1)&&(eo?ze():!0)&&!r(Fi)),Ir=v(()=>(!T()||V())&&p().width>260&&!r(Fi)&&!(he.features.interactiveHideTime&&eo)),dr=v(()=>I()||e.showControls),An=v(()=>!V()&&!T()&&!!(it!=null&&it.length)&&r(Hi)&&!r(Vt)&&!r(Fi)),fn=v(()=>!M()||!!P()),qn=v(()=>j&&Qi(C(),"m")),ft=pe({}),mo=(0,T1.debounceFn)(fl,260);Fe(()=>{p(),k(),mo($t(),_t,ft,e.showControls)});let qo=()=>H.actions.internal.toggleChromecast();async function Mn(){Xe!=null&&Xe.isActive()?await(Xe==null?void 0:Xe.remove()):await(Xe==null?void 0:Xe.request())}function No(){(!Wt&&R()||V())&&Le.set(!1),$s({isAudioDisabled:Wt,audioDisabledHintCallback:Ue,isAudioAvailable:R(),audioIsNotExistHintCallback:Ie,isAds:V()})&&ee()}let Wo=X(""),Wn=(vt,Dt)=>{if(!vt){D(Wo,pe(q("tooltip_live")));return}Dt&&Dt===gl.PlaybackState.PAUSED&&D(Wo,pe(q("tooltip_play")))};Fe(()=>{Wn(r(fn),s())});let Do=ce();Fe(()=>{W()&&nl(W(),I(),et)}),Fe(()=>{uu(Jt,Y(),ft.playButton)});var Kn=Cy(),mn=ue(Kn);{var Qn=vt=>{var Dt=$y(),ai=ue(Dt);let ni;var ho=A(ai,2);let Eo;var Po=h(ho);{var Go=lt=>{let Qt=v(()=>R()&&!Wt&&oe());fu(lt,{get expanded(){return r(Qt)},click:No,get ref(){return ft.volume},set ref(ii){ft.volume=ii}})};B(Po,lt=>{(!R()||Q())&<(Go)})}g(ho);var Yo=A(ho,2);let tt;var Mt=h(Yo);Ci(Mt,1,Z,({iconUrl:lt,ariaLabel:Qt,testId:ii,onClick:_o,tooltip:yn})=>lt,(lt,Qt)=>{let ii=()=>r(Qt).iconUrl,_o=()=>r(Qt).ariaLabel,yn=()=>r(Qt).testId,tr=()=>r(Qt).onClick,xn=()=>r(Qt).tooltip,Rn=v(()=>{var xi;return(xi=_o())!=null?xi:xn()});om(lt,{get iconUrl(){return ii()},get ariaLabel(){return r(Rn)},get testId(){return yn()},get onClick(){return tr()}})});var vi=A(Mt,2);{var zi=lt=>{Pd(lt,{get ref(){return ft.autoplayNextToggle},set ref(Qt){ft.autoplayNextToggle=Qt}})};B(vi,lt=>{e.showAutoplayNext&&!_e()&<(zi)})}var Zi=A(vi,2);{var bn=lt=>{xd(lt,{isMobile:!0,click:qo,get state(){return y()},get ref(){return ft.chromecast},set ref(Qt){ft.chromecast=Qt}})};B(Zi,lt=>{r(zn)&<(bn)})}var $n=A(Zi,2);{var qi=lt=>{am(lt,{click:Mn,get isPictureInPictureActive(){return u()},get ref(){return ft.pip},set ref(Qt){ft.pip=Qt}})};B($n,lt=>{r(En)&<(qi)})}var Ei=A($n,2);{var jo=lt=>{cl(lt,{ref$:Do})};B(Ei,lt=>{re()&<(jo)})}var Zn=A(Ei,2);{var Ar=lt=>{yd(lt,{click:Ze,get targetUrl(){return xe()},get logoClickable(){return e.logoClickable},get ref(){return ft.vkLogo},set ref(Qt){ft.vkLogo=Qt}})};B(Zn,lt=>{r(Bo)&<(Ar)})}g(Yo);var Zo=A(Yo,2);let fr;var Xn=h(Zo);{var mr=lt=>{let Qt=v(()=>we.bind(null,!0));fa(lt,{get click(){return r(Qt)},type:"prev",isMobile:!0,get ref(){return ft.prevButton},set ref(ii){ft.prevButton=ii}})};B(Xn,lt=>{r(pi)&<(mr)})}var Jn=A(Xn,2);{var Mr=lt=>{vl(lt,{get disabled(){return r(Un)},click:De,isMobile:!0,get isPlaying(){return r(ui)},get ref(){return ft.playButton},set ref(Qt){ft.playButton=Qt}})};B(Jn,lt=>{r(Uo)&<(Mr)})}var er=A(Jn,2);{var Xo=lt=>{ml(lt,{get disabled(){return r(to)},click:De,isMobile:!0,get ref(){return ft.replayButton},set ref(Qt){ft.replayButton=Qt}})};B(er,lt=>{r(Bi)&<(Xo)})}var Lr=A(er,2);{var Jo=lt=>{let Qt=v(()=>Ve.bind(null,!0));fa(lt,{get click(){return r(Qt)},type:"next",isMobile:!0,get ref(){return ft.nextButton},set ref(ii){ft.nextButton=ii}})};B(Lr,lt=>{r(zo)&<(Jo)})}g(Zo);var vr=A(Zo,2);{var zr=lt=>{var Qt=by(),ii=ue(Qt);{var _o=xi=>{var fe=gy();let wt;fe.__click=[my,Vo,e,mi];var li=h(fe);let fi=v(()=>!e.showControls);Ed(li,{get hidden(){return r(fi)},get disabled(){return r(Vo)},get click(){return e.playPrevChapter},get ref(){return ft.playPrevChapterButton},set ref(wi){ft.playPrevChapterButton=wi}}),g(fe),E(wi=>wt=J(fe,1,"wrapper-middle-left svelte-1afsgkw",null,wt,wi),[()=>({fullscreen:F(),hidden:!e.showControls})]),_(xi,fe)};B(ii,xi=>{gi&&xi(_o)})}var yn=A(ii,2);{var tr=xi=>{var fe=hy();let wt;var li=h(fe);let fi=v(()=>!e.showControls&&!de());Md(li,{get hidden(){return r(fi)},get disabled(){return r(po)},get click(){return pt.toggle},get graphIsOpened(){return de()},get ref(){return ft.interactiveGraphButton},set ref(wi){ft.interactiveGraphButton=wi}}),g(fe),E(wi=>wt=J(fe,1,Gl(gi?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw",wt,wi),[()=>({fullscreen:F(),hidden:!e.showControls&&!de()})]),_(xi,fe)};B(yn,xi=>{r(qn)&&xi(tr)})}var xn=A(yn,2);{var Rn=xi=>{var fe=_y();let wt;fe.__click=[vy,Zt,e,Je];var li=h(fe);let fi=v(()=>!e.showControls);Ad(li,{get hidden(){return r(fi)},get disabled(){return r(Zt)},get click(){return e.seekToInteractive},get ref(){return ft.seekToInteractiveButton},set ref(wi){ft.seekToInteractiveButton=wi}}),g(fe),E(wi=>wt=J(fe,1,"wrapper-middle-right svelte-1afsgkw",null,wt,wi),[()=>({fullscreen:F(),hidden:!e.showControls})]),_(xi,fe)};B(xn,xi=>{jt&&xi(Rn)})}_(lt,Qt)};B(vr,lt=>{eo&&!m()&<(zr)})}E((lt,Qt,ii,_o)=>{ni=J(ai,1,"overlay-mobile svelte-1afsgkw",null,ni,lt),Eo=J(ho,1,"wrapper-top-left svelte-1afsgkw",null,Eo,Qt),tt=J(Yo,1,"wrapper-top-right svelte-1afsgkw",null,tt,ii),fr=J(Zo,1,"wrapper-middle svelte-1afsgkw",null,fr,_o)},[()=>({hidden:!r(dr)}),()=>({hidden:!e.showControls,fullscreen:F()}),()=>({hidden:!e.showControls&&!w(),fullscreen:F()}),()=>({hidden:!e.showControls||m()||e.endScreenShown&&e.showNextPrevButtons})]),_(vt,Dt)};B(mn,vt=>{V()||vt(Qn)})}var Ko=A(mn,2);{var vo=vt=>{var Dt=wy(),ai=ue(Dt);{var ni=tt=>{var Mt=yy();let vi;var zi=h(Mt);fu(zi,{expanded:!1,click:No,get ref(){return ft.volume},set ref(Zi){ft.volume=Zi}}),g(Mt),E(Zi=>vi=J(Mt,1,"wrapper-top-right svelte-1afsgkw",null,vi,Zi),[()=>({fullscreen:F()})]),_(tt,Mt)};B(ai,tt=>{Q()&&tt(ni)})}var ho=A(ai,2);{var Eo=tt=>{var Mt=xy(),vi=h(Mt);let zi=v(()=>!r(Tt));vl(vi,{get disabled(){return r(Un)},click:De,isMobile:!0,get isPlaying(){return r(zi)},get ref(){return ft.playButton},set ref(Zi){ft.playButton=Zi}}),g(Mt),_(tt,Mt)};B(ho,tt=>{r(Tt)&&tt(Eo)})}var Po=A(ho,2);let Go;var Yo=h(Po);wd(Yo,{get position(){return Ae()},get duration(){return Me()}}),g(Po),E(tt=>Go=J(Po,1,"wrapper-bottom ads-timeline-mobile svelte-1afsgkw",null,Go,tt),[()=>({fullscreen:F()})]),_(vt,Dt)};B(Ko,vt=>{V()&&d()!=="inactive"&&vt(vo)})}var Si=A(Ko,2);let vn;var gn=h(Si);let Qo;var go=h(gn);J(go,1,"controls svelte-1afsgkw",null,{},{mobile:!0});var Ln=h(go);{var ko=vt=>{Mo(vt,{get disabled(){return r(to)},get ref(){return ft.replayButton},set ref(Dt){ft.replayButton=Dt},children:(Dt,ai)=>{ml(Dt,{get disabled(){return r(to)},click:ki})},$$slots:{default:!0}})};B(Ln,vt=>{eo&&vt(ko)})}var Ui=A(Ln,2);{var cr=vt=>{Mo(vt,{get ref(){return ft.liveButton},set ref(Dt){ft.liveButton=Dt},children:(Dt,ai)=>{Ld(Dt,{get isLiveActive(){return r(fn)},isMobile:!0,get ariaLabel(){return r(Wo)}})},$$slots:{default:!0}})};B(Ui,vt=>{!V()&&T()&&vt(cr)})}var Oo=A(Ui,2);{var Gn=vt=>{let Dt=v(()=>V()?Ae():ge()),ai=v(()=>V()?Me():se());hd(vt,{get showDuration(){return r(Io)},get position(){return r(Dt)},get duration(){return r(ai)},isMobile:!0,get ref(){return ft.time},set ref(ni){ft.time=ni}})};B(Oo,vt=>{r(Ir)&&vt(Gn)})}var Vn=A(Oo,2);let Yn=v(()=>!r(An));Mo(Vn,{className:"w-max",get disabled(){return r(Yn)},get ref(){return ft.episodes},set ref(vt){ft.episodes=vt},children:(vt,Dt)=>{var ai=Oe(),ni=ue(ai);{var ho=Eo=>{var Po=Sy(),Go=A(ue(Po),2);Sd(Go,{get position(){return ge()},get duration(){return se()},timeCodes:it}),_(Eo,Po)};B(ni,Eo=>{r(An)&&Eo(ho)})}_(vt,ai)},$$slots:{default:!0}});var ur=A(Vn,2);{var hn=vt=>{Mo(vt,{get ref(){return ft.settings},set ref(Dt){ft.settings=Dt},children:(Dt,ai)=>{cl(Dt,{ref$:Do})},$$slots:{default:!0}})};B(ur,vt=>{r(Ro)&&vt(hn)})}var kr=A(ur,2);{var pr=vt=>{Mo(vt,{get ref(){return ft.fullscreen},set ref(Dt){ft.fullscreen=Dt},children:(Dt,ai)=>{$d(Dt,{get click(){return e.toggleFullscreen},get isFullscreen(){return F()}})},$$slots:{default:!0}})};B(kr,vt=>{r(Pn)&&vt(pr)})}g(go),gt(go,vt=>ne(vt),()=>ne());var jn=A(go,2);ca(jn,{get isAds(){return V()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return M()},get ref(){return ft.timeline},set ref(vt){ft.timeline=vt}}),g(gn),g(Si),gt(Si,vt=>Ee(vt),()=>Ee());var Er=A(Si,2);{var Pr=vt=>{Id(vt,{get ref(){return ft.interactiveTimeIndicator},set ref(Dt){ft.interactiveTimeIndicator=Dt}})};B(Er,vt=>{Ri&&vt(Pr)})}E((vt,Dt)=>{vn=J(Si,1,"wrapper-bottom svelte-1afsgkw",null,vn,vt),Qo=J(gn,1,"controls-wrapper svelte-1afsgkw",null,Qo,Dt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:F()})]),_(t,Kn),z(),o()}at(["click"]);function Rd(t,e){U(e,!0);let[i,o]=Ne(),n=()=>S(T,"$isMobile",i),a=f(e,"bottomNoSmooth",3,!1),s=f(e,"playerControlsWrapperRef",15,void 0),d=f(e,"playerControlsRef",15,void 0),l=f(e,"isAds",3,!1),p=f(e,"logoTargetUrl",3,""),m=f(e,"showAutoplayNext",3,!1),y=f(e,"isOneVideoPlaylist",3,!1),u=f(e,"customFullscreenSupported",3,!0),$=f(e,"endScreenShown",3,!1),w=f(e,"onDisabledPlayPrevChapterClick",3,dm.noop),b=f(e,"onDisabledSeekToInteractiveClick",3,dm.noop),T=Ce().ui.isMobile,I=X(!1);Ut(()=>{let R=setTimeout(()=>D(I,!0),0);return()=>clearTimeout(R)});var M=Oe(),P=ue(M);{var k=R=>{var W=Oe(),Y=ue(W);{var F=oe=>{lm(oe,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get showAutoplayNext(){return m()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return y()},get customFullscreenSupported(){return u()},get endScreenShown(){return $()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return b()},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(Z){s(Z)},get playerControlsRef(){return d()},set playerControlsRef(Z){d(Z)}})},Q=oe=>{tm(oe,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get isOneVideoPlaylist(){return y()},get showAutoplayNext(){return m()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return u()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(Z){s(Z)},get playerControlsRef(){return d()},set playerControlsRef(Z){d(Z)}})};B(Y,oe=>{n()?oe(F):oe(Q,!1)})}_(R,W)};B(P,R=>{r(I)&&R(k)})}_(t,M),z(),o()}var Iy=ye('<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 cm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Iy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img",...i})),_(t,o)}function um(t,e){let i=f(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);cm(t,{get style(){return r(o)}})}var ky=ye('<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 pm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=ky();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img",...i})),_(t,o)}var Ey=ye('<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 fm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Ey();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img",...i})),_(t,o)}function mu(t,e){let i=f(e,"isOff",3,!1);var o=Oe(),n=ue(o);{var a=d=>{fm(d,{})},s=d=>{pm(d,{})};B(n,d=>{i()?d(a):d(s,!1)})}_(t,o)}var Py=ye('<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 mm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Py();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img",...i})),_(t,o)}function vm(t,e){let i=f(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);mm(t,{get style(){return r(o)}})}var Ay=ye('<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 gm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Ay();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img",...i})),_(t,o)}function hm(t,e){let i=f(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);gm(t,{get style(){return r(o)}})}var My=L('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),Ly=L('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),Vy=L("<div><!></div>"),Ry={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;
|
|
265
265
|
animation: svelte-1ad3n06-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box;}.hot-key-helpers-container.svelte-1ad3n06 > div:where(.svelte-1ad3n06) {width:48px;height:48px;display:flex;justify-content:center;align-items:center;}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-off-icon"],
|
|
266
266
|
.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-max-icon"] {transform:scale(2);}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="replay-icon"],
|
|
267
267
|
.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
|
|
@@ -276,23 +276,23 @@ Try switching the\xA0quality to\xA0Auto.`},Mh=I_;var ts=new Map;ts.set(Ya.Interf
|
|
|
276
276
|
@keyframes svelte-1ad3n06-fadeOut {
|
|
277
277
|
0% {opacity:1;}
|
|
278
278
|
100% {opacity:0;}
|
|
279
|
-
}`};function
|
|
280
|
-
/*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function
|
|
279
|
+
}`};function _m(t,e){U(e,!0),K(t,Ry);let[i,o]=Ne(),n=()=>S(e.data,"$data",i),s=Ce().ui.t,d=v(()=>!n()),l=v(()=>{var C;return((C=n())==null?void 0:C.type)==="BACKWARD_SEEK"}),p=v(()=>{var C;return((C=n())==null?void 0:C.type)==="FORWARD_SEEK"}),m=v(()=>{var C;return(C=n())==null?void 0:C.type}),y=v(()=>{var C,T;return(C=n())!=null&&C.t?s(n().t.key,{value:n().t.value||""}):(T=n())==null?void 0:T.text});var u=Vy();let $;var w=h(u);{var b=C=>{var T=Ly(),I=ue(T),M=h(I);{var P=H=>{let le=v(()=>r(m)==="FORWARD_SEEK");um(H,{get reversed(){return r(le)}})};B(M,H=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(m))&&H(P)})}var k=A(M,2);{var R=H=>{ns(H,{})};B(k,H=>{r(m)==="PAUSE"&&H(R)})}var W=A(k,2);{var Y=H=>{Cr(H,{})};B(W,H=>{r(m)==="PLAY"&&H(Y)})}var F=A(W,2);{var Q=H=>{kd(H,{})};B(F,H=>{r(m)==="REPLAY"&&H(Q)})}var oe=A(F,2);{var Z=H=>{mu(H,{isOff:!0})};B(oe,H=>{r(m)==="SUBTITLES_OFF"&&H(Z)})}var re=A(oe,2);{var de=H=>{mu(H,{})};B(re,H=>{r(m)==="SUBTITLES_ON"&&H(de)})}var Ae=A(re,2);{var Me=H=>{let le=v(()=>r(m)==="RATE_UP");vm(H,{get reversed(){return r(le)}})};B(Ae,H=>{["RATE_DOWN","RATE_UP"].includes(r(m))&&H(Me)})}var ge=A(Ae,2);{var se=H=>{let le=v(()=>r(m)==="EPISODE_NEXT");hm(H,{get reversed(){return r(le)}})};B(ge,H=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(m))&&H(se)})}var Ee=A(ge,2);{var ne=H=>{xs(H,{volume:0})};B(Ee,H=>{r(m)==="MUTE"&&H(ne)})}var V=A(Ee,2);{var xe=H=>{xs(H,{volume:1})};B(V,H=>{r(m)==="VOLUME"&&H(xe)})}g(I);var _e=A(I,2);{var ze=H=>{var le=My(),he=h(le,!0);g(le),E(()=>me(he,r(y))),_(H,le)};B(_e,H=>{r(y)&&H(ze)})}_(C,T)};B(w,C=>{!r(d)&&r(m)&&C(b)})}g(u),E(C=>$=J(u,1,"hot-key-helpers-container svelte-1ad3n06",null,$,C),[()=>({hidden:r(d),"hot-key-helpers-container--left":r(l),"hot-key-helpers-container--right":r(p)})]),_(t,u),z(),o()}var By=ye('<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 bm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=By();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i})),_(t,o)}var Ny=ye('<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 $m(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Ny();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i})),_(t,o)}function Cs(t,e){U(e,!0);let i=f(e,"direction",3,"left"),o=f(e,"useBtnColor",3,!1),n=v(()=>["up","down"].includes(i())),a=v(()=>["right","down"].includes(i())),s=v(()=>(()=>{let y="";return r(a)&&(y+="transform: rotate(180deg);"),o()&&(y+="color: var(--btn-color, #fff);"),y.length?y:void 0})());var d=Oe(),l=ue(d);{var p=y=>{let u=v(()=>r(a)?"chevron-icon--down":"chevron-icon--up");bm(y,{get style(){return r(s)},get"data-testid"(){return r(u)}})},m=y=>{let u=v(()=>r(a)?"chevron-icon--right":"chevron-icon--left");$m(y,{get style(){return r(s)},get"data-testid"(){return r(u)}})};B(l,y=>{r(n)?y(p):y(m,!1)})}_(t,d),z()}var Dy=(t,e,i,o,n,a)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":n();break;case"ArrowRight":a();break}},Oy=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},Hy=L('<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>'),Fy={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 Bd(t,e){U(e,!0),K(t,Fy);let i=f(e,"isShifted",3,!1),o=Ce(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),a=()=>{o.actions.internal.startCameraManualRotation(0,1)},s=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},l=()=>{o.actions.internal.startCameraManualRotation(-1,0)},p=()=>(o.actions.internal.stopCameraManualRotation(),null),m=q("aria_label_spherical_control");var y=Hy();let u;y.__keydown=[Dy,n,a,s,l,d],y.__keyup=[Oy,n,p],Be(y,"aria-label",m);var $=h(y),w=h($),b=h(w);b.__mousedown=a,b.__mouseup=p;var C=h(b);Cs(C,{direction:"up",useBtnColor:!0}),g(b);var T=A(b,2);T.__mousedown=d,T.__mouseup=p;var I=h(T);Cs(I,{direction:"up",useBtnColor:!0}),g(T),g(w);var M=A(w,2),P=h(M);P.__mousedown=l,P.__mouseup=p;var k=h(P);Cs(k,{direction:"up",useBtnColor:!0}),g(P);var R=A(P,2);R.__mousedown=s,R.__mouseup=p;var W=h(R);Cs(W,{direction:"up",useBtnColor:!0}),g(R),g(M),g($),g(y),E(Y=>u=J(y,1,"immersive-controls svelte-1yzc86r",null,u,Y),[()=>({"m-shifted":i()})]),kt("mouseleave",b,p),kt("mouseleave",T,p),kt("mouseleave",P,p),kt("mouseleave",R,p),_(t,y),z()}at(["keydown","keyup","mousedown","mouseup"]);var ss=require("@vkontakte/videoplayer-shared/es2018");var I1=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var vu=class{constructor(){this.flickeringTimeout=I1(1e3);this.subscriptions=new ss.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new ss.ValueSubject([]);this.captionsPrepared$=new ss.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,ss.filter)(()=>this.isEnabled()),(0,ss.filterChanged)()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let i=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&i.push([{value:String(e[0].value),timeAppeared:null}]),i.push(e.reduce((n,{type:a,value:s},d)=>(o&&!d||(a==="timestamp"?n.push({timeAppeared:Number(s),value:""}):n.length===0?n.push({value:String(s)}):n[n.length-1].value=String(s)),n),[])),this.captionsPrepared$.next(i)}};var Uy=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),zy=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),qy=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),Wy=L('<div><span class="caption svelte-c2x749"><!></span></div>'),Ky=L("<div><!></div>"),Qy={hash:"svelte-c2x749",code:`.subtitles-container.svelte-c2x749 {position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration);}.subtitles-container.shifted.svelte-c2x749 {transform:translateY(calc(var(--controls-height) * -1));}.subtitles-caption.svelte-c2x749 {position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center;}.subtitles-caption.mobile.svelte-c2x749 {bottom:8%;}.subtitles-container.auto.svelte-c2x749 .subtitles-caption:where(.svelte-c2x749) {left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin);}.caption.svelte-c2x749 {display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4);}.subtitles-container.auto.svelte-c2x749 .caption:where(.svelte-c2x749) {width:100%;}.caption-line.svelte-c2x749 {display:block;text-align:center;}.subtitles-container.auto.svelte-c2x749 .caption-line:where(.svelte-c2x749) {text-align:left;}.caption-segment.svelte-c2x749 {display:inline-block;line-height:1.2;font-size:13px;
|
|
280
|
+
/*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function ga(t,e){U(e,!0),K(t,Qy);let[i,o]=Ne(),n=()=>S(y,"$currentSubtitle$",i),a=()=>S($,"$isLive$",i),s=()=>S(w,"$isFullscreen",i),d=()=>S(u,"$isAutoSubtitleCaptionVisible$",i),l=f(e,"isMobile",3,!1),p=Ce(),m=zt(),y=p.state.currentSubtitle$,u=p.state.isAutoSubtitleCaptionVisible$,$=p.state.isLive$,w=p.ui.isFullscreen,b=v(()=>!!n().isAuto),C=v(()=>!!a()),T=v(()=>e.playerSize.width*.02),I=v(()=>l()&&!s()||r(T)<=m.minSubtitlesFontSize?m.minSubtitlesFontSize:r(T)),M=X(null);Fe(()=>{var Q,oe,Z;(Q=r(M))==null||Q.setIsAuto(r(b)),(oe=r(M))==null||oe.setIsLive(r(C)),(Z=r(M))==null||Z.setCaptions(e.captions)});let P=X(pe([[]]));Ut(()=>{D(M,pe(new vu().subscribe()));let Q=r(M).captionsPrepared$.subscribe(oe=>{D(P,pe(oe))});return()=>{var oe;(oe=r(M))==null||oe.destroy(),Q.unsubscribe()}}),Ut(()=>{if(r(b)){let Q=window.setTimeout(()=>{u.set(!1)},m.autoSubtitlesTimeout);return()=>{window.clearTimeout(Q)}}else u.set(!1)});let k=v(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var R=Ky();let W;var Y=h(R);{var F=Q=>{var oe=Wy();let Z;var re=h(oe),de=h(re);{var Ae=ge=>{var se=Uy(),Ee=h(se),ne=h(Ee,!0);g(Ee),g(se),E(V=>{var xe;st(Ee,`font-size: ${(xe=r(I))!=null?xe:""}px`),me(ne,V)},[()=>q("subtitles_auto_caption")]),_(ge,se)},Me=(ge,se)=>{{var Ee=V=>{var xe=Oe(),_e=ue(xe);Ci(_e,17,()=>r(P),Kl,(ze,H)=>{var le=zy(),he=h(le);Ci(he,21,()=>r(H),({value:ee,timeAppeared:De})=>De,(ee,De)=>{let Ze=()=>r(De).value,we=()=>r(De).timeAppeared;var Ve=Oe(),Ie=ue(Ve);{var Ue=ct=>{var ut=Nr();E(()=>me(ut,Ze())),_(ct,ut)};B(Ie,ct=>{(!we()||we()<=e.position)&&ct(Ue)})}_(ee,Ve)}),g(he),g(le),E(()=>{var ee;return st(he,`font-size: ${(ee=r(I))!=null?ee:""}px`)}),_(ze,le)}),_(V,xe)},ne=V=>{var xe=Oe(),_e=ue(xe);Ci(_e,17,()=>e.captions,({value:ze})=>ze,(ze,H)=>{let le=()=>r(H).value;var he=qy(),ee=h(he),De=h(ee,!0);g(ee),g(he),E(()=>{var Ze;st(ee,`font-size: ${(Ze=r(I))!=null?Ze:""}px`),me(De,le())}),_(ze,he)}),_(V,xe)};B(ge,V=>{var xe;r(b)&&((xe=r(P))!=null&&xe.length)?V(Ee):V(ne,!1)},se)}};B(de,ge=>{r(b)&&d()?ge(Ae):ge(Me,!1)})}g(re),g(oe),E(ge=>{var se;Z=J(oe,1,"subtitles-caption svelte-c2x749",null,Z,ge),st(oe,`--subtitles-caption-margin: ${(se=r(k))!=null?se:""}%`)},[()=>({mobile:l()})]),_(Q,oe)};B(Y,Q=>{var oe;(e.captions.length||(oe=r(P))!=null&&oe.length)&&Q(F)})}g(R),E(Q=>W=J(R,1,"subtitles-container svelte-c2x749",null,W,Q),[()=>({shifted:e.shifted,auto:r(b)&&!r(C)&&!d()})]),_(t,R),z(),o()}var Gy=L('<div class="text svelte-raurnb"> </div>'),Yy=L('<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>'),jy={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 Nd(t,e){U(e,!0),K(t,jy);let i=zt();var o=Yy();let n;var a=A(h(o),2);{var s=d=>{var l=Gy(),p=h(l);g(l),E(()=>{var m;return me(p,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(m=e.chromecastDeviceName)!=null?m:""}`)}),_(d,l)};B(a,d=>{e.chromecastDeviceName&&d(s)})}g(o),E(d=>{n=J(o,1,"wrapper svelte-raurnb",null,n,d),st(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),_(t,o),z()}var Zy=ye('<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 ym(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Zy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{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})),_(t,o)}var Xy=L('<div class="container svelte-13zpvm8"><!></div>'),Jy={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 Dd(t){K(t,Jy);var e=Xy(),i=h(e);ym(i,{}),g(e),_(t,e)}var e4=L('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),t4=L("<div><!></div>"),i4={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,
|
|
281
281
|
visibility 0.2s;will-change:opacity;}.container.hidden.svelte-1ciju45 {opacity:0;visibility:hidden;}.container.bgCover.svelte-1ciju45 {background-size:cover;}.playButton.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;}.playButtonBackground.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s,
|
|
282
|
-
transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1ciju45:hover .playButtonBackground:where(.svelte-1ciju45) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1ciju45 svg {transform:scale(2);}`};function
|
|
282
|
+
transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1ciju45:hover .playButtonBackground:where(.svelte-1ciju45) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1ciju45 svg {transform:scale(2);}`};function ha(t,e){U(e,!0),K(t,i4);let i=f(e,"iconVisible",3,!0),o=Ce(),n=zt(),a=o.ui.startedByKeyboard$,s=q("tooltip_play"),d=$=>{var b;let w=$.code;["Enter","Space"].includes(w)&&($.stopPropagation(),$.preventDefault(),a.set(!0),(b=e.startVideo)==null||b.call(e))},l=$=>{var w;$.stopPropagation(),(w=e.startVideo)==null||w.call(e)};var p=t4();let m;p.__click=l;var y=h(p);{var u=$=>{var w=e4();w.__keydown=d,Be(w,"aria-label",s);var b=A(h(w),2);Cr(b,{}),g(w),_($,w)};B(y,$=>{i()&&$(u)})}return g(p),E($=>{m=J(p,1,"container svelte-1ciju45",null,m,$),st(p,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),_(t,p),z({handlePressKey:d,handleClick:l})}at(["click","keydown"]);var o4=L('<div data-testid="video_title"> </div>'),n4={hash:"svelte-1bcvcf2",code:`.title.svelte-1bcvcf2 {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(
|
|
283
283
|
0deg,
|
|
284
284
|
rgba(0, 0, 0, 0) 0%,
|
|
285
285
|
rgba(0, 0, 0, 0.02) 19%,
|
|
286
286
|
rgba(0, 0, 0, 0.10) 34%,
|
|
287
287
|
rgba(0, 0, 0, 0.40) 60%,
|
|
288
288
|
rgba(0, 0, 0, 0.60) 100%
|
|
289
|
-
);}.hidden.svelte-1bcvcf2 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function
|
|
289
|
+
);}.hidden.svelte-1bcvcf2 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function xm(t,e){K(t,n4);let i=f(e,"title",3,""),o=f(e,"isHidden",3,!1);var n=o4();let a;var s=h(n,!0);g(n),E(d=>{a=J(n,1,"title svelte-1bcvcf2",null,a,d),me(s,i())},[()=>({hidden:o()})]),_(t,n)}var r4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),s4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),a4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),l4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),d4=L('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),c4={hash:"svelte-1qpxtfg",code:".timer__container.svelte-1qpxtfg {display:flex;align-items:flex-start;justify-content:center;}.cell.svelte-1qpxtfg {display:flex;flex-direction:column;align-items:center;width:62px;}.cell__value.svelte-1qpxtfg {font-size:48px;line-height:1.2;font-weight:700;}.cell__unit.svelte-1qpxtfg {font-size:14px;line-height:1.2;font-weight:400;}.timer__points.svelte-1qpxtfg {display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600;}"};function wm(t,e){U(e,!0),K(t,c4);let i=X(""),o=X(""),n=X(""),a=X(""),s,d=M=>String(M).padStart(2,"0"),l=M=>{let P=Math.floor(M/86400);P&&(M-=P*86400,D(i,pe(d(P))));let k=Math.floor(M/3600);D(o,pe(d(k)));let R=Math.floor(M/60)%60;D(n,pe(d(R)));let W=M%60;D(a,pe(d(W)))},p=()=>{let M=Math.floor(Date.now()/1e3),P=e.startTime-M;l(P),P>=1?s=requestAnimationFrame(p):e.onTimerOver()};Ut(()=>{s=requestAnimationFrame(p)}),In(()=>{cancelAnimationFrame(s)});var m=d4(),y=h(m);{var u=M=>{var P=r4(),k=ue(P),R=h(k),W=h(R,!0);g(R);var Y=A(R,2),F=h(Y,!0);g(Y),g(k);var Q=A(k,2),oe=h(Q,!0);g(Q),E((Z,re)=>{me(W,r(i)),me(F,Z),me(oe,re)},[()=>q("waiting_live_day_value"),()=>q("waiting_live_colon")]),_(M,P)};B(y,M=>{r(i)&&M(u)})}var $=A(y,2);{var w=M=>{var P=s4(),k=ue(P),R=h(k),W=h(R,!0);g(R);var Y=A(R,2),F=h(Y,!0);g(Y),g(k);var Q=A(k,2),oe=h(Q,!0);g(Q),E((Z,re)=>{me(W,r(o)),me(F,Z),me(oe,re)},[()=>q("waiting_live_hour_value"),()=>q("waiting_live_colon")]),_(M,P)};B($,M=>{r(o)&&M(w)})}var b=A($,2);{var C=M=>{var P=a4(),k=ue(P),R=h(k),W=h(R,!0);g(R);var Y=A(R,2),F=h(Y,!0);g(Y),g(k);var Q=A(k,2),oe=h(Q,!0);g(Q),E((Z,re)=>{me(W,r(n)),me(F,Z),me(oe,re)},[()=>q("waiting_live_minute_value"),()=>q("waiting_live_colon")]),_(M,P)};B(b,M=>{r(n)&&M(C)})}var T=A(b,2);{var I=M=>{var P=l4(),k=h(P),R=h(k,!0);g(k);var W=A(k,2),Y=h(W,!0);g(W),g(P),E(F=>{me(R,r(a)),me(Y,F)},[()=>q("waiting_live_second_value")]),_(M,P)};B(T,M=>{r(a)&&M(I)})}g(m),_(t,m),z()}var u4=ye('<svg><!><path fill="#fefffe" d="M179.5-.5h40q127.56 18.67 171.5 140 5.724 19.896 8.5 40v40q-5.549 51.6-35.5 94-9.626-12.614-24.5-18.5-1.526-1.574-.5-3.5 39.742-61.7 23-133Q329.24 50.25 217.5 33 112.126 26.56 55 114.5q-40.395 74.102-9 152a152.3 152.3 0 0 0 14 25q1.026 1.926-.5 3.5-14.874 5.886-24.5 18.5-29.95-42.4-35.5-94v-40Q18.17 51.94 139.5 8q19.896-5.724 40-8.5" style="opacity:.965"></path><path fill="#fefffe" d="M183.5 63.5q86.294-5.475 133.5 66 32.442 60.138 8 124a186.7 186.7 0 0 1-17.5 29.5 633 633 0 0 1-38-7q54.668-57.264 19.5-128.5Q252.733 91.244 185.5 97q-74.25 14.25-88.5 88.5-5.916 53.38 32.5 90.5a1150 1150 0 0 0-36 7.5q-2.294-.044-3.5-2-43.947-63.646-16-136 32.799-70.278 109.5-82" style="opacity:.965"></path><path fill="#fefffe" d="M187.5 127.5q66.786-4.422 83.5 60 5.146 66.825-59.5 83.5-66.825 5.146-83.5-59.5-4.844-66.856 59.5-84" style="opacity:.985"></path><path fill="#fefffe" d="M219.5 399.5h-40q-67.453-7.982-117-54a31.7 31.7 0 0 1 3.5-10q8.539-9.646 20.5-14.5 54.786-19.435 113-17.5 58.214-1.935 113 17.5 11.962 4.854 20.5 14.5a31.7 31.7 0 0 1 3.5 10q-49.547 46.018-117 54" style="opacity:.986"></path></svg>');function Sm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=u4();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(4),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","data-testid":"podcast-icon",style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%",viewBox:"0 0 400 400",role:"img",...i})),_(t,o)}var p4=L('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),f4=L('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),m4=L('<div class="waiting-container svelte-15pewff"><!></div>'),v4={hash:"svelte-15pewff",code:".waiting-container.svelte-15pewff {position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;}.waiting-container.svelte-15pewff::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1;}.upcoming.svelte-15pewff {position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:0;}.upcoming-icon.svelte-15pewff {width:20%;max-width:200px;margin-bottom:20px;}.upcoming__title.svelte-15pewff {font-size:14px;line-height:1.2;font-weight:400;}.waiting-timer.svelte-15pewff {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2;}.timer.svelte-15pewff {display:flex;flex-direction:column;align-items:center;justify-content:center;}.timer__title.svelte-15pewff {display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:14px;line-height:1.2;font-weight:400;}"};function Od(t,e){U(e,!0),K(t,v4);let i=X(!1);Fe(()=>{D(i,pe(e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3)))});var o=m4(),n=h(o);{var a=d=>{var l=p4(),p=h(l),m=h(p);Sm(m,{}),g(p);var y=A(p,2),u=h(y,!0);g(y),g(l),E($=>me(u,$),[()=>q("waiting_live_upcoming_title")]),_(d,l)},s=d=>{var l=f4(),p=h(l),m=h(p,!0);g(p);var y=A(p,2);let u=v(()=>e.startTime||0);wm(y,{get startTime(){return r(u)},onTimerOver:()=>D(i,!0)}),g(l),E($=>me(m,$),[()=>q("waiting_live_timer_title")]),_(d,l)};B(n,d=>{r(i)?d(a):d(s,!1)})}g(o),E(()=>st(o,`background-image: url(${r(i)?"":e.thumbUrl})`)),_(t,o),z()}var g4=L('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),h4={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 _a(t,e){U(e,!0),K(t,h4);let i=f(e,"thumbUrl",3,""),o={recover:q("waiting_live_recover_title"),record:q("waiting_record_title")},n=v(()=>o[e.kind]||"");var a=g4(),s=h(a),d=h(s);sa(d,{style:"position: static; transform: translate(0, 0)"});var l=A(d,2),p=h(l,!0);g(l),g(s),g(a),E(()=>{st(a,`background-image: url('${i()}')`),me(p,r(n))}),_(t,a),z()}var _4=ye('<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=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=_4();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img",...i})),_(t,o)}var b4=L('<div class="select-icon svelte-124aexk"><!></div>'),$4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function Hd(t){K(t,$4);var e=b4(),i=h(e);Cm(i,{}),g(e),_(t,e)}var y4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},x4=(t,e)=>{sl(t,()=>e.item.selectItem(e.item.value))},w4=L("<p> </p>"),S4=L('<p class="sublabel svelte-1t7rx2m"> </p>'),C4=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),T4={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;
|
|
290
290
|
|
|
291
291
|
/**
|
|
292
292
|
* \u0415\u0441\u043B\u0438 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D(\u0438\u043A\u043E\u043D\u043A\u0430 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442), \u0442\u043E \u0434\u043E\u043B\u0436\u043D\u044B \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043F\u0443\u0441\u0442\u043E\u0435 \u043C\u0435\u0441\u0442\u043E
|
|
293
293
|
* \u0447\u0442\u043E\u0431\u044B \u0432\u0441\u0435 \u043B\u0435\u0439\u0431\u043B\u044B \u043D\u0430\u0447\u0438\u043D\u0430\u043B\u0438\u0441\u044C \u0441 \u043E\u0434\u043D\u043E\u0433\u043E \u043E\u0442\u0441\u0442\u0443\u043F\u0430.
|
|
294
294
|
*/margin-left:calc(var(--icon-padding) + var(--select-icon-width));}.label.svelte-1t7rx2m,
|
|
295
|
-
.sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function
|
|
295
|
+
.sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function Tm(t,e){U(e,!0),K(t,T4);let i=f(e,"isMobile",3,!1);var o=C4();let n;o.__click=[y4,e],o.__keydown=[x4,e];var a=h(o);{var s=w=>{Hd(w,{})};B(a,w=>{e.item.selected&&w(s)})}var d=A(a,2);let l;var p=h(d);{var m=w=>{var b=Oe(),C=ue(b);Ti(C,()=>e.item.valueComponent,(T,I)=>{I(T,ts(()=>{var M;return(M=e.item.valueComponentParams)!=null?M:{}}))}),_(w,b)},y=w=>{var b=w4();let C;var T=h(b,!0);g(b),E(I=>{var M;C=J(b,1,"label svelte-1t7rx2m",null,C,I),me(T,(M=e.item.label)!=null?M:e.item.value)},[()=>({mobile:i()})]),_(w,b)};B(p,w=>{e.item.valueComponent?w(m):w(y,!1)})}var u=A(p,2);{var $=w=>{var b=S4(),C=h(b,!0);g(b),E(()=>me(C,e.item.sublabel)),_(w,b)};B(u,w=>{e.item.sublabel&&w($)})}g(d),g(o),E((w,b,C)=>{n=J(o,1,"item",null,n,w),Be(o,"data-value",e.item.value),Be(o,"aria-label",b),Be(o,"data-testid",e.item.dataTestid),l=J(d,1,"menu-item-value svelte-1t7rx2m",null,l,C),Be(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,b;return(b=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?b:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),_(t,o),z()}at(["click","keydown"]);var I4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Im(t,e){U(e,!0);let i=f(e,"isMobile",3,!1),o=f(e,"refMenuItems",15),n=v(()=>()=>e.openSubMenuList(e.item.children)),a=v(()=>b=>jc(b,r(n)));var s=I4();let d;s.__click=function(...b){var C;(C=r(n))==null||C.apply(this,b)},s.__keydown=function(...b){var C;(C=r(a))==null||C.apply(this,b)};var l=h(s);{var p=b=>{Hd(b,{})};B(l,b=>{e.item.selected&&b(p)})}var m=A(l,2);let y;var u=h(m);{var $=b=>{var C=Oe();let T=v(()=>e.item.valueComponent);var I=ue(C);Ti(I,()=>r(T),(M,P)=>{P(M,ts(()=>{var k;return(k=e.item.valueComponentParams)!=null?k:{}}))}),_(b,C)},w=b=>{var C=Nr();E(()=>me(C,e.item.label)),_(b,C)};B(u,b=>{e.item.valueComponent?b($):b(w,!1)})}g(m),g(s),gt(s,b=>o(o()[e.item.id]=b,!0),()=>{var b;return(b=o())==null?void 0:b[e.item.id]}),E((b,C)=>{var T;d=J(s,1,"item",null,d,b),Be(s,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),Be(s,"data-testid",e.item.id),y=J(m,1,"menu-item-value",null,y,C)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),_(t,s),z()}at(["click","keydown"]);var Tr={"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 E4=(t,e)=>{Qh(t,e.returnFromSubMenu,e.closeSettingsMenu)},P4=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},A4=(t,e)=>{dd(t)&&(lr(t),e.returnFromSubMenu())},M4=L('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),L4={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
|
|
296
296
|
/*\u0414\u043B\u044F \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u0438 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0433\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430 \u0441\u043F\u0438\u0441\u043A\u0430*/--edge-item-padding-vertical-mobile: calc(6px + var(--item-padding-vertical-mobile));--edge-item-padding-vertical: calc(8px + var(--item-padding-vertical));}.sub-menu.svelte-7dfsuh .item.mobile {padding:var(--item-padding-vertical-mobile) 17px;line-height:var(--item-label-line-height);font-size:14px;}.sub-menu.svelte-7dfsuh {
|
|
297
297
|
/**
|
|
298
298
|
* \u0422\u0430\u043A \u043A\u0430\u043A \u0443 \u043D\u0430\u0441 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0441\u0442\u0438\u043A\u0438, \u043D\u0443\u0436\u043D\u043E \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0430\u0434\u0434\u0438\u043D\u0433 \u0441 \u0432\u044B\u0441\u043E\u0442\u0443 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0430.
|
|
@@ -302,14 +302,14 @@ Try switching the\xA0quality to\xA0Auto.`},Mh=I_;var ts=new Map;ts.set(Ya.Interf
|
|
|
302
302
|
var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
|
|
303
303
|
1px
|
|
304
304
|
);}.sub-menu.svelte-7dfsuh .items:where(.svelte-7dfsuh) .item.header:where(.svelte-7dfsuh) {position:absolute;top:0;left:0;right:0;min-width:max-content;display:flex;justify-content:space-between;border-bottom:var(--divider-border);}.header.svelte-7dfsuh .title:where(.svelte-7dfsuh) {margin-left:8px;}.sub-menu.svelte-7dfsuh .item {padding:var(--item-padding-vertical) 12px;padding-right:22px;}.items.svelte-7dfsuh .item:first-child:not(.mobile) {padding-top:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item:last-child:not(.mobile) {padding-bottom:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item.mobile:first-child {padding-top:var(--edge-item-padding-vertical-mobile);}.items.svelte-7dfsuh .item.mobile:last-child {padding-bottom:var(--edge-item-padding-vertical-mobile);}.sub-menu.svelte-7dfsuh .item.bottomBordered {border-bottom:var(--divider-border);}.sub-menu.svelte-7dfsuh .item .sublabel {line-height:14px;font-size:12px;}.sub-menu.svelte-7dfsuh .item:not(.mobile) .label,
|
|
305
|
-
.item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function Tm(t,e){U(e,!0),q(t,E4);let[i,o]=Be(),n=()=>S($,"$isFullscreen",i),a=()=>S(u,"$playerSize",i),s=f(e,"isMobile",3,!1),d=f(e,"playerControlsHeight",3,0),l=f(e,"ariaLabelReturnFromSubMenu",19,()=>F("aria_label_submenu_back")),p=f(e,"listRef",15);Ft(()=>{let Y=e.items.findIndex(fe=>fe.selected);p().children[Y+1].focus()});let m=Se(),$=m.ui.isFullscreen,u=m.ui.playerSize,_=J(void 0),w=J(0),y=J(0),C=v(()=>s()&&n()?`max-height: ${Math.round(a().height*.6)}px`:s()?"":`max-height: ${a().height-32-r(y)-d()}px; overflow: auto;`),T=v(()=>Math.max(e.minWidth,r(w)));var E=k4();let P;var A=h(E);let I;A.__keydown=[C4,e];var V=h(A);let H;V.__click=[T4,e],V.__keydown=[I4,e];var j=h(V);Cs(j,{direction:"left"});var O=M(j,2),X=h(O,!0);g(O),g(V),ft(V,Y=>B(_,Y),()=>r(_));var ne=M(V,2);Ti(ne,17,()=>e.items,Ql,(Y,fe)=>{var le=Fe(),Me=ue(le);{var Ae=ae=>{wm(ae,{get item(){return r(fe)},get isMobile(){return s()}})},me=(ae,Pe)=>{{var re=D=>{Sm(D,{get isMobile(){return s()},get item(){return r(fe)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};R(ae,D=>{r(fe).type==="OPEN_SUB_MENU"&&D(re)},Pe)}};R(Me,ae=>{r(fe).type==="SELECT_VALUE"?ae(Ae):ae(me,!1)})}b(Y,le)}),g(A),ft(A,Y=>p(Y),()=>p()),g(E),k((Y,fe,le)=>{P=ee(E,1,"sub-menu menu svelte-7dfsuh",null,P,Y),He(E,"data-testid",`sub-menu-${e.id}`),it(E,`min-width: ${r(T)}px`),I=ee(A,1,"items svelte-7dfsuh",null,I,fe),it(A,r(C)),H=ee(V,1,"item header back svelte-7dfsuh",null,H,le),He(V,"aria-label",l()),ge(X,e.title)},[()=>({desktop:!s(),mobile:s()}),()=>({mobile:s()}),()=>({mobile:s()})]),Or(V,"clientWidth",Y=>B(w,Y)),Or(V,"clientHeight",Y=>B(y,Y)),b(t,E),z(),o()}at(["keydown","click"]);var T1=require("@vkontakte/videoplayer-shared/es2018");var P4=(t,e)=>Yc(t,e()),A4=(t,e)=>{t.stopPropagation(),e()()},M4=L('<div class="value svelte-1ikfjte"> </div>'),L4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),V4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function Im(t,e){U(e,!0),q(t,V4);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,T1.noop),n=f(e,"valueComponent",3,void 0),a=f(e,"ref",15);var s=L4();let d;s.__click=[A4,o],s.__keydown=[P4,o];var l=h(s),p=h(l);{var m=T=>{va(T,{get icon(){return e.icon}})},$=T=>{var E=Fe();let P=v(()=>e.icon);var A=ue(E);Ii(A,()=>r(P),(I,V)=>{V(I,{})}),b(T,E)};R(p,T=>{typeof e.icon=="string"?T(m):T($,!1)})}g(l);var u=M(l,2),_=h(u,!0);g(u);var w=M(u,2);{var y=T=>{var E=Fe();let P=v(n);var A=ue(E);Ii(A,()=>r(P),(I,V)=>{V(I,{})}),b(T,E)},C=T=>{var E=M4(),P=h(E,!0);g(E),k(()=>ge(P,e.value)),b(T,E)};R(w,T=>{n()?T(y):T(C,!1)})}g(s),ft(s,T=>a(T),()=>a()),k(T=>{d=ee(s,1,"item",null,d,T),He(s,"aria-label",e.ariaLabel),He(s,"data-testid",e.id),ge(_,e.label)},[()=>({mobile:i()})]),b(t,s),z()}at(["click","keydown"]);var km=require("@vkontakte/videoplayer-shared/es2018");var R4=(t,e)=>{ol(t,()=>e())},N4=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),D4=L('<img class="icon" aria-hidden="true">'),B4=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),O4={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Em(t,e){U(e,!0),q(t,O4);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,km.noop),n=f(e,"closeSettings",3,km.noop),a=J(!1),s=()=>{B(a,!0)},d=C=>{C==null||C.stopPropagation(),o()(),n()()};var l=B4();let p;l.__click=d,l.__keydown=[R4,d];var m=h(l),$=h(m);{var u=C=>{var T=Fe(),E=ue(T);{var P=I=>{var V=N4();b(I,V)},A=I=>{var V=D4();k(()=>He(V,"src",e.icon)),St("error",V,s),qs(V),b(I,V)};R(E,I=>{r(a)?I(P):I(A,!1)})}b(C,T)},_=C=>{var T=Fe();let E=v(()=>e.icon);var P=ue(T);Ii(P,()=>r(E),(A,I)=>{I(A,{})}),b(C,T)};R($,C=>{typeof e.icon=="string"?C(u):C(_,!1)})}g(m);var w=M(m,2),y=h(w,!0);g(w),g(l),k(C=>{var T;p=ee(l,1,"item",null,p,C),He(l,"aria-label",(T=e.ariaLabel)!=null?T:e.label),He(l,"data-testid",e.id),ge(y,e.label)},[()=>({mobile:i()})]),b(t,l),z()}at(["click","keydown"]);var I1=require("@vkontakte/videoplayer-shared/es2018");var H4=L('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),F4={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 Pm(t,e){q(t,F4);let i=f(e,"enabled",3,!1);var o=H4(),n=h(o);let a;_e(2),g(o),k(s=>a=ee(n,1,"toggle svelte-17wbjko",null,a,s),[()=>({on:i()})]),b(t,o)}var U4=(t,e,i)=>{Wh(t,e(),o=>i()(o))},z4=(t,e,i)=>{t.stopPropagation(),e()(!i())},q4=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),W4=L('<li role="menuitem" tabindex="0"><!></li>');function Am(t,e){U(e,!0);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,I1.noop),n=f(e,"enabled",3,!1),a=f(e,"tooltipText",3,void 0),s=f(e,"maxTooltipWidth",3,void 0);var d=W4();let l;d.__click=[z4,o,n],d.__keydown=[U4,n,o];var p=h(d);da(p,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return s()},children:(m,$)=>{var u=q4();let _;var w=h(u),y=h(w);{var C=I=>{va(I,{get icon(){return e.icon}})},T=I=>{var V=Fe();let H=v(()=>e.icon);var j=ue(V);Ii(j,()=>r(H),(O,X)=>{X(O,{})}),b(I,V)};R(y,I=>{typeof e.icon=="string"?I(C):I(T,!1)})}g(w);var E=M(w,2),P=h(E,!0);g(E);var A=M(E,2);Pm(A,{get enabled(){return n()}}),g(u),k(I=>{_=ee(u,1,"switch-wrapper",null,_,I),ge(P,e.label)},[()=>({mobile:i()})]),b(m,u)},$$slots:{default:!0}}),g(d),k(m=>{var $;l=ee(d,1,"item switch-item",null,l,m),He(d,"aria-label",($=e.ariaLabel)!=null?$:e.label),He(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),z()}at(["click","keydown"]);var zd=require("@vkontakte/videoplayer-shared/es2018");var k1=()=>{let t=J(pe([])),e=v(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{B(t,pe(r(t).slice(0,-1)))},popAllSubMenus:()=>{B(t,pe([]))}}};var K4=L('<div class="quality-icon svelte-t2qk8t"><!></div>'),Q4=L('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),G4={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 $a(t,e){U(e,!0),q(t,G4);let i=f(e,"isSubCase",3,!1),o=v(()=>eu(e.quality));var n=Q4(),a=h(n);let s;var d=h(a,!0);g(a);var l=M(a,2);{var p=m=>{var $=K4();let u=v(()=>r(o));var _=h($);Ii(_,()=>r(u),(w,y)=>{y(w,{})}),g($),b(m,$)};R(l,m=>{r(o)&&!e.isMobile&&m(p)})}g(n),k(m=>{s=ee(a,1,"svelte-t2qk8t",null,s,m),ge(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,n),z()}var M1=require("@vkontakte/videoplayer-shared/es2018");var Mm=require("@vkontakte/videoplayer-core/es2018");var E1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},P1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=E1({quality:t,availableQualities:e});return i?t===Mm.VideoQuality.INVARIANT?F("auto_quality_invariant"):F("auto_quality",{actual:o}):o},A1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Mm.VideoQuality.INVARIANT?i:`${i}${E1({quality:t,availableQualities:e})}`:"...";var j4=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),Y4={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function ml(t,e){U(e,!0),q(t,Y4);let[i,o]=Be(),n=()=>S(l,"$currentQuality$",i),a=()=>S(p,"$availableQualities$",i),s=()=>S(m,"$isMobile$",i),d=Se(),l=d.state.currentQuality$,p=d.state.availableQualities$,m=d.ui.isMobile,$=" \xB7 ",u=v(()=>e.prefix+(e.selected&&n()!==M1.VideoQuality.INVARIANT?$:"")),_=v(()=>A1({prefix:r(u),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var w=j4(),y=h(w);let C=v(()=>e.selected?n():void 0);$a(y,{get quality(){return r(C)},get label(){return r(_)},get isMobile(){return s()},isSubCase:!0}),g(w),b(t,w),z(),o()}var Z4=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,n="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",a=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${n}|${a}`,"g")},X4={br:!0,span:!0},Lm=(t,e={})=>{var d,l,p,m,$,u,_;if(!t)return t;let i={...X4,...e},o=Object.keys(i);if(!o.length)return t;let n=Z4(o),a=[],s=0;for(let w of t.matchAll(n)){let y=w[0],C=((d=w.groups)==null?void 0:d.keyhtml)||((l=w.groups)==null?void 0:l.keyi18n)||((p=w.groups)==null?void 0:p.keyhtmlself)||((m=w.groups)==null?void 0:m.keyi18nself)||"",{index:T}=w;if(!i[C]){a.push(t.slice(s,T)),s=T+y.length;continue}let E=($=w.groups)!=null&&$.childrenhtml?Lm(w.groups.childrenhtml,i):"",P=(u=w.groups)!=null&&u.childrenhtml?y.replace(new RegExp((_=w.groups)==null?void 0:_.childrenhtml),()=>E||""):y;a.push(t.slice(s,T),P),s=T+y.length}return s===0?t:(a.push(t.slice(s)),a.join(""))};function Ud(t,e){U(e,!1);let i=f(e,"message",8),o=Lm(i());_r();var n=Fe(),a=ue(n);{var s=d=>{var l=Fe(),p=ue(l);Gl(p,()=>o,!1,!1),b(d,l)};R(a,d=>{o&&d(s)})}b(t,n),z()}var J4=L('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),e3={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 Vm(t,e){U(e,!1),q(t,e3),_r();var i=J4(),o=h(i);let n=vr(()=>F("quality_applience",{action:`<span>${F("quality_applience_action")}</span>`}));Ud(o,{get message(){return r(n)}}),g(i),b(t,i),z()}var V1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:ml,valueComponentParams:{prefix:F("other_quality"),selected:o},children:"QUALITY"}},Rm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:F("auto_quality_limit"),valueComponent:e?ml:void 0,valueComponentParams:{prefix:F("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),R1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Vm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Nm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:F("high_quality"),valueComponent:t?ml:void 0,valueComponentParams:{prefix:F("high_quality"),selected:i},sublabel:F("high_quality_description")}),Dm=({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:F("traffic_saving_quality"),valueComponent:t?ml:void 0,valueComponentParams:{prefix:F("traffic_saving_quality"),selected:i},sublabel:F("traffic_saving_quality_description")});var vu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),gu=(t,e)=>{var s;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(s=lu(i))!=null?s:i),o&&i&&n){let d=e.filter(l=>l.label===o&&l.language===i);if(d.length===1)return F("audio_stream_display_language_label",{language:n,label:o});{let l=vu(t,d);return F("audio_stream_display_language_label_index",{language:n,label:o,index:l})}}if(o){let d=e.filter(l=>l.label===o);if(d.length===1)return o;{let l=vu(t,d);return F("audio_stream_display_label_index",{label:o,index:l})}}if(i&&n){let d=e.filter(l=>l.language===i);if(d.length===1)return n;{let l=vu(t,d);return F("audio_stream_display_language_index",{language:n,index:l})}}let a=vu(t,e);return F("audio_stream_display_unknown",{index:a})};var t3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,a=[];return i&&a.push({handler:Rm,selected:e&&!o&&!n||!1}),a.push({handler:Dm,selected:o},{handler:Nm,selected:n}),{title:F("submenu_quality"),id:"QUALITY_DETAILS",items:[R1(t),...a.map(({handler:s,selected:d})=>s({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),V1(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:F("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:$a,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:a=>e(a,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:F("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Rm,selected:((i=Hc())==null?void 0:i.type)==="auto_quality"},{handler:Dm,selected:((o=Hc())==null?void 0:o.type)==="traffic_saving"},{handler:Nm,selected:((n=Hc())==null?void 0:n.type)==="high_quality"}].map(({handler:a,selected:s})=>a({labelWithQuality:!1,appliesTo:"as-default",selected:s},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:F("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:gu(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:F("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:F("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i,selectItem:e,selected:i.selected,label:i.displayValue}))})},N1=({subMenuId:t,context:e})=>t?[t3[t](e)]:[];var i3=be('<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 Bm(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=i3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img",...i})),b(t,o)}var o3=be('<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 Om(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=o3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",role:"img",...i})),b(t,o)}var n3=be('<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 Hm(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=n3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i})),b(t,o)}var r3=be('<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 Fm(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=r3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img",...i})),b(t,o)}var s3=be('<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 Um(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=s3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img",...i})),b(t,o)}var a3=be('<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 hu(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=a3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img",...i})),b(t,o)}var l3=be('<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 zm(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=l3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img",...i})),b(t,o)}var d3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),c3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function qm(t,e){U(e,!0),q(t,c3);let[i,o]=Be(),n=()=>S(p,"$currentQuality$",i),a=()=>S(m,"$availableQualities$",i),s=()=>S($,"$isAutoQualityEnabled$",i),d=()=>S(u,"$isMobile$",i),l=Se(),p=l.state.currentQuality$,m=l.state.availableQualities$,$=l.state.isAutoQualityEnabled$,u=l.ui.isMobile,_=v(()=>P1({quality:n(),availableQualities:a(),isAutoQualityEnabled:s()}));var w=d3(),y=h(w);$a(y,{get quality(){return n()},get label(){return r(_)},get isMobile(){return d()}}),g(w),b(t,w),z(),o()}var p3={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?F("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_quality",{actual:o}),icon:gd,label:F("menu_quality"),value:e,valueComponent:qm,weight:xr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:xr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:t?F("aria_label_submenu_traffic_saving_off"):`${F("aria_label_submenu_traffic_saving_on")}. ${F("traffic_saving_helper_text")}`,icon:Bm,label:F("menu_traffic_saving"),enabled:t,tooltipText:F("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=gu(t,e);return{id:"AUDIO_LANGUAGES",weight:xr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_audio_languages",{actual:i}),icon:Om,label:F("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:xr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_rate",{actual:i}),icon:Hm,label:F("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:xr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_subtitle",{actual:t.displayValue}),icon:hd,label:F("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:xr.download,type:"CLICK",onClick:t,label:F("download_video_caption"),ariaLabel:F("aria_label_menu_download"),icon:Fm}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:xr.report,type:"CLICK",onClick:t,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,icon:Um,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:xr["copy-data"],type:"CLICK",onClick:t,label:F("menu_copy_debug"),ariaLabel:F("menu_copy_debug"),icon:hu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:xr["save-trace-info"],type:"CLICK",onClick:t,label:F("menu_save_debug"),ariaLabel:F("menu_save_debug"),icon:hu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t,debugPanelVisible:e})=>({id:"DEBUG_INFO",weight:xr["debug-info"],type:"CLICK",onClick:t,label:e?F("aria_label_menu_debug_overlay_disable"):F("aria_label_menu_debug_overlay_enable"),ariaLabel:F("menu_debug_overlay"),icon:zm,isHiddenFor:["desktop"]})},D1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>p3[n](e)),...i.map(n=>({...n,isAdditional:!0}))].filter(n=>{var a,s,d;return!((a=n==null?void 0:n.isHiddenFor)!=null&&a.length)||!((s=n==null?void 0:n.isHiddenFor)!=null&&s.includes("desktop"))&&!o||!((d=n==null?void 0:n.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(na)};var m3=(t,e)=>{jc(t,e)},v3=L('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),g3=L('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),h3=L("<div><!> <!></div>"),_3={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
|
|
305
|
+
.item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function Em(t,e){U(e,!0),K(t,L4);let[i,o]=Ne(),n=()=>S(y,"$isFullscreen",i),a=()=>S(u,"$playerSize",i),s=f(e,"isMobile",3,!1),d=f(e,"playerControlsHeight",3,0),l=f(e,"ariaLabelReturnFromSubMenu",19,()=>q("aria_label_submenu_back")),p=f(e,"listRef",15);Ut(()=>{let Z=e.items.findIndex(re=>re.selected);p().children[Z+1].focus()});let m=Ce(),y=m.ui.isFullscreen,u=m.ui.playerSize,$=X(void 0),w=X(0),b=X(0),C=v(()=>s()&&n()?`max-height: ${Math.round(a().height*.6)}px`:s()?"":`max-height: ${a().height-32-r(b)-d()}px; overflow: auto;`),T=v(()=>Math.max(e.minWidth,r(w)));var I=M4();let M;var P=h(I);let k;P.__keydown=[E4,e];var R=h(P);let W;R.__click=[P4,e],R.__keydown=[A4,e];var Y=h(R);Cs(Y,{direction:"left"});var F=A(Y,2),Q=h(F,!0);g(F),g(R),gt(R,Z=>D($,Z),()=>r($));var oe=A(R,2);Ci(oe,17,()=>e.items,Kl,(Z,re)=>{var de=Oe(),Ae=ue(de);{var Me=se=>{Tm(se,{get item(){return r(re)},get isMobile(){return s()}})},ge=(se,Ee)=>{{var ne=V=>{Im(V,{get isMobile(){return s()},get item(){return r(re)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};B(se,V=>{r(re).type==="OPEN_SUB_MENU"&&V(ne)},Ee)}};B(Ae,se=>{r(re).type==="SELECT_VALUE"?se(Me):se(ge,!1)})}_(Z,de)}),g(P),gt(P,Z=>p(Z),()=>p()),g(I),E((Z,re,de)=>{M=J(I,1,"sub-menu menu svelte-7dfsuh",null,M,Z),Be(I,"data-testid",`sub-menu-${e.id}`),st(I,`min-width: ${r(T)}px`),k=J(P,1,"items svelte-7dfsuh",null,k,re),st(P,r(C)),W=J(R,1,"item header back svelte-7dfsuh",null,W,de),Be(R,"aria-label",l()),me(Q,e.title)},[()=>({desktop:!s(),mobile:s()}),()=>({mobile:s()}),()=>({mobile:s()})]),Dr(R,"clientWidth",Z=>D(w,Z)),Dr(R,"clientHeight",Z=>D(b,Z)),_(t,I),z(),o()}at(["keydown","click"]);var E1=require("@vkontakte/videoplayer-shared/es2018");var V4=(t,e)=>jc(t,e()),R4=(t,e)=>{t.stopPropagation(),e()()},B4=L('<div class="value svelte-1ikfjte"> </div>'),N4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),D4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function Pm(t,e){U(e,!0),K(t,D4);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,E1.noop),n=f(e,"valueComponent",3,void 0),a=f(e,"ref",15);var s=N4();let d;s.__click=[R4,o],s.__keydown=[V4,o];var l=h(s),p=h(l);{var m=T=>{ma(T,{get icon(){return e.icon}})},y=T=>{var I=Oe();let M=v(()=>e.icon);var P=ue(I);Ti(P,()=>r(M),(k,R)=>{R(k,{})}),_(T,I)};B(p,T=>{typeof e.icon=="string"?T(m):T(y,!1)})}g(l);var u=A(l,2),$=h(u,!0);g(u);var w=A(u,2);{var b=T=>{var I=Oe();let M=v(n);var P=ue(I);Ti(P,()=>r(M),(k,R)=>{R(k,{})}),_(T,I)},C=T=>{var I=B4(),M=h(I,!0);g(I),E(()=>me(M,e.value)),_(T,I)};B(w,T=>{n()?T(b):T(C,!1)})}g(s),gt(s,T=>a(T),()=>a()),E(T=>{d=J(s,1,"item",null,d,T),Be(s,"aria-label",e.ariaLabel),Be(s,"data-testid",e.id),me($,e.label)},[()=>({mobile:i()})]),_(t,s),z()}at(["click","keydown"]);var Am=require("@vkontakte/videoplayer-shared/es2018");var O4=(t,e)=>{sl(t,()=>e())},H4=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),F4=L('<img class="icon" aria-hidden="true">'),U4=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),z4={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Mm(t,e){U(e,!0),K(t,z4);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,Am.noop),n=f(e,"closeSettings",3,Am.noop),a=X(!1),s=()=>{D(a,!0)},d=C=>{C==null||C.stopPropagation(),o()(),n()()};var l=U4();let p;l.__click=d,l.__keydown=[O4,d];var m=h(l),y=h(m);{var u=C=>{var T=Oe(),I=ue(T);{var M=k=>{var R=H4();_(k,R)},P=k=>{var R=F4();E(()=>Be(R,"src",e.icon)),kt("error",R,s),zs(R),_(k,R)};B(I,k=>{r(a)?k(M):k(P,!1)})}_(C,T)},$=C=>{var T=Oe();let I=v(()=>e.icon);var M=ue(T);Ti(M,()=>r(I),(P,k)=>{k(P,{})}),_(C,T)};B(y,C=>{typeof e.icon=="string"?C(u):C($,!1)})}g(m);var w=A(m,2),b=h(w,!0);g(w),g(l),E(C=>{var T;p=J(l,1,"item",null,p,C),Be(l,"aria-label",(T=e.ariaLabel)!=null?T:e.label),Be(l,"data-testid",e.id),me(b,e.label)},[()=>({mobile:i()})]),_(t,l),z()}at(["click","keydown"]);var P1=require("@vkontakte/videoplayer-shared/es2018");var q4=L('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),W4={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 Lm(t,e){K(t,W4);let i=f(e,"enabled",3,!1);var o=q4(),n=h(o);let a;$e(2),g(o),E(s=>a=J(n,1,"toggle svelte-17wbjko",null,a,s),[()=>({on:i()})]),_(t,o)}var K4=(t,e,i)=>{Gh(t,e(),o=>i()(o))},Q4=(t,e,i)=>{t.stopPropagation(),e()(!i())},G4=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),Y4=L('<li role="menuitem" tabindex="0"><!></li>');function Vm(t,e){U(e,!0);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,P1.noop),n=f(e,"enabled",3,!1),a=f(e,"tooltipText",3,void 0),s=f(e,"maxTooltipWidth",3,void 0);var d=Y4();let l;d.__click=[Q4,o,n],d.__keydown=[K4,n,o];var p=h(d);la(p,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return s()},children:(m,y)=>{var u=G4();let $;var w=h(u),b=h(w);{var C=k=>{ma(k,{get icon(){return e.icon}})},T=k=>{var R=Oe();let W=v(()=>e.icon);var Y=ue(R);Ti(Y,()=>r(W),(F,Q)=>{Q(F,{})}),_(k,R)};B(b,k=>{typeof e.icon=="string"?k(C):k(T,!1)})}g(w);var I=A(w,2),M=h(I,!0);g(I);var P=A(I,2);Lm(P,{get enabled(){return n()}}),g(u),E(k=>{$=J(u,1,"switch-wrapper",null,$,k),me(M,e.label)},[()=>({mobile:i()})]),_(m,u)},$$slots:{default:!0}}),g(d),E(m=>{var y;l=J(d,1,"item switch-item",null,l,m),Be(d,"aria-label",(y=e.ariaLabel)!=null?y:e.label),Be(d,"data-testid",e.id)},[()=>({mobile:i()})]),_(t,d),z()}at(["click","keydown"]);var Ud=require("@vkontakte/videoplayer-shared/es2018");var A1=()=>{let t=X(pe([])),e=v(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{D(t,pe(r(t).slice(0,-1)))},popAllSubMenus:()=>{D(t,pe([]))}}};var j4=L('<div class="quality-icon svelte-t2qk8t"><!></div>'),Z4=L('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),X4={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 ba(t,e){U(e,!0),K(t,X4);let i=f(e,"isSubCase",3,!1),o=v(()=>eu(e.quality));var n=Z4(),a=h(n);let s;var d=h(a,!0);g(a);var l=A(a,2);{var p=m=>{var y=j4();let u=v(()=>r(o));var $=h(y);Ti($,()=>r(u),(w,b)=>{b(w,{})}),g(y),_(m,y)};B(l,m=>{r(o)&&!e.isMobile&&m(p)})}g(n),E(m=>{s=J(a,1,"svelte-t2qk8t",null,s,m),me(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),_(t,n),z()}var R1=require("@vkontakte/videoplayer-shared/es2018");var Rm=require("@vkontakte/videoplayer-core/es2018");var M1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},L1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=M1({quality:t,availableQualities:e});return i?t===Rm.VideoQuality.INVARIANT?q("auto_quality_invariant"):q("auto_quality",{actual:o}):o},V1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Rm.VideoQuality.INVARIANT?i:`${i}${M1({quality:t,availableQualities:e})}`:"...";var J4=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),e3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function hl(t,e){U(e,!0),K(t,e3);let[i,o]=Ne(),n=()=>S(l,"$currentQuality$",i),a=()=>S(p,"$availableQualities$",i),s=()=>S(m,"$isMobile$",i),d=Ce(),l=d.state.currentQuality$,p=d.state.availableQualities$,m=d.ui.isMobile,y=" \xB7 ",u=v(()=>e.prefix+(e.selected&&n()!==R1.VideoQuality.INVARIANT?y:"")),$=v(()=>V1({prefix:r(u),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var w=J4(),b=h(w);let C=v(()=>e.selected?n():void 0);ba(b,{get quality(){return r(C)},get label(){return r($)},get isMobile(){return s()},isSubCase:!0}),g(w),_(t,w),z(),o()}var t3=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,n="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",a=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${n}|${a}`,"g")},i3={br:!0,span:!0},Bm=(t,e={})=>{var d,l,p,m,y,u,$;if(!t)return t;let i={...i3,...e},o=Object.keys(i);if(!o.length)return t;let n=t3(o),a=[],s=0;for(let w of t.matchAll(n)){let b=w[0],C=((d=w.groups)==null?void 0:d.keyhtml)||((l=w.groups)==null?void 0:l.keyi18n)||((p=w.groups)==null?void 0:p.keyhtmlself)||((m=w.groups)==null?void 0:m.keyi18nself)||"",{index:T}=w;if(!i[C]){a.push(t.slice(s,T)),s=T+b.length;continue}let I=(y=w.groups)!=null&&y.childrenhtml?Bm(w.groups.childrenhtml,i):"",M=(u=w.groups)!=null&&u.childrenhtml?b.replace(new RegExp(($=w.groups)==null?void 0:$.childrenhtml),()=>I||""):b;a.push(t.slice(s,T),M),s=T+b.length}return s===0?t:(a.push(t.slice(s)),a.join(""))};function Fd(t,e){U(e,!1);let i=f(e,"message",8),o=Bm(i());xr();var n=Oe(),a=ue(n);{var s=d=>{var l=Oe(),p=ue(l);Ql(p,()=>o,!1,!1),_(d,l)};B(a,d=>{o&&d(s)})}_(t,n),z()}var o3=L('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),n3={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 Nm(t,e){U(e,!1),K(t,n3),xr();var i=o3(),o=h(i);let n=br(()=>q("quality_applience",{action:`<span>${q("quality_applience_action")}</span>`}));Fd(o,{get message(){return r(n)}}),g(i),_(t,i),z()}var N1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:hl,valueComponentParams:{prefix:q("other_quality"),selected:o},children:"QUALITY"}},Dm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:q("auto_quality_limit"),valueComponent:e?hl:void 0,valueComponentParams:{prefix:q("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),D1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Nm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Om=({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?hl:void 0,valueComponentParams:{prefix:q("high_quality"),selected:i},sublabel:q("high_quality_description")}),Hm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"QUALITY_TRAFFIC_SAVING",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:q("traffic_saving_quality"),valueComponent:t?hl:void 0,valueComponentParams:{prefix:q("traffic_saving_quality"),selected:i},sublabel:q("traffic_saving_quality_description")});var gu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),hu=(t,e)=>{var s;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(s=lu(i))!=null?s:i),o&&i&&n){let d=e.filter(l=>l.label===o&&l.language===i);if(d.length===1)return q("audio_stream_display_language_label",{language:n,label:o});{let l=gu(t,d);return q("audio_stream_display_language_label_index",{language:n,label:o,index:l})}}if(o){let d=e.filter(l=>l.label===o);if(d.length===1)return o;{let l=gu(t,d);return q("audio_stream_display_label_index",{label:o,index:l})}}if(i&&n){let d=e.filter(l=>l.language===i);if(d.length===1)return n;{let l=gu(t,d);return q("audio_stream_display_language_index",{language:n,index:l})}}let a=gu(t,e);return q("audio_stream_display_unknown",{index:a})};var r3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,a=[];return i&&a.push({handler:Dm,selected:e&&!o&&!n||!1}),a.push({handler:Hm,selected:o},{handler:Om,selected:n}),{title:q("submenu_quality"),id:"QUALITY_DETAILS",items:[D1(t),...a.map(({handler:s,selected:d})=>s({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),N1(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:ba,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:a=>e(a,"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:Dm,selected:((i=Hc())==null?void 0:i.type)==="auto_quality"},{handler:Hm,selected:((o=Hc())==null?void 0:o.type)==="traffic_saving"},{handler:Om,selected:((n=Hc())==null?void 0:n.type)==="high_quality"}].map(({handler:a,selected:s})=>a({labelWithQuality:!1,appliesTo:"as-default",selected:s},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:hu(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:q("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),SUBTITLES:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"SUBTITLES",minWidth:164,title:q("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===cu?"sub_off":void 0}))})},O1=({subMenuId:t,context:e})=>t?[r3[t](e)]:[];var s3=ye('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z" clip-rule="evenodd"></path></svg>');function Fm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=s3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img",...i})),_(t,o)}var a3=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"></path></svg>');function Um(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=a3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",role:"img",...i})),_(t,o)}var l3=ye('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" fill-rule="nonzero" d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"></path></g></svg>');function zm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=l3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i})),_(t,o)}var d3=ye('<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 qm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=d3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img",...i})),_(t,o)}var c3=ye('<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 Wm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=c3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img",...i})),_(t,o)}var u3=ye('<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 _u(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=u3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img",...i})),_(t,o)}var p3=ye('<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=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=p3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img",...i})),_(t,o)}var f3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),m3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Qm(t,e){U(e,!0),K(t,m3);let[i,o]=Ne(),n=()=>S(p,"$currentQuality$",i),a=()=>S(m,"$availableQualities$",i),s=()=>S(y,"$isAutoQualityEnabled$",i),d=()=>S(u,"$isMobile$",i),l=Ce(),p=l.state.currentQuality$,m=l.state.availableQualities$,y=l.state.isAutoQualityEnabled$,u=l.ui.isMobile,$=v(()=>L1({quality:n(),availableQualities:a(),isAutoQualityEnabled:s()}));var w=f3(),b=h(w);ba(b,{get quality(){return n()},get label(){return r($)},get isMobile(){return d()}}),g(w),_(t,w),z(),o()}var g3={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:vd,label:q("menu_quality"),value:e,valueComponent:Qm,weight:Tr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Tr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:q("aria_label_submenu_traffic_saving"),icon:Fm,label:q("menu_traffic_saving"),enabled:t,tooltipText:q("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=hu(t,e);return{id:"AUDIO_LANGUAGES",weight:Tr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_audio_languages",{actual:i}),icon:Um,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:Tr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_rate",{actual:i}),icon:zm,label:q("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Tr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_subtitle",{actual:t.displayValue}),icon:gd,label:q("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Tr.download,type:"CLICK",onClick:t,label:q("download_video_caption"),ariaLabel:q("aria_label_menu_download"),icon:qm}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Tr.report,type:"CLICK",onClick:t,label:q("menu_report"),ariaLabel:`${q("menu_report")}. ${q("aria_label_new_tab_alert")}`,icon:Wm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Tr["copy-data"],type:"CLICK",onClick:t,label:q("menu_copy_debug"),ariaLabel:q("menu_copy_debug"),icon:_u,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Tr["save-trace-info"],type:"CLICK",onClick:t,label:q("menu_save_debug"),ariaLabel:q("menu_save_debug"),icon:_u,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Tr["debug-info"],type:"CLICK",onClick:t,label:q("aria_label_menu_debug_overlay"),ariaLabel:q("menu_debug_overlay"),icon:Km,isHiddenFor:["desktop"]})},H1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>g3[n](e)),...i.map(n=>({...n,isAdditional:!0}))].filter(n=>{var a,s,d;return!((a=n==null?void 0:n.isHiddenFor)!=null&&a.length)||!((s=n==null?void 0:n.isHiddenFor)!=null&&s.includes("desktop"))&&!o||!((d=n==null?void 0:n.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(oa)};var _3=(t,e)=>{Yc(t,e)},b3=L('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),$3=L('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),y3=L("<div><!> <!></div>"),x3={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 {
|
|
306
306
|
/* \u043D\u0443\u0436\u043D\u043E \u0447\u0442\u043E\u0431 \u043C\u0435\u043D\u044E \u043D\u0435 \u0441\u043A\u0430\u043A\u0430\u043B\u043E \u0432 \u0448\u0438\u0440\u0438\u043D\u0435 \u043F\u0440\u0438 \u0441\u043C\u0435\u043D\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u044F, \u043E\u0441\u043E\u0431\u043E \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u043E \u043F\u0440\u0438 \u0430\u0432\u0442\u043E \u0440\u0435\u0436\u0438\u043C\u0435 */min-width:300px;}.settings-menu-container.svelte-17or3al .menu.mobile {width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px;}.settings-menu-container.svelte-17or3al .menu.mobile.hidden {display:none;}.settings-menu-container.svelte-17or3al .menu .item:not(.switch-item),
|
|
307
307
|
.settings-menu-container.svelte-17or3al .menu .switch-wrapper {align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;white-space:nowrap;position:relative;}.settings-menu-container.svelte-17or3al .menu .item:hover {background-color:var(--settings-item-bg-hover);}.settings-menu-container.svelte-17or3al .menu .item.mobile:hover {background:var(--mobile-settings-bg);}.settings-menu.svelte-17or3al .item:not(.switch-item),
|
|
308
308
|
.settings-menu.svelte-17or3al .switch-wrapper {padding:0 32px 0 18px;}.settings-menu.svelte-17or3al .item.mobile:not(.switch-item),
|
|
309
|
-
.settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function
|
|
309
|
+
.settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function zd(t,e){U(e,!0),K(t,x3);let[i,o]=Ne(),n=()=>S(De,"$settingsMenuVisible",i),a=()=>S(Ze,"$settingsMenuOpenedByKeyboard",i),s=()=>S(Ct,"$debugPanelVisible",i),d=()=>S(Ve,"$isMobile",i),l=()=>S(nt,"$playerSize",i),p=()=>S(ee,"$hasMpegSources$",i),m=()=>S(Ie,"$mobileNotReportControlHidden$",i),y=()=>S(ne,"$autoQualityLimitingAvailable$",i),u=()=>S(le,"$availableSubtitlesList$",i),$=()=>S(Ue,"$isLiveWithPlaybackSpeed",i),w=()=>S(ge,"$availableAudioStreams$",i),b=()=>S(ze,"$availablePlaybackRates$",i),C=()=>S(Me,"$currentAudioStream$",i),T=()=>S(_e,"$currentPlaybackRate$",i),I=()=>S(ct,"$trafficSavingEnabled",i),M=()=>S(se,"$currentQuality$",i),P=()=>S(V,"$isAutoQualityEnabled$",i),k=()=>S(H,"$currentSubtitle$",i),R=()=>S(Wt,"$additionalSettingsMenuItems$",i),W=()=>S(xe,"$isAutoQualityAvailable$",i),Y=()=>S(Ee,"$availableQualities$",i),F=()=>S(ut,"$highQualityEnabled",i),Q=f(e,"ref",15,void 0),oe=f(e,"playerControlsHeight",3,0),Z=pe({}),re=pe({}),de=Ce(),Ae=zt(),Me=de.state.audioStream$,ge=de.state.availableAudioStreams$,se=de.state.currentQuality$,Ee=de.state.availableQualities$,ne=de.state.autoQualityLimitingAvailable$,V=de.state.isAutoQualityEnabled$,xe=de.state.isAutoQualityAvailable$,_e=de.state.currentPlaybackRate$,ze=de.state.availablePlaybackRates$,H=de.state.currentSubtitle$,le=de.state.availableSubtitlesList$,he=de.state.canDownload,ee=de.state.hasMpegSources$,De=de.ui.settingsMenu.visible$,Ze=de.ui.settingsMenu.openedByBtnKeyboard$,we=de.ui.settingsMenu.ref$,Ve=de.ui.isMobile,Ie=de.ui.mobileNotReportControlHidden$,Ue=de.state.canChangePlaybackSpeed$,ct=de.state.trafficSavingEnabled$,ut=de.state.highQualityEnabled$,nt=de.ui.playerSize,Ct=de.ui.debugPanelVisible,mt=de.state.isInteractiveTime$,Wt=de.ui.additionalSettingsMenuItems$,ti=de.ui.t,Lt=de.actions.internal.downloadVideo,Nt=de.actions.internal.closeSettingsMenu,O=de.actions.internal.openSettingsSubMenu,be=de.actions.internal.closeSettingsSubMenu,te=X(!1),Re=X(void 0),je=A1();Fe(()=>{!n()&&je.current&&(be(re[je.current]),je.popAllSubMenus())}),Fe(()=>{n()||D(Re,void 0)}),Fe(()=>{!je.current&&r(Re)&&Kh(Z,r(Re))}),Fe(()=>{Q()&&we.set(Q())});async function Qe(Je){je.pushSubMenu(Je),await wo(),O(Je,re[Je])}function Le(Je){var Vt;Je==null||Je.stopPropagation(),a()||(Vt=e.returnFocus)==null||Vt.call(e),Nt(),D(te,!1)}function rt(Je,Vt){de.actions.internal.setQuality(Je,{appliesTo:Vt}),Le()}function et(Je){de.actions.internal.setAudioStream(Je),Le()}function _t(Je,Vt){de.actions.internal.setTrafficSavingEnabled(Je,Vt),Ae.features.qualityDetailsSubMenuEnabled&&Le()}function it(Je,Vt){de.actions.internal.setHighQualityEnabled(Je,Vt),Le()}function Xe(Je){de.actions.internal.setPlaybackRate(Je),Le()}function Kt(Je){de.actions.internal.setSubtitle(Je),Le()}function bt(){Lt()}function yi(){(0,Ud.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),de.actions.internal.reportProblem(),de.actions.internal.pause()}function Jt(){ol(de.actions.internal.getDebugTextData())}let Ge=()=>{let Je=de.actions.internal.getTraceTextData(),Vt=new Blob([...Je],{type:"application/json"}),po=window.URL.createObjectURL(Vt);Zs(po,"vk_player_trace_info","json")};function Yt(){Ct.set(!s())}function Vi(){D(te,!0)}function Oi(){D(te,!1)}function uo(){return d()?`max-height: ${Math.round(l().height*.6)}px`:`max-height: ${l().height-32-oe()}px; overflow: auto;`}let ji=v(()=>he&&p()&&!m()),ot=v(()=>Ae.features.trafficSaving&&!m()&&y()&&!Ae.features.qualityDetailsSubMenuEnabled),$t=v(()=>u().length>0&&!m()),ki=v(()=>!!$()&&!m()),eo=v(()=>Ae.features.audioLanguages&&w().length>=2&&!m()),To=v(()=>!m());Ut(()=>mt.subscribe(Je=>{Je&&!d()&&!r(te)&&!a()&&Le()}));let j=v(()=>{let Je=[r(To)&&"QUALITY_SETTINGS",r(eo)&&"AUDIO_LANGUAGES",r(ki)&&"PLAYBACK_RATE",r($t)&&"SUBTITLES",r(ot)&&"TRAFFIC_SAVING_SWITCH",r(ji)&&"DOWNLOAD",Ae.showSupport&&"SHOW_SUPPORT","COPY_DATA",Ae.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Vt=>!!Vt);return H1({items:Je,context:{qualityDetailsSubMenuEnabled:Ae.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:b(),currentAudioStream:C(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:Xe,trafficSavingEnabled:I(),toggleTrafficSaving:_t,currentQuality:M()||Ud.VideoQuality.INVARIANT,isAutoQualityEnabled:P()||!1,currentSubtitle:k(),isMobile:d(),onDownloadClick:bt,onCopyDataClick:Jt,onReportProblemClick:yi,onSaveTraceDataClick:Ge,toggleShowDebugInfo:Yt},additionalSettingsMenuItems:R()})}),jt=v(()=>O1({subMenuId:je.current,context:{availablePlaybackRates:b(),selectPlaybackRate:Xe,trafficSavingEnabled:I(),toggleTrafficSaving:_t,currentQuality:M()||Ud.VideoQuality.INVARIANT,isAutoQualityEnabled:P()||!1,isAutoQualityAvailable:W()||!1,availableQualities:Y(),highQualityEnabled:F(),toggleHighQuality:it,availableAudioStreams:w(),availableSubtitlesList:u(),closeSettingsMenu:Nt,currentAudioStream:C(),isMobile:d(),selectAudioLanguage:et,selectQuality:rt,selectSubtitle:Kt}}));var gi=y3();let Ri;var si=h(gi);{var pt=Je=>{var Vt=$3();let po;Vt.__keydown=[_3,Nt];var Zt=h(Vt);{var Un=ui=>{var Tt=b3();let Bi;var Uo=h(Tt),pi=h(Uo,!0);g(Uo);var zo=A(Uo,2);zo.__click=Le,g(Tt),E((Hi,Io)=>{Bi=J(Tt,1,"item header svelte-17or3al",null,Bi,Hi),me(pi,Io)},[()=>({mobile:d()}),()=>ti("submenu_settings")]),_(ui,Tt)};B(Zt,ui=>{d()&&ui(Un)})}var to=A(Zt,2);let Vo;Ci(to,21,()=>r(j),ui=>ui.id,(ui,Tt)=>{var Bi=Oe(),Uo=ue(Bi);{var pi=Hi=>{Pm(Hi,{get isMobile(){return d()},get id(){return r(Tt).id},get icon(){return r(Tt).icon},get label(){return r(Tt).label},get ariaLabel(){return r(Tt).ariaLabel},get value(){return r(Tt).value},get valueComponent(){return r(Tt).valueComponent},onClick:()=>{Qe(r(Tt).children),D(Re,pe(r(Tt).id))},get ref(){return Z[r(Tt).id]},set ref(Io){Z[r(Tt).id]=Io}})},zo=(Hi,Io)=>{{var Fi=fo=>{Mm(fo,{get isMobile(){return d()},get id(){return r(Tt).id},get onClick(){return r(Tt).onClick},get icon(){return r(Tt).icon},get label(){return r(Tt).label},get ariaLabel(){return r(Tt).ariaLabel},closeSettings:Le})},zn=(fo,En)=>{{var Ro=Bo=>{Vm(Bo,{get isMobile(){return d()},get id(){return r(Tt).id},get onClick(){return r(Tt).onClick},get icon(){return r(Tt).icon},get label(){return r(Tt).label},get ariaLabel(){return r(Tt).ariaLabel},get enabled(){return r(Tt).enabled},get tooltipText(){return r(Tt).tooltipText},get maxTooltipWidth(){return r(Tt).maxTooltipWidth}})};B(fo,Bo=>{r(Tt).type==="SWITCH"&&Bo(Ro)},En)}};B(Hi,fo=>{r(Tt).type==="CLICK"?fo(Fi):fo(zn,!1)},Io)}};B(Uo,Hi=>{r(Tt).type==="OPEN_SUB_MENU"?Hi(pi):Hi(zo,!1)})}_(ui,Bi)}),g(to),gt(to,ui=>Q(ui),()=>Q()),g(Vt),E((ui,Tt,Bi)=>{po=J(Vt,1,"settings-menu menu svelte-17or3al",null,po,ui),Vo=J(to,1,"items",null,Vo,Tt),st(to,Bi)},[()=>({desktop:!d(),mobile:d(),hidden:!!je.current}),()=>({mobile:d()}),uo]),kt("mouseenter",Vt,Vi),kt("mouseleave",Vt,Oi),_(Je,Vt)};B(si,Je=>{n()&&Je(pt)})}var mi=A(si,2);Ci(mi,17,()=>r(jt),Je=>Je.id,(Je,Vt)=>{let po=v(()=>{var Zt;return(Zt=r(Vt).minWidth)!=null?Zt:137});Em(Je,{get isMobile(){return d()},get playerControlsHeight(){return oe()},get returnFromSubMenu(){return je.popSubMenu},get id(){return r(Vt).id},get title(){return r(Vt).title},closeSettingsMenu:Nt,openSubMenuList:Qe,get items(){return r(Vt).items},get minWidth(){return r(po)},get refMenuItems(){return Z},get listRef(){return re[r(Vt).id]},set listRef(Zt){re[r(Vt).id]=Zt}})}),g(gi),E(Je=>Ri=J(gi,1,"settings-menu-container svelte-17or3al",null,Ri,Je),[()=>({mobile:d(),hidden:!n()})]),_(t,gi),z(),o()}at(["keydown","click"]);var w3=t=>t;function F1(t,{delay:e=0,duration:i=400,easing:o=w3}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*n}`}}var S3=L('<button class="button svelte-1sbbskl"> </button>'),C3={hash:"svelte-1sbbskl",code:".button.svelte-1sbbskl {margin-top:12px;font-size:14px;line-height:18px;background:rgba(255, 255, 255, 0.1);padding:6px 12px 7px;border-radius:8px;}"};function Gm(t,e){K(t,C3);var i=S3();i.__click=function(...n){var a;(a=e.onClick)==null||a.apply(this,n)};var o=h(i,!0);g(i),E(()=>me(o,e.label)),_(t,i)}at(["click"]);var T3=L('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),I3={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
|
|
310
310
|
/**
|
|
311
311
|
* \u0415\u0441\u043B\u0438 \u043D\u0435 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u043C \u0443 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 \u0441\u043E\u0431\u044B\u0442\u0438\u044F, \u0442\u043E \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u043C \u043F\u043E \u044D\u0442\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0432\u044B\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E.
|
|
312
|
-
*/pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function
|
|
312
|
+
*/pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function qd(t,e){U(e,!0),K(t,I3);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=zt(),{ui:{t:n}}=Ce(),a=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var s=T3(),d=h(s),l=h(d),p=h(l),m=h(p);Fd(m,{message:a}),g(p);var y=A(p,2);{var u=w=>{let b=v(()=>n("slow_video_notification_button"));Gm(w,{get label(){return r(b)},get onClick(){return e.onSelectAutoQuality}})};B(y,w=>{o||w(u)})}g(l);var $=A(l,2);ra($,{get onClick(){return e.onClose}}),g(d),g(s),Pp(3,d,()=>F1,()=>({duration:i})),_(t,s),z()}var $a="annotation",bu=class{constructor(){this.slots=new Map}init(e){this.shadowRootContainer=e}add(e,{overlay:i,id:o}){e.setAttribute("slot",$a),this.setupSlotStyles(e,i),this.shadowRootContainer.append(e),this.slots.set(o,e)}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"}}remove(e){let i=this.slots.get(e);i&&(i.remove(),this.slots.delete(e))}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var k3=L('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),E3={hash:"svelte-f47ws8",code:`.container.svelte-f47ws8 {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}.playback_state_icon.svelte-f47ws8 {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
|
|
313
313
|
|
|
314
314
|
animation-name: svelte-f47ws8-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
|
|
315
315
|
|
|
@@ -340,8 +340,8 @@ Try switching the\xA0quality to\xA0Auto.`},Mh=I_;var ts=new Map;ts.set(Ya.Interf
|
|
|
340
340
|
opacity: 0;
|
|
341
341
|
scale: 0;
|
|
342
342
|
}
|
|
343
|
-
}`};function
|
|
344
|
-
.video-container.svelte-1czns9r {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1czns9r {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1czns9r {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1czns9r {transition:none;}.nocursor.svelte-1czns9r {cursor:none;}`};function xa(t,e){U(e,!0),q(t,I3);let[i,o]=Be(),n=()=>S(m,"$rotateAlpha",i),a=()=>S($,"$playerSize",i),s=()=>S(p,"$playerPhase",i),d=()=>S(u,"$isPlaying$",i),l=f(e,"videoContainer",15),{playerPhase:p,ui:{rotateAlpha:m,playerSize:$},state:{isPlaying$:u}}=Se(),{isSmoothVideoRotate:_}=Ut(),w=v(()=>l()&&n()%180?a().height/a().width:1);var y=T3();let C;y.__contextmenu=function(...E){var P;(P=e.onContextMenu)==null||P.apply(this,E)},y.__mousedown=function(...E){var P;(P=e.onMouseDown)==null||P.apply(this,E)},y.__mouseup=function(...E){var P;(P=e.onMouseUp)==null||P.apply(this,E)},y.__click=function(...E){var P;(P=e.onClick)==null||P.apply(this,E)};var T=h(y);ee(T,1,"video-container svelte-1czns9r",null,{},{"fast-rotate":!_}),ft(T,E=>l(E),()=>l()),g(y),k(E=>{C=ee(y,1,"video-wrapper svelte-1czns9r",null,C,E),it(T,`transform: rotate(${n()}deg) scale(${r(w)})`),He(T,"data-is-playing",d())},[()=>({hidden:s()!=="video",nocursor:e.hideCursor})]),b(t,y),z(),o()}at(["contextmenu","mousedown","mouseup","click"]);var k3=(t,e,i,o,n,a)=>{t.preventDefault(),e&&(i({message:"double click on video"}),o(),n(a.uiConfig.controls.hideTimeoutCursor))},E3=(t,e,i,o,n,a)=>{if(t.stopPropagation(),e()||o()){a();return}},P3=L("<div><!></div>"),A3=L('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),M3=L("<div><!></div>"),L3=L('<div class="settings-menu svelte-jtgjmv"><!></div>'),V3=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),R3=L("<!> <!> <!>",1),N3=L('<div class="blocked svelte-jtgjmv"></div>'),D3=L('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),B3={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 Gm(t,e){U(e,!0),q(t,B3);let[i,o]=Be(),n=()=>S(Qo,"$notificationsToShow$",i),a=()=>S(Hi,"$playerPhase",i),s=()=>S(si,"$isLoaderVisible",i),d=()=>S(ni,"$adPlaybackState",i),l=()=>S(Ct,"$crashed",i),p=()=>S(go,"$isInteractiveTime$",i),m=()=>S(Do,"$settingsMenuVisible",i),$=()=>S(Bo,"$isInteractiveExpectation$",i),u=()=>S(mo,"$controlsVisible",i),_=()=>S(To,"$touched",i),w=()=>S(Wn,"$graphIsOpened$",i),y=()=>S(Yi,"$isFullscreen",i),C=()=>S(wr,"$autoplayNextEnabled$",i),T=()=>S(ai,"$postrollPassed",i),E=()=>S(Ui,"$isEnded$",i),P=()=>S(jo,"$cursorInside",i),A=()=>S(kn,"$fakeIsPlaying$",i),I=()=>S(qi,"$bottomNoSmooth",i),V=()=>S(Tn,"$interactiveTimeIndicator",i),H=()=>S(zi,"$playerSize",i),j=()=>S(Co,"$is3DVideo",i),O=()=>S(Z,"$contextMenuVisible$",i),X=()=>S(Pt,"$playbackState$",i),ne=()=>S(Ji,"$hotKeyMapData",i),Y=()=>S(ht,"$scrubbingInProgress",i),fe=()=>S(wi,"$volumeChangingInProgress",i),le=()=>S(ti,"$chromecastConnected$",i),Me=()=>S(Eo,"$controlsTimeoutActive",i),Ae=()=>S(nt,"$settingsMenuOpenedByKeyboard",i),me=()=>S(Vn,"$contextMenuOpenedByKeyboard$",i),ae=()=>S(Zo,"$contextMenuButtonRef$",i),Pe=()=>S(Xn,"$contextMenuOpenedByHotKey$",i),re=()=>S(Pr,"$contextMenuLastActiveElem$",i),D=()=>S(Fi,"$isFullscreenOpenedByKeyboard",i),Ve=()=>S(qe,"$language$",i),te=()=>S(li,"$icon3DVideoVisible",i),Ge=()=>S(mi,"$chromecastDeviceName$",i),ie=()=>S(Xi,"$currentSubtitle$",i),Q=()=>S(zn,"$currentSubtitleCaptions$",i),W=()=>S(Zt,"$position$",i),Le=()=>S(ri,"$duration$",i),Ne=()=>S(ut,"$isLive$",i),Je=()=>S(vo,"$isPlaying$",i),ye=()=>S(In,"$contextMenuPosition$",i),xe=()=>S(Io,"$showHotKeyMap",i),De=()=>S(Xt,"$debugPanelVisible",i),Ze=()=>S(sr,"$userActionsDisabled$",i),ot=f(e,"videoContainer",15),gt=f(e,"adsSlotId",3,void 0),et=f(e,"adsParams",3,void 0),mt=f(e,"adsPreviewParam",3,void 0),Et=f(e,"adsAutoplayParam",3,void 0),Qt=f(e,"duration",3,void 0),zt=f(e,"logoTargetUrl",3,""),Kt=f(e,"showNextPrevButtons",3,!1),ve=f(e,"nextButtonActive",3,!1),G=f(e,"prevButtonActive",3,!1),Te=f(e,"endScreenVideoTitle",3,void 0),se=f(e,"endScreenVideoThumb",3,void 0),Oe=f(e,"isOneVideoPlaylist",3,!1),ze=f(e,"shadowRootContainer",3,void 0),tt=f(e,"outerContainerRef",3,void 0),lt=f(e,"playerStarted",3,!1),Ye=f(e,"fullScreenTarget",3,void 0),Xe=f(e,"showMiniTimer",3,!1),dt=f(e,"showEndScreen",3,!0),Re=f(e,"keyboardControls",15),$t=e.store.getLogger().createComponentLog("Root component"),qe=e.store.interfaceLanguage$,Pt=e.store.state.playbackState$,ni=e.store.ads.playbackState,Zt=e.store.state.positionWithScrubbing$,ri=e.store.state.duration$,Hi=e.store.playerPhase,Yi=e.store.ui.isFullscreen,Fi=e.store.ui.isFullscreenOpenedByKeyboard,mo=e.store.ui.controlsVisible,Do=e.store.ui.settingsMenu.visible$,nt=e.store.ui.settingsMenu.openedByBtnKeyboard$,ht=e.store.ui.scrubbingInProgress,wi=e.store.ui.volumeChangingInProgress,Z=e.store.ui.contextMenu.visible$,Xt=e.store.ui.debugPanelVisible,si=e.store.state.isLoaderVisible,Ui=e.store.state.isEnded$,ti=e.store.state.chromecastConnected$,mi=e.store.state.chromecastDeviceName$,ai=e.store.ads.postrollPassed,ut=e.store.state.isLive$,vo=e.store.state.isPlaying$,Ct=e.store.state.crashed$,qt=e.store.webApi.annotationsApi,Jt=e.store.webApi.pictureInPictureApi,Xi=e.store.state.currentSubtitle$,zn=e.store.state.currentSubtitleCaptions$,zi=e.store.ui.playerSize,Co=e.store.ui.is3DVideo,li=e.store.ui.icon3DVideoVisible,Tt=e.store.state.isInteractive,go=e.store.state.isInteractiveTime$,Bo=e.store.state.isInteractiveExpectation$,di=e.store.state.hasInteractiveBranches,To=e.store.ui.touched,Ji=e.store.ui.modals.hotKeyMap.data,Io=e.store.ui.modals.hotKeyMap.show,Oo=e.store.ui.overlayContainer$,Tn=e.store.ui.controls.interactiveTimeIndicator,Ni=e.store.state.showInteractiveTimeIndicator,In=e.store.ui.contextMenu.position$,eo=e.store.actions.internal.setQuality,ko=e.store.actions.internal.closeSettingsMenu,wr=e.store.ui.autoplayNextEnabled$,sr=e.store.ui.userActionsDisabled,{fakeIsPlaying$:kn,notifications$:qn,graphIsOpened$:Wn}=fo(),ho=J(void 0),fn=J(void 0),En=J(void 0),rt=J(void 0),Pn,Wo,Ko;Ji.set(Bh());let{closeNotification:Sr,notificationsToShow$:Qo}=qn,An=v(()=>!!n().slow_video),Kn=()=>Sr("slow_video"),Mn=v(()=>(a()==="video"&&s()||a()==="ads"&&d()==="inactive")&&!l()),Go=J(void 0),qi=ce(!1),to,Eo=ce(!1),mn=ce(),jo=ce(!1),Yo=J(!1),Ei=J(!1),Ho=J(!1),Po=J(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),ar=v(()=>p()&&!m()&&!(r(Yo)||r(Ei))&&!(r(Ho)&&!$())),vn=!0,gn=v(()=>e.uiConfig.features.thumbTimer&&Xe()&&a()==="video"&&!u()&&!l()&&!Tt&&(e.uiConfig.hideThumbTimerAfterTouch&&!_()||!e.uiConfig.hideThumbTimerAfterTouch)),Cr=v(()=>a()==="video"&&!w()&&y()),Fo=J(!1),Tr=v(()=>(dt()||e.showAutoplayNext&&C())&&!!Te()&&!!se()&&(e.showAds&&T()||!e.showAds)&&E()&&!l()&&!r(Fo)),Ln=v(()=>P()&&!(u()||r(Tr))&&!p()),Qn=J(!1),lr=v(()=>A()!==null),{toggle:Ir}=kn,Gn=!1,hn=null;Jt==null||Jt.setContext(ql());let kr=()=>{e.autoplay&&!Tt&&e.uiConfig.controls.showOnStartupAtAutoplay&&Si(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:kr});let ci=()=>{window.clearTimeout(Pn),Eo.set(!1)},Ao=()=>{window.clearTimeout(Wo),mn.set(null)},Si=$e=>{ci(),Eo.set(!0),Pn=window.setTimeout(()=>Eo.set(!1),$e);let It=$e-100;to=window.setTimeout(()=>{I()&&qi.set(!1)},It>0?It:$e)},jn=($e,It)=>{Ao(),mn.set(It),Wo=window.setTimeout(()=>mn.set(null),$e)},pt=Co.subscribe($e=>{li.set($e),$e&&(window.clearTimeout(Ko),Ko=window.setTimeout(()=>li.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Ot=async()=>{var It,vi,Ci,no;let $e=gs();if($e){let pi=rd(),Ie=st();$e=pi===Ie||pi===ze()}if($e){Si(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Jt==null?void 0:Jt.remove())}catch(pi){$t({message:String(pi)})}}Yi.set($e),e.store.getAdmanWrapper().setFullscreen($e),y()?(vi=(It=e.store.callbacks)==null?void 0:It.onFullscreenEnter)==null||vi.call(It):(no=(Ci=e.store.callbacks)==null?void 0:Ci.onFullscreenExit)==null||no.call(Ci)},Pi=$e=>{let{width:It,height:vi}=$e.target;zi.set({width:It,height:vi})},Mo=()=>{let{width:$e,height:It}=r(ho).getBoundingClientRect();zi.set({width:$e,height:It})};Ft(()=>{var It;return Qc(Ot),e.uiConfig.features.annotationsInside&&(qt==null||qt.init(r(ho))),ia(Jt)&&(Jt==null||Jt.assignPlayerContainer(r(ho)),Jt==null||Jt.registryExternalEventHandlers({resize:Pi,leavepictureinpicture:Mo})),e.interactiveContainer&&((It=ot().parentElement)==null||It.insertBefore(e.interactiveContainer,ot().nextSibling)),()=>{window.clearTimeout(Pn),window.clearTimeout(to),window.clearTimeout(Wo),window.clearTimeout(Ko),pt(),Jt==null||Jt.dispose().catch(vi=>{$t({message:String(vi)})}),Gc(Ot)}});let st=()=>{let $e=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!tt()?r(ho):tt(),It=$e.getRootNode(),vi=It instanceof ShadowRoot?It.host:It,Ci=Ye()instanceof HTMLElement&&Ye().contains(vi);return e.uiConfig.allowChangingFullscreenTarget&&Ye()&&Ci?Ye():$e},Rt=async()=>{gs()?(await Kc(document),$t({message:"exit fullscreen"})):($t({message:"request fullscreen"}),await Wc(st()))},ui=()=>{ko(),Z.set(!1)},Di=$e=>{w()||($e.preventDefault(),Z.set(!0),In.set({left:$e.clientX,top:$e.clientY}))};function _o(){jo.set(!0),Tt||Si(e.uiConfig.controls.hideTimeoutCursor)}function yi(){Tt||(qi.set(!0),Si(e.uiConfig.controls.hideTimeoutCursor))}function Ai(){jo.set(!1),B(Ei,!1),B(Yo,!1),Gn=!1,e.store.actions.internal.releaseCamera(),Si(e.uiConfig.controls.hideTimeout)}function gi($e){return $e?$e.offsetTop+gi($e.offsetParent):0}function Lo($e){return $e?$e.offsetLeft+Lo($e.offsetParent):0}function io($e){if(V()&&Ni){let It=$e.currentTarget,vi=gi(It),Ci=Lo(It),no=$e.pageX-Ci,pi=$e.pageY-vi,{left:Ie,bottom:At,right:jt}=V(),xi=jt-Ie;return no>=Ie-xi&&pi<=At+xi}}function oo($e){if(r(ho)){let It=gi($e.currentTarget),vi=H().height,Ci=$e.pageY-It;if(io($e)){B(Ei,!1);return}Ci<40?B(Ei,!0):Ci>vi-40?B(Yo,!0):(B(Ei,!1),m()||B(Yo,!1))}}function _n($e){oo($e),r(ar)||Si(e.uiConfig.controls.hideTimeoutCursor),j()&&Gn&&hn&&e.store.actions.internal.moveCameraFocusPX(hn.clientX-$e.clientX,hn.clientY-$e.clientY,$e.timeStamp-hn.timeStamp),hn=$e}let Yn=$e=>{$e.preventDefault(),$e.button===0&&(Gn=!0,e.store.actions.internal.holdCamera()),Si(e.uiConfig.controls.hideTimeoutCursor)},dr=$e=>{$e.preventDefault(),$e.button===0&&(hn=$e,Gn=!1,e.store.actions.internal.releaseCamera()),Si(e.uiConfig.controls.hideTimeoutCursor)},Zn=$e=>{var It;if($e.preventDefault(),O()||m()){ui();return}if(!(E()&&!di)){if(r(lr))return Ir();if((It=Re())==null||It.focus(),!lt()){e.firstStart(),Si(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||X()!==Qm.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),Si(e.uiConfig.controls.hideTimeoutCursor)}},Er=$e=>{ui(),To.set(!0),Si(e.uiConfig.controls.hideTimeout),$e&&jn(e.uiConfig.controls.hideHotKeyHelpers,$e)},cr=()=>{var $e,It;ui(),($e=e.store.callbacks)!=null&&$e.onOpenHotKeyMap?(It=e.store.callbacks)==null||It.onOpenHotKeyMap(ne()):Io.update(vi=>!vi)},bn=()=>{To.set(!0)},Vn=e.store.ui.contextMenu.openedByBtnKeyboard$,Zo=e.store.ui.contextMenu.btnRef$,Xo=J(void 0),Xn=e.store.ui.contextMenu.openedByHotKey$,Pr=e.store.ui.contextMenu.lastActiveElem$;Ue(()=>{Oo.set(r(Go))}),Ue(()=>{B(Ho,pe(r(Po)&&X()!==Qm.PlaybackState.PLAYING)),r(Po)||xt(()=>B(Po,!0))}),Ue(()=>{mo.set((r(Ho)||E()||m()||Y()||fe()||le()||Me())&&!r(ar)&&(a()==="video"||a()==="ads")&&!l())}),Ue(()=>{!Y()&&r(Qn)&&!p()&&Si(e.uiConfig.controls.hideTimeoutCursor),xt(()=>B(Qn,pe(Y())))}),Ue(()=>{r(rt),m(),Ae(),xt(()=>il(r(rt),m(),Ae()))}),Ue(()=>{r(Xo),O(),me(),xt(()=>il(r(Xo),O(),me()))}),Ue(()=>{let $e=ae();$e&&(O(),xt(()=>tl($e,O(),Vn)))}),Ue(()=>{r(Xo),O(),Pe(),xt(()=>il(r(Xo),O(),Pe()))}),Ue(()=>{let $e=re();$e&&(O(),xt(()=>Uh($e,O(),Xn)))}),Ue(()=>{var $e;!D()&&y()&&(xt(()=>Fi.set(!1)),($e=Re())==null||$e.focus())}),Ue(()=>{w()&&ui()});let Ar=F("video360");var ur=D3();St("blur",Fs,ui);var bo=ue(ur);bo.__mousemove=_n,bo.__dblclick=[k3,vn,$t,Rt,Si,e];var Rn=h(bo);let Jn=v(()=>a()==="ads"),Mr=v(()=>r(lr)?Ir:void 0);ft(cf(Rn,{toggleFullscreen:Rt,hideContextMenu:ui,showHotKeyHelpers:Er,showKeyMap:cr,get isAds(){return r(Jn)},get fakePlayButtonHandler(){return r(Mr)},get nextButtonActive(){return ve()},get prevButtonActive(){return G()},children:($e,It)=>{var vi=R3(),Ci=ue(vi);xa(Ci,{get hideCursor(){return r(Ln)},onClick:Zn,onContextMenu:Di,onMouseDown:Yn,onMouseUp:dr,get videoContainer(){return ot()},set videoContainer(Ie){ot(Ie)}});var no=M(Ci,2);Qs(no,()=>"slot",!1,(Ie,At)=>{Ce(Ie,null,{name:ya})});var pi=M(no,2);Ks(pi,Ve,Ie=>{var At=V3(),jt=ue(At);let xi=v(()=>a()!=="thumb"||l()||Tt&&e.autoplay);_a(jt,{get hidden(){return r(xi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var ei=M(jt,2);Km(ei,{});var Lr=M(ei,2);{var Zi=We=>{let oi=v(()=>{var en;return(en=e.live)==null?void 0:en.startTime});Hd(We,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(oi)}})};R(Lr,We=>{a()==="LiveWaitingStart"&&We(Zi)})}var Vr=M(Lr,2);{var Is=We=>{ba(We,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(Vr,We=>{a()==="LiveWaitingRecover"&&We(Is)})}var Jo=M(Vr,2);{var Ca=We=>{ba(We,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(Jo,We=>{a()==="LiveWaitingRecord"&&We(Ca)})}var ks=M(Jo,2);{var yl=We=>{var oi=P3();let en;var Ms=h(oi);sd(Ms,{get adsSlotId(){return gt()},get adsParams(){return et()},get adsPreviewParam(){return mt()},get adsAutoplayParam(){return Et()},get duration(){return Qt()}}),g(oi),k(tn=>en=ee(oi,1,"ads-container svelte-jtgjmv",null,en,tn),[()=>({hidden:a()!=="ads"})]),b(We,oi)};R(ks,We=>{e.showAds&<()&&We(yl)})}var Ta=M(ks,2);{var xl=We=>{let oi=v(()=>!dt()&&e.showAutoplayNext&&C());af(We,{get title(){return Te()},get thumb(){return se()},get isHide(){return r(oi)},clickCloseIcon:()=>B(Fo,!0)})};R(Ta,We=>{r(Tr)&&Te()&&se()&&We(xl)})}var Es=M(Ta,2);{var wl=We=>{let oi=v(()=>!u());bm(We,{get title(){return e.title},get isHidden(){return r(oi)}})};R(Es,We=>{r(Cr)&&We(wl)})}var Ia=M(Es,2);{var er=We=>{let oi=v(()=>a()==="video"&&u());Dd(We,{get isShifted(){return r(oi)}})};R(Ia,We=>{j()&&We(er)})}var Ps=M(Ia,2);{var yt=We=>{var oi=A3(),en=h(oi);nd(en,{"aria-label":Ar}),g(oi),b(We,oi)};R(Ps,We=>{te()&&We(yt)})}var _t=M(Ps,2);{var ro=We=>{Bd(We,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Ge()}})};R(_t,We=>{le()&&We(ro)})}var Uo=M(_t,2);{var so=We=>{ha(We,{get shifted(){return u()},get captions(){return Q()},get position(){return W()},get playerSize(){return H()}})};R(Uo,We=>{ie().value!=="off"&&We(so)})}var ii=M(Uo,2);{var Bi=We=>{var oi=M3();oi.__contextmenu=Di,oi.__click=[E3,O,Z,m,Do,ui];var en=h(oi);Od(en,{}),g(oi),b(We,oi)};R(ii,We=>{l()&&We(Bi)})}var ss=M(ii,2);{var Sl=We=>{let oi=v(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),en=v(()=>a()==="ads"),Ms=v(()=>e.canRewindLive&&Le()!==0);Nd(We,{get bottomHidden(){return r(oi)},get bottomNoSmooth(){return I()},get showControls(){return u()},get isAds(){return r(en)},get canRewindLive(){return r(Ms)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return zt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Kt()},get nextButtonActive(){return ve()},get prevButtonActive(){return G()},get isOneVideoPlaylist(){return Oe()},customFullscreenSupported:vn,toggleFullscreen:Rt,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(fn)},set playerControlsWrapperRef(tn){B(fn,pe(tn))},get playerControlsRef(){return r(En)},set playerControlsRef(tn){B(En,pe(tn))}})};R(ss,We=>{lt()&&We(Sl)})}var ic=M(ss,2);{var Vu=We=>{var oi=L3(),en=h(oi);let Ms=v(()=>{var tn;return(tn=r(En))==null?void 0:tn.clientHeight});qd(en,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(Ms)},returnFocus:()=>{var tn;return(tn=Re())==null?void 0:tn.focus()},get ref(){return r(rt)},set ref(tn){B(rt,pe(tn))}}),g(oi),b(We,oi)};R(ic,We=>{!le()&&a()!=="ads"&&We(Vu)})}var oc=M(ic,2);let Ru=v(()=>!r(gn));dd(oc,{get isLive(){return Ne()},get isHidden(){return r(Ru)},get isPlaying(){return Je()},get position(){return W()},get duration(){return Le()}});var nc=M(oc,2);vm(nc,{data:mn});var As=M(nc,2);rf(As,{get supportLink(){return e.supportLink},returnFocus:()=>{var We;return(We=Re())==null?void 0:We.focus()},get visible(){return O()},get playerContainerRef(){return r(ho)},get controlsContainerRef(){return r(fn)},get position(){return ye()},get menuElementRef(){return r(Xo)},set menuElementRef(We){B(Xo,pe(We))}});var rc=M(As,2);{var sc=We=>{Wd(We,{onClose:Kn,onSelectAutoQuality:()=>{eo("auto"),Kn()}})};R(rc,We=>{r(An)&&We(sc)})}var Cl=M(rc,2);{var Nu=We=>{aa(We,{})};R(Cl,We=>{r(Mn)&&We(Nu)})}var Tl=M(Cl,2);{var Il=We=>{ff(We,{})};R(Tl,We=>{xe()&&We(Il)})}var ac=M(Tl,2);{var Du=We=>{pd(We,{})};R(ac,We=>{De()&&We(Du)})}b(Ie,At)}),b($e,vi)},$$slots:{default:!0}}),$e=>Re($e),()=>Re());var ct=M(Rn,2);ft(ct,$e=>B(Go,$e),()=>r(Go)),g(bo),ft(bo,$e=>B(ho,$e),()=>r(ho));var Ht=M(bo,2);{var Mi=$e=>{var It=N3();b($e,It)};R(Ht,$e=>{Ze()&&$e(Mi)})}St("mouseenter",bo,_o),St("mouseleave",bo,Ai),St("click",bo,bn,!0),St("focusin",bo,yi,!0),b(t,ur),z(),o()}at(["mousemove","dblclick","contextmenu","click"]);var Ts=require("@vkontakte/videoplayer-core/es2018"),W1=require("@vkontakte/videoplayer-shared/es2018");var O3=L('<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),H3=L("<div><!></div>"),F3={hash:"svelte-nhq2ld",code:`.double-click-area.svelte-nhq2ld {position:absolute;top:0;height:100%;width:25%;overflow:hidden;}.double-click-area.left.svelte-nhq2ld {left:0;}.double-click-area.right.svelte-nhq2ld {right:0;}.semicircle.svelte-nhq2ld {position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);}.semicircle.left.svelte-nhq2ld {left:0;border-top-right-radius:50%;border-bottom-right-radius:50%;}.semicircle.right.svelte-nhq2ld {right:0;border-top-left-radius:50%;border-bottom-left-radius:50%;}.info.svelte-nhq2ld {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center;}.triangles-wrapper.svelte-nhq2ld {position:relative;display:flex;margin-bottom:10px;justify-content:center;}.triangle.svelte-nhq2ld {width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;
|
|
343
|
+
}`};function Ym(t,e){U(e,!0),K(t,E3);let[i,o]=Ne(),n=()=>S(s,"$isPlaying$",i),a=()=>S(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:s},ui:{aboutToGoNextVideo:d},actions:l}=Ce(),{features:{playbackStatusShow:p,playbackStatusAnimationDuration:m,playbackStatusNextVideoAnimationDuration:y}}=zt(),u=0,$=X(null),w=X(!1);Fe(()=>{D($,pe(n()?Cr:ns))}),Fe(()=>{D($,pe(a()?Ss:null))}),Fe(()=>{if(p)return u=window.setTimeout(()=>{u=0,a()&&r($)===Ss&&(a()==="next"?l.internal.nextVideoClick(!1):l.internal.prevVideoClick(!1)),D($,null)},r($)!==Ss?m:y),()=>{u&&(window.clearTimeout(u),u=0)}}),Fe(()=>{n()&&!r(w)&&(D(w,!0),D($,null))});var b=Oe(),C=ue(b);{var T=I=>{var M=Oe(),P=ue(M);Ws(P,()=>r($),k=>{var R=k3(),W=h(R),Y=h(W);let F=v(()=>a()==="prev");Ti(Y,()=>r($),(Q,oe)=>{oe(Q,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return r(F)}})}),g(W),g(R),E(()=>st(W,`animation-duration: ${r($)!==Ss?m:y}ms`)),_(k,R)}),_(I,M)};B(C,I=>{r($)&&p&&I(T)})}_(t,b),z(),o()}var P3=L('<div><div data-testid="video-container"></div></div>'),A3={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
|
|
344
|
+
.video-container.svelte-1czns9r {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1czns9r {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1czns9r {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1czns9r {transition:none;}.nocursor.svelte-1czns9r {cursor:none;}`};function ya(t,e){U(e,!0),K(t,A3);let[i,o]=Ne(),n=()=>S(m,"$rotateAlpha",i),a=()=>S(y,"$playerSize",i),s=()=>S(p,"$playerPhase",i),d=()=>S(u,"$isPlaying$",i),l=f(e,"videoContainer",15),{playerPhase:p,ui:{rotateAlpha:m,playerSize:y},state:{isPlaying$:u}}=Ce(),{isSmoothVideoRotate:$}=zt(),w=v(()=>l()&&n()%180?a().height/a().width:1);var b=P3();let C;b.__contextmenu=function(...I){var M;(M=e.onContextMenu)==null||M.apply(this,I)},b.__mousedown=function(...I){var M;(M=e.onMouseDown)==null||M.apply(this,I)},b.__mouseup=function(...I){var M;(M=e.onMouseUp)==null||M.apply(this,I)},b.__click=function(...I){var M;(M=e.onClick)==null||M.apply(this,I)},b.__dblclick=function(...I){var M;(M=e.onDblClick)==null||M.apply(this,I)};var T=h(b);J(T,1,"video-container svelte-1czns9r",null,{},{"fast-rotate":!$}),gt(T,I=>l(I),()=>l()),g(b),E(I=>{C=J(b,1,"video-wrapper svelte-1czns9r",null,C,I),st(T,`transform: rotate(${n()}deg) scale(${r(w)})`),Be(T,"data-is-playing",d())},[()=>({hidden:s()!=="video",nocursor:e.hideCursor})]),_(t,b),z(),o()}at(["contextmenu","mousedown","mouseup","click","dblclick"]);var M3=(t,e,i,o,n,a)=>{if(t.stopPropagation(),e()||o()){a();return}},L3=L("<div><!></div>"),V3=L('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),R3=L("<div><!></div>"),B3=L('<div class="settings-menu svelte-jtgjmv"><!></div>'),N3=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),D3=L("<!> <!> <!>",1),O3=L('<div class="blocked svelte-jtgjmv"></div>'),H3=L('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),F3={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 Zm(t,e){U(e,!0),K(t,F3);let[i,o]=Ne(),n=()=>S(mn,"$notificationsToShow$",i),a=()=>S(Vi,"$playerPhase",i),s=()=>S(jt,"$isLoaderVisible",i),d=()=>S(Jt,"$adPlaybackState",i),l=()=>S(Vt,"$crashed",i),p=()=>S(Uo,"$isInteractiveTime$",i),m=()=>S(ot,"$settingsMenuVisible",i),y=()=>S(pi,"$isInteractiveExpectation$",i),u=()=>S(ji,"$controlsVisible",i),$=()=>S(Hi,"$touched",i),w=()=>S(ft,"$graphIsOpened$",i),b=()=>S(Oi,"$isFullscreen",i),C=()=>S(Ir,"$autoplayNextEnabled$",i),T=()=>S(pt,"$postrollPassed",i),I=()=>S(gi,"$isEnded$",i),M=()=>S(Ln,"$cursorInside",i),P=()=>S(An,"$isControlsAvailable",i),k=()=>S(fn,"$fakeIsPlaying$",i),R=()=>S(vn,"$bottomNoSmooth",i),W=()=>S(fo,"$interactiveTimeIndicator",i),Y=()=>S(Vo,"$playerSize",i),F=()=>S(ui,"$is3DVideo",i),Q=()=>S(To,"$contextMenuVisible$",i),oe=()=>S(yi,"$playbackState$",i),Z=()=>S(Io,"$hotKeyMapData",i),re=()=>S(ki,"$scrubbingInProgress",i),de=()=>S(eo,"$volumeChangingInProgress",i),Ae=()=>S(Ri,"$chromecastConnected$",i),Me=()=>S(Qo,"$controlsTimeoutActive",i),ge=()=>S($t,"$settingsMenuOpenedByKeyboard",i),se=()=>S(Xo,"$contextMenuOpenedByKeyboard$",i),Ee=()=>S(Lr,"$contextMenuButtonRef$",i),ne=()=>S(vr,"$contextMenuOpenedByHotKey$",i),V=()=>S(zr,"$contextMenuLastActiveElem$",i),xe=()=>S(uo,"$isFullscreenOpenedByKeyboard",i),_e=()=>S(bt,"$language$",i),ze=()=>S(Tt,"$icon3DVideoVisible",i),H=()=>S(si,"$chromecastDeviceName$",i),le=()=>S(Un,"$currentSubtitle$",i),he=()=>S(to,"$currentSubtitleCaptions$",i),ee=()=>S(Ge,"$position$",i),De=()=>S(Yt,"$duration$",i),Ze=()=>S(mi,"$isLive$",i),we=()=>S(Je,"$isPlaying$",i),Ve=()=>S(Ro,"$contextMenuPosition$",i),Ie=()=>S(Fi,"$showHotKeyMap",i),Ue=()=>S(j,"$debugPanelVisible",i),ct=()=>S(dr,"$userActionsDisabled$",i),ut=f(e,"videoContainer",15),nt=f(e,"adsSlotId",3,void 0),Ct=f(e,"adsParams",3,void 0),mt=f(e,"adsPreviewParam",3,void 0),Wt=f(e,"adsAutoplayParam",3,void 0),ti=f(e,"duration",3,void 0),Lt=f(e,"logoTargetUrl",3,""),Nt=f(e,"showNextPrevButtons",3,!1),O=f(e,"nextButtonActive",3,!1),be=f(e,"prevButtonActive",3,!1),te=f(e,"endScreenVideoTitle",3,void 0),Re=f(e,"endScreenVideoThumb",3,void 0),je=f(e,"isOneVideoPlaylist",3,!1),Qe=f(e,"shadowRootContainer",3,void 0),Le=f(e,"outerContainerRef",3,void 0),rt=f(e,"playerStarted",3,!1),et=f(e,"fullScreenTarget",3,void 0),_t=f(e,"showMiniTimer",3,!1),it=f(e,"showEndScreen",3,!0),Xe=f(e,"keyboardControls",15),Kt=e.store.getLogger().createComponentLog("Root component"),bt=e.store.interfaceLanguage$,yi=e.store.state.playbackState$,Jt=e.store.ads.playbackState,Ge=e.store.state.positionWithScrubbing$,Yt=e.store.state.duration$,Vi=e.store.playerPhase,Oi=e.store.ui.isFullscreen,uo=e.store.ui.isFullscreenOpenedByKeyboard,ji=e.store.ui.controlsVisible,ot=e.store.ui.settingsMenu.visible$,$t=e.store.ui.settingsMenu.openedByBtnKeyboard$,ki=e.store.ui.scrubbingInProgress,eo=e.store.ui.volumeChangingInProgress,To=e.store.ui.contextMenu.visible$,j=e.store.ui.debugPanelVisible,jt=e.store.state.isLoaderVisible,gi=e.store.state.isEnded$,Ri=e.store.state.chromecastConnected$,si=e.store.state.chromecastDeviceName$,pt=e.store.ads.postrollPassed,mi=e.store.state.isLive$,Je=e.store.state.isPlaying$,Vt=e.store.state.crashed$,po=e.store.webApi.annotationsApi,Zt=e.store.webApi.pictureInPictureApi,Un=e.store.state.currentSubtitle$,to=e.store.state.currentSubtitleCaptions$,Vo=e.store.ui.playerSize,ui=e.store.ui.is3DVideo,Tt=e.store.ui.icon3DVideoVisible,Bi=e.store.state.isInteractive,Uo=e.store.state.isInteractiveTime$,pi=e.store.state.isInteractiveExpectation$,zo=e.store.state.hasInteractiveBranches,Hi=e.store.ui.touched,Io=e.store.ui.modals.hotKeyMap.data,Fi=e.store.ui.modals.hotKeyMap.show,zn=e.store.ui.overlayContainer$,fo=e.store.ui.controls.interactiveTimeIndicator,En=e.store.state.showInteractiveTimeIndicator,Ro=e.store.ui.contextMenu.position$,Bo=e.store.actions.internal.setQuality,Pn=e.store.actions.internal.closeSettingsMenu,Ir=e.store.ui.autoplayNextEnabled$,dr=e.store.ui.userActionsDisabled,An=e.store.ui.isControlsAvailable,{fakeIsPlaying$:fn,notifications$:qn,graphIsOpened$:ft}=lo(),mo=X(void 0),qo=X(void 0),Mn=X(void 0),No=X(void 0),Wo,Wn,Do;Io.set(Fh());let{closeNotification:Kn,notificationsToShow$:mn}=qn,Qn=v(()=>!!n().slow_video),Ko=()=>Kn("slow_video"),vo=v(()=>(a()==="video"&&s()||a()==="ads"&&d()==="inactive")&&!l()),Si=X(void 0),vn=ce(!1),gn,Qo=ce(!1),go=ce(),Ln=ce(!1),ko=X(!1),Ui=X(!1),cr=X(!1),Oo=X(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Gn=v(()=>p()&&!m()&&!(r(ko)||r(Ui))&&!(r(cr)&&!y())),Vn=!0,Yn=v(()=>e.uiConfig.features.thumbTimer&&_t()&&a()==="video"&&!u()&&!l()&&!Bi&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),ur=v(()=>a()==="video"&&!w()&&b()),hn=X(!1),kr=v(()=>(it()||e.showAutoplayNext&&C())&&!!te()&&!!Re()&&(e.showAds&&T()||!e.showAds)&&I()&&!l()&&!r(hn)),pr=v(()=>M()&&!(u()||r(kr))&&!p()&&P()),jn=X(!1),Er=v(()=>k()!==null),{toggle:Pr}=fn,_n=!1,Gt=null;Zt==null||Zt.setContext(zl());let vt=()=>{e.autoplay&&!Bi&&e.uiConfig.controls.showOnStartupAtAutoplay&&ni(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:vt});let Dt=()=>{window.clearTimeout(Wo),Qo.set(!1)},ai=()=>{window.clearTimeout(Wn),go.set(null)},ni=fe=>{Dt(),Qo.set(!0),Wo=window.setTimeout(()=>Qo.set(!1),fe);let wt=fe-100;gn=window.setTimeout(()=>{R()&&vn.set(!1)},wt>0?wt:fe)},ho=(fe,wt)=>{ai(),go.set(wt),Wn=window.setTimeout(()=>go.set(null),fe)},Eo=ui.subscribe(fe=>{Tt.set(fe),fe&&(window.clearTimeout(Do),Do=window.setTimeout(()=>Tt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Po=async()=>{var wt,li,fi,wi;let fe=gs();if(fe){let He=nd(),Rt=tt();fe=He===Rt||He===Qe()}if(fe){ni(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Zt==null?void 0:Zt.remove())}catch(He){Kt({message:String(He)})}}Oi.set(fe),e.store.getAdmanWrapper().setFullscreen(fe),b()?(li=(wt=e.store.callbacks)==null?void 0:wt.onFullscreenEnter)==null||li.call(wt):(wi=(fi=e.store.callbacks)==null?void 0:fi.onFullscreenExit)==null||wi.call(fi)},Go=fe=>{let{width:wt,height:li}=fe.target;Vo.set({width:wt,height:li})},Yo=()=>{let{width:fe,height:wt}=r(mo).getBoundingClientRect();Vo.set({width:fe,height:wt})};Ut(()=>{var wt;return Qc(Po),e.uiConfig.features.annotationsInside&&(po==null||po.init(r(mo))),ta(Zt)&&(Zt==null||Zt.assignPlayerContainer(r(mo)),Zt==null||Zt.registryExternalEventHandlers({resize:Go,leavepictureinpicture:Yo})),e.interactiveContainer&&((wt=ut().parentElement)==null||wt.insertBefore(e.interactiveContainer,ut().nextSibling)),()=>{window.clearTimeout(Wo),window.clearTimeout(gn),window.clearTimeout(Wn),window.clearTimeout(Do),Eo(),Zt==null||Zt.dispose().catch(li=>{Kt({message:String(li)})}),Gc(Po)}});let tt=()=>{let fe=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Le()?r(mo):Le(),wt=fe.getRootNode(),li=wt instanceof ShadowRoot?wt.host:wt,fi=et()instanceof HTMLElement&&et().contains(li);return e.uiConfig.allowChangingFullscreenTarget&&et()&&fi?et():fe},Mt=async()=>{gs()?(await Kc(document),Kt({message:"exit fullscreen"})):(Kt({message:"request fullscreen"}),await Wc(tt()))},vi=()=>{Pn(),To.set(!1)},zi=fe=>{w()||(fe.preventDefault(),To.set(!0),Ro.set({left:fe.clientX,top:fe.clientY}))};function Zi(){Ln.set(!0),Bi||ni(e.uiConfig.controls.hideTimeoutCursor)}function bn(){Bi||(vn.set(!0),ni(e.uiConfig.controls.hideTimeoutCursor))}function $n(){Ln.set(!1),D(Ui,!1),D(ko,!1),_n=!1,e.store.actions.internal.releaseCamera(),ni(e.uiConfig.controls.hideTimeout)}function qi(fe){return fe?fe.offsetTop+qi(fe.offsetParent):0}function Ei(fe){return fe?fe.offsetLeft+Ei(fe.offsetParent):0}function jo(fe){if(W()&&En){let wt=fe.currentTarget,li=qi(wt),fi=Ei(wt),wi=fe.pageX-fi,He=fe.pageY-li,{left:Rt,bottom:oi,right:io}=W(),bo=io-Rt;return wi>=Rt-bo&&He<=oi+bo}}function Zn(fe){if(r(mo)){let wt=qi(fe.currentTarget),li=Y().height,fi=fe.pageY-wt;if(jo(fe)){D(Ui,!1);return}fi<40?D(Ui,!0):fi>li-40?D(ko,!0):(D(Ui,!1),m()||D(ko,!1))}}function Ar(fe){Zn(fe),r(Gn)||ni(e.uiConfig.controls.hideTimeoutCursor),F()&&_n&&Gt&&e.store.actions.internal.moveCameraFocusPX(Gt.clientX-fe.clientX,Gt.clientY-fe.clientY,fe.timeStamp-Gt.timeStamp),Gt=fe}let Zo=fe=>{fe.preventDefault(),fe.button===0&&(_n=!0,e.store.actions.internal.holdCamera()),ni(e.uiConfig.controls.hideTimeoutCursor)},fr=fe=>{fe.preventDefault(),fe.button===0&&(Gt=fe,_n=!1,e.store.actions.internal.releaseCamera()),ni(e.uiConfig.controls.hideTimeoutCursor)},Xn=fe=>{fe.preventDefault(),Vn&&(Kt({message:"double click on video"}),Mt(),ni(e.uiConfig.controls.hideTimeoutCursor))},mr=fe=>{var wt;if(fe.preventDefault(),Q()||m()){vi();return}if(!(I()&&!zo)){if(r(Er))return Pr();if((wt=Xe())==null||wt.focus(),!rt()){e.firstStart(),ni(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||oe()!==jm.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),ni(e.uiConfig.controls.hideTimeoutCursor)}},Jn=fe=>{vi(),Hi.set(!0),ni(e.uiConfig.controls.hideTimeout),fe&&ho(e.uiConfig.controls.hideHotKeyHelpers,fe)},Mr=()=>{var fe,wt;vi(),(fe=e.store.callbacks)!=null&&fe.onOpenHotKeyMap?(wt=e.store.callbacks)==null||wt.onOpenHotKeyMap(Z()):Fi.update(li=>!li)},er=()=>{Hi.set(!0)},Xo=e.store.ui.contextMenu.openedByBtnKeyboard$,Lr=e.store.ui.contextMenu.btnRef$,Jo=X(void 0),vr=e.store.ui.contextMenu.openedByHotKey$,zr=e.store.ui.contextMenu.lastActiveElem$;Fe(()=>{zn.set(r(Si))}),Fe(()=>{D(cr,pe(r(Oo)&&oe()!==jm.PlaybackState.PLAYING)),r(Oo)||St(()=>D(Oo,!0))}),Fe(()=>{ji.set((r(cr)||I()||m()||re()||de()||Ae()||Me())&&!r(Gn)&&(a()==="video"||a()==="ads")&&!l()&&P())}),Fe(()=>{!re()&&r(jn)&&!p()&&ni(e.uiConfig.controls.hideTimeoutCursor),St(()=>D(jn,pe(re())))}),Fe(()=>{r(No),m(),ge(),St(()=>rl(r(No),m(),ge()))}),Fe(()=>{r(Jo),Q(),se(),St(()=>rl(r(Jo),Q(),se()))}),Fe(()=>{let fe=Ee();fe&&(Q(),St(()=>nl(fe,Q(),Xo)))}),Fe(()=>{r(Jo),Q(),ne(),St(()=>rl(r(Jo),Q(),ne()))}),Fe(()=>{let fe=V();fe&&(Q(),St(()=>Wh(fe,Q(),vr)))}),Fe(()=>{var fe;!xe()&&b()&&(St(()=>uo.set(!1)),(fe=Xe())==null||fe.focus())}),Fe(()=>{w()&&vi()});let lt=q("video360");var Qt=H3();kt("blur",Hs,vi);var ii=ue(Qt);ii.__mousemove=Ar;var _o=h(ii);let yn=v(()=>a()==="ads"),tr=v(()=>r(Er)?Pr:void 0);gt(ff(_o,{toggleFullscreen:Mt,hideContextMenu:vi,showHotKeyHelpers:Jn,showKeyMap:Mr,get isAds(){return r(yn)},get fakePlayButtonHandler(){return r(tr)},get nextButtonActive(){return O()},get prevButtonActive(){return be()},children:(fe,wt)=>{var li=D3(),fi=ue(li);ya(fi,{get hideCursor(){return r(pr)},onClick:mr,onContextMenu:zi,onMouseDown:Zo,onMouseUp:fr,onDblClick:Xn,get videoContainer(){return ut()},set videoContainer(Rt){ut(Rt)}});var wi=A(fi,2);Ks(wi,()=>"slot",!1,(Rt,oi)=>{Te(Rt,null,{name:$a})});var He=A(wi,2);Ws(He,_e,Rt=>{var oi=N3(),io=ue(oi);let bo=v(()=>a()!=="thumb"||l()||Bi&&e.autoplay);ha(io,{get hidden(){return r(bo)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var qr=A(io,2);Ym(qr,{});var Ni=A(qr,2);{var ir=qe=>{let ri=v(()=>{var tn;return(tn=e.live)==null?void 0:tn.startTime});Od(qe,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(ri)}})};B(Ni,qe=>{a()==="LiveWaitingStart"&&qe(ir)})}var Is=A(Ni,2);{var or=qe=>{_a(qe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};B(Is,qe=>{a()==="LiveWaitingRecover"&&qe(or)})}var Sa=A(Is,2);{var Sl=qe=>{_a(qe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};B(Sa,qe=>{a()==="LiveWaitingRecord"&&qe(Sl)})}var Ca=A(Sa,2);{var Ta=qe=>{var ri=L3();let tn;var As=h(ri);rd(As,{get adsSlotId(){return nt()},get adsParams(){return Ct()},get adsPreviewParam(){return mt()},get adsAutoplayParam(){return Wt()},get duration(){return ti()}}),g(ri),E($o=>tn=J(ri,1,"ads-container svelte-jtgjmv",null,tn,$o),[()=>({hidden:a()!=="ads"})]),_(qe,ri)};B(Ca,qe=>{e.showAds&&rt()&&qe(Ta)})}var Ia=A(Ca,2);{var Cl=qe=>{let ri=v(()=>!it()&&e.showAutoplayNext&&C());cf(qe,{get title(){return te()},get thumb(){return Re()},get isHide(){return r(ri)},clickCloseIcon:()=>D(hn,!0)})};B(Ia,qe=>{r(kr)&&te()&&Re()&&qe(Cl)})}var ks=A(Ia,2);{var ka=qe=>{let ri=v(()=>!u());xm(qe,{get title(){return e.title},get isHidden(){return r(ri)}})};B(ks,qe=>{r(ur)&&qe(ka)})}var dt=A(ks,2);{var xt=qe=>{let ri=v(()=>a()==="video"&&u());Bd(qe,{get isShifted(){return r(ri)}})};B(dt,qe=>{F()&&qe(xt)})}var Xi=A(dt,2);{var en=qe=>{var ri=V3(),tn=h(ri);od(tn,{"aria-label":lt}),g(ri),_(qe,ri)};B(Xi,qe=>{ze()&&qe(en)})}var Ji=A(Xi,2);{var di=qe=>{Nd(qe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return H()}})};B(Ji,qe=>{Ae()&&qe(di)})}var Pi=A(Ji,2);{var Es=qe=>{ga(qe,{get shifted(){return u()},get captions(){return he()},get position(){return ee()},get playerSize(){return Y()}})};B(Pi,qe=>{le().value!=="off"&&qe(Es)})}var Ea=A(Pi,2);{var Bu=qe=>{var ri=R3();ri.__contextmenu=zi,ri.__click=[M3,Q,To,m,ot,vi];var tn=h(ri);Dd(tn,{}),g(ri),_(qe,ri)};B(Ea,qe=>{l()&&qe(Bu)})}var ec=A(Ea,2);{var Nu=qe=>{let ri=v(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),tn=v(()=>a()==="ads"),As=v(()=>e.canRewindLive&&De()!==0);Rd(qe,{get bottomHidden(){return r(ri)},get bottomNoSmooth(){return R()},get showControls(){return u()},get isAds(){return r(tn)},get canRewindLive(){return r(As)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Lt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Nt()},get nextButtonActive(){return O()},get prevButtonActive(){return be()},get isOneVideoPlaylist(){return je()},customFullscreenSupported:Vn,toggleFullscreen:Mt,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(qo)},set playerControlsWrapperRef($o){D(qo,pe($o))},get playerControlsRef(){return r(Mn)},set playerControlsRef($o){D(Mn,pe($o))}})};B(ec,qe=>{rt()&&qe(Nu)})}var tc=A(ec,2);{var Du=qe=>{var ri=B3(),tn=h(ri);let As=v(()=>{var $o;return($o=r(Mn))==null?void 0:$o.clientHeight});zd(tn,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(As)},returnFocus:()=>{var $o;return($o=Xe())==null?void 0:$o.focus()},get ref(){return r(No)},set ref($o){D(No,pe($o))}}),g(ri),_(qe,ri)};B(tc,qe=>{!Ae()&&a()!=="ads"&&qe(Du)})}var ic=A(tc,2);let Ou=v(()=>!r(Yn));ld(ic,{get isLive(){return Ze()},get isHidden(){return r(Ou)},get isPlaying(){return we()},get position(){return ee()},get duration(){return De()}});var Ps=A(ic,2);_m(Ps,{data:go});var oc=A(Ps,2);lf(oc,{get supportLink(){return e.supportLink},returnFocus:()=>{var qe;return(qe=Xe())==null?void 0:qe.focus()},get visible(){return Q()},get playerContainerRef(){return r(mo)},get controlsContainerRef(){return r(qo)},get position(){return Ve()},get menuElementRef(){return r(Jo)},set menuElementRef(qe){D(Jo,pe(qe))}});var Tl=A(oc,2);{var nc=qe=>{qd(qe,{onClose:Ko,onSelectAutoQuality:()=>{Bo("auto"),Ko()}})};B(Tl,qe=>{r(Qn)&&qe(nc)})}var rc=A(Tl,2);{var sc=qe=>{sa(qe,{})};B(rc,qe=>{r(vo)&&qe(sc)})}var Pa=A(rc,2);{var ac=qe=>{gf(qe,{})};B(Pa,qe=>{Ie()&&qe(ac)})}var Hu=A(Pa,2);{var lc=qe=>{ud(qe,{})};B(Hu,qe=>{Ue()&&qe(lc)})}_(Rt,oi)}),_(fe,li)},$$slots:{default:!0}}),fe=>Xe(fe),()=>Xe());var xn=A(_o,2);gt(xn,fe=>D(Si,fe),()=>r(Si)),g(ii),gt(ii,fe=>D(mo,fe),()=>r(mo));var Rn=A(ii,2);{var xi=fe=>{var wt=O3();_(fe,wt)};B(Rn,fe=>{ct()&&fe(xi)})}kt("mouseenter",ii,Zi),kt("mouseleave",ii,$n),kt("click",ii,er,!0),kt("focusin",ii,bn,!0),_(t,Qt),z(),o()}at(["mousemove","contextmenu","click"]);var Ts=require("@vkontakte/videoplayer-core/es2018"),G1=require("@vkontakte/videoplayer-shared/es2018");var U3=L('<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),z3=L("<div><!></div>"),q3={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;
|
|
345
345
|
animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
|
|
346
346
|
.triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
|
|
347
347
|
.triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
|
|
@@ -357,8 +357,7 @@ Try switching the\xA0quality to\xA0Auto.`},Mh=I_;var ts=new Map;ts.set(Ya.Interf
|
|
|
357
357
|
100% {
|
|
358
358
|
opacity: 0;
|
|
359
359
|
}
|
|
360
|
-
}.triangle.left.svelte-nhq2ld {border-right:8px solid var(--white);}.triangle.right.svelte-nhq2ld {border-left:8px solid var(--white);}.triangle.svelte-nhq2ld:not(:last-child) {margin-right:5px;}.step-caption.svelte-nhq2ld {margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white);}`};function bu(t,e){U(e,!0),q(t,F3);let i=f(e,"seekStep",3,0),o=J(!1),n=0,a=0,s=J(pe(i())),d=$=>{$.stopPropagation(),a+=1,B(s,i()*(a-1)),a===1?e.handleSingleFirstClick($):(B(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{a=0,B(o,!1)},300)};Sn(()=>{window.clearTimeout(n)});var l=H3();l.__click=d;var p=h(l);{var m=$=>{var u=O3(),_=ue(u),w=M(_,2),y=h(w),C=h(y),T=M(C,2),E=M(T,2);g(y);var P=M(y,2),A=h(P,!0);g(P),g(w),k(I=>{var V,H,j,O;ee(_,1,`semicircle ${(V=e.side)!=null?V:""}`,"svelte-nhq2ld"),ee(C,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),ee(T,1,`triangle ${(j=e.side)!=null?j:""}`,"svelte-nhq2ld"),ee(E,1,`triangle ${(O=e.side)!=null?O:""}`,"svelte-nhq2ld"),ge(A,I)},[()=>F("doubletap_seek_step",{seconds:r(s).toFixed(0)})]),b($,u)};R(p,$=>{r(o)&&$(m)})}g(l),k(()=>{var $;return ee(l,1,`double-click-area ${($=e.side)!=null?$:""}`,"svelte-nhq2ld")}),b(t,l),z()}at(["click"]);var U3=(t,e,i)=>{e(!1),i()},z3=L('<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),q3={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 jm(t,e){U(e,!0),q(t,q3);let[i,o]=Be(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),s=Se(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,p=s.actions.internal.nextVideoClick,m=s.actions.internal.nextVideoAnnouncementShow,$=s.actions.internal.nextVideoAnnouncementClick,u=s.actions.internal.nextVideoAnnouncementAuto,_=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{p(!1),u()},y=()=>{e.clickCloseIcon(),_()};Ft(()=>{e.isHide||m(),e.isHide&&n()&&(p(!1),u())});var C=Fe(),T=ue(C);{var E=P=>{var A=z3(),I=M(ue(A),2),V=h(I),H=h(V),j=h(H,!0);g(H);var O=M(H,2);sa(O,{onClick:y}),g(V);var X=M(V,2);X.__click=[U3,p,$];var ne=h(X),Y=h(ne),fe=h(Y);let le;var Me=M(fe,2);{var Ae=re=>{fd(re,{get isRunning(){return a()},onTimerEnded:w})};R(Me,re=>{n()&&re(Ae)})}g(Y),g(ne);var me=M(ne,2),ae=h(me),Pe=h(ae,!0);g(ae),g(me),g(X),g(I),k((re,D)=>{ge(j,re),it(Y,`background-image: url('${e.thumb}')`),le=ee(fe,1,"thumb-overlay svelte-1qdxi6t",null,le,D),ge(Pe,e.title)},[()=>n()?F("end_screen_next_video"):F("end_screen_recommended_video"),()=>({withOpacity:n()})]),b(P,A)};R(T,P=>{e.isHide||P(E)})}b(t,C),z(),o()}at(["click"]);var H1=require("@vkontakte/videoplayer-core/es2018");var F1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Ft(()=>{H1.clientChecker.device.isIOS&&(o=setTimeout(()=>{let a=t().querySelector("video");if(!a)return;let s=()=>e(!0),d=()=>e(!1);a.addEventListener("webkitbeginfullscreen",s),a.addEventListener("webkitendfullscreen",d),i=()=>{a.removeEventListener("webkitbeginfullscreen",s),a.removeEventListener("webkitendfullscreen",d)}},0))}),Sn(()=>{i==null||i(),clearTimeout(o)})};var U1=require("@vkontakte/videoplayer-core/es2018");var $u=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};var z1=require("@vkontakte/videoplayer-core/es2018"),q1=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:a,currentFormat$:s,availableTextTracks$:d}=t.state,l=null,p=()=>e().querySelector("video"),m=()=>z1.clientChecker.device.isIOS&&we(s)===U1.VideoFormat.DASH_LIVE_CMAF,$=()=>{l==null||l(),l=null},u=_=>{if($(),!m()||!_)return;let w=p();if(!w)return;let y=new $u(w),C=we(d),T=we(a),E=we(n);for(let I of C)T.some(H=>H.value===I.id)&&y.attach(I,E.value===I.id);let P=d.subscribe(I=>{for(let V of I)y.updateSrc(V)}),A=()=>{let I=y.getCurrentShowingId();o(we(a).find(V=>V.value===I))};w.textTracks.addEventListener("change",A),l=()=>{P(),y.detachAll(),w.textTracks.removeEventListener("change",A)}};Ft(()=>i.subscribe(u)),Sn($)};var W3=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},K3=L("<!> <!>",1),Q3=L("<div><!></div>"),G3=L('<div class="spherical-video-icon svelte-dtyj47"><!></div>'),j3=L("<div><!></div>"),Y3=L('<div class="settings-mobile svelte-dtyj47"><!></div>'),Z3=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),X3=L('<div class="player-wrapper svelte-dtyj47" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),J3={hash:"svelte-dtyj47",code:`.player-wrapper.svelte-dtyj47 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-dtyj47 .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-dtyj47 {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}
|
|
361
|
-
.ads-container.svelte-dtyj47 {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-dtyj47 {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-dtyj47 {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 Ym(t,e){var Pi,Mo;U(e,!0),q(t,J3);let[i,o]=Be(),n=()=>S(Re,"$playerPhase",i),a=()=>S(Fi,"$isLoaderVisible",i),s=()=>S(Ye,"$adPlaybackState",i),d=()=>S(mi,"$crashed",i),l=()=>S(rt,"$notificationsToShow$",i),p=()=>S(lt,"$playbackState$",i),m=()=>S(Oe,"$graphIsOpened$",i),$=()=>S(Pt,"$interactiveHideMobileControls",i),u=()=>S(mo,"$isEnded$",i),_=()=>S(Tt,"$isInteractiveExpectation$",i),w=()=>S(qe,"$controlsVisible",i),y=()=>S(di,"$touched",i),C=()=>S(Ji,"$autoplayNextEnabled$",i),T=()=>S(ht,"$postrollPassed",i),E=()=>S(Ko,"$bottomNoSmooth",i),P=()=>S(vo,"$videoSize",i),A=()=>S(Xi,"$playerSize",i),I=()=>S($t,"$isFullscreen",i),V=()=>S(Xe,"$position$",i),H=()=>S(dt,"$duration$",i),j=()=>S(Io,"$loadedMetadata",i),O=()=>S(ni,"$settingsMenuVisible",i),X=()=>S(ri,"$scrubbingInProgress",i),ne=()=>S(Hi,"$volumeChangingInProgress",i),Y=()=>S(Do,"$chromecastConnected$",i),fe=()=>S(li,"$isInteractiveTime$",i),le=()=>S(Ui,"$isActiveLive",i),Me=()=>S(Zt,"$settingsMenuOpenedByKeyboard",i),Ae=()=>S(tt,"$language$",i),me=()=>S(Bo,"$disabledControls$",i),ae=()=>S(zn,"$is3DVideo",i),Pe=()=>S(zi,"$icon3DVideoVisible",i),re=()=>S(nt,"$chromecastDeviceName$",i),D=()=>S(Ct,"$currentSubtitle$",i),Ve=()=>S(qt,"$currentSubtitleCaptions$",i),te=()=>S(Jt,"$realDuration$",i),Ge=()=>S(Xt,"$isLive$",i),ie=()=>S(si,"$isPlaying$",i),Q=()=>S(Yi,"$debugPanelVisible",i),W=f(e,"videoContainer",15),Le=f(e,"adsSlotId",3,void 0),Ne=f(e,"adsParams",3,void 0),Je=f(e,"adsPreviewParam",3,void 0),ye=f(e,"adsAutoplayParam",3,void 0),xe=f(e,"duration",3,void 0),De=f(e,"logoTargetUrl",3,""),Ze=f(e,"showNextPrevButtons",3,!1),ot=f(e,"nextButtonActive",3,!1),gt=f(e,"prevButtonActive",3,!1),et=f(e,"endScreenVideoTitle",3,void 0),mt=f(e,"endScreenVideoThumb",3,void 0),Et=f(e,"isOneVideoPlaylist",3,!1),Qt=f(e,"shadowRootContainer",3,void 0),zt=f(e,"outerContainerRef",3,void 0),Kt=f(e,"showMiniTimer",3,!1),ve=f(e,"fullScreenTarget",3,void 0),G=f(e,"playerStarted",3,!1),Te=f(e,"showEndScreen",3,!0),{notifications$:se,graphIsOpened$:Oe}=fo(),ze=e.store.getLogger().createComponentLog("Root component"),tt=e.store.interfaceLanguage$,lt=e.store.state.playbackState$,Ye=e.store.ads.playbackState,Xe=e.store.state.positionWithScrubbing$,dt=e.store.state.duration$,Re=e.store.playerPhase,$t=e.store.ui.isFullscreen,qe=e.store.ui.controlsVisible,Pt=e.store.ui.interactiveHideMobileControls,ni=e.store.ui.settingsMenu.visible$,Zt=e.store.ui.settingsMenu.openedByBtnKeyboard$,ri=e.store.ui.scrubbingInProgress,Hi=e.store.ui.volumeChangingInProgress,Yi=e.store.ui.debugPanelVisible,Fi=e.store.state.isLoaderVisible,mo=e.store.state.isEnded$,Do=e.store.state.chromecastConnected$,nt=e.store.state.chromecastDeviceName$,ht=e.store.ads.postrollPassed,wi=e.store.ui.mobileUnmuteButtonExpanded,Z=e.store.ui.mobileUnmuteButtonVisible,Xt=e.store.state.isLive$,si=e.store.state.isPlaying$,Ui=e.store.state.isActiveLive$,ti=e.store.state.isRewindableLive$,mi=e.store.state.crashed$,ai=e.store.webApi.annotationsApi,ut=e.store.webApi.pictureInPictureApi,vo=e.store.state.videoSize$,Ct=e.store.state.currentSubtitle$,qt=e.store.state.currentSubtitleCaptions$,Jt=e.store.state.duration$,Xi=e.store.ui.playerSize,zn=e.store.ui.is3DVideo,zi=e.store.ui.icon3DVideoVisible,Co=e.store.state.isInteractive,li=e.store.state.isInteractiveTime$,Tt=e.store.state.isInteractiveExpectation$,go=e.store.state.hasInteractiveBranches,Bo=e.store.ui.controls.disabledControls$,di=e.store.ui.touched,To=e.store.ui.overlayContainer$,Ji=e.store.ui.autoplayNextEnabled$,Io=e.store.state.loadedMetadata$,Oo=e.store.actions.internal.closeSettingsMenu,Tn=(Pi=e.store.callbacks)==null?void 0:Pi.onDisabledPlayPrevChapterClick,Ni=(Mo=e.store.callbacks)==null?void 0:Mo.onDisabledSeekToInteractiveClick,In=e.store.actions.internal.setQuality,eo=J(void 0),ko=J(void 0),wr=J(void 0),sr=J(void 0),kn,qn,Wn,ho=v(()=>(n()==="video"&&a()||n()==="ads"&&s()==="inactive")&&!d()),fn=J(void 0),{closeNotification:En,notificationsToShow$:rt}=se,Pn=v(()=>!!l().slow_video),Wo=()=>En("slow_video"),Ko=ce(!1),Sr,Qo=J(!1),An=v(()=>p()!==Ts.PlaybackState.PLAYING),Kn=J(!1),Mn=v(()=>m()||$()||!r(Qo)&&(u()&&!!go||r(An)&&_())),Go=J(!0),qi=v(()=>e.uiConfig.features.thumbTimer&&Kt()&&n()==="video"&&!w()&&!d()&&!Co&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),to=J(!1),Eo=v(()=>(Te()||e.showAutoplayNext&&C())&&!!et()&&!!mt()&&(e.showAds&&T()||!e.showAds)&&u()&&!d()&&!r(to)),mn=J(!1);ut==null||ut.setContext(ql());let jo=st=>{clearTimeout(qn),st&&(Z.set(!0),wi.set(!0),qn=setTimeout(()=>{wi.set(!1)},e.uiConfig.controls.collapseMobileUnmute),Co||Ei(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:jo});let Yo=()=>{clearTimeout(kn),B(Qo,!1),$()&&Pt.set(!1)},Ei=st=>{Yo(),B(Qo,!0),kn=setTimeout(()=>B(Qo,!1),st);let Rt=st-100;Sr=setTimeout(()=>{E()&&Ko.set(!1)},Rt>0?Rt:st)},Ho=zn.subscribe(st=>{zi.set(st),st&&(clearTimeout(Wn),Wn=setTimeout(()=>zi.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Po=async(st=gs())=>{var Rt,ui,Di,_o,yi,Ai;if(st&&!Ts.clientChecker.device.isIOS){let gi=rd(),Lo=Fo(),io=Ts.clientChecker.browser.isSamsungBrowser&&gi===Qt();st=gi===Lo||io}if(st){Ei(e.uiConfig.controls.hideTimeoutFullscreen);try{await(ut==null?void 0:ut.remove())}catch(gi){ze({message:String(gi)})}try{let gi=(Rt=P())!=null&&Rt.width&&((ui=P())!=null&&ui.height)?P():A();await Dh(gi)}catch(gi){ze({message:String(gi)})}}$t.set(st),e.store.getAdmanWrapper().setFullscreen(st),I()?(_o=(Di=e.store.callbacks)==null?void 0:Di.onFullscreenEnter)==null||_o.call(Di):(Ai=(yi=e.store.callbacks)==null?void 0:yi.onFullscreenExit)==null||Ai.call(yi)},ar=st=>{let Rt=st;Xi.set({width:Rt.target.width,height:Rt.target.height})};Ft(()=>{var st;return Qc(Po),e.uiConfig.features.annotationsInside&&(ai==null||ai.init(r(eo))),ia(ut)&&(ut==null||ut.assignPlayerContainer(r(eo)),ut==null||ut.registryExternalEventHandlers({resize:ar})),B(Go,!Ts.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((st=W().parentElement)==null||st.insertBefore(e.interactiveContainer,W().nextSibling)),()=>{clearTimeout(kn),clearTimeout(Sr),clearTimeout(qn),clearTimeout(Wn),Ho(),ut==null||ut.dispose().catch(Rt=>{ze({message:String(Rt)})}),Gc(Po)}});let vn=J(!0),gn=J(!0),Cr=st=>{let Rt=V()+(st==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Rt<0?(B(vn,!1),Rt=0):Rt>=H()&&(B(gn,!1),Rt=H()),B(Kn,!0),e.seekTime(Rt)},Fo=()=>{let st=Ts.clientChecker.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!zt()?r(eo):zt(),Rt=st.getRootNode(),ui=Rt instanceof ShadowRoot?Rt.host:Rt,Di=ve()instanceof HTMLElement&&ve().contains(ui);return e.uiConfig.allowChangingFullscreenTarget&&ve()&&Di?ve():st},Tr=async()=>{try{if(gs())await Kc(document),ze({message:"exit fullscreen"});else{if(ze({message:"request fullscreen"}),Ts.clientChecker.device.isIOS&&!j())return;await Wc(Fo())}}catch(st){ze({message:String(st)})}},Ln=()=>{Oo()},Qn=st=>{if(st.preventDefault(),O()){Ln();return}if(!G()){e.firstStart(),Ei(e.uiConfig.controls.hideTimeoutCursor);return}B(Kn,!1),w()?Yo():Ei(e.uiConfig.controls.hideTimeoutMobile)},lr=()=>{di.set(!0)},Ir=()=>{Co||(Ko.set(!0),Ei(e.uiConfig.controls.hideTimeoutCursor))},Gn=st=>{Tn&&(Tn(st),Ei(e.uiConfig.controls.hideTimeoutMobile))},hn=st=>{Ni&&(Ni(st),Ei(e.uiConfig.controls.hideTimeoutMobile))};Ue(()=>{To.set(r(fn))}),Ue(()=>{qe.set((r(An)||O()||X()||ne()||Y()||!r(Eo)&&(u()||r(Qo)&&!r(Kn)))&&!r(Mn)&&n()==="video"&&!d())}),Ue(()=>{!X()&&r(mn)&&!fe()&&Ei(e.uiConfig.controls.hideTimeoutMobile),B(mn,pe(X()))}),Ue(()=>{B(vn,V()>0),B(gn,pe(!le()&&V()<H()))}),Ue(()=>{il(r(sr),O(),Me())});let kr=F("aria_label_video_player"),ci=F("video360");F1({fullScreenChangeHandler:Po,getFullscreenTarget:Fo}),q1({store:e.store,getFullscreenTarget:Fo});var Ao=X3();St("blur",Fs,Ln),He(Ao,"aria-label",kr);var Si=h(Ao);xa(Si,{onClick:Qn,get videoContainer(){return W()},set videoContainer(st){W(st)}});var jn=M(Si,2);Qs(jn,()=>"slot",!1,(st,Rt)=>{Ce(st,null,{name:ya})});var pt=M(jn,2);Ks(pt,Ae,st=>{var Rt=Z3(),ui=ue(Rt);let Di=v(()=>n()!=="thumb"||d()||Co&&e.autoplay);_a(ui,{get hidden(){return r(Di)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var _o=M(ui,2);{var yi=Ie=>{var At=K3(),jt=ue(At);{var xi=Zi=>{let Vr=v(()=>e.uiConfig.controls.seekStepMobile/1e3);bu(Zi,{side:"left",get seekStep(){return r(Vr)},handleSingleFirstClick:Qn,handleSecondClick:()=>Cr("backward")})};R(jt,Zi=>{r(vn)&&Zi(xi)})}var ei=M(jt,2);{var Lr=Zi=>{let Vr=v(()=>e.uiConfig.controls.seekStepMobile/1e3);bu(Zi,{side:"right",get seekStep(){return r(Vr)},handleSingleFirstClick:Qn,handleSecondClick:()=>Cr("forward")})};R(ei,Zi=>{r(gn)&&Zi(Lr)})}b(Ie,At)};R(_o,Ie=>{e.canRewindLive&&ti&&!me().has("TIMELINE")&&Ie(yi)})}var Ai=M(_o,2);{var gi=Ie=>{let At=v(()=>{var jt;return(jt=e.live)==null?void 0:jt.startTime});Hd(Ie,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(At)}})};R(Ai,Ie=>{n()==="LiveWaitingStart"&&Ie(gi)})}var Lo=M(Ai,2);{var io=Ie=>{ba(Ie,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(Lo,Ie=>{n()==="LiveWaitingRecover"&&Ie(io)})}var oo=M(Lo,2);{var _n=Ie=>{ba(Ie,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(oo,Ie=>{n()==="LiveWaitingRecord"&&Ie(_n)})}var Yn=M(oo,2);{var dr=Ie=>{var At=Q3();let jt;var xi=h(At);sd(xi,{get adsSlotId(){return Le()},get adsParams(){return Ne()},get adsPreviewParam(){return Je()},get adsAutoplayParam(){return ye()},get duration(){return xe()}}),g(At),k(ei=>jt=ee(At,1,"ads-container svelte-dtyj47",null,jt,ei),[()=>({hidden:n()!=="ads"})]),b(Ie,At)};R(Yn,Ie=>{e.showAds&&G()&&Ie(dr)})}var Zn=M(Yn,2);{var Er=Ie=>{let At=v(()=>!Te()&&e.showAutoplayNext&&C());jm(Ie,{get title(){return et()},get thumb(){return mt()},get isHide(){return r(At)},clickCloseIcon:()=>B(to,!0)})};R(Zn,Ie=>{r(Eo)&&et()&&mt()&&Ie(Er)})}var cr=M(Zn,2);{var bn=Ie=>{Dd(Ie,{})};R(cr,Ie=>{ae()&&Ie(bn)})}var Vn=M(cr,2);{var Zo=Ie=>{var At=G3(),jt=h(At);nd(jt,{"aria-label":ci}),g(At),b(Ie,At)};R(Vn,Ie=>{Pe()&&Ie(Zo)})}var Xo=M(Vn,2);{var Xn=Ie=>{Bd(Ie,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return re()}})};R(Xo,Ie=>{Y()&&Ie(Xn)})}var Pr=M(Xo,2);{var Ar=Ie=>{ha(Ie,{get shifted(){return w()},get captions(){return Ve()},get position(){return V()},get playerSize(){return A()},isMobile:!0})};R(Pr,Ie=>{D().value!=="off"&&Ie(Ar)})}var ur=M(Pr,2);{var bo=Ie=>{var At=j3();At.__click=[W3,O,ni,Ln];var jt=h(At);Od(jt,{}),g(At),b(Ie,At)};R(ur,Ie=>{d()&&Ie(bo)})}var Rn=M(ur,2);{var Jn=Ie=>{let At=v(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),jt=v(()=>n()==="ads"),xi=v(()=>e.canRewindLive&&te()!==0);Nd(Ie,{get bottomHidden(){return r(At)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return r(jt)},get canRewindLive(){return r(xi)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return De()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Ze()},get nextButtonActive(){return ot()},get prevButtonActive(){return gt()},get isOneVideoPlaylist(){return Et()},get customFullscreenSupported(){return r(Go)},get endScreenShown(){return r(Eo)},toggleFullscreen:Tr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Gn,onDisabledSeekToInteractiveClick:hn,get playerControlsWrapperRef(){return r(ko)},set playerControlsWrapperRef(ei){B(ko,pe(ei))},get playerControlsRef(){return r(wr)},set playerControlsRef(ei){B(wr,pe(ei))}})};R(Rn,Ie=>{G()&&Ie(Jn)})}var Mr=M(Rn,2);{var ct=Ie=>{var At=Y3(),jt=h(At);qd(jt,{get supportLink(){return e.supportLink},returnFocus:W1.noop,get ref(){return r(sr)},set ref(xi){B(sr,pe(xi))}}),g(At),b(Ie,At)};R(Mr,Ie=>{O()&&Ie(ct)})}var Ht=M(Mr,2);let Mi=v(()=>!r(qi));dd(Ht,{get isLive(){return Ge()},get isHidden(){return r(Mi)},get isPlaying(){return ie()},get position(){return V()},get duration(){return H()}});var $e=M(Ht,2);{var It=Ie=>{aa(Ie,{})};R($e,Ie=>{r(ho)&&Ie(It)})}var vi=M($e,2);{var Ci=Ie=>{pd(Ie,{})};R(vi,Ie=>{Q()&&Ie(Ci)})}var no=M(vi,2);{var pi=Ie=>{Wd(Ie,{onClose:Wo,onSelectAutoQuality:()=>{In("auto"),Wo()}})};R(no,Ie=>{r(Pn)&&Ie(pi)})}b(st,Rt)});var Ot=M(pt,2);ft(Ot,st=>B(fn,st),()=>r(fn)),g(Ao),ft(Ao,st=>B(eo,st),()=>r(eo)),St("click",Ao,lr,!0),St("focusin",Ao,Ir,!0),b(t,Ao),z(),o()}at(["click"]);function yu(t){let e="";return Un(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Un(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Un(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Un(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Un(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Un(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Un(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Un(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Un(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Un(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Un(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Un(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Un(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),e.length&&e||void 0}function Un(t){return typeof t=="string"&&!t.includes(";")}var K1=require("@vkontakte/videoplayer-shared/es2018");var ex=L('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),tx={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 Zm(t,e){U(e,!0),q(t,tx);let[i,o]=Be(),n=()=>S(ne,"$playerSize",i),a=()=>S(I,"$isPlaying$",i),s=()=>S(P,"$duration$",i),d=()=>S(j,"$positionWithScrubbing$",i),l=()=>S(T,"$playerPhase",i),p=()=>S(E,"$crashed$",i),m=()=>S(V,"$currentSubtitle$",i),$=()=>S(H,"$currentSubtitleCaptions$",i),u=()=>S(A,"$positionExact$",i),_=()=>S(O,"$isLive$",i),w=()=>S(X,"$isRewindableLive$",i),y=f(e,"outsideDuration",3,0),C=f(e,"videoContainer",15),{playerPhase:T,state:{crashed$:E,duration$:P,positionExact$:A,isPlaying$:I,currentSubtitle$:V,currentSubtitleCaptions$:H,positionWithScrubbing$:j,isLive$:O,isRewindableLive$:X},ui:{playerSize:ne,controls:Y},actions:{internal:{getVideoElement:fe}}}=Se(),le=8,Me=J(!1),Ae=pe({}),me=()=>{B(Me,!0)},ae=()=>{B(Me,!1)},Pe=(0,K1.debounceFn)(cl,260);Ue(()=>{n(),Pe(fe(),Y,Ae,r(Me))});let re=v(()=>a()?un(s()-d()):un(isFinite(s())?s():y()));var D=ex(),Ve=h(D);xa(Ve,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(De){C(De)}});var te=M(Ve,2);Qs(te,()=>"slot",!1,(De,Ze)=>{Ce(De,null,{name:ya})});var Ge=M(te,2);let ie=v(()=>l()!=="thumb"||p());_a(Ge,{get hidden(){return r(ie)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var Q=M(Ge,2);{var W=De=>{ha(De,{shifted:!1,get captions(){return $()},get position(){return u()},get playerSize(){return n()}})};R(Q,De=>{m().value!=="off"&&De(W)})}var Le=M(Q,2),Ne=h(Le);ld(Ne,{get isLive(){return _()},get isPlaying(){return a()},get time(){return r(re)}}),g(Le);var Je=M(Le,2);let ye;var xe=h(Je);ua(xe,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:le,tooltipRightOffset:le,get ref(){return Ae.timeline},set ref(De){Ae.timeline=De}}),g(Je),g(D),k(De=>ye=ee(Je,1,"timeline svelte-1qfjf44",null,ye,De),[()=>({visible:r(Me)})]),St("mouseenter",D,me),St("mouseleave",D,ae),b(t,D),z(),o()}var ix=L("<div><!></div>"),ox={hash:"svelte-7ed4yj",code:`.root.svelte-7ed4yj {--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;--focused: var(--white);--focused-element-shadow: inset 0 0 0 2px var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
|
|
360
|
+
}.triangle.left.svelte-nhq2ld {border-right:8px solid var(--white);}.triangle.right.svelte-nhq2ld {border-left:8px solid var(--white);}.triangle.svelte-nhq2ld:not(:last-child) {margin-right:5px;}.step-caption.svelte-nhq2ld {margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white);}`};function $u(t,e){U(e,!0),K(t,q3);let i=f(e,"seekStep",3,0),o=X(!1),n=0,a=0,s=X(pe(i())),d=y=>{y.stopPropagation(),a+=1,D(s,i()*(a-1)),a===1?e.handleSingleFirstClick(y):(D(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{a=0,D(o,!1)},300)};In(()=>{window.clearTimeout(n)});var l=z3();l.__click=d;var p=h(l);{var m=y=>{var u=U3(),$=ue(u),w=A($,2),b=h(w),C=h(b),T=A(C,2),I=A(T,2);g(b);var M=A(b,2),P=h(M,!0);g(M),g(w),E(k=>{var R,W,Y,F;J($,1,`semicircle ${(R=e.side)!=null?R:""}`,"svelte-nhq2ld"),J(C,1,`triangle ${(W=e.side)!=null?W:""}`,"svelte-nhq2ld"),J(T,1,`triangle ${(Y=e.side)!=null?Y:""}`,"svelte-nhq2ld"),J(I,1,`triangle ${(F=e.side)!=null?F:""}`,"svelte-nhq2ld"),me(P,k)},[()=>q("doubletap_seek_step",{seconds:r(s).toFixed(0)})]),_(y,u)};B(p,y=>{r(o)&&y(m)})}g(l),E(()=>{var y;return J(l,1,`double-click-area ${(y=e.side)!=null?y:""}`,"svelte-nhq2ld")}),_(t,l),z()}at(["click"]);var W3=(t,e,i)=>{e(!1),i()},K3=L('<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),Q3={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 Xm(t,e){U(e,!0),K(t,Q3);let[i,o]=Ne(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),s=Ce(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,p=s.actions.internal.nextVideoClick,m=s.actions.internal.nextVideoAnnouncementShow,y=s.actions.internal.nextVideoAnnouncementClick,u=s.actions.internal.nextVideoAnnouncementAuto,$=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{p(!1),u()},b=()=>{e.clickCloseIcon(),$()};Ut(()=>{e.isHide||m(),e.isHide&&n()&&(p(!1),u())});var C=Oe(),T=ue(C);{var I=M=>{var P=K3(),k=A(ue(P),2),R=h(k),W=h(R),Y=h(W,!0);g(W);var F=A(W,2);ra(F,{onClick:b}),g(R);var Q=A(R,2);Q.__click=[W3,p,y];var oe=h(Q),Z=h(oe),re=h(Z);let de;var Ae=A(re,2);{var Me=ne=>{pd(ne,{get isRunning(){return a()},onTimerEnded:w})};B(Ae,ne=>{n()&&ne(Me)})}g(Z),g(oe);var ge=A(oe,2),se=h(ge),Ee=h(se,!0);g(se),g(ge),g(Q),g(k),E((ne,V)=>{me(Y,ne),st(Z,`background-image: url('${e.thumb}')`),de=J(re,1,"thumb-overlay svelte-1qdxi6t",null,de,V),me(Ee,e.title)},[()=>n()?q("end_screen_next_video"):q("end_screen_recommended_video"),()=>({withOpacity:n()})]),_(M,P)};B(T,M=>{e.isHide||M(I)})}_(t,C),z(),o()}at(["click"]);var z1=require("@vkontakte/videoplayer-core/es2018");var q1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Ut(()=>{z1.clientChecker.device.isIOS&&(o=setTimeout(()=>{let a=t().querySelector("video");if(!a)return;let s=()=>e(!0),d=()=>e(!1);a.addEventListener("webkitbeginfullscreen",s),a.addEventListener("webkitendfullscreen",d),i=()=>{a.removeEventListener("webkitbeginfullscreen",s),a.removeEventListener("webkitendfullscreen",d)}},0))}),In(()=>{i==null||i(),clearTimeout(o)})};var W1=require("@vkontakte/videoplayer-core/es2018");var yu=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};var K1=require("@vkontakte/videoplayer-core/es2018"),Q1=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:a,currentFormat$:s,availableTextTracks$:d}=t.state,l=null,p=()=>e().querySelector("video"),m=()=>K1.clientChecker.device.isIOS&&Se(s)===W1.VideoFormat.DASH_LIVE_CMAF,y=()=>{l==null||l(),l=null},u=$=>{if(y(),!m()||!$)return;let w=p();if(!w)return;let b=new yu(w),C=Se(d),T=Se(a),I=Se(n);for(let k of C)T.some(W=>W.value===k.id)&&b.attach(k,I.value===k.id);let M=d.subscribe(k=>{for(let R of k)b.updateSrc(R)}),P=()=>{let k=b.getCurrentShowingId();o(Se(a).find(R=>R.value===k))};w.textTracks.addEventListener("change",P),l=()=>{M(),b.detachAll(),w.textTracks.removeEventListener("change",P)}};Ut(()=>i.subscribe(u)),In(y)};var G3=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},Y3=L("<!> <!>",1),j3=L("<div><!></div>"),Z3=L('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),X3=L("<div><!></div>"),J3=L('<div class="settings-mobile svelte-7yl31d"><!></div>'),ex=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),tx=L('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),ix={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 Jm(t,e){var Go,Yo;U(e,!0),K(t,ix);let[i,o]=Ne(),n=()=>S(Xe,"$playerPhase",i),a=()=>S(ji,"$isLoaderVisible",i),s=()=>S(et,"$adPlaybackState",i),d=()=>S(pt,"$crashed",i),l=()=>S(No,"$notificationsToShow$",i),p=()=>S(rt,"$playbackState$",i),m=()=>S(je,"$graphIsOpened$",i),y=()=>S(Jt,"$interactiveHideMobileControls",i),u=()=>S(ot,"$isEnded$",i),$=()=>S(Uo,"$isInteractiveExpectation$",i),w=()=>S(bt,"$controlsVisible",i),b=()=>S(Hi,"$touched",i),C=()=>S(Fi,"$autoplayNextEnabled$",i),T=()=>S(eo,"$postrollPassed",i),I=()=>S(Do,"$bottomNoSmooth",i),M=()=>S(Vt,"$videoSize",i),P=()=>S(to,"$playerSize",i),k=()=>S(Kt,"$isFullscreen",i),R=()=>S(_t,"$position$",i),W=()=>S(it,"$duration$",i),Y=()=>S(zn,"$loadedMetadata",i),F=()=>S(Ge,"$settingsMenuVisible",i),Q=()=>S(Vi,"$scrubbingInProgress",i),oe=()=>S(Oi,"$volumeChangingInProgress",i),Z=()=>S($t,"$chromecastConnected$",i),re=()=>S(yi,"$isControlsAvailable",i),de=()=>S(Bi,"$isInteractiveTime$",i),Ae=()=>S(Ri,"$isActiveLive",i),Me=()=>S(Yt,"$settingsMenuOpenedByKeyboard",i),ge=()=>S(Le,"$language$",i),se=()=>S(zo,"$disabledControls$",i),Ee=()=>S(Vo,"$is3DVideo",i),ne=()=>S(ui,"$icon3DVideoVisible",i),V=()=>S(ki,"$chromecastDeviceName$",i),xe=()=>S(po,"$currentSubtitle$",i),_e=()=>S(Zt,"$currentSubtitleCaptions$",i),ze=()=>S(Un,"$realDuration$",i),H=()=>S(jt,"$isLive$",i),le=()=>S(gi,"$isPlaying$",i),he=()=>S(uo,"$debugPanelVisible",i),ee=f(e,"videoContainer",15),De=f(e,"adsSlotId",3,void 0),Ze=f(e,"adsParams",3,void 0),we=f(e,"adsPreviewParam",3,void 0),Ve=f(e,"adsAutoplayParam",3,void 0),Ie=f(e,"duration",3,void 0),Ue=f(e,"logoTargetUrl",3,""),ct=f(e,"showNextPrevButtons",3,!1),ut=f(e,"nextButtonActive",3,!1),nt=f(e,"prevButtonActive",3,!1),Ct=f(e,"endScreenVideoTitle",3,void 0),mt=f(e,"endScreenVideoThumb",3,void 0),Wt=f(e,"isOneVideoPlaylist",3,!1),ti=f(e,"shadowRootContainer",3,void 0),Lt=f(e,"outerContainerRef",3,void 0),Nt=f(e,"showMiniTimer",3,!1),O=f(e,"fullScreenTarget",3,void 0),be=f(e,"playerStarted",3,!1),te=f(e,"showEndScreen",3,!0),{notifications$:Re,graphIsOpened$:je}=lo(),Qe=e.store.getLogger().createComponentLog("Root component"),Le=e.store.interfaceLanguage$,rt=e.store.state.playbackState$,et=e.store.ads.playbackState,_t=e.store.state.positionWithScrubbing$,it=e.store.state.duration$,Xe=e.store.playerPhase,Kt=e.store.ui.isFullscreen,bt=e.store.ui.controlsVisible,yi=e.store.ui.isControlsAvailable,Jt=e.store.ui.interactiveHideMobileControls,Ge=e.store.ui.settingsMenu.visible$,Yt=e.store.ui.settingsMenu.openedByBtnKeyboard$,Vi=e.store.ui.scrubbingInProgress,Oi=e.store.ui.volumeChangingInProgress,uo=e.store.ui.debugPanelVisible,ji=e.store.state.isLoaderVisible,ot=e.store.state.isEnded$,$t=e.store.state.chromecastConnected$,ki=e.store.state.chromecastDeviceName$,eo=e.store.ads.postrollPassed,To=e.store.ui.mobileUnmuteButtonExpanded,j=e.store.ui.mobileUnmuteButtonVisible,jt=e.store.state.isLive$,gi=e.store.state.isPlaying$,Ri=e.store.state.isActiveLive$,si=e.store.state.isRewindableLive$,pt=e.store.state.crashed$,mi=e.store.webApi.annotationsApi,Je=e.store.webApi.pictureInPictureApi,Vt=e.store.state.videoSize$,po=e.store.state.currentSubtitle$,Zt=e.store.state.currentSubtitleCaptions$,Un=e.store.state.duration$,to=e.store.ui.playerSize,Vo=e.store.ui.is3DVideo,ui=e.store.ui.icon3DVideoVisible,Tt=e.store.state.isInteractive,Bi=e.store.state.isInteractiveTime$,Uo=e.store.state.isInteractiveExpectation$,pi=e.store.state.hasInteractiveBranches,zo=e.store.ui.controls.disabledControls$,Hi=e.store.ui.touched,Io=e.store.ui.overlayContainer$,Fi=e.store.ui.autoplayNextEnabled$,zn=e.store.state.loadedMetadata$,fo=e.store.actions.internal.closeSettingsMenu,En=(Go=e.store.callbacks)==null?void 0:Go.onDisabledPlayPrevChapterClick,Ro=(Yo=e.store.callbacks)==null?void 0:Yo.onDisabledSeekToInteractiveClick,Bo=e.store.actions.internal.setQuality,Pn=X(void 0),Ir=X(void 0),dr=X(void 0),An=X(void 0),fn,qn,ft,mo=v(()=>(n()==="video"&&a()||n()==="ads"&&s()==="inactive")&&!d()),qo=X(void 0),{closeNotification:Mn,notificationsToShow$:No}=Re,Wo=v(()=>!!l().slow_video),Wn=()=>Mn("slow_video"),Do=ce(!1),Kn,mn=X(!1),Qn=v(()=>p()!==Ts.PlaybackState.PLAYING),Ko=X(!1),vo=v(()=>m()||y()||!r(mn)&&(u()&&!!pi||r(Qn)&&$())),Si=X(!0),vn=v(()=>e.uiConfig.features.thumbTimer&&Nt()&&n()==="video"&&!w()&&!d()&&!Tt&&(e.uiConfig.hideThumbTimerAfterTouch&&!b()||!e.uiConfig.hideThumbTimerAfterTouch)),gn=X(!1),Qo=v(()=>(te()||e.showAutoplayNext&&C())&&!!Ct()&&!!mt()&&(e.showAds&&T()||!e.showAds)&&u()&&!d()&&!r(gn)),go=X(!1);Je==null||Je.setContext(zl());let Ln=tt=>{clearTimeout(qn),tt&&(j.set(!0),To.set(!0),qn=setTimeout(()=>{To.set(!1)},e.uiConfig.controls.collapseMobileUnmute),Tt||Ui(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:Ln});let ko=()=>{clearTimeout(fn),D(mn,!1),y()&&Jt.set(!1)},Ui=tt=>{ko(),D(mn,!0),fn=setTimeout(()=>D(mn,!1),tt);let Mt=tt-100;Kn=setTimeout(()=>{I()&&Do.set(!1)},Mt>0?Mt:tt)},cr=Vo.subscribe(tt=>{ui.set(tt),tt&&(clearTimeout(ft),ft=setTimeout(()=>ui.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Oo=async(tt=gs())=>{var Mt,vi,zi,Zi,bn,$n;if(tt&&!Ts.clientChecker.device.isIOS){let qi=nd(),Ei=hn(),jo=Ts.clientChecker.browser.isSamsungBrowser&&qi===ti();tt=qi===Ei||jo}if(tt){Ui(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Je==null?void 0:Je.remove())}catch(qi){Qe({message:String(qi)})}try{let qi=(Mt=M())!=null&&Mt.width&&((vi=M())!=null&&vi.height)?M():P();await Hh(qi)}catch(qi){Qe({message:String(qi)})}}Kt.set(tt),e.store.getAdmanWrapper().setFullscreen(tt),k()?(Zi=(zi=e.store.callbacks)==null?void 0:zi.onFullscreenEnter)==null||Zi.call(zi):($n=(bn=e.store.callbacks)==null?void 0:bn.onFullscreenExit)==null||$n.call(bn)},Gn=tt=>{let Mt=tt;to.set({width:Mt.target.width,height:Mt.target.height})};Ut(()=>{var tt;return Qc(Oo),e.uiConfig.features.annotationsInside&&(mi==null||mi.init(r(Pn))),ta(Je)&&(Je==null||Je.assignPlayerContainer(r(Pn)),Je==null||Je.registryExternalEventHandlers({resize:Gn})),D(Si,!Ts.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((tt=ee().parentElement)==null||tt.insertBefore(e.interactiveContainer,ee().nextSibling)),()=>{clearTimeout(fn),clearTimeout(Kn),clearTimeout(qn),clearTimeout(ft),cr(),Je==null||Je.dispose().catch(Mt=>{Qe({message:String(Mt)})}),Gc(Oo)}});let Vn=X(!0),Yn=X(!0),ur=tt=>{let Mt=R()+(tt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Mt<0?(D(Vn,!1),Mt=0):Mt>=W()&&(D(Yn,!1),Mt=W()),D(Ko,!0),e.seekTime(Mt)},hn=()=>{let tt=Ts.clientChecker.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Lt()?r(Pn):Lt(),Mt=tt.getRootNode(),vi=Mt instanceof ShadowRoot?Mt.host:Mt,zi=O()instanceof HTMLElement&&O().contains(vi);return e.uiConfig.allowChangingFullscreenTarget&&O()&&zi?O():tt},kr=async()=>{try{if(gs())await Kc(document),Qe({message:"exit fullscreen"});else{if(Qe({message:"request fullscreen"}),Ts.clientChecker.device.isIOS&&!Y())return;await Wc(hn())}}catch(tt){Qe({message:String(tt)})}},pr=()=>{fo()},jn=tt=>{if(tt.preventDefault(),F()){pr();return}if(!be()){e.firstStart(),Ui(e.uiConfig.controls.hideTimeoutCursor);return}D(Ko,!1),w()?ko():Ui(e.uiConfig.controls.hideTimeoutMobile)},Er=()=>{Hi.set(!0)},Pr=()=>{Tt||(Do.set(!0),Ui(e.uiConfig.controls.hideTimeoutCursor))},_n=tt=>{En&&(En(tt),Ui(e.uiConfig.controls.hideTimeoutMobile))},Gt=tt=>{Ro&&(Ro(tt),Ui(e.uiConfig.controls.hideTimeoutMobile))};Fe(()=>{Io.set(r(qo))}),Fe(()=>{bt.set((r(Qn)||F()||Q()||oe()||Z()||!r(Qo)&&(u()||r(mn)&&!r(Ko)))&&!r(vo)&&n()==="video"&&!d()&&re())}),Fe(()=>{!Q()&&r(go)&&!de()&&Ui(e.uiConfig.controls.hideTimeoutMobile),D(go,pe(Q()))}),Fe(()=>{D(Vn,R()>0),D(Yn,pe(!Ae()&&R()<W()))}),Fe(()=>{rl(r(An),F(),Me())});let vt=q("aria_label_video_player"),Dt=q("video360");q1({fullScreenChangeHandler:Oo,getFullscreenTarget:hn}),Q1({store:e.store,getFullscreenTarget:hn});var ai=tx();kt("blur",Hs,pr),Be(ai,"aria-label",vt);var ni=h(ai);ya(ni,{onClick:jn,get videoContainer(){return ee()},set videoContainer(tt){ee(tt)}});var ho=A(ni,2);Ks(ho,()=>"slot",!1,(tt,Mt)=>{Te(tt,null,{name:$a})});var Eo=A(ho,2);Ws(Eo,ge,tt=>{var Mt=ex(),vi=ue(Mt);let zi=v(()=>n()!=="thumb"||d()||Tt&&e.autoplay);ha(vi,{get hidden(){return r(zi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Zi=A(vi,2);{var bn=He=>{var Rt=Y3(),oi=ue(Rt);{var io=Ni=>{let ir=v(()=>e.uiConfig.controls.seekStepMobile/1e3);$u(Ni,{side:"left",get seekStep(){return r(ir)},handleSingleFirstClick:jn,handleSecondClick:()=>ur("backward")})};B(oi,Ni=>{r(Vn)&&Ni(io)})}var bo=A(oi,2);{var qr=Ni=>{let ir=v(()=>e.uiConfig.controls.seekStepMobile/1e3);$u(Ni,{side:"right",get seekStep(){return r(ir)},handleSingleFirstClick:jn,handleSecondClick:()=>ur("forward")})};B(bo,Ni=>{r(Yn)&&Ni(qr)})}_(He,Rt)};B(Zi,He=>{e.canRewindLive&&si&&!se().has("TIMELINE")&&He(bn)})}var $n=A(Zi,2);{var qi=He=>{let Rt=v(()=>{var oi;return(oi=e.live)==null?void 0:oi.startTime});Od(He,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(Rt)}})};B($n,He=>{n()==="LiveWaitingStart"&&He(qi)})}var Ei=A($n,2);{var jo=He=>{_a(He,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};B(Ei,He=>{n()==="LiveWaitingRecover"&&He(jo)})}var Zn=A(Ei,2);{var Ar=He=>{_a(He,{kind:"record",get thumbUrl(){return e.thumbUrl}})};B(Zn,He=>{n()==="LiveWaitingRecord"&&He(Ar)})}var Zo=A(Zn,2);{var fr=He=>{var Rt=j3();let oi;var io=h(Rt);rd(io,{get adsSlotId(){return De()},get adsParams(){return Ze()},get adsPreviewParam(){return we()},get adsAutoplayParam(){return Ve()},get duration(){return Ie()}}),g(Rt),E(bo=>oi=J(Rt,1,"ads-container svelte-7yl31d",null,oi,bo),[()=>({hidden:n()!=="ads"})]),_(He,Rt)};B(Zo,He=>{e.showAds&&be()&&He(fr)})}var Xn=A(Zo,2);{var mr=He=>{let Rt=v(()=>!te()&&e.showAutoplayNext&&C());Xm(He,{get title(){return Ct()},get thumb(){return mt()},get isHide(){return r(Rt)},clickCloseIcon:()=>D(gn,!0)})};B(Xn,He=>{r(Qo)&&Ct()&&mt()&&He(mr)})}var Jn=A(Xn,2);{var Mr=He=>{Bd(He,{})};B(Jn,He=>{Ee()&&He(Mr)})}var er=A(Jn,2);{var Xo=He=>{var Rt=Z3(),oi=h(Rt);od(oi,{"aria-label":Dt}),g(Rt),_(He,Rt)};B(er,He=>{ne()&&He(Xo)})}var Lr=A(er,2);{var Jo=He=>{Nd(He,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return V()}})};B(Lr,He=>{Z()&&He(Jo)})}var vr=A(Lr,2);{var zr=He=>{ga(He,{get shifted(){return w()},get captions(){return _e()},get position(){return R()},get playerSize(){return P()},isMobile:!0})};B(vr,He=>{xe().value!=="off"&&He(zr)})}var lt=A(vr,2);{var Qt=He=>{var Rt=X3();Rt.__click=[G3,F,Ge,pr];var oi=h(Rt);Dd(oi,{}),g(Rt),_(He,Rt)};B(lt,He=>{d()&&He(Qt)})}var ii=A(lt,2);{var _o=He=>{let Rt=v(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),oi=v(()=>n()==="ads"),io=v(()=>e.canRewindLive&&ze()!==0);Rd(He,{get bottomHidden(){return r(Rt)},get showControls(){return w()},get bottomNoSmooth(){return I()},get isAds(){return r(oi)},get canRewindLive(){return r(io)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ue()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return ct()},get nextButtonActive(){return ut()},get prevButtonActive(){return nt()},get isOneVideoPlaylist(){return Wt()},get customFullscreenSupported(){return r(Si)},get endScreenShown(){return r(Qo)},toggleFullscreen:kr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:_n,onDisabledSeekToInteractiveClick:Gt,get playerControlsWrapperRef(){return r(Ir)},set playerControlsWrapperRef(bo){D(Ir,pe(bo))},get playerControlsRef(){return r(dr)},set playerControlsRef(bo){D(dr,pe(bo))}})};B(ii,He=>{be()&&He(_o)})}var yn=A(ii,2);{var tr=He=>{var Rt=J3(),oi=h(Rt);zd(oi,{get supportLink(){return e.supportLink},returnFocus:G1.noop,get ref(){return r(An)},set ref(io){D(An,pe(io))}}),g(Rt),_(He,Rt)};B(yn,He=>{F()&&He(tr)})}var xn=A(yn,2);let Rn=v(()=>!r(vn));ld(xn,{get isLive(){return H()},get isHidden(){return r(Rn)},get isPlaying(){return le()},get position(){return R()},get duration(){return W()}});var xi=A(xn,2);{var fe=He=>{sa(He,{})};B(xi,He=>{r(mo)&&He(fe)})}var wt=A(xi,2);{var li=He=>{ud(He,{})};B(wt,He=>{he()&&He(li)})}var fi=A(wt,2);{var wi=He=>{qd(He,{onClose:Wn,onSelectAutoQuality:()=>{Bo("auto"),Wn()}})};B(fi,He=>{r(Wo)&&He(wi)})}_(tt,Mt)});var Po=A(Eo,2);gt(Po,tt=>D(qo,tt),()=>r(qo)),g(ai),gt(ai,tt=>D(Pn,tt),()=>r(Pn)),kt("click",ai,Er,!0),kt("focusin",ai,Pr,!0),_(t,ai),z(),o()}at(["click"]);function xu(t){let e="";return co(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),co(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),co(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),co(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),co(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),co(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),co(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),co(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),co(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),co(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),co(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),co(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),co(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),co(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),co(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),co(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),co(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),co(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),co(t.font)&&(e+=`--font:${t.font};`),e.length&&e||void 0}function co(t){return typeof t=="string"&&!t.includes(";")}var Y1=require("@vkontakte/videoplayer-shared/es2018");var ox=L('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),nx={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 ev(t,e){U(e,!0),K(t,nx);let[i,o]=Ne(),n=()=>S(oe,"$playerSize",i),a=()=>S(k,"$isPlaying$",i),s=()=>S(M,"$duration$",i),d=()=>S(Y,"$positionWithScrubbing$",i),l=()=>S(T,"$playerPhase",i),p=()=>S(I,"$crashed$",i),m=()=>S(R,"$currentSubtitle$",i),y=()=>S(W,"$currentSubtitleCaptions$",i),u=()=>S(P,"$positionExact$",i),$=()=>S(F,"$isLive$",i),w=()=>S(Q,"$isRewindableLive$",i),b=f(e,"outsideDuration",3,0),C=f(e,"videoContainer",15),{playerPhase:T,state:{crashed$:I,duration$:M,positionExact$:P,isPlaying$:k,currentSubtitle$:R,currentSubtitleCaptions$:W,positionWithScrubbing$:Y,isLive$:F,isRewindableLive$:Q},ui:{playerSize:oe,controls:Z},actions:{internal:{getVideoElement:re}}}=Ce(),de=8,Ae=X(!1),Me=pe({}),ge=()=>{D(Ae,!0)},se=()=>{D(Ae,!1)},Ee=(0,Y1.debounceFn)(fl,260);Fe(()=>{n(),Ee(re(),Z,Me,r(Ae))});let ne=v(()=>a()?un(s()-d()):un(isFinite(s())?s():b()));var V=ox(),xe=h(V);ya(xe,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(Ie){C(Ie)}});var _e=A(xe,2);Ks(_e,()=>"slot",!1,(Ie,Ue)=>{Te(Ie,null,{name:$a})});var ze=A(_e,2);let H=v(()=>l()!=="thumb"||p());ha(ze,{get hidden(){return r(H)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var le=A(ze,2);{var he=Ie=>{ga(Ie,{shifted:!1,get captions(){return y()},get position(){return u()},get playerSize(){return n()}})};B(le,Ie=>{m().value!=="off"&&Ie(he)})}var ee=A(le,2),De=h(ee);ad(De,{get isLive(){return $()},get isPlaying(){return a()},get time(){return r(ne)}}),g(ee);var Ze=A(ee,2);let we;var Ve=h(Ze);ca(Ve,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:de,tooltipRightOffset:de,get ref(){return Me.timeline},set ref(Ie){Me.timeline=Ie}}),g(Ze),g(V),E(Ie=>we=J(Ze,1,"timeline svelte-1qfjf44",null,we,Ie),[()=>({visible:r(Ae)})]),kt("mouseenter",V,ge),kt("mouseleave",V,se),_(t,V),z(),o()}var rx=L("<div><!></div>"),sx={hash:"svelte-tw6yp4",code:`.root.svelte-tw6yp4 {--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;
|
|
362
361
|
|
|
363
362
|
/* USER DEFINED COLORS */
|
|
364
363
|
|
|
@@ -385,12 +384,12 @@ Try switching the\xA0quality to\xA0Auto.`},Mh=I_;var ts=new Map;ts.set(Ya.Interf
|
|
|
385
384
|
rgba(0, 0, 0, 0.96) 86.67%,
|
|
386
385
|
rgba(0, 0, 0, 0.99) 93.33%,
|
|
387
386
|
#000 100%
|
|
388
|
-
);--timeline-preview-shadow: rgba(0, 0, 0, 0.08);--timeline-preview-bg: rgba(34, 34, 34, 1);--settings-bg: rgba(0, 0, 0, 0.72);--settings-item-bg-hover: rgba(255, 255, 255, 0.08);--settings-radius: 8px;--mobile-settings-bg: #2c2d2e;--divider-border: 1px solid var(--white-alpha-24);--toggle-color-separator: #363738;--toggle-color-off: #656565;--toggle-color-on: #71aaeb;--toggle-color-autoplay-on: var(--white);--notification-bg: #2C2D2E;--notification-radius: 8px;--button-hover-transition: opacity 0.2s;--video-container-z-index: 0;--controls-container-z-index: 1;--ads-container-z-index: 1;--end-screen-mobile-z-index: 1;--notification-z-index: 1;--thumb-timer-z-index: 2;--debug-panel-z-index: 2;--settings-menu-z-index: 2;--context-menu-z-index: 3;--hot-key-helpers-container-z-index: 3;--overlay-container-z-index: 4;--rotate-transition-duration: 0.25s;--btn-color: var(--white);position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;
|
|
389
|
-
/* --vk-vp-custom-font - vk video player custom font */font-family:var(--vk-vp-custom-font, var(--font));background:var(--black);}.root--miui-browser.svelte-
|
|
387
|
+
);--timeline-preview-shadow: rgba(0, 0, 0, 0.08);--timeline-preview-bg: rgba(34, 34, 34, 1);--timeline-padding-horizontal: 10px;--settings-bg: rgba(0, 0, 0, 0.72);--settings-item-bg-hover: rgba(255, 255, 255, 0.08);--settings-radius: 8px;--mobile-settings-bg: #2c2d2e;--divider-border: 1px solid var(--white-alpha-24);--toggle-color-separator: #363738;--toggle-color-off: #656565;--toggle-color-on: #71aaeb;--toggle-color-autoplay-on: var(--white);--notification-bg: #2C2D2E;--notification-radius: 8px;--button-hover-transition: opacity 0.2s;--video-container-z-index: 0;--controls-container-z-index: 1;--ads-container-z-index: 1;--end-screen-mobile-z-index: 1;--notification-z-index: 1;--thumb-timer-z-index: 2;--debug-panel-z-index: 2;--settings-menu-z-index: 2;--context-menu-z-index: 3;--hot-key-helpers-container-z-index: 3;--overlay-container-z-index: 4;--rotate-transition-duration: 0.25s;--btn-color: var(--white);position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;
|
|
388
|
+
/* --vk-vp-custom-font - vk video player custom font */font-family:var(--vk-vp-custom-font, var(--font));background:var(--black);}.root--miui-browser.svelte-tw6yp4 {color-scheme:light dark;}.root.visible-outside.svelte-tw6yp4 {overflow:visible;}
|
|
390
389
|
|
|
391
390
|
/* css reset start */* {-webkit-tap-highlight-color:transparent;}button {border:none;margin:0;padding:0;width:auto;overflow:visible;background:transparent;color:inherit;font:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer;}p {margin:0;}svg:not(.interactive-root svg) {pointer-events:none;}.interactive-root {
|
|
392
|
-
/* --vk-vp-int-custom-font - vk video player interactive custom font */font-family:var(--vk-vp-int-custom-font, inherit);}*:focus, *:focus-visible {outline:none;}*:focus-visible {box-shadow:var(--focused-element-shadow);}
|
|
391
|
+
/* --vk-vp-int-custom-font - vk video player interactive custom font */font-family:var(--vk-vp-int-custom-font, inherit);}*:focus, *:focus-visible {outline:none;}*:focus-visible {box-shadow:var(--focused-element-shadow);border-radius:var(--focused-outline-radius);}
|
|
393
392
|
/* css reset end */.hidden {visibility:hidden;opacity:0;}.overlay-container {pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index);}
|
|
394
393
|
|
|
395
|
-
/* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.out-of-view {position:absolute !important;left:-1000vh !important;}.icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function Xm(t,e){U(e,!0),q(t,ox);let[i,o]=Be(),n=()=>S(Qt,"$isLive$",i),a=f(e,"sources",7),s=f(e,"store",7),d=f(e,"microStoresRoot",7),l=f(e,"videoConfig",7),p=f(e,"uiConfig",7),m=f(e,"title",7),$=f(e,"thumbUrl",7),u=f(e,"interactiveContainer",7),_=f(e,"interactiveController",7),w=f(e,"subtitles",7),y=f(e,"live",7),C=f(e,"preload",7),T=f(e,"autoplay",7),E=f(e,"volume",7,void 0),P=f(e,"muted",7,void 0),A=f(e,"fromTime",7),I=f(e,"canRewindLive",7),V=f(e,"showAds",7),H=f(e,"adsSlotId",7,void 0),j=f(e,"adsParams",7,void 0),O=f(e,"adsPreviewParam",7,void 0),X=f(e,"adsAutoplayParam",7,void 0),ne=f(e,"duration",7,void 0),Y=f(e,"logoClickable",7),fe=f(e,"logoHidden",7),le=f(e,"isMobile",7),Me=f(e,"showNextPrevButtons",7,!1),Ae=f(e,"nextButtonActive",7,!1),me=f(e,"prevButtonActive",7,!1),ae=f(e,"endScreenVideoTitle",7,void 0),Pe=f(e,"endScreenVideoThumb",7,void 0),re=f(e,"isOneVideoPlaylist",7,!1),D=f(e,"supportLink",7),Ve=f(e,"shadowRootContainer",7,void 0),te=f(e,"outerContainerRef",7,void 0),Ge=f(e,"fullScreenTarget",7,void 0),ie=f(e,"failoverHosts",7,void 0),Q=f(e,"showMiniTimer",7,!1),W=f(e,"saveRate",7),Le=f(e,"seekToInteractive",7,wa.noop),Ne=f(e,"playPrevChapter",7,wa.noop),Je=f(e,"volumeMultiplier",7),ye=f(e,"showAutoplayNext",7),xe=f(e,"showEndScreen",7,!0),De=f(e,"keyboardControls",15,void 0),{subscribers:Ze,stores:ot}=d();Xg(p());let gt=Ut(),et=p().logoLink,mt=s().ui.debugPanelVisible,Et=s().ui.playerSize,Qt=s().state.isLive$,Kt=s().state.isInteractive&&xu.clientChecker.device.isAndroid,ve=J(void 0),G=null,Te=J(!1);s().getAdmanWrapper().init({switchFromAdsToVideo:s().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:s().actions.internal.switchFromVideoToAds,setMuted:s().actions.external.setMuted},s().ads,{isMobile:s().ui.isMobile,mobileUnmuteButtonVisible:s().ui.mobileUnmuteButtonVisible,vsid:s().vsid}),dh(s(),ot),Ue(()=>{s().ui.isMobile.set(le())});let se=(Z=!1)=>{B(Te,!0),Z?s().actions.external.firstStart(V()):s().actions.internal.firstStart(V())},Oe=()=>{if(gt.features.qualityDetailsSubMenuEnabled){let Z=Eh(s().videoId);if(Z)switch(Z.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,Z.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,Z.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(Z.quality);break}}else{Ph(s().videoId),Up()&&s().actions.internal.setTrafficSavingEnabled(!0);let Xt=Bp(s().videoId);Xt&&s().actions.internal.setQuality(Xt)}};function ze(Z){var mi,ai,ut;let Xt=a()||Z;Xt&&s().initVideo({container:r(ve),sources:Xt,failoverHosts:ie(),subtitles:w(),volumeMultiplier:Je()});let si=wa.safeStorage.get(Xl)==="true";mt.set(si),A()>0&&s().actions.external.seekTime(A());let Ui=le()?gt.volumeDefault:(ai=(mi=E())!=null?mi:Bc())!=null?ai:gt.volumeDefault,ti=(ut=P())!=null?ut:wh();if(s().actions.external.setVolume(Ui),s().actions.external.setMuted(ti),s().getAdmanWrapper().setInitialVolume(ti?0:Ui),Oe(),gt.features.saveRate&&W()){let vo=Th();vo&&!n()&&s().actions.internal.setPlaybackRate(vo)}if(ye()){let vo=kh();vo&&s().actions.internal.setAutoplayNextEnabled(vo)}s().ui.isAutoplay.set(T()),T()?se():C()&>.features.preload&&s().actions.internal.preload()}let tt=Z=>{if(window.ResizeObserver){let Xt,si;G=new ResizeObserver((0,wa.throttleFn)(Ui=>{let ti=Ui[0];if(ti.contentBoxSize){let mi=Array.isArray(ti.contentBoxSize)?ti.contentBoxSize[0]:ti.contentBoxSize;Xt=mi.inlineSize,si=mi.blockSize}else ti.contentRect&&(Xt=ti.contentRect.width,si=ti.contentRect.height);Et.set({width:Xt,height:si})},300)),G.observe(Z)}Et.set({width:Z.clientWidth,height:Z.clientHeight})},lt=()=>{document.hidden&&s().actions.external.stop()};Ft(()=>{var si,Ui,ti,mi;Kt&&document.addEventListener("visibilitychange",lt),gt.debugLog&&s().actions.internal.startLogging(),tt(r(ve));let Z=Ze.map(ai=>ai.init({store:s(),microStores:ot,config:l(),interactiveController:_(),uiConfig:p()})),Xt=()=>{Kt&&document.removeEventListener("visibilitychange",lt),G==null||G.disconnect(),Z.forEach(ai=>ai.unsubscribe()),s().destroy()};return((si=y())==null?void 0:si.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),Xt):((Ui=y())==null?void 0:Ui.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),Xt):(((ti=y())==null?void 0:ti.status)==="finished"||((mi=y())==null?void 0:mi.status)==="postlive")&&!Object.keys(a()||[]).length?(s().actions.internal.setLiveWaitingRecord(!0),Xt):(ze(),Xt)});function Ye(){r(Te)?s().actions.external.play():se(!0)}function Xe(){s().actions.external.pause()}function dt(Z){s().actions.external.setMuted(Z)}function Re(){s().actions.external.toggleSubtitle()}function $t(Z){le()||Z>=0&&Z<=1&&s().actions.external.setVolume(Z)}function qe(Z){s().actions.internal.seekTime(Z,Q1.SeekAction.UNKNOWN)}function Pt(Z){s().actions.external.seekEpisodeStartTime(Z)}function ni(){s().actions.external.returnFocusToEpisodes()}function Zt(Z){s().actions.external.setPlaybackRate(Z)}function ri(Z){s().actions.external.setAutoQualityLimits(Z)}let Hi=yu(gt.view),Yi=l().playerView==="preview";var Fi=ix();let mo;it(Fi,Hi);var Do=h(Fi);{var nt=Z=>{Ym(Z,{get store(){return s()},uiConfig:gt,get thumbUrl(){return $()},get interactiveContainer(){return u()},get live(){return y()},get autoplay(){return T()},get canRewindLive(){return I()},get showAds(){return V()},get adsSlotId(){return H()},get adsParams(){return j()},get adsPreviewParam(){return O()},get adsAutoplayParam(){return X()},get duration(){return ne()},get logoClickable(){return Y()},get logoHidden(){return fe()},logoTargetUrl:et,get nextButtonActive(){return Ae()},get prevButtonActive(){return me()},get endScreenVideoTitle(){return ae()},get endScreenVideoThumb(){return Pe()},get isOneVideoPlaylist(){return re()},get supportLink(){return D()},get shadowRootContainer(){return Ve()},get outerContainerRef(){return te()},get fullScreenTarget(){return Ge()},get showMiniTimer(){return Q()},get playerStarted(){return r(Te)},get seekToInteractive(){return Le()},get playPrevChapter(){return Ne()},firstStart:se,seekTime:qe,get showEndScreen(){return xe()},get showAutoplayNext(){return ye()},get showNextPrevButtons(){return Me()},get videoContainer(){return r(ve)},set videoContainer(Xt){B(ve,pe(Xt))}})},ht=Z=>{var Xt=Fe(),si=ue(Xt);{var Ui=mi=>{Zm(mi,{get thumbUrl(){return $()},get outsideDuration(){return ne()},get canRewindLive(){return I()},get videoContainer(){return r(ve)},set videoContainer(ai){B(ve,pe(ai))}})},ti=mi=>{Gm(mi,{get store(){return s()},uiConfig:gt,get title(){return m()},get thumbUrl(){return $()},get interactiveContainer(){return u()},get live(){return y()},get autoplay(){return T()},get canRewindLive(){return I()},get showAds(){return V()},get adsSlotId(){return H()},get adsParams(){return j()},get adsPreviewParam(){return O()},get adsAutoplayParam(){return X()},get duration(){return ne()},get logoClickable(){return Y()},get logoHidden(){return fe()},logoTargetUrl:et,get nextButtonActive(){return Ae()},get prevButtonActive(){return me()},get endScreenVideoTitle(){return ae()},get endScreenVideoThumb(){return Pe()},get isOneVideoPlaylist(){return re()},get supportLink(){return D()},get shadowRootContainer(){return Ve()},get outerContainerRef(){return te()},get fullScreenTarget(){return Ge()},get showMiniTimer(){return Q()},get playerStarted(){return r(Te)},get seekToInteractive(){return Le()},get playPrevChapter(){return Ne()},firstStart:se,get showEndScreen(){return xe()},get showAutoplayNext(){return ye()},get showNextPrevButtons(){return Me()},get videoContainer(){return r(ve)},set videoContainer(ai){B(ve,pe(ai))},get keyboardControls(){return De()},set keyboardControls(ai){De(ai)}})};R(si,mi=>{Yi?mi(Ui):mi(ti,!1)})}b(Z,Xt)};R(Do,Z=>{le()?Z(nt):Z(ht,!1)})}g(Fi),k(Z=>mo=ee(Fi,1,"root svelte-7ed4yj",null,mo,Z),[()=>({"root--miui-browser":xu.clientChecker.device.isMobile&&xu.clientChecker.browser.isMiuiBrowser,"visible-outside":Yi})]),b(t,Fi);var wi=z({initVideo:ze,play:Ye,pause:Xe,setMuted:dt,toggleSubtitle:Re,setVolume:$t,seekTime:qe,seekEpisodeStartTime:Pt,returnFocusToEpisodes:ni,setPlaybackRate:Zt,setAutoQualityLimits:ri,get sources(){return a()},set sources(Z){a(Z)},get store(){return s()},set store(Z){s(Z)},get microStoresRoot(){return d()},set microStoresRoot(Z){d(Z)},get videoConfig(){return l()},set videoConfig(Z){l(Z)},get uiConfig(){return p()},set uiConfig(Z){p(Z)},get title(){return m()},set title(Z){m(Z)},get thumbUrl(){return $()},set thumbUrl(Z){$(Z)},get interactiveContainer(){return u()},set interactiveContainer(Z){u(Z)},get interactiveController(){return _()},set interactiveController(Z){_(Z)},get subtitles(){return w()},set subtitles(Z){w(Z)},get live(){return y()},set live(Z){y(Z)},get preload(){return C()},set preload(Z){C(Z)},get autoplay(){return T()},set autoplay(Z){T(Z)},get volume(){return E()},set volume(Z){E(Z)},get muted(){return P()},set muted(Z){P(Z)},get fromTime(){return A()},set fromTime(Z){A(Z)},get canRewindLive(){return I()},set canRewindLive(Z){I(Z)},get showAds(){return V()},set showAds(Z){V(Z)},get adsSlotId(){return H()},set adsSlotId(Z){H(Z)},get adsParams(){return j()},set adsParams(Z){j(Z)},get adsPreviewParam(){return O()},set adsPreviewParam(Z){O(Z)},get adsAutoplayParam(){return X()},set adsAutoplayParam(Z){X(Z)},get duration(){return ne()},set duration(Z){ne(Z)},get logoClickable(){return Y()},set logoClickable(Z){Y(Z)},get logoHidden(){return fe()},set logoHidden(Z){fe(Z)},get isMobile(){return le()},set isMobile(Z){le(Z)},get showNextPrevButtons(){return Me()},set showNextPrevButtons(Z){Me(Z)},get nextButtonActive(){return Ae()},set nextButtonActive(Z){Ae(Z)},get prevButtonActive(){return me()},set prevButtonActive(Z){me(Z)},get endScreenVideoTitle(){return ae()},set endScreenVideoTitle(Z){ae(Z)},get endScreenVideoThumb(){return Pe()},set endScreenVideoThumb(Z){Pe(Z)},get isOneVideoPlaylist(){return re()},set isOneVideoPlaylist(Z){re(Z)},get supportLink(){return D()},set supportLink(Z){D(Z)},get shadowRootContainer(){return Ve()},set shadowRootContainer(Z){Ve(Z)},get outerContainerRef(){return te()},set outerContainerRef(Z){te(Z)},get fullScreenTarget(){return Ge()},set fullScreenTarget(Z){Ge(Z)},get failoverHosts(){return ie()},set failoverHosts(Z){ie(Z)},get showMiniTimer(){return Q()},set showMiniTimer(Z){Q(Z)},get saveRate(){return W()},set saveRate(Z){W(Z)},get showAutoplayNext(){return ye()},set showAutoplayNext(Z){ye(Z)},get seekToInteractive(){return Le()},set seekToInteractive(Z){Le(Z)},get playPrevChapter(){return Ne()},set playPrevChapter(Z){Ne(Z)},get volumeMultiplier(){return Je()},set volumeMultiplier(Z){Je(Z)},get showEndScreen(){return xe()},set showEndScreen(Z){xe(Z)},get keyboardControls(){return De()},set keyboardControls(Z){De(Z)}});return o(),wi}var nx=be('<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 Jm(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=nx();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img",...i})),b(t,o)}function ev(t,e){let i=f(e,"isWhite",3,!1),o=v(()=>i()?"color: #fff;":"color: #909499;");Jm(t,{get style(){return r(o)}})}var rx=L('<div class="title svelte-1y9fytq"> </div>'),sx=L('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),ax={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 tv(t,e){q(t,ax);var i=sx(),o=h(i);{var n=d=>{var l=rx(),p=h(l,!0);g(l),k(()=>ge(p,e.title)),b(d,l)};R(o,d=>{e.title&&d(n)})}var a=M(o,2);{var s=d=>{let l=v(()=>!!e.thumbUrl);ev(d,{get isWhite(){return r(l)}})};R(a,d=>{(!e.title||!e.thumbUrl)&&d(s)})}g(i),k(()=>it(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}var t0=require("@vkontakte/videoplayer-shared/es2018"),ji=require("@vkontakte/videoplayer-shared/es2018"),tc=require("@vkontakte/videoplayer-core/es2018"),Mu=require("@vkontakte/videoplayer-statistics/es2018");var Su=require("@vkontakte/videoplayer-shared/es2018"),wu=class{constructor(){this.subscription=new Su.Subscription,this.logger=new Su.Logger,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,a]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,a)}catch(s){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 a,s;let o=we(e.state.currentPlaybackRate$),n=we(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(s=(a=navigator.mediaSession).setPositionState)==null||s.call(a,{position:i,playbackRate:o,duration:n})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${n}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};var gl=require("@vkontakte/videoplayer-shared/es2018");var lx=be('<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 iv(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=lx();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{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})),b(t,o)}var dx=L('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),cx={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 ov(t,e){U(e,!0),q(t,cx);let[i,o]=Be(),n=()=>S(p,"$interfaceLanguage$",i),a=()=>S(m,"$isMobile$",i),s=Se(),d=Ut(),l=!!s.webApi.pictureInPictureApi,p=s.interfaceLanguage$,m=s.ui.isMobile,$=s.ui.t,u=v(()=>n()&&$("pip_dummy_title")),_=yu(d.view);var w=dx();ee(w,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),it(w,_);var y=h(w);let C;var T=h(y);iv(T,{}),g(y);var E=M(y,2),P=h(E,!0);g(E),g(w),k(A=>{C=ee(y,1,"dummy-image svelte-1pbsod4",null,C,A),ge(P,r(u))},[()=>({desktop:!a()})]),b(t,w),z(),o()}var ux=Object.defineProperty,px=(t,e,i)=>e in t?ux(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,vl=(t,e,i)=>px(t,typeof e!="symbol"?e+"":e,i),fx=460,mx=280,Kd=class{constructor({enabled:e=!0}={enabled:!0}){vl(this,"playerDomElement"),vl(this,"playerParentShadowRoot"),vl(this,"playerDummyElement"),vl(this,"svelteContext"),vl(this,"pipWindow"),vl(this,"info",{isActive$:new gl.ValueSubject(!1),isEnabled$:new gl.ValueSubject(!1),type:1}),this.info.isEnabled$=new gl.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,gl.detectEmbed)();return"documentPictureInPicture"in window&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}async request(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:fx,height:mx,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(l=>[...l.cssRules].map(p=>p.cssText).join(" ")).filter(Boolean).join(`
|
|
396
|
-
`),n=document.createElement("style");n.textContent=o;let a=this.createStretchedContainer(),s=a.attachShadow({mode:"open"});s.append(n),s.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Xr(ov,d),(e=this.pipWindow)==null||e.document.body.append(a),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",l=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(Ws(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})}async remove(){return new Promise(e=>{var i;(i=documentPictureInPicture.window)==null||i.close(),e()})}async dispose(){await this.remove()}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 G1(t){return t instanceof Kd}var Cu=class{static getLatestSupportedVersion(e){let i=new ta(e),o=new Kd(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Qd(t,e){var n,a;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let s of i)o[s]=(a=(n=e[s])!=null?n:t[s])!=null?a:void 0;return o}var j1="Inner error. Unexpectedly root annotation container null reference exception",Y1="Annotation with such name already exists",Z1="Annotation with such name does not exist";var hl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var _l=require("@vkontakte/videoplayer-shared/es2018"),vx="1",gx=100,Tu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new _l.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,_l.throttleFn)(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},gx);this.subscriptions.add((0,_l.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:o,height:n})=>{this.playerSize={width:o,height:n},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new hl(j1);if(this.annotations.has(e))throw new hl(Y1);i.style.zIndex=(o=i.style.zIndex)!=null?o:vx,i.style.position="absolute",this.rootAnnotationsContainer.append(i),this.annotations.set(e,i)}get(e){let i=this.annotations.get(e);if(!i)throw new hl(Z1);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,a=e.offsetLeft,s=e.offsetWidth,d=e.offsetHeight;return n<0||a<0||a+s>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var Sa=require("@vkontakte/videoplayer-shared/es2018"),qo=class{init({store:e,microStores:i,interactiveController:o,config:n}){return(0,Sa.assertNonNullable)(e),(0,Sa.assertNonNullable)(i),(0,Sa.assertNonNullable)(n),n.interactiveData&&(0,Sa.assertNonNullable)(o),this.subscription=new Sa.Subscription,this.subscription}};var Gd=class extends qo{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...ce(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(a=>{this.state$.set(a?!0:null)})),o}};var jd=class extends qo{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...ce(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:n,store:a}=i,{fakeIsPlaying$:s}=n,{isInteractiveExpectation$:d,isPlaying$:l}=a.state,{controlsVisible:p,isMobile:m}=a.ui,$=we(m),u=()=>$&&we(p);return o.add(p.subscribe(_=>{if(!$)return;let w=we(s);we(l)?this.state$.set(_):w!==null&&this.state$.set(!w||_)})),o.add(l.subscribe(_=>{this.state$.set(!_||u())})),o.add(s.subscribe(_=>{if(_===null)return;let w=we(d);if(u()){this.state$.set(!0);return}w&&this.state$.set(!_)})),o}};var Yd=class extends qo{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=ce("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(a=>{a.length&&(a.every(s=>s.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var X1=require("@vkontakte/videoplayer-shared/es2018"),nv=ce(!1),Iu=null,Zd=class extends qo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...nv,set:(i,o=!1)=>{i!==we(nv)&&(this.clearTimeout(),nv.set(i),!i&&Iu&&(Iu=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:n,config:a}=i,{isInteractiveTime$:s,isPlaying$:d}=n.state,l=n.ui.controlsVisible,{interactiveTimeIndicator:p}=n.ui.controls;o.add(l.subscribe($=>{we(s)&&$&&this.state$.set(!1)}));let m=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,X1.combine)({isPlaying$:d,isInteractiveTime$:s,interactiveTimeIndicator:p}).subscribe(({isPlaying$:$,isInteractiveTime$:u,interactiveTimeIndicator:_})=>{var w,y;if(!(!$||!(_!=null&&_.isDisplayed))){if(!u)return this.state$.set(!1);m.tooltipHelpHintActive&&Iu===null&&(Iu=!0,m.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)}};var ku=require("@vkontakte/videoplayer-shared/es2018");var Xd=class extends qo{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...ce(null),toggle:ku.noop};this.checkIfShouldHide=i=>ws(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:a}=i,s=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide(we(s)))return;let l=we(this.state$),{isEnded$:p,playbackState$:m}=n.state,{disabledControls$:$}=n.ui.controls,u=we(p),_=we(m);if(l)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1),$.remove(Mp),!u&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=_==="playing";try{await(a==null?void 0:a.toggleGraphView(!0)),this.state$.set(!0),$.add(Mp),!u&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add((0,ku.combine)({graphIsOpened:this.state$,currentGridType:s}).subscribe(async({graphIsOpened:l,currentGridType:p})=>{if(this.checkIfShouldHide(p)&&l)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1)}catch($){d({message:"Cant hide graph"})}})),o}};var rv=require("@vkontakte/videoplayer-shared/es2018"),Jd=class extends qo{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:ce(!1),isEnabled$:ce(!1),type$:ce(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:a,isEnabled$:s,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new rv.ValueSubject(!1),isEnabled$:new rv.ValueSubject(!1)}};return o.add(a.subscribe(l=>{this.state$.isActive$.set(l)})),o.add(s.subscribe(l=>{this.state$.isEnabled$.set(l)})),this.state$.type$.set(d),o}};var Pu=require("@vkontakte/videoplayer-shared/es2018");var Eu=require("@vkontakte/videoplayer-shared/es2018"),J1=({maxShowCount:t,timeout:e})=>{let i=[t!==0?hx({maxCount:t}):void 0,e!==0?_x({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},hx=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Eu.safeStorage.set("videoplayer_notifications_manager_count",JSON.stringify((n=e[i])!=null?n:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},_x=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Eu.safeStorage.get(e)||"{}")}catch(a){return{}}},o=a=>Eu.safeStorage.set(e,JSON.stringify(a)),n=a=>{let s=i();delete s[a],o(s)};return{notificationShowed:a=>{o({...i(),[a]:{timeout:t,launchTime:Date.now()}})},canShowNotification:a=>{let s=i()[a];if(s){let d=Date.now()-s.launchTime>t;return d&&n(a),d}else return!0}}};var ec=class extends qo{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:ce({}),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:a,timeoutShowSlowVideoNotification:s,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:l}}}=i;this.notificationManager=J1({maxShowCount:a,timeout:s});let p=n.getPlayer();return o.add(p.events.severeStallOccured$.pipe((0,Pu.filterChanged)(),(0,Pu.filter)(m=>m)).subscribe(()=>{d&&!p.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(l&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var e0=()=>[Gd,jd,Yd,Zd,Xd,Jd,ec].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});var bl=require("@vkontakte/videoplayer-shared/es2018");var bx=Object.defineProperty,$x=(t,e,i)=>e in t?bx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Yt=(t,e,i)=>$x(t,typeof e!="symbol"?e+"":e,i),yx={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:ji.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,tc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Cn=J(void 0),Au=class extends HTMLElement{constructor(){super(),Yt(this,"svelteStubComponent"),Yt(this,"svelteRootComponent"),Yt(this,"store"),Yt(this,"microStoresRoot"),Yt(this,"statistics"),Yt(this,"sentry"),Yt(this,"_shadowRoot"),Yt(this,"playerContainer"),Yt(this,"rootContainer"),Yt(this,"shadowRootContainer"),Yt(this,"uiConfig"),Yt(this,"coreConfig"),Yt(this,"statisticsConfig"),Yt(this,"interactiveController"),Yt(this,"interactiveContainer"),Yt(this,"graphMadePause"),Yt(this,"currentPlayingVideoIndex",0),Yt(this,"needToRepeatPlaylist",!1),Yt(this,"videoConfig"),Yt(this,"pictureInPictureApi"),Yt(this,"mediaSessionApi"),Yt(this,"unsubscribePlayerPhaseSubscription"),Yt(this,"logger"),Yt(this,"log"),Yt(this,"subscription"),Yt(this,"interactiveSubscription"),Yt(this,"annotationsApi"),Yt(this,"slotsApi"),Yt(this,"prevIsid"),Yt(this,"isInited",!1),Yt(this,"internalsExposure",null),Yt(this,"shadowDOMCallbacksDisabled",!1),Yt(this,"createOneStat",(e,i={})=>{var o,n,a,s;let{albumId:d,statPlace:l,statUserSalt:p,statTrackCode:m,statVKAppId:$,refreshStatAuthToken:u,autoplay:_,isMobile:w,isTouch:y,refDomain:C,deviceId:T,interactiveData:E}=Qd(this.videoConfig,i),P=(o=E==null?void 0:E.projectInfo)==null?void 0:o.pid,A=(a=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?a:!1;A&&(this.prevIsid=void 0);let{unitedVideoId:I,isClip:V=!1}=e;if(this.uiConfig.features.statistics&&I)return new Mu.OneStat({movieId:I,albumId:d,place:l,trackCode:m,vkAppId:$,autoplay:(s=_&&!this.interactiveController)!=null?s:!1,mobile:y!=null?y:w,clip:V,refDomain:C,deviceId:T,...P&&(!this.isInited||A)&&{projectId:Number(P)}},{refreshAuthToken:u,userSalt:p,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}),bl.devNull.create("ui"),this.logger=new ji.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new ji.Subscription,this.interactiveSubscription=new ji.Subscription,this.graphMadePause=!1}connectedCallback(){var e,i;if(this.isInited||this.shadowDOMCallbacksDisabled)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,a=pe({title:o,thumbUrl:n}),s={target:this.playerContainer,props:a};this.svelteStubComponent=Xr(tv,s)}disconnectedCallback(){var e,i,o,n,a;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.mediaSessionApi)==null||i.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.subscription.unsubscribe(),(o=this.unsubscribePlayerPhaseSubscription)==null||o.call(this),(n=this.interactiveController)==null||n.destroy(),this.interactiveSubscription.unsubscribe(),(a=this.internalsExposure)==null||a.destroy(),bl.devNull.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createThinOneStat(e,i={}){let{deviceId:o,preload:n,refreshStatAuthToken:a}=Qd(this.videoConfig,i),{unitedVideoId:s}=e;return new Mu.ThinOneStat.ThinOneStat({deviceId:o,movieId:s,preload:n},{config:this.statisticsConfig,refreshAuthToken:a})}createPlayer(e,i={},o){var n,a,s,d,l,p,m,$,u;if(!this.videoConfig)return;let{albumId:_,statPlace:w,statAuthToken:y,preload:C,autoplay:T,volume:E,muted:P,fromTime:A,canRewindLive:I,supportLink:V,showAds:H,adsSlotId:j,adsParams:O={},adsPreviewParam:X,adsAutoplayParam:ne,interfaceLanguage:Y,isCyrillicRelatedInterface:fe,logoClickable:le,logoHidden:Me,isMobile:Ae,isTouch:me,isAudioDisabled:ae,isLiveCatchUpMode:Pe,fullScreenTarget:re,failoverHosts:D,canDownload:Ve,callbacks:te,interactiveData:Ge,showThumbTimer:ie,additionalButtons:Q=[],additionalSettingsMenuItems:W=[],additionalContextMenuItems:Le=[],repeat:Ne,saveRate:Je,volumeMultiplier:ye,showEndScreen:xe,showAutoplayNext:De}=Qd(this.videoConfig,i),{sources:Ze,title:ot,thumbUrl:gt,unitedVideoId:et,isClip:mt=!1,duration:Et,adsParams:Qt={},videoEpisodes:zt,previewThumbsData:Kt,subtitles:ve,live:G}=e,Te={...O,...Qt},se=this.getNextVideoInfo(),Oe={sources:Ze,title:ot,thumbUrl:gt,subtitles:ve,unitedVideoId:et,isClip:mt,live:G,albumId:_,statPlace:w,autoplay:T,muted:P,volume:E,fromTime:A,canRewindLive:I,showAds:H,adsSlotId:j,adsParams:Te,adsPreviewParam:X,adsAutoplayParam:ne,duration:Et,logoClickable:le,logoHidden:Me,isTouch:me!=null?me:Ae,repeat:Ne,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:se.nextVideoTitle,endScreenVideoThumb:se.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},ze={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(Oe)}`});let tt=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),lt,Ye=this.createThinOneStat(e,i);(lt||Ye)&&(this.statistics=new du(lt,Ye,tt==null?void 0:tt.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new ea(this.uiConfig.sentry,{version:Zs,env:Rc},{movieId:et,albumId:_,place:w,autoplay:(a=T&&!this.interactiveController)!=null?a:!1,mobile:me!=null?me:Ae,clip:mt}),this.interactiveController&&((l=this.prevIsid)!=null||(this.prevIsid=(d=(s=this.statistics)==null?void 0:s.oneStat)==null?void 0:d.isid$.getValue())),this.sentry={...this.sentry,...ea.getInstance()};let dt=!!Ge,Re=[],$t="tooltip_interactive_go_back_disabled_first";if(dt&&this.interactiveController){let Zt=this.interactiveController.state.isInitialChapter$.getValue(),ri=this.interactiveController.getHistoryState();Zt&&Re.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Re.push("SEEK_TO_INTERACTIVE_BUTTON"),ri.hasPrevChapter$.getValue()||(Re.push("PLAY_PREV_CHAPTER_BUTTON"),Zt||(ri.isGoBackLimited$.getValue()?$t="tooltip_interactive_go_back_disabled_limit":$t="tooltip_interactive_go_back_disabled"))}let qe=()=>{var Zt;this.isInited=!1,this.prevIsid=void 0;let ri=(o==null?void 0:o.info.isEnded$.getValue())&&((Zt=this.interactiveController)==null?void 0:Zt.state.isEndChapter$.getValue());te.onReplayInteractiveVideo&&!ri?te.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=g1({player:o,interfaceLanguage:Y,isCyrillicRelatedInterface:fe,videoId:et,isClip:mt,isLiveCatchUpMode:Pe,isAudioDisabled:ae,statAuthToken:y,callbacks:te,webApi:ze,videoEpisodes:zt,previewThumbsData:Kt,canDownload:Ve,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Re,isInteractive:dt,saveRate:Je,interactiveRanges$:(p=this.interactiveController)==null?void 0:p.state.interactiveRanges$,isInteractiveTime$:(m=this.interactiveController)==null?void 0:m.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:qe,playPrevChapterDisabledTooltip:$t,hasInteractiveBranches:!!((u=($=this.interactiveController)==null?void 0:$.getChapterBranches())!=null&&u.length),additionalButtons:this.uiConfig.features.additionalButtons?Q:[],additionalSettingsMenuItems:W!=null?W:[],additionalContextMenuItems:Le!=null?Le:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:Ne&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:Pt}=this.microStoresRoot=e0(),ni=()=>{var Zt,ri,Hi,Yi,Fi,mo;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(nt=>{var ht;return(ht=te==null?void 0:te.onCurrentFormatChanged)==null?void 0:ht.call(te,nt)})),this.subscription.add(Pt.interactiveControlsOpacity$.subscribe(nt=>{var ht;nt!==null&&((ht=this==null?void 0:this.interactiveController)==null||ht.setDisabledControls(nt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(nt=>{var ht;return(ht=te==null?void 0:te.onThroughputEstimationChanged)==null?void 0:ht.call(te,nt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(nt=>{var ht;return(ht=te==null?void 0:te.onTrafficSavingEnabledChanged)==null?void 0:ht.call(te,nt)})),this.subscription.add(new ji.Observable(nt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(ht=>nt.next(ht)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?(0,ji.skip)(1):nt=>nt).subscribe(nt=>{var ht;return(ht=te==null?void 0:te.onCurrentPlaybackRateChanged)==null?void 0:ht.call(te,nt)})),this.subscription.add(this.store.state.volume$.subscribe(nt=>{var ht;return(ht=te==null?void 0:te.onVolumeChange)==null?void 0:ht.call(te,nt)})),this.subscription.add(this.store.state.muted$.subscribe(nt=>{var ht,wi;return nt?(ht=te==null?void 0:te.onMute)==null?void 0:ht.call(te):(wi=te==null?void 0:te.onUnmute)==null?void 0:wi.call(te)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(nt=>{var ht;return(ht=te==null?void 0:te.onVideoBitrateChanged)==null?void 0:ht.call(te,nt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(nt=>{var ht;let wi=(ht=this.store)==null?void 0:ht.ui.controls.disabledControls$;wi&&(nt&&!wi.includes(Jl)&&wi.add(Jl),nt||wi.remove(Jl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async nt=>{var ht;if(!tc.clientChecker.browser.isSamsungBrowser||!nt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((ht=this.videoConfig)==null?void 0:ht.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(nt=>{var ht;return(ht=te==null?void 0:te.onVSIDChanged)==null?void 0:ht.call(te,nt)})),this.initMediaSession(),B(Cn,pe({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Ze,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:ot,thumbUrl:gt,subtitles:ve,live:G,preload:C,autoplay:T,muted:P,volume:E,fromTime:A,canRewindLive:I,supportLink:V,showAds:H,adsSlotId:j,adsParams:Te,adsPreviewParam:X,adsAutoplayParam:ne,duration:Et,logoClickable:le,logoHidden:Me,isMobile:me!=null?me:Ae,failoverHosts:D,fullScreenTarget:re,saveRate:Je,shadowRootContainer:this.shadowRootContainer,showMiniTimer:ie,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:se.nextVideoTitle,endScreenVideoThumb:se.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:ye,showEndScreen:xe,showAutoplayNext:De}));let Do={target:this.playerContainer,props:r(Cn)};this.svelteRootComponent=Xr(Xm,Do),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Hi=(ri=(Zt=this.videoConfig)==null?void 0:Zt.callbacks)==null?void 0:ri.onInited)==null||Hi.call(ri)),(Yi=this.internalsExposure)==null||Yi.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((mo=(Fi=this.videoConfig)==null?void 0:Fi.callbacks)!=null&&mo.onDevNullLog)?bl.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):bl.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?tc.clientChecker.isInited$.subscribe(Zt=>{Zt&&(console.log("UI SDK async start"),ni())}):ni()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,n=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!n)return;let a=(i=this.videoConfig)==null?void 0:i.callbacks;a&&this.subscription.add(o.playerPhase.subscribe(d=>{var l;return(l=a.onPlayerPhaseChanged)==null?void 0:l.call(a,d)})).add(o.state.playbackState$.subscribe(d=>{var l;return d&&((l=a.onPlaybackStateChanged)==null?void 0:l.call(a,d))})).add(o.state.isLive$.subscribe(d=>{var l;return(l=a.onIsLiveChanged)==null?void 0:l.call(a,d)})).add(o.state.isActiveLive$.subscribe(d=>{var l;return(l=a.onIsActiveLiveChanged)==null?void 0:l.call(a,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var l;return(l=a.onIsAudioAvailableChanged)==null?void 0:l.call(a,d)})).add(o.state.currentQuality$.subscribe(d=>{var l;return(l=a.onCurrentQualityChanged)==null?void 0:l.call(a,d)})).add(o.state.availableQualities$.subscribe(d=>{var l;return(l=a.onAvailableQualitiesChanged)==null?void 0:l.call(a,d.map(({value:p})=>p).filter(p=>p!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&a.onAudioLanguagesAvailable&&a.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var l,p;return d?(l=a.onPiPEnter)==null?void 0:l.call(a):(p=a.onPiPExit)==null?void 0:p.call(a)}));let s=a==null?void 0:a.uiInfo;s&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var l;return(l=s.onControlsVisibleChanged)==null?void 0:l.call(s,d)})).add(o.ui.isMobile.subscribe(d=>{var l;return(l=s.onIsMobileChanged)==null?void 0:l.call(s,d)})).add(o.ui.playerSize.subscribe(d=>{var l;return(l=s.onPlayerSizeChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var l;return(l=s.onPrevButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.playButton.subscribe(d=>{var l;return(l=s.onPlayButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var l;return(l=s.onReplayButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var l;return(l=s.onNextButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var l;return(l=s.onPlayPrevChapterChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var l;return(l=s.onSeekToInteractiveButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var l;return(l=s.onGraphButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var l;return(l=s.onLiveButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.time.subscribe(d=>{var l;return(l=s.onTimeUpdateChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.episodes.subscribe(d=>{var l;return(l=s.onEpisodesChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var l;return(l=s.onSubtitlesChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.settings.subscribe(d=>{var l;return(l=s.onSettingsChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var l;return(l=s.onFullscreenChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var l;return(l=s.onChromecastChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.pip.subscribe(d=>{var l;return(l=s.onPipChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var l;return(l=s.onVkLogoChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var l;return(l=s.onInteractiveTimeIndicatorChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.timeline.subscribe(d=>{var l;return(l=s.onTimelineChanged)==null?void 0:l.call(s,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let n=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!n){this.log({message:"no next video"});return}this.isInited&&(0,ji.isNonNullable)(n.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(n.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(n,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}async initInteractives(){var e,i,o,n;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:a}=await import("@vkontakte/videoplayer-interactive/es2018");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let s=(i=this.store)==null?void 0:i.interfaceLanguage$,d=s?we(s):this.videoConfig.interfaceLanguage,{projectInfo:l,initChapterId:p,historyApi:m,videoLoader:$}=this.videoConfig.interactiveData;this.interactiveController=new a({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:d,graph:this.uiConfig.features.interactiveGraph,projectInfo:l,initChapterId:p,historyApi:m,vkVideoLoader:$,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}});let{isInteractiveExpectation$:u,isSeekable$:_}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(_.subscribe(y=>{if(!this.isInited)return;let C=this.store;y?C.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):C.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(u.subscribe(y=>{this.store&&this.store.state.isInteractiveExpectation$.set(y)}));let w=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(y=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...y.config,title:(l==null?void 0:l.title)||y.config.title};let C=w?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(y.player,C),w&&(w=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:y,actionType:C})=>{var T,E,P,A,I,V;if(!this.store||!this.microStoresRoot)return;let H=u.getValue();if(y==="action-choice"&&C==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(ed)),y==="action-choice-canceled"){let j=we(this.store.state.isPlaying$)||H;if(((P=(T=this.videoConfig)==null?void 0:T.isTouch)!=null?P:(E=this.videoConfig)!=null&&E.isMobile)&&j){this.store.ui.interactiveHideMobileControls.set(!0);return}(V=(A=this.videoConfig)==null?void 0:(I=A.callbacks).onDisabledInteractiveClick)==null||V.call(I)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:y,removeAllOpenURI:C})=>{this.store&&y==="container-fake-removed"&&C&&this.store.ui.controls.disabledControls$.remove(ed)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let y=this.interactiveController.getHistoryState();this.subscription.add(y.history$.subscribe(C=>{var T,E,P;C.length&&((P=(E=(T=this.videoConfig)==null?void 0:T.callbacks)==null?void 0:E.onInteractiveHistoryChanged)==null||P.call(E,C))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var y,C,T,E;(y=this.microStoresRoot)==null||y.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(E=(C=this.videoConfig)==null?void 0:(T=C.callbacks).onInteractiveTimeIndicatorClick)==null||E.call(T)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(y=>{this.log({message:y.toString()})}))}catch(a){this.log({message:a.message})}}initPlayer(e,i={}){var o,n,a,s,d,l,p,m,$,u,_,w,y,C,T,E,P,A,I,V,H,j,O,X,ne,Y;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=Qd(yx,(0,ji.cloneDeepWith)(e,fe=>fe instanceof HTMLElement?fe:void 0)),this.uiConfig=Zg((o=i.ui)!=null?o:{}),this.coreConfig=(n=i.core)!=null?n:{configName:[]},this.statisticsConfig=(a=i.statistics)!=null?a:{},this.uiConfig.features.forcePlayerDisplayBlock&&(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:(s=this.uiConfig.sentry)!=null?s:{}},this.uiConfig.features.exposeInternalsToGlobal&&((d=this.internalsExposure)!=null||(this.internalsExposure=new ji.InternalsExposure("UI"))),bl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((l=this.videoConfig)==null?void 0:l.showAds)],numbers:[(0,t0.now)()]}),(0,ji.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(m=(p=this.uiConfig.features.mediaSession)!=null?p:this.videoConfig.isMediaSessionEnabled)!=null?m:!0),(0,ji.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(u=($=this.uiConfig.features.pip)!=null?$:this.videoConfig.isPictureInPictureEnabled)!=null?u:!0,this.uiConfig.features.dpip=(w=(_=this.uiConfig.features.dpip)!=null?_:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0),this.videoConfig.isTouch=(C=(y=this.uiConfig.isMobile)!=null?y:this.videoConfig.isTouch)!=null?C:this.videoConfig.isMobile,(T=this.videoConfig).autoplay&&(T.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(E=this.uiConfig.ads.enable)!=null?E:this.videoConfig.showAds,this.videoConfig.adsSlotId=(P=this.uiConfig.ads.slot)!=null?P:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(A=this.uiConfig.ads.preview)!=null?A:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((I=this.uiConfig.showLogo)!=null?I:!this.videoConfig.logoHidden),(V=this.videoConfig).canRewindLive&&(V.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(H=this.videoConfig.supportLink)!=null?H:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(j=this.uiConfig.features.endScreen)!=null?j:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(O=this.uiConfig.features.autoplayNext)!=null?O:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(X=this.uiConfig.features.nextPrevButtons)!=null?X:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((ne=this.videoConfig.videos)!=null&&ne[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=Cu.getLatestSupportedVersion(fe):this.pictureInPictureApi=new ta(fe)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new wu:void 0,this.slotsApi=this.uiConfig.features.slots?new _u:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Tu(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),(Y=this.slotsApi)==null||Y.init(this.shadowRootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),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]),G1(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}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(Cn)&&(r(Cn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Cn).nextButtonActive=this.isNextButtonActive(),r(Cn).prevButtonActive=this.isPrevButtonActive(),r(Cn).endScreenVideoTitle=o.nextVideoTitle,r(Cn).endScreenVideoThumb=o.nextVideoThumb,r(Cn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",n=>this.seekTime(n.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>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()}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(Cn)&&(r(Cn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(Cn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Cn).nextButtonActive=this.isNextButtonActive(),r(Cn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}async setLanguage(e){var i;await((i=this.store)==null?void 0:i.actions.internal.setLanguage(e))}setLiveStart(e){var i,o;this.log({message:"live started"}),(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0})}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}setLiveWaitingRecover(){var e;this.log({message:"live waiting recover"}),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var i,o;(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!0),(o=this.store)==null||o.destroy()})}setLiveWaitingRecord(){var e;this.log({message:"post live"}),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var i,o;(i=this.store)==null||i.actions.internal.setLiveWaitingRecord(!0),(o=this.store)==null||o.destroy()})}setLiveEnd(e){var i;this.log({message:"live ended"}),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var o,n;(o=this.store)==null||o.actions.internal.setLiveWaitingRecover(!1),(n=this.store)==null||n.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})})}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(e){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=we(this.store.state.positionExact$),s=we(this.store.state.interactiveEpisodes$).find(l=>!l.completed);this.interactiveController.events.playerChanged$.pipe((0,ji.once)()).subscribe(()=>{s&&n>=s.time?this.seekTime(s.time):this.seekTime(n),e==null||e()});let d=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&(this.statistics.oneStat&&this.statistics.oneStat.updateContext(e),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}unmountComponent(e){e&&Ws(e)}};var $l=require("@vkontakte/videoplayer-shared/es2018"),Lu=require("@vkontakte/videoplayer-core/es2018"),xx=()=>{window.customElements.define("vk-video-player",Au)};
|
|
394
|
+
/* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.out-of-view {position:absolute !important;left:-1000vh !important;}.icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function tv(t,e){U(e,!0),K(t,sx);let[i,o]=Ne(),n=()=>S(Wt,"$isLive$",i),a=f(e,"sources",7),s=f(e,"store",7),d=f(e,"microStoresRoot",7),l=f(e,"videoConfig",7),p=f(e,"uiConfig",7),m=f(e,"title",7),y=f(e,"thumbUrl",7),u=f(e,"interactiveContainer",7),$=f(e,"interactiveController",7),w=f(e,"subtitles",7),b=f(e,"live",7),C=f(e,"preload",7),T=f(e,"autoplay",7),I=f(e,"volume",7,void 0),M=f(e,"muted",7,void 0),P=f(e,"fromTime",7),k=f(e,"canRewindLive",7),R=f(e,"showAds",7),W=f(e,"adsSlotId",7,void 0),Y=f(e,"adsParams",7,void 0),F=f(e,"adsPreviewParam",7,void 0),Q=f(e,"adsAutoplayParam",7,void 0),oe=f(e,"duration",7,void 0),Z=f(e,"logoClickable",7),re=f(e,"logoHidden",7),de=f(e,"isMobile",7),Ae=f(e,"showNextPrevButtons",7,!1),Me=f(e,"nextButtonActive",7,!1),ge=f(e,"prevButtonActive",7,!1),se=f(e,"endScreenVideoTitle",7,void 0),Ee=f(e,"endScreenVideoThumb",7,void 0),ne=f(e,"isOneVideoPlaylist",7,!1),V=f(e,"supportLink",7),xe=f(e,"shadowRootContainer",7,void 0),_e=f(e,"outerContainerRef",7,void 0),ze=f(e,"fullScreenTarget",7,void 0),H=f(e,"failoverHosts",7,void 0),le=f(e,"showMiniTimer",7,!1),he=f(e,"saveRate",7),ee=f(e,"seekToInteractive",7,xa.noop),De=f(e,"playPrevChapter",7,xa.noop),Ze=f(e,"volumeMultiplier",7),we=f(e,"showAutoplayNext",7),Ve=f(e,"showEndScreen",7,!0),Ie=f(e,"keyboardControls",15,void 0),{subscribers:Ue,stores:ct}=d();th(p());let ut=zt(),nt=p().logoLink,Ct=s().ui.debugPanelVisible,mt=s().ui.playerSize,Wt=s().state.isLive$,Lt=s().state.isInteractive&&wu.clientChecker.device.isAndroid,Nt=X(void 0),O=null,be=X(!1);s().getAdmanWrapper().init({switchFromAdsToVideo:s().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:s().actions.internal.switchFromVideoToAds,setMuted:s().actions.external.setMuted},s().ads,{isMobile:s().ui.isMobile,mobileUnmuteButtonVisible:s().ui.mobileUnmuteButtonVisible,vsid:s().vsid}),ph(s(),ct),Fe(()=>{var j,jt;s().ui.isMobile.set(de()),(jt=(j=l().callbacks)==null?void 0:j.onDomReady)==null||jt.call(j)});let te=(j=!1)=>{D(be,!0),j?s().actions.external.firstStart(R()):s().actions.internal.firstStart(R())},Re=()=>{if(ut.features.qualityDetailsSubMenuEnabled){let j=Mh(s().videoId);if(j)switch(j.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,j.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,j.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(j.quality);break}}else{Lh(s().videoId),Wp()&&s().actions.internal.setTrafficSavingEnabled(!0);let jt=Fp(s().videoId);jt&&s().actions.internal.setQuality(jt)}};function je(j){var pt,mi,Je;let jt=a()||j;jt&&s().initVideo({container:r(Nt),sources:jt,failoverHosts:H(),subtitles:w(),volumeMultiplier:Ze()});let gi=xa.safeStorage.get(Zl)==="true";Ct.set(gi),P()>0&&s().actions.external.seekTime(P());let Ri=de()?ut.volumeDefault:(mi=(pt=I())!=null?pt:Dc())!=null?mi:ut.volumeDefault,si=(Je=M())!=null?Je:Th();if(s().actions.external.setVolume(Ri),s().actions.external.setMuted(si),s().getAdmanWrapper().setInitialVolume(si?0:Ri),Re(),ut.features.saveRate&&he()){let Vt=Eh();Vt&&!n()&&s().actions.internal.setPlaybackRate(Vt)}if(we()){let Vt=Ah();Vt&&s().actions.internal.setAutoplayNextEnabled(Vt)}s().ui.isAutoplay.set(T()),T()?te():C()&&ut.features.preload&&s().actions.internal.preload()}let Qe=j=>{if(window.ResizeObserver){let jt,gi;O=new ResizeObserver((0,xa.throttleFn)(Ri=>{let si=Ri[0];if(si.contentBoxSize){let pt=Array.isArray(si.contentBoxSize)?si.contentBoxSize[0]:si.contentBoxSize;jt=pt.inlineSize,gi=pt.blockSize}else si.contentRect&&(jt=si.contentRect.width,gi=si.contentRect.height);mt.set({width:jt,height:gi})},300)),O.observe(j)}mt.set({width:j.clientWidth,height:j.clientHeight})},Le=()=>{document.hidden&&s().actions.external.stop()};Ut(()=>{var gi,Ri,si,pt;Lt&&document.addEventListener("visibilitychange",Le),ut.debugLog&&s().actions.internal.startLogging(),Qe(r(Nt));let j=Ue.map(mi=>mi.init({store:s(),microStores:ct,config:l(),interactiveController:$(),uiConfig:p()})),jt=()=>{Lt&&document.removeEventListener("visibilitychange",Le),O==null||O.disconnect(),j.forEach(mi=>mi.unsubscribe()),s().destroy()};return((gi=b())==null?void 0:gi.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),jt):((Ri=b())==null?void 0:Ri.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),jt):(((si=b())==null?void 0:si.status)==="finished"||((pt=b())==null?void 0:pt.status)==="postlive")&&!Object.keys(a()||[]).length?(s().actions.internal.setLiveWaitingRecord(!0),jt):(je(),jt)});function rt(){r(be)?s().actions.external.play():te(!0)}function et(){s().actions.external.pause()}function _t(j){s().actions.external.setMuted(j)}function it(){s().actions.external.toggleSubtitle()}function Xe(){var j;(j=s().webApi.slotsApi)!=null&&j.haveSlots()&&s().actions.external.hideControls()}function Kt(){var j;(j=s().webApi.slotsApi)!=null&&j.haveSlots()&&s().actions.external.showControls()}function bt(j){de()||j>=0&&j<=1&&s().actions.external.setVolume(j)}function yi(j){s().actions.internal.seekTime(j,j1.SeekAction.UNKNOWN)}function Jt(j){s().actions.external.seekEpisodeStartTime(j)}function Ge(){s().actions.external.returnFocusToEpisodes()}function Yt(j){s().actions.external.setPlaybackRate(j)}function Vi(j){s().actions.external.setAutoQualityLimits(j)}let Oi=xu(ut.view),uo=l().playerView==="preview";var ji=rx();let ot;st(ji,Oi);var $t=h(ji);{var ki=j=>{Jm(j,{get store(){return s()},uiConfig:ut,get thumbUrl(){return y()},get interactiveContainer(){return u()},get live(){return b()},get autoplay(){return T()},get canRewindLive(){return k()},get showAds(){return R()},get adsSlotId(){return W()},get adsParams(){return Y()},get adsPreviewParam(){return F()},get adsAutoplayParam(){return Q()},get duration(){return oe()},get logoClickable(){return Z()},get logoHidden(){return re()},logoTargetUrl:nt,get nextButtonActive(){return Me()},get prevButtonActive(){return ge()},get endScreenVideoTitle(){return se()},get endScreenVideoThumb(){return Ee()},get isOneVideoPlaylist(){return ne()},get supportLink(){return V()},get shadowRootContainer(){return xe()},get outerContainerRef(){return _e()},get fullScreenTarget(){return ze()},get showMiniTimer(){return le()},get playerStarted(){return r(be)},get seekToInteractive(){return ee()},get playPrevChapter(){return De()},firstStart:te,seekTime:yi,get showEndScreen(){return Ve()},get showAutoplayNext(){return we()},get showNextPrevButtons(){return Ae()},get videoContainer(){return r(Nt)},set videoContainer(jt){D(Nt,pe(jt))}})},eo=j=>{var jt=Oe(),gi=ue(jt);{var Ri=pt=>{ev(pt,{get thumbUrl(){return y()},get outsideDuration(){return oe()},get canRewindLive(){return k()},get videoContainer(){return r(Nt)},set videoContainer(mi){D(Nt,pe(mi))}})},si=pt=>{Zm(pt,{get store(){return s()},uiConfig:ut,get title(){return m()},get thumbUrl(){return y()},get interactiveContainer(){return u()},get live(){return b()},get autoplay(){return T()},get canRewindLive(){return k()},get showAds(){return R()},get adsSlotId(){return W()},get adsParams(){return Y()},get adsPreviewParam(){return F()},get adsAutoplayParam(){return Q()},get duration(){return oe()},get logoClickable(){return Z()},get logoHidden(){return re()},logoTargetUrl:nt,get nextButtonActive(){return Me()},get prevButtonActive(){return ge()},get endScreenVideoTitle(){return se()},get endScreenVideoThumb(){return Ee()},get isOneVideoPlaylist(){return ne()},get supportLink(){return V()},get shadowRootContainer(){return xe()},get outerContainerRef(){return _e()},get fullScreenTarget(){return ze()},get showMiniTimer(){return le()},get playerStarted(){return r(be)},get seekToInteractive(){return ee()},get playPrevChapter(){return De()},firstStart:te,get showEndScreen(){return Ve()},get showAutoplayNext(){return we()},get showNextPrevButtons(){return Ae()},get videoContainer(){return r(Nt)},set videoContainer(mi){D(Nt,pe(mi))},get keyboardControls(){return Ie()},set keyboardControls(mi){Ie(mi)}})};B(gi,pt=>{uo?pt(Ri):pt(si,!1)})}_(j,jt)};B($t,j=>{de()?j(ki):j(eo,!1)})}g(ji),E(j=>ot=J(ji,1,"root svelte-tw6yp4",null,ot,j),[()=>({"root--miui-browser":wu.clientChecker.device.isMobile&&wu.clientChecker.browser.isMiuiBrowser,"visible-outside":uo})]),_(t,ji);var To=z({initVideo:je,play:rt,pause:et,setMuted:_t,toggleSubtitle:it,hideControls:Xe,showControls:Kt,setVolume:bt,seekTime:yi,seekEpisodeStartTime:Jt,returnFocusToEpisodes:Ge,setPlaybackRate:Yt,setAutoQualityLimits:Vi,get sources(){return a()},set sources(j){a(j)},get store(){return s()},set store(j){s(j)},get microStoresRoot(){return d()},set microStoresRoot(j){d(j)},get videoConfig(){return l()},set videoConfig(j){l(j)},get uiConfig(){return p()},set uiConfig(j){p(j)},get title(){return m()},set title(j){m(j)},get thumbUrl(){return y()},set thumbUrl(j){y(j)},get interactiveContainer(){return u()},set interactiveContainer(j){u(j)},get interactiveController(){return $()},set interactiveController(j){$(j)},get subtitles(){return w()},set subtitles(j){w(j)},get live(){return b()},set live(j){b(j)},get preload(){return C()},set preload(j){C(j)},get autoplay(){return T()},set autoplay(j){T(j)},get volume(){return I()},set volume(j){I(j)},get muted(){return M()},set muted(j){M(j)},get fromTime(){return P()},set fromTime(j){P(j)},get canRewindLive(){return k()},set canRewindLive(j){k(j)},get showAds(){return R()},set showAds(j){R(j)},get adsSlotId(){return W()},set adsSlotId(j){W(j)},get adsParams(){return Y()},set adsParams(j){Y(j)},get adsPreviewParam(){return F()},set adsPreviewParam(j){F(j)},get adsAutoplayParam(){return Q()},set adsAutoplayParam(j){Q(j)},get duration(){return oe()},set duration(j){oe(j)},get logoClickable(){return Z()},set logoClickable(j){Z(j)},get logoHidden(){return re()},set logoHidden(j){re(j)},get isMobile(){return de()},set isMobile(j){de(j)},get showNextPrevButtons(){return Ae()},set showNextPrevButtons(j){Ae(j)},get nextButtonActive(){return Me()},set nextButtonActive(j){Me(j)},get prevButtonActive(){return ge()},set prevButtonActive(j){ge(j)},get endScreenVideoTitle(){return se()},set endScreenVideoTitle(j){se(j)},get endScreenVideoThumb(){return Ee()},set endScreenVideoThumb(j){Ee(j)},get isOneVideoPlaylist(){return ne()},set isOneVideoPlaylist(j){ne(j)},get supportLink(){return V()},set supportLink(j){V(j)},get shadowRootContainer(){return xe()},set shadowRootContainer(j){xe(j)},get outerContainerRef(){return _e()},set outerContainerRef(j){_e(j)},get fullScreenTarget(){return ze()},set fullScreenTarget(j){ze(j)},get failoverHosts(){return H()},set failoverHosts(j){H(j)},get showMiniTimer(){return le()},set showMiniTimer(j){le(j)},get saveRate(){return he()},set saveRate(j){he(j)},get showAutoplayNext(){return we()},set showAutoplayNext(j){we(j)},get seekToInteractive(){return ee()},set seekToInteractive(j){ee(j)},get playPrevChapter(){return De()},set playPrevChapter(j){De(j)},get volumeMultiplier(){return Ze()},set volumeMultiplier(j){Ze(j)},get showEndScreen(){return Ve()},set showEndScreen(j){Ve(j)},get keyboardControls(){return Ie()},set keyboardControls(j){Ie(j)}});return o(),To}var ax=ye('<svg><!><path fill="currentColor" d="M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"></path></svg>');function iv(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=ax();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img",...i})),_(t,o)}function ov(t,e){let i=f(e,"isWhite",3,!1),o=v(()=>i()?"color: #fff;":"color: #909499;");iv(t,{get style(){return r(o)}})}var lx=L('<div class="title svelte-1y9fytq"> </div>'),dx=L('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),cx={hash:"svelte-1y9fytq",code:".playerStub.svelte-1y9fytq {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.title.svelte-1y9fytq {position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}"};function nv(t,e){K(t,cx);var i=dx(),o=h(i);{var n=d=>{var l=lx(),p=h(l,!0);g(l),E(()=>me(p,e.title)),_(d,l)};B(o,d=>{e.title&&d(n)})}var a=A(o,2);{var s=d=>{let l=v(()=>!!e.thumbUrl);ov(d,{get isWhite(){return r(l)}})};B(a,d=>{(!e.title||!e.thumbUrl)&&d(s)})}g(i),E(()=>st(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),_(t,i)}var n0=require("@vkontakte/videoplayer-shared/es2018"),Yi=require("@vkontakte/videoplayer-shared/es2018"),Jd=require("@vkontakte/videoplayer-core/es2018"),Vu=require("@vkontakte/videoplayer-statistics/es2018");var Cu=require("@vkontakte/videoplayer-shared/es2018"),Su=class{constructor(){this.subscription=new Cu.Subscription,this.logger=new Cu.Logger,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,a]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,a)}catch(s){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 a,s;let o=Se(e.state.currentPlaybackRate$),n=Se(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(s=(a=navigator.mediaSession).setPositionState)==null||s.call(a,{position:i,playbackRate:o,duration:n})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${n}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};var bl=require("@vkontakte/videoplayer-shared/es2018");var ux=ye('<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 rv(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=ux();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{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})),_(t,o)}var px=L('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),fx={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 sv(t,e){U(e,!0),K(t,fx);let[i,o]=Ne(),n=()=>S(p,"$interfaceLanguage$",i),a=()=>S(m,"$isMobile$",i),s=Ce(),d=zt(),l=!!s.webApi.pictureInPictureApi,p=s.interfaceLanguage$,m=s.ui.isMobile,y=s.ui.t,u=v(()=>n()&&y("pip_dummy_title")),$=xu(d.view);var w=px();J(w,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),st(w,$);var b=h(w);let C;var T=h(b);rv(T,{}),g(b);var I=A(b,2),M=h(I,!0);g(I),g(w),E(P=>{C=J(b,1,"dummy-image svelte-1pbsod4",null,C,P),me(M,r(u))},[()=>({desktop:!a()})]),_(t,w),z(),o()}var mx=Object.defineProperty,vx=(t,e,i)=>e in t?mx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,_l=(t,e,i)=>vx(t,typeof e!="symbol"?e+"":e,i),gx=460,hx=280,Wd=class{constructor({enabled:e=!0}={enabled:!0}){_l(this,"playerDomElement"),_l(this,"playerParentShadowRoot"),_l(this,"playerDummyElement"),_l(this,"svelteContext"),_l(this,"pipWindow"),_l(this,"info",{isActive$:new bl.ValueSubject(!1),isEnabled$:new bl.ValueSubject(!1),type:1}),this.info.isEnabled$=new bl.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,bl.detectEmbed)();return"documentPictureInPicture"in window&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}async request(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:gx,height:hx,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(l=>[...l.cssRules].map(p=>p.cssText).join(" ")).filter(Boolean).join(`
|
|
395
|
+
`),n=document.createElement("style");n.textContent=o;let a=this.createStretchedContainer(),s=a.attachShadow({mode:"open"});s.append(n),s.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Jr(sv,d),(e=this.pipWindow)==null||e.document.body.append(a),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",l=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(qs(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})}async remove(){return new Promise(e=>{var i;(i=documentPictureInPicture.window)==null||i.close(),e()})}async dispose(){await this.remove()}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 Z1(t){return t instanceof Wd}var Tu=class{static getLatestSupportedVersion(e){let i=new ea(e),o=new Wd(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Iu(t,e){var n,a;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let s of i)o[s]=(a=(n=e[s])!=null?n:t[s])!=null?a:void 0;return o}var X1="Inner error. Unexpectedly root annotation container null reference exception",J1="Annotation with such name already exists",e0="Annotation with such name does not exist";var $l=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var yl=require("@vkontakte/videoplayer-shared/es2018"),_x="1",bx=100,ku=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new yl.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,yl.throttleFn)(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},bx);this.subscriptions.add((0,yl.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:o,height:n})=>{this.playerSize={width:o,height:n},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new $l(X1);if(this.annotations.has(e))throw new $l(J1);i.style.zIndex=(o=i.style.zIndex)!=null?o:_x,i.style.position="absolute",this.rootAnnotationsContainer.append(i),this.annotations.set(e,i)}get(e){let i=this.annotations.get(e);if(!i)throw new $l(e0);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,a=e.offsetLeft,s=e.offsetWidth,d=e.offsetHeight;return n<0||a<0||a+s>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var wa=require("@vkontakte/videoplayer-shared/es2018"),Fo=class{init({store:e,microStores:i,interactiveController:o,config:n}){return(0,wa.assertNonNullable)(e),(0,wa.assertNonNullable)(i),(0,wa.assertNonNullable)(n),n.interactiveData&&(0,wa.assertNonNullable)(o),this.subscription=new wa.Subscription,this.subscription}};var Kd=class extends Fo{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...ce(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(a=>{this.state$.set(a?!0:null)})),o}};var Qd=class extends Fo{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...ce(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:n,store:a}=i,{fakeIsPlaying$:s}=n,{isInteractiveExpectation$:d,isPlaying$:l}=a.state,{controlsVisible:p,isMobile:m}=a.ui,y=Se(m),u=()=>y&&Se(p);return o.add(p.subscribe($=>{if(!y)return;let w=Se(s);Se(l)?this.state$.set($):w!==null&&this.state$.set(!w||$)})),o.add(l.subscribe($=>{this.state$.set(!$||u())})),o.add(s.subscribe($=>{if($===null)return;let w=Se(d);if(u()){this.state$.set(!0);return}w&&this.state$.set(!$)})),o}};var Gd=class extends Fo{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=ce("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(a=>{a.length&&(a.every(s=>s.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var t0=require("@vkontakte/videoplayer-shared/es2018"),av=ce(!1),Eu=null,Yd=class extends Fo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...av,set:(i,o=!1)=>{i!==Se(av)&&(this.clearTimeout(),av.set(i),!i&&Eu&&(Eu=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:n,config:a}=i,{isInteractiveTime$:s,isPlaying$:d}=n.state,l=n.ui.controlsVisible,{interactiveTimeIndicator:p}=n.ui.controls;o.add(l.subscribe(y=>{Se(s)&&y&&this.state$.set(!1)}));let m=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,t0.combine)({isPlaying$:d,isInteractiveTime$:s,interactiveTimeIndicator:p}).subscribe(({isPlaying$:y,isInteractiveTime$:u,interactiveTimeIndicator:$})=>{var w,b;if(!(!y||!($!=null&&$.isDisplayed))){if(!u)return this.state$.set(!1);m.tooltipHelpHintActive&&Eu===null&&(Eu=!0,m.tooltipHelpHintActive=!1,this.state$.set(!0),(b=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||b.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Pu=require("@vkontakte/videoplayer-shared/es2018");var jd=class extends Fo{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...ce(null),toggle:Pu.noop};this.checkIfShouldHide=i=>ws(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:a}=i,s=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide(Se(s)))return;let l=Se(this.state$),{isEnded$:p,playbackState$:m}=n.state,{disabledControls$:y}=n.ui.controls,u=Se(p),$=Se(m);if(l)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1),y.remove(Rp),!u&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=$==="playing";try{await(a==null?void 0:a.toggleGraphView(!0)),this.state$.set(!0),y.add(Rp),!u&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add((0,Pu.combine)({graphIsOpened:this.state$,currentGridType:s}).subscribe(async({graphIsOpened:l,currentGridType:p})=>{if(this.checkIfShouldHide(p)&&l)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1)}catch(y){d({message:"Cant hide graph"})}})),o}};var lv=require("@vkontakte/videoplayer-shared/es2018"),Zd=class extends Fo{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:ce(!1),isEnabled$:ce(!1),type$:ce(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:a,isEnabled$:s,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new lv.ValueSubject(!1),isEnabled$:new lv.ValueSubject(!1)}};return o.add(a.subscribe(l=>{this.state$.isActive$.set(l)})),o.add(s.subscribe(l=>{this.state$.isEnabled$.set(l)})),this.state$.type$.set(d),o}};var Mu=require("@vkontakte/videoplayer-shared/es2018");var Au=require("@vkontakte/videoplayer-shared/es2018"),i0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?$x({maxCount:t}):void 0,e!==0?yx({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},$x=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Au.safeStorage.set("videoplayer_notifications_manager_count",JSON.stringify((n=e[i])!=null?n:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},yx=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Au.safeStorage.get(e)||"{}")}catch(a){return{}}},o=a=>Au.safeStorage.set(e,JSON.stringify(a)),n=a=>{let s=i();delete s[a],o(s)};return{notificationShowed:a=>{o({...i(),[a]:{timeout:t,launchTime:Date.now()}})},canShowNotification:a=>{let s=i()[a];if(s){let d=Date.now()-s.launchTime>t;return d&&n(a),d}else return!0}}};var Xd=class extends Fo{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:ce({}),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:a,timeoutShowSlowVideoNotification:s,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:l}}}=i;this.notificationManager=i0({maxShowCount:a,timeout:s});let p=n.getPlayer();return o.add(p.events.severeStallOccured$.pipe((0,Mu.filterChanged)(),(0,Mu.filter)(m=>m)).subscribe(()=>{d&&!p.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(l&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var o0=()=>[Kd,Qd,Gd,Yd,jd,Zd,Xd].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});var xl=require("@vkontakte/videoplayer-shared/es2018");var xx=Object.defineProperty,wx=(t,e,i)=>e in t?xx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ei=(t,e,i)=>wx(t,typeof e!="symbol"?e+"":e,i),Sx={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Yi.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,Jd.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},kn=X(void 0),Lu=class extends HTMLElement{constructor(){super(),ei(this,"svelteStubComponent"),ei(this,"svelteRootComponent"),ei(this,"store"),ei(this,"microStoresRoot"),ei(this,"statistics"),ei(this,"sentry"),ei(this,"_shadowRoot"),ei(this,"playerContainer"),ei(this,"rootContainer"),ei(this,"shadowRootContainer"),ei(this,"uiConfig"),ei(this,"coreConfig"),ei(this,"statisticsConfig"),ei(this,"interactiveController"),ei(this,"interactiveContainer"),ei(this,"graphMadePause"),ei(this,"currentPlayingVideoIndex",0),ei(this,"needToRepeatPlaylist",!1),ei(this,"videoConfig"),ei(this,"pictureInPictureApi"),ei(this,"mediaSessionApi"),ei(this,"unsubscribePlayerPhaseSubscription"),ei(this,"logger"),ei(this,"log"),ei(this,"subscription"),ei(this,"interactiveSubscription"),ei(this,"annotationsApi"),ei(this,"slotsApi"),ei(this,"prevIsid"),ei(this,"isInited",!1),ei(this,"internalsExposure",null),ei(this,"shadowDOMCallbacksDisabled",!1),ei(this,"createOneStat",(e,i={})=>{var o,n,a,s;let{albumId:d,statPlace:l,statUserSalt:p,statTrackCode:m,statVKAppId:y,refreshStatAuthToken:u,autoplay:$,isMobile:w,isTouch:b,refDomain:C,deviceId:T,interactiveData:I}=Iu(this.videoConfig,i),M=(o=I==null?void 0:I.projectInfo)==null?void 0:o.pid,P=(a=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?a:!1;P&&(this.prevIsid=void 0);let{unitedVideoId:k,isClip:R=!1}=e;if(this.uiConfig.features.statistics&&k)return new Vu.OneStat({movieId:k,albumId:d,place:l,trackCode:m,vkAppId:y,autoplay:(s=$&&!this.interactiveController)!=null?s:!1,mobile:b!=null?b:w,clip:R,refDomain:C,deviceId:T,...M&&(!this.isInited||P)&&{projectId:Number(M)}},{refreshAuthToken:u,userSalt:p,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}),xl.devNull.create("ui"),this.logger=new Yi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Yi.Subscription,this.interactiveSubscription=new Yi.Subscription,this.graphMadePause=!1}connectedCallback(){var e,i;if(this.isInited||this.shadowDOMCallbacksDisabled)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,a=pe({title:o,thumbUrl:n}),s={target:this.playerContainer,props:a};this.svelteStubComponent=Jr(nv,s)}disconnectedCallback(){var e,i,o,n,a;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.mediaSessionApi)==null||i.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.subscription.unsubscribe(),(o=this.unsubscribePlayerPhaseSubscription)==null||o.call(this),(n=this.interactiveController)==null||n.destroy(),this.interactiveSubscription.unsubscribe(),(a=this.internalsExposure)==null||a.destroy(),xl.devNull.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createPlayer(e,i={},o){var n,a,s,d,l,p,m,y;if(!this.videoConfig)return;let{albumId:u,statPlace:$,statAuthToken:w,preload:b,autoplay:C,volume:T,muted:I,fromTime:M,canRewindLive:P,supportLink:k,showAds:R,adsSlotId:W,adsParams:Y={},adsPreviewParam:F,adsAutoplayParam:Q,interfaceLanguage:oe,isCyrillicRelatedInterface:Z,logoClickable:re,logoHidden:de,isMobile:Ae,isTouch:Me,isAudioDisabled:ge,isLiveCatchUpMode:se,fullScreenTarget:Ee,failoverHosts:ne,canDownload:V,callbacks:xe,interactiveData:_e,showThumbTimer:ze,additionalButtons:H=[],additionalSettingsMenuItems:le=[],additionalContextMenuItems:he=[],repeat:ee,saveRate:De,volumeMultiplier:Ze,showEndScreen:we,showAutoplayNext:Ve,mediascopePixels:Ie}=Iu(this.videoConfig,i),{sources:Ue,title:ct,thumbUrl:ut,unitedVideoId:nt,isClip:Ct=!1,duration:mt,adsParams:Wt={},videoEpisodes:ti,previewThumbsData:Lt,subtitles:Nt,live:O}=e,be={...Y,...Wt},te=this.getNextVideoInfo(),Re={sources:Ue,title:ct,thumbUrl:ut,subtitles:Nt,unitedVideoId:nt,isClip:Ct,live:O,albumId:u,statPlace:$,autoplay:C,muted:I,volume:T,fromTime:M,canRewindLive:P,showAds:R,adsSlotId:W,adsParams:be,adsPreviewParam:F,adsAutoplayParam:Q,duration:mt,logoClickable:re,logoHidden:de,isTouch:Me!=null?Me:Ae,repeat:ee,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:te.nextVideoTitle,endScreenVideoThumb:te.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},je={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(Re)}`});let Qe=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),Le=(Qe==null?void 0:Qe.oneStat)||this.createOneStat(e,i),rt;Ie&&(rt=new Vu.MediascopePixel({pixels:Ie})),Le&&(this.statistics=new du(Le,rt,Qe==null?void 0:Qe.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Js(this.uiConfig.sentry,{version:js,env:Rc},{movieId:nt,albumId:u,place:$,autoplay:(a=C&&!this.interactiveController)!=null?a:!1,mobile:Me!=null?Me:Ae,clip:Ct}),this.interactiveController&&((d=this.prevIsid)!=null||(this.prevIsid=(s=this.statistics)==null?void 0:s.oneStat.isid$.getValue())),this.sentry={...this.sentry,...Js.getInstance()};let _t=!!_e,it=[],Xe="tooltip_interactive_go_back_disabled_first";if(_t&&this.interactiveController){let Jt=this.interactiveController.state.isInitialChapter$.getValue(),Ge=this.interactiveController.getHistoryState();Jt&&it.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||it.push("SEEK_TO_INTERACTIVE_BUTTON"),Ge.hasPrevChapter$.getValue()||(it.push("PLAY_PREV_CHAPTER_BUTTON"),Jt||(Ge.isGoBackLimited$.getValue()?Xe="tooltip_interactive_go_back_disabled_limit":Xe="tooltip_interactive_go_back_disabled"))}let Kt=()=>{var Jt;this.isInited=!1,this.prevIsid=void 0;let Ge=(o==null?void 0:o.info.isEnded$.getValue())&&((Jt=this.interactiveController)==null?void 0:Jt.state.isEndChapter$.getValue());xe.onReplayInteractiveVideo&&!Ge?xe.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=b1({player:o,interfaceLanguage:oe,isCyrillicRelatedInterface:Z,videoId:nt,isClip:Ct,isLiveCatchUpMode:se,isAudioDisabled:ge,statAuthToken:w,callbacks:xe,webApi:je,videoEpisodes:ti,previewThumbsData:Lt,canDownload:V,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:it,isInteractive:_t,saveRate:De,interactiveRanges$:(l=this.interactiveController)==null?void 0:l.state.interactiveRanges$,isInteractiveTime$:(p=this.interactiveController)==null?void 0:p.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:Kt,playPrevChapterDisabledTooltip:Xe,hasInteractiveBranches:!!((y=(m=this.interactiveController)==null?void 0:m.getChapterBranches())!=null&&y.length),additionalButtons:this.uiConfig.features.additionalButtons?H:[],additionalSettingsMenuItems:le!=null?le:[],additionalContextMenuItems:he!=null?he:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:ee&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:bt}=this.microStoresRoot=o0(),yi=()=>{var Jt,Ge,Yt,Vi,Oi,uo;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(ot=>{var $t;return($t=xe==null?void 0:xe.onCurrentFormatChanged)==null?void 0:$t.call(xe,ot)})),this.subscription.add(bt.interactiveControlsOpacity$.subscribe(ot=>{var $t;ot!==null&&(($t=this==null?void 0:this.interactiveController)==null||$t.setDisabledControls(ot))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(ot=>{var $t;return($t=xe==null?void 0:xe.onThroughputEstimationChanged)==null?void 0:$t.call(xe,ot)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(ot=>{var $t;return($t=xe==null?void 0:xe.onTrafficSavingEnabledChanged)==null?void 0:$t.call(xe,ot)})),this.subscription.add(new Yi.Observable(ot=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe($t=>ot.next($t)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?(0,Yi.skip)(1):ot=>ot).subscribe(ot=>{var $t;return($t=xe==null?void 0:xe.onCurrentPlaybackRateChanged)==null?void 0:$t.call(xe,ot)})),this.subscription.add(this.store.state.volume$.subscribe(ot=>{var $t;return($t=xe==null?void 0:xe.onVolumeChange)==null?void 0:$t.call(xe,ot)})),this.subscription.add(this.store.state.muted$.subscribe(ot=>{var $t,ki;return ot?($t=xe==null?void 0:xe.onMute)==null?void 0:$t.call(xe):(ki=xe==null?void 0:xe.onUnmute)==null?void 0:ki.call(xe)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(ot=>{var $t;return($t=xe==null?void 0:xe.onVideoBitrateChanged)==null?void 0:$t.call(xe,ot)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(ot=>{var $t;let ki=($t=this.store)==null?void 0:$t.ui.controls.disabledControls$;ki&&(ot&&!ki.includes(Xl)&&ki.add(Xl),ot||ki.remove(Xl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async ot=>{var $t;if(!Jd.clientChecker.browser.isSamsungBrowser||!ot||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter(($t=this.videoConfig)==null?void 0:$t.callbacks.onExternalFullscreenExit)})),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(ot=>{var $t;return($t=xe==null?void 0:xe.onVSIDChanged)==null?void 0:$t.call(xe,ot)})),this.initMediaSession(),D(kn,pe({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Ue,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:ct,thumbUrl:ut,subtitles:Nt,live:O,preload:b,autoplay:C,muted:I,volume:T,fromTime:M,canRewindLive:P,supportLink:k,showAds:R,adsSlotId:W,adsParams:be,adsPreviewParam:F,adsAutoplayParam:Q,duration:mt,logoClickable:re,logoHidden:de,isMobile:Me!=null?Me:Ae,failoverHosts:ne,fullScreenTarget:Ee,saveRate:De,shadowRootContainer:this.shadowRootContainer,showMiniTimer:ze,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:te.nextVideoTitle,endScreenVideoThumb:te.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Ze,showEndScreen:we,showAutoplayNext:Ve}));let ji={target:this.playerContainer,props:r(kn)};this.svelteRootComponent=Jr(tv,ji),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Yt=(Ge=(Jt=this.videoConfig)==null?void 0:Jt.callbacks)==null?void 0:Ge.onInited)==null||Yt.call(Ge)),(Vi=this.internalsExposure)==null||Vi.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((uo=(Oi=this.videoConfig)==null?void 0:Oi.callbacks)!=null&&uo.onDevNullLog)?xl.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):xl.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?Jd.clientChecker.isInited$.subscribe(Jt=>{Jt&&(console.log("UI SDK async start"),yi())}):yi()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,n=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!n)return;let a=(i=this.videoConfig)==null?void 0:i.callbacks;a&&this.subscription.add(o.playerPhase.subscribe(d=>{var l;return(l=a.onPlayerPhaseChanged)==null?void 0:l.call(a,d)})).add(o.state.playbackState$.subscribe(d=>{var l;return d&&((l=a.onPlaybackStateChanged)==null?void 0:l.call(a,d))})).add(o.state.isLive$.subscribe(d=>{var l;return(l=a.onIsLiveChanged)==null?void 0:l.call(a,d)})).add(o.state.isActiveLive$.subscribe(d=>{var l;return(l=a.onIsActiveLiveChanged)==null?void 0:l.call(a,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var l;return(l=a.onIsAudioAvailableChanged)==null?void 0:l.call(a,d)})).add(o.state.currentQuality$.subscribe(d=>{var l;return(l=a.onCurrentQualityChanged)==null?void 0:l.call(a,d)})).add(o.state.availableQualities$.subscribe(d=>{var l;return(l=a.onAvailableQualitiesChanged)==null?void 0:l.call(a,d.map(({value:p})=>p).filter(p=>p!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&a.onAudioLanguagesAvailable&&a.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var l,p;return d?(l=a.onPiPEnter)==null?void 0:l.call(a):(p=a.onPiPExit)==null?void 0:p.call(a)}));let s=a==null?void 0:a.uiInfo;s&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var l;return(l=s.onControlsVisibleChanged)==null?void 0:l.call(s,d)})).add(o.ui.isMobile.subscribe(d=>{var l;return(l=s.onIsMobileChanged)==null?void 0:l.call(s,d)})).add(o.ui.playerSize.subscribe(d=>{var l;return(l=s.onPlayerSizeChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var l;return(l=s.onPrevButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.playButton.subscribe(d=>{var l;return(l=s.onPlayButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var l;return(l=s.onReplayButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var l;return(l=s.onNextButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var l;return(l=s.onPlayPrevChapterChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var l;return(l=s.onSeekToInteractiveButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var l;return(l=s.onGraphButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var l;return(l=s.onLiveButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.time.subscribe(d=>{var l;return(l=s.onTimeUpdateChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.episodes.subscribe(d=>{var l;return(l=s.onEpisodesChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var l;return(l=s.onSubtitlesChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.settings.subscribe(d=>{var l;return(l=s.onSettingsChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var l;return(l=s.onFullscreenChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var l;return(l=s.onChromecastChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.pip.subscribe(d=>{var l;return(l=s.onPipChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var l;return(l=s.onVkLogoChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var l;return(l=s.onInteractiveTimeIndicatorChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.timeline.subscribe(d=>{var l;return(l=s.onTimelineChanged)==null?void 0:l.call(s,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let n=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!n){this.log({message:"no next video"});return}this.isInited&&(0,Yi.isNonNullable)(n.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(n.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(n,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}async initInteractives(){var e,i,o,n;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:a}=await import("@vkontakte/videoplayer-interactive/es2018");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let s=(i=this.store)==null?void 0:i.interfaceLanguage$,d=s?Se(s):this.videoConfig.interfaceLanguage,{projectInfo:l,initChapterId:p,historyApi:m,videoLoader:y}=this.videoConfig.interactiveData;this.interactiveController=new a({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:d,graph:this.uiConfig.features.interactiveGraph,projectInfo:l,initChapterId:p,historyApi:m,vkVideoLoader:y,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation}});let{isInteractiveExpectation$:u,isSeekable$:$}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add($.subscribe(b=>{if(!this.isInited)return;let C=this.store;b?C.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):C.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(u.subscribe(b=>{this.store&&this.store.state.isInteractiveExpectation$.set(b)}));let w=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(b=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...b.config,title:(l==null?void 0:l.title)||b.config.title};let C=w?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(b.player,C),w&&(w=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:b,actionType:C})=>{var T,I,M,P,k,R;if(!this.store||!this.microStoresRoot)return;let W=u.getValue();if(b==="action-choice"&&C==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Jl)),b==="action-choice-canceled"){let Y=Se(this.store.state.isPlaying$)||W;if(((M=(T=this.videoConfig)==null?void 0:T.isTouch)!=null?M:(I=this.videoConfig)!=null&&I.isMobile)&&Y){this.store.ui.interactiveHideMobileControls.set(!0);return}(R=(P=this.videoConfig)==null?void 0:(k=P.callbacks).onDisabledInteractiveClick)==null||R.call(k)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:b,removeAllOpenURI:C})=>{this.store&&b==="container-fake-removed"&&C&&this.store.ui.controls.disabledControls$.remove(Jl)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let b=this.interactiveController.getHistoryState();this.subscription.add(b.history$.subscribe(C=>{var T,I,M;C.length&&((M=(I=(T=this.videoConfig)==null?void 0:T.callbacks)==null?void 0:I.onInteractiveHistoryChanged)==null||M.call(I,C))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var b,C,T,I;(b=this.microStoresRoot)==null||b.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(I=(C=this.videoConfig)==null?void 0:(T=C.callbacks).onInteractiveTimeIndicatorClick)==null||I.call(T)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(b=>{this.log({message:b.toString()})}))}catch(a){this.log({message:a.message})}}initPlayer(e,i={}){var o,n,a,s,d,l,p,m,y,u,$,w,b,C,T,I,M,P,k,R,W,Y,F,Q,oe,Z;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=Iu(Sx,(0,Yi.cloneDeepWith)(e,re=>re instanceof HTMLElement?re:void 0)),this.uiConfig=eh((o=i.ui)!=null?o:{}),this.coreConfig=(n=i.core)!=null?n:{configName:[]},this.statisticsConfig=(a=i.statistics)!=null?a:{},this.uiConfig.features.forcePlayerDisplayBlock&&(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:(s=this.uiConfig.sentry)!=null?s:{}},this.uiConfig.features.exposeInternalsToGlobal&&((d=this.internalsExposure)!=null||(this.internalsExposure=new Yi.InternalsExposure("UI"))),xl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((l=this.videoConfig)==null?void 0:l.showAds)],numbers:[(0,n0.now)()]}),(0,Yi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(m=(p=this.uiConfig.features.mediaSession)!=null?p:this.videoConfig.isMediaSessionEnabled)!=null?m:!0),(0,Yi.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(u=(y=this.uiConfig.features.pip)!=null?y:this.videoConfig.isPictureInPictureEnabled)!=null?u:!0,this.uiConfig.features.dpip=(w=($=this.uiConfig.features.dpip)!=null?$:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0),this.videoConfig.isTouch=(C=(b=this.uiConfig.isMobile)!=null?b:this.videoConfig.isTouch)!=null?C:this.videoConfig.isMobile,(T=this.videoConfig).autoplay&&(T.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(I=this.uiConfig.ads.enable)!=null?I:this.videoConfig.showAds,this.videoConfig.adsSlotId=(M=this.uiConfig.ads.slot)!=null?M:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(P=this.uiConfig.ads.preview)!=null?P:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((k=this.uiConfig.showLogo)!=null?k:!this.videoConfig.logoHidden),(R=this.videoConfig).canRewindLive&&(R.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(W=this.videoConfig.supportLink)!=null?W:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(Y=this.uiConfig.features.endScreen)!=null?Y:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(F=this.uiConfig.features.autoplayNext)!=null?F:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(Q=this.uiConfig.features.nextPrevButtons)!=null?Q:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((oe=this.videoConfig.videos)!=null&&oe[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let re={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Tu.getLatestSupportedVersion(re):this.pictureInPictureApi=new ea(re)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Su:void 0,this.slotsApi=this.uiConfig.features.slots?new bu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new ku(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),(Z=this.slotsApi)==null||Z.init(this.shadowRootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),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]),Z1(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}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(kn)&&(r(kn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(kn).nextButtonActive=this.isNextButtonActive(),r(kn).prevButtonActive=this.isPrevButtonActive(),r(kn).endScreenVideoTitle=o.nextVideoTitle,r(kn).endScreenVideoThumb=o.nextVideoThumb,r(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}={...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",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,n;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,r(kn)&&(r(kn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(kn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(kn).nextButtonActive=this.isNextButtonActive(),r(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,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}async setLanguage(e){var i;await((i=this.store)==null?void 0:i.actions.internal.setLanguage(e))}setLiveStart(e){var i,o;this.log({message:"live started"}),(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0})}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}setLiveWaitingRecover(){var e;this.log({message:"live waiting recover"}),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var i,o;(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!0),(o=this.store)==null||o.destroy()})}setLiveWaitingRecord(){var e;this.log({message:"post live"}),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var i,o;(i=this.store)==null||i.actions.internal.setLiveWaitingRecord(!0),(o=this.store)==null||o.destroy()})}setLiveEnd(e){var i;this.log({message:"live ended"}),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var o,n;(o=this.store)==null||o.actions.internal.setLiveWaitingRecover(!1),(n=this.store)==null||n.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})})}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;return(i=(e=this.statistics)==null?void 0:e.oneStat.getDeviceId())!=null?i:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(e){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=Se(this.store.state.positionExact$),s=Se(this.store.state.interactiveEpisodes$).find(l=>!l.completed);this.interactiveController.events.playerChanged$.pipe((0,Yi.once)()).subscribe(()=>{s&&n>=s.time?this.seekTime(s.time):this.seekTime(n),e==null||e()});let d=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&this.statistics.oneStat.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)}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}unmountComponent(e){e&&qs(e)}};var wl=require("@vkontakte/videoplayer-shared/es2018"),Ru=require("@vkontakte/videoplayer-core/es2018"),Cx=()=>{window.customElements.define("vk-video-player",Lu)};
|