@vkontakte/videoplayer 1.1.64-beta.0 → 1.1.64-dev.095ddfcb.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 +72 -73
- package/es2024.esm.js +72 -73
- package/esnext.cjs.js +72 -73
- package/esnext.esm.js +72 -73
- package/evergreen.esm.js +72 -73
- package/package.json +5 -5
- package/types/components/Ads/admanWrapper.d.ts +2 -0
- package/types/components/Menus/subMenuTabs/rootMenuItems.d.ts +0 -1
- package/types/components/Menus/subMenuTabs/types.d.ts +1 -0
- package/types/config.d.ts +7 -0
- package/types/constans/subtitles.d.ts +1 -0
- package/types/store/index.d.ts +1 -5
- package/types/translation/types.d.ts +1 -1
- package/types/utils/changeVolume.d.ts +6 -3
- package/types/utils/webAPI/slotsApi.d.ts +2 -25
package/es2018.esm.js
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.64-
|
|
3
|
-
*
|
|
2
|
+
* @vkontakte/videoplayer v1.1.64-dev.095ddfcb.0
|
|
3
|
+
* Fri, 20 Jun 2025 11:04:44 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-64/doc/
|
|
5
5
|
*/
|
|
6
|
-
var N1=Object.defineProperty;var
|
|
6
|
+
var N1=Object.defineProperty;var zm=t=>{throw TypeError(t)};var D1=(t,e,i)=>e in t?N1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var Ln=(t,e,i)=>D1(t,typeof e!="symbol"?e+"":e,i),$u=(t,e,i)=>e.has(t)||zm("Cannot "+i);var Pi=(t,e,i)=>($u(t,e,"read from private field"),i?i.call(t):e.get(t)),as=(t,e,i)=>e.has(t)?zm("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),ya=(t,e,i,o)=>($u(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),qm=(t,e,i)=>($u(t,e,"access private method"),i);var ls="[",Es="[!",Ps="]",zr={};var Ai=Symbol(),hi=Symbol("filename"),Wm=Symbol("hmr"),Km="http://www.w3.org/1999/xhtml",yu="http://www.w3.org/2000/svg";var Wd=!0;var Gm,Ym,Qm=(Ym=(Gm=globalThis.process)==null?void 0:Gm.env)==null?void 0:Ym.NODE_ENV,ke=Qm&&!Qm.toLowerCase().startsWith("prod");var Ro=Symbol("$state"),qr=Symbol("$state metadata"),dl=Symbol("legacy props"),jm=Symbol("");var vr=Array.isArray,Zm=Array.prototype.indexOf,cl=Array.from,xu=Object.keys,Xi=Object.defineProperty,Vn=Object.getOwnPropertyDescriptor,Kd=Object.getOwnPropertyDescriptors,wu=Object.prototype,Xm=Array.prototype,Wr=Object.getPrototypeOf;function ds(t){return typeof t=="function"}var te=()=>{};function Jm(t){return t()}function cs(t){for(var e=0;e<t.length;e++)t[e]()}var ul=[],Su=[];function ev(){var t=ul;ul=[],cs(t)}function O1(){var t=Su;Su=[],cs(t)}function Xo(t){ul.length===0&&queueMicrotask(ev),ul.push(t)}function Cu(){ul.length>0&&ev(),Su.length>0&&O1()}function Qd(t){return t===this.v}function xa(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function tv(t,e){return t!==e}function wa(t){return!xa(t,this.v)}function iv(){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 ov(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 nv(){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 rv(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 sv(){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 av(){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 lv(){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 dv(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 cv(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 uv(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 pv(){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 fv(){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 mv(){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 vv(){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 Mr=!1,Lr=!1;function gv(){Mr=!0}var pl=null;function Kr(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;Xi(e,"stack",{value:n.join(`
|
|
25
|
+
`)}),Xi(e,"name",{value:`${t}Error`})}return e}var As=new Set,Sa=new Map;function Eu(t){As=t}function Ui(t,e){var i={f:0,v:t,reactions:null,equals:Qd,rv:0,wv:0};return ke&&Lr&&(i.created=e!=null?e:Kr("CreatedAt"),i.debug=null),i}function X(t){return H1(Ui(t))}function Gr(t,e=!1){var o,n;let i=Ui(t);return e||(i.equals=wa),Mr&&kt!==null&&kt.l!==null&&((n=(o=kt.l).s)!=null?n:o.s=[]).push(i),i}function H1(t){return Ht!==null&&!Bn&&(Ht.f&2)!==0&&(gr===null?bv([t]):gr.push(t)),t}function D(t,e){return Ht!==null&&!Bn&&Vr()&&(Ht.f&18)!==0&&(gr===null||!gr.includes(t))&&vv(),Ca(t,e)}function Ca(t,e){var o;if(!t.equals(e)){var i=t.v;if(Ls?Sa.set(t,e):Sa.set(t,i),t.v=e,t.wv=ml(),ke&&Lr&&(t.updated=Kr("UpdatedAt"),Tt!=null&&(t.trace_need_increase=!0,(o=t.trace_v)!=null||(t.trace_v=i))),_v(t,2048),Vr()&&Tt!==null&&(Tt.f&1024)!==0&&(Tt.f&96)===0&&(Rn===null?$v([t]):Rn.push(t)),ke&&As.size>0){let n=Array.from(As);for(let a of n)(a.f&1024)!==0&&tn(a,4096),us(a)&&Ta(a);As.clear()}}return e}function _v(t,e){var i=t.reactions;if(i!==null)for(var o=Vr(),n=i.length,a=0;a<n;a++){var s=i[a],d=s.f;if((d&2048)===0&&!(!o&&s===Tt)){if(ke&&(d&262144)!==0){As.add(s);continue}tn(s,e),(d&1280)!==0&&((d&2)!==0?_v(s,4096):Ia(s))}}}function v(t){var e=2050,i=Ht!==null&&(Ht.f&2)!==0?Ht:null;Tt===null||i!==null&&(i.f&256)!==0?e|=256:Tt.f|=1048576;let o={ctx:kt,deps:null,effects:null,equals:Qd,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:Tt};return ke&&Lr&&(o.created=Kr("CreatedAt")),o}function _r(t){let e=v(t);return e.equals=wa,e}function Gd(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)eo(e[i])}}var Pu=[];function F1(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function U1(t){var e,i=Tt;if(Ji(F1(t)),ke){let o=As;Eu(new Set);try{Pu.includes(t)&&iv(),Pu.push(t),Gd(t),e=Yd(t)}finally{Ji(i),Eu(o),Pu.pop()}}else try{Gd(t),e=Yd(t)}finally{Ji(i)}return e}function Mu(t){var e=U1(t),i=(Yr||(t.f&256)!==0)&&t.deps!==null?4096:1024;tn(t,i),t.equals(e)||(t.v=e,t.wv=ml())}var Vs="font-weight: bold",Rs="font-weight: normal";function yv(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`,Rs
|
|
27
|
+
https://svelte.dev/e/hydration_attribute_changed`,Vs,Rs):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function xv(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`,Rs
|
|
29
|
+
https://svelte.dev/e/hydration_html_changed`,Vs,Rs):console.warn("https://svelte.dev/e/hydration_html_changed")}function Bs(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`,Rs
|
|
31
|
+
https://svelte.dev/e/hydration_mismatch`,Vs,Rs):console.warn("https://svelte.dev/e/hydration_mismatch")}function wv(){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`,Rs
|
|
33
|
+
https://svelte.dev/e/lifecycle_double_unmount`,Vs,Rs):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Sv(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`,Rs
|
|
35
|
+
https://svelte.dev/e/ownership_invalid_binding`,Vs,Rs):console.warn("https://svelte.dev/e/ownership_invalid_binding")}function Lu(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`,Rs
|
|
37
|
+
https://svelte.dev/e/ownership_invalid_mutation`,Vs,Rs):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function jd(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`,Rs
|
|
39
|
+
https://svelte.dev/e/state_proxy_equality_mismatch`,Vs,Rs):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Qe=!1;function to(t){Qe=t}var ht;function _i(t){if(t===null)throw Bs(),zr;return ht=t}function Bi(){return _i(Io(ht))}function g(t){if(Qe){if(Io(ht)!==null)throw Bs(),zr;ht=t}}function $e(t=1){if(Qe){for(var e=t,i=ht;e--;)i=Io(i);ht=i}}function ka(){for(var t=0,e=ht;;){if(e.nodeType===8){var i=e.data;if(i===Ps){if(t===0)return e;t-=1}else(i===ls||i===Es)&&(t+=1)}var o=Io(e);e.remove(),e=o}}function pe(t,e=null,i){var p,m;var o=null;if(ke&&Lr&&(o=Kr("CreatedAt")),typeof t!="object"||t===null||Ro in t)return t;let n=Wr(t);if(n!==wu&&n!==Xm)return t;var a=new Map,s=vr(t),d=Ui(0);s&&a.set("length",Ui(t.length,o));var l;if(ke)if(l={parent:e,owners:null},i){let y=(m=(p=i.v)==null?void 0:p[qr])==null?void 0:m.owners;l.owners=y?new Set(y):null}else l.owners=e===null?kt!==null?new Set([kt.function]):null:new Set;return new Proxy(t,{defineProperty(y,u,$){(!("value"in $)||$.configurable===!1||$.enumerable===!1||$.writable===!1)&&pv();var w=a.get(u);return w===void 0?(w=Ui($.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,Ui(Ai,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($,Ai),Cv(d)}return!0},get(y,u,$){var I;if(ke&&u===qr)return l;if(u===Ro)return t;var w=a.get(u),b=u in y;if(w===void 0&&(!b||(I=Vn(y,u))!=null&&I.writable)&&(w=Ui(pe(b?y[u]:Ai,l),o),a.set(u,w)),w!==void 0){var C=r(w);if(ke){var T=C==null?void 0:C[qr];T&&(T==null?void 0:T.parent)!==l&&Vu(l,T)}return C===Ai?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!==Ai)return{enumerable:!0,configurable:!0,value:C,writable:!0}}return $},has(y,u){var C;if(ke&&u===qr||u===Ro)return!0;var $=a.get(u),w=$!==void 0&&$.v!==Ai||Reflect.has(y,u);if($!==void 0||Tt!==null&&(!w||(C=Vn(y,u))!=null&&C.writable)){$===void 0&&($=Ui(w?pe(y[u],l):Ai,o),a.set(u,$));var b=r($);if(b===Ai)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,Ai):T in y&&(I=Ui(Ai,o),a.set(T+"",I))}if(b===void 0?(!C||(W=Vn(y,u))!=null&&W.writable)&&(b=Ui(void 0,o),D(b,pe($,l)),a.set(u,b)):(C=b.v!==Ai,D(b,pe($,l))),ke){var M=$==null?void 0:$[qr];M&&(M==null?void 0:M.parent)!==l&&Vu(l,M),Tv(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"),V=Number(u);Number.isInteger(V)&&V>=k.v&&D(k,V+1)}Cv(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!==Ai});for(var[$,w]of a)w.v!==Ai&&!($ in y)&&u.push($);return u},setPrototypeOf(){fv()}})}function Cv(t,e=1){D(t,t.v+e)}function Zd(t){return t!==null&&typeof t=="object"&&Ro in t?t[Ro]:t}function Iv(){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(Zd(this[l])===a){jd("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(Zd(this[l])===a){jd("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(Zd(this[l])===a){jd("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Ns,kv,vl,Ev,Pv;function Xd(){if(Ns===void 0){Ns=window,kv=document,vl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype;Ev=Vn(e,"firstChild").get,Pv=Vn(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,Iv())}}function on(t=""){return document.createTextNode(t)}function bi(t){return Ev.call(t)}function Io(t){return Pv.call(t)}function h(t,e){if(!Qe)return bi(t);var i=bi(ht);if(i===null)i=ht.appendChild(on());else if(e&&i.nodeType!==3){var o=on();return i==null||i.before(o),_i(o),o}return _i(i),i}function ue(t,e){var n,a;if(!Qe){var i=bi(t);return i.nodeType===8&&i.data===""?Io(i):i}if(e&&((n=ht)==null?void 0:n.nodeType)!==3){var o=on();return(a=ht)==null||a.before(o),_i(o),o}return ht}function A(t,e=1,i=!1){let o=Qe?ht:t;for(var n;e--;)n=o,o=Io(o);if(!Qe)return o;var a=o==null?void 0:o.nodeType;if(i&&a!==3){var s=on();return o===null?n==null||n.after(s):o.before(s),_i(s),s}return _i(o),o}function gl(t){t.textContent=""}var Av=new WeakSet,Jd=!1,bl=!1,hl=null,Ds=!1,Ls=!1;function Nu(t){Ls=t}var _l=[],tc=[],Ht=null,Bn=!1;function ho(t){Ht=t}var Tt=null;function Ji(t){Tt=t}var gr=null;function bv(t){gr=t}var nn=null,Dn=0,Rn=null;function $v(t){Rn=t}var Bv=1,ic=0,Yr=!1,fl=null;function ml(){return++Bv}function us(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&&Tt!==null&&!Yr,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],us(a)&&Mu(a),a.wv>t.wv)return!0}(!o||Tt!==null&&!Yr)&&tn(t,1024)}return!1}function Mv(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 Jd=!1,t}function Lv(t){return(t.f&16384)===0&&(t.parent===null||(t.parent.f&128)===0)}function Pa(t,e,i,o){var m,y;if(Jd){if(i===null&&(Jd=!1),Lv(e))throw t;return}if(i!==null&&(Jd=!0),!ke||o===null||!(t instanceof Error)||Av.has(t)){Mv(t,e);return}Av.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?" ":" ";Xi(t,"message",{value:t.message+`
|
|
40
40
|
${n.map(u=>`
|
|
41
41
|
${l}in ${u}`).join("")}
|
|
42
|
-
`}),
|
|
43
|
-
`)
|
|
44
|
-
`)})}if(
|
|
45
|
-
`)){let n=(i=j1.exec(o))!=null?i:
|
|
42
|
+
`}),Xi(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)}Xi(t,"stack",{value:$.join(`
|
|
44
|
+
`)})}if(Mv(t,e),Lv(e))throw t}function Nv(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?Nv(a,e,!1):e===a&&(i?tn(a,2048):(a.f&1024)!==0&&tn(a,4096),Ia(a))}}function Yd(t){var $,w;var e=nn,i=Dn,o=Rn,n=Ht,a=Yr,s=gr,d=kt,l=Bn,p=t.f;nn=null,Dn=0,Rn=null,Yr=(p&256)!==0&&(Bn||!Ds||Ht===null),Ht=(p&96)===0?t:null,gr=null,yl(t.ctx),Bn=!1,ic++;try{var m=(0,t.fn)(),y=t.deps;if(nn!==null){var u;if($l(t,Dn),y!==null&&Dn>0)for(y.length=Dn+nn.length,u=0;u<nn.length;u++)y[Dn+u]=nn[u];else t.deps=y=nn;if(!Yr)for(u=Dn;u<y.length;u++)((w=($=y[u]).reactions)!=null?w:$.reactions=[]).push(t)}else y!==null&&Dn<y.length&&($l(t,Dn),y.length=Dn);if(Vr()&&Rn!==null&&!Bn&&y!==null&&(t.f&6146)===0)for(u=0;u<Rn.length;u++)Nv(Rn[u],t);return n!==null&&(ic++,Rn!==null&&(o===null?o=Rn:o.push(...Rn))),m}finally{nn=e,Dn=i,Rn=o,Ht=n,Yr=a,gr=s,yl(d),Bn=l}}function z1(t,e){let i=e.reactions;if(i!==null){var o=Zm.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&&(nn===null||!nn.includes(e))&&(tn(e,4096),(e.f&768)===0&&(e.f^=512),Gd(e),$l(e,0))}function $l(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)z1(t,i[o])}function Ta(t){var e=t.f;if((e&16384)===0){tn(t,1024);var i=Tt,o=kt,n=Ds;if(Tt=t,Ds=!0,ke){var a=rn;xl(t.component_function)}try{(e&16)!==0?Dv(t):Ou(t),Du(t);var s=Yd(t);t.teardown=typeof s=="function"?s:null,t.wv=Bv;var d=t.deps;if(ke&&Lr&&(t.f&2048)!==0&&d!==null)for(let p=0;p<d.length;p++){var l=d[p];l.trace_need_increase&&(l.wv=ml(),l.trace_need_increase=void 0,l.trace_v=void 0)}ke&&tc.push(t)}catch(p){Pa(p,t,i,o||t.ctx)}finally{Ds=n,Tt=i,ke&&xl(a)}}}function Vv(){console.error("Last ten effects were: ",tc.slice(-10).map(t=>t.fn)),tc=[]}function q1(){try{sv()}catch(t){if(ke&&Xi(t,"stack",{value:""}),hl!==null)if(ke)try{Pa(t,hl,null,null)}catch(e){throw Vv(),e}else Pa(t,hl,null,null);else throw ke&&Vv(),t}}function Ru(){var t=Ds;try{var e=0;for(Ds=!0;_l.length>0;){e++>1e3&&q1();var i=_l,o=i.length;_l=[];for(var n=0;n<o;n++){var a=K1(i[n]);W1(a)}}}finally{bl=!1,Ds=t,hl=null,ke&&(tc=[]),Sa.clear()}}function W1(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{us(o)&&(Ta(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Hu(o):o.fn=null))}catch(n){Pa(n,o,null,o.ctx)}}}function Ia(t){bl||(bl=!0,queueMicrotask(Ru));for(var e=hl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}_l.push(e)}function K1(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=Ht;try{Ht=i,us(i)&&Ta(i)}catch(p){Pa(p,i,null,i.ctx)}finally{Ht=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 Aa(t){var e;for(t&&(bl=!0,Ru(),e=t()),Cu();_l.length>0;)bl=!0,Ru(),Cu();return e}async function _o(){await Promise.resolve(),Aa()}function r(t){var e=t.f,i=(e&2)!==0;if(fl!==null&&fl.add(t),Ht!==null&&!Bn){gr!==null&&gr.includes(t)&&mv();var o=Ht.deps;t.rv<ic&&(t.rv=ic,nn===null&&o!==null&&o[Dn]===t?Dn++:nn===null?nn=[t]:(!Yr||!nn.includes(t))&&nn.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,us(n)&&Mu(n)),ke&&Lr&&pl!==null&&Ht!==null&&pl.reaction===Ht){if(t.debug)t.debug();else if(t.created){var s=pl.entries.get(t);s===void 0&&(s={read:[]},pl.entries.set(t,s)),s.read.push(Kr("TracedAt"))}}return Ls&&Sa.has(t)?Sa.get(t):t.v}function yt(t){var e=Bn;try{return Bn=!0,t()}finally{Bn=e}}var Q1=-7169;function tn(t,e){t.f=t.f&Q1|e}function nc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Ro in t)oc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Ro in i&&oc(i)}}}function oc(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{oc(t[o],e)}catch(n){}let i=Wr(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Kd(i);for(let n in o){let a=o[n].get;if(a)try{a.call(t)}catch(s){}}}}}function Uu(t){Tt===null&&Ht===null&&rv(t),Ht!==null&&(Ht.f&256)!==0&&Tt===null&&nv(),Ls&&ov(t)}function G1(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Os(t,e,i,o=!0){var l;var n=Tt;if(ke)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var a={ctx:kt,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=rn),i)try{Ta(a),a.f|=32768}catch(p){throw eo(a),p}else e!==null&&Ia(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&&G1(a,n),Ht!==null&&(Ht.f&2)!==0)){var d=Ht;((l=d.effects)!=null?l:d.effects=[]).push(a)}return a}function sn(t){let e=Os(8,null,!1);return tn(e,1024),e.teardown=t,e}function Fe(t){var n;Uu("$effect");var e=Tt!==null&&(Tt.f&32)!==0&&kt!==null&&!kt.m;if(ke&&Xi(t,"name",{value:"$effect"}),e){var i=kt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:Tt,reaction:Ht})}else{var o=yn(t);return o}}function Ma(t){return Uu("$effect.pre"),ke&&Xi(t,"name",{value:"$effect.pre"}),bo(t)}function sc(t){let e=Os(64,t,!0);return()=>{eo(e)}}function Hv(t){let e=Os(64,t,!0);return(i={})=>new Promise(o=>{i.outro?xn(e,()=>{eo(e),o(void 0)}):(eo(e),o(void 0))})}function yn(t){return Os(4,t,!1)}function bo(t){return Os(8,t,!0)}function E(t,e=[],i=v){let o=e.map(i),n=()=>t(...o.map(r));return ke&&Xi(n,"name",{value:"{expression}"}),io(n)}function io(t,e=0){return Os(24|e,t,!0)}function zi(t,e=!0){return Os(40,t,!0,e)}function Du(t){var e=t.teardown;if(e!==null){let i=Ls,o=Ht;Nu(!0),ho(null);try{e.call(null)}finally{Nu(i),ho(o)}}}function Ou(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:eo(i,e),i=o}}function Dv(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&eo(e),e=i}}function eo(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:Io(o);o.remove(),o=a}i=!0}Ou(t,e&&!i),$l(t,0),tn(t,16384);var s=t.transitions;if(s!==null)for(let l of s)l.stop();Du(t);var d=t.parent;d!==null&&d.first!==null&&Hu(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 Hu(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 xn(t,e){var i=[];ac(t,i,!0),zu(i,()=>{eo(t),e&&e()})}function zu(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function ac(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let 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;ac(o,e,a?i:!1),o=n}}}function jr(t){Fv(t,!0)}function Fv(t,e){if((t.f&8192)!==0){t.f^=8192,(t.f&1024)===0&&(t.f^=1024),us(t)&&(tn(t,2048),Ia(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;Fv(i,n?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var Y1={},j1=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,Z1=/@(.+):(\d+):(\d+)$/;function X1(){var i;let t=new Error().stack;if(!t)return null;let e=[];for(let o of t.split(`
|
|
45
|
+
`)){let n=(i=j1.exec(o))!=null?i:Z1.exec(o);n&&e.push({file:n[1],line:+n[2],column:+n[3]})}return e}function Uv(){var e;let t=(e=X1())==null?void 0:e.slice(4);if(!t)return null;for(let i=0;i<t.length;i++){let o=t[i],n=Y1[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 lc=Symbol("ADD_OWNER");function qu(t,e,i=!1,o=!1){if(t&&!i){let n=rn,a=t[qr];if(a&&!Wu(a,n)){let s=Ku(a);e&&e[hi]!==n[hi]&&!o&&Sv(n[hi],e[hi],s[hi])}}dc(t,e,new Set)}function Vu(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 dc(t,e,i){var a;let o=t==null?void 0:t[qr];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),lc in t&&t[lc])bo(()=>{t[lc](e)});else{var n=Wr(t);if(n===Object.prototype)for(let s in t)if((a=Object.getOwnPropertyDescriptor(t,s))!=null&&a.get){let d=Ai;bo(()=>{let l=t[s];d!==l&&(d=l,dc(l,e,i))})}else dc(t[s],e,i);else if(n===Array.prototype)for(let s=0;s<t.length;s+=1)dc(t[s],e,i)}}}function Wu(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&&Wu(t.parent,e)}function Ku(t){var e,i;return(i=(e=t==null?void 0:t.owners)==null?void 0:e.values().next().value)!=null?i:Ku(t.parent)}var J1=!1;function Tv(t){if(J1)return;let e=Uv();if(e&&!Wu(t,e)){let i=Ku(t);i[hi]!==e[hi]?Lu(e[hi],i[hi]):Lu()}}function La(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 Et=null;function yl(t){Et=t}var Zo=null;function xl(t){Zo=t}function Ra(t){return Ku("getContext").get(t)}function Na(t,e){let i=Ku("setContext");return Ee&&yt(()=>zu(e,null,!0)),i.set(t,e),e}function Sl(){return Ku("getAllContexts")}function U(t,e=!1,i){var o=Et={p:Et,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Lr&&!e&&(Et.l={s:null,u:null,r1:[],r2:Ki(!1)}),Xo(()=>{o.d=!0}),Ee&&(Et.function=i,Zo=i)}function z(t){var s,d;let e=Et;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=Tt,o=Ot;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];no(a.effect),vo(a.reaction),pn(a.fn)}}finally{no(i),vo(o)}}Et=e.p,Ee&&(Zo=(d=(s=e.p)==null?void 0:s.function)!=null?d:null),e.m=!0}return t||{}}function Rr(){return!Lr||Et!==null&&Et.l===null}function Ku(t){var e;return Et===null&&Va(t),(e=Et.c)!=null?e:Et.c=new Map(e0(Et)||void 0)}function e0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var t0=/\r/g;function Uv(t){t=t.replace(t0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function zv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var i0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function qv(t){return i0.includes(t)}var o0=["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 n0={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 Wv(t){var e;return t=t.toLowerCase(),(e=n0[t])!=null?e:t}var b6=[...o0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var r0=["touchstart","touchmove"];function Kv(t){return r0.includes(t)}var s0=["textarea","script","style","title"];function Qv(t){return s0.includes(t)}function Qu(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Gv=new Map;function jv(t,e){var i=Gv.get(t);i||(i=new Set,Gv.set(t,i)),i.add(e)}function Gu(t,e){if(e){let i=document.body;t.autofocus=!0,Wo(()=>{document.activeElement===i&&t.focus()})}}function Cl(t){var e=Ot,i=Tt;vo(null),no(null);try{return t()}finally{vo(e),no(i)}}var ju=new Set,cc=new Set;function Fs(t){if(!Ke)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 Yu(t,e,i,o={}){function n(a){if(o.capture||Ba.call(e,a),!a.cancelBubble)return Cl(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Wo(()=>{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=Yu(t,e,i,a);(e===document.body||e===window||e===document)&&Xo(()=>{e.removeEventListener(t,s,a)})}function st(t){for(var e=0;e<t.length;e++)ju.add(t[e]);for(var i of cc)i(t)}function Ba(t){var k;var e=this,i=e.ownerDocument,o=t.type,n=((k=t.composedPath)==null?void 0:k.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=Ot,b=Tt;vo(null),no(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(fr(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,vo(m),no(b)}}}var l0;function Yv(){l0=void 0}function Da(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function _o(t,e){var i=Tt;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(Ke)return _o(vt,null),vt;n===void 0&&(n=Da(a?t:"<!>"+t),i||(n=yi(n)));var s=o||vl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=yi(s),l=s.lastChild;_o(d,l)}else _o(s,s);return s}}function xe(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,s;return()=>{if(Ke)return _o(vt,null),vt;if(!s){var d=Da(a),l=yi(d);if(n)for(s=document.createDocumentFragment();yi(l);)s.appendChild(yi(l));else s=yi(l)}var p=s.cloneNode(!0);if(n){var m=yi(p),b=p.lastChild;_o(m,b)}else _o(p,p);return p}}function Nr(t=""){if(!Ke){var e=jo(t+"");return _o(e,e),e}var i=vt;return i.nodeType!==3&&(i.before(i=jo()),$i(i)),_o(i,i),i}function De(){if(Ke)return _o(vt,null),vt;var t=document.createDocumentFragment(),e=document.createComment(""),i=jo();return t.append(e,i),_o(e,i),t}function $(t,e){if(Ke){Tt.nodes_end=vt,Ui();return}t!==null&&t.before(e)}var Tl=!0;function uc(t){Tl=t}function ve(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function Zr(t,e){return Xv(t,e)}function Xu(t,e){var s;Xd(),e.intro=(s=e.intro)!=null?s:!1;let i=e.target,o=Ke,n=vt;try{for(var a=yi(i);a&&(a.nodeType!==8||a.data!==ds);)a=Io(a);if(!a)throw zr;so(!0),$i(a),Ui();let d=Xv(t,{...e,anchor:a});if(vt===null||vt.nodeType!==8||vt.data!==As)throw Bs(),zr;return so(!1),d}catch(d){if(d===zr)return e.recover===!1&&sv(),Xd(),gl(i),so(!1),Zr(t,e);throw d}finally{so(o),$i(n),Yv()}}var Oa=new Map;function Xv(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){Xd();var d=new Set,l=b=>{for(var u=0;u<b.length;u++){var _=b[u];if(!d.has(_)){d.add(_);var w=Kv(_);e.addEventListener(_,Ba,{passive:w});var y=Oa.get(_);y===void 0?(document.addEventListener(_,Ba,{passive:w}),Oa.set(_,1)):Oa.set(_,y+1)}}};l(cl(ju)),cc.add(l);var p=void 0,m=Ov(()=>{var b=i!=null?i:e.appendChild(jo());return Qi(()=>{if(a){U({});var u=Et;u.c=a}n&&(o.$$events=n),Ke&&_o(b,null),Tl=s,p=t(b,o)||{},Tl=!0,Ke&&(Tt.nodes_end=vt),a&&z()}),()=>{var w;for(var u of d){e.removeEventListener(u,Ba);var _=Oa.get(u);--_===0?(document.removeEventListener(u,Ba),Oa.delete(u)):Oa.set(u,_)}cc.delete(l),b!==i&&((w=b.parentNode)==null||w.removeChild(b))}});return Zu.set(p,m),p}var Zu=new WeakMap;function Us(t,e){let i=Zu.get(t);return i?(Zu.delete(t),i(e)):(Ee&&xv(),Promise.resolve())}function R(t,e,[i,o]=[0,0]){Ke&&i===0&&Ui();var n=t,a=null,s=null,d=Ri,l=i>0?65536:0,p=!1;let m=(u,_=!0)=>{p=!0,b(_,u)},b=(u,_)=>{if(d===(d=u))return;let w=!1;if(Ke&&o!==-1){if(i===0){let C=n.data;C===ds?o=0:C===Ps?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=Ea(),$i(n),so(!1),w=!0,o=-1)}d?(a?Yr(a):_&&(a=Qi(()=>_(n))),s&&fn(s,()=>{s=null})):(s?Yr(s):_&&(s=Qi(()=>_(n,[i+1,o]))),a&&fn(a,()=>{a=null})),w&&so(!0)};ao(()=>{p=!1,e(m),p||b(null,null)},l),Ke&&(n=vt)}function zs(t,e,i){Ke&&Ui();var o=t,n=Ri,a,s=Rr()?ev:wa;ao(()=>{s(n,n=e())&&(a&&fn(a),a=Qi(()=>i(o)))}),Ke&&(o=vt)}var ms=null;function tp(t){ms=t}function Il(t,e){return e}function p0(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)ac(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;gl(l),l.append(i),o.clear(),fs(t,e[0].prev,e[a-1].next)}Uu(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 Ii(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=Ke?$i(yi(p)):p.appendChild(jo())}Ke&&Ui();var m=null,b=!1,u=gr(()=>{var _=i();return fr(_)?_:_==null?[]:cl(_)});ao(()=>{var _=r(u),w=_.length;if(b&&w===0)return;b=w===0;let y=!1;if(Ke){var C=s.data===Ps;C!==(w===0)&&(s=Ea(),$i(s),so(!1),y=!0)}if(Ke){for(var T=null,k,P=0;P<w;P++){if(vt.nodeType===8&&vt.data===As){s=vt,y=!0,so(!1);break}var A=_[P],I=o(A,P);k=tg(vt,d,T,null,A,I,P,n,e,i),d.items.set(I,k),T=k}w>0&&$i(Ea())}Ke||f0(_,d,s,n,e,o,i),a!==null&&(w===0?m?Yr(m):m=Qi(()=>a(s)):m!==null&&fn(m,()=>{m=null})),y&&so(!0),r(u)}),Ke&&(s=vt)}function f0(t,e,i,o,n,a,s){var ce,Le,Ae,he;var d=(n&8)!==0,l=(n&3)!==0,p=t.length,m=e.items,b=e.first,u=b,_,w=null,y,C=[],T=[],k,P,A,I;if(d)for(I=0;I<p;I+=1)k=t[I],P=a(k,I),A=m.get(P),A!==void 0&&((ce=A.a)==null||ce.measure(),(y!=null?y:y=new Set).add(A));for(I=0;I<p;I+=1){if(k=t[I],P=a(k,I),A=m.get(P),A===void 0){var V=u?u.e.nodes_start:i;w=tg(V,e,w,w===null?e.first:w.next,k,P,I,o,n,s),m.set(P,w),C=[],T=[],u=w.next;continue}if(l&&m0(A,k,I,n),(A.e.f&8192)!==0&&(Yr(A.e),d&&((Le=A.a)==null||Le.unfix(),(y!=null?y:y=new Set).delete(A))),A!==u){if(_!==void 0&&_.has(A)){if(C.length<T.length){var q=T[0],Q;w=q.prev;var H=C[0],Y=C[C.length-1];for(Q=0;Q<C.length;Q+=1)Jv(C[Q],q,i);for(Q=0;Q<T.length;Q+=1)_.delete(T[Q]);fs(e,H.prev,Y.next),fs(e,w,H),fs(e,Y,q),u=q,w=Y,I-=1,C=[],T=[]}else _.delete(A),Jv(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?[]:cl(_);u!==null;)(u.e.f&8192)===0&&ne.push(u),u=u.next;var Z=ne.length;if(Z>0){var de=(n&4)!==0&&p===0?i:null;if(d){for(I=0;I<Z;I+=1)(Ae=ne[I].a)==null||Ae.measure();for(I=0;I<Z;I+=1)(he=ne[I].a)==null||he.fix()}p0(e,ne,de,m)}}d&&Wo(()=>{var se;if(y!==void 0)for(A of y)(se=A.a)==null||se.apply()}),Tt.first=e.first&&e.first.e,Tt.last=w&&w.e}function m0(t,e,i,o){(o&1)!==0&&Ta(t.v,e),(o&2)!==0?Ta(t.i,i):t.i=i}function tg(t,e,i,o,n,a,s,d,l,p){var m=ms,b=(l&1)!==0,u=(l&16)===0,_=b?u?Gr(n):Ki(n):n,w=(l&2)===0?s:Ki(s);Ee&&b&&(_.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=Qi(()=>d(t,_,w,p),Ke),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 Jv(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=Io(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 v0(t,e,i){var a,s;if(!e||e===Uv(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=Zo)!=null&&s[bi]&&(o=`in ${Zo[bi]}`),yv(Qu(o))}function kl(t,e,i,o,n){var a=t,s="",d;ao(()=>{var l;if(s===(s=(l=e())!=null?l:"")){Ke&&Ui();return}d!==void 0&&(ro(d),d=void 0),s!==""&&(d=Qi(()=>{if(Ke){for(var p=vt.data,m=Ui(),b=m;m!==null&&(m.nodeType!==8||m.data!=="");)b=m,m=Io(m);if(m===null)throw Bs(),zr;Ee&&!n&&v0(m.parentNode,p,s),_o(vt,b),a=$i(m);return}var u=s+"";i?u=`<svg>${u}</svg>`:o&&(u=`<math>${u}</math>`);var _=Da(u);if((i||o)&&(_=yi(_)),_o(yi(_),_.lastChild),i||o)for(;yi(_);)a.before(yi(_));else a.before(_)}))})}function ge(t,e,...i){var o=t,n=ie,a;ao(()=>{n!==(n=e())&&(a&&(ro(a),a=null),Ee&&n==null&&av(),a=Qi(()=>n(o,...i)))},65536),Ke&&(o=vt)}function ki(t,e,i){Ke&&Ui();var o=t,n,a;ao(()=>{n!==(n=e())&&(a&&(fn(a),a=null),n&&(a=Qi(()=>i(o,n))))},65536),Ke&&(o=vt)}function qs(t,e,i,o,n,a){var w;let s=Ke;Ke&&Ui();var d=Ee&&a&&((w=Et)==null?void 0:w.function[bi]),l,p,m=null;Ke&&vt.nodeType===1&&(m=vt,Ui());var b=Ke?vt:t,u,_=ms;ao(()=>{let y=e()||null;var C=n?n():i||y==="svg"?$u:null;if(y!==l){var T=ms;tp(_),u&&(y===null?fn(u,()=>{u=null,p=null}):y===p?Yr(u):(ro(u),uc(!1))),y&&y!==p&&(u=Qi(()=>{if(m=Ke?m:C?document.createElementNS(C,y):document.createElement(y),Ee&&a&&(m.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),_o(m,m),o){Ke&&Qv(y)&&m.append(document.createComment(""));var k=Ke?yi(m):m.appendChild(jo());Ke&&(k===null?so(!1):$i(k)),o(m,k)}Tt.nodes_end=m,b.before(m)})),l=y,l&&(p=l),uc(!0),tp(T)}},65536),s&&(so(!0),$i(b))}var op;function ig(t){return op=t.target,new ip(t)}var Xr,Zn,ip=class{constructor(e){ls(this,Xr);ls(this,Zn);var a,s;var i=new Map,o=(d,l)=>{var p=Gr(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===dl?!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)}});xa(this,Zn,(e.hydrate?Xu:Zr)(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)&&Ma(),xa(this,Xr,n.$$events);for(let d of Object.keys(Vi(this,Zn)))d==="$set"||d==="$destroy"||d==="$on"||oo(this,d,{get(){return Vi(this,Zn)[d]},set(l){Vi(this,Zn)[d]=l},enumerable:!0});Vi(this,Zn).$set=d=>{Object.assign(n,d)},Vi(this,Zn).$destroy=()=>{Us(Vi(this,Zn))}}$set(e){Vi(this,Zn).$set(e)}$on(e,i){Vi(this,Xr)[e]=Vi(this,Xr)[e]||[];let o=(...n)=>i.call(this,...n);return Vi(this,Xr)[e].push(o),()=>{Vi(this,Xr)[e]=Vi(this,Xr)[e].filter(n=>n!==o)}}$destroy(){Vi(this,Zn).$destroy()}};Xr=new WeakMap,Zn=new WeakMap;function W(t,e){Wo(()=>{var n,a,s;var i=t.getRootNode(),o=i.host?i:(s=(n=i.head)!=null?n:i.ownerDocument.head)!=null?s:(a=op)==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),Ee&&jv(e.hash,d)}})}function og(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=og(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function ng(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=og(t))&&(o&&(o+=" "),o+=e);return o}function El(t){return typeof t=="object"?ng(t):t!=null?t:""}var rg=[...`
|
|
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||rg.includes(o[s-1]))&&(d===o.length||rg.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function sg(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 np(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function lg(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(np)),n&&l.push(...Object.keys(n).map(np));var p=0,m=-1;let y=t.length;for(var b=0;b<y;b++){var u=t[b];if(d?u==="/"&&t[b-1]==="*"&&(d=!1):a?a===u&&(a=!1):u==="/"&&t[b+1]==="*"?d=!0:u==='"'||u==="'"?a=u:u==="("?s++:u===")"&&s--,!d&&a===!1&&s===0){if(u===":"&&m===-1)m=b;else if(u===";"||b===y-1){if(m!==-1){var _=np(t.substring(p,m).trim());if(!l.includes(_)){u!==";"&&b++;var w=t.substring(p,b).trim();i+=" "+w+";"}}p=b+1,m=-1}}}}return o&&(i+=sg(o)),n&&(i+=sg(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(Ke||s!==i){var d=ag(i,o,a);(!Ke||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 rp(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 nt(t,e,i,o){var n=t.__style;if(Ke||n!==e){var a=lg(e,o);(!Ke||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(rp(t,i==null?void 0:i[0],o[0]),rp(t,i==null?void 0:i[1],o[1],"important")):rp(t,i,o));return o}var Ha=Symbol("class"),Fa=Symbol("style"),ug=Symbol("is custom element"),pg=Symbol("is html");function fg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Be(t,e,i,o){var n=mg(t);if(Ke&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||x0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[jm]=i),i==null?t.removeAttribute(e):typeof i!="string"&&vg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Ie(t,e,i,o,n=!1){var A;var a=mg(t),s=a[ug],d=!a[pg];let l=Ke&&s;l&&so(!1);var p=e||{},m=t.tagName==="OPTION";for(var b in e)b in i||(i[b]=null);i.class?i.class=El(i.class):(o||i[Ha])&&(i.class=null),i[Fa]&&((A=i.style)!=null||(i.style=null));var u=vg(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";J(t,_,V,o,e==null?void 0:e[Ha],i[Ha]),p[I]=V,p[Ha]=i[Ha];continue}if(I==="style"){nt(t,V,e==null?void 0:e[Fa],i[Fa]),p[I]=V,p[Fa]=i[Fa];continue}var w=p[I];if(V!==w){p[I]=V;var y=I[0]+I[1];if(y!=="$$")if(y==="on"){let q={},Q="$$"+I,H=I.slice(2);var C=qv(H);if(zv(H)&&(H=H.slice(0,-7),q.capture=!0),!C&&w){if(V!=null)continue;t.removeEventListener(H,p[Q],q),p[Q]=null}if(V!=null)if(C)t[`__${H}`]=V,st([H]);else{let Y=function(ne){p[I].call(this,ne)};var P=Y;p[Q]=Yu(H,t,Y,q)}else C&&(t[`__${H}`]=void 0)}else if(I==="style")Be(t,I,V);else if(I==="autofocus")Gu(t,!!V);else if(!s&&(I==="__value"||I==="value"&&V!=null))t.value=t.__value=V;else if(I==="selected"&&m)fg(t,V);else{var T=I;d||(T=Wv(T));var k=T==="defaultValue"||T==="defaultChecked";if(V==null&&!s&&!k)if(a[I]=null,T==="value"||T==="checked"){let q=t,Q=e===void 0;if(T==="value"){let H=q.defaultValue;q.removeAttribute(T),q.defaultValue=H,q.value=q.__value=Q?H:null}else{let H=q.defaultChecked;q.removeAttribute(T),q.defaultChecked=H,q.checked=Q?H:!1}}else t.removeAttribute(I);else k||u.includes(T)&&(s||typeof V!="string")?t[T]=V:typeof V!="function"&&Be(t,T,V,n)}}}return l&&so(!0),p}function mg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[ug]:t.nodeName.includes("-"),[pg]:t.namespaceURI===Wm}}var dg=new Map;function vg(t){var e=dg.get(t.nodeName);if(e)return e;dg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Kd(o);for(var a in i)i[a].set&&e.push(a);o=Wr(o)}return e}function x0(t,e,i){var o;Ee&&(e==="srcset"&&w0(t,i)||sp((o=t.getAttribute(e))!=null?o:"",i)||$v(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function sp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function cg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function w0(t,e){var i=cg(t.srcset),o=cg(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(sp(i[s][0],n)||sp(n,i[s][0])))}var S0=Wd?()=>performance.now():()=>Date.now(),_r={tick:t=>(Wd?requestAnimationFrame:ie)(t),now:()=>S0(),tasks:new Set};function gg(){let t=_r.now();_r.tasks.forEach(e=>{e.c(t)||(_r.tasks.delete(e),e.f())}),_r.tasks.size!==0&&_r.tick(gg)}function hg(t){let e;return _r.tasks.size===0&&_r.tick(gg),{promise:new Promise(i=>{_r.tasks.add(e={c:t,f:i})}),abort(){_r.tasks.delete(e)}}}function pc(t,e){Cl(()=>{t.dispatchEvent(new CustomEvent(e))})}function k0(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 _g(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=k0(n.trim());e[s]=a.trim()}return e}var E0=t=>t;function lp(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,b=e.style.overflow,u,_;function w(){var V;var A=Ot,I=Tt;vo(null),no(null);try{return p!=null?p:p=i()(e,(V=o==null?void 0:o())!=null?V:{},{direction:l})}finally{vo(A),no(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=ap(e,w(),_,1,()=>{pc(e,"introend"),u==null||u.abort(),u=p=void 0,e.style.overflow=b})},out(A){if(!a){A==null||A(),p=void 0;return}e.inert=!0,pc(e,"outrostart"),_=ap(e,w(),u,0,()=>{pc(e,"outroend"),A==null||A()})},stop:()=>{u==null||u.abort(),_==null||_.abort()}},C=Tt;if(((P=C.transitions)!=null?P:C.transitions=[]).push(y),n&&Tl){var T=d;if(!T){for(var k=C.parent;k&&(k.f&65536)!==0;)for(;(k=k.parent)&&(k.f&16)===0;);T=!k||(k.f&32768)!==0}T&&pn(()=>{yt(()=>y.in())})}}function ap(t,e,i,o,n){var a=o===1;if(cs(e)){var s,d=!1;return Wo(()=>{if(!d){var C=e({direction:a?"in":"out"});s=ap(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:b=E0}=e;var u=[];if(a&&i===void 0&&(m&&m(0,1),p)){var _=_g(p(0,1));u.push(_,_)}var w=()=>1-o,y=t.animate(u,{duration:l});return y.onfinish=()=>{var H;var C=(H=i==null?void 0:i.t())!=null?H:1-o;i==null||i.abort();var T=o-C,k=e.duration*Math.abs(T),P=[];if(k>0){var A=!1;if(p)for(var I=Math.ceil(k/16.666666666666668),V=0;V<=I;V+=1){var q=C+T*b(V/I),Q=_g(p(q,1-q));P.push(Q),A||(A=Q.overflow==="hidden")}A&&(t.style.overflow="hidden"),w=()=>{var Y=y.currentTime;return C+T*b(Y/k)},m&&hg(()=>{if(y.playState!=="running")return!1;var Y=w();return m(Y,1-Y),!0})}y=t.animate(P,{duration:k,fill:"forwards"}),y.onfinish=()=>{w=()=>o,m==null||m(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=ie)},deactivate:()=>{n=ie},reset:()=>{o===0&&(m==null||m(1,0))},t:()=>w()}}var vs,Ua,Pl,mc,bg,vc=class vc{constructor(e){ls(this,mc);ls(this,vs,new WeakMap);ls(this,Ua);ls(this,Pl);xa(this,Pl,e)}observe(e,i){var o=Vi(this,vs).get(e)||new Set;return o.add(i),Vi(this,vs).set(e,o),zm(this,mc,bg).call(this).observe(e,Vi(this,Pl)),()=>{var n=Vi(this,vs).get(e);n.delete(i),n.size===0&&(Vi(this,vs).delete(e),Vi(this,Ua).unobserve(e))}}};vs=new WeakMap,Ua=new WeakMap,Pl=new WeakMap,mc=new WeakSet,bg=function(){var e;return(e=Vi(this,Ua))!=null?e:xa(this,Ua,new ResizeObserver(i=>{for(var o of i){vc.entries.set(o.target,o);for(var n of Vi(this,vs).get(o.target)||[])n(o)}}))},Cn(vc,"entries",new WeakMap);var dp=vc;var M0=new dp({box:"border-box"});function Br(t,e,i){var o=M0.observe(t,()=>i(t[e]));pn(()=>(yt(()=>i(t[e])),o))}function $g(t,e){return t===e||(t==null?void 0:t[Bo])===e}function pt(t={},e,i,o){return pn(()=>{var n,a;return ho(()=>{n=a,a=(o==null?void 0:o())||[],yt(()=>{t!==i(...a)&&(e(t,...a),n&&$g(i(...n),t)&&e(null,...n))})}),()=>{Wo(()=>{a&&$g(i(...a),t)&&e(null,...a)})}}),t}function br(t=!1){let e=Et,i=e.l.u;if(!i)return;let o=()=>nc(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&&La(()=>{yg(e,o),us(i.b)}),He(()=>{let n=yt(()=>i.m.map(Xm));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&He(()=>{yg(e,o),us(i.a)})}function yg(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(Ee){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;cv(e)},set:o=>{i=o}})}};V0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var V0;function zt(t){Et===null&&Va("onMount"),Lr&&Et.l!==null?L0(Et).m.push(t):He(()=>{let e=yt(t);if(typeof e=="function")return e})}function mn(t){Et===null&&Va("onDestroy"),zt(()=>()=>yt(t))}function L0(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function Al(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ie;let o=yt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var za=[];function Xn(t,e){return{subscribe:ae(t,e).subscribe}}function ae(t,e=ie){let i=null,o=new Set;function n(d){if(wa(t,d)&&(t=d,i)){let l=!za.length;for(let p of o)p[1](),za.push(p,t);if(l){for(let p=0;p<za.length;p+=2)za[p][0](za[p+1]);za.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 xi(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let a=e.length<2;return Xn(i,(s,d)=>{let l=!1,p=[],m=0,b=ie,u=()=>{if(m)return;b();let w=e(o?p[0]:p,s,d);a?s(w):b=typeof w=="function"?w:ie},_=n.map((w,y)=>Al(w,C=>{p[y]=C,m&=~(1<<y),l&&u()},()=>{m|=1<<y}));return l=!0,u(),function(){us(_),b(),l=!1}})}function Ce(t){let e;return Al(t,i=>e=i)(),e}var gc=!1,cp=Symbol();function S(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:Gr(void 0),unsubscribe:ie};if(o.store!==t&&!(cp 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=Al(t,s=>{n?o.source.v=s:D(o.source,s)}),n=!1}return t&&cp in i?Ce(t):r(o.source)}function Re(){let t={};function e(){Xo(()=>{for(var i in t)t[i].unsubscribe();oo(t,cp,{enumerable:!1,value:!0})})}return[t,e]}function up(t){var e=gc;try{return gc=!1,[t(),gc]}finally{gc=e}}var F0={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ee&&dv(`${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(Ee?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},F0)}var U0={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=Tn(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=Tn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Bo||e===dl)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 Jr(...t){return new Proxy({props:t},U0)}function xg(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function f(t,e,i,o){var q,Q;var n=(i&1)!==0,a=!Lr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,p;s?[p,l]=up(()=>t[e]):p=t[e];var m=Bo in t||dl in t,b=s&&((Q=(q=Tn(t,e))==null?void 0:q.set)!=null?Q:m&&e in t&&(H=>t[e]=H))||void 0,u=o,_=!0,w=!1,y=()=>(w=!0,_&&(_=!1,d?u=yt(o):u=o),u);p===void 0&&o!==void 0&&(b&&a&&lv(e),p=y(),b&&b(p));var C;if(a)C=()=>{var H=t[e];return H===void 0?y():(_=!0,w=!1,H)};else{var T=(n?v:gr)(()=>t[e]);T.f|=131072,C=()=>{var H=r(T);return H!==void 0&&(u=void 0),H===void 0?u:H}}if((i&4)===0)return C;if(b){var k=t.$$legacy;return function(H,Y){return arguments.length>0?((!a||!Y||k||l)&&b(Y?C():H),H):C()}}var P=!1,A=!1,I=Gr(p),V=v(()=>{var H=C(),Y=r(I);return P?(P=!1,A=!0,Y):(A=!1,I.v=H)});return s&&r(V),n||(V.equals=Sa),function(H,Y){if(fl!==null&&(P=A,C(),r(I)),arguments.length>0){let ne=Y?r(V):a&&s?fe(H):H;if(!V.equals(ne)){if(P=!0,D(I,ne),w&&u!==void 0&&(u=ne),xg(V))return H;yt(()=>r(V))}return H}return xg(V)?V.v:r(V)}}var z0;typeof HTMLElement=="function"&&(z0=class extends HTMLElement{constructor(e,i,o){super();Cn(this,"$$ctor");Cn(this,"$$s");Cn(this,"$$c");Cn(this,"$$cn",!1);Cn(this,"$$d",{});Cn(this,"$$r",!1);Cn(this,"$$p_d",{});Cn(this,"$$l",{});Cn(this,"$$l_u",new Map);Cn(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=q0(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]=pp(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=ig({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=sc(()=>{ho(()=>{var a;this.$$r=!0;for(let s of yu(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=pp(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]=pp(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 yu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function pp(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 q0(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var wg="5";var Sg,Cg,Tg;typeof window!="undefined"&&((Tg=(Cg=(Sg=window.__svelte)!=null?Sg:window.__svelte={}).v)!=null?Tg:Cg.v=new Set).add(wg);import{clientChecker as Im}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-core/es2018";import{noop as y1,safeStorage as Ex,throttleFn as Px}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as Ax}from"@vkontakte/videoplayer-statistics/es2018";import{InterfaceLanguage as K0,fillWithDefault as Q0,VideoQuality as Ig}from"@vkontakte/videoplayer-shared/es2018";var G0={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:K0.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:Ig.Q_480P,highQualityLimit:Ig.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}},kg=t=>Q0(t,G0),Eg=t=>Na("ui-config",t),qt=()=>Ra("ui-config");var Ml="vk_player_debug_panel_opened";var Pg="videoplayer",Ag="videoplayer";var Dr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Mg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Lg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Vg=new Set(["ShiftRight","ShiftLeft"]);var Rg=["TIMELINE"],Ll=[...Rg,"GRAPH_BUTTON"],fp=[...Rg,"PLAY_BUTTON"],Vl=[...Ll,"PLAY_BUTTON"];var Or=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Or||{}),Ks={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Ng,VERSION as j0}from"@vkontakte/videoplayer-shared/es2018";import{VERSION as Y0}from"@vkontakte/videoplayer-core/es2018";import{VERSION as Z0}from"@vkontakte/videoplayer-statistics/es2018";var hc="prod",qa="1.1.64-beta.0";var Qs=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Bg=Symbol("storeContext"),Dg=Symbol("microStoresContext"),Og=(t,e)=>{Na(Bg,t),Na(Dg,e),hc==="dev"&&(window.app={store:t,microStores:e})},Te=()=>{let t=Ra(Bg);return Ng(t,"Store context is empty!"),t},lo=()=>{let t=Ra(Dg);return Ng(t,"MicroStores context is empty!"),t},ei=(t,e)=>bc(t,t.getValue(),e),bc=(t,e,i)=>Xn(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),Hg=(t,e,i,o)=>{var k,P,A,I,V,q;let n=t.info,{width:a,height:s}=Ce(i.ui.playerSize),d=(P=(k=n.throughputEstimation$.getValue())==null?void 0:k.toFixed(0))!=null?P:0,l=(I=(A=n.rttEstimation$.getValue())==null?void 0:A.toFixed(0))!=null?I:0,p=n.isAutoQualityEnabled$.getValue()?"auto":"manual",m=`${qa} (core: ${Y0}, stat: ${Z0}, shared: ${j0})`,b=Ce(i.state.errorLog$),u=b.length?`
|
|
49
|
-
`+
|
|
50
|
-
`,
|
|
51
|
-
`,
|
|
52
|
-
`;return
|
|
53
|
-
`):void 0
|
|
54
|
-
`)},Fg=(t,e,i)=>{var q,Q,H,Y;let o=t.info,{width:n,height:a}=Ce(i.ui.playerSize),s={version:qa,viewport:`${n}x${a}`,volume:Math.round(Ce(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(),b=o.isLive$.getValue(),u=o.liveBufferTime$.getValue();m&&(b&&u?s.buffer=m.end-u:s.buffer=Math.max(m.end-Ce(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 k=Ce(i.vsid);typeof k=="string"&&(s.vsid=k);let P=(q=t.info.currentVideoStream$.getValue())==null?void 0:q.codec;P&&(s.videoCodec=P);let A=(Q=t.info.currentAudioStream$.getValue())==null?void 0:Q.codec;A&&(s.audioCodec=A),((H=t.info.currentVideoStream$.getValue())==null?void 0:H.hdr)&&(s.hdr=!0);let V=(Y=t.info.currentAudioStream$.getValue())==null?void 0:Y.language;return V&&(s.audioLanguage=V),s},Ug=(t,e)=>Qs(t,e,"mp4"),zg=t=>!t.type,qg=t=>!!t.type,Wg=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},_c=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=await fetch(e,{signal:this.destroyController.signal});if(i.ok)return await i.text();throw i}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};import{isNullable as gp,safeStorage as bo}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-core/es2018";var Kg="vk_player_prefer_traffic_saving_enabled",Qg="vk_player_preferred_volume",Gg="vk_player_prefer_volume_mute",hp="vk_player_preferred_quality",mp="vk_player_preferred_default_quality_settings",vp="vk_player_preferred_quality_settings_by_video",jg="vk_player_preferred_stream_language",Yg="vk_player_preferred_rate",Zg="vk_player_preferred_autoplay_next",Xg=t=>t>1?1:t<0?0:t,_p=t=>bo.set(Qg,Xg(t).toString(10)),$c=()=>{let t=bo.get(Qg);return gp(t)?void 0:Xg(parseFloat(t))},bp=(t,e)=>bo.set(hp,JSON.stringify({videoId:t,value:e})),Nl=()=>bo.remove(hp),$p=t=>{let e=bo.get(hp);if(gp(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Nl();return}return o},yp=(t,e)=>{e?bo.set(t,"true"):bo.remove(t)},xp=t=>bo.get(t)==="true",wp=t=>yp(Gg,t),Jg=()=>xp(Gg),Rl=t=>yp(Kg,t),Sp=()=>xp(Kg),eh=()=>bo.get(jg),Cp=t=>bo.set(jg,t),th=t=>bo.set(Yg,JSON.stringify({rate:t})),ih=()=>{let t=bo.get(Yg);if(gp(t))return;let{rate:e}=JSON.parse(t);return e},oh=t=>yp(Zg,t),nh=()=>xp(Zg),X0=()=>{let t=m=>{bo.set(mp,JSON.stringify(m))},e=()=>{try{let m=bo.get(mp);return m?JSON.parse(m):null}catch(m){return null}},i=()=>{try{let m=bo.get(vp);return m?JSON.parse(m):null}catch(m){return null}},o=m=>{bo.set(vp,JSON.stringify(m))},n=m=>{p(m);let b=m?i():null;if(b&&(b==null?void 0:b.videoId)===m)return{...b,appliesTo:"to-video"};b&&a();let u=e();return u?{...u,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{bo.remove(vp)},s=()=>{bo.remove(mp)},d=(m,b="as-default")=>{m.type==="exact_quality"?o(m):b==="as-default"?t(m):o(m)},l=m=>{let b=n(m);if(b){switch(b.type){case"traffic_saving":Rl(!0);break;case"exact_quality":bp(m,b.quality)}a(),s()}},p=m=>{let b=$p(m);if(b){o({type:"exact_quality",videoId:m,quality:b});return}Sp()&&t({type:"traffic_saving",videoId:m}),Rl(!1),Nl()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:rh,migrateSettingsToLegacyWay:sh,savePreferredQualitySettings:yc,savePreferredDefaultQualitySettings:GP,removePreferredQualitySettingsByVideo:jP,getPreferredDefaultQualitySettings:xc}=X0();import{PlaybackState as _1}from"@vkontakte/videoplayer-core/es2018";var J0=xe('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"></path><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-opacity=".12" stroke-width=".5" d="m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"></path></g><defs><filter id="a" width="75" height="44" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_618_12297"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_618_12297" result="shape"></feBlend></filter></defs></svg>');function Bl(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=J0();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(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)}import{isNullable as dh,InterfaceLanguage as ch}from"@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}",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 kt=null;function yl(t){kt=t}var rn=null;function xl(t){rn=t}function Va(t){return Qu("getContext").get(t)}function Ra(t,e){let i=Qu("setContext");return ke&&yt(()=>qu(e,null,!0)),i.set(t,e),e}function Sl(){return Qu("getAllContexts")}function U(t,e=!1,i){var o=kt={p:kt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Mr&&!e&&(kt.l={s:null,u:null,r1:[],r2:Ui(!1)}),sn(()=>{o.d=!0}),ke&&(kt.function=i,rn=i)}function z(t){var s,d;let e=kt;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=Tt,o=Ht;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];Ji(a.effect),ho(a.reaction),yn(a.fn)}}finally{Ji(i),ho(o)}}kt=e.p,ke&&(rn=(d=(s=e.p)==null?void 0:s.function)!=null?d:null),e.m=!0}return t||{}}function Vr(){return!Mr||kt!==null&&kt.l===null}function Qu(t){var e;return kt===null&&La(t),(e=kt.c)!=null?e:kt.c=new Map(t0(kt)||void 0)}function t0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var i0=/\r/g;function zv(t){t=t.replace(i0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function qv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var o0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Wv(t){return o0.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 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 Kv(t){var e;return t=t.toLowerCase(),(e=r0[t])!=null?e:t}var b6=[...n0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var s0=["touchstart","touchmove"];function Qv(t){return s0.includes(t)}var a0=["textarea","script","style","title"];function Gv(t){return a0.includes(t)}function Gu(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Yv=new Map;function jv(t,e){var i=Yv.get(t);i||(i=new Set,Yv.set(t,i)),i.add(e)}function Yu(t,e){if(e){let i=document.body;t.autofocus=!0,Xo(()=>{document.activeElement===i&&t.focus()})}}function Cl(t){var e=Ht,i=Tt;ho(null),Ji(null);try{return t()}finally{ho(e),Ji(i)}}var ju=new Set,cc=new Set;function Hs(t){if(!Qe)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 Zu(t,e,i,o={}){function n(a){if(o.capture||Ba.call(e,a),!a.cancelBubble)return Cl(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Xo(()=>{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=Zu(t,e,i,a);(e===document.body||e===window||e===document)&&sn(()=>{e.removeEventListener(t,s,a)})}function rt(t){for(var e=0;e<t.length;e++)ju.add(t[e]);for(var i of cc)i(t)}function Ba(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){Xi(t,"currentTarget",{configurable:!0,get(){return a||i}});var m=Ht,y=Tt;ho(null),Ji(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(vr(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,ho(m),Ji(y)}}}var d0;function Zv(){d0=void 0}function Na(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function $o(t,e){var i=Tt;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(Qe)return $o(ht,null),ht;n===void 0&&(n=Na(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;$o(d,l)}else $o(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(Qe)return $o(ht,null),ht;if(!s){var d=Na(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;$o(m,y)}else $o(p,p);return p}}function Rr(t=""){if(!Qe){var e=on(t+"");return $o(e,e),e}var i=ht;return i.nodeType!==3&&(i.before(i=on()),_i(i)),$o(i,i),i}function Oe(){if(Qe)return $o(ht,null),ht;var t=document.createDocumentFragment(),e=document.createComment(""),i=on();return t.append(e,i),$o(e,i),t}function _(t,e){if(Qe){Tt.nodes_end=ht,Bi();return}t!==null&&t.before(e)}var Tl=!0;function uc(t){Tl=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 Zr(t,e){return Jv(t,e)}function Ju(t,e){var s;Xd(),e.intro=(s=e.intro)!=null?s:!1;let i=e.target,o=Qe,n=ht;try{for(var a=bi(i);a&&(a.nodeType!==8||a.data!==ls);)a=Io(a);if(!a)throw zr;to(!0),_i(a),Bi();let d=Jv(t,{...e,anchor:a});if(ht===null||ht.nodeType!==8||ht.data!==Ps)throw Bs(),zr;return to(!1),d}catch(d){if(d===zr)return e.recover===!1&&av(),Xd(),gl(i),to(!1),Zr(t,e);throw d}finally{to(o),_i(n),Zv()}}var Da=new Map;function Jv(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){Xd();var d=new Set,l=y=>{for(var u=0;u<y.length;u++){var $=y[u];if(!d.has($)){d.add($);var w=Qv($);e.addEventListener($,Ba,{passive:w});var b=Da.get($);b===void 0?(document.addEventListener($,Ba,{passive:w}),Da.set($,1)):Da.set($,b+1)}}};l(cl(ju)),cc.add(l);var p=void 0,m=Hv(()=>{var y=i!=null?i:e.appendChild(on());return zi(()=>{if(a){U({});var u=kt;u.c=a}n&&(o.$$events=n),Qe&&$o(y,null),Tl=s,p=t(y,o)||{},Tl=!0,Qe&&(Tt.nodes_end=ht),a&&z()}),()=>{var w;for(var u of d){e.removeEventListener(u,Ba);var $=Da.get(u);--$===0?(document.removeEventListener(u,Ba),Da.delete(u)):Da.set(u,$)}cc.delete(l),y!==i&&((w=y.parentNode)==null||w.removeChild(y))}});return Xu.set(p,m),p}var Xu=new WeakMap;function Fs(t,e){let i=Xu.get(t);return i?(Xu.delete(t),i(e)):(ke&&wv(),Promise.resolve())}function B(t,e,[i,o]=[0,0]){Qe&&i===0&&Bi();var n=t,a=null,s=null,d=Ai,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(Qe&&o!==-1){if(i===0){let C=n.data;C===ls?o=0:C===Es?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let b=o>i;!!d===b&&(n=ka(),_i(n),to(!1),w=!0,o=-1)}d?(a?jr(a):$&&(a=zi(()=>$(n))),s&&xn(s,()=>{s=null})):(s?jr(s):$&&(s=zi(()=>$(n,[i+1,o]))),a&&xn(a,()=>{a=null})),w&&to(!0)};io(()=>{p=!1,e(m),p||y(null,null)},l),Qe&&(n=ht)}function Us(t,e,i){Qe&&Bi();var o=t,n=Ai,a,s=Vr()?tv:xa;io(()=>{s(n,n=e())&&(a&&xn(a),a=zi(()=>i(o)))}),Qe&&(o=ht)}var fs=null;function ip(t){fs=t}function Il(t,e){return e}function f0(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)ac(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;gl(l),l.append(i),o.clear(),ps(t,e[0].prev,e[a-1].next)}zu(n,()=>{for(var p=0;p<a;p++){var m=e[p];d||(o.delete(m.k),ps(t,m.prev,m.next)),eo(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=Qe?_i(bi(p)):p.appendChild(on())}Qe&&Bi();var m=null,y=!1,u=_r(()=>{var $=i();return vr($)?$:$==null?[]:cl($)});io(()=>{var $=r(u),w=$.length;if(y&&w===0)return;y=w===0;let b=!1;if(Qe){var C=s.data===Es;C!==(w===0)&&(s=ka(),_i(s),to(!1),b=!0)}if(Qe){for(var T=null,I,M=0;M<w;M++){if(ht.nodeType===8&&ht.data===Ps){s=ht,b=!0,to(!1);break}var P=$[M],k=o(P,M);I=ig(ht,d,T,null,P,k,M,n,e,i),d.items.set(k,I),T=I}w>0&&_i(ka())}Qe||m0($,d,s,n,e,o,i),a!==null&&(w===0?m?jr(m):m=zi(()=>a(s)):m!==null&&xn(m,()=>{m=null})),b&&to(!0),r(u)}),Qe&&(s=ht)}function m0(t,e,i,o,n,a,s){var le,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&&((le=P.a)==null||le.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 V=u?u.e.nodes_start:i;w=ig(V,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&&v0(P,I,k,n),(P.e.f&8192)!==0&&(jr(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)eg(C[Y],W,i);for(Y=0;Y<T.length;Y+=1)$.delete(T[Y]);ps(e,F.prev,Q.next),ps(e,w,F),ps(e,Q,W),u=W,w=Q,k-=1,C=[],T=[]}else $.delete(P),eg(P,u,i),ps(e,P.prev,P.next),ps(e,P,w===null?e.first:w.next),ps(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 ie=$===void 0?[]:cl($);u!==null;)(u.e.f&8192)===0&&ie.push(u),u=u.next;var Z=ie.length;if(Z>0){var re=(n&4)!==0&&p===0?i:null;if(d){for(k=0;k<Z;k+=1)(Me=ie[k].a)==null||Me.measure();for(k=0;k<Z;k+=1)(ge=ie[k].a)==null||ge.fix()}f0(e,ie,re,m)}}d&&Xo(()=>{var se;if(b!==void 0)for(P of b)(se=P.a)==null||se.apply()}),Tt.first=e.first&&e.first.e,Tt.last=w&&w.e}function v0(t,e,i,o){(o&1)!==0&&Ca(t.v,e),(o&2)!==0?Ca(t.i,i):t.i=i}function ig(t,e,i,o,n,a,s,d,l,p){var m=fs,y=(l&1)!==0,u=(l&16)===0,$=y?u?Gr(n):Ui(n):n,w=(l&2)===0?s:Ui(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};fs=b;try{return b.e=zi(()=>d(t,$,w,p),Qe),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{fs=m}}function eg(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=Io(a);n.before(a),a=s}}function ps(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 g0(t,e,i){var a,s;if(!e||e===zv(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=rn)!=null&&s[hi]&&(o=`in ${rn[hi]}`),xv(Gu(o))}function kl(t,e,i,o,n){var a=t,s="",d;io(()=>{var l;if(s===(s=(l=e())!=null?l:"")){Qe&&Bi();return}d!==void 0&&(eo(d),d=void 0),s!==""&&(d=zi(()=>{if(Qe){for(var p=ht.data,m=Bi(),y=m;m!==null&&(m.nodeType!==8||m.data!=="");)y=m,m=Io(m);if(m===null)throw Bs(),zr;ke&&!n&&g0(m.parentNode,p,s),$o(ht,y),a=_i(m);return}var u=s+"";i?u=`<svg>${u}</svg>`:o&&(u=`<math>${u}</math>`);var $=Na(u);if((i||o)&&($=bi($)),$o(bi($),$.lastChild),i||o)for(;bi($);)a.before(bi($));else a.before($)}))})}function ve(t,e,...i){var o=t,n=te,a;io(()=>{n!==(n=e())&&(a&&(eo(a),a=null),ke&&n==null&&lv(),a=zi(()=>n(o,...i)))},65536),Qe&&(o=ht)}function Ti(t,e,i){Qe&&Bi();var o=t,n,a;io(()=>{n!==(n=e())&&(a&&(xn(a),a=null),n&&(a=zi(()=>i(o,n))))},65536),Qe&&(o=ht)}function zs(t,e,i,o,n,a){var w;let s=Qe;Qe&&Bi();var d=ke&&a&&((w=kt)==null?void 0:w.function[hi]),l,p,m=null;Qe&&ht.nodeType===1&&(m=ht,Bi());var y=Qe?ht:t,u,$=fs;io(()=>{let b=e()||null;var C=n?n():i||b==="svg"?yu:null;if(b!==l){var T=fs;ip($),u&&(b===null?xn(u,()=>{u=null,p=null}):b===p?jr(u):(eo(u),uc(!1))),b&&b!==p&&(u=zi(()=>{if(m=Qe?m:C?document.createElementNS(C,b):document.createElement(b),ke&&a&&(m.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),$o(m,m),o){Qe&&Gv(b)&&m.append(document.createComment(""));var I=Qe?bi(m):m.appendChild(on());Qe&&(I===null?to(!1):_i(I)),o(m,I)}Tt.nodes_end=m,y.before(m)})),l=b,l&&(p=l),uc(!0),ip(T)}},65536),s&&(to(!0),_i(y))}var np;function og(t){return np=t.target,new op(t)}var Xr,rr,op=class{constructor(e){as(this,Xr);as(this,rr);var a,s;var i=new Map,o=(d,l)=>{var p=Gr(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===dl?!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)}});ya(this,rr,(e.hydrate?Ju:Zr)(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)&&Aa(),ya(this,Xr,n.$$events);for(let d of Object.keys(Pi(this,rr)))d==="$set"||d==="$destroy"||d==="$on"||Xi(this,d,{get(){return Pi(this,rr)[d]},set(l){Pi(this,rr)[d]=l},enumerable:!0});Pi(this,rr).$set=d=>{Object.assign(n,d)},Pi(this,rr).$destroy=()=>{Fs(Pi(this,rr))}}$set(e){Pi(this,rr).$set(e)}$on(e,i){Pi(this,Xr)[e]=Pi(this,Xr)[e]||[];let o=(...n)=>i.call(this,...n);return Pi(this,Xr)[e].push(o),()=>{Pi(this,Xr)[e]=Pi(this,Xr)[e].filter(n=>n!==o)}}$destroy(){Pi(this,rr).$destroy()}};Xr=new WeakMap,rr=new WeakMap;function K(t,e){Xo(()=>{var n,a,s;var i=t.getRootNode(),o=i.host?i:(s=(n=i.head)!=null?n:i.ownerDocument.head)!=null?s:(a=np)==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&&jv(e.hash,d)}})}function ng(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=ng(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function rg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=ng(t))&&(o&&(o+=" "),o+=e);return o}function El(t){return typeof t=="object"?rg(t):t!=null?t:""}var sg=[...`
|
|
48
|
+
\r\f\xA0\v\uFEFF`];function lg(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||sg.includes(o[s-1]))&&(d===o.length||sg.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function ag(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 rp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function dg(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(rp)),n&&l.push(...Object.keys(n).map(rp));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 $=rp(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+=ag(o)),n&&(i+=ag(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(Qe||s!==i){var d=lg(i,o,a);(!Qe||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 nt(t,e,i,o){var n=t.__style;if(Qe||n!==e){var a=dg(e,o);(!Qe||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 Oa=Symbol("class"),Ha=Symbol("style"),pg=Symbol("is custom element"),fg=Symbol("is html");function mg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Be(t,e,i,o){var n=vg(t);if(Qe&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||w0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[jm]=i),i==null?t.removeAttribute(e):typeof i!="string"&&gg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Te(t,e,i,o,n=!1){var P;var a=vg(t),s=a[pg],d=!a[fg];let l=Qe&&s;l&&to(!1);var p=e||{},m=t.tagName==="OPTION";for(var y in e)y in i||(i[y]=null);i.class?i.class=El(i.class):(o||i[Oa])&&(i.class=null),i[Ha]&&((P=i.style)!=null||(i.style=null));var u=gg(t);for(let k in i){let V=i[k];if(m&&k==="value"&&V==null){t.value=t.__value="",p[k]=V;continue}if(k==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";J(t,$,V,o,e==null?void 0:e[Oa],i[Oa]),p[k]=V,p[Oa]=i[Oa];continue}if(k==="style"){nt(t,V,e==null?void 0:e[Ha],i[Ha]),p[k]=V,p[Ha]=i[Ha];continue}var w=p[k];if(V!==w){p[k]=V;var b=k[0]+k[1];if(b!=="$$")if(b==="on"){let W={},Y="$$"+k,F=k.slice(2);var C=Wv(F);if(qv(F)&&(F=F.slice(0,-7),W.capture=!0),!C&&w){if(V!=null)continue;t.removeEventListener(F,p[Y],W),p[Y]=null}if(V!=null)if(C)t[`__${F}`]=V,rt([F]);else{let Q=function(ie){p[k].call(this,ie)};var M=Q;p[Y]=Zu(F,t,Q,W)}else C&&(t[`__${F}`]=void 0)}else if(k==="style")Be(t,k,V);else if(k==="autofocus")Yu(t,!!V);else if(!s&&(k==="__value"||k==="value"&&V!=null))t.value=t.__value=V;else if(k==="selected"&&m)mg(t,V);else{var T=k;d||(T=Kv(T));var I=T==="defaultValue"||T==="defaultChecked";if(V==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 V!="string")?t[T]=V:typeof V!="function"&&Be(t,T,V,n)}}}return l&&to(!0),p}function vg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[pg]:t.nodeName.includes("-"),[fg]:t.namespaceURI===Km}}var cg=new Map;function gg(t){var e=cg.get(t.nodeName);if(e)return e;cg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Kd(o);for(var a in i)i[a].set&&e.push(a);o=Wr(o)}return e}function w0(t,e,i){var o;ke&&(e==="srcset"&&S0(t,i)||ap((o=t.getAttribute(e))!=null?o:"",i)||yv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function ap(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function ug(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function S0(t,e){var i=ug(t.srcset),o=ug(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(ap(i[s][0],n)||ap(n,i[s][0])))}var C0=Wd?()=>performance.now():()=>Date.now(),$r={tick:t=>(Wd?requestAnimationFrame:te)(t),now:()=>C0(),tasks:new Set};function hg(){let t=$r.now();$r.tasks.forEach(e=>{e.c(t)||($r.tasks.delete(e),e.f())}),$r.tasks.size!==0&&$r.tick(hg)}function _g(t){let e;return $r.tasks.size===0&&$r.tick(hg),{promise:new Promise(i=>{$r.tasks.add(e={c:t,f:i})}),abort(){$r.tasks.delete(e)}}}function pc(t,e){Cl(()=>{t.dispatchEvent(new CustomEvent(e))})}function E0(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 bg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=E0(n.trim());e[s]=a.trim()}return e}var P0=t=>t;function dp(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 V;var P=Ht,k=Tt;ho(null),Ji(null);try{return p!=null?p:p=i()(e,(V=o==null?void 0:o())!=null?V:{},{direction:l})}finally{ho(P),Ji(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=lp(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"),$=lp(e,w(),u,0,()=>{pc(e,"outroend"),P==null||P()})},stop:()=>{u==null||u.abort(),$==null||$.abort()}},C=Tt;if(((M=C.transitions)!=null?M:C.transitions=[]).push(b),n&&Tl){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&&yn(()=>{yt(()=>b.in())})}}function lp(t,e,i,o,n){var a=o===1;if(ds(e)){var s,d=!1;return Xo(()=>{if(!d){var C=e({direction:a?"in":"out"});s=lp(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:te,deactivate:te,reset:te,t:()=>o};let{delay:l=0,css:p,tick:m,easing:y=P0}=e;var u=[];if(a&&i===void 0&&(m&&m(0,1),p)){var $=bg(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),V=0;V<=k;V+=1){var W=C+T*y(V/k),Y=bg(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&&_g(()=>{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=te)},deactivate:()=>{n=te},reset:()=>{o===0&&(m==null||m(1,0))},t:()=>w()}}var ms,Fa,Pl,mc,$g,vc=class vc{constructor(e){as(this,mc);as(this,ms,new WeakMap);as(this,Fa);as(this,Pl);ya(this,Pl,e)}observe(e,i){var o=Pi(this,ms).get(e)||new Set;return o.add(i),Pi(this,ms).set(e,o),qm(this,mc,$g).call(this).observe(e,Pi(this,Pl)),()=>{var n=Pi(this,ms).get(e);n.delete(i),n.size===0&&(Pi(this,ms).delete(e),Pi(this,Fa).unobserve(e))}}};ms=new WeakMap,Fa=new WeakMap,Pl=new WeakMap,mc=new WeakSet,$g=function(){var e;return(e=Pi(this,Fa))!=null?e:ya(this,Fa,new ResizeObserver(i=>{for(var o of i){vc.entries.set(o.target,o);for(var n of Pi(this,ms).get(o.target)||[])n(o)}}))},Ln(vc,"entries",new WeakMap);var cp=vc;var L0=new cp({box:"border-box"});function Br(t,e,i){var o=L0.observe(t,()=>i(t[e]));yn(()=>(yt(()=>i(t[e])),o))}function yg(t,e){return t===e||(t==null?void 0:t[Ro])===e}function mt(t={},e,i,o){return yn(()=>{var n,a;return bo(()=>{n=a,a=(o==null?void 0:o())||[],yt(()=>{t!==i(...a)&&(e(t,...a),n&&yg(i(...n),t)&&e(null,...n))})}),()=>{Xo(()=>{a&&yg(i(...a),t)&&e(null,...a)})}}),t}function yr(t=!1){let e=kt,i=e.l.u;if(!i)return;let o=()=>nc(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&&Ma(()=>{xg(e,o),cs(i.b)}),Fe(()=>{let n=yt(()=>i.m.map(Jm));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&Fe(()=>{xg(e,o),cs(i.a)})}function xg(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;uv(e)},set:o=>{i=o}})}};R0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var R0;function Ft(t){kt===null&&La("onMount"),Mr&&kt.l!==null?V0(kt).m.push(t):Fe(()=>{let e=yt(t);if(typeof e=="function")return e})}function wn(t){kt===null&&La("onDestroy"),Ft(()=>()=>yt(t))}function V0(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function Al(t,e,i){if(t==null)return e(void 0),i&&i(void 0),te;let o=yt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Ua=[];function sr(t,e){return{subscribe:ce(t,e).subscribe}}function ce(t,e=te){let i=null,o=new Set;function n(d){if(xa(t,d)&&(t=d,i)){let l=!Ua.length;for(let p of o)p[1](),Ua.push(p,t);if(l){for(let p=0;p<Ua.length;p+=2)Ua[p][0](Ua[p+1]);Ua.length=0}}}function a(d){n(d(t))}function s(d,l=te){let p=[d,l];return o.add(p),o.size===1&&(i=e(n,a)||te),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 sr(i,(s,d)=>{let l=!1,p=[],m=0,y=te,u=()=>{if(m)return;y();let w=e(o?p[0]:p,s,d);a?s(w):y=typeof w=="function"?w:te},$=n.map((w,b)=>Al(w,C=>{p[b]=C,m&=~(1<<b),l&&u()},()=>{m|=1<<b}));return l=!0,u(),function(){cs($),y(),l=!1}})}function Se(t){let e;return Al(t,i=>e=i)(),e}var gc=!1,up=Symbol();function S(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:Gr(void 0),unsubscribe:te};if(o.store!==t&&!(up in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=te;else{var n=!0;o.unsubscribe=Al(t,s=>{n?o.source.v=s:D(o.source,s)}),n=!1}return t&&up in i?Se(t):r(o.source)}function Ne(){let t={};function e(){sn(()=>{for(var i in t)t[i].unsubscribe();Xi(t,up,{enumerable:!1,value:!0})})}return[t,e]}function pp(t){var e=gc;try{return gc=!1,[t(),gc]}finally{gc=e}}var U0={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return ke&&cv(`${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},U0)}var z0={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ds(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];ds(n)&&(n=n());let a=Vn(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(ds(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Vn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Ro||e===dl)return!1;for(let i of t.props)if(ds(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){ds(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function Jr(...t){return new Proxy({props:t},z0)}function wg(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=!Mr||(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=Ro in t||dl in t,y=s&&((Y=(W=Vn(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=yt(o):u=o),u);p===void 0&&o!==void 0&&(y&&a&&dv(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:_r)(()=>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=Gr(p),V=v(()=>{var F=C(),Q=r(k);return M?(M=!1,P=!0,Q):(P=!1,k.v=F)});return s&&r(V),n||(V.equals=wa),function(F,Q){if(fl!==null&&(M=P,C(),r(k)),arguments.length>0){let ie=Q?r(V):a&&s?pe(F):F;if(!V.equals(ie)){if(M=!0,D(k,ie),w&&u!==void 0&&(u=ie),wg(V))return F;yt(()=>r(V))}return F}return wg(V)?V.v:r(V)}}var q0;typeof HTMLElement=="function"&&(q0=class extends HTMLElement{constructor(e,i,o){super();Ln(this,"$$ctor");Ln(this,"$$s");Ln(this,"$$c");Ln(this,"$$cn",!1);Ln(this,"$$d",{});Ln(this,"$$r",!1);Ln(this,"$$p_d",{});Ln(this,"$$l",{});Ln(this,"$$l_u",new Map);Ln(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=W0(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]=fp(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=og({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=sc(()=>{bo(()=>{var a;this.$$r=!0;for(let s of xu(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=fp(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]=fp(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return xu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function fp(t,e,i,o){var 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 W0(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Sg="5";var Cg,Tg,Ig;typeof window!="undefined"&&((Ig=(Tg=(Cg=window.__svelte)!=null?Cg:window.__svelte={}).v)!=null?Ig:Tg.v=new Set).add(Sg);import{clientChecker as km}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-core/es2018";import{noop as x1,safeStorage as Ex,throttleFn as Px}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as Ax}from"@vkontakte/videoplayer-statistics/es2018";import{InterfaceLanguage as Q0,fillWithDefault as G0,VideoQuality as kg}from"@vkontakte/videoplayer-shared/es2018";var Y0={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:Q0.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:kg.Q_480P,highQualityLimit:kg.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,usePuid:!0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null}},Eg=t=>G0(t,Y0),Pg=t=>Ra("ui-config",t),Ut=()=>Va("ui-config");var Ml="vk_player_debug_panel_opened";var Ag="videoplayer",Mg="videoplayer";var Nr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Lg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Vg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Rg=new Set(["ShiftRight","ShiftLeft"]);var Bg=["TIMELINE"],Ll=[...Bg,"GRAPH_BUTTON"],mp=[...Bg,"PLAY_BUTTON"],Vl=[...Ll,"PLAY_BUTTON"];var Dr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Dr||{}),Ws={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Ng,VERSION as j0}from"@vkontakte/videoplayer-shared/es2018";import{VERSION as Z0}from"@vkontakte/videoplayer-core/es2018";import{VERSION as X0}from"@vkontakte/videoplayer-statistics/es2018";var hc="prod",za="1.1.64-dev.095ddfcb.0";var Ks=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Dg=Symbol("storeContext"),Og=Symbol("microStoresContext"),Hg=(t,e)=>{Ra(Dg,t),Ra(Og,e),hc==="dev"&&(window.app={store:t,microStores:e})},Ce=()=>{let t=Va(Dg);return Ng(t,"Store context is empty!"),t},oo=()=>{let t=Va(Og);return Ng(t,"MicroStores context is empty!"),t},Jt=(t,e)=>bc(t,t.getValue(),e),bc=(t,e,i)=>sr(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),Fg=(t,e,i,o)=>{var P,k,V,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=(V=n.rttEstimation$.getValue())==null?void 0:V.toFixed(0))!=null?W:0,p=n.isAutoQualityEnabled$.getValue()?"auto":"manual",m=`${za} (core: ${Z0}, stat: ${X0}, shared: ${j0})`,y=Se(i.state.errorLog$),u=y.length?`
|
|
49
|
+
`+y.map((Q,ie)=>{var Ae;let Z=`${ie}) Type: ${Q.id}
|
|
50
|
+
`,re=`Message: ${Q.message} (${Q.thrown})
|
|
51
|
+
`,le=`Trace: ${(Ae=Q.thrown)==null?void 0:Ae.stack}
|
|
52
|
+
`;return Z+re+le}).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,ie])=>ie!==void 0).map(([Q,ie])=>`${Q}: ${ie}`).join(`
|
|
54
|
+
`)},Ug=(t,e,i)=>{var W,Y,F,Q;let o=t.info,{width:n,height:a}=Se(i.ui.playerSize),s={version:za,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 V=(Q=t.info.currentAudioStream$.getValue())==null?void 0:Q.language;return V&&(s.audioLanguage=V),s},zg=(t,e)=>Ks(t,e,"mp4"),qg=t=>!t.type,Wg=t=>!!t.type,Kg=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},_c=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=await fetch(e,{signal:this.destroyController.signal});if(i.ok)return await i.text();throw i}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};import{isNullable as hp,safeStorage as yo}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-core/es2018";var Qg="vk_player_prefer_traffic_saving_enabled",Gg="vk_player_preferred_volume",Yg="vk_player_prefer_volume_mute",_p="vk_player_preferred_quality",vp="vk_player_preferred_default_quality_settings",gp="vk_player_preferred_quality_settings_by_video",jg="vk_player_preferred_stream_language",Zg="vk_player_preferred_rate",Xg="vk_player_preferred_autoplay_next",Jg=t=>t>1?1:t<0?0:t,bp=t=>yo.set(Gg,Jg(t).toString(10)),$c=()=>{let t=yo.get(Gg);return hp(t)?void 0:Jg(parseFloat(t))},$p=(t,e)=>yo.set(_p,JSON.stringify({videoId:t,value:e})),Bl=()=>yo.remove(_p),yp=t=>{let e=yo.get(_p);if(hp(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Bl();return}return o},xp=(t,e)=>{e?yo.set(t,"true"):yo.remove(t)},wp=t=>yo.get(t)==="true",Sp=t=>xp(Yg,t),eh=()=>wp(Yg),Rl=t=>xp(Qg,t),Cp=()=>wp(Qg),th=()=>yo.get(jg),Tp=t=>yo.set(jg,t),ih=t=>yo.set(Zg,JSON.stringify({rate:t})),oh=()=>{let t=yo.get(Zg);if(hp(t))return;let{rate:e}=JSON.parse(t);return e},nh=t=>xp(Xg,t),rh=()=>wp(Xg),J0=()=>{let t=m=>{yo.set(vp,JSON.stringify(m))},e=()=>{try{let m=yo.get(vp);return m?JSON.parse(m):null}catch(m){return null}},i=()=>{try{let m=yo.get(gp);return m?JSON.parse(m):null}catch(m){return null}},o=m=>{yo.set(gp,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=()=>{yo.remove(gp)},s=()=>{yo.remove(vp)},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":Rl(!0);break;case"exact_quality":$p(m,y.quality)}a(),s()}},p=m=>{let y=yp(m);if(y){o({type:"exact_quality",videoId:m,quality:y});return}Cp()&&t({type:"traffic_saving",videoId:m}),Rl(!1),Bl()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:sh,migrateSettingsToLegacyWay:ah,savePreferredQualitySettings:yc,savePreferredDefaultQualitySettings:GP,removePreferredQualitySettingsByVideo:YP,getPreferredDefaultQualitySettings:xc}=J0();import{PlaybackState as b1}from"@vkontakte/videoplayer-core/es2018";var e_=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 Nl(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=e_();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$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)}import{isNullable as ch,InterfaceLanguage as uh}from"@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}",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`},lh=t_;var i_={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 l_(t){try{let e=a_(t);if(e)return e}catch(e){}return{value:ph(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 Sc=class{constructor(e){if(e&&e.dsn){let i=s_.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:[l_(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(r_,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 fh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function c_(){return window}var Cc=class t extends Sc{constructor(e,i=c_()){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=>fh(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=>fh(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}};import{isNonNullable as Tc,Subscription as u_}from"@vkontakte/videoplayer-shared/es2018";var Ic=null,Gs=class{constructor(e,i,o={}){!Ic&&e.dsn&&(this.sentryClient=new Cc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new u_,this.options=e,this.context=o,Ic=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Ic=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:b}=s,{errorType:u,category:_}=i;if(Tc(_)&&b.includes(_)||Tc(u)&&m.includes(u))return;if(Math.random()<=d||Tc(_)&&p.includes(_)||Tc(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?Wa.fatal:Wa.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return Ic}};var ts=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(ts||{});var kc=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()},Ec=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),mh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},Dl=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},gs=()=>!!Dl(),Pc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Ac=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},vh=t=>{let e=window.screen;return(async n=>e.orientation?e.orientation.lock(n):e.mozLockOrientation?e.mozLockOrientation(n):e.msLockOrientation?e.msLockOrientation(n):Promise.reject())(((n={width:0,height:0})=>n.width<=n.height?"portrait":"landscape")(t))};import{clientChecker as gh}from"@vkontakte/videoplayer-core/es2018";var hh=()=>({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:gh.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:gh.device.isApple?F("hotkey_map_item_next_episode_mac_value"):F("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as p_,ValueSubject as Ep}from"@vkontakte/videoplayer-shared/es2018";var js=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:p_(this.onResize.bind(this),300)};this.info={isActive$:new Ep(!1),isEnabled$:new Ep(!1),type:0};this.info.isEnabled$=new Ep(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 Ys(t){return t instanceof js}import{devNull as _h,now as bh}from"@vkontakte/videoplayer-shared/es2018";vv();function Mp(t,e){U(e,!1);let i=Te();zt(()=>{i.getAdmanWrapper().startPostroll()}),br(),z()}import{noop as f_}from"@vkontakte/videoplayer-shared/es2018";var m_=(t,e)=>{t.stopPropagation(),e()()},v_=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>'),g_=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 Lp(t,e){U(e,!0),W(t,h_);let[i,o]=Re(),n=()=>S(p,"$isMobile",i),a=f(e,"position",3,0),s=f(e,"secondsToWatchBeforeSkip",3,0),d=f(e,"skipAd",3,f_),p=Te().ui.isMobile,m=v(()=>a()>0&&a()>=s());var b=g_();let u;var _=h(b);{var w=C=>{var T=v_();T.__click=[m_,d];var k=h(T);ye(),g(T),E(P=>ve(k,`${P!=null?P:""} `),[()=>F("skip_ads_now")]),$(C,T)},y=C=>{var T=Nr();E(k=>ve(T,k),[()=>F("skip_ads_after",{time:Math.ceil(s()-a()).toFixed(0)})]),$(C,T)};R(_,C=>{r(m)?C(w):C(y,!1)})}g(b),E(C=>u=J(b,1,"container svelte-1k4i25s",null,u,C),[()=>({"container-mobile":n(),skippable:r(m)})]),$(t,b),z(),o()}st(["click"]);var __=L('<button class="svelte-1wy3dql"> </button>'),b_={hash:"svelte-1wy3dql",code:"button.svelte-1wy3dql {position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black;}"};function Vp(t,e){U(e,!1),W(t,b_),br();var i=__(),o=h(i,!0);g(i),E(n=>ve(o,n),[()=>F("visit_advertiser")],gr),$(t,i),z()}var $_=L('<div class="top-gradient-mobile svelte-354ajf"></div>'),y_=L('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),x_={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.`},dh=i_;var es=new Map;es.set(uh.EN,dh);es.set(uh.RU,lh);var ph=new Map,Ip=({language:t,pack:e,fallback:i})=>{if(es.has(t)){let o=es.get(t);es.set(t,{...o,...e})}else es.set(t,e);ph.set(t,i)},kp=t=>es.has(t),Ep=(t,e,i,o)=>{var s;let n=es.get(t),a=n==null?void 0:n[e];if(ch(a)){let d=(s=ph.get(t))!=null?s:o,l=d?es.get(d):void 0;a=l==null?void 0:l[e]}return ch(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=Ut();return Ep(o,t,e,n.defaultLanguage)};import"@vkontakte/videoplayer-core/es2018";var qa;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(qa||(qa={}));var o_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,n_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,r_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,wc="?",s_="X-Sentry-Auth",a_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function l_(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=o_.exec(i[a]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||wc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=r_.exec(i[a]))n={filename:o[2],function:o[1]||wc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=n_.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||wc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=wc),e.push(n)}return e.length?{value:fh(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function fh(t){return(t&&t.message||"No error message").split(`
|
|
60
|
+
`).filter(i=>!!i)[0]}function d_(t){try{let e=l_(t);if(e)return e}catch(e){}return{value:fh(t),type:t&&t.name,stacktrace:{frames:[]}}}function c_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Sc=class{constructor(e){if(e&&e.dsn){let i=a_.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:[d_(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(s_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:c_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function mh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function u_(){return window}var Cc=class t extends Sc{constructor(e,i=u_()){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=>mh(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=>mh(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}};import{isNonNullable as Tc,Subscription as p_}from"@vkontakte/videoplayer-shared/es2018";var Ic=null,Qs=class{constructor(e,i,o={}){!Ic&&e.dsn&&(this.sentryClient=new Cc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new p_,this.options=e,this.context=o,Ic=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Ic=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(Tc($)&&y.includes($)||Tc(u)&&m.includes(u))return;if(Math.random()<=d||Tc($)&&p.includes($)||Tc(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?qa.fatal:qa.error),n.report(e)}catch(b){console.error(b)}}}static getInstance(){return Ic}};var ts=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(ts||{});var kc=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()},Ec=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),vh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},Dl=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},vs=()=>!!Dl(),Pc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Ac=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},gh=t=>{let e=window.screen;return(async n=>e.orientation?e.orientation.lock(n):e.mozLockOrientation?e.mozLockOrientation(n):e.msLockOrientation?e.msLockOrientation(n):Promise.reject())(((n={width:0,height:0})=>n.width<=n.height?"portrait":"landscape")(t))};import{clientChecker as hh}from"@vkontakte/videoplayer-core/es2018";var _h=()=>({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:hh.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:hh.device.isApple?q("hotkey_map_item_next_episode_mac_value"):q("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as f_,ValueSubject as Pp}from"@vkontakte/videoplayer-shared/es2018";var Gs=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:f_(this.onResize.bind(this),300)};this.info={isActive$:new Pp(!1),isEnabled$:new Pp(!1),type:0};this.info.isEnabled$=new Pp(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 Ys(t){return t instanceof Gs}import{devNull as bh,now as $h}from"@vkontakte/videoplayer-shared/es2018";gv();function Lp(t,e){U(e,!1);let i=Ce();Ft(()=>{i.getAdmanWrapper().startPostroll()}),yr(),z()}import{noop as m_}from"@vkontakte/videoplayer-shared/es2018";var v_=(t,e)=>{t.stopPropagation(),e()()},g_=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>'),h_=L("<div><!></div>"),__={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 Vp(t,e){U(e,!0),K(t,__);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,m_),p=Ce().ui.isMobile,m=v(()=>a()>0&&a()>=s());var y=h_();let u;var $=h(y);{var w=C=>{var T=g_();T.__click=[v_,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=Rr();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()}rt(["click"]);var b_=L('<button class="svelte-1wy3dql"> </button>'),$_={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 Rp(t,e){U(e,!1),K(t,$_),yr();var i=b_(),o=h(i,!0);g(i),E(n=>me(o,n),[()=>q("visit_advertiser")],_r),_(t,i),z()}var y_=L('<div class="top-gradient-mobile svelte-354ajf"></div>'),x_=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(
|
|
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.`},lh=t_;var es=new Map;es.set(ch.EN,lh)
|
|
|
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 Ol(t,e){U(e,!0),
|
|
70
|
+
);}`};function Ol(t,e){U(e,!0),K(t,w_);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=Ut(),T=b.state.isEnded$,I=b.ui.isMobile,M=C.ads.isMobileGoToSiteButton,P=X(void 0),k=X(void 0),V=!1,W=b.ads.playbackState,Y=b.ads.canSkip,F=b.ads.position,Q=b.ads.secondsToWatchBeforeSkip,ie=v(()=>n()&&a()!=="inactive"),Z=v(()=>s()&&a()!=="inactive"&&M);Ft(()=>{var Ve;let _e=b.getAdmanWrapper();if(bh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[$h(),m()]}),!m()){_e.onAdmanLoadingError();return}let ze=Ie=>{_e.initAdman(Ie),V=!0},H=new AbortController,ae=()=>{H.abort()},{width:he,height:ee}=Se(b.ui.playerSize),De=Se(b.ui.isFullscreen),je=(Ve=$())!=null?Ve:Se(b.ui.isAutoplay),we={width:he,height:ee,isFullscreen:De,isAutoplay:je,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()}),()=>{bh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[$h(),m()]}),!V&&ae()}});var re=x_(),le=h(re);{var Ae=_e=>{var ze=y_();_(_e,ze)};B(le,_e=>{s()&&_e(Ae)})}var Me=A(le,2);mt(Me,_e=>D(k,_e),()=>r(k));var ge=A(Me,2);{var se=_e=>{Vp(_e,{get position(){return d()},get secondsToWatchBeforeSkip(){return l()},get skipAd(){return b.actions.internal.skipAd}})};B(ge,_e=>{r(ie)&&_e(se)})}var Ee=A(ge,2);{var ne=_e=>{Lp(_e,{})};B(Ee,_e=>{p()&&_e(ne)})}var R=A(Ee,2);{var xe=_e=>{Rp(_e,{})};B(R,_e=>{r(Z)&&_e(xe)})}g(re),mt(re,_e=>D(P,_e),()=>r(P)),_(t,re),z(),o()}var an=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 S_=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 Bp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=S_();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$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 C_=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 Np(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:te}),$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 Hl(t,e){let i=f(e,"isActive",3,!1);var o=Oe(),n=ue(o);{var a=d=>{Np(d,{})},s=d=>{Bp(d,{})};B(n,d=>{i()?d(a):d(s,!1)})}_(t,o)}var T_=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>'),I_=L('<div class="live-icon svelte-1s15d2i"><!></div>'),k_=L('<span class="text svelte-1s15d2i"> </span>'),E_=L("<div><!> <!></div>"),P_={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.`},lh=t_;var es=new Map;es.set(ch.EN,lh)
|
|
|
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 Fl(t,e){
|
|
142
|
-
opacity var(--controls-transition-duration);}.thumb-timer.hidden.svelte-1b40w20 {visibility:hidden;opacity:0;}`};function Ul(t,e){U(e,!0),W(t,A_);let i=f(e,"isHidden",3,!1),o=f(e,"isLive",3,!1),n=f(e,"isPlaying",3,!1),a=v(()=>Jo(e.duration-e.position));var s=P_();let d;var l=h(s);Fl(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 Ka=t=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}};import{ChromecastState as U_}from"@vkontakte/videoplayer-core/es2018";import{clientChecker as $h}from"@vkontakte/videoplayer-core/es2018";var Jn=t=>{t.stopPropagation(),t.preventDefault()},L_=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},V_=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},R_=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},N_=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},yh=t=>t.code==="Escape",B_=t=>t.code==="ArrowLeft",zl=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},xh=t=>{if(R_(t)){Jn(t),V_(t.target);return}N_(t)&&(Jn(t),L_(t.target))},bs=t=>!$h.device.isAndroid&&(t==null?void 0:t.detail)===0||$h.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Qa=async(t,e,i)=>{await go(),t&&!t.classList.contains("opened")&&!e&&Ce(i)&&(await go(),i.set(!1),t.focus())},wh=async(t,e,i)=>{await go(),t&&!e&&Ce(i)&&(i.set(!1),t.focus())},Ga=async(t,e,i)=>{var n;await go(),!!t&&e&&i&&((n=t.children[0])==null||n.focus())},Sh=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Mc=(t,e)=>{xh(t),yh(t)&&(Jn(t),e())},Lc=async(t,e)=>{zl(t,["ArrowRight"])&&(Jn(t),e())},Ch=async(t,e,i)=>{if(xh(t),B_(t)){Jn(t),e();return}yh(t)&&(Jn(t),i())},ja=(t,e)=>{zl(t)&&(Jn(t),e())},Th=(t,e,i)=>{if(zl(t))Jn(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),Jn(t);return}o==="ArrowRight"&&!e&&(i(!0),Jn(t))}},Ih=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},kh=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,n=e.left+o;return{bottom:e.bottom+i,left:n}};import{isNullable as Vc,isValidURL as z_}from"@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};import{noop as Eh}from"@vkontakte/videoplayer-shared/es2018";var O_=(t,e)=>{ja(t,()=>e())},H_=L('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),F_={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 Bp(t,e){U(e,!0),W(t,F_);let i=f(e,"onClick",3,Eh),o=f(e,"closeContextMenu",3,Eh),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=H_();a.__click=n,a.__keydown=[O_,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),ve(s,e.label)}),$(t,a),z()}st(["click","keydown"]);var Xs=(t,e)=>t.weight-e.weight;var ql=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(ql||{});var q_=(t,e)=>{Mc(t,e)},W_=t=>{t.preventDefault()},K_=L('<ul role="menu" class="svelte-1p5ukkp"></ul>'),Q_={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 Dp(t,e){U(e,!0),W(t,Q_);let[i,o]=Re(),n=()=>S(Z,"$isLive$",i),a=()=>S(Ae,"$isPiPEnabled$",i),s=()=>S(ne,"$chromecastState$",i),d=()=>S(he,"$pictureInPictureApiIsActive$",i),l=()=>S(Le,"$isLooped$",i),p=()=>S(de,"$positionExact$",i),m=()=>S(q,"$debugPanelVisible",i),b=()=>S(Q,"$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=X(0),k=X(0),P=Te(),{pictureInPicture$:A}=lo(),I=qt(),V=P.ui.contextMenu.visible$,q=P.ui.debugPanelVisible,Q=P.ui.additionalContextMenuItems$,H=P.ui.t,Y=P.actions.internal.togglePictureInPicture,ne=P.state.chromecastState$,Z=P.state.isLive$,de=P.state.positionExact$,ce=P.state.isInteractive,Le=P.state.looped$,{isEnabled$:Ae,isActive$:he}=A,se=v(()=>{var Ye;return I.features.copyVideoLink&&((Ye=P.callbacks)==null?void 0:Ye.onCopyVideoLink)}),Me=v(()=>r(se)&&!n()&&!ce),oe=v(()=>{var Ye;return!!((Ye=P.callbacks)!=null&&Ye.onCopyEmbedCodeClicked)}),B=v(()=>a()&&s()!==U_.CONNECTED&&!ce),be=v(()=>I.features.videoRotate&&!ce),le=v(()=>I.showSupport&&!d()),We=v(()=>I.features.saveTraceInfoToFile),ee=()=>{var Ye;V.set(!1),(Ye=e.returnFocus)==null||Ye.call(e)},me=(Ye,et)=>{if(!C()||!w()||!y())return;let tt=C().getBoundingClientRect(),qe=w().getBoundingClientRect();D(T,Ye-qe.left),D(k,et-qe.top),r(T)+tt.width>qe.width&&D(T,qe.width-tt.width),r(k)+tt.height>qe.height&&D(k,qe.height-tt.height),D(T,fe(Math.max(r(T),0))),D(k,fe(Math.max(r(k),0)))};He(()=>{(async()=>{if(C()&&w()&&y()){await go();let{top:et,left:tt,bottom:qe,right:gt}=_(),Ht=tt!=null?tt:0,Xe=et!=null?et:0,Qt=C().getBoundingClientRect();Vc(tt)&&!Vc(gt)&&(Ht=gt-Qt.width),Vc(et)&&!Vc(qe)&&(Xe=qe-Qt.height),Ht=Math.max(Ht,0),Xe=Math.max(Xe,0),me(Ht,Xe)}})()});let j=()=>{P.actions.internal.videoRotate()},te=()=>{z_(e.supportLink)&&window.open(e.supportLink,"_blank"),P.actions.internal.reportProblem(),P.actions.internal.pause()},Oe=()=>{let Ye=P.actions.internal.getDebugTextData();if(I.features.saveDebugInfoToFile){let et=new Blob([...Ye],{type:"plain/text"}),tt=window.URL.createObjectURL(et);Qs(tt,"vk_player_debug_info","txt")}else Ka(P.actions.internal.getDebugTextData())},Ge=()=>{let Ye=P.actions.internal.getTraceTextData(),et=new Blob([...Ye],{type:"application/json"}),tt=window.URL.createObjectURL(et);Qs(tt,"vk_player_trace_info","json")},$e=()=>{q.set(!0)},we=async()=>{var Ye;try{Y()}finally{(Ye=e.returnFocus)==null||Ye.call(e)}},Ve=()=>{P.actions.internal.setLooped(!l())},je=()=>{var Ye,et;if(r(oe)){let tt=(et=(Ye=P.callbacks)==null?void 0:Ye.onCopyEmbedCodeClicked)==null?void 0:et.call(Ye);tt&&Ka(tt)}},dt=(Ye=!1)=>{var et,tt;if((et=P.callbacks)!=null&&et.onCopyVideoLink){let qe=(tt=P.callbacks)==null?void 0:tt.onCopyVideoLink(Ye,p());qe&&Ka(qe)}},ct=v(()=>I.features.saveDebugInfoToFile?H("menu_save_debug"):H("menu_copy_debug")),rt=v(()=>r(se)?{id:"copy-link",weight:$r["copy-link"],label:H("menu_copy_video_link"),onClick:()=>dt()}:void 0),Ct=v(()=>r(Me)?{id:"copy-link-timestamp",weight:$r["copy-link-timestamp"],label:H("menu_copy_video_link_with_timestamp"),onClick:()=>dt(!0)}:void 0),_t=v(()=>r(oe)?{id:"copy-embed-code",weight:$r["copy-embed-code"],label:H("menu_copy_embed_code"),onClick:je}:void 0),Gt=v(()=>r(B)?{id:"pip",weight:$r.pip,label:H("menu_pip"),onClick:we}:void 0),ni=v(()=>({id:"video-loop",weight:$r["video-loop"],label:l()?H("menu_video_loop_off"):H("menu_video_loop_on"),ariaLabel:H("aria_label_menu_loop"),onClick:Ve})),It=v(()=>r(be)?{id:"rotate",weight:$r.rotate,label:H("menu_video_rotate"),ariaLabel:H("aria_label_menu_rotate"),onClick:j}:void 0),Vt=v(()=>r(le)?{id:"report",weight:$r.report,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,onClick:te}:void 0),O=v(()=>({id:"save-debug",weight:$r["save-debug"],label:r(ct),onClick:Oe})),_e=v(()=>r(We)?{id:"save-trace",weight:$r["save-trace"],label:H("menu_save_debug"),onClick:Ge}:void 0),re=v(()=>({id:"debug-info",weight:$r["debug-info"],label:H("menu_debug_overlay"),ariaLabel:m()?H("aria_label_menu_debug_overlay_disable"):H("aria_label_menu_debug_overlay_enable"),onClick:$e})),Ne=v(()=>[r(rt),r(Ct),r(_t),r(Gt),r(ni),r(It),r(Vt),r(O),r(_e),r(re),...b()].filter(Ye=>!!Ye).sort(Xs));var ze=De(),Qe=pe(ze);{var ut=Ye=>{var et=K_();et.__contextmenu=[W_],et.__keydown=[q_,ee],Ii(et,21,()=>r(Ne),tt=>tt.id,(tt,qe)=>{Bp(tt,{get id(){return r(qe).id},get label(){return r(qe).label},get ariaLabel(){return r(qe).ariaLabel},get onClick(){return r(qe).onClick},closeContextMenu:ee})}),g(et),pt(et,tt=>C(tt),()=>C()),E(()=>{var tt,qe;return nt(et,`top: ${(tt=r(k))!=null?tt:""}px; left: ${(qe=r(T))!=null?qe:""}px;`)}),$(Ye,et)};R(Qe,Ye=>{u()&&Ye(ut)})}$(t,ze),z(),o()}st(["contextmenu","keydown"]);var Rc=class{constructor(e){this.value=e,this.next=null}};var Ya=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Rc(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 G_=L('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),j_={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 Wl(t,e){U(e,!0),W(t,j_);let i=f(e,"values",19,()=>[]),o=X(void 0),n=X(null),a=16,s=120,d=60,l=s/d;zt(()=>{r(o).width=s,r(o).height=a,D(n,fe(r(o).getContext("2d")))});function p(u,_,w,y,C){C===0&&(C=1),u.fillStyle="#fff",u.fillRect(_,w,y,C)}He(()=>{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=G_(),b=h(m);pt(b,u=>D(o,u),()=>r(o)),g(m),$(t,m),z()}import{safeStorage as Ph}from"@vkontakte/videoplayer-shared/es2018";var Y_=(t,e)=>{t.stopPropagation(),Ph.remove(Ml),e.set(!1)},Z_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),X_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),J_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),eb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),tb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),ib=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),ob=L('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),nb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),rb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),sb=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>'),lb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),db=L('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),cb=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>'),ub={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 Kl(t,e){U(e,!0),W(t,ub);let[i,o]=Re(),n=()=>S(d,"$isMobile",i),a=Te(),s=a.ui.debugPanelVisible,d=a.ui.isMobile,l=X(fe(a.actions.internal.getDebugPanelData())),p=a.actions.internal.getVideoElement(),m=X(0),b=X(0),u=X(0),_=new Ya(60),w=new Ya(60),y=new Ya(60),C=X(fe([])),T=X(fe([])),k=X(fe([])),P=F("aria_label_debug_panel");zt(()=>{Ph.set(Ml,"true"),a.actions.internal.startLogging(),p&&(D(b,fe(p.getVideoPlaybackQuality().droppedVideoFrames)),D(m,fe(p.getVideoPlaybackQuality().totalVideoFrames)));let O=window.setInterval(()=>{D(l,fe(a.actions.internal.getDebugPanelData()))},500),_e;return p&&(_e=window.setInterval(()=>{if(p){D(b,fe(p.getVideoPlaybackQuality().droppedVideoFrames));let re=p.getVideoPlaybackQuality().totalVideoFrames;D(u,re-r(m)),D(m,fe(re)),_.push(r(u)),r(l).speed&&w.push(r(l).speed),r(l).bitrate&&y.push(r(l).bitrate),D(C,fe(_.getValuesFromBottom())),D(T,fe(w.getValuesFromBottom())),D(k,fe(y.getValuesFromBottom()))}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(O),_e&&clearInterval(_e)}});var A=cb();let I;Be(A,"aria-label",P);var V=h(A);V.__click=[Y_,s];var q=M(V,2),Q=h(q),H=M(h(Q),2),Y=h(H,!0);g(H),g(Q);var ne=M(Q,2);{var Z=O=>{var _e=Z_(),re=M(h(_e),2),Ne=h(re,!0);g(re),g(_e),E(()=>ve(Ne,r(l).id)),$(O,_e)};R(ne,O=>{r(l).id&&O(Z)})}var de=M(ne,2);{var ce=O=>{var _e=X_(),re=M(h(_e),2),Ne=h(re,!0);g(re),g(_e),E(()=>ve(Ne,r(l).vsid)),$(O,_e)};R(de,O=>{r(l).vsid&&O(ce)})}var Le=M(de,2);{var Ae=O=>{var _e=J_(),re=M(h(_e),2),Ne=h(re,!0);g(re),g(_e),E(()=>ve(Ne,r(l).provider)),$(O,_e)};R(Le,O=>{r(l).provider&&O(Ae)})}var he=M(Le,2);{var se=O=>{var _e=eb(),re=M(h(_e),2),Ne=h(re);g(re),g(_e),E(()=>{var ze,Qe;return ve(Ne,`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 Fl(t,e){K(t,P_);let i=f(e,"withEqualizer",3,!1),o=f(e,"isLive",3,!1),n=f(e,"isPlaying",3,!1);var a=E_();let s;var d=h(a);{var l=u=>{var $=T_();_(u,$)};B(d,u=>{i()&&u(l)})}var p=A(d,2);{var m=u=>{var $=I_(),w=h($);Hl(w,{isActive:!0}),g($),_(u,$)},y=u=>{var $=k_(),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 A_=L('<div role="timer" data-testid="thumb-timer"><!></div>'),M_={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 Ul(t,e){U(e,!0),K(t,M_);let i=f(e,"isHidden",3,!1),o=f(e,"isLive",3,!1),n=f(e,"isPlaying",3,!1),a=v(()=>an(e.duration-e.position));var s=A_();let d;var l=h(s);Fl(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 Wa=t=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}};import{ChromecastState as z_}from"@vkontakte/videoplayer-core/es2018";import{clientChecker as yh}from"@vkontakte/videoplayer-core/es2018";var ar=t=>{t.stopPropagation(),t.preventDefault()},V_=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},R_=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},B_=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},N_=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},xh=t=>t.code==="Escape",D_=t=>t.code==="ArrowLeft",zl=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},wh=t=>{if(B_(t)){ar(t),R_(t.target);return}N_(t)&&(ar(t),V_(t.target))},_s=t=>!yh.device.isAndroid&&(t==null?void 0:t.detail)===0||yh.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Ka=async(t,e,i)=>{await _o(),t&&!t.classList.contains("opened")&&!e&&Se(i)&&(await _o(),i.set(!1),t.focus())},Sh=async(t,e,i)=>{await _o(),t&&!e&&Se(i)&&(i.set(!1),t.focus())},Qa=async(t,e,i)=>{var n;await _o(),!!t&&e&&i&&((n=t.children[0])==null||n.focus())},Ch=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Mc=(t,e)=>{wh(t),xh(t)&&(ar(t),e())},Lc=async(t,e)=>{zl(t,["ArrowRight"])&&(ar(t),e())},Th=async(t,e,i)=>{if(wh(t),D_(t)){ar(t),e();return}xh(t)&&(ar(t),i())},Ga=(t,e)=>{zl(t)&&(ar(t),e())},Ih=(t,e,i)=>{if(zl(t))ar(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),ar(t);return}o==="ArrowRight"&&!e&&(i(!0),ar(t))}},kh=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},Eh=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,n=e.left+o;return{bottom:e.bottom+i,left:n}};import{isNullable as Vc,isValidURL as q_}from"@vkontakte/videoplayer-shared/es2018";var xr={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};import{noop as Ph}from"@vkontakte/videoplayer-shared/es2018";var H_=(t,e)=>{Ga(t,()=>e())},F_=L('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),U_={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 Dp(t,e){U(e,!0),K(t,U_);let i=f(e,"onClick",3,Ph),o=f(e,"closeContextMenu",3,Ph),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=F_();a.__click=n,a.__keydown=[H_,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()}rt(["click","keydown"]);var Zs=(t,e)=>t.weight-e.weight;var ql=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(ql||{});var W_=(t,e)=>{Mc(t,e)},K_=t=>{t.preventDefault()},Q_=L('<ul role="menu" class="svelte-1p5ukkp"></ul>'),G_={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 Op(t,e){U(e,!0),K(t,G_);let[i,o]=Ne(),n=()=>S(ie,"$isLive$",i),a=()=>S(Ae,"$isPiPEnabled$",i),s=()=>S(Q,"$chromecastState$",i),d=()=>S(Me,"$pictureInPictureApiIsActive$",i),l=()=>S(le,"$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}=oo(),P=Ut(),k=I.ui.contextMenu.visible$,V=I.ui.debugPanelVisible,W=I.ui.additionalContextMenuItems$,Y=I.ui.t,F=I.actions.internal.togglePictureInPicture,Q=I.state.chromecastState$,ie=I.state.isLive$,Z=I.state.positionExact$,re=I.state.isInteractive,le=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()!==z_.CONNECTED&&!re),R=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,ot)=>{if(!b()||!$()||!w())return;let Ye=b().getBoundingClientRect(),gt=$().getBoundingClientRect();D(C,Le-gt.left),D(T,ot-gt.top),r(C)+Ye.width>gt.width&&D(C,gt.width-Ye.width),r(T)+Ye.height>gt.height&&D(T,gt.height-Ye.height),D(C,pe(Math.max(r(C),0))),D(T,pe(Math.max(r(T),0)))};Fe(()=>{(async()=>{if(b()&&$()&&w()){await _o();let{top:ot,left:Ye,bottom:gt,right:st}=u(),Xe=Ye!=null?Ye:0,zt=ot!=null?ot:0,tt=b().getBoundingClientRect();Vc(Ye)&&!Vc(st)&&(Xe=st-tt.width),Vc(ot)&&!Vc(gt)&&(zt=gt-tt.height),Xe=Math.max(Xe,0),zt=Math.max(zt,0),H(Xe,zt)}})()});let ae=()=>{I.actions.internal.videoRotate()},he=()=>{q_(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 ot=new Blob([...Le],{type:"plain/text"}),Ye=window.URL.createObjectURL(ot);Ks(Ye,"vk_player_debug_info","txt")}else Wa(I.actions.internal.getDebugTextData())},De=()=>{let Le=I.actions.internal.getTraceTextData(),ot=new Blob([...Le],{type:"application/json"}),Ye=window.URL.createObjectURL(ot);Ks(Ye,"vk_player_trace_info","json")},je=()=>{V.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,ot;if(r(Ee)){let Ye=(ot=(Le=I.callbacks)==null?void 0:Le.onCopyEmbedCodeClicked)==null?void 0:ot.call(Le);Ye&&Wa(Ye)}},Ue=(Le=!1)=>{var ot,Ye;if((ot=I.callbacks)!=null&&ot.onCopyVideoLink){let gt=(Ye=I.callbacks)==null?void 0:Ye.onCopyVideoLink(Le,p());gt&&Wa(gt)}},dt=v(()=>P.features.saveDebugInfoToFile?Y("menu_save_debug"):Y("menu_copy_debug")),ct=v(()=>r(ge)?{id:"copy-link",weight:xr["copy-link"],label:Y("menu_copy_video_link"),onClick:()=>Ue()}:void 0),it=v(()=>r(se)?{id:"copy-link-timestamp",weight:xr["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:xr["copy-embed-code"],label:Y("menu_copy_embed_code"),onClick:Ie}:void 0),vt=v(()=>r(ne)?{id:"pip",weight:xr.pip,label:Y("menu_pip"),onClick:we}:void 0),Wt=v(()=>({id:"video-loop",weight:xr["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(R)?{id:"rotate",weight:xr.rotate,label:Y("menu_video_rotate"),ariaLabel:Y("aria_label_menu_rotate"),onClick:ae}:void 0),Et=v(()=>r(xe)?{id:"report",weight:xr.report,label:Y("menu_report"),ariaLabel:`${Y("menu_report")}. ${Y("aria_label_new_tab_alert")}`,onClick:he}:void 0),Rt=v(()=>({id:"save-debug",weight:xr["save-debug"],label:r(dt),onClick:ee})),O=v(()=>r(_e)?{id:"save-trace",weight:xr["save-trace"],label:Y("menu_save_debug"),onClick:De}:void 0),be=v(()=>({id:"debug-info",weight:xr["debug-info"],label:Y("menu_debug_overlay"),ariaLabel:Y("aria_label_menu_debug_overlay"),onClick:je})),oe=v(()=>[r(ct),r(it),r(Ct),r(vt),r(Wt),r(ti),r(Et),r(Rt),r(O),r(be),...m()].filter(Le=>!!Le).sort(Zs));var Re=Oe(),Ke=ue(Re);{var Ge=Le=>{var ot=Q_();ot.__contextmenu=[K_],ot.__keydown=[W_,ze],Ci(ot,21,()=>r(oe),Ye=>Ye.id,(Ye,gt)=>{Dp(Ye,{get id(){return r(gt).id},get label(){return r(gt).label},get ariaLabel(){return r(gt).ariaLabel},get onClick(){return r(gt).onClick},closeContextMenu:ze})}),g(ot),mt(ot,Ye=>b(Ye),()=>b()),E(()=>{var Ye,gt;return nt(ot,`top: ${(Ye=r(T))!=null?Ye:""}px; left: ${(gt=r(C))!=null?gt:""}px;`)}),_(Le,ot)};B(Ke,Le=>{y()&&Le(Ge)})}_(t,Re),z(),o()}rt(["contextmenu","keydown"]);var Rc=class{constructor(e){this.value=e,this.next=null}};var Ya=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Rc(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 Y_=L('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),j_={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 Wl(t,e){U(e,!0),K(t,j_);let i=f(e,"values",19,()=>[]),o=X(void 0),n=X(null),a=16,s=120,d=60,l=s/d;Ft(()=>{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=Y_(),y=h(m);mt(y,u=>D(o,u),()=>r(o)),g(m),_(t,m),z()}import{safeStorage as Ah}from"@vkontakte/videoplayer-shared/es2018";var Z_=(t,e)=>{t.stopPropagation(),Ah.remove(Ml),e.set(!1)},X_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),J_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),eb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),tb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),ib=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),ob=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),nb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),rb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),sb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),ab=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),lb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),db=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),cb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),ub=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>'),pb={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 Kl(t,e){U(e,!0),K(t,pb);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 Ya(60),w=new Ya(60),b=new Ya(60),C=X(pe([])),T=X(pe([])),I=X(pe([])),M=q("aria_label_debug_panel");Ft(()=>{Ah.set(Ml,"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 oe=p.getVideoPlaybackQuality().totalVideoFrames;D(u,oe-r(m)),D(m,pe(oe)),$.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=ub();let k;Be(P,"aria-label",M);var V=h(P);V.__click=[Z_,s];var W=A(V,2),Y=h(W),F=A(h(Y),2),Q=h(F,!0);g(F),g(Y);var ie=A(Y,2);{var Z=O=>{var be=X_(),oe=A(h(be),2),Re=h(oe,!0);g(oe),g(be),E(()=>me(Re,r(l).id)),_(O,be)};B(ie,O=>{r(l).id&&O(Z)})}var re=A(ie,2);{var le=O=>{var be=J_(),oe=A(h(be),2),Re=h(oe,!0);g(oe),g(be),E(()=>me(Re,r(l).vsid)),_(O,be)};B(re,O=>{r(l).vsid&&O(le)})}var Ae=A(re,2);{var Me=O=>{var be=eb(),oe=A(h(be),2),Re=h(oe,!0);g(oe),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=tb(),oe=A(h(be),2),Re=h(oe);g(oe),g(be),E(()=>{var Ke,Ge;return me(Re,`Video: ${r(l).videoCodec||""} ${(Ke=r(l).hdr?"(HDR)":"")!=null?Ke:""}
|
|
143
143
|
&
|
|
144
|
-
Audio: ${r(l).audioCodec||""} ${(Qe=r(l).audioLanguage?`(${r(l).audioLanguage})`:"")!=null?Qe:""}`)}),$(O,_e)};R(he,O=>{(r(l).videoCodec||r(l).audioCodec)&&O(se)})}var Me=M(he,2);{var oe=O=>{var _e=tb(),re=M(h(_e),2),Ne=h(re,!0);g(re),g(_e),E(()=>ve(Ne,r(l).viewport)),$(O,_e)};R(Me,O=>{r(l).viewport&&O(oe)})}var B=M(Me,2);{var be=O=>{var _e=ib(),re=M(h(_e),2),Ne=h(re,!0);g(re),g(_e),E(()=>ve(Ne,r(l).videoSize)),$(O,_e)};R(B,O=>{r(l).videoSize&&O(be)})}var le=M(B,2);{var We=O=>{var _e=ob(),re=M(h(_e),2),Ne=h(re,!0);g(re),g(_e),E(()=>ve(Ne,r(l).cdn)),$(O,_e)};R(le,O=>{r(l).cdn&&O(We)})}var ee=M(le,2);{var me=O=>{var _e=nb(),re=M(h(_e),2),Ne=h(re);g(re),g(_e),E(()=>{var ze;return ve(Ne,`${(ze=r(l).volume)!=null?ze:""} %`)}),$(O,_e)};R(ee,O=>{r(l).volume&&O(me)})}var j=M(ee,2);{var te=O=>{var _e=rb(),re=M(h(_e),2),Ne=h(re);g(re),g(_e),E(ze=>ve(Ne,`${ze!=null?ze:""} s`),[()=>r(l).buffer.toFixed(2)]),$(O,_e)};R(j,O=>{r(l).buffer&&O(te)})}var Oe=M(j,2);{var Ge=O=>{var _e=sb(),re=M(h(_e),2),Ne=h(re);g(re),g(_e),E(ze=>ve(Ne,`${ze!=null?ze:""} s`),[()=>r(l).liveLatency.toFixed(2)]),$(O,_e)};R(Oe,O=>{r(l).liveLatency&&O(Ge)})}var $e=M(Oe,2);{var we=O=>{var _e=ab(),re=M(h(_e),2),Ne=h(re,!0);g(re),g(_e),E(ze=>ve(Ne,ze),[()=>[{value:r(l).currentVideoSegmentLength,title:"Video:"},{value:r(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:ze})=>ze).map(({value:ze,title:Qe})=>`${Qe} ${((ze!=null?ze:0)/1e3).toFixed(2)} s`).join(" & ")]),$(O,_e)};R($e,O=>{(r(l).currentVideoSegmentLength||r(l).currentAudioSegmentLength)&&O(we)})}var Ve=M($e,2),je=M(h(Ve),2),dt=h(je);g(je),g(Ve);var ct=M(Ve,2);{var rt=O=>{var _e=lb(),re=M(h(_e),2);Wl(re,{get values(){return r(T)}});var Ne=M(re,2),ze=h(Ne);g(Ne),g(_e),E(Qe=>ve(ze,`${Qe!=null?Qe:""} Kbps`),[()=>r(l).speed.toFixed(2)]),$(O,_e)};R(ct,O=>{r(l).speed&&O(rt)})}var Ct=M(ct,2);{var _t=O=>{var _e=db(),re=M(h(_e),2);Wl(re,{get values(){return r(k)}});var Ne=M(re,2),ze=h(Ne);g(Ne),g(_e),E(Qe=>ve(ze,`${Qe!=null?Qe:""} Kbps`),[()=>r(l).bitrate.toFixed(2)]),$(O,_e)};R(Ct,O=>{r(l).bitrate&&O(_t)})}var Gt=M(Ct,2),ni=M(h(Gt),2);Wl(ni,{get values(){return r(C)}});var It=M(ni,2),Vt=h(It,!0);g(It),g(Gt),g(q),g(A),E(O=>{var _e,re;I=J(A,1,"container svelte-4deykz",null,I,O),ve(Y,r(l).version),ve(dt,`${(_e=r(b))!=null?_e:""} / ${(re=r(m))!=null?re:""} frames`),ve(Vt,r(u))},[()=>({"container-mobile":n()})]),$(t,A),z(),o()}st(["click"]);import{noop as pb}from"@vkontakte/videoplayer-shared/es2018";var fb=(t,e)=>{t.stopPropagation(),e()()},mb=L('<div class="close svelte-1ome55p"></div>'),vb={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 Js(t,e){U(e,!0),W(t,vb);let i=f(e,"onClick",3,pb);var o=mb();o.__click=[fb,i],$(t,o),z()}st(["click"]);import{noop as gb}from"@vkontakte/videoplayer-shared/es2018";var hb=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>'),_b={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 Ql(t,e){U(e,!0),W(t,_b);let i=f(e,"isRunning",3,!0),o=f(e,"onTimerEnded",3,gb),n=5e3,a=X(void 0),s,d,l=X(0),p;He(()=>{i()&&(d=Date.now(),D(l,fe(requestAnimationFrame(b))))});let m=()=>{r(l)&&(cancelAnimationFrame(r(l)),D(l,0))},b=()=>{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,fe(requestAnimationFrame(b)))):o()()};zt(()=>{if(s=r(a).getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{m()}}),mn(()=>{m()});var u=hb(),_=h(u);pt(_,w=>D(a,w),()=>r(a)),ye(2),g(u),$(t,u),z()}var bb=(t,e,i)=>{e(!1),i()},$b=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),yb={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 Op(t,e){U(e,!0),W(t,yb);let[i,o]=Re(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),s=Te(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,p=s.actions.internal.nextVideoClick,m=s.actions.internal.nextVideoAnnouncementShow,b=s.actions.internal.nextVideoAnnouncementClick,u=s.actions.internal.nextVideoAnnouncementAuto,_=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(p(!1),u())},y=()=>{e.clickCloseIcon(),_()};zt(()=>{e.isHide||m(),e.isHide&&n()&&(p(!1),u())});var C=De(),T=pe(C);{var k=P=>{var A=$b(),I=M(pe(A),2),V=h(I),q=h(V),Q=h(q,!0);g(q);var H=M(q,2);Js(H,{onClick:y}),g(V);var Y=M(V,2);Y.__click=[bb,p,b];var ne=h(Y),Z=h(ne),de=h(Z);let ce;var Le=M(de,2);{var Ae=oe=>{let B=v(()=>a()&&n());Ql(oe,{get isRunning(){return r(B)},onTimerEnded:w})};R(Le,oe=>{n()&&oe(Ae)})}g(Z),g(ne);var he=M(ne,2),se=h(he),Me=h(se,!0);g(se),g(he),g(Y),g(I),E((oe,B)=>{ve(Q,oe),nt(Z,`background-image: url('${e.thumb}')`),ce=J(de,1,"thumb-overlay svelte-jfbaax",null,ce,B),ve(Me,e.title)},[()=>F("end_screen_next_video"),()=>({withOpacity:n()})]),$(P,A)};R(T,P=>{e.isHide||P(k)})}$(t,C),z(),o()}st(["click"]);import{PlaybackState as ea}from"@vkontakte/videoplayer-core/es2018";import{checkNever as wb}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as vn}from"@vkontakte/videoplayer-statistics/es2018";var Hp=(t,e)=>Math.min(+(t+e).toFixed(2),1),Fp=(t,e)=>Math.max(+(t-e).toFixed(2),0),Nc=(t,e,i)=>{let o=Hp(e,i);e<1&&t.actions.internal.setVolume(o)},Bc=(t,e,i)=>{let o=Fp(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 Sb=(t,e)=>{e(t)},Cb=L('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),Tb={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Up(t,e){var It,Vt;U(e,!0),W(t,Tb);let[i,o]=Re(),n=()=>S(Q,"$playbackState$",i),a=()=>S(H,"$adPlaybackState",i),s=()=>S(de,"$disabledControls$",i),d=()=>S(Y,"$positionExact$",i),l=()=>S(ne,"$duration$",i),p=()=>S(me,"$isAudioAvailable$",i),m=()=>S(Z,"$volume$",i),b=()=>S(he,"$availablePlaybackRates$",i),u=()=>S(Ae,"$currentPlaybackRate$",i),_=()=>S(te,"$isInteractiveTime$",i),w=()=>S(Oe,"$showInteractiveTimeIndicatorTooltip$",i),y=()=>S(be,"$isEnded$",i),C=()=>S(ce,"$muted$",i),T=()=>S(Le,"$currentSubtitle$",i),k=()=>S(le,"$overlayContainer$",i),P=f(e,"nextButtonActive",3,!1),A=f(e,"prevButtonActive",3,!1),I=Te(),V=qt(),q=I.getLogger().createComponentLog("KeyboardControls component"),Q=I.state.playbackState$,H=I.ads.playbackState,Y=I.state.positionExact$,ne=I.state.duration$,Z=I.state.volume$,de=I.ui.controls.disabledControls$,ce=I.state.muted$,Le=I.state.currentSubtitle$,Ae=I.state.currentPlaybackRate$,he=I.state.availablePlaybackRates$,se=I.ui.contextMenu.openedByHotKey$,Me=I.ui.contextMenu.lastActiveElem$,oe=I.ui.contextMenu.visible$,B=I.ui.contextMenu.position$,be=I.state.isEnded$,le=I.ui.overlayContainer$,We=(It=I.callbacks)==null?void 0:It.onAudioDoesNotExistHint,ee=(Vt=I.callbacks)==null?void 0:Vt.onAudioDisabledHint,me=I.state.isAudioAvailable$,j=I.state.isAudioDisabled,te=I.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Oe}=lo(),Ge=0,$e=!0,we=X(void 0),Ve=O=>(O!==$e&&($e=O,Ge=0),Ge+=1,(V.controls.seekStepKeyboard+V.controls.seekStepKeyboard*Ge)/1e3),je=(O,_e=!1)=>{var Qt,ti;let re=O.target,Ne=(Qt=re==null?void 0:re.getAttribute("role"))==null?void 0:Qt.includes("menuitem"),ze=re.classList.contains("btn"),Qe=O.code;if(ze&&Qe==="Space")return!1;let ut=Lg.has(Qe);if(Ne&&ut)return!1;let Ye=!Mg.has(Qe);if(O.ctrlKey&&Ye||O.altKey&&Ye||O.metaKey)return!1;let et=Ne&&Qe==="Escape";Vg.has(Qe)||et||e.hideContextMenu();let tt=n()===ea.PLAYING||n()===ea.PAUSED,qe=e.isAds&&(a()==="paused"||a()==="playing"),gt=!qe&&!s().has("TIMELINE");if(!(tt||qe))return!1;q({message:`key down, code: ${Qe}, isExternal = ${_e}`});let Ht=!1,Xe=()=>{Ht=!0,_e||O.preventDefault()};switch(Qe){case"KeyJ":case"ArrowLeft":{if(!gt)break;if(O.ctrlKey||O.altKey){let Je=I.actions.internal.getPrevEpisode();I.actions.internal.seekToPrevEpisode(Je),Je&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:Je.text}),Xe()}else{let Je=O.shiftKey?Ve(!1):V.controls.seekStepKeyboard/1e3,Zt=Math.max(d()-Je,0);d()>0&&(I.actions.internal.seekTime(Zt,vn.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:Je.toString()}),Xe())}break}case"KeyL":case"ArrowRight":{if(!gt)break;if(O.ctrlKey||O.altKey){let Je=I.actions.internal.getNextEpisode();I.actions.internal.seekToNextEpisode(Je),Je&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:Je.text}),Xe()}else{let Je=O.shiftKey?Ve(!0):V.controls.seekStepKeyboard/1e3,Zt=Math.min(d()+Je,l());Math.round(d())<Math.round(l())&&(I.actions.internal.seekTime(Zt,vn.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:Je.toString()}),Xe())}break}case"ArrowUp":{if($s({isAudioDisabled:j,audioDisabledHintCallback:ee,isAudioAvailable:p(),audioIsNotExistHintCallback:We})){let Je=m(),Zt=V.controls.volumeStepKeyboard,Ni=Je<=1;if(Nc(I,Je,Zt),Ni){let zi=Math.round(Hp(Je,Zt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:zi}})}}Xe();break}case"ArrowDown":{if($s({isAudioDisabled:j,audioDisabledHintCallback:ee,isAudioAvailable:p(),audioIsNotExistHintCallback:We})){let Je=m(),Zt=V.controls.volumeStepKeyboard,Ni=Je>=0;if(Bc(I,Je,Zt),Ni){let zi=Math.round(Fp(Je,Zt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:zi}})}}Xe();break}case"Comma":{if(O.shiftKey){I.actions.internal.decrementPlaybackRate();let Je=b().find(Zt=>Zt.value===u());e.showHotKeyHelpers({type:"RATE_DOWN",text:Je==null?void 0:Je.displayValue}),Xe()}else{if(qe||n()!==ea.PAUSED)break;let Je=Math.max(d()-V.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(Je,vn.DOUBLE_TAP),Xe())}break}case"Period":{if(O.shiftKey){I.actions.internal.incrementPlaybackRate();let Je=b().find(Zt=>Zt.value===u());e.showHotKeyHelpers({type:"RATE_UP",text:Je==null?void 0:Je.displayValue}),Xe()}else{if(qe||n()!==ea.PAUSED)break;let Je=Math.min(d()+V.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(Je,vn.DOUBLE_TAP),Xe())}break}case"KeyK":case"Space":if(!s().has("PLAY_BUTTON"))if(_()&&w()&&Oe.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{I.actions.internal.togglePlay();let Je="PLAY";n()===ea.PAUSED?Je="PAUSE":y()&&(Je="REPLAY"),e.showHotKeyHelpers({type:Je})}Xe();break;case"KeyM":{$s({isAudioDisabled:j,audioDisabledHintCallback:ee,isAudioAvailable:p(),audioIsNotExistHintCallback:We})&&(e.showHotKeyHelpers({type:C()?"VOLUME":"MUTE"}),I.actions.internal.toggleMuted()),Xe();break}case"KeyF":e.toggleFullscreen(),Xe();break;case"KeyC":I.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(ti=T())==null?void 0:ti.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),Xe();break;case"KeyI":I.actions.internal.togglePictureInPicture(),Xe();break;case"Digit1":case"Numpad1":if(O.shiftKey){let Je=kh(k());B.set(Je),Me.set(re),se.set(!0),oe.set(!0),Xe();break}e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.1,vn.DOUBLE_TAP),Xe();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.2,vn.DOUBLE_TAP),Xe();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.3,vn.DOUBLE_TAP),Xe();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.4,vn.DOUBLE_TAP),Xe();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.5,vn.DOUBLE_TAP),Xe();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.6,vn.DOUBLE_TAP),Xe();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.7,vn.DOUBLE_TAP),Xe();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.8,vn.DOUBLE_TAP),Xe();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.9,vn.DOUBLE_TAP),Xe();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(0,vn.DOUBLE_TAP),Xe();break;case"Slash":{O.shiftKey&&V.features.hotKeyMapModal&&(e.showKeyMap(),Xe());break}case"KeyN":O.shiftKey&&P()&&(I.actions.internal.nextVideoClick(),Xe());break;case"KeyP":O.shiftKey&&A()&&(I.actions.internal.prevVideoClick(),Xe());break;case"ShiftLeft":case"ShiftRight":Xe();break;case"Tab":case"Escape":case"Enter":break;default:wb(Qe);break}return Ht},dt=O=>{let _e=O.code;if(O.ctrlKey||O.altKey||O.metaKey)return;let re=n()===ea.PLAYING||n()===ea.PAUSED,Ne=e.isAds&&(a()==="paused"||a()==="playing");if(re||Ne)switch(_e){case"ShiftLeft":case"ShiftRight":Ge=0;break}},ct=F("aria_label_video_player"),rt=()=>{var O;return(O=r(we))==null?void 0:O.focus()},Ct=O=>O.type==="keydown"?je(O,!0):(O.type==="keyup"&&dt(O),!1);var _t=Cb();_t.__keyup=dt,_t.__keydown=[Sb,je],Be(_t,"aria-label",ct);var Gt=h(_t);ge(Gt,()=>{var O;return(O=e.children)!=null?O:ie}),g(_t),pt(_t,O=>D(we,O),()=>r(we)),$(t,_t);var ni=z({focus:rt,handleExternalKeyboardEvent:Ct});return o(),ni}st(["keyup","keydown"]);var Ib=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>'),kb={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||""} ${(Ge=r(l).audioLanguage?`(${r(l).audioLanguage})`:"")!=null?Ge:""}`)}),_(O,be)};B(ge,O=>{(r(l).videoCodec||r(l).audioCodec)&&O(se)})}var Ee=A(ge,2);{var ne=O=>{var be=ib(),oe=A(h(be),2),Re=h(oe,!0);g(oe),g(be),E(()=>me(Re,r(l).viewport)),_(O,be)};B(Ee,O=>{r(l).viewport&&O(ne)})}var R=A(Ee,2);{var xe=O=>{var be=ob(),oe=A(h(be),2),Re=h(oe,!0);g(oe),g(be),E(()=>me(Re,r(l).videoSize)),_(O,be)};B(R,O=>{r(l).videoSize&&O(xe)})}var _e=A(R,2);{var ze=O=>{var be=nb(),oe=A(h(be),2),Re=h(oe,!0);g(oe),g(be),E(()=>me(Re,r(l).cdn)),_(O,be)};B(_e,O=>{r(l).cdn&&O(ze)})}var H=A(_e,2);{var ae=O=>{var be=rb(),oe=A(h(be),2),Re=h(oe);g(oe),g(be),E(()=>{var Ke;return me(Re,`${(Ke=r(l).volume)!=null?Ke:""} %`)}),_(O,be)};B(H,O=>{r(l).volume&&O(ae)})}var he=A(H,2);{var ee=O=>{var be=sb(),oe=A(h(be),2),Re=h(oe);g(oe),g(be),E(Ke=>me(Re,`${Ke!=null?Ke:""} s`),[()=>r(l).buffer.toFixed(2)]),_(O,be)};B(he,O=>{r(l).buffer&&O(ee)})}var De=A(he,2);{var je=O=>{var be=ab(),oe=A(h(be),2),Re=h(oe);g(oe),g(be),E(Ke=>me(Re,`${Ke!=null?Ke:""} s`),[()=>r(l).liveLatency.toFixed(2)]),_(O,be)};B(De,O=>{r(l).liveLatency&&O(je)})}var we=A(De,2);{var Ve=O=>{var be=lb(),oe=A(h(be),2),Re=h(oe,!0);g(oe),g(be),E(Ke=>me(Re,Ke),[()=>[{value:r(l).currentVideoSegmentLength,title:"Video:"},{value:r(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Ke})=>Ke).map(({value:Ke,title:Ge})=>`${Ge} ${((Ke!=null?Ke: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),dt=h(Ue);g(Ue),g(Ie);var ct=A(Ie,2);{var it=O=>{var be=db(),oe=A(h(be),2);Wl(oe,{get values(){return r(T)}});var Re=A(oe,2),Ke=h(Re);g(Re),g(be),E(Ge=>me(Ke,`${Ge!=null?Ge:""} Kbps`),[()=>r(l).speed.toFixed(2)]),_(O,be)};B(ct,O=>{r(l).speed&&O(it)})}var Ct=A(ct,2);{var vt=O=>{var be=cb(),oe=A(h(be),2);Wl(oe,{get values(){return r(I)}});var Re=A(oe,2),Ke=h(Re);g(Re),g(be),E(Ge=>me(Ke,`${Ge!=null?Ge:""} Kbps`),[()=>r(l).bitrate.toFixed(2)]),_(O,be)};B(Ct,O=>{r(l).bitrate&&O(vt)})}var Wt=A(Ct,2),ti=A(h(Wt),2);Wl(ti,{get values(){return r(C)}});var Et=A(ti,2),Rt=h(Et,!0);g(Et),g(Wt),g(W),g(P),E(O=>{var be,oe;k=J(P,1,"container svelte-4deykz",null,k,O),me(Q,r(l).version),me(dt,`${(be=r(y))!=null?be:""} / ${(oe=r(m))!=null?oe:""} frames`),me(Rt,r(u))},[()=>({"container-mobile":n()})]),_(t,P),z(),o()}rt(["click"]);import{noop as fb}from"@vkontakte/videoplayer-shared/es2018";var mb=(t,e)=>{t.stopPropagation(),e()()},vb=L('<div class="close svelte-1ome55p"></div>'),gb={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 Xs(t,e){U(e,!0),K(t,gb);let i=f(e,"onClick",3,fb);var o=vb();o.__click=[mb,i],_(t,o),z()}rt(["click"]);import{noop as hb}from"@vkontakte/videoplayer-shared/es2018";var _b=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>'),bb={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 Ql(t,e){U(e,!0),K(t,bb);let i=f(e,"isRunning",3,!0),o=f(e,"onTimerEnded",3,hb),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()()};Ft(()=>{if(s=r(a).getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{m()}}),wn(()=>{m()});var u=_b(),$=h(u);mt($,w=>D(a,w),()=>r(a)),$e(2),g(u),_(t,u),z()}var $b=(t,e,i)=>{e(!1),i()},yb=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),xb={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 Hp(t,e){U(e,!0),K(t,xb);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(),$()};Ft(()=>{e.isHide||m(),e.isHide&&n()&&(p(!1),u())});var C=Oe(),T=ue(C);{var I=M=>{var P=yb(),k=A(ue(P),2),V=h(k),W=h(V),Y=h(W,!0);g(W);var F=A(W,2);Xs(F,{onClick:b}),g(V);var Q=A(V,2);Q.__click=[$b,p,y];var ie=h(Q),Z=h(ie),re=h(Z);let le;var Ae=A(re,2);{var Me=ne=>{let R=v(()=>a()&&n());Ql(ne,{get isRunning(){return r(R)},onTimerEnded:w})};B(Ae,ne=>{n()&&ne(Me)})}g(Z),g(ie);var ge=A(ie,2),se=h(ge),Ee=h(se,!0);g(se),g(ge),g(Q),g(k),E((ne,R)=>{me(Y,ne),nt(Z,`background-image: url('${e.thumb}')`),le=J(re,1,"thumb-overlay svelte-jfbaax",null,le,R),me(Ee,e.title)},[()=>q("end_screen_next_video"),()=>({withOpacity:n()})]),_(M,P)};B(T,M=>{e.isHide||M(I)})}_(t,C),z(),o()}rt(["click"]);import{PlaybackState as Js}from"@vkontakte/videoplayer-core/es2018";import{checkNever as Sb}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as Sn}from"@vkontakte/videoplayer-statistics/es2018";var Fp=(t,e)=>Math.min(+(t+e).toFixed(2),1),Up=(t,e)=>Math.max(+(t-e).toFixed(2),0),Bc=(t,e,i)=>{let o=Fp(e,i);e<1?t.actions.internal.setVolume(o):Se(t.state.muted$)&&t.actions.external.setMuted(!1)},Nc=(t,e,i)=>{let o=Up(e,i);e>0&&t.actions.internal.setVolume(o)};var bs=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var Cb=(t,e)=>{e(t)},Tb=L('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),Ib={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function zp(t,e){var Et,Rt;U(e,!0),K(t,Ib);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(ie,"$duration$",i),p=()=>S(ae,"$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(le,"$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(),V=Ut(),W=k.getLogger().createComponentLog("KeyboardControls component"),Y=k.state.playbackState$,F=k.ads.playbackState,Q=k.state.positionExact$,ie=k.state.duration$,Z=k.state.volume$,re=k.ui.controls.disabledControls$,le=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$,R=k.ui.contextMenu.position$,xe=k.state.isEnded$,_e=k.ui.overlayContainer$,ze=(Et=k.callbacks)==null?void 0:Et.onAudioDoesNotExistHint,H=(Rt=k.callbacks)==null?void 0:Rt.onAudioDisabledHint,ae=k.state.isAudioAvailable$,he=k.state.isAudioDisabled,ee=k.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:De}=oo(),je=0,we=!0,Ve=X(void 0),Ie=O=>(O!==we&&(we=O,je=0),je+=1,(V.controls.seekStepKeyboard+V.controls.seekStepKeyboard*je)/1e3),Ue=(O,be=!1)=>{var ni,yi;let oe=O.target,Re=(ni=oe==null?void 0:oe.getAttribute("role"))==null?void 0:ni.includes("menuitem"),Ke=oe.classList.contains("btn"),Ge=O.code;if(Ke&&Ge==="Space")return!1;let Le=Vg.has(Ge);if(Re&&Le)return!1;let ot=!Lg.has(Ge);if(O.ctrlKey&&ot||O.altKey&&ot||O.metaKey)return!1;let Ye=Re&&Ge==="Escape";Rg.has(Ge)||Ye||e.hideContextMenu();let gt=n()===Js.PLAYING||n()===Js.PAUSED,st=e.isAds&&(a()==="paused"||a()==="playing"),Xe=!st&&!s().has("TIMELINE");if(!(gt||st))return!1;W({message:`key down, code: ${Ge}, isExternal = ${be}`});let zt=!1,tt=()=>{zt=!0,be||O.preventDefault()};switch(Ge){case"KeyJ":case"ArrowLeft":{if(!Xe)break;if(O.ctrlKey||O.altKey){let Je=k.actions.internal.getPrevEpisode();k.actions.internal.seekToPrevEpisode(Je),Je&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:Je.text}),tt()}else{let Je=O.shiftKey?Ie(!1):V.controls.seekStepKeyboard/1e3,jt=Math.max(d()-Je,0);d()>0&&(k.actions.internal.seekTime(jt,Sn.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:Je.toString()}),tt())}break}case"KeyL":case"ArrowRight":{if(!Xe)break;if(O.ctrlKey||O.altKey){let Je=k.actions.internal.getNextEpisode();k.actions.internal.seekToNextEpisode(Je),Je&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:Je.text}),tt()}else{let Je=O.shiftKey?Ie(!0):V.controls.seekStepKeyboard/1e3,jt=Math.min(d()+Je,l());Math.round(d())<Math.round(l())&&(k.actions.internal.seekTime(jt,Sn.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:Je.toString()}),tt())}break}case"ArrowUp":{if(bs({isAudioDisabled:he,audioDisabledHintCallback:H,isAudioAvailable:p(),audioIsNotExistHintCallback:ze,isAds:e.isAds})){let Je=m(),jt=V.controls.volumeStepKeyboard,Mi=Je<=1;if(Bc(k,Je,jt),Mi){let Wi=Math.round(Fp(Je,jt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Wi}})}}tt();break}case"ArrowDown":{if(bs({isAudioDisabled:he,audioDisabledHintCallback:H,isAudioAvailable:p(),audioIsNotExistHintCallback:ze,isAds:e.isAds})){let Je=m(),jt=V.controls.volumeStepKeyboard,Mi=Je>=0;if(Nc(k,Je,jt),Mi){let Wi=Math.round(Up(Je,jt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Wi}})}}tt();break}case"Comma":{if(O.shiftKey){k.actions.internal.decrementPlaybackRate();let Je=y().find(jt=>jt.value===u());e.showHotKeyHelpers({type:"RATE_DOWN",text:Je==null?void 0:Je.displayValue}),tt()}else{if(st||n()!==Js.PAUSED)break;let Je=Math.max(d()-V.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),k.actions.internal.clearDelayedBufferingCheckTimeout(),k.actions.internal.seekTime(Je,Sn.DOUBLE_TAP),tt())}break}case"Period":{if(O.shiftKey){k.actions.internal.incrementPlaybackRate();let Je=y().find(jt=>jt.value===u());e.showHotKeyHelpers({type:"RATE_UP",text:Je==null?void 0:Je.displayValue}),tt()}else{if(st||n()!==Js.PAUSED)break;let Je=Math.min(d()+V.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),k.actions.internal.clearDelayedBufferingCheckTimeout(),k.actions.internal.seekTime(Je,Sn.DOUBLE_TAP),tt())}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 Je="PLAY";n()===Js.PAUSED?Je="PAUSE":b()&&(Je="REPLAY"),e.showHotKeyHelpers({type:Je})}tt();break;case"KeyM":{bs({isAudioDisabled:he,audioDisabledHintCallback:H,isAudioAvailable:p(),audioIsNotExistHintCallback:ze,isAds:e.isAds})&&(e.showHotKeyHelpers({type:C()?"VOLUME":"MUTE"}),k.actions.internal.toggleMuted()),tt();break}case"KeyF":e.toggleFullscreen(),tt();break;case"KeyC":k.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(yi=T())==null?void 0:yi.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),tt();break;case"KeyI":k.actions.internal.togglePictureInPicture(),tt();break;case"Digit1":case"Numpad1":if(O.shiftKey){let Je=Eh(I());R.set(Je),Ee.set(oe),se.set(!0),ne.set(!0),tt();break}e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.1,Sn.DOUBLE_TAP),tt();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.2,Sn.DOUBLE_TAP),tt();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.3,Sn.DOUBLE_TAP),tt();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.4,Sn.DOUBLE_TAP),tt();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.5,Sn.DOUBLE_TAP),tt();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.6,Sn.DOUBLE_TAP),tt();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.7,Sn.DOUBLE_TAP),tt();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.8,Sn.DOUBLE_TAP),tt();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.9,Sn.DOUBLE_TAP),tt();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(0,Sn.DOUBLE_TAP),tt();break;case"Slash":{O.shiftKey&&V.features.hotKeyMapModal&&(e.showKeyMap(),tt());break}case"KeyN":O.shiftKey&&M()&&(k.actions.internal.nextVideoClick(),tt());break;case"KeyP":O.shiftKey&&P()&&(k.actions.internal.prevVideoClick(),tt());break;case"ShiftLeft":case"ShiftRight":tt();break;case"Tab":case"Escape":case"Enter":break;default:Sb(Ge);break}return zt},dt=O=>{let be=O.code;if(O.ctrlKey||O.altKey||O.metaKey)return;let oe=n()===Js.PLAYING||n()===Js.PAUSED,Re=e.isAds&&(a()==="paused"||a()==="playing");if(oe||Re)switch(be){case"ShiftLeft":case"ShiftRight":je=0;break}},ct=q("aria_label_video_player"),it=()=>{var O;return(O=r(Ve))==null?void 0:O.focus()},Ct=O=>O.type==="keydown"?Ue(O,!0):(O.type==="keyup"&&dt(O),!1);var vt=Tb();vt.__keyup=dt,vt.__keydown=[Cb,Ue],Be(vt,"aria-label",ct);var Wt=h(vt);ve(Wt,()=>{var O;return(O=e.children)!=null?O:te}),g(vt),mt(vt,O=>D(Ve,O),()=>r(Ve)),_(t,vt);var ti=z({focus:it,handleExternalKeyboardEvent:Ct});return o(),ti}rt(["keyup","keydown"]);var kb=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>'),Eb={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.`},lh=t_;var es=new Map;es.set(ch.EN,lh)
|
|
|
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 ea(t,e){K(t,Eb);let i=f(e,"style",3,"");var o=kb();E(()=>nt(o,i())),_(t,o)}var Pb=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 qp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Pb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$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)}import{noop as ja}from"@vkontakte/videoplayer-shared/es2018";var Ab=t=>{t.stopPropagation()},Mb=L("<button><!></button>"),Lb={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.`},lh=t_;var es=new Map;es.set(ch.EN,lh)
|
|
|
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 Vt(t,e){U(e,!0),K(t,Lb);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,ja),$=f(e,"focus",3,ja),w=f(e,"blur",3,ja),b=v(()=>u()===ja?null:P=>{P.stopPropagation(),u()(P)}),C=v(()=>$()===ja?null:P=>{P.preventDefault(),$()()}),T=v(()=>w()===ja?null:P=>{P.preventDefault(),w()()});var I=Mb();I.__pointerdown=[Ab],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:te}),g(I),mt(I,P=>l(P),()=>l()),E(()=>{var P,k,V,W,Y,F,Q;J(I,1,`btn ${(P=i())!=null?P:""}`,"svelte-wr0kwr"),nt(I,o()||null),I.disabled=(k=n())!=null?k:null,Be(I,"aria-hidden",(V=s())!=null?V: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)}),St("focus",I,function(...P){var k;(k=r(C))==null||k.apply(this,P)}),St("blur",I,function(...P){var k;(k=r(T))==null||k.apply(this,P)}),_(t,I),z()}rt(["pointerdown","click"]);var Vb=L('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),Rb=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>'),Bb={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 Wp(t,e){U(e,!0),K(t,Bb);let i=f(e,"showHeader",3,!0),o=f(e,"showCloseCross",3,!0),n=q("hotkey_map_modal_close_btn_text");var a=Rb(),s=h(a),d=h(s);{var l=u=>{var $=Vb(),w=h($),b=h(w,!0);g(w);var C=A(w,2);{var T=I=>{Vt(I,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:n,children:(M,P)=>{qp(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:te}),g(m),g(p),g(s),g(a),_(t,a),z()}var Nb=new Set(["BR"]),Mh=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;Nb.has(s)||(n=a.parentElement)==null||n.removeChild(a)}return e.innerHTML};var Db=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>'),Ob=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>'),Hb=L('<div class="hot-key-map svelte-quklnq"></div>'),Fb={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 Wp(t,e){U(e,!1),W(t,Hb);let[i,o]=Re(),n=()=>S(s,"$data",i),a=Te(),{data:s,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};br(),qp(t,{get title(){return n().title},onClose:l,children:(p,m)=>{var b=Ob();Ii(b,5,()=>n().groups,({title:u,items:_})=>u,(u,_)=>{let w=()=>r(_).title,y=()=>r(_).items;var C=Db(),T=h(C),k=h(T,!0);g(T);var P=M(T,2);Ii(P,5,y,({description:A,value:I})=>I,(A,I)=>{let V=()=>r(I).description,q=()=>r(I).value;var Q=Bb(),H=h(Q),Y=h(H);kl(Y,()=>Ah(V()),!1,!1),g(H);var ne=M(H,2),Z=h(ne,!0);g(ne),g(Q),E(()=>ve(Z,q())),$(A,Q)}),g(P),g(C),E(()=>ve(k,w())),$(u,C)}),g(b),$(p,b)},$$slots:{default:!0}}),z(),o()}import{noop as e1}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as Yh,PlaybackState as Af}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-shared/es2018";var Fb=L('<div class="pillow svelte-1oe0j8n"><!></div>'),Ub={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 Kp(t,e){W(t,Ub);var i=Fb(),o=h(i);ge(o,()=>{var n;return(n=e.children)!=null?n:ie}),g(i),$(t,i)}import{VideoQuality as Yl}from"@vkontakte/videoplayer-shared/es2018";var zb=xe('<svg><!><path fill="currentColor" d="M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"></path><path fill="currentColor" fill-rule="evenodd" d="m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z" clip-rule="evenodd"></path></svg>');function Qp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=zb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),$(t,o)}var qb=xe('<svg><!><path fill="currentColor" d="M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"></path><path fill="currentColor" fill-rule="evenodd" d="M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524" clip-rule="evenodd"></path></svg>');function Gp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=qb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),$(t,o)}var Wb=xe('<svg><!><path fill="currentColor" d="M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"></path></svg>');function jp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Wb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),$(t,o)}var Kb=xe('<svg><!><path fill="currentColor" d="M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"></path></svg>');function Gl(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Kb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i})),$(t,o)}var Qb=xe('<svg><!><path fill="currentColor" d="M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"></path><path fill="currentColor" fill-rule="evenodd" d="M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02" clip-rule="evenodd"></path></svg>');function jl(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Qb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i})),$(t,o)}var Dc=t=>{switch(t){case Yl.Q_720P:return jp;case Yl.Q_1080P:return Gl;case Yl.Q_1440P:return jl;case Yl.Q_2160P:return Qp;case Yl.Q_4320P:return Gp}};var Gb=xe('<svg><!><path fill="var(--btn-color, #fff)" d="M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"></path></svg>');function Yp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Gb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(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 jb=xe('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5" class="_full"></path></svg>');function Zp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=jb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(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 Yb=L('<div aria-hidden="true"><!> <!></div>'),Zb={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 Zl(t,e){U(e,!0),W(t,Zb);let i=f(e,"isMobile",3,!1),o=f(e,"currentQuality",3,void 0),n=v(()=>Dc(o())),a=v(()=>!!r(n)&&[Gl,jl].includes(r(n)));var s=De(),d=pe(s);{var l=m=>{Yp(m,{})},p=m=>{var b=Yb();let u;var _=h(b);{var w=T=>{Kp(T,{children:(k,P)=>{var A=De(),I=pe(A);ki(I,()=>r(n),(V,q)=>{q(V,{})}),$(k,A)},$$slots:{default:!0}})};R(_,T=>{r(n)&&T(w)})}var y=M(_,2);let C=v(()=>r(n)?"settings-icon--labeled":"settings-icon");Zp(y,{get"data-testid"(){return r(C)},fill:"var(--btn-color, #fff)"}),g(b),E(T=>u=J(b,1,"icon svelte-8t5w85",null,u,T),[()=>({triple:r(a)})]),$(m,b)};R(d,m=>{i()?m(l):m(p,!1)})}$(t,s),z()}var Xb=L('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),Jb={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function Xa(t,e){U(e,!0),W(t,Jb);let[i,o]=Re(),n=()=>S(e.ref$,"$ref$",i),a=()=>S(m,"$settingsMenuVisible",i),s=()=>S(_,"$isMobile",i),d=()=>S(p,"$currentQuality",i),l=Te(),p=l.state.currentQuality$,m=l.ui.settingsMenu.visible$,b=l.actions.internal.openSettingsMenu,u=l.actions.internal.closeSettingsMenu,_=l.ui.isMobile,w=l.ui.t,y=X(void 0);He(()=>{n()&&yt(()=>{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():b(A,go)}let k=v(()=>a()?"opened":"");Lt(t,{get className(){return r(k)},testId:"btn-settings",click:T,get ariaLabel(){return r(C)},get ariaExpanded(){return a()},get ref(){return r(y)},set ref(P){D(y,fe(P))},children:(P,A)=>{var I=Xb(),V=h(I);Zl(V,{get isMobile(){return s()},get currentQuality(){return d()}}),g(I),$(P,I)},$$slots:{default:!0}}),z(),o()}var e$=xe('<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 Xp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=e$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(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 t$=xe('<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 Xl(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=t$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(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 Jp(t,e){U(e,!0);let i=f(e,"isSubtitlesEnabled",3,!1),n=Te().ui.t,a=v(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Lt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(a)},get click(){return e.click},get ariaKeyShortCut(){return Dr.KeyC},children:(s,d)=>{var l=De(),p=pe(l);{var m=u=>{Xp(u,{})},b=u=>{Xl(u,{})};R(p,u=>{i()?u(m):u(b,!1)})}$(s,l)},$$slots:{default:!0}}),z()}var i$=L('<span class="duration svelte-sz9er7"> </span>'),o$=L('<div><span class="current svelte-sz9er7"> </span> <!></div>'),n$={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 Jl(t,e){U(e,!0),W(t,n$);let i=f(e,"isMobile",3,!1),o=f(e,"showDuration",3,!0),n=f(e,"ref",15),a=v(()=>Jo(e.duration)),s=v(()=>Jo(e.position));var d=o$();let l;var p=h(d),m=h(p,!0);g(p);var b=M(p,2);{var u=_=>{var w=i$(),y=h(w,!0);g(w),E(()=>ve(y,r(a))),$(_,w)};R(b,_=>{o()&&_(u)})}g(d),pt(d,_=>n(_),()=>n()),E(_=>{l=J(d,1,"time svelte-sz9er7",null,l,_),ve(m,r(s))},[()=>({mobile:i()})]),$(t,d),z()}import{noop as Oc}from"@vkontakte/videoplayer-shared/es2018";var r$=xe('<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>'),s$={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 Kp(t,e){U(e,!1),K(t,Fb);let[i,o]=Ne(),n=()=>S(s,"$data",i),a=Ce(),{data:s,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};yr(),Wp(t,{get title(){return n().title},onClose:l,children:(p,m)=>{var y=Hb();Ci(y,5,()=>n().groups,({title:u,items:$})=>u,(u,$)=>{let w=()=>r($).title,b=()=>r($).items;var C=Ob(),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 V=()=>r(k).description,W=()=>r(k).value;var Y=Db(),F=h(Y),Q=h(F);kl(Q,()=>Mh(V()),!1,!1),g(F);var ie=A(F,2),Z=h(ie,!0);g(ie),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()}import{noop as t1}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as Zh,PlaybackState as Mf}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-shared/es2018";var Ub=L('<div class="pillow svelte-1oe0j8n"><!></div>'),zb={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 Qp(t,e){K(t,zb);var i=Ub(),o=h(i);ve(o,()=>{var n;return(n=e.children)!=null?n:te}),g(i),_(t,i)}import{VideoQuality as jl}from"@vkontakte/videoplayer-shared/es2018";var qb=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 Gp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=qb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$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 Wb=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 Yp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Wb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$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 Kb=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 jp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Kb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$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 Qb=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 Gl(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Qb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$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 Gb=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 Yl(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Gb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$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 Dc=t=>{switch(t){case jl.Q_720P:return jp;case jl.Q_1080P:return Gl;case jl.Q_1440P:return Yl;case jl.Q_2160P:return Gp;case jl.Q_4320P:return Yp}};var Yb=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 Zp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Yb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$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 jb=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 Xp(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:te}),$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 Zb=L('<div aria-hidden="true"><!> <!></div>'),Xb={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 Zl(t,e){U(e,!0),K(t,Xb);let i=f(e,"isMobile",3,!1),o=f(e,"currentQuality",3,void 0),n=v(()=>Dc(o())),a=v(()=>!!r(n)&&[Gl,Yl].includes(r(n)));var s=Oe(),d=ue(s);{var l=m=>{Zp(m,{})},p=m=>{var y=Zb();let u;var $=h(y);{var w=T=>{Qp(T,{children:(I,M)=>{var P=Oe(),k=ue(P);Ti(k,()=>r(n),(V,W)=>{W(V,{})}),_(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");Xp(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 Jb=L('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),e$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function Za(t,e){U(e,!0),K(t,e$);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()&&yt(()=>{e.ref$.set(r(b))})});let C=w("aria_label_settings");async function T(M){let P=_s(M);a()?u():y(P,_o)}let I=v(()=>a()?"opened":"");Vt(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=Jb(),V=h(k);Zl(V,{get isMobile(){return s()},get currentQuality(){return d()}}),g(k),_(M,k)},$$slots:{default:!0}}),z(),o()}var t$=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 Jp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=t$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$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 i$=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 Xl(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=i$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$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 ef(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"));Vt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(a)},get click(){return e.click},get ariaKeyShortCut(){return Nr.KeyC},children:(s,d)=>{var l=Oe(),p=ue(l);{var m=u=>{Jp(u,{})},y=u=>{Xl(u,{})};B(p,u=>{i()?u(m):u(y,!1)})}_(s,l)},$$slots:{default:!0}}),z()}var o$=L('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),n$=L('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),r$={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 Jl(t,e){U(e,!0),K(t,r$);let i=f(e,"isMobile",3,!1),o=f(e,"showDuration",3,!0),n=f(e,"ref",15),a=v(()=>an(e.duration)),s=v(()=>an(e.position));var d=n$();let l;var p=h(d),m=h(p,!0);g(p);var y=A(p,2);{var u=$=>{var w=o$(),b=h(w,!0);g(w),E(()=>me(b,r(a))),_($,w)};B(y,$=>{o()&&$(u)})}g(d),mt(d,$=>n($),()=>n()),E($=>{l=J(d,1,"time svelte-sz9er7",null,l,$),me(m,r(s))},[()=>({mobile:i()})]),_(t,d),z()}import{noop as Oc}from"@vkontakte/videoplayer-shared/es2018";var s$=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>'),a$={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
|
|
169
|
+
.icon[data-value='min'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}`};function $s(t,e){K(t,a$);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=s$();E(()=>{var d;Be(s,"data-value",r(a)),Be(s,"data-testid",`volume-${(d=r(a))!=null?d:""}-icon`)}),_(t,s)}import{isNonNullable as Vh,noop as On}from"@vkontakte/videoplayer-shared/es2018";import{noop as of}from"@vkontakte/videoplayer-shared/es2018";import{noop as d$}from"@vkontakte/videoplayer-shared/es2018";var l$=L('<div class="overlay"><!></div>');function tf(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())}),Ft(()=>(p(n()),()=>l(n())));var m=l$(),y=h(m);ve(y,()=>{var u;return(u=e.children)!=null?u:te}),g(m),mt(m,u=>D(d,u),()=>r(d)),_(t,m),z(),o()}var c$=L('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),u$=L("<div><!></div> <!>",1),p$={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 ta(t,e){U(e,!0),K(t,p$);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,d$),b=5,C=X(void 0),T=X(void 0),I,M=X(0),P=X(0),k=X(0),V=X(0),W=Ut(),Y=Ce(),F=Y.ui.playerSize,Q=Y.ui.overlayContainer$;Fe(()=>{yt(()=>{w()(l())})});let ie=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,dt=a().width,ct=(Ie-Ue)/2,it=Ve.left+p()-we.left,Ct=it+ct,vt=Ve.top+m()-we.top,Wt=Ue/2-b,ti=Ct<8,Et=Ct+Ue>dt-8;ti&&(Ct=8,Wt=it+Ve.width/2-2.5*b),Et&&(Ct=dt-8-Ue,Wt=Ve.left-we.left+Ve.width/2-Ct-b),D(k,pe(Ct)),D(V,vt),D(M,pe(Wt))},re=()=>{!n()||!r(T)||!r(C)||D(P,-b)},le=()=>{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,dt=(Ie-Ue)/2+Ue,ct=Ve.left+p()-we.left-r(T).clientWidth,it=2,Ct=ct-b;Ct<8&&(Ct=8);let Wt=Ve.top+m()-we.top+dt,ti=it-dt/2,Et=it-b;D(k,pe(Ct)),D(V,Wt),D(P,ti),D(M,Et)},Ae=()=>{!n()||!r(T)||!r(C)||D(M,-b)},Me=()=>{switch($()){case"top":Z();break;case"bottom":re();break;case"left":le();break;default:Ae()}},ge=()=>{try{if(!n()||!r(C))return;Me(),l(!0)}catch(we){ie({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},R=(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(()=>R(r(k),r(V),l())),ze=v(()=>xe(r(M),r(P)));Ft(Me),wn(()=>window.clearTimeout(I));var H=u$(),ae=ue(H);let he;ae.__mousemove=Ee,ae.__mousedown=ne,ae.__mouseup=Ee;var ee=h(ae);ve(ee,()=>{var we;return(we=e.children)!=null?we:te}),g(ae),mt(ae,we=>D(C,we),()=>r(C));var De=A(ae,2);{var je=we=>{tf(we,{children:(Ve,Ie)=>{var Ue=c$(),dt=h(Ue),ct=h(dt,!0);g(dt);var it=A(dt,2);g(Ue),mt(Ue,Ct=>D(T,Ct),()=>r(T)),E(()=>{nt(Ue,r(_e)),me(ct,d()),nt(it,r(ze))}),_(Ve,Ue)},$$slots:{default:!0}})};B(De,we=>{d()&&!s()&&we(je)})}E(we=>he=J(ae,1,"tooltip-wrapper svelte-hxlyne",null,he,we),[()=>({"full-width":y()})]),St("mouseenter",ae,Ee),St("mouseleave",ae,ne),_(t,H),z(),o()}rt(["mousemove","mousedown","mouseup"]);var Lh=t=>{t.stopPropagation()},f$=L("<div><!></div>"),m$={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 ko(t,e){U(e,!0),K(t,m$);let[i,o]=Ne(),n=()=>S(p,"$isGraphOpened$",i),a=()=>S(l,"$isMobile",i),s=Ce(),d=oo(),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),V=f(e,"onTooltipVisibilityChange",3,of),W=f(e,"initialTranslateXPx",3,0),Y=f(e,"initialTranslateYPx",19,()=>-18),F=f(e,"mouseEnter",3,of),Q=f(e,"mouseLeave",3,of),ie=v(()=>u()?n()?m("tooltip_disabled_when_graph_on"):P():T());var Z=f$();Z.__pointerdown=[Lh],Z.__click=[Lh];var re=h(Z);{var le=Me=>{ta(Me,{get content(){return r(ie)},get translateX(){return W()},get translateY(){return Y()},get isFullWidthWrapper(){return C()},get active(){return I()},get placement(){return M()},get onVisibilityChange(){return V()},children:(ge,se)=>{var Ee=Oe(),ne=ue(Ee);ve(ne,()=>{var R;return(R=e.children)!=null?R:te}),_(ge,Ee)},$$slots:{default:!0}})},Ae=Me=>{var ge=Oe(),se=ue(ge);ve(se,()=>{var Ee;return(Ee=e.children)!=null?Ee:te}),_(Me,ge)};B(re,Me=>{$()&&r(ie)&&!a()?Me(le):Me(Ae,!1)})}g(Z),mt(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)}),St("mouseenter",Z,function(...Me){var ge;(ge=F())==null||ge.apply(this,Me)}),St("mouseleave",Z,function(...Me){var ge;(ge=Q())==null||ge.apply(this,Me)}),Br(Z,"clientWidth",b),_(t,Z),z(),o()}rt(["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 ed(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 g$=L("<div><!></div>"),h$={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 nf(t,e){U(e,!0),K(t,h$);let o=Ce().ui.t,n=X(0),a=v(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));ko(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=g$();let p;var m=h(l);let y=v(()=>!!e.videoEpisode.completed);ed(m,{get completed(){return r(y)}}),g(l),E(u=>{p=J(l,1,"interactive-episode-icon svelte-bklhpe",null,p,u),nt(l,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Br(l,"clientWidth",u=>D(n,u)),_(s,l)},$$slots:{default:!0}}),z()}var _$=L('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),b$=L('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),$$={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 rf(t,e){K(t,$$);let i=f(e,"videoEpisodes",19,()=>[]);var o=b$();Ci(o,21,i,n=>n.from,(n,a)=>{var s=_$();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),nt(s,`left: ${r(a).from}%; width: ${r(a).width}%`),nt(p,`transform: translateX(${r(a).loadedWidth/r(a).width*100}%)`),y=J(m,1,"video-episode-filled svelte-1u6kv8l",null,y,$),nt(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 y$(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 x$(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 w$(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 S$(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}var C$=L("<div></div>"),T$=L('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),I$=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),k$={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
|
|
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 ia(t,e){U(e,!0),K(t,k$);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,On),C=f(e,"onHandleMove",3,On),T=f(e,"onPointerUp",3,On),I=f(e,"onPointerEnter",3,On),M=f(e,"onPointerMove",3,On),P=f(e,"onPointerLeave",3,On),k=f(e,"onMouseEnter",3,On),V=f(e,"onMouseLeave",3,On),W=f(e,"onWheelUp",3,On),Y=f(e,"onWheelDown",3,On),F=f(e,"onWheelLeft",3,On),Q=f(e,"onWheelRight",3,On),ie=f(e,"onDisabledClick",3,On),Z=f(e,"loadedProgress",3,0),re=f(e,"filledProgress",3,0),le=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=Ut(),R=X(void 0),xe=X(!1),_e=v(()=>{var oe;return(oe=ge())!=null?oe:0}),ze=v(()=>{var oe;return Vh(m())&&((oe=m()[m().length-1])==null?void 0:oe.time)<r(_e)}),H=v(()=>Vh(m())&&m().length&&r(ze)&&r(_e)?Ie(Z()*100,re()*100):[]);function ae(oe){if(oe.preventDefault(),i()&&D(R,pe(i().getBoundingClientRect())),$())return;let Re=we(oe.clientX,oe.clientY),Ke=Ve(oe.clientX);I()(Re,Ke,r(R).width)}function he(oe){oe.preventDefault(),!$()&&P()()}function ee(){k()()}function De(){V()()}function je(oe){$()||y()&&(oe.preventDefault(),oe.deltaY<0?W()():oe.deltaY>0?Y()():oe.deltaX>0?Q()():F()())}function we(oe,Re){return s()?Math.max(0,Math.min(1,(r(R).height-(Re-r(R).top))/r(R).height)):Math.min(Math.max(oe-r(R).x,0),r(R).width)/r(R).width}function Ve(oe){return Math.min(Math.max(oe-r(R).x,0),r(R).width)}function Ie(oe,Re){let Ke=ne.features.episodesClustering&&!u()?ne.episodeMinWidthPc:0,Ge=[],Le=m()[0].time/r(_e)*100,ot=0,Ye=0;for(let Xe=1;Xe<m().length;Xe++)ot=m()[Xe].time/r(_e)*100,ot-Le>Ke&&(Ge.push({from:Le,width:Math.max(0,ot-Le),loadedWidth:Math.max(0,Math.min(ot,oe)-Le),filledWidth:Math.max(0,Math.min(ot,Re)-Le),interactive:m()[Xe-1].interactive,completed:m()[Xe-1].completed}),Le=m()[Xe].time/r(_e)*100,Ye++);let gt={from:Le,width:Math.max(0,100-Le),loadedWidth:Math.max(0,Math.min(oe,100)-Le),filledWidth:Math.max(0,Math.min(Re,100)-Le),interactive:m()[Ye].interactive,completed:m()[Ye].completed};100-Le<Ke?(Ye-=1,Ge[Ye].width+=100-Le,Ge[Ye].loadedWidth+=Math.max(0,Math.min(oe,100)-Le),Ge[Ye].filledWidth+=Math.max(0,Math.min(Re,100)-Le)):Ge[Ye]=gt;let st=m()[0].time;if(st!==0){let Xe=st/r(_e)*100;Ge.unshift({from:0,width:Xe,loadedWidth:Math.min(Xe,oe),filledWidth:Math.min(Xe,Re)})}return Ge}var Ue=I$(),dt=ue(Ue);{var ct=oe=>{var Re=C$();let Ke;Ci(Re,21,()=>r(H),Ge=>Ge.from,(Ge,Le)=>{var ot=Oe(),Ye=ue(ot);{var gt=st=>{nf(st,{get videoEpisode(){return r(Le)},get disabled(){return $()}})};B(Ye,st=>{r(Le).interactive&&st(gt)})}_(Ge,ot)}),g(Re),E(Ge=>Ke=J(Re,1,"interactive-icons svelte-1tpemng",null,Ke,Ge),[()=>({mobile:l(),hidden:l()&&!r(xe)})]),_(oe,Re)};B(dt,oe=>{u()&&oe(ct)})}var it=A(dt,2);let Ct;it.__pointerdown=[y$,i,R,$,xe,we,b],it.__pointermove=[x$,$,we,Ve,M,R,xe,C],it.__pointerup=[w$,$,xe,we,T],it.__click=[S$,$,ie,we];var vt=h(it);{var Wt=oe=>{rf(oe,{get videoEpisodes(){return r(H)},get disabled(){return $()},get isMobile(){return l()}})},ti=oe=>{var Re=T$(),Ke=h(Re),Ge=A(Ke,2);let Le;g(Re),E(ot=>{nt(Ke,`transform: translateX(${Z()*100}%);`),Le=J(Ge,1,"filled svelte-1tpemng",null,Le,ot),nt(Ge,`transform: translateX(${re()*100}%);`)},[()=>({"active-live":d()})]),_(oe,Re)};B(vt,oe=>{r(H).length?oe(Wt):oe(ti,!1)})}var Et=A(vt,2);let Rt;var O=h(Et);let be;g(Et),g(it),mt(it,oe=>i(oe),()=>i()),E((oe,Re,Ke)=>{var Ge,Le;Ct=J(it,1,`slider ${(Ge=o())!=null?Ge:""}`,"svelte-1tpemng",Ct,oe),Be(it,"aria-label",Ae()),Be(it,"aria-valuemin",Me()),Be(it,"aria-valuemax",ge()),Be(it,"aria-valuenow",se()),Be(it,"aria-valuetext",Ee()),Be(it,"data-testid",(Le=n())!=null?Le:null),Rt=J(Et,1,"handleWrap svelte-1tpemng",null,Rt,Re),nt(Et,`transform: translateX(${le()*100}%);`),be=J(O,1,"handle svelte-1tpemng",null,be,Ke)},[()=>({disabled:$(),"slider-dragging":r(xe),hidden:a(),"slider-vertical":s(),"no-handle":w(),square:p()}),()=>({hidden:w()}),()=>({"active-live":d()})]),St("pointerenter",it,ae),St("pointerleave",it,he),St("mouseenter",it,ee),St("mouseleave",it,De),St("wheel",it,je),_(t,Ue),z()}rt(["pointerdown","pointermove","pointerup","click"]);var qi=(t,e)=>Ws[t]>=Ws[e],Rh=(t,e)=>Ws[t]<Ws[e],ys=(t,e)=>Ws[t]<=Ws[e],Bh=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var E$=L("<div><!></div>"),P$=L("<div><!> <!></div>"),A$={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 sf(t,e){var we,Ve;U(e,!0),K(t,A$);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=Ut(),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),V,W=v(()=>e.isAds||n()),Y=v(()=>!r(W)||a()||s()===0),F=v(()=>ys(d(),"s")),Q=v(()=>r(F)?"":r(Y)?!n()||M?P("tooltip_sound_unavailable"):P("tooltip_volume_on"):P("tooltip_volume_muted")),ie=P("aria_label_volume"),Z=v(()=>r(Y)?0:s()),re=!1,le=v(()=>e.isAds?!1:M?!T:n()?!1:!C);function Ae(Ie){$(),u(Ie)}function Me(){Bc(l,s(),p.controls.volumeStepWheel)}function ge(){Nc(l,s(),p.controls.volumeStepWheel)}function se(Ie){u(Ie)}function Ee(Ie){u(Ie),w()}function ne(){re=!0}function R(){re=!1,ze()}function xe(){clearTimeout(V),D(k,!0)}function _e(){ze()}function ze(){V=window.setTimeout(()=>{re||D(k,!1)},p.controls.volumeBarTimeout)}function H(Ie){Ie.preventDefault(),Ie.deltaY<0?Me():Ie.deltaY>0&&ge()}var ae=P$();let he;var ee=h(ae);ta(ee,{get content(){return r(Q)},translateY:-18,children:(Ie,Ue)=>{let dt=v(()=>r(F)?"btn-volume-vertical":"btn-volume-horizontal");Vt(Ie,{className:"btn-full-opacity",get disabled(){return r(le)},get testId(){return r(dt)},ariaLabel:ie,get click(){return e.click},get ariaKeyShortCut(){return Nr.KeyM},role:"switch",children:(ct,it)=>{$s(ct,{get volume(){return s()},get muted(){return r(Y)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var De=A(ee,2);{var je=Ie=>{var Ue=E$();let dt;var ct=h(Ue);let it=v(()=>r(F)?"volumeBar-slider-vertical":""),Ct=v(()=>r(F)&&!r(k)),vt=v(()=>r(F)?ne:Oc),Wt=v(()=>r(F)?R:Oc),ti=v(()=>Math.round(r(Z)*100)),Et=v(()=>`${Math.round(r(Z)*100)}%`),Rt=v(()=>r(F)?"volume-slider-vertical":"volume-slider");ia(ct,{get className(){return r(it)},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(vt)},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(Et)},get filledProgress(){return r(Z)},get handleProgress(){return r(Z)},get testId(){return r(Rt)}}),g(Ue),E(O=>dt=J(Ue,1,"volumeBar svelte-1auih1j",null,dt,O),[()=>({"volumeBar-vertical":r(F)})]),_(Ie,Ue)};B(De,Ie=>{r(W)&&Ie(je)})}g(ae),E(Ie=>he=J(ae,1,"volumeBar-container svelte-1auih1j",null,he,Ie),[()=>({vertical:r(F)})]),St("mouseenter",ae,function(...Ie){var Ue;(Ue=r(F)?xe:Oc)==null||Ue.apply(this,Ie)}),St("mouseleave",ae,function(...Ie){var Ue;(Ue=r(F)?_e:Oc)==null||Ue.apply(this,Ie)}),St("wheel",ae,H),_(t,ae),z(),o()}import{noop as V$}from"@vkontakte/videoplayer-shared/es2018";var M$=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 af(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:te}),$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 L$={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
|
|
177
|
+
svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function lf(t,e){K(t,L$);let i=f(e,"isFullscreen",8,!1),o=_r(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");af(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function td(t,e){U(e,!0);let i=f(e,"isFullscreen",3,!1),o=f(e,"click",3,V$),n=Ce(),a=n.ui.isFullscreenOpenedByKeyboard,s=n.ui.t,d=v(()=>i()?s("tooltip_fullscreen_on"):s("tooltip_fullscreen_off"));Vt(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:p=>{let m=_s(p);a.set(m),o()()},get ariaKeyShortCut(){return Nr.KeyF},children:(p,m)=>{lf(p,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),z()}var R$=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 df(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=R$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$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 B$=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 cf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=B$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$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 N$={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 cf(t,e){W(t,N$);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`);df(t,{get width(){return r(s)},height:"24",get viewBox(){return r(l)},get"data-testid"(){return r(d)}})}function id(t,e){U(e,!0);let[i,o]=Re(),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=qt(),b=Te(),u=b.ui.currentGridType$,_=b.ui.isMobile,w=b.ui.t,y=b.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"),k=v(()=>(n()||xs(a(),"l"))&&r(T)),P=()=>{var V,q;e.click(),(V=b.callbacks)!=null&&V.onLogoClicked?(q=b.callbacks)==null||q.onLogoClicked():p()&&window.open(p(),"_blank")},A=v(()=>!l()),I=v(()=>r(T)?"btn-vk-video-logo":"btn-vk-logo");Lt(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,q)=>{var Q=De(),H=pe(Q);{var Y=Z=>{cf(Z,{get short(){return r(k)},get isCyrillic(){return s()}})},ne=Z=>{lf(Z,{})};R(H,Z=>{r(T)?Z(Y):Z(ne,!1)})}$(V,Q)},$$slots:{default:!0}}),z(),o()}import{ChromecastState as F$}from"@vkontakte/videoplayer-core/es2018";import{ChromecastState as Nh}from"@vkontakte/videoplayer-core/es2018";var D$=xe('<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-mobile-icon" class="svelte-8z1bf5"><g filter="url(#b)" clip-path="url(#a)" class="svelte-8z1bf5"><mask id="c" maskUnits="userSpaceOnUse" x="1.1" y="3.1" width="22" height="18" fill="#000" class="svelte-8z1bf5"><path d="M1.1 3.1h22v18h-22z" class="svelte-8z1bf5"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path></mask><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path><path d="m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z" fill="#000" fill-opacity=".12" mask="url(#c)" class="svelte-8z1bf5"></path></g><defs class="svelte-8z1bf5"><clipPath id="a" class="svelte-8z1bf5"><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path></clipPath><filter id="b" x="-3.4" y="-1.4" width="30.8" height="26.802" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" class="svelte-8z1bf5"><feFlood flood-opacity="0" result="BackgroundImageFix" class="svelte-8z1bf5"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" class="svelte-8z1bf5"></feColorMatrix><feOffset class="svelte-8z1bf5"></feOffset><feGaussianBlur stdDeviation="2.5" class="svelte-8z1bf5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0" class="svelte-8z1bf5"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_4085_178456" class="svelte-8z1bf5"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_4085_178456" result="shape" class="svelte-8z1bf5"></feBlend></filter></defs></svg>'),O$=xe('<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-icon"><g fill="none" fill-rule="evenodd" class="svelte-8z1bf5"><path class="wave wave1 svelte-8z1bf5" d="M1 18v3h3c0-1.66-1.34-3-3-3z" fill="var(--btn-color, #fff)"></path><path class="wave wave2 svelte-8z1bf5" d="M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z" fill="var(--btn-color, #fff)"></path><path class="wave wave3 svelte-8z1bf5" d="M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z" fill="var(--btn-color, #fff)"></path><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)" class="svelte-8z1bf5"></path><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z" fill="var(--btn-color, #fff)"></path></g></svg>'),H$={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 uf(t,e){K(t,N$);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`);cf(t,{get width(){return r(s)},height:"24",get viewBox(){return r(l)},get"data-testid"(){return r(d)}})}function id(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=Ut(),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()||ys(a(),"l"))&&r(T)),M=()=>{var V,W;e.click(),(V=y.callbacks)!=null&&V.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");Vt(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(V){d(V)},children:(V,W)=>{var Y=Oe(),F=ue(Y);{var Q=Z=>{uf(Z,{get short(){return r(I)},get isCyrillic(){return s()}})},ie=Z=>{df(Z,{})};B(F,Z=>{r(T)?Z(Q):Z(ie,!1)})}_(V,Y)},$$slots:{default:!0}}),z(),o()}import{ChromecastState as U$}from"@vkontakte/videoplayer-core/es2018";import{ChromecastState as Nh}from"@vkontakte/videoplayer-core/es2018";var O$=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>'),H$=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>'),F$={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.`},lh=t_;var es=new Map;es.set(ch.EN,lh)
|
|
|
225
225
|
100% {
|
|
226
226
|
opacity: 1;
|
|
227
227
|
}
|
|
228
|
-
}`};function
|
|
229
|
-
transform: rotate(${n()}deg) ${r(
|
|
230
|
-
`)),$(me,j)};R(Me,me=>{r(k)&&me(oe)})}var B=M(Me,2),be=h(B);{var le=me=>{var j=De(),te=pe(j);{var Oe=$e=>{var we=Nr();E(Ve=>ve(we,Ve),[()=>F("tooltip_episode_unfinished")]),$($e,we)},Ge=$e=>{var we=Nr();E(()=>ve(we,r(q).text||"")),$($e,we)};R(te,$e=>{u()&&r(q).completed===!1?$e(Oe):$e(Ge,!1)})}$(me,j)};R(be,me=>{r(q)&&me(le)})}g(B);var We=M(B,2);{var ee=me=>{var j=K$(),te=h(j,!0);g(j),E(()=>ve(te,d())),$(me,j)};R(We,me=>{u()||me(ee)})}g(he),E(me=>{se=J(he,1,"timeline-preview svelte-1wqg760",null,se,me),nt(he,`width: ${r(Q)?r(T):r(C)}px;`)},[()=>({mobile:l()})]),$(t,he),z(),o()}var j$=L('<span class="time svelte-1jr6obn"> </span>'),Y$=L("<!> <!>",1),Z$={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 mf(t,e){var Qe,ut,Ye,et,tt;U(e,!0),W(t,Z$);let[i,o]=Re(),n=()=>S(ne,"$interactiveEpisodes$",i),a=()=>S(I,"$duration$",i),s=()=>S(A,"$position$",i),d=()=>S(ce,"$isInteractiveExpectation$",i),l=()=>S(de,"$isInteractiveTime$",i),p=()=>S(V,"$isLive$",i),m=()=>S(Q,"$isMobile",i),b=()=>S(q,"$isActiveLive$",i),u=()=>S(P,"$bufferedProgress$",i),_=()=>S(he,"$disabledControls$",i),w=f(e,"showTimeline",3,!1),y=f(e,"withEpisodes",3,!0),C=f(e,"ref",15,void 0),T=Te(),k=qt(),P=T.state.bufferedProgress$,A=T.state.positionWithScrubbing$,I=T.state.duration$,V=T.state.isLive$,q=T.state.isActiveLive$,Q=T.ui.isMobile,H=k.features.episodes&&y()?T.actions.internal.getVideoEpisodes():void 0,Y=T.actions.internal.getPreviewThumbsData(),ne=T.state.interactiveEpisodes$,Z=T.state.isInteractive,de=T.state.isInteractiveTime$,ce=T.state.isInteractiveExpectation$,Le=T.actions.internal.correctSeekTimeToInteractive,Ae=(Qe=T.callbacks)==null?void 0:Qe.onDisabledTimelineClick,he=T.ui.controls.disabledControls$,se=(Ye=(ut=T.callbacks)==null?void 0:ut.uiInfo)==null?void 0:Ye.onTimelineMouseEnter,Me=(tt=(et=T.callbacks)==null?void 0:et.uiInfo)==null?void 0:tt.onTimelineMouseLeave,oe=T.ui.t,B=k.features.interactiveResponsiveUi,be=v(()=>Z?n():H),le=v(()=>Jo(a())),We=v(()=>Jo(s())),ee=v(()=>s()/a()),me=v(()=>d()||l()),j=X(!1),te=X(""),Oe=X(0),Ge=X(0),$e=X(0),we=v(()=>({containerWidth:r(Ge),translateXPx:r(Oe),translateYPx:Z&&Y?-36:-16,active:r(j)&&w()&&!r(me)&&!B,pointer:!k.features.timelinePreview||!Y||p()})),Ve=oe("aria_timeline"),je=v(()=>oe("aria_timeline_value",{position:r(We),duration:r(le)}));function dt(qe){return!Le||!Z?qe:Le(qe*a())/a()}function ct(qe){T.actions.internal.startScrubbing(dt(qe))}function rt(qe){l()||T.actions.internal.progressScrubbing(dt(qe))}function Ct(qe){T.actions.internal.completeScrubbing(dt(qe)),D(j,!1)}function _t(qe,gt,Ht){It(qe,gt,Ht),D(j,!0)}function Gt(qe,gt,Ht){It(qe,gt,Ht),D(j,!0)}function ni(){D(j,!1)}function It(qe,gt,Ht){D($e,fe(dt(qe))),D(Oe,fe(gt)),Ht&&D(Ge,fe(Ht)),D(te,fe(Vt(qe)))}function Vt(qe){let gt=Jo((p()?1-qe:qe)*a());return p()?`-${gt}`:gt}var O=Y$(),_e=pe(O);pf(_e,Jr(()=>r(we),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(qe,gt)=>{var Ht=De(),Xe=pe(Ht);{var Qt=Je=>{ff(Je,{get time(){return r(te)},get isMobile(){return m()},get videoEpisodes(){return r(be)},previewThumbsData:Y,get progress(){return r($e)},get duration(){return a()},isInteractive:Z})},ti=Je=>{var Zt=j$(),Ni=h(Zt,!0);g(Zt),E(()=>ve(Ni,r(te))),$(Je,Zt)};R(Xe,Je=>{k.features.timelinePreview&&Y&&!p()?Je(Qt):Je(ti,!1)})}$(qe,Ht)},$$slots:{default:!0}}));var re=M(_e,2);let Ne=v(()=>Math.round(r(ee)*100)),ze=v(()=>_().has("TIMELINE"));oa(re,{className:"timeline-slider",get isActiveLive(){return b()},get isMobile(){return m()},ariaLabel:Ve,ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r(Ne)},get ariaValueText(){return r(je)},get loadedProgress(){return u()},get filledProgress(){return r(ee)},get handleProgress(){return r(ee)},get videoEpisodes(){return r(be)},onPointerDown:ct,onHandleMove:rt,onPointerMove:Gt,onPointerUp:Ct,onPointerEnter:_t,onPointerLeave:ni,onMouseEnter:se,onMouseLeave:Me,onDisabledClick:Ae,isInteractive:Z,get disabled(){return r(ze)},get hideHandel(){return l()},get ref(){return C()},set ref(qe){C(qe)}}),$(t,O),z(),o()}var X$={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 nd(t,e){U(e,!0),W(t,X$);let[i,o]=Re(),n=()=>S(l,"$isMobile",i),a=f(e,"position",3,0),s=f(e,"duration",3,0),d=Te(),l=d.ui.isMobile,p=d.ui.t,m=v(()=>Jo(s())),b=v(()=>Jo(a())),u=v(()=>a()/s()),_=v(()=>p("aria_timeline_value",{position:r(b),duration:r(m)})),w=v(()=>Math.round(r(u)*100));oa(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 J$=L("<div><!></div>"),e2=L("<div></div>"),t2={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 na(t,e){U(e,!0),W(t,t2);let[i,o]=Re(),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),b=f(e,"ref",15,void 0),u=Te(),_=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 k=De(),P=pe(k);{var A=V=>{var q=J$();let Q;var H=h(q);{var Y=Z=>{nd(Z,{get position(){return s()},get duration(){return d()}})},ne=Z=>{mf(Z,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return r(T)},get withEpisodes(){return e.withEpisodes},get ref(){return b()},set ref(de){b(de)}})};R(H,Z=>{l()?Z(Y):Z(ne,!1)})}g(q),E(Z=>Q=J(q,1,"timeline svelte-1h5wsmk",null,Q,Z),[()=>({withoutPadding:!m(),mobile:a()})]),$(V,q)},I=V=>{var q=e2();let Q;E(H=>Q=J(q,1,"timeline-stub svelte-1h5wsmk",null,Q,H),[()=>({mobile:a()})]),$(V,q)};R(P,V=>{r(T)?V(A):V(I,!1)})}$(t,k),z(),o()}import{noop as n2}from"@vkontakte/videoplayer-shared/es2018";var i2=xe('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"></path></svg>');function vf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=i2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(3),g(o),E(()=>n=Ie(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 o2=xe('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708" clip-rule="evenodd" opacity=".7"></path></svg>');function gf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=o2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(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 r2=L('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),s2=L('<span class="text svelte-1yhs2ga"> </span>'),a2=L('<span class="text count svelte-1yhs2ga"> </span>'),l2=L("<!> <!>",1),d2={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 rd(t,e){var ce,Le,Ae;U(e,!0),W(t,d2);let[i,o]=Re(),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,()=>[]),b=Te(),u=(Le=(ce=b.callbacks)==null?void 0:ce.onEpisodeChanged)!=null?Le:n2,_=!!((Ae=b.callbacks)!=null&&Ae.onEpisodeClicked),w=b.ui.currentGridType$,y=b.ui.episodes.openedByKeyboard$,C=b.ui.episodes.panelOpened$,T=b.ui.isMobile,k=b.ui.t,P=X(void 0),A=he=>{var Me,oe,B;if(!!((Me=b.callbacks)!=null&&Me.onEpisodeClicked)){let be=bs(he);y.set(be),C.set(!0),(B=(oe=b.callbacks)==null?void 0:oe.onEpisodeClicked)==null||B.call(oe,be)}},I=X(null),V=v(()=>l()/p());He(()=>{var se;let he=Hc(r(V),p(),m());he?((se=r(I))==null?void 0:se.time)!==he.time&&(u(he),D(I,fe(he))):D(I,null)});let q=v(()=>{var he;return((he=r(I))==null?void 0:he.text)||""}),Q=v(()=>Gi(n(),"xl")?"FULL":Gi(n(),"m")&&Vh(n(),"xl")?"COUNT":"SHORT"),H=v(()=>`${k("tooltip_episodes")}: ${r(q)}`),Y=async(he,se,Me)=>{await go(),(he==null?void 0:he.getAttribute("aria-expanded"))==="false"&&se&&!Me&&yt(()=>{y.set(!1),he.focus()})};He(()=>{Y(r(P),a(),s())});var ne=De(),Z=pe(ne);{var de=he=>{let se=v(()=>d()?"px-0":"");Lt(he,{get className(){var Me;return`w-max btn-full-opacity btn-jc-l ${(Me=r(se))!=null?Me:""}`},testId:"btn-episodes",click:A,disabled:!_,get ariaExpanded(){return s()},get ariaLabel(){return r(H)},get ref(){return r(P)},set ref(Me){D(P,fe(Me))},children:(Me,oe)=>{var B=De(),be=pe(B);{var le=ee=>{var me=r2(),j=pe(me),te=h(j,!0);g(j);var Oe=M(j,2),Ge=h(Oe);gf(Ge,{}),g(Oe),E(()=>ve(te,r(q))),$(ee,me)},We=ee=>{var me=l2(),j=pe(me);vf(j,{});var te=M(j,2);{var Oe=$e=>{var we=s2(),Ve=h(we,!0);g(we),E(()=>ve(Ve,r(q))),$($e,we)},Ge=($e,we)=>{{var Ve=je=>{var dt=a2(),ct=h(dt,!0);g(dt),E(()=>ve(ct,m().length)),$(je,dt)};R($e,je=>{r(Q)==="COUNT"&&je(Ve)},we)}};R(te,$e=>{r(Q)==="FULL"?$e(Oe):$e(Ge,!1)})}$(ee,me)};R(be,ee=>{d()?ee(le):ee(We,!1)})}$(Me,B)},$$slots:{default:!0}})};R(Z,he=>{r(I)&&he(de)})}$(t,ne),z(),o()}import{debounceFn as dy}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as h2,PlaybackState as sd,Player as _2,PredefinedQualityLimits as Fr,VideoFormat as ad,clientChecker as b2}from"@vkontakte/videoplayer-core/es2018";import{assertNonNullable as Mn,getHighestQuality as $2,InterfaceLanguage as y2,isInvariantQuality as x2,isNonNullable as w2,loadVKLangPack as S2,Logger as C2,map as Wh,merge as T2,Observable as I2,Subject as Gc,Subscription as xf,TracerFactory as k2,ValueSubject as E2,VideoQuality as P2,devNull as A2,now as M2}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as os}from"@vkontakte/videoplayer-statistics/es2018";import{detectEmbed as c2,devNull as jt,now as Yt}from"@vkontakte/videoplayer-shared/es2018";import{addScript as u2,Subject as Do,clearVideoElement as p2}from"@vkontakte/videoplayer-shared/es2018";var Oh=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var f2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Fc=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 Do,loadStarted$:new Do,loadEnded$:new Do,loadError$:new Do,ready$:new Do,slotRequested$:new Do,started$:new Do,timeRemained$:new Do,paused$:new Do,resumed$:new Do,ended$:new Do,empty$:new Do,skipped$:new Do,clicked$:new Do,closed$:new Do,error$:new Do};this.loadAdman=e=>(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[Yt()]}),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?(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[Yt()]}),i(),this.events.loadEnded$.next()):(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[Yt()]}),o())};u2(f2,e,this.loadTimeout).then(()=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[Yt()]}),window.AdmanHTML?(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[Yt()]}),i(),this.events.loadEnded$.next()):(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[Yt()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout))}).catch(s=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(s)],numbers:[Yt()]}),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?(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[Yt()]}),i(),this.events.loadEnded$.next()):(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[Yt()]}),o())},s=()=>{d=!0,o()},d=!1,l=window.setTimeout(()=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[Yt()]}),s()},this.loadTimeout);e.addEventListener("abort",s),e.aborted&&(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[Yt()]}),s()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[Yt()]}),!d&&(window.AdmanHTML?(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[Yt()]}),i(),this.events.loadEnded$.next()):(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[Yt()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout)))},s).finally(()=>{clearTimeout(n),clearTimeout(l),e.removeEventListener("abort",s)})});this.onAdsReady=()=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[Yt()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[Yt(),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"}),Ce(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;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[Yt()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),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;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[Yt()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[Yt()]}),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(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[Yt(),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:b}=e,u,_=this.playerState&&Ce(this.playerState.vsid);_&&(this.isVsidOriginal?u=_:u=parseInt(_,36));let{isEmbed:w,immediateOrigin:y}=c2(),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:b,...u?{request_id:u}:{},duration:m,puid10:Oh(i,o),puid11:n?0:1};b||delete T.preview;let k={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(k),this.adman=A,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(k)}`})}catch(A){jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(A)],numbers:[Yt()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,a;if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[Yt()]}),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(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),this.adsState){this.log({message:"toggle play"});let i=Ce(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[Yt()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),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(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),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,b,u;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[Yt()]}),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),(b=this.adman)==null||b.onError(void 0),(u=this.adman)==null||u.destroy(),this.videoElement&&p2(this.videoElement),this.isDestroyed=!0}};var Hh=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 hf=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 Uc,{startTime:m,endTime:b}=p.parse(l);s.startTime=m,s.endTime=b}else if(l.trim()!==""){let p=new _f,{texts:m}=p.parse(l);s.texts=[...s.texts,...m]}(s.startTime||s.endTime)&&s.texts.length>0&&o.push(s)}return o}},Uc=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}},_f=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,b)=>{let u=s.indexOf(b,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 Uc;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}},Fh=hf;import{isNonNullable as bf}from"@vkontakte/videoplayer-shared/es2018";var ra,Ei,$f=0,yf=!1,Uh="",zh=(t,e=0,i=0)=>t<e&&t<i,zc=(t,e=0,i=0)=>t>=e&&t<=i,m2=(t,e=0,i=0)=>t>e&&t>i,qh=(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})=>zc(t,p,m));let a=t>=$f,s=t<$f;if($f=t,s&&(yf=!1),bf(ra)&&zc(t,ra.startTime,ra.endTime)&&Uh===e.value)return ra;if(!bf(Ei)&&(n!=null&&n.length)&&!yf){Ei=n.find(({startTime:p,endTime:m})=>zc(t,p,m)||a&&zh(t,p,m)),ra=void 0,!bf(Ei)&&n[n.length-1].endTime<t&&(yf=!0);return}else{if(zc(t,Ei==null?void 0:Ei.startTime,Ei==null?void 0:Ei.endTime))return ra=Ei,Ei=void 0,Uh=e.value,ra;(a&&m2(t,Ei==null?void 0:Ei.startTime,Ei==null?void 0:Ei.endTime)||s&&zh(t,Ei==null?void 0:Ei.startTime,Ei==null?void 0:Ei.endTime))&&(Ei=void 0)}};var qc={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"},v2={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"},Wc=t=>{var e,i;return(i=(e=qc[t])!=null?e:qc[v2[t]])!=null?i:void 0};import{Subscription as g2}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-statistics/es2018";var Kc=class{constructor(e,i=new g2){this.oneStat=e;this.statSubscription=i}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Qc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Qc||{});var Hr=t=>t!=null?t:0,is=(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(Hr(i==null?void 0:i.top)-Hr(o==null?void 0:o.top)),left:Math.round(Hr(i==null?void 0:i.left)-Hr(o==null?void 0:o.left)),bottom:Math.round(Hr(i==null?void 0:i.bottom)-Hr(o==null?void 0:o.top)),right:Math.round(Hr(i==null?void 0:i.right)-Hr(o==null?void 0:o.left))}},Ja=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:Hr(e==null?void 0:e.width),height:Hr(e==null?void 0:e.height)}};var Kh=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:a,isAudioDisabled:s,canDownload:d,callbacks:l,webApi:p,videoEpisodes:m,previewThumbsData:b,uiConfig:u,coreConfig:_,player:w,disabledControls:y,isInteractive:C,interactiveRanges$:T,isInteractiveTime$:k,replayInteractive:P,stopPlayer:A,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:V,additionalButtons:q,additionalSettingsMenuItems:Q,additionalContextMenuItems:H,playPrevVideo:Y,playNextVideo:ne,looped:Z=!1,statistics:de,saveRate:ce,internalsExposure:Le,playerView:Ae})=>{var Om,Hm,Fm;let he={..._,configName:[...(Om=_.configName)!=null?Om:[],"ui"],isAudioDisabled:s,live:{...(Hm=_.live)!=null?Hm:{},isLiveCatchUpMode:!!n}},se=u,Me=k2.createRootTracer(se.features.tracer),oe=Me.createComponentTracer("Store"),B=w||new _2(he,Me);Le==null||Le.expose({corePlayer:B});let be=new C2,le=new Fc(be,{loadTimeout:se.ads.loadTimeout,initTimeout:se.ads.initTimeout,runtimeTimeout:se.ads.runtimeTimeout,useAdmanFromNPM:se.ads.useAdmanFromNPM,volumeMultiplier:se.ads.volumeMultiplier,isVsidOriginal:se.ads.isVsidOriginal}),We=Gs.getInstance(),ee=p==null?void 0:p.pictureInPictureApi,me=p==null?void 0:p.annotationsApi,j=p==null?void 0:p.slotsApi,te=be.createComponentLog("Store"),Oe,Ge,$e={},we=new _c,Ve=de?ei(de.oneStat.vsid$):Xn(void 0),je=ae(gs()),dt=ae(!1),ct=(Fm=ee==null?void 0:ee.info.isActive$)!=null?Fm:new E2(!1),rt=ae(0),Ct=ae([]),_t=T2(B.events.fatalError$,B.events.managedError$).subscribe(c=>Ct.update(x=>[...x,c])),Gt=Xn(!1,c=>{let x=B.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),ni=async c=>{var ue;let x=Object.values(y2).includes(c);if(se.downloadVKLanguages&&(x&&se.updateBuiltinLanguages||!Ip(c))){let Ue;try{Ue=await S2(c,Pg,Ag)}catch(wt){(ue=de==null?void 0:de.oneStat)==null||ue.logError({errorType:"VKLangPack",fatal:!1}),We==null||We.report(wt,{errorType:"VKLangPack",fatal:!1})}Ue&&(Tp({language:c,pack:Ue,fallback:se.defaultLanguage}),It.set(c))}Ip(c)&&It.set(c)},It=ae(t),Vt=ae(e);ni(t);let O=(c,x)=>{let N=Ce(It);return kp(N,c,x,se.defaultLanguage)},_e=ae("thumb"),re=(()=>{let c=xi([Gt,_e],([x,N])=>x?"crashed":N);return{...c,is:x=>Ce(c)===x}})(),Ne=(()=>{let c=ae(new Set(y));return{...c,add:x=>{c.update(N=>new Set([...N].concat(x)))},remove:x=>{c.update(N=>{let ue=[...N];return new Set(Array.isArray(x)?ue.filter(Ue=>!x.includes(Ue)):ue.filter(Ue=>Ue!==x))})},includes:x=>{let N=Ce(c);return Array.isArray(x)?x.every(ue=>N.has(ue)):N.has(x)}}})();oe.log("create store"),te({message:"create store"});let ze=c=>{let x=c.container;x.append(B.experimental.element$.getValue()),gt=new MutationObserver(N=>{let{removedNodes:ue}=N[0];ue.length&&x.append(B.experimental.element$.getValue())}),gt.observe(x,{childList:!0})},Qe=c=>{te({message:`init video, config: ${JSON.stringify(c)}`}),C?ze(c):(A2.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[M2()]}),B.initVideo(c)),oe.log("init video",{isInteractive:C}),c.subtitles&&B.setExternalTextTracks(c.subtitles),Oe=c},ut=new Gc,Ye=c=>ut.next(c),et=new Gc,tt=new Gc,qe=new Gc,gt=null,Ht={actionRewind$:et,actionSeek$:tt,inPiP$:ct,inFullscreen$:new I2(c=>je.subscribe(x=>c.next(x))),actionSetSubtitle$:qe,nextMovie$:ut};if(de){let{oneStat:c,statSubscription:x}=de;C||x.add(c.attachTo(B)),x.add(c.attachToUi(Ht)),x.add(c.attachToAds(le.events)),c.authorize(a).catch(N=>{te({message:`onestat auth error ${String(N)}`})})}if(We){let c=new xf,x=(N,ue)=>c.add(N.subscribe(ue));if(x(B.events.managedError$,N=>{We.logIError(N)}),x(B.events.fatalError$,N=>{We.logIError(N,!0)}),de){let{oneStat:N}=de;x(N.experimental.error$,ue=>{We.logIError(ue)})}We.sentrySubscription.add(c)}let Xe=()=>{b2.device.isIOS&&Ge&&mh(Ge).catch(c=>{te({message:`exitIosSafariFullscreen failed: ${c}`})})},Qt=new xf().add(B.experimental.element$.subscribe(c=>{c&&(Ge=c,c.classList.add("player-media"),Ys(ee)&&(ee.updateVideoElement(),ee.registryEventHandlers()),C&&c.setAttribute("pip","false"),Ae==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(B.events.ended$.subscribe(()=>{var c;Xe(),(c=l==null?void 0:l.onEnded)==null||c.call(l)})).add(B.events.looped$.subscribe(()=>{var c;(c=l==null?void 0:l.onLooped)==null||c.call(l)})).add(B.events.started$.subscribe(async()=>{var x,N;Ys(ee)&&await(ee==null?void 0:ee.revealPictureInPicture());let c=B.info.muted$.getValue();(x=l==null?void 0:l.onStarted)==null||x.call(l),(N=$e.onStarted)==null||N.call($e,c)})).add(B.events.willSeek$.subscribe(({from:c,to:x})=>{var N;(N=l==null?void 0:l.onSeek)==null||N.call(l,c,x)})).add(B.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=l==null?void 0:l.onAutoplaySoundProhibited)==null||c.call(l)})).add(B.info.position$.subscribe(c=>{var N;let x=B.info.duration$.getValue();isFinite(x)&&x>0&&((N=l==null?void 0:l.onTimeupdate)==null||N.call(l,x,c),le.setPosition(c,x))})).add(B.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(B.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(B.events.loadedMetadata$.subscribe(()=>{kt.state.loadedMetadata$.set(!0)})).add(B.info.is3DVideo$.subscribe(c=>{kt.ui.is3DVideo.set(c)})).add(B.info.isEnded$.subscribe(c=>{C&&(c?(k!=null&&k.getValue()&&Ne.add(Vl),Ne.add("PLAY_BUTTON")):Ne.remove("PLAY_BUTTON"))})).add(B.info.liveTime$.subscribe(c=>{var x;(x=l==null?void 0:l.onLiveTime)==null||x.call(l,c)})).add(B.info.isStalled$.subscribe(c=>{var x;(x=l==null?void 0:l.onStalledChanged)==null||x.call(l,c)})).add(B.info.isLiveEnded$.subscribe(c=>{var x;return c&&((x=l==null?void 0:l.onLiveEnded)==null?void 0:x.call(l))})).add(le.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(le.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(le.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(le.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(le.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(le.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(le.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(le.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(le.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(le.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(le.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(le.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(le.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(le.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)})),ti=new xf,Je=()=>{var wt,Bt,Wt;let{debugLog:c}=se,x,N="#9df7b7",ue="#efd169";if(c&&c!==!0){let{colors:Dt}=c;x=c.tag,N=(wt=Dt==null?void 0:Dt[0])!=null?wt:N,ue=(Wt=(Bt=Dt==null?void 0:Dt[1])!=null?Bt:Dt==null?void 0:Dt[0])!=null?Wt:ue}let Ue=x?`: ${x}`:"";ti.add(B.events.log$.subscribe(Dt=>{console.debug(`%c sdk${Ue} `,`background:${N};`,`sdk component: ${Dt.component}`,Dt.message)})).add(be.log$.subscribe(Dt=>{console.debug(`%c ui${Ue} `,`background:${ue};`,`ui component: ${Dt.component}.`,Dt.message)}))},Zt=()=>{ti.unsubscribe()},Ni=(c,x)=>{oe.log("start camera manual rotation",{mx:c,my:x}),B.startCameraManualRotation(c,x)},zi=(c=!1)=>{oe.log("stop camera manual rotation",{immediate:c}),B.stopCameraManualRotation(c)},At=(c,x,N)=>{oe.log("move camera focus px",{xpx:c,ypx:x,dt:N}),B.moveCameraFocusPX(c,x,N)},ht=()=>{B.holdCamera()},Rt=()=>{B.releaseCamera()},co=Xn(B.info.position$.getValue(),c=>{let x,N,ue=()=>{let Ue=B.info.playbackState$.getValue(),wt=B.info.isLive$.getValue(),Bt=B.info.duration$.getValue(),Wt=B.info.position$.getValue();if(Ue&&[sd.PLAYING,sd.PAUSED].includes(Ue)){let Dt=wt?Wt-Bt:B.getExactTime();Dt!==N&&c(Dt),N=Dt}x=requestAnimationFrame(ue)};return ue(),()=>cancelAnimationFrame(x)}),en=ei(B.info.playbackState$),hn=ei(B.info.currentBuffer$),$o=ei(B.info.isEnded$),G=ei(B.info.isLive$),Xt=se.features.playbackRate?ei(B.info.canChangePlaybackSpeed$):Xn(!1),ri=ei(B.info.liveBufferTime$),Bi=ei(B.info.volume$),li=ei(B.info.muted$),ft=bc(B.info.predefinedQualityLimitType$.pipe(Wh(c=>c===Fr.TRAFFIC_SAVING)),B.info.predefinedQualityLimitType$.getValue()===Fr.TRAFFIC_SAVING),ui=bc(B.info.predefinedQualityLimitType$.pipe(Wh(c=>c===Fr.HIGH_QUALITY)),B.info.predefinedQualityLimitType$.getValue()===Fr.HIGH_QUALITY),Ze=ei(B.info.autoQualityLimitingAvailable$),Mt=ei(B.info.availableQualities$),eo=ei(B.info.availableQualitiesFps$),ii=ei(B.info.chromecastState$),er=ei(B.info.chromecastDeviceName$),yo=ei(B.info.currentFormat$),Ho=ei(B.info.throughputEstimation$),di=ei(B.info.videoBitrate$),xt=ei(B.info.intrinsicVideoSize$),Ci=ei(B.info.duration$),Eo=ei(B.info.isAudioAvailable$),pi=null,Po=B.info.isBuffering$,qi=Xn(Po.getValue(),c=>{let x=Po.subscribe(N=>{N&&pi===null?pi=window.setTimeout(()=>{c(Po.getValue()),pi=null},se.loaderDelay):c(N)});return()=>{x.unsubscribe(),pi&&clearTimeout(pi)}}),xo=()=>{pi&&clearTimeout(pi),pi=null},wo=xi([Ci,G],([c,x])=>x?-c:c),Vn=xi([en],([c])=>c===sd.PLAYING),So=ei(B.info.atLiveEdge$),_n=ei(B.info.atLiveDurationEdge$),ji=ei(B.info.position$),Ao=xi([ji,Ci],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),tn=xi([ii],([c])=>c===h2.CONNECTED),wr=ei(B.info.availableVideoStreams$),tr=se.features.audioLanguages?ei(B.info.availableAudioStreams$):Xn([]),Rn=ei(B.info.currentVideoStream$),bn=ei(B.info.currentAudioStream$),Nn=c=>{c.language&&Cp(c.language),B.setVideoStream(c)},ir=c=>{c.language&&Cp(c.language),B.setAudioStream(c)},to=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(ue=>"isDefault"in ue&&ue.isDefault)),x)return x;let N=eh();return N&&(x=c.find(({language:ue})=>N===ue)),x!=null||(x=c.at(0)),x},Mo=!1;Qt.add(B.info.availableAudioStreams$.subscribe(c=>{if(!Mo&&c.length){let x=to(c);x&&(B.setAudioStream(x),Mo=!0)}}));let $n=!1;Qt.add(B.info.availableVideoStreams$.subscribe(c=>{if(!$n&&c.length){let x=to(c);x&&(B.setVideoStream(x),$n=!0)}}));let it=ae(void 0),yn=ei(B.info.isAutoQualityEnabled$,c=>c&&it.set(void 0)),Bn=ei(B.info.currentQuality$,()=>it.set(void 0)),on=xi([it,Bn],([c,x])=>c!=null?c:x),or=xi(yo,c=>c!==ad.MPEG),nn=xi([Mt,eo,yn,on,or],([c,x,N,ue,Ue])=>{let wt=[];Ue&&wt.push({value:"auto",displayValue:O("auto_quality_option"),selected:N});let Bt=c.filter(Wt=>!x2(Wt));for(let Wt of Bt){let Dt=x[Wt];wt.push({value:Wt,displayValue:`${Wt}${Dt?Hh(Dt):""}`,selected:N?!1:Wt===ue})}return wt}),rn=ei(B.info.currentPlaybackRate$),sn=xi([rn,So,_n],([c,x,N])=>{let ue=N||C?1:se.controls.playbackRateMin,Ue=x?1:se.controls.playbackRateMax,wt=se.controls.playbackRateStep,Bt=[];for(let Wt=ue;Wt<=Ue;Wt+=wt)Bt.push({value:Wt,displayValue:Wt===1?O("playback_rate_1"):O("playback_rate",{multiplier:Wt.toString(10)}),selected:c===Wt});return Bt}),Yi={displayValue:O("subtitles_off"),value:"off"},Wi=ae({...Yi}),an=se.features.subtitles?ei(B.info.availableTextTracks$):Xn([]),Dn=Wg(),Fo=xi([an,Wi],([c,x],N)=>{var wt;let ue=[],Ue=c.find(({id:Bt})=>Bt===x.value);if(Ue!=null&&Ue.url){let[,Bt]=(wt=Dn.find(Ue.url))!=null?wt:[];if(Bt){N(Bt);return}we.download(Ue.url).then(Wt=>{if(!Wt||we.isDestroyed())return;let Dt=new Fh,as=Ue.language;if(as){let V1=!!Ue.isAuto,R1=Dt.parse(Wt,as);ue.push({lang:as,subtitles:R1,isAuto:V1,id:Ue.id})}Dn.add(Ue.url,ue),Ce(Wi).value===x.value&&N(ue)}).catch(Wt=>{var Dt;(Dt=de==null?void 0:de.oneStat)==null||Dt.logError({errorType:"Subtitles download",fatal:!1}),We==null||We.report(Wt,{errorType:"Subtitles download",fatal:!1})})}N(ue)}),ln=xi([rn,Vn,Wi],([c,x,N],ue)=>{let Bt;if(B.info.isLive$.getValue()&&x&&N.value!==Yi.value){let Dt=()=>{let as=1e3/(3*c);Bt=setTimeout(Dt,as),ue(Date.now())};return Dt(),()=>clearTimeout(Bt)}}),Lo=xi([an,Wi],([c,x])=>{if(!c.length)return[];let N=[];for(let{language:ue,isAuto:Ue,id:wt}of c){let Bt=ue&&Wc(ue);ue&&Bt&&N.push({displayValue:Ue?O("subtitles_auto",{language:Bt}):Bt,value:wt,selected:(x==null?void 0:x.value)===wt,isAuto:Ue})}return N.length?(N.unshift({...Yi,selected:(x==null?void 0:x.value)===Yi.value}),N):[]}),uo={available:[],prev:[]},Di=()=>{var x,N;let c=B.experimental.getCurrentTime$.getValue();return(N=(x=c==null?void 0:c())!=null?x:Ge==null?void 0:Ge.currentTime)!=null?N:0},On=xi([co,Wi,Fo,ln],([c,x,N,ue])=>{var wt;let Ue=B.info.isLive$.getValue();if(Ue&&uo.prev!==N){let Bt=N.find(({id:Dt})=>Dt===x.value),Wt=uo.prev.find(({id:Dt})=>Dt===x.value);if(Bt){let Dt={...Bt,subtitles:[...(wt=Wt==null?void 0:Wt.subtitles)!=null?wt:[],...Bt.subtitles]};uo.available=[Dt],uo.prev=N}}if(x&&x.value!==Yi.value){let Bt=Ue?Di():c,Wt=Ue?uo.available:N;return qh(Bt,x,Wt,Ue)}}),io=xi([On],([c])=>c!=null&&c.texts?c.texts:[]);Qt.add(Wi.subscribe(c=>{var x,N;if(c.value===Yi.value)(x=l==null?void 0:l.onSubtitleOff)==null||x.call(l);else{let ue=Object.entries(qc).find(([Ue,wt])=>wt===c.displayValue);(N=l==null?void 0:l.onSubtitleOn)==null||N.call(l,ue?ue[0]:"")}}));let xn=ae(!0),Hn=xi([hn,wo,ji,ri],([c,x,N,ue])=>{var Wt;let Ue=(Wt=c==null?void 0:c.end)!=null?Wt:0;if(!ue)return Ue/x;let Bt=-N+ue-x;return(Ue-Bt)/x}),dn=ei(B.info.availableSources$),Sr=xi([dn],([c])=>Object.keys((c==null?void 0:c[ad.MPEG])||{}).length>0),Uo=()=>{var N,ue,Ue;let c=Object.keys(((ue=(N=B.info.availableSources$)==null?void 0:N.getValue())==null?void 0:ue[ad.MPEG])||{}),x=$2(c)||P2.Q_144P;return(Ue=Oe.sources[ad.MPEG])==null?void 0:Ue[x]},Cr=()=>{var x;let c=Uo();if(c)oe.log("download video",{url:c}),Ug(c,((x=Oe==null?void 0:Oe.meta)==null?void 0:x.title)||"video");else{let N="There is no URL for download video";oe.log("download video",{message:N}),te({message:N})}},Fn=()=>{te({message:"toggle muted"});let c=B.info.muted$.getValue();B.info.volume$.getValue()===0&&!c?rr(Jt()):Ir(!c)},Un=()=>{var c;if(kt.ui.settingsMenu.visible$.set(!1),!Ce(kt.ui.settingsSubMenu.visible$)){let x=Ce(kt.ui.settingsMenu.ref$);if((c=l==null?void 0:l.uiInfo)!=null&&c.onSettingsMenu&&x){let ue=Ja(x),Ue={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:ue,position:Ue,name:"settings"})}}oe.log("close settings menu")},nr=async(c,x=()=>Promise.resolve())=>{var Ue;kt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),kt.ui.settingsMenu.visible$.set(!0),await x();let N=Ce(kt.ui.settingsMenu.ref$),ue=ks();if((Ue=l==null?void 0:l.uiInfo)!=null&&Ue.onSettingsMenu&&N&&ue){let Bt=Ja(N),Wt=is(N,ue);l.uiInfo.onSettingsMenu({visible:!0,size:Bt,position:Wt,name:"settings"})}oe.log("open settings menu",{wasOpenedByKeyboard:c})},Tr=(c,x=!1)=>{var wt;kt.ui.settingsSubMenu.visible$.set(!1);let N=Ce(kt.ui.settingsMenu.ref$),ue=ks(),Ue=Ce(kt.ui.settingsMenu.visible$);if((wt=l==null?void 0:l.uiInfo)!=null&&wt.onSettingsMenu&&N&&ue)if(Ue&&!x){let Wt=Ja(N),Dt=is(N,ue);l.uiInfo.onSettingsMenu({visible:!0,size:Wt,position:Dt,name:"settings"})}else{let Wt=Ja(c),Dt={top:0,left:0,bottom:0,right:0},as=Ce(kt.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:Wt,position:Dt,name:as})}oe.log("close settings sub menu")},wn=(c,x)=>{var ue;kt.ui.settingsSubMenu.visible$.set(!0),kt.ui.settingsSubMenu.ref$.set(x),kt.ui.settingsSubMenu.name$.set(c);let N=ks();if((ue=l==null?void 0:l.uiInfo)!=null&&ue.onSettingsMenu&&x&&N){let wt=Ja(x),Bt=is(x,N);l.uiInfo.onSettingsMenu({visible:!0,name:c,size:wt,position:Bt})}oe.log("open settings sub menu",{name:c})},Jt=()=>{var x;let c=Math.max(se.volumeMinRestore,(x=$c())!=null?x:0);return c===0?se.volumeDefault:c},rr=c=>{let x=c===0?Jt():c,N=B.info.muted$.getValue();te({message:`set volume, volume: ${c}, preferredVolume: ${x}`}),N&&c>0&&!s&&(N=!1,wp(!1)),B.setVolume(c,N),le.setVolume(c),_p(x)},Ir=c=>{let x=B.info.volume$.getValue();if(te({message:`set muted, currentVolume: ${x}, mute: ${c}`}),B.setMuted(c),le.setVolume(c?0:x),wp(c),!c&&x===0){let N=Jt();B.setVolume(N),_p(N),le.setVolume(N)}},Vo=ae(!1),Ti=c=>{var x,N;oe.log("set looped",{isLooped:c}),Vo.set(c),B.setLooped(c),(N=(x=l==null?void 0:l.uiInfo)==null?void 0:x.onLoopedChanged)==null||N.call(x,c)};Ti(Z);let sr=()=>{var c,x;(x=(c=l==null?void 0:l.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},mt=(c,x=!1)=>{var N;te({message:`set autoplayNextEnabled, value: ${c}`}),oe.log("set autoplay next enabled",{autoplayNextEnabled:c}),kt.ui.autoplayNextEnabled$.set(c),oh(c),x&&((N=l==null?void 0:l.onSetAutoplayNextEnabled)==null||N.call(l,c))},Ft=c=>{te({message:`set timerNextVideoRunning, value: ${c}`}),oe.log("set timer next video running",{timerNextVideoRunning:c}),kt.ui.timerNextVideoRunning$.set(c)},Pi=(c=!0)=>{var ue;let x=!0;if(c&&(l!=null&&l.onPrevVideoClick))try{x=(ue=l==null?void 0:l.onPrevVideoClick)==null?void 0:ue.call(l)}catch(Ue){te({message:"onPrevVideoClick callback failed to execute"})}if(!x)return;c&&ot("prev")||Y()},Co=(c=!0)=>{var ue;let x=!0;if(c&&(l!=null&&l.onNextVideoClick))try{x=(ue=l==null?void 0:l.onNextVideoClick)==null?void 0:ue.call(l)}catch(Ue){te({message:"onNextVideoClick callback failed to execute"})}if(!x)return;c&&ot("next")||ne()},ot=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:N,playbackStatusShow:ue}}=se;return N&&ue&&!x?(kt.ui.aboutToGoNextVideo.set(c),kt.ui.userActionsDisabled.set(!0),!0):!1},Nt=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementShow)==null||c.call(l)},fi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementClick)==null||c.call(l)},Oi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementAuto)==null||c.call(l)},po=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementCancel)==null||c.call(l)},wi=()=>{B.prepare()},Ai=()=>{Mn(kt);let c=Ce(kt.ui.controls.disabledControls$),x=Ce(kt.playerPhase),N={playerPhase:x,isInteractive:C,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(te({message:"toggle play"}),x==="ads"){N.action="play",oe.log("toggle adman play",N),le.togglePlay();return}let ue=()=>{var wt;te({message:"toggle play, call player.play"}),N.action="play",B.play(),(wt=l==null?void 0:l.onPlay)==null||wt.call(l)},Ue=()=>{var wt;te({message:"toggle play, call player.pause"}),N.action="pause",B.pause(),(wt=l==null?void 0:l.onPause)==null||wt.call(l)};if(B.info.isEnded$.getValue()){if(te({message:"toggle play, video ended, seek to 0"}),et.next(),tt.next(os.REWIND),C){P==null||P();return}B.seekTime(0),ue()}else B.info.playbackState$.getValue()!==sd.PLAYING?ue():Ue();oe.log("toggle play",N)},vi=(c,{changeReason:x="default",appliesTo:N="to-video"}={})=>{te({message:`set quality, quality: ${c}`}),oe.log("set quality",{quality:c}),B.setAutoQuality(c==="auto"),c!=="auto"?(se.features.qualityDetailsSubMenuEnabled?(yc({type:"exact_quality",quality:c,videoId:i},N),Nl(),B.setPredefinedQualityLimits(Fr.UNKNOWN)):bp(i,c),it.set(c),B.setQuality(c)):se.features.qualityDetailsSubMenuEnabled?x==="default"&&(ar("auto_quality",N),Ce(ft)&&hi(!1),Ce(ui)&&Hi(!1)):Nl()},hi=(c,x="as-default")=>{te({message:`set trafficSavingEnabled, value: ${c}`}),oe.log("set traffic saving enabled",{trafficSavingEnabled:c});let N=c?Fr.TRAFFIC_SAVING:Fr.UNKNOWN;se.features.qualityDetailsSubMenuEnabled?(zn(N,x),Rl(!1)):(B.setPredefinedQualityLimits(N),Rl(c))},Hi=(c,x="as-default")=>{te({message:`set highQualityEnabled, value: ${c}`}),oe.log("set high quality enabled",{highQualityEnabled:c}),zn(c?Fr.HIGH_QUALITY:Fr.UNKNOWN,x)},zn=(c,x)=>{c!==Fr.UNKNOWN&&(Ce(Ze)&&!Ce(yn)&&vi("auto",{appliesTo:x,changeReason:"limit-changed"}),ar(c,x)),B.setPredefinedQualityLimits(c)},ar=(c,x)=>{yc({type:c,videoId:i},x),x==="as-default"&&yc({type:c,videoId:i},"to-video")},qn=c=>{oe.log("set playback rate",{playbackRate:c}),B.setPlaybackRate(c),se.features.saveRate&&ce&&!B.info.isLive$.getValue()&&th(c)},lr=()=>{let c=Ce(sn),x=c.findIndex(({selected:ue})=>ue);if(x===c.length-1)return;let N=c[x+1];qn(N.value)},dr=()=>{let c=Ce(sn),x=c.findIndex(({selected:ue})=>ue);if(x===0)return;let N=c[x-1];qn(N.value)},cr=(c={...Yi,selected:!1})=>{oe.log("set subtitles",{...c}),c&&c.value!==Yi.value&&qe.next(c.isAuto?c.value+"_auto":c.value),Wi.set(c)},ur=()=>{oe.log("toggle subtitles");let c=Ce(Lo),x=Ce(Wi),N=Ce(It);if((x==null?void 0:x.value)===Yi.value){let ue=c.filter(Ue=>Ue.value!==Yi.value).find(Ue=>Ue.value===N)||c[1];cr(ue)}else cr()},Wn=ae(!0),Kn=c=>{Wn.set(c)},Ro=(c,x,N=!0)=>{var ue;if(te({message:`seek to time, time: ${c}`}),oe.log("seek to time",{time:c,action:x,forcePrecise:N}),tt.next(x),B.info.isLive$.getValue()){let Ue=B.info.duration$.getValue(),wt=Math.min(0,Ue+c);B.seekTime(wt,N)}else{if(k!=null&&k.getValue())return;B.info.isEnded$.getValue()&&(te({message:"seek after ended, call callbacks.onPlay"}),(ue=l==null?void 0:l.onPlay)==null||ue.call(l)),B.seekTime(Dm(c),N)}},kr=c=>{te({message:`seek to episode start time: ${c}`}),oe.log("seek to episode start time",{time:c}),Ro(c,os.EPISODE,!0)},No=(c,x)=>{te({message:`seek to percent, percent: ${c}`}),oe.log("seek to percent",{percent:c,action:x});let N=Ce(wo)*c;Ro(N,x,!1)},pr=c=>{te({message:`seek external, time: ${c}`}),oe.log("seek external",{time:c}),tt.next(os.UNKNOWN),B.seekTime(B.info.isLive$.getValue()?-c:c)},Er=c=>{var ue,Ue;let x=(ue=c.max)!=null?ue:"none",N=(Ue=c.min)!=null?Ue:"none";te({message:`set auto quality limitation. Max: ${x}. Min: ${N}`}),oe.log("set auto quality limits",{max:x,min:N}),B.setAutoQualityLimits(c)},Pr=c=>{te({message:`seek external to episode start time: ${c}`}),oe.log("seek external to episode start time",{time:c}),Ro(c,os.EPISODE,!0)},Ar=c=>{te({message:`set playback rate to: ${c}`}),oe.log("set playback rate external",{playbackRate:c}),B.setPlaybackRate(c)},Zi=ae(void 0),Sn=ae(!1),Mr=c=>{te({message:`start scrubbing, progress: ${c}`}),oe.log("start scrubbing",{progress:c}),Sn.set(!0),at(c)},at=c=>{Zi.set(c)},Ut,Mi,To=()=>{Zi.set(void 0),Sn.set(!1)},Se=()=>{clearTimeout(Mi),clearTimeout(Ut),Ut=window.setTimeout(()=>{To()},500),Ge==null||Ge.removeEventListener("seeked",Se)},Pt=c=>{te({message:`complete scrubbing, progress: ${c}`}),oe.log("complete scrubbing",{progress:c}),No(c,os.SLIDER),Ce(kt.ui.isMobile)&&Ce(kt.state.currentFormat$)===ad.HLS?(Ge==null||Ge.addEventListener("seeked",Se),Mi=window.setTimeout(()=>{Se()},300)):To()},gi=xi([co,wo,Zi],([c,x,N],ue)=>{ue(w2(N)?N*x:c)}),_i=ae(!1),mi=()=>{_i.set(!0)},ke=()=>{_i.set(!1)},bt=ae({width:0,height:0}),Kt=xi([bt],([{width:c}],x)=>{let N=Rh(c);x(N)}),Si=ae(!1),si=q.filter(c=>zg(c)),Ur=xi([Kt,Si],([c,x])=>x?si.filter(N=>!N.hideOnMobile):si.filter(N=>{var ue;return!((ue=N.hideOnDesktopGridTypes)!=null&&ue.includes(c))})),Fi=ae(q.filter(c=>qg(c))),Qn=xi([Fi,Kt],([c,x])=>c.filter(N=>{var ue;return!((ue=N.hideOnDesktopGridTypes)!=null&&ue.includes(x))})),Cs=xi([Qn,Ur],([c,x])=>[...se.features.additionalButtonsDesktopControlPanelRight?c.filter(N=>N.type==="desktop-control-panel-right"):[],...se.features.additionalButtons?x.map((N,ue)=>{var Ue;return{id:ue,weight:ue,type:"desktop-control-panel-right",testId:N.testId,icon:N.iconUrl,onClick:N.onClick,ariaLabel:(Ue=N.ariaLabel)!=null?Ue:N.tooltip,tooltipText:N.tooltip}}):[]]),Gn=ae(Q),va=xi([Gn],([c])=>se.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?{...x,onClick:x.onChangeEnabled}:x):[]),sl=(c,x)=>{let N=Ce(Fi).map(ue=>ue.id!==c?ue:{...ue,...x});Fi.set(N)},ga=c=>{let x=Ce(Fi);if(x.some(N=>N.id===c.id)){te({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Fi.set(x)},ha=c=>{let x=Ce(Fi);if(!x.some(N=>N.id===c)){te({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(N=>N.id!==c),Fi.set(x)},_a=c=>{tt.next(os.LIVE),te({message:"live switch to low latency "+c}),oe.log("live switch to low latency "+c),B.setLiveLowLatency(c)},al=(c,x)=>{let N=Ce(Gn).map(ue=>ue.id!==c?ue:{...ue,...x});Gn.set(N)},Ts=c=>{let x=Ce(Gn);if(x.some(N=>N.id===c.id)){te({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Gn.set(x)},ba=c=>{let x=Ce(Gn);if(!x.some(N=>N.id===c)){te({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),Gn.set(x)},lt=ae(H),$t=xi([lt],([c])=>se.features.additionalContextMenuItems?c:[]),Xi=(c,x)=>{let N=Ce(lt).map(ue=>ue.id!==c?ue:{...ue,...x});lt.set(N)},zo=c=>{let x=Ce(lt);if(x.some(N=>N.id===c.id)){te({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),lt.set(x)},Ji=c=>{let x=Ce(lt);if(!x.some(N=>N.id===c)){te({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),lt.set(x)},ci=xi([Si,Gt],([c,x],N)=>{N(c&&x)}),Li=()=>{tt.next(os.LIVE),te({message:"switch to active live"}),oe.log("switch to active live"),B.seekTime(0),B.info.playbackState$.getValue()!==sd.PLAYING&&kt.actions.internal.togglePlay()},Is=()=>{oe.log("skip adman"),le.skip()},$a=(c=!0)=>{Mn(kt),te({message:`switch from ads to video, callPlay: ${c}`}),oe.log("switch from ads to video",{callPlay:c}),_e.set("video"),c&&B.play()},mu=()=>{Mn(kt),te({message:"switch from video to ads"}),oe.log("switch from video to ads"),kt.actions.internal.pause(),Xe(),_e.set("ads")},Nd=c=>{Mn(kt);let x=c?"LiveWaitingStart":"thumb";oe.log("set live waiting start",{state:c,playerPhase:x}),_e.set(x)},vu=c=>{Mn(kt);let x=c?"LiveWaitingRecover":"thumb";oe.log("set live waiting recover",{state:c,playerPhase:x}),_e.set(x)},Bd=c=>{Mn(kt);let x=c?"LiveWaitingRecord":"thumb";oe.log("set live waiting record",{state:c,playerPhase:x}),_e.set(x)},gu=()=>(Mn(kt),oe.log("get debug text data"),Hg(B,Oe,kt,Me.getTraceId())),Dd=()=>(Mn(kt),JSON.stringify(Me.getFinishedSpans())),hu=()=>(Mn(kt),Fg(B,Oe,kt)),ks=()=>Ge,Od=()=>{te({message:"toggle chromecast"}),oe.log("toggle chromecast"),B.toggleChromecast()},ll=c=>{var N;if(Mn(kt),B.info.isEnded$.getValue())return;let x=!c;if(Ce(kt.playerPhase)==="ads"){te({message:`pause ads, internalCall: ${x}`}),oe.log("pause ads",{internalCall:x}),le.pause();return}te({message:`pause video, internalCall: ${x}`}),oe.log("pause video",{internalCall:x}),x&&((N=l==null?void 0:l.onPause)==null||N.call(l)),B.pause()},Hd=c=>{var N;Mn(kt);let x=!c;if(Ce(kt.playerPhase)==="ads"){te({message:`play ads, internalCall: ${x}`}),oe.log("play ads",{internalCall:x}),le.play();return}te({message:`play video, internalCall: ${x}`}),oe.log("play video",{internalCall:x}),x&&((N=l==null?void 0:l.onPlay)==null||N.call(l)),B.play()},Fd=c=>{Mn(kt);let x=!c;if(Ce(kt.playerPhase)==="ads"){te({message:"player cannot be stopped during ads via external method"});return}te({message:`player will be stopped, internalCall: ${x}`}),A==null||A()},Ud=(c,x)=>{Mn(kt),te({message:`first start, show ads: ${c}, internalCall: ${!x}`}),oe.log("first start",{showAds:c,external:x}),c?_e.set("ads"):(_e.set("video"),x?B.play():kt.actions.internal.togglePlay())},ya=()=>(te({message:"getting time codes"}),m),zd=()=>{let c=ya();if(!c||[0,1].includes(c.length))return;let x=B.info.position$.getValue();return c.find(N=>N.time>x)},_u=c=>{let x=c;x||(x=zd());let N=B.info.position$.getValue();oe.log("seek to next episode",{currentTime:N,...x}),x&&(te({message:"seek to next episode"}),Ro(x.time,os.EPISODE,!0))},qd=()=>{let c=ya();if(!c||[0,1].includes(c.length))return;let x=B.info.position$.getValue(),N=c.findIndex(Ue=>Ue.time>x),ue=N===-1?c.length-2:N-2;if(!(ue<0))return c[ue]},Fe=c=>{let x=c;x||(x=qd());let N=B.info.position$.getValue();oe.log("seek to prev episode",{currentTime:N,...x}),x&&(te({message:"seek to prev episode"}),Ro(x.time,os.EPISODE,!0))},ai=()=>(te({message:"getting preview thumbs data"}),oe.log("get preview thumbs data",{...b}),b),qo=async()=>{let c=ee==null?void 0:ee.isActive(),x="none";ee!=null&&ee.isActive()?(x="remove",await(ee==null?void 0:ee.remove())):(x="request",await(ee==null?void 0:ee.request())),oe.log("toggle picture in picture",{isActive:c,action:x})},Es=(c=-90)=>{oe.log("rotate video",{alphaDiff:c}),rt.update(x=>x+c)},fo=ae([]);T==null||T.subscribe(c=>{let x=[];for(let N=0;N<c.length;N++){let{range:[ue,Ue],subjects:wt}=c[N];N===0&&ue!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:ue/1e3,text:"",interactive:!0,completed:se.features.interactiveTimeOpenUri?!wt.length||wt.every(Bt=>Bt.isRemoved):!wt.length}),Ue!==1/0&&x.push({time:Ue/1e3,text:"",interactive:!1,completed:!0})}fo.set(x)});let A1=ae(!1);k==null||k.subscribe(c=>{c&&Ce(Sn)&&To()});let Dm=c=>{if(!C)return c;let x=Ce(fo),N=Ce(wo),Ue=Ce(ji)/N,wt=x.find(Bt=>Bt.interactive&&!Bt.completed&&Bt.time>Ue);return typeof(wt==null?void 0:wt.time)=="number"?Math.min(c,wt.time-.05):c},M1=()=>{kt.ui.episodes.panelOpened$.set(!1)},L1=()=>{oe.log("destroy store"),clearTimeout(Mi),clearTimeout(Ut),Qt.unsubscribe(),ti.unsubscribe(),B.destroy(),le.destroy(),de==null||de.destroy(),We==null||We.destroy(),_t.unsubscribe(),gt==null||gt.disconnect(),gt=null,we.destroy()},kt={interfaceLanguage$:It,isCyrillicRelatedInterface$:Vt,initVideo:Qe,videoId:i,isClip:o,playerPhase:re,vsid:Ve,state:{positionExact$:co,positionWithScrubbing$:gi,duration$:wo,playbackState$:en,isPlaying$:Vn,isLoaderVisible:qi,bufferedProgress$:Hn,isLive$:G,canChangePlaybackSpeed$:Xt,isActiveLive$:So,isOldestAvailableLive$:_n,isRewindableLive$:Ao,isEnded$:$o,muted$:li,volume$:Bi,trafficSavingEnabled$:ft,highQualityEnabled$:ui,autoQualityLimitingAvailable$:Ze,availableVideoStreams$:wr,availableAudioStreams$:tr,videoStream$:Rn,audioStream$:bn,currentQuality$:on,isAutoQualityEnabled$:yn,availableQualities$:nn,currentPlaybackRate$:rn,availablePlaybackRates$:sn,currentSubtitle$:Wi,availableTextTracks$:an,availableSubtitlesList$:Lo,currentSubtitleCaptions$:io,isAutoSubtitleCaptionVisible$:xn,chromecastState$:ii,chromecastDeviceName$:er,chromecastConnected$:tn,currentFormat$:yo,throughputEstimation$:Ho,videoBitrate$:di,videoSize$:xt,errorLog$:Ct,crashed$:Gt,isAudioAvailable$:Eo,isAudioDisabled:!!s,canDownload:se.features.download&&!!d,availableSources$:dn,hasMpegSources$:Sr,isInteractive:C,showInteractiveGraph:se.features.interactiveGraph,showSeekToInteractive:se.features.seekToInteractive,showPlayPrevChapter:se.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:se.features.interactiveTimeIndicator&&!!Ce(fo).length,interactiveEpisodes$:fo,isInteractiveTime$:k?ei(k):ae(!1),isInteractiveExpectation$:A1,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:V,looped$:Vo,loadedMetadata$:ae(!1),isAutoQualityAvailable$:or},ui:{t:O,controlsVisible:ae(!1),touched:ae(!1),controls:{prevButton:ae(void 0),playButton:ae(void 0),replayButton:ae(void 0),nextButton:ae(void 0),playPrevChapterButton:ae(void 0),seekToInteractiveButton:ae(void 0),interactiveGraphButton:ae(void 0),liveButton:ae(void 0),time:ae(void 0),episodes:ae(void 0),volume:ae(void 0),subtitles:ae(void 0),settings:ae(void 0),context:ae(void 0),chromecast:ae(void 0),pip:ae(void 0),fullscreen:ae(void 0),vkLogo:ae(void 0),interactiveTimeIndicator:ae(void 0),timeline:ae(void 0),autoplayNextToggle:ae(void 0),additionalButtons:q.length?q.reduce(c=>[...c,ae(void 0)],[]):[],disabledControls$:Ne},modals:{hotKeyMap:{show:ae(!1),data:ae({title:"",closeBtnText:"",groups:[]})}},isFullscreen:je,isFullscreenOpenedByKeyboard:dt,rotateAlpha:rt,isAutoplay:ae(!1),debugPanelVisible:ae(!1),episodes:{panelOpened$:ae(!1),openedByKeyboard$:ae(!1)},contextMenu:{visible$:ae(!1),btnRef$:ae(void 0),openedByBtnKeyboard$:ae(!1),openedByHotKey$:ae(!1),lastActiveElem$:ae(void 0),showContextMenuBtn$:ae(!1),position$:ae({top:0,left:0})},playerSize:bt,isMobile:Si,mobileNotReportControlHidden$:ci,mobileUnmuteButtonExpanded:ae(!1),mobileUnmuteButtonVisible:ae(!1),icon3DVideoVisible:ae(!1),scrubbingInProgress:Sn,volumeChangingInProgress:_i,is3DVideo:ae(!1),currentGridType$:Kt,additionalButtonsDeprecated$:Ur,additionalDesktopControlPanelRightButtons$:Cs,additionalSettingsMenuItems$:va,additionalContextMenuItems$:$t,interactiveHideMobileControls:ae(!1),overlayContainer$:ae(void 0),startedByKeyboard$:ae(!1),autoplayNextEnabled$:ae(!1),timerNextVideoRunning$:ae(!0),settingsMenu:{visible$:ae(!1),ref$:ae(void 0),openedByBtnKeyboard$:ae(!1)},settingsSubMenu:{visible$:ae(!1),ref$:ae(void 0),name$:ae(void 0)},aboutToGoNextVideo:ae(void 0),userActionsDisabled:ae(!1),hiddenControls:{volume:ae(!1)},isControlsAvailable:ae(!0)},ads:{position:ae(0),duration:ae(0),playbackState:ae("inactive"),canSkip:ae(!1),secondsToWatchBeforeSkip:ae(0),postrollPassed:ae(!1)},webApi:{pictureInPictureApi:ee,annotationsApi:me,slotsApi:j},actions:{internal:{preload:wi,firstStart:c=>Ud(c,!1),play:()=>Hd(!1),pause:()=>ll(!1),togglePlay:Ai,toggleMuted:Fn,openSettingsMenu:nr,closeSettingsMenu:Un,openSettingsSubMenu:wn,closeSettingsSubMenu:Tr,setVolume:rr,startVolumeChanging:mi,stopVolumeChanging:ke,setVideoStream:Nn,setAudioStream:ir,setQuality:vi,setTrafficSavingEnabled:hi,setHighQualityEnabled:Hi,setPlaybackRate:qn,incrementPlaybackRate:lr,decrementPlaybackRate:dr,setSubtitle:cr,toggleSubtitle:ur,togglePictureInPicture:qo,startScrubbing:Mr,progressScrubbing:at,completeScrubbing:Pt,toggleChromecast:Od,switchToActiveLive:Li,switchFromAdsToVideo:$a,switchFromVideoToAds:mu,skipAd:Is,setLiveWaitingStart:Nd,setLiveWaitingRecover:vu,setLiveWaitingRecord:Bd,getDebugTextData:gu,getTraceTextData:Dd,getDebugPanelData:hu,getVideoElement:ks,seekTime:(c,x,N)=>Ro(c,x,N),clearDelayedBufferingCheckTimeout:xo,seekEpisodeStartTime:kr,seekToPercent:No,getNextEpisode:zd,seekToNextEpisode:_u,getPrevEpisode:qd,seekToPrevEpisode:Fe,startLogging:Je,stopLogging:Zt,startCameraManualRotation:Ni,stopCameraManualRotation:zi,moveCameraFocusPX:At,holdCamera:ht,releaseCamera:Rt,getVideoEpisodes:ya,getPreviewThumbsData:ai,downloadVideo:Cr,addLanguage:Tp,setLanguage:ni,nextMovie:Ye,videoRotate:Es,correctSeekTimeToInteractive:Dm,replayInteractive:P,setLooped:Ti,reportProblem:sr,setAutoplayNextEnabled:mt,setTimerNextVideoRunning:Ft,prevVideoClick:Pi,nextVideoClick:Co,nextVideoAnnouncementShow:Nt,nextVideoAnnouncementClick:fi,nextVideoAnnouncementAuto:Oi,nextVideoAnnouncementCancel:po},external:{firstStart:c=>Ud(c,!0),play:()=>Hd(!0),pause:()=>ll(!0),stop:()=>Fd(!0),seekTime:c=>pr(c),seekEpisodeStartTime:c=>Pr(c),setPlaybackRate:c=>Ar(c),setAutoQualityLimits:c=>Er(c),setMuted:Ir,toggleSubtitle:ur,setVolume:rr,returnFocusToEpisodes:M1,updateAdditionalSettingsItem:al,addAdditionalSettingsItem:Ts,removeAdditionalSettingsItem:ba,updateAdditionalContextItem:Xi,addAdditionalContextItem:zo,removeAdditionalContextItem:Ji,updateAdditionalButton:sl,addAdditionalButton:ga,removeAdditionalButton:ha,setLiveLowLatency:_a,hideControls:()=>Kn(!1),showControls:()=>Kn(!0)}},callbacks:l,setUiCallbacks:c=>{$e={...c}},getAdmanWrapper:()=>le,getLogger:()=>be,getPlayer:()=>B,destroy:L1};return kt};function sa(t,e,i,o){var b;let n=["interactiveTimeIndicator"],a=(b=e[i])==null?void 0:b.getBoundingClientRect(),s=(o||n.includes(i))&&!!a&&!!(a.right-a.left),{top:d,left:l,bottom:p,right:m}=is(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 el=(t,e,i,o)=>{if(t)for(let[n,a]of Object.entries(e))["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(n)||a.set(sa(t,i,n,o))};var jc=async(t,e,i)=>{await go(),e&&i&&(i.focus(),t.set(!1))};var L2=xe('<svg><!><path fill="var(--btn-color, #fff)" d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"></path></svg>');function wf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=L2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(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 Sf(t,e){U(e,!0);let[i,o]=Re(),n=()=>S(l,"$contextMenuVisible$",i),a=f(e,"disabled",3,!1),s=f(e,"ariaLabel",3,""),d=Te(),l=d.ui.contextMenu.visible$,p=d.ui.contextMenu.openedByBtnKeyboard$,m=d.ui.contextMenu.showContextMenuBtn$,b=d.ui.contextMenu.position$,u=d.ui.contextMenu.btnRef$,_=X(void 0);He(()=>{r(_)&&yt(()=>{u.set(r(_))})});let w=k=>{let P=bs(k),A=Ih(r(_));b.set(A),p.set(P),l.set(!n())},y=()=>{m.set(!0)},C=()=>{m.set(!1)},T=v(()=>n()?"opened":"");Lt(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(k){D(_,fe(k))},children:(k,P)=>{wf(k,{})},$$slots:{default:!0}}),z(),o()}var V2=t=>{t.stopPropagation()},R2=L("<div><!> <div></div> <div></div></div>"),N2={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 pf(t,e){U(e,!0),K(t,F$);let i=f(e,"isMobile",3,!1),o=v(()=>e.iconState===Nh.CONNECTED),n=v(()=>e.iconState===Nh.CONNECTING);var a=Oe(),s=ue(a);{var d=p=>{var m=O$(),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=H$();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()}import{noop as z$}from"@vkontakte/videoplayer-shared/es2018";function od(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"isMobile",3,!1),n=f(e,"click",3,z$),s=Ce().ui.t,d=v(()=>e.state===U$.CONNECTED?s("tooltip_chromecast_on"):s("tooltip_chromecast_off"));Vt(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)=>{pf(l,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),z()}var q$=L('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),W$={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 ff(t,e){K(t,W$);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=q$(),$=h(u);let w;var b=h($);ve(b,()=>{var C;return(C=e.children)!=null?C:te}),g($),mt($,C=>D(p,C),()=>r(p)),g(u),mt(u,C=>D(l,C),()=>r(l)),E(C=>{nt(u,`transform: translate(${r(y)}px, ${a()}px);`),w=J($,1,"tooltip svelte-5ygsa2",null,w,C),nt($,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),_(t,u)}var Hc=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Dh=t=>!!(Math.round(Math.abs(t)/90)%2),Oh=t=>Math.abs(t)/90%4===1;var K$=L('<div class="preview svelte-1wqg760"></div>'),Q$=L('<div class="time svelte-1wqg760"> </div>'),G$=L('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),Y$={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 mf(t,e){U(e,!0),K(t,Y$);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),V=X(0),W=v(()=>Hc(m(),y(),p())),Y=v(()=>Dh(n())),F=v(()=>Oh(n())),Q=v(re),ie=v(()=>(r(F)?1:-1)*(r(C)/2-r(T)/2)),Z=v(()=>r(ie)*-1);Fe(()=>{(ae=>(D(C,pe(ae.width)),D(T,pe(ae.height))))(Ae())}),Fe(()=>{(ae=>(D(I,pe(ae.imgSrc)),D(M,pe(ae.imgWidth)),D(P,pe(ae.imgHeight)),D(k,pe(ae.imgOffsetX)),D(V,pe(ae.imgOffsetY))))(Me(m()))});function re(){var De;let ae=l()?s.MOBILE:s.DESKTOP,{isVertical:he}=le(),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),ae)}function le(){let ae=e.previewThumbsData.frameWidth,he=e.previewThumbsData.frameHeight,ee=he>ae;return{width:ae,height:he,isHorizontal:!ee,isVertical:ee}}function Ae(){let{height:ae,isHorizontal:he,isVertical:ee,width:De}=le();return he&&(ae=ae/De*r(Q),De=r(Q)),ee&&(De=De/ae*r(Q),ae=r(Q)),{width:De,height:ae}}function Me(ae){let he;e.previewThumbsData.isUV?he=Math.floor(y()*ae/e.previewThumbsData.frequency):he=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*ae)));let ee=Math.floor(he/e.previewThumbsData.countPerImage),De=Math.floor(he%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),je=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,dt=-je*r(C),ct=-De*r(T);return{imgSrc:e.previewThumbsData.links[ee],imgWidth:Ie,imgHeight:Ue,imgOffsetX:dt,imgOffsetY:ct}}var ge=G$();let se;var Ee=h(ge);{var ne=ae=>{var he=K$();E(()=>nt(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(V)}px;
|
|
229
|
+
transform: rotate(${n()}deg) ${r(Y)?`translate(${r(ie)}px, ${r(Z)}px)`:""};
|
|
230
|
+
`)),_(ae,he)};B(Ee,ae=>{r(I)&&ae(ne)})}var R=A(Ee,2),xe=h(R);{var _e=ae=>{var he=Oe(),ee=ue(he);{var De=we=>{var Ve=Rr();E(Ie=>me(Ve,Ie),[()=>q("tooltip_episode_unfinished")]),_(we,Ve)},je=we=>{var Ve=Rr();E(()=>me(Ve,r(W).text||"")),_(we,Ve)};B(ee,we=>{u()&&r(W).completed===!1?we(De):we(je,!1)})}_(ae,he)};B(xe,ae=>{r(W)&&ae(_e)})}g(R);var ze=A(R,2);{var H=ae=>{var he=Q$(),ee=h(he,!0);g(he),E(()=>me(ee,d())),_(ae,he)};B(ze,ae=>{u()||ae(H)})}g(ge),E(ae=>{se=J(ge,1,"timeline-preview svelte-1wqg760",null,se,ae),nt(ge,`width: ${r(Y)?r(T):r(C)}px;`)},[()=>({mobile:l()})]),_(t,ge),z(),o()}var j$=L('<span class="time svelte-1jr6obn"> </span>'),Z$=L("<!> <!>",1),X$={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 vf(t,e){var Ge,Le,ot,Ye,gt;U(e,!0),K(t,X$);let[i,o]=Ne(),n=()=>S(ie,"$interactiveEpisodes$",i),a=()=>S(k,"$duration$",i),s=()=>S(P,"$position$",i),d=()=>S(le,"$isInteractiveExpectation$",i),l=()=>S(re,"$isInteractiveTime$",i),p=()=>S(V,"$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=Ut(),M=T.state.bufferedProgress$,P=T.state.positionWithScrubbing$,k=T.state.duration$,V=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(),ie=T.state.interactiveEpisodes$,Z=T.state.isInteractive,re=T.state.isInteractiveTime$,le=T.state.isInteractiveExpectation$,Ae=T.actions.internal.correctSeekTimeToInteractive,Me=(Ge=T.callbacks)==null?void 0:Ge.onDisabledTimelineClick,ge=T.ui.controls.disabledControls$,se=(ot=(Le=T.callbacks)==null?void 0:Le.uiInfo)==null?void 0:ot.onTimelineMouseEnter,Ee=(gt=(Ye=T.callbacks)==null?void 0:Ye.uiInfo)==null?void 0:gt.onTimelineMouseLeave,ne=T.ui.t,R=I.features.interactiveResponsiveUi,xe=v(()=>Z?n():F),_e=v(()=>an(a())),ze=v(()=>an(s())),H=v(()=>s()/a()),ae=v(()=>d()||l()),he=X(!1),ee=X(""),De=X(0),je=X(0),we=X(0),Ve=v(()=>({containerWidth:r(je),translateXPx:r(De),translateYPx:Z&&Q?-36:-16,active:r(he)&&w()&&!r(ae)&&!R,pointer:!I.features.timelinePreview||!Q||p()})),Ie=ne("aria_timeline"),Ue=v(()=>ne("aria_timeline_value",{position:r(ze),duration:r(_e)}));function dt(st){return!Ae||!Z?st:Ae(st*a())/a()}function ct(st){T.actions.internal.startScrubbing(dt(st))}function it(st){l()||T.actions.internal.progressScrubbing(dt(st))}function Ct(st){T.actions.internal.completeScrubbing(dt(st)),D(he,!1)}function vt(st,Xe,zt){Et(st,Xe,zt),D(he,!0)}function Wt(st,Xe,zt){Et(st,Xe,zt),D(he,!0)}function ti(){D(he,!1)}function Et(st,Xe,zt){D(we,pe(dt(st))),D(De,pe(Xe)),zt&&D(je,pe(zt)),D(ee,pe(Rt(st)))}function Rt(st){let Xe=an((p()?1-st:st)*a());return p()?`-${Xe}`:Xe}var O=Z$(),be=ue(O);ff(be,Jr(()=>r(Ve),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(st,Xe)=>{var zt=Oe(),tt=ue(zt);{var ni=Je=>{mf(Je,{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})},yi=Je=>{var jt=j$(),Mi=h(jt,!0);g(jt),E(()=>me(Mi,r(ee))),_(Je,jt)};B(tt,Je=>{I.features.timelinePreview&&Q&&!p()?Je(ni):Je(yi,!1)})}_(st,zt)},$$slots:{default:!0}}));var oe=A(be,2);let Re=v(()=>Math.round(r(H)*100)),Ke=v(()=>$().has("TIMELINE"));ia(oe,{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:ct,onHandleMove:it,onPointerMove:Wt,onPointerUp:Ct,onPointerEnter:vt,onPointerLeave:ti,onMouseEnter:se,onMouseLeave:Ee,onDisabledClick:Me,isInteractive:Z,get disabled(){return r(Ke)},get hideHandel(){return l()},testId:"progress_bar",get ref(){return C()},set ref(st){C(st)}}),_(t,O),z(),o()}var J$={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 nd(t,e){U(e,!0),K(t,J$);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(()=>an(s())),y=v(()=>an(a())),u=v(()=>a()/s()),$=v(()=>p("aria_timeline_value",{position:r(y),duration:r(m)})),w=v(()=>Math.round(r(u)*100));ia(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 e2=L("<div><!></div>"),t2=L("<div></div>"),i2={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 oa(t,e){U(e,!0),K(t,i2);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=V=>{var W=e2();let Y;var F=h(W);{var Q=Z=>{nd(Z,{get position(){return s()},get duration(){return d()}})},ie=Z=>{vf(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(ie,!1)})}g(W),E(Z=>Y=J(W,1,"timeline svelte-41cp6d",null,Y,Z),[()=>({withoutPadding:!m(),mobile:a()})]),_(V,W)},k=V=>{var W=t2();let Y;E(F=>Y=J(W,1,"timeline-stub svelte-41cp6d",null,Y,F),[()=>({mobile:a()})]),_(V,W)};B(M,V=>{r(T)?V(P):V(k,!1)})}_(t,I),z(),o()}import{noop as r2}from"@vkontakte/videoplayer-shared/es2018";var o2=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 gf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=o2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$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 n2=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=n2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$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 s2=L('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),a2=L('<span class="text svelte-1yhs2ga"> </span>'),l2=L('<span class="text count svelte-1yhs2ga"> </span>'),d2=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 rd(t,e){var le,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=(le=y.callbacks)==null?void 0:le.onEpisodeChanged)!=null?Ae:r2,$=!!((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,R;if(!!((Ee=y.callbacks)!=null&&Ee.onEpisodeClicked)){let xe=_s(ge);b.set(xe),C.set(!0),(R=(ne=y.callbacks)==null?void 0:ne.onEpisodeClicked)==null||R.call(ne,xe)}},k=X(null),V=v(()=>l()/p());Fe(()=>{var se;let ge=Hc(r(V),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")&&Rh(n(),"xl")?"COUNT":"SHORT"),F=v(()=>`${I("tooltip_episodes")}: ${r(W)}`),Q=async(ge,se,Ee)=>{await _o(),(ge==null?void 0:ge.getAttribute("aria-expanded"))==="false"&&se&&!Ee&&yt(()=>{b.set(!1),ge.focus()})};Fe(()=>{Q(r(M),a(),s())});var ie=Oe(),Z=ue(ie);{var re=ge=>{let se=v(()=>d()?"px-0":"");Vt(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 R=Oe(),xe=ue(R);{var _e=H=>{var ae=s2(),he=ue(ae),ee=h(he,!0);g(he);var De=A(he,2),je=h(De);hf(je,{}),g(De),E(()=>me(ee,r(W))),_(H,ae)},ze=H=>{var ae=d2(),he=ue(ae);gf(he,{});var ee=A(he,2);{var De=we=>{var Ve=a2(),Ie=h(Ve,!0);g(Ve),E(()=>me(Ie,r(W))),_(we,Ve)},je=(we,Ve)=>{{var Ie=Ue=>{var dt=l2(),ct=h(dt,!0);g(dt),E(()=>me(ct,m().length)),_(Ue,dt)};B(we,Ue=>{r(Y)==="COUNT"&&Ue(Ie)},Ve)}};B(ee,we=>{r(Y)==="FULL"?we(De):we(je,!1)})}_(H,ae)};B(xe,H=>{d()?H(_e):H(ze,!1)})}_(Ee,R)},$$slots:{default:!0}})};B(Z,ge=>{r(k)&&ge(re)})}_(t,ie),z(),o()}import{debounceFn as cy}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as _2,PlaybackState as sd,Player as b2,PredefinedQualityLimits as Hr,VideoFormat as ad,clientChecker as $2}from"@vkontakte/videoplayer-core/es2018";import{assertNonNullable as Hn,getHighestQuality as y2,InterfaceLanguage as x2,isInvariantQuality as w2,isNonNullable as S2,loadVKLangPack as C2,Logger as T2,map as Kh,merge as I2,Observable as k2,Subject as Yc,Subscription as wf,TracerFactory as E2,ValueSubject as P2,VideoQuality as A2,devNull as M2,now as L2}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as is}from"@vkontakte/videoplayer-statistics/es2018";import{detectEmbed as u2,devNull as Gt,now as Yt}from"@vkontakte/videoplayer-shared/es2018";import{addScript as p2,Subject as Bo,clearVideoElement as f2}from"@vkontakte/videoplayer-shared/es2018";var Hh=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var m2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Fc=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 Bo,loadStarted$:new Bo,loadEnded$:new Bo,loadError$:new Bo,ready$:new Bo,slotRequested$:new Bo,started$:new Bo,timeRemained$:new Bo,paused$:new Bo,resumed$:new Bo,ended$:new Bo,empty$:new Bo,skipped$:new Bo,clicked$:new Bo,closed$:new Bo,error$:new Bo};this.loadAdman=e=>(Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[Yt()]}),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?(Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[Yt()]}),i(),this.events.loadEnded$.next()):(Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[Yt()]}),o())};p2(m2,e,this.loadTimeout).then(()=>{Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[Yt()]}),window.AdmanHTML?(Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[Yt()]}),i(),this.events.loadEnded$.next()):(Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[Yt()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout))}).catch(s=>{Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(s)],numbers:[Yt()]}),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?(Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[Yt()]}),i(),this.events.loadEnded$.next()):(Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[Yt()]}),o())},s=()=>{d=!0,o()},d=!1,l=window.setTimeout(()=>{Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[Yt()]}),s()},this.loadTimeout);e.addEventListener("abort",s),e.aborted&&(Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[Yt()]}),s()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[Yt()]}),!d&&(window.AdmanHTML?(Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[Yt()]}),i(),this.events.loadEnded$.next()):(Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[Yt()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout)))},s).finally(()=>{clearTimeout(n),clearTimeout(l),e.removeEventListener("abort",s)})});this.onAdsReady=()=>{Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[Yt()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[Yt(),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;Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),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;Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),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(Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[Yt()]}),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;Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),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;Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),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")=>{Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[Yt()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[Yt()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal,this.usePuid=i.usePuid}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var M;if(Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[Yt(),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}=u2(),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,...this.usePuid?{puid10:Hh(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){Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(P)],numbers:[Yt()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,a;if(Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[Yt()]}),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(Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),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(Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[Yt()]}),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(Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),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(Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),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(Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),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(Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[Yt()]}),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;Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[Yt()]}),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&&f2(this.videoElement),this.isDestroyed=!0}};var Fh=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 _f=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 Uc,{startTime:m,endTime:y}=p.parse(l);s.startTime=m,s.endTime=y}else if(l.trim()!==""){let p=new bf,{texts:m}=p.parse(l);s.texts=[...s.texts,...m]}(s.startTime||s.endTime)&&s.texts.length>0&&o.push(s)}return o}},Uc=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}},bf=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 Uc;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}},Uh=_f;import{isNonNullable as $f}from"@vkontakte/videoplayer-shared/es2018";var na,Ii,yf=0,xf=!1,zh="",qh=(t,e=0,i=0)=>t<e&&t<i,zc=(t,e=0,i=0)=>t>=e&&t<=i,v2=(t,e=0,i=0)=>t>e&&t>i,Wh=(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})=>zc(t,p,m));let a=t>=yf,s=t<yf;if(yf=t,s&&(xf=!1),$f(na)&&zc(t,na.startTime,na.endTime)&&zh===e.value)return na;if(!$f(Ii)&&(n!=null&&n.length)&&!xf){Ii=n.find(({startTime:p,endTime:m})=>zc(t,p,m)||a&&qh(t,p,m)),na=void 0,!$f(Ii)&&n[n.length-1].endTime<t&&(xf=!0);return}else{if(zc(t,Ii==null?void 0:Ii.startTime,Ii==null?void 0:Ii.endTime))return na=Ii,Ii=void 0,zh=e.value,na;(a&&v2(t,Ii==null?void 0:Ii.startTime,Ii==null?void 0:Ii.endTime)||s&&qh(t,Ii==null?void 0:Ii.startTime,Ii==null?void 0:Ii.endTime))&&(Ii=void 0)}};var qc={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"},g2={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"},Wc=t=>{var e,i;return(i=(e=qc[t])!=null?e:qc[g2[t]])!=null?i:void 0};import{Subscription as h2}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-statistics/es2018";var Kc=class{constructor(e,i=new h2){this.oneStat=e;this.statSubscription=i}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Qc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Qc||{});var Or=t=>t!=null?t:0,Xa=(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(Or(i==null?void 0:i.top)-Or(o==null?void 0:o.top)),left:Math.round(Or(i==null?void 0:i.left)-Or(o==null?void 0:o.left)),bottom:Math.round(Or(i==null?void 0:i.bottom)-Or(o==null?void 0:o.top)),right:Math.round(Or(i==null?void 0:i.right)-Or(o==null?void 0:o.left))}},Ja=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:Or(e==null?void 0:e.width),height:Or(e==null?void 0:e.height)}};var Gc="off";var Qh=({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:V,additionalButtons:W,additionalSettingsMenuItems:Y,additionalContextMenuItems:F,playPrevVideo:Q,playNextVideo:ie,looped:Z=!1,statistics:re,saveRate:le,internalsExposure:Ae,playerView:Me})=>{var Hm,Fm,Um;let ge={...$,configName:[...(Hm=$.configName)!=null?Hm:[],"ui"],isAudioDisabled:s,live:{...(Fm=$.live)!=null?Fm:{},isLiveCatchUpMode:!!n}},se=u,Ee=E2.createRootTracer(se.features.tracer),ne=Ee.createComponentTracer("Store"),R=w||new b2(ge,Ee);Ae==null||Ae.expose({corePlayer:R});let xe=new T2,_e=new Fc(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,usePuid:se.ads.usePuid}),ze=Qs.getInstance(),H=p==null?void 0:p.pictureInPictureApi,ae=p==null?void 0:p.annotationsApi,he=p==null?void 0:p.slotsApi,ee=xe.createComponentLog("Store"),De,je,we={},Ve=new _c,Ie=re?Jt(re.oneStat.vsid$):sr(void 0),Ue=ce(vs()),dt=ce(!1),ct=(Um=H==null?void 0:H.info.isActive$)!=null?Um:new P2(!1),it=ce(0),Ct=ce([]),vt=I2(R.events.fatalError$,R.events.managedError$).subscribe(c=>Ct.update(x=>[...x,c])),Wt=sr(!1,c=>{let x=R.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),ti=async c=>{var de;let x=Object.values(x2).includes(c);if(se.downloadVKLanguages&&(x&&se.updateBuiltinLanguages||!kp(c))){let We;try{We=await C2(c,Ag,Mg)}catch(wt){(de=re==null?void 0:re.oneStat)==null||de.logError({errorType:"VKLangPack",fatal:!1}),ze==null||ze.report(wt,{errorType:"VKLangPack",fatal:!1})}We&&(Ip({language:c,pack:We,fallback:se.defaultLanguage}),Et.set(c))}kp(c)&&Et.set(c)},Et=ce(t),Rt=ce(e);ti(t);let O=(c,x)=>{let N=Se(Et);return Ep(N,c,x,se.defaultLanguage)},be=ce("thumb"),oe=(()=>{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 de=[...N];return new Set(Array.isArray(x)?de.filter(We=>!x.includes(We)):de.filter(We=>We!==x))})},includes:x=>{let N=Se(c);return Array.isArray(x)?x.every(de=>N.has(de)):N.has(x)}}})();ne.log("create store"),ee({message:"create store"});let Ke=c=>{let x=c.container;x.append(R.experimental.element$.getValue()),Xe=new MutationObserver(N=>{let{removedNodes:de}=N[0];de.length&&x.append(R.experimental.element$.getValue())}),Xe.observe(x,{childList:!0})},Ge=c=>{ee({message:`init video, config: ${JSON.stringify(c)}`}),C?Ke(c):(M2.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[L2()]}),R.initVideo(c)),ne.log("init video",{isInteractive:C}),c.subtitles&&R.setExternalTextTracks(c.subtitles),De=c},Le=new Yc,ot=c=>Le.next(c),Ye=new Yc,gt=new Yc,st=new Yc,Xe=null,zt={actionRewind$:Ye,actionSeek$:gt,inPiP$:ct,inFullscreen$:new k2(c=>Ue.subscribe(x=>c.next(x))),actionSetSubtitle$:st,nextMovie$:Le};if(re){let{oneStat:c,statSubscription:x}=re;C||x.add(c.attachTo(R)),x.add(c.attachToUi(zt)),x.add(c.attachToAds(_e.events)),c.authorize(a).catch(N=>{ee({message:`onestat auth error ${String(N)}`})})}if(ze){let c=new wf,x=(N,de)=>c.add(N.subscribe(de));if(x(R.events.managedError$,N=>{ze.logIError(N)}),x(R.events.fatalError$,N=>{ze.logIError(N,!0)}),re){let{oneStat:N}=re;x(N.experimental.error$,de=>{ze.logIError(de)})}ze.sentrySubscription.add(c)}let tt=()=>{$2.device.isIOS&&je&&vh(je).catch(c=>{ee({message:`exitIosSafariFullscreen failed: ${c}`})})},ni=new wf().add(R.experimental.element$.subscribe(c=>{c&&(je=c,c.classList.add("player-media"),Ys(H)&&(H.updateVideoElement(),H.registryEventHandlers()),C&&c.setAttribute("pip","false"),Me==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(R.events.ended$.subscribe(()=>{var c;tt(),(c=l==null?void 0:l.onEnded)==null||c.call(l)})).add(R.events.looped$.subscribe(()=>{var c;(c=l==null?void 0:l.onLooped)==null||c.call(l)})).add(R.events.started$.subscribe(async()=>{var x,N;Ys(H)&&await(H==null?void 0:H.revealPictureInPicture());let c=R.info.muted$.getValue();(x=l==null?void 0:l.onStarted)==null||x.call(l),(N=we.onStarted)==null||N.call(we,c)})).add(R.events.willSeek$.subscribe(({from:c,to:x})=>{var N;(N=l==null?void 0:l.onSeek)==null||N.call(l,c,x)})).add(R.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=l==null?void 0:l.onAutoplaySoundProhibited)==null||c.call(l)})).add(R.info.position$.subscribe(c=>{var N;let x=R.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(R.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(R.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(R.events.loadedMetadata$.subscribe(()=>{It.state.loadedMetadata$.set(!0)})).add(R.info.is3DVideo$.subscribe(c=>{It.ui.is3DVideo.set(c)})).add(R.info.isEnded$.subscribe(c=>{C&&(c?(I!=null&&I.getValue()&&Re.add(Vl),Re.add("PLAY_BUTTON")):Re.remove("PLAY_BUTTON"))})).add(R.info.liveTime$.subscribe(c=>{var x;(x=l==null?void 0:l.onLiveTime)==null||x.call(l,c)})).add(R.info.isStalled$.subscribe(c=>{var x;(x=l==null?void 0:l.onStalledChanged)==null||x.call(l,c)})).add(R.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)})),yi=new wf,Je=()=>{var wt,Dt,qt;let{debugLog:c}=se,x,N="#9df7b7",de="#efd169";if(c&&c!==!0){let{colors:Ot}=c;x=c.tag,N=(wt=Ot==null?void 0:Ot[0])!=null?wt:N,de=(qt=(Dt=Ot==null?void 0:Ot[1])!=null?Dt:Ot==null?void 0:Ot[0])!=null?qt:de}let We=x?`: ${x}`:"";yi.add(R.events.log$.subscribe(Ot=>{console.debug(`%c sdk${We} `,`background:${N};`,`sdk component: ${Ot.component}`,Ot.message)})).add(xe.log$.subscribe(Ot=>{console.debug(`%c ui${We} `,`background:${de};`,`ui component: ${Ot.component}.`,Ot.message)}))},jt=()=>{yi.unsubscribe()},Mi=(c,x)=>{ne.log("start camera manual rotation",{mx:c,my:x}),R.startCameraManualRotation(c,x)},Wi=(c=!1)=>{ne.log("stop camera manual rotation",{immediate:c}),R.stopCameraManualRotation(c)},At=(c,x,N)=>{ne.log("move camera focus px",{xpx:c,ypx:x,dt:N}),R.moveCameraFocusPX(c,x,N)},_t=()=>{R.holdCamera()},Bt=()=>{R.releaseCamera()},ro=sr(R.info.position$.getValue(),c=>{let x,N,de=()=>{let We=R.info.playbackState$.getValue(),wt=R.info.isLive$.getValue(),Dt=R.info.duration$.getValue(),qt=R.info.position$.getValue();if(We&&[sd.PLAYING,sd.PAUSED].includes(We)){let Ot=wt?qt-Dt:R.getExactTime();Ot!==N&&c(Ot),N=Ot}x=requestAnimationFrame(de)};return de(),()=>cancelAnimationFrame(x)}),ln=Jt(R.info.playbackState$),Yi=Jt(R.info.currentBuffer$),xo=Jt(R.info.isEnded$),j=Jt(R.info.isLive$),Zt=se.features.playbackRate?Jt(R.info.canChangePlaybackSpeed$):sr(!1),gi=Jt(R.info.liveBufferTime$),Li=Jt(R.info.volume$),ai=Jt(R.info.muted$),ut=bc(R.info.predefinedQualityLimitType$.pipe(Kh(c=>c===Hr.TRAFFIC_SAVING)),R.info.predefinedQualityLimitType$.getValue()===Hr.TRAFFIC_SAVING),mi=bc(R.info.predefinedQualityLimitType$.pipe(Kh(c=>c===Hr.HIGH_QUALITY)),R.info.predefinedQualityLimitType$.getValue()===Hr.HIGH_QUALITY),Ze=Jt(R.info.autoQualityLimitingAvailable$),Mt=Jt(R.info.availableQualities$),so=Jt(R.info.availableQualitiesFps$),Xt=Jt(R.info.chromecastState$),Fn=Jt(R.info.chromecastDeviceName$),ji=Jt(R.info.currentFormat$),Eo=Jt(R.info.throughputEstimation$),ui=Jt(R.info.videoBitrate$),xt=Jt(R.info.intrinsicVideoSize$),Vi=Jt(R.info.duration$),Do=Jt(R.info.isAudioAvailable$),pi=null,Oo=R.info.isBuffering$,Ni=sr(Oo.getValue(),c=>{let x=Oo.subscribe(N=>{N&&pi===null?pi=window.setTimeout(()=>{c(Oo.getValue()),pi=null},se.loaderDelay):c(N)});return()=>{x.unsubscribe(),pi&&clearTimeout(pi)}}),wo=()=>{pi&&clearTimeout(pi),pi=null},Di=$i([Vi,j],([c,x])=>x?-c:c),Un=$i([ln],([c])=>c===sd.PLAYING),ao=Jt(R.info.atLiveEdge$),Tn=Jt(R.info.atLiveDurationEdge$),Po=Jt(R.info.position$),Ao=$i([Po,Vi],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),In=$i([Xt],([c])=>c===_2.CONNECTED),Cr=Jt(R.info.availableVideoStreams$),lr=se.features.audioLanguages?Jt(R.info.availableAudioStreams$):sr([]),kn=Jt(R.info.currentVideoStream$),dn=Jt(R.info.currentAudioStream$),zn=c=>{c.language&&Tp(c.language),R.setVideoStream(c)},pt=c=>{c.language&&Tp(c.language),R.setAudioStream(c)},lo=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=th();return N&&(x=c.find(({language:de})=>N===de)),x!=null||(x=c.at(0)),x},Ho=!1;ni.add(R.info.availableAudioStreams$.subscribe(c=>{if(!Ho&&c.length){let x=lo(c);x&&(R.setAudioStream(x),Ho=!0)}}));let En=!1;ni.add(R.info.availableVideoStreams$.subscribe(c=>{if(!En&&c.length){let x=lo(c);x&&(R.setVideoStream(x),En=!0)}}));let Mo=ce(void 0),Fo=Jt(R.info.isAutoQualityEnabled$,c=>c&&Mo.set(void 0)),qn=Jt(R.info.currentQuality$,()=>Mo.set(void 0)),Lo=$i([Mo,qn],([c,x])=>c!=null?c:x),Wn=$i(ji,c=>c!==ad.MPEG),cn=$i([Mt,so,Fo,Lo,Wn],([c,x,N,de,We])=>{let wt=[];We&&wt.push({value:"auto",displayValue:O("auto_quality_option"),selected:N});let Dt=c.filter(qt=>!w2(qt));for(let qt of Dt){let Ot=x[qt];wt.push({value:qt,displayValue:`${qt}${Ot?Fh(Ot):""}`,selected:N?!1:qt===de})}return wt}),Kn=Jt(R.info.currentPlaybackRate$),Uo=$i([Kn,ao,Tn],([c,x,N])=>{let de=N||C?1:se.controls.playbackRateMin,We=x?1:se.controls.playbackRateMax,wt=se.controls.playbackRateStep,Dt=[];for(let qt=de;qt<=We;qt+=wt)Dt.push({value:qt,displayValue:qt===1?O("playback_rate_1"):O("playback_rate",{multiplier:qt.toString(10)}),selected:c===qt});return Dt}),co={displayValue:O("subtitles_off"),value:Gc},Si=ce({...co}),un=se.features.subtitles?Jt(R.info.availableTextTracks$):sr([]),pn=Kg(),zo=$i([un,Si],([c,x],N)=>{var wt;let de=[],We=c.find(({id:Dt})=>Dt===x.value);if(We!=null&&We.url){let[,Dt]=(wt=pn.find(We.url))!=null?wt:[];if(Dt){N(Dt);return}Ve.download(We.url).then(qt=>{if(!qt||Ve.isDestroyed())return;let Ot=new Uh,ss=We.language;if(ss){let R1=!!We.isAuto,B1=Ot.parse(qt,ss);de.push({lang:ss,subtitles:B1,isAuto:R1,id:We.id})}pn.add(We.url,de),Se(Si).value===x.value&&N(de)}).catch(qt=>{var Ot;(Ot=re==null?void 0:re.oneStat)==null||Ot.logError({errorType:"Subtitles download",fatal:!1}),ze==null||ze.report(qt,{errorType:"Subtitles download",fatal:!1})})}N(de)}),uo=$i([Kn,Un,Si],([c,x,N],de)=>{let Dt;if(R.info.isLive$.getValue()&&x&&N.value!==co.value){let Ot=()=>{let ss=1e3/(3*c);Dt=setTimeout(Ot,ss),de(Date.now())};return Ot(),()=>clearTimeout(Dt)}}),Pn=$i([un,Si],([c,x])=>{if(!c.length)return[];let N=[];for(let{language:de,isAuto:We,id:wt}of c){let Dt=de&&Wc(de);de&&Dt&&N.push({displayValue:We?O("subtitles_auto",{language:Dt}):Dt,value:wt,selected:(x==null?void 0:x.value)===wt,isAuto:We})}return N.length?(N.unshift({...co,selected:(x==null?void 0:x.value)===co.value}),N):[]}),So={available:[],prev:[]},Oi=()=>{var x,N;let c=R.experimental.getCurrentTime$.getValue();return(N=(x=c==null?void 0:c())!=null?x:je==null?void 0:je.currentTime)!=null?N:0},dr=$i([ro,Si,zo,uo],([c,x,N,de])=>{var wt;let We=R.info.isLive$.getValue();if(We&&So.prev!==N){let Dt=N.find(({id:Ot})=>Ot===x.value),qt=So.prev.find(({id:Ot})=>Ot===x.value);if(Dt){let Ot={...Dt,subtitles:[...(wt=qt==null?void 0:qt.subtitles)!=null?wt:[],...Dt.subtitles]};So.available=[Ot],So.prev=N}}if(x&&x.value!==co.value){let Dt=We?Oi():c,qt=We?So.available:N;return Wh(Dt,x,qt,We)}}),Vo=$i([dr],([c])=>c!=null&&c.texts?c.texts:[]);ni.add(Si.subscribe(c=>{var x,N;if(c.value===co.value)(x=l==null?void 0:l.onSubtitleOff)==null||x.call(l);else{let de=Object.entries(qc).find(([We,wt])=>wt===c.displayValue);(N=l==null?void 0:l.onSubtitleOn)==null||N.call(l,de?de[0]:"")}}));let Qn=ce(!0),An=$i([Yi,Di,Po,gi],([c,x,N,de])=>{var qt;let We=(qt=c==null?void 0:c.end)!=null?qt:0;if(!de)return We/x;let Dt=-N+de-x;return(We-Dt)/x}),Gn=Jt(R.info.availableSources$),cr=$i([Gn],([c])=>Object.keys((c==null?void 0:c[ad.MPEG])||{}).length>0),fn=()=>{var N,de,We;let c=Object.keys(((de=(N=R.info.availableSources$)==null?void 0:N.getValue())==null?void 0:de[ad.MPEG])||{}),x=y2(c)||A2.Q_144P;return(We=De.sources[ad.MPEG])==null?void 0:We[x]},Tr=()=>{var x;let c=fn();if(c)ne.log("download video",{url:c}),zg(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})}},ur=()=>{ee({message:"toggle muted"});let c=R.info.muted$.getValue();R.info.volume$.getValue()===0&&!c?ft(Qt()):Nt(!c)},Yn=()=>{var c;if(It.ui.settingsMenu.visible$.set(!1),!Se(It.ui.settingsSubMenu.visible$)){let x=Se(It.ui.settingsMenu.ref$);if((c=l==null?void 0:l.uiInfo)!=null&&c.onSettingsMenu&&x){let de=Ja(x),We={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:de,position:We,name:"settings"})}}ne.log("close settings menu")},Ir=async(c,x=()=>Promise.resolve())=>{var We;It.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),It.ui.settingsMenu.visible$.set(!0),await x();let N=Se(It.ui.settingsMenu.ref$),de=Is();if((We=l==null?void 0:l.uiInfo)!=null&&We.onSettingsMenu&&N&&de){let Dt=Ja(N),qt=Xa(N,de);l.uiInfo.onSettingsMenu({visible:!0,size:Dt,position:qt,name:"settings"})}ne.log("open settings menu",{wasOpenedByKeyboard:c})},kr=(c,x=!1)=>{var wt;It.ui.settingsSubMenu.visible$.set(!1);let N=Se(It.ui.settingsMenu.ref$),de=Is(),We=Se(It.ui.settingsMenu.visible$);if((wt=l==null?void 0:l.uiInfo)!=null&&wt.onSettingsMenu&&N&&de)if(We&&!x){let qt=Ja(N),Ot=Xa(N,de);l.uiInfo.onSettingsMenu({visible:!0,size:qt,position:Ot,name:"settings"})}else{let qt=Ja(c),Ot={top:0,left:0,bottom:0,right:0},ss=Se(It.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:qt,position:Ot,name:ss})}ne.log("close settings sub menu")},mn=(c,x)=>{var de;It.ui.settingsSubMenu.visible$.set(!0),It.ui.settingsSubMenu.ref$.set(x),It.ui.settingsSubMenu.name$.set(c);let N=Is();if((de=l==null?void 0:l.uiInfo)!=null&&de.onSettingsMenu&&x&&N){let wt=Ja(x),Dt=Xa(x,N);l.uiInfo.onSettingsMenu({visible:!0,name:c,size:wt,position:Dt})}ne.log("open settings sub menu",{name:c})},Qt=()=>{var x;let c=Math.max(se.volumeMinRestore,(x=$c())!=null?x:0);return c===0?se.volumeDefault:c},ft=c=>{let x=c===0?Qt():c,N=R.info.muted$.getValue();ee({message:`set volume, volume: ${c}, preferredVolume: ${x}`});let de=!s||oe.is("ads");N&&c>0&&de&&(N=!1,Sp(!1)),R.setVolume(c,N),_e.setVolume(c),bp(x)},Nt=c=>{let x=R.info.volume$.getValue();if(ee({message:`set muted, currentVolume: ${x}, mute: ${c}`}),R.setMuted(c,oe.is("ads")),_e.setVolume(c?0:x),Sp(c),!c&&x===0){let N=Qt();R.setVolume(N),bp(N),_e.setVolume(N)}},li=ce(!1),ri=c=>{var x,N;ne.log("set looped",{isLooped:c}),li.set(c),R.setLooped(c),(N=(x=l==null?void 0:l.uiInfo)==null?void 0:x.onLoopedChanged)==null||N.call(x,c)};ri(Z);let po=()=>{var c,x;(x=(c=l==null?void 0:l.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},Co=(c,x=!1)=>{var N;ee({message:`set autoplayNextEnabled, value: ${c}`}),ne.log("set autoplay next enabled",{autoplayNextEnabled:c}),It.ui.autoplayNextEnabled$.set(c),nh(c),x&&((N=l==null?void 0:l.onSetAutoplayNextEnabled)==null||N.call(l,c))},To=c=>{ee({message:`set timerNextVideoRunning, value: ${c}`}),ne.log("set timer next video running",{timerNextVideoRunning:c}),It.ui.timerNextVideoRunning$.set(c)},qo=(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(We){ee({message:"onPrevVideoClick callback failed to execute"})}if(!x)return;c&&et("prev")||Q()},Wo=(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(We){ee({message:"onNextVideoClick callback failed to execute"})}if(!x)return;c&&et("next")||ie()},et=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:N,playbackStatusShow:de}}=se;return N&&de&&!x?(It.ui.aboutToGoNextVideo.set(c),It.ui.userActionsDisabled.set(!0),!0):!1},Pt=()=>{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)},Hi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementAuto)==null||c.call(l)},Ki=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementCancel)==null||c.call(l)},vn=()=>{R.prepare()},gn=()=>{Hn(It);let c=Se(It.ui.controls.disabledControls$),x=Se(It.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 de=()=>{var wt;ee({message:"toggle play, call player.play"}),N.action="play",R.play(),(wt=l==null?void 0:l.onPlay)==null||wt.call(l)},We=()=>{var wt;ee({message:"toggle play, call player.pause"}),N.action="pause",R.pause(),(wt=l==null?void 0:l.onPause)==null||wt.call(l)};if(R.info.isEnded$.getValue()){if(ee({message:"toggle play, video ended, seek to 0"}),Ye.next(),gt.next(is.REWIND),C){M==null||M();return}R.seekTime(0),de()}else R.info.playbackState$.getValue()!==sd.PLAYING?de():We();ne.log("toggle play",N)},Fi=(c,{changeReason:x="default",appliesTo:N="to-video"}={})=>{ee({message:`set quality, quality: ${c}`}),ne.log("set quality",{quality:c}),R.setAutoQuality(c==="auto"),c!=="auto"?(se.features.qualityDetailsSubMenuEnabled?(yc({type:"exact_quality",quality:c,videoId:i},N),Bl(),R.setPredefinedQualityLimits(Hr.UNKNOWN)):$p(i,c),Mo.set(c),R.setQuality(c)):se.features.qualityDetailsSubMenuEnabled?x==="default"&&(Er("auto_quality",N),Se(ut)&&ki(!1),Se(mi)&&Ko(!1)):Bl()},ki=(c,x="as-default")=>{ee({message:`set trafficSavingEnabled, value: ${c}`}),ne.log("set traffic saving enabled",{trafficSavingEnabled:c});let N=c?Hr.TRAFFIC_SAVING:Hr.UNKNOWN;se.features.qualityDetailsSubMenuEnabled?(jn(N,x),Rl(!1)):(R.setPredefinedQualityLimits(N),Rl(c))},Ko=(c,x="as-default")=>{ee({message:`set highQualityEnabled, value: ${c}`}),ne.log("set high quality enabled",{highQualityEnabled:c}),jn(c?Hr.HIGH_QUALITY:Hr.UNKNOWN,x)},jn=(c,x)=>{c!==Hr.UNKNOWN&&(Se(Ze)&&!Se(Fo)&&Fi("auto",{appliesTo:x,changeReason:"limit-changed"}),Er(c,x)),R.setPredefinedQualityLimits(c)},Er=(c,x)=>{yc({type:c,videoId:i},x),x==="as-default"&&yc({type:c,videoId:i},"to-video")},Qo=c=>{ne.log("set playback rate",{playbackRate:c}),R.setPlaybackRate(c),se.features.saveRate&&le&&!R.info.isLive$.getValue()&&ih(c)},pr=()=>{let c=Se(Uo),x=c.findIndex(({selected:de})=>de);if(x===c.length-1)return;let N=c[x+1];Qo(N.value)},Zn=()=>{let c=Se(Uo),x=c.findIndex(({selected:de})=>de);if(x===0)return;let N=c[x-1];Qo(N.value)},fr=(c={...co,selected:!1})=>{ne.log("set subtitles",{...c}),c&&c.value!==co.value&&st.next(c.isAuto?c.value+"_auto":c.value),Si.set(c)},Xn=()=>{ne.log("toggle subtitles");let c=Se(Pn),x=Se(Si),N=Se(Et);if((x==null?void 0:x.value)===co.value){let de=c.filter(We=>We.value!==co.value).find(We=>We.value===N)||c[1];fr(de)}else fr()},Pr=ce(!0),Jn=c=>{Pr.set(c)},Go=(c,x,N=!0)=>{var de;if(ee({message:`seek to time, time: ${c}`}),ne.log("seek to time",{time:c,action:x,forcePrecise:N}),gt.next(x),R.info.isLive$.getValue()){let We=R.info.duration$.getValue(),wt=Math.min(0,We+c);R.seekTime(wt,N)}else{if(I!=null&&I.getValue())return;R.info.isEnded$.getValue()&&(ee({message:"seek after ended, call callbacks.onPlay"}),(de=l==null?void 0:l.onPlay)==null||de.call(l)),R.seekTime(Om(c),N)}},Ar=c=>{ee({message:`seek to episode start time: ${c}`}),ne.log("seek to episode start time",{time:c}),Go(c,is.EPISODE,!0)},Yo=(c,x)=>{ee({message:`seek to percent, percent: ${c}`}),ne.log("seek to percent",{percent:c,action:x});let N=Se(Di)*c;Go(N,x,!1)},mr=c=>{ee({message:`seek external, time: ${c}`}),ne.log("seek external",{time:c}),gt.next(is.UNKNOWN),R.seekTime(R.info.isLive$.getValue()?-c:c)},Fr=c=>{var de,We;let x=(de=c.max)!=null?de:"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}),R.setAutoQualityLimits(c)},at=c=>{ee({message:`seek external to episode start time: ${c}`}),ne.log("seek external to episode start time",{time:c}),Go(c,is.EPISODE,!0)},Kt=c=>{ee({message:`set playback rate to: ${c}`}),ne.log("set playback rate external",{playbackRate:c}),R.setPlaybackRate(c)},ii=ce(void 0),fo=ce(!1),hn=c=>{ee({message:`start scrubbing, progress: ${c}`}),ne.log("start scrubbing",{progress:c}),fo.set(!0),er(c)},er=c=>{ii.set(c)},_n,Mn,xi=()=>{ii.set(void 0),fo.set(!1)},fe=()=>{clearTimeout(Mn),clearTimeout(_n),_n=window.setTimeout(()=>{xi()},500),je==null||je.removeEventListener("seeked",fe)},$t=c=>{ee({message:`complete scrubbing, progress: ${c}`}),ne.log("complete scrubbing",{progress:c}),Yo(c,is.SLIDER),Se(It.ui.isMobile)&&Se(It.state.currentFormat$)===ad.HLS?(je==null||je.addEventListener("seeked",fe),Mn=window.setTimeout(()=>{fe()},300)):xi()},di=$i([ro,Di,ii],([c,x,N],de)=>{de(S2(N)?N*x:c)}),fi=ce(!1),wi=()=>{fi.set(!0)},He=()=>{fi.set(!1)},Lt=ce({width:0,height:0}),oi=$i([Lt],([{width:c}],x)=>{let N=Bh(c);x(N)}),Zi=ce(!1),mo=W.filter(c=>qg(c)),Ur=$i([oi,Zi],([c,x])=>x?mo.filter(N=>!N.hideOnMobile):mo.filter(N=>{var de;return!((de=N.hideOnDesktopGridTypes)!=null&&de.includes(c))})),Ri=ce(W.filter(c=>Wg(c))),tr=$i([Ri,oi],([c,x])=>c.filter(N=>{var de;return!((de=N.hideOnDesktopGridTypes)!=null&&de.includes(x))})),Ss=$i([tr,Ur],([c,x])=>[...se.features.additionalButtonsDesktopControlPanelRight?c.filter(N=>N.type==="desktop-control-panel-right"):[],...se.features.additionalButtons?x.map((N,de)=>{var We;return{id:de,weight:de,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}}):[]]),ir=ce(Y),ma=$i([ir],([c])=>se.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?{...x,onClick:x.onChangeEnabled}:x):[]),sl=(c,x)=>{let N=Se(Ri).map(de=>de.id!==c?de:{...de,...x});Ri.set(N)},va=c=>{let x=Se(Ri);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),Ri.set(x)},ga=c=>{let x=Se(Ri);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),Ri.set(x)},ha=c=>{gt.next(is.LIVE),ee({message:"live switch to low latency "+c}),ne.log("live switch to low latency "+c),R.setLiveLowLatency(c)},al=(c,x)=>{let N=Se(ir).map(de=>de.id!==c?de:{...de,...x});ir.set(N)},Cs=c=>{let x=Se(ir);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),ir.set(x)},_a=c=>{let x=Se(ir);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),ir.set(x)},lt=ce(F),bt=$i([lt],([c])=>se.features.additionalContextMenuItems?c:[]),Qi=(c,x)=>{let N=Se(lt).map(de=>de.id!==c?de:{...de,...x});lt.set(N)},jo=c=>{let x=Se(lt);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),lt.set(x)},Gi=c=>{let x=Se(lt);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),lt.set(x)},ci=$i([Zi,Wt],([c,x],N)=>{N(c&&x)}),Ei=()=>{gt.next(is.LIVE),ee({message:"switch to active live"}),ne.log("switch to active live"),R.seekTime(0),R.info.playbackState$.getValue()!==sd.PLAYING&&It.actions.internal.togglePlay()},Ts=()=>{ne.log("skip adman"),_e.skip()},ba=(c=!0)=>{Hn(It),ee({message:`switch from ads to video, callPlay: ${c}`}),ne.log("switch from ads to video",{callPlay:c}),be.set("video"),c&&R.play(),s&&Nt(!0)},vu=()=>{Hn(It),ee({message:"switch from video to ads"}),ne.log("switch from video to ads"),It.actions.internal.pause(),tt(),be.set("ads")},Bd=c=>{Hn(It);let x=c?"LiveWaitingStart":"thumb";ne.log("set live waiting start",{state:c,playerPhase:x}),be.set(x)},gu=c=>{Hn(It);let x=c?"LiveWaitingRecover":"thumb";ne.log("set live waiting recover",{state:c,playerPhase:x}),be.set(x)},Nd=c=>{Hn(It);let x=c?"LiveWaitingRecord":"thumb";ne.log("set live waiting record",{state:c,playerPhase:x}),be.set(x)},hu=()=>(Hn(It),ne.log("get debug text data"),Fg(R,De,It,Ee.getTraceId())),Dd=()=>(Hn(It),JSON.stringify(Ee.getFinishedSpans())),_u=()=>(Hn(It),Ug(R,De,It)),Is=()=>je,Od=()=>{ee({message:"toggle chromecast"}),ne.log("toggle chromecast"),R.toggleChromecast()},ll=c=>{var N;if(Hn(It),R.info.isEnded$.getValue())return;let x=!c;if(Se(It.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)),R.pause()},Hd=c=>{var N;Hn(It);let x=!c;if(Se(It.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)),R.play()},Fd=c=>{Hn(It);let x=!c;if(Se(It.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()},Ud=(c,x)=>{Hn(It),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?R.play():It.actions.internal.togglePlay())},$a=()=>(ee({message:"getting time codes"}),m),zd=()=>{let c=$a();if(!c||[0,1].includes(c.length))return;let x=R.info.position$.getValue();return c.find(N=>N.time>x)},bu=c=>{let x=c;x||(x=zd());let N=R.info.position$.getValue();ne.log("seek to next episode",{currentTime:N,...x}),x&&(ee({message:"seek to next episode"}),Go(x.time,is.EPISODE,!0))},qd=()=>{let c=$a();if(!c||[0,1].includes(c.length))return;let x=R.info.position$.getValue(),N=c.findIndex(We=>We.time>x),de=N===-1?c.length-2:N-2;if(!(de<0))return c[de]},qe=c=>{let x=c;x||(x=qd());let N=R.info.position$.getValue();ne.log("seek to prev episode",{currentTime:N,...x}),x&&(ee({message:"seek to prev episode"}),Go(x.time,is.EPISODE,!0))},si=()=>(ee({message:"getting preview thumbs data"}),ne.log("get preview thumbs data",{...y}),y),Zo=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})},ks=(c=-90)=>{ne.log("rotate video",{alphaDiff:c}),it.update(x=>x+c)},vo=ce([]);T==null||T.subscribe(c=>{let x=[];for(let N=0;N<c.length;N++){let{range:[de,We],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:se.features.interactiveTimeOpenUri?!wt.length||wt.every(Dt=>Dt.isRemoved):!wt.length}),We!==1/0&&x.push({time:We/1e3,text:"",interactive:!1,completed:!0})}vo.set(x)});let M1=ce(!1);I==null||I.subscribe(c=>{c&&Se(fo)&&xi()});let Om=c=>{if(!C)return c;let x=Se(vo),N=Se(Di),We=Se(Po)/N,wt=x.find(Dt=>Dt.interactive&&!Dt.completed&&Dt.time>We);return typeof(wt==null?void 0:wt.time)=="number"?Math.min(c,wt.time-.05):c},L1=()=>{It.ui.episodes.panelOpened$.set(!1)},V1=()=>{ne.log("destroy store"),clearTimeout(Mn),clearTimeout(_n),ni.unsubscribe(),yi.unsubscribe(),R.destroy(),_e.destroy(),re==null||re.destroy(),ze==null||ze.destroy(),vt.unsubscribe(),Xe==null||Xe.disconnect(),Xe=null,Ve.destroy()},It={interfaceLanguage$:Et,isCyrillicRelatedInterface$:Rt,initVideo:Ge,videoId:i,isClip:o,playerPhase:oe,vsid:Ie,state:{positionExact$:ro,positionWithScrubbing$:di,duration$:Di,playbackState$:ln,isPlaying$:Un,isLoaderVisible:Ni,bufferedProgress$:An,isLive$:j,canChangePlaybackSpeed$:Zt,isActiveLive$:ao,isOldestAvailableLive$:Tn,isRewindableLive$:Ao,isEnded$:xo,muted$:ai,volume$:Li,trafficSavingEnabled$:ut,highQualityEnabled$:mi,autoQualityLimitingAvailable$:Ze,availableVideoStreams$:Cr,availableAudioStreams$:lr,videoStream$:kn,audioStream$:dn,currentQuality$:Lo,isAutoQualityEnabled$:Fo,availableQualities$:cn,currentPlaybackRate$:Kn,availablePlaybackRates$:Uo,currentSubtitle$:Si,availableTextTracks$:un,availableSubtitlesList$:Pn,currentSubtitleCaptions$:Vo,isAutoSubtitleCaptionVisible$:Qn,chromecastState$:Xt,chromecastDeviceName$:Fn,chromecastConnected$:In,currentFormat$:ji,throughputEstimation$:Eo,videoBitrate$:ui,videoSize$:xt,errorLog$:Ct,crashed$:Wt,isAudioAvailable$:Do,isAudioDisabled:!!s,canDownload:se.features.download&&!!d,availableSources$:Gn,hasMpegSources$:cr,isInteractive:C,showInteractiveGraph:se.features.interactiveGraph,showSeekToInteractive:se.features.seekToInteractive,showPlayPrevChapter:se.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:se.features.interactiveTimeIndicator&&!!Se(vo).length,interactiveEpisodes$:vo,isInteractiveTime$:I?Jt(I):ce(!1),isInteractiveExpectation$:M1,hasInteractiveBranches:k,playPrevChapterDisabledTooltip:V,looped$:li,loadedMetadata$:ce(!1),isAutoQualityAvailable$:Wn},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:dt,rotateAlpha:it,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:Lt,isMobile:Zi,mobileNotReportControlHidden$:ci,mobileUnmuteButtonExpanded:ce(!1),mobileUnmuteButtonVisible:ce(!1),icon3DVideoVisible:ce(!1),scrubbingInProgress:fo,volumeChangingInProgress:fi,is3DVideo:ce(!1),currentGridType$:oi,additionalButtonsDeprecated$:Ur,additionalDesktopControlPanelRightButtons$:Ss,additionalSettingsMenuItems$:ma,additionalContextMenuItems$:bt,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:Pr},ads:{position:ce(0),duration:ce(0),playbackState:ce("inactive"),canSkip:ce(!1),secondsToWatchBeforeSkip:ce(0),postrollPassed:ce(!1)},webApi:{pictureInPictureApi:H,annotationsApi:ae,slotsApi:he},actions:{internal:{preload:vn,firstStart:c=>Ud(c,!1),play:()=>Hd(!1),pause:()=>ll(!1),togglePlay:gn,toggleMuted:ur,openSettingsMenu:Ir,closeSettingsMenu:Yn,openSettingsSubMenu:mn,closeSettingsSubMenu:kr,setVolume:ft,startVolumeChanging:wi,stopVolumeChanging:He,setVideoStream:zn,setAudioStream:pt,setQuality:Fi,setTrafficSavingEnabled:ki,setHighQualityEnabled:Ko,setPlaybackRate:Qo,incrementPlaybackRate:pr,decrementPlaybackRate:Zn,setSubtitle:fr,toggleSubtitle:Xn,togglePictureInPicture:Zo,startScrubbing:hn,progressScrubbing:er,completeScrubbing:$t,toggleChromecast:Od,switchToActiveLive:Ei,switchFromAdsToVideo:ba,switchFromVideoToAds:vu,skipAd:Ts,setLiveWaitingStart:Bd,setLiveWaitingRecover:gu,setLiveWaitingRecord:Nd,getDebugTextData:hu,getTraceTextData:Dd,getDebugPanelData:_u,getVideoElement:Is,seekTime:(c,x,N)=>Go(c,x,N),clearDelayedBufferingCheckTimeout:wo,seekEpisodeStartTime:Ar,seekToPercent:Yo,getNextEpisode:zd,seekToNextEpisode:bu,getPrevEpisode:qd,seekToPrevEpisode:qe,startLogging:Je,stopLogging:jt,startCameraManualRotation:Mi,stopCameraManualRotation:Wi,moveCameraFocusPX:At,holdCamera:_t,releaseCamera:Bt,getVideoEpisodes:$a,getPreviewThumbsData:si,downloadVideo:Tr,addLanguage:Ip,setLanguage:ti,nextMovie:ot,videoRotate:ks,correctSeekTimeToInteractive:Om,replayInteractive:M,setLooped:ri,reportProblem:po,setAutoplayNextEnabled:Co,setTimerNextVideoRunning:To,prevVideoClick:qo,nextVideoClick:Wo,nextVideoAnnouncementShow:Pt,nextVideoAnnouncementClick:vi,nextVideoAnnouncementAuto:Hi,nextVideoAnnouncementCancel:Ki},external:{firstStart:c=>Ud(c,!0),play:()=>Hd(!0),pause:()=>ll(!0),stop:()=>Fd(!0),seekTime:c=>mr(c),seekEpisodeStartTime:c=>at(c),setPlaybackRate:c=>Kt(c),setAutoQualityLimits:c=>Fr(c),setMuted:Nt,toggleSubtitle:Xn,setVolume:ft,returnFocusToEpisodes:L1,updateAdditionalSettingsItem:al,addAdditionalSettingsItem:Cs,removeAdditionalSettingsItem:_a,updateAdditionalContextItem:Qi,addAdditionalContextItem:jo,removeAdditionalContextItem:Gi,updateAdditionalButton:sl,addAdditionalButton:va,removeAdditionalButton:ga,setLiveLowLatency:ha,hideControls:()=>Jn(!1),showControls:()=>Jn(!0)}},callbacks:l,setUiCallbacks:c=>{we={...c}},getAdmanWrapper:()=>_e,getLogger:()=>xe,getPlayer:()=>R,destroy:V1};return It};function ra(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}=Xa(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 el=(t,e,i,o)=>{if(t)for(let[n,a]of Object.entries(e))["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(n)||a.set(ra(t,i,n,o))};var jc=async(t,e,i)=>{await _o(),e&&i&&(i.focus(),t.set(!1))};var V2=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 Sf(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:te}),$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 Cf(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($)&&yt(()=>{u.set(r($))})});let w=I=>{let M=_s(I),P=kh(r($));y.set(P),p.set(M),l.set(!n())},b=()=>{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:b,blur:C,get ariaExpanded(){return n()},get ref(){return r($)},set ref(I){D($,pe(I))},children:(I,M)=>{Sf(I,{})},$$slots:{default:!0}}),z(),o()}var R2=t=>{t.stopPropagation()},B2=L("<div><!> <div></div> <div></div></div>"),N2={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.`},lh=t_;var es=new Map;es.set(ch.EN,lh)
|
|
|
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 dd(t,e){var me;U(e,!0),W(t,N2);let[i,o]=Re(),n=()=>S(C,"$isMobile",i),a=()=>S(A,"$areControlsVisible",i),s=()=>S(V,"$currentGridType$",i),d=()=>S(k,"$isInteractiveTime$",i),l=()=>S(y,"$interactiveControlsOpacity$",i),p=()=>S(P,"$showInteractiveTimeIndicatorTooltip$",i),m=()=>S(T,"$isFullscreen",i),b=f(e,"ref",15,void 0),u=X(void 0),_=Te(),w=lo(),{interactiveControlsOpacity$:y}=w,C=_.ui.isMobile,T=_.ui.isFullscreen,k=_.state.isInteractiveTime$,P=w.showInteractiveTimeIndicatorTooltip$,A=_.ui.controlsVisible,I=(me=_.callbacks)==null?void 0:me.onInteractiveTimeIndicatorClick,V=_.ui.currentGridType$,q=v(()=>!n()&&a()),Q=v(()=>xs(s(),"s")),H=v(()=>!d()||!!l()||r(q)),Y=X(!1);He(()=>{D(Y,fe(r(H)))});let ne=()=>{D(Y,!0)},Z=()=>{var j;de(),(j=r(u))==null||j.addEventListener("animationiteration",ne,{once:!0})},de=()=>{var j;D(Y,!1),(j=r(u))==null||j.removeEventListener("animationiteration",ne)},ce=j=>{P.set(j)},Le=v(()=>p()&&!r(H));He(()=>{p()?Z():de()});let Ae=()=>{r(H)||(P.set(!0),I==null||I())};mn(()=>{P.clearTimeout(),de()});let he=()=>{P.set(!1)},se=F("tooltip_interactive_interaction_time_indicator");var Me=R2();let oe;Me.__mousemove=[V2],Me.__click=Ae;var B=h(Me);ko(B,{tooltipContent:se,get tooltipActive(){return r(Le)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:ce,get ref(){return b()},set ref(j){b(j)},children:(j,te)=>{ed(j,{completed:!0})},$$slots:{default:!0}});var be=M(B,2);let le;pt(be,j=>b(j),()=>b());var We=M(be,2);let ee;pt(We,j=>D(u,j),()=>r(u)),g(Me),E((j,te,Oe)=>{oe=J(Me,1,"interactive-episode-icon-animated svelte-od3veb",null,oe,j),le=J(be,1,"ref-block svelte-od3veb",null,le,te),ee=J(We,1,"pulse svelte-od3veb",null,ee,Oe)},[()=>({mobile:n(),fullscreen:m(),invisible:r(H),"icon-small":r(Q)}),()=>({hidden:r(H)}),()=>({paused:r(Y)})]),St("mouseleave",Me,he),$(t,Me),z(),o()}st(["mousemove","click"]);function Yc(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);ko(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=De();let p=v(()=>e.buttonComponent);var m=pe(l);ki(m,()=>r(p),(b,u)=>{u(b,Jr(()=>{var _;return(_=e.buttonComponentProps)!=null?_:{}}))}),$(s,l)},$$slots:{default:!0}}),z()}var ns={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var D2=xe('<svg><!><path fill="var(--btn-color, #fff)" d="M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"></path></svg>');function Cf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=D2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),$(t,o)}function ws(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");Cf(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 O2=L('<div class="icon-background-mobile svelte-xtk2k4"></div>'),H2=L("<!> <!>",1),F2={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 aa(t,e){U(e,!0),W(t,F2);let i=f(e,"ref",15,void 0),o=f(e,"isMobile",3,!1),n=f(e,"disabled",3,!1),s=Te().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}`);Lt(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,b)=>{var u=H2(),_=pe(u);{var w=T=>{var k=O2();$(T,k)};R(_,T=>{o()&&T(w)})}var y=M(_,2);let C=v(()=>e.type==="prev");ws(y,{get isMobile(){return o()},get isPrev(){return r(C)}}),$(m,u)},$$slots:{default:!0}}),z()}var U2=xe('<svg><!><path fill="var(--btn-color, #fff)" d="M12 10.096a.4.4 0 0 1-.67.296L7.044 6.493a.67.67 0 0 1 0-.986l4.288-3.899a.4.4 0 0 1 .669.296V5a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"></path></svg>');function cd(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=U2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(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)}import{noop as z2}from"@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 tl(t,e){U(e,!0),W(t,K2);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,z2),d=F("tooltip_restart"),l=v(()=>`${o()?"btn-m--play":""} ${a()}`);Lt(t,{get className(){return r(l)},testId:"btn-replay",ariaLabel:d,get disabled(){return n()},get click(){return s()},get ariaKeyShortCut(){return Dr.KeyK},get ref(){return i()},set ref(p){i(p)},children:(p,m)=>{var b=W2(),u=pe(b);{var _=T=>{var k=q2();$(T,k)};R(u,T=>{o()&&T(_)})}var w=M(u,2);let y;var C=h(w);cd(C,{}),g(w),E(T=>y=J(w,1,"svelte-1ot3duq",null,y,T),[()=>({mobile:o()})]),$(p,b)},$$slots:{default:!0}}),z()}var Q2=xe('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="play-icon"><path d="M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"></path></svg>');function 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=Q2(),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 G2=xe('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="pause-icon"><path d="M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"></path></svg>');function rs(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=G2(),d=h(s);g(s),E(()=>{Be(s,"width",i()),Be(s,"height",o()),Be(s,"viewBox",n()),Be(d,"fill",a())}),$(t,s)}import{noop as j2}from"@vkontakte/videoplayer-shared/es2018";var Y2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Z2=L("<!> <div><!></div>",1),X2={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 il(t,e){U(e,!0),W(t,X2);let[i,o]=Re(),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,""),b=f(e,"click",3,j2),_=Te().ui.t,{toggle:w}=a,y=v(()=>w),C=v(()=>n()!==null),T=v(()=>r(C)?n():l()),k=v(()=>r(T)?_("tooltip_pause"):_("tooltip_play")),P=v(()=>r(T)?rs:yr),A=v(()=>`${d()?"btn-m--play":""} ${m()}`),I=v(()=>r(C)?r(y):b());Lt(t,{get className(){return r(A)},testId:"btn-play",get click(){return r(I)},get disabled(){return p()},get ariaLabel(){return r(k)},get ariaKeyShortCut(){return Dr.KeyK},get ref(){return s()},set ref(V){s(V)},children:(V,q)=>{var Q=Z2();let H=v(()=>r(P));var Y=pe(Q);{var ne=Le=>{var Ae=Y2();$(Le,Ae)};R(Y,Le=>{d()&&Le(ne)})}var Z=M(Y,2);let de;var ce=h(Z);ki(ce,()=>r(H),(Le,Ae)=>{Ae(Le,{})}),g(Z),E(Le=>de=J(Z,1,"svelte-1ot3duq",null,de,Le),[()=>({mobile:d()})]),$(V,Q)},$$slots:{default:!0}}),z(),o()}var J2=xe('<svg><!><path fill="var(--btn-color, #fff)" d="M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"></path></svg>');function Tf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=J2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(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 ud(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":"");Lt(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)=>{Tf(d,{})},$$slots:{default:!0}}),z()}var ey=L('<span class="gutter svelte-et3q1q"><span><!></span></span>'),ty={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),W(t,ty);let[i,o]=Re(),n=()=>S(d,"$autoplayNextEnabled$",i),a=f(e,"ref",15,void 0),s=Te(),d=s.ui.autoplayNextEnabled$,l=s.actions.internal.setAutoplayNextEnabled;Lt(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(m){a(m)},children:(m,b)=>{var u=ey(),_=h(u);let w;var y=h(_);{var C=k=>{yr(k,{width:"14",height:"14",fill:"#000"})},T=k=>{rs(k,{width:"14",height:"14",fill:"#000"})};R(y,k=>{n()?k(C):k(T,!1)})}g(_),g(u),E(k=>w=J(_,1,"toggler svelte-et3q1q",null,w,k),[()=>({enabled:n()})]),$(m,u)},$$slots:{default:!0}}),z(),o()}var iy=xe('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"></path></svg>');function If(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=iy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(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 fd(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":"");Lt(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)=>{If(d,{})},$$slots:{default:!0}}),z()}var oy=xe('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z" class="_closed" clip-rule="evenodd"></path></svg>');function kf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=oy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),$(t,o)}var ny={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Ef(t,e){W(t,ny);let i=f(e,"isOpened",3,!1),o=v(()=>i()?"graph-close-icon":"graph-open-icon");kf(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=Te().ui.t,l=v(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),p=v(()=>o()?"hidden":"");Lt(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,b)=>{let u=v(()=>!!a());Ef(m,{get isOpened(){return r(u)}})},$$slots:{default:!0}}),z()}import{PlaybackState as Qh}from"@vkontakte/videoplayer-core/es2018";function vd(t,e){U(e,!0);let[i,o]=Re(),n=()=>S(p,"$playbackState$",i),a=f(e,"isMobile",3,!1),s=f(e,"isLiveActive",3,!1),d=f(e,"ariaLabel",3,""),l=Te(),p=l.state.playbackState$,m=l.actions.internal.switchToActiveLive,b=l.actions.internal.togglePlay,u=v(()=>()=>{if(!s()){m();return}n()===Qh.PAUSED&&b()}),_=v(()=>a()?"":"btn--live btn-full-opacity"),w=v(()=>s()?"btn-live":"btn-live-offset"),y=v(()=>s()&&n()===Qh.PLAYING);Lt(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)=>{Hl(C,{get isActive(){return s()}})},$$slots:{default:!0}}),z(),o()}import{noop as Gh}from"@vkontakte/videoplayer-shared/es2018";var ry=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),sy=L('<img class="icon" aria-hidden="true">');function la(t,e){"use strict";let i=X(!1),o=()=>{D(i,!0)};var n=De(),a=pe(n);{var s=l=>{var p=ry();$(l,p)},d=l=>{var p=sy();E(()=>Be(p,"src",e.icon)),St("error",p,o),Fs(p),$(l,p)};R(a,l=>{r(i)?l(s):l(d,!1)})}$(t,n)}function Pf(t,e){U(e,!0);let i=f(e,"disabled",3,!1),o=f(e,"onClick",3,Gh),n=f(e,"ref",15),a=v(()=>o()===Gh),s=v(()=>r(a)||i()),d=v(()=>r(a)?"btn-full-opacity":"");ko(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 b;return(b=e.testId)!=null?b:e.id});Lt(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:(b,u)=>{la(b,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),z()}var jh=t=>!!t.buttonComponent;var ss={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var cy=L('<div><!> <div class="controls svelte-1iedtj3"><div class="controls-left svelte-1iedtj3"><!> <!> <!></div> <div class="controls-right svelte-1iedtj3"></div></div></div> <!>',1),uy={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 Mf(t,e){var Ts,ba;U(e,!0),W(t,uy);let[i,o]=Re(),n=()=>S(G,"$disabledControls$",i),a=()=>S(Mt,"$adPlaybackState",i),s=()=>S(gt,"$playbackState$",i),d=()=>S($o,"$currentSubtitle$",i),l=()=>S(Qt,"$isEnded$",i),p=()=>S(er,"$currentGridType$",i),m=()=>S(ti,"$isLive$",i),b=()=>S(en,"$chromecastState$",i),u=()=>S(Ni,"$isPictureInPictureActive",i),_=()=>S(zi,"$pictureInPictureType$",i),w=()=>S(hn,"$availableSubtitlesList$",i),y=()=>S(Bi,"$contextMenuOpenedByKeyboard$",i),C=()=>S(ri,"$showContextMenuBtn$",i),T=()=>S(ii,"$playerSize",i),k=()=>S(Zt,"$isRewindableLive$",i),P=()=>S(Je,"$isActiveLive$",i),A=()=>S(ji,"$graphIsOpened$",i),I=()=>S(Xt,"$contextMenuVisible$",i),V=()=>S(eo,"$isFullscreen",i),q=()=>S(Ho,"$autoplayNextEnabled",i),Q=()=>S(r(rr),"$prevButton",i),H=()=>S(r(Ir),"$replayButton",i),Y=()=>S(r(Vo),"$playButton",i),ne=()=>S(r(Ti),"$nextButton",i),Z=()=>S(r(sr),"$playPrevChapterButton",i),de=()=>S(r(mt),"$seekToInteractiveButton",i),ce=()=>S(r(Ft),"$interactiveGraphButton",i),Le=()=>S(r(Pi),"$liveButton",i),Ae=()=>S(r(Co),"$time",i),he=()=>S(r(ot),"$episodes",i),se=()=>S(r(Nt),"$vkLogo",i),Me=()=>S(r(fi),"$volume",i),oe=()=>S(r(Oi),"$subtitles",i),B=()=>S(r(po),"$settings",i),be=()=>S(r(wi),"$context",i),le=()=>S(r(Ai),"$fullscreen",i),We=()=>S(r(vi),"$chromecast",i),ee=()=>S(yo,"$additionalDesktopControlPanelRightButtons$",i),me=()=>S(Po,"$isInteractiveTime$",i),j=()=>S(At,"$settingsMenuVisible",i),te=()=>S(lr,"$settingButtonRef$",i),Oe=()=>S(li,"$startedByKeyboard$",i),Ge=()=>S(Ht,"$isAudioAvailable$",i),$e=()=>S(Vt,"$fakeIsPlaying$",i),we=()=>S(_n,"$seekToInteractiveDisabledTooltip$",i),Ve=()=>S(Ze,"$adPosition",i),je=()=>S(qe,"$position$",i),dt=()=>S(ui,"$adDuration",i),ct=()=>S(tt,"$duration$",i),rt=f(e,"playerControlsWrapperRef",15,void 0),Ct=f(e,"playerControlsRef",15,void 0),_t=f(e,"isAds",3,!1),Gt=f(e,"logoTargetUrl",3,""),ni=f(e,"isOneVideoPlaylist",3,!1),It=f(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Vt}=lo(),O=Te(),_e=lo(),re=qt(),Ne=O.actions.internal.toggleMuted,ze=O.actions.internal.togglePlay,Qe=O.actions.internal.pause,ut=O.actions.internal.toggleSubtitle,Ye=(Ts=O.callbacks)==null?void 0:Ts.onAudioDoesNotExistHint,et=(ba=O.callbacks)==null?void 0:ba.onAudioDisabledHint,tt=O.state.duration$,qe=O.state.positionWithScrubbing$,gt=O.state.playbackState$,Ht=O.state.isAudioAvailable$,Xe=O.state.isAudioDisabled,Qt=O.state.isEnded$,ti=O.state.isLive$,Je=O.state.isActiveLive$,Zt=O.state.isRewindableLive$,{isActive$:Ni,type$:zi}=_e.pictureInPicture$,At=O.ui.settingsMenu.visible$,ht=O.ui.settingsMenu.openedByBtnKeyboard$,Rt=O.ui.controls,co=O.actions.internal.getVideoEpisodes(),en=O.state.chromecastState$,hn=O.state.availableSubtitlesList$,$o=O.state.currentSubtitle$,G=Rt.disabledControls$,Xt=O.ui.contextMenu.visible$,ri=O.ui.contextMenu.showContextMenuBtn$,Bi=O.ui.contextMenu.openedByBtnKeyboard$,li=O.ui.startedByKeyboard$,ft=O.ui.t,ui=O.ads.duration,Ze=O.ads.position,Mt=O.ads.playbackState,eo=O.ui.isFullscreen,ii=O.ui.playerSize,er=O.ui.currentGridType$,yo=O.ui.additionalDesktopControlPanelRightButtons$,Ho=O.ui.autoplayNextEnabled$,di=O.actions.internal.getVideoElement,xt=O.actions.internal.replayInteractive,Ci=O.actions.internal.prevVideoClick,Eo=O.actions.internal.nextVideoClick,pi=O.state.isInteractive,Po=O.state.isInteractiveTime$,qi=O.state.showInteractiveGraph,xo=O.state.showSeekToInteractive,wo=O.state.showPlayPrevChapter,Vn=O.state.showInteractiveTimeIndicator,So=O.state.playPrevChapterDisabledTooltip,_n=_e.seekToInteractiveDisabledTooltip$,ji=_e.graphIsOpened$,Ao=re.features.interactiveResponsiveUi,tn=v(()=>n().has("EPISODE_BUTTON")),wr=v(()=>n().has("GRAPH_BUTTON")),tr=v(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),Rn=v(()=>n().has("PLAY_BUTTON")),bn=v(()=>n().has("REPLAY_BUTTON")),Nn=v(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),ir=()=>O.actions.internal.toggleChromecast(),to=v(()=>_t()?a()==="playing":s()===Af.PLAYING),Mo=v(()=>d().value!=="off"),$n=v(()=>l()&&!_t()||pi),it=v(()=>Ao?r($n)&&Gi(p(),"m"):r($n)),yn=v(()=>!l()||pi||_t()),Bn=v(()=>Gi(p(),"m")),on=v(()=>e.showNextPrevButtons&&Gi(p(),"m")&&!_t()&&e.nextButtonActive),or=v(()=>e.showNextPrevButtons&&Gi(p(),"m")&&!_t()&&e.prevButtonActive),nn=v(()=>!_t()&&!!m()),rn=v(()=>b()!==Yh.NOT_AVAILABLE&&!(u()&&_()===1)&&Gi(p(),"m")&&!pi),sn=v(()=>e.showAutoplayNext&&!ni()&&Gi(p(),"s")),Yi=v(()=>w().length>0&&Gi(p(),"m")),Wi=v(()=>y()||C()),an=v(()=>Gi(p(),"s")&&!_t()),Dn=v(()=>!e.logoHidden&&!_t()),Fo=v(()=>re.features.fullscreen&&(e.logoHidden||Gi(p(),Ao?"xs":"s"))&&!(u()&&_()===1)&&(pi?It():!0)),ln=v(()=>(!m()||_t())&&!(re.features.interactiveHideTime&&pi)),Lo=v(()=>T().width>100),uo=v(()=>qi&&Gi(p(),"m")),Di=v(()=>Ao?xo&&Gi(p(),"s"):xo),On=v(()=>Ao?wo&&Gi(p(),"s"):wo),io=v(()=>!_t()&&!m()&&!!(co!=null&&co.length)&&r(Bn)&&!r(tn)),xn=v(()=>!k()||!!P()),Hn=v(()=>A()?ft("tooltip_interactive_graph_on"):ft("tooltip_interactive_graph_off")),dn=v(()=>I()?ft("aria_label_context_menu_close"):ft("aria_label_context_menu_open")),Sr=(lt,$t)=>lt?$t&&$t===Af.PAUSED?ft("tooltip_play"):"":ft("tooltip_live"),Uo=v(()=>Sr(r(xn),s())),Cr=v(()=>re.logoType==="vk_video"?ft("tooltip_vk_video_logo"):ft("tooltip_vk_logo")),Fn=v(()=>r(Mo)?ft("tooltip_subtitles_on"):ft("tooltip_subtitles_off")),Un=v(()=>V()?ft("tooltip_fullscreen_on"):ft("tooltip_fullscreen_off")),nr=v(()=>b()===Yh.CONNECTED?ft("tooltip_chromecast_on"):ft("tooltip_chromecast_off")),Tr=v(()=>q()?ft("tooltip_autoplay_on"):ft("tooltip_autoplay_off")),wn=X(0),Jt=fe({}),rr=v(()=>Rt.prevButton),Ir=v(()=>Rt.replayButton),Vo=v(()=>Rt.playButton),Ti=v(()=>Rt.nextButton),sr=v(()=>Rt.playPrevChapterButton),mt=v(()=>Rt.seekToInteractiveButton),Ft=v(()=>Rt.interactiveGraphButton),Pi=v(()=>Rt.liveButton),Co=v(()=>Rt.time),ot=v(()=>Rt.episodes),Nt=v(()=>Rt.vkLogo),fi=v(()=>Rt.volume),Oi=v(()=>Rt.subtitles),po=v(()=>Rt.settings),wi=v(()=>Rt.context),Ai=v(()=>Rt.fullscreen),vi=v(()=>Rt.chromecast),hi=v(()=>({prevButton:Q()?Q().right-Q().left:0,replayButton:H()?H().right-H().left:0,playButton:Y()?Y().right-Y().left:0,nextButton:ne()?ne().right-ne().left:0,playPrevChapterButton:Z()?Z().right-Z().left:0,seekToInteractiveButton:de()?de().right-de().left:0,interactiveGraphButton:ce()?ce().right-ce().left:0,liveButton:Le()?Le().right-Le().left:0,time:Ae()?Ae().right-Ae().left:0,episodes:he()?he().right-he().left:0,vkLogo:se()?se().right-se().left:0,volume:Me()?Me().right-Me().left:0,subtitles:oe()?oe().right-oe().left:0,settings:B()?B().right-B().left:0,context:be()?be().right-be().left:0,fullscreen:le()?le().right-le().left:0,chromecast:We()?We().right-We().left:0,additionalButtons:ee().length?ee().reduce(lt=>[...lt,40],[]):[]})),Hi=X(0);He(()=>{(!r(Hi)||r(Hi)<r(hi).time)&&yt(()=>D(Hi,fe(r(hi).time)))});let zn=X(!1);He(()=>{let lt=0;r(io)&&(Gi(p(),"xl")?lt=r(hi).time:lt=60);let $t=r(hi).prevButton+r(hi).playButton+r(hi).nextButton+r(hi).seekToInteractiveButton+r(hi).interactiveGraphButton+r(hi).liveButton+r(Hi)+lt;D(zn,fe(r(ln)&&r(wn)>=$t))});let ar=v(()=>r(zn)&&Gi(p(),"m")),qn=dy(el,260);He(()=>{T(),me(),qn(di(),Rt,Jt,e.showControls)});let lr=ae();He(()=>{j(),te()&&yt(()=>Qa(te(),j(),ht))});let dr;He(()=>{Oe(),yt(()=>jc(li,Oe(),dr))});function cr(){$s({isAudioDisabled:Xe,audioDisabledHintCallback:et,isAudioAvailable:Ge(),audioIsNotExistHintCallback:Ye})&&Ne()}let ur=pi?xt:ze,Wn=v(()=>$e()!==null),Kn=v(()=>r(Wn)?$e():r(to)),Ro=v(()=>r(Kn)?ft("tooltip_pause"):ft("tooltip_play")),kr=ft("tooltip_episodes"),No=v(()=>{var lt,$t,Xi,zo;return r(or)?{id:"prevButton",type:"desktop-control-panel-left",weight:ns.prevButton,buttonComponent:aa,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Ci.bind(null,!0)},tooltipEnabled:!(($t=(lt=O.callbacks)==null?void 0:lt.uiInfo)!=null&&$t.onPrevButtonMouseEnter)&&!((zo=(Xi=O.callbacks)==null?void 0:Xi.uiInfo)!=null&&zo.onPrevButtonMouseLeave),mouseEnter:()=>{var Ji,ci,Li;(Li=(ci=(Ji=O.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:ci.onPrevButtonMouseEnter)==null||Li.call(ci,sa(di(),Jt,"prevButton",e.showControls))},mouseLeave:()=>{var Ji,ci,Li;(Li=(ci=(Ji=O.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:ci.onPrevButtonMouseLeave)==null||Li.call(ci,sa(di(),Jt,"prevButton",e.showControls))},tooltipText:ft("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),pr=v(()=>r(it)?{id:"replayButton",type:"desktop-control-panel-left",weight:ns.replayButton,buttonComponent:tl,buttonComponentProps:{disabled:r(bn),click:ur},tooltipText:ft("tooltip_restart"),disabled:r(bn)}:void 0),Er=v(()=>r(yn)?{id:"playButton",type:"desktop-control-panel-left",weight:ns.playButton,buttonComponent:il,buttonComponentProps:{disabled:r(Rn),isPlaying:r(to),click:ze},tooltipText:r(Ro),disabled:r(Rn)}:void 0),Pr=v(()=>{var lt,$t,Xi,zo;return r(on)?{id:"nextButton",type:"desktop-control-panel-left",weight:ns.nextButton,buttonComponent:aa,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:Eo.bind(null,!0)},tooltipEnabled:!(($t=(lt=O.callbacks)==null?void 0:lt.uiInfo)!=null&&$t.onNextButtonMouseEnter)&&!((zo=(Xi=O.callbacks)==null?void 0:Xi.uiInfo)!=null&&zo.onNextButtonMouseLeave),mouseEnter:()=>{var Ji,ci,Li;(Li=(ci=(Ji=O.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:ci.onNextButtonMouseEnter)==null||Li.call(ci,sa(di(),Jt,"nextButton",e.showControls))},mouseLeave:()=>{var Ji,ci,Li;(Li=(ci=(Ji=O.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:ci.onNextButtonMouseLeave)==null||Li.call(ci,sa(di(),Jt,"nextButton",e.showControls))},tooltipText:ft("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Ar=v(()=>pi&&r(On)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:ns.playPrevChapterButton,buttonComponent:ud,buttonComponentProps:{disabled:r(Nn),click:e.playPrevChapter},tooltipText:ft("tooltip_interactive_go_back"),disabledTooltipContent:ft(So),disabled:r(Nn)}:void 0),Zi=v(()=>pi&&r(Di)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:ns.seekToInteractiveButton,buttonComponent:fd,buttonComponentProps:{disabled:r(tr),click:e.seekToInteractive},tooltipText:ft("tooltip_interactive_seek"),disabled:r(tr),disabledTooltipContent:ft(we())}:void 0),Sn=v(()=>pi&&r(uo)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:ns.interactiveGraphButton,buttonComponent:md,buttonComponentProps:{disabled:r(wr),click:ji.toggle,graphIsOpened:A()},tooltipText:r(Hn)}:void 0),Mr=v(()=>r(nn)?{id:"liveButton",type:"desktop-control-panel-left",weight:ns.liveButton,buttonComponent:vd,buttonComponentProps:{isLiveActive:r(xn),ariaLabel:r(Uo)},tooltipText:r(Uo),disabled:r(xn)&&s()===Af.PLAYING}:void 0),at=v(()=>[r(No),r(pr),r(Er),r(Pr),r(Ar),r(Zi),r(Sn),r(Mr)].filter(lt=>!!lt).sort(Xs)),Ut=v(()=>r(Dn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:ss.vkLogo,buttonComponent:id,buttonComponentProps:{targetUrl:Gt(),logoClickable:e.logoClickable,click:Qe},tooltipText:r(Cr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Mi=v(()=>r(sn)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:ss.autoplayNext,buttonComponent:pd,tooltipText:r(Tr)}:void 0),To=v(()=>({id:"volume",type:"desktop-control-panel-right",weight:ss.volume,buttonComponent:rf,buttonComponentProps:{click:cr}})),Se=v(()=>r(Yi)?{id:"subtitles",type:"desktop-control-panel-right",weight:ss.subtitles,buttonComponent:Jp,buttonComponentProps:{isSubtitlesEnabled:r(Mo),click:ut},tooltipText:r(Fn)}:void 0),Pt=v(()=>r(an)?{id:"settings",type:"desktop-control-panel-right",weight:ss.settings,buttonComponent:Xa,buttonComponentProps:{ref$:lr},tooltipText:j()?void 0:ft("tooltip_settings_off")}:void 0),gi=v(()=>re.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:ss.context,buttonComponent:Sf,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:r(dn)},className:r(Wi)?"":"out-of-view",tooltipText:r(dn)}:void 0),_i=v(()=>r(Fo)?{id:"fullscreen",type:"desktop-control-panel-right",weight:ss.fullscreen,buttonComponent:td,buttonComponentProps:{isFullscreen:V(),click:e.toggleFullscreen},tooltipText:r(Un)}:void 0),mi=v(()=>r(rn)?{id:"chromecast",type:"desktop-control-panel-right",weight:ss.chromecast,buttonComponent:od,buttonComponentProps:{state:b(),click:ir},tooltipText:r(nr)}:void 0),ke=v(()=>[r(Ut),r(Mi),r(To),r(Se),r(Pt),r(gi),r(_i),r(mi),...ee()].filter(lt=>!!lt).sort(Xs));var bt=cy(),Kt=pe(bt);let Si;var si=h(Kt);let Ur=v(()=>!r(Lo));na(si,{get isHidden(){return r(Ur)},get isAds(){return _t()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return k()},get ref(){return Jt.timeline},set ref(lt){Jt.timeline=lt}});var Fi=M(si,2),Qn=h(Fi),Cs=h(Qn);Ii(Cs,17,()=>r(at),lt=>lt.id,(lt,$t)=>{Yc(lt,{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 Jt[r($t).id]},set ref(Xi){Jt[r($t).id]=Xi}})});var Gn=M(Cs,2);{var va=lt=>{let $t=v(()=>_t()?Ve():je()),Xi=v(()=>_t()?dt():ct());Jl(lt,{isMobile:!1,get showDuration(){return r(ar)},get position(){return r($t)},get duration(){return r(Xi)},get ref(){return Jt.time},set ref(zo){Jt.time=zo}})};R(Gn,lt=>{r(ln)&<(va)})}var sl=M(Gn,2);let ga=v(()=>!r(io));ko(sl,{className:"w-max",get disabled(){return r(ga)},tooltipContent:kr,get ref(){return Jt.episodes},set ref(lt){Jt.episodes=lt},children:(lt,$t)=>{var Xi=De(),zo=pe(Xi);{var Ji=ci=>{rd(ci,{get position(){return je()},get duration(){return ct()},timeCodes:co})};R(zo,ci=>{r(io)&&ci(Ji)})}$(lt,Xi)},$$slots:{default:!0}}),g(Qn);var ha=M(Qn,2);Ii(ha,21,()=>r(ke),lt=>lt.id,(lt,$t)=>{var Xi=De(),zo=pe(Xi);{var Ji=Li=>{Yc(Li,{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 Jt[r($t).id]},set ref(Is){Jt[r($t).id]=Is}})},ci=Li=>{let Is=v(()=>!!r($t).disabled);Pf(Li,{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(Is)},get onClick(){return r($t).onClick},get ref(){return Jt[r($t).id]},set ref($a){Jt[r($t).id]=$a}})};R(zo,Li=>{jh(r($t))?Li(Ji):Li(ci,!1)})}$(lt,Xi)}),g(ha),g(Fi),pt(Fi,lt=>Ct(lt),()=>Ct()),g(Kt),pt(Kt,lt=>rt(lt),()=>rt());var _a=M(Kt,2);{var al=lt=>{dd(lt,{get ref(){return Jt.interactiveTimeIndicator},set ref($t){Jt.interactiveTimeIndicator=$t}})};R(_a,lt=>{Vn&<(al)})}E(lt=>Si=J(Kt,1,"wrapper-bottom svelte-1iedtj3",null,Si,lt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Br(Qn,"clientWidth",lt=>D(wn,lt)),$(t,bt),z(),o()}import{ChromecastState as Xh,PlaybackState as Jh}from"@vkontakte/videoplayer-core/es2018";import{noop as Zh}from"@vkontakte/videoplayer-shared/es2018";var py=L('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),fy=L('<img class="icon svelte-167ouw6" aria-hidden="true">'),my={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 Lf(t,e){W(t,my);let i=f(e,"disabled",3,!1),o=f(e,"onClick",3,Zh),n=v(()=>o()===Zh),a=v(()=>r(n)||i()),s=X(!1),d=()=>{D(s,!0)},l=v(()=>r(n)?"btn-full-opacity":"");Lt(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 b=De(),u=pe(b);{var _=y=>{var C=py();$(y,C)},w=y=>{var C=fy();E(()=>Be(C,"src",e.iconUrl)),St("error",C,d),Fs(C),$(y,C)};R(u,y=>{r(s)?y(_):y(w,!1)})}$(p,b)},$$slots:{default:!0}})}var vy=xe('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" d="M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"></path></g></svg>');function Vf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=vy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(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)}import{noop as gy}from"@vkontakte/videoplayer-shared/es2018";var hy=L('<span class="text svelte-6gmlbk"> </span>'),_y=L('<div aria-hidden="true"><!> <!></div>'),by={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 Zc(t,e){U(e,!0),W(t,by);let i=f(e,"muted",3,!1),o=f(e,"expanded",3,!1),n=f(e,"click",3,gy),a=f(e,"ref",15,void 0),d=Te().ui.t,l=v(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),p=v(()=>o()?ys:Vf),m=v(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");Lt(t,{get testId(){return r(m)},get click(){return n()},get ariaLabel(){return r(l)},get ref(){return a()},set ref(b){a(b)},children:(b,u)=>{var _=_y();let w=v(()=>r(p)),y;var C=h(_);ki(C,()=>r(w),(P,A)=>{A(P,{})});var T=M(C,2);{var k=P=>{var A=hy(),I=h(A,!0);g(A),E(V=>ve(I,V),[()=>d("mobile_unmute")]),$(P,A)};R(T,P=>{o()&&P(k)})}g(_),E(P=>y=J(_,1,"container svelte-6gmlbk",null,y,P),[()=>({expanded:o()})]),$(b,_)},$$slots:{default:!0}}),z()}var $y=xe('<svg><!><path fill="var(--btn-color, #fff)" d="M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z" class="hidden-not-active"></path><path fill="var(--btn-color, #fff)" d="m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z" class="hidden-active"></path></svg>');function Rf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=$y();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(3),g(o),E(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i})),$(t,o)}var yy={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 Nf(t,e){
|
|
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 dd(t,e){var ae;U(e,!0),K(t,N2);let[i,o]=Ne(),n=()=>S(C,"$isMobile",i),a=()=>S(P,"$areControlsVisible",i),s=()=>S(V,"$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=oo(),{interactiveControlsOpacity$:b}=w,C=$.ui.isMobile,T=$.ui.isFullscreen,I=$.state.isInteractiveTime$,M=w.showInteractiveTimeIndicatorTooltip$,P=$.ui.controlsVisible,k=(ae=$.callbacks)==null?void 0:ae.onInteractiveTimeIndicatorClick,V=$.ui.currentGridType$,W=v(()=>!n()&&a()),Y=v(()=>ys(s(),"s")),F=v(()=>!d()||!!l()||r(W)),Q=X(!1);Fe(()=>{D(Q,pe(r(F)))});let ie=()=>{D(Q,!0)},Z=()=>{var he;re(),(he=r(u))==null||he.addEventListener("animationiteration",ie,{once:!0})},re=()=>{var he;D(Q,!1),(he=r(u))==null||he.removeEventListener("animationiteration",ie)},le=he=>{M.set(he)},Ae=v(()=>p()&&!r(F));Fe(()=>{p()?Z():re()});let Me=()=>{r(F)||(M.set(!0),k==null||k())};wn(()=>{M.clearTimeout(),re()});let ge=()=>{M.set(!1)},se=q("tooltip_interactive_interaction_time_indicator");var Ee=B2();let ne;Ee.__mousemove=[R2],Ee.__click=Me;var R=h(Ee);ko(R,{tooltipContent:se,get tooltipActive(){return r(Ae)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:le,get ref(){return y()},set ref(he){y(he)},children:(he,ee)=>{ed(he,{completed:!0})},$$slots:{default:!0}});var xe=A(R,2);let _e;mt(xe,he=>y(he),()=>y());var ze=A(xe,2);let H;mt(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)})]),St("mouseleave",Ee,ge),_(t,Ee),z(),o()}rt(["mousemove","click"]);function Zc(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);ko(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,Jr(()=>{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 O2=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 Tf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=O2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$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 xs(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");Tf(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 H2=L('<div class="icon-background-mobile svelte-xtk2k4"></div>'),F2=L("<!> <!>",1),U2={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 sa(t,e){U(e,!0),K(t,U2);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}`);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,y)=>{var u=F2(),$=ue(u);{var w=T=>{var I=H2();_(T,I)};B($,T=>{o()&&T(w)})}var b=A($,2);let C=v(()=>e.type==="prev");xs(b,{get isMobile(){return o()},get isPrev(){return r(C)}}),_(m,u)},$$slots:{default:!0}}),z()}var z2=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 cd(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:te}),$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)}import{noop as q2}from"@vkontakte/videoplayer-shared/es2018";var W2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),K2=L("<!> <div><!></div>",1),Q2={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 tl(t,e){U(e,!0),K(t,Q2);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,q2),d=q("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 Nr.KeyK},get ref(){return i()},set ref(p){i(p)},children:(p,m)=>{var y=K2(),u=ue(y);{var $=T=>{var I=W2();_(T,I)};B(u,T=>{o()&&T($)})}var w=A(u,2);let b;var C=h(w);cd(C,{}),g(w),E(T=>b=J(w,1,"svelte-1ot3duq",null,b,T),[()=>({mobile:o()})]),_(p,y)},$$slots:{default:!0}}),z()}var G2=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 wr(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=G2(),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 Y2=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=Y2(),d=h(s);g(s),E(()=>{Be(s,"width",i()),Be(s,"height",o()),Be(s,"viewBox",n()),Be(d,"fill",a())}),_(t,s)}import{noop as j2}from"@vkontakte/videoplayer-shared/es2018";var Z2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),X2=L("<!> <div><!></div>",1),J2={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 il(t,e){U(e,!0),K(t,J2);let[i,o]=Ne(),n=()=>S(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=oo(),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,j2),$=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:wr),P=v(()=>`${d()?"btn-m--play":""} ${m()}`),k=v(()=>r(C)?r(b):y());Vt(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 Nr.KeyK},get ref(){return s()},set ref(V){s(V)},children:(V,W)=>{var Y=X2();let F=v(()=>r(M));var Q=ue(Y);{var ie=Ae=>{var Me=Z2();_(Ae,Me)};B(Q,Ae=>{d()&&Ae(ie)})}var Z=A(Q,2);let re;var le=h(Z);Ti(le,()=>r(F),(Ae,Me)=>{Me(Ae,{})}),g(Z),E(Ae=>re=J(Z,1,"svelte-1ot3duq",null,re,Ae),[()=>({mobile:d()})]),_(V,Y)},$$slots:{default:!0}}),z(),o()}var ey=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 If(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:te}),$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 ud(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":"");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)=>{If(d,{})},$$slots:{default:!0}}),z()}var ty=L('<span class="gutter svelte-et3q1q"><span><!></span></span>'),iy={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,iy);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;Vt(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(m){a(m)},children:(m,y)=>{var u=ty(),$=h(u);let w;var b=h($);{var C=I=>{wr(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 oy=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 kf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=oy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$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 fd(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":"");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 ny=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 Ef(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:te}),$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 ry={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Pf(t,e){K(t,ry);let i=f(e,"isOpened",3,!1),o=v(()=>i()?"graph-close-icon":"graph-open-icon");Ef(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":"");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,y)=>{let u=v(()=>!!a());Pf(m,{get isOpened(){return r(u)}})},$$slots:{default:!0}}),z()}import{PlaybackState as Gh}from"@vkontakte/videoplayer-core/es2018";function vd(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()===Gh.PAUSED&&y()}),$=v(()=>a()?"":"btn--live btn-full-opacity"),w=v(()=>s()?"btn-live":"btn-live-offset"),b=v(()=>s()&&n()===Gh.PLAYING);Vt(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)=>{Hl(C,{get isActive(){return s()}})},$$slots:{default:!0}}),z(),o()}import{noop as Yh}from"@vkontakte/videoplayer-shared/es2018";var sy=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),ay=L('<img class="icon" aria-hidden="true">');function aa(t,e){"use strict";let i=X(!1),o=()=>{D(i,!0)};var n=Oe(),a=ue(n);{var s=l=>{var p=sy();_(l,p)},d=l=>{var p=ay();E(()=>Be(p,"src",e.icon)),St("error",p,o),Hs(p),_(l,p)};B(a,l=>{r(i)?l(s):l(d,!1)})}_(t,n)}function Af(t,e){U(e,!0);let i=f(e,"disabled",3,!1),o=f(e,"onClick",3,Yh),n=f(e,"ref",15),a=v(()=>o()===Yh),s=v(()=>r(a)||i()),d=v(()=>r(a)?"btn-full-opacity":"");ko(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});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:(y,u)=>{aa(y,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),z()}var jh=t=>!!t.buttonComponent;var rs={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var uy=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),py={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 Lf(t,e){var Cs,_a;U(e,!0),K(t,py);let[i,o]=Ne(),n=()=>S(j,"$disabledControls$",i),a=()=>S(Mt,"$adPlaybackState",i),s=()=>S(Xe,"$playbackState$",i),d=()=>S(xo,"$currentSubtitle$",i),l=()=>S(ni,"$isEnded$",i),p=()=>S(Fn,"$currentGridType$",i),m=()=>S(yi,"$isLive$",i),y=()=>S(ln,"$chromecastState$",i),u=()=>S(Mi,"$isPictureInPictureActive",i),$=()=>S(Wi,"$pictureInPictureType$",i),w=()=>S(Yi,"$availableSubtitlesList$",i),b=()=>S(Li,"$contextMenuOpenedByKeyboard$",i),C=()=>S(gi,"$showContextMenuBtn$",i),T=()=>S(Xt,"$playerSize",i),I=()=>S(jt,"$isRewindableLive$",i),M=()=>S(Je,"$isActiveLive$",i),P=()=>S(Po,"$graphIsOpened$",i),k=()=>S(Zt,"$contextMenuVisible$",i),V=()=>S(so,"$isFullscreen",i),W=()=>S(Eo,"$autoplayNextEnabled",i),Y=()=>S(r(ft),"$prevButton",i),F=()=>S(r(Nt),"$replayButton",i),Q=()=>S(r(li),"$playButton",i),ie=()=>S(r(ri),"$nextButton",i),Z=()=>S(r(po),"$playPrevChapterButton",i),re=()=>S(r(Co),"$seekToInteractiveButton",i),le=()=>S(r(To),"$interactiveGraphButton",i),Ae=()=>S(r(qo),"$liveButton",i),Me=()=>S(r(Wo),"$time",i),ge=()=>S(r(et),"$episodes",i),se=()=>S(r(Pt),"$vkLogo",i),Ee=()=>S(r(vi),"$volume",i),ne=()=>S(r(Hi),"$subtitles",i),R=()=>S(r(Ki),"$settings",i),xe=()=>S(r(vn),"$context",i),_e=()=>S(r(gn),"$fullscreen",i),ze=()=>S(r(Fi),"$chromecast",i),H=()=>S(ji,"$additionalDesktopControlPanelRightButtons$",i),ae=()=>S(Oo,"$isInteractiveTime$",i),he=()=>S(At,"$settingsMenuVisible",i),ee=()=>S(pr,"$settingButtonRef$",i),De=()=>S(ai,"$startedByKeyboard$",i),je=()=>S(zt,"$isAudioAvailable$",i),we=()=>S(Rt,"$fakeIsPlaying$",i),Ve=()=>S(Tn,"$seekToInteractiveDisabledTooltip$",i),Ie=()=>S(Ze,"$adPosition",i),Ue=()=>S(st,"$position$",i),dt=()=>S(mi,"$adDuration",i),ct=()=>S(gt,"$duration$",i),it=f(e,"playerControlsWrapperRef",15,void 0),Ct=f(e,"playerControlsRef",15,void 0),vt=f(e,"isAds",3,!1),Wt=f(e,"logoTargetUrl",3,""),ti=f(e,"isOneVideoPlaylist",3,!1),Et=f(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Rt}=oo(),O=Ce(),be=oo(),oe=Ut(),Re=O.actions.internal.toggleMuted,Ke=O.actions.internal.togglePlay,Ge=O.actions.internal.pause,Le=O.actions.internal.toggleSubtitle,ot=(Cs=O.callbacks)==null?void 0:Cs.onAudioDoesNotExistHint,Ye=(_a=O.callbacks)==null?void 0:_a.onAudioDisabledHint,gt=O.state.duration$,st=O.state.positionWithScrubbing$,Xe=O.state.playbackState$,zt=O.state.isAudioAvailable$,tt=O.state.isAudioDisabled,ni=O.state.isEnded$,yi=O.state.isLive$,Je=O.state.isActiveLive$,jt=O.state.isRewindableLive$,{isActive$:Mi,type$:Wi}=be.pictureInPicture$,At=O.ui.settingsMenu.visible$,_t=O.ui.settingsMenu.openedByBtnKeyboard$,Bt=O.ui.controls,ro=O.actions.internal.getVideoEpisodes(),ln=O.state.chromecastState$,Yi=O.state.availableSubtitlesList$,xo=O.state.currentSubtitle$,j=Bt.disabledControls$,Zt=O.ui.contextMenu.visible$,gi=O.ui.contextMenu.showContextMenuBtn$,Li=O.ui.contextMenu.openedByBtnKeyboard$,ai=O.ui.startedByKeyboard$,ut=O.ui.t,mi=O.ads.duration,Ze=O.ads.position,Mt=O.ads.playbackState,so=O.ui.isFullscreen,Xt=O.ui.playerSize,Fn=O.ui.currentGridType$,ji=O.ui.additionalDesktopControlPanelRightButtons$,Eo=O.ui.autoplayNextEnabled$,ui=O.actions.internal.getVideoElement,xt=O.actions.internal.replayInteractive,Vi=O.actions.internal.prevVideoClick,Do=O.actions.internal.nextVideoClick,pi=O.state.isInteractive,Oo=O.state.isInteractiveTime$,Ni=O.state.showInteractiveGraph,wo=O.state.showSeekToInteractive,Di=O.state.showPlayPrevChapter,Un=O.state.showInteractiveTimeIndicator,ao=O.state.playPrevChapterDisabledTooltip,Tn=be.seekToInteractiveDisabledTooltip$,Po=be.graphIsOpened$,Ao=oe.features.interactiveResponsiveUi,In=v(()=>n().has("EPISODE_BUTTON")),Cr=v(()=>n().has("GRAPH_BUTTON")),lr=v(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),kn=v(()=>n().has("PLAY_BUTTON")),dn=v(()=>n().has("REPLAY_BUTTON")),zn=v(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),pt=()=>O.actions.internal.toggleChromecast(),lo=v(()=>vt()?a()==="playing":s()===Mf.PLAYING),Ho=v(()=>d().value!=="off"),En=v(()=>l()&&!vt()||pi),Mo=v(()=>Ao?r(En)&&qi(p(),"m"):r(En)),Fo=v(()=>!l()||pi||vt()),qn=v(()=>qi(p(),"m")),Lo=v(()=>e.showNextPrevButtons&&qi(p(),"m")&&!vt()&&e.nextButtonActive),Wn=v(()=>e.showNextPrevButtons&&qi(p(),"m")&&!vt()&&e.prevButtonActive),cn=v(()=>!vt()&&!!m()),Kn=v(()=>y()!==Zh.NOT_AVAILABLE&&!(u()&&$()===1)&&qi(p(),"m")&&!pi),Uo=v(()=>e.showAutoplayNext&&!ti()&&qi(p(),"s")),co=v(()=>w().length>0&&qi(p(),"m")),Si=v(()=>b()||C()),un=v(()=>qi(p(),"s")&&!vt()),pn=v(()=>!e.logoHidden&&!vt()),zo=v(()=>oe.features.fullscreen&&(e.logoHidden||qi(p(),Ao?"xs":"s"))&&!(u()&&$()===1)&&(pi?Et():!0)),uo=v(()=>(!m()||vt())&&!(oe.features.interactiveHideTime&&pi)),Pn=v(()=>T().width>100),So=v(()=>Ni&&qi(p(),"m")),Oi=v(()=>Ao?wo&&qi(p(),"s"):wo),dr=v(()=>Ao?Di&&qi(p(),"s"):Di),Vo=v(()=>!vt()&&!m()&&!!(ro!=null&&ro.length)&&r(qn)&&!r(In)),Qn=v(()=>!I()||!!M()),An=v(()=>P()?ut("tooltip_interactive_graph_on"):ut("tooltip_interactive_graph_off")),Gn=v(()=>k()?ut("tooltip_context_menu_close"):ut("tooltip_context_menu_open")),cr=(lt,bt)=>lt?bt&&bt===Mf.PAUSED?ut("tooltip_play"):"":ut("tooltip_live"),fn=v(()=>cr(r(Qn),s())),Tr=v(()=>oe.logoType==="vk_video"?ut("tooltip_vk_video_logo"):ut("tooltip_vk_logo")),ur=v(()=>r(Ho)?ut("tooltip_subtitles_on"):ut("tooltip_subtitles_off")),Yn=v(()=>V()?ut("tooltip_fullscreen_on"):ut("tooltip_fullscreen_off")),Ir=v(()=>y()===Zh.CONNECTED?ut("tooltip_chromecast_on"):ut("tooltip_chromecast_off")),kr=v(()=>W()?ut("tooltip_autoplay_on"):ut("tooltip_autoplay_off")),mn=X(0),Qt=pe({}),ft=v(()=>Bt.prevButton),Nt=v(()=>Bt.replayButton),li=v(()=>Bt.playButton),ri=v(()=>Bt.nextButton),po=v(()=>Bt.playPrevChapterButton),Co=v(()=>Bt.seekToInteractiveButton),To=v(()=>Bt.interactiveGraphButton),qo=v(()=>Bt.liveButton),Wo=v(()=>Bt.time),et=v(()=>Bt.episodes),Pt=v(()=>Bt.vkLogo),vi=v(()=>Bt.volume),Hi=v(()=>Bt.subtitles),Ki=v(()=>Bt.settings),vn=v(()=>Bt.context),gn=v(()=>Bt.fullscreen),Fi=v(()=>Bt.chromecast),ki=v(()=>({prevButton:Y()?Y().right-Y().left:0,replayButton:F()?F().right-F().left:0,playButton:Q()?Q().right-Q().left:0,nextButton:ie()?ie().right-ie().left:0,playPrevChapterButton:Z()?Z().right-Z().left:0,seekToInteractiveButton:re()?re().right-re().left:0,interactiveGraphButton:le()?le().right-le().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:R()?R().right-R().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(lt=>[...lt,40],[]):[]})),Ko=X(0);Fe(()=>{(!r(Ko)||r(Ko)<r(ki).time)&&yt(()=>D(Ko,pe(r(ki).time)))});let jn=X(!1);Fe(()=>{let lt=0;r(Vo)&&(qi(p(),"xl")?lt=r(ki).time:lt=60);let bt=r(ki).prevButton+r(ki).playButton+r(ki).nextButton+r(ki).seekToInteractiveButton+r(ki).interactiveGraphButton+r(ki).liveButton+r(Ko)+lt;D(jn,pe(r(uo)&&r(mn)>=bt))});let Er=v(()=>r(jn)&&qi(p(),"m")),Qo=cy(el,260);Fe(()=>{T(),ae(),Qo(ui(),Bt,Qt,e.showControls)});let pr=ce();Fe(()=>{he(),ee()&&yt(()=>Ka(ee(),he(),_t))});let Zn;Fe(()=>{De(),yt(()=>jc(ai,De(),Zn))});function fr(){bs({isAudioDisabled:tt,isAudioAvailable:je(),isAds:vt(),audioIsNotExistHintCallback:ot,audioDisabledHintCallback:Ye})&&Re()}let Xn=pi?xt:Ke,Pr=v(()=>we()!==null),Jn=v(()=>r(Pr)?we():r(lo)),Go=v(()=>r(Jn)?ut("tooltip_pause"):ut("tooltip_play")),Ar=ut("tooltip_episodes"),Yo=v(()=>{var lt,bt,Qi,jo;return r(Wn)?{id:"prevButton",type:"desktop-control-panel-left",weight:os.prevButton,buttonComponent:sa,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Vi.bind(null,!0)},tooltipEnabled:!((bt=(lt=O.callbacks)==null?void 0:lt.uiInfo)!=null&&bt.onPrevButtonMouseEnter)&&!((jo=(Qi=O.callbacks)==null?void 0:Qi.uiInfo)!=null&&jo.onPrevButtonMouseLeave),mouseEnter:()=>{var Gi,ci,Ei;(Ei=(ci=(Gi=O.callbacks)==null?void 0:Gi.uiInfo)==null?void 0:ci.onPrevButtonMouseEnter)==null||Ei.call(ci,ra(ui(),Qt,"prevButton",e.showControls))},mouseLeave:()=>{var Gi,ci,Ei;(Ei=(ci=(Gi=O.callbacks)==null?void 0:Gi.uiInfo)==null?void 0:ci.onPrevButtonMouseLeave)==null||Ei.call(ci,ra(ui(),Qt,"prevButton",e.showControls))},tooltipText:ut("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),mr=v(()=>r(Mo)?{id:"replayButton",type:"desktop-control-panel-left",weight:os.replayButton,buttonComponent:tl,buttonComponentProps:{disabled:r(dn),click:Xn},tooltipText:ut("tooltip_restart"),disabled:r(dn)}:void 0),Fr=v(()=>r(Fo)?{id:"playButton",type:"desktop-control-panel-left",weight:os.playButton,buttonComponent:il,buttonComponentProps:{disabled:r(kn),isPlaying:r(lo),click:Ke},tooltipText:r(Go),disabled:r(kn)}:void 0),at=v(()=>{var lt,bt,Qi,jo;return r(Lo)?{id:"nextButton",type:"desktop-control-panel-left",weight:os.nextButton,buttonComponent:sa,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:Do.bind(null,!0)},tooltipEnabled:!((bt=(lt=O.callbacks)==null?void 0:lt.uiInfo)!=null&&bt.onNextButtonMouseEnter)&&!((jo=(Qi=O.callbacks)==null?void 0:Qi.uiInfo)!=null&&jo.onNextButtonMouseLeave),mouseEnter:()=>{var Gi,ci,Ei;(Ei=(ci=(Gi=O.callbacks)==null?void 0:Gi.uiInfo)==null?void 0:ci.onNextButtonMouseEnter)==null||Ei.call(ci,ra(ui(),Qt,"nextButton",e.showControls))},mouseLeave:()=>{var Gi,ci,Ei;(Ei=(ci=(Gi=O.callbacks)==null?void 0:Gi.uiInfo)==null?void 0:ci.onNextButtonMouseLeave)==null||Ei.call(ci,ra(ui(),Qt,"nextButton",e.showControls))},tooltipText:ut("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Kt=v(()=>pi&&r(dr)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:os.playPrevChapterButton,buttonComponent:ud,buttonComponentProps:{disabled:r(zn),click:e.playPrevChapter},tooltipText:ut("tooltip_interactive_go_back"),disabledTooltipContent:ut(ao),disabled:r(zn)}:void 0),ii=v(()=>pi&&r(Oi)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:os.seekToInteractiveButton,buttonComponent:fd,buttonComponentProps:{disabled:r(lr),click:e.seekToInteractive},tooltipText:ut("tooltip_interactive_seek"),disabled:r(lr),disabledTooltipContent:ut(Ve())}:void 0),fo=v(()=>pi&&r(So)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:os.interactiveGraphButton,buttonComponent:md,buttonComponentProps:{disabled:r(Cr),click:Po.toggle,graphIsOpened:P()},tooltipText:r(An)}:void 0),hn=v(()=>r(cn)?{id:"liveButton",type:"desktop-control-panel-left",weight:os.liveButton,buttonComponent:vd,buttonComponentProps:{isLiveActive:r(Qn),ariaLabel:r(fn)},tooltipText:r(fn),disabled:r(Qn)&&s()===Mf.PLAYING}:void 0),er=v(()=>[r(Yo),r(mr),r(Fr),r(at),r(Kt),r(ii),r(fo),r(hn)].filter(lt=>!!lt).sort(Zs)),_n=v(()=>r(pn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:rs.vkLogo,buttonComponent:id,buttonComponentProps:{targetUrl:Wt(),logoClickable:e.logoClickable,click:Ge},tooltipText:r(Tr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Mn=v(()=>r(Uo)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:rs.autoplayNext,buttonComponent:pd,tooltipText:r(kr)}:void 0),xi=v(()=>({id:"volume",type:"desktop-control-panel-right",weight:rs.volume,buttonComponent:sf,buttonComponentProps:{click:fr,isAds:vt()}})),fe=v(()=>r(co)?{id:"subtitles",type:"desktop-control-panel-right",weight:rs.subtitles,buttonComponent:ef,buttonComponentProps:{isSubtitlesEnabled:r(Ho),click:Le},tooltipText:r(ur)}:void 0),$t=v(()=>r(un)?{id:"settings",type:"desktop-control-panel-right",weight:rs.settings,buttonComponent:Za,buttonComponentProps:{ref$:pr},tooltipText:he()?void 0:ut("tooltip_settings_off")}:void 0),di=v(()=>oe.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:rs.context,buttonComponent:Cf,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:ut("aria_label_context_menu")},className:r(Si)?"":"out-of-view",tooltipText:r(Gn)}:void 0),fi=v(()=>r(zo)?{id:"fullscreen",type:"desktop-control-panel-right",weight:rs.fullscreen,buttonComponent:td,buttonComponentProps:{isFullscreen:V(),click:e.toggleFullscreen},tooltipText:r(Yn)}:void 0),wi=v(()=>r(Kn)?{id:"chromecast",type:"desktop-control-panel-right",weight:rs.chromecast,buttonComponent:od,buttonComponentProps:{state:y(),click:pt},tooltipText:r(Ir)}:void 0),He=v(()=>[r(_n),r(Mn),r(xi),r(fe),r($t),r(di),r(fi),r(wi),...H()].filter(lt=>!!lt).sort(Zs));var Lt=uy(),oi=ue(Lt);let Zi;var mo=h(oi);let Ur=v(()=>!r(Pn));oa(mo,{get isHidden(){return r(Ur)},get isAds(){return vt()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return I()},get ref(){return Qt.timeline},set ref(lt){Qt.timeline=lt}});var Ri=A(mo,2),tr=h(Ri),Ss=h(tr);Ci(Ss,17,()=>r(er),lt=>lt.id,(lt,bt)=>{Zc(lt,{get buttonComponent(){return r(bt).buttonComponent},get buttonComponentProps(){return r(bt).buttonComponentProps},get tooltipText(){return r(bt).tooltipText},get disabledTooltipContent(){return r(bt).disabledTooltipContent},get disabled(){return r(bt).disabled},get className(){return r(bt).className},get tooltipEnabled(){return r(bt).tooltipEnabled},get mouseEnter(){return r(bt).mouseEnter},get mouseLeave(){return r(bt).mouseLeave},get ref(){return Qt[r(bt).id]},set ref(Qi){Qt[r(bt).id]=Qi}})});var ir=A(Ss,2);{var ma=lt=>{let bt=v(()=>vt()?Ie():Ue()),Qi=v(()=>vt()?dt():ct());Jl(lt,{isMobile:!1,get showDuration(){return r(Er)},get position(){return r(bt)},get duration(){return r(Qi)},get ref(){return Qt.time},set ref(jo){Qt.time=jo}})};B(ir,lt=>{r(uo)&<(ma)})}var sl=A(ir,2);let va=v(()=>!r(Vo));ko(sl,{className:"w-max",get disabled(){return r(va)},tooltipContent:Ar,get ref(){return Qt.episodes},set ref(lt){Qt.episodes=lt},children:(lt,bt)=>{var Qi=Oe(),jo=ue(Qi);{var Gi=ci=>{rd(ci,{get position(){return Ue()},get duration(){return ct()},timeCodes:ro})};B(jo,ci=>{r(Vo)&&ci(Gi)})}_(lt,Qi)},$$slots:{default:!0}}),g(tr);var ga=A(tr,2);Ci(ga,21,()=>r(He),lt=>lt.id,(lt,bt)=>{var Qi=Oe(),jo=ue(Qi);{var Gi=Ei=>{Zc(Ei,{get buttonComponent(){return r(bt).buttonComponent},get buttonComponentProps(){return r(bt).buttonComponentProps},get tooltipText(){return r(bt).tooltipText},get disabledTooltipContent(){return r(bt).disabledTooltipContent},get disabled(){return r(bt).disabled},get className(){return r(bt).className},get ref(){return Qt[r(bt).id]},set ref(Ts){Qt[r(bt).id]=Ts}})},ci=Ei=>{let Ts=v(()=>!!r(bt).disabled);Af(Ei,{get id(){return r(bt).id},get testId(){return r(bt).testId},get icon(){return r(bt).icon},get ariaLabel(){return r(bt).ariaLabel},get tooltipText(){return r(bt).tooltipText},get disabledTooltipContent(){return r(bt).disabledTooltipContent},get disabled(){return r(Ts)},get onClick(){return r(bt).onClick},get ref(){return Qt[r(bt).id]},set ref(ba){Qt[r(bt).id]=ba}})};B(jo,Ei=>{jh(r(bt))?Ei(Gi):Ei(ci,!1)})}_(lt,Qi)}),g(ga),g(Ri),mt(Ri,lt=>Ct(lt),()=>Ct()),g(oi),mt(oi,lt=>it(lt),()=>it());var ha=A(oi,2);{var al=lt=>{dd(lt,{get ref(){return Qt.interactiveTimeIndicator},set ref(bt){Qt.interactiveTimeIndicator=bt}})};B(ha,lt=>{Un&<(al)})}E(lt=>Zi=J(oi,1,"wrapper-bottom svelte-f6e8ix",null,Zi,lt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Br(tr,"clientWidth",lt=>D(mn,lt)),_(t,Lt),z(),o()}import{ChromecastState as Jh,PlaybackState as e1}from"@vkontakte/videoplayer-core/es2018";import{noop as Xh}from"@vkontakte/videoplayer-shared/es2018";var fy=L('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),my=L('<img class="icon svelte-167ouw6" aria-hidden="true">'),vy={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 Vf(t,e){K(t,vy);let i=f(e,"disabled",3,!1),o=f(e,"onClick",3,Xh),n=v(()=>o()===Xh),a=v(()=>r(n)||i()),s=X(!1),d=()=>{D(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 y=Oe(),u=ue(y);{var $=b=>{var C=fy();_(b,C)},w=b=>{var C=my();E(()=>Be(C,"src",e.iconUrl)),St("error",C,d),Hs(C),_(b,C)};B(u,b=>{r(s)?b($):b(w,!1)})}_(p,y)},$$slots:{default:!0}})}var gy=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 Rf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=gy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$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)}import{noop as hy}from"@vkontakte/videoplayer-shared/es2018";var _y=L('<span class="text svelte-6gmlbk"> </span>'),by=L('<div aria-hidden="true"><!> <!></div>'),$y={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 Xc(t,e){U(e,!0),K(t,$y);let i=f(e,"expanded",3,!1),o=f(e,"click",3,hy),n=f(e,"ref",15,void 0),s=Ce().ui.t,d=s("aria_label_volume"),l=v(()=>i()?$s:Rf),p=v(()=>i()?"btn-mobile-unmuted":"btn-mobile-muted");Vt(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=by();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=_y(),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 yy=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 Bf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=yy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$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 xy={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 Nf(t,e){K(t,xy);let i=f(e,"isActive",3,!1),o=v(()=>i()?"color: #2688EB;":"color: #fff;"),n=v(()=>i()?"pip-icon--active":"pip-icon");Bf(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}import{noop as wy}from"@vkontakte/videoplayer-shared/es2018";function Df(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"isPictureInPictureActive",3,!1),n=f(e,"click",3,wy),a=q("menu_pip");Vt(t,{testId:"btn-pip",ariaLabel:a,get click(){return n()},get ref(){return i()},set ref(s){i(s)},children:(s,d)=>{Nf(s,{get isActive(){return o()}})},$$slots:{default:!0}}),z()}import{debounceFn as Sy}from"@vkontakte/videoplayer-shared/es2018";var Cy=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},Ty=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},Iy=L("<div><!></div>"),ky=L("<div><!></div>"),Ey=L("<div><!></div>"),Py=L("<!> <!> <!>",1),Ay=L("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),My=L("<div><!></div>"),Ly=L('<div class="wrapper-middle svelte-1afsgkw"><!></div>'),Vy=L("<!> <!> <div><!></div>",1),Ry=L('<div aria-hidden="true">\xB7</div> <!>',1),By=L("<!> <!> <div><div><div><!> <!> <!> <!> <!> <!></div> <!></div></div> <!>",1),Ny={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.`},lh=t_;var es=new Map;es.set(ch.EN,lh)
|
|
|
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 Df(t,e){var Ti,sr;U(e,!0),W(t,Ny);let[i,o]=Re(),n=()=>S(Mt,"$seekToInteractiveDisabledTooltip$",i),a=()=>S(Ni,"$disabledControls$",i),s=()=>S(Gt,"$playbackState$",i),d=()=>S(co,"$adPlaybackState",i),l=()=>S(Vt,"$isEnded$",i),p=()=>S(hn,"$playerSize",i),m=()=>S(ze,"$scrubbingInProgress",i),b=()=>S(Je,"$chromecastState$",i),u=()=>S(ut,"$isPictureInPictureActive",i),_=()=>S(Ye,"$pictureInPictureType$",i),w=()=>S(Qe,"$mobileNotReportControlHidden$",i),y=()=>S(rt,"$playerPhase",i),C=()=>S(At,"$currentGridType$",i),T=()=>S(O,"$isLive$",i),k=()=>S(qe,"$settingsMenuVisible",i),P=()=>S(Ne,"$isRewindableLive$",i),A=()=>S(re,"$isActiveLive$",i),I=()=>S(Bi,"$isInteractiveTime$",i),V=()=>S(ni,"$isAudioAvailable$",i),q=()=>S(Yi,"$settingButtonRef$",i),Q=()=>S(zi,"$startedByKeyboard$",i),H=()=>S(en,"$isFullscreen",i),Y=()=>S(tt,"$mobileUnmuteButtonVisible",i),ne=()=>S(Xe,"$volumeHidden",i),Z=()=>S(_e,"$muted$",i),de=()=>S(et,"$mobileUnmuteButtonExpanded",i),ce=()=>S($o,"$additionalButtons$",i),Le=()=>S(Zt,"$crashed$",i),Ae=()=>S(eo,"$graphIsOpened$",i),he=()=>S(Rt,"$adPosition",i),se=()=>S(ht,"$adDuration",i),Me=()=>S(_t,"$position$",i),oe=()=>S(Ct,"$duration$",i),B=f(e,"playerControlsWrapperRef",15,void 0),be=f(e,"playerControlsRef",15,void 0),le=f(e,"isAds",3,!1),We=f(e,"logoTargetUrl",3,""),ee=f(e,"isOneVideoPlaylist",3,!1),me=f(e,"customFullscreenSupported",3,!0),j=Te(),te=lo(),Oe=qt(),Ge=j.actions.internal.toggleMuted,$e=j.actions.internal.togglePlay,we=j.actions.internal.pause,Ve=j.actions.internal.prevVideoClick,je=j.actions.internal.nextVideoClick,dt=(Ti=j.callbacks)==null?void 0:Ti.onAudioDoesNotExistHint,ct=(sr=j.callbacks)==null?void 0:sr.onAudioDisabledHint,rt=j.playerPhase,Ct=j.state.duration$,_t=j.state.positionWithScrubbing$,Gt=j.state.playbackState$,ni=j.state.isAudioAvailable$,It=j.state.isAudioDisabled,Vt=j.state.isEnded$,O=j.state.isLive$,_e=j.state.muted$,re=j.state.isActiveLive$,Ne=j.state.isRewindableLive$,ze=j.ui.scrubbingInProgress,Qe=j.ui.mobileNotReportControlHidden$,{isActive$:ut,type$:Ye}=te.pictureInPicture$,et=j.ui.mobileUnmuteButtonExpanded,tt=j.ui.mobileUnmuteButtonVisible,qe=j.ui.settingsMenu.visible$,gt=j.ui.settingsMenu.openedByBtnKeyboard$,Ht=j.ui.controls,{volume:Xe}=j.ui.hiddenControls,Qt=j.actions.internal.getVideoEpisodes(),ti=j.webApi.pictureInPictureApi,Je=j.state.chromecastState$,Zt=j.state.crashed$,Ni=Ht.disabledControls$,zi=j.ui.startedByKeyboard$,At=j.ui.currentGridType$,ht=j.ads.duration,Rt=j.ads.position,co=j.ads.playbackState,en=j.ui.isFullscreen,hn=j.ui.playerSize,$o=j.ui.additionalButtonsDeprecated$,G=j.actions.internal.getVideoElement,Xt=j.actions.internal.replayInteractive,ri=j.state.isInteractive,Bi=j.state.isInteractiveTime$,li=j.state.showInteractiveGraph,ft=j.state.showSeekToInteractive,ui=j.state.showPlayPrevChapter,Ze=j.state.showInteractiveTimeIndicator,Mt=te.seekToInteractiveDisabledTooltip$,eo=te.graphIsOpened$,ii=v(()=>F(j.state.playPrevChapterDisabledTooltip)),er=v(()=>F(n())),yo=v(()=>a().has("EPISODE_BUTTON")),Ho=v(()=>a().has("GRAPH_BUTTON")),di=v(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),xt=v(()=>a().has("PLAY_BUTTON")),Ci=v(()=>a().has("REPLAY_BUTTON")),Eo=v(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),pi=v(()=>s()===Jh.PLAYING),Po=v(()=>d()==="paused"),qi=v(()=>l()&&!le()&&!ri),xo=v(()=>!l()||le()),wo=v(()=>e.showNextPrevButtons&&!le()&&e.prevButtonActive),Vn=v(()=>e.showNextPrevButtons&&!le()&&e.nextButtonActive),So=v(()=>p().width>300),_n=v(()=>p().width>400),ji=v(m),Ao=v(()=>b()!==Xh.NOT_AVAILABLE&&!(u()&&_()===1)&&!w()&&!ri),tn=v(()=>y()==="LiveWaitingStart"),wr=v(()=>!!ti&&b()!==Xh.CONNECTED&&!w()&&(_()===1&&r(tn)||!r(tn))&&!r(ji)&&!ri),tr=v(()=>!r(ji)&&Gi(C(),"s")),Rn=v(()=>!e.logoHidden&&p().width>350),bn=v(()=>Oe.features.fullscreen&&!(u()&&_()===1)&&(ri?me():!0)&&!r(ji)),Nn=v(()=>(!T()||le())&&p().width>260&&!r(ji)&&!(Oe.features.interactiveHideTime&&ri)),ir=v(()=>k()||e.showControls),to=v(()=>!le()&&!T()&&!!(Qt!=null&&Qt.length)&&r(So)&&!r(yo)&&!r(ji)),Mo=v(()=>!P()||!!A()),$n=v(()=>li&&Gi(C(),"m")),it=fe({}),yn=wy(el,260);He(()=>{p(),I(),yn(G(),Ht,it,e.showControls)});let Bn=()=>j.actions.internal.toggleChromecast();function on(){$s({isAudioDisabled:It,audioDisabledHintCallback:ct,isAudioAvailable:V(),audioIsNotExistHintCallback:dt})&&Ge()}async function or(){ti!=null&&ti.isActive()?await(ti==null?void 0:ti.remove()):await(ti==null?void 0:ti.request())}function nn(){!It&&V()&&tt.set(!1),on()}let rn=X(""),sn=(mt,Ft)=>{if(!mt){D(rn,fe(F("tooltip_live")));return}Ft&&Ft===Jh.PAUSED&&D(rn,fe(F("tooltip_play")))};He(()=>{sn(r(Mo),s())});let Yi=ae();He(()=>{q()&&Qa(q(),k(),gt)}),He(()=>{jc(zi,Q(),it.playButton)});var Wi=Ry(),an=pe(Wi);{var Dn=mt=>{var Ft=Py(),Pi=pe(Ft);let Co;var ot=M(Pi,2);let Nt;var fi=h(ot);{var Oi=at=>{let Ut=v(()=>V()&&!It&&de());Zc(at,{get muted(){return Z()},get expanded(){return r(Ut)},click:nn,get ref(){return it.volume},set ref(Mi){it.volume=Mi}})};R(fi,at=>{(!V()||Y())&&!ne()&&at(Oi)})}g(ot);var po=M(ot,2);let wi;var Ai=h(po);Ii(Ai,1,ce,({iconUrl:at,ariaLabel:Ut,testId:Mi,onClick:To,tooltip:Se})=>at,(at,Ut)=>{let Mi=()=>r(Ut).iconUrl,To=()=>r(Ut).ariaLabel,Se=()=>r(Ut).testId,Pt=()=>r(Ut).onClick,gi=()=>r(Ut).tooltip,_i=v(()=>{var mi;return(mi=To())!=null?mi:gi()});Lf(at,{get iconUrl(){return Mi()},get ariaLabel(){return r(_i)},get testId(){return Se()},get onClick(){return Pt()}})});var vi=M(Ai,2);{var hi=at=>{pd(at,{get ref(){return it.autoplayNextToggle},set ref(Ut){it.autoplayNextToggle=Ut}})};R(vi,at=>{e.showAutoplayNext&&!ee()&&at(hi)})}var Hi=M(vi,2);{var zn=at=>{od(at,{isMobile:!0,click:Bn,get state(){return b()},get ref(){return it.chromecast},set ref(Ut){it.chromecast=Ut}})};R(Hi,at=>{r(Ao)&&at(zn)})}var ar=M(Hi,2);{var qn=at=>{Bf(at,{click:or,get isPictureInPictureActive(){return u()},get ref(){return it.pip},set ref(Ut){it.pip=Ut}})};R(ar,at=>{r(wr)&&at(qn)})}var lr=M(ar,2);{var dr=at=>{Xa(at,{ref$:Yi})};R(lr,at=>{Le()&&at(dr)})}var cr=M(lr,2);{var ur=at=>{id(at,{click:we,get targetUrl(){return We()},get logoClickable(){return e.logoClickable},get ref(){return it.vkLogo},set ref(Ut){it.vkLogo=Ut}})};R(cr,at=>{r(Rn)&&at(ur)})}g(po);var Wn=M(po,2);let Kn;var Ro=h(Wn);{var kr=at=>{let Ut=v(()=>Ve.bind(null,!0));aa(at,{get click(){return r(Ut)},type:"prev",isMobile:!0,get ref(){return it.prevButton},set ref(Mi){it.prevButton=Mi}})};R(Ro,at=>{r(wo)&&at(kr)})}var No=M(Ro,2);{var pr=at=>{il(at,{get disabled(){return r(xt)},click:$e,isMobile:!0,get isPlaying(){return r(pi)},get ref(){return it.playButton},set ref(Ut){it.playButton=Ut}})};R(No,at=>{r(xo)&&at(pr)})}var Er=M(No,2);{var Pr=at=>{tl(at,{get disabled(){return r(Ci)},click:$e,isMobile:!0,get ref(){return it.replayButton},set ref(Ut){it.replayButton=Ut}})};R(Er,at=>{r(qi)&&at(Pr)})}var Ar=M(Er,2);{var Zi=at=>{let Ut=v(()=>je.bind(null,!0));aa(at,{get click(){return r(Ut)},type:"next",isMobile:!0,get ref(){return it.nextButton},set ref(Mi){it.nextButton=Mi}})};R(Ar,at=>{r(Vn)&&at(Zi)})}g(Wn);var Sn=M(Wn,2);{var Mr=at=>{var Ut=Ey(),Mi=pe(Ut);{var To=mi=>{var ke=Ty();let bt;ke.__click=[Sy,Eo,e,ii];var Kt=h(ke);let Si=v(()=>!e.showControls);ud(Kt,{get hidden(){return r(Si)},get disabled(){return r(Eo)},get click(){return e.playPrevChapter},get ref(){return it.playPrevChapterButton},set ref(si){it.playPrevChapterButton=si}}),g(ke),E(si=>bt=J(ke,1,"wrapper-middle-left svelte-1afsgkw",null,bt,si),[()=>({fullscreen:H(),hidden:!e.showControls})]),$(mi,ke)};R(Mi,mi=>{ui&&mi(To)})}var Se=M(Mi,2);{var Pt=mi=>{var ke=Iy();let bt;var Kt=h(ke);let Si=v(()=>!e.showControls&&!Ae());md(Kt,{get hidden(){return r(Si)},get disabled(){return r(Ho)},get click(){return eo.toggle},get graphIsOpened(){return Ae()},get ref(){return it.interactiveGraphButton},set ref(si){it.interactiveGraphButton=si}}),g(ke),E(si=>bt=J(ke,1,El(ui?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw",bt,si),[()=>({fullscreen:H(),hidden:!e.showControls&&!Ae()})]),$(mi,ke)};R(Se,mi=>{r($n)&&mi(Pt)})}var gi=M(Se,2);{var _i=mi=>{var ke=ky();let bt;ke.__click=[Cy,di,e,er];var Kt=h(ke);let Si=v(()=>!e.showControls);fd(Kt,{get hidden(){return r(Si)},get disabled(){return r(di)},get click(){return e.seekToInteractive},get ref(){return it.seekToInteractiveButton},set ref(si){it.seekToInteractiveButton=si}}),g(ke),E(si=>bt=J(ke,1,"wrapper-middle-right svelte-1afsgkw",null,bt,si),[()=>({fullscreen:H(),hidden:!e.showControls})]),$(mi,ke)};R(gi,mi=>{ft&&mi(_i)})}$(at,Ut)};R(Sn,at=>{ri&&!m()&&at(Mr)})}E((at,Ut,Mi,To)=>{Co=J(Pi,1,"overlay-mobile svelte-1afsgkw",null,Co,at),Nt=J(ot,1,"wrapper-top-left svelte-1afsgkw",null,Nt,Ut),wi=J(po,1,"wrapper-top-right svelte-1afsgkw",null,wi,Mi),Kn=J(Wn,1,"wrapper-middle svelte-1afsgkw",null,Kn,To)},[()=>({hidden:!r(ir)}),()=>({hidden:!e.showControls,fullscreen:H()}),()=>({hidden:!e.showControls&&!w(),fullscreen:H()}),()=>({hidden:!e.showControls||m()||e.endScreenShown&&e.showNextPrevButtons})]),$(mt,Ft)};R(an,mt=>{le()||mt(Dn)})}var Fo=M(an,2);{var ln=mt=>{var Ft=Ly(),Pi=pe(Ft);{var Co=wi=>{var Ai=Ay();let vi;var hi=h(Ai);Zc(hi,{get muted(){return Z()},expanded:!1,click:nn,get ref(){return it.volume},set ref(Hi){it.volume=Hi}}),g(Ai),E(Hi=>vi=J(Ai,1,"wrapper-top-right svelte-1afsgkw",null,vi,Hi),[()=>({fullscreen:H()})]),$(wi,Ai)};R(Pi,wi=>{Y()&&wi(Co)})}var ot=M(Pi,2);{var Nt=wi=>{var Ai=My(),vi=h(Ai);let hi=v(()=>!r(Po));il(vi,{get disabled(){return r(xt)},click:$e,isMobile:!0,get isPlaying(){return r(hi)},get ref(){return it.playButton},set ref(Hi){it.playButton=Hi}}),g(Ai),$(wi,Ai)};R(ot,wi=>{r(Po)&&wi(Nt)})}var fi=M(ot,2);let Oi;var po=h(fi);nd(po,{get position(){return he()},get duration(){return se()}}),g(fi),E(wi=>Oi=J(fi,1,"wrapper-bottom ads-timeline-mobile svelte-1afsgkw",null,Oi,wi),[()=>({fullscreen:H()})]),$(mt,Ft)};R(Fo,mt=>{le()&&d()!=="inactive"&&mt(ln)})}var Lo=M(Fo,2);let uo;var Di=h(Lo);let On;var io=h(Di);J(io,1,"controls svelte-1afsgkw",null,{},{mobile:!0});var xn=h(io);{var Hn=mt=>{ko(mt,{get disabled(){return r(Ci)},get ref(){return it.replayButton},set ref(Ft){it.replayButton=Ft},children:(Ft,Pi)=>{tl(Ft,{get disabled(){return r(Ci)},click:Xt})},$$slots:{default:!0}})};R(xn,mt=>{ri&&mt(Hn)})}var dn=M(xn,2);{var Sr=mt=>{ko(mt,{get ref(){return it.liveButton},set ref(Ft){it.liveButton=Ft},children:(Ft,Pi)=>{vd(Ft,{get isLiveActive(){return r(Mo)},isMobile:!0,get ariaLabel(){return r(rn)}})},$$slots:{default:!0}})};R(dn,mt=>{!le()&&T()&&mt(Sr)})}var Uo=M(dn,2);{var Cr=mt=>{let Ft=v(()=>le()?he():Me()),Pi=v(()=>le()?se():oe());Jl(mt,{get showDuration(){return r(_n)},get position(){return r(Ft)},get duration(){return r(Pi)},isMobile:!0,get ref(){return it.time},set ref(Co){it.time=Co}})};R(Uo,mt=>{r(Nn)&&mt(Cr)})}var Fn=M(Uo,2);let Un=v(()=>!r(to));ko(Fn,{className:"w-max",get disabled(){return r(Un)},get ref(){return it.episodes},set ref(mt){it.episodes=mt},children:(mt,Ft)=>{var Pi=De(),Co=pe(Pi);{var ot=Nt=>{var fi=Vy(),Oi=M(pe(fi),2);rd(Oi,{get position(){return Me()},get duration(){return oe()},timeCodes:Qt}),$(Nt,fi)};R(Co,Nt=>{r(to)&&Nt(ot)})}$(mt,Pi)},$$slots:{default:!0}});var nr=M(Fn,2);{var Tr=mt=>{ko(mt,{get ref(){return it.settings},set ref(Ft){it.settings=Ft},children:(Ft,Pi)=>{Xa(Ft,{ref$:Yi})},$$slots:{default:!0}})};R(nr,mt=>{r(tr)&&mt(Tr)})}var wn=M(nr,2);{var Jt=mt=>{ko(mt,{get ref(){return it.fullscreen},set ref(Ft){it.fullscreen=Ft},children:(Ft,Pi)=>{td(Ft,{get click(){return e.toggleFullscreen},get isFullscreen(){return H()}})},$$slots:{default:!0}})};R(wn,mt=>{r(bn)&&mt(Jt)})}g(io),pt(io,mt=>be(mt),()=>be());var rr=M(io,2);na(rr,{get isAds(){return le()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return P()},get ref(){return it.timeline},set ref(mt){it.timeline=mt}}),g(Di),g(Lo),pt(Lo,mt=>B(mt),()=>B());var Ir=M(Lo,2);{var Vo=mt=>{dd(mt,{get ref(){return it.interactiveTimeIndicator},set ref(Ft){it.interactiveTimeIndicator=Ft}})};R(Ir,mt=>{Ze&&mt(Vo)})}E((mt,Ft)=>{uo=J(Lo,1,"wrapper-bottom svelte-1afsgkw",null,uo,mt),On=J(Di,1,"controls-wrapper svelte-1afsgkw",null,On,Ft)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:H()})]),$(t,Wi),z(),o()}st(["click"]);function hd(t,e){U(e,!0);let[i,o]=Re(),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),b=f(e,"isOneVideoPlaylist",3,!1),u=f(e,"customFullscreenSupported",3,!0),_=f(e,"endScreenShown",3,!1),w=f(e,"onDisabledPlayPrevChapterClick",3,e1),y=f(e,"onDisabledSeekToInteractiveClick",3,e1),T=Te().ui.isMobile,k=X(!1);zt(()=>{let V=setTimeout(()=>D(k,!0),0);return()=>clearTimeout(V)});var P=De(),A=pe(P);{var I=V=>{var q=De(),Q=pe(q);{var H=ne=>{Df(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 b()},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(Z){s(Z)},get playerControlsRef(){return d()},set playerControlsRef(Z){d(Z)}})},Y=ne=>{Mf(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 b()},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)}})};R(Q,ne=>{n()?ne(H):ne(Y,!1)})}$(V,q)};R(A,V=>{r(k)&&V(I)})}$(t,P),z(),o()}var By=xe('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"></path></g><defs><filter id="a" width="43.996" height="49.5" x="2.5" y="0" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_100684"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_100684" result="shape"></feBlend></filter></defs></svg>');function Of(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=By();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(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 Hf(t,e){let i=f(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Of(t,{get style(){return r(o)}})}var Dy=xe('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22" clip-rule="evenodd"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="45" x="-1.5" y="1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104204"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104204" result="shape"></feBlend></filter></defs></svg>');function Ff(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Dy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(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 Oy=xe('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="51" x="-1.5" y="-1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104293"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104293" result="shape"></feBlend></filter></defs></svg>');function Uf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Oy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(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 Xc(t,e){let i=f(e,"isOff",3,!1);var o=De(),n=pe(o);{var a=d=>{Uf(d,{})},s=d=>{Ff(d,{})};R(n,d=>{i()?d(a):d(s,!1)})}$(t,o)}var Hy=xe('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"></path></g><defs><filter id="a" width="40.098" height="27.785" x="3.402" y="10.105" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_106627"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_106627" result="shape"></feBlend></filter></defs></svg>');function zf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Hy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(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 qf(t,e){let i=f(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);zf(t,{get style(){return r(o)}})}var Fy=xe('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"></path></g><defs><filter id="a" width="37" height="37" x="5.5" y="5.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2340_106922"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2340_106922" result="shape"></feBlend></filter></defs></svg>');function Wf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Fy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),E(()=>n=Ie(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 Kf(t,e){let i=f(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Wf(t,{get style(){return r(o)}})}var Uy=L('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),zy=L('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),qy=L("<div><!></div>"),Wy={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 Of(t,e){var mn,Qt;U(e,!0),K(t,Ny);let[i,o]=Ne(),n=()=>S(ai,"$seekToInteractiveDisabledTooltip$",i),a=()=>S(ni,"$disabledControls$",i),s=()=>S(Ct,"$playbackState$",i),d=()=>S(Wi,"$adPlaybackState",i),l=()=>S(ti,"$isEnded$",i),p=()=>S(_t,"$playerSize",i),m=()=>S(be,"$scrubbingInProgress",i),y=()=>S(zt,"$chromecastState$",i),u=()=>S(Re,"$isPictureInPictureActive",i),$=()=>S(Ke,"$pictureInPictureType$",i),w=()=>S(oe,"$mobileNotReportControlHidden$",i),b=()=>S(dt,"$playerPhase",i),C=()=>S(Je,"$currentGridType$",i),T=()=>S(Et,"$isLive$",i),I=()=>S(ot,"$settingsMenuVisible",i),M=()=>S(O,"$isRewindableLive$",i),P=()=>S(Rt,"$isActiveLive$",i),k=()=>S(xo,"$isInteractiveTime$",i),V=()=>S(vt,"$isAudioAvailable$",i),W=()=>S(Lo,"$settingButtonRef$",i),Y=()=>S(yi,"$startedByKeyboard$",i),F=()=>S(At,"$isFullscreen",i),Q=()=>S(Le,"$mobileUnmuteButtonVisible",i),ie=()=>S(Ge,"$mobileUnmuteButtonExpanded",i),Z=()=>S(Bt,"$additionalButtons$",i),re=()=>S(tt,"$crashed$",i),le=()=>S(ut,"$graphIsOpened$",i),Ae=()=>S(Mi,"$adPosition",i),Me=()=>S(jt,"$adDuration",i),ge=()=>S(it,"$position$",i),se=()=>S(ct,"$duration$",i),Ee=f(e,"playerControlsWrapperRef",15,void 0),ne=f(e,"playerControlsRef",15,void 0),R=f(e,"isAds",3,!1),xe=f(e,"logoTargetUrl",3,""),_e=f(e,"isOneVideoPlaylist",3,!1),ze=f(e,"customFullscreenSupported",3,!0),H=Ce(),ae=oo(),he=Ut(),ee=H.actions.internal.toggleMuted,De=H.actions.internal.togglePlay,je=H.actions.internal.pause,we=H.actions.internal.prevVideoClick,Ve=H.actions.internal.nextVideoClick,Ie=(mn=H.callbacks)==null?void 0:mn.onAudioDoesNotExistHint,Ue=(Qt=H.callbacks)==null?void 0:Qt.onAudioDisabledHint,dt=H.playerPhase,ct=H.state.duration$,it=H.state.positionWithScrubbing$,Ct=H.state.playbackState$,vt=H.state.isAudioAvailable$,Wt=H.state.isAudioDisabled,ti=H.state.isEnded$,Et=H.state.isLive$,Rt=H.state.isActiveLive$,O=H.state.isRewindableLive$,be=H.ui.scrubbingInProgress,oe=H.ui.mobileNotReportControlHidden$,{isActive$:Re,type$:Ke}=ae.pictureInPicture$,Ge=H.ui.mobileUnmuteButtonExpanded,Le=H.ui.mobileUnmuteButtonVisible,ot=H.ui.settingsMenu.visible$,Ye=H.ui.settingsMenu.openedByBtnKeyboard$,gt=H.ui.controls,st=H.actions.internal.getVideoEpisodes(),Xe=H.webApi.pictureInPictureApi,zt=H.state.chromecastState$,tt=H.state.crashed$,ni=gt.disabledControls$,yi=H.ui.startedByKeyboard$,Je=H.ui.currentGridType$,jt=H.ads.duration,Mi=H.ads.position,Wi=H.ads.playbackState,At=H.ui.isFullscreen,_t=H.ui.playerSize,Bt=H.ui.additionalButtonsDeprecated$,ro=H.actions.internal.getVideoElement,ln=H.actions.internal.replayInteractive,Yi=H.state.isInteractive,xo=H.state.isInteractiveTime$,j=H.state.showInteractiveGraph,Zt=H.state.showSeekToInteractive,gi=H.state.showPlayPrevChapter,Li=H.state.showInteractiveTimeIndicator,ai=ae.seekToInteractiveDisabledTooltip$,ut=ae.graphIsOpened$,mi=v(()=>q(H.state.playPrevChapterDisabledTooltip)),Ze=v(()=>q(n())),Mt=v(()=>a().has("EPISODE_BUTTON")),so=v(()=>a().has("GRAPH_BUTTON")),Xt=v(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),Fn=v(()=>a().has("PLAY_BUTTON")),ji=v(()=>a().has("REPLAY_BUTTON")),Eo=v(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),ui=v(()=>s()===e1.PLAYING),xt=v(()=>d()==="paused"),Vi=v(()=>l()&&!R()&&!Yi),Do=v(()=>!l()||R()),pi=v(()=>e.showNextPrevButtons&&!R()&&e.prevButtonActive),Oo=v(()=>e.showNextPrevButtons&&!R()&&e.nextButtonActive),Ni=v(()=>p().width>300),wo=v(()=>p().width>400),Di=v(m),Un=v(()=>y()!==Jh.NOT_AVAILABLE&&!(u()&&$()===1)&&!w()&&!Yi),ao=v(()=>b()==="LiveWaitingStart"),Tn=v(()=>!!Xe&&y()!==Jh.CONNECTED&&!w()&&($()===1&&r(ao)||!r(ao))&&!r(Di)&&!Yi),Po=v(()=>!r(Di)&&qi(C(),"s")),Ao=v(()=>!e.logoHidden&&p().width>350),In=v(()=>he.features.fullscreen&&!(u()&&$()===1)&&(Yi?ze():!0)&&!r(Di)),Cr=v(()=>(!T()||R())&&p().width>260&&!r(Di)&&!(he.features.interactiveHideTime&&Yi)),lr=v(()=>I()||e.showControls),kn=v(()=>!R()&&!T()&&!!(st!=null&&st.length)&&r(Ni)&&!r(Mt)&&!r(Di)),dn=v(()=>!M()||!!P()),zn=v(()=>j&&qi(C(),"m")),pt=pe({}),lo=Sy(el,260);Fe(()=>{p(),k(),lo(ro(),gt,pt,e.showControls)});let Ho=()=>H.actions.internal.toggleChromecast();async function En(){Xe!=null&&Xe.isActive()?await(Xe==null?void 0:Xe.remove()):await(Xe==null?void 0:Xe.request())}function Mo(){(!Wt&&V()||R())&&Le.set(!1),bs({isAudioDisabled:Wt,audioDisabledHintCallback:Ue,isAudioAvailable:V(),audioIsNotExistHintCallback:Ie,isAds:R()})&&ee()}let Fo=X(""),qn=(ft,Nt)=>{if(!ft){D(Fo,pe(q("tooltip_live")));return}Nt&&Nt===e1.PAUSED&&D(Fo,pe(q("tooltip_play")))};Fe(()=>{qn(r(dn),s())});let Lo=ce();Fe(()=>{W()&&Ka(W(),I(),Ye)}),Fe(()=>{jc(yi,Y(),pt.playButton)});var Wn=By(),cn=ue(Wn);{var Kn=ft=>{var Nt=Ay(),li=ue(Nt);let ri;var po=A(li,2);let Co;var To=h(po);{var qo=at=>{let Kt=v(()=>V()&&!Wt&&ie());Xc(at,{get expanded(){return r(Kt)},click:Mo,get ref(){return pt.volume},set ref(ii){pt.volume=ii}})};B(To,at=>{(!V()||Q())&&at(qo)})}g(po);var Wo=A(po,2);let et;var Pt=h(Wo);Ci(Pt,1,Z,({iconUrl:at,ariaLabel:Kt,testId:ii,onClick:fo,tooltip:hn})=>at,(at,Kt)=>{let ii=()=>r(Kt).iconUrl,fo=()=>r(Kt).ariaLabel,hn=()=>r(Kt).testId,er=()=>r(Kt).onClick,_n=()=>r(Kt).tooltip,Mn=v(()=>{var xi;return(xi=fo())!=null?xi:_n()});Vf(at,{get iconUrl(){return ii()},get ariaLabel(){return r(Mn)},get testId(){return hn()},get onClick(){return er()}})});var vi=A(Pt,2);{var Hi=at=>{pd(at,{get ref(){return pt.autoplayNextToggle},set ref(Kt){pt.autoplayNextToggle=Kt}})};B(vi,at=>{e.showAutoplayNext&&!_e()&&at(Hi)})}var Ki=A(vi,2);{var vn=at=>{od(at,{isMobile:!0,click:Ho,get state(){return y()},get ref(){return pt.chromecast},set ref(Kt){pt.chromecast=Kt}})};B(Ki,at=>{r(Un)&&at(vn)})}var gn=A(Ki,2);{var Fi=at=>{Df(at,{click:En,get isPictureInPictureActive(){return u()},get ref(){return pt.pip},set ref(Kt){pt.pip=Kt}})};B(gn,at=>{r(Tn)&&at(Fi)})}var ki=A(gn,2);{var Ko=at=>{Za(at,{ref$:Lo})};B(ki,at=>{re()&&at(Ko)})}var jn=A(ki,2);{var Er=at=>{id(at,{click:je,get targetUrl(){return xe()},get logoClickable(){return e.logoClickable},get ref(){return pt.vkLogo},set ref(Kt){pt.vkLogo=Kt}})};B(jn,at=>{r(Ao)&&at(Er)})}g(Wo);var Qo=A(Wo,2);let pr;var Zn=h(Qo);{var fr=at=>{let Kt=v(()=>we.bind(null,!0));sa(at,{get click(){return r(Kt)},type:"prev",isMobile:!0,get ref(){return pt.prevButton},set ref(ii){pt.prevButton=ii}})};B(Zn,at=>{r(pi)&&at(fr)})}var Xn=A(Zn,2);{var Pr=at=>{il(at,{get disabled(){return r(Fn)},click:De,isMobile:!0,get isPlaying(){return r(ui)},get ref(){return pt.playButton},set ref(Kt){pt.playButton=Kt}})};B(Xn,at=>{r(Do)&&at(Pr)})}var Jn=A(Xn,2);{var Go=at=>{tl(at,{get disabled(){return r(ji)},click:De,isMobile:!0,get ref(){return pt.replayButton},set ref(Kt){pt.replayButton=Kt}})};B(Jn,at=>{r(Vi)&&at(Go)})}var Ar=A(Jn,2);{var Yo=at=>{let Kt=v(()=>Ve.bind(null,!0));sa(at,{get click(){return r(Kt)},type:"next",isMobile:!0,get ref(){return pt.nextButton},set ref(ii){pt.nextButton=ii}})};B(Ar,at=>{r(Oo)&&at(Yo)})}g(Qo);var mr=A(Qo,2);{var Fr=at=>{var Kt=Py(),ii=ue(Kt);{var fo=xi=>{var fe=Iy();let $t;fe.__click=[Cy,Eo,e,mi];var di=h(fe);let fi=v(()=>!e.showControls);ud(di,{get hidden(){return r(fi)},get disabled(){return r(Eo)},get click(){return e.playPrevChapter},get ref(){return pt.playPrevChapterButton},set ref(wi){pt.playPrevChapterButton=wi}}),g(fe),E(wi=>$t=J(fe,1,"wrapper-middle-left svelte-1afsgkw",null,$t,wi),[()=>({fullscreen:F(),hidden:!e.showControls})]),_(xi,fe)};B(ii,xi=>{gi&&xi(fo)})}var hn=A(ii,2);{var er=xi=>{var fe=ky();let $t;var di=h(fe);let fi=v(()=>!e.showControls&&!le());md(di,{get hidden(){return r(fi)},get disabled(){return r(so)},get click(){return ut.toggle},get graphIsOpened(){return le()},get ref(){return pt.interactiveGraphButton},set ref(wi){pt.interactiveGraphButton=wi}}),g(fe),E(wi=>$t=J(fe,1,El(gi?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw",$t,wi),[()=>({fullscreen:F(),hidden:!e.showControls&&!le()})]),_(xi,fe)};B(hn,xi=>{r(zn)&&xi(er)})}var _n=A(hn,2);{var Mn=xi=>{var fe=Ey();let $t;fe.__click=[Ty,Xt,e,Ze];var di=h(fe);let fi=v(()=>!e.showControls);fd(di,{get hidden(){return r(fi)},get disabled(){return r(Xt)},get click(){return e.seekToInteractive},get ref(){return pt.seekToInteractiveButton},set ref(wi){pt.seekToInteractiveButton=wi}}),g(fe),E(wi=>$t=J(fe,1,"wrapper-middle-right svelte-1afsgkw",null,$t,wi),[()=>({fullscreen:F(),hidden:!e.showControls})]),_(xi,fe)};B(_n,xi=>{Zt&&xi(Mn)})}_(at,Kt)};B(mr,at=>{Yi&&!m()&&at(Fr)})}E((at,Kt,ii,fo)=>{ri=J(li,1,"overlay-mobile svelte-1afsgkw",null,ri,at),Co=J(po,1,"wrapper-top-left svelte-1afsgkw",null,Co,Kt),et=J(Wo,1,"wrapper-top-right svelte-1afsgkw",null,et,ii),pr=J(Qo,1,"wrapper-middle svelte-1afsgkw",null,pr,fo)},[()=>({hidden:!r(lr)}),()=>({hidden:!e.showControls,fullscreen:F()}),()=>({hidden:!e.showControls&&!w(),fullscreen:F()}),()=>({hidden:!e.showControls||m()||e.endScreenShown&&e.showNextPrevButtons})]),_(ft,Nt)};B(cn,ft=>{R()||ft(Kn)})}var Uo=A(cn,2);{var co=ft=>{var Nt=Vy(),li=ue(Nt);{var ri=et=>{var Pt=My();let vi;var Hi=h(Pt);Xc(Hi,{expanded:!1,click:Mo,get ref(){return pt.volume},set ref(Ki){pt.volume=Ki}}),g(Pt),E(Ki=>vi=J(Pt,1,"wrapper-top-right svelte-1afsgkw",null,vi,Ki),[()=>({fullscreen:F()})]),_(et,Pt)};B(li,et=>{Q()&&et(ri)})}var po=A(li,2);{var Co=et=>{var Pt=Ly(),vi=h(Pt);let Hi=v(()=>!r(xt));il(vi,{get disabled(){return r(Fn)},click:De,isMobile:!0,get isPlaying(){return r(Hi)},get ref(){return pt.playButton},set ref(Ki){pt.playButton=Ki}}),g(Pt),_(et,Pt)};B(po,et=>{r(xt)&&et(Co)})}var To=A(po,2);let qo;var Wo=h(To);nd(Wo,{get position(){return Ae()},get duration(){return Me()}}),g(To),E(et=>qo=J(To,1,"wrapper-bottom ads-timeline-mobile svelte-1afsgkw",null,qo,et),[()=>({fullscreen:F()})]),_(ft,Nt)};B(Uo,ft=>{R()&&d()!=="inactive"&&ft(co)})}var Si=A(Uo,2);let un;var pn=h(Si);let zo;var uo=h(pn);J(uo,1,"controls svelte-1afsgkw",null,{},{mobile:!0});var Pn=h(uo);{var So=ft=>{ko(ft,{get disabled(){return r(ji)},get ref(){return pt.replayButton},set ref(Nt){pt.replayButton=Nt},children:(Nt,li)=>{tl(Nt,{get disabled(){return r(ji)},click:ln})},$$slots:{default:!0}})};B(Pn,ft=>{Yi&&ft(So)})}var Oi=A(Pn,2);{var dr=ft=>{ko(ft,{get ref(){return pt.liveButton},set ref(Nt){pt.liveButton=Nt},children:(Nt,li)=>{vd(Nt,{get isLiveActive(){return r(dn)},isMobile:!0,get ariaLabel(){return r(Fo)}})},$$slots:{default:!0}})};B(Oi,ft=>{!R()&&T()&&ft(dr)})}var Vo=A(Oi,2);{var Qn=ft=>{let Nt=v(()=>R()?Ae():ge()),li=v(()=>R()?Me():se());Jl(ft,{get showDuration(){return r(wo)},get position(){return r(Nt)},get duration(){return r(li)},isMobile:!0,get ref(){return pt.time},set ref(ri){pt.time=ri}})};B(Vo,ft=>{r(Cr)&&ft(Qn)})}var An=A(Vo,2);let Gn=v(()=>!r(kn));ko(An,{className:"w-max",get disabled(){return r(Gn)},get ref(){return pt.episodes},set ref(ft){pt.episodes=ft},children:(ft,Nt)=>{var li=Oe(),ri=ue(li);{var po=Co=>{var To=Ry(),qo=A(ue(To),2);rd(qo,{get position(){return ge()},get duration(){return se()},timeCodes:st}),_(Co,To)};B(ri,Co=>{r(kn)&&Co(po)})}_(ft,li)},$$slots:{default:!0}});var cr=A(An,2);{var fn=ft=>{ko(ft,{get ref(){return pt.settings},set ref(Nt){pt.settings=Nt},children:(Nt,li)=>{Za(Nt,{ref$:Lo})},$$slots:{default:!0}})};B(cr,ft=>{r(Po)&&ft(fn)})}var Tr=A(cr,2);{var ur=ft=>{ko(ft,{get ref(){return pt.fullscreen},set ref(Nt){pt.fullscreen=Nt},children:(Nt,li)=>{td(Nt,{get click(){return e.toggleFullscreen},get isFullscreen(){return F()}})},$$slots:{default:!0}})};B(Tr,ft=>{r(In)&&ft(ur)})}g(uo),mt(uo,ft=>ne(ft),()=>ne());var Yn=A(uo,2);oa(Yn,{get isAds(){return R()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return M()},get ref(){return pt.timeline},set ref(ft){pt.timeline=ft}}),g(pn),g(Si),mt(Si,ft=>Ee(ft),()=>Ee());var Ir=A(Si,2);{var kr=ft=>{dd(ft,{get ref(){return pt.interactiveTimeIndicator},set ref(Nt){pt.interactiveTimeIndicator=Nt}})};B(Ir,ft=>{Li&&ft(kr)})}E((ft,Nt)=>{un=J(Si,1,"wrapper-bottom svelte-1afsgkw",null,un,ft),zo=J(pn,1,"controls-wrapper svelte-1afsgkw",null,zo,Nt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:F()})]),_(t,Wn),z(),o()}rt(["click"]);function hd(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,t1),b=f(e,"onDisabledSeekToInteractiveClick",3,t1),T=Ce().ui.isMobile,I=X(!1);Ft(()=>{let V=setTimeout(()=>D(I,!0),0);return()=>clearTimeout(V)});var M=Oe(),P=ue(M);{var k=V=>{var W=Oe(),Y=ue(W);{var F=ie=>{Of(ie,{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=ie=>{Lf(ie,{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,ie=>{n()?ie(F):ie(Q,!1)})}_(V,W)};B(P,V=>{r(I)&&V(k)})}_(t,M),z(),o()}var Dy=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 Hf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Dy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$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 Ff(t,e){let i=f(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Hf(t,{get style(){return r(o)}})}var Oy=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 Uf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Oy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$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 Hy=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 zf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Hy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$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 Jc(t,e){let i=f(e,"isOff",3,!1);var o=Oe(),n=ue(o);{var a=d=>{zf(d,{})},s=d=>{Uf(d,{})};B(n,d=>{i()?d(a):d(s,!1)})}_(t,o)}var Fy=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 qf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Fy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$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 Wf(t,e){let i=f(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);qf(t,{get style(){return r(o)}})}var Uy=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 Kf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Uy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$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 Qf(t,e){let i=f(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Kf(t,{get style(){return r(o)}})}var zy=L('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),qy=L('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),Wy=L("<div><!></div>"),Ky={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.`},lh=t_;var es=new Map;es.set(ch.EN,lh)
|
|
|
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 Gf(t,e){U(e,!0),K(t,Ky);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=Wy();let $;var w=h(u);{var b=C=>{var T=qy(),I=ue(T),M=h(I);{var P=H=>{let ae=v(()=>r(m)==="FORWARD_SEEK");Ff(H,{get reversed(){return r(ae)}})};B(M,H=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(m))&&H(P)})}var k=A(M,2);{var V=H=>{ns(H,{})};B(k,H=>{r(m)==="PAUSE"&&H(V)})}var W=A(k,2);{var Y=H=>{wr(H,{})};B(W,H=>{r(m)==="PLAY"&&H(Y)})}var F=A(W,2);{var Q=H=>{cd(H,{})};B(F,H=>{r(m)==="REPLAY"&&H(Q)})}var ie=A(F,2);{var Z=H=>{Jc(H,{isOff:!0})};B(ie,H=>{r(m)==="SUBTITLES_OFF"&&H(Z)})}var re=A(ie,2);{var le=H=>{Jc(H,{})};B(re,H=>{r(m)==="SUBTITLES_ON"&&H(le)})}var Ae=A(re,2);{var Me=H=>{let ae=v(()=>r(m)==="RATE_UP");Wf(H,{get reversed(){return r(ae)}})};B(Ae,H=>{["RATE_DOWN","RATE_UP"].includes(r(m))&&H(Me)})}var ge=A(Ae,2);{var se=H=>{let ae=v(()=>r(m)==="EPISODE_NEXT");Qf(H,{get reversed(){return r(ae)}})};B(ge,H=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(m))&&H(se)})}var Ee=A(ge,2);{var ne=H=>{$s(H,{volume:0})};B(Ee,H=>{r(m)==="MUTE"&&H(ne)})}var R=A(Ee,2);{var xe=H=>{$s(H,{volume:1})};B(R,H=>{r(m)==="VOLUME"&&H(xe)})}g(I);var _e=A(I,2);{var ze=H=>{var ae=zy(),he=h(ae,!0);g(ae),E(()=>me(he,r(y))),_(H,ae)};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 Qy=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 Yf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Qy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$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 Gy=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 jf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Gy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$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 ws(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");Yf(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");jf(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 Yy=(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}},jy=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},Zy=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>'),Xy={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 _d(t,e){U(e,!0),K(t,Xy);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=Zy();let u;y.__keydown=[Yy,n,a,s,l,d],y.__keyup=[jy,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);ws(C,{direction:"up",useBtnColor:!0}),g(b);var T=A(b,2);T.__mousedown=d,T.__mouseup=p;var I=h(T);ws(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);ws(k,{direction:"up",useBtnColor:!0}),g(P);var V=A(P,2);V.__mousedown=s,V.__mouseup=p;var W=h(V);ws(W,{direction:"up",useBtnColor:!0}),g(V),g(M),g($),g(y),E(Y=>u=J(y,1,"immersive-controls svelte-1yzc86r",null,u,Y),[()=>({"m-shifted":i()})]),St("mouseleave",b,p),St("mouseleave",T,p),St("mouseleave",P,p),St("mouseleave",V,p),_(t,y),z()}rt(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as o1,Subscription as Jy,filterChanged as e4,filter as t4}from"@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 eu=class{constructor(){this.flickeringTimeout=i1(1e3);this.subscriptions=new Jy;this.isAuto=!1;this.isLive=!1;this.captions$=new o1([]);this.captionsPrepared$=new o1([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(t4(()=>this.isEnabled()),e4()).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 i4=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),o4=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),n4=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),r4=L('<div><span class="caption svelte-c2x749"><!></span></div>'),s4=L("<div><!></div>"),a4={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 la(t,e){U(e,!0),K(t,a4);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=Ut(),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,ie,Z;(Q=r(M))==null||Q.setIsAuto(r(b)),(ie=r(M))==null||ie.setIsLive(r(C)),(Z=r(M))==null||Z.setCaptions(e.captions)});let P=X(pe([[]]));Ft(()=>{D(M,pe(new eu().subscribe()));let Q=r(M).captionsPrepared$.subscribe(ie=>{D(P,pe(ie))});return()=>{var ie;(ie=r(M))==null||ie.destroy(),Q.unsubscribe()}}),Ft(()=>{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 V=s4();let W;var Y=h(V);{var F=Q=>{var ie=r4();let Z;var re=h(ie),le=h(re);{var Ae=ge=>{var se=i4(),Ee=h(se),ne=h(Ee,!0);g(Ee),g(se),E(R=>{var xe;nt(Ee,`font-size: ${(xe=r(I))!=null?xe:""}px`),me(ne,R)},[()=>q("subtitles_auto_caption")]),_(ge,se)},Me=(ge,se)=>{{var Ee=R=>{var xe=Oe(),_e=ue(xe);Ci(_e,17,()=>r(P),Il,(ze,H)=>{var ae=o4(),he=h(ae);Ci(he,21,()=>r(H),({value:ee,timeAppeared:De})=>De,(ee,De)=>{let je=()=>r(De).value,we=()=>r(De).timeAppeared;var Ve=Oe(),Ie=ue(Ve);{var Ue=dt=>{var ct=Rr();E(()=>me(ct,je())),_(dt,ct)};B(Ie,dt=>{(!we()||we()<=e.position)&&dt(Ue)})}_(ee,Ve)}),g(he),g(ae),E(()=>{var ee;return nt(he,`font-size: ${(ee=r(I))!=null?ee:""}px`)}),_(ze,ae)}),_(R,xe)},ne=R=>{var xe=Oe(),_e=ue(xe);Ci(_e,17,()=>e.captions,({value:ze})=>ze,(ze,H)=>{let ae=()=>r(H).value;var he=n4(),ee=h(he),De=h(ee,!0);g(ee),g(he),E(()=>{var je;nt(ee,`font-size: ${(je=r(I))!=null?je:""}px`),me(De,ae())}),_(ze,he)}),_(R,xe)};B(ge,R=>{var xe;r(b)&&((xe=r(P))!=null&&xe.length)?R(Ee):R(ne,!1)},se)}};B(le,ge=>{r(b)&&d()?ge(Ae):ge(Me,!1)})}g(re),g(ie),E(ge=>{var se;Z=J(ie,1,"subtitles-caption svelte-c2x749",null,Z,ge),nt(ie,`--subtitles-caption-margin: ${(se=r(k))!=null?se:""}%`)},[()=>({mobile:l()})]),_(Q,ie)};B(Y,Q=>{var ie;(e.captions.length||(ie=r(P))!=null&&ie.length)&&Q(F)})}g(V),E(Q=>W=J(V,1,"subtitles-container svelte-c2x749",null,W,Q),[()=>({shifted:e.shifted,auto:r(b)&&!r(C)&&!d()})]),_(t,V),z(),o()}var l4=L('<div class="text svelte-raurnb"> </div>'),d4=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>'),c4={hash:"svelte-raurnb",code:".wrapper.svelte-raurnb {height:100%;background-position:center;background-size:contain;background-repeat:no-repeat;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column;}.wrapper.bgCover.svelte-raurnb {background-size:cover;}.icon_wrapper.svelte-raurnb {display:flex;flex-direction:column;align-items:center;width:400px;}.icon.svelte-raurnb {width:50px;height:50px;}.text.svelte-raurnb {margin-top:20px;}"};function bd(t,e){U(e,!0),K(t,c4);let i=Ut();var o=d4();let n;var a=A(h(o),2);{var s=d=>{var l=l4(),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),nt(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),_(t,o),z()}var u4=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 Zf(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:te}),$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 p4=L('<div class="container svelte-13zpvm8"><!></div>'),f4={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 $d(t){K(t,f4);var e=p4(),i=h(e);Zf(i,{}),g(e),_(t,e)}var m4=L('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),v4=L("<div><!></div>"),g4={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 da(t,e){U(e,!0),K(t,g4);let i=f(e,"iconVisible",3,!0),o=Ce(),n=Ut(),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=v4();let m;p.__click=l;var y=h(p);{var u=$=>{var w=m4();w.__keydown=d,Be(w,"aria-label",s);var b=A(h(w),2);wr(b,{}),g(w),_($,w)};B(y,$=>{i()&&$(u)})}return g(p),E($=>{m=J(p,1,"container svelte-1ciju45",null,m,$),nt(p,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),_(t,p),z({handlePressKey:d,handleClick:l})}rt(["click","keydown"]);var h4=L('<div data-testid="video_title"> </div>'),_4={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 Xf(t,e){K(t,_4);let i=f(e,"title",3,""),o=f(e,"isHidden",3,!1);var n=h4();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 b4=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),$4=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),y4=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),x4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),w4=L('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),S4={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 Jf(t,e){U(e,!0),K(t,S4);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 V=Math.floor(M/60)%60;D(n,pe(d(V)));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()};Ft(()=>{s=requestAnimationFrame(p)}),wn(()=>{cancelAnimationFrame(s)});var m=w4(),y=h(m);{var u=M=>{var P=b4(),k=ue(P),V=h(k),W=h(V,!0);g(V);var Y=A(V,2),F=h(Y,!0);g(Y),g(k);var Q=A(k,2),ie=h(Q,!0);g(Q),E((Z,re)=>{me(W,r(i)),me(F,Z),me(ie,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=$4(),k=ue(P),V=h(k),W=h(V,!0);g(V);var Y=A(V,2),F=h(Y,!0);g(Y),g(k);var Q=A(k,2),ie=h(Q,!0);g(Q),E((Z,re)=>{me(W,r(o)),me(F,Z),me(ie,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=y4(),k=ue(P),V=h(k),W=h(V,!0);g(V);var Y=A(V,2),F=h(Y,!0);g(Y),g(k);var Q=A(k,2),ie=h(Q,!0);g(Q),E((Z,re)=>{me(W,r(n)),me(F,Z),me(ie,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=x4(),k=h(P),V=h(k,!0);g(k);var W=A(k,2),Y=h(W,!0);g(W),g(P),E(F=>{me(V,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 C4=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 em(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=C4();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$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 T4=L('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),I4=L('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),k4=L('<div class="waiting-container svelte-15pewff"><!></div>'),E4={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 yd(t,e){U(e,!0),K(t,E4);let i=X(!1);Fe(()=>{D(i,pe(e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3)))});var o=k4(),n=h(o);{var a=d=>{var l=T4(),p=h(l),m=h(p);em(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=I4(),p=h(l),m=h(p,!0);g(p);var y=A(p,2);let u=v(()=>e.startTime||0);Jf(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(()=>nt(o,`background-image: url(${r(i)?"":e.thumbUrl})`)),_(t,o),z()}var P4=L('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),A4={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 ca(t,e){U(e,!0),K(t,A4);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=P4(),s=h(a),d=h(s);ea(d,{style:"position: static; transform: translate(0, 0)"});var l=A(d,2),p=h(l,!0);g(l),g(s),g(a),E(()=>{nt(a,`background-image: url('${i()}')`),me(p,r(n))}),_(t,a),z()}var M4=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 tm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=M4();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$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 L4=L('<div class="select-icon svelte-124aexk"><!></div>'),V4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function xd(t){K(t,V4);var e=L4(),i=h(e);tm(i,{}),g(e),_(t,e)}var R4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},B4=(t,e)=>{Ga(t,()=>e.item.selectItem(e.item.value))},N4=L("<p> </p>"),D4=L('<p class="sublabel svelte-1t7rx2m"> </p>'),O4=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),H4={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 im(t,e){U(e,!0),K(t,H4);let i=f(e,"isMobile",3,!1);var o=O4();let n;o.__click=[R4,e],o.__keydown=[B4,e];var a=h(o);{var s=w=>{xd(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,Jr(()=>{var M;return(M=e.item.valueComponentParams)!=null?M:{}}))}),_(w,b)},y=w=>{var b=N4();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=D4(),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()}rt(["click","keydown"]);var F4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function om(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=>Lc(b,r(n)));var s=F4();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=>{xd(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,Jr(()=>{var k;return(k=e.item.valueComponentParams)!=null?k:{}}))}),_(b,C)},w=b=>{var C=Rr();E(()=>me(C,e.item.label)),_(b,C)};B(u,b=>{e.item.valueComponent?b($):b(w,!1)})}g(m),g(s),mt(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()}rt(["click","keydown"]);var Sr={"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 z4=(t,e)=>{Th(t,e.returnFromSubMenu,e.closeSettingsMenu)},q4=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},W4=(t,e)=>{zl(t)&&(ar(t),e.returnFromSubMenu())},K4=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>'),Q4={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.`},lh=t_;var es=new Map;es.set(ch.EN,lh)
|
|
|
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 nm(t,e){U(e,!0),W(t,K4);let[i,o]=Re(),n=()=>S(b,"$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);zt(()=>{let Z=e.items.findIndex(de=>de.selected);p().children[Z+1].focus()});let m=Te(),b=m.ui.isFullscreen,u=m.ui.playerSize,_=X(void 0),w=X(0),y=X(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 k=W4();let P;var A=h(k);let I;A.__keydown=[U4,e];var V=h(A);let q;V.__click=[z4,e],V.__keydown=[q4,e];var Q=h(V);Ss(Q,{direction:"left"});var H=M(Q,2),Y=h(H,!0);g(H),g(V),pt(V,Z=>D(_,Z),()=>r(_));var ne=M(V,2);Ii(ne,17,()=>e.items,Il,(Z,de)=>{var ce=De(),Le=pe(ce);{var Ae=se=>{tm(se,{get item(){return r(de)},get isMobile(){return s()}})},he=(se,Me)=>{{var oe=B=>{im(B,{get isMobile(){return s()},get item(){return r(de)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};R(se,B=>{r(de).type==="OPEN_SUB_MENU"&&B(oe)},Me)}};R(Le,se=>{r(de).type==="SELECT_VALUE"?se(Ae):se(he,!1)})}$(Z,ce)}),g(A),pt(A,Z=>p(Z),()=>p()),g(k),E((Z,de,ce)=>{P=J(k,1,"sub-menu menu svelte-7dfsuh",null,P,Z),Be(k,"data-testid",`sub-menu-${e.id}`),nt(k,`min-width: ${r(T)}px`),I=J(A,1,"items svelte-7dfsuh",null,I,de),nt(A,r(C)),q=J(V,1,"item header back svelte-7dfsuh",null,q,ce),Be(V,"aria-label",l()),ve(Y,e.title)},[()=>({desktop:!s(),mobile:s()}),()=>({mobile:s()}),()=>({mobile:s()})]),Br(V,"clientWidth",Z=>D(w,Z)),Br(V,"clientHeight",Z=>D(y,Z)),$(t,k),z(),o()}st(["keydown","click"]);import{noop as Q4}from"@vkontakte/videoplayer-shared/es2018";var G4=(t,e)=>Lc(t,e()),j4=(t,e)=>{t.stopPropagation(),e()()},Y4=L('<div class="value svelte-1ikfjte"> </div>'),Z4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),X4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function rm(t,e){U(e,!0),W(t,X4);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,Q4),n=f(e,"valueComponent",3,void 0),a=f(e,"ref",15);var s=Z4();let d;s.__click=[j4,o],s.__keydown=[G4,o];var l=h(s),p=h(l);{var m=T=>{la(T,{get icon(){return e.icon}})},b=T=>{var k=De();let P=v(()=>e.icon);var A=pe(k);ki(A,()=>r(P),(I,V)=>{V(I,{})}),$(T,k)};R(p,T=>{typeof e.icon=="string"?T(m):T(b,!1)})}g(l);var u=M(l,2),_=h(u,!0);g(u);var w=M(u,2);{var y=T=>{var k=De();let P=v(n);var A=pe(k);ki(A,()=>r(P),(I,V)=>{V(I,{})}),$(T,k)},C=T=>{var k=Y4(),P=h(k,!0);g(k),E(()=>ve(P,e.value)),$(T,k)};R(w,T=>{n()?T(y):T(C,!1)})}g(s),pt(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),ve(_,e.label)},[()=>({mobile:i()})]),$(t,s),z()}st(["click","keydown"]);import{noop as n1}from"@vkontakte/videoplayer-shared/es2018";var J4=(t,e)=>{ja(t,()=>e())},e3=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),t3=L('<img class="icon" aria-hidden="true">'),i3=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),o3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function sm(t,e){U(e,!0),W(t,o3);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,n1),n=f(e,"closeSettings",3,n1),a=X(!1),s=()=>{D(a,!0)},d=C=>{C==null||C.stopPropagation(),o()(),n()()};var l=i3();let p;l.__click=d,l.__keydown=[J4,d];var m=h(l),b=h(m);{var u=C=>{var T=De(),k=pe(T);{var P=I=>{var V=e3();$(I,V)},A=I=>{var V=t3();E(()=>Be(V,"src",e.icon)),St("error",V,s),Fs(V),$(I,V)};R(k,I=>{r(a)?I(P):I(A,!1)})}$(C,T)},_=C=>{var T=De();let k=v(()=>e.icon);var P=pe(T);ki(P,()=>r(k),(A,I)=>{I(A,{})}),$(C,T)};R(b,C=>{typeof e.icon=="string"?C(u):C(_,!1)})}g(m);var w=M(m,2),y=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),ve(y,e.label)},[()=>({mobile:i()})]),$(t,l),z()}st(["click","keydown"]);import{noop as s3}from"@vkontakte/videoplayer-shared/es2018";var n3=L('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),r3={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 am(t,e){W(t,r3);let i=f(e,"enabled",3,!1);var o=n3(),n=h(o);let a;ye(2),g(o),E(s=>a=J(n,1,"toggle svelte-17wbjko",null,a,s),[()=>({on:i()})]),$(t,o)}var a3=(t,e,i)=>{Th(t,e(),o=>i()(o))},l3=(t,e,i)=>{t.stopPropagation(),e()(!i())},d3=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),c3=L('<li role="menuitem" tabindex="0"><!></li>');function lm(t,e){U(e,!0);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,s3),n=f(e,"enabled",3,!1),a=f(e,"tooltipText",3,void 0),s=f(e,"maxTooltipWidth",3,void 0);var d=c3();let l;d.__click=[l3,o,n],d.__keydown=[a3,n,o];var p=h(d);ia(p,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return s()},children:(m,b)=>{var u=d3();let _;var w=h(u),y=h(w);{var C=I=>{la(I,{get icon(){return e.icon}})},T=I=>{var V=De();let q=v(()=>e.icon);var Q=pe(V);ki(Q,()=>r(q),(H,Y)=>{Y(H,{})}),$(I,V)};R(y,I=>{typeof e.icon=="string"?I(C):I(T,!1)})}g(w);var k=M(w,2),P=h(k,!0);g(k);var A=M(k,2);am(A,{get enabled(){return n()}}),g(u),E(I=>{_=J(u,1,"switch-wrapper",null,_,I),ve(P,e.label)},[()=>({mobile:i()})]),$(m,u)},$$slots:{default:!0}}),g(d),E(m=>{var b;l=J(d,1,"item switch-item",null,l,m),Be(d,"aria-label",(b=e.ariaLabel)!=null?b:e.label),Be(d,"data-testid",e.id)},[()=>({mobile:i()})]),$(t,d),z()}st(["click","keydown"]);import{isValidURL as V3,VideoQuality as v1}from"@vkontakte/videoplayer-shared/es2018";var r1=()=>{let t=X(fe([])),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,fe(r(t).slice(0,-1)))},popAllSubMenus:()=>{D(t,fe([]))}}};var u3=L('<div class="quality-icon svelte-t2qk8t"><!></div>'),p3=L('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),f3={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 pa(t,e){U(e,!0),W(t,f3);let i=f(e,"isSubCase",3,!1),o=v(()=>Dc(e.quality));var n=p3(),a=h(n);let s;var d=h(a,!0);g(a);var l=M(a,2);{var p=m=>{var b=u3();let u=v(()=>r(o));var _=h(b);ki(_,()=>r(u),(w,y)=>{y(w,{})}),g(b),$(m,b)};R(l,m=>{r(o)&&!e.isMobile&&m(p)})}g(n),E(m=>{s=J(a,1,"svelte-t2qk8t",null,s,m),ve(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),$(t,n),z()}import{VideoQuality as m3}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as s1}from"@vkontakte/videoplayer-core/es2018";var a1=({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=a1({quality:t,availableQualities:e});return i?t===s1.INVARIANT?F("auto_quality_invariant"):F("auto_quality",{actual:o}):o},d1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===s1.INVARIANT?i:`${i}${a1({quality:t,availableQualities:e})}`:"...";var v3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),g3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function ol(t,e){U(e,!0),W(t,g3);let[i,o]=Re(),n=()=>S(l,"$currentQuality$",i),a=()=>S(p,"$availableQualities$",i),s=()=>S(m,"$isMobile$",i),d=Te(),l=d.state.currentQuality$,p=d.state.availableQualities$,m=d.ui.isMobile,b=" \xB7 ",u=v(()=>e.prefix+(e.selected&&n()!==m3.INVARIANT?b:"")),_=v(()=>d1({prefix:r(u),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var w=v3(),y=h(w);let C=v(()=>e.selected?n():void 0);pa(y,{get quality(){return r(C)},get label(){return r(_)},get isMobile(){return s()},isSubCase:!0}),g(w),$(t,w),z(),o()}var h3=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")},_3={br:!0,span:!0},dm=(t,e={})=>{var d,l,p,m,b,u,_;if(!t)return t;let i={..._3,...e},o=Object.keys(i);if(!o.length)return t;let n=h3(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 k=(b=w.groups)!=null&&b.childrenhtml?dm(w.groups.childrenhtml,i):"",P=(u=w.groups)!=null&&u.childrenhtml?y.replace(new RegExp((_=w.groups)==null?void 0:_.childrenhtml),()=>k||""):y;a.push(t.slice(s,T),P),s=T+y.length}return s===0?t:(a.push(t.slice(s)),a.join(""))};function wd(t,e){U(e,!1);let i=f(e,"message",8),o=dm(i());br();var n=De(),a=pe(n);{var s=d=>{var l=De(),p=pe(l);kl(p,()=>o,!1,!1),$(d,l)};R(a,d=>{o&&d(s)})}$(t,n),z()}var b3=L('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),$3={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 cm(t,e){U(e,!1),W(t,$3),br();var i=b3(),o=h(i);let n=gr(()=>F("quality_applience",{action:`<span>${F("quality_applience_action")}</span>`}));wd(o,{get message(){return r(n)}}),g(i),$(t,i),z()}var u1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:ol,valueComponentParams:{prefix:F("other_quality"),selected:o},children:"QUALITY"}},um=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:F("auto_quality_limit"),valueComponent:e?ol:void 0,valueComponentParams:{prefix:F("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),p1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:cm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),pm=({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?ol:void 0,valueComponentParams:{prefix:F("high_quality"),selected:i},sublabel:F("high_quality_description")}),fm=({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?ol:void 0,valueComponentParams:{prefix:F("traffic_saving_quality"),selected:i},sublabel:F("traffic_saving_quality_description")});var eu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),tu=(t,e)=>{var s;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(s=Wc(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=eu(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=eu(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=eu(t,d);return F("audio_stream_display_language_index",{language:n,index:l})}}let a=eu(t,e);return F("audio_stream_display_unknown",{index:a})};var y3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,a=[];return i&&a.push({handler:um,selected:e&&!o&&!n||!1}),a.push({handler:fm,selected:o},{handler:pm,selected:n}),{title:F("submenu_quality"),id:"QUALITY_DETAILS",items:[p1(t),...a.map(({handler:s,selected:d})=>s({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),u1(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:pa,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:um,selected:((i=xc())==null?void 0:i.type)==="auto_quality"},{handler:fm,selected:((o=xc())==null?void 0:o.type)==="traffic_saving"},{handler:pm,selected:((n=xc())==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:tu(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}))})},f1=({subMenuId:t,context:e})=>t?[y3[t](e)]:[];var x3=xe('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z" clip-rule="evenodd"></path></svg>');function mm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=x3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(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 w3=xe('<svg><!><path fill="var(--btn-color, #fff)" d="M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"></path></svg>');function vm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=w3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(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 S3=xe('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" fill-rule="nonzero" d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"></path></g></svg>');function gm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=S3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(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 C3=xe('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18" clip-rule="evenodd"></path></svg>');function hm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=C3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(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 T3=xe('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z" clip-rule="evenodd"></path></svg>');function _m(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=T3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(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 I3=xe('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492" clip-rule="evenodd"></path></svg>');function iu(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=I3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(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 k3=xe('<svg><!><path fill="var(--btn-color, #fff)" d="M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"></path></svg>');function bm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=k3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(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 E3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),P3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function $m(t,e){U(e,!0),W(t,P3);let[i,o]=Re(),n=()=>S(p,"$currentQuality$",i),a=()=>S(m,"$availableQualities$",i),s=()=>S(b,"$isAutoQualityEnabled$",i),d=()=>S(u,"$isMobile$",i),l=Te(),p=l.state.currentQuality$,m=l.state.availableQualities$,b=l.state.isAutoQualityEnabled$,u=l.ui.isMobile,_=v(()=>l1({quality:n(),availableQualities:a(),isAutoQualityEnabled:s()}));var w=E3(),y=h(w);pa(y,{get quality(){return n()},get label(){return r(_)},get isMobile(){return d()}}),g(w),$(t,w),z(),o()}var M3={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:Zl,label:F("menu_quality"),value:e,valueComponent:$m,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:mm,label:F("menu_traffic_saving"),enabled:t,tooltipText:F("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=tu(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:vm,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:gm,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:Xl,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:hm}),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:_m,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:iu,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:iu,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:bm,isHiddenFor:["desktop"]})},m1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>M3[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(Xs)};var R3=(t,e)=>{Mc(t,e)},N3=L('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),B3=L('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),D3=L("<div><!> <!></div>"),O3={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 rm(t,e){U(e,!0),K(t,Q4);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);Ft(()=>{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=K4();let M;var P=h(I);let k;P.__keydown=[z4,e];var V=h(P);let W;V.__click=[q4,e],V.__keydown=[W4,e];var Y=h(V);ws(Y,{direction:"left"});var F=A(Y,2),Q=h(F,!0);g(F),g(V),mt(V,Z=>D($,Z),()=>r($));var ie=A(V,2);Ci(ie,17,()=>e.items,Il,(Z,re)=>{var le=Oe(),Ae=ue(le);{var Me=se=>{im(se,{get item(){return r(re)},get isMobile(){return s()}})},ge=(se,Ee)=>{{var ne=R=>{om(R,{get isMobile(){return s()},get item(){return r(re)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};B(se,R=>{r(re).type==="OPEN_SUB_MENU"&&R(ne)},Ee)}};B(Ae,se=>{r(re).type==="SELECT_VALUE"?se(Me):se(ge,!1)})}_(Z,le)}),g(P),mt(P,Z=>p(Z),()=>p()),g(I),E((Z,re,le)=>{M=J(I,1,"sub-menu menu svelte-7dfsuh",null,M,Z),Be(I,"data-testid",`sub-menu-${e.id}`),nt(I,`min-width: ${r(T)}px`),k=J(P,1,"items svelte-7dfsuh",null,k,re),nt(P,r(C)),W=J(V,1,"item header back svelte-7dfsuh",null,W,le),Be(V,"aria-label",l()),me(Q,e.title)},[()=>({desktop:!s(),mobile:s()}),()=>({mobile:s()}),()=>({mobile:s()})]),Br(V,"clientWidth",Z=>D(w,Z)),Br(V,"clientHeight",Z=>D(b,Z)),_(t,I),z(),o()}rt(["keydown","click"]);import{noop as G4}from"@vkontakte/videoplayer-shared/es2018";var Y4=(t,e)=>Lc(t,e()),j4=(t,e)=>{t.stopPropagation(),e()()},Z4=L('<div class="value svelte-1ikfjte"> </div>'),X4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),J4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function sm(t,e){U(e,!0),K(t,J4);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,G4),n=f(e,"valueComponent",3,void 0),a=f(e,"ref",15);var s=X4();let d;s.__click=[j4,o],s.__keydown=[Y4,o];var l=h(s),p=h(l);{var m=T=>{aa(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,V)=>{V(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,V)=>{V(k,{})}),_(T,I)},C=T=>{var I=Z4(),M=h(I,!0);g(I),E(()=>me(M,e.value)),_(T,I)};B(w,T=>{n()?T(b):T(C,!1)})}g(s),mt(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()}rt(["click","keydown"]);import{noop as r1}from"@vkontakte/videoplayer-shared/es2018";var e3=(t,e)=>{Ga(t,()=>e())},t3=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),i3=L('<img class="icon" aria-hidden="true">'),o3=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),n3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function am(t,e){U(e,!0),K(t,n3);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,r1),n=f(e,"closeSettings",3,r1),a=X(!1),s=()=>{D(a,!0)},d=C=>{C==null||C.stopPropagation(),o()(),n()()};var l=o3();let p;l.__click=d,l.__keydown=[e3,d];var m=h(l),y=h(m);{var u=C=>{var T=Oe(),I=ue(T);{var M=k=>{var V=t3();_(k,V)},P=k=>{var V=i3();E(()=>Be(V,"src",e.icon)),St("error",V,s),Hs(V),_(k,V)};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()}rt(["click","keydown"]);import{noop as a3}from"@vkontakte/videoplayer-shared/es2018";var r3=L('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),s3={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,s3);let i=f(e,"enabled",3,!1);var o=r3(),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 l3=(t,e,i)=>{Ih(t,e(),o=>i()(o))},d3=(t,e,i)=>{t.stopPropagation(),e()(!i())},c3=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),u3=L('<li role="menuitem" tabindex="0"><!></li>');function dm(t,e){U(e,!0);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,a3),n=f(e,"enabled",3,!1),a=f(e,"tooltipText",3,void 0),s=f(e,"maxTooltipWidth",3,void 0);var d=u3();let l;d.__click=[d3,o,n],d.__keydown=[l3,n,o];var p=h(d);ta(p,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return s()},children:(m,y)=>{var u=c3();let $;var w=h(u),b=h(w);{var C=k=>{aa(k,{get icon(){return e.icon}})},T=k=>{var V=Oe();let W=v(()=>e.icon);var Y=ue(V);Ti(Y,()=>r(W),(F,Q)=>{Q(F,{})}),_(k,V)};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()}rt(["click","keydown"]);import{isValidURL as R3,VideoQuality as g1}from"@vkontakte/videoplayer-shared/es2018";var s1=()=>{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 p3=L('<div class="quality-icon svelte-t2qk8t"><!></div>'),f3=L('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),m3={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 ua(t,e){U(e,!0),K(t,m3);let i=f(e,"isSubCase",3,!1),o=v(()=>Dc(e.quality));var n=f3(),a=h(n);let s;var d=h(a,!0);g(a);var l=A(a,2);{var p=m=>{var y=p3();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()}import{VideoQuality as v3}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as a1}from"@vkontakte/videoplayer-core/es2018";var l1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},d1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=l1({quality:t,availableQualities:e});return i?t===a1.INVARIANT?q("auto_quality_invariant"):q("auto_quality",{actual:o}):o},c1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===a1.INVARIANT?i:`${i}${l1({quality:t,availableQualities:e})}`:"...";var g3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),h3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function ol(t,e){U(e,!0),K(t,h3);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()!==v3.INVARIANT?y:"")),$=v(()=>c1({prefix:r(u),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var w=g3(),b=h(w);let C=v(()=>e.selected?n():void 0);ua(b,{get quality(){return r(C)},get label(){return r($)},get isMobile(){return s()},isSubCase:!0}),g(w),_(t,w),z(),o()}var _3=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")},b3={br:!0,span:!0},cm=(t,e={})=>{var d,l,p,m,y,u,$;if(!t)return t;let i={...b3,...e},o=Object.keys(i);if(!o.length)return t;let n=_3(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?cm(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 wd(t,e){U(e,!1);let i=f(e,"message",8),o=cm(i());yr();var n=Oe(),a=ue(n);{var s=d=>{var l=Oe(),p=ue(l);kl(p,()=>o,!1,!1),_(d,l)};B(a,d=>{o&&d(s)})}_(t,n),z()}var $3=L('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),y3={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 um(t,e){U(e,!1),K(t,y3),yr();var i=$3(),o=h(i);let n=_r(()=>q("quality_applience",{action:`<span>${q("quality_applience_action")}</span>`}));wd(o,{get message(){return r(n)}}),g(i),_(t,i),z()}var p1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:ol,valueComponentParams:{prefix:q("other_quality"),selected:o},children:"QUALITY"}},pm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:q("auto_quality_limit"),valueComponent:e?ol:void 0,valueComponentParams:{prefix:q("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),f1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:um,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),fm=({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?ol:void 0,valueComponentParams:{prefix:q("high_quality"),selected:i},sublabel:q("high_quality_description")}),mm=({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?ol:void 0,valueComponentParams:{prefix:q("traffic_saving_quality"),selected:i},sublabel:q("traffic_saving_quality_description")});var tu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),iu=(t,e)=>{var s;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(s=Wc(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=tu(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=tu(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=tu(t,d);return q("audio_stream_display_language_index",{language:n,index:l})}}let a=tu(t,e);return q("audio_stream_display_unknown",{index:a})};var x3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,a=[];return i&&a.push({handler:pm,selected:e&&!o&&!n||!1}),a.push({handler:mm,selected:o},{handler:fm,selected:n}),{title:q("submenu_quality"),id:"QUALITY_DETAILS",items:[f1(t),...a.map(({handler:s,selected:d})=>s({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),p1(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:ua,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:pm,selected:((i=xc())==null?void 0:i.type)==="auto_quality"},{handler:mm,selected:((o=xc())==null?void 0:o.type)==="traffic_saving"},{handler:fm,selected:((n=xc())==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:iu(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===Gc?"sub_off":void 0}))})},m1=({subMenuId:t,context:e})=>t?[x3[t](e)]:[];var w3=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 vm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=w3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$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 S3=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 gm(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:te}),$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 C3=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 hm(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:te}),$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 T3=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 _m(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=T3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$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 I3=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 bm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=I3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$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 k3=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 ou(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=k3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$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 E3=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 $m(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=E3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$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 P3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),A3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function ym(t,e){U(e,!0),K(t,A3);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(()=>d1({quality:n(),availableQualities:a(),isAutoQualityEnabled:s()}));var w=P3(),b=h(w);ua(b,{get quality(){return n()},get label(){return r($)},get isMobile(){return d()}}),g(w),_(t,w),z(),o()}var L3={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:Zl,label:q("menu_quality"),value:e,valueComponent:ym,weight:Sr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Sr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:q("aria_label_submenu_traffic_saving"),icon:vm,label:q("menu_traffic_saving"),enabled:t,tooltipText:q("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=iu(t,e);return{id:"AUDIO_LANGUAGES",weight:Sr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_audio_languages",{actual:i}),icon:gm,label:q("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(n=>n.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:Sr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_rate",{actual:i}),icon:hm,label:q("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Sr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Xl,label:q("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Sr.download,type:"CLICK",onClick:t,label:q("download_video_caption"),ariaLabel:q("aria_label_menu_download"),icon:_m}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Sr.report,type:"CLICK",onClick:t,label:q("menu_report"),ariaLabel:`${q("menu_report")}. ${q("aria_label_new_tab_alert")}`,icon:bm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Sr["copy-data"],type:"CLICK",onClick:t,label:q("menu_copy_debug"),ariaLabel:q("menu_copy_debug"),icon:ou,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Sr["save-trace-info"],type:"CLICK",onClick:t,label:q("menu_save_debug"),ariaLabel:q("menu_save_debug"),icon:ou,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Sr["debug-info"],type:"CLICK",onClick:t,label:q("aria_label_menu_debug_overlay"),ariaLabel:q("menu_debug_overlay"),icon:$m,isHiddenFor:["desktop"]})},v1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>L3[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(Zs)};var B3=(t,e)=>{Mc(t,e)},N3=L('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),D3=L('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),O3=L("<div><!> <!></div>"),H3={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 Sd(t,e){U(e,!0),
|
|
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 Sd(t,e){U(e,!0),K(t,H3);let[i,o]=Ne(),n=()=>S(De,"$settingsMenuVisible",i),a=()=>S(je,"$settingsMenuOpenedByKeyboard",i),s=()=>S(Ct,"$debugPanelVisible",i),d=()=>S(Ve,"$isMobile",i),l=()=>S(it,"$playerSize",i),p=()=>S(ee,"$hasMpegSources$",i),m=()=>S(Ie,"$mobileNotReportControlHidden$",i),y=()=>S(ne,"$autoQualityLimitingAvailable$",i),u=()=>S(ae,"$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(dt,"$trafficSavingEnabled",i),M=()=>S(se,"$currentQuality$",i),P=()=>S(R,"$isAutoQualityEnabled$",i),k=()=>S(H,"$currentSubtitle$",i),V=()=>S(Wt,"$additionalSettingsMenuItems$",i),W=()=>S(xe,"$isAutoQualityAvailable$",i),Y=()=>S(Ee,"$availableQualities$",i),F=()=>S(ct,"$highQualityEnabled",i),Q=f(e,"ref",15,void 0),ie=f(e,"playerControlsHeight",3,0),Z=pe({}),re=pe({}),le=Ce(),Ae=Ut(),Me=le.state.audioStream$,ge=le.state.availableAudioStreams$,se=le.state.currentQuality$,Ee=le.state.availableQualities$,ne=le.state.autoQualityLimitingAvailable$,R=le.state.isAutoQualityEnabled$,xe=le.state.isAutoQualityAvailable$,_e=le.state.currentPlaybackRate$,ze=le.state.availablePlaybackRates$,H=le.state.currentSubtitle$,ae=le.state.availableSubtitlesList$,he=le.state.canDownload,ee=le.state.hasMpegSources$,De=le.ui.settingsMenu.visible$,je=le.ui.settingsMenu.openedByBtnKeyboard$,we=le.ui.settingsMenu.ref$,Ve=le.ui.isMobile,Ie=le.ui.mobileNotReportControlHidden$,Ue=le.state.canChangePlaybackSpeed$,dt=le.state.trafficSavingEnabled$,ct=le.state.highQualityEnabled$,it=le.ui.playerSize,Ct=le.ui.debugPanelVisible,vt=le.state.isInteractiveTime$,Wt=le.ui.additionalSettingsMenuItems$,ti=le.ui.t,Et=le.actions.internal.downloadVideo,Rt=le.actions.internal.closeSettingsMenu,O=le.actions.internal.openSettingsSubMenu,be=le.actions.internal.closeSettingsSubMenu,oe=X(!1),Re=X(void 0),Ke=s1();Fe(()=>{!n()&&Ke.current&&(be(re[Ke.current]),Ke.popAllSubMenus())}),Fe(()=>{n()||D(Re,void 0)}),Fe(()=>{!Ke.current&&r(Re)&&Ch(Z,r(Re))}),Fe(()=>{Q()&&we.set(Q())});async function Ge(Ze){Ke.pushSubMenu(Ze),await _o(),O(Ze,re[Ze])}function Le(Ze){var Mt;Ze==null||Ze.stopPropagation(),a()||(Mt=e.returnFocus)==null||Mt.call(e),Rt(),D(oe,!1)}function ot(Ze,Mt){le.actions.internal.setQuality(Ze,{appliesTo:Mt}),Le()}function Ye(Ze){le.actions.internal.setAudioStream(Ze),Le()}function gt(Ze,Mt){le.actions.internal.setTrafficSavingEnabled(Ze,Mt),Ae.features.qualityDetailsSubMenuEnabled&&Le()}function st(Ze,Mt){le.actions.internal.setHighQualityEnabled(Ze,Mt),Le()}function Xe(Ze){le.actions.internal.setPlaybackRate(Ze),Le()}function zt(Ze){le.actions.internal.setSubtitle(Ze),Le()}function tt(){Et()}function ni(){R3(e.supportLink)&&window.open(e.supportLink,"_blank"),le.actions.internal.reportProblem(),le.actions.internal.pause()}function yi(){Wa(le.actions.internal.getDebugTextData())}let Je=()=>{let Ze=le.actions.internal.getTraceTextData(),Mt=new Blob([...Ze],{type:"application/json"}),so=window.URL.createObjectURL(Mt);Ks(so,"vk_player_trace_info","json")};function jt(){Ct.set(!s())}function Mi(){D(oe,!0)}function Wi(){D(oe,!1)}function At(){return d()?`max-height: ${Math.round(l().height*.6)}px`:`max-height: ${l().height-32-ie()}px; overflow: auto;`}let _t=v(()=>he&&p()&&!m()),Bt=v(()=>Ae.features.trafficSaving&&!m()&&y()&&!Ae.features.qualityDetailsSubMenuEnabled),ro=v(()=>u().length>0&&!m()),ln=v(()=>!!$()&&!m()),Yi=v(()=>Ae.features.audioLanguages&&w().length>=2&&!m()),xo=v(()=>!m());Ft(()=>vt.subscribe(Ze=>{Ze&&!d()&&!r(oe)&&!a()&&Le()}));let j=v(()=>{let Ze=[r(xo)&&"QUALITY_SETTINGS",r(Yi)&&"AUDIO_LANGUAGES",r(ln)&&"PLAYBACK_RATE",r(ro)&&"SUBTITLES",r(Bt)&&"TRAFFIC_SAVING_SWITCH",r(_t)&&"DOWNLOAD",Ae.showSupport&&"SHOW_SUPPORT","COPY_DATA",Ae.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Mt=>!!Mt);return v1({items:Ze,context:{qualityDetailsSubMenuEnabled:Ae.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:b(),currentAudioStream:C(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:Xe,trafficSavingEnabled:I(),toggleTrafficSaving:gt,currentQuality:M()||g1.INVARIANT,isAutoQualityEnabled:P()||!1,currentSubtitle:k(),isMobile:d(),onDownloadClick:tt,onCopyDataClick:yi,onReportProblemClick:ni,onSaveTraceDataClick:Je,toggleShowDebugInfo:jt},additionalSettingsMenuItems:V()})}),Zt=v(()=>m1({subMenuId:Ke.current,context:{availablePlaybackRates:b(),selectPlaybackRate:Xe,trafficSavingEnabled:I(),toggleTrafficSaving:gt,currentQuality:M()||g1.INVARIANT,isAutoQualityEnabled:P()||!1,isAutoQualityAvailable:W()||!1,availableQualities:Y(),highQualityEnabled:F(),toggleHighQuality:st,availableAudioStreams:w(),availableSubtitlesList:u(),closeSettingsMenu:Rt,currentAudioStream:C(),isMobile:d(),selectAudioLanguage:Ye,selectQuality:ot,selectSubtitle:zt}}));var gi=O3();let Li;var ai=h(gi);{var ut=Ze=>{var Mt=D3();let so;Mt.__keydown=[B3,Rt];var Xt=h(Mt);{var Fn=ui=>{var xt=N3();let Vi;var Do=h(xt),pi=h(Do,!0);g(Do);var Oo=A(Do,2);Oo.__click=Le,g(xt),E((Ni,wo)=>{Vi=J(xt,1,"item header svelte-17or3al",null,Vi,Ni),me(pi,wo)},[()=>({mobile:d()}),()=>ti("submenu_settings")]),_(ui,xt)};B(Xt,ui=>{d()&&ui(Fn)})}var ji=A(Xt,2);let Eo;Ci(ji,21,()=>r(j),ui=>ui.id,(ui,xt)=>{var Vi=Oe(),Do=ue(Vi);{var pi=Ni=>{sm(Ni,{get isMobile(){return d()},get id(){return r(xt).id},get icon(){return r(xt).icon},get label(){return r(xt).label},get ariaLabel(){return r(xt).ariaLabel},get value(){return r(xt).value},get valueComponent(){return r(xt).valueComponent},onClick:()=>{Ge(r(xt).children),D(Re,pe(r(xt).id))},get ref(){return Z[r(xt).id]},set ref(wo){Z[r(xt).id]=wo}})},Oo=(Ni,wo)=>{{var Di=ao=>{am(ao,{get isMobile(){return d()},get id(){return r(xt).id},get onClick(){return r(xt).onClick},get icon(){return r(xt).icon},get label(){return r(xt).label},get ariaLabel(){return r(xt).ariaLabel},closeSettings:Le})},Un=(ao,Tn)=>{{var Po=Ao=>{dm(Ao,{get isMobile(){return d()},get id(){return r(xt).id},get onClick(){return r(xt).onClick},get icon(){return r(xt).icon},get label(){return r(xt).label},get ariaLabel(){return r(xt).ariaLabel},get enabled(){return r(xt).enabled},get tooltipText(){return r(xt).tooltipText},get maxTooltipWidth(){return r(xt).maxTooltipWidth}})};B(ao,Ao=>{r(xt).type==="SWITCH"&&Ao(Po)},Tn)}};B(Ni,ao=>{r(xt).type==="CLICK"?ao(Di):ao(Un,!1)},wo)}};B(Do,Ni=>{r(xt).type==="OPEN_SUB_MENU"?Ni(pi):Ni(Oo,!1)})}_(ui,Vi)}),g(ji),mt(ji,ui=>Q(ui),()=>Q()),g(Mt),E((ui,xt,Vi)=>{so=J(Mt,1,"settings-menu menu svelte-17or3al",null,so,ui),Eo=J(ji,1,"items",null,Eo,xt),nt(ji,Vi)},[()=>({desktop:!d(),mobile:d(),hidden:!!Ke.current}),()=>({mobile:d()}),At]),St("mouseenter",Mt,Mi),St("mouseleave",Mt,Wi),_(Ze,Mt)};B(ai,Ze=>{n()&&Ze(ut)})}var mi=A(ai,2);Ci(mi,17,()=>r(Zt),Ze=>Ze.id,(Ze,Mt)=>{let so=v(()=>{var Xt;return(Xt=r(Mt).minWidth)!=null?Xt:137});rm(Ze,{get isMobile(){return d()},get playerControlsHeight(){return ie()},get returnFromSubMenu(){return Ke.popSubMenu},get id(){return r(Mt).id},get title(){return r(Mt).title},closeSettingsMenu:Rt,openSubMenuList:Ge,get items(){return r(Mt).items},get minWidth(){return r(so)},get refMenuItems(){return Z},get listRef(){return re[r(Mt).id]},set listRef(Xt){re[r(Mt).id]=Xt}})}),g(gi),E(Ze=>Li=J(gi,1,"settings-menu-container svelte-17or3al",null,Li,Ze),[()=>({mobile:d(),hidden:!n()})]),_(t,gi),z(),o()}rt(["keydown","click"]);var F3=t=>t;function h1(t,{delay:e=0,duration:i=400,easing:o=F3}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*n}`}}var U3=L('<button class="button svelte-1sbbskl"> </button>'),z3={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 xm(t,e){K(t,z3);var i=U3();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)}rt(["click"]);var q3=L('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),W3={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 Cd(t,e){U(e,!0),
|
|
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 Cd(t,e){U(e,!0),K(t,W3);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Ut(),{ui:{t:n}}=Ce(),a=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var s=q3(),d=h(s),l=h(d),p=h(l),m=h(p);wd(m,{message:a}),g(p);var y=A(p,2);{var u=w=>{let b=v(()=>n("slow_video_notification_button"));xm(w,{get label(){return r(b)},get onClick(){return e.onSelectAutoQuality}})};B(y,w=>{o||w(u)})}g(l);var $=A(l,2);Xs($,{get onClick(){return e.onClose}}),g(d),g(s),dp(3,d,()=>h1,()=>({duration:i})),_(t,s),z()}var pa="annotation",nu=class{constructor(){this.slots=new Map}init(e){this.shadowRootContainer=e}add(e,{overlay:i,id:o}){e.setAttribute("slot",pa),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>'),Q3={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.`},lh=t_;var es=new Map;es.set(ch.EN,lh)
|
|
|
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 ma(t,e){U(e,!0),W(t,j3);let[i,o]=Re(),n=()=>S(m,"$rotateAlpha",i),a=()=>S(b,"$playerSize",i),s=()=>S(p,"$playerPhase",i),d=()=>S(u,"$isPlaying$",i),l=f(e,"videoContainer",15),{playerPhase:p,ui:{rotateAlpha:m,playerSize:b},state:{isPlaying$:u}}=Te(),{isSmoothVideoRotate:_}=qt(),w=v(()=>l()&&n()%180?a().height/a().width:1);var y=G3();let C;y.__contextmenu=function(...k){var P;(P=e.onContextMenu)==null||P.apply(this,k)},y.__mousedown=function(...k){var P;(P=e.onMouseDown)==null||P.apply(this,k)},y.__mouseup=function(...k){var P;(P=e.onMouseUp)==null||P.apply(this,k)},y.__click=function(...k){var P;(P=e.onClick)==null||P.apply(this,k)},y.__dblclick=function(...k){var P;(P=e.onDblClick)==null||P.apply(this,k)};var T=h(y);J(T,1,"video-container svelte-1czns9r",null,{},{"fast-rotate":!_}),pt(T,k=>l(k),()=>l()),g(y),E(k=>{C=J(y,1,"video-wrapper svelte-1czns9r",null,C,k),nt(T,`transform: rotate(${n()}deg) scale(${r(w)})`),Be(T,"data-is-playing",d())},[()=>({hidden:s()!=="video",nocursor:e.hideCursor})]),$(t,y),z(),o()}st(["contextmenu","mousedown","mouseup","click","dblclick"]);var Y3=(t,e,i,o,n,a)=>{if(t.stopPropagation(),e()||o()){a();return}},Z3=L("<div><!></div>"),X3=L('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),J3=L("<div><!></div>"),ex=L('<div class="settings-menu svelte-jtgjmv"><!></div>'),tx=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),ix=L("<!> <!> <!>",1),ox=L('<div class="blocked svelte-jtgjmv"></div>'),nx=L('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),rx={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 wm(t,e){U(e,!0),W(t,rx);let[i,o]=Re(),n=()=>S(nn,"$notificationsToShow$",i),a=()=>S(Ni,"$playerPhase",i),s=()=>S(Xt,"$isLoaderVisible",i),d=()=>S(ti,"$adPlaybackState",i),l=()=>S(Mt,"$crashed",i),p=()=>S(Eo,"$isInteractiveTime$",i),m=()=>S(Rt,"$settingsMenuVisible",i),b=()=>S(pi,"$isInteractiveExpectation$",i),u=()=>S(ht,"$controlsVisible",i),_=()=>S(qi,"$touched",i),w=()=>S(ir,"$graphIsOpened$",i),y=()=>S(zi,"$isFullscreen",i),C=()=>S(wr,"$autoplayNextEnabled$",i),T=()=>S(ft,"$postrollPassed",i),k=()=>S(ri,"$isEnded$",i),P=()=>S(Lo,"$cursorInside",i),A=()=>S(Rn,"$isControlsAvailable",i),I=()=>S(bn,"$fakeIsPlaying$",i),V=()=>S(an,"$bottomNoSmooth",i),q=()=>S(So,"$interactiveTimeIndicator",i),Q=()=>S(Ho,"$playerSize",i),H=()=>S(di,"$is3DVideo",i),Y=()=>S($o,"$contextMenuVisible$",i),ne=()=>S(Qt,"$playbackState$",i),Z=()=>S(xo,"$hotKeyMapData",i),de=()=>S(en,"$scrubbingInProgress",i),ce=()=>S(hn,"$volumeChangingInProgress",i),Le=()=>S(Bi,"$chromecastConnected$",i),Ae=()=>S(Fo,"$controlsTimeoutActive",i),he=()=>S(co,"$settingsMenuOpenedByKeyboard",i),se=()=>S(Ro,"$contextMenuOpenedByKeyboard$",i),Me=()=>S(kr,"$contextMenuButtonRef$",i),oe=()=>S(pr,"$contextMenuOpenedByHotKey$",i),B=()=>S(Er,"$contextMenuLastActiveElem$",i),be=()=>S(At,"$isFullscreenOpenedByKeyboard",i),le=()=>S(Xe,"$language$",i),We=()=>S(xt,"$icon3DVideoVisible",i),ee=()=>S(li,"$chromecastDeviceName$",i),me=()=>S(er,"$currentSubtitle$",i),j=()=>S(yo,"$currentSubtitleCaptions$",i),te=()=>S(Je,"$position$",i),Oe=()=>S(Zt,"$duration$",i),Ge=()=>S(ui,"$isLive$",i),$e=()=>S(Ze,"$isPlaying$",i),we=()=>S(ji,"$contextMenuPosition$",i),Ve=()=>S(wo,"$showHotKeyMap",i),je=()=>S(G,"$debugPanelVisible",i),dt=()=>S(tr,"$userActionsDisabled$",i),ct=f(e,"videoContainer",15),rt=f(e,"adsSlotId",3,void 0),Ct=f(e,"adsParams",3,void 0),_t=f(e,"adsPreviewParam",3,void 0),Gt=f(e,"adsAutoplayParam",3,void 0),ni=f(e,"duration",3,void 0),It=f(e,"logoTargetUrl",3,""),Vt=f(e,"showNextPrevButtons",3,!1),O=f(e,"nextButtonActive",3,!1),_e=f(e,"prevButtonActive",3,!1),re=f(e,"endScreenVideoTitle",3,void 0),Ne=f(e,"endScreenVideoThumb",3,void 0),ze=f(e,"isOneVideoPlaylist",3,!1),Qe=f(e,"shadowRootContainer",3,void 0),ut=f(e,"outerContainerRef",3,void 0),Ye=f(e,"playerStarted",3,!1),et=f(e,"fullScreenTarget",3,void 0),tt=f(e,"showMiniTimer",3,!1),qe=f(e,"showEndScreen",3,!0),gt=f(e,"keyboardControls",15),Ht=e.store.getLogger().createComponentLog("Root component"),Xe=e.store.interfaceLanguage$,Qt=e.store.state.playbackState$,ti=e.store.ads.playbackState,Je=e.store.state.positionWithScrubbing$,Zt=e.store.state.duration$,Ni=e.store.playerPhase,zi=e.store.ui.isFullscreen,At=e.store.ui.isFullscreenOpenedByKeyboard,ht=e.store.ui.controlsVisible,Rt=e.store.ui.settingsMenu.visible$,co=e.store.ui.settingsMenu.openedByBtnKeyboard$,en=e.store.ui.scrubbingInProgress,hn=e.store.ui.volumeChangingInProgress,$o=e.store.ui.contextMenu.visible$,G=e.store.ui.debugPanelVisible,Xt=e.store.state.isLoaderVisible,ri=e.store.state.isEnded$,Bi=e.store.state.chromecastConnected$,li=e.store.state.chromecastDeviceName$,ft=e.store.ads.postrollPassed,ui=e.store.state.isLive$,Ze=e.store.state.isPlaying$,Mt=e.store.state.crashed$,eo=e.store.webApi.annotationsApi,ii=e.store.webApi.pictureInPictureApi,er=e.store.state.currentSubtitle$,yo=e.store.state.currentSubtitleCaptions$,Ho=e.store.ui.playerSize,di=e.store.ui.is3DVideo,xt=e.store.ui.icon3DVideoVisible,Ci=e.store.state.isInteractive,Eo=e.store.state.isInteractiveTime$,pi=e.store.state.isInteractiveExpectation$,Po=e.store.state.hasInteractiveBranches,qi=e.store.ui.touched,xo=e.store.ui.modals.hotKeyMap.data,wo=e.store.ui.modals.hotKeyMap.show,Vn=e.store.ui.overlayContainer$,So=e.store.ui.controls.interactiveTimeIndicator,_n=e.store.state.showInteractiveTimeIndicator,ji=e.store.ui.contextMenu.position$,Ao=e.store.actions.internal.setQuality,tn=e.store.actions.internal.closeSettingsMenu,wr=e.store.ui.autoplayNextEnabled$,tr=e.store.ui.userActionsDisabled,Rn=e.store.ui.isControlsAvailable,{fakeIsPlaying$:bn,notifications$:Nn,graphIsOpened$:ir}=lo(),to=X(void 0),Mo=X(void 0),$n=X(void 0),it=X(void 0),yn,Bn,on;xo.set(hh());let{closeNotification:or,notificationsToShow$:nn}=Nn,rn=v(()=>!!n().slow_video),sn=()=>or("slow_video"),Yi=v(()=>(a()==="video"&&s()||a()==="ads"&&d()==="inactive")&&!l()),Wi=X(void 0),an=ae(!1),Dn,Fo=ae(!1),ln=ae(),Lo=ae(!1),uo=X(!1),Di=X(!1),On=X(!1),io=X(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),xn=v(()=>p()&&!m()&&!(r(uo)||r(Di))&&!(r(On)&&!b())),Hn=!0,dn=v(()=>e.uiConfig.features.thumbTimer&&tt()&&a()==="video"&&!u()&&!l()&&!Ci&&(e.uiConfig.hideThumbTimerAfterTouch&&!_()||!e.uiConfig.hideThumbTimerAfterTouch)),Sr=v(()=>a()==="video"&&!w()&&y()),Uo=X(!1),Cr=v(()=>(qe()||e.showAutoplayNext&&C())&&!!re()&&!!Ne()&&(e.showAds&&T()||!e.showAds)&&k()&&!l()&&!r(Uo)),Fn=v(()=>P()&&!(u()||r(Cr))&&!p()&&A()),Un=X(!1),nr=v(()=>I()!==null),{toggle:Tr}=bn,wn=!1,Jt=null;ii==null||ii.setContext(Sl());let rr=()=>{e.autoplay&&!Ci&&e.uiConfig.controls.showOnStartupAtAutoplay&&Ti(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:rr});let Ir=()=>{window.clearTimeout(yn),Fo.set(!1)},Vo=()=>{window.clearTimeout(Bn),ln.set(null)},Ti=Se=>{Ir(),Fo.set(!0),yn=window.setTimeout(()=>Fo.set(!1),Se);let Pt=Se-100;Dn=window.setTimeout(()=>{V()&&an.set(!1)},Pt>0?Pt:Se)},sr=(Se,Pt)=>{Vo(),ln.set(Pt),Bn=window.setTimeout(()=>ln.set(null),Se)},mt=di.subscribe(Se=>{xt.set(Se),Se&&(window.clearTimeout(on),on=window.setTimeout(()=>xt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Ft=async()=>{var Pt,gi,_i,mi;let Se=gs();if(Se){let ke=Dl(),bt=ot();Se=ke===bt||ke===Qe()}if(Se){Ti(e.uiConfig.controls.hideTimeoutFullscreen);try{await(ii==null?void 0:ii.remove())}catch(ke){Ht({message:String(ke)})}}zi.set(Se),e.store.getAdmanWrapper().setFullscreen(Se),y()?(gi=(Pt=e.store.callbacks)==null?void 0:Pt.onFullscreenEnter)==null||gi.call(Pt):(mi=(_i=e.store.callbacks)==null?void 0:_i.onFullscreenExit)==null||mi.call(_i)},Pi=Se=>{let{width:Pt,height:gi}=Se.target;Ho.set({width:Pt,height:gi})},Co=()=>{let{width:Se,height:Pt}=r(to).getBoundingClientRect();Ho.set({width:Se,height:Pt})};zt(()=>{var Pt;return Pc(Ft),e.uiConfig.features.annotationsInside&&(eo==null||eo.init(r(to))),Ys(ii)&&(ii==null||ii.assignPlayerContainer(r(to)),ii==null||ii.registryExternalEventHandlers({resize:Pi,leavepictureinpicture:Co})),e.interactiveContainer&&((Pt=ct().parentElement)==null||Pt.insertBefore(e.interactiveContainer,ct().nextSibling)),()=>{window.clearTimeout(yn),window.clearTimeout(Dn),window.clearTimeout(Bn),window.clearTimeout(on),mt(),ii==null||ii.dispose().catch(gi=>{Ht({message:String(gi)})}),Ac(Ft)}});let ot=()=>{let Se=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!ut()?r(to):ut(),Pt=Se.getRootNode(),gi=Pt instanceof ShadowRoot?Pt.host:Pt,_i=et()instanceof HTMLElement&&et().contains(gi);return e.uiConfig.allowChangingFullscreenTarget&&et()&&_i?et():Se},Nt=async()=>{gs()?(await Ec(document),Ht({message:"exit fullscreen"})):(Ht({message:"request fullscreen"}),await kc(ot()))},fi=()=>{tn(),$o.set(!1)},Oi=Se=>{w()||(Se.preventDefault(),$o.set(!0),ji.set({left:Se.clientX,top:Se.clientY}))};function po(){Lo.set(!0),Ci||Ti(e.uiConfig.controls.hideTimeoutCursor)}function wi(){Ci||(an.set(!0),Ti(e.uiConfig.controls.hideTimeoutCursor))}function Ai(){Lo.set(!1),D(Di,!1),D(uo,!1),wn=!1,e.store.actions.internal.releaseCamera(),Ti(e.uiConfig.controls.hideTimeout)}function vi(Se){return Se?Se.offsetTop+vi(Se.offsetParent):0}function hi(Se){return Se?Se.offsetLeft+hi(Se.offsetParent):0}function Hi(Se){if(q()&&_n){let Pt=Se.currentTarget,gi=vi(Pt),_i=hi(Pt),mi=Se.pageX-_i,ke=Se.pageY-gi,{left:bt,bottom:Kt,right:Si}=q(),si=Si-bt;return mi>=bt-si&&ke<=Kt+si}}function zn(Se){if(r(to)){let Pt=vi(Se.currentTarget),gi=Q().height,_i=Se.pageY-Pt;if(Hi(Se)){D(Di,!1);return}_i<40?D(Di,!0):_i>gi-40?D(uo,!0):(D(Di,!1),m()||D(uo,!1))}}function ar(Se){zn(Se),r(xn)||Ti(e.uiConfig.controls.hideTimeoutCursor),H()&&wn&&Jt&&e.store.actions.internal.moveCameraFocusPX(Jt.clientX-Se.clientX,Jt.clientY-Se.clientY,Se.timeStamp-Jt.timeStamp),Jt=Se}let qn=Se=>{Se.preventDefault(),Se.button===0&&(wn=!0,e.store.actions.internal.holdCamera()),Ti(e.uiConfig.controls.hideTimeoutCursor)},lr=Se=>{Se.preventDefault(),Se.button===0&&(Jt=Se,wn=!1,e.store.actions.internal.releaseCamera()),Ti(e.uiConfig.controls.hideTimeoutCursor)},dr=Se=>{Se.preventDefault(),Hn&&(Ht({message:"double click on video"}),Nt(),Ti(e.uiConfig.controls.hideTimeoutCursor))},cr=Se=>{var Pt;if(Se.preventDefault(),Y()||m()){fi();return}if(!(k()&&!Po)){if(r(nr))return Tr();if((Pt=gt())==null||Pt.focus(),!Ye()){e.firstStart(),Ti(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||ne()!==_1.PLAYING)&&e.store.actions.internal.togglePlay(),Ti(e.uiConfig.controls.hideTimeoutCursor)}},ur=Se=>{fi(),qi.set(!0),Ti(e.uiConfig.controls.hideTimeout),Se&&sr(e.uiConfig.controls.hideHotKeyHelpers,Se)},Wn=()=>{var Se,Pt;fi(),(Se=e.store.callbacks)!=null&&Se.onOpenHotKeyMap?(Pt=e.store.callbacks)==null||Pt.onOpenHotKeyMap(Z()):wo.update(gi=>!gi)},Kn=()=>{qi.set(!0)},Ro=e.store.ui.contextMenu.openedByBtnKeyboard$,kr=e.store.ui.contextMenu.btnRef$,No=X(void 0),pr=e.store.ui.contextMenu.openedByHotKey$,Er=e.store.ui.contextMenu.lastActiveElem$;He(()=>{Vn.set(r(Wi))}),He(()=>{D(On,fe(r(io)&&ne()!==_1.PLAYING)),r(io)||yt(()=>D(io,!0))}),He(()=>{ht.set((r(On)||k()||m()||de()||ce()||Le()||Ae())&&!r(xn)&&(a()==="video"||a()==="ads")&&!l()&&A())}),He(()=>{!de()&&r(Un)&&!p()&&Ti(e.uiConfig.controls.hideTimeoutCursor),yt(()=>D(Un,fe(de())))}),He(()=>{r(it),m(),he(),yt(()=>Ga(r(it),m(),he()))}),He(()=>{r(No),Y(),se(),yt(()=>Ga(r(No),Y(),se()))}),He(()=>{let Se=Me();Se&&(Y(),yt(()=>Qa(Se,Y(),Ro)))}),He(()=>{r(No),Y(),oe(),yt(()=>Ga(r(No),Y(),oe()))}),He(()=>{let Se=B();Se&&(Y(),yt(()=>wh(Se,Y(),pr)))}),He(()=>{var Se;!be()&&y()&&(yt(()=>At.set(!1)),(Se=gt())==null||Se.focus())}),He(()=>{w()&&fi()});let Pr=F("video360");var Ar=nx();St("blur",Ds,fi);var Zi=pe(Ar);Zi.__mousemove=ar;var Sn=h(Zi);let Mr=v(()=>a()==="ads"),at=v(()=>r(nr)?Tr:void 0);pt(Up(Sn,{toggleFullscreen:Nt,hideContextMenu:fi,showHotKeyHelpers:ur,showKeyMap:Wn,get isAds(){return r(Mr)},get fakePlayButtonHandler(){return r(at)},get nextButtonActive(){return O()},get prevButtonActive(){return _e()},children:(Se,Pt)=>{var gi=ix(),_i=pe(gi);ma(_i,{get hideCursor(){return r(Fn)},onClick:cr,onContextMenu:Oi,onMouseDown:qn,onMouseUp:lr,onDblClick:dr,get videoContainer(){return ct()},set videoContainer(bt){ct(bt)}});var mi=M(_i,2);qs(mi,()=>"slot",!1,(bt,Kt)=>{Ie(bt,null,{name:fa})});var ke=M(mi,2);zs(ke,le,bt=>{var Kt=tx(),Si=pe(Kt);let si=v(()=>a()!=="thumb"||l()||Ci&&e.autoplay);ca(Si,{get hidden(){return r(si)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Ur=M(Si,2);xm(Ur,{});var Fi=M(Ur,2);{var Qn=Fe=>{let ai=v(()=>{var qo;return(qo=e.live)==null?void 0:qo.startTime});yd(Fe,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(ai)}})};R(Fi,Fe=>{a()==="LiveWaitingStart"&&Fe(Qn)})}var Cs=M(Fi,2);{var Gn=Fe=>{ua(Fe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(Cs,Fe=>{a()==="LiveWaitingRecover"&&Fe(Gn)})}var va=M(Cs,2);{var sl=Fe=>{ua(Fe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(va,Fe=>{a()==="LiveWaitingRecord"&&Fe(sl)})}var ga=M(va,2);{var ha=Fe=>{var ai=Z3();let qo;var Es=h(ai);Ol(Es,{get adsSlotId(){return rt()},get adsParams(){return Ct()},get adsPreviewParam(){return _t()},get adsAutoplayParam(){return Gt()},get duration(){return ni()}}),g(ai),E(fo=>qo=J(ai,1,"ads-container svelte-jtgjmv",null,qo,fo),[()=>({hidden:a()!=="ads"})]),$(Fe,ai)};R(ga,Fe=>{e.showAds&&Ye()&&Fe(ha)})}var _a=M(ga,2);{var al=Fe=>{let ai=v(()=>!qe()&&e.showAutoplayNext&&C());Op(Fe,{get title(){return re()},get thumb(){return Ne()},get isHide(){return r(ai)},clickCloseIcon:()=>D(Uo,!0)})};R(_a,Fe=>{r(Cr)&&re()&&Ne()&&Fe(al)})}var Ts=M(_a,2);{var ba=Fe=>{let ai=v(()=>!u());Zf(Fe,{get title(){return e.title},get isHidden(){return r(ai)}})};R(Ts,Fe=>{r(Sr)&&Fe(ba)})}var lt=M(Ts,2);{var $t=Fe=>{let ai=v(()=>a()==="video"&&u());_d(Fe,{get isShifted(){return r(ai)}})};R(lt,Fe=>{H()&&Fe($t)})}var Xi=M(lt,2);{var zo=Fe=>{var ai=X3(),qo=h(ai);Bl(qo,{"aria-label":Pr}),g(ai),$(Fe,ai)};R(Xi,Fe=>{We()&&Fe(zo)})}var Ji=M(Xi,2);{var ci=Fe=>{bd(Fe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ee()}})};R(Ji,Fe=>{Le()&&Fe(ci)})}var Li=M(Ji,2);{var Is=Fe=>{da(Fe,{get shifted(){return u()},get captions(){return j()},get position(){return te()},get playerSize(){return Q()}})};R(Li,Fe=>{me().value!=="off"&&Fe(Is)})}var $a=M(Li,2);{var mu=Fe=>{var ai=J3();ai.__contextmenu=Oi,ai.__click=[Y3,Y,$o,m,Rt,fi];var qo=h(ai);$d(qo,{}),g(ai),$(Fe,ai)};R($a,Fe=>{l()&&Fe(mu)})}var Nd=M($a,2);{var vu=Fe=>{let ai=v(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),qo=v(()=>a()==="ads"),Es=v(()=>e.canRewindLive&&Oe()!==0);hd(Fe,{get bottomHidden(){return r(ai)},get bottomNoSmooth(){return V()},get showControls(){return u()},get isAds(){return r(qo)},get canRewindLive(){return r(Es)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return It()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Vt()},get nextButtonActive(){return O()},get prevButtonActive(){return _e()},get isOneVideoPlaylist(){return ze()},customFullscreenSupported:Hn,toggleFullscreen:Nt,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(Mo)},set playerControlsWrapperRef(fo){D(Mo,fe(fo))},get playerControlsRef(){return r($n)},set playerControlsRef(fo){D($n,fe(fo))}})};R(Nd,Fe=>{Ye()&&Fe(vu)})}var Bd=M(Nd,2);{var gu=Fe=>{var ai=ex(),qo=h(ai);let Es=v(()=>{var fo;return(fo=r($n))==null?void 0:fo.clientHeight});Sd(qo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(Es)},returnFocus:()=>{var fo;return(fo=gt())==null?void 0:fo.focus()},get ref(){return r(it)},set ref(fo){D(it,fe(fo))}}),g(ai),$(Fe,ai)};R(Bd,Fe=>{!Le()&&a()!=="ads"&&Fe(gu)})}var Dd=M(Bd,2);let hu=v(()=>!r(dn));Ul(Dd,{get isLive(){return Ge()},get isHidden(){return r(hu)},get isPlaying(){return $e()},get position(){return te()},get duration(){return Oe()}});var ks=M(Dd,2);Qf(ks,{data:ln});var Od=M(ks,2);Dp(Od,{get supportLink(){return e.supportLink},returnFocus:()=>{var Fe;return(Fe=gt())==null?void 0:Fe.focus()},get visible(){return Y()},get playerContainerRef(){return r(to)},get controlsContainerRef(){return r(Mo)},get position(){return we()},get menuElementRef(){return r(No)},set menuElementRef(Fe){D(No,fe(Fe))}});var ll=M(Od,2);{var Hd=Fe=>{Cd(Fe,{onClose:sn,onSelectAutoQuality:()=>{Ao("auto"),sn()}})};R(ll,Fe=>{r(rn)&&Fe(Hd)})}var Fd=M(ll,2);{var Ud=Fe=>{ta(Fe,{})};R(Fd,Fe=>{r(Yi)&&Fe(Ud)})}var ya=M(Fd,2);{var zd=Fe=>{Wp(Fe,{})};R(ya,Fe=>{Ve()&&Fe(zd)})}var _u=M(ya,2);{var qd=Fe=>{Kl(Fe,{})};R(_u,Fe=>{je()&&Fe(qd)})}$(bt,Kt)}),$(Se,gi)},$$slots:{default:!0}}),Se=>gt(Se),()=>gt());var Ut=M(Sn,2);pt(Ut,Se=>D(Wi,Se),()=>r(Wi)),g(Zi),pt(Zi,Se=>D(to,Se),()=>r(to));var Mi=M(Zi,2);{var To=Se=>{var Pt=ox();$(Se,Pt)};R(Mi,Se=>{dt()&&Se(To)})}St("mouseenter",Zi,po),St("mouseleave",Zi,Ai),St("click",Zi,Kn,!0),St("focusin",Zi,wi,!0),$(t,Ar),z(),o()}st(["mousemove","contextmenu","click"]);import{clientChecker as Td,PlaybackState as vx}from"@vkontakte/videoplayer-core/es2018";import{noop as gx}from"@vkontakte/videoplayer-shared/es2018";var sx=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),ax=L("<div><!></div>"),lx={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 wm(t,e){U(e,!0),K(t,Q3);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}}=Ut(),u=0,$=X(null),w=X(!1);Fe(()=>{D($,pe(n()?wr:ns))}),Fe(()=>{D($,pe(a()?xs:null))}),Fe(()=>{if(p)return u=window.setTimeout(()=>{u=0,a()&&r($)===xs&&(a()==="next"?l.internal.nextVideoClick(!1):l.internal.prevVideoClick(!1)),D($,null)},r($)!==xs?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);Us(P,()=>r($),k=>{var V=K3(),W=h(V),Y=h(W);let F=v(()=>a()==="prev");Ti(Y,()=>r($),(Q,ie)=>{ie(Q,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return r(F)}})}),g(W),g(V),E(()=>nt(W,`animation-duration: ${r($)!==xs?m:y}ms`)),_(k,V)}),_(I,M)};B(C,I=>{r($)&&p&&I(T)})}_(t,b),z(),o()}var G3=L('<div><div data-testid="video-container"></div></div>'),Y3={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 fa(t,e){U(e,!0),K(t,Y3);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:$}=Ut(),w=v(()=>l()&&n()%180?a().height/a().width:1);var b=G3();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":!$}),mt(T,I=>l(I),()=>l()),g(b),E(I=>{C=J(b,1,"video-wrapper svelte-1czns9r",null,C,I),nt(T,`transform: rotate(${n()}deg) scale(${r(w)})`),Be(T,"data-is-playing",d())},[()=>({hidden:s()!=="video",nocursor:e.hideCursor})]),_(t,b),z(),o()}rt(["contextmenu","mousedown","mouseup","click","dblclick"]);var j3=(t,e,i,o,n,a)=>{if(t.stopPropagation(),e()||o()){a();return}},Z3=L("<div><!></div>"),X3=L('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),J3=L("<div><!></div>"),ex=L('<div class="settings-menu svelte-jtgjmv"><!></div>'),tx=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),ix=L("<!> <!> <!>",1),ox=L('<div class="blocked svelte-jtgjmv"></div>'),nx=L('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),rx={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 Sm(t,e){U(e,!0),K(t,rx);let[i,o]=Ne(),n=()=>S(cn,"$notificationsToShow$",i),a=()=>S(Mi,"$playerPhase",i),s=()=>S(Zt,"$isLoaderVisible",i),d=()=>S(yi,"$adPlaybackState",i),l=()=>S(Mt,"$crashed",i),p=()=>S(Do,"$isInteractiveTime$",i),m=()=>S(Bt,"$settingsMenuVisible",i),y=()=>S(pi,"$isInteractiveExpectation$",i),u=()=>S(_t,"$controlsVisible",i),$=()=>S(Ni,"$touched",i),w=()=>S(pt,"$graphIsOpened$",i),b=()=>S(Wi,"$isFullscreen",i),C=()=>S(Cr,"$autoplayNextEnabled$",i),T=()=>S(ut,"$postrollPassed",i),I=()=>S(gi,"$isEnded$",i),M=()=>S(Pn,"$cursorInside",i),P=()=>S(kn,"$isControlsAvailable",i),k=()=>S(dn,"$fakeIsPlaying$",i),V=()=>S(un,"$bottomNoSmooth",i),W=()=>S(ao,"$interactiveTimeIndicator",i),Y=()=>S(Eo,"$playerSize",i),F=()=>S(ui,"$is3DVideo",i),Q=()=>S(xo,"$contextMenuVisible$",i),ie=()=>S(ni,"$playbackState$",i),Z=()=>S(wo,"$hotKeyMapData",i),re=()=>S(ln,"$scrubbingInProgress",i),le=()=>S(Yi,"$volumeChangingInProgress",i),Ae=()=>S(Li,"$chromecastConnected$",i),Me=()=>S(zo,"$controlsTimeoutActive",i),ge=()=>S(ro,"$settingsMenuOpenedByKeyboard",i),se=()=>S(Go,"$contextMenuOpenedByKeyboard$",i),Ee=()=>S(Ar,"$contextMenuButtonRef$",i),ne=()=>S(mr,"$contextMenuOpenedByHotKey$",i),R=()=>S(Fr,"$contextMenuLastActiveElem$",i),xe=()=>S(At,"$isFullscreenOpenedByKeyboard",i),_e=()=>S(tt,"$language$",i),ze=()=>S(xt,"$icon3DVideoVisible",i),H=()=>S(ai,"$chromecastDeviceName$",i),ae=()=>S(Fn,"$currentSubtitle$",i),he=()=>S(ji,"$currentSubtitleCaptions$",i),ee=()=>S(Je,"$position$",i),De=()=>S(jt,"$duration$",i),je=()=>S(mi,"$isLive$",i),we=()=>S(Ze,"$isPlaying$",i),Ve=()=>S(Po,"$contextMenuPosition$",i),Ie=()=>S(Di,"$showHotKeyMap",i),Ue=()=>S(j,"$debugPanelVisible",i),dt=()=>S(lr,"$userActionsDisabled$",i),ct=f(e,"videoContainer",15),it=f(e,"adsSlotId",3,void 0),Ct=f(e,"adsParams",3,void 0),vt=f(e,"adsPreviewParam",3,void 0),Wt=f(e,"adsAutoplayParam",3,void 0),ti=f(e,"duration",3,void 0),Et=f(e,"logoTargetUrl",3,""),Rt=f(e,"showNextPrevButtons",3,!1),O=f(e,"nextButtonActive",3,!1),be=f(e,"prevButtonActive",3,!1),oe=f(e,"endScreenVideoTitle",3,void 0),Re=f(e,"endScreenVideoThumb",3,void 0),Ke=f(e,"isOneVideoPlaylist",3,!1),Ge=f(e,"shadowRootContainer",3,void 0),Le=f(e,"outerContainerRef",3,void 0),ot=f(e,"playerStarted",3,!1),Ye=f(e,"fullScreenTarget",3,void 0),gt=f(e,"showMiniTimer",3,!1),st=f(e,"showEndScreen",3,!0),Xe=f(e,"keyboardControls",15),zt=e.store.getLogger().createComponentLog("Root component"),tt=e.store.interfaceLanguage$,ni=e.store.state.playbackState$,yi=e.store.ads.playbackState,Je=e.store.state.positionWithScrubbing$,jt=e.store.state.duration$,Mi=e.store.playerPhase,Wi=e.store.ui.isFullscreen,At=e.store.ui.isFullscreenOpenedByKeyboard,_t=e.store.ui.controlsVisible,Bt=e.store.ui.settingsMenu.visible$,ro=e.store.ui.settingsMenu.openedByBtnKeyboard$,ln=e.store.ui.scrubbingInProgress,Yi=e.store.ui.volumeChangingInProgress,xo=e.store.ui.contextMenu.visible$,j=e.store.ui.debugPanelVisible,Zt=e.store.state.isLoaderVisible,gi=e.store.state.isEnded$,Li=e.store.state.chromecastConnected$,ai=e.store.state.chromecastDeviceName$,ut=e.store.ads.postrollPassed,mi=e.store.state.isLive$,Ze=e.store.state.isPlaying$,Mt=e.store.state.crashed$,so=e.store.webApi.annotationsApi,Xt=e.store.webApi.pictureInPictureApi,Fn=e.store.state.currentSubtitle$,ji=e.store.state.currentSubtitleCaptions$,Eo=e.store.ui.playerSize,ui=e.store.ui.is3DVideo,xt=e.store.ui.icon3DVideoVisible,Vi=e.store.state.isInteractive,Do=e.store.state.isInteractiveTime$,pi=e.store.state.isInteractiveExpectation$,Oo=e.store.state.hasInteractiveBranches,Ni=e.store.ui.touched,wo=e.store.ui.modals.hotKeyMap.data,Di=e.store.ui.modals.hotKeyMap.show,Un=e.store.ui.overlayContainer$,ao=e.store.ui.controls.interactiveTimeIndicator,Tn=e.store.state.showInteractiveTimeIndicator,Po=e.store.ui.contextMenu.position$,Ao=e.store.actions.internal.setQuality,In=e.store.actions.internal.closeSettingsMenu,Cr=e.store.ui.autoplayNextEnabled$,lr=e.store.ui.userActionsDisabled,kn=e.store.ui.isControlsAvailable,{fakeIsPlaying$:dn,notifications$:zn,graphIsOpened$:pt}=oo(),lo=X(void 0),Ho=X(void 0),En=X(void 0),Mo=X(void 0),Fo,qn,Lo;wo.set(_h());let{closeNotification:Wn,notificationsToShow$:cn}=zn,Kn=v(()=>!!n().slow_video),Uo=()=>Wn("slow_video"),co=v(()=>(a()==="video"&&s()||a()==="ads"&&d()==="inactive")&&!l()),Si=X(void 0),un=ce(!1),pn,zo=ce(!1),uo=ce(),Pn=ce(!1),So=X(!1),Oi=X(!1),dr=X(!1),Vo=X(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Qn=v(()=>p()&&!m()&&!(r(So)||r(Oi))&&!(r(dr)&&!y())),An=!0,Gn=v(()=>e.uiConfig.features.thumbTimer&>()&&a()==="video"&&!u()&&!l()&&!Vi&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),cr=v(()=>a()==="video"&&!w()&&b()),fn=X(!1),Tr=v(()=>(st()||e.showAutoplayNext&&C())&&!!oe()&&!!Re()&&(e.showAds&&T()||!e.showAds)&&I()&&!l()&&!r(fn)),ur=v(()=>M()&&!(u()||r(Tr))&&!p()&&P()),Yn=X(!1),Ir=v(()=>k()!==null),{toggle:kr}=dn,mn=!1,Qt=null;Xt==null||Xt.setContext(Sl());let ft=()=>{e.autoplay&&!Vi&&e.uiConfig.controls.showOnStartupAtAutoplay&&ri(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:ft});let Nt=()=>{window.clearTimeout(Fo),zo.set(!1)},li=()=>{window.clearTimeout(qn),uo.set(null)},ri=fe=>{Nt(),zo.set(!0),Fo=window.setTimeout(()=>zo.set(!1),fe);let $t=fe-100;pn=window.setTimeout(()=>{V()&&un.set(!1)},$t>0?$t:fe)},po=(fe,$t)=>{li(),uo.set($t),qn=window.setTimeout(()=>uo.set(null),fe)},Co=ui.subscribe(fe=>{xt.set(fe),fe&&(window.clearTimeout(Lo),Lo=window.setTimeout(()=>xt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),To=async()=>{var $t,di,fi,wi;let fe=vs();if(fe){let He=Dl(),Lt=et();fe=He===Lt||He===Ge()}if(fe){ri(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Xt==null?void 0:Xt.remove())}catch(He){zt({message:String(He)})}}Wi.set(fe),e.store.getAdmanWrapper().setFullscreen(fe),b()?(di=($t=e.store.callbacks)==null?void 0:$t.onFullscreenEnter)==null||di.call($t):(wi=(fi=e.store.callbacks)==null?void 0:fi.onFullscreenExit)==null||wi.call(fi)},qo=fe=>{let{width:$t,height:di}=fe.target;Eo.set({width:$t,height:di})},Wo=()=>{let{width:fe,height:$t}=r(lo).getBoundingClientRect();Eo.set({width:fe,height:$t})};Ft(()=>{var $t;return Pc(To),e.uiConfig.features.annotationsInside&&(so==null||so.init(r(lo))),Ys(Xt)&&(Xt==null||Xt.assignPlayerContainer(r(lo)),Xt==null||Xt.registryExternalEventHandlers({resize:qo,leavepictureinpicture:Wo})),e.interactiveContainer&&(($t=ct().parentElement)==null||$t.insertBefore(e.interactiveContainer,ct().nextSibling)),()=>{window.clearTimeout(Fo),window.clearTimeout(pn),window.clearTimeout(qn),window.clearTimeout(Lo),Co(),Xt==null||Xt.dispose().catch(di=>{zt({message:String(di)})}),Ac(To)}});let et=()=>{let fe=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Le()?r(lo):Le(),$t=fe.getRootNode(),di=$t instanceof ShadowRoot?$t.host:$t,fi=Ye()instanceof HTMLElement&&Ye().contains(di);return e.uiConfig.allowChangingFullscreenTarget&&Ye()&&fi?Ye():fe},Pt=async()=>{vs()?(await Ec(document),zt({message:"exit fullscreen"})):(zt({message:"request fullscreen"}),await kc(et()))},vi=()=>{In(),xo.set(!1)},Hi=fe=>{w()||(fe.preventDefault(),xo.set(!0),Po.set({left:fe.clientX,top:fe.clientY}))};function Ki(){Pn.set(!0),Vi||ri(e.uiConfig.controls.hideTimeoutCursor)}function vn(){Vi||(un.set(!0),ri(e.uiConfig.controls.hideTimeoutCursor))}function gn(){Pn.set(!1),D(Oi,!1),D(So,!1),mn=!1,e.store.actions.internal.releaseCamera(),ri(e.uiConfig.controls.hideTimeout)}function Fi(fe){return fe?fe.offsetTop+Fi(fe.offsetParent):0}function ki(fe){return fe?fe.offsetLeft+ki(fe.offsetParent):0}function Ko(fe){if(W()&&Tn){let $t=fe.currentTarget,di=Fi($t),fi=ki($t),wi=fe.pageX-fi,He=fe.pageY-di,{left:Lt,bottom:oi,right:Zi}=W(),mo=Zi-Lt;return wi>=Lt-mo&&He<=oi+mo}}function jn(fe){if(r(lo)){let $t=Fi(fe.currentTarget),di=Y().height,fi=fe.pageY-$t;if(Ko(fe)){D(Oi,!1);return}fi<40?D(Oi,!0):fi>di-40?D(So,!0):(D(Oi,!1),m()||D(So,!1))}}function Er(fe){jn(fe),r(Qn)||ri(e.uiConfig.controls.hideTimeoutCursor),F()&&mn&&Qt&&e.store.actions.internal.moveCameraFocusPX(Qt.clientX-fe.clientX,Qt.clientY-fe.clientY,fe.timeStamp-Qt.timeStamp),Qt=fe}let Qo=fe=>{fe.preventDefault(),fe.button===0&&(mn=!0,e.store.actions.internal.holdCamera()),ri(e.uiConfig.controls.hideTimeoutCursor)},pr=fe=>{fe.preventDefault(),fe.button===0&&(Qt=fe,mn=!1,e.store.actions.internal.releaseCamera()),ri(e.uiConfig.controls.hideTimeoutCursor)},Zn=fe=>{fe.preventDefault(),An&&(zt({message:"double click on video"}),Pt(),ri(e.uiConfig.controls.hideTimeoutCursor))},fr=fe=>{var $t;if(fe.preventDefault(),Q()||m()){vi();return}if(!(I()&&!Oo)){if(r(Ir))return kr();if(($t=Xe())==null||$t.focus(),!ot()){e.firstStart(),ri(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||ie()!==b1.PLAYING)&&e.store.actions.internal.togglePlay(),ri(e.uiConfig.controls.hideTimeoutCursor)}},Xn=fe=>{vi(),Ni.set(!0),ri(e.uiConfig.controls.hideTimeout),fe&&po(e.uiConfig.controls.hideHotKeyHelpers,fe)},Pr=()=>{var fe,$t;vi(),(fe=e.store.callbacks)!=null&&fe.onOpenHotKeyMap?($t=e.store.callbacks)==null||$t.onOpenHotKeyMap(Z()):Di.update(di=>!di)},Jn=()=>{Ni.set(!0)},Go=e.store.ui.contextMenu.openedByBtnKeyboard$,Ar=e.store.ui.contextMenu.btnRef$,Yo=X(void 0),mr=e.store.ui.contextMenu.openedByHotKey$,Fr=e.store.ui.contextMenu.lastActiveElem$;Fe(()=>{Un.set(r(Si))}),Fe(()=>{D(dr,pe(r(Vo)&&ie()!==b1.PLAYING)),r(Vo)||yt(()=>D(Vo,!0))}),Fe(()=>{_t.set((r(dr)||I()||m()||re()||le()||Ae()||Me())&&!r(Qn)&&(a()==="video"||a()==="ads")&&!l()&&P())}),Fe(()=>{!re()&&r(Yn)&&!p()&&ri(e.uiConfig.controls.hideTimeoutCursor),yt(()=>D(Yn,pe(re())))}),Fe(()=>{r(Mo),m(),ge(),yt(()=>Qa(r(Mo),m(),ge()))}),Fe(()=>{r(Yo),Q(),se(),yt(()=>Qa(r(Yo),Q(),se()))}),Fe(()=>{let fe=Ee();fe&&(Q(),yt(()=>Ka(fe,Q(),Go)))}),Fe(()=>{r(Yo),Q(),ne(),yt(()=>Qa(r(Yo),Q(),ne()))}),Fe(()=>{let fe=R();fe&&(Q(),yt(()=>Sh(fe,Q(),mr)))}),Fe(()=>{var fe;!xe()&&b()&&(yt(()=>At.set(!1)),(fe=Xe())==null||fe.focus())}),Fe(()=>{w()&&vi()});let at=q("video360");var Kt=nx();St("blur",Ns,vi);var ii=ue(Kt);ii.__mousemove=Er;var fo=h(ii);let hn=v(()=>a()==="ads"),er=v(()=>r(Ir)?kr:void 0);mt(zp(fo,{toggleFullscreen:Pt,hideContextMenu:vi,showHotKeyHelpers:Xn,showKeyMap:Pr,get isAds(){return r(hn)},get fakePlayButtonHandler(){return r(er)},get nextButtonActive(){return O()},get prevButtonActive(){return be()},children:(fe,$t)=>{var di=ix(),fi=ue(di);fa(fi,{get hideCursor(){return r(ur)},onClick:fr,onContextMenu:Hi,onMouseDown:Qo,onMouseUp:pr,onDblClick:Zn,get videoContainer(){return ct()},set videoContainer(Lt){ct(Lt)}});var wi=A(fi,2);zs(wi,()=>"slot",!1,(Lt,oi)=>{Te(Lt,null,{name:pa})});var He=A(wi,2);Us(He,_e,Lt=>{var oi=tx(),Zi=ue(oi);let mo=v(()=>a()!=="thumb"||l()||Vi&&e.autoplay);da(Zi,{get hidden(){return r(mo)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Ur=A(Zi,2);wm(Ur,{});var Ri=A(Ur,2);{var tr=qe=>{let si=v(()=>{var Zo;return(Zo=e.live)==null?void 0:Zo.startTime});yd(qe,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(si)}})};B(Ri,qe=>{a()==="LiveWaitingStart"&&qe(tr)})}var Ss=A(Ri,2);{var ir=qe=>{ca(qe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};B(Ss,qe=>{a()==="LiveWaitingRecover"&&qe(ir)})}var ma=A(Ss,2);{var sl=qe=>{ca(qe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};B(ma,qe=>{a()==="LiveWaitingRecord"&&qe(sl)})}var va=A(ma,2);{var ga=qe=>{var si=Z3();let Zo;var ks=h(si);Ol(ks,{get adsSlotId(){return it()},get adsParams(){return Ct()},get adsPreviewParam(){return vt()},get adsAutoplayParam(){return Wt()},get duration(){return ti()}}),g(si),E(vo=>Zo=J(si,1,"ads-container svelte-jtgjmv",null,Zo,vo),[()=>({hidden:a()!=="ads"})]),_(qe,si)};B(va,qe=>{e.showAds&&ot()&&qe(ga)})}var ha=A(va,2);{var al=qe=>{let si=v(()=>!st()&&e.showAutoplayNext&&C());Hp(qe,{get title(){return oe()},get thumb(){return Re()},get isHide(){return r(si)},clickCloseIcon:()=>D(fn,!0)})};B(ha,qe=>{r(Tr)&&oe()&&Re()&&qe(al)})}var Cs=A(ha,2);{var _a=qe=>{let si=v(()=>!u());Xf(qe,{get title(){return e.title},get isHidden(){return r(si)}})};B(Cs,qe=>{r(cr)&&qe(_a)})}var lt=A(Cs,2);{var bt=qe=>{let si=v(()=>a()==="video"&&u());_d(qe,{get isShifted(){return r(si)}})};B(lt,qe=>{F()&&qe(bt)})}var Qi=A(lt,2);{var jo=qe=>{var si=X3(),Zo=h(si);Nl(Zo,{"aria-label":at}),g(si),_(qe,si)};B(Qi,qe=>{ze()&&qe(jo)})}var Gi=A(Qi,2);{var ci=qe=>{bd(qe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return H()}})};B(Gi,qe=>{Ae()&&qe(ci)})}var Ei=A(Gi,2);{var Ts=qe=>{la(qe,{get shifted(){return u()},get captions(){return he()},get position(){return ee()},get playerSize(){return Y()}})};B(Ei,qe=>{ae().value!=="off"&&qe(Ts)})}var ba=A(Ei,2);{var vu=qe=>{var si=J3();si.__contextmenu=Hi,si.__click=[j3,Q,xo,m,Bt,vi];var Zo=h(si);$d(Zo,{}),g(si),_(qe,si)};B(ba,qe=>{l()&&qe(vu)})}var Bd=A(ba,2);{var gu=qe=>{let si=v(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),Zo=v(()=>a()==="ads"),ks=v(()=>e.canRewindLive&&De()!==0);hd(qe,{get bottomHidden(){return r(si)},get bottomNoSmooth(){return V()},get showControls(){return u()},get isAds(){return r(Zo)},get canRewindLive(){return r(ks)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Et()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Rt()},get nextButtonActive(){return O()},get prevButtonActive(){return be()},get isOneVideoPlaylist(){return Ke()},customFullscreenSupported:An,toggleFullscreen:Pt,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(Ho)},set playerControlsWrapperRef(vo){D(Ho,pe(vo))},get playerControlsRef(){return r(En)},set playerControlsRef(vo){D(En,pe(vo))}})};B(Bd,qe=>{ot()&&qe(gu)})}var Nd=A(Bd,2);{var hu=qe=>{var si=ex(),Zo=h(si);let ks=v(()=>{var vo;return(vo=r(En))==null?void 0:vo.clientHeight});Sd(Zo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(ks)},returnFocus:()=>{var vo;return(vo=Xe())==null?void 0:vo.focus()},get ref(){return r(Mo)},set ref(vo){D(Mo,pe(vo))}}),g(si),_(qe,si)};B(Nd,qe=>{!Ae()&&a()!=="ads"&&qe(hu)})}var Dd=A(Nd,2);let _u=v(()=>!r(Gn));Ul(Dd,{get isLive(){return je()},get isHidden(){return r(_u)},get isPlaying(){return we()},get position(){return ee()},get duration(){return De()}});var Is=A(Dd,2);Gf(Is,{data:uo});var Od=A(Is,2);Op(Od,{get supportLink(){return e.supportLink},returnFocus:()=>{var qe;return(qe=Xe())==null?void 0:qe.focus()},get visible(){return Q()},get playerContainerRef(){return r(lo)},get controlsContainerRef(){return r(Ho)},get position(){return Ve()},get menuElementRef(){return r(Yo)},set menuElementRef(qe){D(Yo,pe(qe))}});var ll=A(Od,2);{var Hd=qe=>{Cd(qe,{onClose:Uo,onSelectAutoQuality:()=>{Ao("auto"),Uo()}})};B(ll,qe=>{r(Kn)&&qe(Hd)})}var Fd=A(ll,2);{var Ud=qe=>{ea(qe,{})};B(Fd,qe=>{r(co)&&qe(Ud)})}var $a=A(Fd,2);{var zd=qe=>{Kp(qe,{})};B($a,qe=>{Ie()&&qe(zd)})}var bu=A($a,2);{var qd=qe=>{Kl(qe,{})};B(bu,qe=>{Ue()&&qe(qd)})}_(Lt,oi)}),_(fe,di)},$$slots:{default:!0}}),fe=>Xe(fe),()=>Xe());var _n=A(fo,2);mt(_n,fe=>D(Si,fe),()=>r(Si)),g(ii),mt(ii,fe=>D(lo,fe),()=>r(lo));var Mn=A(ii,2);{var xi=fe=>{var $t=ox();_(fe,$t)};B(Mn,fe=>{dt()&&fe(xi)})}St("mouseenter",ii,Ki),St("mouseleave",ii,gn),St("click",ii,Jn,!0),St("focusin",ii,vn,!0),_(t,Kt),z(),o()}rt(["mousemove","contextmenu","click"]);import{clientChecker as Td,PlaybackState as vx}from"@vkontakte/videoplayer-core/es2018";import{noop as gx}from"@vkontakte/videoplayer-shared/es2018";var sx=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),ax=L("<div><!></div>"),lx={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.`},lh=t_;var es=new Map;es.set(ch.EN,lh)
|
|
|
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 nu(t,e){U(e,!0),W(t,lx);let i=f(e,"seekStep",3,0),o=X(!1),n=0,a=0,s=X(fe(i())),d=b=>{b.stopPropagation(),a+=1,D(s,i()*(a-1)),a===1?e.handleSingleFirstClick(b):(D(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{a=0,D(o,!1)},300)};mn(()=>{window.clearTimeout(n)});var l=ax();l.__click=d;var p=h(l);{var m=b=>{var u=sx(),_=pe(u),w=M(_,2),y=h(w),C=h(y),T=M(C,2),k=M(T,2);g(y);var P=M(y,2),A=h(P,!0);g(P),g(w),E(I=>{var V,q,Q,H;J(_,1,`semicircle ${(V=e.side)!=null?V:""}`,"svelte-nhq2ld"),J(C,1,`triangle ${(q=e.side)!=null?q:""}`,"svelte-nhq2ld"),J(T,1,`triangle ${(Q=e.side)!=null?Q:""}`,"svelte-nhq2ld"),J(k,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),ve(A,I)},[()=>F("doubletap_seek_step",{seconds:r(s).toFixed(0)})]),$(b,u)};R(p,b=>{r(o)&&b(m)})}g(l),E(()=>{var b;return J(l,1,`double-click-area ${(b=e.side)!=null?b:""}`,"svelte-nhq2ld")}),$(t,l),z()}st(["click"]);var dx=(t,e,i)=>{e(!1),i()},cx=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),ux={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 Sm(t,e){U(e,!0),W(t,ux);let[i,o]=Re(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),s=Te(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,p=s.actions.internal.nextVideoClick,m=s.actions.internal.nextVideoAnnouncementShow,b=s.actions.internal.nextVideoAnnouncementClick,u=s.actions.internal.nextVideoAnnouncementAuto,_=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{p(!1),u()},y=()=>{e.clickCloseIcon(),_()};zt(()=>{e.isHide||m(),e.isHide&&n()&&(p(!1),u())});var C=De(),T=pe(C);{var k=P=>{var A=cx(),I=M(pe(A),2),V=h(I),q=h(V),Q=h(q,!0);g(q);var H=M(q,2);Js(H,{onClick:y}),g(V);var Y=M(V,2);Y.__click=[dx,p,b];var ne=h(Y),Z=h(ne),de=h(Z);let ce;var Le=M(de,2);{var Ae=oe=>{Ql(oe,{get isRunning(){return a()},onTimerEnded:w})};R(Le,oe=>{n()&&oe(Ae)})}g(Z),g(ne);var he=M(ne,2),se=h(he),Me=h(se,!0);g(se),g(he),g(Y),g(I),E((oe,B)=>{ve(Q,oe),nt(Z,`background-image: url('${e.thumb}')`),ce=J(de,1,"thumb-overlay svelte-1qdxi6t",null,ce,B),ve(Me,e.title)},[()=>n()?F("end_screen_next_video"):F("end_screen_recommended_video"),()=>({withOpacity:n()})]),$(P,A)};R(T,P=>{e.isHide||P(k)})}$(t,C),z(),o()}st(["click"]);import{clientChecker as px}from"@vkontakte/videoplayer-core/es2018";var b1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;zt(()=>{px.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))}),mn(()=>{i==null||i(),clearTimeout(o)})};import{VideoFormat as fx}from"@vkontakte/videoplayer-core/es2018";var ru=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};import{clientChecker as mx}from"@vkontakte/videoplayer-core/es2018";var $1=({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=()=>mx.device.isIOS&&Ce(s)===fx.DASH_LIVE_CMAF,b=()=>{l==null||l(),l=null},u=_=>{if(b(),!m()||!_)return;let w=p();if(!w)return;let y=new ru(w),C=Ce(d),T=Ce(a),k=Ce(n);for(let I of C)T.some(q=>q.value===I.id)&&y.attach(I,k.value===I.id);let P=d.subscribe(I=>{for(let V of I)y.updateSrc(V)}),A=()=>{let I=y.getCurrentShowingId();o(Ce(a).find(V=>V.value===I))};w.textTracks.addEventListener("change",A),l=()=>{P(),y.detachAll(),w.textTracks.removeEventListener("change",A)}};zt(()=>i.subscribe(u)),mn(b)};var hx=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},_x=L("<!> <!>",1),bx=L("<div><!></div>"),$x=L('<div class="spherical-video-icon svelte-dtyj47"><!></div>'),yx=L("<div><!></div>"),xx=L('<div class="settings-mobile svelte-dtyj47"><!></div>'),wx=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Sx=L('<div class="player-wrapper svelte-dtyj47" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),Cx={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 Cm(t,e){var Pi,Co;U(e,!0),W(t,Cx);let[i,o]=Re(),n=()=>S(gt,"$playerPhase",i),a=()=>S(ht,"$isLoaderVisible",i),s=()=>S(et,"$adPlaybackState",i),d=()=>S(ft,"$crashed",i),l=()=>S(it,"$notificationsToShow$",i),p=()=>S(Ye,"$playbackState$",i),m=()=>S(ze,"$graphIsOpened$",i),b=()=>S(ti,"$interactiveHideMobileControls",i),u=()=>S(Rt,"$isEnded$",i),_=()=>S(Eo,"$isInteractiveExpectation$",i),w=()=>S(Xe,"$controlsVisible",i),y=()=>S(qi,"$touched",i),C=()=>S(wo,"$autoplayNextEnabled$",i),T=()=>S(hn,"$postrollPassed",i),k=()=>S(on,"$bottomNoSmooth",i),P=()=>S(Mt,"$videoSize",i),A=()=>S(yo,"$playerSize",i),I=()=>S(Ht,"$isFullscreen",i),V=()=>S(tt,"$position$",i),q=()=>S(qe,"$duration$",i),Q=()=>S(Vn,"$loadedMetadata",i),H=()=>S(Je,"$settingsMenuVisible",i),Y=()=>S(Ni,"$scrubbingInProgress",i),ne=()=>S(zi,"$volumeChangingInProgress",i),Z=()=>S(co,"$chromecastConnected$",i),de=()=>S(Qt,"$isControlsAvailable",i),ce=()=>S(Ci,"$isInteractiveTime$",i),Le=()=>S(Bi,"$isActiveLive",i),Ae=()=>S(Zt,"$settingsMenuOpenedByKeyboard",i),he=()=>S(ut,"$language$",i),se=()=>S(Po,"$disabledControls$",i),Me=()=>S(Ho,"$is3DVideo",i),oe=()=>S(di,"$icon3DVideoVisible",i),B=()=>S(en,"$chromecastDeviceName$",i),be=()=>S(eo,"$currentSubtitle$",i),le=()=>S(ii,"$currentSubtitleCaptions$",i),We=()=>S(er,"$realDuration$",i),ee=()=>S(Xt,"$isLive$",i),me=()=>S(ri,"$isPlaying$",i),j=()=>S(At,"$debugPanelVisible",i),te=f(e,"videoContainer",15),Oe=f(e,"adsSlotId",3,void 0),Ge=f(e,"adsParams",3,void 0),$e=f(e,"adsPreviewParam",3,void 0),we=f(e,"adsAutoplayParam",3,void 0),Ve=f(e,"duration",3,void 0),je=f(e,"logoTargetUrl",3,""),dt=f(e,"showNextPrevButtons",3,!1),ct=f(e,"nextButtonActive",3,!1),rt=f(e,"prevButtonActive",3,!1),Ct=f(e,"endScreenVideoTitle",3,void 0),_t=f(e,"endScreenVideoThumb",3,void 0),Gt=f(e,"isOneVideoPlaylist",3,!1),ni=f(e,"shadowRootContainer",3,void 0),It=f(e,"outerContainerRef",3,void 0),Vt=f(e,"showMiniTimer",3,!1),O=f(e,"fullScreenTarget",3,void 0),_e=f(e,"playerStarted",3,!1),re=f(e,"showEndScreen",3,!0),{notifications$:Ne,graphIsOpened$:ze}=lo(),Qe=e.store.getLogger().createComponentLog("Root component"),ut=e.store.interfaceLanguage$,Ye=e.store.state.playbackState$,et=e.store.ads.playbackState,tt=e.store.state.positionWithScrubbing$,qe=e.store.state.duration$,gt=e.store.playerPhase,Ht=e.store.ui.isFullscreen,Xe=e.store.ui.controlsVisible,Qt=e.store.ui.isControlsAvailable,ti=e.store.ui.interactiveHideMobileControls,Je=e.store.ui.settingsMenu.visible$,Zt=e.store.ui.settingsMenu.openedByBtnKeyboard$,Ni=e.store.ui.scrubbingInProgress,zi=e.store.ui.volumeChangingInProgress,At=e.store.ui.debugPanelVisible,ht=e.store.state.isLoaderVisible,Rt=e.store.state.isEnded$,co=e.store.state.chromecastConnected$,en=e.store.state.chromecastDeviceName$,hn=e.store.ads.postrollPassed,$o=e.store.ui.mobileUnmuteButtonExpanded,G=e.store.ui.mobileUnmuteButtonVisible,Xt=e.store.state.isLive$,ri=e.store.state.isPlaying$,Bi=e.store.state.isActiveLive$,li=e.store.state.isRewindableLive$,ft=e.store.state.crashed$,ui=e.store.webApi.annotationsApi,Ze=e.store.webApi.pictureInPictureApi,Mt=e.store.state.videoSize$,eo=e.store.state.currentSubtitle$,ii=e.store.state.currentSubtitleCaptions$,er=e.store.state.duration$,yo=e.store.ui.playerSize,Ho=e.store.ui.is3DVideo,di=e.store.ui.icon3DVideoVisible,xt=e.store.state.isInteractive,Ci=e.store.state.isInteractiveTime$,Eo=e.store.state.isInteractiveExpectation$,pi=e.store.state.hasInteractiveBranches,Po=e.store.ui.controls.disabledControls$,qi=e.store.ui.touched,xo=e.store.ui.overlayContainer$,wo=e.store.ui.autoplayNextEnabled$,Vn=e.store.state.loadedMetadata$,So=e.store.actions.internal.closeSettingsMenu,_n=(Pi=e.store.callbacks)==null?void 0:Pi.onDisabledPlayPrevChapterClick,ji=(Co=e.store.callbacks)==null?void 0:Co.onDisabledSeekToInteractiveClick,Ao=e.store.actions.internal.setQuality,tn=X(void 0),wr=X(void 0),tr=X(void 0),Rn=X(void 0),bn,Nn,ir,to=v(()=>(n()==="video"&&a()||n()==="ads"&&s()==="inactive")&&!d()),Mo=X(void 0),{closeNotification:$n,notificationsToShow$:it}=Ne,yn=v(()=>!!l().slow_video),Bn=()=>$n("slow_video"),on=ae(!1),or,nn=X(!1),rn=v(()=>p()!==vx.PLAYING),sn=X(!1),Yi=v(()=>m()||b()||!r(nn)&&(u()&&!!pi||r(rn)&&_())),Wi=X(!0),an=v(()=>e.uiConfig.features.thumbTimer&&Vt()&&n()==="video"&&!w()&&!d()&&!xt&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),Dn=X(!1),Fo=v(()=>(re()||e.showAutoplayNext&&C())&&!!Ct()&&!!_t()&&(e.showAds&&T()||!e.showAds)&&u()&&!d()&&!r(Dn)),ln=X(!1);Ze==null||Ze.setContext(Sl());let Lo=ot=>{clearTimeout(Nn),ot&&(G.set(!0),$o.set(!0),Nn=setTimeout(()=>{$o.set(!1)},e.uiConfig.controls.collapseMobileUnmute),xt||Di(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:Lo});let uo=()=>{clearTimeout(bn),D(nn,!1),b()&&ti.set(!1)},Di=ot=>{uo(),D(nn,!0),bn=setTimeout(()=>D(nn,!1),ot);let Nt=ot-100;or=setTimeout(()=>{k()&&on.set(!1)},Nt>0?Nt:ot)},On=Ho.subscribe(ot=>{di.set(ot),ot&&(clearTimeout(ir),ir=setTimeout(()=>di.set(!1),e.uiConfig.controls.hide360IconTimeout))}),io=async(ot=gs())=>{var Nt,fi,Oi,po,wi,Ai;if(ot&&!Td.device.isIOS){let vi=Dl(),hi=Uo(),Hi=Td.browser.isSamsungBrowser&&vi===ni();ot=vi===hi||Hi}if(ot){Di(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Ze==null?void 0:Ze.remove())}catch(vi){Qe({message:String(vi)})}try{let vi=(Nt=P())!=null&&Nt.width&&((fi=P())!=null&&fi.height)?P():A();await vh(vi)}catch(vi){Qe({message:String(vi)})}}Ht.set(ot),e.store.getAdmanWrapper().setFullscreen(ot),I()?(po=(Oi=e.store.callbacks)==null?void 0:Oi.onFullscreenEnter)==null||po.call(Oi):(Ai=(wi=e.store.callbacks)==null?void 0:wi.onFullscreenExit)==null||Ai.call(wi)},xn=ot=>{let Nt=ot;yo.set({width:Nt.target.width,height:Nt.target.height})};zt(()=>{var ot;return Pc(io),e.uiConfig.features.annotationsInside&&(ui==null||ui.init(r(tn))),Ys(Ze)&&(Ze==null||Ze.assignPlayerContainer(r(tn)),Ze==null||Ze.registryExternalEventHandlers({resize:xn})),D(Wi,!Td.device.isIphoneOrOldIpad),e.interactiveContainer&&((ot=te().parentElement)==null||ot.insertBefore(e.interactiveContainer,te().nextSibling)),()=>{clearTimeout(bn),clearTimeout(or),clearTimeout(Nn),clearTimeout(ir),On(),Ze==null||Ze.dispose().catch(Nt=>{Qe({message:String(Nt)})}),Ac(io)}});let Hn=X(!0),dn=X(!0),Sr=ot=>{let Nt=V()+(ot==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Nt<0?(D(Hn,!1),Nt=0):Nt>=q()&&(D(dn,!1),Nt=q()),D(sn,!0),e.seekTime(Nt)},Uo=()=>{let ot=Td.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!It()?r(tn):It(),Nt=ot.getRootNode(),fi=Nt instanceof ShadowRoot?Nt.host:Nt,Oi=O()instanceof HTMLElement&&O().contains(fi);return e.uiConfig.allowChangingFullscreenTarget&&O()&&Oi?O():ot},Cr=async()=>{try{if(gs())await Ec(document),Qe({message:"exit fullscreen"});else{if(Qe({message:"request fullscreen"}),Td.device.isIOS&&!Q())return;await kc(Uo())}}catch(ot){Qe({message:String(ot)})}},Fn=()=>{So()},Un=ot=>{if(ot.preventDefault(),H()){Fn();return}if(!_e()){e.firstStart(),Di(e.uiConfig.controls.hideTimeoutCursor);return}D(sn,!1),w()?uo():Di(e.uiConfig.controls.hideTimeoutMobile)},nr=()=>{qi.set(!0)},Tr=()=>{xt||(on.set(!0),Di(e.uiConfig.controls.hideTimeoutCursor))},wn=ot=>{_n&&(_n(ot),Di(e.uiConfig.controls.hideTimeoutMobile))},Jt=ot=>{ji&&(ji(ot),Di(e.uiConfig.controls.hideTimeoutMobile))};He(()=>{xo.set(r(Mo))}),He(()=>{Xe.set((r(rn)||H()||Y()||ne()||Z()||!r(Fo)&&(u()||r(nn)&&!r(sn)))&&!r(Yi)&&n()==="video"&&!d()&&de())}),He(()=>{!Y()&&r(ln)&&!ce()&&Di(e.uiConfig.controls.hideTimeoutMobile),D(ln,fe(Y()))}),He(()=>{D(Hn,V()>0),D(dn,fe(!Le()&&V()<q()))}),He(()=>{Ga(r(Rn),H(),Ae())});let rr=F("aria_label_video_player"),Ir=F("video360");b1({fullScreenChangeHandler:io,getFullscreenTarget:Uo}),$1({store:e.store,getFullscreenTarget:Uo});var Vo=Sx();St("blur",Ds,Fn),Be(Vo,"aria-label",rr);var Ti=h(Vo);ma(Ti,{onClick:Un,get videoContainer(){return te()},set videoContainer(ot){te(ot)}});var sr=M(Ti,2);qs(sr,()=>"slot",!1,(ot,Nt)=>{Ie(ot,null,{name:fa})});var mt=M(sr,2);zs(mt,he,ot=>{var Nt=wx(),fi=pe(Nt);let Oi=v(()=>n()!=="thumb"||d()||xt&&e.autoplay);ca(fi,{get hidden(){return r(Oi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var po=M(fi,2);{var wi=ke=>{var bt=_x(),Kt=pe(bt);{var Si=Fi=>{let Qn=v(()=>e.uiConfig.controls.seekStepMobile/1e3);nu(Fi,{side:"left",get seekStep(){return r(Qn)},handleSingleFirstClick:Un,handleSecondClick:()=>Sr("backward")})};R(Kt,Fi=>{r(Hn)&&Fi(Si)})}var si=M(Kt,2);{var Ur=Fi=>{let Qn=v(()=>e.uiConfig.controls.seekStepMobile/1e3);nu(Fi,{side:"right",get seekStep(){return r(Qn)},handleSingleFirstClick:Un,handleSecondClick:()=>Sr("forward")})};R(si,Fi=>{r(dn)&&Fi(Ur)})}$(ke,bt)};R(po,ke=>{e.canRewindLive&&li&&!se().has("TIMELINE")&&ke(wi)})}var Ai=M(po,2);{var vi=ke=>{let bt=v(()=>{var Kt;return(Kt=e.live)==null?void 0:Kt.startTime});yd(ke,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(bt)}})};R(Ai,ke=>{n()==="LiveWaitingStart"&&ke(vi)})}var hi=M(Ai,2);{var Hi=ke=>{ua(ke,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(hi,ke=>{n()==="LiveWaitingRecover"&&ke(Hi)})}var zn=M(hi,2);{var ar=ke=>{ua(ke,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(zn,ke=>{n()==="LiveWaitingRecord"&&ke(ar)})}var qn=M(zn,2);{var lr=ke=>{var bt=bx();let Kt;var Si=h(bt);Ol(Si,{get adsSlotId(){return Oe()},get adsParams(){return Ge()},get adsPreviewParam(){return $e()},get adsAutoplayParam(){return we()},get duration(){return Ve()}}),g(bt),E(si=>Kt=J(bt,1,"ads-container svelte-dtyj47",null,Kt,si),[()=>({hidden:n()!=="ads"})]),$(ke,bt)};R(qn,ke=>{e.showAds&&_e()&&ke(lr)})}var dr=M(qn,2);{var cr=ke=>{let bt=v(()=>!re()&&e.showAutoplayNext&&C());Sm(ke,{get title(){return Ct()},get thumb(){return _t()},get isHide(){return r(bt)},clickCloseIcon:()=>D(Dn,!0)})};R(dr,ke=>{r(Fo)&&Ct()&&_t()&&ke(cr)})}var ur=M(dr,2);{var Wn=ke=>{_d(ke,{})};R(ur,ke=>{Me()&&ke(Wn)})}var Kn=M(ur,2);{var Ro=ke=>{var bt=$x(),Kt=h(bt);Bl(Kt,{"aria-label":Ir}),g(bt),$(ke,bt)};R(Kn,ke=>{oe()&&ke(Ro)})}var kr=M(Kn,2);{var No=ke=>{bd(ke,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return B()}})};R(kr,ke=>{Z()&&ke(No)})}var pr=M(kr,2);{var Er=ke=>{da(ke,{get shifted(){return w()},get captions(){return le()},get position(){return V()},get playerSize(){return A()},isMobile:!0})};R(pr,ke=>{be().value!=="off"&&ke(Er)})}var Pr=M(pr,2);{var Ar=ke=>{var bt=yx();bt.__click=[hx,H,Je,Fn];var Kt=h(bt);$d(Kt,{}),g(bt),$(ke,bt)};R(Pr,ke=>{d()&&ke(Ar)})}var Zi=M(Pr,2);{var Sn=ke=>{let bt=v(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),Kt=v(()=>n()==="ads"),Si=v(()=>e.canRewindLive&&We()!==0);hd(ke,{get bottomHidden(){return r(bt)},get showControls(){return w()},get bottomNoSmooth(){return k()},get isAds(){return r(Kt)},get canRewindLive(){return r(Si)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return je()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return dt()},get nextButtonActive(){return ct()},get prevButtonActive(){return rt()},get isOneVideoPlaylist(){return Gt()},get customFullscreenSupported(){return r(Wi)},get endScreenShown(){return r(Fo)},toggleFullscreen:Cr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:wn,onDisabledSeekToInteractiveClick:Jt,get playerControlsWrapperRef(){return r(wr)},set playerControlsWrapperRef(si){D(wr,fe(si))},get playerControlsRef(){return r(tr)},set playerControlsRef(si){D(tr,fe(si))}})};R(Zi,ke=>{_e()&&ke(Sn)})}var Mr=M(Zi,2);{var at=ke=>{var bt=xx(),Kt=h(bt);Sd(Kt,{get supportLink(){return e.supportLink},returnFocus:gx,get ref(){return r(Rn)},set ref(Si){D(Rn,fe(Si))}}),g(bt),$(ke,bt)};R(Mr,ke=>{H()&&ke(at)})}var Ut=M(Mr,2);let Mi=v(()=>!r(an));Ul(Ut,{get isLive(){return ee()},get isHidden(){return r(Mi)},get isPlaying(){return me()},get position(){return V()},get duration(){return q()}});var To=M(Ut,2);{var Se=ke=>{ta(ke,{})};R(To,ke=>{r(to)&&ke(Se)})}var Pt=M(To,2);{var gi=ke=>{Kl(ke,{})};R(Pt,ke=>{j()&&ke(gi)})}var _i=M(Pt,2);{var mi=ke=>{Cd(ke,{onClose:Bn,onSelectAutoQuality:()=>{Ao("auto"),Bn()}})};R(_i,ke=>{r(yn)&&ke(mi)})}$(ot,Nt)});var Ft=M(mt,2);pt(Ft,ot=>D(Mo,ot),()=>r(Mo)),g(Vo),pt(Vo,ot=>D(tn,ot),()=>r(tn)),St("click",Vo,nr,!0),St("focusin",Vo,Tr,!0),$(t,Vo),z(),o()}st(["click"]);function su(t){let e="";return Ln(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Ln(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Ln(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Ln(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Ln(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Ln(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Ln(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Ln(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Ln(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Ln(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Ln(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Ln(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Ln(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),e.length&&e||void 0}function Ln(t){return typeof t=="string"&&!t.includes(";")}import{debounceFn as Tx}from"@vkontakte/videoplayer-shared/es2018";var Ix=L('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),kx={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 Tm(t,e){U(e,!0),W(t,kx);let[i,o]=Re(),n=()=>S(ne,"$playerSize",i),a=()=>S(I,"$isPlaying$",i),s=()=>S(P,"$duration$",i),d=()=>S(Q,"$positionWithScrubbing$",i),l=()=>S(T,"$playerPhase",i),p=()=>S(k,"$crashed$",i),m=()=>S(V,"$currentSubtitle$",i),b=()=>S(q,"$currentSubtitleCaptions$",i),u=()=>S(A,"$positionExact$",i),_=()=>S(H,"$isLive$",i),w=()=>S(Y,"$isRewindableLive$",i),y=f(e,"outsideDuration",3,0),C=f(e,"videoContainer",15),{playerPhase:T,state:{crashed$:k,duration$:P,positionExact$:A,isPlaying$:I,currentSubtitle$:V,currentSubtitleCaptions$:q,positionWithScrubbing$:Q,isLive$:H,isRewindableLive$:Y},ui:{playerSize:ne,controls:Z},actions:{internal:{getVideoElement:de}}}=Te(),ce=8,Le=X(!1),Ae=fe({}),he=()=>{D(Le,!0)},se=()=>{D(Le,!1)},Me=Tx(el,260);He(()=>{n(),Me(de(),Z,Ae,r(Le))});let oe=v(()=>a()?Jo(s()-d()):Jo(isFinite(s())?s():y()));var B=Ix(),be=h(B);ma(be,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(Ve){C(Ve)}});var le=M(be,2);qs(le,()=>"slot",!1,(Ve,je)=>{Ie(Ve,null,{name:fa})});var We=M(le,2);let ee=v(()=>l()!=="thumb"||p());ca(We,{get hidden(){return r(ee)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var me=M(We,2);{var j=Ve=>{da(Ve,{shifted:!1,get captions(){return b()},get position(){return u()},get playerSize(){return n()}})};R(me,Ve=>{m().value!=="off"&&Ve(j)})}var te=M(me,2),Oe=h(te);Fl(Oe,{get isLive(){return _()},get isPlaying(){return a()},get time(){return r(oe)}}),g(te);var Ge=M(te,2);let $e;var we=h(Ge);na(we,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:ce,tooltipRightOffset:ce,get ref(){return Ae.timeline},set ref(Ve){Ae.timeline=Ve}}),g(Ge),g(B),E(Ve=>$e=J(Ge,1,"timeline svelte-1qfjf44",null,$e,Ve),[()=>({visible:r(Le)})]),St("mouseenter",B,he),St("mouseleave",B,se),$(t,B),z(),o()}var Mx=L("<div><!></div>"),Lx={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 ru(t,e){U(e,!0),K(t,lx);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)};wn(()=>{window.clearTimeout(n)});var l=ax();l.__click=d;var p=h(l);{var m=y=>{var u=sx(),$=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 V,W,Y,F;J($,1,`semicircle ${(V=e.side)!=null?V:""}`,"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()}rt(["click"]);var dx=(t,e,i)=>{e(!1),i()},cx=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),ux={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 Cm(t,e){U(e,!0),K(t,ux);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(),$()};Ft(()=>{e.isHide||m(),e.isHide&&n()&&(p(!1),u())});var C=Oe(),T=ue(C);{var I=M=>{var P=cx(),k=A(ue(P),2),V=h(k),W=h(V),Y=h(W,!0);g(W);var F=A(W,2);Xs(F,{onClick:b}),g(V);var Q=A(V,2);Q.__click=[dx,p,y];var ie=h(Q),Z=h(ie),re=h(Z);let le;var Ae=A(re,2);{var Me=ne=>{Ql(ne,{get isRunning(){return a()},onTimerEnded:w})};B(Ae,ne=>{n()&&ne(Me)})}g(Z),g(ie);var ge=A(ie,2),se=h(ge),Ee=h(se,!0);g(se),g(ge),g(Q),g(k),E((ne,R)=>{me(Y,ne),nt(Z,`background-image: url('${e.thumb}')`),le=J(re,1,"thumb-overlay svelte-1qdxi6t",null,le,R),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()}rt(["click"]);import{clientChecker as px}from"@vkontakte/videoplayer-core/es2018";var $1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Ft(()=>{px.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))}),wn(()=>{i==null||i(),clearTimeout(o)})};import{VideoFormat as fx}from"@vkontakte/videoplayer-core/es2018";var su=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};import{clientChecker as mx}from"@vkontakte/videoplayer-core/es2018";var y1=({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=()=>mx.device.isIOS&&Se(s)===fx.DASH_LIVE_CMAF,y=()=>{l==null||l(),l=null},u=$=>{if(y(),!m()||!$)return;let w=p();if(!w)return;let b=new su(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 V of k)b.updateSrc(V)}),P=()=>{let k=b.getCurrentShowingId();o(Se(a).find(V=>V.value===k))};w.textTracks.addEventListener("change",P),l=()=>{M(),b.detachAll(),w.textTracks.removeEventListener("change",P)}};Ft(()=>i.subscribe(u)),wn(y)};var hx=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},_x=L("<!> <!>",1),bx=L("<div><!></div>"),$x=L('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),yx=L("<div><!></div>"),xx=L('<div class="settings-mobile svelte-7yl31d"><!></div>'),wx=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Sx=L('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),Cx={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 Tm(t,e){var qo,Wo;U(e,!0),K(t,Cx);let[i,o]=Ne(),n=()=>S(Xe,"$playerPhase",i),a=()=>S(_t,"$isLoaderVisible",i),s=()=>S(Ye,"$adPlaybackState",i),d=()=>S(ut,"$crashed",i),l=()=>S(Mo,"$notificationsToShow$",i),p=()=>S(ot,"$playbackState$",i),m=()=>S(Ke,"$graphIsOpened$",i),y=()=>S(yi,"$interactiveHideMobileControls",i),u=()=>S(Bt,"$isEnded$",i),$=()=>S(Do,"$isInteractiveExpectation$",i),w=()=>S(tt,"$controlsVisible",i),b=()=>S(Ni,"$touched",i),C=()=>S(Di,"$autoplayNextEnabled$",i),T=()=>S(Yi,"$postrollPassed",i),I=()=>S(Lo,"$bottomNoSmooth",i),M=()=>S(Mt,"$videoSize",i),P=()=>S(ji,"$playerSize",i),k=()=>S(zt,"$isFullscreen",i),V=()=>S(gt,"$position$",i),W=()=>S(st,"$duration$",i),Y=()=>S(Un,"$loadedMetadata",i),F=()=>S(Je,"$settingsMenuVisible",i),Q=()=>S(Mi,"$scrubbingInProgress",i),ie=()=>S(Wi,"$volumeChangingInProgress",i),Z=()=>S(ro,"$chromecastConnected$",i),re=()=>S(ni,"$isControlsAvailable",i),le=()=>S(Vi,"$isInteractiveTime$",i),Ae=()=>S(Li,"$isActiveLive",i),Me=()=>S(jt,"$settingsMenuOpenedByKeyboard",i),ge=()=>S(Le,"$language$",i),se=()=>S(Oo,"$disabledControls$",i),Ee=()=>S(Eo,"$is3DVideo",i),ne=()=>S(ui,"$icon3DVideoVisible",i),R=()=>S(ln,"$chromecastDeviceName$",i),xe=()=>S(so,"$currentSubtitle$",i),_e=()=>S(Xt,"$currentSubtitleCaptions$",i),ze=()=>S(Fn,"$realDuration$",i),H=()=>S(Zt,"$isLive$",i),ae=()=>S(gi,"$isPlaying$",i),he=()=>S(At,"$debugPanelVisible",i),ee=f(e,"videoContainer",15),De=f(e,"adsSlotId",3,void 0),je=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,""),dt=f(e,"showNextPrevButtons",3,!1),ct=f(e,"nextButtonActive",3,!1),it=f(e,"prevButtonActive",3,!1),Ct=f(e,"endScreenVideoTitle",3,void 0),vt=f(e,"endScreenVideoThumb",3,void 0),Wt=f(e,"isOneVideoPlaylist",3,!1),ti=f(e,"shadowRootContainer",3,void 0),Et=f(e,"outerContainerRef",3,void 0),Rt=f(e,"showMiniTimer",3,!1),O=f(e,"fullScreenTarget",3,void 0),be=f(e,"playerStarted",3,!1),oe=f(e,"showEndScreen",3,!0),{notifications$:Re,graphIsOpened$:Ke}=oo(),Ge=e.store.getLogger().createComponentLog("Root component"),Le=e.store.interfaceLanguage$,ot=e.store.state.playbackState$,Ye=e.store.ads.playbackState,gt=e.store.state.positionWithScrubbing$,st=e.store.state.duration$,Xe=e.store.playerPhase,zt=e.store.ui.isFullscreen,tt=e.store.ui.controlsVisible,ni=e.store.ui.isControlsAvailable,yi=e.store.ui.interactiveHideMobileControls,Je=e.store.ui.settingsMenu.visible$,jt=e.store.ui.settingsMenu.openedByBtnKeyboard$,Mi=e.store.ui.scrubbingInProgress,Wi=e.store.ui.volumeChangingInProgress,At=e.store.ui.debugPanelVisible,_t=e.store.state.isLoaderVisible,Bt=e.store.state.isEnded$,ro=e.store.state.chromecastConnected$,ln=e.store.state.chromecastDeviceName$,Yi=e.store.ads.postrollPassed,xo=e.store.ui.mobileUnmuteButtonExpanded,j=e.store.ui.mobileUnmuteButtonVisible,Zt=e.store.state.isLive$,gi=e.store.state.isPlaying$,Li=e.store.state.isActiveLive$,ai=e.store.state.isRewindableLive$,ut=e.store.state.crashed$,mi=e.store.webApi.annotationsApi,Ze=e.store.webApi.pictureInPictureApi,Mt=e.store.state.videoSize$,so=e.store.state.currentSubtitle$,Xt=e.store.state.currentSubtitleCaptions$,Fn=e.store.state.duration$,ji=e.store.ui.playerSize,Eo=e.store.ui.is3DVideo,ui=e.store.ui.icon3DVideoVisible,xt=e.store.state.isInteractive,Vi=e.store.state.isInteractiveTime$,Do=e.store.state.isInteractiveExpectation$,pi=e.store.state.hasInteractiveBranches,Oo=e.store.ui.controls.disabledControls$,Ni=e.store.ui.touched,wo=e.store.ui.overlayContainer$,Di=e.store.ui.autoplayNextEnabled$,Un=e.store.state.loadedMetadata$,ao=e.store.actions.internal.closeSettingsMenu,Tn=(qo=e.store.callbacks)==null?void 0:qo.onDisabledPlayPrevChapterClick,Po=(Wo=e.store.callbacks)==null?void 0:Wo.onDisabledSeekToInteractiveClick,Ao=e.store.actions.internal.setQuality,In=X(void 0),Cr=X(void 0),lr=X(void 0),kn=X(void 0),dn,zn,pt,lo=v(()=>(n()==="video"&&a()||n()==="ads"&&s()==="inactive")&&!d()),Ho=X(void 0),{closeNotification:En,notificationsToShow$:Mo}=Re,Fo=v(()=>!!l().slow_video),qn=()=>En("slow_video"),Lo=ce(!1),Wn,cn=X(!1),Kn=v(()=>p()!==vx.PLAYING),Uo=X(!1),co=v(()=>m()||y()||!r(cn)&&(u()&&!!pi||r(Kn)&&$())),Si=X(!0),un=v(()=>e.uiConfig.features.thumbTimer&&Rt()&&n()==="video"&&!w()&&!d()&&!xt&&(e.uiConfig.hideThumbTimerAfterTouch&&!b()||!e.uiConfig.hideThumbTimerAfterTouch)),pn=X(!1),zo=v(()=>(oe()||e.showAutoplayNext&&C())&&!!Ct()&&!!vt()&&(e.showAds&&T()||!e.showAds)&&u()&&!d()&&!r(pn)),uo=X(!1);Ze==null||Ze.setContext(Sl());let Pn=et=>{clearTimeout(zn),et&&(j.set(!0),xo.set(!0),zn=setTimeout(()=>{xo.set(!1)},e.uiConfig.controls.collapseMobileUnmute),xt||Oi(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:Pn});let So=()=>{clearTimeout(dn),D(cn,!1),y()&&yi.set(!1)},Oi=et=>{So(),D(cn,!0),dn=setTimeout(()=>D(cn,!1),et);let Pt=et-100;Wn=setTimeout(()=>{I()&&Lo.set(!1)},Pt>0?Pt:et)},dr=Eo.subscribe(et=>{ui.set(et),et&&(clearTimeout(pt),pt=setTimeout(()=>ui.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Vo=async(et=vs())=>{var Pt,vi,Hi,Ki,vn,gn;if(et&&!Td.device.isIOS){let Fi=Dl(),ki=fn(),Ko=Td.browser.isSamsungBrowser&&Fi===ti();et=Fi===ki||Ko}if(et){Oi(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Ze==null?void 0:Ze.remove())}catch(Fi){Ge({message:String(Fi)})}try{let Fi=(Pt=M())!=null&&Pt.width&&((vi=M())!=null&&vi.height)?M():P();await gh(Fi)}catch(Fi){Ge({message:String(Fi)})}}zt.set(et),e.store.getAdmanWrapper().setFullscreen(et),k()?(Ki=(Hi=e.store.callbacks)==null?void 0:Hi.onFullscreenEnter)==null||Ki.call(Hi):(gn=(vn=e.store.callbacks)==null?void 0:vn.onFullscreenExit)==null||gn.call(vn)},Qn=et=>{let Pt=et;ji.set({width:Pt.target.width,height:Pt.target.height})};Ft(()=>{var et;return Pc(Vo),e.uiConfig.features.annotationsInside&&(mi==null||mi.init(r(In))),Ys(Ze)&&(Ze==null||Ze.assignPlayerContainer(r(In)),Ze==null||Ze.registryExternalEventHandlers({resize:Qn})),D(Si,!Td.device.isIphoneOrOldIpad),e.interactiveContainer&&((et=ee().parentElement)==null||et.insertBefore(e.interactiveContainer,ee().nextSibling)),()=>{clearTimeout(dn),clearTimeout(Wn),clearTimeout(zn),clearTimeout(pt),dr(),Ze==null||Ze.dispose().catch(Pt=>{Ge({message:String(Pt)})}),Ac(Vo)}});let An=X(!0),Gn=X(!0),cr=et=>{let Pt=V()+(et==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Pt<0?(D(An,!1),Pt=0):Pt>=W()&&(D(Gn,!1),Pt=W()),D(Uo,!0),e.seekTime(Pt)},fn=()=>{let et=Td.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Et()?r(In):Et(),Pt=et.getRootNode(),vi=Pt instanceof ShadowRoot?Pt.host:Pt,Hi=O()instanceof HTMLElement&&O().contains(vi);return e.uiConfig.allowChangingFullscreenTarget&&O()&&Hi?O():et},Tr=async()=>{try{if(vs())await Ec(document),Ge({message:"exit fullscreen"});else{if(Ge({message:"request fullscreen"}),Td.device.isIOS&&!Y())return;await kc(fn())}}catch(et){Ge({message:String(et)})}},ur=()=>{ao()},Yn=et=>{if(et.preventDefault(),F()){ur();return}if(!be()){e.firstStart(),Oi(e.uiConfig.controls.hideTimeoutCursor);return}D(Uo,!1),w()?So():Oi(e.uiConfig.controls.hideTimeoutMobile)},Ir=()=>{Ni.set(!0)},kr=()=>{xt||(Lo.set(!0),Oi(e.uiConfig.controls.hideTimeoutCursor))},mn=et=>{Tn&&(Tn(et),Oi(e.uiConfig.controls.hideTimeoutMobile))},Qt=et=>{Po&&(Po(et),Oi(e.uiConfig.controls.hideTimeoutMobile))};Fe(()=>{wo.set(r(Ho))}),Fe(()=>{tt.set((r(Kn)||F()||Q()||ie()||Z()||!r(zo)&&(u()||r(cn)&&!r(Uo)))&&!r(co)&&n()==="video"&&!d()&&re())}),Fe(()=>{!Q()&&r(uo)&&!le()&&Oi(e.uiConfig.controls.hideTimeoutMobile),D(uo,pe(Q()))}),Fe(()=>{D(An,V()>0),D(Gn,pe(!Ae()&&V()<W()))}),Fe(()=>{Qa(r(kn),F(),Me())});let ft=q("aria_label_video_player"),Nt=q("video360");$1({fullScreenChangeHandler:Vo,getFullscreenTarget:fn}),y1({store:e.store,getFullscreenTarget:fn});var li=Sx();St("blur",Ns,ur),Be(li,"aria-label",ft);var ri=h(li);fa(ri,{onClick:Yn,get videoContainer(){return ee()},set videoContainer(et){ee(et)}});var po=A(ri,2);zs(po,()=>"slot",!1,(et,Pt)=>{Te(et,null,{name:pa})});var Co=A(po,2);Us(Co,ge,et=>{var Pt=wx(),vi=ue(Pt);let Hi=v(()=>n()!=="thumb"||d()||xt&&e.autoplay);da(vi,{get hidden(){return r(Hi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Ki=A(vi,2);{var vn=He=>{var Lt=_x(),oi=ue(Lt);{var Zi=Ri=>{let tr=v(()=>e.uiConfig.controls.seekStepMobile/1e3);ru(Ri,{side:"left",get seekStep(){return r(tr)},handleSingleFirstClick:Yn,handleSecondClick:()=>cr("backward")})};B(oi,Ri=>{r(An)&&Ri(Zi)})}var mo=A(oi,2);{var Ur=Ri=>{let tr=v(()=>e.uiConfig.controls.seekStepMobile/1e3);ru(Ri,{side:"right",get seekStep(){return r(tr)},handleSingleFirstClick:Yn,handleSecondClick:()=>cr("forward")})};B(mo,Ri=>{r(Gn)&&Ri(Ur)})}_(He,Lt)};B(Ki,He=>{e.canRewindLive&&ai&&!se().has("TIMELINE")&&He(vn)})}var gn=A(Ki,2);{var Fi=He=>{let Lt=v(()=>{var oi;return(oi=e.live)==null?void 0:oi.startTime});yd(He,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(Lt)}})};B(gn,He=>{n()==="LiveWaitingStart"&&He(Fi)})}var ki=A(gn,2);{var Ko=He=>{ca(He,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};B(ki,He=>{n()==="LiveWaitingRecover"&&He(Ko)})}var jn=A(ki,2);{var Er=He=>{ca(He,{kind:"record",get thumbUrl(){return e.thumbUrl}})};B(jn,He=>{n()==="LiveWaitingRecord"&&He(Er)})}var Qo=A(jn,2);{var pr=He=>{var Lt=bx();let oi;var Zi=h(Lt);Ol(Zi,{get adsSlotId(){return De()},get adsParams(){return je()},get adsPreviewParam(){return we()},get adsAutoplayParam(){return Ve()},get duration(){return Ie()}}),g(Lt),E(mo=>oi=J(Lt,1,"ads-container svelte-7yl31d",null,oi,mo),[()=>({hidden:n()!=="ads"})]),_(He,Lt)};B(Qo,He=>{e.showAds&&be()&&He(pr)})}var Zn=A(Qo,2);{var fr=He=>{let Lt=v(()=>!oe()&&e.showAutoplayNext&&C());Cm(He,{get title(){return Ct()},get thumb(){return vt()},get isHide(){return r(Lt)},clickCloseIcon:()=>D(pn,!0)})};B(Zn,He=>{r(zo)&&Ct()&&vt()&&He(fr)})}var Xn=A(Zn,2);{var Pr=He=>{_d(He,{})};B(Xn,He=>{Ee()&&He(Pr)})}var Jn=A(Xn,2);{var Go=He=>{var Lt=$x(),oi=h(Lt);Nl(oi,{"aria-label":Nt}),g(Lt),_(He,Lt)};B(Jn,He=>{ne()&&He(Go)})}var Ar=A(Jn,2);{var Yo=He=>{bd(He,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return R()}})};B(Ar,He=>{Z()&&He(Yo)})}var mr=A(Ar,2);{var Fr=He=>{la(He,{get shifted(){return w()},get captions(){return _e()},get position(){return V()},get playerSize(){return P()},isMobile:!0})};B(mr,He=>{xe().value!=="off"&&He(Fr)})}var at=A(mr,2);{var Kt=He=>{var Lt=yx();Lt.__click=[hx,F,Je,ur];var oi=h(Lt);$d(oi,{}),g(Lt),_(He,Lt)};B(at,He=>{d()&&He(Kt)})}var ii=A(at,2);{var fo=He=>{let Lt=v(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),oi=v(()=>n()==="ads"),Zi=v(()=>e.canRewindLive&&ze()!==0);hd(He,{get bottomHidden(){return r(Lt)},get showControls(){return w()},get bottomNoSmooth(){return I()},get isAds(){return r(oi)},get canRewindLive(){return r(Zi)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ue()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return dt()},get nextButtonActive(){return ct()},get prevButtonActive(){return it()},get isOneVideoPlaylist(){return Wt()},get customFullscreenSupported(){return r(Si)},get endScreenShown(){return r(zo)},toggleFullscreen:Tr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:mn,onDisabledSeekToInteractiveClick:Qt,get playerControlsWrapperRef(){return r(Cr)},set playerControlsWrapperRef(mo){D(Cr,pe(mo))},get playerControlsRef(){return r(lr)},set playerControlsRef(mo){D(lr,pe(mo))}})};B(ii,He=>{be()&&He(fo)})}var hn=A(ii,2);{var er=He=>{var Lt=xx(),oi=h(Lt);Sd(oi,{get supportLink(){return e.supportLink},returnFocus:gx,get ref(){return r(kn)},set ref(Zi){D(kn,pe(Zi))}}),g(Lt),_(He,Lt)};B(hn,He=>{F()&&He(er)})}var _n=A(hn,2);let Mn=v(()=>!r(un));Ul(_n,{get isLive(){return H()},get isHidden(){return r(Mn)},get isPlaying(){return ae()},get position(){return V()},get duration(){return W()}});var xi=A(_n,2);{var fe=He=>{ea(He,{})};B(xi,He=>{r(lo)&&He(fe)})}var $t=A(xi,2);{var di=He=>{Kl(He,{})};B($t,He=>{he()&&He(di)})}var fi=A($t,2);{var wi=He=>{Cd(He,{onClose:qn,onSelectAutoQuality:()=>{Ao("auto"),qn()}})};B(fi,He=>{r(Fo)&&He(wi)})}_(et,Pt)});var To=A(Co,2);mt(To,et=>D(Ho,et),()=>r(Ho)),g(li),mt(li,et=>D(In,et),()=>r(In)),St("click",li,Ir,!0),St("focusin",li,kr,!0),_(t,li),z(),o()}rt(["click"]);function au(t){let e="";return no(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),no(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),no(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),no(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),no(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),no(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),no(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),no(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),no(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),no(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),no(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),no(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),no(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),no(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),no(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),no(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),no(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),no(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),no(t.font)&&(e+=`--font:${t.font};`),e.length&&e||void 0}function no(t){return typeof t=="string"&&!t.includes(";")}import{debounceFn as Tx}from"@vkontakte/videoplayer-shared/es2018";var Ix=L('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),kx={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 Im(t,e){U(e,!0),K(t,kx);let[i,o]=Ne(),n=()=>S(ie,"$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(V,"$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$:V,currentSubtitleCaptions$:W,positionWithScrubbing$:Y,isLive$:F,isRewindableLive$:Q},ui:{playerSize:ie,controls:Z},actions:{internal:{getVideoElement:re}}}=Ce(),le=8,Ae=X(!1),Me=pe({}),ge=()=>{D(Ae,!0)},se=()=>{D(Ae,!1)},Ee=Tx(el,260);Fe(()=>{n(),Ee(re(),Z,Me,r(Ae))});let ne=v(()=>a()?an(s()-d()):an(isFinite(s())?s():b()));var R=Ix(),xe=h(R);fa(xe,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(Ie){C(Ie)}});var _e=A(xe,2);zs(_e,()=>"slot",!1,(Ie,Ue)=>{Te(Ie,null,{name:pa})});var ze=A(_e,2);let H=v(()=>l()!=="thumb"||p());da(ze,{get hidden(){return r(H)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var ae=A(ze,2);{var he=Ie=>{la(Ie,{shifted:!1,get captions(){return y()},get position(){return u()},get playerSize(){return n()}})};B(ae,Ie=>{m().value!=="off"&&Ie(he)})}var ee=A(ae,2),De=h(ee);Fl(De,{get isLive(){return $()},get isPlaying(){return a()},get time(){return r(ne)}}),g(ee);var je=A(ee,2);let we;var Ve=h(je);oa(Ve,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:le,tooltipRightOffset:le,get ref(){return Me.timeline},set ref(Ie){Me.timeline=Ie}}),g(je),g(R),E(Ie=>we=J(je,1,"timeline svelte-1qfjf44",null,we,Ie),[()=>({visible:r(Ae)})]),St("mouseenter",R,ge),St("mouseleave",R,se),_(t,R),z(),o()}var Mx=L("<div><!></div>"),Lx={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.`},lh=t_;var es=new Map;es.set(ch.EN,lh)
|
|
|
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 km(t,e){U(e,!0),W(t,Lx);let[i,o]=Re(),n=()=>S(Gt,"$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),b=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),k=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),q=f(e,"adsSlotId",7,void 0),Q=f(e,"adsParams",7,void 0),H=f(e,"adsPreviewParam",7,void 0),Y=f(e,"adsAutoplayParam",7,void 0),ne=f(e,"duration",7,void 0),Z=f(e,"logoClickable",7),de=f(e,"logoHidden",7),ce=f(e,"isMobile",7),Le=f(e,"showNextPrevButtons",7,!1),Ae=f(e,"nextButtonActive",7,!1),he=f(e,"prevButtonActive",7,!1),se=f(e,"endScreenVideoTitle",7,void 0),Me=f(e,"endScreenVideoThumb",7,void 0),oe=f(e,"isOneVideoPlaylist",7,!1),B=f(e,"supportLink",7),be=f(e,"shadowRootContainer",7,void 0),le=f(e,"outerContainerRef",7,void 0),We=f(e,"fullScreenTarget",7,void 0),ee=f(e,"failoverHosts",7,void 0),me=f(e,"showMiniTimer",7,!1),j=f(e,"saveRate",7),te=f(e,"seekToInteractive",7,y1),Oe=f(e,"playPrevChapter",7,y1),Ge=f(e,"volumeMultiplier",7),$e=f(e,"showAutoplayNext",7),we=f(e,"showEndScreen",7,!0),Ve=f(e,"keyboardControls",15,void 0),{subscribers:je,stores:dt}=d();Eg(p());let ct=qt(),rt=p().logoLink,Ct=s().ui.debugPanelVisible,_t=s().ui.playerSize,Gt=s().state.isLive$,It=s().state.isInteractive&&Im.device.isAndroid,Vt=X(void 0),O=null,_e=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}),Og(s(),dt),He(()=>{var G,Xt;s().ui.isMobile.set(ce()),(Xt=(G=l().callbacks)==null?void 0:G.onDomReady)==null||Xt.call(G)});let re=(G=!1)=>{D(_e,!0),G?s().actions.external.firstStart(V()):s().actions.internal.firstStart(V())},Ne=()=>{if(ct.features.qualityDetailsSubMenuEnabled){let G=rh(s().videoId);if(G)switch(G.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,G.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,G.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(G.quality);break}}else{sh(s().videoId),Sp()&&s().actions.internal.setTrafficSavingEnabled(!0);let Xt=$p(s().videoId);Xt&&s().actions.internal.setQuality(Xt)}};function ze(G){var ft,ui,Ze;let Xt=a()||G;Xt&&s().initVideo({container:r(Vt),sources:Xt,failoverHosts:ee(),subtitles:w(),volumeMultiplier:Ge()});let ri=Ex.get(Ml)==="true";Ct.set(ri),A()>0&&s().actions.external.seekTime(A());let Bi=ce()?ct.volumeDefault:(ui=(ft=k())!=null?ft:$c())!=null?ui:ct.volumeDefault,li=(Ze=P())!=null?Ze:Jg();if(s().actions.external.setVolume(Bi),s().actions.external.setMuted(li),s().getAdmanWrapper().setInitialVolume(li?0:Bi),Ne(),ct.features.saveRate&&j()){let Mt=ih();Mt&&!n()&&s().actions.internal.setPlaybackRate(Mt)}if($e()){let Mt=nh();Mt&&s().actions.internal.setAutoplayNextEnabled(Mt)}s().ui.isAutoplay.set(T()),T()?re():C()&&ct.features.preload&&s().actions.internal.preload()}let Qe=G=>{if(window.ResizeObserver){let Xt,ri;O=new ResizeObserver(Px(Bi=>{let li=Bi[0];if(li.contentBoxSize){let ft=Array.isArray(li.contentBoxSize)?li.contentBoxSize[0]:li.contentBoxSize;Xt=ft.inlineSize,ri=ft.blockSize}else li.contentRect&&(Xt=li.contentRect.width,ri=li.contentRect.height);_t.set({width:Xt,height:ri})},300)),O.observe(G)}_t.set({width:G.clientWidth,height:G.clientHeight})},ut=()=>{document.hidden&&s().actions.external.stop()};zt(()=>{var ri,Bi,li,ft;It&&document.addEventListener("visibilitychange",ut),ct.debugLog&&s().actions.internal.startLogging(),Qe(r(Vt));let G=je.map(ui=>ui.init({store:s(),microStores:dt,config:l(),interactiveController:_(),uiConfig:p()})),Xt=()=>{It&&document.removeEventListener("visibilitychange",ut),O==null||O.disconnect(),G.forEach(ui=>ui.unsubscribe()),s().destroy()};return((ri=y())==null?void 0:ri.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),Xt):((Bi=y())==null?void 0:Bi.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),Xt):(((li=y())==null?void 0:li.status)==="finished"||((ft=y())==null?void 0:ft.status)==="postlive")&&!Object.keys(a()||[]).length?(s().actions.internal.setLiveWaitingRecord(!0),Xt):(ze(),Xt)});function Ye(){r(_e)?s().actions.external.play():re(!0)}function et(){s().actions.external.pause()}function tt(G){s().actions.external.setMuted(G)}function qe(){s().actions.external.toggleSubtitle()}function gt(){var G;(G=s().webApi.slotsApi)!=null&&G.haveSlots()&&s().actions.external.hideControls()}function Ht(){var G;(G=s().webApi.slotsApi)!=null&&G.haveSlots()&&s().actions.external.showControls()}function Xe(G){ce()||G>=0&&G<=1&&s().actions.external.setVolume(G)}function Qt(G){s().actions.internal.seekTime(G,Ax.UNKNOWN)}function ti(G){s().actions.external.seekEpisodeStartTime(G)}function Je(){s().actions.external.returnFocusToEpisodes()}function Zt(G){s().actions.external.setPlaybackRate(G)}function Ni(G){s().actions.external.setAutoQualityLimits(G)}let zi=su(ct.view),At=l().playerView==="preview";var ht=Mx();let Rt;nt(ht,zi);var co=h(ht);{var en=G=>{Cm(G,{get store(){return s()},uiConfig:ct,get thumbUrl(){return b()},get interactiveContainer(){return u()},get live(){return y()},get autoplay(){return T()},get canRewindLive(){return I()},get showAds(){return V()},get adsSlotId(){return q()},get adsParams(){return Q()},get adsPreviewParam(){return H()},get adsAutoplayParam(){return Y()},get duration(){return ne()},get logoClickable(){return Z()},get logoHidden(){return de()},logoTargetUrl:rt,get nextButtonActive(){return Ae()},get prevButtonActive(){return he()},get endScreenVideoTitle(){return se()},get endScreenVideoThumb(){return Me()},get isOneVideoPlaylist(){return oe()},get supportLink(){return B()},get shadowRootContainer(){return be()},get outerContainerRef(){return le()},get fullScreenTarget(){return We()},get showMiniTimer(){return me()},get playerStarted(){return r(_e)},get seekToInteractive(){return te()},get playPrevChapter(){return Oe()},firstStart:re,seekTime:Qt,get showEndScreen(){return we()},get showAutoplayNext(){return $e()},get showNextPrevButtons(){return Le()},get videoContainer(){return r(Vt)},set videoContainer(Xt){D(Vt,fe(Xt))}})},hn=G=>{var Xt=De(),ri=pe(Xt);{var Bi=ft=>{Tm(ft,{get thumbUrl(){return b()},get outsideDuration(){return ne()},get canRewindLive(){return I()},get videoContainer(){return r(Vt)},set videoContainer(ui){D(Vt,fe(ui))}})},li=ft=>{wm(ft,{get store(){return s()},uiConfig:ct,get title(){return m()},get thumbUrl(){return b()},get interactiveContainer(){return u()},get live(){return y()},get autoplay(){return T()},get canRewindLive(){return I()},get showAds(){return V()},get adsSlotId(){return q()},get adsParams(){return Q()},get adsPreviewParam(){return H()},get adsAutoplayParam(){return Y()},get duration(){return ne()},get logoClickable(){return Z()},get logoHidden(){return de()},logoTargetUrl:rt,get nextButtonActive(){return Ae()},get prevButtonActive(){return he()},get endScreenVideoTitle(){return se()},get endScreenVideoThumb(){return Me()},get isOneVideoPlaylist(){return oe()},get supportLink(){return B()},get shadowRootContainer(){return be()},get outerContainerRef(){return le()},get fullScreenTarget(){return We()},get showMiniTimer(){return me()},get playerStarted(){return r(_e)},get seekToInteractive(){return te()},get playPrevChapter(){return Oe()},firstStart:re,get showEndScreen(){return we()},get showAutoplayNext(){return $e()},get showNextPrevButtons(){return Le()},get videoContainer(){return r(Vt)},set videoContainer(ui){D(Vt,fe(ui))},get keyboardControls(){return Ve()},set keyboardControls(ui){Ve(ui)}})};R(ri,ft=>{At?ft(Bi):ft(li,!1)})}$(G,Xt)};R(co,G=>{ce()?G(en):G(hn,!1)})}g(ht),E(G=>Rt=J(ht,1,"root svelte-7ed4yj",null,Rt,G),[()=>({"root--miui-browser":Im.device.isMobile&&Im.browser.isMiuiBrowser,"visible-outside":At})]),$(t,ht);var $o=z({initVideo:ze,play:Ye,pause:et,setMuted:tt,toggleSubtitle:qe,hideControls:gt,showControls:Ht,setVolume:Xe,seekTime:Qt,seekEpisodeStartTime:ti,returnFocusToEpisodes:Je,setPlaybackRate:Zt,setAutoQualityLimits:Ni,get sources(){return a()},set sources(G){a(G)},get store(){return s()},set store(G){s(G)},get microStoresRoot(){return d()},set microStoresRoot(G){d(G)},get videoConfig(){return l()},set videoConfig(G){l(G)},get uiConfig(){return p()},set uiConfig(G){p(G)},get title(){return m()},set title(G){m(G)},get thumbUrl(){return b()},set thumbUrl(G){b(G)},get interactiveContainer(){return u()},set interactiveContainer(G){u(G)},get interactiveController(){return _()},set interactiveController(G){_(G)},get subtitles(){return w()},set subtitles(G){w(G)},get live(){return y()},set live(G){y(G)},get preload(){return C()},set preload(G){C(G)},get autoplay(){return T()},set autoplay(G){T(G)},get volume(){return k()},set volume(G){k(G)},get muted(){return P()},set muted(G){P(G)},get fromTime(){return A()},set fromTime(G){A(G)},get canRewindLive(){return I()},set canRewindLive(G){I(G)},get showAds(){return V()},set showAds(G){V(G)},get adsSlotId(){return q()},set adsSlotId(G){q(G)},get adsParams(){return Q()},set adsParams(G){Q(G)},get adsPreviewParam(){return H()},set adsPreviewParam(G){H(G)},get adsAutoplayParam(){return Y()},set adsAutoplayParam(G){Y(G)},get duration(){return ne()},set duration(G){ne(G)},get logoClickable(){return Z()},set logoClickable(G){Z(G)},get logoHidden(){return de()},set logoHidden(G){de(G)},get isMobile(){return ce()},set isMobile(G){ce(G)},get showNextPrevButtons(){return Le()},set showNextPrevButtons(G){Le(G)},get nextButtonActive(){return Ae()},set nextButtonActive(G){Ae(G)},get prevButtonActive(){return he()},set prevButtonActive(G){he(G)},get endScreenVideoTitle(){return se()},set endScreenVideoTitle(G){se(G)},get endScreenVideoThumb(){return Me()},set endScreenVideoThumb(G){Me(G)},get isOneVideoPlaylist(){return oe()},set isOneVideoPlaylist(G){oe(G)},get supportLink(){return B()},set supportLink(G){B(G)},get shadowRootContainer(){return be()},set shadowRootContainer(G){be(G)},get outerContainerRef(){return le()},set outerContainerRef(G){le(G)},get fullScreenTarget(){return We()},set fullScreenTarget(G){We(G)},get failoverHosts(){return ee()},set failoverHosts(G){ee(G)},get showMiniTimer(){return me()},set showMiniTimer(G){me(G)},get saveRate(){return j()},set saveRate(G){j(G)},get showAutoplayNext(){return $e()},set showAutoplayNext(G){$e(G)},get seekToInteractive(){return te()},set seekToInteractive(G){te(G)},get playPrevChapter(){return Oe()},set playPrevChapter(G){Oe(G)},get volumeMultiplier(){return Ge()},set volumeMultiplier(G){Ge(G)},get showEndScreen(){return we()},set showEndScreen(G){we(G)},get keyboardControls(){return Ve()},set keyboardControls(G){Ve(G)}});return o(),$o}var Vx=xe('<svg><!><path fill="currentColor" d="M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"></path></svg>');function Em(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Vx();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(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 Pm(t,e){let i=f(e,"isWhite",3,!1),o=v(()=>i()?"color: #fff;":"color: #909499;");Em(t,{get style(){return r(o)}})}var Rx=L('<div class="title svelte-1y9fytq"> </div>'),Nx=L('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),Bx={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 Am(t,e){W(t,Bx);var i=Nx(),o=h(i);{var n=d=>{var l=Rx(),p=h(l,!0);g(l),E(()=>ve(p,e.title)),$(d,l)};R(o,d=>{e.title&&d(n)})}var a=M(o,2);{var s=d=>{let l=v(()=>!!e.thumbUrl);Pm(d,{get isWhite(){return r(l)}})};R(a,d=>{(!e.title||!e.thumbUrl)&&d(s)})}g(i),E(()=>nt(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),$(t,i)}import{now as d5}from"@vkontakte/videoplayer-shared/es2018";import{cloneDeepWith as c5,InterfaceLanguage as u5,isNonNullable as Bm,Logger as p5,Observable as f5,Subscription as E1,once as m5,InternalsExposure as v5,skip as g5}from"@vkontakte/videoplayer-shared/es2018";import{clientChecker as P1,isMobile as h5}from"@vkontakte/videoplayer-core/es2018";import{OneStat as _5}from"@vkontakte/videoplayer-statistics/es2018";import{Logger as Dx,Subscription as Ox}from"@vkontakte/videoplayer-shared/es2018";var au=class{constructor(){this.subscription=new Ox,this.logger=new Dx,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=Ce(e.state.currentPlaybackRate$),n=Ce(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()}};import{ValueSubject as Vm,detectEmbed as Wx}from"@vkontakte/videoplayer-shared/es2018";var Hx=xe('<svg><!><g fill="var(--btn-color, #fff)"><path d="m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"></path><path d="M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"></path></g></svg>');function Mm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Hx();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),E(()=>n=Ie(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 Fx=L('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),Ux={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 Lm(t,e){U(e,!0),W(t,Ux);let[i,o]=Re(),n=()=>S(p,"$interfaceLanguage$",i),a=()=>S(m,"$isMobile$",i),s=Te(),d=qt(),l=!!s.webApi.pictureInPictureApi,p=s.interfaceLanguage$,m=s.ui.isMobile,b=s.ui.t,u=v(()=>n()&&b("pip_dummy_title")),_=su(d.view);var w=Fx();J(w,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),nt(w,_);var y=h(w);let C;var T=h(y);Mm(T,{}),g(y);var k=M(y,2),P=h(k,!0);g(k),g(w),E(A=>{C=J(y,1,"dummy-image svelte-1pbsod4",null,C,A),ve(P,r(u))},[()=>({desktop:!a()})]),$(t,w),z(),o()}var zx=Object.defineProperty,qx=(t,e,i)=>e in t?zx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,nl=(t,e,i)=>qx(t,typeof e!="symbol"?e+"":e,i),Kx=460,Qx=280,Id=class{constructor({enabled:e=!0}={enabled:!0}){nl(this,"playerDomElement"),nl(this,"playerParentShadowRoot"),nl(this,"playerDummyElement"),nl(this,"svelteContext"),nl(this,"pipWindow"),nl(this,"info",{isActive$:new Vm(!1),isEnabled$:new Vm(!1),type:1}),this.info.isEnabled$=new Vm(e)}isSupported(){let{isEmbed:e}=Wx();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:Kx,height:Qx,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=Zr(Lm,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||(Us(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 x1(t){return t instanceof Id}var lu=class{static getLatestSupportedVersion(e){let i=new js(e),o=new Id(e);if(o.isSupported())return o;if(i.isSupported())return i}};function du(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 w1="Inner error. Unexpectedly root annotation container null reference exception",S1="Annotation with such name already exists",C1="Annotation with such name does not exist";var rl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as Gx,Subscription as jx,throttleFn as Yx}from"@vkontakte/videoplayer-shared/es2018";var Zx="1",Xx=100,cu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new jx}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=Yx(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},Xx);this.subscriptions.add(Gx(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 rl(w1);if(this.annotations.has(e))throw new rl(S1);i.style.zIndex=(o=i.style.zIndex)!=null?o:Zx,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 rl(C1);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(){}};import{assertNonNullable as uu,Subscription as Jx}from"@vkontakte/videoplayer-shared/es2018";var Oo=class{init({store:e,microStores:i,interactiveController:o,config:n}){return uu(e),uu(i),uu(n),n.interactiveData&&uu(o),this.subscription=new Jx,this.subscription}};var kd=class extends Oo{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...ae(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(a=>{this.state$.set(a?!0:null)})),o}};var Ed=class extends Oo{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...ae(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,b=Ce(m),u=()=>b&&Ce(p);return o.add(p.subscribe(_=>{if(!b)return;let w=Ce(s);Ce(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=Ce(d);if(u()){this.state$.set(!0);return}w&&this.state$.set(!_)})),o}};var Pd=class extends Oo{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=ae("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(a=>{a.length&&(a.every(s=>s.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};import{combine as e5}from"@vkontakte/videoplayer-shared/es2018";var Rm=ae(!1),pu=null,Ad=class extends Oo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Rm,set:(i,o=!1)=>{i!==Ce(Rm)&&(this.clearTimeout(),Rm.set(i),!i&&pu&&(pu=!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(b=>{Ce(s)&&b&&this.state$.set(!1)}));let m=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add(e5({isPlaying$:d,isInteractiveTime$:s,interactiveTimeIndicator:p}).subscribe(({isPlaying$:b,isInteractiveTime$:u,interactiveTimeIndicator:_})=>{var w,y;if(!(!b||!(_!=null&&_.isDisplayed))){if(!u)return this.state$.set(!1);m.tooltipHelpHintActive&&pu===null&&(pu=!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)}};import{combine as t5,noop as i5}from"@vkontakte/videoplayer-shared/es2018";var Md=class extends Oo{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...ae(null),toggle:i5};this.checkIfShouldHide=i=>xs(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(Ce(s)))return;let l=Ce(this.state$),{isEnded$:p,playbackState$:m}=n.state,{disabledControls$:b}=n.ui.controls,u=Ce(p),_=Ce(m);if(l)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1),b.remove(fp),!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),b.add(fp),!u&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add(t5({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(b){d({message:"Cant hide graph"})}})),o}};import{ValueSubject as T1}from"@vkontakte/videoplayer-shared/es2018";var Ld=class extends Oo{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:ae(!1),isEnabled$:ae(!1),type$:ae(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:a,isEnabled$:s,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new T1(!1),isEnabled$:new T1(!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}};import{filter as r5,filterChanged as s5}from"@vkontakte/videoplayer-shared/es2018";import{safeStorage as Nm}from"@vkontakte/videoplayer-shared/es2018";var I1=({maxShowCount:t,timeout:e})=>{let i=[t!==0?o5({maxCount:t}):void 0,e!==0?n5({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},o5=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Nm.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}}},n5=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Nm.get(e)||"{}")}catch(a){return{}}},o=a=>Nm.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 Vd=class extends Oo{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:ae({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:a,timeoutShowSlowVideoNotification:s,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:l}}}=i;this.notificationManager=I1({maxShowCount:a,timeout:s});let p=n.getPlayer();return o.add(p.events.severeStallOccured$.pipe(s5(),r5(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 k1=()=>[kd,Ed,Pd,Ad,Md,Ld,Vd].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});import{devNull as Rd}from"@vkontakte/videoplayer-shared/es2018";var a5=Object.defineProperty,l5=(t,e,i)=>e in t?a5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,oi=(t,e,i)=>l5(t,typeof e!="symbol"?e+"":e,i),b5={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:u5.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:h5(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},gn=X(void 0),fu=class extends HTMLElement{constructor(){super(),oi(this,"svelteStubComponent"),oi(this,"svelteRootComponent"),oi(this,"store"),oi(this,"microStoresRoot"),oi(this,"statistics"),oi(this,"sentry"),oi(this,"_shadowRoot"),oi(this,"playerContainer"),oi(this,"rootContainer"),oi(this,"shadowRootContainer"),oi(this,"uiConfig"),oi(this,"coreConfig"),oi(this,"statisticsConfig"),oi(this,"interactiveController"),oi(this,"interactiveContainer"),oi(this,"graphMadePause"),oi(this,"currentPlayingVideoIndex",0),oi(this,"needToRepeatPlaylist",!1),oi(this,"videoConfig"),oi(this,"pictureInPictureApi"),oi(this,"mediaSessionApi"),oi(this,"unsubscribePlayerPhaseSubscription"),oi(this,"logger"),oi(this,"log"),oi(this,"subscription"),oi(this,"interactiveSubscription"),oi(this,"annotationsApi"),oi(this,"slotsApi"),oi(this,"prevIsid"),oi(this,"isInited",!1),oi(this,"internalsExposure",null),oi(this,"shadowDOMCallbacksDisabled",!1),oi(this,"createOneStat",(e,i={})=>{var o,n,a,s;let{albumId:d,statPlace:l,statUserSalt:p,statTrackCode:m,statVKAppId:b,refreshStatAuthToken:u,autoplay:_,isMobile:w,isTouch:y,refDomain:C,deviceId:T,interactiveData:k}=du(this.videoConfig,i),P=(o=k==null?void 0:k.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 _5({movieId:I,albumId:d,place:l,trackCode:m,vkAppId:b,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}})}),Rd.create("ui"),this.logger=new p5,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new E1,this.interactiveSubscription=new E1,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=fe({title:o,thumbUrl:n}),s={target:this.playerContainer,props:a};this.svelteStubComponent=Zr(Am,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(),Rd.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,b;if(!this.videoConfig)return;let{albumId:u,statPlace:_,statAuthToken:w,preload:y,autoplay:C,volume:T,muted:k,fromTime:P,canRewindLive:A,supportLink:I,showAds:V,adsSlotId:q,adsParams:Q={},adsPreviewParam:H,adsAutoplayParam:Y,interfaceLanguage:ne,isCyrillicRelatedInterface:Z,logoClickable:de,logoHidden:ce,isMobile:Le,isTouch:Ae,isAudioDisabled:he,isLiveCatchUpMode:se,fullScreenTarget:Me,failoverHosts:oe,canDownload:B,callbacks:be,interactiveData:le,showThumbTimer:We,additionalButtons:ee=[],additionalSettingsMenuItems:me=[],additionalContextMenuItems:j=[],repeat:te,saveRate:Oe,volumeMultiplier:Ge,showEndScreen:$e,showAutoplayNext:we}=du(this.videoConfig,i),{sources:Ve,title:je,thumbUrl:dt,unitedVideoId:ct,isClip:rt=!1,duration:Ct,adsParams:_t={},videoEpisodes:Gt,previewThumbsData:ni,subtitles:It,live:Vt}=e,O={...Q,..._t},_e=this.getNextVideoInfo(),re={sources:Ve,title:je,thumbUrl:dt,subtitles:It,unitedVideoId:ct,isClip:rt,live:Vt,albumId:u,statPlace:_,autoplay:C,muted:k,volume:T,fromTime:P,canRewindLive:A,showAds:V,adsSlotId:q,adsParams:O,adsPreviewParam:H,adsAutoplayParam:Y,duration:Ct,logoClickable:de,logoHidden:ce,isTouch:Ae!=null?Ae:Le,repeat:te,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:_e.nextVideoTitle,endScreenVideoThumb:_e.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Ne={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(re)}`});let ze=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),Qe=(ze==null?void 0:ze.oneStat)||this.createOneStat(e,i);Qe&&(this.statistics=new Kc(Qe,ze==null?void 0:ze.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Gs(this.uiConfig.sentry,{version:qa,env:hc},{movieId:ct,albumId:u,place:_,autoplay:(a=C&&!this.interactiveController)!=null?a:!1,mobile:Ae!=null?Ae:Le,clip:rt}),this.interactiveController&&((d=this.prevIsid)!=null||(this.prevIsid=(s=this.statistics)==null?void 0:s.oneStat.isid$.getValue())),this.sentry={...this.sentry,...Gs.getInstance()};let Ye=!!le,et=[],tt="tooltip_interactive_go_back_disabled_first";if(Ye&&this.interactiveController){let Xe=this.interactiveController.state.isInitialChapter$.getValue(),Qt=this.interactiveController.getHistoryState();Xe&&et.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||et.push("SEEK_TO_INTERACTIVE_BUTTON"),Qt.hasPrevChapter$.getValue()||(et.push("PLAY_PREV_CHAPTER_BUTTON"),Xe||(Qt.isGoBackLimited$.getValue()?tt="tooltip_interactive_go_back_disabled_limit":tt="tooltip_interactive_go_back_disabled"))}let qe=()=>{var Xe;this.isInited=!1,this.prevIsid=void 0;let Qt=(o==null?void 0:o.info.isEnded$.getValue())&&((Xe=this.interactiveController)==null?void 0:Xe.state.isEndChapter$.getValue());be.onReplayInteractiveVideo&&!Qt?be.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Kh({player:o,interfaceLanguage:ne,isCyrillicRelatedInterface:Z,videoId:ct,isClip:rt,isLiveCatchUpMode:se,isAudioDisabled:he,statAuthToken:w,callbacks:be,webApi:Ne,videoEpisodes:Gt,previewThumbsData:ni,canDownload:B,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:et,isInteractive:Ye,saveRate:Oe,interactiveRanges$:(l=this.interactiveController)==null?void 0:l.state.interactiveRanges$,isInteractiveTime$:(p=this.interactiveController)==null?void 0:p.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:qe,playPrevChapterDisabledTooltip:tt,hasInteractiveBranches:!!((b=(m=this.interactiveController)==null?void 0:m.getChapterBranches())!=null&&b.length),additionalButtons:this.uiConfig.features.additionalButtons?ee:[],additionalSettingsMenuItems:me!=null?me:[],additionalContextMenuItems:j!=null?j:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:te&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:gt}=this.microStoresRoot=k1(),Ht=()=>{var Xe,Qt,ti,Je,Zt,Ni;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(At=>{var ht;return(ht=be==null?void 0:be.onCurrentFormatChanged)==null?void 0:ht.call(be,At)})),this.subscription.add(gt.interactiveControlsOpacity$.subscribe(At=>{var ht;At!==null&&((ht=this==null?void 0:this.interactiveController)==null||ht.setDisabledControls(At))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(At=>{var ht;return(ht=be==null?void 0:be.onThroughputEstimationChanged)==null?void 0:ht.call(be,At)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(At=>{var ht;return(ht=be==null?void 0:be.onTrafficSavingEnabledChanged)==null?void 0:ht.call(be,At)})),this.subscription.add(new f5(At=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(ht=>At.next(ht)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?g5(1):At=>At).subscribe(At=>{var ht;return(ht=be==null?void 0:be.onCurrentPlaybackRateChanged)==null?void 0:ht.call(be,At)})),this.subscription.add(this.store.state.volume$.subscribe(At=>{var ht;return(ht=be==null?void 0:be.onVolumeChange)==null?void 0:ht.call(be,At)})),this.subscription.add(this.store.state.muted$.subscribe(At=>{var ht,Rt;return At?(ht=be==null?void 0:be.onMute)==null?void 0:ht.call(be):(Rt=be==null?void 0:be.onUnmute)==null?void 0:Rt.call(be)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(At=>{var ht;return(ht=be==null?void 0:be.onVideoBitrateChanged)==null?void 0:ht.call(be,At)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(At=>{var ht;let Rt=(ht=this.store)==null?void 0:ht.ui.controls.disabledControls$;Rt&&(At&&!Rt.includes(Ll)&&Rt.add(Ll),At||Rt.remove(Ll))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async At=>{var ht;if(!P1.browser.isSamsungBrowser||!At||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((ht=this.videoConfig)==null?void 0:ht.callbacks.onExternalFullscreenExit)})),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(At=>{var ht;return(ht=be==null?void 0:be.onVSIDChanged)==null?void 0:ht.call(be,At)})),this.initMediaSession(),D(gn,fe({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Ve,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:je,thumbUrl:dt,subtitles:It,live:Vt,preload:y,autoplay:C,muted:k,volume:T,fromTime:P,canRewindLive:A,supportLink:I,showAds:V,adsSlotId:q,adsParams:O,adsPreviewParam:H,adsAutoplayParam:Y,duration:Ct,logoClickable:de,logoHidden:ce,isMobile:Ae!=null?Ae:Le,failoverHosts:oe,fullScreenTarget:Me,saveRate:Oe,shadowRootContainer:this.shadowRootContainer,showMiniTimer:We,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:_e.nextVideoTitle,endScreenVideoThumb:_e.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Ge,showEndScreen:$e,showAutoplayNext:we}));let zi={target:this.playerContainer,props:r(gn)};this.svelteRootComponent=Zr(km,zi),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(ti=(Qt=(Xe=this.videoConfig)==null?void 0:Xe.callbacks)==null?void 0:Qt.onInited)==null||ti.call(Qt)),(Je=this.internalsExposure)==null||Je.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Ni=(Zt=this.videoConfig)==null?void 0:Zt.callbacks)!=null&&Ni.onDevNullLog)?Rd.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Rd.destroy("ui")};this.coreConfig.asyncResolveClientChecker?P1.isInited$.subscribe(Xe=>{Xe&&(console.log("UI SDK async start"),Ht())}):Ht()}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&&Bm(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?Ce(s):this.videoConfig.interfaceLanguage,{projectInfo:l,initChapterId:p,historyApi:m,videoLoader:b}=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:b,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(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,k,P,A,I,V;if(!this.store||!this.microStoresRoot)return;let q=u.getValue();if(y==="action-choice"&&C==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Vl)),y==="action-choice-canceled"){let Q=Ce(this.store.state.isPlaying$)||q;if(((P=(T=this.videoConfig)==null?void 0:T.isTouch)!=null?P:(k=this.videoConfig)!=null&&k.isMobile)&&Q){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(Vl)})),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,k,P;C.length&&((P=(k=(T=this.videoConfig)==null?void 0:T.callbacks)==null?void 0:k.onInteractiveHistoryChanged)==null||P.call(k,C))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var y,C,T,k;(y=this.microStoresRoot)==null||y.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(k=(C=this.videoConfig)==null?void 0:(T=C.callbacks).onInteractiveTimeIndicatorClick)==null||k.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,b,u,_,w,y,C,T,k,P,A,I,V,q,Q,H,Y,ne,Z;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=du(b5,c5(e,de=>de instanceof HTMLElement?de:void 0)),this.uiConfig=kg((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 v5("UI"))),Rd.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:[d5()]}),Bm(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(m=(p=this.uiConfig.features.mediaSession)!=null?p:this.videoConfig.isMediaSessionEnabled)!=null?m:!0),Bm(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(u=(b=this.uiConfig.features.pip)!=null?b: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=(k=this.uiConfig.ads.enable)!=null?k: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=(q=this.videoConfig.supportLink)!=null?q:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(Q=this.uiConfig.features.endScreen)!=null?Q:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(H=this.uiConfig.features.autoplayNext)!=null?H:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(Y=this.uiConfig.features.nextPrevButtons)!=null?Y: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 de={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=lu.getLatestSupportedVersion(de):this.pictureInPictureApi=new js(de)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new au:void 0,this.slotsApi=this.uiConfig.features.slots?new ou:void 0,this.annotationsApi=this.uiConfig.features.annotations?new cu(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.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]),x1(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(Z=this.slotsApi)==null||Z.init(this.shadowRootContainer,this.store)}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(gn)&&(r(gn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(gn).nextButtonActive=this.isNextButtonActive(),r(gn).prevButtonActive=this.isPrevButtonActive(),r(gn).endScreenVideoTitle=o.nextVideoTitle,r(gn).endScreenVideoThumb=o.nextVideoThumb,r(gn).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(gn)&&(r(gn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(gn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(gn).nextButtonActive=this.isNextButtonActive(),r(gn).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=Ce(this.store.state.positionExact$),s=Ce(this.store.state.interactiveEpisodes$).find(l=>!l.completed);this.interactiveController.events.playerChanged$.pipe(m5()).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&&Us(e)}};import{InterfaceLanguage as sX,VKNumericLanguage as aX,loadVKLangPack as lX}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as cX,VideoFormat as uX}from"@vkontakte/videoplayer-core/es2018";var XZ=()=>{window.customElements.define("vk-video-player",fu)};export{Qc as ControlButtonType,Or as GridTypes,sX as InterfaceLanguage,ql as MenuItemType,ts as PlayerPhase,qa as VERSION,aX as VKNumericLanguage,uX as VideoFormat,cX as VideoQuality,lX as loadVKLangPack,XZ as registerPlayerWebComponent};
|
|
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 Em(t,e){U(e,!0),K(t,Lx);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),V=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),ie=f(e,"duration",7,void 0),Z=f(e,"logoClickable",7),re=f(e,"logoHidden",7),le=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),R=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),ae=f(e,"showMiniTimer",7,!1),he=f(e,"saveRate",7),ee=f(e,"seekToInteractive",7,x1),De=f(e,"playPrevChapter",7,x1),je=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:dt}=d();Pg(p());let ct=Ut(),it=p().logoLink,Ct=s().ui.debugPanelVisible,vt=s().ui.playerSize,Wt=s().state.isLive$,Et=s().state.isInteractive&&km.device.isAndroid,Rt=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}),Hg(s(),dt),Fe(()=>{var j,Zt;s().ui.isMobile.set(le()),(Zt=(j=l().callbacks)==null?void 0:j.onDomReady)==null||Zt.call(j)});let oe=(j=!1)=>{D(be,!0),j?s().actions.external.firstStart(V()):s().actions.internal.firstStart(V())},Re=()=>{if(ct.features.qualityDetailsSubMenuEnabled){let j=sh(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{ah(s().videoId),Cp()&&s().actions.internal.setTrafficSavingEnabled(!0);let Zt=yp(s().videoId);Zt&&s().actions.internal.setQuality(Zt)}};function Ke(j){var ut,mi,Ze;let Zt=a()||j;Zt&&s().initVideo({container:r(Rt),sources:Zt,failoverHosts:H(),subtitles:w(),volumeMultiplier:je()});let gi=Ex.get(Ml)==="true";Ct.set(gi),P()>0&&s().actions.external.seekTime(P());let Li=le()?ct.volumeDefault:(mi=(ut=I())!=null?ut:$c())!=null?mi:ct.volumeDefault,ai=(Ze=M())!=null?Ze:eh();if(s().actions.external.setVolume(Li),s().actions.external.setMuted(ai),s().getAdmanWrapper().setInitialVolume(ai?0:Li),Re(),ct.features.saveRate&&he()){let Mt=oh();Mt&&!n()&&s().actions.internal.setPlaybackRate(Mt)}if(we()){let Mt=rh();Mt&&s().actions.internal.setAutoplayNextEnabled(Mt)}s().ui.isAutoplay.set(T()),T()?oe():C()&&ct.features.preload&&s().actions.internal.preload()}let Ge=j=>{if(window.ResizeObserver){let Zt,gi;O=new ResizeObserver(Px(Li=>{let ai=Li[0];if(ai.contentBoxSize){let ut=Array.isArray(ai.contentBoxSize)?ai.contentBoxSize[0]:ai.contentBoxSize;Zt=ut.inlineSize,gi=ut.blockSize}else ai.contentRect&&(Zt=ai.contentRect.width,gi=ai.contentRect.height);vt.set({width:Zt,height:gi})},300)),O.observe(j)}vt.set({width:j.clientWidth,height:j.clientHeight})},Le=()=>{document.hidden&&s().actions.external.stop()};Ft(()=>{var gi,Li,ai,ut;Et&&document.addEventListener("visibilitychange",Le),ct.debugLog&&s().actions.internal.startLogging(),Ge(r(Rt));let j=Ue.map(mi=>mi.init({store:s(),microStores:dt,config:l(),interactiveController:$(),uiConfig:p()})),Zt=()=>{Et&&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),Zt):((Li=b())==null?void 0:Li.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),Zt):(((ai=b())==null?void 0:ai.status)==="finished"||((ut=b())==null?void 0:ut.status)==="postlive")&&!Object.keys(a()||[]).length?(s().actions.internal.setLiveWaitingRecord(!0),Zt):(Ke(),Zt)});function ot(){r(be)?s().actions.external.play():oe(!0)}function Ye(){s().actions.external.pause()}function gt(j){s().actions.external.setMuted(j)}function st(){s().actions.external.toggleSubtitle()}function Xe(){var j;(j=s().webApi.slotsApi)!=null&&j.haveSlots()&&s().actions.external.hideControls()}function zt(){var j;(j=s().webApi.slotsApi)!=null&&j.haveSlots()&&s().actions.external.showControls()}function tt(j){le()||j>=0&&j<=1&&s().actions.external.setVolume(j)}function ni(j){s().actions.internal.seekTime(j,Ax.UNKNOWN)}function yi(j){s().actions.external.seekEpisodeStartTime(j)}function Je(){s().actions.external.returnFocusToEpisodes()}function jt(j){s().actions.external.setPlaybackRate(j)}function Mi(j){s().actions.external.setAutoQualityLimits(j)}let Wi=au(ct.view),At=l().playerView==="preview";var _t=Mx();let Bt;nt(_t,Wi);var ro=h(_t);{var ln=j=>{Tm(j,{get store(){return s()},uiConfig:ct,get thumbUrl(){return y()},get interactiveContainer(){return u()},get live(){return b()},get autoplay(){return T()},get canRewindLive(){return k()},get showAds(){return V()},get adsSlotId(){return W()},get adsParams(){return Y()},get adsPreviewParam(){return F()},get adsAutoplayParam(){return Q()},get duration(){return ie()},get logoClickable(){return Z()},get logoHidden(){return re()},logoTargetUrl:it,get nextButtonActive(){return Me()},get prevButtonActive(){return ge()},get endScreenVideoTitle(){return se()},get endScreenVideoThumb(){return Ee()},get isOneVideoPlaylist(){return ne()},get supportLink(){return R()},get shadowRootContainer(){return xe()},get outerContainerRef(){return _e()},get fullScreenTarget(){return ze()},get showMiniTimer(){return ae()},get playerStarted(){return r(be)},get seekToInteractive(){return ee()},get playPrevChapter(){return De()},firstStart:oe,seekTime:ni,get showEndScreen(){return Ve()},get showAutoplayNext(){return we()},get showNextPrevButtons(){return Ae()},get videoContainer(){return r(Rt)},set videoContainer(Zt){D(Rt,pe(Zt))}})},Yi=j=>{var Zt=Oe(),gi=ue(Zt);{var Li=ut=>{Im(ut,{get thumbUrl(){return y()},get outsideDuration(){return ie()},get canRewindLive(){return k()},get videoContainer(){return r(Rt)},set videoContainer(mi){D(Rt,pe(mi))}})},ai=ut=>{Sm(ut,{get store(){return s()},uiConfig:ct,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 V()},get adsSlotId(){return W()},get adsParams(){return Y()},get adsPreviewParam(){return F()},get adsAutoplayParam(){return Q()},get duration(){return ie()},get logoClickable(){return Z()},get logoHidden(){return re()},logoTargetUrl:it,get nextButtonActive(){return Me()},get prevButtonActive(){return ge()},get endScreenVideoTitle(){return se()},get endScreenVideoThumb(){return Ee()},get isOneVideoPlaylist(){return ne()},get supportLink(){return R()},get shadowRootContainer(){return xe()},get outerContainerRef(){return _e()},get fullScreenTarget(){return ze()},get showMiniTimer(){return ae()},get playerStarted(){return r(be)},get seekToInteractive(){return ee()},get playPrevChapter(){return De()},firstStart:oe,get showEndScreen(){return Ve()},get showAutoplayNext(){return we()},get showNextPrevButtons(){return Ae()},get videoContainer(){return r(Rt)},set videoContainer(mi){D(Rt,pe(mi))},get keyboardControls(){return Ie()},set keyboardControls(mi){Ie(mi)}})};B(gi,ut=>{At?ut(Li):ut(ai,!1)})}_(j,Zt)};B(ro,j=>{le()?j(ln):j(Yi,!1)})}g(_t),E(j=>Bt=J(_t,1,"root svelte-tw6yp4",null,Bt,j),[()=>({"root--miui-browser":km.device.isMobile&&km.browser.isMiuiBrowser,"visible-outside":At})]),_(t,_t);var xo=z({initVideo:Ke,play:ot,pause:Ye,setMuted:gt,toggleSubtitle:st,hideControls:Xe,showControls:zt,setVolume:tt,seekTime:ni,seekEpisodeStartTime:yi,returnFocusToEpisodes:Je,setPlaybackRate:jt,setAutoQualityLimits:Mi,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 V()},set showAds(j){V(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 ie()},set duration(j){ie(j)},get logoClickable(){return Z()},set logoClickable(j){Z(j)},get logoHidden(){return re()},set logoHidden(j){re(j)},get isMobile(){return le()},set isMobile(j){le(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 R()},set supportLink(j){R(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 ae()},set showMiniTimer(j){ae(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 je()},set volumeMultiplier(j){je(j)},get showEndScreen(){return Ve()},set showEndScreen(j){Ve(j)},get keyboardControls(){return Ie()},set keyboardControls(j){Ie(j)}});return o(),xo}var Vx=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 Pm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Vx();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$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 Am(t,e){let i=f(e,"isWhite",3,!1),o=v(()=>i()?"color: #fff;":"color: #909499;");Pm(t,{get style(){return r(o)}})}var Rx=L('<div class="title svelte-1y9fytq"> </div>'),Bx=L('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),Nx={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 Mm(t,e){K(t,Nx);var i=Bx(),o=h(i);{var n=d=>{var l=Rx(),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);Am(d,{get isWhite(){return r(l)}})};B(a,d=>{(!e.title||!e.thumbUrl)&&d(s)})}g(i),E(()=>nt(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),_(t,i)}import{now as d5}from"@vkontakte/videoplayer-shared/es2018";import{cloneDeepWith as c5,InterfaceLanguage as u5,isNonNullable as Dm,Logger as p5,Observable as f5,Subscription as P1,once as m5,InternalsExposure as v5,skip as g5}from"@vkontakte/videoplayer-shared/es2018";import{clientChecker as A1,isMobile as h5}from"@vkontakte/videoplayer-core/es2018";import{OneStat as _5}from"@vkontakte/videoplayer-statistics/es2018";import{Logger as Dx,Subscription as Ox}from"@vkontakte/videoplayer-shared/es2018";var lu=class{constructor(){this.subscription=new Ox,this.logger=new Dx,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()}};import{ValueSubject as Rm,detectEmbed as Wx}from"@vkontakte/videoplayer-shared/es2018";var Hx=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 Lm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Hx();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:te}),$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 Fx=L('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),Ux={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 Vm(t,e){U(e,!0),K(t,Ux);let[i,o]=Ne(),n=()=>S(p,"$interfaceLanguage$",i),a=()=>S(m,"$isMobile$",i),s=Ce(),d=Ut(),l=!!s.webApi.pictureInPictureApi,p=s.interfaceLanguage$,m=s.ui.isMobile,y=s.ui.t,u=v(()=>n()&&y("pip_dummy_title")),$=au(d.view);var w=Fx();J(w,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),nt(w,$);var b=h(w);let C;var T=h(b);Lm(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 zx=Object.defineProperty,qx=(t,e,i)=>e in t?zx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,nl=(t,e,i)=>qx(t,typeof e!="symbol"?e+"":e,i),Kx=460,Qx=280,Id=class{constructor({enabled:e=!0}={enabled:!0}){nl(this,"playerDomElement"),nl(this,"playerParentShadowRoot"),nl(this,"playerDummyElement"),nl(this,"svelteContext"),nl(this,"pipWindow"),nl(this,"info",{isActive$:new Rm(!1),isEnabled$:new Rm(!1),type:1}),this.info.isEnabled$=new Rm(e)}isSupported(){let{isEmbed:e}=Wx();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:Kx,height:Qx,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=Zr(Vm,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||(Fs(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 w1(t){return t instanceof Id}var du=class{static getLatestSupportedVersion(e){let i=new Gs(e),o=new Id(e);if(o.isSupported())return o;if(i.isSupported())return i}};function cu(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 S1="Inner error. Unexpectedly root annotation container null reference exception",C1="Annotation with such name already exists",T1="Annotation with such name does not exist";var rl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as Gx,Subscription as Yx,throttleFn as jx}from"@vkontakte/videoplayer-shared/es2018";var Zx="1",Xx=100,uu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new Yx}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=jx(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},Xx);this.subscriptions.add(Gx(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 rl(S1);if(this.annotations.has(e))throw new rl(C1);i.style.zIndex=(o=i.style.zIndex)!=null?o:Zx,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 rl(T1);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(){}};import{assertNonNullable as pu,Subscription as Jx}from"@vkontakte/videoplayer-shared/es2018";var No=class{init({store:e,microStores:i,interactiveController:o,config:n}){return pu(e),pu(i),pu(n),n.interactiveData&&pu(o),this.subscription=new Jx,this.subscription}};var kd=class extends No{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 Ed=class extends No{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 Pd=class extends No{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}};import{combine as e5}from"@vkontakte/videoplayer-shared/es2018";var Bm=ce(!1),fu=null,Ad=class extends No{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Bm,set:(i,o=!1)=>{i!==Se(Bm)&&(this.clearTimeout(),Bm.set(i),!i&&fu&&(fu=!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(e5({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&&fu===null&&(fu=!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)}};import{combine as t5,noop as i5}from"@vkontakte/videoplayer-shared/es2018";var Md=class extends No{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...ce(null),toggle:i5};this.checkIfShouldHide=i=>ys(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(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),y.add(mp),!u&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add(t5({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}};import{ValueSubject as I1}from"@vkontakte/videoplayer-shared/es2018";var Ld=class extends No{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 I1(!1),isEnabled$:new I1(!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}};import{filter as r5,filterChanged as s5}from"@vkontakte/videoplayer-shared/es2018";import{safeStorage as Nm}from"@vkontakte/videoplayer-shared/es2018";var k1=({maxShowCount:t,timeout:e})=>{let i=[t!==0?o5({maxCount:t}):void 0,e!==0?n5({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},o5=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Nm.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}}},n5=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Nm.get(e)||"{}")}catch(a){return{}}},o=a=>Nm.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 Vd=class extends No{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=k1({maxShowCount:a,timeout:s});let p=n.getPlayer();return o.add(p.events.severeStallOccured$.pipe(s5(),r5(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 E1=()=>[kd,Ed,Pd,Ad,Md,Ld,Vd].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});import{devNull as Rd}from"@vkontakte/videoplayer-shared/es2018";var a5=Object.defineProperty,l5=(t,e,i)=>e in t?a5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ei=(t,e,i)=>l5(t,typeof e!="symbol"?e+"":e,i),b5={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:u5.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:h5(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Cn=X(void 0),mu=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}=cu(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:V=!1}=e;if(this.uiConfig.features.statistics&&k)return new _5({movieId:k,albumId:d,place:l,trackCode:m,vkAppId:y,autoplay:(s=$&&!this.interactiveController)!=null?s:!1,mobile:b!=null?b:w,clip:V,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}})}),Rd.create("ui"),this.logger=new p5,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new P1,this.interactiveSubscription=new P1,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=Zr(Mm,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(),Rd.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:V,adsSlotId:W,adsParams:Y={},adsPreviewParam:F,adsAutoplayParam:Q,interfaceLanguage:ie,isCyrillicRelatedInterface:Z,logoClickable:re,logoHidden:le,isMobile:Ae,isTouch:Me,isAudioDisabled:ge,isLiveCatchUpMode:se,fullScreenTarget:Ee,failoverHosts:ne,canDownload:R,callbacks:xe,interactiveData:_e,showThumbTimer:ze,additionalButtons:H=[],additionalSettingsMenuItems:ae=[],additionalContextMenuItems:he=[],repeat:ee,saveRate:De,volumeMultiplier:je,showEndScreen:we,showAutoplayNext:Ve}=cu(this.videoConfig,i),{sources:Ie,title:Ue,thumbUrl:dt,unitedVideoId:ct,isClip:it=!1,duration:Ct,adsParams:vt={},videoEpisodes:Wt,previewThumbsData:ti,subtitles:Et,live:Rt}=e,O={...Y,...vt},be=this.getNextVideoInfo(),oe={sources:Ie,title:Ue,thumbUrl:dt,subtitles:Et,unitedVideoId:ct,isClip:it,live:Rt,albumId:u,statPlace:$,autoplay:C,muted:I,volume:T,fromTime:M,canRewindLive:P,showAds:V,adsSlotId:W,adsParams:O,adsPreviewParam:F,adsAutoplayParam:Q,duration:Ct,logoClickable:re,logoHidden:le,isTouch:Me!=null?Me:Ae,repeat:ee,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:be.nextVideoTitle,endScreenVideoThumb:be.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Re={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(oe)}`});let Ke=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),Ge=(Ke==null?void 0:Ke.oneStat)||this.createOneStat(e,i);Ge&&(this.statistics=new Kc(Ge,Ke==null?void 0:Ke.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Qs(this.uiConfig.sentry,{version:za,env:hc},{movieId:ct,albumId:u,place:$,autoplay:(a=C&&!this.interactiveController)!=null?a:!1,mobile:Me!=null?Me:Ae,clip:it}),this.interactiveController&&((d=this.prevIsid)!=null||(this.prevIsid=(s=this.statistics)==null?void 0:s.oneStat.isid$.getValue())),this.sentry={...this.sentry,...Qs.getInstance()};let ot=!!_e,Ye=[],gt="tooltip_interactive_go_back_disabled_first";if(ot&&this.interactiveController){let tt=this.interactiveController.state.isInitialChapter$.getValue(),ni=this.interactiveController.getHistoryState();tt&&Ye.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Ye.push("SEEK_TO_INTERACTIVE_BUTTON"),ni.hasPrevChapter$.getValue()||(Ye.push("PLAY_PREV_CHAPTER_BUTTON"),tt||(ni.isGoBackLimited$.getValue()?gt="tooltip_interactive_go_back_disabled_limit":gt="tooltip_interactive_go_back_disabled"))}let st=()=>{var tt;this.isInited=!1,this.prevIsid=void 0;let ni=(o==null?void 0:o.info.isEnded$.getValue())&&((tt=this.interactiveController)==null?void 0:tt.state.isEndChapter$.getValue());xe.onReplayInteractiveVideo&&!ni?xe.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Qh({player:o,interfaceLanguage:ie,isCyrillicRelatedInterface:Z,videoId:ct,isClip:it,isLiveCatchUpMode:se,isAudioDisabled:ge,statAuthToken:w,callbacks:xe,webApi:Re,videoEpisodes:Wt,previewThumbsData:ti,canDownload:R,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Ye,isInteractive:ot,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:st,playPrevChapterDisabledTooltip:gt,hasInteractiveBranches:!!((y=(m=this.interactiveController)==null?void 0:m.getChapterBranches())!=null&&y.length),additionalButtons:this.uiConfig.features.additionalButtons?H:[],additionalSettingsMenuItems:ae!=null?ae:[],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:Xe}=this.microStoresRoot=E1(),zt=()=>{var tt,ni,yi,Je,jt,Mi;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(At=>{var _t;return(_t=xe==null?void 0:xe.onCurrentFormatChanged)==null?void 0:_t.call(xe,At)})),this.subscription.add(Xe.interactiveControlsOpacity$.subscribe(At=>{var _t;At!==null&&((_t=this==null?void 0:this.interactiveController)==null||_t.setDisabledControls(At))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(At=>{var _t;return(_t=xe==null?void 0:xe.onThroughputEstimationChanged)==null?void 0:_t.call(xe,At)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(At=>{var _t;return(_t=xe==null?void 0:xe.onTrafficSavingEnabledChanged)==null?void 0:_t.call(xe,At)})),this.subscription.add(new f5(At=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(_t=>At.next(_t)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?g5(1):At=>At).subscribe(At=>{var _t;return(_t=xe==null?void 0:xe.onCurrentPlaybackRateChanged)==null?void 0:_t.call(xe,At)})),this.subscription.add(this.store.state.volume$.subscribe(At=>{var _t;return(_t=xe==null?void 0:xe.onVolumeChange)==null?void 0:_t.call(xe,At)})),this.subscription.add(this.store.state.muted$.subscribe(At=>{var _t,Bt;return At?(_t=xe==null?void 0:xe.onMute)==null?void 0:_t.call(xe):(Bt=xe==null?void 0:xe.onUnmute)==null?void 0:Bt.call(xe)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(At=>{var _t;return(_t=xe==null?void 0:xe.onVideoBitrateChanged)==null?void 0:_t.call(xe,At)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(At=>{var _t;let Bt=(_t=this.store)==null?void 0:_t.ui.controls.disabledControls$;Bt&&(At&&!Bt.includes(Ll)&&Bt.add(Ll),At||Bt.remove(Ll))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async At=>{var _t;if(!A1.browser.isSamsungBrowser||!At||!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(At=>{var _t;return(_t=xe==null?void 0:xe.onVSIDChanged)==null?void 0:_t.call(xe,At)})),this.initMediaSession(),D(Cn,pe({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Ie,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Ue,thumbUrl:dt,subtitles:Et,live:Rt,preload:b,autoplay:C,muted:I,volume:T,fromTime:M,canRewindLive:P,supportLink:k,showAds:V,adsSlotId:W,adsParams:O,adsPreviewParam:F,adsAutoplayParam:Q,duration:Ct,logoClickable:re,logoHidden:le,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:be.nextVideoTitle,endScreenVideoThumb:be.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:je,showEndScreen:we,showAutoplayNext:Ve}));let Wi={target:this.playerContainer,props:r(Cn)};this.svelteRootComponent=Zr(Em,Wi),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(yi=(ni=(tt=this.videoConfig)==null?void 0:tt.callbacks)==null?void 0:ni.onInited)==null||yi.call(ni)),(Je=this.internalsExposure)==null||Je.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Mi=(jt=this.videoConfig)==null?void 0:jt.callbacks)!=null&&Mi.onDevNullLog)?Rd.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Rd.destroy("ui")};this.coreConfig.asyncResolveClientChecker?A1.isInited$.subscribe(tt=>{tt&&(console.log("UI SDK async start"),zt())}):zt()}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&&Dm(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,V;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(Vl)),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}(V=(P=this.videoConfig)==null?void 0:(k=P.callbacks).onDisabledInteractiveClick)==null||V.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(Vl)})),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,V,W,Y,F,Q,ie,Z;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=cu(b5,c5(e,re=>re instanceof HTMLElement?re:void 0)),this.uiConfig=Eg((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 v5("UI"))),Rd.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:[d5()]}),Dm(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(m=(p=this.uiConfig.features.mediaSession)!=null?p:this.videoConfig.isMediaSessionEnabled)!=null?m:!0),Dm(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),(V=this.videoConfig).canRewindLive&&(V.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&&((ie=this.videoConfig.videos)!=null&&ie[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=du.getLatestSupportedVersion(re):this.pictureInPictureApi=new Gs(re)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new lu:void 0,this.slotsApi=this.uiConfig.features.slots?new nu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new uu(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]),w1(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()}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(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;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(m5()).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&&Fs(e)}};import{InterfaceLanguage as aX,VKNumericLanguage as lX,loadVKLangPack as dX}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as uX,VideoFormat as pX}from"@vkontakte/videoplayer-core/es2018";var JZ=()=>{window.customElements.define("vk-video-player",mu)};export{Qc as ControlButtonType,Dr as GridTypes,aX as InterfaceLanguage,ql as MenuItemType,ts as PlayerPhase,za as VERSION,lX as VKNumericLanguage,pX as VideoFormat,uX as VideoQuality,dX as loadVKLangPack,JZ as registerPlayerWebComponent};
|