@vkontakte/videoplayer 1.1.68-dev.a67b8dbc.0 → 1.1.68-dev.b76b5013.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/es2018.esm.js CHANGED
@@ -1,59 +1,59 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.68-dev.a67b8dbc.0
3
- * Mon, 04 Aug 2025 19:21:28 GMT
2
+ * @vkontakte/videoplayer v1.1.68-dev.b76b5013.0
3
+ * Tue, 12 Aug 2025 11:30:31 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-68/doc/
5
5
  */
6
- var X1=Object.defineProperty;var sv=t=>{throw TypeError(t)};var J1=(t,e,i)=>e in t?X1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var Un=(t,e,i)=>J1(t,typeof e!="symbol"?e+"":e,i),Ou=(t,e,i)=>e.has(t)||sv("Cannot "+i);var Pi=(t,e,i)=>(Ou(t,e,"read from private field"),i?i.call(t):e.get(t)),xs=(t,e,i)=>e.has(t)?sv("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Aa=(t,e,i,o)=>(Ou(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),av=(t,e,i)=>(Ou(t,e,"access private method"),i);var ws="[",Ss="[!",zs="]",Kr={};var Qi=Symbol(),_n=Symbol("filename"),lv=Symbol("hmr"),dv="http://www.w3.org/1999/xhtml",ic="http://www.w3.org/2000/svg";var Du="@attach";var oc=!0;var uv,pv,cv=(pv=(uv=globalThis.process)==null?void 0:uv.env)==null?void 0:pv.NODE_ENV,Le=cv&&!cv.toLowerCase().startsWith("prod");var zn=Array.isArray,fv=Array.prototype.indexOf,hl=Array.from,Hu=Object.keys,eo=Object.defineProperty,Yo=Object.getOwnPropertyDescriptor,nc=Object.getOwnPropertyDescriptors,Fu=Object.prototype,mv=Array.prototype,Ws=Object.getPrototypeOf,Uu=Object.isExtensible;function Cs(t){return typeof t=="function"}var se=()=>{};function vv(t){return t()}function Ts(t){for(var e=0;e<t.length;e++)t[e]()}var Lo=Symbol("$state"),Ma=Symbol("legacy props"),gv=Symbol(""),rc=Symbol("proxy path"),sc=1,La=3,Wn=8;function ac(t){return t===this.v}function Va(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function hv(t,e){return t!==e}function Ra(t){return!Va(t,this.v)}function _v(){if(Le){let t=new Error(`derived_references_self
6
+ var s0=Object.defineProperty;var uv=t=>{throw TypeError(t)};var a0=(t,e,i)=>e in t?s0(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var zn=(t,e,i)=>a0(t,typeof e!="symbol"?e+"":e,i),Ou=(t,e,i)=>e.has(t)||uv("Cannot "+i);var Ai=(t,e,i)=>(Ou(t,e,"read from private field"),i?i.call(t):e.get(t)),_s=(t,e,i)=>e.has(t)?uv("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Aa=(t,e,i,o)=>(Ou(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),pv=(t,e,i)=>(Ou(t,e,"access private method"),i);var bs="[",$s="[!",Hs="]",Wr={};var Wi=Symbol(),xn=Symbol("filename"),fv=Symbol("hmr"),mv="http://www.w3.org/1999/xhtml",ic="http://www.w3.org/2000/svg";var Du="@attach";var oc=!0;var gv,hv,vv=(hv=(gv=globalThis.process)==null?void 0:gv.env)==null?void 0:hv.NODE_ENV,Pe=vv&&!vv.toLowerCase().startsWith("prod");var Wn=Array.isArray,_v=Array.prototype.indexOf,_l=Array.from,Hu=Object.keys,io=Object.defineProperty,zo=Object.getOwnPropertyDescriptor,nc=Object.getOwnPropertyDescriptors,Fu=Object.prototype,bv=Array.prototype,Fs=Object.getPrototypeOf,Uu=Object.isExtensible;function ys(t){return typeof t=="function"}var oe=()=>{};function $v(t){return t()}function xs(t){for(var e=0;e<t.length;e++)t[e]()}var Eo=Symbol("$state"),Ma=Symbol("legacy props"),yv=Symbol(""),rc=Symbol("proxy path"),sc=1,La=3,qn=8;function ac(t){return t===this.v}function Va(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function xv(t,e){return t!==e}function Ra(t){return!Va(t,this.v)}function wv(){if(Pe){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 bv(t){if(Le){let e=new Error(`effect_in_teardown
8
+ https://svelte.dev/e/derived_references_self`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/derived_references_self")}function Cv(t){if(Pe){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 $v(){if(Le){let t=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function yv(t){if(Le){let e=new Error(`effect_orphan
10
+ https://svelte.dev/e/effect_in_teardown`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function Sv(){if(Pe){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 Tv(t){if(Pe){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 xv(){if(Le){let t=new Error(`effect_update_depth_exceeded
12
+ https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function Ev(){if(Pe){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 wv(){if(Le){let t=new Error(`hydration_failed
14
+ https://svelte.dev/e/effect_update_depth_exceeded`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Iv(){if(Pe){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 Sv(){if(Le){let t=new Error("invalid_snippet\nCould not `{@render}` snippet due to the expression being `null` or `undefined`. Consider using optional chaining `{@render snippet?.()}`\nhttps://svelte.dev/e/invalid_snippet");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/invalid_snippet")}function Cv(t){if(Le){let e=new Error(`props_invalid_value
16
+ https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function kv(){if(Pe){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 Pv(t){if(Pe){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 Tv(t){if(Le){let e=new Error(`props_rest_readonly
18
+ https://svelte.dev/e/props_invalid_value`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_invalid_value")}function Av(t){if(Pe){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 Ev(t){if(Le){let e=new Error(`rune_outside_svelte
20
+ https://svelte.dev/e/props_rest_readonly`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_rest_readonly")}function Mv(t){if(Pe){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 Iv(){if(Le){let t=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function kv(){if(Le){let t=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Pv(){if(Le){let t=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var qr=!1,Qr=!1;function Av(){qr=!0}var _l=null;function ss(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
22
+ https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function Lv(){if(Pe){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 Vv(){if(Pe){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 Rv(){if(Pe){let t=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var qr=!1,Kr=!1;function Nv(){qr=!0}var bl=null;function os(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
23
23
  `),n=[`
24
- `];for(let s=0;s<o.length;s++){let l=o[s];if(l!=="Error"){if(l.includes("validate_each_keys"))return null;l.includes("svelte/src/internal")||n.push(l)}}if(n.length===1)return null;eo(e,"stack",{value:n.join(`
25
- `)}),eo(e,"name",{value:`${t}Error`})}return e}function Ir(t,e){return t.label=e,lc(t.v,e),t}function lc(t,e){var i;return(i=t==null?void 0:t[rc])==null||i.call(t,e),t}function Na(t){if(Le){let e=new Error(`lifecycle_outside_component
24
+ `];for(let r=0;r<o.length;r++){let l=o[r];if(l!=="Error"){if(l.includes("validate_each_keys"))return null;l.includes("svelte/src/internal")||n.push(l)}}if(n.length===1)return null;io(e,"stack",{value:n.join(`
25
+ `)}),io(e,"name",{value:`${t}Error`})}return e}function Ir(t,e){return t.label=e,lc(t.v,e),t}function lc(t,e){var i;return(i=t==null?void 0:t[rc])==null||i.call(t,e),t}function Na(t){if(Pe){let e=new Error(`lifecycle_outside_component
26
26
  \`${t}(...)\` can only be used during component initialisation
27
- https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Vt=null;function bl(t){Vt=t}var Kn=null;function $l(t){Kn=t}function Ba(t){return Ku("getContext").get(t)}function Oa(t,e){return Ku("setContext").set(t,e),e}function yl(){return Ku("getAllContexts")}function F(t,e=!1,i){var o=Vt={p:Vt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};qr&&!e&&(Vt.l={s:null,u:null,r1:[],r2:pr(!1)}),Vo(()=>{o.d=!0}),Le&&(Vt.function=i,Kn=i)}function U(t){var l,d;let e=Vt;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=vt,o=Et;e.e=null;try{for(var n=0;n<a.length;n++){var s=a[n];to(s.effect),Oi(s.reaction),_o(s.fn)}}finally{to(i),Oi(o)}}Vt=e.p,Le&&(Kn=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function Gr(){return!qr||Vt!==null&&Vt.l===null}function Ku(t){var e;return Vt===null&&Na(t),(e=Vt.c)!=null?e:Vt.c=new Map(t0(Vt)||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=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function ii(t){if(typeof t!="object"||t===null||Lo in t)return t;let e=Ws(t);if(e!==Fu&&e!==mv)return t;var i=new Map,o=zn(t),n=j(0),s=Le&&Qr?ss("CreatedAt"):null,l=Et,d=f=>{var v=Et;Oi(l);var p=f();return Oi(v),p};o&&i.set("length",j(t.length,s));var a="";function u(f){a=f,Ir(n,`${a} version`);for(let[v,p]of i)Ir(p,Ks(a,v))}return new Proxy(t,{defineProperty(f,v,p){(!("value"in p)||p.configurable===!1||p.enumerable===!1||p.writable===!1)&&Iv();var b=i.get(v);return b===void 0?b=d(()=>{var x=j(p.value,s);return i.set(v,x),Le&&typeof v=="string"&&Ir(x,Ks(a,v)),x}):B(b,p.value,!0),!0},deleteProperty(f,v){var p=i.get(v);if(p===void 0){if(v in f){let y=d(()=>j(Qi,s));i.set(v,y),qu(n),Le&&Ir(y,Ks(a,v))}}else{if(o&&typeof v=="string"){var b=i.get("length"),x=Number(v);Number.isInteger(x)&&x<b.v&&B(b,x)}B(p,Qi),qu(n)}return!0},get(f,v,p){var C;if(v===Lo)return t;if(Le&&v===rc)return u;var b=i.get(v),x=v in f;if(b===void 0&&(!x||(C=Yo(f,v))!=null&&C.writable)&&(b=d(()=>{var T=ii(x?f[v]:Qi),E=j(T,s);return Le&&Ir(E,Ks(a,v)),E}),i.set(v,b)),b!==void 0){var y=r(b);return y===Qi?void 0:y}return Reflect.get(f,v,p)},getOwnPropertyDescriptor(f,v){var p=Reflect.getOwnPropertyDescriptor(f,v);if(p&&"value"in p){var b=i.get(v);b&&(p.value=r(b))}else if(p===void 0){var x=i.get(v),y=x==null?void 0:x.v;if(x!==void 0&&y!==Qi)return{enumerable:!0,configurable:!0,value:y,writable:!0}}return p},has(f,v){var y;if(v===Lo)return!0;var p=i.get(v),b=p!==void 0&&p.v!==Qi||Reflect.has(f,v);if(p!==void 0||vt!==null&&(!b||(y=Yo(f,v))!=null&&y.writable)){p===void 0&&(p=d(()=>{var C=b?ii(f[v]):Qi,T=j(C,s);return Le&&Ir(T,Ks(a,v)),T}),i.set(v,p));var x=r(p);if(x===Qi)return!1}return b},set(f,v,p,b){var N;var x=i.get(v),y=v in f;if(o&&v==="length")for(var C=p;C<x.v;C+=1){var T=i.get(C+"");T!==void 0?B(T,Qi):C in f&&(T=d(()=>j(Qi,s)),i.set(C+"",T),Le&&Ir(T,Ks(a,C)))}if(x===void 0)(!y||(N=Yo(f,v))!=null&&N.writable)&&(x=d(()=>j(void 0,s)),B(x,ii(p)),i.set(v,x),Le&&Ir(x,Ks(a,v)));else{y=x.v!==Qi;var E=d(()=>ii(p));B(x,E)}var M=Reflect.getOwnPropertyDescriptor(f,v);if(M!=null&&M.set&&M.set.call(b,p),!y){if(o&&typeof v=="string"){var k=i.get("length"),I=Number(v);Number.isInteger(I)&&I>=k.v&&B(k,I+1)}qu(n)}return!0},ownKeys(f){r(n);var v=Reflect.ownKeys(f).filter(x=>{var y=i.get(x);return y===void 0||y.v!==Qi});for(var[p,b]of i)b.v!==Qi&&!(p in f)&&v.push(p);return v},setPrototypeOf(){kv()}})}function Ks(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:i0.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function qu(t,e=1){B(t,t.v+e)}function Da(t){try{if(t!==null&&typeof t=="object"&&Lo in t)return t[Lo]}catch(e){}return t}function Qu(t,e){return Object.is(Da(t),Da(e))}function kr(t){var e=2050,i=Et!==null&&(Et.f&2)!==0?Et:null;vt===null||i!==null&&(i.f&256)!==0?e|=256:vt.f|=1048576;let o={ctx:Vt,deps:null,effects:null,equals:ac,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:vt};return Le&&Qr&&(o.created=ss("CreatedAt")),o}function g(t){let e=kr(t);return uc(e),e}function Pr(t){let e=kr(t);return e.equals=Ra,e}function dc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Di(e[i])}}var Gu=[];function o0(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function Zu(t){var e,i=vt;if(to(o0(t)),Le){let o=qs;Yu(new Set);try{Gu.includes(t)&&_v(),Gu.push(t),dc(t),e=cc(t)}finally{to(i),Yu(o),Gu.pop()}}else try{dc(t),e=cc(t)}finally{to(i)}return e}function Xu(t){var e=Zu(t);if(t.equals(e)||(t.v=e,t.wv=xl()),!as){var i=(ls||(t.f&256)!==0)&&t.deps!==null?4096:1024;cn(t,i)}}var qs=new Set,Ha=new Map;function Yu(t){qs=t}function pr(t,e){var i={f:0,v:t,reactions:null,equals:ac,rv:0,wv:0};return Le&&Qr&&(i.created=e!=null?e:ss("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function j(t,e){let i=pr(t,e);return uc(i),i}function Yr(t,e=!1,i=!0){var n,s;let o=pr(t);return e||(o.equals=Ra),qr&&i&&Vt!==null&&Vt.l!==null&&((s=(n=Vt.l).s)!=null?s:n.s=[]).push(o),o}function B(t,e,i=!1){var n;Et!==null&&(!Gn||(Et.f&262144)!==0)&&Gr()&&(Et.f&262162)!==0&&!((n=No)!=null&&n[1].includes(t)&&No[0]===Et)&&Pv();let o=i?ii(e):e;return Le&&lc(o,t.label),Fa(t,o)}function Fa(t,e){if(!t.equals(e)){var i=t.v;if(as?Ha.set(t,e):Ha.set(t,i),t.v=e,Le&&Qr&&(t.updated=ss("UpdatedAt"),vt!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&Zu(t),cn(t,(t.f&256)===0?1024:4096)),t.wv=xl(),Lv(t,2048),Gr()&&vt!==null&&(vt.f&1024)!==0&&(vt.f&96)===0&&(Qn===null?Vv([t]):Qn.push(t)),Le&&qs.size>0){let o=Array.from(qs);for(let n of o)(n.f&1024)!==0&&cn(n,4096),Gs(n)&&Ua(n);qs.clear()}}return e}function Lv(t,e){var i=t.reactions;if(i!==null)for(var o=Gr(),n=i.length,s=0;s<n;s++){var l=i[s],d=l.f;if((d&2048)===0&&!(!o&&l===vt)){if(Le&&(d&262144)!==0){qs.add(l);continue}cn(l,e),(d&1280)!==0&&((d&2)!==0?Lv(l,4096):Sl(l))}}}var za="font-weight: bold",Wa="font-weight: normal";function Rv(t,e,i){Le?console.warn(`%c[svelte] hydration_attribute_changed
27
+ https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Lt=null;function $l(t){Lt=t}var Kn=null;function yl(t){Kn=t}function Ba(t){return qu("getContext").get(t)}function Oa(t,e){return qu("setContext").set(t,e),e}function xl(){return qu("getAllContexts")}function D(t,e=!1,i){var o=Lt={p:Lt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};qr&&!e&&(Lt.l={s:null,u:null,r1:[],r2:pr(!1)}),Io(()=>{o.d=!0}),Pe&&(Lt.function=i,Kn=i)}function H(t){var l,d;let e=Lt;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=gt,o=Et;e.e=null;try{for(var n=0;n<a.length;n++){var r=a[n];oo(r.effect),Bi(r.reaction),go(r.fn)}}finally{oo(i),Bi(o)}}Lt=e.p,Pe&&(Kn=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function Qr(){return!qr||Lt!==null&&Lt.l===null}function qu(t){var e;return Lt===null&&Na(t),(e=Lt.c)!=null?e:Lt.c=new Map(d0(Lt)||void 0)}function d0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var c0=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function ti(t){if(typeof t!="object"||t===null||Eo in t)return t;let e=Fs(t);if(e!==Fu&&e!==bv)return t;var i=new Map,o=Wn(t),n=Y(0),r=Pe&&Kr?os("CreatedAt"):null,l=Et,d=f=>{var v=Et;Bi(l);var u=f();return Bi(v),u};o&&i.set("length",Y(t.length,r));var a="";function p(f){a=f,Ir(n,`${a} version`);for(let[v,u]of i)Ir(u,Us(a,v))}return new Proxy(t,{defineProperty(f,v,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Lv();var $=i.get(v);return $===void 0?$=d(()=>{var w=Y(u.value,r);return i.set(v,w),Pe&&typeof v=="string"&&Ir(w,Us(a,v)),w}):B($,u.value,!0),!0},deleteProperty(f,v){var u=i.get(v);if(u===void 0){if(v in f){let y=d(()=>Y(Wi,r));i.set(v,y),Ku(n),Pe&&Ir(y,Us(a,v))}}else{if(o&&typeof v=="string"){var $=i.get("length"),w=Number(v);Number.isInteger(w)&&w<$.v&&B($,w)}B(u,Wi),Ku(n)}return!0},get(f,v,u){var S;if(v===Eo)return t;if(Pe&&v===rc)return p;var $=i.get(v),w=v in f;if($===void 0&&(!w||(S=zo(f,v))!=null&&S.writable)&&($=d(()=>{var T=ti(w?f[v]:Wi),I=Y(T,r);return Pe&&Ir(I,Us(a,v)),I}),i.set(v,$)),$!==void 0){var y=s($);return y===Wi?void 0:y}return Reflect.get(f,v,u)},getOwnPropertyDescriptor(f,v){var u=Reflect.getOwnPropertyDescriptor(f,v);if(u&&"value"in u){var $=i.get(v);$&&(u.value=s($))}else if(u===void 0){var w=i.get(v),y=w==null?void 0:w.v;if(w!==void 0&&y!==Wi)return{enumerable:!0,configurable:!0,value:y,writable:!0}}return u},has(f,v){var y;if(v===Eo)return!0;var u=i.get(v),$=u!==void 0&&u.v!==Wi||Reflect.has(f,v);if(u!==void 0||gt!==null&&(!$||(y=zo(f,v))!=null&&y.writable)){u===void 0&&(u=d(()=>{var S=$?ti(f[v]):Wi,T=Y(S,r);return Pe&&Ir(T,Us(a,v)),T}),i.set(v,u));var w=s(u);if(w===Wi)return!1}return $},set(f,v,u,$){var L;var w=i.get(v),y=v in f;if(o&&v==="length")for(var S=u;S<w.v;S+=1){var T=i.get(S+"");T!==void 0?B(T,Wi):S in f&&(T=d(()=>Y(Wi,r)),i.set(S+"",T),Pe&&Ir(T,Us(a,S)))}if(w===void 0)(!y||(L=zo(f,v))!=null&&L.writable)&&(w=d(()=>Y(void 0,r)),B(w,ti(u)),i.set(v,w),Pe&&Ir(w,Us(a,v)));else{y=w.v!==Wi;var I=d(()=>ti(u));B(w,I)}var A=Reflect.getOwnPropertyDescriptor(f,v);if(A!=null&&A.set&&A.set.call($,u),!y){if(o&&typeof v=="string"){var k=i.get("length"),E=Number(v);Number.isInteger(E)&&E>=k.v&&B(k,E+1)}Ku(n)}return!0},ownKeys(f){s(n);var v=Reflect.ownKeys(f).filter(w=>{var y=i.get(w);return y===void 0||y.v!==Wi});for(var[u,$]of i)$.v!==Wi&&!(u in f)&&v.push(u);return v},setPrototypeOf(){Vv()}})}function Us(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:c0.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function Ku(t,e=1){B(t,t.v+e)}function Da(t){try{if(t!==null&&typeof t=="object"&&Eo in t)return t[Eo]}catch(e){}return t}function Qu(t,e){return Object.is(Da(t),Da(e))}function kr(t){var e=2050,i=Et!==null&&(Et.f&2)!==0?Et:null;gt===null||i!==null&&(i.f&256)!==0?e|=256:gt.f|=1048576;let o={ctx:Lt,deps:null,effects:null,equals:ac,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:gt};return Pe&&Kr&&(o.created=os("CreatedAt")),o}function h(t){let e=kr(t);return uc(e),e}function Pr(t){let e=kr(t);return e.equals=Ra,e}function dc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Oi(e[i])}}var Gu=[];function u0(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function Zu(t){var e,i=gt;if(oo(u0(t)),Pe){let o=zs;Yu(new Set);try{Gu.includes(t)&&wv(),Gu.push(t),dc(t),e=cc(t)}finally{oo(i),Yu(o),Gu.pop()}}else try{dc(t),e=cc(t)}finally{oo(i)}return e}function Xu(t){var e=Zu(t);if(t.equals(e)||(t.v=e,t.wv=wl()),!ns){var i=(rs||(t.f&256)!==0)&&t.deps!==null?4096:1024;an(t,i)}}var zs=new Set,Ha=new Map;function Yu(t){zs=t}function pr(t,e){var i={f:0,v:t,reactions:null,equals:ac,rv:0,wv:0};return Pe&&Kr&&(i.created=e!=null?e:os("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function Y(t,e){let i=pr(t,e);return uc(i),i}function Gr(t,e=!1,i=!0){var n,r;let o=pr(t);return e||(o.equals=Ra),qr&&i&&Lt!==null&&Lt.l!==null&&((r=(n=Lt.l).s)!=null?r:n.s=[]).push(o),o}function B(t,e,i=!1){var n;Et!==null&&(!Yn||(Et.f&262144)!==0)&&Qr()&&(Et.f&262162)!==0&&!((n=Po)!=null&&n[1].includes(t)&&Po[0]===Et)&&Rv();let o=i?ti(e):e;return Pe&&lc(o,t.label),Fa(t,o)}function Fa(t,e){if(!t.equals(e)){var i=t.v;if(ns?Ha.set(t,e):Ha.set(t,i),t.v=e,Pe&&Kr&&(t.updated=os("UpdatedAt"),gt!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&Zu(t),an(t,(t.f&256)===0?1024:4096)),t.wv=wl(),Ov(t,2048),Qr()&&gt!==null&&(gt.f&1024)!==0&&(gt.f&96)===0&&(Gn===null?Dv([t]):Gn.push(t)),Pe&&zs.size>0){let o=Array.from(zs);for(let n of o)(n.f&1024)!==0&&an(n,4096),qs(n)&&Ua(n);zs.clear()}}return e}function Ov(t,e){var i=t.reactions;if(i!==null)for(var o=Qr(),n=i.length,r=0;r<n;r++){var l=i[r],d=l.f;if((d&2048)===0&&!(!o&&l===gt)){if(Pe&&(d&262144)!==0){zs.add(l);continue}an(l,e),(d&1280)!==0&&((d&2)!==0?Ov(l,4096):Sl(l))}}}var za="font-weight: bold",Wa="font-weight: normal";function Hv(t,e,i){Pe?console.warn(`%c[svelte] hydration_attribute_changed
28
28
  %cThe \`${t}\` attribute on \`${e}\` changed its value between server and client renders. The client value, \`${i}\`, will be ignored in favour of the server value
29
- https://svelte.dev/e/hydration_attribute_changed`,za,Wa):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Nv(t){Le?console.warn(`%c[svelte] hydration_html_changed
29
+ https://svelte.dev/e/hydration_attribute_changed`,za,Wa):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Fv(t){Pe?console.warn(`%c[svelte] hydration_html_changed
30
30
  %c${t?`The value of an \`{@html ...}\` block ${t} changed between server and client renders. The client value will be ignored in favour of the server value`:"The value of an `{@html ...}` block changed between server and client renders. The client value will be ignored in favour of the server value"}
31
- https://svelte.dev/e/hydration_html_changed`,za,Wa):console.warn("https://svelte.dev/e/hydration_html_changed")}function Es(t){Le?console.warn(`%c[svelte] hydration_mismatch
31
+ https://svelte.dev/e/hydration_html_changed`,za,Wa):console.warn("https://svelte.dev/e/hydration_html_changed")}function ws(t){Pe?console.warn(`%c[svelte] hydration_mismatch
32
32
  %c${t?`Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${t}`:"Hydration failed because the initial UI does not match what was rendered on the server"}
33
- https://svelte.dev/e/hydration_mismatch`,za,Wa):console.warn("https://svelte.dev/e/hydration_mismatch")}function Bv(){Le?console.warn(`%c[svelte] lifecycle_double_unmount
33
+ https://svelte.dev/e/hydration_mismatch`,za,Wa):console.warn("https://svelte.dev/e/hydration_mismatch")}function Uv(){Pe?console.warn(`%c[svelte] lifecycle_double_unmount
34
34
  %cTried to unmount a component that was not mounted
35
- https://svelte.dev/e/lifecycle_double_unmount`,za,Wa):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Ov(){Le?console.warn("%c[svelte] select_multiple_invalid_value\n%cThe `value` property of a `<select multiple>` element should be an array, but it received a non-array value. The selection will be kept as is.\nhttps://svelte.dev/e/select_multiple_invalid_value",za,Wa):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function pc(t){Le?console.warn(`%c[svelte] state_proxy_equality_mismatch
35
+ https://svelte.dev/e/lifecycle_double_unmount`,za,Wa):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function zv(){Pe?console.warn("%c[svelte] select_multiple_invalid_value\n%cThe `value` property of a `<select multiple>` element should be an array, but it received a non-array value. The selection will be kept as is.\nhttps://svelte.dev/e/select_multiple_invalid_value",za,Wa):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function pc(t){Pe?console.warn(`%c[svelte] state_proxy_equality_mismatch
36
36
  %cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${t}\` will produce unexpected results
37
- https://svelte.dev/e/state_proxy_equality_mismatch`,za,Wa):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Ye=!1;function io(t){Ye=t}var gt;function pi(t){if(t===null)throw Es(),Kr;return gt=t}function Hi(){return pi(Bo(gt))}function h(t){if(Ye){if(Bo(gt)!==null)throw Es(),Kr;gt=t}}function Ce(t=1){if(Ye){for(var e=t,i=gt;e--;)i=Bo(i);gt=i}}function Ys(){for(var t=0,e=gt;;){if(e.nodeType===Wn){var i=e.data;if(i===zs){if(t===0)return e;t-=1}else(i===ws||i===Ss)&&(t+=1)}var o=Bo(e);e.remove(),e=o}}function fc(t){if(!t||t.nodeType!==Wn)throw Es(),Kr;return t.data}function Dv(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(s,l){let d=i.call(this,s,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(Da(this[a])===s){pc("array.indexOf(...)");break}}return d},t.lastIndexOf=function(s,l){let d=o.call(this,s,l!=null?l:this.length-1);if(d===-1){for(let a=0;a<=(l!=null?l:this.length-1);a+=1)if(Da(this[a])===s){pc("array.lastIndexOf(...)");break}}return d},t.includes=function(s,l){let d=n.call(this,s,l);if(!d){for(let a=0;a<this.length;a+=1)if(Da(this[a])===s){pc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var js,Hv,Cl,Fv,Uv;function mc(){if(js===void 0){js=window,Hv=document,Cl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;Fv=Yo(e,"firstChild").get,Uv=Yo(e,"nextSibling").get,Uu(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Uu(i)&&(i.__t=void 0),Le&&(t.__svelte_meta=null,Dv())}}function un(t=""){return document.createTextNode(t)}function vi(t){return Fv.call(t)}function Bo(t){return Uv.call(t)}function _(t,e){if(!Ye)return vi(t);var i=vi(gt);if(i===null)i=gt.appendChild(un());else if(e&&i.nodeType!==La){var o=un();return i==null||i.before(o),pi(o),o}return pi(i),i}function ve(t,e){var n,s;if(!Ye){var i=vi(t);return i.nodeType===8&&i.data===""?Bo(i):i}if(e&&((n=gt)==null?void 0:n.nodeType)!==La){var o=un();return(s=gt)==null||s.before(o),pi(o),o}return gt}function P(t,e=1,i=!1){let o=Ye?gt:t;for(var n;e--;)n=o,o=Bo(o);if(!Ye)return o;if(i&&(o==null?void 0:o.nodeType)!==La){var s=un();return o===null?n==null||n.after(s):o.before(s),pi(s),s}return pi(o),o}function Tl(t){t.textContent=""}function tp(t){vt===null&&Et===null&&yv(t),Et!==null&&(Et.f&256)!==0&&vt===null&&$v(),as&&bv(t)}function n0(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Zs(t,e,i,o=!0){var a;var n=vt;if(Le)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var s={ctx:Vt,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n,prev:null,teardown:null,transitions:null,wv:0};if(Le&&(s.component_function=Kn),i)try{Ua(s),s.f|=32768}catch(u){throw Di(s),u}else e!==null&&Sl(s);var l=i&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&1048704)===0;if(!l&&o&&(n!==null&&n0(s,n),Et!==null&&(Et.f&2)!==0)){var d=Et;((a=d.effects)!=null?a:d.effects=[]).push(s)}return s}function Vo(t){let e=Zs(8,null,!1);return cn(e,1024),e.teardown=t,e}function We(t){var n;tp("$effect");var e=vt!==null&&(vt.f&32)!==0&&Vt!==null&&!Vt.m;if(Le&&eo(t,"name",{value:"$effect"}),e){var i=Vt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:vt,reaction:Et})}else{var o=_o(t);return o}}function kl(t){return tp("$effect.pre"),Le&&eo(t,"name",{value:"$effect.pre"}),Oo(t)}function hc(t){let e=Zs(64,t,!0);return()=>{Di(e)}}function Wv(t){let e=Zs(64,t,!0);return(i={})=>new Promise(o=>{i.outro?xn(e,()=>{Di(e),o(void 0)}):(Di(e),o(void 0))})}function _o(t){return Zs(4,t,!1)}function Oo(t){return Zs(8,t,!0)}function O(t,e=[],i=kr){if(Le)return Oo(()=>{var n=vt,s=()=>t(...l.map(r));eo(n.fn,"name",{value:"{expression}"}),eo(s,"name",{value:"{expression}"});let l=e.map(i);Fi(s)});let o=e.map(i);return Fi(()=>t(...o.map(r)))}function Fi(t,e=0){return Zs(24|e,t,!0)}function Ai(t,e=!0){return Zs(40,t,!0,e)}function ip(t){var e=t.teardown;if(e!==null){let i=as,o=Et;Ju(!0),Oi(null);try{e.call(null)}finally{Ju(i),Oi(o)}}}function op(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;(i.f&64)!==0?i.parent=null:Di(i,e),i=o}}function Kv(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Di(e),e=i}}function Di(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(np(t.nodes_start,t.nodes_end),i=!0),op(t,e&&!i),Pl(t,0),cn(t,16384);var o=t.transitions;if(o!==null)for(let s of o)s.stop();ip(t);var n=t.parent;n!==null&&n.first!==null&&rp(t),Le&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function np(t,e){for(;t!==null;){var i=t===e?null:Bo(t);t.remove(),t=i}}function rp(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=[];_c(t,i,!0),sp(i,()=>{Di(t),e&&e()})}function sp(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function _c(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let l of t.transitions)(l.is_global||i)&&e.push(l);for(var o=t.first;o!==null;){var n=o.next,s=(o.f&65536)!==0||(o.f&32)!==0;_c(o,e,s?i:!1),o=n}}}function cs(t){qv(t,!0)}function qv(t,e){if((t.f&8192)!==0){t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;qv(i,n?e:!1),i=o}if(t.transitions!==null)for(let s of t.transitions)(s.is_global||e)&&s.in()}}var Al=[],ap=[];function Qv(){var t=Al;Al=[],Ts(t)}function r0(){var t=ap;ap=[],Ts(t)}function pn(t){Al.length===0&&queueMicrotask(Qv),Al.push(t)}function Gv(){Al.length>0&&Qv(),ap.length>0&&r0()}function jv(t){var e=vt;if(Le&&t instanceof Error&&s0(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else Ml(t,e)}function Ml(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var Yv=new WeakSet;function s0(t,e){var l,d;if(Yv.has(t))return;Yv.add(t);let i=Yo(t,"message");if(!(i&&!i.configurable)){for(var o=Cl?" ":" ",n=`
38
- ${o}in ${((l=e.fn)==null?void 0:l.name)||"<unknown>"}`,s=e.ctx;s!==null;)n+=`
39
- ${o}in ${(d=s.function)==null?void 0:d[_n].split("/").pop()}`,s=s.p;eo(t,"message",{value:t.message+`
37
+ https://svelte.dev/e/state_proxy_equality_mismatch`,za,Wa):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Je=!1;function no(t){Je=t}var ht;function ci(t){if(t===null)throw ws(),Wr;return ht=t}function Di(){return ci(Ao(ht))}function g(t){if(Je){if(Ao(ht)!==null)throw ws(),Wr;ht=t}}function Ce(t=1){if(Je){for(var e=t,i=ht;e--;)i=Ao(i);ht=i}}function Ks(){for(var t=0,e=ht;;){if(e.nodeType===qn){var i=e.data;if(i===Hs){if(t===0)return e;t-=1}else(i===bs||i===$s)&&(t+=1)}var o=Ao(e);e.remove(),e=o}}function fc(t){if(!t||t.nodeType!==qn)throw ws(),Wr;return t.data}function Wv(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(r,l){let d=i.call(this,r,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(Da(this[a])===r){pc("array.indexOf(...)");break}}return d},t.lastIndexOf=function(r,l){let d=o.call(this,r,l!=null?l:this.length-1);if(d===-1){for(let a=0;a<=(l!=null?l:this.length-1);a+=1)if(Da(this[a])===r){pc("array.lastIndexOf(...)");break}}return d},t.includes=function(r,l){let d=n.call(this,r,l);if(!d){for(let a=0;a<this.length;a+=1)if(Da(this[a])===r){pc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Qs,qv,Tl,Kv,Qv;function mc(){if(Qs===void 0){Qs=window,qv=document,Tl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;Kv=zo(e,"firstChild").get,Qv=zo(e,"nextSibling").get,Uu(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Uu(i)&&(i.__t=void 0),Pe&&(t.__svelte_meta=null,Wv())}}function ln(t=""){return document.createTextNode(t)}function hi(t){return Kv.call(t)}function Ao(t){return Qv.call(t)}function _(t,e){if(!Je)return hi(t);var i=hi(ht);if(i===null)i=ht.appendChild(ln());else if(e&&i.nodeType!==La){var o=ln();return i==null||i.before(o),ci(o),o}return ci(i),i}function pe(t,e){var n,r;if(!Je){var i=hi(t);return i.nodeType===8&&i.data===""?Ao(i):i}if(e&&((n=ht)==null?void 0:n.nodeType)!==La){var o=ln();return(r=ht)==null||r.before(o),ci(o),o}return ht}function P(t,e=1,i=!1){let o=Je?ht:t;for(var n;e--;)n=o,o=Ao(o);if(!Je)return o;if(i&&(o==null?void 0:o.nodeType)!==La){var r=ln();return o===null?n==null||n.after(r):o.before(r),ci(r),r}return ci(o),o}function El(t){t.textContent=""}function tp(t){gt===null&&Et===null&&Tv(t),Et!==null&&(Et.f&256)!==0&&gt===null&&Sv(),ns&&Cv(t)}function p0(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Gs(t,e,i,o=!0){var a;var n=gt;if(Pe)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var r={ctx:Lt,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(Pe&&(r.component_function=Kn),i)try{Ua(r),r.f|=32768}catch(p){throw Oi(r),p}else e!==null&&Sl(r);var l=i&&r.deps===null&&r.first===null&&r.nodes_start===null&&r.teardown===null&&(r.f&1048704)===0;if(!l&&o&&(n!==null&&p0(r,n),Et!==null&&(Et.f&2)!==0)){var d=Et;((a=d.effects)!=null?a:d.effects=[]).push(r)}return r}function Io(t){let e=Gs(8,null,!1);return an(e,1024),e.teardown=t,e}function qe(t){var n;tp("$effect");var e=gt!==null&&(gt.f&32)!==0&&Lt!==null&&!Lt.m;if(Pe&&io(t,"name",{value:"$effect"}),e){var i=Lt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:gt,reaction:Et})}else{var o=go(t);return o}}function Pl(t){return tp("$effect.pre"),Pe&&io(t,"name",{value:"$effect.pre"}),Mo(t)}function hc(t){let e=Gs(64,t,!0);return()=>{Oi(e)}}function Yv(t){let e=Gs(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Tn(e,()=>{Oi(e),o(void 0)}):(Oi(e),o(void 0))})}function go(t){return Gs(4,t,!1)}function Mo(t){return Gs(8,t,!0)}function O(t,e=[],i=kr){if(Pe)return Mo(()=>{var n=gt,r=()=>t(...l.map(s));io(n.fn,"name",{value:"{expression}"}),io(r,"name",{value:"{expression}"});let l=e.map(i);Hi(r)});let o=e.map(i);return Hi(()=>t(...o.map(s)))}function Hi(t,e=0){return Gs(24|e,t,!0)}function Mi(t,e=!0){return Gs(40,t,!0,e)}function ip(t){var e=t.teardown;if(e!==null){let i=ns,o=Et;Ju(!0),Bi(null);try{e.call(null)}finally{Ju(i),Bi(o)}}}function op(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:Oi(i,e),i=o}}function jv(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Oi(e),e=i}}function Oi(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(np(t.nodes_start,t.nodes_end),i=!0),op(t,e&&!i),Al(t,0),an(t,16384);var o=t.transitions;if(o!==null)for(let r of o)r.stop();ip(t);var n=t.parent;n!==null&&n.first!==null&&rp(t),Pe&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function np(t,e){for(;t!==null;){var i=t===e?null:Ao(t);t.remove(),t=i}}function rp(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function Tn(t,e){var i=[];_c(t,i,!0),sp(i,()=>{Oi(t),e&&e()})}function sp(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function _c(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let l of t.transitions)(l.is_global||i)&&e.push(l);for(var o=t.first;o!==null;){var n=o.next,r=(o.f&65536)!==0||(o.f&32)!==0;_c(o,e,r?i:!1),o=n}}}function as(t){Zv(t,!0)}function Zv(t,e){if((t.f&8192)!==0){t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;Zv(i,n?e:!1),i=o}if(t.transitions!==null)for(let r of t.transitions)(r.is_global||e)&&r.in()}}var Ml=[],ap=[];function Xv(){var t=Ml;Ml=[],xs(t)}function f0(){var t=ap;ap=[],xs(t)}function dn(t){Ml.length===0&&queueMicrotask(Xv),Ml.push(t)}function Jv(){Ml.length>0&&Xv(),ap.length>0&&f0()}function tg(t){var e=gt;if(Pe&&t instanceof Error&&m0(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else Ll(t,e)}function Ll(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var eg=new WeakSet;function m0(t,e){var l,d;if(eg.has(t))return;eg.add(t);let i=zo(t,"message");if(!(i&&!i.configurable)){for(var o=Tl?" ":" ",n=`
38
+ ${o}in ${((l=e.fn)==null?void 0:l.name)||"<unknown>"}`,r=e.ctx;r!==null;)n+=`
39
+ ${o}in ${(d=r.function)==null?void 0:d[xn].split("/").pop()}`,r=r.p;io(t,"message",{value:t.message+`
40
40
  ${n}
41
- `}),t.stack&&eo(t,"stack",{value:t.stack.split(`
41
+ `}),t.stack&&io(t,"stack",{value:t.stack.split(`
42
42
  `).filter(a=>!a.includes("svelte/src/internal")).join(`
43
- `)})}}var Xs=!1,Ka=null,Js=!1,as=!1;function Ju(t){as=t}var Ll=[],Vl=[],Et=null,Gn=!1;function Oi(t){Et=t}var vt=null;function to(t){vt=t}var No=null;function uc(t){Et!==null&&Et.f&2097152&&(No===null?No=[Et,[t]]:No[1].push(t))}var fn=null,Yn=0,Qn=null;function Vv(t){Qn=t}var Jv=1,$c=0,ls=!1,yc=null;function xl(){return++Jv}function Gs(t){var v,p;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var n,s,l=(e&512)!==0,d=o&&vt!==null&&!ls,a=i.length;if(l||d){var u=t,f=u.parent;for(n=0;n<a;n++)s=i[n],(l||!((v=s==null?void 0:s.reactions)!=null&&v.includes(u)))&&((p=s.reactions)!=null?p:s.reactions=[]).push(u);l&&(u.f^=512),d&&f!==null&&(f.f&256)===0&&(u.f^=256)}for(n=0;n<a;n++)if(s=i[n],Gs(s)&&Xu(s),s.wv>t.wv)return!0}(!o||vt!==null&&!ls)&&cn(t,1024)}return!1}function eg(t,e,i=!0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var s=o[n];No!=null&&No[1].includes(t)&&No[0]===Et||((s.f&2)!==0?eg(s,e,!1):e===s&&(i?cn(s,2048):(s.f&1024)!==0&&cn(s,4096),Sl(s)))}}function cc(t){var b,x;var e=fn,i=Yn,o=Qn,n=Et,s=ls,l=No,d=Vt,a=Gn,u=t.f;fn=null,Yn=0,Qn=null,ls=(u&256)!==0&&(Gn||!Js||Et===null),Et=(u&96)===0?t:null,No=null,bl(t.ctx),Gn=!1,$c++,t.f|=2097152;try{var f=(0,t.fn)(),v=t.deps;if(fn!==null){var p;if(Pl(t,Yn),v!==null&&Yn>0)for(v.length=Yn+fn.length,p=0;p<fn.length;p++)v[Yn+p]=fn[p];else t.deps=v=fn;if(!ls||(u&2)!==0&&t.reactions!==null)for(p=Yn;p<v.length;p++)((x=(b=v[p]).reactions)!=null?x:b.reactions=[]).push(t)}else v!==null&&Yn<v.length&&(Pl(t,Yn),v.length=Yn);if(Gr()&&Qn!==null&&!Gn&&v!==null&&(t.f&6146)===0)for(p=0;p<Qn.length;p++)eg(Qn[p],t);return n!==null&&n!==t&&($c++,Qn!==null&&(o===null?o=Qn:o.push(...Qn))),f}catch(y){jv(y)}finally{fn=e,Yn=i,Qn=o,Et=n,ls=s,No=l,bl(d),Gn=a,t.f^=2097152}}function a0(t,e){let i=e.reactions;if(i!==null){var o=fv.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&&(fn===null||!fn.includes(e))&&(cn(e,4096),(e.f&768)===0&&(e.f^=512),dc(e),Pl(e,0))}function Pl(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)a0(t,i[o])}function Ua(t){var e=t.f;if((e&16384)===0){cn(t,1024);var i=vt,o=Js;if(vt=t,Js=!0,Le){var n=Kn;$l(t.component_function)}try{(e&16)!==0?Kv(t):op(t),ip(t);var s=cc(t);if(t.teardown=typeof s=="function"?s:null,t.wv=Jv,Le&&Qr&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=xl(),l.set_during_effect=!1);Le&&Vl.push(t)}finally{Js=o,vt=i,Le&&$l(n)}}}function Zv(){console.error("Last ten effects were: ",Vl.slice(-10).map(t=>t.fn)),Vl=[]}function l0(){try{xv()}catch(t){if(Le&&eo(t,"stack",{value:""}),Ka!==null)if(Le)try{Ml(t,Ka)}catch(e){throw Zv(),e}else Ml(t,Ka);else throw Le&&Zv(),t}}function dp(){var t=Js;try{var e=0;for(Js=!0;Ll.length>0;){e++>1e3&&l0();var i=Ll,o=i.length;Ll=[];for(var n=0;n<o;n++){var s=c0(i[n]);d0(s)}Ha.clear()}}finally{Xs=!1,Js=t,Ka=null,Le&&(Vl=[])}}function d0(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&Gs(o)&&(Ua(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?rp(o):o.fn=null))}}function Sl(t){Xs||(Xs=!0,queueMicrotask(dp));for(var e=Ka=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Ll.push(e)}function c0(t){for(var e=[],i=t;i!==null;){var o=i.f,n=(o&96)!==0,s=n&&(o&1024)!==0;if(!s&&(o&8192)===0){(o&4)!==0?e.push(i):n?i.f^=1024:Gs(i)&&Ua(i);var l=i.first;if(l!==null){i=l;continue}}var d=i.parent;for(i=i.next;i===null&&d!==null;)i=d.next,d=d.parent}return e}function qa(t){var e;for(t&&(Xs=!0,dp(),Xs=!0,e=t());;){if(Gv(),Ll.length===0)return Xs=!1,Ka=null,Le&&(Vl=[]),e;Xs=!0,dp()}}async function bo(){await Promise.resolve(),qa()}function r(t){var e=t.f,i=(e&2)!==0;if(yc!==null&&yc.add(t),Et!==null&&!Gn){if(!(No!=null&&No[1].includes(t))||No[0]!==Et){var o=Et.deps;t.rv<$c&&(t.rv=$c,fn===null&&o!==null&&o[Yn]===t?Yn++:fn===null?fn=[t]:(!ls||!fn.includes(t))&&fn.push(t))}}else if(i&&t.deps===null&&t.effects===null){var n=t,s=n.parent;s!==null&&(s.f&256)===0&&(n.f^=256)}if(i&&(n=t,Gs(n)&&Xu(n)),Le&&Qr&&!Gn&&_l!==null&&Et!==null&&_l.reaction===Et)if(t.trace)t.trace();else{var l=ss("TracedAt");if(l){var d=_l.entries.get(t);d===void 0&&(d={traces:[]},_l.entries.set(t,d));var a=d.traces[d.traces.length-1];l.stack!==(a==null?void 0:a.stack)&&d.traces.push(l)}}return as&&Ha.has(t)?Ha.get(t):t.v}function Ct(t){var e=Gn;try{return Gn=!0,t()}finally{Gn=e}}var u0=-7169;function cn(t,e){t.f=t.f&u0|e}function wc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Lo in t)xc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Lo in i&&xc(i)}}}function xc(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{xc(t[o],e)}catch(n){}let i=Ws(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=nc(i);for(let n in o){let s=o[n].get;if(s)try{s.call(t)}catch(l){}}}}}function cp(t,e){if(e){let i=document.body;t.autofocus=!0,pn(()=>{document.activeElement===i&&t.focus()})}}function Rl(t){var e=Et,i=vt;Oi(null),to(null);try{return t()}finally{Oi(e),to(i)}}var up=new Set,Sc=new Set;function ea(t){if(!Ye)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function pp(t,e,i,o={}){function n(s){if(o.capture||Qa.call(e,s),!s.cancelBubble)return Rl(()=>i==null?void 0:i.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?pn(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function xt(t,e,i,o,n){var s={capture:o,passive:n},l=pp(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Vo(()=>{e.removeEventListener(t,l,s)})}function at(t){for(var e=0;e<t.length;e++)up.add(t[e]);for(var i of Sc)i(t)}function Qa(t){var E;var e=this,i=e.ownerDocument,o=t.type,n=((E=t.composedPath)==null?void 0:E.call(t))||[],s=n[0]||t.target,l=0,d=t.__root;if(d){var a=n.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var u=n.indexOf(e);if(u===-1)return;a<=u&&(l=a)}if(s=n[l]||t.target,s!==e){eo(t,"currentTarget",{configurable:!0,get(){return s||i}});var f=Et,v=vt;Oi(null),to(null);try{for(var p,b=[];s!==null;){var x=s.assignedSlot||s.parentNode||s.host||null;try{var y=s["__"+o];if(y!=null&&(!s.disabled||t.target===s))if(zn(y)){var[C,...T]=y;C.apply(s,[t,...T])}else y.call(s,t)}catch(M){p?b.push(M):p=M}if(t.cancelBubble||x===e||x===null)break;s=x}if(p){for(let M of b)queueMicrotask(()=>{throw M});throw p}}finally{t.__root=e,delete t.currentTarget,Oi(f),to(v)}}}var f0;function tg(){f0=void 0}function Ga(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function $o(t,e){var i=vt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function A(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,s=!t.startsWith("<!>");return()=>{if(Ye)return $o(gt,null),gt;n===void 0&&(n=Ga(s?t:"<!>"+t),i||(n=vi(n)));var l=o||Cl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=vi(l),a=l.lastChild;$o(d,a)}else $o(l,l);return l}}function g0(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(Ye)return $o(gt,null),gt;if(!l){var d=Ga(s),a=vi(d);if(n)for(l=document.createDocumentFragment();vi(a);)l.appendChild(vi(a));else l=vi(a)}var u=l.cloneNode(!0);if(n){var f=vi(u),v=u.lastChild;$o(f,v)}else $o(u,u);return u}}function Te(t,e){return g0(t,e,"svg")}function jr(t=""){if(!Ye){var e=un(t+"");return $o(e,e),e}var i=gt;return i.nodeType!==La&&(i.before(i=un()),pi(i)),$o(i,i),i}function Fe(){if(Ye)return $o(gt,null),gt;var t=document.createDocumentFragment(),e=document.createComment(""),i=un();return t.append(e,i),$o(e,i),t}function $(t,e){if(Ye){vt.nodes_end=gt,Hi();return}t!==null&&t.before(e)}var h0=/\r/g;function og(t){t=t.replace(h0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function ng(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var _0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function rg(t){return _0.includes(t)}var b0=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var $0={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 sg(t){var e;return t=t.toLowerCase(),(e=$0[t])!=null?e:t}var T9=[...b0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var y0=["touchstart","touchmove"];function ag(t){return y0.includes(t)}var x0=["$state","$state.raw","$derived","$derived.by"],E9=[...x0,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var w0=["textarea","script","style","title"];function lg(t){return w0.includes(t)}function Cc(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Nl=!0;function Tc(t){Nl=t}function he(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 us(t,e){return dg(t,e)}function mp(t,e){var l;mc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=Ye,n=gt;try{for(var s=vi(i);s&&(s.nodeType!==Wn||s.data!==ws);)s=Bo(s);if(!s)throw Kr;io(!0),pi(s),Hi();let d=dg(t,{...e,anchor:s});if(gt===null||gt.nodeType!==Wn||gt.data!==zs)throw Es(),Kr;return io(!1),d}catch(d){if(d===Kr)return e.recover===!1&&wv(),mc(),Tl(i),io(!1),us(t,e);throw d}finally{io(o),pi(n),tg()}}var Ya=new Map;function dg(t,{target:e,anchor:i,props:o={},events:n,context:s,intro:l=!0}){mc();var d=new Set,a=v=>{for(var p=0;p<v.length;p++){var b=v[p];if(!d.has(b)){d.add(b);var x=ag(b);e.addEventListener(b,Qa,{passive:x});var y=Ya.get(b);y===void 0?(document.addEventListener(b,Qa,{passive:x}),Ya.set(b,1)):Ya.set(b,y+1)}}};a(hl(up)),Sc.add(a);var u=void 0,f=Wv(()=>{var v=i!=null?i:e.appendChild(un());return Ai(()=>{if(s){F({});var p=Vt;p.c=s}n&&(o.$$events=n),Ye&&$o(v,null),Nl=l,u=t(v,o)||{},Nl=!0,Ye&&(vt.nodes_end=gt),s&&U()}),()=>{var x;for(var p of d){e.removeEventListener(p,Qa);var b=Ya.get(p);--b===0?(document.removeEventListener(p,Qa),Ya.delete(p)):Ya.set(p,b)}Sc.delete(a),v!==i&&((x=v.parentNode)==null||x.removeChild(v))}});return fp.set(u,f),u}var fp=new WeakMap;function ta(t,e){let i=fp.get(t);return i?(fp.delete(t),i(e)):(Le&&Bv(),Promise.resolve())}function be(t,e,...i){var o=t,n=se,s;Fi(()=>{n!==(n=e())&&(s&&(Di(s),s=null),Le&&n==null&&Sv(),s=Ai(()=>n(o,...i)))},65536),Ye&&(o=gt)}if(Le){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Ev(e)},set:o=>{i=o}})}};E0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var E0;function Nt(t){Vt===null&&Na("onMount"),qr&&Vt.l!==null?T0(Vt).m.push(t):We(()=>{let e=Ct(t);if(typeof e=="function")return e})}function Xo(t){Vt===null&&Na("onDestroy"),Nt(()=>()=>Ct(t))}function T0(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var cg=new Map;function ug(t,e){var i=cg.get(t);i||(i=new Set,cg.set(t,i)),i.add(e)}function L(t,e,[i,o]=[0,0]){Ye&&i===0&&Hi();var n=t,s=null,l=null,d=Qi,a=i>0?65536:0,u=!1;let f=(p,b=!0)=>{u=!0,v(b,p)},v=(p,b)=>{if(d===(d=p))return;let x=!1;if(Ye&&o!==-1){if(i===0){let C=fc(n);C===ws?o=0:C===Ss?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=Ys(),pi(n),io(!1),x=!0,o=-1)}d?(s?cs(s):b&&(s=Ai(()=>b(n))),l&&xn(l,()=>{l=null})):(l?cs(l):b&&(l=Ai(()=>b(n,[i+1,o]))),s&&xn(s,()=>{s=null})),x&&io(!0)};Fi(()=>{u=!1,e(f),u||v(null,null)},a),Ye&&(n=gt)}function ia(t,e,i){Ye&&Hi();var o=t,n=Qi,s,l=Gr()?hv:Va;Fi(()=>{l(n,n=e())&&(s&&xn(s),s=Ai(()=>i(o)))}),Ye&&(o=gt)}var ks=null;function hp(t){ks=t}function Bl(t,e){return e}function P0(t,e,i,o){for(var n=[],s=e.length,l=0;l<s;l++)_c(e[l].e,n,!0);var d=s>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;Tl(a),a.append(i),o.clear(),Is(t,e[0].prev,e[s-1].next)}sp(n,()=>{for(var u=0;u<s;u++){var f=e[u];d||(o.delete(f.k),Is(t,f.prev,f.next)),Di(f.e,!d)}})}function xi(t,e,i,o,n,s=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var u=t;l=Ye?pi(vi(u)):u.appendChild(un())}Ye&&Hi();var f=null,v=!1,p=Pr(()=>{var b=i();return zn(b)?b:b==null?[]:hl(b)});Fi(()=>{var b=r(p),x=b.length;if(v&&x===0)return;v=x===0;let y=!1;if(Ye){var C=fc(l)===Ss;C!==(x===0)&&(l=Ys(),pi(l),io(!1),y=!0)}if(Ye){for(var T=null,E,M=0;M<x;M++){if(gt.nodeType===Wn&&gt.data===zs){l=gt,y=!0,io(!1);break}var k=b[M],I=o(k,M);E=mg(gt,d,T,null,k,I,M,n,e,i),d.items.set(I,E),T=E}x>0&&pi(Ys())}Ye||A0(b,d,l,n,e,o,i),s!==null&&(x===0?f?cs(f):f=Ai(()=>s(l)):f!==null&&xn(f,()=>{f=null})),y&&io(!0),r(p)}),Ye&&(l=gt)}function A0(t,e,i,o,n,s,l){var oe,we,Ie,pe;var d=(n&8)!==0,a=(n&3)!==0,u=t.length,f=e.items,v=e.first,p=v,b,x=null,y,C=[],T=[],E,M,k,I;if(d)for(I=0;I<u;I+=1)E=t[I],M=s(E,I),k=f.get(M),k!==void 0&&((oe=k.a)==null||oe.measure(),(y!=null?y:y=new Set).add(k));for(I=0;I<u;I+=1){if(E=t[I],M=s(E,I),k=f.get(M),k===void 0){var N=p?p.e.nodes_start:i;x=mg(N,e,x,x===null?e.first:x.next,E,M,I,o,n,l),f.set(M,x),C=[],T=[],p=x.next;continue}if(a&&M0(k,E,I,n),(k.e.f&8192)!==0&&(cs(k.e),d&&((we=k.a)==null||we.unfix(),(y!=null?y:y=new Set).delete(k))),k!==p){if(b!==void 0&&b.has(k)){if(C.length<T.length){var Y=T[0],D;x=Y.prev;var H=C[0],W=C[C.length-1];for(D=0;D<C.length;D+=1)pg(C[D],Y,i);for(D=0;D<T.length;D+=1)b.delete(T[D]);Is(e,H.prev,W.next),Is(e,x,H),Is(e,W,Y),p=Y,x=W,I-=1,C=[],T=[]}else b.delete(k),pg(k,p,i),Is(e,k.prev,k.next),Is(e,k,x===null?e.first:x.next),Is(e,x,k),x=k;continue}for(C=[],T=[];p!==null&&p.k!==M;)(p.e.f&8192)===0&&(b!=null?b:b=new Set).add(p),T.push(p),p=p.next;if(p===null)continue;k=p}C.push(k),x=k,p=k.next}if(p!==null||b!==void 0){for(var ee=b===void 0?[]:hl(b);p!==null;)(p.e.f&8192)===0&&ee.push(p),p=p.next;var K=ee.length;if(K>0){var de=(n&4)!==0&&u===0?i:null;if(d){for(I=0;I<K;I+=1)(Ie=ee[I].a)==null||Ie.measure();for(I=0;I<K;I+=1)(pe=ee[I].a)==null||pe.fix()}P0(e,ee,de,f)}}d&&pn(()=>{var le;if(y!==void 0)for(k of y)(le=k.a)==null||le.apply()}),vt.first=e.first&&e.first.e,vt.last=x&&x.e}function M0(t,e,i,o){(o&1)!==0&&Fa(t.v,e),(o&2)!==0?Fa(t.i,i):t.i=i}function mg(t,e,i,o,n,s,l,d,a,u){var f=ks,v=(a&1)!==0,p=(a&16)===0,b=v?p?Yr(n,!1,!1):pr(n):n,x=(a&2)===0?l:pr(l);Le&&v&&(b.trace=()=>{var C=typeof x=="number"?l:x.v;u()[C]});var y={i:x,v:b,k:s,a:null,e:null,prev:i,next:o};ks=y;try{return y.e=Ai(()=>d(t,b,x,u),Ye),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{ks=f}}function pg(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,s=t.e.nodes_start;s!==o;){var l=Bo(s);n.before(s),s=l}}function Is(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 L0(t,e,i){var s,l;if(!e||e===og(String(i!=null?i:"")))return;let o,n=(s=t.__svelte_meta)==null?void 0:s.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(l=Kn)!=null&&l[_n]&&(o=`in ${Kn[_n]}`),Nv(Cc(o))}function Ol(t,e,i=!1,o=!1,n=!1){var s=t,l="";O(()=>{var b;var d=vt;if(l===(l=(b=e())!=null?b:"")){Ye&&Hi();return}if(d.nodes_start!==null&&(np(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(Ye){for(var a=gt.data,u=Hi(),f=u;u!==null&&(u.nodeType!==Wn||u.data!=="");)f=u,u=Bo(u);if(u===null)throw Es(),Kr;Le&&!n&&L0(u.parentNode,a,l),$o(gt,f),s=pi(u);return}var v=l+"";i?v=`<svg>${v}</svg>`:o&&(v=`<math>${v}</math>`);var p=Ga(v);if((i||o)&&(p=vi(p)),$o(vi(p),p.lastChild),i||o)for(;vi(p);)s.before(vi(p));else s.before(p)}})}function wi(t,e,i){Ye&&Hi();var o=t,n,s;Fi(()=>{n!==(n=e())&&(s&&(xn(s),s=null),n&&(s=Ai(()=>i(o,n))))},65536),Ye&&(o=gt)}function oa(t,e,i,o,n,s){var x;let l=Ye;Ye&&Hi();var d=Le&&s&&((x=Vt)==null?void 0:x.function[_n]),a,u,f=null;Ye&&gt.nodeType===sc&&(f=gt,Hi());var v=Ye?gt:t,p,b=ks;Fi(()=>{let y=e()||null;var C=n?n():i||y==="svg"?ic:null;if(y!==a){var T=ks;hp(b),p&&(y===null?xn(p,()=>{p=null,u=null}):y===u?cs(p):(Di(p),Tc(!1))),y&&y!==u&&(p=Ai(()=>{if(f=Ye?f:C?document.createElementNS(C,y):document.createElement(y),Le&&s&&(f.__svelte_meta={loc:{file:d,line:s[0],column:s[1]}}),$o(f,f),o){Ye&&lg(y)&&f.append(document.createComment(""));var E=Ye?vi(f):f.appendChild(un());Ye&&(E===null?io(!1):pi(E)),o(f,E)}vt.nodes_end=f,v.before(f)})),a=y,a&&(u=a),Tc(!0),hp(T)}},65536),l&&(io(!0),pi(v))}var bp;function vg(t){return bp=t.target,new _p(t)}var ps,fr,_p=class{constructor(e){xs(this,ps);xs(this,fr);var s,l;var i=new Map,o=(d,a)=>{var u=Yr(a,!1,!1);return i.set(d,u),u};let n=new Proxy({...e.props||{},$$events:{}},{get(d,a){var u;return r((u=i.get(a))!=null?u:o(a,Reflect.get(d,a)))},has(d,a){var u;return a===Ma?!0:(r((u=i.get(a))!=null?u:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,u){var f;return B((f=i.get(a))!=null?f:o(a,u),u),Reflect.set(d,a,u)}});Aa(this,fr,(e.hydrate?mp:us)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(s=e.intro)!=null?s:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&qa(),Aa(this,ps,n.$$events);for(let d of Object.keys(Pi(this,fr)))d==="$set"||d==="$destroy"||d==="$on"||eo(this,d,{get(){return Pi(this,fr)[d]},set(a){Pi(this,fr)[d]=a},enumerable:!0});Pi(this,fr).$set=d=>{Object.assign(n,d)},Pi(this,fr).$destroy=()=>{ta(Pi(this,fr))}}$set(e){Pi(this,fr).$set(e)}$on(e,i){Pi(this,ps)[e]=Pi(this,ps)[e]||[];let o=(...n)=>i.call(this,...n);return Pi(this,ps)[e].push(o),()=>{Pi(this,ps)[e]=Pi(this,ps)[e].filter(n=>n!==o)}}$destroy(){Pi(this,fr).$destroy()}};ps=new WeakMap,fr=new WeakMap;function q(t,e){pn(()=>{var n,s,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(s=bp)==null?void 0:s.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Le&&ug(e.hash,d)}})}function $p(t,e){var i=void 0,o;Fi(()=>{i!==(i=e())&&(o&&(Di(o),o=null),i&&(o=Ai(()=>{_o(()=>i(t))})))})}function gg(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=gg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function hg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=gg(t))&&(o&&(o+=" "),o+=e);return o}function Dl(t){return typeof t=="object"?hg(t):t!=null?t:""}var _g=[...`
44
- \r\f\xA0\v\uFEFF`];function $g(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var s=n.length,l=0;(l=o.indexOf(n,l))>=0;){var d=l+s;(l===0||_g.includes(o[l-1]))&&(d===o.length||_g.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function bg(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var s=t[n];s!=null&&s!==""&&(o+=" "+n+": "+s+i)}return o}function yp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function yg(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var s=!1,l=0,d=!1,a=[];o&&a.push(...Object.keys(o).map(yp)),n&&a.push(...Object.keys(n).map(yp));var u=0,f=-1;let y=t.length;for(var v=0;v<y;v++){var p=t[v];if(d?p==="/"&&t[v-1]==="*"&&(d=!1):s?s===p&&(s=!1):p==="/"&&t[v+1]==="*"?d=!0:p==='"'||p==="'"?s=p:p==="("?l++:p===")"&&l--,!d&&s===!1&&l===0){if(p===":"&&f===-1)f=v;else if(p===";"||v===y-1){if(f!==-1){var b=yp(t.substring(u,f).trim());if(!a.includes(b)){p!==";"&&v++;var x=t.substring(u,v).trim();i+=" "+x+";"}}u=v+1,f=-1}}}}return o&&(i+=bg(o)),n&&(i+=bg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function J(t,e,i,o,n,s){var l=t.__className;if(Ye||l!==i||l===void 0){var d=$g(i,o,s);(!Ye||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(s&&n!==s)for(var a in s){var u=!!s[a];(n==null||u!==!!n[a])&&t.classList.toggle(a,u)}return s}function xp(t,e={},i,o){for(var n in i){var s=i[n];e[n]!==s&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,s,o))}}function it(t,e,i,o){var n=t.__style;if(Ye||n!==e){var s=yg(e,o);(!Ye||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}else o&&(Array.isArray(o)?(xp(t,i==null?void 0:i[0],o[0]),xp(t,i==null?void 0:i[1],o[1],"important")):xp(t,i,o));return o}function Hl(t,e,i){if(t.multiple){if(e==null)return;if(!zn(e))return Ov();for(var o of t.options)o.selected=e.includes(xg(o));return}for(o of t.options){var n=xg(o);if(Qu(n,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function wp(t){var e=new MutationObserver(()=>{Hl(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Vo(()=>{e.disconnect()})}function xg(t){return"__value"in t?t.__value:t.value}var ja=Symbol("class"),Za=Symbol("style"),Cg=Symbol("is custom element"),Tg=Symbol("is html");function Eg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Oe(t,e,i,o){var n=kg(t);if(Ye&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||F0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[gv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Pg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Ig(t,e,i,o,n=!1){var k;var s=kg(t),l=s[Cg],d=!s[Tg];let a=Ye&&l;a&&io(!1);var u=e||{},f=t.tagName==="OPTION";for(var v in e)v in i||(i[v]=null);i.class?i.class=Dl(i.class):(o||i[ja])&&(i.class=null),i[Za]&&((k=i.style)!=null||(i.style=null));var p=Pg(t);for(let I in i){let N=i[I];if(f&&I==="value"&&N==null){t.value=t.__value="",u[I]=N;continue}if(I==="class"){var b=t.namespaceURI==="http://www.w3.org/1999/xhtml";J(t,b,N,o,e==null?void 0:e[ja],i[ja]),u[I]=N,u[ja]=i[ja];continue}if(I==="style"){it(t,N,e==null?void 0:e[Za],i[Za]),u[I]=N,u[Za]=i[Za];continue}var x=u[I];if(!(N===x&&!(N===void 0&&t.hasAttribute(I)))){u[I]=N;var y=I[0]+I[1];if(y!=="$$")if(y==="on"){let Y={},D="$$"+I,H=I.slice(2);var C=rg(H);if(ng(H)&&(H=H.slice(0,-7),Y.capture=!0),!C&&x){if(N!=null)continue;t.removeEventListener(H,u[D],Y),u[D]=null}if(N!=null)if(C)t[`__${H}`]=N,at([H]);else{let W=function(ee){u[I].call(this,ee)};var M=W;u[D]=pp(H,t,W,Y)}else C&&(t[`__${H}`]=void 0)}else if(I==="style")Oe(t,I,N);else if(I==="autofocus")cp(t,!!N);else if(!l&&(I==="__value"||I==="value"&&N!=null))t.value=t.__value=N;else if(I==="selected"&&f)Eg(t,N);else{var T=I;d||(T=sg(T));var E=T==="defaultValue"||T==="defaultChecked";if(N==null&&!l&&!E)if(s[I]=null,T==="value"||T==="checked"){let Y=t,D=e===void 0;if(T==="value"){let H=Y.defaultValue;Y.removeAttribute(T),Y.defaultValue=H,Y.value=Y.__value=D?H:null}else{let H=Y.defaultChecked;Y.removeAttribute(T),Y.defaultChecked=H,Y.checked=D?H:!1}}else t.removeAttribute(I);else E||p.includes(T)&&(l||typeof N!="string")?t[T]=N:typeof N!="function"&&Oe(t,T,N,n)}}}return a&&io(!0),u}function Me(t,e,i=[],o,n=!1,s=kr){let l=i.map(s);var d=void 0,a={},u=t.nodeName==="SELECT",f=!1;if(Fi(()=>{var p=e(...l.map(r)),b=Ig(t,d,p,o,n);f&&u&&"value"in p&&Hl(t,p.value,!1);for(let y of Object.getOwnPropertySymbols(a))p[y]||Di(a[y]);for(let y of Object.getOwnPropertySymbols(p)){var x=p[y];y.description===Du&&(!d||x!==d[y])&&(a[y]&&Di(a[y]),a[y]=Ai(()=>$p(t,()=>x))),b[y]=x}d=b}),u){var v=t;_o(()=>{Hl(v,d.value),wp(v)})}f=!0}function kg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Cg]:t.nodeName.includes("-"),[Tg]:t.namespaceURI===dv}}var wg=new Map;function Pg(t){var e=wg.get(t.nodeName);if(e)return e;wg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=nc(o);for(var s in i)i[s].set&&e.push(s);o=Ws(o)}return e}function F0(t,e,i){var o;Le&&(e==="srcset"&&U0(t,i)||Sp((o=t.getAttribute(e))!=null?o:"",i)||Rv(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 Sg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function U0(t,e){var i=Sg(t.srcset),o=Sg(e);return o.length===i.length&&o.every(([n,s],l)=>s===i[l][1]&&(Sp(i[l][0],n)||Sp(n,i[l][0])))}var z0=oc?()=>performance.now():()=>Date.now(),Lr={tick:t=>(oc?requestAnimationFrame:se)(t),now:()=>z0(),tasks:new Set};function Ag(){let t=Lr.now();Lr.tasks.forEach(e=>{e.c(t)||(Lr.tasks.delete(e),e.f())}),Lr.tasks.size!==0&&Lr.tick(Ag)}function Mg(t){let e;return Lr.tasks.size===0&&Lr.tick(Ag),{promise:new Promise(i=>{Lr.tasks.add(e={c:t,f:i})}),abort(){Lr.tasks.delete(e)}}}function Ec(t,e){Rl(()=>{t.dispatchEvent(new CustomEvent(e))})}function Q0(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 Lg(t){let e={},i=t.split(";");for(let o of i){let[n,s]=o.split(":");if(!n||s===void 0)break;let l=Q0(n.trim());e[l]=s.trim()}return e}var G0=t=>t;function Tp(t,e,i,o){var M;var n=(t&1)!==0,s=(t&2)!==0,l=n&&s,d=(t&4)!==0,a=l?"both":n?"in":"out",u,f=e.inert,v=e.style.overflow,p,b;function x(){var N;var k=Et,I=vt;Oi(null),to(null);try{return u!=null?u:u=i()(e,(N=o==null?void 0:o())!=null?N:{},{direction:a})}finally{Oi(k),to(I)}}var y={is_global:d,in(){var k;if(e.inert=f,!n){b==null||b.abort(),(k=b==null?void 0:b.reset)==null||k.call(b);return}s||p==null||p.abort(),Ec(e,"introstart"),p=Cp(e,x(),b,1,()=>{Ec(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=v})},out(k){if(!s){k==null||k(),u=void 0;return}e.inert=!0,Ec(e,"outrostart"),b=Cp(e,x(),p,0,()=>{Ec(e,"outroend"),k==null||k()})},stop:()=>{p==null||p.abort(),b==null||b.abort()}},C=vt;if(((M=C.transitions)!=null?M:C.transitions=[]).push(y),n&&Nl){var T=d;if(!T){for(var E=C.parent;E&&(E.f&65536)!==0;)for(;(E=E.parent)&&(E.f&16)===0;);T=!E||(E.f&32768)!==0}T&&_o(()=>{Ct(()=>y.in())})}}function Cp(t,e,i,o,n){var s=o===1;if(Cs(e)){var l,d=!1;return pn(()=>{if(!d){var C=e({direction:s?"in":"out"});l=Cp(t,C,i,o,n)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:se,deactivate:se,reset:se,t:()=>o};let{delay:a=0,css:u,tick:f,easing:v=G0}=e;var p=[];if(s&&i===void 0&&(f&&f(0,1),u)){var b=Lg(u(0,1));p.push(b,b)}var x=()=>1-o,y=t.animate(p,{duration:a,fill:"forwards"});return y.onfinish=()=>{var H;y.cancel();var C=(H=i==null?void 0:i.t())!=null?H:1-o;i==null||i.abort();var T=o-C,E=e.duration*Math.abs(T),M=[];if(E>0){var k=!1;if(u)for(var I=Math.ceil(E/16.666666666666668),N=0;N<=I;N+=1){var Y=C+T*v(N/I),D=Lg(u(Y,1-Y));M.push(D),k||(k=D.overflow==="hidden")}k&&(t.style.overflow="hidden"),x=()=>{var W=y.currentTime;return C+T*v(W/E)},f&&Mg(()=>{if(y.playState!=="running")return!1;var W=x();return f(W,1-W),!0})}y=t.animate(M,{duration:E,fill:"forwards"}),y.onfinish=()=>{x=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=se)},deactivate:()=>{n=se},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>x()}}var Ps,Xa,Fl,kc,Vg,Pc=class Pc{constructor(e){xs(this,kc);xs(this,Ps,new WeakMap);xs(this,Xa);xs(this,Fl);Aa(this,Fl,e)}observe(e,i){var o=Pi(this,Ps).get(e)||new Set;return o.add(i),Pi(this,Ps).set(e,o),av(this,kc,Vg).call(this).observe(e,Pi(this,Fl)),()=>{var n=Pi(this,Ps).get(e);n.delete(i),n.size===0&&(Pi(this,Ps).delete(e),Pi(this,Xa).unobserve(e))}}};Ps=new WeakMap,Xa=new WeakMap,Fl=new WeakMap,kc=new WeakSet,Vg=function(){var e;return(e=Pi(this,Xa))!=null?e:Aa(this,Xa,new ResizeObserver(i=>{for(var o of i){Pc.entries.set(o.target,o);for(var n of Pi(this,Ps).get(o.target)||[])n(o)}}))},Un(Pc,"entries",new WeakMap);var Ep=Pc;var Y0=new Ep({box:"border-box"});function Zr(t,e,i){var o=Y0.observe(t,()=>i(t[e]));_o(()=>(Ct(()=>i(t[e])),o))}function Rg(t,e){return t===e||(t==null?void 0:t[Lo])===e}function et(t={},e,i,o){return _o(()=>{var n,s;return Oo(()=>{n=s,s=(o==null?void 0:o())||[],Ct(()=>{t!==i(...s)&&(e(t,...s),n&&Rg(i(...n),t)&&e(null,...n))})}),()=>{pn(()=>{s&&Rg(i(...s),t)&&e(null,...s)})}}),t}function Vr(t=!1){let e=Vt,i=e.l.u;if(!i)return;let o=()=>wc(e.s);if(t){let n=0,s={},l=kr(()=>{let d=!1,a=e.s;for(let u in a)a[u]!==s[u]&&(s[u]=a[u],d=!0);return d&&n++,n});o=()=>r(l)}i.b.length&&kl(()=>{Ng(e,o),Ts(i.b)}),We(()=>{let n=Ct(()=>i.m.map(vv));return()=>{for(let s of n)typeof s=="function"&&s()}}),i.a.length&&We(()=>{Ng(e,o),Ts(i.a)})}function Ng(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}function Ul(t,e,i){if(t==null)return e(void 0),i&&i(void 0),se;let o=Ct(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Ja=[];function mr(t,e){return{subscribe:ae(t,e).subscribe}}function ae(t,e=se){let i=null,o=new Set;function n(d){if(Va(t,d)&&(t=d,i)){let a=!Ja.length;for(let u of o)u[1](),Ja.push(u,t);if(a){for(let u=0;u<Ja.length;u+=2)Ja[u][0](Ja[u+1]);Ja.length=0}}}function s(d){n(d(t))}function l(d,a=se){let u=[d,a];return o.add(u),o.size===1&&(i=e(n,s)||se),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:n,update:s,subscribe:l}}function gi(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let s=e.length<2;return mr(i,(l,d)=>{let a=!1,u=[],f=0,v=se,p=()=>{if(f)return;v();let x=e(o?u[0]:u,l,d);s?l(x):v=typeof x=="function"?x:se},b=n.map((x,y)=>Ul(x,C=>{u[y]=C,f&=~(1<<y),a&&p()},()=>{f|=1<<y}));return a=!0,p(),function(){Ts(b),v(),a=!1}})}function ye(t){let e;return Ul(t,i=>e=i)(),e}var Ac=!1,Ip=Symbol();function S(t,e,i){var s;let o=(s=i[e])!=null?s:i[e]={store:null,source:Yr(void 0),unsubscribe:se};if(o.store!==t&&!(Ip in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=se;else{var n=!0;o.unsubscribe=Ul(t,l=>{n?o.source.v=l:B(o.source,l)}),n=!1}return t&&Ip in i?ye(t):r(o.source)}function Be(){let t={};function e(){Vo(()=>{for(var i in t)t[i].unsubscribe();eo(t,Ip,{enumerable:!1,value:!0})})}return[t,e]}function kp(t){var e=Ac;try{return Ac=!1,[t(),Ac]}finally{Ac=e}}var i_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Le&&Tv(`${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 Ve(t,e,i){return new Proxy(Le?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},i_)}var o_={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 s=Yo(n,e);if(s&&s.set)return s.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Cs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Yo(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Lo||e===Ma)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)if(Cs(i)&&(i=i()),!!i){for(let o in i)e.includes(o)||e.push(o);for(let o of Object.getOwnPropertySymbols(i))e.includes(o)||e.push(o)}return e}};function fs(...t){return new Proxy({props:t},o_)}function Bg(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function m(t,e,i,o){var Y,D;var n=(i&1)!==0,s=!qr||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,u;l?[u,a]=kp(()=>t[e]):u=t[e];var f=Lo in t||Ma in t,v=l&&((D=(Y=Yo(t,e))==null?void 0:Y.set)!=null?D:f&&e in t&&(H=>t[e]=H))||void 0,p=o,b=!0,x=!1,y=()=>(x=!0,b&&(b=!1,d?p=Ct(o):p=o),p);u===void 0&&o!==void 0&&(v&&s&&Cv(e),u=y(),v&&v(u));var C;if(s)C=()=>{var H=t[e];return H===void 0?y():(b=!0,x=!1,H)};else{var T=(n?kr:Pr)(()=>t[e]);T.f|=131072,C=()=>{var H=r(T);return H!==void 0&&(p=void 0),H===void 0?p:H}}if((i&4)===0&&s)return C;if(v){var E=t.$$legacy;return function(H,W){return arguments.length>0?((!s||!W||E||a)&&v(W?C():H),H):C()}}var M=!1,k=!1,I=Yr(u),N=kr(()=>{var H=C(),W=r(I);return M?(M=!1,k=!0,W):(k=!1,I.v=H)});return l&&r(N),n||(N.equals=Ra),function(H,W){if(yc!==null&&(M=k,C(),r(I)),arguments.length>0){let ee=W?r(N):s&&l?ii(H):H;if(!N.equals(ee)){if(M=!0,B(I,ee),x&&p!==void 0&&(p=ee),Bg(N))return H;Ct(()=>r(N))}return H}return Bg(N)?N.v:r(N)}}var n_;typeof HTMLElement=="function"&&(n_=class extends HTMLElement{constructor(e,i,o){super();Un(this,"$$ctor");Un(this,"$$s");Un(this,"$$c");Un(this,"$$cn",!1);Un(this,"$$d",{});Un(this,"$$r",!1);Un(this,"$$p_d",{});Un(this,"$$l",{});Un(this,"$$l_u",new Map);Un(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(s){return l=>{let d=document.createElement("slot");s!=="default"&&(d.name=s),$(l,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=r_(this);for(let s of this.$$s)s in n&&(s==="default"&&!this.$$d.children?(this.$$d.children=i(s),o.default=!0):o[s]=i(s));for(let s of this.attributes){let l=this.$$g_p(s.name);l in this.$$d||(this.$$d[l]=Pp(l,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=vg({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=hc(()=>{Oo(()=>{var s;this.$$r=!0;for(let l of Hu(this.$$c)){if(!((s=this.$$p_d[l])!=null&&s.reflect))continue;this.$$d[l]=this.$$c[l];let d=Pp(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let s in this.$$l)for(let l of this.$$l[s]){let d=this.$$c.$on(s,l);this.$$l_u.set(l,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=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 Hu(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 s;let n=(s=i[t])==null?void 0:s.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function r_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Og="5";var Dg,Hg,Fg;typeof window!="undefined"&&((Fg=(Hg=(Dg=window.__svelte)!=null?Dg:window.__svelte={}).v)!=null?Fg:Hg.v=new Set).add(Og);import{areValidLiveRecordSources as Kx,clientChecker as qm}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-core/es2018";import{noop as H1,safeStorage as qx,throttleFn as Qx}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as Gx}from"@vkontakte/videoplayer-statistics/es2018";import{InterfaceLanguage as s_,fillWithDefault as a_,VideoQuality as Ug}from"@vkontakte/videoplayer-shared/es2018";var l_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:s_.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:Ug.Q_480P,highQualityLimit:Ug.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null}},zg=t=>a_(t,l_),Wg=t=>Oa("ui-config",t),Ft=()=>Ba("ui-config");var zl="vk_player_debug_panel_opened";var Kg="videoplayer",qg="videoplayer";var Xr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Qg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Gg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Yg=new Set(["ShiftRight","ShiftLeft"]);var jg=["TIMELINE"],Wl=[...jg,"GRAPH_BUTTON"],Ap=[...jg,"PLAY_BUTTON"],Kl=[...Wl,"PLAY_BUTTON"];var Jr=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(Jr||{}),ra={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Zg,VERSION as d_}from"@vkontakte/videoplayer-shared/es2018";import{VERSION as c_}from"@vkontakte/videoplayer-core/es2018";import{VERSION as u_}from"@vkontakte/videoplayer-statistics/es2018";var Mc="prod",el="1.1.68-dev.a67b8dbc.0";var sa=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Xg=Symbol("storeContext"),Jg=Symbol("microStoresContext"),eh=(t,e)=>{Oa(Xg,t),Oa(Jg,e),Mc==="dev"&&(window.app={store:t,microStores:e})},ke=()=>{let t=Ba(Xg);return Zg(t,"Store context is empty!"),t},co=()=>{let t=Ba(Jg);return Zg(t,"MicroStores context is empty!"),t},Jt=(t,e)=>Vc(t,t.getValue(),e),Vc=(t,e,i)=>mr(e,o=>{let n=t.subscribe(s=>{o(s),i==null||i(s)});return()=>n.unsubscribe()}),th=(t,e,i,o)=>{var N,Y,D,H,W,ee,K,de;let n=t.info,{width:s,height:l}=ye(i.ui.playerSize),d=(Y=(N=n.throughputEstimation$.getValue())==null?void 0:N.toFixed(0))!=null?Y:0,a=(H=(D=n.rttEstimation$.getValue())==null?void 0:D.toFixed(0))!=null?H:0,u=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${el} (core: ${c_}, stat: ${u_}, shared: ${d_})`,v=ye(i.state.errorLog$),p=v.length?`
45
- `+v.map((oe,we)=>{var Ae;let Ie=`${we}) Type: ${oe.id}
46
- `,pe=`Message: ${oe.message} (${oe.thrown})
47
- `,le=`Trace: ${(Ae=oe.thrown)==null?void 0:Ae.stack}
48
- `;return Ie+pe+le}).join(`
49
- `):void 0,b=i.state.isAudioDisabled?"disabled":ye(i.state.isAudioAvailable$)?void 0:"unavailable",x=t.info.currentVideoStream$.getValue(),y=t.info.currentAudioStream$.getValue(),C=[];x&&C.push(`Video: ${(W=x==null?void 0:x.codec)!=null?W:""}`+(x!=null&&x.hdr?" (HDR)":"")),y&&C.push(`Audio: ${(ee=y==null?void 0:y.codec)!=null?ee:""}`+(y!=null&&y.language?` (${y.language})`:""));let T=n.currentQuality$.getValue(),E="";if(T){let oe=n.availableQualitiesFps$.getValue()[T];E=oe?`${oe}fps`:""}let M=(de=(K=n.currentBuffer$.getValue())==null?void 0:K.end)!=null?de:0,k=Math.max(M-ye(i.state.positionExact$),0),I={Version:f,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:ye(i.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${d}Kbps @ ${a}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:C.join(", "),Quality:`${u} ${T} ${E}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:b,Position:`${ye(i.state.positionExact$)}s`,Buffer:`${k}s`,State:`${ye(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${s}x${l}`,URL:window.location.href,Errors:p};return Object.entries(I).filter(([oe,we])=>we!==void 0).map(([oe,we])=>`${oe}: ${we}`).join(`
50
- `)},ih=(t,e,i)=>{var Y,D,H,W;let o=t.info,{width:n,height:s}=ye(i.ui.playerSize),l={version:el,viewport:`${n}x${s}`,volume:Math.round(ye(i.state.volume$)*100)};l.id=i.videoId,o.currentFormat$.getValue()&&(l.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(l.cdn=o.hostname$.getValue());let u=o.intrinsicVideoSize$.getValue();u&&(l.videoSize=`${u.width}x${u.height}`);let f=o.currentBuffer$.getValue(),v=o.isLive$.getValue(),p=o.liveBufferTime$.getValue();f&&(v&&p?l.buffer=f.end-p:l.buffer=Math.max(f.end-ye(i.state.positionExact$),0)),l.position=ye(i.state.positionExact$);let b=o.throughputEstimation$.getValue();b&&(l.speed=b);let x=o.videoBitrate$.getValue();x&&(l.bitrate=x);let y=o.liveLatency$.getValue();y&&(l.liveLatency=y);let C=o.currentVideoSegmentLength$.getValue();C&&(l.currentVideoSegmentLength=C);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let E=ye(i.vsid);typeof E=="string"&&(l.vsid=E);let M=(Y=t.info.currentVideoStream$.getValue())==null?void 0:Y.codec;M&&(l.videoCodec=M);let k=(D=t.info.currentAudioStream$.getValue())==null?void 0:D.codec;k&&(l.audioCodec=k),((H=t.info.currentVideoStream$.getValue())==null?void 0:H.hdr)&&(l.hdr=!0);let N=(W=t.info.currentAudioStream$.getValue())==null?void 0:W.language;return N&&(l.audioLanguage=N),l},oh=(t,e)=>sa(t,e,"mp4"),nh=t=>!t.type,rh=t=>!!t.type,sh=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},Lc=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 Vp,safeStorage as yo}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-core/es2018";var ah="vk_player_prefer_traffic_saving_enabled",lh="vk_player_preferred_volume",dh="vk_player_prefer_volume_mute",Rp="vk_player_preferred_quality",Mp="vk_player_preferred_default_quality_settings",Lp="vk_player_preferred_quality_settings_by_video",ch="vk_player_preferred_stream_language",uh="vk_player_preferred_rate",ph="vk_player_preferred_autoplay_next",fh=t=>t>1?1:t<0?0:t,Np=t=>yo.set(lh,fh(t).toString(10)),Rc=()=>{let t=yo.get(lh);return Vp(t)?void 0:fh(parseFloat(t))},Bp=(t,e)=>yo.set(Rp,JSON.stringify({videoId:t,value:e})),Ql=()=>yo.remove(Rp),Op=t=>{let e=yo.get(Rp);if(Vp(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Ql();return}return o},Dp=(t,e)=>{e?yo.set(t,"true"):yo.remove(t)},Hp=t=>yo.get(t)==="true",Fp=t=>Dp(dh,t),mh=()=>Hp(dh),ql=t=>Dp(ah,t),Up=()=>Hp(ah),vh=()=>yo.get(ch),zp=t=>yo.set(ch,t),gh=t=>yo.set(uh,JSON.stringify({rate:t})),hh=()=>{let t=yo.get(uh);if(Vp(t))return;let{rate:e}=JSON.parse(t);return e},_h=t=>Dp(ph,t),bh=()=>Hp(ph),p_=()=>{let t=f=>{yo.set(Mp,JSON.stringify(f))},e=()=>{try{let f=yo.get(Mp);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=yo.get(Lp);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{yo.set(Lp,JSON.stringify(f))},n=f=>{u(f);let v=f?i():null;if(v&&(v==null?void 0:v.videoId)===f)return{...v,appliesTo:"to-video"};v&&s();let p=e();return p?{...p,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},s=()=>{yo.remove(Lp)},l=()=>{yo.remove(Mp)},d=(f,v="as-default")=>{f.type==="exact_quality"?o(f):v==="as-default"?t(f):o(f)},a=f=>{let v=n(f);if(v){switch(v.type){case"traffic_saving":ql(!0);break;case"exact_quality":Bp(f,v.quality)}s(),l()}},u=f=>{let v=Op(f);if(v){o({type:"exact_quality",videoId:f,quality:v});return}Up()&&t({type:"traffic_saving",videoId:f}),ql(!1),Ql()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:$h,migrateSettingsToLegacyWay:yh,savePreferredQualitySettings:Nc,savePreferredDefaultQualitySettings:XA,removePreferredQualitySettingsByVideo:JA,getPreferredDefaultQualitySettings:Bc}=p_();import{PlaybackState as B1}from"@vkontakte/videoplayer-core/es2018";var f_=Te('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"></path><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-opacity=".12" stroke-width=".5" d="m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"></path></g><defs><filter id="a" width="75" height="44" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_618_12297"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_618_12297" result="shape"></feBlend></filter></defs></svg>');function Gl(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=f_();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(2),h(o),$(t,o)}import{isNullable as Sh,InterfaceLanguage as Ch}from"@vkontakte/videoplayer-shared/es2018";var m_={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_pip_close:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",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:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_sound_unavailable:"\u0417\u0432\u0443\u043A \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",tooltip_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving:"\u0420\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",aria_label_context_menu:"\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_autoplay:"\u0410\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
43
+ `)})}}var Ys=!1,qa=null,js=!1,ns=!1;function Ju(t){ns=t}var Vl=[],Rl=[],Et=null,Yn=!1;function Bi(t){Et=t}var gt=null;function oo(t){gt=t}var Po=null;function uc(t){Et!==null&&Et.f&2097152&&(Po===null?Po=[Et,[t]]:Po[1].push(t))}var cn=null,jn=0,Gn=null;function Dv(t){Gn=t}var ng=1,$c=0,rs=!1,yc=null;function wl(){return++ng}function qs(t){var v,u;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var n,r,l=(e&512)!==0,d=o&&gt!==null&&!rs,a=i.length;if(l||d){var p=t,f=p.parent;for(n=0;n<a;n++)r=i[n],(l||!((v=r==null?void 0:r.reactions)!=null&&v.includes(p)))&&((u=r.reactions)!=null?u:r.reactions=[]).push(p);l&&(p.f^=512),d&&f!==null&&(f.f&256)===0&&(p.f^=256)}for(n=0;n<a;n++)if(r=i[n],qs(r)&&Xu(r),r.wv>t.wv)return!0}(!o||gt!==null&&!rs)&&an(t,1024)}return!1}function rg(t,e,i=!0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var r=o[n];Po!=null&&Po[1].includes(t)&&Po[0]===Et||((r.f&2)!==0?rg(r,e,!1):e===r&&(i?an(r,2048):(r.f&1024)!==0&&an(r,4096),Sl(r)))}}function cc(t){var $,w;var e=cn,i=jn,o=Gn,n=Et,r=rs,l=Po,d=Lt,a=Yn,p=t.f;cn=null,jn=0,Gn=null,rs=(p&256)!==0&&(Yn||!js||Et===null),Et=(p&96)===0?t:null,Po=null,$l(t.ctx),Yn=!1,$c++,t.f|=2097152;try{var f=(0,t.fn)(),v=t.deps;if(cn!==null){var u;if(Al(t,jn),v!==null&&jn>0)for(v.length=jn+cn.length,u=0;u<cn.length;u++)v[jn+u]=cn[u];else t.deps=v=cn;if(!rs||(p&2)!==0&&t.reactions!==null)for(u=jn;u<v.length;u++)((w=($=v[u]).reactions)!=null?w:$.reactions=[]).push(t)}else v!==null&&jn<v.length&&(Al(t,jn),v.length=jn);if(Qr()&&Gn!==null&&!Yn&&v!==null&&(t.f&6146)===0)for(u=0;u<Gn.length;u++)rg(Gn[u],t);return n!==null&&n!==t&&($c++,Gn!==null&&(o===null?o=Gn:o.push(...Gn))),f}catch(y){tg(y)}finally{cn=e,jn=i,Gn=o,Et=n,rs=r,Po=l,$l(d),Yn=a,t.f^=2097152}}function v0(t,e){let i=e.reactions;if(i!==null){var o=_v.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&&(cn===null||!cn.includes(e))&&(an(e,4096),(e.f&768)===0&&(e.f^=512),dc(e),Al(e,0))}function Al(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)v0(t,i[o])}function Ua(t){var e=t.f;if((e&16384)===0){an(t,1024);var i=gt,o=js;if(gt=t,js=!0,Pe){var n=Kn;yl(t.component_function)}try{(e&16)!==0?jv(t):op(t),ip(t);var r=cc(t);if(t.teardown=typeof r=="function"?r:null,t.wv=ng,Pe&&Kr&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=wl(),l.set_during_effect=!1);Pe&&Rl.push(t)}finally{js=o,gt=i,Pe&&yl(n)}}}function ig(){console.error("Last ten effects were: ",Rl.slice(-10).map(t=>t.fn)),Rl=[]}function g0(){try{Ev()}catch(t){if(Pe&&io(t,"stack",{value:""}),qa!==null)if(Pe)try{Ll(t,qa)}catch(e){throw ig(),e}else Ll(t,qa);else throw Pe&&ig(),t}}function dp(){var t=js;try{var e=0;for(js=!0;Vl.length>0;){e++>1e3&&g0();var i=Vl,o=i.length;Vl=[];for(var n=0;n<o;n++){var r=_0(i[n]);h0(r)}Ha.clear()}}finally{Ys=!1,js=t,qa=null,Pe&&(Rl=[])}}function h0(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&qs(o)&&(Ua(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?rp(o):o.fn=null))}}function Sl(t){Ys||(Ys=!0,queueMicrotask(dp));for(var e=qa=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Vl.push(e)}function _0(t){for(var e=[],i=t;i!==null;){var o=i.f,n=(o&96)!==0,r=n&&(o&1024)!==0;if(!r&&(o&8192)===0){(o&4)!==0?e.push(i):n?i.f^=1024:qs(i)&&Ua(i);var l=i.first;if(l!==null){i=l;continue}}var d=i.parent;for(i=i.next;i===null&&d!==null;)i=d.next,d=d.parent}return e}function Ka(t){var e;for(t&&(Ys=!0,dp(),Ys=!0,e=t());;){if(Jv(),Vl.length===0)return Ys=!1,qa=null,Pe&&(Rl=[]),e;Ys=!0,dp()}}async function ho(){await Promise.resolve(),Ka()}function s(t){var e=t.f,i=(e&2)!==0;if(yc!==null&&yc.add(t),Et!==null&&!Yn){if(!(Po!=null&&Po[1].includes(t))||Po[0]!==Et){var o=Et.deps;t.rv<$c&&(t.rv=$c,cn===null&&o!==null&&o[jn]===t?jn++:cn===null?cn=[t]:(!rs||!cn.includes(t))&&cn.push(t))}}else if(i&&t.deps===null&&t.effects===null){var n=t,r=n.parent;r!==null&&(r.f&256)===0&&(n.f^=256)}if(i&&(n=t,qs(n)&&Xu(n)),Pe&&Kr&&!Yn&&bl!==null&&Et!==null&&bl.reaction===Et)if(t.trace)t.trace();else{var l=os("TracedAt");if(l){var d=bl.entries.get(t);d===void 0&&(d={traces:[]},bl.entries.set(t,d));var a=d.traces[d.traces.length-1];l.stack!==(a==null?void 0:a.stack)&&d.traces.push(l)}}return ns&&Ha.has(t)?Ha.get(t):t.v}function Ct(t){var e=Yn;try{return Yn=!0,t()}finally{Yn=e}}var b0=-7169;function an(t,e){t.f=t.f&b0|e}function wc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Eo in t)xc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Eo in i&&xc(i)}}}function xc(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{xc(t[o],e)}catch(n){}let i=Fs(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=nc(i);for(let n in o){let r=o[n].get;if(r)try{r.call(t)}catch(l){}}}}}function cp(t,e){if(e){let i=document.body;t.autofocus=!0,dn(()=>{document.activeElement===i&&t.focus()})}}function Nl(t){var e=Et,i=gt;Bi(null),oo(null);try{return t()}finally{Bi(e),oo(i)}}var up=new Set,Cc=new Set;function Zs(t){if(!Je)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function pp(t,e,i,o={}){function n(r){if(o.capture||Qa.call(e,r),!r.cancelBubble)return Nl(()=>i==null?void 0:i.call(this,r))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?dn(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Tt(t,e,i,o,n){var r={capture:o,passive:n},l=pp(t,e,i,r);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Io(()=>{e.removeEventListener(t,l,r)})}function dt(t){for(var e=0;e<t.length;e++)up.add(t[e]);for(var i of Cc)i(t)}function Qa(t){var I;var e=this,i=e.ownerDocument,o=t.type,n=((I=t.composedPath)==null?void 0:I.call(t))||[],r=n[0]||t.target,l=0,d=t.__root;if(d){var a=n.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var p=n.indexOf(e);if(p===-1)return;a<=p&&(l=a)}if(r=n[l]||t.target,r!==e){io(t,"currentTarget",{configurable:!0,get(){return r||i}});var f=Et,v=gt;Bi(null),oo(null);try{for(var u,$=[];r!==null;){var w=r.assignedSlot||r.parentNode||r.host||null;try{var y=r["__"+o];if(y!=null&&(!r.disabled||t.target===r))if(Wn(y)){var[S,...T]=y;S.apply(r,[t,...T])}else y.call(r,t)}catch(A){u?$.push(A):u=A}if(t.cancelBubble||w===e||w===null)break;r=w}if(u){for(let A of $)queueMicrotask(()=>{throw A});throw u}}finally{t.__root=e,delete t.currentTarget,Bi(f),oo(v)}}}var y0;function sg(){y0=void 0}function Ga(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function _o(t,e){var i=gt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function M(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,r=!t.startsWith("<!>");return()=>{if(Je)return _o(ht,null),ht;n===void 0&&(n=Ga(r?t:"<!>"+t),i||(n=hi(n)));var l=o||Tl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=hi(l),a=l.lastChild;_o(d,a)}else _o(l,l);return l}}function C0(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,r=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(Je)return _o(ht,null),ht;if(!l){var d=Ga(r),a=hi(d);if(n)for(l=document.createDocumentFragment();hi(a);)l.appendChild(hi(a));else l=hi(a)}var p=l.cloneNode(!0);if(n){var f=hi(p),v=p.lastChild;_o(f,v)}else _o(p,p);return p}}function Se(t,e){return C0(t,e,"svg")}function Yr(t=""){if(!Je){var e=ln(t+"");return _o(e,e),e}var i=ht;return i.nodeType!==La&&(i.before(i=ln()),ci(i)),_o(i,i),i}function ze(){if(Je)return _o(ht,null),ht;var t=document.createDocumentFragment(),e=document.createComment(""),i=ln();return t.append(e,i),_o(e,i),t}function b(t,e){if(Je){gt.nodes_end=ht,Di();return}t!==null&&t.before(e)}var S0=/\r/g;function lg(t){t=t.replace(S0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function dg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var T0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function cg(t){return T0.includes(t)}var E0=["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 I0={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 ug(t){var e;return t=t.toLowerCase(),(e=I0[t])!=null?e:t}var N9=[...E0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var k0=["touchstart","touchmove"];function pg(t){return k0.includes(t)}var P0=["$state","$state.raw","$derived","$derived.by"],B9=[...P0,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var A0=["textarea","script","style","title"];function fg(t){return A0.includes(t)}function Sc(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Bl=!0;function Tc(t){Bl=t}function he(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function jr(t,e){return mg(t,e)}function mp(t,e){var l;mc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=Je,n=ht;try{for(var r=hi(i);r&&(r.nodeType!==qn||r.data!==bs);)r=Ao(r);if(!r)throw Wr;no(!0),ci(r),Di();let d=mg(t,{...e,anchor:r});if(ht===null||ht.nodeType!==qn||ht.data!==Hs)throw ws(),Wr;return no(!1),d}catch(d){if(d===Wr)return e.recover===!1&&Iv(),mc(),El(i),no(!1),jr(t,e);throw d}finally{no(o),ci(n),sg()}}var Ya=new Map;function mg(t,{target:e,anchor:i,props:o={},events:n,context:r,intro:l=!0}){mc();var d=new Set,a=v=>{for(var u=0;u<v.length;u++){var $=v[u];if(!d.has($)){d.add($);var w=pg($);e.addEventListener($,Qa,{passive:w});var y=Ya.get($);y===void 0?(document.addEventListener($,Qa,{passive:w}),Ya.set($,1)):Ya.set($,y+1)}}};a(_l(up)),Cc.add(a);var p=void 0,f=Yv(()=>{var v=i!=null?i:e.appendChild(ln());return Mi(()=>{if(r){D({});var u=Lt;u.c=r}n&&(o.$$events=n),Je&&_o(v,null),Bl=l,p=t(v,o)||{},Bl=!0,Je&&(gt.nodes_end=ht),r&&H()}),()=>{var w;for(var u of d){e.removeEventListener(u,Qa);var $=Ya.get(u);--$===0?(document.removeEventListener(u,Qa),Ya.delete(u)):Ya.set(u,$)}Cc.delete(a),v!==i&&((w=v.parentNode)==null||w.removeChild(v))}});return fp.set(p,f),p}var fp=new WeakMap;function Xs(t,e){let i=fp.get(t);return i?(fp.delete(t),i(e)):(Pe&&Uv(),Promise.resolve())}function ge(t,e,...i){var o=t,n=oe,r;Hi(()=>{n!==(n=e())&&(r&&(Oi(r),r=null),Pe&&n==null&&kv(),r=Mi(()=>n(o,...i)))},65536),Je&&(o=ht)}if(Pe){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Mv(e)},set:o=>{i=o}})}};R0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var R0;function Nt(t){Lt===null&&Na("onMount"),qr&&Lt.l!==null?V0(Lt).m.push(t):qe(()=>{let e=Ct(t);if(typeof e=="function")return e})}function En(t){Lt===null&&Na("onDestroy"),Nt(()=>()=>Ct(t))}function V0(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var vg=new Map;function gg(t,e){var i=vg.get(t);i||(i=new Set,vg.set(t,i)),i.add(e)}function R(t,e,[i,o]=[0,0]){Je&&i===0&&Di();var n=t,r=null,l=null,d=Wi,a=i>0?65536:0,p=!1;let f=(u,$=!0)=>{p=!0,v($,u)},v=(u,$)=>{if(d===(d=u))return;let w=!1;if(Je&&o!==-1){if(i===0){let S=fc(n);S===bs?o=0:S===$s?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=Ks(),ci(n),no(!1),w=!0,o=-1)}d?(r?as(r):$&&(r=Mi(()=>$(n))),l&&Tn(l,()=>{l=null})):(l?as(l):$&&(l=Mi(()=>$(n,[i+1,o]))),r&&Tn(r,()=>{r=null})),w&&no(!0)};Hi(()=>{p=!1,e(f),p||v(null,null)},a),Je&&(n=ht)}function Js(t,e,i){Je&&Di();var o=t,n=Wi,r,l=Qr()?xv:Va;Hi(()=>{l(n,n=e())&&(r&&Tn(r),r=Mi(()=>i(o)))}),Je&&(o=ht)}var Ss=null;function hp(t){Ss=t}function Ol(t,e){return e}function O0(t,e,i,o){for(var n=[],r=e.length,l=0;l<r;l++)_c(e[l].e,n,!0);var d=r>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;El(a),a.append(i),o.clear(),Cs(t,e[0].prev,e[r-1].next)}sp(n,()=>{for(var p=0;p<r;p++){var f=e[p];d||(o.delete(f.k),Cs(t,f.prev,f.next)),Oi(f.e,!d)}})}function wi(t,e,i,o,n,r=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var p=t;l=Je?ci(hi(p)):p.appendChild(ln())}Je&&Di();var f=null,v=!1,u=Pr(()=>{var $=i();return Wn($)?$:$==null?[]:_l($)});Hi(()=>{var $=s(u),w=$.length;if(v&&w===0)return;v=w===0;let y=!1;if(Je){var S=fc(l)===$s;S!==(w===0)&&(l=Ks(),ci(l),no(!1),y=!0)}if(Je){for(var T=null,I,A=0;A<w;A++){if(ht.nodeType===qn&&ht.data===Hs){l=ht,y=!0,no(!1);break}var k=$[A],E=o(k,A);I=bg(ht,d,T,null,k,E,A,n,e,i),d.items.set(E,I),T=I}w>0&&ci(Ks())}Je||D0($,d,l,n,e,o,i),r!==null&&(w===0?f?as(f):f=Mi(()=>r(l)):f!==null&&Tn(f,()=>{f=null})),y&&no(!0),s(u)}),Je&&(l=ht)}function D0(t,e,i,o,n,r,l){var de,we,Re,me;var d=(n&8)!==0,a=(n&3)!==0,p=t.length,f=e.items,v=e.first,u=v,$,w=null,y,S=[],T=[],I,A,k,E;if(d)for(E=0;E<p;E+=1)I=t[E],A=r(I,E),k=f.get(A),k!==void 0&&((de=k.a)==null||de.measure(),(y!=null?y:y=new Set).add(k));for(E=0;E<p;E+=1){if(I=t[E],A=r(I,E),k=f.get(A),k===void 0){var L=u?u.e.nodes_start:i;w=bg(L,e,w,w===null?e.first:w.next,I,A,E,o,n,l),f.set(A,w),S=[],T=[],u=w.next;continue}if(a&&H0(k,I,E,n),(k.e.f&8192)!==0&&(as(k.e),d&&((we=k.a)==null||we.unfix(),(y!=null?y:y=new Set).delete(k))),k!==u){if($!==void 0&&$.has(k)){if(S.length<T.length){var K=T[0],U;w=K.prev;var W=S[0],G=S[S.length-1];for(U=0;U<S.length;U+=1)hg(S[U],K,i);for(U=0;U<T.length;U+=1)$.delete(T[U]);Cs(e,W.prev,G.next),Cs(e,w,W),Cs(e,G,K),u=K,w=G,E-=1,S=[],T=[]}else $.delete(k),hg(k,u,i),Cs(e,k.prev,k.next),Cs(e,k,w===null?e.first:w.next),Cs(e,w,k),w=k;continue}for(S=[],T=[];u!==null&&u.k!==A;)(u.e.f&8192)===0&&($!=null?$:$=new Set).add(u),T.push(u),u=u.next;if(u===null)continue;k=u}S.push(k),w=k,u=k.next}if(u!==null||$!==void 0){for(var te=$===void 0?[]:_l($);u!==null;)(u.e.f&8192)===0&&te.push(u),u=u.next;var j=te.length;if(j>0){var ae=(n&4)!==0&&p===0?i:null;if(d){for(E=0;E<j;E+=1)(Re=te[E].a)==null||Re.measure();for(E=0;E<j;E+=1)(me=te[E].a)==null||me.fix()}O0(e,te,ae,f)}}d&&dn(()=>{var le;if(y!==void 0)for(k of y)(le=k.a)==null||le.apply()}),gt.first=e.first&&e.first.e,gt.last=w&&w.e}function H0(t,e,i,o){(o&1)!==0&&Fa(t.v,e),(o&2)!==0?Fa(t.i,i):t.i=i}function bg(t,e,i,o,n,r,l,d,a,p){var f=Ss,v=(a&1)!==0,u=(a&16)===0,$=v?u?Gr(n,!1,!1):pr(n):n,w=(a&2)===0?l:pr(l);Pe&&v&&($.trace=()=>{var S=typeof w=="number"?l:w.v;p()[S]});var y={i:w,v:$,k:r,a:null,e:null,prev:i,next:o};Ss=y;try{return y.e=Mi(()=>d(t,$,w,p),Je),y.e.prev=i&&i.e,y.e.next=o&&o.e,i===null?e.first=y:(i.next=y,i.e.next=y.e),o!==null&&(o.prev=y,o.e.prev=y.e),y}finally{Ss=f}}function hg(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,r=t.e.nodes_start;r!==o;){var l=Ao(r);n.before(r),r=l}}function Cs(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 F0(t,e,i){var r,l;if(!e||e===lg(String(i!=null?i:"")))return;let o,n=(r=t.__svelte_meta)==null?void 0:r.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(l=Kn)!=null&&l[xn]&&(o=`in ${Kn[xn]}`),Fv(Sc(o))}function Dl(t,e,i=!1,o=!1,n=!1){var r=t,l="";O(()=>{var $;var d=gt;if(l===(l=($=e())!=null?$:"")){Je&&Di();return}if(d.nodes_start!==null&&(np(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(Je){for(var a=ht.data,p=Di(),f=p;p!==null&&(p.nodeType!==qn||p.data!=="");)f=p,p=Ao(p);if(p===null)throw ws(),Wr;Pe&&!n&&F0(p.parentNode,a,l),_o(ht,f),r=ci(p);return}var v=l+"";i?v=`<svg>${v}</svg>`:o&&(v=`<math>${v}</math>`);var u=Ga(v);if((i||o)&&(u=hi(u)),_o(hi(u),u.lastChild),i||o)for(;hi(u);)r.before(hi(u));else r.before(u)}})}function Ci(t,e,i){Je&&Di();var o=t,n,r;Hi(()=>{n!==(n=e())&&(r&&(Tn(r),r=null),n&&(r=Mi(()=>i(o,n))))},65536),Je&&(o=ht)}function ea(t,e,i,o,n,r){var w;let l=Je;Je&&Di();var d=Pe&&r&&((w=Lt)==null?void 0:w.function[xn]),a,p,f=null;Je&&ht.nodeType===sc&&(f=ht,Di());var v=Je?ht:t,u,$=Ss;Hi(()=>{let y=e()||null;var S=n?n():i||y==="svg"?ic:null;if(y!==a){var T=Ss;hp($),u&&(y===null?Tn(u,()=>{u=null,p=null}):y===p?as(u):(Oi(u),Tc(!1))),y&&y!==p&&(u=Mi(()=>{if(f=Je?f:S?document.createElementNS(S,y):document.createElement(y),Pe&&r&&(f.__svelte_meta={loc:{file:d,line:r[0],column:r[1]}}),_o(f,f),o){Je&&fg(y)&&f.append(document.createComment(""));var I=Je?hi(f):f.appendChild(ln());Je&&(I===null?no(!1):ci(I)),o(f,I)}gt.nodes_end=f,v.before(f)})),a=y,a&&(p=a),Tc(!0),hp(T)}},65536),l&&(no(!0),ci(v))}var bp;function $g(t){return bp=t.target,new _p(t)}var ls,fr,_p=class{constructor(e){_s(this,ls);_s(this,fr);var r,l;var i=new Map,o=(d,a)=>{var p=Gr(a,!1,!1);return i.set(d,p),p};let n=new Proxy({...e.props||{},$$events:{}},{get(d,a){var p;return s((p=i.get(a))!=null?p:o(a,Reflect.get(d,a)))},has(d,a){var p;return a===Ma?!0:(s((p=i.get(a))!=null?p:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,p){var f;return B((f=i.get(a))!=null?f:o(a,p),p),Reflect.set(d,a,p)}});Aa(this,fr,(e.hydrate?mp:jr)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(r=e.intro)!=null?r:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&Ka(),Aa(this,ls,n.$$events);for(let d of Object.keys(Ai(this,fr)))d==="$set"||d==="$destroy"||d==="$on"||io(this,d,{get(){return Ai(this,fr)[d]},set(a){Ai(this,fr)[d]=a},enumerable:!0});Ai(this,fr).$set=d=>{Object.assign(n,d)},Ai(this,fr).$destroy=()=>{Xs(Ai(this,fr))}}$set(e){Ai(this,fr).$set(e)}$on(e,i){Ai(this,ls)[e]=Ai(this,ls)[e]||[];let o=(...n)=>i.call(this,...n);return Ai(this,ls)[e].push(o),()=>{Ai(this,ls)[e]=Ai(this,ls)[e].filter(n=>n!==o)}}$destroy(){Ai(this,fr).$destroy()}};ls=new WeakMap,fr=new WeakMap;function z(t,e){dn(()=>{var n,r,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(r=bp)==null?void 0:r.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Pe&&gg(e.hash,d)}})}function $p(t,e){var i=void 0,o;Hi(()=>{i!==(i=e())&&(o&&(Oi(o),o=null),i&&(o=Mi(()=>{go(()=>i(t))})))})}function yg(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=yg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function xg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=yg(t))&&(o&&(o+=" "),o+=e);return o}function Hl(t){return typeof t=="object"?xg(t):t!=null?t:""}var wg=[...`
44
+ \r\f\xA0\v\uFEFF`];function Sg(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 r=n.length,l=0;(l=o.indexOf(n,l))>=0;){var d=l+r;(l===0||wg.includes(o[l-1]))&&(d===o.length||wg.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function Cg(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var r=t[n];r!=null&&r!==""&&(o+=" "+n+": "+r+i)}return o}function yp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Tg(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 r=!1,l=0,d=!1,a=[];o&&a.push(...Object.keys(o).map(yp)),n&&a.push(...Object.keys(n).map(yp));var p=0,f=-1;let y=t.length;for(var v=0;v<y;v++){var u=t[v];if(d?u==="/"&&t[v-1]==="*"&&(d=!1):r?r===u&&(r=!1):u==="/"&&t[v+1]==="*"?d=!0:u==='"'||u==="'"?r=u:u==="("?l++:u===")"&&l--,!d&&r===!1&&l===0){if(u===":"&&f===-1)f=v;else if(u===";"||v===y-1){if(f!==-1){var $=yp(t.substring(p,f).trim());if(!a.includes($)){u!==";"&&v++;var w=t.substring(p,v).trim();i+=" "+w+";"}}p=v+1,f=-1}}}}return o&&(i+=Cg(o)),n&&(i+=Cg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function J(t,e,i,o,n,r){var l=t.__className;if(Je||l!==i||l===void 0){var d=Sg(i,o,r);(!Je||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(r&&n!==r)for(var a in r){var p=!!r[a];(n==null||p!==!!n[a])&&t.classList.toggle(a,p)}return r}function xp(t,e={},i,o){for(var n in i){var r=i[n];e[n]!==r&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,r,o))}}function at(t,e,i,o){var n=t.__style;if(Je||n!==e){var r=Tg(e,o);(!Je||r!==t.getAttribute("style"))&&(r==null?t.removeAttribute("style"):t.style.cssText=r),t.__style=e}else o&&(Array.isArray(o)?(xp(t,i==null?void 0:i[0],o[0]),xp(t,i==null?void 0:i[1],o[1],"important")):xp(t,i,o));return o}function Fl(t,e,i){if(t.multiple){if(e==null)return;if(!Wn(e))return zv();for(var o of t.options)o.selected=e.includes(Eg(o));return}for(o of t.options){var n=Eg(o);if(Qu(n,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function wp(t){var e=new MutationObserver(()=>{Fl(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Io(()=>{e.disconnect()})}function Eg(t){return"__value"in t?t.__value:t.value}var ja=Symbol("class"),Za=Symbol("style"),Pg=Symbol("is custom element"),Ag=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(Je&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||Y0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[yv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Rg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Lg(t,e,i,o,n=!1){var k;var r=Vg(t),l=r[Pg],d=!r[Ag];let a=Je&&l;a&&no(!1);var p=e||{},f=t.tagName==="OPTION";for(var v in e)v in i||(i[v]=null);i.class?i.class=Hl(i.class):(o||i[ja])&&(i.class=null),i[Za]&&((k=i.style)!=null||(i.style=null));var u=Rg(t);for(let E in i){let L=i[E];if(f&&E==="value"&&L==null){t.value=t.__value="",p[E]=L;continue}if(E==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";J(t,$,L,o,e==null?void 0:e[ja],i[ja]),p[E]=L,p[ja]=i[ja];continue}if(E==="style"){at(t,L,e==null?void 0:e[Za],i[Za]),p[E]=L,p[Za]=i[Za];continue}var w=p[E];if(!(L===w&&!(L===void 0&&t.hasAttribute(E)))){p[E]=L;var y=E[0]+E[1];if(y!=="$$")if(y==="on"){let K={},U="$$"+E,W=E.slice(2);var S=cg(W);if(dg(W)&&(W=W.slice(0,-7),K.capture=!0),!S&&w){if(L!=null)continue;t.removeEventListener(W,p[U],K),p[U]=null}if(L!=null)if(S)t[`__${W}`]=L,dt([W]);else{let G=function(te){p[E].call(this,te)};var A=G;p[U]=pp(W,t,G,K)}else S&&(t[`__${W}`]=void 0)}else if(E==="style")Be(t,E,L);else if(E==="autofocus")cp(t,!!L);else if(!l&&(E==="__value"||E==="value"&&L!=null))t.value=t.__value=L;else if(E==="selected"&&f)Mg(t,L);else{var T=E;d||(T=ug(T));var I=T==="defaultValue"||T==="defaultChecked";if(L==null&&!l&&!I)if(r[E]=null,T==="value"||T==="checked"){let K=t,U=e===void 0;if(T==="value"){let W=K.defaultValue;K.removeAttribute(T),K.defaultValue=W,K.value=K.__value=U?W:null}else{let W=K.defaultChecked;K.removeAttribute(T),K.defaultChecked=W,K.checked=U?W:!1}}else t.removeAttribute(E);else I||u.includes(T)&&(l||typeof L!="string")?t[T]=L:typeof L!="function"&&Be(t,T,L,n)}}}return a&&no(!0),p}function Ie(t,e,i=[],o,n=!1,r=kr){let l=i.map(r);var d=void 0,a={},p=t.nodeName==="SELECT",f=!1;if(Hi(()=>{var u=e(...l.map(s)),$=Lg(t,d,u,o,n);f&&p&&"value"in u&&Fl(t,u.value,!1);for(let y of Object.getOwnPropertySymbols(a))u[y]||Oi(a[y]);for(let y of Object.getOwnPropertySymbols(u)){var w=u[y];y.description===Du&&(!d||w!==d[y])&&(a[y]&&Oi(a[y]),a[y]=Mi(()=>$p(t,()=>w))),$[y]=w}d=$}),p){var v=t;go(()=>{Fl(v,d.value),wp(v)})}f=!0}function Vg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Pg]:t.nodeName.includes("-"),[Ag]:t.namespaceURI===mv}}var Ig=new Map;function Rg(t){var e=Ig.get(t.nodeName);if(e)return e;Ig.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=nc(o);for(var r in i)i[r].set&&e.push(r);o=Fs(o)}return e}function Y0(t,e,i){var o;Pe&&(e==="srcset"&&j0(t,i)||Cp((o=t.getAttribute(e))!=null?o:"",i)||Hv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Cp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function kg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function j0(t,e){var i=kg(t.srcset),o=kg(e);return o.length===i.length&&o.every(([n,r],l)=>r===i[l][1]&&(Cp(i[l][0],n)||Cp(n,i[l][0])))}var Z0=oc?()=>performance.now():()=>Date.now(),Lr={tick:t=>(oc?requestAnimationFrame:oe)(t),now:()=>Z0(),tasks:new Set};function Ng(){let t=Lr.now();Lr.tasks.forEach(e=>{e.c(t)||(Lr.tasks.delete(e),e.f())}),Lr.tasks.size!==0&&Lr.tick(Ng)}function Bg(t){let e;return Lr.tasks.size===0&&Lr.tick(Ng),{promise:new Promise(i=>{Lr.tasks.add(e={c:t,f:i})}),abort(){Lr.tasks.delete(e)}}}function Ec(t,e){Nl(()=>{t.dispatchEvent(new CustomEvent(e))})}function t_(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 Og(t){let e={},i=t.split(";");for(let o of i){let[n,r]=o.split(":");if(!n||r===void 0)break;let l=t_(n.trim());e[l]=r.trim()}return e}var i_=t=>t;function Tp(t,e,i,o){var A;var n=(t&1)!==0,r=(t&2)!==0,l=n&&r,d=(t&4)!==0,a=l?"both":n?"in":"out",p,f=e.inert,v=e.style.overflow,u,$;function w(){var L;var k=Et,E=gt;Bi(null),oo(null);try{return p!=null?p:p=i()(e,(L=o==null?void 0:o())!=null?L:{},{direction:a})}finally{Bi(k),oo(E)}}var y={is_global:d,in(){var k;if(e.inert=f,!n){$==null||$.abort(),(k=$==null?void 0:$.reset)==null||k.call($);return}r||u==null||u.abort(),Ec(e,"introstart"),u=Sp(e,w(),$,1,()=>{Ec(e,"introend"),u==null||u.abort(),u=p=void 0,e.style.overflow=v})},out(k){if(!r){k==null||k(),p=void 0;return}e.inert=!0,Ec(e,"outrostart"),$=Sp(e,w(),u,0,()=>{Ec(e,"outroend"),k==null||k()})},stop:()=>{u==null||u.abort(),$==null||$.abort()}},S=gt;if(((A=S.transitions)!=null?A:S.transitions=[]).push(y),n&&Bl){var T=d;if(!T){for(var I=S.parent;I&&(I.f&65536)!==0;)for(;(I=I.parent)&&(I.f&16)===0;);T=!I||(I.f&32768)!==0}T&&go(()=>{Ct(()=>y.in())})}}function Sp(t,e,i,o,n){var r=o===1;if(ys(e)){var l,d=!1;return dn(()=>{if(!d){var S=e({direction:r?"in":"out"});l=Sp(t,S,i,o,n)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:oe,deactivate:oe,reset:oe,t:()=>o};let{delay:a=0,css:p,tick:f,easing:v=i_}=e;var u=[];if(r&&i===void 0&&(f&&f(0,1),p)){var $=Og(p(0,1));u.push($,$)}var w=()=>1-o,y=t.animate(u,{duration:a,fill:"forwards"});return y.onfinish=()=>{var W;y.cancel();var S=(W=i==null?void 0:i.t())!=null?W:1-o;i==null||i.abort();var T=o-S,I=e.duration*Math.abs(T),A=[];if(I>0){var k=!1;if(p)for(var E=Math.ceil(I/16.666666666666668),L=0;L<=E;L+=1){var K=S+T*v(L/E),U=Og(p(K,1-K));A.push(U),k||(k=U.overflow==="hidden")}k&&(t.style.overflow="hidden"),w=()=>{var G=y.currentTime;return S+T*v(G/I)},f&&Bg(()=>{if(y.playState!=="running")return!1;var G=w();return f(G,1-G),!0})}y=t.animate(A,{duration:I,fill:"forwards"}),y.onfinish=()=>{w=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=oe)},deactivate:()=>{n=oe},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var Ts,Xa,Ul,kc,Dg,Pc=class Pc{constructor(e){_s(this,kc);_s(this,Ts,new WeakMap);_s(this,Xa);_s(this,Ul);Aa(this,Ul,e)}observe(e,i){var o=Ai(this,Ts).get(e)||new Set;return o.add(i),Ai(this,Ts).set(e,o),pv(this,kc,Dg).call(this).observe(e,Ai(this,Ul)),()=>{var n=Ai(this,Ts).get(e);n.delete(i),n.size===0&&(Ai(this,Ts).delete(e),Ai(this,Xa).unobserve(e))}}};Ts=new WeakMap,Xa=new WeakMap,Ul=new WeakMap,kc=new WeakSet,Dg=function(){var e;return(e=Ai(this,Xa))!=null?e:Aa(this,Xa,new ResizeObserver(i=>{for(var o of i){Pc.entries.set(o.target,o);for(var n of Ai(this,Ts).get(o.target)||[])n(o)}}))},zn(Pc,"entries",new WeakMap);var Ep=Pc;var o_=new Ep({box:"border-box"});function Zr(t,e,i){var o=o_.observe(t,()=>i(t[e]));go(()=>(Ct(()=>i(t[e])),o))}function Hg(t,e){return t===e||(t==null?void 0:t[Eo])===e}function tt(t={},e,i,o){return go(()=>{var n,r;return Mo(()=>{n=r,r=(o==null?void 0:o())||[],Ct(()=>{t!==i(...r)&&(e(t,...r),n&&Hg(i(...n),t)&&e(null,...n))})}),()=>{dn(()=>{r&&Hg(i(...r),t)&&e(null,...r)})}}),t}function Vr(t=!1){let e=Lt,i=e.l.u;if(!i)return;let o=()=>wc(e.s);if(t){let n=0,r={},l=kr(()=>{let d=!1,a=e.s;for(let p in a)a[p]!==r[p]&&(r[p]=a[p],d=!0);return d&&n++,n});o=()=>s(l)}i.b.length&&Pl(()=>{Fg(e,o),xs(i.b)}),qe(()=>{let n=Ct(()=>i.m.map($v));return()=>{for(let r of n)typeof r=="function"&&r()}}),i.a.length&&qe(()=>{Fg(e,o),xs(i.a)})}function Fg(t,e){if(t.l.s)for(let i of t.l.s)s(i);e()}function zl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),oe;let o=Ct(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Ja=[];function mr(t,e){return{subscribe:se(t,e).subscribe}}function se(t,e=oe){let i=null,o=new Set;function n(d){if(Va(t,d)&&(t=d,i)){let a=!Ja.length;for(let p of o)p[1](),Ja.push(p,t);if(a){for(let p=0;p<Ja.length;p+=2)Ja[p][0](Ja[p+1]);Ja.length=0}}}function r(d){n(d(t))}function l(d,a=oe){let p=[d,a];return o.add(p),o.size===1&&(i=e(n,r)||oe),d(t),()=>{o.delete(p),o.size===0&&i&&(i(),i=null)}}return{set:n,update:r,subscribe:l}}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 r=e.length<2;return mr(i,(l,d)=>{let a=!1,p=[],f=0,v=oe,u=()=>{if(f)return;v();let w=e(o?p[0]:p,l,d);r?l(w):v=typeof w=="function"?w:oe},$=n.map((w,y)=>zl(w,S=>{p[y]=S,f&=~(1<<y),a&&u()},()=>{f|=1<<y}));return a=!0,u(),function(){xs($),v(),a=!1}})}function $e(t){let e;return zl(t,i=>e=i)(),e}var Ac=!1,Ip=Symbol();function C(t,e,i){var r;let o=(r=i[e])!=null?r:i[e]={store:null,source:Gr(void 0),unsubscribe:oe};if(o.store!==t&&!(Ip in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=oe;else{var n=!0;o.unsubscribe=zl(t,l=>{n?o.source.v=l:B(o.source,l)}),n=!1}return t&&Ip in i?$e(t):s(o.source)}function Fe(){let t={};function e(){Io(()=>{for(var i in t)t[i].unsubscribe();io(t,Ip,{enumerable:!1,value:!0})})}return[t,e]}function kp(t){var e=Ac;try{return Ac=!1,[t(),Ac]}finally{Ac=e}}var c_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Pe&&Av(`${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 Le(t,e,i){return new Proxy(Pe?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},c_)}var u_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ys(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];ys(n)&&(n=n());let r=zo(n,e);if(r&&r.set)return r.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ys(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=zo(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Eo||e===Ma)return!1;for(let i of t.props)if(ys(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(ys(i)&&(i=i()),!!i){for(let o in i)e.includes(o)||e.push(o);for(let o of Object.getOwnPropertySymbols(i))e.includes(o)||e.push(o)}return e}};function ds(...t){return new Proxy({props:t},u_)}function Ug(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function m(t,e,i,o){var K,U;var n=(i&1)!==0,r=!qr||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,p;l?[p,a]=kp(()=>t[e]):p=t[e];var f=Eo in t||Ma in t,v=l&&((U=(K=zo(t,e))==null?void 0:K.set)!=null?U:f&&e in t&&(W=>t[e]=W))||void 0,u=o,$=!0,w=!1,y=()=>(w=!0,$&&($=!1,d?u=Ct(o):u=o),u);p===void 0&&o!==void 0&&(v&&r&&Pv(e),p=y(),v&&v(p));var S;if(r)S=()=>{var W=t[e];return W===void 0?y():($=!0,w=!1,W)};else{var T=(n?kr:Pr)(()=>t[e]);T.f|=131072,S=()=>{var W=s(T);return W!==void 0&&(u=void 0),W===void 0?u:W}}if((i&4)===0&&r)return S;if(v){var I=t.$$legacy;return function(W,G){return arguments.length>0?((!r||!G||I||a)&&v(G?S():W),W):S()}}var A=!1,k=!1,E=Gr(p),L=kr(()=>{var W=S(),G=s(E);return A?(A=!1,k=!0,G):(k=!1,E.v=W)});return l&&s(L),n||(L.equals=Ra),function(W,G){if(yc!==null&&(A=k,S(),s(E)),arguments.length>0){let te=G?s(L):r&&l?ti(W):W;if(!L.equals(te)){if(A=!0,B(E,te),w&&u!==void 0&&(u=te),Ug(L))return W;Ct(()=>s(L))}return W}return Ug(L)?L.v:s(L)}}var p_;typeof HTMLElement=="function"&&(p_=class extends HTMLElement{constructor(e,i,o){super();zn(this,"$$ctor");zn(this,"$$s");zn(this,"$$c");zn(this,"$$cn",!1);zn(this,"$$d",{});zn(this,"$$r",!1);zn(this,"$$p_d",{});zn(this,"$$l",{});zn(this,"$$l_u",new Map);zn(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(r){return l=>{let d=document.createElement("slot");r!=="default"&&(d.name=r),b(l,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=f_(this);for(let r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=i(r),o.default=!0):o[r]=i(r));for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=Pp(l,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=$g({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=hc(()=>{Mo(()=>{var r;this.$$r=!0;for(let l of Hu(this.$$c)){if(!((r=this.$$p_d[l])!=null&&r.reflect))continue;this.$$d[l]=this.$$c[l];let d=Pp(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let r in this.$$l)for(let l of this.$$l[r]){let d=this.$$c.$on(r,l);this.$$l_u.set(l,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=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 Hu(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 r;let n=(r=i[t])==null?void 0:r.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 f_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var zg="5";var Wg,qg,Kg;typeof window!="undefined"&&((Kg=(qg=(Wg=window.__svelte)!=null?Wg:window.__svelte={}).v)!=null?Kg:qg.v=new Set).add(zg);import{areValidLiveRecordSources as Xx,clientChecker as jm}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-core/es2018";import{noop as K1,safeStorage as Jx,throttleFn as e5}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as t5}from"@vkontakte/videoplayer-statistics/es2018";import{InterfaceLanguage as m_,fillWithDefault as v_,VideoQuality as Qg}from"@vkontakte/videoplayer-shared/es2018";var g_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:m_.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:Qg.Q_480P,highQualityLimit:Qg.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,interactiveHistoryEndChapterFix:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null}},Gg=t=>v_(t,g_),Yg=t=>Oa("ui-config",t),Ft=()=>Ba("ui-config");var Wl="vk_player_debug_panel_opened";var jg="videoplayer",Zg="videoplayer";var Xr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Xg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Jg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),eh=new Set(["ShiftRight","ShiftLeft"]);var th=["TIMELINE"],ql=[...th,"GRAPH_BUTTON"],Ap=[...th,"PLAY_BUTTON"],Kl=[...ql,"PLAY_BUTTON"];var Jr=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(Jr||{}),ia={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as ih,VERSION as h_}from"@vkontakte/videoplayer-shared/es2018";import{VERSION as __}from"@vkontakte/videoplayer-core/es2018";import{VERSION as b_}from"@vkontakte/videoplayer-statistics/es2018";var Mc="prod",el="1.1.68-dev.b76b5013.0";var oa=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var oh=Symbol("storeContext"),nh=Symbol("microStoresContext"),rh=(t,e)=>{Oa(oh,t),Oa(nh,e),Mc==="dev"&&(window.app={store:t,microStores:e})},Ee=()=>{let t=Ba(oh);return ih(t,"Store context is empty!"),t},co=()=>{let t=Ba(nh);return ih(t,"MicroStores context is empty!"),t},Zt=(t,e)=>Vc(t,t.getValue(),e),Vc=(t,e,i)=>mr(e,o=>{let n=t.subscribe(r=>{o(r),i==null||i(r)});return()=>n.unsubscribe()}),sh=(t,e,i,o)=>{var L,K,U,W,G,te,j,ae;let n=t.info,{width:r,height:l}=$e(i.ui.playerSize),d=(K=(L=n.throughputEstimation$.getValue())==null?void 0:L.toFixed(0))!=null?K:0,a=(W=(U=n.rttEstimation$.getValue())==null?void 0:U.toFixed(0))!=null?W:0,p=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${el} (core: ${__}, stat: ${b_}, shared: ${h_})`,v=$e(i.state.errorLog$),u=v.length?`
45
+ `+v.map((de,we)=>{var Ve;let Re=`${we}) Type: ${de.id}
46
+ `,me=`Message: ${de.message} (${de.thrown})
47
+ `,le=`Trace: ${(Ve=de.thrown)==null?void 0:Ve.stack}
48
+ `;return Re+me+le}).join(`
49
+ `):void 0,$=i.state.isAudioDisabled?"disabled":$e(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),y=t.info.currentAudioStream$.getValue(),S=[];w&&S.push(`Video: ${(G=w==null?void 0:w.codec)!=null?G:""}`+(w!=null&&w.hdr?" (HDR)":"")),y&&S.push(`Audio: ${(te=y==null?void 0:y.codec)!=null?te:""}`+(y!=null&&y.language?` (${y.language})`:""));let T=n.currentQuality$.getValue(),I="";if(T){let de=n.availableQualitiesFps$.getValue()[T];I=de?`${de}fps`:""}let A=(ae=(j=n.currentBuffer$.getValue())==null?void 0:j.end)!=null?ae:0,k=Math.max(A-$e(i.state.positionExact$),0),E={Version:f,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:$e(i.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${d}Kbps @ ${a}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:S.join(", "),Quality:`${p} ${T} ${I}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:$,Position:`${$e(i.state.positionExact$)}s`,Buffer:`${k}s`,State:`${$e(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${r}x${l}`,URL:window.location.href,Errors:u};return Object.entries(E).filter(([de,we])=>we!==void 0).map(([de,we])=>`${de}: ${we}`).join(`
50
+ `)},ah=(t,e,i)=>{var K,U,W,G;let o=t.info,{width:n,height:r}=$e(i.ui.playerSize),l={version:el,viewport:`${n}x${r}`,volume:Math.round($e(i.state.volume$)*100)};l.id=i.videoId,o.currentFormat$.getValue()&&(l.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(l.cdn=o.hostname$.getValue());let p=o.intrinsicVideoSize$.getValue();p&&(l.videoSize=`${p.width}x${p.height}`);let f=o.currentBuffer$.getValue(),v=o.isLive$.getValue(),u=o.liveBufferTime$.getValue();f&&(v&&u?l.buffer=f.end-u:l.buffer=Math.max(f.end-$e(i.state.positionExact$),0)),l.position=$e(i.state.positionExact$);let $=o.throughputEstimation$.getValue();$&&(l.speed=$);let w=o.videoBitrate$.getValue();w&&(l.bitrate=w);let y=o.liveLatency$.getValue();y&&(l.liveLatency=y);let S=o.currentVideoSegmentLength$.getValue();S&&(l.currentVideoSegmentLength=S);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let I=$e(i.vsid);typeof I=="string"&&(l.vsid=I);let A=(K=t.info.currentVideoStream$.getValue())==null?void 0:K.codec;A&&(l.videoCodec=A);let k=(U=t.info.currentAudioStream$.getValue())==null?void 0:U.codec;k&&(l.audioCodec=k),((W=t.info.currentVideoStream$.getValue())==null?void 0:W.hdr)&&(l.hdr=!0);let L=(G=t.info.currentAudioStream$.getValue())==null?void 0:G.language;return L&&(l.audioLanguage=L),l},lh=(t,e)=>oa(t,e,"mp4"),dh=t=>!t.type,ch=t=>!!t.type,uh=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},Lc=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 Rp,safeStorage as qi}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-core/es2018";var ph="vk_player_prefer_traffic_saving_enabled",fh="vk_player_preferred_volume",mh="vk_player_prefer_volume_mute",Np="vk_player_preferred_quality",Mp="vk_player_preferred_default_quality_settings",Lp="vk_player_preferred_quality_settings_by_video",vh="vk_player_preferred_stream_language",gh="vk_player_preferred_rate",hh="vk_player_preferred_autoplay_next",Vp="vk_player_preferred_subtitles_language",_h=t=>t>1?1:t<0?0:t,Bp=t=>qi.set(fh,_h(t).toString(10)),Rc=()=>{let t=qi.get(fh);return Rp(t)?void 0:_h(parseFloat(t))},Op=(t,e)=>qi.set(Np,JSON.stringify({videoId:t,value:e})),Gl=()=>qi.remove(Np),Dp=t=>{let e=qi.get(Np);if(Rp(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Gl();return}return o},Hp=(t,e)=>{e?qi.set(t,"true"):qi.remove(t)},Fp=t=>qi.get(t)==="true",Up=t=>Hp(mh,t),bh=()=>Fp(mh),Ql=t=>Hp(ph,t),zp=()=>Fp(ph),$h=()=>qi.get(vh),Wp=t=>qi.set(vh,t),qp=()=>qi.get(Vp),Kp=t=>{t?qi.set(Vp,t):qi.remove(Vp)},yh=t=>qi.set(gh,JSON.stringify({rate:t})),xh=()=>{let t=qi.get(gh);if(Rp(t))return;let{rate:e}=JSON.parse(t);return e},wh=t=>Hp(hh,t),Ch=()=>Fp(hh),$_=()=>{let t=f=>{qi.set(Mp,JSON.stringify(f))},e=()=>{try{let f=qi.get(Mp);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=qi.get(Lp);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{qi.set(Lp,JSON.stringify(f))},n=f=>{p(f);let v=f?i():null;if(v&&(v==null?void 0:v.videoId)===f)return{...v,appliesTo:"to-video"};v&&r();let u=e();return u?{...u,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},r=()=>{qi.remove(Lp)},l=()=>{qi.remove(Mp)},d=(f,v="as-default")=>{f.type==="exact_quality"?o(f):v==="as-default"?t(f):o(f)},a=f=>{let v=n(f);if(v){switch(v.type){case"traffic_saving":Ql(!0);break;case"exact_quality":Op(f,v.quality)}r(),l()}},p=f=>{let v=Dp(f);if(v){o({type:"exact_quality",videoId:f,quality:v});return}zp()&&t({type:"traffic_saving",videoId:f}),Ql(!1),Gl()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:r,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:qp,savePreferredSubtitlesLanguage:Kp}},{getPreferredQualitySettings:Sh,migrateSettingsToLegacyWay:Th,savePreferredQualitySettings:Nc,savePreferredDefaultQualitySettings:lM,removePreferredQualitySettingsByVideo:dM,getPreferredDefaultQualitySettings:Bc}=$_();import{PlaybackState as z1}from"@vkontakte/videoplayer-core/es2018";var y_=Se('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"></path><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-opacity=".12" stroke-width=".5" d="m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"></path></g><defs><filter id="a" width="75" height="44" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_618_12297"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_618_12297" result="shape"></feBlend></filter></defs></svg>');function Yl(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=y_();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}import{isNullable as kh,InterfaceLanguage as Ph}from"@vkontakte/videoplayer-shared/es2018";var x_={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_pip_close:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",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:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_sound_unavailable:"\u0417\u0432\u0443\u043A \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",tooltip_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving:"\u0420\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",aria_label_context_menu:"\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_autoplay:"\u0410\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
51
51
  \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u043E \u043D\u0430\xA0\xAB\u0410\u0432\u0442\u043E\xBB`,slow_video_notification_suggest_description:`\u0412\u0438\u0434\u0435\u043E \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E -
52
- \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0430 \xAB\u0410\u0432\u0442\u043E\xBB`},xh=m_;var v_={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_pip_close:"Expand video",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Volume off",tooltip_volume_muted:"Turn volume on",tooltip_sound_unavailable:"Sound unavailable",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",tooltip_context_menu_open:"Open context menu",tooltip_context_menu_close:"Close context menu",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay:"Display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving:"Data saving mode",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",aria_label_autoplay:"Autoplay",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
52
+ \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0430 \xAB\u0410\u0432\u0442\u043E\xBB`},Eh=x_;var w_={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_pip_close:"Expand video",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Volume off",tooltip_volume_muted:"Turn volume on",tooltip_sound_unavailable:"Sound unavailable",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",tooltip_context_menu_open:"Open context menu",tooltip_context_menu_close:"Close context menu",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay:"Display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving:"Data saving mode",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",aria_label_autoplay:"Autoplay",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
53
53
  so\xA0the\xA0quality was changed to\xA0Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
54
- Try switching the\xA0quality to\xA0Auto.`},wh=v_;var ms=new Map;ms.set(Ch.EN,wh);ms.set(Ch.RU,xh);var Th=new Map,Wp=({language:t,pack:e,fallback:i})=>{if(ms.has(t)){let o=ms.get(t);ms.set(t,{...o,...e})}else ms.set(t,e);Th.set(t,i)},Kp=t=>ms.has(t),qp=(t,e,i,o)=>{var l;let n=ms.get(t),s=n==null?void 0:n[e];if(Sh(s)){let d=(l=Th.get(t))!=null?l:o,a=d?ms.get(d):void 0;s=a==null?void 0:a[e]}return Sh(s)?e+Object.values(i!=null?i:{}).join(" "):i?s.replaceAll(/{(\w+?)}/g,(d,a)=>{var u;return(u=i[a])!=null?u:""}):s},z=(t,e)=>{let{interfaceLanguage$:i}=ke(),o=ye(i),n=Ft();return qp(o,t,e,n.defaultLanguage)};import"@vkontakte/videoplayer-core/es2018";var tl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(tl||(tl={}));var g_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,h_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,__=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Oc="?",b_="X-Sentry-Auth",$_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function y_(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
55
- `),o,n;for(let s=0;s<i.length;++s){if(o=g_.exec(i[s]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||Oc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=__.exec(i[s]))n={filename:o[2],function:o[1]||Oc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=h_.exec(i[s]))s===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||Oc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=Oc),e.push(n)}return e.length?{value:Eh(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function Eh(t){return(t&&t.message||"No error message").split(`
56
- `).filter(i=>!!i)[0]}function x_(t){try{let e=y_(t);if(e)return e}catch(e){}return{value:Eh(t),type:t&&t.name,stacktrace:{frames:[]}}}function w_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Dc=class{constructor(e){if(e&&e.dsn){let i=$_.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),s=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(s?"/"+s:"")+"/api/"+n.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[x_(e)]}}}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let i=new XMLHttpRequest;i.open("POST",this.apiUrl,!0),i.setRequestHeader("Content-type","application/json"),i.setRequestHeader(b_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:w_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Ih(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function S_(){return window}var Hc=class t extends Dc{constructor(e,i=S_()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=u=>u,beforeBreadcrumb:s=u=>u,blacklistUrls:l=[],ignoreErrors:d=[],release:a=void 0}=this.options||{};this.plugins=o.map(u=>new u(this)),this.beforeSend=n,this.beforeBreadcrumb=s,this.blacklistUrls=l,this.ignoreErrors=d,this.release=a}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...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=>Ih(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=>Ih(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let n=this._state[o],s=Array.isArray(n)?n:null,l=e[o],d=Array.isArray(l)?l:null;return{...i,[o]:s||d?[...s||[],...d||[]]:{...typeof n!="string"?n:{},...typeof l!="string"?l:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};import{isNonNullable as Fc,Subscription as C_}from"@vkontakte/videoplayer-shared/es2018";var Uc=null,aa=class{constructor(e,i,o={}){!Uc&&e.dsn&&(this.sentryClient=new Hc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new C_,this.options=e,this.context=o,Uc=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Uc=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:n,context:s,options:l}=this,{sampleRate:d=0,whiteErrorIdList:a,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:v}=l,{errorType:p,category:b}=i;if(Fc(b)&&v.includes(b)||Fc(p)&&f.includes(p))return;if(Math.random()<=d||Fc(b)&&u.includes(b)||Fc(p)&&a.includes(p)){Object.keys(i).length&&n.setTags({version:this.version,...i}),(Object.keys(s).length||Object.keys(o).length)&&n.setExtras({...s,...o});try{p&&n.captureMessage(p,i.fatal?tl.fatal:tl.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return Uc}};var vs=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(vs||{});var zc=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()},Wc=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),kh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},Yl=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},As=()=>!!Yl(),Kc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},qc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Ph=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 Ah}from"@vkontakte/videoplayer-core/es2018";var Mh=()=>({title:z("hotkey_map_modal_title"),closeBtnText:z("hotkey_map_modal_close_btn_text"),groups:[{title:z("hotkey_map_group_title_common"),items:[{description:z("hotkey_map_item_mute_description"),value:z("hotkey_map_item_mute_value")},{description:z("hotkey_map_item_volume_up_description"),value:z("hotkey_map_item_volume_up_value")},{description:z("hotkey_map_item_volume_down_description"),value:z("hotkey_map_item_volume_down_value")},{description:z("hotkey_map_item_pip_description"),value:z("hotkey_map_item_pip_value")},{description:z("hotkey_map_item_full_screen_description"),value:z("hotkey_map_item_full_screen_value")},{description:z("hotkey_map_item_show_context_menu_description"),value:z("hotkey_map_item_show_context_menu_value")},{description:z("hotkey_map_item_show_hotkey_map_description"),value:z("hotkey_map_item_show_hotkey_map_value")}]},{title:z("hotkey_map_group_title_playback"),items:[{description:z("hotkey_map_item_play_toggle_description"),value:z("hotkey_map_item_play_toggle_value")},{description:z("hotkey_map_item_seek_backward_description"),value:z("hotkey_map_item_seek_backward_value")},{description:z("hotkey_map_item_seek_forward_description"),value:z("hotkey_map_item_seek_forward_value")},{description:z("hotkey_map_item_fast_seek_backward_description"),value:z("hotkey_map_item_fast_seek_backward_value")},{description:z("hotkey_map_item_fast_seek_forward_description"),value:z("hotkey_map_item_fast_seek_forward_value")},{description:z("hotkey_map_item_rate_down_description"),value:z("hotkey_map_item_rate_down_value")},{description:z("hotkey_map_item_rate_up_description"),value:z("hotkey_map_item_rate_up_value")},{description:z("hotkey_map_item_prev_frame_description"),value:z("hotkey_map_item_prev_frame_value")},{description:z("hotkey_map_item_next_frame_description"),value:z("hotkey_map_item_next_frame_value")},{description:z("hotkey_map_item_jump_seek_description"),value:z("hotkey_map_item_jump_seek_value")},{description:z("hotkey_map_item_next_video_description"),value:z("hotkey_map_item_next_video_value")},{description:z("hotkey_map_item_prev_video_description"),value:z("hotkey_map_item_prev_video_value")}]},{title:z("hotkey_map_group_title_subtitles"),items:[{description:z("hotkey_map_item_subtitles_toggle_description"),value:z("hotkey_map_item_subtitles_toggle_value")}]},{title:z("hotkey_map_group_title_episodes"),items:[{description:z("hotkey_map_item_prev_episode_description"),value:Ah.device.isApple?z("hotkey_map_item_prev_episode_mac_value"):z("hotkey_map_item_prev_episode_pc_value")},{description:z("hotkey_map_item_next_episode_description"),value:Ah.device.isApple?z("hotkey_map_item_next_episode_mac_value"):z("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as T_,ValueSubject as Qp}from"@vkontakte/videoplayer-shared/es2018";var la=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:T_(this.onResize.bind(this),300)};this.info={isActive$:new Qp(!1),isEnabled$:new Qp(!1),type:0};this.info.isEnabled$=new Qp(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}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,s;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(s=(n=this.externalEventHandlers).enterpictureinpicture)==null||s.call(n,e))}onLeavePictureInPicture(e){var n,s,l;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,o==null||o.removeEventListener("resize",this.eventHandlers.resize),(s=(n=this.externalEventHandlers).leavepictureinpicture)==null||s.call(n,e),(l=this.playerDummyElement)==null||l.$destroy()}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function da(t){return t instanceof la}import{devNull as Lh,now as Vh}from"@vkontakte/videoplayer-shared/es2018";Av();function jp(t,e){F(e,!1);let i=ke();Nt(()=>{i.getAdmanWrapper().startPostroll()}),Vr(),U()}import{noop as E_}from"@vkontakte/videoplayer-shared/es2018";var I_=(t,e)=>{t.stopPropagation(),e()()},k_=A('<div class="skip svelte-1k4i25s"> <svg class="icon svelte-1k4i25s" width="7" height="12" viewBox="0 0 7 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"></path></svg></div>'),P_=A("<div><!></div>"),A_={hash:"svelte-1k4i25s",code:".container.svelte-1k4i25s {position:absolute;top:14px;right:16px;padding:6px 10px;font-size:13px;color:#fff;background:rgba(0, 0, 0, 0.56);border-radius:6px;transition:color .2s;}.container-mobile.svelte-1k4i25s {bottom:14px;top:unset;font-size:15px;max-width:142px;}.icon.svelte-1k4i25s {margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s;}.skip.svelte-1k4i25s {width:86px;}.skippable.svelte-1k4i25s {cursor:pointer;color:var(--white);}.skippable.svelte-1k4i25s:hover {color:rgba(255, 255, 255, .75);}.skippable.svelte-1k4i25s:hover .icon:where(.svelte-1k4i25s) {fill:rgba(255, 255, 255, .75);}"};function Zp(t,e){F(e,!0),q(t,A_);let[i,o]=Be(),n=()=>S(u,"$isMobile",i),s=m(e,"position",3,0),l=m(e,"secondsToWatchBeforeSkip",3,0),d=m(e,"skipAd",3,E_),u=ke().ui.isMobile,f=g(()=>s()>0&&s()>=l());var v=P_();let p;var b=_(v);{var x=C=>{var T=k_();T.__click=[I_,d];var E=_(T);Ce(),h(T),O(M=>he(E,`${M!=null?M:""} `),[()=>z("skip_ads_now")]),$(C,T)},y=C=>{var T=jr();O(E=>he(T,E),[()=>z("skip_ads_after",{time:Math.ceil(l()-s()).toFixed(0)})]),$(C,T)};L(b,C=>{r(f)?C(x):C(y,!1)})}h(v),O(C=>p=J(v,1,"container svelte-1k4i25s",null,p,C),[()=>({"container-mobile":n(),skippable:r(f)})]),$(t,v),U(),o()}at(["click"]);var M_=A('<button class="svelte-1wy3dql"> </button>'),L_={hash:"svelte-1wy3dql",code:"button.svelte-1wy3dql {position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black;}"};function Xp(t,e){F(e,!1),q(t,L_),Vr();var i=M_(),o=_(i,!0);h(i),O(n=>he(o,n),[()=>z("visit_advertiser")],Pr),$(t,i),U()}var V_=A('<div class="top-gradient-mobile svelte-354ajf"></div>'),R_=A('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),N_={hash:"svelte-354ajf",code:`.container.svelte-354ajf {width:100%;height:100%;}.top-gradient-mobile.svelte-354ajf {position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
54
+ Try switching the\xA0quality to\xA0Auto.`},Ih=w_;var cs=new Map;cs.set(Ph.EN,Ih);cs.set(Ph.RU,Eh);var Ah=new Map,Qp=({language:t,pack:e,fallback:i})=>{if(cs.has(t)){let o=cs.get(t);cs.set(t,{...o,...e})}else cs.set(t,e);Ah.set(t,i)},Gp=t=>cs.has(t),Yp=(t,e,i,o)=>{var l;let n=cs.get(t),r=n==null?void 0:n[e];if(kh(r)){let d=(l=Ah.get(t))!=null?l:o,a=d?cs.get(d):void 0;r=a==null?void 0:a[e]}return kh(r)?e+Object.values(i!=null?i:{}).join(" "):i?r.replaceAll(/{(\w+?)}/g,(d,a)=>{var p;return(p=i[a])!=null?p:""}):r},F=(t,e)=>{let{interfaceLanguage$:i}=Ee(),o=$e(i),n=Ft();return Yp(o,t,e,n.defaultLanguage)};import"@vkontakte/videoplayer-core/es2018";var tl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(tl||(tl={}));var C_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,S_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,T_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Oc="?",E_="X-Sentry-Auth",I_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function k_(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
55
+ `),o,n;for(let r=0;r<i.length;++r){if(o=C_.exec(i[r]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||Oc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=T_.exec(i[r]))n={filename:o[2],function:o[1]||Oc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=S_.exec(i[r]))r===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||Oc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=Oc),e.push(n)}return e.length?{value:Mh(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function Mh(t){return(t&&t.message||"No error message").split(`
56
+ `).filter(i=>!!i)[0]}function P_(t){try{let e=k_(t);if(e)return e}catch(e){}return{value:Mh(t),type:t&&t.name,stacktrace:{frames:[]}}}function A_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Dc=class{constructor(e){if(e&&e.dsn){let i=I_.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),r=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(r?"/"+r:"")+"/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:[P_(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(E_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:A_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Lh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function M_(){return window}var Hc=class t extends Dc{constructor(e,i=M_()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=p=>p,beforeBreadcrumb:r=p=>p,blacklistUrls:l=[],ignoreErrors:d=[],release:a=void 0}=this.options||{};this.plugins=o.map(p=>new p(this)),this.beforeSend=n,this.beforeBreadcrumb=r,this.blacklistUrls=l,this.ignoreErrors=d,this.release=a}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new t({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send({...this.getRequestBlank(),message:e,level:i})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>Lh(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=>Lh(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],r=Array.isArray(n)?n:null,l=e[o],d=Array.isArray(l)?l:null;return{...i,[o]:r||d?[...r||[],...d||[]]:{...typeof n!="string"?n:{},...typeof l!="string"?l:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};import{isNonNullable as Fc,Subscription as L_}from"@vkontakte/videoplayer-shared/es2018";var Uc=null,na=class{constructor(e,i,o={}){!Uc&&e.dsn&&(this.sentryClient=new Hc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new L_,this.options=e,this.context=o,Uc=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Uc=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:r,options:l}=this,{sampleRate:d=0,whiteErrorIdList:a,whiteErrorCategoryList:p=[],blackErrorIdList:f,blackErrorCategoryList:v}=l,{errorType:u,category:$}=i;if(Fc($)&&v.includes($)||Fc(u)&&f.includes(u))return;if(Math.random()<=d||Fc($)&&p.includes($)||Fc(u)&&a.includes(u)){Object.keys(i).length&&n.setTags({version:this.version,...i}),(Object.keys(r).length||Object.keys(o).length)&&n.setExtras({...r,...o});try{u&&n.captureMessage(u,i.fatal?tl.fatal:tl.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return Uc}};var us=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(us||{});var zc=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()},Wc=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()},jl=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Es=()=>!!jl(),qc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Kc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Rh=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 Nh}from"@vkontakte/videoplayer-core/es2018";var Bh=()=>({title:F("hotkey_map_modal_title"),closeBtnText:F("hotkey_map_modal_close_btn_text"),groups:[{title:F("hotkey_map_group_title_common"),items:[{description:F("hotkey_map_item_mute_description"),value:F("hotkey_map_item_mute_value")},{description:F("hotkey_map_item_volume_up_description"),value:F("hotkey_map_item_volume_up_value")},{description:F("hotkey_map_item_volume_down_description"),value:F("hotkey_map_item_volume_down_value")},{description:F("hotkey_map_item_pip_description"),value:F("hotkey_map_item_pip_value")},{description:F("hotkey_map_item_full_screen_description"),value:F("hotkey_map_item_full_screen_value")},{description:F("hotkey_map_item_show_context_menu_description"),value:F("hotkey_map_item_show_context_menu_value")},{description:F("hotkey_map_item_show_hotkey_map_description"),value:F("hotkey_map_item_show_hotkey_map_value")}]},{title:F("hotkey_map_group_title_playback"),items:[{description:F("hotkey_map_item_play_toggle_description"),value:F("hotkey_map_item_play_toggle_value")},{description:F("hotkey_map_item_seek_backward_description"),value:F("hotkey_map_item_seek_backward_value")},{description:F("hotkey_map_item_seek_forward_description"),value:F("hotkey_map_item_seek_forward_value")},{description:F("hotkey_map_item_fast_seek_backward_description"),value:F("hotkey_map_item_fast_seek_backward_value")},{description:F("hotkey_map_item_fast_seek_forward_description"),value:F("hotkey_map_item_fast_seek_forward_value")},{description:F("hotkey_map_item_rate_down_description"),value:F("hotkey_map_item_rate_down_value")},{description:F("hotkey_map_item_rate_up_description"),value:F("hotkey_map_item_rate_up_value")},{description:F("hotkey_map_item_prev_frame_description"),value:F("hotkey_map_item_prev_frame_value")},{description:F("hotkey_map_item_next_frame_description"),value:F("hotkey_map_item_next_frame_value")},{description:F("hotkey_map_item_jump_seek_description"),value:F("hotkey_map_item_jump_seek_value")},{description:F("hotkey_map_item_next_video_description"),value:F("hotkey_map_item_next_video_value")},{description:F("hotkey_map_item_prev_video_description"),value:F("hotkey_map_item_prev_video_value")}]},{title:F("hotkey_map_group_title_subtitles"),items:[{description:F("hotkey_map_item_subtitles_toggle_description"),value:F("hotkey_map_item_subtitles_toggle_value")}]},{title:F("hotkey_map_group_title_episodes"),items:[{description:F("hotkey_map_item_prev_episode_description"),value:Nh.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:Nh.device.isApple?F("hotkey_map_item_next_episode_mac_value"):F("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as V_,ValueSubject as jp}from"@vkontakte/videoplayer-shared/es2018";var ra=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:V_(this.onResize.bind(this),300)};this.info={isActive$:new jp(!1),isEnabled$:new jp(!1),type:0};this.info.isEnabled$=new jp(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.removeEventHandlers(),await this.request(),this.addEventHandlers())}async request(){var e;if(!(!this.isSupported()||this.isActive()))try{await((e=this.videoElement)==null?void 0:e.requestPictureInPicture())}catch(i){this.isRequested=!1}}async exit(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.removeEventHandlers(),this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"),this.addEventHandlers())}addEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}setExternalEventHandlers(e){this.externalEventHandlers={...e}}removeEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.removeEventHandlers(),await this.exit(),this.info.isActive$.next(!1),this.isRequested=!1}onEnterPictureInPicture(e){var n,r;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(r=(n=this.externalEventHandlers).enterpictureinpicture)==null||r.call(n,e))}onLeavePictureInPicture(e){var n,r;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,o==null||o.removeEventListener("resize",this.eventHandlers.resize),(r=(n=this.externalEventHandlers).leavepictureinpicture)==null||r.call(n,e)}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function sa(t){return t instanceof ra}import{devNull as Oh,now as Dh}from"@vkontakte/videoplayer-shared/es2018";Nv();function Jp(t,e){D(e,!1);let i=Ee();Nt(()=>{i.getAdmanWrapper().startPostroll()}),Vr(),H()}import{noop as R_}from"@vkontakte/videoplayer-shared/es2018";var N_=(t,e)=>{t.stopPropagation(),e()()},B_=M('<div class="skip svelte-1k4i25s"> <svg class="icon svelte-1k4i25s" width="7" height="12" viewBox="0 0 7 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"></path></svg></div>'),O_=M("<div><!></div>"),D_={hash:"svelte-1k4i25s",code:".container.svelte-1k4i25s {position:absolute;top:14px;right:16px;padding:6px 10px;font-size:13px;color:#fff;background:rgba(0, 0, 0, 0.56);border-radius:6px;transition:color .2s;}.container-mobile.svelte-1k4i25s {bottom:14px;top:unset;font-size:15px;max-width:142px;}.icon.svelte-1k4i25s {margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s;}.skip.svelte-1k4i25s {width:86px;}.skippable.svelte-1k4i25s {cursor:pointer;color:var(--white);}.skippable.svelte-1k4i25s:hover {color:rgba(255, 255, 255, .75);}.skippable.svelte-1k4i25s:hover .icon:where(.svelte-1k4i25s) {fill:rgba(255, 255, 255, .75);}"};function ef(t,e){D(e,!0),z(t,D_);let[i,o]=Fe(),n=()=>C(p,"$isMobile",i),r=m(e,"position",3,0),l=m(e,"secondsToWatchBeforeSkip",3,0),d=m(e,"skipAd",3,R_),p=Ee().ui.isMobile,f=h(()=>r()>0&&r()>=l());var v=O_();let u;var $=_(v);{var w=S=>{var T=B_();T.__click=[N_,d];var I=_(T);Ce(),g(T),O(A=>he(I,`${A!=null?A:""} `),[()=>F("skip_ads_now")]),b(S,T)},y=S=>{var T=Yr();O(I=>he(T,I),[()=>F("skip_ads_after",{time:Math.ceil(l()-r()).toFixed(0)})]),b(S,T)};R($,S=>{s(f)?S(w):S(y,!1)})}g(v),O(S=>u=J(v,1,"container svelte-1k4i25s",null,u,S),[()=>({"container-mobile":n(),skippable:s(f)})]),b(t,v),H(),o()}dt(["click"]);var H_=M('<button class="svelte-1wy3dql"> </button>'),F_={hash:"svelte-1wy3dql",code:"button.svelte-1wy3dql {position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black;}"};function tf(t,e){D(e,!1),z(t,F_),Vr();var i=H_(),o=_(i,!0);g(i),O(n=>he(o,n),[()=>F("visit_advertiser")],Pr),b(t,i),H()}var U_=M('<div class="top-gradient-mobile svelte-354ajf"></div>'),z_=M('<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(
57
57
  360deg,
58
58
  rgba(0, 0, 0, 0) 0%,
59
59
  rgba(0, 0, 0, 0.05) 12%,
@@ -63,7 +63,7 @@ Try switching the\xA0quality to\xA0Auto.`},wh=v_;var ms=new Map;ms.set(Ch.EN,wh)
63
63
  rgba(0, 0, 0, 0.5) 77%,
64
64
  rgba(0, 0, 0, 0.55) 88%,
65
65
  rgba(0, 0, 0, 0.65) 100%
66
- );}`};function jl(t,e){F(e,!0),q(t,N_);let[i,o]=Be(),n=()=>S(D,"$canSkipAd",i),s=()=>S(Y,"$adPlaybackState",i),l=()=>S(E,"$isMobile",i),d=()=>S(H,"$adPosition",i),a=()=>S(W,"$secondsToWatchBeforeSkipAd",i),u=()=>S(T,"$isVideoEnded",i),f=m(e,"adsSlotId",3,void 0),v=m(e,"adsParams",3,void 0),p=m(e,"adsPreviewParam",3,void 0),b=m(e,"adsAutoplayParam",3,void 0),x=m(e,"duration",3,0),y=ke(),C=Ft(),T=y.state.isEnded$,E=y.ui.isMobile,M=C.ads.isMobileGoToSiteButton,k=j(void 0),I=j(void 0),N=!1,Y=y.ads.playbackState,D=y.ads.canSkip,H=y.ads.position,W=y.ads.secondsToWatchBeforeSkip,ee=g(()=>n()&&s()!=="inactive"),K=g(()=>l()&&s()!=="inactive"&&M);Nt(()=>{var re;let ie=y.getAdmanWrapper();if(Lh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[Vh(),f()]}),!f()){ie.onAdmanLoadingError();return}let Ke=Ee=>{ie.initAdman(Ee),N=!0},ce=new AbortController,fe=()=>{ce.abort()},{width:$e,height:Z}=ye(y.ui.playerSize),qe=ye(y.ui.isFullscreen),Ze=(re=b())!=null?re:ye(y.ui.isAutoplay),Pe={width:$e,height:Z,isFullscreen:qe,isAutoplay:Ze,adsContainer:r(k),adsVideoElement:r(I),slotId:f(),params:v(),previewParam:p(),duration:x()};return window.AdmanHTML?Ke(Pe):ie.loadAdman(ce.signal).then(()=>{Ke(Pe)}).catch(()=>{ie.onAdmanLoadingError()}),()=>{Lh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[Vh(),f()]}),!N&&fe()}});var de=R_(),oe=_(de);{var we=ie=>{var Ke=V_();$(ie,Ke)};L(oe,ie=>{l()&&ie(we)})}var Ie=P(oe,2);et(Ie,ie=>B(I,ie),()=>r(I));var pe=P(Ie,2);{var le=ie=>{Zp(ie,{get position(){return d()},get secondsToWatchBeforeSkip(){return a()},get skipAd(){return y.actions.internal.skipAd}})};L(pe,ie=>{r(ee)&&ie(le)})}var Ae=P(pe,2);{var te=ie=>{jp(ie,{})};L(Ae,ie=>{u()&&ie(te)})}var R=P(Ae,2);{var Ge=ie=>{Xp(ie,{})};L(R,ie=>{r(K)&&ie(Ge)})}h(de),et(de,ie=>B(k,ie),()=>r(k)),$(t,de),U(),o()}var mn=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let o=Math.floor(e/60);e-=o*60;let n=[o,e].map(s=>String(s).padStart(2,"0")).join(":");return i>0&&(n=`${i}:${n}`),n};var B_=Te('<svg><!><path fill="none" stroke="var(--btn-color, #fff)" stroke-width="2" d="M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"></path><path fill="var(--btn-color, #f0f2f5)" fill-rule="evenodd" d="M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"></path></svg>');function Jp(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=B_();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(2),h(o),$(t,o)}var O_=Te('<svg><!><rect width="42" height="20" fill="var(--timeline-slider-filled-active-live-bg, #ff3347)" rx="5"></rect><path fill="#f2f3f5" fill-rule="evenodd" d="M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z" clip-rule="evenodd"></path></svg>');function ef(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=O_();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(2),h(o),$(t,o)}function Zl(t,e){let i=m(e,"isActive",3,!1);var o=Fe(),n=ve(o);{var s=d=>{ef(d,{})},l=d=>{Jp(d,{})};L(n,d=>{i()?d(s):d(l,!1)})}$(t,o)}var D_=A('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),H_=A('<div class="live-icon svelte-1s15d2i"><!></div>'),F_=A('<span class="text svelte-1s15d2i"> </span>'),U_=A("<div><!> <!></div>"),z_={hash:"svelte-1s15d2i",code:`.wrapper.svelte-1s15d2i {padding:2px 6px;white-space:nowrap;border-radius:4px;background-color:var(--black-alpha-40);transition:visibility var(--controls-transition-duration),
66
+ );}`};function Zl(t,e){D(e,!0),z(t,W_);let[i,o]=Fe(),n=()=>C(U,"$canSkipAd",i),r=()=>C(K,"$adPlaybackState",i),l=()=>C(I,"$isMobile",i),d=()=>C(W,"$adPosition",i),a=()=>C(G,"$secondsToWatchBeforeSkipAd",i),p=()=>C(T,"$isVideoEnded",i),f=m(e,"adsSlotId",3,void 0),v=m(e,"adsParams",3,void 0),u=m(e,"adsPreviewParam",3,void 0),$=m(e,"adsAutoplayParam",3,void 0),w=m(e,"duration",3,0),y=Ee(),S=Ft(),T=y.state.isEnded$,I=y.ui.isMobile,A=S.ads.isMobileGoToSiteButton,k=Y(void 0),E=Y(void 0),L=!1,K=y.ads.playbackState,U=y.ads.canSkip,W=y.ads.position,G=y.ads.secondsToWatchBeforeSkip,te=h(()=>n()&&r()!=="inactive"),j=h(()=>l()&&r()!=="inactive"&&A);Nt(()=>{var Ae;let _e=y.getAdmanWrapper();if(Oh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[Dh(),f()]}),!f()){_e.onAdmanLoadingError();return}let ve=Te=>{_e.initAdman(Te),L=!0},ce=new AbortController,ne=()=>{ce.abort()},{width:ye,height:Z}=$e(y.ui.playerSize),Ke=$e(y.ui.isFullscreen),ue=(Ae=$())!=null?Ae:$e(y.ui.isAutoplay),ke={width:ye,height:Z,isFullscreen:Ke,isAutoplay:ue,adsContainer:s(k),adsVideoElement:s(E),slotId:f(),params:v(),previewParam:u(),duration:w()};return window.AdmanHTML?ve(ke):_e.loadAdman(ce.signal).then(()=>{ve(ke)}).catch(()=>{_e.onAdmanLoadingError()}),()=>{Oh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[Dh(),f()]}),!L&&ne()}});var ae=z_(),de=_(ae);{var we=_e=>{var ve=U_();b(_e,ve)};R(de,_e=>{l()&&_e(we)})}var Re=P(de,2);tt(Re,_e=>B(E,_e),()=>s(E));var me=P(Re,2);{var le=_e=>{ef(_e,{get position(){return d()},get secondsToWatchBeforeSkip(){return a()},get skipAd(){return y.actions.internal.skipAd}})};R(me,_e=>{s(te)&&_e(le)})}var Ve=P(me,2);{var ee=_e=>{Jp(_e,{})};R(Ve,_e=>{p()&&_e(ee)})}var N=P(Ve,2);{var Oe=_e=>{tf(_e,{})};R(N,_e=>{s(j)&&_e(Oe)})}g(ae),tt(ae,_e=>B(k,_e),()=>s(k)),b(t,ae),H(),o()}var un=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let o=Math.floor(e/60);e-=o*60;let n=[o,e].map(r=>String(r).padStart(2,"0")).join(":");return i>0&&(n=`${i}:${n}`),n};var q_=Se('<svg><!><path fill="none" stroke="var(--btn-color, #fff)" stroke-width="2" d="M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"></path><path fill="var(--btn-color, #f0f2f5)" fill-rule="evenodd" d="M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"></path></svg>');function of(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=q_();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}var K_=Se('<svg><!><rect width="42" height="20" fill="var(--timeline-slider-filled-active-live-bg, #ff3347)" rx="5"></rect><path fill="#f2f3f5" fill-rule="evenodd" d="M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z" clip-rule="evenodd"></path></svg>');function nf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=K_();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}function Xl(t,e){let i=m(e,"isActive",3,!1);var o=ze(),n=pe(o);{var r=d=>{nf(d,{})},l=d=>{of(d,{})};R(n,d=>{i()?d(r):d(l,!1)})}b(t,o)}var Q_=M('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),G_=M('<div class="live-icon svelte-1s15d2i"><!></div>'),Y_=M('<span class="text svelte-1s15d2i"> </span>'),j_=M("<div><!> <!></div>"),Z_={hash:"svelte-1s15d2i",code:`.wrapper.svelte-1s15d2i {padding:2px 6px;white-space:nowrap;border-radius:4px;background-color:var(--black-alpha-40);transition:visibility var(--controls-transition-duration),
67
67
  opacity var(--controls-transition-duration);}.wrapper.live.svelte-1s15d2i {font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red);padding:0 7px;}.equalizer.svelte-1s15d2i {display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px;}.live.svelte-1s15d2i .equalizer:where(.svelte-1s15d2i) {margin-top:-2px;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i) {width:2px;height:10px;margin-right:2px;background:var(--btn-color, --white);position:absolute;bottom:0;transform-origin:50% 100%;
68
68
  animation: 1.5s infinite linear alternate;animation-play-state:paused;}.playing.svelte-1s15d2i .equalizer:where(.svelte-1s15d2i) .col:where(.svelte-1s15d2i) {animation-play-state:running;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(1) {left:0;
69
69
  animation-name: svelte-1s15d2i-thumb-timer-equalizer-col1;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(2) {left:3px;
@@ -134,10 +134,10 @@ Try switching the\xA0quality to\xA0Auto.`},wh=v_;var ms=new Map;ms.set(Ch.EN,wh)
134
134
  100% {
135
135
  transform: scaleY(0.6);
136
136
  }
137
- }.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function Xl(t,e){q(t,z_);let i=m(e,"withEqualizer",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1);var s=U_();let l;var d=_(s);{var a=p=>{var b=D_();$(p,b)};L(d,p=>{i()&&p(a)})}var u=P(d,2);{var f=p=>{var b=H_(),x=_(b);Zl(x,{isActive:!0}),h(b),$(p,b)},v=p=>{var b=F_(),x=_(b,!0);h(b),O(()=>he(x,e.time)),$(p,b)};L(u,p=>{o()?p(f):p(v,!1)})}h(s),O(p=>l=J(s,1,"wrapper svelte-1s15d2i",null,l,p),[()=>({live:o(),playing:n()})]),$(t,s)}var W_=A('<div role="timer" data-testid="thumb-timer"><!></div>'),K_={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),
138
- opacity var(--controls-transition-duration);}.thumb-timer.hidden.svelte-1b40w20 {visibility:hidden;opacity:0;}`};function Jl(t,e){F(e,!0),q(t,K_);let i=m(e,"isHidden",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1),s=g(()=>mn(e.duration-e.position));var l=W_();let d;var a=_(l);Xl(a,{get time(){return r(s)},get isLive(){return o()},get isPlaying(){return n()},withEqualizer:!0}),h(l),O(u=>d=J(l,1,"thumb-timer svelte-1b40w20",null,d,u),[()=>({hidden:i()})]),$(t,l),U()}var il=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 ib}from"@vkontakte/videoplayer-core/es2018";import{clientChecker as Rh}from"@vkontakte/videoplayer-core/es2018";var tf="focus-hidden";var vr=t=>{t.stopPropagation(),t.preventDefault()},of=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(tf)},Q_=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},G_=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},Y_=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},j_=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},Nh=t=>t.code==="Escape",Z_=t=>t.code==="ArrowLeft",ed=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},Bh=t=>{Y_(t)?(vr(t),G_(t.target)):j_(t)&&(vr(t),Q_(t.target))},Vs=t=>!Rh.device.isAndroid&&(t==null?void 0:t.detail)===0||Rh.device.isAndroid&&(t==null?void 0:t.pointerType)==="",ol=async(t,e,i)=>{await bo(),t&&!t.classList.contains("opened")&&!e&&ye(i)&&(await bo(),i.set(!1),t.focus())},Oh=async(t,e,i)=>{await bo(),t&&!e&&ye(i)&&(i.set(!1),t.focus())},td=async(t,e,i,o=!1)=>{if(await bo(),!!t&&e&&!o){let s=t.children[0];s==null||s.classList.toggle(tf,!i),s==null||s.focus()}},Dh=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Qc=(t,e)=>{Bh(t),of(t.target),Nh(t)&&(vr(t),e())},Gc=async(t,e)=>{ed(t,["ArrowRight"])&&(vr(t),e())},Hh=async(t,e,i)=>{if(Bh(t),Z_(t)){vr(t),e();return}Nh(t)&&(vr(t),i())},nl=(t,e)=>{ed(t)&&(vr(t),e())},Fh=(t,e,i)=>{if(ed(t))vr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),vr(t);return}o==="ArrowRight"&&!e&&(i(!0),vr(t))}},Uh=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},zh=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 Yc,isValidURL as ob}from"@vkontakte/videoplayer-shared/es2018";var Rr={"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 Wh}from"@vkontakte/videoplayer-shared/es2018";var J_=(t,e)=>{nl(t,()=>e())},eb=A('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),tb={hash:"svelte-1hm4mm9",code:".item.svelte-1hm4mm9 {padding:8px 16px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;line-height:18px;letter-spacing:-0.14px;white-space:nowrap;}.item.svelte-1hm4mm9:hover {background:rgba(66, 66, 66, .5);color:var(--white);}"};function nf(t,e){F(e,!0),q(t,tb);let i=m(e,"onClick",3,Wh),o=m(e,"closeContextMenu",3,Wh),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var s=eb();s.__click=n,s.__keydown=[J_,n];var l=_(s,!0);h(s),O(()=>{var d;Oe(s,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Oe(s,"data-testid",e.id),he(l,e.label)}),$(t,s),U()}at(["click","keydown"]);var ua=(t,e)=>t.weight-e.weight;var id=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(id||{});var nb=(t,e)=>{Qc(t,e)},rb=t=>{t.preventDefault()},sb=A('<ul role="menu" class="svelte-1p5ukkp"></ul>'),ab={hash:"svelte-1p5ukkp",code:"ul.svelte-1p5ukkp {position:absolute;z-index:var(--context-menu-z-index);border-radius:8px;background:rgba(0, 0, 0, 0.72);transition:visibility .1s,opacity .1s;list-style:none;margin:0;padding:6px 0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto;}"};function rf(t,e){F(e,!0),q(t,ab);let[i,o]=Be(),n=()=>S(ee,"$isLive$",i),s=()=>S(we,"$isPiPEnabled$",i),l=()=>S(W,"$chromecastState$",i),d=()=>S(Ie,"$pictureInPictureApiIsActive$",i),a=()=>S(oe,"$isLooped$",i),u=()=>S(K,"$positionExact$",i),f=()=>S(Y,"$additionalContextMenuItems$",i),v=m(e,"visible",3,!1),p=m(e,"position",19,()=>({top:0,left:0})),b=m(e,"playerContainerRef",3,void 0),x=m(e,"controlsContainerRef",3,void 0),y=m(e,"menuElementRef",15,void 0),C=j(0),T=j(0),E=ke(),{pictureInPicture$:M}=co(),k=Ft(),I=E.ui.contextMenu.visible$,N=E.ui.debugPanelVisible,Y=E.ui.additionalContextMenuItems$,D=E.ui.t,H=E.actions.internal.togglePictureInPicture,W=E.state.chromecastState$,ee=E.state.isLive$,K=E.state.positionExact$,de=E.state.isInteractive,oe=E.state.looped$,{isEnabled$:we,isActive$:Ie}=M,pe=g(()=>{var me;return k.features.copyVideoLink&&((me=E.callbacks)==null?void 0:me.onCopyVideoLink)}),le=g(()=>r(pe)&&!n()&&!de),Ae=g(()=>{var me;return!!((me=E.callbacks)!=null&&me.onCopyEmbedCodeClicked)}),te=g(()=>s()&&l()!==ib.CONNECTED&&!de),R=g(()=>k.features.videoRotate&&!de),Ge=g(()=>k.showSupport&&!d()),ie=g(()=>k.features.saveTraceInfoToFile),Ke=()=>{var me;I.set(!1),(me=e.returnFocus)==null||me.call(e)},ce=(me,Re)=>{if(!y()||!b()||!x())return;let Xe=y().getBoundingClientRect(),Ue=b().getBoundingClientRect();B(C,me-Ue.left),B(T,Re-Ue.top),r(C)+Xe.width>Ue.width&&B(C,Ue.width-Xe.width),r(T)+Xe.height>Ue.height&&B(T,Ue.height-Xe.height),B(C,Math.max(r(C),0),!0),B(T,Math.max(r(T),0),!0)};We(()=>{(async()=>{if(y()&&b()&&x()){await bo();let{top:Re,left:Xe,bottom:Ue,right:Pt}=p(),St=Xe!=null?Xe:0,yt=Re!=null?Re:0,pt=y().getBoundingClientRect();Yc(Xe)&&!Yc(Pt)&&(St=Pt-pt.width),Yc(Re)&&!Yc(Ue)&&(yt=Ue-pt.height),St=Math.max(St,0),yt=Math.max(yt,0),ce(St,yt)}})()});let fe=()=>{E.actions.internal.videoRotate()},$e=()=>{ob(e.supportLink)&&window.open(e.supportLink,"_blank"),E.actions.internal.reportProblem(),E.actions.internal.pause()},Z=()=>{let me=E.actions.internal.getDebugTextData();if(k.features.saveDebugInfoToFile){let Re=new Blob([...me],{type:"plain/text"}),Xe=window.URL.createObjectURL(Re);sa(Xe,"vk_player_debug_info","txt")}else il(E.actions.internal.getDebugTextData())},qe=()=>{let me=E.actions.internal.getTraceTextData(),Re=new Blob([...me],{type:"application/json"}),Xe=window.URL.createObjectURL(Re);sa(Xe,"vk_player_trace_info","json")},Ze=()=>{N.set(!0)},Pe=async()=>{var me;try{H()}finally{(me=e.returnFocus)==null||me.call(e)}},re=()=>{E.actions.internal.setLooped(!a())},Ee=()=>{var me,Re;if(r(Ae)){let Xe=(Re=(me=E.callbacks)==null?void 0:me.onCopyEmbedCodeClicked)==null?void 0:Re.call(me);Xe&&il(Xe)}},Qe=(me=!1)=>{var Re,Xe;if((Re=E.callbacks)!=null&&Re.onCopyVideoLink){let Ue=(Xe=E.callbacks)==null?void 0:Xe.onCopyVideoLink(me,u());Ue&&il(Ue)}},rt=g(()=>k.features.saveDebugInfoToFile?D("menu_save_debug"):D("menu_copy_debug")),nt=g(()=>r(pe)?{id:"copy-link",weight:Rr["copy-link"],label:D("menu_copy_video_link"),onClick:()=>Qe()}:void 0),Mt=g(()=>r(le)?{id:"copy-link-timestamp",weight:Rr["copy-link-timestamp"],label:D("menu_copy_video_link_with_timestamp"),onClick:()=>Qe(!0)}:void 0),Je=g(()=>r(Ae)?{id:"copy-embed-code",weight:Rr["copy-embed-code"],label:D("menu_copy_embed_code"),onClick:Ee}:void 0),dt=g(()=>r(te)?{id:"pip",weight:Rr.pip,label:d()?D("menu_pip_close"):D("menu_pip"),onClick:Pe}:void 0),qt=g(()=>({id:"video-loop",weight:Rr["video-loop"],label:a()?D("menu_video_loop_off"):D("menu_video_loop_on"),ariaLabel:D("aria_label_menu_loop"),onClick:re})),oi=g(()=>r(R)?{id:"rotate",weight:Rr.rotate,label:D("menu_video_rotate"),ariaLabel:D("aria_label_menu_rotate"),onClick:fe}:void 0),Kt=g(()=>r(Ge)?{id:"report",weight:Rr.report,label:D("menu_report"),ariaLabel:`${D("menu_report")}. ${D("aria_label_new_tab_alert")}`,onClick:$e}:void 0),wt=g(()=>({id:"save-debug",weight:Rr["save-debug"],label:r(rt),onClick:Z})),ne=g(()=>r(ie)?{id:"save-trace",weight:Rr["save-trace"],label:D("menu_save_debug"),onClick:qe}:void 0),Lt=g(()=>({id:"debug-info",weight:Rr["debug-info"],label:D("menu_debug_overlay"),ariaLabel:D("aria_label_menu_debug_overlay"),onClick:Ze})),ge=g(()=>[r(nt),r(Mt),r(Je),r(dt),r(qt),r(oi),r(Kt),r(wt),r(ne),r(Lt),...f()].filter(me=>!!me).sort(ua));var X=Fe(),xe=ve(X);{var He=me=>{var Re=sb();Re.__contextmenu=[rb],Re.__keydown=[nb,Ke],xi(Re,21,()=>r(ge),Xe=>Xe.id,(Xe,Ue)=>{nf(Xe,{get id(){return r(Ue).id},get label(){return r(Ue).label},get ariaLabel(){return r(Ue).ariaLabel},get onClick(){return r(Ue).onClick},closeContextMenu:Ke})}),h(Re),et(Re,Xe=>y(Xe),()=>y()),O(()=>{var Xe,Ue;return it(Re,`top: ${(Xe=r(T))!=null?Xe:""}px; left: ${(Ue=r(C))!=null?Ue:""}px;`)}),$(me,Re)};L(xe,me=>{v()&&me(He)})}$(t,X),U(),o()}at(["contextmenu","keydown"]);var jc=class{constructor(e){this.value=e,this.next=null}};var rl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new jc(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 lb=A('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),db={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 od(t,e){F(e,!0),q(t,db);let i=m(e,"values",19,()=>[]),o=j(void 0),n=j(null),s=16,l=120,d=60,a=l/d;Nt(()=>{r(o).width=l,r(o).height=s,B(n,r(o).getContext("2d"),!0)});function u(p,b,x,y,C){C===0&&(C=1),p.fillStyle="#fff",p.fillRect(b,x,y,C)}We(()=>{let p="";if(r(n)){let b=i()[0];for(let y=1;y<i().length;y++)i()[y]>b&&(b=i()[y]);r(n).clearRect(0,0,l,s);let x=d-1;for(let y=i().length-1;y>=0;y--){let C=x*a,T=b>0?s*(i()[y]/b):0;u(r(n),C,0,a,T),p=T+" "+p,x--}}});var f=lb(),v=_(f);et(v,p=>B(o,p),()=>r(o)),h(f),$(t,f),U()}import{safeStorage as Kh}from"@vkontakte/videoplayer-shared/es2018";var cb=(t,e)=>{t.stopPropagation(),Kh.remove(zl),e.set(!1)},ub=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),pb=A('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),fb=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),mb=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),vb=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),gb=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),hb=A('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),_b=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),bb=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),$b=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),yb=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),xb=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),wb=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),Sb=A('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),Cb=A('<div role="region"><button class="close svelte-4deykz" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-4deykz"><div class="svelte-4deykz"><div class="svelte-4deykz">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">FPS</div> <!> <span> </span></div></div></div>'),Tb={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 nd(t,e){F(e,!0),q(t,Tb);let[i,o]=Be(),n=()=>S(d,"$isMobile",i),s=ke(),l=s.ui.debugPanelVisible,d=s.ui.isMobile,a=j(ii(s.actions.internal.getDebugPanelData())),u=s.actions.internal.getVideoElement(),f=j(0),v=j(0),p=j(0),b=new rl(60),x=new rl(60),y=new rl(60),C=j(ii([])),T=j(ii([])),E=j(ii([])),M=z("aria_label_debug_panel");Nt(()=>{Kh.set(zl,"true"),s.actions.internal.startLogging(),u&&(B(v,u.getVideoPlaybackQuality().droppedVideoFrames,!0),B(f,u.getVideoPlaybackQuality().totalVideoFrames,!0));let ge=window.setInterval(()=>{B(a,s.actions.internal.getDebugPanelData(),!0)},500),X;return u&&(X=window.setInterval(()=>{if(u){B(v,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let xe=u.getVideoPlaybackQuality().totalVideoFrames;B(p,xe-r(f)),B(f,xe,!0),b.push(r(p)),r(a).speed&&x.push(r(a).speed),r(a).bitrate&&y.push(r(a).bitrate),B(C,b.getValuesFromBottom(),!0),B(T,x.getValuesFromBottom(),!0),B(E,y.getValuesFromBottom(),!0)}},1e3)),()=>{s.actions.internal.stopLogging(),clearInterval(ge),X&&clearInterval(X)}});var k=Cb();let I;var N=_(k);N.__click=[cb,l];var Y=P(N,2),D=_(Y),H=P(_(D),2),W=_(H,!0);h(H),h(D);var ee=P(D,2);{var K=ge=>{var X=ub(),xe=P(_(X),2),He=_(xe,!0);h(xe),h(X),O(()=>he(He,r(a).id)),$(ge,X)};L(ee,ge=>{r(a).id&&ge(K)})}var de=P(ee,2);{var oe=ge=>{var X=pb(),xe=P(_(X),2),He=_(xe,!0);h(xe),h(X),O(()=>he(He,r(a).vsid)),$(ge,X)};L(de,ge=>{r(a).vsid&&ge(oe)})}var we=P(de,2);{var Ie=ge=>{var X=fb(),xe=P(_(X),2),He=_(xe,!0);h(xe),h(X),O(()=>he(He,r(a).provider)),$(ge,X)};L(we,ge=>{r(a).provider&&ge(Ie)})}var pe=P(we,2);{var le=ge=>{var X=mb(),xe=P(_(X),2),He=_(xe);h(xe),h(X),O(()=>{var me,Re;return he(He,`Video: ${(me=r(a).videoCodec||"")!=null?me:""} ${r(a).hdr?"(HDR)":""}
137
+ }.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function Jl(t,e){z(t,Z_);let i=m(e,"withEqualizer",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1);var r=j_();let l;var d=_(r);{var a=u=>{var $=Q_();b(u,$)};R(d,u=>{i()&&u(a)})}var p=P(d,2);{var f=u=>{var $=G_(),w=_($);Xl(w,{isActive:!0}),g($),b(u,$)},v=u=>{var $=Y_(),w=_($,!0);g($),O(()=>he(w,e.time)),b(u,$)};R(p,u=>{o()?u(f):u(v,!1)})}g(r),O(u=>l=J(r,1,"wrapper svelte-1s15d2i",null,l,u),[()=>({live:o(),playing:n()})]),b(t,r)}var X_=M('<div role="timer" data-testid="thumb-timer"><!></div>'),J_={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),
138
+ opacity var(--controls-transition-duration);}.thumb-timer.hidden.svelte-1b40w20 {visibility:hidden;opacity:0;}`};function ed(t,e){D(e,!0),z(t,J_);let i=m(e,"isHidden",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1),r=h(()=>un(e.duration-e.position));var l=X_();let d;var a=_(l);Jl(a,{get time(){return s(r)},get isLive(){return o()},get isPlaying(){return n()},withEqualizer:!0}),g(l),O(p=>d=J(l,1,"thumb-timer svelte-1b40w20",null,d,p),[()=>({hidden:i()})]),b(t,l),H()}var il=t=>{if(!navigator.clipboard){Hh(t);return}navigator.clipboard.writeText(t).catch(()=>Hh(t))};function Hh(t){if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}}import{ChromecastState as cb}from"@vkontakte/videoplayer-core/es2018";import{clientChecker as Fh}from"@vkontakte/videoplayer-core/es2018";var rf="focus-hidden";var vr=t=>{t.stopPropagation(),t.preventDefault()},sf=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(rf)},tb=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},ib=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},ob=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},nb=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},Uh=t=>t.code==="Escape",rb=t=>t.code==="ArrowLeft",td=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},zh=t=>{ob(t)?(vr(t),ib(t.target)):nb(t)&&(vr(t),tb(t.target))},Ps=t=>!Fh.device.isAndroid&&(t==null?void 0:t.detail)===0||Fh.device.isAndroid&&(t==null?void 0:t.pointerType)==="",ol=async(t,e,i)=>{await ho(),t&&!t.classList.contains("opened")&&!e&&$e(i)&&(await ho(),i.set(!1),t.focus())},Wh=async(t,e,i)=>{await ho(),t&&!e&&$e(i)&&(i.set(!1),t.focus())},id=async(t,e,i,o=!1)=>{if(await ho(),!!t&&e&&!o){let r=t.children[0];r==null||r.classList.toggle(rf,!i),r==null||r.focus()}},qh=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Qc=(t,e)=>{zh(t),sf(t.target),Uh(t)&&(vr(t),e())},Gc=async(t,e)=>{td(t,["ArrowRight"])&&(vr(t),e())},Kh=async(t,e,i)=>{if(zh(t),rb(t)){vr(t),e();return}Uh(t)&&(vr(t),i())},nl=(t,e)=>{td(t)&&(vr(t),e())},Qh=(t,e,i)=>{if(td(t))vr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),vr(t);return}o==="ArrowRight"&&!e&&(i(!0),vr(t))}},Gh=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},Yh=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 Yc,isValidURL as ub}from"@vkontakte/videoplayer-shared/es2018";var Rr={"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 jh}from"@vkontakte/videoplayer-shared/es2018";var ab=(t,e)=>{nl(t,()=>e())},lb=M('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),db={hash:"svelte-1hm4mm9",code:".item.svelte-1hm4mm9 {padding:8px 16px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;line-height:18px;letter-spacing:-0.14px;white-space:nowrap;}.item.svelte-1hm4mm9:hover {background:rgba(66, 66, 66, .5);color:var(--white);}"};function af(t,e){D(e,!0),z(t,db);let i=m(e,"onClick",3,jh),o=m(e,"closeContextMenu",3,jh),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var r=lb();r.__click=n,r.__keydown=[ab,n];var l=_(r,!0);g(r),O(()=>{var d;Be(r,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Be(r,"data-testid",e.id),he(l,e.label)}),b(t,r),H()}dt(["click","keydown"]);var la=(t,e)=>t.weight-e.weight;var od=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(od||{});var pb=(t,e)=>{Qc(t,e)},fb=t=>{t.preventDefault()},mb=M('<ul role="menu" class="svelte-1p5ukkp"></ul>'),vb={hash:"svelte-1p5ukkp",code:"ul.svelte-1p5ukkp {position:absolute;z-index:var(--context-menu-z-index);border-radius:8px;background:rgba(0, 0, 0, 0.72);transition:visibility .1s,opacity .1s;list-style:none;margin:0;padding:6px 0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto;}"};function lf(t,e){D(e,!0),z(t,vb);let[i,o]=Fe(),n=()=>C(te,"$isLive$",i),r=()=>C(we,"$isPiPEnabled$",i),l=()=>C(G,"$chromecastState$",i),d=()=>C(Re,"$pictureInPictureApiIsActive$",i),a=()=>C(de,"$isLooped$",i),p=()=>C(j,"$positionExact$",i),f=()=>C(K,"$additionalContextMenuItems$",i),v=m(e,"visible",3,!1),u=m(e,"position",19,()=>({top:0,left:0})),$=m(e,"playerContainerRef",3,void 0),w=m(e,"controlsContainerRef",3,void 0),y=m(e,"menuElementRef",15,void 0),S=Y(0),T=Y(0),I=Ee(),{pictureInPicture$:A}=co(),k=Ft(),E=I.ui.contextMenu.visible$,L=I.ui.debugPanelVisible,K=I.ui.additionalContextMenuItems$,U=I.ui.t,W=I.actions.internal.togglePictureInPicture,G=I.state.chromecastState$,te=I.state.isLive$,j=I.state.positionExact$,ae=I.state.isInteractive,de=I.state.looped$,{isEnabled$:we,isActive$:Re}=A,me=h(()=>{var Me;return k.features.copyVideoLink&&((Me=I.callbacks)==null?void 0:Me.onCopyVideoLink)}),le=h(()=>s(me)&&!n()&&!ae),Ve=h(()=>{var Me;return!!((Me=I.callbacks)!=null&&Me.onCopyEmbedCodeClicked)}),ee=h(()=>r()&&l()!==cb.CONNECTED&&!ae),N=h(()=>!ae),Oe=h(()=>k.features.videoRotate&&!ae),_e=h(()=>k.showSupport&&!d()),ve=h(()=>k.features.saveTraceInfoToFile),ce=()=>{var Me;E.set(!1),(Me=e.returnFocus)==null||Me.call(e)},ne=(Me,Ze)=>{if(!y()||!$()||!w())return;let Ne=y().getBoundingClientRect(),et=$().getBoundingClientRect();B(S,Me-et.left),B(T,Ze-et.top),s(S)+Ne.width>et.width&&B(S,et.width-Ne.width),s(T)+Ne.height>et.height&&B(T,et.height-Ne.height),B(S,Math.max(s(S),0),!0),B(T,Math.max(s(T),0),!0)};qe(()=>{(async()=>{if(y()&&$()&&w()){await ho();let{top:Ze,left:Ne,bottom:et,right:kt}=u(),Mt=Ne!=null?Ne:0,Xe=Ze!=null?Ze:0,oi=y().getBoundingClientRect();Yc(Ne)&&!Yc(kt)&&(Mt=kt-oi.width),Yc(Ze)&&!Yc(et)&&(Xe=et-oi.height),Mt=Math.max(Mt,0),Xe=Math.max(Xe,0),ne(Mt,Xe)}})()});let ye=()=>{I.actions.internal.videoRotate()},Z=()=>{ub(e.supportLink)&&window.open(e.supportLink,"_blank"),I.actions.internal.reportProblem(),I.actions.internal.pause()},Ke=()=>{let Me=I.actions.internal.getDebugTextData();if(k.features.saveDebugInfoToFile){let Ze=new Blob([...Me],{type:"plain/text"}),Ne=window.URL.createObjectURL(Ze);oa(Ne,"vk_player_debug_info","txt")}else il(I.actions.internal.getDebugTextData())},ue=()=>{let Me=I.actions.internal.getTraceTextData(),Ze=new Blob([...Me],{type:"application/json"}),Ne=window.URL.createObjectURL(Ze);oa(Ne,"vk_player_trace_info","json")},ke=()=>{L.set(!0)},Ae=async()=>{var Me;try{W()}finally{(Me=e.returnFocus)==null||Me.call(e)}},Te=()=>{I.actions.internal.setLooped(!a())},Qe=()=>{var Me,Ze;if(s(Ve)){let Ne=(Ze=(Me=I.callbacks)==null?void 0:Me.onCopyEmbedCodeClicked)==null?void 0:Ze.call(Me);Ne&&il(Ne)}},nt=(Me=!1)=>{var Ze,Ne;if((Ze=I.callbacks)!=null&&Ze.onCopyVideoLink){let et=(Ne=I.callbacks)==null?void 0:Ne.onCopyVideoLink(Me,p());et&&il(et)}},_t=h(()=>k.features.saveDebugInfoToFile?U("menu_save_debug"):U("menu_copy_debug")),$t=h(()=>s(me)?{id:"copy-link",weight:Rr["copy-link"],label:U("menu_copy_video_link"),onClick:()=>nt()}:void 0),St=h(()=>s(le)?{id:"copy-link-timestamp",weight:Rr["copy-link-timestamp"],label:U("menu_copy_video_link_with_timestamp"),onClick:()=>nt(!0)}:void 0),Ge=h(()=>s(Ve)?{id:"copy-embed-code",weight:Rr["copy-embed-code"],label:U("menu_copy_embed_code"),onClick:Qe}:void 0),zt=h(()=>s(ee)?{id:"pip",weight:Rr.pip,label:d()?U("menu_pip_close"):U("menu_pip"),onClick:Ae}:void 0),Qt=h(()=>s(N)?{id:"video-loop",weight:Rr["video-loop"],label:a()?U("menu_video_loop_off"):U("menu_video_loop_on"),ariaLabel:U("aria_label_menu_loop"),onClick:Te}:void 0),Wt=h(()=>s(Oe)?{id:"rotate",weight:Rr.rotate,label:U("menu_video_rotate"),ariaLabel:U("aria_label_menu_rotate"),onClick:ye}:void 0),Bt=h(()=>s(_e)?{id:"report",weight:Rr.report,label:U("menu_report"),ariaLabel:`${U("menu_report")}. ${U("aria_label_new_tab_alert")}`,onClick:Z}:void 0),X=h(()=>({id:"save-debug",weight:Rr["save-debug"],label:s(_t),onClick:Ke})),At=h(()=>s(ve)?{id:"save-trace",weight:Rr["save-trace"],label:U("menu_save_debug"),onClick:ue}:void 0),fe=h(()=>({id:"debug-info",weight:Rr["debug-info"],label:U("menu_debug_overlay"),ariaLabel:U("aria_label_menu_debug_overlay"),onClick:ke})),be=h(()=>[s($t),s(St),s(Ge),s(zt),s(Qt),s(Wt),s(Bt),s(X),s(At),s(fe),...f()].filter(Me=>!!Me).sort(la));var re=ze(),De=pe(re);{var We=Me=>{var Ze=mb();Ze.__contextmenu=[fb],Ze.__keydown=[pb,ce],wi(Ze,21,()=>s(be),Ne=>Ne.id,(Ne,et)=>{af(Ne,{get id(){return s(et).id},get label(){return s(et).label},get ariaLabel(){return s(et).ariaLabel},get onClick(){return s(et).onClick},closeContextMenu:ce})}),g(Ze),tt(Ze,Ne=>y(Ne),()=>y()),O(()=>{var Ne,et;return at(Ze,`top: ${(Ne=s(T))!=null?Ne:""}px; left: ${(et=s(S))!=null?et:""}px;`)}),b(Me,Ze)};R(De,Me=>{v()&&Me(We)})}b(t,re),H(),o()}dt(["contextmenu","keydown"]);var jc=class{constructor(e){this.value=e,this.next=null}};var rl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new jc(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 gb=M('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),hb={hash:"svelte-1ssl9eb",code:".container.svelte-1ssl9eb {display:inline-block;width:120px;height:16px;}canvas.svelte-1ssl9eb {transform:scale(1, -1);margin-top:2px;}"};function nd(t,e){D(e,!0),z(t,hb);let i=m(e,"values",19,()=>[]),o=Y(void 0),n=Y(null),r=16,l=120,d=60,a=l/d;Nt(()=>{s(o).width=l,s(o).height=r,B(n,s(o).getContext("2d"),!0)});function p(u,$,w,y,S){S===0&&(S=1),u.fillStyle="#fff",u.fillRect($,w,y,S)}qe(()=>{let u="";if(s(n)){let $=i()[0];for(let y=1;y<i().length;y++)i()[y]>$&&($=i()[y]);s(n).clearRect(0,0,l,r);let w=d-1;for(let y=i().length-1;y>=0;y--){let S=w*a,T=$>0?r*(i()[y]/$):0;p(s(n),S,0,a,T),u=T+" "+u,w--}}});var f=gb(),v=_(f);tt(v,u=>B(o,u),()=>s(o)),g(f),b(t,f),H()}import{safeStorage as Zh}from"@vkontakte/videoplayer-shared/es2018";var _b=(t,e)=>{t.stopPropagation(),Zh.remove(Wl),e.set(!1)},bb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),$b=M('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),yb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),xb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),wb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),Cb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),Sb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),Tb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),Eb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),Ib=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),kb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),Pb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),Ab=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),Mb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),Lb=M('<div role="region"><button class="close svelte-4deykz" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-4deykz"><div class="svelte-4deykz"><div class="svelte-4deykz">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">FPS</div> <!> <span> </span></div></div></div>'),Vb={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 rd(t,e){D(e,!0),z(t,Vb);let[i,o]=Fe(),n=()=>C(d,"$isMobile",i),r=Ee(),l=r.ui.debugPanelVisible,d=r.ui.isMobile,a=Y(ti(r.actions.internal.getDebugPanelData())),p=r.actions.internal.getVideoElement(),f=Y(0),v=Y(0),u=Y(0),$=new rl(60),w=new rl(60),y=new rl(60),S=Y(ti([])),T=Y(ti([])),I=Y(ti([])),A=F("aria_label_debug_panel");Nt(()=>{Zh.set(Wl,"true"),r.actions.internal.startLogging(),p&&(B(v,p.getVideoPlaybackQuality().droppedVideoFrames,!0),B(f,p.getVideoPlaybackQuality().totalVideoFrames,!0));let fe=window.setInterval(()=>{B(a,r.actions.internal.getDebugPanelData(),!0)},500),be;return p&&(be=window.setInterval(()=>{if(p){B(v,p.getVideoPlaybackQuality().droppedVideoFrames,!0);let re=p.getVideoPlaybackQuality().totalVideoFrames;B(u,re-s(f)),B(f,re,!0),$.push(s(u)),s(a).speed&&w.push(s(a).speed),s(a).bitrate&&y.push(s(a).bitrate),B(S,$.getValuesFromBottom(),!0),B(T,w.getValuesFromBottom(),!0),B(I,y.getValuesFromBottom(),!0)}},1e3)),()=>{r.actions.internal.stopLogging(),clearInterval(fe),be&&clearInterval(be)}});var k=Lb();let E;var L=_(k);L.__click=[_b,l];var K=P(L,2),U=_(K),W=P(_(U),2),G=_(W,!0);g(W),g(U);var te=P(U,2);{var j=fe=>{var be=bb(),re=P(_(be),2),De=_(re,!0);g(re),g(be),O(()=>he(De,s(a).id)),b(fe,be)};R(te,fe=>{s(a).id&&fe(j)})}var ae=P(te,2);{var de=fe=>{var be=$b(),re=P(_(be),2),De=_(re,!0);g(re),g(be),O(()=>he(De,s(a).vsid)),b(fe,be)};R(ae,fe=>{s(a).vsid&&fe(de)})}var we=P(ae,2);{var Re=fe=>{var be=yb(),re=P(_(be),2),De=_(re,!0);g(re),g(be),O(()=>he(De,s(a).provider)),b(fe,be)};R(we,fe=>{s(a).provider&&fe(Re)})}var me=P(we,2);{var le=fe=>{var be=xb(),re=P(_(be),2),De=_(re);g(re),g(be),O(()=>{var We,Me;return he(De,`Video: ${(We=s(a).videoCodec||"")!=null?We:""} ${s(a).hdr?"(HDR)":""}
139
139
  &
140
- Audio: ${(Re=r(a).audioCodec||"")!=null?Re:""} ${r(a).audioLanguage?`(${r(a).audioLanguage})`:""}`)}),$(ge,X)};L(pe,ge=>{(r(a).videoCodec||r(a).audioCodec)&&ge(le)})}var Ae=P(pe,2);{var te=ge=>{var X=vb(),xe=P(_(X),2),He=_(xe,!0);h(xe),h(X),O(()=>he(He,r(a).viewport)),$(ge,X)};L(Ae,ge=>{r(a).viewport&&ge(te)})}var R=P(Ae,2);{var Ge=ge=>{var X=gb(),xe=P(_(X),2),He=_(xe,!0);h(xe),h(X),O(()=>he(He,r(a).videoSize)),$(ge,X)};L(R,ge=>{r(a).videoSize&&ge(Ge)})}var ie=P(R,2);{var Ke=ge=>{var X=hb(),xe=P(_(X),2),He=_(xe,!0);h(xe),h(X),O(()=>he(He,r(a).cdn)),$(ge,X)};L(ie,ge=>{r(a).cdn&&ge(Ke)})}var ce=P(ie,2);{var fe=ge=>{var X=_b(),xe=P(_(X),2),He=_(xe);h(xe),h(X),O(()=>{var me;return he(He,`${(me=r(a).volume)!=null?me:""} %`)}),$(ge,X)};L(ce,ge=>{r(a).volume&&ge(fe)})}var $e=P(ce,2);{var Z=ge=>{var X=bb(),xe=P(_(X),2),He=_(xe);h(xe),h(X),O(me=>he(He,`${me!=null?me:""} s`),[()=>r(a).position.toFixed(2)]),$(ge,X)};L($e,ge=>{r(a).position&&ge(Z)})}var qe=P($e,2);{var Ze=ge=>{var X=$b(),xe=P(_(X),2),He=_(xe);h(xe),h(X),O(me=>he(He,`${me!=null?me:""} s`),[()=>r(a).buffer.toFixed(2)]),$(ge,X)};L(qe,ge=>{r(a).buffer&&ge(Ze)})}var Pe=P(qe,2);{var re=ge=>{var X=yb(),xe=P(_(X),2),He=_(xe);h(xe),h(X),O(me=>he(He,`${me!=null?me:""} s`),[()=>r(a).liveLatency.toFixed(2)]),$(ge,X)};L(Pe,ge=>{r(a).liveLatency&&ge(re)})}var Ee=P(Pe,2);{var Qe=ge=>{var X=xb(),xe=P(_(X),2),He=_(xe,!0);h(xe),h(X),O(me=>he(He,me),[()=>[{value:r(a).currentVideoSegmentLength,title:"Video:"},{value:r(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:me})=>me).map(({value:me,title:Re})=>`${Re} ${((me!=null?me:0)/1e3).toFixed(2)} s`).join(" & ")]),$(ge,X)};L(Ee,ge=>{(r(a).currentVideoSegmentLength||r(a).currentAudioSegmentLength)&&ge(Qe)})}var rt=P(Ee,2),nt=P(_(rt),2),Mt=_(nt);h(nt),h(rt);var Je=P(rt,2);{var dt=ge=>{var X=wb(),xe=P(_(X),2);od(xe,{get values(){return r(T)}});var He=P(xe,2),me=_(He);h(He),h(X),O(Re=>he(me,`${Re!=null?Re:""} Kbps`),[()=>r(a).speed.toFixed(2)]),$(ge,X)};L(Je,ge=>{r(a).speed&&ge(dt)})}var qt=P(Je,2);{var oi=ge=>{var X=Sb(),xe=P(_(X),2);od(xe,{get values(){return r(E)}});var He=P(xe,2),me=_(He);h(He),h(X),O(Re=>he(me,`${Re!=null?Re:""} Kbps`),[()=>r(a).bitrate.toFixed(2)]),$(ge,X)};L(qt,ge=>{r(a).bitrate&&ge(oi)})}var Kt=P(qt,2),wt=P(_(Kt),2);od(wt,{get values(){return r(C)}});var ne=P(wt,2),Lt=_(ne,!0);h(ne),h(Kt),h(Y),h(k),O(ge=>{var X,xe;I=J(k,1,"container svelte-4deykz",null,I,ge),Oe(k,"aria-label",M),he(W,r(a).version),he(Mt,`${(X=r(v))!=null?X:""} / ${(xe=r(f))!=null?xe:""} frames`),he(Lt,r(p))},[()=>({"container-mobile":n()})]),$(t,k),U(),o()}at(["click"]);import{noop as Eb}from"@vkontakte/videoplayer-shared/es2018";var Ib=(t,e)=>{t.stopPropagation(),e()()},kb=A('<div class="close svelte-1ome55p"></div>'),Pb={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 pa(t,e){F(e,!0),q(t,Pb);let i=m(e,"onClick",3,Eb);var o=kb();o.__click=[Ib,i],$(t,o),U()}at(["click"]);import{noop as Ab}from"@vkontakte/videoplayer-shared/es2018";var Mb=A('<div class="timer svelte-8jhsry"><canvas class="timer-canvas svelte-8jhsry" width="100" height="100"></canvas> <svg class="timer-play-icon svelte-8jhsry" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill-rule="nonzero"><path class="_play" d="m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z" fill="var(--btn-color, #fff)"></path></g></g></svg></div>'),Lb={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 rd(t,e){F(e,!0),q(t,Lb);let i=m(e,"isRunning",3,!0),o=m(e,"onTimerEnded",3,Ab),n=5e3,s=j(void 0),l,d,a=j(0),u;We(()=>{i()&&(d=Date.now(),B(a,requestAnimationFrame(v),!0))});let f=()=>{r(a)&&(cancelAnimationFrame(r(a)),B(a,0))},v=()=>{if(!i()){f();return}u=(Date.now()-d)/n,u<1?(l==null||l.clearRect(0,0,100,100),l==null||l.beginPath(),l==null||l.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*u),l==null||l.stroke(),B(a,requestAnimationFrame(v),!0)):o()()};Nt(()=>{if(l=r(s).getContext("2d"),!!l)return l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff",()=>{f()}}),Xo(()=>{f()});var p=Mb(),b=_(p);et(b,x=>B(s,x),()=>r(s)),Ce(2),h(p),$(t,p),U()}var Vb=(t,e,i)=>{e(!1),i()},Rb=A('<div class="overlay svelte-jfbaax"></div> <div class="next-video svelte-jfbaax"><div class="top svelte-jfbaax"><div class="caption svelte-jfbaax"> </div> <!></div> <div class="row svelte-jfbaax"><div class="column svelte-jfbaax"><div class="thumb svelte-jfbaax"><div></div> <!></div></div> <div class="column svelte-jfbaax"><div class="title svelte-jfbaax"> </div></div></div></div>',1),Nb={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 sf(t,e){F(e,!0),q(t,Nb);let[i,o]=Be(),n=()=>S(d,"$autoplayNextEnabled$",i),s=()=>S(a,"$timerNextVideoRunning$",i),l=ke(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,p=l.actions.internal.nextVideoAnnouncementAuto,b=l.actions.internal.nextVideoAnnouncementCancel,x=()=>{n()&&(u(!1),p())},y=()=>{e.clickCloseIcon(),b()};Nt(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var C=Fe(),T=ve(C);{var E=M=>{var k=Rb(),I=P(ve(k),2),N=_(I),Y=_(N),D=_(Y,!0);h(Y);var H=P(Y,2);pa(H,{onClick:y}),h(N);var W=P(N,2);W.__click=[Vb,u,v];var ee=_(W),K=_(ee),de=_(K);let oe;var we=P(de,2);{var Ie=te=>{let R=g(()=>s()&&n());rd(te,{get isRunning(){return r(R)},onTimerEnded:x})};L(we,te=>{n()&&te(Ie)})}h(K),h(ee);var pe=P(ee,2),le=_(pe),Ae=_(le,!0);h(le),h(pe),h(W),h(I),O((te,R)=>{he(D,te),it(K,`background-image: url('${e.thumb}')`),oe=J(de,1,"thumb-overlay svelte-jfbaax",null,oe,R),he(Ae,e.title)},[()=>z("end_screen_next_video"),()=>({withOpacity:n()})]),$(M,k)};L(T,M=>{e.isHide||M(E)})}$(t,C),U(),o()}at(["click"]);import{PlaybackState as fa}from"@vkontakte/videoplayer-core/es2018";import{checkNever as Ob}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as wn}from"@vkontakte/videoplayer-statistics/es2018";var af=(t,e)=>Math.min(+(t+e).toFixed(2),1),lf=(t,e)=>Math.max(+(t-e).toFixed(2),0),Zc=(t,e,i)=>{let o=af(e,i);e<1?t.actions.internal.setVolume(o):ye(t.state.muted$)&&t.actions.external.setMuted(!1)},Xc=(t,e,i)=>{let o=lf(e,i);e>0&&t.actions.internal.setVolume(o)};var Rs=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var Db=(t,e)=>{e(t)},Hb=A('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),Fb={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function df(t,e){var Kt,wt;F(e,!0),q(t,Fb);let[i,o]=Be(),n=()=>S(D,"$playbackState$",i),s=()=>S(H,"$adPlaybackState",i),l=()=>S(de,"$disabledControls$",i),d=()=>S(W,"$positionExact$",i),a=()=>S(ee,"$duration$",i),u=()=>S(fe,"$isAudioAvailable$",i),f=()=>S(K,"$volume$",i),v=()=>S(pe,"$availablePlaybackRates$",i),p=()=>S(Ie,"$currentPlaybackRate$",i),b=()=>S(Z,"$isInteractiveTime$",i),x=()=>S(qe,"$showInteractiveTimeIndicatorTooltip$",i),y=()=>S(Ge,"$isEnded$",i),C=()=>S(oe,"$muted$",i),T=()=>S(we,"$currentSubtitle$",i),E=()=>S(ie,"$overlayContainer$",i),M=m(e,"nextButtonActive",3,!1),k=m(e,"prevButtonActive",3,!1),I=ke(),N=Ft(),Y=I.getLogger().createComponentLog("KeyboardControls component"),D=I.state.playbackState$,H=I.ads.playbackState,W=I.state.positionExact$,ee=I.state.duration$,K=I.state.volume$,de=I.ui.controls.disabledControls$,oe=I.state.muted$,we=I.state.currentSubtitle$,Ie=I.state.currentPlaybackRate$,pe=I.state.availablePlaybackRates$,le=I.ui.contextMenu.openedByHotKey$,Ae=I.ui.contextMenu.lastActiveElem$,te=I.ui.contextMenu.visible$,R=I.ui.contextMenu.position$,Ge=I.state.isEnded$,ie=I.ui.overlayContainer$,Ke=(Kt=I.callbacks)==null?void 0:Kt.onAudioDoesNotExistHint,ce=(wt=I.callbacks)==null?void 0:wt.onAudioDisabledHint,fe=I.state.isAudioAvailable$,$e=I.state.isAudioDisabled,Z=I.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:qe}=co(),Ze=0,Pe=!0,re=j(void 0),Ee=ne=>(ne!==Pe&&(Pe=ne,Ze=0),Ze+=1,(N.controls.seekStepKeyboard+N.controls.seekStepKeyboard*Ze)/1e3),Qe=(ne,Lt=!1)=>{var Mi,di;let ge=ne.target,X=(Mi=ge==null?void 0:ge.getAttribute("role"))==null?void 0:Mi.includes("menuitem"),xe=ge.classList.contains("btn"),He=ne.code;if(xe&&He==="Space")return!1;let me=Gg.has(He);if(X&&me)return!1;let Re=!Qg.has(He);if(ne.ctrlKey&&Re||ne.altKey&&Re||ne.metaKey)return!1;let Xe=X&&He==="Escape";Yg.has(He)||Xe||e.hideContextMenu();let Ue=n()===fa.PLAYING||n()===fa.PAUSED,Pt=e.isAds&&(s()==="paused"||s()==="playing"),St=!Pt&&!l().has("TIMELINE");if(!(Ue||Pt))return!1;Y({message:`key down, code: ${He}, isExternal = ${Lt}`});let yt=!1,pt=()=>{yt=!0,Lt||ne.preventDefault()};switch(He){case"KeyJ":case"ArrowLeft":{if(!St)break;if(ne.ctrlKey||ne.altKey){let ot=I.actions.internal.getPrevEpisode();I.actions.internal.seekToPrevEpisode(ot),ot&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:ot.text}),pt()}else{let ot=ne.shiftKey?Ee(!1):N.controls.seekStepKeyboard/1e3,Bt=Math.max(d()-ot,0);d()>0&&(I.actions.internal.seekTime(Bt,wn.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:ot.toString()}),pt())}break}case"KeyL":case"ArrowRight":{if(!St)break;if(ne.ctrlKey||ne.altKey){let ot=I.actions.internal.getNextEpisode();I.actions.internal.seekToNextEpisode(ot),ot&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:ot.text}),pt()}else{let ot=ne.shiftKey?Ee(!0):N.controls.seekStepKeyboard/1e3,Bt=Math.min(d()+ot,a());Math.round(d())<Math.round(a())&&(I.actions.internal.seekTime(Bt,wn.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:ot.toString()}),pt())}break}case"ArrowUp":{if(Rs({isAudioDisabled:$e,audioDisabledHintCallback:ce,isAudioAvailable:u(),audioIsNotExistHintCallback:Ke,isAds:e.isAds})){let ot=f(),Bt=N.controls.volumeStepKeyboard,fi=ot<=1;if(Zc(I,ot,Bt),fi){let Ui=Math.round(af(ot,Bt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ui}})}}pt();break}case"ArrowDown":{if(Rs({isAudioDisabled:$e,audioDisabledHintCallback:ce,isAudioAvailable:u(),audioIsNotExistHintCallback:Ke,isAds:e.isAds})){let ot=f(),Bt=N.controls.volumeStepKeyboard,fi=ot>=0;if(Xc(I,ot,Bt),fi){let Ui=Math.round(lf(ot,Bt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ui}})}}pt();break}case"Comma":{if(ne.shiftKey){I.actions.internal.decrementPlaybackRate();let ot=v().find(Bt=>Bt.value===p());e.showHotKeyHelpers({type:"RATE_DOWN",text:ot==null?void 0:ot.displayValue}),pt()}else{if(Pt||n()!==fa.PAUSED)break;let ot=Math.max(d()-N.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(ot,wn.DOUBLE_TAP),pt())}break}case"Period":{if(ne.shiftKey){I.actions.internal.incrementPlaybackRate();let ot=v().find(Bt=>Bt.value===p());e.showHotKeyHelpers({type:"RATE_UP",text:ot==null?void 0:ot.displayValue}),pt()}else{if(Pt||n()!==fa.PAUSED)break;let ot=Math.min(d()+N.controls.seekStepFrame/1e3,a());d()<a()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(ot,wn.DOUBLE_TAP),pt())}break}case"KeyK":case"Space":if(!l().has("PLAY_BUTTON"))if(b()&&x()&&qe.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{I.actions.internal.togglePlay();let ot="PLAY";n()===fa.PAUSED?ot="PAUSE":y()&&(ot="REPLAY"),e.showHotKeyHelpers({type:ot})}pt();break;case"KeyM":{Rs({isAudioDisabled:$e,audioDisabledHintCallback:ce,isAudioAvailable:u(),audioIsNotExistHintCallback:Ke,isAds:e.isAds})&&(e.showHotKeyHelpers({type:C()?"VOLUME":"MUTE"}),I.actions.internal.toggleMuted()),pt();break}case"KeyF":e.toggleFullscreen(),pt();break;case"KeyC":I.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(di=T())==null?void 0:di.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),pt();break;case"KeyI":I.actions.internal.togglePictureInPicture(),pt();break;case"Digit1":case"Numpad1":if(ne.shiftKey){let ot=zh(E());R.set(ot),Ae.set(ge),le.set(!0),te.set(!0),pt();break}e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.1,wn.DOUBLE_TAP),pt();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.2,wn.DOUBLE_TAP),pt();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.3,wn.DOUBLE_TAP),pt();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.4,wn.DOUBLE_TAP),pt();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.5,wn.DOUBLE_TAP),pt();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.6,wn.DOUBLE_TAP),pt();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.7,wn.DOUBLE_TAP),pt();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.8,wn.DOUBLE_TAP),pt();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.9,wn.DOUBLE_TAP),pt();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(0,wn.DOUBLE_TAP),pt();break;case"Slash":{ne.shiftKey&&N.features.hotKeyMapModal&&(e.showKeyMap(),pt());break}case"KeyN":ne.shiftKey&&M()&&(I.actions.internal.nextVideoClick(),pt());break;case"KeyP":ne.shiftKey&&k()&&(I.actions.internal.prevVideoClick(),pt());break;case"ShiftLeft":case"ShiftRight":pt();break;case"Tab":case"Escape":case"Enter":break;default:Ob(He);break}return yt},rt=ne=>{let Lt=ne.code;if(ne.ctrlKey||ne.altKey||ne.metaKey)return;let ge=n()===fa.PLAYING||n()===fa.PAUSED,X=e.isAds&&(s()==="paused"||s()==="playing");if(ge||X)switch(Lt){case"ShiftLeft":case"ShiftRight":Ze=0;break}},nt=z("aria_label_video_player"),Mt=()=>{var ne;return(ne=r(re))==null?void 0:ne.focus()},Je=ne=>ne.type==="keydown"?Qe(ne,!0):(ne.type==="keyup"&&rt(ne),!1);var dt=Hb();dt.__keyup=rt,dt.__keydown=[Db,Qe];var qt=_(dt);be(qt,()=>{var ne;return(ne=e.children)!=null?ne:se}),h(dt),et(dt,ne=>B(re,ne),()=>r(re)),O(()=>Oe(dt,"aria-label",nt)),$(t,dt);var oi=U({focus:Mt,handleExternalKeyboardEvent:Je});return o(),oi}at(["keyup","keydown"]);var Ub=A('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),zb={hash:"svelte-1dbnjb1",code:`.container.svelte-1dbnjb1 {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex;}.dot.svelte-1dbnjb1:nth-child(1) {animation-delay:calc(0 * 180ms);}.dot.svelte-1dbnjb1:nth-child(2) {animation-delay:calc(1 * 180ms);}.dot.svelte-1dbnjb1:nth-child(3) {animation-delay:calc(2 * 180ms);}
140
+ Audio: ${(Me=s(a).audioCodec||"")!=null?Me:""} ${s(a).audioLanguage?`(${s(a).audioLanguage})`:""}`)}),b(fe,be)};R(me,fe=>{(s(a).videoCodec||s(a).audioCodec)&&fe(le)})}var Ve=P(me,2);{var ee=fe=>{var be=wb(),re=P(_(be),2),De=_(re,!0);g(re),g(be),O(()=>he(De,s(a).viewport)),b(fe,be)};R(Ve,fe=>{s(a).viewport&&fe(ee)})}var N=P(Ve,2);{var Oe=fe=>{var be=Cb(),re=P(_(be),2),De=_(re,!0);g(re),g(be),O(()=>he(De,s(a).videoSize)),b(fe,be)};R(N,fe=>{s(a).videoSize&&fe(Oe)})}var _e=P(N,2);{var ve=fe=>{var be=Sb(),re=P(_(be),2),De=_(re,!0);g(re),g(be),O(()=>he(De,s(a).cdn)),b(fe,be)};R(_e,fe=>{s(a).cdn&&fe(ve)})}var ce=P(_e,2);{var ne=fe=>{var be=Tb(),re=P(_(be),2),De=_(re);g(re),g(be),O(()=>{var We;return he(De,`${(We=s(a).volume)!=null?We:""} %`)}),b(fe,be)};R(ce,fe=>{s(a).volume&&fe(ne)})}var ye=P(ce,2);{var Z=fe=>{var be=Eb(),re=P(_(be),2),De=_(re);g(re),g(be),O(We=>he(De,`${We!=null?We:""} s`),[()=>s(a).position.toFixed(2)]),b(fe,be)};R(ye,fe=>{s(a).position&&fe(Z)})}var Ke=P(ye,2);{var ue=fe=>{var be=Ib(),re=P(_(be),2),De=_(re);g(re),g(be),O(We=>he(De,`${We!=null?We:""} s`),[()=>s(a).buffer.toFixed(2)]),b(fe,be)};R(Ke,fe=>{s(a).buffer&&fe(ue)})}var ke=P(Ke,2);{var Ae=fe=>{var be=kb(),re=P(_(be),2),De=_(re);g(re),g(be),O(We=>he(De,`${We!=null?We:""} s`),[()=>s(a).liveLatency.toFixed(2)]),b(fe,be)};R(ke,fe=>{s(a).liveLatency&&fe(Ae)})}var Te=P(ke,2);{var Qe=fe=>{var be=Pb(),re=P(_(be),2),De=_(re,!0);g(re),g(be),O(We=>he(De,We),[()=>[{value:s(a).currentVideoSegmentLength,title:"Video:"},{value:s(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:We})=>We).map(({value:We,title:Me})=>`${Me} ${((We!=null?We:0)/1e3).toFixed(2)} s`).join(" & ")]),b(fe,be)};R(Te,fe=>{(s(a).currentVideoSegmentLength||s(a).currentAudioSegmentLength)&&fe(Qe)})}var nt=P(Te,2),_t=P(_(nt),2),$t=_(_t);g(_t),g(nt);var St=P(nt,2);{var Ge=fe=>{var be=Ab(),re=P(_(be),2);nd(re,{get values(){return s(T)}});var De=P(re,2),We=_(De);g(De),g(be),O(Me=>he(We,`${Me!=null?Me:""} Kbps`),[()=>s(a).speed.toFixed(2)]),b(fe,be)};R(St,fe=>{s(a).speed&&fe(Ge)})}var zt=P(St,2);{var Qt=fe=>{var be=Mb(),re=P(_(be),2);nd(re,{get values(){return s(I)}});var De=P(re,2),We=_(De);g(De),g(be),O(Me=>he(We,`${Me!=null?Me:""} Kbps`),[()=>s(a).bitrate.toFixed(2)]),b(fe,be)};R(zt,fe=>{s(a).bitrate&&fe(Qt)})}var Wt=P(zt,2),Bt=P(_(Wt),2);nd(Bt,{get values(){return s(S)}});var X=P(Bt,2),At=_(X,!0);g(X),g(Wt),g(K),g(k),O(fe=>{var be,re;E=J(k,1,"container svelte-4deykz",null,E,fe),Be(k,"aria-label",A),he(G,s(a).version),he($t,`${(be=s(v))!=null?be:""} / ${(re=s(f))!=null?re:""} frames`),he(At,s(u))},[()=>({"container-mobile":n()})]),b(t,k),H(),o()}dt(["click"]);import{noop as Rb}from"@vkontakte/videoplayer-shared/es2018";var Nb=(t,e)=>{t.stopPropagation(),e()()},Bb=M('<div class="close svelte-1ome55p"></div>'),Ob={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 da(t,e){D(e,!0),z(t,Ob);let i=m(e,"onClick",3,Rb);var o=Bb();o.__click=[Nb,i],b(t,o),H()}dt(["click"]);import{noop as Db}from"@vkontakte/videoplayer-shared/es2018";var Hb=M('<div class="timer svelte-8jhsry"><canvas class="timer-canvas svelte-8jhsry" width="100" height="100"></canvas> <svg class="timer-play-icon svelte-8jhsry" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill-rule="nonzero"><path class="_play" d="m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z" fill="var(--btn-color, #fff)"></path></g></g></svg></div>'),Fb={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 sd(t,e){D(e,!0),z(t,Fb);let i=m(e,"isRunning",3,!0),o=m(e,"onTimerEnded",3,Db),n=5e3,r=Y(void 0),l,d,a=0,p;qe(()=>{i()&&Ct(()=>{d=Date.now(),a=requestAnimationFrame(v)})});let f=()=>{a&&(cancelAnimationFrame(a),a=0)},v=()=>{f(),i()&&(p=(Date.now()-d)/n,p<1?(l==null||l.clearRect(0,0,100,100),l==null||l.beginPath(),l==null||l.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*p),l==null||l.stroke(),a=requestAnimationFrame(v)):o()())};Nt(()=>{l=s(r).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),En(()=>{f()});var u=Hb(),$=_(u);tt($,w=>B(r,w),()=>s(r)),Ce(2),g(u),b(t,u),H()}var Ub=(t,e,i)=>{e(!1),i()},zb=M('<div class="overlay svelte-jfbaax"></div> <div class="next-video svelte-jfbaax"><div class="top svelte-jfbaax"><div class="caption svelte-jfbaax"> </div> <!></div> <div class="row svelte-jfbaax"><div class="column svelte-jfbaax"><div class="thumb svelte-jfbaax"><div></div> <!></div></div> <div class="column svelte-jfbaax"><div class="title svelte-jfbaax"> </div></div></div></div>',1),Wb={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 df(t,e){D(e,!0),z(t,Wb);let[i,o]=Fe(),n=()=>C(d,"$autoplayNextEnabled$",i),r=()=>C(a,"$timerNextVideoRunning$",i),l=Ee(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,p=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,u=l.actions.internal.nextVideoAnnouncementAuto,$=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(p(!1),u())},y=()=>{e.clickCloseIcon(),$()};Nt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var S=ze(),T=pe(S);{var I=A=>{var k=zb(),E=P(pe(k),2),L=_(E),K=_(L),U=_(K,!0);g(K);var W=P(K,2);da(W,{onClick:y}),g(L);var G=P(L,2);G.__click=[Ub,p,v];var te=_(G),j=_(te),ae=_(j);let de;var we=P(ae,2);{var Re=ee=>{let N=h(()=>r()&&n());sd(ee,{get isRunning(){return s(N)},onTimerEnded:w})};R(we,ee=>{n()&&ee(Re)})}g(j),g(te);var me=P(te,2),le=_(me),Ve=_(le,!0);g(le),g(me),g(G),g(E),O((ee,N)=>{he(U,ee),at(j,`background-image: url('${e.thumb}')`),de=J(ae,1,"thumb-overlay svelte-jfbaax",null,de,N),he(Ve,e.title)},[()=>F("end_screen_next_video"),()=>({withOpacity:n()})]),b(A,k)};R(T,A=>{e.isHide||A(I)})}b(t,S),H(),o()}dt(["click"]);import{PlaybackState as ca}from"@vkontakte/videoplayer-core/es2018";import{checkNever as Kb}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as In}from"@vkontakte/videoplayer-statistics/es2018";var cf=(t,e)=>Math.min(+(t+e).toFixed(2),1),uf=(t,e)=>Math.max(+(t-e).toFixed(2),0),Zc=(t,e,i)=>{let o=cf(e,i);e<1?t.actions.internal.setVolume(o):$e(t.state.muted$)&&t.actions.external.setMuted(!1)},Xc=(t,e,i)=>{let o=uf(e,i);e>0&&t.actions.internal.setVolume(o)};var As=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var Qb=(t,e)=>{e(t)},Gb=M('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),Yb={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function pf(t,e){var Wt,Bt;D(e,!0),z(t,Yb);let[i,o]=Fe(),n=()=>C(U,"$playbackState$",i),r=()=>C(W,"$adPlaybackState",i),l=()=>C(ae,"$disabledControls$",i),d=()=>C(G,"$positionExact$",i),a=()=>C(te,"$duration$",i),p=()=>C(ne,"$isAudioAvailable$",i),f=()=>C(j,"$volume$",i),v=()=>C(me,"$availablePlaybackRates$",i),u=()=>C(Re,"$currentPlaybackRate$",i),$=()=>C(Z,"$isInteractiveTime$",i),w=()=>C(Ke,"$showInteractiveTimeIndicatorTooltip$",i),y=()=>C(Oe,"$isEnded$",i),S=()=>C(de,"$muted$",i),T=()=>C(we,"$currentSubtitle$",i),I=()=>C(_e,"$overlayContainer$",i),A=m(e,"nextButtonActive",3,!1),k=m(e,"prevButtonActive",3,!1),E=Ee(),L=Ft(),K=E.getLogger().createComponentLog("KeyboardControls component"),U=E.state.playbackState$,W=E.ads.playbackState,G=E.state.positionExact$,te=E.state.duration$,j=E.state.volume$,ae=E.ui.controls.disabledControls$,de=E.state.muted$,we=E.state.currentSubtitle$,Re=E.state.currentPlaybackRate$,me=E.state.availablePlaybackRates$,le=E.ui.contextMenu.openedByHotKey$,Ve=E.ui.contextMenu.lastActiveElem$,ee=E.ui.contextMenu.visible$,N=E.ui.contextMenu.position$,Oe=E.state.isEnded$,_e=E.ui.overlayContainer$,ve=(Wt=E.callbacks)==null?void 0:Wt.onAudioDoesNotExistHint,ce=(Bt=E.callbacks)==null?void 0:Bt.onAudioDisabledHint,ne=E.state.isAudioAvailable$,ye=E.state.isAudioDisabled,Z=E.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Ke}=co(),ue=0,ke=!0,Ae=Y(void 0),Te=X=>(X!==ke&&(ke=X,ue=0),ue+=1,(L.controls.seekStepKeyboard+L.controls.seekStepKeyboard*ue)/1e3),Qe=(X,At=!1)=>{var oi,ui;let fe=X.target,be=(oi=fe==null?void 0:fe.getAttribute("role"))==null?void 0:oi.includes("menuitem"),re=fe.classList.contains("btn"),De=X.code;if(re&&De==="Space")return!1;let We=Jg.has(De);if(be&&We)return!1;let Me=!Xg.has(De);if(X.ctrlKey&&Me||X.altKey&&Me||X.metaKey)return!1;let Ze=be&&De==="Escape";eh.has(De)||Ze||e.hideContextMenu();let Ne=n()===ca.PLAYING||n()===ca.PAUSED,et=e.isAds&&(r()==="paused"||r()==="playing"),kt=!et&&!l().has("TIMELINE");if(!(Ne||et))return!1;K({message:`key down, code: ${De}, isExternal = ${At}`});let Mt=!1,Xe=()=>{Mt=!0,At||X.preventDefault()};switch(De){case"KeyJ":case"ArrowLeft":{if(!kt)break;if(X.ctrlKey||X.altKey){let lt=E.actions.internal.getPrevEpisode();E.actions.internal.seekToPrevEpisode(lt),lt&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:lt.text}),Xe()}else{let lt=X.shiftKey?Te(!1):L.controls.seekStepKeyboard/1e3,Xt=Math.max(d()-lt,0);d()>0&&(E.actions.internal.seekTime(Xt,In.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:lt.toString()}),Xe())}break}case"KeyL":case"ArrowRight":{if(!kt)break;if(X.ctrlKey||X.altKey){let lt=E.actions.internal.getNextEpisode();E.actions.internal.seekToNextEpisode(lt),lt&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:lt.text}),Xe()}else{let lt=X.shiftKey?Te(!0):L.controls.seekStepKeyboard/1e3,Xt=Math.min(d()+lt,a());Math.round(d())<Math.round(a())&&(E.actions.internal.seekTime(Xt,In.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:lt.toString()}),Xe())}break}case"ArrowUp":{if(As({isAudioDisabled:ye,audioDisabledHintCallback:ce,isAudioAvailable:p(),audioIsNotExistHintCallback:ve,isAds:e.isAds})){let lt=f(),Xt=L.controls.volumeStepKeyboard,Jt=lt<=1;if(Zc(E,lt,Xt),Jt){let li=Math.round(cf(lt,Xt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:li}})}}Xe();break}case"ArrowDown":{if(As({isAudioDisabled:ye,audioDisabledHintCallback:ce,isAudioAvailable:p(),audioIsNotExistHintCallback:ve,isAds:e.isAds})){let lt=f(),Xt=L.controls.volumeStepKeyboard,Jt=lt>=0;if(Xc(E,lt,Xt),Jt){let li=Math.round(uf(lt,Xt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:li}})}}Xe();break}case"Comma":{if(X.shiftKey){E.actions.internal.decrementPlaybackRate();let lt=v().find(Xt=>Xt.value===u());e.showHotKeyHelpers({type:"RATE_DOWN",text:lt==null?void 0:lt.displayValue}),Xe()}else{if(et||n()!==ca.PAUSED)break;let lt=Math.max(d()-L.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(lt,In.DOUBLE_TAP),Xe())}break}case"Period":{if(X.shiftKey){E.actions.internal.incrementPlaybackRate();let lt=v().find(Xt=>Xt.value===u());e.showHotKeyHelpers({type:"RATE_UP",text:lt==null?void 0:lt.displayValue}),Xe()}else{if(et||n()!==ca.PAUSED)break;let lt=Math.min(d()+L.controls.seekStepFrame/1e3,a());d()<a()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(lt,In.DOUBLE_TAP),Xe())}break}case"KeyK":case"Space":if(!l().has("PLAY_BUTTON"))if($()&&w()&&Ke.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{E.actions.internal.togglePlay();let lt="PLAY";n()===ca.PAUSED?lt="PAUSE":y()&&(lt="REPLAY"),e.showHotKeyHelpers({type:lt})}Xe();break;case"KeyM":{As({isAudioDisabled:ye,audioDisabledHintCallback:ce,isAudioAvailable:p(),audioIsNotExistHintCallback:ve,isAds:e.isAds})&&(e.showHotKeyHelpers({type:S()?"VOLUME":"MUTE"}),E.actions.internal.toggleMuted()),Xe();break}case"KeyF":e.toggleFullscreen(),Xe();break;case"KeyC":E.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(ui=T())==null?void 0:ui.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),Xe();break;case"KeyI":E.actions.internal.togglePictureInPicture(),Xe();break;case"Digit1":case"Numpad1":if(X.shiftKey){let lt=Yh(I());N.set(lt),Ve.set(fe),le.set(!0),ee.set(!0),Xe();break}e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.1,In.DOUBLE_TAP),Xe();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.2,In.DOUBLE_TAP),Xe();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.3,In.DOUBLE_TAP),Xe();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.4,In.DOUBLE_TAP),Xe();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.5,In.DOUBLE_TAP),Xe();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.6,In.DOUBLE_TAP),Xe();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.7,In.DOUBLE_TAP),Xe();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.8,In.DOUBLE_TAP),Xe();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.9,In.DOUBLE_TAP),Xe();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(0,In.DOUBLE_TAP),Xe();break;case"Slash":{X.shiftKey&&L.features.hotKeyMapModal&&(e.showKeyMap(),Xe());break}case"KeyN":X.shiftKey&&A()&&(E.actions.internal.nextVideoClick(),Xe());break;case"KeyP":X.shiftKey&&k()&&(E.actions.internal.prevVideoClick(),Xe());break;case"ShiftLeft":case"ShiftRight":Xe();break;case"Tab":case"Escape":case"Enter":break;default:Kb(De);break}return Mt},nt=X=>{let At=X.code;if(X.ctrlKey||X.altKey||X.metaKey)return;let fe=n()===ca.PLAYING||n()===ca.PAUSED,be=e.isAds&&(r()==="paused"||r()==="playing");if(fe||be)switch(At){case"ShiftLeft":case"ShiftRight":ue=0;break}},_t=F("aria_label_video_player"),$t=()=>{var X;return(X=s(Ae))==null?void 0:X.focus()},St=X=>X.type==="keydown"?Qe(X,!0):(X.type==="keyup"&&nt(X),!1);var Ge=Gb();Ge.__keyup=nt,Ge.__keydown=[Qb,Qe];var zt=_(Ge);ge(zt,()=>{var X;return(X=e.children)!=null?X:oe}),g(Ge),tt(Ge,X=>B(Ae,X),()=>s(Ae)),O(()=>Be(Ge,"aria-label",_t)),b(t,Ge);var Qt=H({focus:$t,handleExternalKeyboardEvent:St});return o(),Qt}dt(["keyup","keydown"]);var jb=M('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),Zb={hash:"svelte-1dbnjb1",code:`.container.svelte-1dbnjb1 {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex;}.dot.svelte-1dbnjb1:nth-child(1) {animation-delay:calc(0 * 180ms);}.dot.svelte-1dbnjb1:nth-child(2) {animation-delay:calc(1 * 180ms);}.dot.svelte-1dbnjb1:nth-child(3) {animation-delay:calc(2 * 180ms);}
141
141
 
142
142
  @keyframes svelte-1dbnjb1-dot_animation {
143
143
  0% {
@@ -150,7 +150,7 @@ Try switching the\xA0quality to\xA0Auto.`},wh=v_;var ms=new Map;ms.set(Ch.EN,wh)
150
150
  opacity: 0.2;
151
151
  }
152
152
  }.dot.svelte-1dbnjb1 {border-radius:4px;width:8px;height:8px;background:var(--btn-color);animation-duration:750ms;
153
- animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function ma(t,e){q(t,zb);let i=m(e,"style",3,"");var o=Ub();O(()=>it(o,i())),$(t,o)}var Wb=Te('<svg><!><g filter="url(#a)"><path fill="#fff" d="M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"></path></g><defs><filter id="a" width="23" height="23" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2422_111980"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2422_111980" result="shape"></feBlend></filter></defs></svg>');function cf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Wb();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(2),h(o),$(t,o)}import{noop as sl}from"@vkontakte/videoplayer-shared/es2018";var Kb=t=>{t.stopPropagation()},qb=A("<button><!></button>"),Qb={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;}
153
+ animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function ua(t,e){z(t,Zb);let i=m(e,"style",3,"");var o=jb();O(()=>at(o,i())),b(t,o)}var Xb=Se('<svg><!><g filter="url(#a)"><path fill="#fff" d="M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"></path></g><defs><filter id="a" width="23" height="23" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2422_111980"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2422_111980" result="shape"></feBlend></filter></defs></svg>');function ff(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Xb();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}import{noop as sl}from"@vkontakte/videoplayer-shared/es2018";var Jb=t=>{t.stopPropagation()},e$=M("<button><!></button>"),t$={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;}
154
154
 
155
155
  /* \u041D\u0438\u0436\u0435 \u0438\u0434\u0443\u0442 \u0430\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u044B\u0435 \u0438 \u0441\u043F\u0435\u0446\u0438\u0444\u0438\u043A \u043A\u043B\u0430\u0441\u0441\u044B \u0434\u043B\u044F \u043A\u043D\u043E\u043F\u043E\u043A \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043C\u043E\u0436\u043D\u043E \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u044C \u0447\u0435\u0440\u0435\u0437 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 className */.w-max.svelte-wr0kwr {width:100%;}.btn--live.svelte-wr0kwr {padding:10px 4px;}.btn-jc-l.svelte-wr0kwr {justify-content:left;}
156
156
 
@@ -158,22 +158,22 @@ Try switching the\xA0quality to\xA0Auto.`},wh=v_;var ms=new Map;ms.set(Ch.EN,wh)
158
158
  /* mobile */
159
159
  /* 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,
160
160
  .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;
161
- /* \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 Rt(t,e){F(e,!0),q(t,Qb);let i=m(e,"className",3,""),o=m(e,"style",3,""),n=m(e,"disabled",3,void 0),s=m(e,"testId",3,void 0),l=m(e,"ariaHidden",3,void 0),d=m(e,"ariaLabel",3,void 0),a=m(e,"ref",15,void 0),u=m(e,"ariaKeyShortCut",3,void 0),f=m(e,"ariaExpanded",3,void 0),v=m(e,"tabIndex",3,0),p=m(e,"click",3,sl),b=m(e,"focus",3,sl),x=m(e,"blur",3,sl),y=g(()=>p()===sl?null:k=>{k.stopPropagation(),p()(k)}),C=g(()=>b()===sl?null:k=>{k.preventDefault(),b()()}),T=g(()=>x()===sl?null:k=>{k.preventDefault(),x()()});var E=qb();E.__pointerdown=[Kb],E.__click=function(...k){var I;(I=r(y))==null||I.apply(this,k)};var M=_(E);be(M,()=>{var k;return(k=e.children)!=null?k:se}),h(E),et(E,k=>a(k),()=>a()),O(()=>{var k,I,N,Y,D,H,W,ee;J(E,1,`btn ${(k=i())!=null?k:""}`,"svelte-wr0kwr"),it(E,o()||null),E.disabled=(I=n())!=null?I:null,Oe(E,"aria-hidden",(N=l())!=null?N:null),Oe(E,"aria-label",(Y=d())!=null?Y:null),Oe(E,"aria-keyshortcuts",(D=u())!=null?D:null),Oe(E,"aria-expanded",(H=f())!=null?H:null),Oe(E,"data-testid",(W=s())!=null?W:null),Oe(E,"tabindex",v()),Oe(E,"role",e.role),Oe(E,"aria-checked",(ee=e.areaChecked)!=null?ee:null)}),xt("focus",E,function(...k){var I;(I=r(C))==null||I.apply(this,k)}),xt("blur",E,function(...k){var I;(I=r(T))==null||I.apply(this,k)}),$(t,E),U()}at(["pointerdown","click"]);var Gb=A('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),Yb=A('<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>'),jb={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 uf(t,e){F(e,!0),q(t,jb);let i=m(e,"showHeader",3,!0),o=m(e,"showCloseCross",3,!0),n=z("hotkey_map_modal_close_btn_text");var s=Yb(),l=_(s),d=_(l);{var a=p=>{var b=Gb(),x=_(b),y=_(x,!0);h(x);var C=P(x,2);{var T=E=>{Rt(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return n},children:(M,k)=>{cf(M,{})},$$slots:{default:!0}})};L(C,E=>{o()&&E(T)})}h(b),O(()=>he(y,e.title)),$(p,b)};L(d,p=>{i()&&p(a)})}var u=P(d,2),f=_(u),v=_(f);be(v,()=>{var p;return(p=e.children)!=null?p:se}),h(f),h(u),h(l),h(s),$(t,s),U()}var Zb=new Set(["BR"]),qh=t=>{var n;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let s=i[o],l=s.tagName;Zb.has(l)||(n=s.parentElement)==null||n.removeChild(s)}return e.innerHTML};var Xb=A('<li class="hot-key-map-item svelte-quklnq"><span class="hot-key-map-item-description svelte-quklnq"><!></span> <span class="hot-key-map-item-value svelte-quklnq"> </span></li>'),Jb=A('<div class="hot-key-map-group svelte-quklnq"><h5 class="hot-key-map-group-title svelte-quklnq"> </h5> <ul class="hot-key-map-group-items svelte-quklnq"></ul></div>'),e$=A('<div class="hot-key-map svelte-quklnq"></div>'),t$={hash:"svelte-quklnq",code:`.hot-key-map.svelte-quklnq {color:var(--black);box-sizing:border-box;overflow-x:hidden;}.hot-key-map-group.svelte-quklnq {border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px;}.hot-key-map-group.svelte-quklnq:last-child {border-bottom:none;}.hot-key-map-group-title.svelte-quklnq {color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.hot-key-map-group-title.svelte-quklnq,
161
+ /* \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){D(e,!0),z(t,t$);let i=m(e,"className",3,""),o=m(e,"style",3,""),n=m(e,"disabled",3,void 0),r=m(e,"testId",3,void 0),l=m(e,"ariaHidden",3,void 0),d=m(e,"ariaLabel",3,void 0),a=m(e,"ref",15,void 0),p=m(e,"ariaKeyShortCut",3,void 0),f=m(e,"ariaExpanded",3,void 0),v=m(e,"tabIndex",3,0),u=m(e,"click",3,sl),$=m(e,"focus",3,sl),w=m(e,"blur",3,sl),y=h(()=>u()===sl?null:k=>{k.stopPropagation(),u()(k)}),S=h(()=>$()===sl?null:k=>{k.preventDefault(),$()()}),T=h(()=>w()===sl?null:k=>{k.preventDefault(),w()()});var I=e$();I.__pointerdown=[Jb],I.__click=function(...k){var E;(E=s(y))==null||E.apply(this,k)};var A=_(I);ge(A,()=>{var k;return(k=e.children)!=null?k:oe}),g(I),tt(I,k=>a(k),()=>a()),O(()=>{var k,E,L,K,U,W,G,te;J(I,1,`btn ${(k=i())!=null?k:""}`,"svelte-wr0kwr"),at(I,o()||null),I.disabled=(E=n())!=null?E:null,Be(I,"aria-hidden",(L=l())!=null?L:null),Be(I,"aria-label",(K=d())!=null?K:null),Be(I,"aria-keyshortcuts",(U=p())!=null?U:null),Be(I,"aria-expanded",(W=f())!=null?W:null),Be(I,"data-testid",(G=r())!=null?G:null),Be(I,"tabindex",v()),Be(I,"role",e.role),Be(I,"aria-checked",(te=e.areaChecked)!=null?te:null)}),Tt("focus",I,function(...k){var E;(E=s(S))==null||E.apply(this,k)}),Tt("blur",I,function(...k){var E;(E=s(T))==null||E.apply(this,k)}),b(t,I),H()}dt(["pointerdown","click"]);var i$=M('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),o$=M('<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>'),n$={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 mf(t,e){D(e,!0),z(t,n$);let i=m(e,"showHeader",3,!0),o=m(e,"showCloseCross",3,!0),n=F("hotkey_map_modal_close_btn_text");var r=o$(),l=_(r),d=_(l);{var a=u=>{var $=i$(),w=_($),y=_(w,!0);g(w);var S=P(w,2);{var T=I=>{Vt(I,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return n},children:(A,k)=>{ff(A,{})},$$slots:{default:!0}})};R(S,I=>{o()&&I(T)})}g($),O(()=>he(y,e.title)),b(u,$)};R(d,u=>{i()&&u(a)})}var p=P(d,2),f=_(p),v=_(f);ge(v,()=>{var u;return(u=e.children)!=null?u:oe}),g(f),g(p),g(l),g(r),b(t,r),H()}var r$=new Set(["BR"]),Xh=t=>{var n;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let r=i[o],l=r.tagName;r$.has(l)||(n=r.parentElement)==null||n.removeChild(r)}return e.innerHTML};var s$=M('<li class="hot-key-map-item svelte-quklnq"><span class="hot-key-map-item-description svelte-quklnq"><!></span> <span class="hot-key-map-item-value svelte-quklnq"> </span></li>'),a$=M('<div class="hot-key-map-group svelte-quklnq"><h5 class="hot-key-map-group-title svelte-quklnq"> </h5> <ul class="hot-key-map-group-items svelte-quklnq"></ul></div>'),l$=M('<div class="hot-key-map svelte-quklnq"></div>'),d$={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,
162
162
  .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,
163
- .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 pf(t,e){F(e,!1),q(t,t$);let[i,o]=Be(),n=()=>S(l,"$data",i),s=ke(),{data:l,show:d}=s.ui.modals.hotKeyMap,a=()=>{d.set(!1)};Vr(),uf(t,{get title(){return n().title},onClose:a,children:(u,f)=>{var v=e$();xi(v,5,()=>n().groups,({title:p,items:b})=>p,(p,b)=>{let x=()=>r(b).title,y=()=>r(b).items;var C=Jb(),T=_(C),E=_(T,!0);h(T);var M=P(T,2);xi(M,5,y,({description:k,value:I})=>I,(k,I)=>{let N=()=>r(I).description,Y=()=>r(I).value;var D=Xb(),H=_(D),W=_(H);Ol(W,()=>qh(N())),h(H);var ee=P(H,2),K=_(ee,!0);h(ee),h(D),O(()=>he(K,Y())),$(k,D)}),h(M),h(C),O(()=>he(E,x())),$(p,C)}),h(v),$(u,v)},$$slots:{default:!0}}),U(),o()}import{noop as _1}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as p1,PlaybackState as Zf}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-shared/es2018";var i$=A('<div class="pillow svelte-1oe0j8n"><!></div>'),o$={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 ff(t,e){q(t,o$);var i=i$(),o=_(i);be(o,()=>{var n;return(n=e.children)!=null?n:se}),h(i),$(t,i)}import{VideoQuality as ld}from"@vkontakte/videoplayer-shared/es2018";var n$=Te('<svg><!><path fill="currentColor" d="M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"></path><path fill="currentColor" fill-rule="evenodd" d="m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z" clip-rule="evenodd"></path></svg>');function mf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=n$();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(2),h(o),$(t,o)}var r$=Te('<svg><!><path fill="currentColor" d="M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"></path><path fill="currentColor" fill-rule="evenodd" d="M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524" clip-rule="evenodd"></path></svg>');function vf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=r$();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(2),h(o),$(t,o)}var s$=Te('<svg><!><path fill="currentColor" d="M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"></path></svg>');function gf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=s$();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(),h(o),$(t,o)}var a$=Te('<svg><!><path fill="currentColor" d="M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"></path></svg>');function sd(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=a$();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(),h(o),$(t,o)}var l$=Te('<svg><!><path fill="currentColor" d="M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"></path><path fill="currentColor" fill-rule="evenodd" d="M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02" clip-rule="evenodd"></path></svg>');function ad(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=l$();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(2),h(o),$(t,o)}var Jc=t=>{switch(t){case ld.Q_720P:return gf;case ld.Q_1080P:return sd;case ld.Q_1440P:return ad;case ld.Q_2160P:return mf;case ld.Q_4320P:return vf}};var d$=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"></path></svg>');function hf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=d$();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(),h(o),$(t,o)}var c$=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5" class="_full"></path></svg>');function _f(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=c$();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(2),h(o),$(t,o)}var u$=A('<div aria-hidden="true"><!> <!></div>'),p$={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 dd(t,e){F(e,!0),q(t,p$);let i=m(e,"isMobile",3,!1),o=m(e,"currentQuality",3,void 0),n=g(()=>Jc(o())),s=g(()=>!!r(n)&&[sd,ad].includes(r(n)));var l=Fe(),d=ve(l);{var a=f=>{hf(f,{})},u=f=>{var v=u$();let p;var b=_(v);{var x=T=>{ff(T,{children:(E,M)=>{var k=Fe(),I=ve(k);wi(I,()=>r(n),(N,Y)=>{Y(N,{})}),$(E,k)},$$slots:{default:!0}})};L(b,T=>{r(n)&&T(x)})}var y=P(b,2);let C=g(()=>r(n)?"settings-icon--labeled":"settings-icon");_f(y,{get"data-testid"(){return r(C)},fill:"var(--btn-color, #fff)"}),h(v),O(T=>p=J(v,1,"icon svelte-8t5w85",null,p,T),[()=>({triple:r(s)})]),$(f,v)};L(d,f=>{i()?f(a):f(u,!1)})}$(t,l),U()}var f$=A('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),m$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function al(t,e){F(e,!0),q(t,m$);let[i,o]=Be(),n=()=>S(e.ref$,"$ref$",i),s=()=>S(f,"$settingsMenuVisible",i),l=()=>S(b,"$isMobile",i),d=()=>S(u,"$currentQuality",i),a=ke(),u=a.state.currentQuality$,f=a.ui.settingsMenu.visible$,v=a.actions.internal.openSettingsMenu,p=a.actions.internal.closeSettingsMenu,b=a.ui.isMobile,x=a.ui.t,y=j(void 0);We(()=>{n()&&Ct(()=>{e.ref$.set(r(y))})});let C=x("aria_label_settings");async function T(M){let k=Vs(M);s()?p():v(k,bo)}let E=g(()=>s()?"opened":"");Rt(t,{get className(){return r(E)},testId:"btn-settings",click:T,get ariaLabel(){return C},get ariaExpanded(){return s()},get ref(){return r(y)},set ref(M){B(y,M,!0)},children:(M,k)=>{var I=f$(),N=_(I);dd(N,{get isMobile(){return l()},get currentQuality(){return d()}}),h(I),$(M,I)},$$slots:{default:!0}}),U(),o()}var v$=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.538 4c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.334v3.076c0 .948 0 1.714-.05 2.334-.053.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.922c-.267-.523-.377-1.087-.43-1.726C2 15.252 2 14.486 2 13.538v-3.076c0-.948 0-1.714.05-2.334.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.267 1.087-.377 1.726-.43C6.748 4 7.514 4 8.462 4zM6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9m.9-4.7a.9.9 0 1 0 0 1.8h1.7a.9.9 0 1 0 0-1.8zm7.6 4.7a.9.9 0 0 1 .9-.9h1.7a.9.9 0 0 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9m-2.6-4.7a.9.9 0 1 0 0 1.8h5.2a.9.9 0 0 0 0-1.8z" clip-rule="evenodd"></path></svg>');function bf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=v$();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",viewBox:"0 0 24 24",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(),h(o),$(t,o)}var g$=Te('<svg><!><g fill="var(--btn-color, #fff)" fill-rule="evenodd" clip-rule="evenodd"><path d="M8.462 4h7.076c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.333v3.077c0 .948 0 1.713-.05 2.334-.053.64-.163 1.203-.43 1.725a4.4 4.4 0 0 1-1.922 1.923c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.923c-.267-.522-.377-1.086-.43-1.725C2 15.252 2 14.486 2 13.538v-3.077c0-.947 0-1.713.05-2.333.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.266 1.087-.376 1.726-.428C6.748 4 7.514 4 8.462 4M6.275 5.845c-.528.043-.83.123-1.055.238A2.6 2.6 0 0 0 4.083 7.22c-.115.227-.195.527-.238 1.055C3.8 8.813 3.8 9.504 3.8 10.5v3c0 .995 0 1.687.045 2.225.043.528.123.829.238 1.055a2.6 2.6 0 0 0 1.137 1.136c.226.116.527.196 1.055.24.538.043 1.23.044 2.225.044h7c.995 0 1.687 0 2.226-.045.527-.043.828-.123 1.054-.239a2.6 2.6 0 0 0 1.137-1.136c.115-.226.195-.527.238-1.055.044-.538.045-1.23.045-2.225v-3c0-.995 0-1.687-.045-2.226-.043-.528-.123-.828-.238-1.054a2.6 2.6 0 0 0-1.137-1.137c-.226-.115-.527-.195-1.055-.238-.538-.044-1.23-.045-2.225-.045h-7c-.995 0-1.687 0-2.226.045"></path><path d="M6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M6 11.1a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M14.5 14.9a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9M11 11.1a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8h-5.2a.9.9 0 0 1-.9-.9"></path></g></svg>');function cd(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=g$();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",viewBox:"0 0 24 24",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(),h(o),$(t,o)}function $f(t,e){F(e,!0);let i=m(e,"isSubtitlesEnabled",3,!1),n=ke().ui.t,s=g(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Rt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(s)},get click(){return e.click},get ariaKeyShortCut(){return Xr.KeyC},role:"button",children:(l,d)=>{var a=Fe(),u=ve(a);{var f=p=>{bf(p,{})},v=p=>{cd(p,{})};L(u,p=>{i()?p(f):p(v,!1)})}$(l,a)},$$slots:{default:!0}}),U()}var h$=A('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),_$=A('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),b$={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 ud(t,e){F(e,!0),q(t,b$);let i=m(e,"isMobile",3,!1),o=m(e,"showDuration",3,!0),n=m(e,"ref",15),s=g(()=>mn(e.duration)),l=g(()=>mn(e.position));var d=_$();let a;var u=_(d),f=_(u,!0);h(u);var v=P(u,2);{var p=b=>{var x=h$(),y=_(x,!0);h(x),O(()=>he(y,r(s))),$(b,x)};L(v,b=>{o()&&b(p)})}h(d),et(d,b=>n(b),()=>n()),O(b=>{a=J(d,1,"time svelte-sz9er7",null,a,b),he(f,r(l))},[()=>({mobile:i()})]),$(t,d),U()}import{noop as eu}from"@vkontakte/videoplayer-shared/es2018";var $$=Te('<svg xmlns="http://www.w3.org/2000/svg" class="icon svelte-v40k9i" aria-hidden="true"><g fill="var(--btn-color, #fff)" fill-rule="evenodd"><path d="M2 9.94595C2 9.41522 2.41461 8.97693 2.94453 8.94749L5.775 8.79025C6.24338 8.76422 6.6877 8.57439 7.03029 8.25394L11.3169 4.24433C11.9558 3.64667 13 4.09974 13 4.97464V19.0253C13 19.9002 11.9558 20.3533 11.3169 19.7556L7.03029 15.746C6.6877 15.4255 6.24337 15.2357 5.77499 15.2097L2.94453 15.0524C2.41461 15.023 2 14.5847 2 14.054V9.94595Z"></path><path class="cross svelte-v40k9i" d="M22.4636 8.26359C22.8151 7.91212 23.3849 7.91212 23.7364 8.26359C24.0879 8.61506 24.0879 9.18491 23.7364 9.53638L21.2728 12L23.7364 14.4636C24.0879 14.815 24.0879 15.3849 23.7364 15.7364C23.3849 16.0878 22.8151 16.0878 22.4636 15.7364L20 13.2728L17.5364 15.7364C17.1849 16.0878 16.6151 16.0878 16.2636 15.7364C15.9121 15.3849 15.9121 14.815 16.2636 14.4636L18.7272 12L16.2636 9.53638C15.9121 9.18491 15.9121 8.61506 16.2636 8.26359C16.6151 7.91212 17.1849 7.91212 17.5364 8.26359L20 10.7272L22.4636 8.26359Z"></path><path class="wave1 svelte-v40k9i" d="M15.7484 8.89758C16.0811 8.52829 16.6501 8.49862 17.0194 8.83132C17.8726 9.59994 18.4 10.7425 18.4 12C18.4 13.2575 17.8726 14.4001 17.0194 15.1687C16.6501 15.5014 16.0811 15.4717 15.7484 15.1024C15.4157 14.7331 15.4453 14.1641 15.8146 13.8314C16.2849 13.4077 16.6 12.753 16.6 12C16.6 11.2471 16.2849 10.5923 15.8146 10.1686C15.4453 9.83595 15.4157 9.26687 15.7484 8.89758Z"></path><path class="wave2 svelte-v40k9i" d="M18.8141 6.67424C19.1924 6.35184 19.7605 6.39716 20.0829 6.77547C21.2779 8.17774 22 10.0053 22 12C22 13.9946 21.2779 15.8222 20.0829 17.2245C19.7605 17.6028 19.1924 17.6481 18.8141 17.3257C18.4358 17.0033 18.3905 16.4353 18.7129 16.057C19.639 14.9702 20.2 13.5535 20.2 12C20.2 10.4464 19.639 9.02976 18.7129 7.943C18.3905 7.56469 18.4358 6.99665 18.8141 6.67424Z"></path></g></svg>'),y$={hash:"svelte-v40k9i",code:`.icon.svelte-v40k9i {display:block;width:24px;height:24px;}.icon.svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .wave1:where(.svelte-v40k9i),
163
+ .hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function vf(t,e){D(e,!1),z(t,d$);let[i,o]=Fe(),n=()=>C(l,"$data",i),r=Ee(),{data:l,show:d}=r.ui.modals.hotKeyMap,a=()=>{d.set(!1)};Vr(),mf(t,{get title(){return n().title},onClose:a,children:(p,f)=>{var v=l$();wi(v,5,()=>n().groups,({title:u,items:$})=>u,(u,$)=>{let w=()=>s($).title,y=()=>s($).items;var S=a$(),T=_(S),I=_(T,!0);g(T);var A=P(T,2);wi(A,5,y,({description:k,value:E})=>E,(k,E)=>{let L=()=>s(E).description,K=()=>s(E).value;var U=s$(),W=_(U),G=_(W);Dl(G,()=>Xh(L())),g(W);var te=P(W,2),j=_(te,!0);g(te),g(U),O(()=>he(j,K())),b(k,U)}),g(A),g(S),O(()=>he(I,w())),b(u,S)}),g(v),b(p,v)},$$slots:{default:!0}}),H(),o()}import{noop as C1}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as _1,PlaybackState as em}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-shared/es2018";var c$=M('<div class="pillow svelte-1oe0j8n"><!></div>'),u$={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 gf(t,e){z(t,u$);var i=c$(),o=_(i);ge(o,()=>{var n;return(n=e.children)!=null?n:oe}),g(i),b(t,i)}import{VideoQuality as dd}from"@vkontakte/videoplayer-shared/es2018";var p$=Se('<svg><!><path fill="currentColor" d="M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"></path><path fill="currentColor" fill-rule="evenodd" d="m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z" clip-rule="evenodd"></path></svg>');function hf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=p$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}var f$=Se('<svg><!><path fill="currentColor" d="M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"></path><path fill="currentColor" fill-rule="evenodd" d="M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524" clip-rule="evenodd"></path></svg>');function _f(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=f$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}var m$=Se('<svg><!><path fill="currentColor" d="M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"></path></svg>');function bf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=m$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var v$=Se('<svg><!><path fill="currentColor" d="M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"></path></svg>');function ad(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=v$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var g$=Se('<svg><!><path fill="currentColor" d="M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"></path><path fill="currentColor" fill-rule="evenodd" d="M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02" clip-rule="evenodd"></path></svg>');function ld(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=g$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}var Jc=t=>{switch(t){case dd.Q_720P:return bf;case dd.Q_1080P:return ad;case dd.Q_1440P:return ld;case dd.Q_2160P:return hf;case dd.Q_4320P:return _f}};var h$=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"></path></svg>');function $f(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=h$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var _$=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5" class="_full"></path></svg>');function yf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=_$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}var b$=M('<div aria-hidden="true"><!> <!></div>'),$$={hash:"svelte-8t5w85",code:'.icon.svelte-8t5w85 {display:flex;position:relative;width:24px;height:24px;}.icon.svelte-8t5w85 .pillow {position:absolute;top:1px;right:-9px;}.icon.triple.svelte-8t5w85 .pillow {right:-13px;}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full {visibility:hidden;opacity:0;}'};function cd(t,e){D(e,!0),z(t,$$);let i=m(e,"isMobile",3,!1),o=m(e,"currentQuality",3,void 0),n=h(()=>Jc(o())),r=h(()=>!!s(n)&&[ad,ld].includes(s(n)));var l=ze(),d=pe(l);{var a=f=>{$f(f,{})},p=f=>{var v=b$();let u;var $=_(v);{var w=T=>{gf(T,{children:(I,A)=>{var k=ze(),E=pe(k);Ci(E,()=>s(n),(L,K)=>{K(L,{})}),b(I,k)},$$slots:{default:!0}})};R($,T=>{s(n)&&T(w)})}var y=P($,2);let S=h(()=>s(n)?"settings-icon--labeled":"settings-icon");yf(y,{get"data-testid"(){return s(S)},fill:"var(--btn-color, #fff)"}),g(v),O(T=>u=J(v,1,"icon svelte-8t5w85",null,u,T),[()=>({triple:s(r)})]),b(f,v)};R(d,f=>{i()?f(a):f(p,!1)})}b(t,l),H()}var y$=M('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),x$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function al(t,e){D(e,!0),z(t,x$);let[i,o]=Fe(),n=()=>C(p,"$settingsMenuVisible",i),r=()=>C(u,"$isMobile",i),l=()=>C(a,"$currentQuality",i),d=Ee(),a=d.state.currentQuality$,p=d.ui.settingsMenu.visible$,f=d.actions.internal.openSettingsMenu,v=d.actions.internal.closeSettingsMenu,u=d.ui.isMobile,$=d.ui.t,w=Y(void 0);qe(()=>{s(w)&&Ct(()=>{e.ref$.set(s(w))})});let y=$("aria_label_settings");async function S(I){let A=Ps(I);n()?v():f(A,ho)}let T=h(()=>n()?"opened":"");Vt(t,{get className(){return s(T)},testId:"btn-settings",click:S,get ariaLabel(){return y},get ariaExpanded(){return n()},get ref(){return s(w)},set ref(I){B(w,I,!0)},children:(I,A)=>{var k=y$(),E=_(k);cd(E,{get isMobile(){return r()},get currentQuality(){return l()}}),g(k),b(I,k)},$$slots:{default:!0}}),H(),o()}var w$=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.538 4c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.334v3.076c0 .948 0 1.714-.05 2.334-.053.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.922c-.267-.523-.377-1.087-.43-1.726C2 15.252 2 14.486 2 13.538v-3.076c0-.948 0-1.714.05-2.334.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.267 1.087-.377 1.726-.43C6.748 4 7.514 4 8.462 4zM6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9m.9-4.7a.9.9 0 1 0 0 1.8h1.7a.9.9 0 1 0 0-1.8zm7.6 4.7a.9.9 0 0 1 .9-.9h1.7a.9.9 0 0 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9m-2.6-4.7a.9.9 0 1 0 0 1.8h5.2a.9.9 0 0 0 0-1.8z" clip-rule="evenodd"></path></svg>');function xf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=w$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",viewBox:"0 0 24 24",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var C$=Se('<svg><!><g fill="var(--btn-color, #fff)" fill-rule="evenodd" clip-rule="evenodd"><path d="M8.462 4h7.076c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.333v3.077c0 .948 0 1.713-.05 2.334-.053.64-.163 1.203-.43 1.725a4.4 4.4 0 0 1-1.922 1.923c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.923c-.267-.522-.377-1.086-.43-1.725C2 15.252 2 14.486 2 13.538v-3.077c0-.947 0-1.713.05-2.333.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.266 1.087-.376 1.726-.428C6.748 4 7.514 4 8.462 4M6.275 5.845c-.528.043-.83.123-1.055.238A2.6 2.6 0 0 0 4.083 7.22c-.115.227-.195.527-.238 1.055C3.8 8.813 3.8 9.504 3.8 10.5v3c0 .995 0 1.687.045 2.225.043.528.123.829.238 1.055a2.6 2.6 0 0 0 1.137 1.136c.226.116.527.196 1.055.24.538.043 1.23.044 2.225.044h7c.995 0 1.687 0 2.226-.045.527-.043.828-.123 1.054-.239a2.6 2.6 0 0 0 1.137-1.136c.115-.226.195-.527.238-1.055.044-.538.045-1.23.045-2.225v-3c0-.995 0-1.687-.045-2.226-.043-.528-.123-.828-.238-1.054a2.6 2.6 0 0 0-1.137-1.137c-.226-.115-.527-.195-1.055-.238-.538-.044-1.23-.045-2.225-.045h-7c-.995 0-1.687 0-2.226.045"></path><path d="M6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M6 11.1a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M14.5 14.9a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9M11 11.1a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8h-5.2a.9.9 0 0 1-.9-.9"></path></g></svg>');function ud(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=C$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",viewBox:"0 0 24 24",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}function wf(t,e){D(e,!0);let i=m(e,"isSubtitlesEnabled",3,!1),n=Ee().ui.t,r=h(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Vt(t,{testId:"btn-Subtitles",get ariaLabel(){return s(r)},get click(){return e.click},get ariaKeyShortCut(){return Xr.KeyC},role:"button",children:(l,d)=>{var a=ze(),p=pe(a);{var f=u=>{xf(u,{})},v=u=>{ud(u,{})};R(p,u=>{i()?u(f):u(v,!1)})}b(l,a)},$$slots:{default:!0}}),H()}var S$=M('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),T$=M('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),E$={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 pd(t,e){D(e,!0),z(t,E$);let i=m(e,"isMobile",3,!1),o=m(e,"showDuration",3,!0),n=m(e,"ref",15),r=h(()=>un(e.duration)),l=h(()=>un(e.position));var d=T$();let a;var p=_(d),f=_(p,!0);g(p);var v=P(p,2);{var u=$=>{var w=S$(),y=_(w,!0);g(w),O(()=>he(y,s(r))),b($,w)};R(v,$=>{o()&&$(u)})}g(d),tt(d,$=>n($),()=>n()),O($=>{a=J(d,1,"time svelte-sz9er7",null,a,$),he(f,s(l))},[()=>({mobile:i()})]),b(t,d),H()}import{noop as eu}from"@vkontakte/videoplayer-shared/es2018";var I$=Se('<svg xmlns="http://www.w3.org/2000/svg" class="icon svelte-v40k9i" aria-hidden="true"><g fill="var(--btn-color, #fff)" fill-rule="evenodd"><path d="M2 9.94595C2 9.41522 2.41461 8.97693 2.94453 8.94749L5.775 8.79025C6.24338 8.76422 6.6877 8.57439 7.03029 8.25394L11.3169 4.24433C11.9558 3.64667 13 4.09974 13 4.97464V19.0253C13 19.9002 11.9558 20.3533 11.3169 19.7556L7.03029 15.746C6.6877 15.4255 6.24337 15.2357 5.77499 15.2097L2.94453 15.0524C2.41461 15.023 2 14.5847 2 14.054V9.94595Z"></path><path class="cross svelte-v40k9i" d="M22.4636 8.26359C22.8151 7.91212 23.3849 7.91212 23.7364 8.26359C24.0879 8.61506 24.0879 9.18491 23.7364 9.53638L21.2728 12L23.7364 14.4636C24.0879 14.815 24.0879 15.3849 23.7364 15.7364C23.3849 16.0878 22.8151 16.0878 22.4636 15.7364L20 13.2728L17.5364 15.7364C17.1849 16.0878 16.6151 16.0878 16.2636 15.7364C15.9121 15.3849 15.9121 14.815 16.2636 14.4636L18.7272 12L16.2636 9.53638C15.9121 9.18491 15.9121 8.61506 16.2636 8.26359C16.6151 7.91212 17.1849 7.91212 17.5364 8.26359L20 10.7272L22.4636 8.26359Z"></path><path class="wave1 svelte-v40k9i" d="M15.7484 8.89758C16.0811 8.52829 16.6501 8.49862 17.0194 8.83132C17.8726 9.59994 18.4 10.7425 18.4 12C18.4 13.2575 17.8726 14.4001 17.0194 15.1687C16.6501 15.5014 16.0811 15.4717 15.7484 15.1024C15.4157 14.7331 15.4453 14.1641 15.8146 13.8314C16.2849 13.4077 16.6 12.753 16.6 12C16.6 11.2471 16.2849 10.5923 15.8146 10.1686C15.4453 9.83595 15.4157 9.26687 15.7484 8.89758Z"></path><path class="wave2 svelte-v40k9i" d="M18.8141 6.67424C19.1924 6.35184 19.7605 6.39716 20.0829 6.77547C21.2779 8.17774 22 10.0053 22 12C22 13.9946 21.2779 15.8222 20.0829 17.2245C19.7605 17.6028 19.1924 17.6481 18.8141 17.3257C18.4358 17.0033 18.3905 16.4353 18.7129 16.057C19.639 14.9702 20.2 13.5535 20.2 12C20.2 10.4464 19.639 9.02976 18.7129 7.943C18.3905 7.56469 18.4358 6.99665 18.8141 6.67424Z"></path></g></svg>'),k$={hash:"svelte-v40k9i",code:`.icon.svelte-v40k9i {display:block;width:24px;height:24px;}.icon.svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .wave1:where(.svelte-v40k9i),
164
164
  .icon[data-value='off'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:visible;}.icon[data-value='mid'].svelte-v40k9i .wave2:where(.svelte-v40k9i),
165
- .icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function Ns(t,e){q(t,y$);let i=m(e,"volume",3,1),o=m(e,"muted",3,!1),n=(d,a)=>a?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",s=g(()=>n(i(),o()));var l=$$();O(()=>{var d;Oe(l,"data-value",r(s)),Oe(l,"data-testid",`volume-${(d=r(s))!=null?d:""}-icon`)}),$(t,l)}import{isNonNullable as Gh,noop as jn}from"@vkontakte/videoplayer-shared/es2018";import{noop as xf}from"@vkontakte/videoplayer-shared/es2018";import{noop as w$}from"@vkontakte/videoplayer-shared/es2018";var x$=A('<div class="overlay"><!></div>');function yf(t,e){F(e,!0);let[i,o]=Be(),n=()=>S(l,"$overlayContainer$",i),l=ke().ui.overlayContainer$,d=j(void 0),a=p=>{!p||!r(d)||!p.contains(r(d))||p.removeChild(r(d))},u=p=>{!p||!r(d)||p.contains(r(d))||p.appendChild(r(d))};We(()=>{u(n())}),Nt(()=>(u(n()),()=>a(n())));var f=x$(),v=_(f);be(v,()=>{var p;return(p=e.children)!=null?p:se}),h(f),et(f,p=>B(d,p),()=>r(d)),$(t,f),U(),o()}var S$=A('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),C$=A("<div><!></div> <!>",1),T$={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 va(t,e){F(e,!0),q(t,T$);let[i,o]=Be(),n=()=>S(W,"$overlayContainer$",i),s=()=>S(H,"$containerSize",i),l=m(e,"isMobile",3,!1),d=m(e,"content",3,""),a=m(e,"active",15,!1),u=m(e,"translateX",3,0),f=m(e,"translateY",3,0),v=m(e,"isFullWidthWrapper",3,!1),p=m(e,"maxTooltipWidth",3,void 0),b=m(e,"placement",3,"top"),x=m(e,"onVisibilityChange",3,w$),y=5,C=j(void 0),T=j(void 0),E,M=j(0),k=j(0),I=j(0),N=j(0),Y=Ft(),D=ke(),H=D.ui.playerSize,W=D.ui.overlayContainer$;We(()=>{Ct(()=>{x()(a())})});let ee=D.getLogger().createComponentLog("Tooltip component"),K=()=>{if(!n()||!r(T)||!r(C))return;B(k,y);let Pe=n().getBoundingClientRect(),re=r(C).getBoundingClientRect(),Ee=re.width,Qe=r(T).clientWidth,rt=s().width,nt=(Ee-Qe)/2,Mt=re.left+u()-Pe.left,Je=Mt+nt,dt=re.top+f()-Pe.top,qt=Qe/2-y,oi=Je<8,Kt=Je+Qe>rt-8;oi&&(Je=8,qt=Mt+re.width/2-2.5*y),Kt&&(Je=rt-8-Qe,qt=re.left-Pe.left+re.width/2-Je-y),B(I,Je,!0),B(N,dt),B(M,qt,!0)},de=()=>{!n()||!r(T)||!r(C)||B(k,-y)},oe=()=>{if(!n()||!r(T)||!r(C))return;B(M,y);let Pe=n().getBoundingClientRect(),re=r(C).getBoundingClientRect(),Ee=re.height,Qe=r(T).clientHeight,rt=(Ee-Qe)/2+Qe,nt=re.left+u()-Pe.left-r(T).clientWidth,Mt=2,Je=nt-y;Je<8&&(Je=8);let qt=re.top+f()-Pe.top+rt,oi=Mt-rt/2,Kt=Mt-y;B(I,Je,!0),B(N,qt),B(k,oi),B(M,Kt)},we=()=>{!n()||!r(T)||!r(C)||B(M,-y)},Ie=()=>{switch(b()){case"top":K();break;case"bottom":de();break;case"left":oe();break;default:we()}},pe=()=>{try{if(!n()||!r(C))return;Ie(),a(!0)}catch(Pe){ee({message:String(Pe)})}},le=()=>{a(!1)},Ae=()=>{r(T)&&(E||(E=window.setTimeout(pe,Y.controls.hideTimeoutTooltips)),a()&&pe())},te=()=>{le(),window.clearTimeout(E),E=void 0},R=(Pe,re,Ee)=>{let Qe="";switch(b()){case"top":Qe=`transform: translate(${Pe}px, ${re}px);`;break;case"bottom":Qe=`transform: translate(${Pe}px, ${re}px); top: auto; bottom: 100%;`;break;case"left":Qe=`transform: translate(${Pe}px, ${re}px); left: 0; right: auto;`;break;default:Qe=`transform: translate(${Pe}px, ${re}px);`}return Qe+=` max-width: ${p()===void 0?"auto":`${p()}px`};`,Qe+=` opacity: ${Ee?1:0}; visibility: ${Ee?"visible":"hidden"}`,Qe},Ge=(Pe,re)=>{let Ee="";switch(b()){case"top":Ee=`transform: translate(${Pe}px, ${re}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ee=`transform: translate(${Pe}px, ${re}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ee=`transform: translate(${Pe}px, ${re}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ee=`transform: translate(${Pe}px, ${re}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ee},ie=g(()=>R(r(I),r(N),a())),Ke=g(()=>Ge(r(M),r(k)));Nt(Ie),Xo(()=>window.clearTimeout(E));var ce=C$(),fe=ve(ce);let $e;fe.__mousemove=Ae,fe.__mousedown=te,fe.__mouseup=Ae;var Z=_(fe);be(Z,()=>{var Pe;return(Pe=e.children)!=null?Pe:se}),h(fe),et(fe,Pe=>B(C,Pe),()=>r(C));var qe=P(fe,2);{var Ze=Pe=>{yf(Pe,{children:(re,Ee)=>{var Qe=S$(),rt=_(Qe),nt=_(rt,!0);h(rt);var Mt=P(rt,2);h(Qe),et(Qe,Je=>B(T,Je),()=>r(T)),O(()=>{it(Qe,r(ie)),he(nt,d()),it(Mt,r(Ke))}),$(re,Qe)},$$slots:{default:!0}})};L(qe,Pe=>{d()&&!l()&&Pe(Ze)})}O(Pe=>$e=J(fe,1,"tooltip-wrapper svelte-hxlyne",null,$e,Pe),[()=>({"full-width":v()})]),xt("mouseenter",fe,Ae),xt("mouseleave",fe,te),$(t,ce),U(),o()}at(["mousemove","mousedown","mouseup"]);var Qh=t=>{t.stopPropagation()},E$=A("<div><!></div>"),I$={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 Do(t,e){F(e,!0),q(t,I$);let[i,o]=Be(),n=()=>S(u,"$isGraphOpened$",i),s=()=>S(a,"$isMobile",i),l=ke(),d=co(),a=l.ui.isMobile,u=d.graphIsOpened$,f=l.ui.t,v=m(e,"className",3,""),p=m(e,"disabled",3,!1),b=m(e,"hasTooltip",3,!0),x=m(e,"ref",15,void 0),y=m(e,"width",15,void 0),C=m(e,"isFullWidthTooltip",3,!0),T=m(e,"tooltipContent",3,""),E=m(e,"tooltipActive",3,!1),M=m(e,"tooltipPlacement",3,"top"),k=m(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),I=m(e,"isAriaHidden",3,!1),N=m(e,"onTooltipVisibilityChange",3,xf),Y=m(e,"initialTranslateXPx",3,0),D=m(e,"initialTranslateYPx",19,()=>-18),H=m(e,"mouseEnter",3,xf),W=m(e,"mouseLeave",3,xf),ee=g(()=>p()?n()?f("tooltip_disabled_when_graph_on"):k():T());var K=E$();K.__pointerdown=[Qh],K.__click=[Qh];var de=_(K);{var oe=Ie=>{va(Ie,{get content(){return r(ee)},get translateX(){return Y()},get translateY(){return D()},get isFullWidthWrapper(){return C()},get active(){return E()},get placement(){return M()},get onVisibilityChange(){return N()},children:(pe,le)=>{var Ae=Fe(),te=ve(Ae);be(te,()=>{var R;return(R=e.children)!=null?R:se}),$(pe,Ae)},$$slots:{default:!0}})},we=Ie=>{var pe=Fe(),le=ve(pe);be(le,()=>{var Ae;return(Ae=e.children)!=null?Ae:se}),$(Ie,pe)};L(de,Ie=>{b()&&r(ee)&&!s()?Ie(oe):Ie(we,!1)})}h(K),et(K,Ie=>x(Ie),()=>x()),O(()=>{var Ie;J(K,1,`btn-container ${(Ie=v())!=null?Ie:""}`,"svelte-p9r045"),Oe(K,"aria-hidden",I()||null)}),xt("mouseenter",K,function(...Ie){var pe;(pe=H())==null||pe.apply(this,Ie)}),xt("mouseleave",K,function(...Ie){var pe;(pe=W())==null||pe.apply(this,Ie)}),Zr(K,"clientWidth",y),$(t,K),U(),o()}at(["pointerdown","click"]);var k$=Te('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect width="20" height="20" rx="10" fill="var(--btn-color, #fff)"></rect><path d="M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"></path></svg>');function pd(t,e){"use strict";var i=k$(),o=_(i),n=P(o);h(i),O(()=>{Oe(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Oe(o,"fill-opacity",e.completed?1:.24),Oe(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),$(t,i)}var P$=A("<div><!></div>"),A$={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 wf(t,e){F(e,!0),q(t,A$);let o=ke().ui.t,n=j(0),s=g(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Do(t,{get tooltipContent(){return r(s)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return r(n)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var a=P$();let u;var f=_(a);let v=g(()=>!!e.videoEpisode.completed);pd(f,{get completed(){return r(v)}}),h(a),O(p=>{u=J(a,1,"interactive-episode-icon svelte-bklhpe",null,u,p),it(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Zr(a,"clientWidth",p=>B(n,p)),$(l,a)},$$slots:{default:!0}}),U()}var M$=A('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),L$=A('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),V$={hash:"svelte-1u6kv8l",code:`.video-episodes-wrap.svelte-1u6kv8l {position:absolute;width:100%;height:100%;}.video-episode.svelte-1u6kv8l {position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:calc(-1 * var(--slider-height));padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s;}.video-episode.svelte-1u6kv8l:not(.disabled):where(:hover, :active) {transform:scaleY(1.5);}.video-episode-inner.svelte-1u6kv8l,
165
+ .icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function Ms(t,e){z(t,k$);let i=m(e,"volume",3,1),o=m(e,"muted",3,!1),n=(d,a)=>a?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",r=h(()=>n(i(),o()));var l=I$();O(()=>{var d;Be(l,"data-value",s(r)),Be(l,"data-testid",`volume-${(d=s(r))!=null?d:""}-icon`)}),b(t,l)}import{isNonNullable as e1,noop as kn}from"@vkontakte/videoplayer-shared/es2018";import{noop as Sf}from"@vkontakte/videoplayer-shared/es2018";import{noop as A$}from"@vkontakte/videoplayer-shared/es2018";var P$=M('<div class="overlay"><!></div>');function Cf(t,e){D(e,!0);let[i,o]=Fe(),n=()=>C(l,"$overlayContainer$",i),l=Ee().ui.overlayContainer$,d=Y(void 0),a=u=>{!u||!s(d)||!u.contains(s(d))||u.removeChild(s(d))},p=u=>{!u||!s(d)||u.contains(s(d))||u.appendChild(s(d))};qe(()=>{p(n())}),Nt(()=>(p(n()),()=>a(n())));var f=P$(),v=_(f);ge(v,()=>{var u;return(u=e.children)!=null?u:oe}),g(f),tt(f,u=>B(d,u),()=>s(d)),b(t,f),H(),o()}var M$=M('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),L$=M("<div><!></div> <!>",1),V$={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 pa(t,e){D(e,!0),z(t,V$);let[i,o]=Fe(),n=()=>C(G,"$overlayContainer$",i),r=()=>C(W,"$containerSize",i),l=m(e,"isMobile",3,!1),d=m(e,"content",3,""),a=m(e,"active",15,!1),p=m(e,"translateX",3,0),f=m(e,"translateY",3,0),v=m(e,"isFullWidthWrapper",3,!1),u=m(e,"maxTooltipWidth",3,void 0),$=m(e,"placement",3,"top"),w=m(e,"onVisibilityChange",3,A$),y=5,S=Y(void 0),T=Y(void 0),I,A=Y(0),k=Y(0),E=Y(0),L=Y(0),K=Ft(),U=Ee(),W=U.ui.playerSize,G=U.ui.overlayContainer$;qe(()=>{Ct(()=>{w()(a())})});let te=U.getLogger().createComponentLog("Tooltip component"),j=()=>{if(!n()||!s(T)||!s(S))return;B(k,y);let ke=n().getBoundingClientRect(),Ae=s(S).getBoundingClientRect(),Te=Ae.width,Qe=s(T).clientWidth,nt=r().width,_t=(Te-Qe)/2,$t=Ae.left+p()-ke.left,St=$t+_t,Ge=Ae.top+f()-ke.top,zt=Qe/2-y,Qt=St<8,Wt=St+Qe>nt-8;Qt&&(St=8,zt=$t+Ae.width/2-2.5*y),Wt&&(St=nt-8-Qe,zt=Ae.left-ke.left+Ae.width/2-St-y),B(E,St,!0),B(L,Ge),B(A,zt,!0)},ae=()=>{!n()||!s(T)||!s(S)||B(k,-y)},de=()=>{if(!n()||!s(T)||!s(S))return;B(A,y);let ke=n().getBoundingClientRect(),Ae=s(S).getBoundingClientRect(),Te=Ae.height,Qe=s(T).clientHeight,nt=(Te-Qe)/2+Qe,_t=Ae.left+p()-ke.left-s(T).clientWidth,$t=2,St=_t-y;St<8&&(St=8);let zt=Ae.top+f()-ke.top+nt,Qt=$t-nt/2,Wt=$t-y;B(E,St,!0),B(L,zt),B(k,Qt),B(A,Wt)},we=()=>{!n()||!s(T)||!s(S)||B(A,-y)},Re=()=>{switch($()){case"top":j();break;case"bottom":ae();break;case"left":de();break;default:we()}},me=()=>{try{if(!n()||!s(S))return;Re(),a(!0)}catch(ke){te({message:String(ke)})}},le=()=>{a(!1)},Ve=()=>{s(T)&&(I||(I=window.setTimeout(me,K.controls.hideTimeoutTooltips)),a()&&me())},ee=()=>{le(),window.clearTimeout(I),I=void 0},N=(ke,Ae,Te)=>{let Qe="";switch($()){case"top":Qe=`transform: translate(${ke}px, ${Ae}px);`;break;case"bottom":Qe=`transform: translate(${ke}px, ${Ae}px); top: auto; bottom: 100%;`;break;case"left":Qe=`transform: translate(${ke}px, ${Ae}px); left: 0; right: auto;`;break;default:Qe=`transform: translate(${ke}px, ${Ae}px);`}return Qe+=` max-width: ${u()===void 0?"auto":`${u()}px`};`,Qe+=` opacity: ${Te?1:0}; visibility: ${Te?"visible":"hidden"}`,Qe},Oe=(ke,Ae)=>{let Te="";switch($()){case"top":Te=`transform: translate(${ke}px, ${Ae}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Te=`transform: translate(${ke}px, ${Ae}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Te=`transform: translate(${ke}px, ${Ae}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Te=`transform: translate(${ke}px, ${Ae}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Te},_e=h(()=>N(s(E),s(L),a())),ve=h(()=>Oe(s(A),s(k)));Nt(Re),En(()=>window.clearTimeout(I));var ce=L$(),ne=pe(ce);let ye;ne.__mousemove=Ve,ne.__mousedown=ee,ne.__mouseup=function(...ke){var Ae;(Ae=e.disableMouseupTooltipShow?void 0:Ve)==null||Ae.apply(this,ke)};var Z=_(ne);ge(Z,()=>{var ke;return(ke=e.children)!=null?ke:oe}),g(ne),tt(ne,ke=>B(S,ke),()=>s(S));var Ke=P(ne,2);{var ue=ke=>{Cf(ke,{children:(Ae,Te)=>{var Qe=M$(),nt=_(Qe),_t=_(nt,!0);g(nt);var $t=P(nt,2);g(Qe),tt(Qe,St=>B(T,St),()=>s(T)),O(()=>{at(Qe,s(_e)),he(_t,d()),at($t,s(ve))}),b(Ae,Qe)},$$slots:{default:!0}})};R(Ke,ke=>{d()&&!l()&&ke(ue)})}O(ke=>ye=J(ne,1,"tooltip-wrapper svelte-hxlyne",null,ye,ke),[()=>({"full-width":v()})]),Tt("mouseenter",ne,Ve),Tt("mouseleave",ne,ee),b(t,ce),H(),o()}dt(["mousemove","mousedown","mouseup"]);var Jh=t=>{t.stopPropagation()},R$=M("<div><!></div>"),N$={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 bo(t,e){D(e,!0),z(t,N$);let[i,o]=Fe(),n=()=>C(p,"$isGraphOpened$",i),r=()=>C(a,"$isMobile",i),l=Ee(),d=co(),a=l.ui.isMobile,p=d.graphIsOpened$,f=l.ui.t,v=m(e,"className",3,""),u=m(e,"disabled",3,!1),$=m(e,"hasTooltip",3,!0),w=m(e,"ref",15,void 0),y=m(e,"width",15,void 0),S=m(e,"isFullWidthTooltip",3,!0),T=m(e,"tooltipContent",3,""),I=m(e,"tooltipActive",3,!1),A=m(e,"tooltipPlacement",3,"top"),k=m(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),E=m(e,"isAriaHidden",3,!1),L=m(e,"onTooltipVisibilityChange",3,Sf),K=m(e,"initialTranslateXPx",3,0),U=m(e,"initialTranslateYPx",19,()=>-18),W=m(e,"mouseEnter",3,Sf),G=m(e,"mouseLeave",3,Sf),te=h(()=>u()?n()?f("tooltip_disabled_when_graph_on"):k():T());var j=R$();j.__pointerdown=[Jh],j.__click=[Jh];var ae=_(j);{var de=Re=>{pa(Re,{get content(){return s(te)},get translateX(){return K()},get translateY(){return U()},get isFullWidthWrapper(){return S()},get active(){return I()},get placement(){return A()},get onVisibilityChange(){return L()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},children:(me,le)=>{var Ve=ze(),ee=pe(Ve);ge(ee,()=>{var N;return(N=e.children)!=null?N:oe}),b(me,Ve)},$$slots:{default:!0}})},we=Re=>{var me=ze(),le=pe(me);ge(le,()=>{var Ve;return(Ve=e.children)!=null?Ve:oe}),b(Re,me)};R(ae,Re=>{$()&&s(te)&&!r()?Re(de):Re(we,!1)})}g(j),tt(j,Re=>w(Re),()=>w()),O(()=>{var Re;J(j,1,`btn-container ${(Re=v())!=null?Re:""}`,"svelte-p9r045"),Be(j,"aria-hidden",E()||null)}),Tt("mouseenter",j,function(...Re){var me;(me=W())==null||me.apply(this,Re)}),Tt("mouseleave",j,function(...Re){var me;(me=G())==null||me.apply(this,Re)}),Zr(j,"clientWidth",y),b(t,j),H(),o()}dt(["pointerdown","click"]);var B$=Se('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect width="20" height="20" rx="10" fill="var(--btn-color, #fff)"></rect><path d="M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"></path></svg>');function fd(t,e){"use strict";var i=B$(),o=_(i),n=P(o);g(i),O(()=>{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")}),b(t,i)}var O$=M("<div><!></div>"),D$={hash:"svelte-bklhpe",code:".interactive-episode-icon.svelte-bklhpe {width:20px;height:20px;position:absolute;transform:translateX(-50%);cursor:default;}.interactive-episode-icon.disabled.svelte-bklhpe {pointer-events:none;opacity:0.4;}"};function Tf(t,e){D(e,!0),z(t,D$);let o=Ee().ui.t,n=Y(0),r=h(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));bo(t,{get tooltipContent(){return s(r)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return s(n)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var a=O$();let p;var f=_(a);let v=h(()=>!!e.videoEpisode.completed);fd(f,{get completed(){return s(v)}}),g(a),O(u=>{p=J(a,1,"interactive-episode-icon svelte-bklhpe",null,p,u),at(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Zr(a,"clientWidth",u=>B(n,u)),b(l,a)},$$slots:{default:!0}}),H()}var H$=M('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),F$=M('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),U$={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,
166
166
  .video-episode-loaded.svelte-1u6kv8l,
167
- .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 Sf(t,e){q(t,V$);let i=m(e,"videoEpisodes",19,()=>[]);var o=L$();xi(o,21,i,n=>n.from,(n,s)=>{var l=M$();let d;var a=_(l),u=_(a),f=P(u,2);let v;h(a),h(l),O((p,b)=>{d=J(l,1,"video-episode svelte-1u6kv8l",null,d,p),it(l,`left: ${r(s).from}%; width: ${r(s).width}%`),it(u,`transform: translateX(${r(s).loadedWidth/r(s).width*100}%)`),v=J(f,1,"video-episode-filled svelte-1u6kv8l",null,v,b),it(f,`transform: translateX(${r(s).filledWidth/r(s).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),$(n,l)}),h(o),$(t,o)}function R$(t,e,i,o,n,s,l){if(t.preventDefault(),e()&&B(i,e().getBoundingClientRect(),!0),o()||r(n)||!e())return;B(n,!0);let d=s(t.clientX,t.clientY);l()(d),e().setPointerCapture(t.pointerId)}function N$(t,e,i,o,n,s,l,d){if(t.preventDefault(),e())return;let a=i(t.clientX,t.clientY),u=o(t.clientX);n()(a,u,r(s).width),r(l)&&d()(a)}function B$(t,e,i,o,n){if(t.preventDefault(),e()||!r(i))return;B(i,!1);let s=o(t.clientX,t.clientY);n()(s)}function O$(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}var D$=A("<div></div>"),H$=A('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),F$=A('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),U$={hash:"svelte-1tpemng",code:`.interactive-icons.svelte-1tpemng {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-1tpemng {top:-10px;}.slider.svelte-1tpemng {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-1tpemng {cursor:default;}.slider.svelte-1tpemng:before {
167
+ .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 Ef(t,e){z(t,U$);let i=m(e,"videoEpisodes",19,()=>[]);var o=F$();wi(o,21,i,n=>n.from,(n,r)=>{var l=H$();let d;var a=_(l),p=_(a),f=P(p,2);let v;g(a),g(l),O((u,$)=>{d=J(l,1,"video-episode svelte-1u6kv8l",null,d,u),at(l,`left: ${s(r).from}%; width: ${s(r).width}%`),at(p,`transform: translateX(${s(r).loadedWidth/s(r).width*100}%)`),v=J(f,1,"video-episode-filled svelte-1u6kv8l",null,v,$),at(f,`transform: translateX(${s(r).filledWidth/s(r).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(n,l)}),g(o),b(t,o)}function z$(t,e,i,o,n,r,l){if(t.preventDefault(),e()&&B(i,e().getBoundingClientRect(),!0),o()||s(n)||!e())return;B(n,!0);let d=r(t.clientX,t.clientY);l()(d),e().setPointerCapture(t.pointerId)}function W$(t,e,i,o,n,r,l,d){if(t.preventDefault(),e())return;let a=i(t.clientX,t.clientY),p=o(t.clientX);n()(a,p,s(r).width),s(l)&&d()(a)}function q$(t,e,i,o,n){if(t.preventDefault(),e()||!s(i))return;B(i,!1);let r=o(t.clientX,t.clientY);n()(r)}function K$(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function Q$(t,e,i,o,n,r){let l=e(t.clientX,t.clientY);i()&&o()(l),B(n,!1),r()(l)}var G$=M("<div></div>"),Y$=M('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),j$=M('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),Z$={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 {
168
168
  /* 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,
169
169
  .slider.square.svelte-1tpemng > .bars:where(.svelte-1tpemng),
170
170
  .slider.square.svelte-1tpemng .loaded:where(.svelte-1tpemng),
171
171
  .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),
172
- .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 ga(t,e){F(e,!0),q(t,U$);let i=m(e,"ref",15,void 0),o=m(e,"className",3,""),n=m(e,"testId",3,void 0),s=m(e,"isHidden",3,!1),l=m(e,"isVertical",3,!1),d=m(e,"isActiveLive",3,!1),a=m(e,"isMobile",3,!1),u=m(e,"squareBorders",3,!1),f=m(e,"videoEpisodes",19,()=>[]),v=m(e,"withWheelHandler",3,!1),p=m(e,"isInteractive",3,!1),b=m(e,"disabled",3,!1),x=m(e,"hideHandel",3,!1),y=m(e,"onPointerDown",3,jn),C=m(e,"onHandleMove",3,jn),T=m(e,"onPointerUp",3,jn),E=m(e,"onPointerEnter",3,jn),M=m(e,"onPointerMove",3,jn),k=m(e,"onPointerLeave",3,jn),I=m(e,"onMouseEnter",3,jn),N=m(e,"onMouseLeave",3,jn),Y=m(e,"onWheelUp",3,jn),D=m(e,"onWheelDown",3,jn),H=m(e,"onWheelLeft",3,jn),W=m(e,"onWheelRight",3,jn),ee=m(e,"onDisabledClick",3,jn),K=m(e,"loadedProgress",3,0),de=m(e,"filledProgress",3,0),oe=m(e,"handleProgress",3,0),we=m(e,"ariaLabel",3,""),Ie=m(e,"ariaValueMin",3,void 0),pe=m(e,"ariaValueMax",3,void 0),le=m(e,"ariaValueNow",3,void 0),Ae=m(e,"ariaValueText",3,""),te=Ft(),R=j(void 0),Ge=j(!1),ie=g(()=>{var X;return(X=pe())!=null?X:0}),Ke=g(()=>{var X;return Gh(f())&&((X=f()[f().length-1])==null?void 0:X.time)<r(ie)}),ce=g(()=>Gh(f())&&f().length&&r(Ke)&&r(ie)?Ee(K()*100,de()*100):[]);function fe(X){if(X.preventDefault(),i()&&B(R,i().getBoundingClientRect(),!0),b())return;let xe=Pe(X.clientX,X.clientY),He=re(X.clientX);E()(xe,He,r(R).width)}function $e(X){X.preventDefault(),!b()&&k()()}function Z(){I()()}function qe(){N()()}function Ze(X){b()||v()&&(X.preventDefault(),X.deltaY<0?Y()():X.deltaY>0?D()():X.deltaX>0?W()():H()())}function Pe(X,xe){return l()?Math.max(0,Math.min(1,(r(R).height-(xe-r(R).top))/r(R).height)):Math.min(Math.max(X-r(R).x,0),r(R).width)/r(R).width}function re(X){return Math.min(Math.max(X-r(R).x,0),r(R).width)}function Ee(X,xe){let He=te.features.episodesClustering&&!p()?te.episodeMinWidthPc:0,me=[],Re=f()[0].time/r(ie)*100,Xe=0,Ue=0;for(let yt=1;yt<f().length;yt++)Xe=f()[yt].time/r(ie)*100,Xe-Re>He&&(me.push({from:Re,width:Math.max(0,Xe-Re),loadedWidth:Math.max(0,Math.min(Xe,X)-Re),filledWidth:Math.max(0,Math.min(Xe,xe)-Re),interactive:f()[yt-1].interactive,completed:f()[yt-1].completed}),Re=f()[yt].time/r(ie)*100,Ue++);let Pt={from:Re,width:Math.max(0,100-Re),loadedWidth:Math.max(0,Math.min(X,100)-Re),filledWidth:Math.max(0,Math.min(xe,100)-Re),interactive:f()[Ue].interactive,completed:f()[Ue].completed};100-Re<He?(Ue-=1,me[Ue].width+=100-Re,me[Ue].loadedWidth+=Math.max(0,Math.min(X,100)-Re),me[Ue].filledWidth+=Math.max(0,Math.min(xe,100)-Re)):me[Ue]=Pt;let St=f()[0].time;if(St!==0){let yt=St/r(ie)*100;me.unshift({from:0,width:yt,loadedWidth:Math.min(yt,X),filledWidth:Math.min(yt,xe)})}return me}function Qe(X){return Math.max(0,Math.min(100,X*100))}var rt=F$(),nt=ve(rt);{var Mt=X=>{var xe=D$();let He;xi(xe,21,()=>r(ce),me=>me.from,(me,Re)=>{var Xe=Fe(),Ue=ve(Xe);{var Pt=St=>{wf(St,{get videoEpisode(){return r(Re)},get disabled(){return b()}})};L(Ue,St=>{r(Re).interactive&&St(Pt)})}$(me,Xe)}),h(xe),O(me=>He=J(xe,1,"interactive-icons svelte-1tpemng",null,He,me),[()=>({mobile:a(),hidden:a()&&!r(Ge)})]),$(X,xe)};L(nt,X=>{p()&&X(Mt)})}var Je=P(nt,2);let dt;Je.__pointerdown=[R$,i,R,b,Ge,Pe,y],Je.__pointermove=[N$,b,Pe,re,M,R,Ge,C],Je.__pointerup=[B$,b,Ge,Pe,T],Je.__click=[O$,b,ee,Pe];var qt=_(Je);{var oi=X=>{Sf(X,{get videoEpisodes(){return r(ce)},get disabled(){return b()},get isMobile(){return a()}})},Kt=X=>{var xe=H$(),He=_(xe),me=P(He,2);let Re;h(xe),O((Xe,Ue,Pt)=>{it(He,Xe),Re=J(me,1,"filled svelte-1tpemng",null,Re,Ue),it(me,Pt)},[()=>`transform: translateX(${Qe(K())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${Qe(de())}%);`]),$(X,xe)};L(qt,X=>{r(ce).length?X(oi):X(Kt,!1)})}var wt=P(qt,2);let ne;var Lt=_(wt);let ge;h(wt),h(Je),et(Je,X=>i(X),()=>i()),O((X,xe,He,me)=>{var Re,Xe;dt=J(Je,1,`slider ${(Re=o())!=null?Re:""}`,"svelte-1tpemng",dt,X),Oe(Je,"aria-label",we()),Oe(Je,"aria-valuemin",Ie()),Oe(Je,"aria-valuemax",pe()),Oe(Je,"aria-valuenow",le()),Oe(Je,"aria-valuetext",Ae()),Oe(Je,"data-testid",(Xe=n())!=null?Xe:null),ne=J(wt,1,"handleWrap svelte-1tpemng",null,ne,xe),it(wt,He),ge=J(Lt,1,"handle svelte-1tpemng",null,ge,me)},[()=>({disabled:b(),"slider-dragging":r(Ge),hidden:s(),"slider-vertical":l(),"no-handle":x(),square:u()}),()=>({hidden:x()}),()=>`transform: translateX(${Qe(oe())}%);`,()=>({"active-live":d()})]),xt("pointerenter",Je,fe),xt("pointerleave",Je,$e),xt("mouseenter",Je,Z),xt("mouseleave",Je,qe),xt("wheel",Je,Ze),$(t,rt),U()}at(["pointerdown","pointermove","pointerup","click"]);var Gi=(t,e)=>ra[t]>=ra[e],Yh=(t,e)=>ra[t]<ra[e],Bs=(t,e)=>ra[t]<=ra[e],jh=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var W$=A("<div><!></div>"),K$=A("<div><!> <!></div>"),q$={hash:"svelte-1auih1j",code:".volumeBar-container.svelte-1auih1j {display:flex;align-items:center;}.volumeBar-container.vertical.svelte-1auih1j, .vertical.svelte-1auih1j .tooltip-wrapper, .vertical.svelte-1auih1j .btn {width:40px;}.volumeBar.svelte-1auih1j {display:flex;align-items:center;margin:0 8px;position:relative;width:70px;--slider-height: var(--slider-volume-height);--slider-radius: var(--slider-volume-radius);--slider-handle-size: var(--slider-volume-handle-size);--slider-bg: var(--volume-slider-bg);--slider-filled-bg: var(--volume-slider-filled-bg);--slider-handle-bg: var(--volume-slider-handle-bg);}.volumeBar-slider-vertical {width:50px !important;}.volumeBar-vertical.svelte-1auih1j {padding:0 8px 0 0;width:0;}"};function Cf(t,e){var Pe,re;F(e,!0),q(t,q$);let[i,o]=Be(),n=()=>S(E,"$isAudioAvailable$",i),s=()=>S(v,"$muted$",i),l=()=>S(f,"$volume$",i),d=()=>S(y,"$currentGridType$",i),a=ke(),u=Ft(),f=a.state.volume$,v=a.state.muted$,{setVolume:p,startVolumeChanging:b,stopVolumeChanging:x}=a.actions.internal,y=a.ui.currentGridType$,C=(Pe=a.callbacks)==null?void 0:Pe.onAudioDoesNotExistHint,T=(re=a.callbacks)==null?void 0:re.onAudioDisabledHint,E=a.state.isAudioAvailable$,M=a.state.isAudioDisabled,k=a.ui.t,I=j(!1),N,Y=g(()=>e.isAds||n()),D=g(()=>!r(Y)||s()||l()===0),H=g(()=>Bs(d(),"s")),W=g(()=>r(H)?"":r(D)?!n()||M?k("tooltip_sound_unavailable"):k("tooltip_volume"):k("tooltip_volume_muted")),ee=g(()=>r(D)?k("tooltip_volume"):k("tooltip_volume_muted")),K=g(()=>r(D)?0:l()),de=!1,oe=g(()=>e.isAds?!1:M?!T:n()?!1:!C);function we(Ee){b(),p(Ee)}function Ie(){Zc(a,l(),u.controls.volumeStepWheel)}function pe(){Xc(a,l(),u.controls.volumeStepWheel)}function le(Ee){p(Ee)}function Ae(Ee){p(Ee),x()}function te(){de=!0}function R(){de=!1,Ke()}function Ge(){clearTimeout(N),B(I,!0)}function ie(){Ke()}function Ke(){N=window.setTimeout(()=>{de||B(I,!1)},u.controls.volumeBarTimeout)}function ce(Ee){Ee.preventDefault(),Ee.deltaY<0?Ie():Ee.deltaY>0&&pe()}var fe=K$();let $e;var Z=_(fe);va(Z,{get content(){return r(W)},translateY:-18,children:(Ee,Qe)=>{let rt=g(()=>r(H)?"btn-volume-vertical":"btn-volume-horizontal");Rt(Ee,{className:"btn-full-opacity",get disabled(){return r(oe)},get testId(){return r(rt)},get ariaLabel(){return r(ee)},get click(){return e.click},get ariaKeyShortCut(){return Xr.KeyM},role:"button",children:(nt,Mt)=>{Ns(nt,{get volume(){return l()},get muted(){return r(D)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var qe=P(Z,2);{var Ze=Ee=>{var Qe=W$();let rt;var nt=_(Qe);let Mt=g(()=>r(H)?"volumeBar-slider-vertical":""),Je=g(()=>r(H)&&!r(I)),dt=g(()=>r(H)?te:eu),qt=g(()=>r(H)?R:eu),oi=g(()=>Math.round(r(K)*100)),Kt=g(()=>`${Math.round(r(K)*100)}%`),wt=g(()=>r(H)?"volume-slider-vertical":"volume-slider");ga(nt,{get className(){return r(Mt)},get isHidden(){return r(Je)},get isVertical(){return r(H)},withWheelHandler:!0,onWheelUp:Ie,onWheelDown:pe,onPointerDown:we,onHandleMove:le,onPointerUp:Ae,get onPointerEnter(){return r(dt)},get onPointerLeave(){return r(qt)},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(oi)},get ariaValueText(){return r(Kt)},get filledProgress(){return r(K)},get handleProgress(){return r(K)},get testId(){return r(wt)}}),h(Qe),O(ne=>rt=J(Qe,1,"volumeBar svelte-1auih1j",null,rt,ne),[()=>({"volumeBar-vertical":r(H)})]),$(Ee,Qe)};L(qe,Ee=>{r(Y)&&Ee(Ze)})}h(fe),O(Ee=>$e=J(fe,1,"volumeBar-container svelte-1auih1j",null,$e,Ee),[()=>({vertical:r(H)})]),xt("mouseenter",fe,function(...Ee){var Qe;(Qe=r(H)?Ge:eu)==null||Qe.apply(this,Ee)}),xt("mouseleave",fe,function(...Ee){var Qe;(Qe=r(H)?ie:eu)==null||Qe.apply(this,Ee)}),xt("wheel",fe,ce),$(t,fe),U(),o()}import{noop as Y$}from"@vkontakte/videoplayer-shared/es2018";var Q$=Te('<svg><!><g fill-rule="evenodd"><path d="M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z" class="_exit"></path><path d="M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z" class="_enter"></path></g></svg>');function Tf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Q$();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",viewBox:"0 0 24 24",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(),h(o),$(t,o)}var G$={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
173
- svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function Ef(t,e){q(t,G$);let i=m(e,"isFullscreen",8,!1),o=Pr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Tf(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function fd(t,e){F(e,!0);let i=m(e,"isFullscreen",3,!1),o=m(e,"click",3,Y$),n=ke(),s=n.ui.isFullscreenOpenedByKeyboard,l=n.ui.t,d=g(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Rt(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:u=>{let f=Vs(u);s.set(f),o()()},get ariaKeyShortCut(){return Xr.KeyF},role:"button",children:(u,f)=>{Ef(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),U()}var j$=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z" clip-rule="evenodd"></path></svg>');function If(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=j$();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(),h(o),$(t,o)}var Z$=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"></path><path fill="var(--btn-color, #fff)" d="M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35" class="_ru"></path><path fill="var(--btn-color, #fff)" d="M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635" class="_en"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z" clip-rule="evenodd"></path></svg>');function kf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Z$();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",viewBox:"0 0 95 24",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(4),h(o),$(t,o)}var X$={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
172
+ .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 fa(t,e){D(e,!0),z(t,Z$);let i=m(e,"ref",15,void 0),o=m(e,"className",3,""),n=m(e,"testId",3,void 0),r=m(e,"isHidden",3,!1),l=m(e,"isVertical",3,!1),d=m(e,"isActiveLive",3,!1),a=m(e,"isMobile",3,!1),p=m(e,"squareBorders",3,!1),f=m(e,"videoEpisodes",19,()=>[]),v=m(e,"withWheelHandler",3,!1),u=m(e,"isInteractive",3,!1),$=m(e,"disabled",3,!1),w=m(e,"hideHandel",3,!1),y=m(e,"onPointerDown",3,kn),S=m(e,"onHandleMove",3,kn),T=m(e,"onPointerUp",3,kn),I=m(e,"onPointerEnter",3,kn),A=m(e,"onPointerMove",3,kn),k=m(e,"onPointerLeave",3,kn),E=m(e,"onMouseEnter",3,kn),L=m(e,"onMouseLeave",3,kn),K=m(e,"onWheelUp",3,kn),U=m(e,"onWheelDown",3,kn),W=m(e,"onWheelLeft",3,kn),G=m(e,"onWheelRight",3,kn),te=m(e,"onDisabledClick",3,kn),j=m(e,"loadedProgress",3,0),ae=m(e,"filledProgress",3,0),de=m(e,"handleProgress",3,0),we=m(e,"ariaLabel",3,""),Re=m(e,"ariaValueMin",3,void 0),me=m(e,"ariaValueMax",3,void 0),le=m(e,"ariaValueNow",3,void 0),Ve=m(e,"ariaValueText",3,""),ee=m(e,"onContextMenu",3,kn),N=Ft(),Oe=Y(void 0),_e=Y(!1),ve=h(()=>{var re;return(re=me())!=null?re:0}),ce=h(()=>{var re;return e1(f())&&((re=f()[f().length-1])==null?void 0:re.time)<s(ve)}),ne=h(()=>e1(f())&&f().length&&s(ce)&&s(ve)?Qe(j()*100,ae()*100):[]);function ye(re){if(re.preventDefault(),i()&&B(Oe,i().getBoundingClientRect(),!0),$())return;let De=Ae(re.clientX,re.clientY),We=Te(re.clientX);I()(De,We,s(Oe).width)}function Z(re){re.preventDefault(),!$()&&k()()}function Ke(){E()()}function ue(){L()()}function ke(re){$()||v()&&(re.preventDefault(),re.deltaY<0?K()():re.deltaY>0?U()():re.deltaX>0?G()():W()())}function Ae(re,De){return l()?Math.max(0,Math.min(1,(s(Oe).height-(De-s(Oe).top))/s(Oe).height)):Math.min(Math.max(re-s(Oe).x,0),s(Oe).width)/s(Oe).width}function Te(re){return Math.min(Math.max(re-s(Oe).x,0),s(Oe).width)}function Qe(re,De){let We=N.features.episodesClustering&&!u()?N.episodeMinWidthPc:0,Me=[],Ze=f()[0].time/s(ve)*100,Ne=0,et=0;for(let Xe=1;Xe<f().length;Xe++)Ne=f()[Xe].time/s(ve)*100,Ne-Ze>We&&(Me.push({from:Ze,width:Math.max(0,Ne-Ze),loadedWidth:Math.max(0,Math.min(Ne,re)-Ze),filledWidth:Math.max(0,Math.min(Ne,De)-Ze),interactive:f()[Xe-1].interactive,completed:f()[Xe-1].completed}),Ze=f()[Xe].time/s(ve)*100,et++);let kt={from:Ze,width:Math.max(0,100-Ze),loadedWidth:Math.max(0,Math.min(re,100)-Ze),filledWidth:Math.max(0,Math.min(De,100)-Ze),interactive:f()[et].interactive,completed:f()[et].completed};100-Ze<We?(et-=1,Me[et].width+=100-Ze,Me[et].loadedWidth+=Math.max(0,Math.min(re,100)-Ze),Me[et].filledWidth+=Math.max(0,Math.min(De,100)-Ze)):Me[et]=kt;let Mt=f()[0].time;if(Mt!==0){let Xe=Mt/s(ve)*100;Me.unshift({from:0,width:Xe,loadedWidth:Math.min(Xe,re),filledWidth:Math.min(Xe,De)})}return Me}function nt(re){return Math.max(0,Math.min(100,re*100))}var _t=j$(),$t=pe(_t);{var St=re=>{var De=G$();let We;wi(De,21,()=>s(ne),Me=>Me.from,(Me,Ze)=>{var Ne=ze(),et=pe(Ne);{var kt=Mt=>{Tf(Mt,{get videoEpisode(){return s(Ze)},get disabled(){return $()}})};R(et,Mt=>{s(Ze).interactive&&Mt(kt)})}b(Me,Ne)}),g(De),O(Me=>We=J(De,1,"interactive-icons svelte-1tpemng",null,We,Me),[()=>({mobile:a(),hidden:a()&&!s(_e)})]),b(re,De)};R($t,re=>{u()&&re(St)})}var Ge=P($t,2);let zt;Ge.__pointerdown=[z$,i,Oe,$,_e,Ae,y],Ge.__pointermove=[W$,$,Ae,Te,A,Oe,_e,S],Ge.__pointerup=[q$,$,_e,Ae,T],Ge.__click=[K$,$,te,Ae],Ge.__contextmenu=[Q$,Ae,$,te,_e,ee];var Qt=_(Ge);{var Wt=re=>{Ef(re,{get videoEpisodes(){return s(ne)},get disabled(){return $()},get isMobile(){return a()}})},Bt=re=>{var De=Y$(),We=_(De),Me=P(We,2);let Ze;g(De),O((Ne,et,kt)=>{at(We,Ne),Ze=J(Me,1,"filled svelte-1tpemng",null,Ze,et),at(Me,kt)},[()=>`transform: translateX(${nt(j())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${nt(ae())}%);`]),b(re,De)};R(Qt,re=>{s(ne).length?re(Wt):re(Bt,!1)})}var X=P(Qt,2);let At;var fe=_(X);let be;g(X),g(Ge),tt(Ge,re=>i(re),()=>i()),O((re,De,We,Me)=>{var Ze,Ne;zt=J(Ge,1,`slider ${(Ze=o())!=null?Ze:""}`,"svelte-1tpemng",zt,re),Be(Ge,"aria-label",we()),Be(Ge,"aria-valuemin",Re()),Be(Ge,"aria-valuemax",me()),Be(Ge,"aria-valuenow",le()),Be(Ge,"aria-valuetext",Ve()),Be(Ge,"data-testid",(Ne=n())!=null?Ne:null),At=J(X,1,"handleWrap svelte-1tpemng",null,At,De),at(X,We),be=J(fe,1,"handle svelte-1tpemng",null,be,Me)},[()=>({disabled:$(),"slider-dragging":s(_e),hidden:r(),"slider-vertical":l(),"no-handle":w(),square:p()}),()=>({hidden:w()}),()=>`transform: translateX(${nt(de())}%);`,()=>({"active-live":d()})]),Tt("pointerenter",Ge,ye),Tt("pointerleave",Ge,Z),Tt("mouseenter",Ge,Ke),Tt("mouseleave",Ge,ue),Tt("wheel",Ge,ke),b(t,_t),H()}dt(["pointerdown","pointermove","pointerup","click","contextmenu"]);var Fi=(t,e)=>ia[t]>=ia[e],t1=(t,e)=>ia[t]<ia[e],Ls=(t,e)=>ia[t]<=ia[e],i1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var X$=M("<div><!></div>"),J$=M("<div><!> <!></div>"),e2={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 If(t,e){var ke,Ae;D(e,!0),z(t,e2);let[i,o]=Fe(),n=()=>C(I,"$isAudioAvailable$",i),r=()=>C(v,"$muted$",i),l=()=>C(f,"$volume$",i),d=()=>C(y,"$currentGridType$",i),a=Ee(),p=Ft(),f=a.state.volume$,v=a.state.muted$,{setVolume:u,startVolumeChanging:$,stopVolumeChanging:w}=a.actions.internal,y=a.ui.currentGridType$,S=(ke=a.callbacks)==null?void 0:ke.onAudioDoesNotExistHint,T=(Ae=a.callbacks)==null?void 0:Ae.onAudioDisabledHint,I=a.state.isAudioAvailable$,A=a.state.isAudioDisabled,k=a.ui.t,E=Y(!1),L,K=h(()=>e.isAds||n()),U=h(()=>!s(K)||r()||l()===0),W=h(()=>Ls(d(),"s")),G=h(()=>s(W)?"":s(U)?!n()||A?k("tooltip_sound_unavailable"):k("tooltip_volume"):k("tooltip_volume_muted")),te=h(()=>s(U)?k("tooltip_volume"):k("tooltip_volume_muted")),j=h(()=>s(U)?0:l()),ae=!1,de=h(()=>e.isAds?!1:A?!T:n()?!1:!S);function we(Te){$(),u(Te)}function Re(){Zc(a,l(),p.controls.volumeStepWheel)}function me(){Xc(a,l(),p.controls.volumeStepWheel)}function le(Te){u(Te)}function Ve(Te){u(Te),w()}function ee(){ae=!0}function N(){ae=!1,ve()}function Oe(){clearTimeout(L),B(E,!0)}function _e(){ve()}function ve(){L=window.setTimeout(()=>{ae||B(E,!1)},p.controls.volumeBarTimeout)}function ce(Te){Te.preventDefault(),Te.deltaY<0?Re():Te.deltaY>0&&me()}var ne=J$();let ye;var Z=_(ne);pa(Z,{get content(){return s(G)},translateY:-18,children:(Te,Qe)=>{let nt=h(()=>s(W)?"btn-volume-vertical":"btn-volume-horizontal");Vt(Te,{className:"btn-full-opacity",get disabled(){return s(de)},get testId(){return s(nt)},get ariaLabel(){return s(te)},get click(){return e.click},get ariaKeyShortCut(){return Xr.KeyM},role:"button",children:(_t,$t)=>{Ms(_t,{get volume(){return l()},get muted(){return s(U)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Ke=P(Z,2);{var ue=Te=>{var Qe=X$();let nt;var _t=_(Qe);let $t=h(()=>s(W)?"volumeBar-slider-vertical":""),St=h(()=>s(W)&&!s(E)),Ge=h(()=>s(W)?ee:eu),zt=h(()=>s(W)?N:eu),Qt=h(()=>Math.round(s(j)*100)),Wt=h(()=>`${Math.round(s(j)*100)}%`),Bt=h(()=>s(W)?"volume-slider-vertical":"volume-slider");fa(_t,{get className(){return s($t)},get isHidden(){return s(St)},get isVertical(){return s(W)},withWheelHandler:!0,onWheelUp:Re,onWheelDown:me,onPointerDown:we,onHandleMove:le,onPointerUp:Ve,get onPointerEnter(){return s(Ge)},get onPointerLeave(){return s(zt)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return s(Qt)},get ariaValueText(){return s(Wt)},get filledProgress(){return s(j)},get handleProgress(){return s(j)},get testId(){return s(Bt)}}),g(Qe),O(X=>nt=J(Qe,1,"volumeBar svelte-1auih1j",null,nt,X),[()=>({"volumeBar-vertical":s(W)})]),b(Te,Qe)};R(Ke,Te=>{s(K)&&Te(ue)})}g(ne),O(Te=>ye=J(ne,1,"volumeBar-container svelte-1auih1j",null,ye,Te),[()=>({vertical:s(W)})]),Tt("mouseenter",ne,function(...Te){var Qe;(Qe=s(W)?Oe:eu)==null||Qe.apply(this,Te)}),Tt("mouseleave",ne,function(...Te){var Qe;(Qe=s(W)?_e:eu)==null||Qe.apply(this,Te)}),Tt("wheel",ne,ce),b(t,ne),H(),o()}import{noop as o2}from"@vkontakte/videoplayer-shared/es2018";var t2=Se('<svg><!><g fill-rule="evenodd"><path d="M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z" class="_exit"></path><path d="M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z" class="_enter"></path></g></svg>');function kf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=t2();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",viewBox:"0 0 24 24",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var i2={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
173
+ svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function Pf(t,e){z(t,i2);let i=m(e,"isFullscreen",8,!1),o=Pr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");kf(t,{get"data-testid"(){return s(o)},fill:"var(--btn-color, #fff)"})}function md(t,e){D(e,!0);let i=m(e,"isFullscreen",3,!1),o=m(e,"click",3,o2),n=Ee(),r=n.ui.isFullscreenOpenedByKeyboard,l=n.ui.t,d=h(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Vt(t,{testId:"btn-fullscreen",get ariaLabel(){return s(d)},click:p=>{let f=Ps(p);r.set(f),o()()},get ariaKeyShortCut(){return Xr.KeyF},role:"button",children:(p,f)=>{Pf(p,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),H()}var n2=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z" clip-rule="evenodd"></path></svg>');function Af(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=n2();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var r2=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"></path><path fill="var(--btn-color, #fff)" d="M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35" class="_ru"></path><path fill="var(--btn-color, #fff)" d="M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635" class="_en"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z" clip-rule="evenodd"></path></svg>');function Mf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=r2();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",viewBox:"0 0 95 24",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(4),g(o),b(t,o)}var s2={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
174
174
  svg[data-testid="vk-video-logo-icon--short"] ._en,
175
175
  svg[data-testid="vk-video-logo-icon"] ._en,
176
- svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function Pf(t,e){q(t,X$);let i=m(e,"short",3,!1),o=m(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",s=21,l=g(()=>!o()&&!i()?91:i()?s:95),d=g(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),a=g(()=>`0 0 ${r(l)+1} 24`);kf(t,{get width(){return r(l)},height:"24",get viewBox(){return r(a)},get"data-testid"(){return r(d)}})}function md(t,e){F(e,!0);let[i,o]=Be(),n=()=>S(b,"$isMobile",i),s=()=>S(p,"$currentGridType$",i),l=()=>S(y,"$isCyrillicRelatedInterface$",i),d=m(e,"ref",15,void 0),a=m(e,"logoClickable",3,!1),u=m(e,"targetUrl",3,""),f=Ft(),v=ke(),p=v.ui.currentGridType$,b=v.ui.isMobile,x=v.ui.t,y=v.isCyrillicRelatedInterface$,C=g(()=>f.logoType==="vk_video"?x("tooltip_vk_video_logo"):x("tooltip_vk_logo")),T=g(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),E=g(()=>(n()||Bs(s(),"l"))&&r(T)),M=()=>{var N,Y;e.click(),(N=v.callbacks)!=null&&N.onLogoClicked?(Y=v.callbacks)==null||Y.onLogoClicked():u()&&window.open(u(),"_blank")},k=g(()=>!a()),I=g(()=>r(T)?"btn-vk-video-logo":"btn-vk-logo");Rt(t,{className:"btn-full-opacity",get disabled(){return r(k)},click:M,get testId(){return r(I)},get ariaLabel(){return r(C)},get ref(){return d()},set ref(N){d(N)},children:(N,Y)=>{var D=Fe(),H=ve(D);{var W=K=>{Pf(K,{get short(){return r(E)},get isCyrillic(){return l()}})},ee=K=>{If(K,{})};L(H,K=>{r(T)?K(W):K(ee,!1)})}$(N,D)},$$slots:{default:!0}}),U(),o()}import{ChromecastState as o2}from"@vkontakte/videoplayer-core/es2018";import{ChromecastState as Zh}from"@vkontakte/videoplayer-core/es2018";var e2=Te('<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-mobile-icon" class="svelte-8z1bf5"><g filter="url(#b)" clip-path="url(#a)" class="svelte-8z1bf5"><mask id="c" maskUnits="userSpaceOnUse" x="1.1" y="3.1" width="22" height="18" fill="#000" class="svelte-8z1bf5"><path d="M1.1 3.1h22v18h-22z" class="svelte-8z1bf5"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path></mask><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path><path d="m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z" fill="#000" fill-opacity=".12" mask="url(#c)" class="svelte-8z1bf5"></path></g><defs class="svelte-8z1bf5"><clipPath id="a" class="svelte-8z1bf5"><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path></clipPath><filter id="b" x="-3.4" y="-1.4" width="30.8" height="26.802" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" class="svelte-8z1bf5"><feFlood flood-opacity="0" result="BackgroundImageFix" class="svelte-8z1bf5"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" class="svelte-8z1bf5"></feColorMatrix><feOffset class="svelte-8z1bf5"></feOffset><feGaussianBlur stdDeviation="2.5" class="svelte-8z1bf5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0" class="svelte-8z1bf5"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_4085_178456" class="svelte-8z1bf5"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_4085_178456" result="shape" class="svelte-8z1bf5"></feBlend></filter></defs></svg>'),t2=Te('<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-icon"><g fill="none" fill-rule="evenodd" class="svelte-8z1bf5"><path class="wave wave1 svelte-8z1bf5" d="M1 18v3h3c0-1.66-1.34-3-3-3z" fill="var(--btn-color, #fff)"></path><path class="wave wave2 svelte-8z1bf5" d="M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z" fill="var(--btn-color, #fff)"></path><path class="wave wave3 svelte-8z1bf5" d="M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z" fill="var(--btn-color, #fff)"></path><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)" class="svelte-8z1bf5"></path><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z" fill="var(--btn-color, #fff)"></path></g></svg>'),i2={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
176
+ svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function Lf(t,e){z(t,s2);let i=m(e,"short",3,!1),o=m(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",r=21,l=h(()=>!o()&&!i()?91:i()?r:95),d=h(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),a=h(()=>`0 0 ${s(l)+1} 24`);Mf(t,{get width(){return s(l)},height:"24",get viewBox(){return s(a)},get"data-testid"(){return s(d)}})}function vd(t,e){D(e,!0);let[i,o]=Fe(),n=()=>C($,"$isMobile",i),r=()=>C(u,"$currentGridType$",i),l=()=>C(y,"$isCyrillicRelatedInterface$",i),d=m(e,"ref",15,void 0),a=m(e,"logoClickable",3,!1),p=m(e,"targetUrl",3,""),f=Ft(),v=Ee(),u=v.ui.currentGridType$,$=v.ui.isMobile,w=v.ui.t,y=v.isCyrillicRelatedInterface$,S=h(()=>f.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),T=h(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),I=h(()=>(n()||Ls(r(),"l"))&&s(T)),A=()=>{var L,K;e.click(),(L=v.callbacks)!=null&&L.onLogoClicked?(K=v.callbacks)==null||K.onLogoClicked():p()&&window.open(p(),"_blank")},k=h(()=>!a()),E=h(()=>s(T)?"btn-vk-video-logo":"btn-vk-logo");Vt(t,{className:"btn-full-opacity",get disabled(){return s(k)},click:A,get testId(){return s(E)},get ariaLabel(){return s(S)},get ref(){return d()},set ref(L){d(L)},children:(L,K)=>{var U=ze(),W=pe(U);{var G=j=>{Lf(j,{get short(){return s(I)},get isCyrillic(){return l()}})},te=j=>{Af(j,{})};R(W,j=>{s(T)?j(G):j(te,!1)})}b(L,U)},$$slots:{default:!0}}),H(),o()}import{ChromecastState as u2}from"@vkontakte/videoplayer-core/es2018";import{ChromecastState as o1}from"@vkontakte/videoplayer-core/es2018";var l2=Se('<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-mobile-icon" class="svelte-8z1bf5"><g filter="url(#b)" clip-path="url(#a)" class="svelte-8z1bf5"><mask id="c" maskUnits="userSpaceOnUse" x="1.1" y="3.1" width="22" height="18" fill="#000" class="svelte-8z1bf5"><path d="M1.1 3.1h22v18h-22z" class="svelte-8z1bf5"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path></mask><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path><path d="m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z" fill="#000" fill-opacity=".12" mask="url(#c)" class="svelte-8z1bf5"></path></g><defs class="svelte-8z1bf5"><clipPath id="a" class="svelte-8z1bf5"><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path></clipPath><filter id="b" x="-3.4" y="-1.4" width="30.8" height="26.802" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" class="svelte-8z1bf5"><feFlood flood-opacity="0" result="BackgroundImageFix" class="svelte-8z1bf5"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" class="svelte-8z1bf5"></feColorMatrix><feOffset class="svelte-8z1bf5"></feOffset><feGaussianBlur stdDeviation="2.5" class="svelte-8z1bf5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0" class="svelte-8z1bf5"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_4085_178456" class="svelte-8z1bf5"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_4085_178456" result="shape" class="svelte-8z1bf5"></feBlend></filter></defs></svg>'),d2=Se('<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-icon"><g fill="none" fill-rule="evenodd" class="svelte-8z1bf5"><path class="wave wave1 svelte-8z1bf5" d="M1 18v3h3c0-1.66-1.34-3-3-3z" fill="var(--btn-color, #fff)"></path><path class="wave wave2 svelte-8z1bf5" d="M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z" fill="var(--btn-color, #fff)"></path><path class="wave wave3 svelte-8z1bf5" d="M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z" fill="var(--btn-color, #fff)"></path><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)" class="svelte-8z1bf5"></path><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z" fill="var(--btn-color, #fff)"></path></g></svg>'),c2={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) {
177
177
  animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
178
178
  animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
179
179
  animation-name: svelte-8z1bf5-wave3;}
@@ -221,9 +221,9 @@ Try switching the\xA0quality to\xA0Auto.`},wh=v_;var ms=new Map;ms.set(Ch.EN,wh)
221
221
  100% {
222
222
  opacity: 1;
223
223
  }
224
- }`};function Af(t,e){F(e,!0),q(t,i2);let i=m(e,"isMobile",3,!1),o=g(()=>e.iconState===Zh.CONNECTED),n=g(()=>e.iconState===Zh.CONNECTING);var s=Fe(),l=ve(s);{var d=u=>{var f=e2(),v=_(f),p=_(v),b=_(p);Ce(),h(p);var x=P(p);Ce(),h(v);var y=P(v),C=_(y),T=_(C);h(C),Ce(),h(y),h(f),O(()=>{Oe(b,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Oe(x,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Oe(T,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),$(u,f)},a=u=>{var f=t2();let v;var p=_(f),b=P(_(p),5);let x;h(p),h(f),O((y,C)=>{v=J(f,0,"svelte-8z1bf5",null,v,y),x=J(b,0,"svelte-8z1bf5",null,x,C)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),$(u,f)};L(l,u=>{i()?u(d):u(a,!1)})}$(t,s),U()}import{noop as n2}from"@vkontakte/videoplayer-shared/es2018";function vd(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"click",3,n2),l=ke().ui.t,d=g(()=>e.state===o2.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Rt(t,{get ariaLabel(){return r(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(a){i(a)},children:(a,u)=>{Af(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),U()}var r2=A('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),s2={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 Mf(t,e){q(t,s2);let i=m(e,"active",3,!1),o=m(e,"pointer",3,!1),n=m(e,"translateXPx",3,0),s=m(e,"translateYPx",3,0),l=m(e,"leftOffset",3,0),d=m(e,"rightOffset",3,0),a=j(void 0),u=j(void 0);function f(C){if(!r(u))return 0;let{width:T}=r(u).getBoundingClientRect(),E=T/2;return C<E?E+l():C>e.containerWidth-E?e.containerWidth-E-d():C}let v=g(()=>f(n()));var p=r2(),b=_(p);let x;var y=_(b);be(y,()=>{var C;return(C=e.children)!=null?C:se}),h(b),et(b,C=>B(u,C),()=>r(u)),h(p),et(p,C=>B(a,C),()=>r(a)),O(C=>{it(p,`transform: translate(${r(v)}px, ${s()}px);`),x=J(b,1,"tooltip svelte-5ygsa2",null,x,C),it(b,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),$(t,p)}var tu=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Xh=t=>!!(Math.round(Math.abs(t)/90)%2),Jh=t=>Math.abs(t)/90%4===1;var a2=A('<div class="preview svelte-1wqg760"></div>'),l2=A('<div class="time svelte-1wqg760"> </div>'),d2=A('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),c2={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 Lf(t,e){F(e,!0),q(t,c2);let[i,o]=Be(),n=()=>S(x,"$rotateAlpha",i),s=()=>S(y,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=m(e,"time",3,""),a=m(e,"isMobile",3,!1),u=m(e,"videoEpisodes",19,()=>[]),f=m(e,"progress",3,0),v=m(e,"duration",3,0),p=m(e,"isInteractive",3,!1),b=ke(),x=b.ui.rotateAlpha,y=b.ui.playerSize,C=j(0),T=j(0),E=j(""),M=j(0),k=j(0),I=j(0),N=j(0),Y=g(()=>tu(f(),v(),u())),D=g(()=>Xh(n())),H=g(()=>Jh(n())),W=g(de),ee=g(()=>(r(H)?1:-1)*(r(C)/2-r(T)/2)),K=g(()=>r(ee)*-1);We(()=>{(fe=>{B(C,fe.width,!0),B(T,fe.height,!0)})(we())}),We(()=>{(fe=>{B(E,fe.imgSrc,!0),B(M,fe.imgWidth,!0),B(k,fe.imgHeight,!0),B(I,fe.imgOffsetX,!0),B(N,fe.imgOffsetY,!0)})(Ie(f()))});function de(){var qe;let fe=a()?l.MOBILE:l.DESKTOP,{isVertical:$e}=oe(),Z=30;return(qe=r(Y))!=null&&qe.text&&(Z+=16),($e||r(D))&&(Z+=18,Z+=50),Math.min(Math.max(s().height-Z,0),fe)}function oe(){let fe=e.previewThumbsData.frameWidth,$e=e.previewThumbsData.frameHeight,Z=$e>fe;return{width:fe,height:$e,isHorizontal:!Z,isVertical:Z}}function we(){let{height:fe,isHorizontal:$e,isVertical:Z,width:qe}=oe();return $e&&(fe=fe/qe*r(W),qe=r(W)),Z&&(qe=qe/fe*r(W),fe=r(W)),{width:qe,height:fe}}function Ie(fe){let $e;e.previewThumbsData.isUV?$e=Math.floor(v()*fe/e.previewThumbsData.frequency):$e=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*fe)));let Z=Math.floor($e/e.previewThumbsData.countPerImage),qe=Math.floor($e%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),Ze=$e%e.previewThumbsData.countPerRow,Pe=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Z===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(Pe=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&Pe++);let re=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Z===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(re=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Ee=r(C)*re,Qe=r(T)*Pe,rt=-Ze*r(C),nt=-qe*r(T);return{imgSrc:e.previewThumbsData.links[Z],imgWidth:Ee,imgHeight:Qe,imgOffsetX:rt,imgOffsetY:nt}}var pe=d2();let le;var Ae=_(pe);{var te=fe=>{var $e=a2();O(()=>it($e,`width: ${r(C)}px; height: ${r(T)}px; background-image: url(${r(E)}); background-size: ${r(M)}px ${r(k)}px; background-position: ${r(I)}px ${r(N)}px;
225
- transform: rotate(${n()}deg) ${r(D)?`translate(${r(ee)}px, ${r(K)}px)`:""};
226
- `)),$(fe,$e)};L(Ae,fe=>{r(E)&&fe(te)})}var R=P(Ae,2),Ge=_(R);{var ie=fe=>{var $e=Fe(),Z=ve($e);{var qe=Pe=>{var re=jr();O(Ee=>he(re,Ee),[()=>z("tooltip_episode_unfinished")]),$(Pe,re)},Ze=Pe=>{var re=jr();O(()=>he(re,r(Y).text||"")),$(Pe,re)};L(Z,Pe=>{p()&&r(Y).completed===!1?Pe(qe):Pe(Ze,!1)})}$(fe,$e)};L(Ge,fe=>{r(Y)&&fe(ie)})}h(R);var Ke=P(R,2);{var ce=fe=>{var $e=l2(),Z=_($e,!0);h($e),O(()=>he(Z,d())),$(fe,$e)};L(Ke,fe=>{p()||fe(ce)})}h(pe),O(fe=>{le=J(pe,1,"timeline-preview svelte-1wqg760",null,le,fe),it(pe,`width: ${r(D)?r(T):r(C)}px;`)},[()=>({mobile:a()})]),$(t,pe),U(),o()}var u2=A('<span class="time svelte-1jr6obn"> </span>'),p2=A("<!> <!>",1),f2={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 xe,He,me,Re,Xe;F(e,!0),q(t,f2);let[i,o]=Be(),n=()=>S(ee,"$interactiveEpisodes$",i),s=()=>S(I,"$duration$",i),l=()=>S(k,"$position$",i),d=()=>S(oe,"$isInteractiveExpectation$",i),a=()=>S(de,"$isInteractiveTime$",i),u=()=>S(N,"$isLive$",i),f=()=>S(D,"$isMobile",i),v=()=>S(Y,"$isActiveLive$",i),p=()=>S(M,"$bufferedProgress$",i),b=()=>S(pe,"$disabledControls$",i),x=m(e,"showTimeline",3,!1),y=m(e,"withEpisodes",3,!0),C=m(e,"ref",15,void 0),T=ke(),E=Ft(),M=T.state.bufferedProgress$,k=T.state.positionWithScrubbing$,I=T.state.duration$,N=T.state.isLive$,Y=T.state.isActiveLive$,D=T.ui.isMobile,H=E.features.episodes&&y()?T.actions.internal.getVideoEpisodes():void 0,W=T.actions.internal.getPreviewThumbsData(),ee=T.state.interactiveEpisodes$,K=T.state.isInteractive,de=T.state.isInteractiveTime$,oe=T.state.isInteractiveExpectation$,we=T.actions.internal.correctSeekTimeToInteractive,Ie=(xe=T.callbacks)==null?void 0:xe.onDisabledTimelineClick,pe=T.ui.controls.disabledControls$,le=(me=(He=T.callbacks)==null?void 0:He.uiInfo)==null?void 0:me.onTimelineMouseEnter,Ae=(Xe=(Re=T.callbacks)==null?void 0:Re.uiInfo)==null?void 0:Xe.onTimelineMouseLeave,te=T.ui.t,R=E.features.interactiveResponsiveUi,Ge=g(()=>K?n():H),ie=g(()=>mn(s())),Ke=g(()=>mn(l())),ce=g(()=>l()/s()),fe=g(()=>d()||a()),$e=j(!1),Z=j(""),qe=j(0),Ze=j(0),Pe=j(0),re=g(()=>({containerWidth:r(Ze),translateXPx:r(qe),translateYPx:K&&W?-36:-16,active:r($e)&&x()&&!r(fe)&&!R,pointer:!E.features.timelinePreview||!W||u()})),Ee=te("aria_timeline"),Qe=g(()=>te("aria_timeline_value",{position:r(Ke),duration:r(ie)}));function rt(Ue){return!we||!K?Ue:we(Ue*s())/s()}function nt(Ue){T.actions.internal.startScrubbing(rt(Ue))}function Mt(Ue){a()||T.actions.internal.progressScrubbing(rt(Ue))}function Je(Ue){T.actions.internal.completeScrubbing(rt(Ue)),B($e,!1)}function dt(Ue,Pt,St){Kt(Ue,Pt,St),B($e,!0)}function qt(Ue,Pt,St){Kt(Ue,Pt,St),B($e,!0)}function oi(){B($e,!1)}function Kt(Ue,Pt,St){B(Pe,rt(Ue),!0),B(qe,Pt,!0),St&&B(Ze,St,!0),B(Z,wt(Ue),!0)}function wt(Ue){let Pt=mn((u()?1-Ue:Ue)*s());return u()?`-${Pt}`:Pt}var ne=p2(),Lt=ve(ne);Mf(Lt,fs(()=>r(re),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(Ue,Pt)=>{var St=Fe(),yt=ve(St);{var pt=di=>{Lf(di,{get time(){return r(Z)},get isMobile(){return f()},get videoEpisodes(){return r(Ge)},get previewThumbsData(){return W},get progress(){return r(Pe)},get duration(){return s()},get isInteractive(){return K}})},Mi=di=>{var ot=u2(),Bt=_(ot,!0);h(ot),O(()=>he(Bt,r(Z))),$(di,ot)};L(yt,di=>{E.features.timelinePreview&&W&&!u()?di(pt):di(Mi,!1)})}$(Ue,St)},$$slots:{default:!0}}));var ge=P(Lt,2);let X=g(()=>b().has("TIMELINE"));ga(ge,{className:"timeline-slider",get isActiveLive(){return v()},get isMobile(){return f()},get ariaLabel(){return Ee},ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return l()},get ariaValueText(){return r(Qe)},get loadedProgress(){return p()},get filledProgress(){return r(ce)},get handleProgress(){return r(ce)},get videoEpisodes(){return r(Ge)},onPointerDown:nt,onHandleMove:Mt,onPointerMove:qt,onPointerUp:Je,onPointerEnter:dt,onPointerLeave:oi,get onMouseEnter(){return le},get onMouseLeave(){return Ae},get onDisabledClick(){return Ie},get isInteractive(){return K},get disabled(){return r(X)},get hideHandel(){return a()},testId:"progress_bar",get ref(){return C()},set ref(Ue){C(Ue)}}),$(t,ne),U(),o()}var m2={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 gd(t,e){F(e,!0),q(t,m2);let[i,o]=Be(),n=()=>S(a,"$isMobile",i),s=m(e,"position",3,0),l=m(e,"duration",3,0),d=ke(),a=d.ui.isMobile,u=d.ui.t,f=g(()=>mn(l())),v=g(()=>mn(s())),p=g(()=>s()/l()),b=g(()=>u("aria_timeline_value",{position:r(v),duration:r(f)})),x=g(()=>Math.round(r(p)*100));ga(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return r(x)},get ariaValueText(){return r(b)},get filledProgress(){return r(p)},hideHandel:!0,get squareBorders(){return n()}}),U(),o()}var v2=A("<div><!></div>"),g2=A("<div></div>"),h2={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 ha(t,e){F(e,!0),q(t,h2);let[i,o]=Be(),n=()=>S(b,"$isLive$",i),s=()=>S(C,"$isMobile",i),l=()=>S(y,"$adPosition",i),d=()=>S(x,"$adDuration",i),a=m(e,"isAds",3,!1),u=m(e,"isHidden",3,!1),f=m(e,"needPadding",3,!0),v=m(e,"ref",15,void 0),p=ke(),b=p.state.isLive$,x=p.ads.duration,y=p.ads.position,C=p.ui.isMobile,T=g(()=>!u()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||a()));var E=Fe(),M=ve(E);{var k=N=>{var Y=v2();let D;var H=_(Y);{var W=K=>{gd(K,{get position(){return l()},get duration(){return d()}})},ee=K=>{Vf(K,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return r(T)},get withEpisodes(){return e.withEpisodes},get ref(){return v()},set ref(de){v(de)}})};L(H,K=>{a()?K(W):K(ee,!1)})}h(Y),O(K=>D=J(Y,1,"timeline svelte-41cp6d",null,D,K),[()=>({withoutPadding:!f(),mobile:s()})]),$(N,Y)},I=N=>{var Y=g2();let D;O(H=>D=J(Y,1,"timeline-stub svelte-41cp6d",null,D,H),[()=>({mobile:s()})]),$(N,Y)};L(M,N=>{r(T)?N(k):N(I,!1)})}$(t,E),U(),o()}import{noop as $2}from"@vkontakte/videoplayer-shared/es2018";var _2=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"></path></svg>');function Rf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=_2();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(3),h(o),$(t,o)}var b2=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708" clip-rule="evenodd" opacity=".7"></path></svg>');function Nf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=b2();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(),h(o),$(t,o)}var y2=A('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),x2=A('<span class="text svelte-1yhs2ga"> </span>'),w2=A('<span class="text count svelte-1yhs2ga"> </span>'),S2=A("<!> <!>",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 hd(t,e){var oe,we,Ie;F(e,!0),q(t,C2);let[i,o]=Be(),n=()=>S(x,"$currentGridType$",i),s=()=>S(y,"$openedByKeyboard$",i),l=()=>S(C,"$panelOpened$",i),d=()=>S(T,"$isMobile",i),a=m(e,"position",3,0),u=m(e,"duration",3,0),f=m(e,"timeCodes",19,()=>[]),v=ke(),p=(we=(oe=v.callbacks)==null?void 0:oe.onEpisodeChanged)!=null?we:$2,b=!!((Ie=v.callbacks)!=null&&Ie.onEpisodeClicked),x=v.ui.currentGridType$,y=v.ui.episodes.openedByKeyboard$,C=v.ui.episodes.panelOpened$,T=v.ui.isMobile,E=v.ui.t,M=j(void 0),k=pe=>{var Ae,te,R;if(!!((Ae=v.callbacks)!=null&&Ae.onEpisodeClicked)){let Ge=Vs(pe);y.set(Ge),C.set(!0),(R=(te=v.callbacks)==null?void 0:te.onEpisodeClicked)==null||R.call(te,Ge)}},I=j(null),N=g(()=>a()/u());We(()=>{var le;let pe=tu(r(N),u(),f());pe?((le=r(I))==null?void 0:le.time)!==pe.time&&(p(pe),B(I,pe,!0)):B(I,null)});let Y=g(()=>{var pe;return((pe=r(I))==null?void 0:pe.text)||""}),D=g(()=>Gi(n(),"xl")?"FULL":Gi(n(),"m")&&Yh(n(),"xl")?"COUNT":"SHORT"),H=g(()=>`${E("tooltip_episodes")}: ${r(Y)}`),W=async(pe,le,Ae)=>{await bo(),(pe==null?void 0:pe.getAttribute("aria-expanded"))==="false"&&le&&!Ae&&Ct(()=>{y.set(!1),pe.focus()})};We(()=>{W(r(M),s(),l())});var ee=Fe(),K=ve(ee);{var de=pe=>{let le=g(()=>d()?"px-0":""),Ae=g(()=>!b);Rt(pe,{get className(){var te;return`w-max btn-full-opacity btn-jc-l ${(te=r(le))!=null?te:""}`},testId:"btn-episodes",click:k,get disabled(){return r(Ae)},get ariaExpanded(){return l()},get ariaLabel(){return r(H)},get ref(){return r(M)},set ref(te){B(M,te,!0)},children:(te,R)=>{var Ge=Fe(),ie=ve(Ge);{var Ke=fe=>{var $e=y2(),Z=ve($e),qe=_(Z,!0);h(Z);var Ze=P(Z,2),Pe=_(Ze);Nf(Pe,{}),h(Ze),O(()=>he(qe,r(Y))),$(fe,$e)},ce=fe=>{var $e=S2(),Z=ve($e);Rf(Z,{});var qe=P(Z,2);{var Ze=re=>{var Ee=x2(),Qe=_(Ee,!0);h(Ee),O(()=>he(Qe,r(Y))),$(re,Ee)},Pe=(re,Ee)=>{{var Qe=rt=>{var nt=w2(),Mt=_(nt,!0);h(nt),O(()=>he(Mt,f().length)),$(rt,nt)};L(re,rt=>{r(D)==="COUNT"&&rt(Qe)},Ee)}};L(qe,re=>{r(D)==="FULL"?re(Ze):re(Pe,!1)})}$(fe,$e)};L(ie,fe=>{d()?fe(Ke):fe(ce,!1)})}$(te,Ge)},$$slots:{default:!0}})};L(K,pe=>{r(I)&&pe(de)})}$(t,ee),U(),o()}import{debounceFn as f1}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as L2,PlaybackState as _d,Player as V2,PredefinedQualityLimits as ts,VideoFormat as bd,clientChecker as R2}from"@vkontakte/videoplayer-core/es2018";import{assertNonNullable as Zn,getHighestQuality as N2,InterfaceLanguage as B2,isInvariantQuality as O2,isNonNullable as D2,loadVKLangPack as H2,Logger as F2,map as s1,merge as U2,Observable as a1,Subject as cu,Subscription as Uf,TracerFactory as z2,ValueSubject as W2,VideoQuality as K2,devNull as q2,now as Q2,filter as G2,once as Y2}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as hs}from"@vkontakte/videoplayer-statistics/es2018";import{detectEmbed as T2,devNull as jt,now as Zt}from"@vkontakte/videoplayer-shared/es2018";import{addScript as E2,Subject as Jo,clearVideoElement as I2}from"@vkontakte/videoplayer-shared/es2018";var e1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var k2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",iu=class{constructor(e,i){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new Jo,loadStarted$:new Jo,loadEnded$:new Jo,loadError$:new Jo,ready$:new Jo,slotRequested$:new Jo,started$:new Jo,timeRemained$:new Jo,paused$:new Jo,resumed$:new Jo,ended$:new Jo,empty$:new Jo,skipped$:new Jo,clicked$:new Jo,closed$:new Jo,error$:new Jo};this.loadAdman=e=>(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[Zt()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let s=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[Zt()]}),i(),this.events.loadEnded$.next()):(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[Zt()]}),o())};E2(k2,e,this.loadTimeout).then(()=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[Zt()]}),window.AdmanHTML?(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[Zt()]}),i(),this.events.loadEnded$.next()):(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[Zt()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout))}).catch(l=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[Zt()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let s=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[Zt()]}),i(),this.events.loadEnded$.next()):(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[Zt()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[Zt()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[Zt()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[Zt()]}),!d&&(window.AdmanHTML?(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[Zt()]}),i(),this.events.loadEnded$.next()):(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[Zt()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout)))},l).finally(()=>{clearTimeout(n),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[Zt()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[Zt(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),ye(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:[Zt()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[Zt()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.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:[Zt()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[Zt()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[Zt()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var M;if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[Zt(),e.slotId]}),this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:s,adsContainer:l,adsVideoElement:d,slotId:a,params:u={},duration:f,previewParam:v}=e,p,b=this.playerState&&ye(this.playerState.vsid);b&&(this.isVsidOriginal?p=b:p=parseInt(b,36));let{isEmbed:x,immediateOrigin:y}=T2(),C=(M=x?y:window.location.href)!=null?M:window.location.href,T={...u,dl:encodeURIComponent(C),autoplay:s?1:0,player_width:i,player_height:o,preview:v,...p?{request_id:p}:{},duration:f,puid10:e1(i,o),puid11:n?0:1};v||delete T.preview;let E={slot:a,wrapper:l,videoEl:d,videoQuality:o,params:T,browser:{mobile:!1}};try{let k=new window.AdmanHTML;k.setDebug(!1),k.onReady(this.onAdsReady),k.onStarted(this.onAdStarted),k.onPlayed(this.onAdPlayed),k.onPaused(this.onAdPaused),k.adMidrollPoint(this.onAdMidrollPoint),k.onClosed(this.onAdClosed),k.onSkipped(this.onAdSkipped),k.onClicked(this.onAdClicked),k.onTimeRemained(this.onAdTimeRemained),k.onCompleted(this.onAdCompleted),k.onError(this.onAdError),k.init(E),this.adman=k,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(E)}`})}catch(k){jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(k)],numbers:[Zt()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,s;if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[Zt()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.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 l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(s=(n=this.actions).switchFromAdsToVideo)==null||s.call(n,!i)}}togglePlay(){var e;if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.adsState){this.log({message:"toggle play"});let i=ye(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[Zt()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&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:[Zt()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,s,l,d,a,u,f,v,p;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[Zt()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(n=this.adman)==null||n.onPaused(void 0),(s=this.adman)==null||s.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(a=this.adman)==null||a.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(v=this.adman)==null||v.onError(void 0),(p=this.adman)==null||p.destroy(),this.videoElement&&I2(this.videoElement),this.isDestroyed=!0}};var t1=t=>{let e=Math.round(t);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var Bf=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],n=e.split(this.twoLinesRegExp);for(let s of n){let l={startTime:0,endTime:0,texts:[],lang:i},d=s.split(this.oneLineRegExp);for(let a of d)if(!l.startTime&&!l.endTime){let u=new ou,{startTime:f,endTime:v}=u.parse(a);l.startTime=f,l.endTime=v}else if(a.trim()!==""){let u=new Of,{texts:f}=u.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},ou=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",n="0"){let s=Number(e)*60*60,l=Number(i)*60,d=Number(o),a=+`0.${n}`;return s+l+d+a}},Of=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,a=[];for(;d<l.length;){let u=["<",">"].reduce((f,v)=>{let p=l.indexOf(v,d);return f===-1||f>p?p:f},-1);if(u===-1){a.push(l.substring(d));break}a.push(l.substring(d,u)),d=u+1}return a}}),s=new ou;for(let l of n)s.isTime(l)?i.texts.push({type:"timestamp",value:s.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},i1=Bf;import{isNonNullable as Df}from"@vkontakte/videoplayer-shared/es2018";var _a,Si,Hf=0,Ff=!1,o1="",n1=(t,e=0,i=0)=>t<e&&t<i,nu=(t,e=0,i=0)=>t>=e&&t<=i,P2=(t,e=0,i=0)=>t>e&&t>i,r1=(t,e,i,o=!1)=>{var d;let n=(d=i.find(({id:a})=>a===e.value))==null?void 0:d.subtitles;if(o)return n==null?void 0:n.find(({startTime:u,endTime:f})=>nu(t,u,f));let s=t>=Hf,l=t<Hf;if(Hf=t,l&&(Ff=!1),Df(_a)&&nu(t,_a.startTime,_a.endTime)&&o1===e.value)return _a;if(!Df(Si)&&(n!=null&&n.length)&&!Ff){Si=n.find(({startTime:u,endTime:f})=>nu(t,u,f)||s&&n1(t,u,f)),_a=void 0,!Df(Si)&&n[n.length-1].endTime<t&&(Ff=!0);return}else{if(nu(t,Si==null?void 0:Si.startTime,Si==null?void 0:Si.endTime))return _a=Si,Si=void 0,o1=e.value,_a;(s&&P2(t,Si==null?void 0:Si.startTime,Si==null?void 0:Si.endTime)||l&&n1(t,Si==null?void 0:Si.startTime,Si==null?void 0:Si.endTime))&&(Si=void 0)}};var ru={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"},A2={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"},su=t=>{var e,i;return(i=(e=ru[t])!=null?e:ru[A2[t]])!=null?i:void 0};import{Subscription as M2}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-statistics/es2018";var au=class{constructor(e,i,o,n=new M2){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=n}destroy(){var e,i,o;(e=this.oneStat)==null||e.destroy(),(i=this.thinOneStat)==null||i.destroy(),(o=this.mediascopePixel)==null||o.destroy(),this.statSubscription.unsubscribe()}};var lu=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(lu||{});var es=t=>t!=null?t:0,gs=(t,e)=>{var n,s;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(s=e==null?void 0:e.getBoundingClientRect)==null?void 0:s.call(e);return{top:Math.round(es(i==null?void 0:i.top)-es(o==null?void 0:o.top)),left:Math.round(es(i==null?void 0:i.left)-es(o==null?void 0:o.left)),bottom:Math.round(es(i==null?void 0:i.bottom)-es(o==null?void 0:o.top)),right:Math.round(es(i==null?void 0:i.right)-es(o==null?void 0:o.left))}},ll=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:es(e==null?void 0:e.width),height:es(e==null?void 0:e.height)}};var du="off";var l1=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:s,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:u,videoEpisodes:f,previewThumbsData:v,uiConfig:p,coreConfig:b,player:x,disabledControls:y,isInteractive:C,interactiveRanges$:T,isInteractiveTime$:E,replayInteractive:M,stopPlayer:k,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:N,additionalButtons:Y,additionalSettingsMenuItems:D,additionalContextMenuItems:H,playPrevVideo:W,playNextVideo:ee,looped:K=!1,statistics:de,saveRate:oe,internalsExposure:we,playerView:Ie})=>{var ov,nv,rv;let pe={...b,configName:[...(ov=b.configName)!=null?ov:[],"ui"],isAudioDisabled:l,live:{...(nv=b.live)!=null?nv:{},isLiveCatchUpMode:!!n}},le=p,Ae=z2.createRootTracer(le.features.tracer),te=Ae.createComponentTracer("Store"),R=x||new V2(pe,Ae);we==null||we.expose({corePlayer:R});let Ge=new F2,ie=new iu(Ge,{loadTimeout:le.ads.loadTimeout,initTimeout:le.ads.initTimeout,runtimeTimeout:le.ads.runtimeTimeout,useAdmanFromNPM:le.ads.useAdmanFromNPM,volumeMultiplier:le.ads.volumeMultiplier,isVsidOriginal:le.ads.isVsidOriginal}),Ke=aa.getInstance(),ce=u==null?void 0:u.pictureInPictureApi,fe=u==null?void 0:u.annotationsApi,$e=u==null?void 0:u.slotsApi,Z=Ge.createComponentLog("Store"),qe,Ze,Pe={},re=new Lc,Ee=new Uf,Qe=de&&de.oneStat?Jt(de.oneStat.vsid$):mr(void 0),rt=ae(As()),nt=ae(!1),Mt=(rv=ce==null?void 0:ce.info.isActive$)!=null?rv:new W2(!1),Je=ae(0),dt=ae([]),qt=U2(R.events.fatalError$,R.events.managedError$).subscribe(c=>dt.update(w=>[...w,c])),oi=mr(!1,c=>{let w=R.events.fatalError$.subscribe(()=>c(!0));return()=>w.unsubscribe()}),Kt=async c=>{var ue;let w=Object.values(B2).includes(c);if(le.downloadVKLanguages&&(w&&le.updateBuiltinLanguages||!Kp(c))){let De;try{De=await H2(c,Kg,qg)}catch(ut){(ue=de==null?void 0:de.oneStat)==null||ue.logError({errorType:"VKLangPack",fatal:!1}),Ke==null||Ke.report(ut,{errorType:"VKLangPack",fatal:!1})}De&&(Wp({language:c,pack:De,fallback:le.defaultLanguage}),wt.set(c))}Kp(c)&&wt.set(c)},wt=ae(t),ne=ae(e);Kt(t);let Lt=(c,w)=>{let V=ye(wt);return qp(V,c,w,le.defaultLanguage)},ge=ae("thumb"),X=(()=>{let c=gi([oi,ge],([w,V])=>w?"crashed":V);return{...c,is:w=>ye(c)===w}})(),xe=(()=>{let c=ae(new Set(y));return{...c,add:w=>{c.update(V=>new Set([...V].concat(w)))},remove:w=>{c.update(V=>{let ue=[...V];return new Set(Array.isArray(w)?ue.filter(De=>!w.includes(De)):ue.filter(De=>De!==w))})},includes:w=>{let V=ye(c);return Array.isArray(w)?w.every(ue=>V.has(ue)):V.has(w)}}})();te.log("create store"),Z({message:"create store"});let He=c=>{let w=c.container,V=()=>{yt=new MutationObserver(De=>{let{removedNodes:ut}=De[0];ut.length&&w.append(R.experimental.element$.getValue())}),yt.observe(w,{childList:!0})},ue=R.experimental.element$.getValue();if(ue)w.append(ue),V();else{let De=R.experimental.element$.pipe(G2(ut=>!!ut),Y2()).subscribe(ut=>{w.append(ut),V()});Ee.add(De)}},me=c=>{Z({message:`init video, config: ${JSON.stringify(c)}`}),C?He(c):(q2.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[Q2()]}),R.initVideo(c)),te.log("init video",{isInteractive:C}),c.subtitles&&R.setExternalTextTracks(c.subtitles),qe=c},Re=new cu,Xe=c=>Re.next(c),Ue=new cu,Pt=new cu,St=new cu,yt=null,pt={actionRewind$:Ue,actionSeek$:Pt,inPiP$:Mt,inFullscreen$:new a1(c=>rt.subscribe(w=>c.next(w))),actionSetSubtitle$:St,nextMovie$:Re},Mi={actionSeek$:Pt,playerSize$:new a1(c=>mt.subscribe(w=>c.next(w)))};if(de){let{oneStat:c,thinOneStat:w,mediascopePixel:V,statSubscription:ue}=de;c&&(C||ue.add(c.attachTo(R)),ue.add(c.attachToUi(pt)),ue.add(c.attachToAds(ie.events)),c.authorize(s).catch(De=>{Z({message:`onestat auth error ${String(De)}`})}),V&&V.attachTo(R)),w&&(ue.add(w.attachTo(R)),ue.add(w.attachToUi(Mi)),w.authorize(s))}if(Ke){let c=new Uf,w=(V,ue)=>c.add(V.subscribe(ue));if(w(R.events.managedError$,V=>{Ke.logIError(V)}),w(R.events.fatalError$,V=>{Ke.logIError(V,!0)}),de){let{oneStat:V}=de;V&&w(V.experimental.error$,ue=>{Ke.logIError(ue)})}Ke.sentrySubscription.add(c)}let di=()=>{R2.device.isIOS&&Ze&&kh(Ze).catch(c=>{Z({message:`exitIosSafariFullscreen failed: ${c}`})})};Ee.add(R.experimental.element$.subscribe(c=>{c&&(Ze=c,c.classList.add("player-media"),da(ce)&&(ce.updateVideoElement(),ce.registryEventHandlers()),C&&c.setAttribute("pip","false"),Ie==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(R.events.ended$.subscribe(()=>{var c;di(),(c=a==null?void 0:a.onEnded)==null||c.call(a)})).add(R.events.looped$.subscribe(()=>{var c;(c=a==null?void 0:a.onLooped)==null||c.call(a)})).add(R.events.started$.subscribe(async()=>{var w,V;da(ce)&&await(ce==null?void 0:ce.revealPictureInPicture());let c=R.info.muted$.getValue();(w=a==null?void 0:a.onStarted)==null||w.call(a),(V=Pe.onStarted)==null||V.call(Pe,c)})).add(R.events.willSeek$.subscribe(({from:c,to:w})=>{var V;(V=a==null?void 0:a.onSeek)==null||V.call(a,c,w)})).add(R.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=a==null?void 0:a.onAutoplaySoundProhibited)==null||c.call(a)})).add(R.info.position$.subscribe(c=>{var V;let w=R.info.duration$.getValue();isFinite(w)&&w>0&&((V=a==null?void 0:a.onTimeupdate)==null||V.call(a,w,c),ie.setPosition(c,w))})).add(R.events.fatalError$.subscribe(c=>{var w;(w=a==null?void 0:a.onCrashed)==null||w.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(R.events.fetcherRecoverableError$.subscribe(c=>{var w;(w=a==null?void 0:a.onRecoverableError)==null||w.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(R.events.loadedMetadata$.subscribe(()=>{kt.state.loadedMetadata$.set(!0)})).add(R.info.is3DVideo$.subscribe(c=>{kt.ui.is3DVideo.set(c)})).add(R.info.isEnded$.subscribe(c=>{C&&(c?(E!=null&&E.getValue()&&xe.add(Kl),xe.add("PLAY_BUTTON")):xe.remove("PLAY_BUTTON"))})).add(R.info.liveTime$.subscribe(c=>{var w;(w=a==null?void 0:a.onLiveTime)==null||w.call(a,c)})).add(R.info.isStalled$.subscribe(c=>{var w;(w=a==null?void 0:a.onStalledChanged)==null||w.call(a,c)})).add(R.info.isLiveEnded$.subscribe(c=>{var w;return c&&((w=a==null?void 0:a.onLiveEnded)==null?void 0:w.call(a))})).add(ie.events.loadStarted$.subscribe(()=>{var c,w;return(w=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:w.call(c)})).add(ie.events.loadEnded$.subscribe(()=>{var c,w;return(w=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:w.call(c)})).add(ie.events.loadError$.subscribe(()=>{var c,w;return(w=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadError)==null?void 0:w.call(c)})).add(ie.events.init$.subscribe(()=>{var c,w;return(w=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onInit)==null?void 0:w.call(c)})).add(ie.events.ready$.subscribe(()=>{var c,w;return(w=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onReady)==null?void 0:w.call(c)})).add(ie.events.started$.subscribe(c=>{var w,V;return(V=(w=a==null?void 0:a.adsInfo)==null?void 0:w.onStarted)==null?void 0:V.call(w,c)})).add(ie.events.timeRemained$.subscribe(c=>{var w,V;return(V=(w=a==null?void 0:a.adsInfo)==null?void 0:w.onTimeRemained)==null?void 0:V.call(w,c)})).add(ie.events.ended$.subscribe(c=>{var w,V;return(V=(w=a==null?void 0:a.adsInfo)==null?void 0:w.onCompleted)==null?void 0:V.call(w,c)})).add(ie.events.empty$.subscribe(()=>{var c,w;return(w=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onEmpty)==null?void 0:w.call(c)})).add(ie.events.clicked$.subscribe(c=>{var w,V;return(V=(w=a==null?void 0:a.adsInfo)==null?void 0:w.onClicked)==null?void 0:V.call(w,c)})).add(ie.events.closed$.subscribe(c=>{var w,V;return(V=(w=a==null?void 0:a.adsInfo)==null?void 0:w.onClosed)==null?void 0:V.call(w,c)})).add(ie.events.error$.subscribe(c=>{var w,V;return(V=(w=a==null?void 0:a.adsInfo)==null?void 0:w.onError)==null?void 0:V.call(w,c)})).add(ie.events.paused$.subscribe(()=>{var c,w;return(w=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onPaused)==null?void 0:w.call(c)})).add(ie.events.resumed$.subscribe(()=>{var c,w;return(w=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onResumed)==null?void 0:w.call(c)}));let ot=new Uf,Bt=()=>{var ut,Dt,Ut;let{debugLog:c}=le,w,V="#9df7b7",ue="#efd169";if(c&&c!==!0){let{colors:Ht}=c;w=c.tag,V=(ut=Ht==null?void 0:Ht[0])!=null?ut:V,ue=(Ut=(Dt=Ht==null?void 0:Ht[1])!=null?Dt:Ht==null?void 0:Ht[0])!=null?Ut:ue}let De=w?`: ${w}`:"";ot.add(R.events.log$.subscribe(Ht=>{console.debug(`%c sdk${De} `,`background:${V};`,`sdk component: ${Ht.component}`,Ht.message)})).add(Ge.log$.subscribe(Ht=>{console.debug(`%c ui${De} `,`background:${ue};`,`ui component: ${Ht.component}.`,Ht.message)}))},fi=()=>{ot.unsubscribe()},Ui=(c,w)=>{te.log("start camera manual rotation",{mx:c,my:w}),R.startCameraManualRotation(c,w)},uo=(c=!1)=>{te.log("stop camera manual rotation",{immediate:c}),R.stopCameraManualRotation(c)},zi=(c,w,V)=>{te.log("move camera focus px",{xpx:c,ypx:w,dt:V}),R.moveCameraFocusPX(c,w,V)},Qt=()=>{R.holdCamera()},po=()=>{R.releaseCamera()},It=mr(R.info.position$.getValue(),c=>{let w,V,ue=()=>{let De=R.info.playbackState$.getValue(),ut=R.info.isLive$.getValue(),Dt=R.info.duration$.getValue(),Ut=R.info.position$.getValue();if(De&&[_d.PLAYING,_d.PAUSED].includes(De)){let Ht=ut?Ut-Dt:R.getExactTime();Ht!==V&&c(Ht),V=Ht}w=requestAnimationFrame(ue)};return ue(),()=>cancelAnimationFrame(w)}),lt=Jt(R.info.playbackState$),mi=Jt(R.info.currentBuffer$),G=Jt(R.info.isEnded$),zt=Jt(R.info.isLive$),li=le.features.playbackRate?Jt(R.info.canChangePlaybackSpeed$):mr(!1),Li=Jt(R.info.liveBufferTime$),ri=Jt(R.info.volume$),ci=Jt(R.info.muted$),ct=Vc(R.info.predefinedQualityLimitType$.pipe(s1(c=>c===ts.TRAFFIC_SAVING)),R.info.predefinedQualityLimitType$.getValue()===ts.TRAFFIC_SAVING),tt=Vc(R.info.predefinedQualityLimitType$.pipe(s1(c=>c===ts.HIGH_QUALITY)),R.info.predefinedQualityLimitType$.getValue()===ts.HIGH_QUALITY),Tt=Jt(R.info.autoQualityLimitingAvailable$),Wi=Jt(R.info.availableQualities$),ti=Jt(R.info.availableQualitiesFps$),Xn=Jt(R.info.chromecastState$),Ci=Jt(R.info.chromecastDeviceName$),xo=Jt(R.info.currentFormat$),hi=Jt(R.info.throughputEstimation$),ht=Jt(R.info.videoBitrate$),Vi=Jt(R.info.intrinsicVideoSize$),Ho=Jt(R.info.duration$),Tn=Jt(R.info.isAudioAvailable$),si=null,Ti=R.info.isBuffering$,Fo=mr(Ti.getValue(),c=>{let w=Ti.subscribe(V=>{V&&si===null?si=window.setTimeout(()=>{c(Ti.getValue()),si=null},le.loaderDelay):c(V)});return()=>{w.unsubscribe(),si&&clearTimeout(si)}}),En=()=>{si&&clearTimeout(si),si=null},Uo=gi([Ho,zt],([c,w])=>w?-c:c),wo=gi([lt],([c])=>c===_d.PLAYING),vn=Jt(R.info.atLiveEdge$),tn=Jt(R.info.atLiveDurationEdge$),fo=Jt(R.info.position$),mo=gi([fo,Ho],([c,w])=>isFinite(c)&&isFinite(w)&&!!w),Or=gi([Xn],([c])=>c===L2.CONNECTED),gr=Jt(R.info.availableVideoStreams$),Jn=le.features.audioLanguages?Jt(R.info.availableAudioStreams$):mr([]),er=Jt(R.info.currentVideoStream$),tr=Jt(R.info.currentAudioStream$),In=c=>{c.language&&zp(c.language),R.setVideoStream(c)},is=c=>{c.language&&zp(c.language),R.setAudioStream(c)},kn=c=>{let w;if(c.length===1&&(w=c.at(0)),w!=null||(w=c.find(ue=>"isDefault"in ue&&ue.isDefault)),w)return w;let V=vh();return V&&(w=c.find(({language:ue})=>V===ue)),w!=null||(w=c.at(0)),w},Ei=!1;Ee.add(R.info.availableAudioStreams$.subscribe(c=>{if(!Ei&&c.length){let w=kn(c);w&&(R.setAudioStream(w),Ei=!0)}}));let Pn=!1;Ee.add(R.info.availableVideoStreams$.subscribe(c=>{if(!Pn&&c.length){let w=kn(c);w&&(R.setVideoStream(w),Pn=!0)}}));let on=ae(void 0),nn=Jt(R.info.isAutoQualityEnabled$,c=>c&&on.set(void 0)),An=Jt(R.info.currentQuality$,()=>on.set(void 0)),Mn=gi([on,An],([c,w])=>c!=null?c:w),zo=gi(xo,c=>c!==bd.MPEG),Dr=gi([Wi,ti,nn,Mn,zo],([c,w,V,ue,De])=>{let ut=[];De&&ut.push({value:"auto",displayValue:Lt("auto_quality_option"),selected:V});let Dt=c.filter(Ut=>!O2(Ut));for(let Ut of Dt){let Ht=w[Ut];ut.push({value:Ut,displayValue:`${Ut}${Ht?t1(Ht):""}`,selected:V?!1:Ut===ue})}return ut}),Ln=Jt(R.info.currentPlaybackRate$),ir=gi([Ln,vn,tn],([c,w,V])=>{let ue=V||C?1:le.controls.playbackRateMin,De=w?1:le.controls.playbackRateMax,ut=le.controls.playbackRateStep,Dt=[];for(let Ut=ue;Ut<=De;Ut+=ut)Dt.push({value:Ut,displayValue:Ut===1?Lt("playback_rate_1"):Lt("playback_rate",{multiplier:Ut.toString(10)}),selected:c===Ut});return Dt}),Ki={displayValue:Lt("subtitles_off"),value:du},So=ae({...Ki}),st=le.features.subtitles?Jt(R.info.availableTextTracks$):mr([]),Xt=sh(),hr=gi([st,So],([c,w],V)=>{var ut;let ue=[],De=c.find(({id:Dt})=>Dt===w.value);if(De!=null&&De.url){let[,Dt]=(ut=Xt.find(De.url))!=null?ut:[];if(Dt){V(Dt);return}re.download(De.url).then(Ut=>{if(!Ut||re.isDestroyed())return;let Ht=new i1,ys=De.language;if(ys){let j1=!!De.isAuto,Z1=Ht.parse(Ut,ys);ue.push({lang:ys,subtitles:Z1,isAuto:j1,id:De.id})}Xt.add(De.url,ue),ye(So).value===w.value&&V(ue)}).catch(Ut=>{var Ht;(Ht=de==null?void 0:de.oneStat)==null||Ht.logError({errorType:"Subtitles download",fatal:!1}),Ke==null||Ke.report(Ut,{errorType:"Subtitles download",fatal:!1})})}V(ue)}),Vn=gi([Ln,wo,So],([c,w,V],ue)=>{let Dt;if(R.info.isLive$.getValue()&&w&&V.value!==Ki.value){let Ht=()=>{let ys=1e3/(3*c);Dt=setTimeout(Ht,ys),ue(Date.now())};return Ht(),()=>clearTimeout(Dt)}}),gn=gi([st,So],([c,w])=>{if(!c.length)return[];let V=[];for(let{language:ue,isAuto:De,id:ut}of c){let Dt=ue&&su(ue);ue&&Dt&&V.push({displayValue:De?Lt("subtitles_auto",{language:Dt}):Dt,value:ut,selected:(w==null?void 0:w.value)===ut,isAuto:De})}return V.length?(V.unshift({...Ki,selected:(w==null?void 0:w.value)===Ki.value}),V):[]}),Ri={available:[],prev:[]},Rn=()=>{var w,V;let c=R.experimental.getCurrentTime$.getValue();return(V=(w=c==null?void 0:c())!=null?w:Ze==null?void 0:Ze.currentTime)!=null?V:0},Co=gi([It,So,hr,Vn],([c,w,V,ue])=>{var ut;let De=R.info.isLive$.getValue();if(De&&Ri.prev!==V){let Dt=V.find(({id:Ht})=>Ht===w.value),Ut=Ri.prev.find(({id:Ht})=>Ht===w.value);if(Dt){let Ht={...Dt,subtitles:[...(ut=Ut==null?void 0:Ut.subtitles)!=null?ut:[],...Dt.subtitles]};Ri.available=[Ht],Ri.prev=V}}if(w&&w.value!==Ki.value){let Dt=De?Rn():c,Ut=De?Ri.available:V;return r1(Dt,w,Ut,De)}}),Nn=gi([Co],([c])=>c!=null&&c.texts?c.texts:[]);Ee.add(So.subscribe(c=>{var w,V;if(c.value===Ki.value)(w=a==null?void 0:a.onSubtitleOff)==null||w.call(a);else{let ue=Object.entries(ru).find(([De,ut])=>ut===c.displayValue);(V=a==null?void 0:a.onSubtitleOn)==null||V.call(a,ue?ue[0]:"")}}));let To=ae(!0),Bn=gi([mi,Uo,fo,Li],([c,w,V,ue])=>{var Ut;let De=(Ut=c==null?void 0:c.end)!=null?Ut:0;if(!ue)return De/w;let Dt=-V+ue-w;return(De-Dt)/w}),On=Jt(R.info.availableSources$),or=gi([On],([c])=>Object.keys((c==null?void 0:c[bd.MPEG])||{}).length>0),_r=()=>{var V,ue,De;let c=Object.keys(((ue=(V=R.info.availableSources$)==null?void 0:V.getValue())==null?void 0:ue[bd.MPEG])||{}),w=N2(c)||K2.Q_144P;return(De=qe.sources[bd.MPEG])==null?void 0:De[w]},nr=()=>{var w;let c=_r();if(c)te.log("download video",{url:c}),oh(c,((w=qe==null?void 0:qe.meta)==null?void 0:w.title)||"video");else{let V="There is no URL for download video";te.log("download video",{message:V}),Z({message:V})}},Wo=()=>{Z({message:"toggle muted"});let c=R.info.muted$.getValue();R.info.volume$.getValue()===0&&!c?vo(Gt()):$r(!c)},Hr=()=>{var c;if(kt.ui.settingsMenu.visible$.set(!1),!ye(kt.ui.settingsSubMenu.visible$)){let w=ye(kt.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&w){let ue=ll(w),De={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:ue,position:De,name:"settings"})}}te.log("close settings menu")},rr=async(c,w=()=>Promise.resolve())=>{var De;kt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),kt.ui.settingsMenu.visible$.set(!0),await w();let V=ye(kt.ui.settingsMenu.ref$),ue=Fs();if((De=a==null?void 0:a.uiInfo)!=null&&De.onSettingsMenu&&V&&ue){let Dt=ll(V),Ut=gs(V,ue);a.uiInfo.onSettingsMenu({visible:!0,size:Dt,position:Ut,name:"settings"})}te.log("open settings menu",{wasOpenedByKeyboard:c})},br=(c,w=!1)=>{var ut;kt.ui.settingsSubMenu.visible$.set(!1);let V=ye(kt.ui.settingsMenu.ref$),ue=Fs(),De=ye(kt.ui.settingsMenu.visible$);if((ut=a==null?void 0:a.uiInfo)!=null&&ut.onSettingsMenu&&V&&ue)if(De&&!w){let Ut=ll(V),Ht=gs(V,ue);a.uiInfo.onSettingsMenu({visible:!0,size:Ut,position:Ht,name:"settings"})}else{let Ut=ll(c),Ht={top:0,left:0,bottom:0,right:0},ys=ye(kt.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:Ut,position:Ht,name:ys})}te.log("close settings sub menu")},rn=(c,w)=>{var ue;kt.ui.settingsSubMenu.visible$.set(!0),kt.ui.settingsSubMenu.ref$.set(w),kt.ui.settingsSubMenu.name$.set(c);let V=Fs();if((ue=a==null?void 0:a.uiInfo)!=null&&ue.onSettingsMenu&&w&&V){let ut=ll(w),Dt=gs(w,V);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:ut,position:Dt})}te.log("open settings sub menu",{name:c})},Gt=()=>{var w;let c=Math.max(le.volumeMinRestore,(w=Rc())!=null?w:0);return c===0?le.volumeDefault:c},vo=c=>{let w=c===0?Gt():c,V=R.info.muted$.getValue();Z({message:`set volume, volume: ${c}, preferredVolume: ${w}`});let ue=!l||X.is("ads");V&&c>0&&ue&&(V=!1,Fp(!1)),R.setVolume(c,V),ie.setVolume(c),Np(w)},$r=c=>{let w=R.info.volume$.getValue();if(Z({message:`set muted, currentVolume: ${w}, mute: ${c}`}),R.setMuted(c,X.is("ads")),ie.setVolume(c?0:w),Fp(c),!c&&w===0){let V=Gt();R.setVolume(V),Np(V),ie.setVolume(V)}},Eo=ae(!1),yr=c=>{var w,V;te.log("set looped",{isLooped:c}),Eo.set(c),R.setLooped(c),(V=(w=a==null?void 0:a.uiInfo)==null?void 0:w.onLoopedChanged)==null||V.call(w,c)};yr(K);let Ii=()=>{var c,w;(w=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||w.call(c)},Fr=(c,w=!1)=>{var V;Z({message:`set autoplayNextEnabled, value: ${c}`}),te.log("set autoplay next enabled",{autoplayNextEnabled:c}),kt.ui.autoplayNextEnabled$.set(c),_h(c),w&&((V=a==null?void 0:a.onSetAutoplayNextEnabled)==null||V.call(a,c))},os=c=>{Z({message:`set timerNextVideoRunning, value: ${c}`}),te.log("set timer next video running",{timerNextVideoRunning:c}),kt.ui.timerNextVideoRunning$.set(c)},xr=(c=!0)=>{var ue;let w=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{w=(ue=a==null?void 0:a.onPrevVideoClick)==null?void 0:ue.call(a)}catch(De){Z({message:"onPrevVideoClick callback failed to execute"})}if(!w)return;c&&ft("prev")||W()},sr=(c=!0)=>{var ue;let w=!0;if(c&&(a!=null&&a.onNextVideoClick))try{w=(ue=a==null?void 0:a.onNextVideoClick)==null?void 0:ue.call(a)}catch(De){Z({message:"onNextVideoClick callback failed to execute"})}if(!w)return;c&&ft("next")||ee()},ft=c=>{let{isMobile:w,features:{playbackStatusNextVideoShow:V,playbackStatusShow:ue}}=le;return V&&ue&&!w?(kt.ui.aboutToGoNextVideo.set(c),kt.ui.userActionsDisabled.set(!0),!0):!1},Yt=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},oo=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},_i=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},Io=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},no=()=>{R.prepare()},Ko=()=>{Zn(kt);let c=ye(kt.ui.controls.disabledControls$),w=ye(kt.playerPhase),V={playerPhase:w,isInteractive:C,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(Z({message:"toggle play"}),w==="ads"){V.action="play",te.log("toggle adman play",V),ie.togglePlay();return}let ue=()=>{var ut;Z({message:"toggle play, call player.play"}),V.action="play",R.play(),(ut=a==null?void 0:a.onPlay)==null||ut.call(a)},De=()=>{var ut;Z({message:"toggle play, call player.pause"}),V.action="pause",R.pause(),(ut=a==null?void 0:a.onPause)==null||ut.call(a)};if(R.info.isEnded$.getValue()){if(Z({message:"toggle play, video ended, seek to 0"}),Ue.next(),Pt.next(hs.REWIND),C){M==null||M();return}R.seekTime(0),ue()}else R.info.playbackState$.getValue()!==_d.PLAYING?ue():De();te.log("toggle play",V)},ji=(c,{changeReason:w="default",appliesTo:V="to-video"}={})=>{Z({message:`set quality, quality: ${c}`}),te.log("set quality",{quality:c}),R.setAutoQuality(c==="auto"),c!=="auto"?(le.features.qualityDetailsSubMenuEnabled?(Nc({type:"exact_quality",quality:c,videoId:i},V),Ql(),R.setPredefinedQualityLimits(ts.UNKNOWN)):Bp(i,c),on.set(c),R.setQuality(c)):le.features.qualityDetailsSubMenuEnabled?w==="default"&&(bi("auto_quality",V),ye(ct)&&qo(!1),ye(tt)&&je(!1)):Ql()},qo=(c,w="as-default")=>{Z({message:`set trafficSavingEnabled, value: ${c}`}),te.log("set traffic saving enabled",{trafficSavingEnabled:c});let V=c?ts.TRAFFIC_SAVING:ts.UNKNOWN;le.features.qualityDetailsSubMenuEnabled?(At(V,w),ql(!1)):(R.setPredefinedQualityLimits(V),ql(c))},je=(c,w="as-default")=>{Z({message:`set highQualityEnabled, value: ${c}`}),te.log("set high quality enabled",{highQualityEnabled:c}),At(c?ts.HIGH_QUALITY:ts.UNKNOWN,w)},At=(c,w)=>{c!==ts.UNKNOWN&&(ye(Tt)&&!ye(nn)&&ji("auto",{appliesTo:w,changeReason:"limit-changed"}),bi(c,w)),R.setPredefinedQualityLimits(c)},bi=(c,w)=>{Nc({type:c,videoId:i},w),w==="as-default"&&Nc({type:c,videoId:i},"to-video")},ro=c=>{te.log("set playback rate",{playbackRate:c}),R.setPlaybackRate(c),le.features.saveRate&&oe&&!R.info.isLive$.getValue()&&gh(c)},go=()=>{let c=ye(ir),w=c.findIndex(({selected:ue})=>ue);if(w===c.length-1)return;let V=c[w+1];ro(V.value)},ko=()=>{let c=ye(ir),w=c.findIndex(({selected:ue})=>ue);if(w===0)return;let V=c[w-1];ro(V.value)},so=(c={...Ki,selected:!1})=>{te.log("set subtitles",{...c}),c&&c.value!==Ki.value&&St.next(c.isAuto?c.value+"_auto":c.value),So.set(c)},Po=()=>{te.log("toggle subtitles");let c=ye(gn),w=ye(So),V=ye(wt);if((w==null?void 0:w.value)===Ki.value){let ue=c.filter(De=>De.value!==Ki.value).find(De=>De.value===V)||c[1];so(ue)}else so()},Qo=ae(!0),Ni=c=>{Qo.set(c)},$i=(c,w,V=!0)=>{var ue;if(Z({message:`seek to time, time: ${c}`}),te.log("seek to time",{time:c,action:w,forcePrecise:V}),Pt.next(w),R.info.isLive$.getValue()){let De=R.info.duration$.getValue(),ut=Math.min(0,De+c);R.seekTime(ut,V)}else{if(E!=null&&E.getValue())return;R.info.isEnded$.getValue()&&(Z({message:"seek after ended, call callbacks.onPlay"}),(ue=a==null?void 0:a.onPlay)==null||ue.call(a)),R.seekTime(ho(c),V)}},Ao=c=>{Z({message:`seek to episode start time: ${c}`}),te.log("seek to episode start time",{time:c}),$i(c,hs.EPISODE,!0)},hn=(c,w)=>{Z({message:`seek to percent, percent: ${c}`}),te.log("seek to percent",{percent:c,action:w});let V=ye(Uo)*c;$i(V,w,!1)},Zi=c=>{Z({message:`seek external, time: ${c}`}),te.log("seek external",{time:c}),Pt.next(hs.UNKNOWN),R.seekTime(R.info.isLive$.getValue()?-c:c)},Ur=c=>{var ue,De;let w=(ue=c.max)!=null?ue:"none",V=(De=c.min)!=null?De:"none";Z({message:`set auto quality limitation. Max: ${w}. Min: ${V}`}),te.log("set auto quality limits",{max:w,min:V}),R.setAutoQualityLimits(c)},wr=c=>{Z({message:`seek external to episode start time: ${c}`}),te.log("seek external to episode start time",{time:c}),$i(c,hs.EPISODE,!0)},ns=c=>{Z({message:`set playback rate to: ${c}`}),te.log("set playback rate external",{playbackRate:c}),R.setPlaybackRate(c)},sn=ae(void 0),ar=ae(!1),zr=c=>{Z({message:`start scrubbing, progress: ${c}`}),te.log("start scrubbing",{progress:c}),ar.set(!0),Sr(c)},Sr=c=>{sn.set(c)},yi,Dn,Hn=()=>{sn.set(void 0),ar.set(!1)},Cr=()=>{clearTimeout(Dn),clearTimeout(yi),yi=window.setTimeout(()=>{Hn()},500),Ze==null||Ze.removeEventListener("seeked",Cr)},Tr=c=>{Z({message:`complete scrubbing, progress: ${c}`}),te.log("complete scrubbing",{progress:c}),hn(c,hs.SLIDER),ye(kt.ui.isMobile)&&ye(kt.state.currentFormat$)===bd.HLS?(Ze==null||Ze.addEventListener("seeked",Cr),Dn=window.setTimeout(()=>{Cr()},300)):Hn()},rs=gi([It,Uo,sn],([c,w,V],ue)=>{ue(D2(V)?V*w:c)}),lr=ae(!1),Se=()=>{lr.set(!0)},_e=()=>{lr.set(!1)},mt=ae({width:0,height:0}),Ot=gi([mt],([{width:c}],w)=>{let V=jh(c);w(V)}),ui=ae(!1),Ne=Y.filter(c=>nh(c)),bt=gi([Ot,ui],([c,w])=>w?Ne.filter(V=>!V.hideOnMobile):Ne.filter(V=>{var ue;return!((ue=V.hideOnDesktopGridTypes)!=null&&ue.includes(c))})),Wt=ae(Y.filter(c=>rh(c))),ao=gi([Wt,Ot],([c,w])=>c.filter(V=>{var ue;return!((ue=V.hideOnDesktopGridTypes)!=null&&ue.includes(w))})),Go=gi([ao,bt],([c,w])=>[...le.features.additionalButtonsDesktopControlPanelRight?c.filter(V=>V.type==="desktop-control-panel-right"):[],...le.features.additionalButtons?w.map((V,ue)=>{var De;return{id:ue,weight:ue,type:"desktop-control-panel-right",testId:V.testId,icon:V.iconUrl,onClick:V.onClick,ariaLabel:(De=V.ariaLabel)!=null?De:V.tooltip,tooltipText:V.tooltip}}):[]]),lo=ae(D),Er=gi([lo],([c])=>le.features.additionalSettingsMenuItems?c.map(w=>w.type==="SWITCH"?{...w,onClick:w.onChangeEnabled}:w):[]),Wr=(c,w)=>{let V=ye(Wt).map(ue=>ue.id!==c?ue:{...ue,...w});Wt.set(V)},qi=c=>{let w=ye(Wt);if(w.some(V=>V.id===c.id)){Z({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}w.push(c),Wt.set(w)},Bi=c=>{let w=ye(Wt);if(!w.some(V=>V.id===c)){Z({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}w=w.filter(V=>V.id!==c),Wt.set(w)},an=c=>{Pt.next(hs.LIVE),Z({message:"live switch to low latency "+c}),te.log("live switch to low latency "+c),R.setLiveLowLatency(c)},dr=(c,w)=>{let V=ye(lo).map(ue=>ue.id!==c?ue:{...ue,...w});lo.set(V)},cr=c=>{let w=ye(lo);if(w.some(V=>V.id===c.id)){Z({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}w.push(c),lo.set(w)},Mo=c=>{let w=ye(lo);if(!w.some(V=>V.id===c)){Z({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}w=w.filter(V=>V.id!==c),lo.set(w)},Fn=ae(H),Ia=gi([Fn],([c])=>le.features.additionalContextMenuItems?c:[]),_t=(c,w)=>{let V=ye(Fn).map(ue=>ue.id!==c?ue:{...ue,...w});Fn.set(V)},$t=c=>{let w=ye(Fn);if(w.some(V=>V.id===c.id)){Z({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}w.push(c),Fn.set(w)},Xi=c=>{let w=ye(Fn);if(!w.some(V=>V.id===c)){Z({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}w=w.filter(V=>V.id!==c),Fn.set(w)},ln=gi([ui,oi],([c,w],V)=>{V(c&&w)}),Ji=()=>{Pt.next(hs.LIVE),Z({message:"switch to active live"}),te.log("switch to active live"),R.seekTime(0),R.info.playbackState$.getValue()!==_d.PLAYING&&kt.actions.internal.togglePlay()},ai=()=>{te.log("skip adman"),ie.skip()},ki=(c=!0)=>{Zn(kt),Z({message:`switch from ads to video, callPlay: ${c}`}),te.log("switch from ads to video",{callPlay:c}),ge.set("video"),c&&R.play(),l&&$r(!0)},Hs=()=>{Zn(kt),Z({message:"switch from video to ads"}),te.log("switch from video to ads"),kt.actions.internal.pause(),di(),ge.set("ads")},ka=c=>{Zn(kt);let w=c?"LiveWaitingStart":"thumb";te.log("set live waiting start",{state:c,playerPhase:w}),ge.set(w)},Au=c=>{Zn(kt);let w=c?"LiveWaitingRecover":"thumb";te.log("set live waiting recover",{state:c,playerPhase:w}),ge.set(w)},Gd=c=>{Zn(kt);let w=c?"LiveWaitingRecord":"thumb";te.log("set live waiting record",{state:c,playerPhase:w}),ge.set(w)},Mu=()=>(Zn(kt),te.log("get debug text data"),th(R,qe,kt,Ae.getTraceId())),Yd=()=>(Zn(kt),JSON.stringify(Ae.getFinishedSpans())),Lu=()=>(Zn(kt),ih(R,qe,kt)),Fs=()=>Ze,Vu=()=>{Z({message:"toggle chromecast"}),te.log("toggle chromecast"),R.toggleChromecast()},vl=c=>{var V;if(Zn(kt),R.info.isEnded$.getValue())return;let w=!c;if(ye(kt.playerPhase)==="ads"){Z({message:`pause ads, internalCall: ${w}`}),te.log("pause ads",{internalCall:w}),ie.pause();return}Z({message:`pause video, internalCall: ${w}`}),te.log("pause video",{internalCall:w}),w&&((V=a==null?void 0:a.onPause)==null||V.call(a)),R.pause()},jd=c=>{var V;Zn(kt);let w=!c;if(ye(kt.playerPhase)==="ads"){Z({message:`play ads, internalCall: ${w}`}),te.log("play ads",{internalCall:w}),ie.play();return}Z({message:`play video, internalCall: ${w}`}),te.log("play video",{internalCall:w}),w&&((V=a==null?void 0:a.onPlay)==null||V.call(a)),R.play()},Zd=c=>{Zn(kt);let w=!c;if(ye(kt.playerPhase)==="ads"){Z({message:"player cannot be stopped during ads via external method"});return}Z({message:`player will be stopped, internalCall: ${w}`}),k==null||k()},gl=(c,w)=>{Zn(kt),Z({message:`first start, show ads: ${c}, internalCall: ${!w}`}),te.log("first start",{showAds:c,external:w}),c?ge.set("ads"):(ge.set("video"),w?R.play():kt.actions.internal.togglePlay())},Pa=()=>(Z({message:"getting time codes"}),f),Xd=()=>{let c=Pa();if(!c||[0,1].includes(c.length))return;let w=R.info.position$.getValue();return c.find(V=>V.time>w)},Jd=c=>{let w=c;w||(w=Xd());let V=R.info.position$.getValue();te.log("seek to next episode",{currentTime:V,...w}),w&&(Z({message:"seek to next episode"}),$i(w.time,hs.EPISODE,!0))},ec=()=>{let c=Pa();if(!c||[0,1].includes(c.length))return;let w=R.info.position$.getValue(),V=c.findIndex(De=>De.time>w),ue=V===-1?c.length-2:V-2;if(!(ue<0))return c[ue]},tc=c=>{let w=c;w||(w=ec());let V=R.info.position$.getValue();te.log("seek to prev episode",{currentTime:V,...w}),w&&(Z({message:"seek to prev episode"}),$i(w.time,hs.EPISODE,!0))},Ru=()=>(Z({message:"getting preview thumbs data"}),te.log("get preview thumbs data",{...v}),v),Nu=async()=>{let c=ce==null?void 0:ce.isActive(),w="none";ce!=null&&ce.isActive()?(w="remove",await(ce==null?void 0:ce.remove())):(w="request",await(ce==null?void 0:ce.request())),te.log("toggle picture in picture",{isActive:c,action:w})},Bu=(c=-90)=>{te.log("rotate video",{alphaDiff:c}),Je.update(w=>w+c)},ze=ae([]);T==null||T.subscribe(c=>{let w=[];for(let V=0;V<c.length;V++){let{range:[ue,De],subjects:ut}=c[V];V===0&&ue!==0&&w.push({time:0,text:"",interactive:!1,completed:!0}),w.push({time:ue/1e3,text:"",interactive:!0,completed:le.features.interactiveTimeOpenUri?!ut.length||ut.every(Dt=>Dt.isRemoved):!ut.length}),De!==1/0&&w.push({time:De/1e3,text:"",interactive:!1,completed:!0})}ze.set(w)});let ni=ae(!1);E==null||E.subscribe(c=>{c&&ye(ar)&&Hn()});let ho=c=>{if(!C)return c;let w=ye(ze),V=ye(Uo),De=ye(fo)/V,ut=w.find(Dt=>Dt.interactive&&!Dt.completed&&Dt.time>De);return typeof(ut==null?void 0:ut.time)=="number"?Math.min(c,ut.time-.05):c},Us=()=>{kt.ui.episodes.panelOpened$.set(!1)},dn=()=>{te.log("destroy store"),clearTimeout(Dn),clearTimeout(yi),Ee.unsubscribe(),ot.unsubscribe(),R.destroy(),ie.destroy(),de==null||de.destroy(),Ke==null||Ke.destroy(),qt.unsubscribe(),yt==null||yt.disconnect(),yt=null,re.destroy()},kt={interfaceLanguage$:wt,isCyrillicRelatedInterface$:ne,initVideo:me,videoId:i,isClip:o,playerPhase:X,vsid:Qe,state:{positionExact$:It,positionWithScrubbing$:rs,duration$:Uo,playbackState$:lt,isPlaying$:wo,isLoaderVisible:Fo,bufferedProgress$:Bn,isLive$:zt,canChangePlaybackSpeed$:li,isActiveLive$:vn,isOldestAvailableLive$:tn,isRewindableLive$:mo,isEnded$:G,muted$:ci,volume$:ri,trafficSavingEnabled$:ct,highQualityEnabled$:tt,autoQualityLimitingAvailable$:Tt,availableVideoStreams$:gr,availableAudioStreams$:Jn,videoStream$:er,audioStream$:tr,currentQuality$:Mn,isAutoQualityEnabled$:nn,availableQualities$:Dr,currentPlaybackRate$:Ln,availablePlaybackRates$:ir,currentSubtitle$:So,availableTextTracks$:st,availableSubtitlesList$:gn,currentSubtitleCaptions$:Nn,isAutoSubtitleCaptionVisible$:To,chromecastState$:Xn,chromecastDeviceName$:Ci,chromecastConnected$:Or,currentFormat$:xo,throughputEstimation$:hi,videoBitrate$:ht,videoSize$:Vi,errorLog$:dt,crashed$:oi,isAudioAvailable$:Tn,isAudioDisabled:!!l,canDownload:le.features.download&&!!d,availableSources$:On,hasMpegSources$:or,isInteractive:C,showInteractiveGraph:le.features.interactiveGraph,showSeekToInteractive:le.features.seekToInteractive,showPlayPrevChapter:le.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:le.features.interactiveTimeIndicator&&!!ye(ze).length,interactiveEpisodes$:ze,isInteractiveTime$:E?Jt(E):ae(!1),isInteractiveExpectation$:ni,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:N,looped$:Eo,loadedMetadata$:ae(!1),isAutoQualityAvailable$:zo},ui:{t:Lt,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:Y.length?Y.reduce(c=>[...c,ae(void 0)],[]):[],disabledControls$:xe},modals:{hotKeyMap:{show:ae(!1),data:ae({title:"",closeBtnText:"",groups:[]})}},isFullscreen:rt,isFullscreenOpenedByKeyboard:nt,rotateAlpha:Je,isAutoplay:ae(!1),debugPanelVisible:ae(!1),episodes:{panelOpened$:ae(!1),openedByKeyboard$:ae(!1)},contextMenu:{visible$:ae(!1),btnRef$:ae(void 0),openedByBtnKeyboard$:ae(!1),openedByHotKey$:ae(!1),lastActiveElem$:ae(void 0),showContextMenuBtn$:ae(!1),position$:ae({top:0,left:0})},playerSize:mt,isMobile:ui,mobileNotReportControlHidden$:ln,mobileUnmuteButtonExpanded:ae(!1),mobileUnmuteButtonVisible:ae(!1),icon3DVideoVisible:ae(!1),scrubbingInProgress:ar,volumeChangingInProgress:lr,is3DVideo:ae(!1),currentGridType$:Ot,additionalButtonsDeprecated$:bt,additionalDesktopControlPanelRightButtons$:Go,additionalSettingsMenuItems$:Er,additionalContextMenuItems$:Ia,interactiveHideMobileControls:ae(!1),overlayContainer$:ae(void 0),startedByKeyboard$:ae(!1),autoplayNextEnabled$:ae(!1),timerNextVideoRunning$:ae(!0),settingsMenu:{visible$:ae(!1),ref$:ae(void 0),openedByBtnKeyboard$:ae(!1)},settingsSubMenu:{visible$:ae(!1),ref$:ae(void 0),name$:ae(void 0)},aboutToGoNextVideo:ae(void 0),userActionsDisabled:ae(!1),hiddenControls:{volume:ae(!1),vkLogo:ae(!1),pip:ae(!1),chromecast:ae(!1),settings:ae(!1)},isControlsAvailable:Qo,controlBlocks:{topLeft:ae(void 0),topRight:ae(void 0),middle:ae(void 0),bottom:ae(void 0),bottomLeft:ae(void 0),bottomRight:ae(void 0)},videoTitleInfo:ae(void 0)},ads:{position:ae(0),duration:ae(0),playbackState:ae("inactive"),canSkip:ae(!1),secondsToWatchBeforeSkip:ae(0),postrollPassed:ae(!1)},webApi:{pictureInPictureApi:ce,annotationsApi:fe,slotsApi:$e},actions:{internal:{preload:no,firstStart:c=>gl(c,!1),play:()=>jd(!1),pause:()=>vl(!1),togglePlay:Ko,toggleMuted:Wo,openSettingsMenu:rr,closeSettingsMenu:Hr,openSettingsSubMenu:rn,closeSettingsSubMenu:br,setVolume:vo,startVolumeChanging:Se,stopVolumeChanging:_e,setVideoStream:In,setAudioStream:is,setQuality:ji,setTrafficSavingEnabled:qo,setHighQualityEnabled:je,setPlaybackRate:ro,incrementPlaybackRate:go,decrementPlaybackRate:ko,setSubtitle:so,toggleSubtitle:Po,togglePictureInPicture:Nu,startScrubbing:zr,progressScrubbing:Sr,completeScrubbing:Tr,toggleChromecast:Vu,switchToActiveLive:Ji,switchFromAdsToVideo:ki,switchFromVideoToAds:Hs,skipAd:ai,setLiveWaitingStart:ka,setLiveWaitingRecover:Au,setLiveWaitingRecord:Gd,getDebugTextData:Mu,getTraceTextData:Yd,getDebugPanelData:Lu,getVideoElement:Fs,seekTime:(c,w,V)=>$i(c,w,V),clearDelayedBufferingCheckTimeout:En,seekEpisodeStartTime:Ao,seekToPercent:hn,getNextEpisode:Xd,seekToNextEpisode:Jd,getPrevEpisode:ec,seekToPrevEpisode:tc,startLogging:Bt,stopLogging:fi,startCameraManualRotation:Ui,stopCameraManualRotation:uo,moveCameraFocusPX:zi,holdCamera:Qt,releaseCamera:po,getVideoEpisodes:Pa,getPreviewThumbsData:Ru,downloadVideo:nr,addLanguage:Wp,setLanguage:Kt,nextMovie:Xe,videoRotate:Bu,correctSeekTimeToInteractive:ho,replayInteractive:M,setLooped:yr,reportProblem:Ii,setAutoplayNextEnabled:Fr,setTimerNextVideoRunning:os,prevVideoClick:xr,nextVideoClick:sr,nextVideoAnnouncementShow:Yt,nextVideoAnnouncementClick:oo,nextVideoAnnouncementAuto:_i,nextVideoAnnouncementCancel:Io},external:{firstStart:c=>gl(c,!0),play:()=>jd(!0),pause:()=>vl(!0),stop:()=>Zd(!0),seekTime:c=>Zi(c),seekEpisodeStartTime:c=>wr(c),setPlaybackRate:c=>ns(c),setAutoQualityLimits:c=>Ur(c),setMuted:$r,toggleSubtitle:Po,setVolume:vo,returnFocusToEpisodes:Us,updateAdditionalSettingsItem:dr,addAdditionalSettingsItem:cr,removeAdditionalSettingsItem:Mo,updateAdditionalContextItem:_t,addAdditionalContextItem:$t,removeAdditionalContextItem:Xi,updateAdditionalButton:Wr,addAdditionalButton:qi,removeAdditionalButton:Bi,setLiveLowLatency:an,hideControls:()=>Ni(!1),showControls:()=>Ni(!0)}},callbacks:a,setUiCallbacks:c=>{Pe={...c}},getAdmanWrapper:()=>ie,getLogger:()=>Ge,getPlayer:()=>R,destroy:dn};return kt};function Sn(t,e,i,o){var f;let n=(f=e[i])==null?void 0:f.getBoundingClientRect(),s=o&&!!n&&!!(n.right-n.left),{top:l,left:d,bottom:a,right:u}=gs(e[i],t||void 0);return{left:s?d:0,right:s?u:0,top:s?l:0,bottom:s?a:0,isDisplayed:s}}var j2=["disabledControls$","additionalButtons"],Z2=["interactiveTimeIndicator"],dl=(t,e,i,o)=>{if(t){for(let[n,s]of Object.entries(e))if(!j2.includes(n)){let l=o||Z2.includes(n);s.set(Sn(t,i,n,l))}}};var uu=async(t,e,i)=>{await bo(),e&&i&&(i.focus(),t.set(!1))};var X2=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"></path></svg>');function zf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=X2();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(),h(o),$(t,o)}function Wf(t,e){F(e,!0);let[i,o]=Be(),n=()=>S(a,"$contextMenuVisible$",i),s=m(e,"disabled",3,!1),l=m(e,"ariaLabel",3,""),d=ke(),a=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,v=d.ui.contextMenu.position$,p=d.ui.contextMenu.btnRef$,b=j(void 0);We(()=>{r(b)&&Ct(()=>{p.set(r(b))})});let x=E=>{let M=Vs(E),k=Uh(r(b));v.set(k),u.set(M),a.set(!n())},y=()=>{f.set(!0)},C=()=>{f.set(!1)},T=g(()=>n()?"opened":"");Rt(t,{get className(){return r(T)},testId:"btn-context-menu",get disabled(){return s()},get ariaLabel(){return l()},click:x,focus:y,blur:C,get ariaExpanded(){return n()},get ref(){return r(b)},set ref(E){B(b,E,!0)},children:(E,M)=>{zf(E,{})},$$slots:{default:!0}}),U(),o()}var J2=t=>{t.stopPropagation()},ey=A("<div><!> <div></div> <div></div></div>"),ty={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;}
224
+ }`};function Vf(t,e){D(e,!0),z(t,c2);let i=m(e,"isMobile",3,!1),o=h(()=>e.iconState===o1.CONNECTED),n=h(()=>e.iconState===o1.CONNECTING);var r=ze(),l=pe(r);{var d=p=>{var f=l2(),v=_(f),u=_(v),$=_(u);Ce(),g(u);var w=P(u);Ce(),g(v);var y=P(v),S=_(y),T=_(S);g(S),Ce(),g(y),g(f),O(()=>{Be($,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)"),Be(w,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)"),Be(T,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)")}),b(p,f)},a=p=>{var f=d2();let v;var u=_(f),$=P(_(u),5);let w;g(u),g(f),O((y,S)=>{v=J(f,0,"svelte-8z1bf5",null,v,y),w=J($,0,"svelte-8z1bf5",null,w,S)},[()=>({connecting:s(n)}),()=>({hidden:!s(o)})]),b(p,f)};R(l,p=>{i()?p(d):p(a,!1)})}b(t,r),H()}import{noop as p2}from"@vkontakte/videoplayer-shared/es2018";function gd(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"click",3,p2),l=Ee().ui.t,d=h(()=>e.state===u2.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Vt(t,{get ariaLabel(){return s(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(a){i(a)},children:(a,p)=>{Vf(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),H()}var f2=M('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),m2={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 Rf(t,e){z(t,m2);let i=m(e,"active",3,!1),o=m(e,"pointer",3,!1),n=m(e,"translateXPx",3,0),r=m(e,"translateYPx",3,0),l=m(e,"leftOffset",3,0),d=m(e,"rightOffset",3,0),a=Y(void 0),p=Y(void 0);function f(S){if(!s(p))return 0;let{width:T}=s(p).getBoundingClientRect(),I=T/2;return S<I?I+l():S>e.containerWidth-I?e.containerWidth-I-d():S}let v=h(()=>f(n()));var u=f2(),$=_(u);let w;var y=_($);ge(y,()=>{var S;return(S=e.children)!=null?S:oe}),g($),tt($,S=>B(p,S),()=>s(p)),g(u),tt(u,S=>B(a,S),()=>s(a)),O(S=>{at(u,`transform: translate(${s(v)}px, ${r()}px);`),w=J($,1,"tooltip svelte-5ygsa2",null,w,S),at($,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,u)}var tu=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var n1=t=>!!(Math.round(Math.abs(t)/90)%2),r1=t=>Math.abs(t)/90%4===1;var v2=M('<div class="preview svelte-1wqg760"></div>'),g2=M('<div class="time svelte-1wqg760"> </div>'),h2=M('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),_2={hash:"svelte-1wqg760",code:".timeline-preview.svelte-1wqg760 {bottom:18px;border-radius:2px;pointer-events:none;}.timeline-preview.mobile.svelte-1wqg760 {bottom:72px;}.preview.svelte-1wqg760 {background-color:var(--timeline-preview-bg);box-shadow:0 0 2px var(--timeline-preview-shadow), 0 8px 24px var(--timeline-preview-shadow);border-radius:8px;border:1px solid var(--white);}.episode.svelte-1wqg760 {margin-top:10px;margin-bottom:4px;font-size:13px;line-height:16px;text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-weight:500;}.time.svelte-1wqg760 {font-size:13px;line-height:16px;text-align:center;color:var(--white);text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);font-weight:500;}"};function Nf(t,e){D(e,!0),z(t,_2);let[i,o]=Fe(),n=()=>C(w,"$rotateAlpha",i),r=()=>C(y,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=m(e,"time",3,""),a=m(e,"isMobile",3,!1),p=m(e,"videoEpisodes",19,()=>[]),f=m(e,"progress",3,0),v=m(e,"duration",3,0),u=m(e,"isInteractive",3,!1),$=Ee(),w=$.ui.rotateAlpha,y=$.ui.playerSize,S=Y(0),T=Y(0),I=Y(""),A=Y(0),k=Y(0),E=Y(0),L=Y(0),K=h(()=>tu(f(),v(),p())),U=h(()=>n1(n())),W=h(()=>r1(n())),G=h(ae),te=h(()=>(s(W)?1:-1)*(s(S)/2-s(T)/2)),j=h(()=>s(te)*-1);qe(()=>{(ne=>{B(S,ne.width,!0),B(T,ne.height,!0)})(we())}),qe(()=>{(ne=>{B(I,ne.imgSrc,!0),B(A,ne.imgWidth,!0),B(k,ne.imgHeight,!0),B(E,ne.imgOffsetX,!0),B(L,ne.imgOffsetY,!0)})(Re(f()))});function ae(){var Ke;let ne=a()?l.MOBILE:l.DESKTOP,{isVertical:ye}=de(),Z=30;return(Ke=s(K))!=null&&Ke.text&&(Z+=16),(ye||s(U))&&(Z+=18,Z+=50),Math.min(Math.max(r().height-Z,0),ne)}function de(){let ne=e.previewThumbsData.frameWidth,ye=e.previewThumbsData.frameHeight,Z=ye>ne;return{width:ne,height:ye,isHorizontal:!Z,isVertical:Z}}function we(){let{height:ne,isHorizontal:ye,isVertical:Z,width:Ke}=de();return ye&&(ne=ne/Ke*s(G),Ke=s(G)),Z&&(Ke=Ke/ne*s(G),ne=s(G)),{width:Ke,height:ne}}function Re(ne){let ye;e.previewThumbsData.isUV?ye=Math.floor(v()*ne/e.previewThumbsData.frequency):ye=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*ne)));let Z=Math.floor(ye/e.previewThumbsData.countPerImage),Ke=Math.floor(ye%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),ue=ye%e.previewThumbsData.countPerRow,ke=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Z===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(ke=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&ke++);let Ae=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Z===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Ae=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Te=s(S)*Ae,Qe=s(T)*ke,nt=-ue*s(S),_t=-Ke*s(T);return{imgSrc:e.previewThumbsData.links[Z],imgWidth:Te,imgHeight:Qe,imgOffsetX:nt,imgOffsetY:_t}}var me=h2();let le;var Ve=_(me);{var ee=ne=>{var ye=v2();O(()=>at(ye,`width: ${s(S)}px; height: ${s(T)}px; background-image: url(${s(I)}); background-size: ${s(A)}px ${s(k)}px; background-position: ${s(E)}px ${s(L)}px;
225
+ transform: rotate(${n()}deg) ${s(U)?`translate(${s(te)}px, ${s(j)}px)`:""};
226
+ `)),b(ne,ye)};R(Ve,ne=>{s(I)&&ne(ee)})}var N=P(Ve,2),Oe=_(N);{var _e=ne=>{var ye=ze(),Z=pe(ye);{var Ke=ke=>{var Ae=Yr();O(Te=>he(Ae,Te),[()=>F("tooltip_episode_unfinished")]),b(ke,Ae)},ue=ke=>{var Ae=Yr();O(()=>he(Ae,s(K).text||"")),b(ke,Ae)};R(Z,ke=>{u()&&s(K).completed===!1?ke(Ke):ke(ue,!1)})}b(ne,ye)};R(Oe,ne=>{s(K)&&ne(_e)})}g(N);var ve=P(N,2);{var ce=ne=>{var ye=g2(),Z=_(ye,!0);g(ye),O(()=>he(Z,d())),b(ne,ye)};R(ve,ne=>{u()||ne(ce)})}g(me),O(ne=>{le=J(me,1,"timeline-preview svelte-1wqg760",null,le,ne),at(me,`width: ${s(U)?s(T):s(S)}px;`)},[()=>({mobile:a()})]),b(t,me),H(),o()}var b2=M('<span class="time svelte-1jr6obn"> </span>'),$2=M("<!> <!>",1),y2={hash:"svelte-1jr6obn",code:".time.svelte-1jr6obn {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.timeline-slider {--slider-bg: var(--timeline-slider-bg);--slider-filled-bg: var(--timeline-slider-filled-bg);--slider-handle-bg: var(--timeline-slider-handle-bg);--slider-loaded-bg: var(--timeline-slider-loaded-bg);}"};function Bf(t,e){var re,De,We,Me,Ze;D(e,!0),z(t,y2);let[i,o]=Fe(),n=()=>C(te,"$interactiveEpisodes$",i),r=()=>C(E,"$duration$",i),l=()=>C(k,"$position$",i),d=()=>C(de,"$isInteractiveExpectation$",i),a=()=>C(ae,"$isInteractiveTime$",i),p=()=>C(L,"$isLive$",i),f=()=>C(U,"$isMobile",i),v=()=>C(K,"$isActiveLive$",i),u=()=>C(A,"$bufferedProgress$",i),$=()=>C(me,"$disabledControls$",i),w=m(e,"showTimeline",3,!1),y=m(e,"withEpisodes",3,!0),S=m(e,"ref",15,void 0),T=Ee(),I=Ft(),A=T.state.bufferedProgress$,k=T.state.positionWithScrubbing$,E=T.state.duration$,L=T.state.isLive$,K=T.state.isActiveLive$,U=T.ui.isMobile,W=I.features.episodes&&y()?T.actions.internal.getVideoEpisodes():void 0,G=T.actions.internal.getPreviewThumbsData(),te=T.state.interactiveEpisodes$,j=T.state.isInteractive,ae=T.state.isInteractiveTime$,de=T.state.isInteractiveExpectation$,we=T.actions.internal.correctSeekTimeToInteractive,Re=(re=T.callbacks)==null?void 0:re.onDisabledTimelineClick,me=T.ui.controls.disabledControls$,le=(We=(De=T.callbacks)==null?void 0:De.uiInfo)==null?void 0:We.onTimelineMouseEnter,Ve=(Ze=(Me=T.callbacks)==null?void 0:Me.uiInfo)==null?void 0:Ze.onTimelineMouseLeave,ee=T.ui.t,N=I.features.interactiveResponsiveUi,Oe=h(()=>j?n():W),_e=h(()=>un(r())),ve=h(()=>un(l())),ce=h(()=>l()/r()),ne=h(()=>d()||a()),ye=Y(!1),Z=Y(""),Ke=Y(0),ue=Y(0),ke=Y(0),Ae=h(()=>({containerWidth:s(ue),translateXPx:s(Ke),translateYPx:j&&G?-36:-16,active:s(ye)&&w()&&!s(ne)&&!N,pointer:!I.features.timelinePreview||!G||p()})),Te=ee("aria_timeline"),Qe=h(()=>ee("aria_timeline_value",{position:s(ve),duration:s(_e)}));function nt(Ne){return!we||!j?Ne:we(Ne*r())/r()}function _t(Ne){T.actions.internal.startScrubbing(nt(Ne))}function $t(Ne){a()||T.actions.internal.progressScrubbing(nt(Ne))}function St(Ne){T.actions.internal.completeScrubbing(nt(Ne)),B(ye,!1)}function Ge(Ne,et,kt){Wt(Ne,et,kt),B(ye,!0)}function zt(Ne,et,kt){Wt(Ne,et,kt),B(ye,!0)}function Qt(){B(ye,!1)}function Wt(Ne,et,kt){B(ke,nt(Ne),!0),B(Ke,et,!0),kt&&B(ue,kt,!0),B(Z,Bt(Ne),!0)}function Bt(Ne){let et=un((p()?1-Ne:Ne)*r());return p()?`-${et}`:et}var X=$2(),At=pe(X);Rf(At,ds(()=>s(Ae),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(Ne,et)=>{var kt=ze(),Mt=pe(kt);{var Xe=ui=>{Nf(ui,{get time(){return s(Z)},get isMobile(){return f()},get videoEpisodes(){return s(Oe)},get previewThumbsData(){return G},get progress(){return s(ke)},get duration(){return r()},get isInteractive(){return j}})},oi=ui=>{var lt=b2(),Xt=_(lt,!0);g(lt),O(()=>he(Xt,s(Z))),b(ui,lt)};R(Mt,ui=>{I.features.timelinePreview&&G&&!p()?ui(Xe):ui(oi,!1)})}b(Ne,kt)},$$slots:{default:!0}}));var fe=P(At,2);let be=h(()=>$().has("TIMELINE"));fa(fe,{className:"timeline-slider",get isActiveLive(){return v()},get isMobile(){return f()},get ariaLabel(){return Te},ariaValueMin:0,get ariaValueMax(){return r()},get ariaValueNow(){return l()},get ariaValueText(){return s(Qe)},get loadedProgress(){return u()},get filledProgress(){return s(ce)},get handleProgress(){return s(ce)},get videoEpisodes(){return s(Oe)},onPointerDown:_t,onHandleMove:$t,onPointerMove:zt,onPointerUp:St,onPointerEnter:Ge,onPointerLeave:Qt,get onMouseEnter(){return le},get onMouseLeave(){return Ve},get onDisabledClick(){return Re},get isInteractive(){return j},get disabled(){return s(be)},get hideHandel(){return a()},testId:"progress_bar",onContextMenu:St,get ref(){return S()},set ref(Ne){S(Ne)}}),b(t,X),H(),o()}var x2={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 hd(t,e){D(e,!0),z(t,x2);let[i,o]=Fe(),n=()=>C(a,"$isMobile",i),r=m(e,"position",3,0),l=m(e,"duration",3,0),d=Ee(),a=d.ui.isMobile,p=d.ui.t,f=h(()=>un(l())),v=h(()=>un(r())),u=h(()=>r()/l()),$=h(()=>p("aria_timeline_value",{position:s(v),duration:s(f)})),w=h(()=>Math.round(s(u)*100));fa(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return s(w)},get ariaValueText(){return s($)},get filledProgress(){return s(u)},hideHandel:!0,get squareBorders(){return n()}}),H(),o()}var w2=M("<div><!></div>"),C2=M("<div></div>"),S2={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 ma(t,e){D(e,!0),z(t,S2);let[i,o]=Fe(),n=()=>C($,"$isLive$",i),r=()=>C(S,"$isMobile",i),l=()=>C(y,"$adPosition",i),d=()=>C(w,"$adDuration",i),a=m(e,"isAds",3,!1),p=m(e,"isHidden",3,!1),f=m(e,"needPadding",3,!0),v=m(e,"ref",15,void 0),u=Ee(),$=u.state.isLive$,w=u.ads.duration,y=u.ads.position,S=u.ui.isMobile,T=h(()=>!p()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||a()));var I=ze(),A=pe(I);{var k=L=>{var K=w2();let U;var W=_(K);{var G=j=>{hd(j,{get position(){return l()},get duration(){return d()}})},te=j=>{Bf(j,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return s(T)},get withEpisodes(){return e.withEpisodes},get ref(){return v()},set ref(ae){v(ae)}})};R(W,j=>{a()?j(G):j(te,!1)})}g(K),O(j=>U=J(K,1,"timeline svelte-41cp6d",null,U,j),[()=>({withoutPadding:!f(),mobile:r()})]),b(L,K)},E=L=>{var K=C2();let U;O(W=>U=J(K,1,"timeline-stub svelte-41cp6d",null,U,W),[()=>({mobile:r()})]),b(L,K)};R(A,L=>{s(T)?L(k):L(E,!1)})}b(t,I),H(),o()}import{noop as I2}from"@vkontakte/videoplayer-shared/es2018";var T2=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"></path></svg>');function Of(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=T2();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(3),g(o),b(t,o)}var E2=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708" clip-rule="evenodd" opacity=".7"></path></svg>');function Df(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=E2();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var k2=M('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),P2=M('<span class="text svelte-1yhs2ga"> </span>'),A2=M('<span class="text count svelte-1yhs2ga"> </span>'),M2=M("<!> <!>",1),L2={hash:"svelte-1yhs2ga",code:".text.svelte-1yhs2ga {padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.text.count.svelte-1yhs2ga {overflow:visible;}.text.mobile.svelte-1yhs2ga {padding:0 3px 0 4px;}.chevron-episodes.svelte-1yhs2ga {margin-bottom:-4px;}"};function _d(t,e){var de,we,Re;D(e,!0),z(t,L2);let[i,o]=Fe(),n=()=>C(w,"$currentGridType$",i),r=()=>C(y,"$openedByKeyboard$",i),l=()=>C(S,"$panelOpened$",i),d=()=>C(T,"$isMobile",i),a=m(e,"position",3,0),p=m(e,"duration",3,0),f=m(e,"timeCodes",19,()=>[]),v=Ee(),u=(we=(de=v.callbacks)==null?void 0:de.onEpisodeChanged)!=null?we:I2,$=!!((Re=v.callbacks)!=null&&Re.onEpisodeClicked),w=v.ui.currentGridType$,y=v.ui.episodes.openedByKeyboard$,S=v.ui.episodes.panelOpened$,T=v.ui.isMobile,I=v.ui.t,A=Y(void 0),k=me=>{var Ve,ee,N;if(!!((Ve=v.callbacks)!=null&&Ve.onEpisodeClicked)){let Oe=Ps(me);y.set(Oe),S.set(!0),(N=(ee=v.callbacks)==null?void 0:ee.onEpisodeClicked)==null||N.call(ee,Oe)}},E=Y(null),L=h(()=>a()/p());qe(()=>{var le;let me=tu(s(L),p(),f());me?((le=s(E))==null?void 0:le.time)!==me.time&&(u(me),B(E,me,!0)):B(E,null)});let K=h(()=>{var me;return((me=s(E))==null?void 0:me.text)||""}),U=h(()=>Fi(n(),"xl")?"FULL":Fi(n(),"m")&&t1(n(),"xl")?"COUNT":"SHORT"),W=h(()=>`${I("tooltip_episodes")}: ${s(K)}`),G=async(me,le,Ve)=>{await ho(),(me==null?void 0:me.getAttribute("aria-expanded"))==="false"&&le&&!Ve&&Ct(()=>{y.set(!1),me.focus()})};qe(()=>{G(s(A),r(),l())});var te=ze(),j=pe(te);{var ae=me=>{let le=h(()=>d()?"px-0":""),Ve=h(()=>!$);Vt(me,{get className(){var ee;return`w-max btn-full-opacity btn-jc-l ${(ee=s(le))!=null?ee:""}`},testId:"btn-episodes",click:k,get disabled(){return s(Ve)},get ariaExpanded(){return l()},get ariaLabel(){return s(W)},get ref(){return s(A)},set ref(ee){B(A,ee,!0)},children:(ee,N)=>{var Oe=ze(),_e=pe(Oe);{var ve=ne=>{var ye=k2(),Z=pe(ye),Ke=_(Z,!0);g(Z);var ue=P(Z,2),ke=_(ue);Df(ke,{}),g(ue),O(()=>he(Ke,s(K))),b(ne,ye)},ce=ne=>{var ye=M2(),Z=pe(ye);Of(Z,{});var Ke=P(Z,2);{var ue=Ae=>{var Te=P2(),Qe=_(Te,!0);g(Te),O(()=>he(Qe,s(K))),b(Ae,Te)},ke=(Ae,Te)=>{{var Qe=nt=>{var _t=A2(),$t=_(_t,!0);g(_t),O(()=>he($t,f().length)),b(nt,_t)};R(Ae,nt=>{s(U)==="COUNT"&&nt(Qe)},Te)}};R(Ke,Ae=>{s(U)==="FULL"?Ae(ue):Ae(ke,!1)})}b(ne,ye)};R(_e,ne=>{d()?ne(ve):ne(ce,!1)})}b(ee,Oe)},$$slots:{default:!0}})};R(j,me=>{s(E)&&me(ae)})}b(t,te),H(),o()}import{debounceFn as b1}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as F2,PlaybackState as bd,Player as U2,PredefinedQualityLimits as ts,VideoFormat as $d,clientChecker as z2}from"@vkontakte/videoplayer-core/es2018";import{assertNonNullable as Zn,getHighestQuality as W2,InterfaceLanguage as q2,isInvariantQuality as K2,isNonNullable as Q2,loadVKLangPack as G2,Logger as Y2,map as p1,merge as j2,Observable as f1,Subject as cu,Subscription as qf,TracerFactory as Z2,ValueSubject as X2,VideoQuality as J2,devNull as ey,now as ty,filter as iy,once as oy}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as fs}from"@vkontakte/videoplayer-statistics/es2018";import{detectEmbed as V2,devNull as Yt,now as jt}from"@vkontakte/videoplayer-shared/es2018";import{addScript as R2,Subject as Ko,clearVideoElement as N2}from"@vkontakte/videoplayer-shared/es2018";var s1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var B2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",iu=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 Ko,loadStarted$:new Ko,loadEnded$:new Ko,loadError$:new Ko,ready$:new Ko,slotRequested$:new Ko,started$:new Ko,timeRemained$:new Ko,paused$:new Ko,resumed$:new Ko,ended$:new Ko,empty$:new Ko,skipped$:new Ko,clicked$:new Ko,closed$:new Ko,error$:new Ko};this.loadAdman=e=>(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[jt()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let r=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[jt()]}),i(),this.events.loadEnded$.next()):(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[jt()]}),o())};R2(B2,e,this.loadTimeout).then(()=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[jt()]}),window.AdmanHTML?(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[jt()]}),i(),this.events.loadEnded$.next()):(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[jt()]}),window.admanAsyncInit=r,n=window.setTimeout(r,this.initTimeout))}).catch(l=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[jt()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let r=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[jt()]}),i(),this.events.loadEnded$.next()):(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[jt()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[jt()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[jt()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[jt()]}),!d&&(window.AdmanHTML?(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[jt()]}),i(),this.events.loadEnded$.next()):(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[jt()]}),window.admanAsyncInit=r,n=window.setTimeout(r,this.initTimeout)))},l).finally(()=>{clearTimeout(n),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[jt()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[jt(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"})),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized")};this.onAdPaused=()=>{var e;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[jt()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[jt()]}),this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[jt()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[jt()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[jt()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[jt()]}),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;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[jt()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[jt()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[jt()]}),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 A;if(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[jt(),e.slotId]}),this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:r,adsContainer:l,adsVideoElement:d,slotId:a,params:p={},duration:f,previewParam:v}=e,u,$=this.playerState&&$e(this.playerState.vsid);$&&(this.isVsidOriginal?u=$:u=parseInt($,36));let{isEmbed:w,immediateOrigin:y}=V2(),S=(A=w?y:window.location.href)!=null?A:window.location.href,T={...p,dl:encodeURIComponent(S),autoplay:r?1:0,player_width:i,player_height:o,preview:v,...u?{request_id:u}:{},duration:f,puid10:s1(i,o),puid11:n?0:1};v||delete T.preview;let I={slot:a,wrapper:l,videoEl:d,videoQuality:o,params:T,browser:{mobile:!1}};try{let k=new window.AdmanHTML;k.setDebug(!1),k.onReady(this.onAdsReady),k.onStarted(this.onAdStarted),k.onPlayed(this.onAdPlayed),k.onPaused(this.onAdPaused),k.adMidrollPoint(this.onAdMidrollPoint),k.onClosed(this.onAdClosed),k.onSkipped(this.onAdSkipped),k.onClicked(this.onAdClicked),k.onTimeRemained(this.onAdTimeRemained),k.onCompleted(this.onAdCompleted),k.onError(this.onAdError),k.init(I),this.adman=k,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(I)}`})}catch(k){Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(k)],numbers:[jt()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,r;if(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[jt()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.log({message:`switch to video, isPostroll: ${i}`}),i&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"}));else{let l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(r=(n=this.actions).switchFromAdsToVideo)==null||r.call(n,!i)}}togglePlay(){var e;if(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[jt()]}),this.adsState){this.log({message:"toggle play"});let i=$e(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[jt()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[jt()]}),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(){var i;this.watchDogTimeout&&this.stopWatchDog(),((i=this.adsState)!=null&&i.playbackState?$e(this.adsState.playbackState):void 0)!=="inactive"&&(this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout))}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[jt()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[jt()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[jt()]}),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,r,l,d,a,p,f,v,u;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[jt()]}),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),(r=this.adman)==null||r.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(a=this.adman)==null||a.onClicked(void 0),(p=this.adman)==null||p.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(v=this.adman)==null||v.onError(void 0),(u=this.adman)==null||u.destroy(),this.videoElement&&N2(this.videoElement),this.isDestroyed=!0}};var a1=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 r of n){let l={startTime:0,endTime:0,texts:[],lang:i},d=r.split(this.oneLineRegExp);for(let a of d)if(!l.startTime&&!l.endTime){let p=new ou,{startTime:f,endTime:v}=p.parse(a);l.startTime=f,l.endTime=v}else if(a.trim()!==""){let p=new Ff,{texts:f}=p.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},ou=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 r=Number(e)*60*60,l=Number(i)*60,d=Number(o),a=+`0.${n}`;return r+l+d+a}},Ff=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,a=[];for(;d<l.length;){let p=["<",">"].reduce((f,v)=>{let u=l.indexOf(v,d);return f===-1||f>u?u:f},-1);if(p===-1){a.push(l.substring(d));break}a.push(l.substring(d,p)),d=p+1}return a}}),r=new ou;for(let l of n)r.isTime(l)?i.texts.push({type:"timestamp",value:r.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},l1=Hf;import{isNonNullable as Uf}from"@vkontakte/videoplayer-shared/es2018";var va,Si,zf=0,Wf=!1,d1="",c1=(t,e=0,i=0)=>t<e&&t<i,nu=(t,e=0,i=0)=>t>=e&&t<=i,O2=(t,e=0,i=0)=>t>e&&t>i,u1=(t,e,i,o=!1)=>{var d;let n=(d=i.find(({id:a})=>a===e.value))==null?void 0:d.subtitles;if(o)return n==null?void 0:n.find(({startTime:p,endTime:f})=>nu(t,p,f));let r=t>=zf,l=t<zf;if(zf=t,l&&(Wf=!1),Uf(va)&&nu(t,va.startTime,va.endTime)&&d1===e.value)return va;if(!Uf(Si)&&(n!=null&&n.length)&&!Wf){Si=n.find(({startTime:p,endTime:f})=>nu(t,p,f)||r&&c1(t,p,f)),va=void 0,!Uf(Si)&&n[n.length-1].endTime<t&&(Wf=!0);return}else{if(nu(t,Si==null?void 0:Si.startTime,Si==null?void 0:Si.endTime))return va=Si,Si=void 0,d1=e.value,va;(r&&O2(t,Si==null?void 0:Si.startTime,Si==null?void 0:Si.endTime)||l&&c1(t,Si==null?void 0:Si.startTime,Si==null?void 0:Si.endTime))&&(Si=void 0)}};var ru={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"},D2={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"},su=t=>{var e,i;return(i=(e=ru[t])!=null?e:ru[D2[t]])!=null?i:void 0};import{Subscription as H2}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-statistics/es2018";var au=class{constructor(e,i,o,n=new H2){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=n}destroy(){var e,i,o;(e=this.oneStat)==null||e.destroy(),(i=this.thinOneStat)==null||i.destroy(),(o=this.mediascopePixel)==null||o.destroy(),this.statSubscription.unsubscribe()}};var lu=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(lu||{});var es=t=>t!=null?t:0,ps=(t,e)=>{var n,r;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(r=e==null?void 0:e.getBoundingClientRect)==null?void 0:r.call(e);return{top:Math.round(es(i==null?void 0:i.top)-es(o==null?void 0:o.top)),left:Math.round(es(i==null?void 0:i.left)-es(o==null?void 0:o.left)),bottom:Math.round(es(i==null?void 0:i.bottom)-es(o==null?void 0:o.top)),right:Math.round(es(i==null?void 0:i.right)-es(o==null?void 0:o.left))}},ll=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:es(e==null?void 0:e.width),height:es(e==null?void 0:e.height)}};var du="off";var m1=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:r,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:p,videoEpisodes:f,previewThumbsData:v,uiConfig:u,coreConfig:$,player:w,disabledControls:y,isInteractive:S,interactiveRanges$:T,isInteractiveTime$:I,replayInteractive:A,stopPlayer:k,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:L,additionalButtons:K,additionalSettingsMenuItems:U,additionalContextMenuItems:W,playPrevVideo:G,playNextVideo:te,looped:j=!1,statistics:ae,saveRate:de,internalsExposure:we,playerView:Re})=>{var lv,dv,cv;let me={...$,configName:[...(lv=$.configName)!=null?lv:[],"ui"],isAudioDisabled:l,live:{...(dv=$.live)!=null?dv:{},isLiveCatchUpMode:!!n}},le=u,Ve=Z2.createRootTracer(le.features.tracer),ee=Ve.createComponentTracer("Store"),N=w||new U2(me,Ve);we==null||we.expose({corePlayer:N});let Oe=new Y2,_e=new iu(Oe,{loadTimeout:le.ads.loadTimeout,initTimeout:le.ads.initTimeout,runtimeTimeout:le.ads.runtimeTimeout,useAdmanFromNPM:le.ads.useAdmanFromNPM,volumeMultiplier:le.ads.volumeMultiplier,isVsidOriginal:le.ads.isVsidOriginal}),ve=na.getInstance(),ce=p==null?void 0:p.pictureInPictureApi,ne=p==null?void 0:p.annotationsApi,ye=p==null?void 0:p.slotsApi,Z=Oe.createComponentLog("Store"),Ke,ue,ke={},Ae=new Lc,Te=new qf,Qe=ae&&ae.oneStat?Zt(ae.oneStat.vsid$):mr(void 0),nt=se(Es()),_t=se(!1),$t=(cv=ce==null?void 0:ce.info.isActive$)!=null?cv:new X2(!1),St=se(0),Ge=se([]),zt=j2(N.events.fatalError$,N.events.managedError$).subscribe(c=>Ge.update(x=>[...x,c])),Qt=mr(!1,c=>{let x=N.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),Wt=async c=>{var ie;let x=Object.values(q2).includes(c);if(le.downloadVKLanguages&&(x&&le.updateBuiltinLanguages||!Gp(c))){let Ue;try{Ue=await G2(c,jg,Zg)}catch(vt){(ie=ae==null?void 0:ae.oneStat)==null||ie.logError({errorType:"VKLangPack",fatal:!1}),ve==null||ve.report(vt,{errorType:"VKLangPack",fatal:!1})}Ue&&(Qp({language:c,pack:Ue,fallback:le.defaultLanguage}),Bt.set(c))}Gp(c)&&Bt.set(c)},Bt=se(t),X=se(e);Wt(t);let At=(c,x)=>{let V=$e(Bt);return Yp(V,c,x,le.defaultLanguage)},fe=se("thumb");fe.subscribe(c=>{c==="ads"&&De()});let be=(()=>{let c=_i([Qt,fe],([x,V])=>x?"crashed":V);return{...c,is:x=>$e(c)===x}})(),re=se(),De=()=>{re.set({muted:N.info.muted$.getValue()})},We=(()=>{let c=se(new Set(y));return{...c,add:x=>{c.update(V=>new Set([...V].concat(x)))},remove:x=>{c.update(V=>{let ie=[...V];return new Set(Array.isArray(x)?ie.filter(Ue=>!x.includes(Ue)):ie.filter(Ue=>Ue!==x))})},includes:x=>{let V=$e(c);return Array.isArray(x)?x.every(ie=>V.has(ie)):V.has(x)}}})();ee.log("create store"),Z({message:"create store"});let Me=c=>{let x=c.container,V=()=>{oi=new MutationObserver(Ue=>{let{removedNodes:vt}=Ue[0];vt.length&&x.append(N.experimental.element$.getValue())}),oi.observe(x,{childList:!0})},ie=N.experimental.element$.getValue();if(ie)x.append(ie),V();else{let Ue=N.experimental.element$.pipe(iy(vt=>!!vt),oy()).subscribe(vt=>{x.append(vt),V()});Te.add(Ue)}},Ze=c=>{Z({message:`init video, config: ${JSON.stringify(c)}`}),S?Me(c):(ey.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[ty()]}),N.initVideo(c)),ee.log("init video",{isInteractive:S}),c.subtitles&&N.setExternalTextTracks(c.subtitles),Ke=c},Ne=new cu,et=c=>Ne.next(c),kt=new cu,Mt=new cu,Xe=new cu,oi=null,ui={actionRewind$:kt,actionSeek$:Mt,inPiP$:$t,inFullscreen$:new f1(c=>nt.subscribe(x=>c.next(x))),actionSetSubtitle$:Xe,nextMovie$:Ne},lt={actionSeek$:Mt,playerSize$:new f1(c=>gi.subscribe(x=>c.next(x)))};if(ae){let{oneStat:c,thinOneStat:x,mediascopePixel:V,statSubscription:ie}=ae;c&&(S||ie.add(c.attachTo(N)),ie.add(c.attachToUi(ui)),ie.add(c.attachToAds(_e.events)),c.authorize(r).catch(Ue=>{Z({message:`onestat auth error ${String(Ue)}`})}),V&&V.attachTo(N)),x&&(ie.add(x.attachTo(N)),ie.add(x.attachToUi(lt)),x.authorize(r))}if(ve){let c=new qf,x=(V,ie)=>c.add(V.subscribe(ie));if(x(N.events.managedError$,V=>{ve.logIError(V)}),x(N.events.fatalError$,V=>{ve.logIError(V,!0)}),ae){let{oneStat:V}=ae;V&&x(V.experimental.error$,ie=>{ve.logIError(ie)})}ve.sentrySubscription.add(c)}let Xt=()=>{z2.device.isIOS&&ue&&Vh(ue).catch(c=>{Z({message:`exitIosSafariFullscreen failed: ${c}`})})};Te.add(N.experimental.element$.subscribe(c=>{c&&(ue=c,c.classList.add("player-media"),sa(ce)&&ce.updateVideoElement(),S&&c.setAttribute("pip","false"),Re==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(N.events.ended$.subscribe(()=>{var c;Xt(),(c=a==null?void 0:a.onEnded)==null||c.call(a)})).add(N.events.looped$.subscribe(()=>{var c;(c=a==null?void 0:a.onLooped)==null||c.call(a)})).add(N.events.started$.subscribe(async()=>{var x,V;sa(ce)&&await(ce==null?void 0:ce.revealPictureInPicture());let c=N.info.muted$.getValue();(x=a==null?void 0:a.onStarted)==null||x.call(a),(V=ke.onStarted)==null||V.call(ke,c)})).add(N.events.willSeek$.subscribe(({from:c,to:x})=>{var V;(V=a==null?void 0:a.onSeek)==null||V.call(a,c,x)})).add(N.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=a==null?void 0:a.onAutoplaySoundProhibited)==null||c.call(a)})).add(N.info.position$.subscribe(c=>{var V;let x=N.info.duration$.getValue();isFinite(x)&&x>0&&((V=a==null?void 0:a.onTimeupdate)==null||V.call(a,x,c),_e.setPosition(c,x))})).add(N.events.fatalError$.subscribe(c=>{var x;(x=a==null?void 0:a.onCrashed)==null||x.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.fetcherRecoverableError$.subscribe(c=>{var x;(x=a==null?void 0:a.onRecoverableError)==null||x.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.loadedMetadata$.subscribe(()=>{It.state.loadedMetadata$.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{It.ui.is3DVideo.set(c)})).add(N.info.isEnded$.subscribe(c=>{S&&(c?(I!=null&&I.getValue()&&We.add(Kl),We.add("PLAY_BUTTON")):We.remove("PLAY_BUTTON"))})).add(N.info.liveTime$.subscribe(c=>{var x;(x=a==null?void 0:a.onLiveTime)==null||x.call(a,c)})).add(N.info.isStalled$.subscribe(c=>{var x;(x=a==null?void 0:a.onStalledChanged)==null||x.call(a,c)})).add(N.info.isLiveEnded$.subscribe(c=>{var x;return c&&((x=a==null?void 0:a.onLiveEnded)==null?void 0:x.call(a))})).add(_e.events.loadStarted$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:x.call(c)})).add(_e.events.loadEnded$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:x.call(c)})).add(_e.events.loadError$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadError)==null?void 0:x.call(c)})).add(_e.events.init$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onInit)==null?void 0:x.call(c)})).add(_e.events.ready$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onReady)==null?void 0:x.call(c)})).add(_e.events.started$.subscribe(c=>{var x,V;return(V=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onStarted)==null?void 0:V.call(x,c)})).add(_e.events.timeRemained$.subscribe(c=>{var x,V;return(V=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onTimeRemained)==null?void 0:V.call(x,c)})).add(_e.events.ended$.subscribe(c=>{var x,V;return(V=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onCompleted)==null?void 0:V.call(x,c)})).add(_e.events.empty$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onEmpty)==null?void 0:x.call(c)})).add(_e.events.clicked$.subscribe(c=>{var x,V;return(V=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onClicked)==null?void 0:V.call(x,c)})).add(_e.events.closed$.subscribe(c=>{var x,V;return(V=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onClosed)==null?void 0:V.call(x,c)})).add(_e.events.error$.subscribe(c=>{var x,V;return(V=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onError)==null?void 0:V.call(x,c)})).add(_e.events.paused$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onPaused)==null?void 0:x.call(c)})).add(_e.events.resumed$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onResumed)==null?void 0:x.call(c)}));let Jt=new qf,li=()=>{var vt,Dt,Ut;let{debugLog:c}=le,x,V="#9df7b7",ie="#efd169";if(c&&c!==!0){let{colors:Ht}=c;x=c.tag,V=(vt=Ht==null?void 0:Ht[0])!=null?vt:V,ie=(Ut=(Dt=Ht==null?void 0:Ht[1])!=null?Dt:Ht==null?void 0:Ht[0])!=null?Ut:ie}let Ue=x?`: ${x}`:"";Jt.add(N.events.log$.subscribe(Ht=>{console.debug(`%c sdk${Ue} `,`background:${V};`,`sdk component: ${Ht.component}`,Ht.message)})).add(Oe.log$.subscribe(Ht=>{console.debug(`%c ui${Ue} `,`background:${ie};`,`ui component: ${Ht.component}.`,Ht.message)}))},Qi=()=>{Jt.unsubscribe()},di=(c,x)=>{ee.log("start camera manual rotation",{mx:c,my:x}),N.startCameraManualRotation(c,x)},Gt=(c=!1)=>{ee.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},Ti=(c,x,V)=>{ee.log("move camera focus px",{xpx:c,ypx:x,dt:V}),N.moveCameraFocusPX(c,x,V)},Lo=()=>{N.holdCamera()},Rt=()=>{N.releaseCamera()},bt=mr(N.info.position$.getValue(),c=>{let x,V,ie=()=>{let Ue=N.info.playbackState$.getValue(),vt=N.info.isLive$.getValue(),Dt=N.info.duration$.getValue(),Ut=N.info.position$.getValue();if(Ue&&[bd.PLAYING,bd.PAUSED].includes(Ue)){let Ht=vt?Ut-Dt:N.getExactTime();Ht!==V&&c(Ht),V=Ht}x=requestAnimationFrame(ie)};return ie(),()=>cancelAnimationFrame(x)}),Ei=Zt(N.info.playbackState$),Vo=Zt(N.info.currentBuffer$),q=Zt(N.info.isEnded$),ut=Zt(N.info.isLive$),pi=le.features.playbackRate?Zt(N.info.canChangePlaybackSpeed$):mr(!1),Ii=Zt(N.info.liveBufferTime$),ft=Zt(N.info.volume$),it=Zt(N.info.muted$),ot=Vc(N.info.predefinedQualityLimitType$.pipe(p1(c=>c===ts.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===ts.TRAFFIC_SAVING),fi=Vc(N.info.predefinedQualityLimitType$.pipe(p1(c=>c===ts.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===ts.HIGH_QUALITY),Ot=Zt(N.info.autoQualityLimitingAvailable$),pn=Zt(N.info.availableQualities$),Ro=Zt(N.info.availableQualitiesFps$),Go=Zt(N.info.chromecastState$),Li=Zt(N.info.chromecastDeviceName$),yt=Zt(N.info.currentFormat$),Vi=Zt(N.info.throughputEstimation$),Yo=Zt(N.info.videoBitrate$),An=Zt(N.info.intrinsicVideoSize$),Ri=Zt(N.info.duration$),Gi=Zt(N.info.isAudioAvailable$),bi=null,$o=N.info.isBuffering$,fn=mr($o.getValue(),c=>{let x=$o.subscribe(V=>{V&&bi===null?bi=window.setTimeout(()=>{c($o.getValue()),bi=null},le.loaderDelay):c(V)});return()=>{x.unsubscribe(),bi&&clearTimeout(bi)}}),Ui=()=>{bi&&clearTimeout(bi),bi=null},No=_i([Ri,ut],([c,x])=>x?-c:c),jo=_i([Ei],([c])=>c===bd.PLAYING),yo=Zt(N.info.atLiveEdge$),Zo=Zt(N.info.atLiveDurationEdge$),Xn=Zt(N.info.position$),gr=_i([Xn,Ri],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),Dr=_i([Go],([c])=>c===F2.CONNECTED),Jn=Zt(N.info.availableVideoStreams$),Xo=le.features.audioLanguages?Zt(N.info.availableAudioStreams$):mr([]),hr=Zt(N.info.currentVideoStream$),Hr=Zt(N.info.currentAudioStream$),_r=c=>{c.language&&Wp(c.language),N.setVideoStream(c)},ro=c=>{c.language&&Wp(c.language),N.setAudioStream(c)},mn=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(ie=>"isDefault"in ie&&ie.isDefault)),x)return x;let V=$h();return V&&(x=c.find(({language:ie})=>V===ie)),x!=null||(x=c.at(0)),x},Bo=!1;Te.add(N.info.availableAudioStreams$.subscribe(c=>{if(!Bo&&c.length){let x=mn(c);x&&(N.setAudioStream(x),Bo=!0)}}));let vn=!1;Te.add(N.info.availableVideoStreams$.subscribe(c=>{if(!vn&&c.length){let x=mn(c);x&&(N.setVideoStream(x),vn=!0)}}));let Oo=se(void 0),Mn=Zt(N.info.isAutoQualityEnabled$,c=>c&&Oo.set(void 0)),Ln=Zt(N.info.currentQuality$,()=>Oo.set(void 0)),br=_i([Oo,Ln],([c,x])=>c!=null?c:x),$r=_i(yt,c=>c!==$d.MPEG),pt=_i([pn,Ro,Mn,br,$r],([c,x,V,ie,Ue])=>{let vt=[];Ue&&vt.push({value:"auto",displayValue:At("auto_quality_option"),selected:V});let Dt=c.filter(Ut=>!K2(Ut));for(let Ut of Dt){let Ht=x[Ut];vt.push({value:Ut,displayValue:`${Ut}${Ht?a1(Ht):""}`,selected:V?!1:Ut===ie})}return vt}),ei=Zt(N.info.currentPlaybackRate$),yr=_i([ei,yo,Zo],([c,x,V])=>{let ie=V||S?1:le.controls.playbackRateMin,Ue=x?1:le.controls.playbackRateMax,vt=le.controls.playbackRateStep,Dt=[];for(let Ut=ie;Ut<=Ue;Ut+=vt)Dt.push({value:Ut,displayValue:Ut===1?At("playback_rate_1"):At("playback_rate",{multiplier:Ut.toString(10)}),selected:c===Ut});return Dt}),Ni={displayValue:At("subtitles_off"),value:du,language:""},mi=se({...Ni}),er=le.features.subtitles?Zt(N.info.availableTextTracks$):mr([]),xo=uh(),gn=_i([er,mi],([c,x],V)=>{var vt;let ie=[],Ue=c.find(({id:Dt})=>Dt===x.value);if(Ue!=null&&Ue.url){let[,Dt]=(vt=xo.find(Ue.url))!=null?vt:[];if(Dt){V(Dt);return}Ae.download(Ue.url).then(Ut=>{if(!Ut||Ae.isDestroyed())return;let Ht=new l1,hs=Ue.language;if(hs){let n0=!!Ue.isAuto,r0=Ht.parse(Ut,hs);ie.push({lang:hs,subtitles:r0,isAuto:n0,id:Ue.id})}xo.add(Ue.url,ie),$e(mi).value===x.value&&V(ie)}).catch(Ut=>{var Ht;(Ht=ae==null?void 0:ae.oneStat)==null||Ht.logError({errorType:"Subtitles download",fatal:!1}),ve==null||ve.report(Ut,{errorType:"Subtitles download",fatal:!1})})}V(ie)}),Vn=_i([ei,jo,mi],([c,x,V],ie)=>{let Dt;if(N.info.isLive$.getValue()&&x&&V.value!==Ni.value){let Ht=()=>{let hs=1e3/(3*c);Dt=setTimeout(Ht,hs),ie(Date.now())};return Ht(),()=>clearTimeout(Dt)}}),wo=_i([er,mi],([c,x])=>{if(!c.length)return[];let V=[];for(let{language:ie,isAuto:Ue,id:vt}of c){let Dt=ie&&su(ie);ie&&Dt&&V.push({displayValue:Ue?At("subtitles_auto",{language:Dt}):Dt,value:vt,selected:(x==null?void 0:x.value)===vt,isAuto:Ue,language:ie})}return V.length?(V.unshift({...Ni,selected:(x==null?void 0:x.value)===Ni.value}),V):[]}),so={available:[],prev:[]},Co=()=>{var x,V;let c=N.experimental.getCurrentTime$.getValue();return(V=(x=c==null?void 0:c())!=null?x:ue==null?void 0:ue.currentTime)!=null?V:0},Rn=_i([bt,mi,gn,Vn],([c,x,V,ie])=>{var vt;let Ue=N.info.isLive$.getValue();if(Ue&&so.prev!==V){let Dt=V.find(({id:Ht})=>Ht===x.value),Ut=so.prev.find(({id:Ht})=>Ht===x.value);if(Dt){let Ht={...Dt,subtitles:[...(vt=Ut==null?void 0:Ut.subtitles)!=null?vt:[],...Dt.subtitles]};so.available=[Ht],so.prev=V}}if(x&&x.value!==Ni.value){let Dt=Ue?Co():c,Ut=Ue?so.available:V;return u1(Dt,x,Ut,Ue)}}),Nn=_i([Rn],([c])=>c!=null&&c.texts?c.texts:[]);Te.add(mi.subscribe(c=>{var x,V;if(c.value===Ni.value)(x=a==null?void 0:a.onSubtitleOff)==null||x.call(a);else{let ie=Object.entries(ru).find(([Ue,vt])=>vt===c.displayValue);(V=a==null?void 0:a.onSubtitleOn)==null||V.call(a,ie?ie[0]:"")}}));let tr=se(!0),Bn=_i([Vo,No,Xn,Ii],([c,x,V,ie])=>{var Ut;let Ue=(Ut=c==null?void 0:c.end)!=null?Ut:0;if(!ie)return Ue/x;let Dt=-V+ie-x;return(Ue-Dt)/x}),ir=Zt(N.info.availableSources$),or=_i([ir],([c])=>Object.keys((c==null?void 0:c[$d.MPEG])||{}).length>0),xr=()=>{var V,ie,Ue;let c=Object.keys(((ie=(V=N.info.availableSources$)==null?void 0:V.getValue())==null?void 0:ie[$d.MPEG])||{}),x=W2(c)||J2.Q_144P;return(Ue=Ke.sources[$d.MPEG])==null?void 0:Ue[x]},On=()=>{var x;let c=xr();if(c)ee.log("download video",{url:c}),lh(c,((x=Ke==null?void 0:Ke.meta)==null?void 0:x.title)||"video");else{let V="There is no URL for download video";ee.log("download video",{message:V}),Z({message:V})}},Dn=()=>{Z({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?sr(rr()):Hn(!c)},So=()=>{var c;if(It.ui.settingsMenu.visible$.set(!1),!$e(It.ui.settingsSubMenu.visible$)){let x=$e(It.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&x){let ie=ll(x),Ue={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:ie,position:Ue,name:"settings"})}}ee.log("close settings menu")},nr=async(c,x=()=>Promise.resolve())=>{var Ue;It.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),It.ui.settingsMenu.visible$.set(!0),await x();let V=$e(It.ui.settingsMenu.ref$),ie=Os();if((Ue=a==null?void 0:a.uiInfo)!=null&&Ue.onSettingsMenu&&V&&ie){let Dt=ll(V),Ut=ps(V,ie);a.uiInfo.onSettingsMenu({visible:!0,size:Dt,position:Ut,name:"settings"})}ee.log("open settings menu",{wasOpenedByKeyboard:c})},ii=(c,x=!1)=>{var vt;It.ui.settingsSubMenu.visible$.set(!1);let V=$e(It.ui.settingsMenu.ref$),ie=Os(),Ue=$e(It.ui.settingsMenu.visible$);if((vt=a==null?void 0:a.uiInfo)!=null&&vt.onSettingsMenu&&V&&ie)if(Ue&&!x){let Ut=ll(V),Ht=ps(V,ie);a.uiInfo.onSettingsMenu({visible:!0,size:Ut,position:Ht,name:"settings"})}else{let Ut=ll(c),Ht={top:0,left:0,bottom:0,right:0},hs=$e(It.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:Ut,position:Ht,name:hs})}ee.log("close settings sub menu")},Do=(c,x)=>{var ie;It.ui.settingsSubMenu.visible$.set(!0),It.ui.settingsSubMenu.ref$.set(x),It.ui.settingsSubMenu.name$.set(c);let V=Os();if((ie=a==null?void 0:a.uiInfo)!=null&&ie.onSettingsMenu&&x&&V){let vt=ll(x),Dt=ps(x,V);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:vt,position:Dt})}ee.log("open settings sub menu",{name:c})},rr=()=>{var x;let c=Math.max(le.volumeMinRestore,(x=Rc())!=null?x:0);return c===0?le.volumeDefault:c},sr=c=>{let x=c===0?rr():c,V=N.info.muted$.getValue();Z({message:`set volume, volume: ${c}, preferredVolume: ${x}`});let ie=!l||be.is("ads");V&&c>0&&ie&&(V=!1,Up(!1)),N.setVolume(c,V),_e.setVolume(c),Bp(x)},Hn=c=>{let x=N.info.volume$.getValue();Z({message:`set muted, currentVolume: ${x}, mute: ${c}`});let V=be.is("ads");if(N.setMuted(c,V),_e.setVolume(c?0:x),(!V||!c)&&Up(c),!c&&x===0){let ie=rr();N.setVolume(ie),Bp(ie),_e.setVolume(ie)}},st=se(!1),ni=c=>{var x,V;ee.log("set looped",{isLooped:c}),st.set(c),N.setLooped(c),(V=(x=a==null?void 0:a.uiInfo)==null?void 0:x.onLoopedChanged)==null||V.call(x,c)};ni(j);let hn=()=>{var c,x;(x=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},Jo=(c,x=!1)=>{var V;Z({message:`set autoplayNextEnabled, value: ${c}`}),ee.log("set autoplay next enabled",{autoplayNextEnabled:c}),It.ui.autoplayNextEnabled$.set(c),wh(c),x&&((V=a==null?void 0:a.onSetAutoplayNextEnabled)==null||V.call(a,c))},_n=c=>{Z({message:`set timerNextVideoRunning, value: ${c}`}),ee.log("set timer next video running",{timerNextVideoRunning:c}),It.ui.timerNextVideoRunning$.set(c)},bn=(c=!0)=>{var ie;let x=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{x=(ie=a==null?void 0:a.onPrevVideoClick)==null?void 0:ie.call(a)}catch(Ue){Z({message:"onPrevVideoClick callback failed to execute"})}if(!x)return;c&&Yi("prev")||G()},$n=(c=!0)=>{var ie;let x=!0;if(c&&(a!=null&&a.onNextVideoClick))try{x=(ie=a==null?void 0:a.onNextVideoClick)==null?void 0:ie.call(a)}catch(Ue){Z({message:"onNextVideoClick callback failed to execute"})}if(!x)return;c&&Yi("next")||te()},Yi=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:V,playbackStatusShow:ie}}=le;return V&&ie&&!x?(It.ui.aboutToGoNextVideo.set(c),It.ui.userActionsDisabled.set(!0),!0):!1},uo=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},Fn=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},wr=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},Fr=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},Cr=()=>{N.prepare()},rt=()=>{Zn(It);let c=$e(It.ui.controls.disabledControls$),x=$e(It.playerPhase),V={playerPhase:x,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(Z({message:"toggle play"}),x==="ads"){V.action="play",ee.log("toggle adman play",V),_e.togglePlay();return}let ie=()=>{var vt;Z({message:"toggle play, call player.play"}),V.action="play",N.play(),(vt=a==null?void 0:a.onPlay)==null||vt.call(a)},Ue=()=>{var vt;Z({message:"toggle play, call player.pause"}),V.action="pause",N.pause(),(vt=a==null?void 0:a.onPause)==null||vt.call(a)};if(N.info.isEnded$.getValue()){if(Z({message:"toggle play, video ended, seek to 0"}),kt.next(),Mt.next(fs.REWIND),S){A==null||A();return}N.seekTime(0),ie()}else N.info.playbackState$.getValue()!==bd.PLAYING?ie():Ue();ee.log("toggle play",V)},mt=(c,{changeReason:x="default",appliesTo:V="to-video"}={})=>{Z({message:`set quality, quality: ${c}`}),ee.log("set quality",{quality:c}),N.setAutoQuality(c==="auto"),c!=="auto"?(le.features.qualityDetailsSubMenuEnabled?(Nc({type:"exact_quality",quality:c,videoId:i},V),Gl(),N.setPredefinedQualityLimits(ts.UNKNOWN)):Op(i,c),Oo.set(c),N.setQuality(c)):le.features.qualityDetailsSubMenuEnabled?x==="default"&&(ao("auto_quality",V),$e(ot)&&ri(!1),$e(fi)&&ji(!1)):Gl()},ri=(c,x="as-default")=>{Z({message:`set trafficSavingEnabled, value: ${c}`}),ee.log("set traffic saving enabled",{trafficSavingEnabled:c});let V=c?ts.TRAFFIC_SAVING:ts.UNKNOWN;le.features.qualityDetailsSubMenuEnabled?(Ho(V,x),Ql(!1)):(N.setPredefinedQualityLimits(V),Ql(c))},ji=(c,x="as-default")=>{Z({message:`set highQualityEnabled, value: ${c}`}),ee.log("set high quality enabled",{highQualityEnabled:c}),Ho(c?ts.HIGH_QUALITY:ts.UNKNOWN,x)},Ho=(c,x)=>{c!==ts.UNKNOWN&&($e(Ot)&&!$e(Mn)&&mt("auto",{appliesTo:x,changeReason:"limit-changed"}),ao(c,x)),N.setPredefinedQualityLimits(c)},ao=(c,x)=>{Nc({type:c,videoId:i},x),x==="as-default"&&Nc({type:c,videoId:i},"to-video")},Zi=c=>{ee.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),le.features.saveRate&&de&&!N.info.isLive$.getValue()&&yh(c)},po=()=>{let c=$e(yr),x=c.findIndex(({selected:ie})=>ie);if(x===c.length-1)return;let V=c[x+1];Zi(V.value)},yn=()=>{let c=$e(yr),x=c.findIndex(({selected:ie})=>ie);if(x===0)return;let V=c[x-1];Zi(V.value)},en=(c={...Ni,selected:!1})=>{ee.log("set subtitles",{...c}),c.value!==Ni.value&&Xe.next(c.isAuto?c.value+"_auto":c.value),mi.set(c),Kp(c.value===Ni.value?void 0:c.language)},fo=()=>{ee.log("toggle subtitles");let c=$e(wo),x=$e(mi),V=$e(Bt);if((x==null?void 0:x.value)===Ni.value){let ie=c.filter(Ue=>Ue.value!==Ni.value).find(Ue=>Ue.value===V)||c[1];en(ie)}else en()},mo=se(!0),ar=c=>{mo.set(c)},lo=(c,x,V=!0)=>{var ie;if(Z({message:`seek to time, time: ${c}`}),ee.log("seek to time",{time:c,action:x,forcePrecise:V}),Mt.next(x),N.info.isLive$.getValue()){let Ue=N.info.duration$.getValue(),vt=Math.min(0,Ue+c);N.seekTime(vt,V)}else{if(I!=null&&I.getValue())return;N.info.isEnded$.getValue()&&(Z({message:"seek after ended, call callbacks.onPlay"}),(ie=a==null?void 0:a.onPlay)==null||ie.call(a)),N.seekTime(Uo(c),V)}},Sr=c=>{Z({message:`seek to episode start time: ${c}`}),ee.log("seek to episode start time",{time:c}),lo(c,fs.EPISODE,!0)},tn=(c,x)=>{Z({message:`seek to percent, percent: ${c}`}),ee.log("seek to percent",{percent:c,action:x});let V=$e(No)*c;lo(V,x,!1)},Ur=c=>{Z({message:`seek external, time: ${c}`}),ee.log("seek external",{time:c}),Mt.next(fs.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},zr=c=>{var ie,Ue;let x=(ie=c.max)!=null?ie:"none",V=(Ue=c.min)!=null?Ue:"none";Z({message:`set auto quality limitation. Max: ${x}. Min: ${V}`}),ee.log("set auto quality limits",{max:x,min:V}),N.setAutoQualityLimits(c)},is=c=>{Z({message:`seek external to episode start time: ${c}`}),ee.log("seek external to episode start time",{time:c}),lo(c,fs.EPISODE,!0)},Fo=c=>{Z({message:`set playback rate to: ${c}`}),ee.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},lr=se(void 0),on=se(!1),To=c=>{Z({message:`start scrubbing, progress: ${c}`}),ee.log("start scrubbing",{progress:c}),on.set(!0),dr(c)},dr=c=>{lr.set(c)},Tr,Ye,qt=()=>{lr.set(void 0),on.set(!1)},vi=()=>{clearTimeout(Ye),clearTimeout(Tr),Tr=window.setTimeout(()=>{qt()},500),ue==null||ue.removeEventListener("seeked",vi)},nn=c=>{Z({message:`complete scrubbing, progress: ${c}`}),ee.log("complete scrubbing",{progress:c}),tn(c,fs.SLIDER),$e(It.ui.isMobile)&&$e(It.state.currentFormat$)===$d.HLS?(ue==null||ue.addEventListener("seeked",vi),Ye=window.setTimeout(()=>{vi()},300)):qt()},xe=_i([bt,No,lr],([c,x,V],ie)=>{ie(Q2(V)?V*x:c)}),Pt=se(!1),He=()=>{Pt.set(!0)},wt=()=>{Pt.set(!1)},gi=se({width:0,height:0}),$i=_i([gi],([{width:c}],x)=>{let V=i1(c);x(V)}),ki=se(!1),rn=K.filter(c=>dh(c)),Un=_i([$i,ki],([c,x])=>x?rn.filter(V=>!V.hideOnMobile):rn.filter(V=>{var ie;return!((ie=V.hideOnDesktopGridTypes)!=null&&ie.includes(c))})),Xi=se(K.filter(c=>ch(c))),yi=_i([Xi,$i],([c,x])=>c.filter(V=>{var ie;return!((ie=V.hideOnDesktopGridTypes)!=null&&ie.includes(x))})),xi=_i([yi,Un],([c,x])=>[...le.features.additionalButtonsDesktopControlPanelRight?c.filter(V=>V.type==="desktop-control-panel-right"):[],...le.features.additionalButtons?x.map((V,ie)=>{var Ue;return{id:ie,weight:ie,type:"desktop-control-panel-right",testId:V.testId,icon:V.iconUrl,onClick:V.onClick,ariaLabel:(Ue=V.ariaLabel)!=null?Ue:V.tooltip,tooltipText:V.tooltip}}):[]]),zi=se(U),cr=_i([zi],([c])=>le.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?{...x,onClick:x.onChangeEnabled}:x):[]),Er=(c,x)=>{let V=$e(Xi).map(ie=>ie.id!==c?ie:{...ie,...x});Xi.set(V)},vo=c=>{let x=$e(Xi);if(x.some(V=>V.id===c.id)){Z({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Xi.set(x)},Ta=c=>{let x=$e(Xi);if(!x.some(V=>V.id===c)){Z({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(V=>V.id!==c),Xi.set(x)},Ea=c=>{Mt.next(fs.LIVE),Z({message:"live switch to low latency "+c}),ee.log("live switch to low latency "+c),N.setLiveLowLatency(c)},vl=(c,x)=>{let V=$e(zi).map(ie=>ie.id!==c?ie:{...ie,...x});zi.set(V)},Ns=c=>{let x=$e(zi);if(x.some(V=>V.id===c.id)){Z({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),zi.set(x)},Ia=c=>{let x=$e(zi);if(!x.some(V=>V.id===c)){Z({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(V=>V.id!==c),zi.set(x)},ct=se(W),xt=_i([ct],([c])=>le.features.additionalContextMenuItems?c:[]),Ji=(c,x)=>{let V=$e(ct).map(ie=>ie.id!==c?ie:{...ie,...x});ct.set(V)},sn=c=>{let x=$e(ct);if(x.some(V=>V.id===c.id)){Z({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),ct.set(x)},eo=c=>{let x=$e(ct);if(!x.some(V=>V.id===c)){Z({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(V=>V.id!==c),ct.set(x)},ai=_i([ki,Qt],([c,x],V)=>{V(c&&x)}),Pi=()=>{Mt.next(fs.LIVE),Z({message:"switch to active live"}),ee.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==bd.PLAYING&&It.actions.internal.togglePlay()},Bs=()=>{ee.log("skip adman"),_e.skip()},ka=(c=!0)=>{var ie;Zn(It),Z({message:`switch from ads to video, callPlay: ${c}`}),ee.log("switch from ads to video",{callPlay:c}),fe.set("video"),c&&N.play(),l&&Hn(!0);let x=(ie=$e(re))==null?void 0:ie.muted,V=!N.info.muted$.getValue();x!==void 0&&!V&&Hn(x),re.set(void 0)},Au=()=>{Zn(It),Z({message:"switch from video to ads"}),ee.log("switch from video to ads"),It.actions.internal.pause(),Xt(),fe.set("ads")},Gd=c=>{Zn(It);let x=c?"LiveWaitingStart":"thumb";ee.log("set live waiting start",{state:c,playerPhase:x}),fe.set(x)},Mu=c=>{Zn(It);let x=c?"LiveWaitingRecover":"thumb";ee.log("set live waiting recover",{state:c,playerPhase:x}),fe.set(x)},Yd=c=>{Zn(It);let x=c?"LiveWaitingRecord":"thumb";ee.log("set live waiting record",{state:c,playerPhase:x}),fe.set(x)},Lu=()=>(Zn(It),ee.log("get debug text data"),sh(N,Ke,It,Ve.getTraceId())),jd=()=>(Zn(It),JSON.stringify(Ve.getFinishedSpans())),Vu=()=>(Zn(It),ah(N,Ke,It)),Os=()=>ue,Ru=()=>{Z({message:"toggle chromecast"}),ee.log("toggle chromecast"),N.toggleChromecast()},gl=c=>{var V;if(Zn(It),N.info.isEnded$.getValue())return;let x=!c;if($e(It.playerPhase)==="ads"){Z({message:`pause ads, internalCall: ${x}`}),ee.log("pause ads",{internalCall:x}),_e.pause();return}Z({message:`pause video, internalCall: ${x}`}),ee.log("pause video",{internalCall:x}),x&&((V=a==null?void 0:a.onPause)==null||V.call(a)),N.pause()},hl=c=>{var V;Zn(It);let x=!c;if($e(It.playerPhase)==="ads"){Z({message:`play ads, internalCall: ${x}`}),ee.log("play ads",{internalCall:x}),_e.play();return}Z({message:`play video, internalCall: ${x}`}),ee.log("play video",{internalCall:x}),x&&((V=a==null?void 0:a.onPlay)==null||V.call(a)),N.play()},Zd=c=>{Zn(It);let x=!c;if($e(It.playerPhase)==="ads"){Z({message:"player cannot be stopped during ads via external method"});return}Z({message:`player will be stopped, internalCall: ${x}`}),k==null||k()},Xd=(c,x)=>{Zn(It),Z({message:`first start, show ads: ${c}, internalCall: ${!x}`}),ee.log("first start",{showAds:c,external:x}),c?fe.set("ads"):(fe.set("video"),x?N.play():It.actions.internal.togglePlay())},Pa=()=>(Z({message:"getting time codes"}),f),Jd=()=>{let c=Pa();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue();return c.find(V=>V.time>x)},ec=c=>{let x=c;x||(x=Jd());let V=N.info.position$.getValue();ee.log("seek to next episode",{currentTime:V,...x}),x&&(Z({message:"seek to next episode"}),lo(x.time,fs.EPISODE,!0))},tc=()=>{let c=Pa();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue(),V=c.findIndex(Ue=>Ue.time>x),ie=V===-1?c.length-2:V-2;if(!(ie<0))return c[ie]},Nu=c=>{let x=c;x||(x=tc());let V=N.info.position$.getValue();ee.log("seek to prev episode",{currentTime:V,...x}),x&&(Z({message:"seek to prev episode"}),lo(x.time,fs.EPISODE,!0))},Bu=()=>(Z({message:"getting preview thumbs data"}),ee.log("get preview thumbs data",{...v}),v),je=async()=>{let c=ce==null?void 0:ce.isActive(),x="none";ce!=null&&ce.isActive()?(x="exit",await(ce==null?void 0:ce.exit())):(x="request",await(ce==null?void 0:ce.request())),ee.log("toggle picture in picture",{isActive:c,action:x})},si=(c=-90)=>{ee.log("rotate video",{alphaDiff:c}),St.update(x=>x+c)},to=se([]);T==null||T.subscribe(c=>{let x=[];for(let V=0;V<c.length;V++){let{range:[ie,Ue],subjects:vt}=c[V];V===0&&ie!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:ie/1e3,text:"",interactive:!0,completed:le.features.interactiveTimeOpenUri?!vt.length||vt.every(Dt=>Dt.isRemoved):!vt.length}),Ue!==1/0&&x.push({time:Ue/1e3,text:"",interactive:!1,completed:!0})}to.set(x)});let Ds=se(!1);I==null||I.subscribe(c=>{c&&$e(on)&&qt()});let Uo=c=>{if(!S)return c;let x=$e(to),V=$e(No),Ue=$e(Xn)/V,vt=x.find(Dt=>Dt.interactive&&!Dt.completed&&Dt.time>Ue);return typeof(vt==null?void 0:vt.time)=="number"?Math.min(c,vt.time-.05):c},i0=()=>{It.ui.episodes.panelOpened$.set(!1)},o0=()=>{ee.log("destroy store"),clearTimeout(Ye),clearTimeout(Tr),Te.unsubscribe(),Jt.unsubscribe(),N.destroy(),_e.destroy(),ae==null||ae.destroy(),ve==null||ve.destroy(),zt.unsubscribe(),oi==null||oi.disconnect(),oi=null,Ae.destroy()},It={interfaceLanguage$:Bt,isCyrillicRelatedInterface$:X,initVideo:Ze,videoId:i,isClip:o,playerPhase:be,vsid:Qe,state:{positionExact$:bt,positionWithScrubbing$:xe,duration$:No,playbackState$:Ei,isPlaying$:jo,isLoaderVisible:fn,bufferedProgress$:Bn,isLive$:ut,canChangePlaybackSpeed$:pi,isActiveLive$:yo,isOldestAvailableLive$:Zo,isRewindableLive$:gr,isEnded$:q,muted$:it,volume$:ft,trafficSavingEnabled$:ot,highQualityEnabled$:fi,autoQualityLimitingAvailable$:Ot,availableVideoStreams$:Jn,availableAudioStreams$:Xo,videoStream$:hr,audioStream$:Hr,currentQuality$:br,isAutoQualityEnabled$:Mn,availableQualities$:pt,currentPlaybackRate$:ei,availablePlaybackRates$:yr,currentSubtitle$:mi,availableTextTracks$:er,availableSubtitlesList$:wo,currentSubtitleCaptions$:Nn,isAutoSubtitleCaptionVisible$:tr,chromecastState$:Go,chromecastDeviceName$:Li,chromecastConnected$:Dr,currentFormat$:yt,throughputEstimation$:Vi,videoBitrate$:Yo,videoSize$:An,errorLog$:Ge,crashed$:Qt,isAudioAvailable$:Gi,isAudioDisabled:!!l,canDownload:le.features.download&&!!d,availableSources$:ir,hasMpegSources$:or,isInteractive:S,showInteractiveGraph:le.features.interactiveGraph,showSeekToInteractive:le.features.seekToInteractive,showPlayPrevChapter:le.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:le.features.interactiveTimeIndicator&&!!$e(to).length,interactiveEpisodes$:to,isInteractiveTime$:I?Zt(I):se(!1),isInteractiveExpectation$:Ds,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:L,looped$:st,loadedMetadata$:se(!1),isAutoQualityAvailable$:$r},ui:{t:At,controlsVisible:se(!1),touched:se(!1),controls:{prevButton:se(void 0),playButton:se(void 0),replayButton:se(void 0),nextButton:se(void 0),playPrevChapterButton:se(void 0),seekToInteractiveButton:se(void 0),interactiveGraphButton:se(void 0),liveButton:se(void 0),time:se(void 0),episodes:se(void 0),volume:se(void 0),subtitles:se(void 0),settings:se(void 0),context:se(void 0),chromecast:se(void 0),pip:se(void 0),fullscreen:se(void 0),vkLogo:se(void 0),interactiveTimeIndicator:se(void 0),timeline:se(void 0),autoplayNextToggle:se(void 0),additionalButtons:K.length?K.reduce(c=>[...c,se(void 0)],[]):[],disabledControls$:We},modals:{hotKeyMap:{show:se(!1),data:se({title:"",closeBtnText:"",groups:[]})}},isFullscreen:nt,isFullscreenOpenedByKeyboard:_t,rotateAlpha:St,isAutoplay:se(!1),debugPanelVisible:se(!1),episodes:{panelOpened$:se(!1),openedByKeyboard$:se(!1)},contextMenu:{visible$:se(!1),btnRef$:se(void 0),openedByBtnKeyboard$:se(!1),openedByHotKey$:se(!1),lastActiveElem$:se(void 0),showContextMenuBtn$:se(!1),position$:se({top:0,left:0})},playerSize:gi,isMobile:ki,mobileNotReportControlHidden$:ai,icon3DVideoVisible:se(!1),scrubbingInProgress:on,volumeChangingInProgress:Pt,is3DVideo:se(!1),currentGridType$:$i,additionalButtonsDeprecated$:Un,additionalDesktopControlPanelRightButtons$:xi,additionalSettingsMenuItems$:cr,additionalContextMenuItems$:xt,interactiveHideMobileControls:se(!1),overlayContainer$:se(void 0),startedByKeyboard$:se(!1),autoplayNextEnabled$:se(!1),timerNextVideoRunning$:se(!0),settingsMenu:{visible$:se(!1),ref$:se(void 0),openedByBtnKeyboard$:se(!1)},settingsSubMenu:{visible$:se(!1),ref$:se(void 0),name$:se(void 0)},aboutToGoNextVideo:se(void 0),userActionsDisabled:se(!1),hiddenControls:{volume:se(!1),vkLogo:se(!1),pip:se(!1),chromecast:se(!1),settings:se(!1)},isControlsAvailable:mo,controlBlocks:{topLeft:se(void 0),topRight:se(void 0),middle:se(void 0),bottom:se(void 0),bottomLeft:se(void 0),bottomRight:se(void 0)},videoTitleInfo:se(void 0)},ads:{position:se(0),duration:se(0),playbackState:se("inactive"),canSkip:se(!1),secondsToWatchBeforeSkip:se(0),postrollPassed:se(!1)},webApi:{pictureInPictureApi:ce,annotationsApi:ne,slotsApi:ye},actions:{internal:{preload:Cr,firstStart:c=>Xd(c,!1),play:()=>hl(!1),pause:()=>gl(!1),togglePlay:rt,toggleMuted:Dn,openSettingsMenu:nr,closeSettingsMenu:So,openSettingsSubMenu:Do,closeSettingsSubMenu:ii,setVolume:sr,startVolumeChanging:He,stopVolumeChanging:wt,setVideoStream:_r,setAudioStream:ro,setQuality:mt,setTrafficSavingEnabled:ri,setHighQualityEnabled:ji,setPlaybackRate:Zi,incrementPlaybackRate:po,decrementPlaybackRate:yn,setSubtitle:en,toggleSubtitle:fo,togglePictureInPicture:je,startScrubbing:To,progressScrubbing:dr,completeScrubbing:nn,toggleChromecast:Ru,switchToActiveLive:Pi,switchFromAdsToVideo:ka,switchFromVideoToAds:Au,skipAd:Bs,setLiveWaitingStart:Gd,setLiveWaitingRecover:Mu,setLiveWaitingRecord:Yd,getDebugTextData:Lu,getTraceTextData:jd,getDebugPanelData:Vu,getVideoElement:Os,seekTime:(c,x,V)=>lo(c,x,V),clearDelayedBufferingCheckTimeout:Ui,seekEpisodeStartTime:Sr,seekToPercent:tn,getNextEpisode:Jd,seekToNextEpisode:ec,getPrevEpisode:tc,seekToPrevEpisode:Nu,startLogging:li,stopLogging:Qi,startCameraManualRotation:di,stopCameraManualRotation:Gt,moveCameraFocusPX:Ti,holdCamera:Lo,releaseCamera:Rt,getVideoEpisodes:Pa,getPreviewThumbsData:Bu,downloadVideo:On,addLanguage:Qp,setLanguage:Wt,nextMovie:et,videoRotate:si,correctSeekTimeToInteractive:Uo,replayInteractive:A,setLooped:ni,reportProblem:hn,setAutoplayNextEnabled:Jo,setTimerNextVideoRunning:_n,prevVideoClick:bn,nextVideoClick:$n,nextVideoAnnouncementShow:uo,nextVideoAnnouncementClick:Fn,nextVideoAnnouncementAuto:wr,nextVideoAnnouncementCancel:Fr},external:{firstStart:c=>Xd(c,!0),play:()=>hl(!0),pause:()=>gl(!0),stop:()=>Zd(!0),seekTime:c=>Ur(c),seekEpisodeStartTime:c=>is(c),setPlaybackRate:c=>Fo(c),setAutoQualityLimits:c=>zr(c),setMuted:Hn,toggleSubtitle:fo,setVolume:sr,returnFocusToEpisodes:i0,updateAdditionalSettingsItem:vl,addAdditionalSettingsItem:Ns,removeAdditionalSettingsItem:Ia,updateAdditionalContextItem:Ji,addAdditionalContextItem:sn,removeAdditionalContextItem:eo,updateAdditionalButton:Er,addAdditionalButton:vo,removeAdditionalButton:Ta,setLiveLowLatency:Ea,hideControls:()=>ar(!1),showControls:()=>ar(!0)}},callbacks:a,setUiCallbacks:c=>{ke={...c}},getAdmanWrapper:()=>_e,getLogger:()=>Oe,getPlayer:()=>N,destroy:o0};return It};function Nr(t,e,i,o){var f;let n=(f=e[i])==null?void 0:f.getBoundingClientRect(),r=o&&!!n&&!!(n.right-n.left),{top:l,left:d,bottom:a,right:p}=ps(e[i],t||void 0);return{left:r?d:0,right:r?p:0,top:r?l:0,bottom:r?a:0,isDisplayed:r}}var ny=["disabledControls$","additionalButtons"],ry=["interactiveTimeIndicator"],dl=(t,e,i,o)=>{if(t){for(let[n,r]of Object.entries(e))if(!ny.includes(n)){let l=o||ry.includes(n);r.set(Nr(t,i,n,l))}}};var uu=async(t,e,i)=>{await ho(),e&&i&&(i.focus(),t.set(!1))};var sy=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"></path></svg>');function Kf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=sy();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}function Qf(t,e){D(e,!0);let[i,o]=Fe(),n=()=>C(a,"$contextMenuVisible$",i),r=m(e,"disabled",3,!1),l=m(e,"ariaLabel",3,""),d=Ee(),a=d.ui.contextMenu.visible$,p=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,v=d.ui.contextMenu.position$,u=d.ui.contextMenu.btnRef$,$=Y(void 0);qe(()=>{s($)&&Ct(()=>{u.set(s($))})});let w=I=>{let A=Ps(I),k=Gh(s($));v.set(k),p.set(A),a.set(!n())},y=()=>{f.set(!0)},S=()=>{f.set(!1)},T=h(()=>n()?"opened":"");Vt(t,{get className(){return s(T)},testId:"btn-context-menu",get disabled(){return r()},get ariaLabel(){return l()},click:w,focus:y,blur:S,get ariaExpanded(){return n()},get ref(){return s($)},set ref(I){B($,I,!0)},children:(I,A)=>{Kf(I,{})},$$slots:{default:!0}}),H(),o()}var ay=t=>{t.stopPropagation()},ly=M("<div><!> <div></div> <div></div></div>"),dy={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;}
227
227
 
228
228
  @media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
229
229
  }
@@ -248,8 +248,8 @@ Try switching the\xA0quality to\xA0Auto.`},wh=v_;var ms=new Map;ms.set(Ch.EN,wh)
248
248
  opacity: 0;
249
249
  }
250
250
  }.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);
251
- 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 yd(t,e){var fe;F(e,!0),q(t,ty);let[i,o]=Be(),n=()=>S(C,"$isMobile",i),s=()=>S(k,"$areControlsVisible",i),l=()=>S(N,"$currentGridType$",i),d=()=>S(E,"$isInteractiveTime$",i),a=()=>S(y,"$interactiveControlsOpacity$",i),u=()=>S(M,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>S(T,"$isFullscreen",i),v=m(e,"ref",15,void 0),p=j(void 0),b=ke(),x=co(),{interactiveControlsOpacity$:y}=x,C=b.ui.isMobile,T=b.ui.isFullscreen,E=b.state.isInteractiveTime$,M=x.showInteractiveTimeIndicatorTooltip$,k=b.ui.controlsVisible,I=(fe=b.callbacks)==null?void 0:fe.onInteractiveTimeIndicatorClick,N=b.ui.currentGridType$,Y=g(()=>!n()&&s()),D=g(()=>Bs(l(),"s")),H=g(()=>!d()||!!a()||r(Y)),W=j(!1);We(()=>{B(W,r(H),!0)});let ee=()=>{B(W,!0)},K=()=>{var $e;de(),($e=r(p))==null||$e.addEventListener("animationiteration",ee,{once:!0})},de=()=>{var $e;B(W,!1),($e=r(p))==null||$e.removeEventListener("animationiteration",ee)},oe=$e=>{M.set($e)},we=g(()=>u()&&!r(H));We(()=>{u()?K():de()});let Ie=()=>{r(H)||(M.set(!0),I==null||I())};Xo(()=>{M.clearTimeout(),de()});let pe=()=>{M.set(!1)},le=z("tooltip_interactive_interaction_time_indicator");var Ae=ey();let te;Ae.__mousemove=[J2],Ae.__click=Ie;var R=_(Ae);Do(R,{get tooltipContent(){return le},get tooltipActive(){return r(we)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:oe,get ref(){return v()},set ref($e){v($e)},children:($e,Z)=>{pd($e,{completed:!0})},$$slots:{default:!0}});var Ge=P(R,2);let ie;et(Ge,$e=>v($e),()=>v());var Ke=P(Ge,2);let ce;et(Ke,$e=>B(p,$e),()=>r(p)),h(Ae),O(($e,Z,qe)=>{te=J(Ae,1,"interactive-episode-icon-animated svelte-od3veb",null,te,$e),ie=J(Ge,1,"ref-block svelte-od3veb",null,ie,Z),ce=J(Ke,1,"pulse svelte-od3veb",null,ce,qe)},[()=>({mobile:n(),fullscreen:f(),invisible:r(H),"icon-small":r(D)}),()=>({hidden:r(H)}),()=>({paused:r(W)})]),xt("mouseleave",Ae,pe),$(t,Ae),U(),o()}at(["mousemove","click"]);function pu(t,e){F(e,!0);let i=m(e,"tooltipEnabled",3,!0),o=m(e,"disabled",3,!1),n=m(e,"className",3,void 0),s=m(e,"ref",15);Do(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return n()},get ref(){return s()},set ref(l){s(l)},children:(l,d)=>{var a=Fe();let u=g(()=>e.buttonComponent);var f=ve(a);wi(f,()=>r(u),(v,p)=>{p(v,fs(()=>{var b;return(b=e.buttonComponentProps)!=null?b:{}}))}),$(l,a)},$$slots:{default:!0}}),U()}var _s={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var oy=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"></path></svg>');function Kf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=oy();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(),h(o),$(t,o)}function Os(t,e){let i=m(e,"isPrev",3,!1),o=m(e,"isMobile",3,!1),n=m(e,"width",3,"24"),s=m(e,"height",3,"24"),l=g(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=g(()=>i()?"prev-icon":"next-icon");Kf(t,{get style(){return r(l)},get width(){return n()},get height(){return s()},get viewBox(){return e.viewBox},get"data-testid"(){return r(d)}})}var ny=A('<div class="icon-background-mobile svelte-xtk2k4"></div>'),ry=A("<!> <!>",1),sy={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 ba(t,e){F(e,!0),q(t,sy);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),l=ke().ui.t,d=g(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),a=g(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=g(()=>`btn-${o()?"m":"d"}--${e.type}`);Rt(t,{get className(){return r(u)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return n()},get ariaLabel(){return r(d)},get click(){return e.click},get ariaKeyShortCut(){return r(a)},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{var p=ry(),b=ve(p);{var x=T=>{var E=ny();$(T,E)};L(b,T=>{o()&&T(x)})}var y=P(b,2);let C=g(()=>e.type==="prev");Os(y,{get isMobile(){return o()},get isPrev(){return r(C)}}),$(f,p)},$$slots:{default:!0}}),U()}var ay=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M12 10.096a.4.4 0 0 1-.67.296L7.044 6.493a.67.67 0 0 1 0-.986l4.288-3.899a.4.4 0 0 1 .669.296V5a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"></path></svg>');function xd(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=ay();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(),h(o),$(t,o)}import{noop as ly}from"@vkontakte/videoplayer-shared/es2018";var dy=A('<div class="icon-background-mobile svelte-1ot3duq"></div>'),cy=A("<!> <div><!></div>",1),uy={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 cl(t,e){F(e,!0),q(t,uy);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),s=m(e,"className",3,""),l=m(e,"click",3,ly),d=z("tooltip_restart"),a=g(()=>`${o()?"btn-m--play":""} ${s()}`);Rt(t,{get className(){return r(a)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return n()},get click(){return l()},get ariaKeyShortCut(){return Xr.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,f)=>{var v=cy(),p=ve(v);{var b=T=>{var E=dy();$(T,E)};L(p,T=>{o()&&T(b)})}var x=P(p,2);let y;var C=_(x);xd(C,{}),h(x),O(T=>y=J(x,1,"svelte-1ot3duq",null,y,T),[()=>({mobile:o()})]),$(u,v)},$$slots:{default:!0}}),U()}var py=Te('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="play-icon"><path d="M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"></path></svg>');function Nr(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),s=m(e,"fill",3,"var(--btn-color)");var l=py(),d=_(l);h(l),O(()=>{Oe(l,"width",i()),Oe(l,"height",o()),Oe(l,"viewBox",n()),Oe(d,"fill",s())}),$(t,l)}var fy=Te('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="pause-icon"><path d="M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"></path></svg>');function bs(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),s=m(e,"fill",3,"var(--btn-color)");var l=fy(),d=_(l);h(l),O(()=>{Oe(l,"width",i()),Oe(l,"height",o()),Oe(l,"viewBox",n()),Oe(d,"fill",s())}),$(t,l)}import{noop as my}from"@vkontakte/videoplayer-shared/es2018";var vy=A('<div class="icon-background-mobile svelte-1ot3duq"></div>'),gy=A("<!> <div><!></div>",1),hy={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function ul(t,e){F(e,!0),q(t,hy);let[i,o]=Be(),n=()=>S(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=co(),l=m(e,"ref",15,void 0),d=m(e,"isMobile",3,!1),a=m(e,"isPlaying",3,!1),u=m(e,"disabled",3,!1),f=m(e,"className",3,""),v=m(e,"click",3,my),b=ke().ui.t,{toggle:x}=s,y=g(()=>x),C=g(()=>n()!==null),T=g(()=>r(C)?n():a()),E=g(()=>r(T)?b("tooltip_pause"):b("tooltip_play")),M=g(()=>r(T)?bs:Nr),k=g(()=>`${d()?"btn-m--play":""} ${f()}`),I=g(()=>r(C)?r(y):v());Rt(t,{get className(){return r(k)},testId:"btn-play",get click(){return r(I)},get disabled(){return u()},get ariaLabel(){return r(E)},get ariaKeyShortCut(){return Xr.KeyK},get ref(){return l()},set ref(N){l(N)},children:(N,Y)=>{var D=gy();let H=g(()=>r(M));var W=ve(D);{var ee=we=>{var Ie=vy();$(we,Ie)};L(W,we=>{d()&&we(ee)})}var K=P(W,2);let de;var oe=_(K);wi(oe,()=>r(H),(we,Ie)=>{Ie(we,{})}),h(K),O(we=>de=J(K,1,"svelte-1ot3duq",null,de,we),[()=>({mobile:d()})]),$(N,D)},$$slots:{default:!0}}),U(),o()}var _y=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"></path></svg>');function qf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=_y();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(),h(o),$(t,o)}function wd(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),s=z("tooltip_interactive_go_back"),l=g(()=>o()?"hidden":"");Rt(t,{get className(){return r(l)},testId:"btn-play-prev-chapter",get ariaLabel(){return s},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{qf(d,{})},$$slots:{default:!0}}),U()}var by=A('<span class="gutter svelte-et3q1q"><span><!></span></span>'),$y={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 Sd(t,e){F(e,!0),q(t,$y);let[i,o]=Be(),n=()=>S(a,"$autoplayNextEnabled$",i),s=m(e,"ref",15,void 0),l=ke(),d=l.ui.t,a=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,f=()=>{u(!n(),!0)},v=d("aria_label_autoplay"),p=g(()=>n()?"true":"false");Rt(t,{click:f,get ariaLabel(){return v},role:"switch",get areaChecked(){return r(p)},get ref(){return s()},set ref(b){s(b)},children:(b,x)=>{var y=by(),C=_(y);let T;var E=_(C);{var M=I=>{Nr(I,{width:"14",height:"14",fill:"#000"})},k=I=>{bs(I,{width:"14",height:"14",fill:"#000"})};L(E,I=>{n()?I(M):I(k,!1)})}h(C),h(y),O(I=>T=J(C,1,"toggler svelte-et3q1q",null,T,I),[()=>({enabled:n()})]),$(b,y)},$$slots:{default:!0}}),U(),o()}var yy=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"></path></svg>');function Qf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=yy();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(2),h(o),$(t,o)}function Cd(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),s=z("tooltip_interactive_seek"),l=g(()=>o()?"hidden":"");Rt(t,{get className(){return r(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return s},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Qf(d,{})},$$slots:{default:!0}}),U()}var xy=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z" class="_closed" clip-rule="evenodd"></path></svg>');function Gf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=xy();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(2),h(o),$(t,o)}var wy={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Yf(t,e){q(t,wy);let i=m(e,"isOpened",3,!1),o=g(()=>i()?"graph-close-icon":"graph-open-icon");Gf(t,{get"data-testid"(){return r(o)}})}function Td(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),s=m(e,"graphIsOpened",3,!1),d=ke().ui.t,a=g(()=>s()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=g(()=>o()?"hidden":"");Rt(t,{get className(){return r(u)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return r(a)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{let p=g(()=>!!s());Yf(f,{get isOpened(){return r(p)}})},$$slots:{default:!0}}),U()}import{PlaybackState as d1}from"@vkontakte/videoplayer-core/es2018";function Ed(t,e){F(e,!0);let[i,o]=Be(),n=()=>S(u,"$playbackState$",i),s=m(e,"isMobile",3,!1),l=m(e,"isLiveActive",3,!1),d=m(e,"ariaLabel",3,""),a=ke(),u=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,v=a.actions.internal.togglePlay,p=g(()=>()=>{if(!l()){f();return}n()===d1.PAUSED&&v()}),b=g(()=>s()?"":"btn--live btn-full-opacity"),x=g(()=>l()?"btn-live":"btn-live-offset"),y=g(()=>l()&&n()===d1.PLAYING);Rt(t,{get className(){return r(b)},get testId(){return r(x)},get disabled(){return r(y)},get ariaLabel(){return d()},get click(){return r(p)},children:(C,T)=>{Zl(C,{get isActive(){return l()}})},$$slots:{default:!0}}),U(),o()}import{noop as c1}from"@vkontakte/videoplayer-shared/es2018";var Sy=A('<div class="icon icon-error-stub"><div class="inner"></div></div>'),Cy=A('<img class="icon" aria-hidden="true"/>');function $a(t,e){"use strict";let i=j(!1),o=()=>{B(i,!0)};var n=Fe(),s=ve(n);{var l=a=>{var u=Sy();$(a,u)},d=a=>{var u=Cy();O(()=>Oe(u,"src",e.icon)),xt("error",u,o),ea(u),$(a,u)};L(s,a=>{r(i)?a(l):a(d,!1)})}$(t,n)}function jf(t,e){F(e,!0);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,c1),n=m(e,"ref",15),s=g(()=>o()===c1),l=g(()=>r(s)||i()),d=g(()=>r(s)?"btn-full-opacity":"");Do(t,{get disabled(){return r(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get ref(){return n()},set ref(a){n(a)},children:(a,u)=>{let f=g(()=>{var v;return(v=e.testId)!=null?v:e.id});Rt(a,{get className(){return r(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(l)},get testId(){return r(f)},children:(v,p)=>{$a(v,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),U()}var u1=t=>!!t.buttonComponent;var $s={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var fu=(t,e,i,o)=>{if(t)for(let[n,s]of Object.entries(e))s.set(Sn(t,i,n,o))};var Iy=A('<div><!> <div class="controls svelte-f6e8ix" data-testid="player_controls"><div class="controls-left svelte-f6e8ix"><!> <!> <!></div> <div class="controls-right svelte-f6e8ix"></div></div></div> <!>',1),ky={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 Xf(t,e){var Fn,Ia;F(e,!0),q(t,ky);let[i,o]=Be(),n=()=>S(G,"$disabledControls$",i),s=()=>S(Wi,"$adPlaybackState",i),l=()=>S(St,"$playbackState$",i),d=()=>S(mi,"$currentSubtitle$",i),a=()=>S(Mi,"$isEnded$",i),u=()=>S(Ci,"$currentGridType$",i),f=()=>S(di,"$isLive$",i),v=()=>S(It,"$chromecastState$",i),p=()=>S(fi,"$isPictureInPictureActive",i),b=()=>S(Ui,"$pictureInPictureType$",i),x=()=>S(lt,"$availableSubtitlesList$",i),y=()=>S(Li,"$contextMenuOpenedByKeyboard$",i),C=()=>S(li,"$showContextMenuBtn$",i),T=()=>S(Xn,"$playerSize",i),E=()=>S(Bt,"$isRewindableLive$",i),M=()=>S(ot,"$isActiveLive$",i),k=()=>S(fo,"$graphIsOpened$",i),I=()=>S(zt,"$contextMenuVisible$",i),N=()=>S(ti,"$isFullscreen",i),Y=()=>S(hi,"$autoplayNextEnabled",i),D=()=>S(r($r),"$prevButton",i),H=()=>S(r(Eo),"$replayButton",i),W=()=>S(r(yr),"$playButton",i),ee=()=>S(r(Ii),"$nextButton",i),K=()=>S(r(Fr),"$playPrevChapterButton",i),de=()=>S(r(os),"$seekToInteractiveButton",i),oe=()=>S(r(xr),"$interactiveGraphButton",i),we=()=>S(r(sr),"$liveButton",i),Ie=()=>S(r(ft),"$time",i),pe=()=>S(r(Yt),"$episodes",i),le=()=>S(r(oo),"$vkLogo",i),Ae=()=>S(r(_i),"$volume",i),te=()=>S(r(Io),"$subtitles",i),R=()=>S(r(no),"$settings",i),Ge=()=>S(r(Ko),"$context",i),ie=()=>S(r(ji),"$fullscreen",i),Ke=()=>S(r(qo),"$chromecast",i),ce=()=>S(xo,"$additionalDesktopControlPanelRightButtons$",i),fe=()=>S(Ti,"$isInteractiveTime$",i),$e=()=>S(uo,"$settingsMenuVisible",i),Z=()=>S(so,"$settingButtonRef$",i),qe=()=>S(ri,"$startedByKeyboard$",i),Ze=()=>S(yt,"$isAudioAvailable$",i),Pe=()=>S(wt,"$fakeIsPlaying$",i),re=()=>S(tn,"$seekToInteractiveDisabledTooltip$",i),Ee=()=>S(Tt,"$adPosition",i),Qe=()=>S(Pt,"$position$",i),rt=()=>S(tt,"$adDuration",i),nt=()=>S(Ue,"$duration$",i),Mt=m(e,"playerControlsWrapperRef",15,void 0),Je=m(e,"playerControlsRef",15,void 0),dt=m(e,"isAds",3,!1),qt=m(e,"logoTargetUrl",3,""),oi=m(e,"isOneVideoPlaylist",3,!1),Kt=m(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:wt}=co(),ne=ke(),Lt=co(),ge=Ft(),X=ne.actions.internal.toggleMuted,xe=ne.actions.internal.togglePlay,He=ne.actions.internal.pause,me=ne.actions.internal.toggleSubtitle,Re=(Fn=ne.callbacks)==null?void 0:Fn.onAudioDoesNotExistHint,Xe=(Ia=ne.callbacks)==null?void 0:Ia.onAudioDisabledHint,Ue=ne.state.duration$,Pt=ne.state.positionWithScrubbing$,St=ne.state.playbackState$,yt=ne.state.isAudioAvailable$,pt=ne.state.isAudioDisabled,Mi=ne.state.isEnded$,di=ne.state.isLive$,ot=ne.state.isActiveLive$,Bt=ne.state.isRewindableLive$,{isActive$:fi,type$:Ui}=Lt.pictureInPicture$,uo=ne.ui.settingsMenu.visible$,zi=ne.ui.settingsMenu.openedByBtnKeyboard$,Qt=ne.ui.controls,po=ne.actions.internal.getVideoEpisodes(),It=ne.state.chromecastState$,lt=ne.state.availableSubtitlesList$,mi=ne.state.currentSubtitle$,G=Qt.disabledControls$,zt=ne.ui.contextMenu.visible$,li=ne.ui.contextMenu.showContextMenuBtn$,Li=ne.ui.contextMenu.openedByBtnKeyboard$,ri=ne.ui.startedByKeyboard$,ci=ne.ui.controlBlocks,ct=ne.ui.t,tt=ne.ads.duration,Tt=ne.ads.position,Wi=ne.ads.playbackState,ti=ne.ui.isFullscreen,Xn=ne.ui.playerSize,Ci=ne.ui.currentGridType$,xo=ne.ui.additionalDesktopControlPanelRightButtons$,hi=ne.ui.autoplayNextEnabled$,ht=ne.actions.internal.getVideoElement,Vi=ne.actions.internal.replayInteractive,Ho=ne.actions.internal.prevVideoClick,Tn=ne.actions.internal.nextVideoClick,si=ne.state.isInteractive,Ti=ne.state.isInteractiveTime$,Fo=ne.state.showInteractiveGraph,En=ne.state.showSeekToInteractive,Uo=ne.state.showPlayPrevChapter,wo=ne.state.showInteractiveTimeIndicator,vn=ne.state.playPrevChapterDisabledTooltip,tn=Lt.seekToInteractiveDisabledTooltip$,fo=Lt.graphIsOpened$,mo=ge.features.interactiveResponsiveUi,Or=g(()=>n().has("EPISODE_BUTTON")),gr=g(()=>n().has("GRAPH_BUTTON")),Jn=g(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),er=g(()=>n().has("PLAY_BUTTON")),tr=g(()=>n().has("REPLAY_BUTTON")),In=g(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),is=()=>ne.actions.internal.toggleChromecast(),kn=g(()=>dt()?s()==="playing":l()===Zf.PLAYING),Ei=g(()=>d().value!=="off"),Pn=g(()=>a()&&!dt()||si),on=g(()=>mo?r(Pn)&&Gi(u(),"m"):r(Pn)),nn=g(()=>!a()||si||dt()),An=g(()=>Gi(u(),"m")),Mn=g(()=>e.showNextPrevButtons&&Gi(u(),"m")&&!dt()&&e.nextButtonActive),zo=g(()=>e.showNextPrevButtons&&Gi(u(),"m")&&!dt()&&e.prevButtonActive),Dr=g(()=>!dt()&&!!f()),Ln=g(()=>v()!==p1.NOT_AVAILABLE&&!(p()&&b()===1)&&Gi(u(),"m")&&!si),ir=g(()=>e.showAutoplayNext&&!oi()&&Gi(u(),"s")),Ki=g(()=>x().length>0&&Gi(u(),"m")),So=g(()=>y()||C()),st=g(()=>Gi(u(),"s")&&!dt()),Xt=g(()=>!e.logoHidden&&!dt()),hr=g(()=>ge.features.fullscreen&&(e.logoHidden||Gi(u(),mo?"xs":"s"))&&!(p()&&b()===1)&&(si?Kt():!0)),Vn=g(()=>(!f()||dt())&&!(ge.features.interactiveHideTime&&si)),gn=g(()=>T().width>100),Ri=g(()=>Fo&&Gi(u(),"m")),Rn=g(()=>mo?En&&Gi(u(),"s"):En),Co=g(()=>mo?Uo&&Gi(u(),"s"):Uo),Nn=g(()=>!dt()&&!f()&&!!(po!=null&&po.length)&&r(An)&&!r(Or)),To=g(()=>!E()||!!M()),Bn=g(()=>k()?ct("tooltip_interactive_graph_on"):ct("tooltip_interactive_graph_off")),On=g(()=>I()?ct("tooltip_context_menu_close"):ct("tooltip_context_menu_open")),or=(_t,$t)=>_t?$t&&$t===Zf.PAUSED?ct("tooltip_play"):"":ct("tooltip_live"),_r=g(()=>or(r(To),l())),nr=g(()=>ge.logoType==="vk_video"?ct("tooltip_vk_video_logo"):ct("tooltip_vk_logo")),Wo=g(()=>r(Ei)?ct("tooltip_subtitles_on"):ct("tooltip_subtitles_off")),Hr=g(()=>N()?ct("tooltip_fullscreen_on"):ct("tooltip_fullscreen_off")),rr=g(()=>v()===p1.CONNECTED?ct("tooltip_chromecast_on"):ct("tooltip_chromecast_off")),br=g(()=>Y()?ct("tooltip_autoplay_on"):ct("tooltip_autoplay_off")),rn=j(0),Gt=ii({}),vo=ii({}),$r=g(()=>Qt.prevButton),Eo=g(()=>Qt.replayButton),yr=g(()=>Qt.playButton),Ii=g(()=>Qt.nextButton),Fr=g(()=>Qt.playPrevChapterButton),os=g(()=>Qt.seekToInteractiveButton),xr=g(()=>Qt.interactiveGraphButton),sr=g(()=>Qt.liveButton),ft=g(()=>Qt.time),Yt=g(()=>Qt.episodes),oo=g(()=>Qt.vkLogo),_i=g(()=>Qt.volume),Io=g(()=>Qt.subtitles),no=g(()=>Qt.settings),Ko=g(()=>Qt.context),ji=g(()=>Qt.fullscreen),qo=g(()=>Qt.chromecast),je=g(()=>({prevButton:D()?D().right-D().left:0,replayButton:H()?H().right-H().left:0,playButton:W()?W().right-W().left:0,nextButton:ee()?ee().right-ee().left:0,playPrevChapterButton:K()?K().right-K().left:0,seekToInteractiveButton:de()?de().right-de().left:0,interactiveGraphButton:oe()?oe().right-oe().left:0,liveButton:we()?we().right-we().left:0,time:Ie()?Ie().right-Ie().left:0,episodes:pe()?pe().right-pe().left:0,vkLogo:le()?le().right-le().left:0,volume:Ae()?Ae().right-Ae().left:0,subtitles:te()?te().right-te().left:0,settings:R()?R().right-R().left:0,context:Ge()?Ge().right-Ge().left:0,fullscreen:ie()?ie().right-ie().left:0,chromecast:Ke()?Ke().right-Ke().left:0,additionalButtons:ce().length?ce().reduce(_t=>[..._t,40],[]):[]})),At=j(0);We(()=>{(!r(At)||r(At)<r(je).time)&&Ct(()=>B(At,r(je).time,!0))});let bi=j(!1);We(()=>{let _t=0;r(Nn)&&(Gi(u(),"xl")?_t=r(je).time:_t=60);let $t=r(je).prevButton+r(je).playButton+r(je).nextButton+r(je).seekToInteractiveButton+r(je).interactiveGraphButton+r(je).liveButton+r(At)+_t;B(bi,r(Vn)&&r(rn)>=$t,!0)});let ro=g(()=>r(bi)&&Gi(u(),"m")),go=f1(dl,260),ko=f1(fu,260);We(()=>{T(),fe(),go(ht(),Qt,Gt,e.showControls),ko(ht(),ci,vo,e.showControls)}),We(()=>{vo.bottom=Mt()});let so=ae();We(()=>{$e(),Z()&&Ct(()=>ol(Z(),$e(),zi))});let Po;We(()=>{qe(),Ct(()=>uu(ri,qe(),Po))});function Qo(){Rs({isAudioDisabled:pt,isAudioAvailable:Ze(),isAds:dt(),audioIsNotExistHintCallback:Re,audioDisabledHintCallback:Xe})&&X()}let Ni=si?Vi:xe,$i=g(()=>Pe()!==null),Ao=g(()=>r($i)?Pe():r(kn)),hn=g(()=>r(Ao)?ct("tooltip_pause"):ct("tooltip_play")),Zi=ct("tooltip_episodes"),Ur=g(()=>{var _t,$t,Xi,ln;return r(zo)?{id:"prevButton",type:"desktop-control-panel-left",weight:_s.prevButton,buttonComponent:ba,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Ho.bind(null,!0)},tooltipEnabled:!(($t=(_t=ne.callbacks)==null?void 0:_t.uiInfo)!=null&&$t.onPrevButtonMouseEnter)&&!((ln=(Xi=ne.callbacks)==null?void 0:Xi.uiInfo)!=null&&ln.onPrevButtonMouseLeave),mouseEnter:()=>{var Ji,ai,ki;(ki=(ai=(Ji=ne.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:ai.onPrevButtonMouseEnter)==null||ki.call(ai,Sn(ht(),Gt,"prevButton",e.showControls))},mouseLeave:()=>{var Ji,ai,ki;(ki=(ai=(Ji=ne.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:ai.onPrevButtonMouseLeave)==null||ki.call(ai,Sn(ht(),Gt,"prevButton",e.showControls))},tooltipText:ct("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),wr=g(()=>r(on)?{id:"replayButton",type:"desktop-control-panel-left",weight:_s.replayButton,buttonComponent:cl,buttonComponentProps:{disabled:r(tr),click:Ni},tooltipText:ct("tooltip_restart"),disabled:r(tr)}:void 0),ns=g(()=>r(nn)?{id:"playButton",type:"desktop-control-panel-left",weight:_s.playButton,buttonComponent:ul,buttonComponentProps:{disabled:r(er),isPlaying:r(kn),click:xe},tooltipText:r(hn),disabled:r(er)}:void 0),sn=g(()=>{var _t,$t,Xi,ln;return r(Mn)?{id:"nextButton",type:"desktop-control-panel-left",weight:_s.nextButton,buttonComponent:ba,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:Tn.bind(null,!0)},tooltipEnabled:!(($t=(_t=ne.callbacks)==null?void 0:_t.uiInfo)!=null&&$t.onNextButtonMouseEnter)&&!((ln=(Xi=ne.callbacks)==null?void 0:Xi.uiInfo)!=null&&ln.onNextButtonMouseLeave),mouseEnter:()=>{var Ji,ai,ki;(ki=(ai=(Ji=ne.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:ai.onNextButtonMouseEnter)==null||ki.call(ai,Sn(ht(),Gt,"nextButton",e.showControls))},mouseLeave:()=>{var Ji,ai,ki;(ki=(ai=(Ji=ne.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:ai.onNextButtonMouseLeave)==null||ki.call(ai,Sn(ht(),Gt,"nextButton",e.showControls))},tooltipText:ct("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),ar=g(()=>si&&r(Co)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:_s.playPrevChapterButton,buttonComponent:wd,buttonComponentProps:{disabled:r(In),click:e.playPrevChapter},tooltipText:ct("tooltip_interactive_go_back"),disabledTooltipContent:ct(vn),disabled:r(In)}:void 0),zr=g(()=>si&&r(Rn)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:_s.seekToInteractiveButton,buttonComponent:Cd,buttonComponentProps:{disabled:r(Jn),click:e.seekToInteractive},tooltipText:ct("tooltip_interactive_seek"),disabled:r(Jn),disabledTooltipContent:ct(re())}:void 0),Sr=g(()=>si&&r(Ri)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:_s.interactiveGraphButton,buttonComponent:Td,buttonComponentProps:{disabled:r(gr),click:fo.toggle,graphIsOpened:k()},tooltipText:r(Bn)}:void 0),yi=g(()=>r(Dr)?{id:"liveButton",type:"desktop-control-panel-left",weight:_s.liveButton,buttonComponent:Ed,buttonComponentProps:{isLiveActive:r(To),ariaLabel:r(_r)},tooltipText:r(_r),disabled:r(To)&&l()===Zf.PLAYING}:void 0),Dn=g(()=>[r(Ur),r(wr),r(ns),r(sn),r(ar),r(zr),r(Sr),r(yi)].filter(_t=>!!_t).sort(ua)),Hn=g(()=>r(Xt)?{id:"vkLogo",type:"desktop-control-panel-right",weight:$s.vkLogo,buttonComponent:md,buttonComponentProps:{targetUrl:qt(),logoClickable:e.logoClickable,click:He},tooltipText:r(nr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Cr=g(()=>r(ir)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:$s.autoplayNext,buttonComponent:Sd,tooltipText:r(br)}:void 0),Tr=g(()=>({id:"volume",type:"desktop-control-panel-right",weight:$s.volume,buttonComponent:Cf,buttonComponentProps:{click:Qo,isAds:dt()}})),rs=g(()=>r(Ki)?{id:"subtitles",type:"desktop-control-panel-right",weight:$s.subtitles,buttonComponent:$f,buttonComponentProps:{isSubtitlesEnabled:r(Ei),click:me},tooltipText:r(Wo)}:void 0),lr=g(()=>r(st)?{id:"settings",type:"desktop-control-panel-right",weight:$s.settings,buttonComponent:al,buttonComponentProps:{ref$:so},tooltipText:$e()?void 0:ct("tooltip_settings_off")}:void 0),Se=g(()=>ge.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:$s.context,buttonComponent:Wf,buttonComponentProps:{ariaLabel:ct("aria_label_context_menu")},className:r(So)?"":"out-of-view",tooltipText:r(On)}:void 0),_e=g(()=>r(hr)?{id:"fullscreen",type:"desktop-control-panel-right",weight:$s.fullscreen,buttonComponent:fd,buttonComponentProps:{isFullscreen:N(),click:e.toggleFullscreen},tooltipText:r(Hr)}:void 0),mt=g(()=>r(Ln)?{id:"chromecast",type:"desktop-control-panel-right",weight:$s.chromecast,buttonComponent:vd,buttonComponentProps:{state:v(),click:is},tooltipText:r(rr)}:void 0),Ot=g(()=>[r(Hn),r(Cr),r(Tr),r(rs),r(lr),r(Se),r(_e),r(mt),...ce()].filter(_t=>!!_t).sort(ua));var ui=Iy(),Ne=ve(ui);let bt;var Wt=_(Ne);let ao=g(()=>!r(gn));ha(Wt,{get isHidden(){return r(ao)},get isAds(){return dt()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return E()},get ref(){return Gt.timeline},set ref(_t){Gt.timeline=_t}});var Go=P(Wt,2),lo=_(Go),Er=_(lo);xi(Er,17,()=>r(Dn),_t=>_t.id,(_t,$t)=>{pu(_t,{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 Gt[r($t).id]},set ref(Xi){Gt[r($t).id]=Xi}})});var Wr=P(Er,2);{var qi=_t=>{let $t=g(()=>dt()?Ee():Qe()),Xi=g(()=>dt()?rt():nt());ud(_t,{isMobile:!1,get showDuration(){return r(ro)},get position(){return r($t)},get duration(){return r(Xi)},get ref(){return Gt.time},set ref(ln){Gt.time=ln}})};L(Wr,_t=>{r(Vn)&&_t(qi)})}var Bi=P(Wr,2);let an=g(()=>!r(Nn));Do(Bi,{className:"w-max",get disabled(){return r(an)},get tooltipContent(){return Zi},get ref(){return Gt.episodes},set ref(_t){Gt.episodes=_t},children:(_t,$t)=>{var Xi=Fe(),ln=ve(Xi);{var Ji=ai=>{hd(ai,{get position(){return Qe()},get duration(){return nt()},get timeCodes(){return po}})};L(ln,ai=>{r(Nn)&&ai(Ji)})}$(_t,Xi)},$$slots:{default:!0}}),h(lo);var dr=P(lo,2);xi(dr,21,()=>r(Ot),_t=>_t.id,(_t,$t)=>{var Xi=Fe(),ln=ve(Xi);{var Ji=ki=>{pu(ki,{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 Gt[r($t).id]},set ref(Hs){Gt[r($t).id]=Hs}})},ai=ki=>{let Hs=g(()=>!!r($t).disabled);jf(ki,{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(Hs)},get onClick(){return r($t).onClick},get ref(){return Gt[r($t).id]},set ref(ka){Gt[r($t).id]=ka}})};L(ln,ki=>{u1(r($t))?ki(Ji):ki(ai,!1)})}$(_t,Xi)}),h(dr),h(Go),et(Go,_t=>Je(_t),()=>Je()),h(Ne),et(Ne,_t=>Mt(_t),()=>Mt());var cr=P(Ne,2);{var Mo=_t=>{yd(_t,{get ref(){return Gt.interactiveTimeIndicator},set ref($t){Gt.interactiveTimeIndicator=$t}})};L(cr,_t=>{wo&&_t(Mo)})}O(_t=>bt=J(Ne,1,"wrapper-bottom svelte-f6e8ix",null,bt,_t),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Zr(lo,"clientWidth",_t=>B(rn,_t)),$(t,ui),U(),o()}import{ChromecastState as v1,PlaybackState as g1}from"@vkontakte/videoplayer-core/es2018";import{noop as m1}from"@vkontakte/videoplayer-shared/es2018";var Py=A('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),Ay=A('<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 Jf(t,e){q(t,My);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,m1),n=g(()=>o()===m1),s=g(()=>r(n)||i()),l=j(!1),d=()=>{B(l,!0)},a=g(()=>r(n)?"btn-full-opacity":"");Rt(t,{get className(){return r(a)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(s)},get testId(){return e.testId},children:(u,f)=>{var v=Fe(),p=ve(v);{var b=y=>{var C=Py();$(y,C)},x=y=>{var C=Ay();O(()=>Oe(C,"src",e.iconUrl)),xt("error",C,d),ea(C),$(y,C)};L(p,y=>{r(l)?y(b):y(x,!1)})}$(u,v)},$$slots:{default:!0}})}var Ly=Te('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" d="M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"></path></g></svg>');function em(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Ly();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(),h(o),$(t,o)}import{noop as Vy}from"@vkontakte/videoplayer-shared/es2018";var Ry=A('<span class="text svelte-6gmlbk"> </span>'),Ny=A('<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 mu(t,e){F(e,!0),q(t,By);let i=m(e,"muted",3,!1),o=m(e,"expanded",3,!1),n=m(e,"click",3,Vy),s=m(e,"ref",15,void 0),d=ke().ui.t,a=g(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),u=g(()=>o()?Ns:em),f=g(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");Rt(t,{get testId(){return r(f)},get click(){return n()},get ariaLabel(){return r(a)},role:"button",get ref(){return s()},set ref(v){s(v)},children:(v,p)=>{var b=Ny();let x=g(()=>r(u)),y;var C=_(b);wi(C,()=>r(x),(M,k)=>{k(M,{})});var T=P(C,2);{var E=M=>{var k=Ry(),I=_(k,!0);h(k),O(N=>he(I,N),[()=>d("mobile_unmute")]),$(M,k)};L(T,M=>{o()&&M(E)})}h(b),O(M=>y=J(b,1,"container svelte-6gmlbk",null,y,M),[()=>({expanded:o()})]),$(v,b)},$$slots:{default:!0}}),U()}var Oy=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z" class="hidden-not-active"></path><path fill="var(--btn-color, #fff)" d="m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z" class="hidden-active"></path></svg>');function tm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Oy();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(3),h(o),$(t,o)}var Dy={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
252
- svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function im(t,e){q(t,Dy);let i=m(e,"isActive",3,!1),o=g(()=>i()?"color: #2688EB;":"color: #fff;"),n=g(()=>i()?"pip-icon--active":"pip-icon");tm(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}import{noop as Hy}from"@vkontakte/videoplayer-shared/es2018";function om(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isPictureInPictureActive",3,!1),n=m(e,"click",3,Hy),s=z("menu_pip");Rt(t,{testId:"btn-pip",get ariaLabel(){return s},get click(){return n()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{im(l,{get isActive(){return o()}})},$$slots:{default:!0}}),U()}import{debounceFn as h1}from"@vkontakte/videoplayer-shared/es2018";var Fy=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},Uy=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},zy=A("<div><!></div>"),Wy=A("<div><!></div>"),Ky=A("<div><!></div>"),qy=A("<!> <!> <!>",1),Qy=A("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),Gy=A("<div><!></div>"),Yy=A('<div class="wrapper-middle svelte-9xcbwc"><!></div>'),jy=A("<!> <!> <div><!></div>",1),Zy=A('<div aria-hidden="true">\xB7</div> <!>',1),Xy=A('<!> <!> <div><div><div><div class="controls-group contain svelte-9xcbwc"><!> <!> <!> <!></div> <div class="controls-group svelte-9xcbwc"><!> <!></div></div> <!></div></div> <!>',1),Jy={hash:"svelte-9xcbwc",code:`.wrapper-bottom.svelte-9xcbwc {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-9xcbwc > :where(.svelte-9xcbwc) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-9xcbwc {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-9xcbwc {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-9xcbwc {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-9xcbwc {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-9xcbwc,
251
+ 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 xd(t,e){var ne;D(e,!0),z(t,dy);let[i,o]=Fe(),n=()=>C(S,"$isMobile",i),r=()=>C(k,"$areControlsVisible",i),l=()=>C(L,"$currentGridType$",i),d=()=>C(I,"$isInteractiveTime$",i),a=()=>C(y,"$interactiveControlsOpacity$",i),p=()=>C(A,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>C(T,"$isFullscreen",i),v=m(e,"ref",15,void 0),u=Y(void 0),$=Ee(),w=co(),{interactiveControlsOpacity$:y}=w,S=$.ui.isMobile,T=$.ui.isFullscreen,I=$.state.isInteractiveTime$,A=w.showInteractiveTimeIndicatorTooltip$,k=$.ui.controlsVisible,E=(ne=$.callbacks)==null?void 0:ne.onInteractiveTimeIndicatorClick,L=$.ui.currentGridType$,K=h(()=>!n()&&r()),U=h(()=>Ls(l(),"s")),W=h(()=>!d()||!!a()||s(K)),G=Y(!1);qe(()=>{B(G,s(W),!0)});let te=()=>{B(G,!0)},j=()=>{var ye;ae(),(ye=s(u))==null||ye.addEventListener("animationiteration",te,{once:!0})},ae=()=>{var ye;B(G,!1),(ye=s(u))==null||ye.removeEventListener("animationiteration",te)},de=ye=>{A.set(ye)},we=h(()=>p()&&!s(W));qe(()=>{p()?j():ae()});let Re=()=>{s(W)||(A.set(!0),E==null||E())};En(()=>{A.clearTimeout(),ae()});let me=()=>{A.set(!1)},le=F("tooltip_interactive_interaction_time_indicator");var Ve=ly();let ee;Ve.__mousemove=[ay],Ve.__click=Re;var N=_(Ve);bo(N,{get tooltipContent(){return le},get tooltipActive(){return s(we)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:de,get ref(){return v()},set ref(ye){v(ye)},children:(ye,Z)=>{fd(ye,{completed:!0})},$$slots:{default:!0}});var Oe=P(N,2);let _e;tt(Oe,ye=>v(ye),()=>v());var ve=P(Oe,2);let ce;tt(ve,ye=>B(u,ye),()=>s(u)),g(Ve),O((ye,Z,Ke)=>{ee=J(Ve,1,"interactive-episode-icon-animated svelte-od3veb",null,ee,ye),_e=J(Oe,1,"ref-block svelte-od3veb",null,_e,Z),ce=J(ve,1,"pulse svelte-od3veb",null,ce,Ke)},[()=>({mobile:n(),fullscreen:f(),invisible:s(W),"icon-small":s(U)}),()=>({hidden:s(W)}),()=>({paused:s(G)})]),Tt("mouseleave",Ve,me),b(t,Ve),H(),o()}dt(["mousemove","click"]);function pu(t,e){D(e,!0);let i=m(e,"tooltipEnabled",3,!0),o=m(e,"disabled",3,!1),n=m(e,"className",3,void 0),r=m(e,"ref",15);bo(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 r()},set ref(l){r(l)},children:(l,d)=>{var a=ze();let p=h(()=>e.buttonComponent);var f=pe(a);Ci(f,()=>s(p),(v,u)=>{u(v,ds(()=>{var $;return($=e.buttonComponentProps)!=null?$:{}}))}),b(l,a)},$$slots:{default:!0}}),H()}var ms={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var uy=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"></path></svg>');function Gf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=uy();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}function Vs(t,e){let i=m(e,"isPrev",3,!1),o=m(e,"isMobile",3,!1),n=m(e,"width",3,"24"),r=m(e,"height",3,"24"),l=h(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=h(()=>i()?"prev-icon":"next-icon");Gf(t,{get style(){return s(l)},get width(){return n()},get height(){return r()},get viewBox(){return e.viewBox},get"data-testid"(){return s(d)}})}var py=M('<div class="icon-background-mobile svelte-xtk2k4"></div>'),fy=M("<!> <!>",1),my={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 ga(t,e){D(e,!0),z(t,my);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),l=Ee().ui.t,d=h(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),a=h(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),p=h(()=>`btn-${o()?"m":"d"}--${e.type}`);Vt(t,{get className(){return s(p)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return n()},get ariaLabel(){return s(d)},get click(){return e.click},get ariaKeyShortCut(){return s(a)},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{var u=fy(),$=pe(u);{var w=T=>{var I=py();b(T,I)};R($,T=>{o()&&T(w)})}var y=P($,2);let S=h(()=>e.type==="prev");Vs(y,{get isMobile(){return o()},get isPrev(){return s(S)}}),b(f,u)},$$slots:{default:!0}}),H()}var vy=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M12 10.096a.4.4 0 0 1-.67.296L7.044 6.493a.67.67 0 0 1 0-.986l4.288-3.899a.4.4 0 0 1 .669.296V5a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"></path></svg>');function wd(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=vy();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}import{noop as gy}from"@vkontakte/videoplayer-shared/es2018";var hy=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),_y=M("<!> <div><!></div>",1),by={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 cl(t,e){D(e,!0),z(t,by);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),r=m(e,"className",3,""),l=m(e,"click",3,gy),d=F("tooltip_restart"),a=h(()=>`${o()?"btn-m--play":""} ${r()}`);Vt(t,{get className(){return s(a)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return n()},get click(){return l()},get ariaKeyShortCut(){return Xr.KeyK},get ref(){return i()},set ref(p){i(p)},children:(p,f)=>{var v=_y(),u=pe(v);{var $=T=>{var I=hy();b(T,I)};R(u,T=>{o()&&T($)})}var w=P(u,2);let y;var S=_(w);wd(S,{}),g(w),O(T=>y=J(w,1,"svelte-1ot3duq",null,y,T),[()=>({mobile:o()})]),b(p,v)},$$slots:{default:!0}}),H()}var $y=Se('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="play-icon"><path d="M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"></path></svg>');function Br(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),r=m(e,"fill",3,"var(--btn-color)");var l=$y(),d=_(l);g(l),O(()=>{Be(l,"width",i()),Be(l,"height",o()),Be(l,"viewBox",n()),Be(d,"fill",r())}),b(t,l)}var yy=Se('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="pause-icon"><path d="M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"></path></svg>');function vs(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),r=m(e,"fill",3,"var(--btn-color)");var l=yy(),d=_(l);g(l),O(()=>{Be(l,"width",i()),Be(l,"height",o()),Be(l,"viewBox",n()),Be(d,"fill",r())}),b(t,l)}import{noop as xy}from"@vkontakte/videoplayer-shared/es2018";var wy=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Cy=M("<!> <div><!></div>",1),Sy={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function ul(t,e){D(e,!0),z(t,Sy);let[i,o]=Fe(),n=()=>C(r,"$fakeIsPlaying$",i),{fakeIsPlaying$:r}=co(),l=m(e,"ref",15,void 0),d=m(e,"isMobile",3,!1),a=m(e,"isPlaying",3,!1),p=m(e,"disabled",3,!1),f=m(e,"className",3,""),v=m(e,"click",3,xy),$=Ee().ui.t,{toggle:w}=r,y=h(()=>w),S=h(()=>n()!==null),T=h(()=>s(S)?n():a()),I=h(()=>s(T)?$("tooltip_pause"):$("tooltip_play")),A=h(()=>s(T)?vs:Br),k=h(()=>`${d()?"btn-m--play":""} ${f()}`),E=h(()=>s(S)?s(y):v());Vt(t,{get className(){return s(k)},testId:"btn-play",get click(){return s(E)},get disabled(){return p()},get ariaLabel(){return s(I)},get ariaKeyShortCut(){return Xr.KeyK},get ref(){return l()},set ref(L){l(L)},children:(L,K)=>{var U=Cy();let W=h(()=>s(A));var G=pe(U);{var te=we=>{var Re=wy();b(we,Re)};R(G,we=>{d()&&we(te)})}var j=P(G,2);let ae;var de=_(j);Ci(de,()=>s(W),(we,Re)=>{Re(we,{})}),g(j),O(we=>ae=J(j,1,"svelte-1ot3duq",null,ae,we),[()=>({mobile:d()})]),b(L,U)},$$slots:{default:!0}}),H(),o()}var Ty=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"></path></svg>');function Yf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Ty();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}function Cd(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),r=F("tooltip_interactive_go_back"),l=h(()=>o()?"hidden":"");Vt(t,{get className(){return s(l)},testId:"btn-play-prev-chapter",get ariaLabel(){return r},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Yf(d,{})},$$slots:{default:!0}}),H()}var Ey=M('<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 Sd(t,e){D(e,!0),z(t,Iy);let[i,o]=Fe(),n=()=>C(a,"$autoplayNextEnabled$",i),r=m(e,"ref",15,void 0),l=Ee(),d=l.ui.t,a=l.ui.autoplayNextEnabled$,p=l.actions.internal.setAutoplayNextEnabled,f=()=>{p(!n(),!0)},v=d("aria_label_autoplay"),u=h(()=>n()?"true":"false");Vt(t,{click:f,get ariaLabel(){return v},role:"switch",get areaChecked(){return s(u)},get ref(){return r()},set ref($){r($)},children:($,w)=>{var y=Ey(),S=_(y);let T;var I=_(S);{var A=E=>{Br(E,{width:"14",height:"14",fill:"#000"})},k=E=>{vs(E,{width:"14",height:"14",fill:"#000"})};R(I,E=>{n()?E(A):E(k,!1)})}g(S),g(y),O(E=>T=J(S,1,"toggler svelte-et3q1q",null,T,E),[()=>({enabled:n()})]),b($,y)},$$slots:{default:!0}}),H(),o()}var ky=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"></path></svg>');function jf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=ky();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}function Td(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),r=F("tooltip_interactive_seek"),l=h(()=>o()?"hidden":"");Vt(t,{get className(){return s(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return r},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{jf(d,{})},$$slots:{default:!0}}),H()}var Py=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z" class="_closed" clip-rule="evenodd"></path></svg>');function Zf(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Py();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}var Ay={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Xf(t,e){z(t,Ay);let i=m(e,"isOpened",3,!1),o=h(()=>i()?"graph-close-icon":"graph-open-icon");Zf(t,{get"data-testid"(){return s(o)}})}function Ed(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),r=m(e,"graphIsOpened",3,!1),d=Ee().ui.t,a=h(()=>r()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),p=h(()=>o()?"hidden":"");Vt(t,{get className(){return s(p)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return s(a)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{let u=h(()=>!!r());Xf(f,{get isOpened(){return s(u)}})},$$slots:{default:!0}}),H()}import{PlaybackState as v1}from"@vkontakte/videoplayer-core/es2018";function Id(t,e){D(e,!0);let[i,o]=Fe(),n=()=>C(p,"$playbackState$",i),r=m(e,"isMobile",3,!1),l=m(e,"isLiveActive",3,!1),d=m(e,"ariaLabel",3,""),a=Ee(),p=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,v=a.actions.internal.togglePlay,u=h(()=>()=>{if(!l()){f();return}n()===v1.PAUSED&&v()}),$=h(()=>r()?"":"btn--live btn-full-opacity"),w=h(()=>l()?"btn-live":"btn-live-offset"),y=h(()=>l()&&n()===v1.PLAYING);Vt(t,{get className(){return s($)},get testId(){return s(w)},get disabled(){return s(y)},get ariaLabel(){return d()},get click(){return s(u)},children:(S,T)=>{Xl(S,{get isActive(){return l()}})},$$slots:{default:!0}}),H(),o()}import{noop as g1}from"@vkontakte/videoplayer-shared/es2018";var My=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),Ly=M('<img class="icon" aria-hidden="true"/>');function ha(t,e){"use strict";let i=Y(!1),o=()=>{B(i,!0)};var n=ze(),r=pe(n);{var l=a=>{var p=My();b(a,p)},d=a=>{var p=Ly();O(()=>Be(p,"src",e.icon)),Tt("error",p,o),Zs(p),b(a,p)};R(r,a=>{s(i)?a(l):a(d,!1)})}b(t,n)}function Jf(t,e){D(e,!0);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,g1),n=m(e,"ref",15),r=h(()=>o()===g1),l=h(()=>s(r)||i()),d=h(()=>s(r)?"btn-full-opacity":"");bo(t,{get disabled(){return s(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get ref(){return n()},set ref(a){n(a)},children:(a,p)=>{let f=h(()=>{var v;return(v=e.testId)!=null?v:e.id});Vt(a,{get className(){return s(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return s(l)},get testId(){return s(f)},children:(v,u)=>{ha(v,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),H()}var h1=t=>!!t.buttonComponent;var gs={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var fu=(t,e,i,o)=>{if(t)for(let[n,r]of Object.entries(e))r.set(Nr(t,i,n,o))};var Ny=M('<div><!> <div class="controls svelte-f6e8ix" data-testid="player_controls"><div class="controls-left svelte-f6e8ix"><!> <!> <!></div> <div class="controls-right svelte-f6e8ix"></div></div></div> <!>',1),By={hash:"svelte-f6e8ix",code:".wrapper-bottom.svelte-f6e8ix {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-f6e8ix > :where(.svelte-f6e8ix) {pointer-events:auto;}.controls.svelte-f6e8ix {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 var(--controls-desktop-padding-horizontal) 4px;box-sizing:border-box;}.controls-left.svelte-f6e8ix, .controls-right.svelte-f6e8ix {display:flex;align-content:center;}.controls-left.svelte-f6e8ix {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-f6e8ix > *:not(:first-child), .controls-right.svelte-f6e8ix > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-f6e8ix {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-f6e8ix {transition:none;}"};function tm(t,e){var Ns,Ia;D(e,!0),z(t,By);let[i,o]=Fe(),n=()=>C(Ei,"$disabledControls$",i),r=()=>C(fi,"$adPlaybackState",i),l=()=>C(kt,"$playbackState$",i),d=()=>C(bt,"$currentSubtitle$",i),a=()=>C(oi,"$isEnded$",i),p=()=>C(Ro,"$currentGridType$",i),f=()=>C(ui,"$isLive$",i),v=()=>C(Lo,"$chromecastState$",i),u=()=>C(Jt,"$isPictureInPictureActive",i),$=()=>C(li,"$pictureInPictureType$",i),w=()=>C(Rt,"$availableSubtitlesList$",i),y=()=>C(ut,"$contextMenuOpenedByKeyboard$",i),S=()=>C(q,"$showContextMenuBtn$",i),T=()=>C(pn,"$playerSize",i),I=()=>C(Xt,"$isRewindableLive$",i),A=()=>C(lt,"$isActiveLive$",i),k=()=>C(yo,"$graphIsOpened$",i),E=()=>C(Vo,"$contextMenuVisible$",i),L=()=>C(Ot,"$isFullscreen",i),K=()=>C(Li,"$autoplayNextEnabled",i),U=()=>C(s(rr),"$prevButton",i),W=()=>C(s(sr),"$replayButton",i),G=()=>C(s(Hn),"$playButton",i),te=()=>C(s(st),"$nextButton",i),j=()=>C(s(ni),"$playPrevChapterButton",i),ae=()=>C(s(hn),"$seekToInteractiveButton",i),de=()=>C(s(Jo),"$interactiveGraphButton",i),we=()=>C(s(_n),"$liveButton",i),Re=()=>C(s(bn),"$time",i),me=()=>C(s($n),"$episodes",i),le=()=>C(s(Yi),"$vkLogo",i),Ve=()=>C(s(uo),"$volume",i),ee=()=>C(s(Fn),"$subtitles",i),N=()=>C(s(wr),"$settings",i),Oe=()=>C(s(Fr),"$context",i),_e=()=>C(s(Cr),"$fullscreen",i),ve=()=>C(s(rt),"$chromecast",i),ce=()=>C(Go,"$additionalDesktopControlPanelRightButtons$",i),ne=()=>C(Gi,"$isInteractiveTime$",i),ye=()=>C(Qi,"$settingsMenuVisible",i),Z=()=>C(po,"$settingButtonRef$",i),Ke=()=>C(pi,"$startedByKeyboard$",i),ue=()=>C(Mt,"$isAudioAvailable$",i),ke=()=>C(Bt,"$fakeIsPlaying$",i),Ae=()=>C(jo,"$seekToInteractiveDisabledTooltip$",i),Te=()=>C(ot,"$adPosition",i),Qe=()=>C(et,"$position$",i),nt=()=>C(it,"$adDuration",i),_t=()=>C(Ne,"$duration$",i),$t=m(e,"playerControlsWrapperRef",15,void 0),St=m(e,"playerControlsRef",15,void 0),Ge=m(e,"isAds",3,!1),zt=m(e,"logoTargetUrl",3,""),Qt=m(e,"isOneVideoPlaylist",3,!1),Wt=m(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Bt}=co(),X=Ee(),At=co(),fe=Ft(),be=X.actions.internal.toggleMuted,re=X.actions.internal.togglePlay,De=X.actions.internal.pause,We=X.actions.internal.toggleSubtitle,Me=(Ns=X.callbacks)==null?void 0:Ns.onAudioDoesNotExistHint,Ze=(Ia=X.callbacks)==null?void 0:Ia.onAudioDisabledHint,Ne=X.state.duration$,et=X.state.positionWithScrubbing$,kt=X.state.playbackState$,Mt=X.state.isAudioAvailable$,Xe=X.state.isAudioDisabled,oi=X.state.isEnded$,ui=X.state.isLive$,lt=X.state.isActiveLive$,Xt=X.state.isRewindableLive$,{isActive$:Jt,type$:li}=At.pictureInPicture$,Qi=X.ui.settingsMenu.visible$,di=X.ui.settingsMenu.openedByBtnKeyboard$,Gt=X.ui.controls,Ti=X.actions.internal.getVideoEpisodes(),Lo=X.state.chromecastState$,Rt=X.state.availableSubtitlesList$,bt=X.state.currentSubtitle$,Ei=Gt.disabledControls$,Vo=X.ui.contextMenu.visible$,q=X.ui.contextMenu.showContextMenuBtn$,ut=X.ui.contextMenu.openedByBtnKeyboard$,pi=X.ui.startedByKeyboard$,Ii=X.ui.controlBlocks,ft=X.ui.t,it=X.ads.duration,ot=X.ads.position,fi=X.ads.playbackState,Ot=X.ui.isFullscreen,pn=X.ui.playerSize,Ro=X.ui.currentGridType$,Go=X.ui.additionalDesktopControlPanelRightButtons$,Li=X.ui.autoplayNextEnabled$,yt=X.actions.internal.getVideoElement,Vi=X.actions.internal.replayInteractive,Yo=X.actions.internal.prevVideoClick,An=X.actions.internal.nextVideoClick,Ri=X.state.isInteractive,Gi=X.state.isInteractiveTime$,bi=X.state.showInteractiveGraph,$o=X.state.showSeekToInteractive,fn=X.state.showPlayPrevChapter,Ui=X.state.showInteractiveTimeIndicator,No=X.state.playPrevChapterDisabledTooltip,jo=At.seekToInteractiveDisabledTooltip$,yo=At.graphIsOpened$,Zo=fe.features.interactiveResponsiveUi,Xn=h(()=>n().has("EPISODE_BUTTON")),gr=h(()=>n().has("GRAPH_BUTTON")),Dr=h(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),Jn=h(()=>n().has("PLAY_BUTTON")),Xo=h(()=>n().has("REPLAY_BUTTON")),hr=h(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),Hr=()=>X.actions.internal.toggleChromecast(),_r=h(()=>Ge()?r()==="playing":l()===em.PLAYING),ro=h(()=>d().value!=="off"),mn=h(()=>a()&&!Ge()||Ri),Bo=h(()=>Zo?s(mn)&&Fi(p(),"m"):s(mn)),vn=h(()=>!a()||Ri||Ge()),Oo=h(()=>Fi(p(),"m")),Mn=h(()=>e.showNextPrevButtons&&Fi(p(),"m")&&!Ge()&&e.nextButtonActive),Ln=h(()=>e.showNextPrevButtons&&Fi(p(),"m")&&!Ge()&&e.prevButtonActive),br=h(()=>!Ge()&&!!f()),$r=h(()=>v()!==_1.NOT_AVAILABLE&&!(u()&&$()===1)&&Fi(p(),"m")&&!Ri),pt=h(()=>e.showAutoplayNext&&!Qt()&&Fi(p(),"s")),ei=h(()=>w().length>0&&Fi(p(),"m")),yr=h(()=>y()||S()),Ni=h(()=>Fi(p(),"s")&&!Ge()),mi=h(()=>!e.logoHidden&&!Ge()),er=h(()=>fe.features.fullscreen&&(e.logoHidden||Fi(p(),Zo?"xs":"s"))&&!(u()&&$()===1)&&(Ri?Wt():!0)),xo=h(()=>(!f()||Ge())&&!(fe.features.interactiveHideTime&&Ri)),gn=h(()=>T().width>100),Vn=h(()=>bi&&Fi(p(),"m")),wo=h(()=>Zo?$o&&Fi(p(),"s"):$o),so=h(()=>Zo?fn&&Fi(p(),"s"):fn),Co=h(()=>!Ge()&&!f()&&!!(Ti!=null&&Ti.length)&&s(Oo)&&!s(Xn)),Rn=h(()=>!I()||!!A()),Nn=h(()=>k()?ft("tooltip_interactive_graph_on"):ft("tooltip_interactive_graph_off")),tr=h(()=>E()?ft("tooltip_context_menu_close"):ft("tooltip_context_menu_open")),Bn=(ct,xt)=>ct?xt&&xt===em.PAUSED?ft("tooltip_play"):"":ft("tooltip_live"),ir=h(()=>Bn(s(Rn),l())),or=h(()=>fe.logoType==="vk_video"?ft("tooltip_vk_video_logo"):ft("tooltip_vk_logo")),xr=h(()=>s(ro)?ft("tooltip_subtitles_on"):ft("tooltip_subtitles_off")),On=h(()=>L()?ft("tooltip_fullscreen_on"):ft("tooltip_fullscreen_off")),Dn=h(()=>v()===_1.CONNECTED?ft("tooltip_chromecast_on"):ft("tooltip_chromecast_off")),So=h(()=>K()?ft("tooltip_autoplay_on"):ft("tooltip_autoplay_off")),nr=Y(0),ii=ti({}),Do=ti({}),rr=h(()=>Gt.prevButton),sr=h(()=>Gt.replayButton),Hn=h(()=>Gt.playButton),st=h(()=>Gt.nextButton),ni=h(()=>Gt.playPrevChapterButton),hn=h(()=>Gt.seekToInteractiveButton),Jo=h(()=>Gt.interactiveGraphButton),_n=h(()=>Gt.liveButton),bn=h(()=>Gt.time),$n=h(()=>Gt.episodes),Yi=h(()=>Gt.vkLogo),uo=h(()=>Gt.volume),Fn=h(()=>Gt.subtitles),wr=h(()=>Gt.settings),Fr=h(()=>Gt.context),Cr=h(()=>Gt.fullscreen),rt=h(()=>Gt.chromecast),mt=h(()=>({prevButton:U()?U().right-U().left:0,replayButton:W()?W().right-W().left:0,playButton:G()?G().right-G().left:0,nextButton:te()?te().right-te().left:0,playPrevChapterButton:j()?j().right-j().left:0,seekToInteractiveButton:ae()?ae().right-ae().left:0,interactiveGraphButton:de()?de().right-de().left:0,liveButton:we()?we().right-we().left:0,time:Re()?Re().right-Re().left:0,episodes:me()?me().right-me().left:0,vkLogo:le()?le().right-le().left:0,volume:Ve()?Ve().right-Ve().left:0,subtitles:ee()?ee().right-ee().left:0,settings:N()?N().right-N().left:0,context:Oe()?Oe().right-Oe().left:0,fullscreen:_e()?_e().right-_e().left:0,chromecast:ve()?ve().right-ve().left:0,additionalButtons:ce().length?ce().reduce(ct=>[...ct,40],[]):[]})),ri=Y(0);qe(()=>{(!s(ri)||s(ri)<s(mt).time)&&Ct(()=>B(ri,s(mt).time,!0))});let ji=Y(!1);qe(()=>{let ct=0;s(Co)&&(Fi(p(),"xl")?ct=s(mt).time:ct=60);let xt=s(mt).prevButton+s(mt).playButton+s(mt).nextButton+s(mt).seekToInteractiveButton+s(mt).interactiveGraphButton+s(mt).liveButton+s(ri)+ct;B(ji,s(xo)&&s(nr)>=xt,!0)});let Ho=h(()=>s(ji)&&Fi(p(),"m")),ao=b1(dl,260),Zi=b1(fu,260);qe(()=>{T(),ne(),ao(yt(),Gt,ii,e.showControls),Zi(yt(),Ii,Do,e.showControls)}),qe(()=>{Do.bottom=$t()});let po=se();qe(()=>{ye(),Z()&&Ct(()=>ol(Z(),ye(),di))});let yn;qe(()=>{Ke(),Ct(()=>uu(pi,Ke(),yn))});function en(){As({isAudioDisabled:Xe,isAudioAvailable:ue(),isAds:Ge(),audioIsNotExistHintCallback:Me,audioDisabledHintCallback:Ze})&&be()}let fo=Ri?Vi:re,mo=h(()=>ke()!==null),ar=h(()=>s(mo)?ke():s(_r)),lo=h(()=>s(ar)?ft("tooltip_pause"):ft("tooltip_play")),Sr=ft("tooltip_episodes"),tn=h(()=>{var ct,xt,Ji,sn;return s(Ln)?{id:"prevButton",type:"desktop-control-panel-left",weight:ms.prevButton,buttonComponent:ga,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Yo.bind(null,!0)},tooltipEnabled:!((xt=(ct=X.callbacks)==null?void 0:ct.uiInfo)!=null&&xt.onPrevButtonMouseEnter)&&!((sn=(Ji=X.callbacks)==null?void 0:Ji.uiInfo)!=null&&sn.onPrevButtonMouseLeave),mouseEnter:()=>{var eo,ai,Pi;(Pi=(ai=(eo=X.callbacks)==null?void 0:eo.uiInfo)==null?void 0:ai.onPrevButtonMouseEnter)==null||Pi.call(ai,Nr(yt(),ii,"prevButton",e.showControls))},mouseLeave:()=>{var eo,ai,Pi;(Pi=(ai=(eo=X.callbacks)==null?void 0:eo.uiInfo)==null?void 0:ai.onPrevButtonMouseLeave)==null||Pi.call(ai,Nr(yt(),ii,"prevButton",e.showControls))},tooltipText:ft("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Ur=h(()=>s(Bo)?{id:"replayButton",type:"desktop-control-panel-left",weight:ms.replayButton,buttonComponent:cl,buttonComponentProps:{disabled:s(Xo),click:fo},tooltipText:ft("tooltip_restart"),disabled:s(Xo)}:void 0),zr=h(()=>s(vn)?{id:"playButton",type:"desktop-control-panel-left",weight:ms.playButton,buttonComponent:ul,buttonComponentProps:{disabled:s(Jn),isPlaying:s(_r),click:re},tooltipText:s(lo),disabled:s(Jn)}:void 0),is=h(()=>{var ct,xt,Ji,sn;return s(Mn)?{id:"nextButton",type:"desktop-control-panel-left",weight:ms.nextButton,buttonComponent:ga,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:An.bind(null,!0)},tooltipEnabled:!((xt=(ct=X.callbacks)==null?void 0:ct.uiInfo)!=null&&xt.onNextButtonMouseEnter)&&!((sn=(Ji=X.callbacks)==null?void 0:Ji.uiInfo)!=null&&sn.onNextButtonMouseLeave),mouseEnter:()=>{var eo,ai,Pi;(Pi=(ai=(eo=X.callbacks)==null?void 0:eo.uiInfo)==null?void 0:ai.onNextButtonMouseEnter)==null||Pi.call(ai,Nr(yt(),ii,"nextButton",e.showControls))},mouseLeave:()=>{var eo,ai,Pi;(Pi=(ai=(eo=X.callbacks)==null?void 0:eo.uiInfo)==null?void 0:ai.onNextButtonMouseLeave)==null||Pi.call(ai,Nr(yt(),ii,"nextButton",e.showControls))},tooltipText:ft("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Fo=h(()=>Ri&&s(so)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:ms.playPrevChapterButton,buttonComponent:Cd,buttonComponentProps:{disabled:s(hr),click:e.playPrevChapter},tooltipText:ft("tooltip_interactive_go_back"),disabledTooltipContent:ft(No),disabled:s(hr)}:void 0),lr=h(()=>Ri&&s(wo)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:ms.seekToInteractiveButton,buttonComponent:Td,buttonComponentProps:{disabled:s(Dr),click:e.seekToInteractive},tooltipText:ft("tooltip_interactive_seek"),disabled:s(Dr),disabledTooltipContent:ft(Ae())}:void 0),on=h(()=>Ri&&s(Vn)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:ms.interactiveGraphButton,buttonComponent:Ed,buttonComponentProps:{disabled:s(gr),click:yo.toggle,graphIsOpened:k()},tooltipText:s(Nn)}:void 0),To=h(()=>s(br)?{id:"liveButton",type:"desktop-control-panel-left",weight:ms.liveButton,buttonComponent:Id,buttonComponentProps:{isLiveActive:s(Rn),ariaLabel:s(ir)},tooltipText:s(ir),disabled:s(Rn)&&l()===em.PLAYING}:void 0),dr=h(()=>[s(tn),s(Ur),s(zr),s(is),s(Fo),s(lr),s(on),s(To)].filter(ct=>!!ct).sort(la)),Tr=h(()=>s(mi)?{id:"vkLogo",type:"desktop-control-panel-right",weight:gs.vkLogo,buttonComponent:vd,buttonComponentProps:{targetUrl:zt(),logoClickable:e.logoClickable,click:De},tooltipText:s(or),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Ye=h(()=>s(pt)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:gs.autoplayNext,buttonComponent:Sd,tooltipText:s(So)}:void 0),qt=h(()=>({id:"volume",type:"desktop-control-panel-right",weight:gs.volume,buttonComponent:If,buttonComponentProps:{click:en,isAds:Ge()}})),vi=h(()=>s(ei)?{id:"subtitles",type:"desktop-control-panel-right",weight:gs.subtitles,buttonComponent:wf,buttonComponentProps:{isSubtitlesEnabled:s(ro),click:We},tooltipText:s(xr)}:void 0),nn=h(()=>s(Ni)?{id:"settings",type:"desktop-control-panel-right",weight:gs.settings,buttonComponent:al,buttonComponentProps:{ref$:po},tooltipText:ye()?void 0:ft("tooltip_settings_off")}:void 0),xe=h(()=>fe.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:gs.context,buttonComponent:Qf,buttonComponentProps:{ariaLabel:ft("aria_label_context_menu")},className:s(yr)?"":"out-of-view",tooltipText:s(tr)}:void 0),Pt=h(()=>s(er)?{id:"fullscreen",type:"desktop-control-panel-right",weight:gs.fullscreen,buttonComponent:md,buttonComponentProps:{isFullscreen:L(),click:e.toggleFullscreen},tooltipText:s(On)}:void 0),He=h(()=>s($r)?{id:"chromecast",type:"desktop-control-panel-right",weight:gs.chromecast,buttonComponent:gd,buttonComponentProps:{state:v(),click:Hr},tooltipText:s(Dn)}:void 0),wt=h(()=>[s(Tr),s(Ye),s(qt),s(vi),s(nn),s(xe),s(Pt),s(He),...ce()].filter(ct=>!!ct).sort(la));var gi=Ny(),$i=pe(gi);let ki;var rn=_($i);let Un=h(()=>!s(gn));ma(rn,{get isHidden(){return s(Un)},get isAds(){return Ge()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return I()},get ref(){return ii.timeline},set ref(ct){ii.timeline=ct}});var Xi=P(rn,2),yi=_(Xi),xi=_(yi);wi(xi,17,()=>s(dr),ct=>ct.id,(ct,xt)=>{pu(ct,{get buttonComponent(){return s(xt).buttonComponent},get buttonComponentProps(){return s(xt).buttonComponentProps},get tooltipText(){return s(xt).tooltipText},get disabledTooltipContent(){return s(xt).disabledTooltipContent},get disabled(){return s(xt).disabled},get className(){return s(xt).className},get tooltipEnabled(){return s(xt).tooltipEnabled},get mouseEnter(){return s(xt).mouseEnter},get mouseLeave(){return s(xt).mouseLeave},get ref(){return ii[s(xt).id]},set ref(Ji){ii[s(xt).id]=Ji}})});var zi=P(xi,2);{var cr=ct=>{let xt=h(()=>Ge()?Te():Qe()),Ji=h(()=>Ge()?nt():_t());pd(ct,{isMobile:!1,get showDuration(){return s(Ho)},get position(){return s(xt)},get duration(){return s(Ji)},get ref(){return ii.time},set ref(sn){ii.time=sn}})};R(zi,ct=>{s(xo)&&ct(cr)})}var Er=P(zi,2);let vo=h(()=>!s(Co));bo(Er,{className:"w-max",get disabled(){return s(vo)},get tooltipContent(){return Sr},get ref(){return ii.episodes},set ref(ct){ii.episodes=ct},children:(ct,xt)=>{var Ji=ze(),sn=pe(Ji);{var eo=ai=>{_d(ai,{get position(){return Qe()},get duration(){return _t()},get timeCodes(){return Ti}})};R(sn,ai=>{s(Co)&&ai(eo)})}b(ct,Ji)},$$slots:{default:!0}}),g(yi);var Ta=P(yi,2);wi(Ta,21,()=>s(wt),ct=>ct.id,(ct,xt)=>{var Ji=ze(),sn=pe(Ji);{var eo=Pi=>{pu(Pi,{get buttonComponent(){return s(xt).buttonComponent},get buttonComponentProps(){return s(xt).buttonComponentProps},get tooltipText(){return s(xt).tooltipText},get disabledTooltipContent(){return s(xt).disabledTooltipContent},get disabled(){return s(xt).disabled},get className(){return s(xt).className},get ref(){return ii[s(xt).id]},set ref(Bs){ii[s(xt).id]=Bs}})},ai=Pi=>{let Bs=h(()=>!!s(xt).disabled);Jf(Pi,{get id(){return s(xt).id},get testId(){return s(xt).testId},get icon(){return s(xt).icon},get ariaLabel(){return s(xt).ariaLabel},get tooltipText(){return s(xt).tooltipText},get disabledTooltipContent(){return s(xt).disabledTooltipContent},get disabled(){return s(Bs)},get onClick(){return s(xt).onClick},get disableMouseupTooltipShow(){return s(xt).disableMouseupTooltipShow},get ref(){return ii[s(xt).id]},set ref(ka){ii[s(xt).id]=ka}})};R(sn,Pi=>{h1(s(xt))?Pi(eo):Pi(ai,!1)})}b(ct,Ji)}),g(Ta),g(Xi),tt(Xi,ct=>St(ct),()=>St()),g($i),tt($i,ct=>$t(ct),()=>$t());var Ea=P($i,2);{var vl=ct=>{xd(ct,{get ref(){return ii.interactiveTimeIndicator},set ref(xt){ii.interactiveTimeIndicator=xt}})};R(Ea,ct=>{Ui&&ct(vl)})}O(ct=>ki=J($i,1,"wrapper-bottom svelte-f6e8ix",null,ki,ct),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Zr(yi,"clientWidth",ct=>B(nr,ct)),b(t,gi),H(),o()}import{ChromecastState as y1,PlaybackState as x1}from"@vkontakte/videoplayer-core/es2018";import{noop as $1}from"@vkontakte/videoplayer-shared/es2018";var Oy=M('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),Dy=M('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),Hy={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 im(t,e){z(t,Hy);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,$1),n=h(()=>o()===$1),r=h(()=>s(n)||i()),l=Y(!1),d=()=>{B(l,!0)},a=h(()=>s(n)?"btn-full-opacity":"");Vt(t,{get className(){return s(a)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return s(r)},get testId(){return e.testId},children:(p,f)=>{var v=ze(),u=pe(v);{var $=y=>{var S=Oy();b(y,S)},w=y=>{var S=Dy();O(()=>Be(S,"src",e.iconUrl)),Tt("error",S,d),Zs(S),b(y,S)};R(u,y=>{s(l)?y($):y(w,!1)})}b(p,v)},$$slots:{default:!0}})}var Fy=Se('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" d="M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"></path></g></svg>');function om(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Fy();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}import{noop as Uy}from"@vkontakte/videoplayer-shared/es2018";var zy=M('<div class="container svelte-yslgu" aria-hidden="true"><!></div>'),Wy={hash:"svelte-yslgu",code:".container.svelte-yslgu {display:flex;align-items:center;}"};function mu(t,e){D(e,!0),z(t,Wy);let i=m(e,"muted",3,!1),o=m(e,"click",3,Uy),n=m(e,"ref",15,void 0),l=Ee().ui.t,d=h(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),a=h(()=>i()?om:Ms),p=h(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Vt(t,{get testId(){return s(p)},get click(){return o()},get ariaLabel(){return s(d)},role:"button",get ref(){return n()},set ref(f){n(f)},children:(f,v)=>{var u=zy();let $=h(()=>s(a));var w=_(u);Ci(w,()=>s($),(y,S)=>{S(y,{})}),g(u),b(f,u)},$$slots:{default:!0}}),H()}var qy=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z" class="hidden-not-active"></path><path fill="var(--btn-color, #fff)" d="m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z" class="hidden-active"></path></svg>');function nm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=qy();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(3),g(o),b(t,o)}var Ky={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
252
+ svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function rm(t,e){z(t,Ky);let i=m(e,"isActive",3,!1),o=h(()=>i()?"color: #2688EB;":"color: #fff;"),n=h(()=>i()?"pip-icon--active":"pip-icon");nm(t,{get style(){return s(o)},get"data-testid"(){return s(n)}})}import{noop as Qy}from"@vkontakte/videoplayer-shared/es2018";function sm(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isPictureInPictureActive",3,!1),n=m(e,"click",3,Qy),r=F("menu_pip");Vt(t,{testId:"btn-pip",get ariaLabel(){return r},get click(){return n()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{rm(l,{get isActive(){return o()}})},$$slots:{default:!0}}),H()}import{debounceFn as w1}from"@vkontakte/videoplayer-shared/es2018";var Gy=(t,e,i,o)=>{s(e)&&i.onDisabledPlayPrevChapterClick(s(o))},Yy=(t,e,i,o)=>{s(e)&&i.onDisabledSeekToInteractiveClick(s(o))},jy=M("<div><!></div>"),Zy=M("<div><!></div>"),Xy=M("<div><!></div>"),Jy=M("<!> <!> <!>",1),e4=M("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),t4=M('<div class="wrapper-middle svelte-9xcbwc"><!></div>'),i4=M("<div><!></div> <!> <div><!></div>",1),o4=M('<div aria-hidden="true">\xB7</div> <!>',1),n4=M('<!> <!> <div><div><div><div class="controls-group contain svelte-9xcbwc"><!> <!> <!> <!></div> <div class="controls-group svelte-9xcbwc"><!> <!> <!></div></div> <!></div></div> <!>',1),r4={hash:"svelte-9xcbwc",code:`.wrapper-bottom.svelte-9xcbwc {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-9xcbwc > :where(.svelte-9xcbwc) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-9xcbwc {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-9xcbwc {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-9xcbwc {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-9xcbwc {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-9xcbwc,
253
253
  .wrapper-middle-left-second.svelte-9xcbwc,
254
254
  .wrapper-middle-right.svelte-9xcbwc {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-9xcbwc {left:12px;}.wrapper-middle-left-second.svelte-9xcbwc {left:64px;}.wrapper-middle-right.svelte-9xcbwc {right:12px;}.controls.svelte-9xcbwc {width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box;justify-content:space-between;}.controls-group.svelte-9xcbwc {display:flex;}.controls-group.contain.svelte-9xcbwc {min-width:0;}.controls-group.svelte-9xcbwc > *:not(:first-child) {margin-left:8px;}.hidden.svelte-9xcbwc {visibility:hidden;opacity:0;}.controls-hidden.svelte-9xcbwc {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-9xcbwc {transition:none;}.overlay-mobile.svelte-9xcbwc {position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.3);pointer-events:none;transition:opacity var(--controls-transition-duration);}
255
255
 
@@ -258,7 +258,7 @@ Try switching the\xA0quality to\xA0Auto.`},wh=v_;var ms=new Map;ms.set(Ch.EN,wh)
258
258
  }
259
259
 
260
260
  @media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-9xcbwc {top:12px;left:44px;}.wrapper-top-right.fullscreen.svelte-9xcbwc {top:12px;right:44px;}.wrapper-middle-left.fullscreen.svelte-9xcbwc {left:44px;}.wrapper-middle-left-second.fullscreen.svelte-9xcbwc {left:96px;}.wrapper-middle-right.fullscreen.svelte-9xcbwc {right:44px;}.controls-wrapper.fullscreen.svelte-9xcbwc {position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px);}
261
- }`};function nm(t,e){var ji,qo;F(e,!0),q(t,Jy);let[i,o]=Be(),n=()=>S(Tn,"$seekToInteractiveDisabledTooltip$",i),s=()=>S(zt,"$disabledControls$",i),l=()=>S(Lt,"$playbackState$",i),d=()=>S(ct,"$adPlaybackState",i),a=()=>S(xe,"$isEnded$",i),u=()=>S(Tt,"$playerSize",i),f=()=>S(Ue,"$scrubbingInProgress",i),v=()=>S(mi,"$chromecastState$",i),p=()=>S(St,"$isPictureInPictureActive",i),b=()=>S(yt,"$pictureInPictureType$",i),x=()=>S(Pt,"$mobileNotReportControlHidden$",i),y=()=>S(po,"$chromecastHidden",i),C=()=>S(Kt,"$playerPhase",i),T=()=>S(zi,"$pipHidden",i),E=()=>S(Li,"$currentGridType$",i),M=()=>S(Ui,"$vkLogoHidden",i),k=()=>S(He,"$isLive$",i),I=()=>S(di,"$settingsMenuVisible",i),N=()=>S(Xe,"$isRewindableLive$",i),Y=()=>S(Re,"$isActiveLive$",i),D=()=>S(xo,"$isInteractiveTime$",i),H=()=>S(ge,"$isAudioAvailable$",i),W=()=>S(To,"$settingButtonRef$",i),ee=()=>S(li,"$startedByKeyboard$",i),K=()=>S(tt,"$isFullscreen",i),de=()=>S(Mi,"$mobileUnmuteButtonVisible",i),oe=()=>S(fi,"$volumeHidden",i),we=()=>S(me,"$muted$",i),Ie=()=>S(pt,"$mobileUnmuteButtonExpanded",i),pe=()=>S(Wi,"$additionalButtons$",i),le=()=>S(uo,"$autoplayNextToggleHidden",i),Ae=()=>S(G,"$crashed$",i),te=()=>S(Qt,"$settingsHidden",i),R=()=>S(si,"$graphIsOpened$",i),Ge=()=>S(ci,"$adPosition",i),ie=()=>S(ri,"$adDuration",i),Ke=()=>S(ne,"$position$",i),ce=()=>S(wt,"$duration$",i),fe=m(e,"playerControlsWrapperRef",15,void 0),$e=m(e,"playerControlsRef",15,void 0),Z=m(e,"isAds",3,!1),qe=m(e,"logoTargetUrl",3,""),Ze=m(e,"isOneVideoPlaylist",3,!1),Pe=m(e,"customFullscreenSupported",3,!0),re=ke(),Ee=co(),Qe=Ft(),rt=re.actions.internal.toggleMuted,nt=re.actions.internal.togglePlay,Mt=re.actions.internal.pause,Je=re.actions.internal.prevVideoClick,dt=re.actions.internal.nextVideoClick,qt=(ji=re.callbacks)==null?void 0:ji.onAudioDoesNotExistHint,oi=(qo=re.callbacks)==null?void 0:qo.onAudioDisabledHint,Kt=re.playerPhase,wt=re.state.duration$,ne=re.state.positionWithScrubbing$,Lt=re.state.playbackState$,ge=re.state.isAudioAvailable$,X=re.state.isAudioDisabled,xe=re.state.isEnded$,He=re.state.isLive$,me=re.state.muted$,Re=re.state.isActiveLive$,Xe=re.state.isRewindableLive$,Ue=re.ui.scrubbingInProgress,Pt=re.ui.mobileNotReportControlHidden$,{isActive$:St,type$:yt}=Ee.pictureInPicture$,pt=re.ui.mobileUnmuteButtonExpanded,Mi=re.ui.mobileUnmuteButtonVisible,di=re.ui.settingsMenu.visible$,ot=re.ui.settingsMenu.openedByBtnKeyboard$,Bt=re.ui.controls,{volume:fi,vkLogo:Ui,autoplayNextToggle:uo,pip:zi,settings:Qt,chromecast:po}=re.ui.hiddenControls,It=re.actions.internal.getVideoEpisodes(),lt=re.webApi.pictureInPictureApi,mi=re.state.chromecastState$,G=re.state.crashed$,zt=Bt.disabledControls$,li=re.ui.startedByKeyboard$,Li=re.ui.currentGridType$,ri=re.ads.duration,ci=re.ads.position,ct=re.ads.playbackState,tt=re.ui.isFullscreen,Tt=re.ui.playerSize,Wi=re.ui.additionalButtonsDeprecated$,ti=re.actions.internal.getVideoElement,Xn=re.actions.internal.replayInteractive,Ci=re.state.isInteractive,xo=re.state.isInteractiveTime$,hi=re.state.showInteractiveGraph,ht=re.state.showSeekToInteractive,Vi=re.state.showPlayPrevChapter,Ho=re.state.showInteractiveTimeIndicator,Tn=Ee.seekToInteractiveDisabledTooltip$,si=Ee.graphIsOpened$,Ti=re.ui.controlBlocks,Fo=g(()=>z(re.state.playPrevChapterDisabledTooltip)),En=g(()=>z(n())),Uo=g(()=>s().has("EPISODE_BUTTON")),wo=g(()=>s().has("GRAPH_BUTTON")),vn=g(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),tn=g(()=>s().has("PLAY_BUTTON")),fo=g(()=>s().has("REPLAY_BUTTON")),mo=g(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),Or=g(()=>l()===g1.PLAYING),gr=g(()=>d()==="paused"),Jn=g(()=>a()&&!Z()&&!Ci),er=g(()=>!a()||Z()),tr=g(()=>e.showNextPrevButtons&&!Z()&&e.prevButtonActive),In=g(()=>e.showNextPrevButtons&&!Z()&&e.nextButtonActive),is=g(()=>u().width>300),kn=g(()=>u().width>400),Ei=g(f),Pn=g(()=>v()!==v1.NOT_AVAILABLE&&!(p()&&b()===1)&&!x()&&!Ci&&!y()),on=g(()=>C()==="LiveWaitingStart"),nn=g(()=>!!lt&&v()!==v1.CONNECTED&&!x()&&(b()===1&&r(on)||!r(on))&&!r(Ei)&&!Ci&&!T()),An=g(()=>!r(Ei)&&Gi(E(),"s")),Mn=g(()=>!e.logoHidden&&u().width>350&&!M()),zo=g(()=>Qe.features.fullscreen&&!(p()&&b()===1)&&(Ci?Pe():!0)&&!r(Ei)),Dr=g(()=>(!k()||Z())&&u().width>260&&!r(Ei)&&!(Qe.features.interactiveHideTime&&Ci)),Ln=g(()=>I()||e.showControls),ir=g(()=>!Z()&&!k()&&!!(It!=null&&It.length)&&r(is)&&!r(Uo)&&!r(Ei)),Ki=g(()=>!N()||!!Y()),So=g(()=>hi&&Gi(E(),"m")),st=ii({}),Xt=ii({}),hr=h1(dl,260),Vn=h1(fu,260);We(()=>{u(),D(),hr(ti(),Bt,st,e.showControls),Vn(ti(),Ti,Xt,e.showControls)});let gn=()=>re.actions.internal.toggleChromecast();async function Ri(){lt!=null&&lt.isActive()?await(lt==null?void 0:lt.remove()):await(lt==null?void 0:lt.request())}function Rn(){(!X&&H()||Z())&&Mi.set(!1),Rs({isAudioDisabled:X,audioDisabledHintCallback:oi,isAudioAvailable:H(),audioIsNotExistHintCallback:qt,isAds:Z()})&&rt()}let Co=j(""),Nn=(je,At)=>{if(!je){B(Co,z("tooltip_live"),!0);return}At&&At===g1.PAUSED&&B(Co,z("tooltip_play"),!0)};We(()=>{Nn(r(Ki),l())});let To=ae();We(()=>{W()&&ol(W(),I(),ot)}),We(()=>{uu(li,ee(),st.playButton)});var Bn=Xy(),On=ve(Bn);{var or=je=>{var At=Qy(),bi=ve(At);let ro;var go=P(bi,2);let ko;var so=_(go);{var Po=Ne=>{let bt=g(()=>H()&&!X&&Ie());mu(Ne,{get muted(){return we()},get expanded(){return r(bt)},click:Rn,get ref(){return st.volume},set ref(Wt){st.volume=Wt}})};L(so,Ne=>{(!H()||de())&&!oe()&&Ne(Po)})}h(go),et(go,Ne=>Xt.topLeft=Ne,()=>Xt==null?void 0:Xt.topLeft);var Qo=P(go,2);let Ni;var $i=_(Qo);xi($i,1,pe,({iconUrl:Ne,ariaLabel:bt,testId:Wt,onClick:ao,tooltip:Go})=>Ne,(Ne,bt)=>{let Wt=()=>r(bt).iconUrl,ao=()=>r(bt).ariaLabel,Go=()=>r(bt).testId,lo=()=>r(bt).onClick,Er=()=>r(bt).tooltip,Wr=g(()=>{var qi;return(qi=ao())!=null?qi:Er()});Jf(Ne,{get iconUrl(){return Wt()},get ariaLabel(){return r(Wr)},get testId(){return Go()},get onClick(){return lo()}})});var Ao=P($i,2);{var hn=Ne=>{Sd(Ne,{get ref(){return st.autoplayNextToggle},set ref(bt){st.autoplayNextToggle=bt}})};L(Ao,Ne=>{e.showAutoplayNext&&!Ze()&&!le()&&Ne(hn)})}var Zi=P(Ao,2);{var Ur=Ne=>{vd(Ne,{isMobile:!0,click:gn,get state(){return v()},get ref(){return st.chromecast},set ref(bt){st.chromecast=bt}})};L(Zi,Ne=>{r(Pn)&&Ne(Ur)})}var wr=P(Zi,2);{var ns=Ne=>{om(Ne,{click:Ri,get isPictureInPictureActive(){return p()},get ref(){return st.pip},set ref(bt){st.pip=bt}})};L(wr,Ne=>{r(nn)&&Ne(ns)})}var sn=P(wr,2);{var ar=Ne=>{al(Ne,{get ref$(){return To}})};L(sn,Ne=>{Ae()&&!te()&&Ne(ar)})}var zr=P(sn,2);{var Sr=Ne=>{md(Ne,{get click(){return Mt},get targetUrl(){return qe()},get logoClickable(){return e.logoClickable},get ref(){return st.vkLogo},set ref(bt){st.vkLogo=bt}})};L(zr,Ne=>{r(Mn)&&Ne(Sr)})}h(Qo),et(Qo,Ne=>Xt.topRight=Ne,()=>Xt==null?void 0:Xt.topRight);var yi=P(Qo,2);let Dn;var Hn=_(yi);{var Cr=Ne=>{let bt=g(()=>Je.bind(null,!0));ba(Ne,{get click(){return r(bt)},type:"prev",isMobile:!0,get ref(){return st.prevButton},set ref(Wt){st.prevButton=Wt}})};L(Hn,Ne=>{r(tr)&&Ne(Cr)})}var Tr=P(Hn,2);{var rs=Ne=>{ul(Ne,{get disabled(){return r(tn)},get click(){return nt},isMobile:!0,get isPlaying(){return r(Or)},get ref(){return st.playButton},set ref(bt){st.playButton=bt}})};L(Tr,Ne=>{r(er)&&Ne(rs)})}var lr=P(Tr,2);{var Se=Ne=>{cl(Ne,{get disabled(){return r(fo)},get click(){return nt},isMobile:!0,get ref(){return st.replayButton},set ref(bt){st.replayButton=bt}})};L(lr,Ne=>{r(Jn)&&Ne(Se)})}var _e=P(lr,2);{var mt=Ne=>{let bt=g(()=>dt.bind(null,!0));ba(Ne,{get click(){return r(bt)},type:"next",isMobile:!0,get ref(){return st.nextButton},set ref(Wt){st.nextButton=Wt}})};L(_e,Ne=>{r(In)&&Ne(mt)})}h(yi),et(yi,Ne=>Xt.middle=Ne,()=>Xt==null?void 0:Xt.middle);var Ot=P(yi,2);{var ui=Ne=>{var bt=qy(),Wt=ve(bt);{var ao=qi=>{var Bi=zy();let an;Bi.__click=[Fy,mo,e,Fo];var dr=_(Bi);let cr=g(()=>!e.showControls);wd(dr,{get hidden(){return r(cr)},get disabled(){return r(mo)},get click(){return e.playPrevChapter},get ref(){return st.playPrevChapterButton},set ref(Mo){st.playPrevChapterButton=Mo}}),h(Bi),O(Mo=>an=J(Bi,1,"wrapper-middle-left svelte-9xcbwc",null,an,Mo),[()=>({fullscreen:K(),hidden:!e.showControls})]),$(qi,Bi)};L(Wt,qi=>{Vi&&qi(ao)})}var Go=P(Wt,2);{var lo=qi=>{var Bi=Wy();let an;var dr=_(Bi);let cr=g(()=>!e.showControls&&!R());Td(dr,{get hidden(){return r(cr)},get disabled(){return r(wo)},get click(){return si.toggle},get graphIsOpened(){return R()},get ref(){return st.interactiveGraphButton},set ref(Mo){st.interactiveGraphButton=Mo}}),h(Bi),O(Mo=>an=J(Bi,1,Dl(Vi?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-9xcbwc",an,Mo),[()=>({fullscreen:K(),hidden:!e.showControls&&!R()})]),$(qi,Bi)};L(Go,qi=>{r(So)&&qi(lo)})}var Er=P(Go,2);{var Wr=qi=>{var Bi=Ky();let an;Bi.__click=[Uy,vn,e,En];var dr=_(Bi);let cr=g(()=>!e.showControls);Cd(dr,{get hidden(){return r(cr)},get disabled(){return r(vn)},get click(){return e.seekToInteractive},get ref(){return st.seekToInteractiveButton},set ref(Mo){st.seekToInteractiveButton=Mo}}),h(Bi),O(Mo=>an=J(Bi,1,"wrapper-middle-right svelte-9xcbwc",null,an,Mo),[()=>({fullscreen:K(),hidden:!e.showControls})]),$(qi,Bi)};L(Er,qi=>{ht&&qi(Wr)})}$(Ne,bt)};L(Ot,Ne=>{Ci&&!f()&&Ne(ui)})}O((Ne,bt,Wt,ao)=>{ro=J(bi,1,"overlay-mobile svelte-9xcbwc",null,ro,Ne),ko=J(go,1,"wrapper-top-left svelte-9xcbwc",null,ko,bt),Ni=J(Qo,1,"wrapper-top-right svelte-9xcbwc",null,Ni,Wt),Dn=J(yi,1,"wrapper-middle svelte-9xcbwc",null,Dn,ao)},[()=>({hidden:!r(Ln)}),()=>({hidden:!e.showControls,fullscreen:K()}),()=>({hidden:!e.showControls&&!x(),fullscreen:K()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),$(je,At)};L(On,je=>{Z()||je(or)})}var _r=P(On,2);{var nr=je=>{var At=jy(),bi=ve(At);{var ro=Ni=>{var $i=Gy();let Ao;var hn=_($i);mu(hn,{get muted(){return we()},expanded:!1,click:Rn,get ref(){return st.volume},set ref(Zi){st.volume=Zi}}),h($i),O(Zi=>Ao=J($i,1,"wrapper-top-right svelte-9xcbwc",null,Ao,Zi),[()=>({fullscreen:K()})]),$(Ni,$i)};L(bi,Ni=>{de()&&Ni(ro)})}var go=P(bi,2);{var ko=Ni=>{var $i=Yy(),Ao=_($i);let hn=g(()=>!r(gr));ul(Ao,{get disabled(){return r(tn)},get click(){return nt},isMobile:!0,get isPlaying(){return r(hn)},get ref(){return st.playButton},set ref(Zi){st.playButton=Zi}}),h($i),$(Ni,$i)};L(go,Ni=>{r(gr)&&Ni(ko)})}var so=P(go,2);let Po;var Qo=_(so);gd(Qo,{get position(){return Ge()},get duration(){return ie()}}),h(so),O(Ni=>Po=J(so,1,"wrapper-bottom ads-timeline-mobile svelte-9xcbwc",null,Po,Ni),[()=>({fullscreen:K()})]),$(je,At)};L(_r,je=>{Z()&&d()!=="inactive"&&je(nr)})}var Wo=P(_r,2);let Hr;var rr=_(Wo);let br;var rn=_(rr);J(rn,1,"controls svelte-9xcbwc",null,{},{mobile:!0});var Gt=_(rn),vo=_(Gt);{var $r=je=>{Do(je,{get disabled(){return r(fo)},get ref(){return st.replayButton},set ref(At){st.replayButton=At},children:(At,bi)=>{cl(At,{get disabled(){return r(fo)},get click(){return Xn}})},$$slots:{default:!0}})};L(vo,je=>{Ci&&je($r)})}var Eo=P(vo,2);{var yr=je=>{Do(je,{get ref(){return st.liveButton},set ref(At){st.liveButton=At},children:(At,bi)=>{Ed(At,{get isLiveActive(){return r(Ki)},isMobile:!0,get ariaLabel(){return r(Co)}})},$$slots:{default:!0}})};L(Eo,je=>{!Z()&&k()&&je(yr)})}var Ii=P(Eo,2);{var Fr=je=>{let At=g(()=>Z()?Ge():Ke()),bi=g(()=>Z()?ie():ce());ud(je,{get showDuration(){return r(kn)},get position(){return r(At)},get duration(){return r(bi)},isMobile:!0,get ref(){return st.time},set ref(ro){st.time=ro}})};L(Ii,je=>{r(Dr)&&je(Fr)})}var os=P(Ii,2);let xr=g(()=>!r(ir));Do(os,{className:"w-max",get disabled(){return r(xr)},get ref(){return st.episodes},set ref(je){st.episodes=je},children:(je,At)=>{var bi=Fe(),ro=ve(bi);{var go=ko=>{var so=Zy(),Po=P(ve(so),2);hd(Po,{get position(){return Ke()},get duration(){return ce()},get timeCodes(){return It}}),$(ko,so)};L(ro,ko=>{r(ir)&&ko(go)})}$(je,bi)},$$slots:{default:!0}}),h(Gt),et(Gt,je=>Xt.bottomRight=je,()=>Xt==null?void 0:Xt.bottomRight);var sr=P(Gt,2),ft=_(sr);{var Yt=je=>{Do(je,{get ref(){return st.settings},set ref(At){st.settings=At},children:(At,bi)=>{al(At,{get ref$(){return To}})},$$slots:{default:!0}})};L(ft,je=>{r(An)&&je(Yt)})}var oo=P(ft,2);{var _i=je=>{Do(je,{get ref(){return st.fullscreen},set ref(At){st.fullscreen=At},children:(At,bi)=>{fd(At,{get click(){return e.toggleFullscreen},get isFullscreen(){return K()}})},$$slots:{default:!0}})};L(oo,je=>{r(zo)&&je(_i)})}h(sr),et(sr,je=>Xt.bottomRight=je,()=>Xt==null?void 0:Xt.bottomRight),h(rn),et(rn,je=>$e(je),()=>$e());var Io=P(rn,2);ha(Io,{get isAds(){return Z()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return N()},get ref(){return st.timeline},set ref(je){st.timeline=je}}),h(rr),h(Wo),et(Wo,je=>fe(je),()=>fe());var no=P(Wo,2);{var Ko=je=>{yd(je,{get ref(){return st.interactiveTimeIndicator},set ref(At){st.interactiveTimeIndicator=At}})};L(no,je=>{Ho&&je(Ko)})}O((je,At)=>{Hr=J(Wo,1,"wrapper-bottom svelte-9xcbwc",null,Hr,je),br=J(rr,1,"controls-wrapper svelte-9xcbwc",null,br,At)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:K()})]),$(t,Bn),U(),o()}at(["click"]);function Id(t,e){F(e,!0);let[i,o]=Be(),n=()=>S(T,"$isMobile",i),s=m(e,"bottomNoSmooth",3,!1),l=m(e,"playerControlsWrapperRef",15,void 0),d=m(e,"playerControlsRef",15,void 0),a=m(e,"isAds",3,!1),u=m(e,"logoTargetUrl",3,""),f=m(e,"showAutoplayNext",3,!1),v=m(e,"isOneVideoPlaylist",3,!1),p=m(e,"customFullscreenSupported",3,!0),b=m(e,"endScreenShown",3,!1),x=m(e,"onDisabledPlayPrevChapterClick",3,_1),y=m(e,"onDisabledSeekToInteractiveClick",3,_1),T=ke().ui.isMobile,E=j(!1);Nt(()=>{let N=setTimeout(()=>B(E,!0),0);return()=>clearTimeout(N)});var M=Fe(),k=ve(M);{var I=N=>{var Y=Fe(),D=ve(Y);{var H=ee=>{nm(ee,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return v()},get customFullscreenSupported(){return p()},get endScreenShown(){return b()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return x()},get onDisabledSeekToInteractiveClick(){return y()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(K){l(K)},get playerControlsRef(){return d()},set playerControlsRef(K){d(K)}})},W=ee=>{Xf(ee,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get isOneVideoPlaylist(){return v()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return p()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(K){l(K)},get playerControlsRef(){return d()},set playerControlsRef(K){d(K)}})};L(D,ee=>{n()?ee(H):ee(W,!1)})}$(N,Y)};L(k,N=>{r(E)&&N(I)})}$(t,M),U(),o()}var e4=Te('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"></path></g><defs><filter id="a" width="43.996" height="49.5" x="2.5" y="0" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_100684"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_100684" result="shape"></feBlend></filter></defs></svg>');function rm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=e4();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(2),h(o),$(t,o)}function sm(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);rm(t,{get style(){return r(o)}})}var t4=Te('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22" clip-rule="evenodd"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="45" x="-1.5" y="1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104204"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104204" result="shape"></feBlend></filter></defs></svg>');function am(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=t4();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(2),h(o),$(t,o)}var i4=Te('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="51" x="-1.5" y="-1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104293"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104293" result="shape"></feBlend></filter></defs></svg>');function lm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=i4();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(2),h(o),$(t,o)}function vu(t,e){let i=m(e,"isOff",3,!1);var o=Fe(),n=ve(o);{var s=d=>{lm(d,{})},l=d=>{am(d,{})};L(n,d=>{i()?d(s):d(l,!1)})}$(t,o)}var o4=Te('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"></path></g><defs><filter id="a" width="40.098" height="27.785" x="3.402" y="10.105" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_106627"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_106627" result="shape"></feBlend></filter></defs></svg>');function dm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=o4();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(2),h(o),$(t,o)}function cm(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);dm(t,{get style(){return r(o)}})}var n4=Te('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"></path></g><defs><filter id="a" width="37" height="37" x="5.5" y="5.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2340_106922"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2340_106922" result="shape"></feBlend></filter></defs></svg>');function um(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=n4();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(2),h(o),$(t,o)}function pm(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);um(t,{get style(){return r(o)}})}var r4=A('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),s4=A('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),a4=A("<div><!></div>"),l4={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;
261
+ }`};function am(t,e){var Fr,Cr;D(e,!0),z(t,r4);let[i,o]=Fe(),n=()=>C(Li,"$seekToInteractiveDisabledTooltip$",i),r=()=>C(Lo,"$disabledControls$",i),l=()=>C(Bt,"$playbackState$",i),d=()=>C(q,"$adPlaybackState",i),a=()=>C(fe,"$isEnded$",i),p=()=>C(pi,"$playerSize",i),f=()=>C(Me,"$scrubbingInProgress",i),v=()=>C(Gt,"$chromecastState$",i),u=()=>C(Ne,"$isPictureInPictureActive",i),$=()=>C(et,"$pictureInPictureType$",i),w=()=>C(Ze,"$mobileNotReportControlHidden$",i),y=()=>C(li,"$chromecastHidden",i),S=()=>C(zt,"$playerPhase",i),T=()=>C(Xt,"$pipHidden",i),I=()=>C(bt,"$currentGridType$",i),A=()=>C(ui,"$vkLogoHidden",i),k=()=>C(oi,"$volumeHidden",i),E=()=>C(X,"$isAudioAvailable$",i),L=()=>C(be,"$isLive$",i),K=()=>C(kt,"$settingsMenuVisible",i),U=()=>C(We,"$isRewindableLive$",i),W=()=>C(De,"$isActiveLive$",i),G=()=>C(fi,"$isInteractiveTime$",i),te=()=>C(wo,"$settingButtonRef$",i),j=()=>C(Rt,"$startedByKeyboard$",i),ae=()=>C(ut,"$isFullscreen",i),de=()=>C(Ii,"$additionalButtons$",i),we=()=>C(lt,"$autoplayNextToggleHidden",i),Re=()=>C(Ti,"$crashed$",i),me=()=>C(Jt,"$settingsHidden",i),le=()=>C(yt,"$graphIsOpened$",i),Ve=()=>C(re,"$muted$",i),ee=()=>C(Vo,"$adPosition",i),N=()=>C(Ei,"$adDuration",i),Oe=()=>C(Wt,"$position$",i),_e=()=>C(Qt,"$duration$",i),ve=m(e,"playerControlsWrapperRef",15,void 0),ce=m(e,"playerControlsRef",15,void 0),ne=m(e,"isAds",3,!1),ye=m(e,"logoTargetUrl",3,""),Z=m(e,"isOneVideoPlaylist",3,!1),Ke=m(e,"customFullscreenSupported",3,!0),ue=Ee(),ke=co(),Ae=Ft(),Te=ue.actions.internal.toggleMuted,Qe=ue.actions.internal.togglePlay,nt=ue.actions.internal.pause,_t=ue.actions.internal.prevVideoClick,$t=ue.actions.internal.nextVideoClick,St=(Fr=ue.callbacks)==null?void 0:Fr.onAudioDoesNotExistHint,Ge=(Cr=ue.callbacks)==null?void 0:Cr.onAudioDisabledHint,zt=ue.playerPhase,Qt=ue.state.duration$,Wt=ue.state.positionWithScrubbing$,Bt=ue.state.playbackState$,X=ue.state.isAudioAvailable$,At=ue.state.isAudioDisabled,fe=ue.state.isEnded$,be=ue.state.isLive$,re=ue.state.muted$,De=ue.state.isActiveLive$,We=ue.state.isRewindableLive$,Me=ue.ui.scrubbingInProgress,Ze=ue.ui.mobileNotReportControlHidden$,{isActive$:Ne,type$:et}=ke.pictureInPicture$,kt=ue.ui.settingsMenu.visible$,Mt=ue.ui.settingsMenu.openedByBtnKeyboard$,Xe=ue.ui.controls,{volume:oi,vkLogo:ui,autoplayNextToggle:lt,pip:Xt,settings:Jt,chromecast:li}=ue.ui.hiddenControls,Qi=ue.actions.internal.getVideoEpisodes(),di=ue.webApi.pictureInPictureApi,Gt=ue.state.chromecastState$,Ti=ue.state.crashed$,Lo=Xe.disabledControls$,Rt=ue.ui.startedByKeyboard$,bt=ue.ui.currentGridType$,Ei=ue.ads.duration,Vo=ue.ads.position,q=ue.ads.playbackState,ut=ue.ui.isFullscreen,pi=ue.ui.playerSize,Ii=ue.ui.additionalButtonsDeprecated$,ft=ue.actions.internal.getVideoElement,it=ue.actions.internal.replayInteractive,ot=ue.state.isInteractive,fi=ue.state.isInteractiveTime$,Ot=ue.state.showInteractiveGraph,pn=ue.state.showSeekToInteractive,Ro=ue.state.showPlayPrevChapter,Go=ue.state.showInteractiveTimeIndicator,Li=ke.seekToInteractiveDisabledTooltip$,yt=ke.graphIsOpened$,Vi=ue.ui.controlBlocks,Yo=h(()=>F(ue.state.playPrevChapterDisabledTooltip)),An=h(()=>F(n())),Ri=h(()=>r().has("EPISODE_BUTTON")),Gi=h(()=>r().has("GRAPH_BUTTON")),bi=h(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),$o=h(()=>r().has("PLAY_BUTTON")),fn=h(()=>r().has("REPLAY_BUTTON")),Ui=h(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),No=h(()=>l()===x1.PLAYING),jo=h(()=>d()==="paused"),yo=h(()=>a()&&!ne()&&!ot),Zo=h(()=>!a()||ne()),Xn=h(()=>e.showNextPrevButtons&&!ne()&&e.prevButtonActive),gr=h(()=>e.showNextPrevButtons&&!ne()&&e.nextButtonActive),Dr=h(()=>p().width>300),Jn=h(()=>p().width>400),Xo=h(f),hr=h(()=>v()!==y1.NOT_AVAILABLE&&!(u()&&$()===1)&&!w()&&!ot&&!y()),Hr=h(()=>S()==="LiveWaitingStart"),_r=h(()=>!!di&&v()!==y1.CONNECTED&&!w()&&($()===1&&s(Hr)||!s(Hr))&&!s(Xo)&&!ot&&!T()),ro=h(()=>!s(Xo)&&Fi(I(),"s")),mn=h(()=>!e.logoHidden&&p().width>350&&!A()),Bo=h(()=>Ae.features.fullscreen&&!(u()&&$()===1)&&(ot?Ke():!0)&&!s(Xo)),vn=h(()=>!k()&&E()&&!s(Xo)&&Fi(I(),"s")),Oo=h(()=>(!L()||ne())&&p().width>260&&!s(Xo)&&!(Ae.features.interactiveHideTime&&ot)),Mn=h(()=>K()||e.showControls),Ln=h(()=>!ne()&&!L()&&!!(Qi!=null&&Qi.length)&&s(Dr)&&!s(Ri)&&!s(Xo)),br=h(()=>!U()||!!W()),$r=h(()=>Ot&&Fi(I(),"m")),pt=ti({}),ei=ti({}),yr=w1(dl,260),Ni=w1(fu,260);qe(()=>{p(),G(),yr(ft(),Xe,pt,e.showControls),Ni(ft(),Vi,ei,e.showControls)});let mi=()=>ue.actions.internal.toggleChromecast();async function er(){di!=null&&di.isActive()?await(di==null?void 0:di.exit()):await(di==null?void 0:di.request())}function xo(){As({isAudioDisabled:At,audioDisabledHintCallback:Ge,isAudioAvailable:E(),audioIsNotExistHintCallback:St,isAds:ne()})&&Te()}let gn=Y(""),Vn=(rt,mt)=>{if(!rt){B(gn,F("tooltip_live"),!0);return}mt&&mt===x1.PAUSED&&B(gn,F("tooltip_play"),!0)};qe(()=>{Vn(s(br),l())});let wo=se();qe(()=>{te()&&ol(te(),K(),Mt)}),qe(()=>{uu(Rt,j(),pt.playButton)});var so=n4(),Co=pe(so);{var Rn=rt=>{var mt=e4(),ri=pe(mt);let ji;var Ho=P(ri,2);let ao;tt(Ho,He=>ei.topLeft=He,()=>ei==null?void 0:ei.topLeft);var Zi=P(Ho,2);let po;var yn=_(Zi);wi(yn,1,de,({iconUrl:He,ariaLabel:wt,testId:gi,onClick:$i,tooltip:ki})=>He,(He,wt)=>{let gi=()=>s(wt).iconUrl,$i=()=>s(wt).ariaLabel,ki=()=>s(wt).testId,rn=()=>s(wt).onClick,Un=()=>s(wt).tooltip,Xi=h(()=>{var yi;return(yi=$i())!=null?yi:Un()});im(He,{get iconUrl(){return gi()},get ariaLabel(){return s(Xi)},get testId(){return ki()},get onClick(){return rn()}})});var en=P(yn,2);{var fo=He=>{Sd(He,{get ref(){return pt.autoplayNextToggle},set ref(wt){pt.autoplayNextToggle=wt}})};R(en,He=>{e.showAutoplayNext&&!Z()&&!we()&&He(fo)})}var mo=P(en,2);{var ar=He=>{gd(He,{isMobile:!0,click:mi,get state(){return v()},get ref(){return pt.chromecast},set ref(wt){pt.chromecast=wt}})};R(mo,He=>{s(hr)&&He(ar)})}var lo=P(mo,2);{var Sr=He=>{sm(He,{click:er,get isPictureInPictureActive(){return u()},get ref(){return pt.pip},set ref(wt){pt.pip=wt}})};R(lo,He=>{s(_r)&&He(Sr)})}var tn=P(lo,2);{var Ur=He=>{al(He,{get ref$(){return wo}})};R(tn,He=>{Re()&&!me()&&He(Ur)})}var zr=P(tn,2);{var is=He=>{vd(He,{get click(){return nt},get targetUrl(){return ye()},get logoClickable(){return e.logoClickable},get ref(){return pt.vkLogo},set ref(wt){pt.vkLogo=wt}})};R(zr,He=>{s(mn)&&He(is)})}g(Zi),tt(Zi,He=>ei.topRight=He,()=>ei==null?void 0:ei.topRight);var Fo=P(Zi,2);let lr;var on=_(Fo);{var To=He=>{let wt=h(()=>_t.bind(null,!0));ga(He,{get click(){return s(wt)},type:"prev",isMobile:!0,get ref(){return pt.prevButton},set ref(gi){pt.prevButton=gi}})};R(on,He=>{s(Xn)&&He(To)})}var dr=P(on,2);{var Tr=He=>{ul(He,{get disabled(){return s($o)},get click(){return Qe},isMobile:!0,get isPlaying(){return s(No)},get ref(){return pt.playButton},set ref(wt){pt.playButton=wt}})};R(dr,He=>{s(Zo)&&He(Tr)})}var Ye=P(dr,2);{var qt=He=>{cl(He,{get disabled(){return s(fn)},get click(){return Qe},isMobile:!0,get ref(){return pt.replayButton},set ref(wt){pt.replayButton=wt}})};R(Ye,He=>{s(yo)&&He(qt)})}var vi=P(Ye,2);{var nn=He=>{let wt=h(()=>$t.bind(null,!0));ga(He,{get click(){return s(wt)},type:"next",isMobile:!0,get ref(){return pt.nextButton},set ref(gi){pt.nextButton=gi}})};R(vi,He=>{s(gr)&&He(nn)})}g(Fo),tt(Fo,He=>ei.middle=He,()=>ei==null?void 0:ei.middle);var xe=P(Fo,2);{var Pt=He=>{var wt=Jy(),gi=pe(wt);{var $i=yi=>{var xi=jy();let zi;xi.__click=[Gy,Ui,e,Yo];var cr=_(xi);let Er=h(()=>!e.showControls);Cd(cr,{get hidden(){return s(Er)},get disabled(){return s(Ui)},get click(){return e.playPrevChapter},get ref(){return pt.playPrevChapterButton},set ref(vo){pt.playPrevChapterButton=vo}}),g(xi),O(vo=>zi=J(xi,1,"wrapper-middle-left svelte-9xcbwc",null,zi,vo),[()=>({fullscreen:ae(),hidden:!e.showControls})]),b(yi,xi)};R(gi,yi=>{Ro&&yi($i)})}var ki=P(gi,2);{var rn=yi=>{var xi=Zy();let zi;var cr=_(xi);let Er=h(()=>!e.showControls&&!le());Ed(cr,{get hidden(){return s(Er)},get disabled(){return s(Gi)},get click(){return yt.toggle},get graphIsOpened(){return le()},get ref(){return pt.interactiveGraphButton},set ref(vo){pt.interactiveGraphButton=vo}}),g(xi),O(vo=>zi=J(xi,1,Hl(Ro?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-9xcbwc",zi,vo),[()=>({fullscreen:ae(),hidden:!e.showControls&&!le()})]),b(yi,xi)};R(ki,yi=>{s($r)&&yi(rn)})}var Un=P(ki,2);{var Xi=yi=>{var xi=Xy();let zi;xi.__click=[Yy,bi,e,An];var cr=_(xi);let Er=h(()=>!e.showControls);Td(cr,{get hidden(){return s(Er)},get disabled(){return s(bi)},get click(){return e.seekToInteractive},get ref(){return pt.seekToInteractiveButton},set ref(vo){pt.seekToInteractiveButton=vo}}),g(xi),O(vo=>zi=J(xi,1,"wrapper-middle-right svelte-9xcbwc",null,zi,vo),[()=>({fullscreen:ae(),hidden:!e.showControls})]),b(yi,xi)};R(Un,yi=>{pn&&yi(Xi)})}b(He,wt)};R(xe,He=>{ot&&!f()&&He(Pt)})}O((He,wt,gi,$i)=>{ji=J(ri,1,"overlay-mobile svelte-9xcbwc",null,ji,He),ao=J(Ho,1,"wrapper-top-left svelte-9xcbwc",null,ao,wt),po=J(Zi,1,"wrapper-top-right svelte-9xcbwc",null,po,gi),lr=J(Fo,1,"wrapper-middle svelte-9xcbwc",null,lr,$i)},[()=>({hidden:!s(Mn)}),()=>({hidden:!e.showControls,fullscreen:ae()}),()=>({hidden:!e.showControls&&!w(),fullscreen:ae()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),b(rt,mt)};R(Co,rt=>{ne()||rt(Rn)})}var Nn=P(Co,2);{var tr=rt=>{var mt=i4(),ri=pe(mt);let ji;var Ho=_(ri);mu(Ho,{get muted(){return Ve()},click:xo,get ref(){return pt.volume},set ref(fo){pt.volume=fo}}),g(ri);var ao=P(ri,2);{var Zi=fo=>{var mo=t4(),ar=_(mo);let lo=h(()=>!s(jo));ul(ar,{get disabled(){return s($o)},get click(){return Qe},isMobile:!0,get isPlaying(){return s(lo)},get ref(){return pt.playButton},set ref(Sr){pt.playButton=Sr}}),g(mo),b(fo,mo)};R(ao,fo=>{s(jo)&&fo(Zi)})}var po=P(ao,2);let yn;var en=_(po);hd(en,{get position(){return ee()},get duration(){return N()}}),g(po),O((fo,mo)=>{ji=J(ri,1,"wrapper-top-right svelte-9xcbwc",null,ji,fo),yn=J(po,1,"wrapper-bottom ads-timeline-mobile svelte-9xcbwc",null,yn,mo)},[()=>({fullscreen:ae()}),()=>({fullscreen:ae()})]),b(rt,mt)};R(Nn,rt=>{ne()&&d()!=="inactive"&&rt(tr)})}var Bn=P(Nn,2);let ir;var or=_(Bn);let xr;var On=_(or);J(On,1,"controls svelte-9xcbwc",null,{},{mobile:!0});var Dn=_(On),So=_(Dn);{var nr=rt=>{bo(rt,{get disabled(){return s(fn)},get ref(){return pt.replayButton},set ref(mt){pt.replayButton=mt},children:(mt,ri)=>{cl(mt,{get disabled(){return s(fn)},get click(){return it}})},$$slots:{default:!0}})};R(So,rt=>{ot&&rt(nr)})}var ii=P(So,2);{var Do=rt=>{bo(rt,{get ref(){return pt.liveButton},set ref(mt){pt.liveButton=mt},children:(mt,ri)=>{Id(mt,{get isLiveActive(){return s(br)},isMobile:!0,get ariaLabel(){return s(gn)}})},$$slots:{default:!0}})};R(ii,rt=>{!ne()&&L()&&rt(Do)})}var rr=P(ii,2);{var sr=rt=>{let mt=h(()=>ne()?ee():Oe()),ri=h(()=>ne()?N():_e());pd(rt,{get showDuration(){return s(Jn)},get position(){return s(mt)},get duration(){return s(ri)},isMobile:!0,get ref(){return pt.time},set ref(ji){pt.time=ji}})};R(rr,rt=>{s(Oo)&&rt(sr)})}var Hn=P(rr,2);let st=h(()=>!s(Ln));bo(Hn,{className:"w-max",get disabled(){return s(st)},get ref(){return pt.episodes},set ref(rt){pt.episodes=rt},children:(rt,mt)=>{var ri=ze(),ji=pe(ri);{var Ho=ao=>{var Zi=o4(),po=P(pe(Zi),2);_d(po,{get position(){return Oe()},get duration(){return _e()},get timeCodes(){return Qi}}),b(ao,Zi)};R(ji,ao=>{s(Ln)&&ao(Ho)})}b(rt,ri)},$$slots:{default:!0}}),g(Dn),tt(Dn,rt=>ei.bottomRight=rt,()=>ei==null?void 0:ei.bottomRight);var ni=P(Dn,2),hn=_(ni);{var Jo=rt=>{bo(rt,{get ref(){return pt.volume},set ref(mt){pt.volume=mt},children:(mt,ri)=>{mu(mt,{get muted(){return Ve()},click:xo})},$$slots:{default:!0}})};R(hn,rt=>{s(vn)&&rt(Jo)})}var _n=P(hn,2);{var bn=rt=>{bo(rt,{get ref(){return pt.settings},set ref(mt){pt.settings=mt},children:(mt,ri)=>{al(mt,{get ref$(){return wo}})},$$slots:{default:!0}})};R(_n,rt=>{s(ro)&&rt(bn)})}var $n=P(_n,2);{var Yi=rt=>{bo(rt,{get ref(){return pt.fullscreen},set ref(mt){pt.fullscreen=mt},children:(mt,ri)=>{md(mt,{get click(){return e.toggleFullscreen},get isFullscreen(){return ae()}})},$$slots:{default:!0}})};R($n,rt=>{s(Bo)&&rt(Yi)})}g(ni),tt(ni,rt=>ei.bottomRight=rt,()=>ei==null?void 0:ei.bottomRight),g(On),tt(On,rt=>ce(rt),()=>ce());var uo=P(On,2);ma(uo,{get isAds(){return ne()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return U()},get ref(){return pt.timeline},set ref(rt){pt.timeline=rt}}),g(or),g(Bn),tt(Bn,rt=>ve(rt),()=>ve());var Fn=P(Bn,2);{var wr=rt=>{xd(rt,{get ref(){return pt.interactiveTimeIndicator},set ref(mt){pt.interactiveTimeIndicator=mt}})};R(Fn,rt=>{Go&&rt(wr)})}O((rt,mt)=>{ir=J(Bn,1,"wrapper-bottom svelte-9xcbwc",null,ir,rt),xr=J(or,1,"controls-wrapper svelte-9xcbwc",null,xr,mt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:ae()})]),b(t,so),H(),o()}dt(["click"]);function kd(t,e){D(e,!0);let[i,o]=Fe(),n=()=>C(T,"$isMobile",i),r=m(e,"bottomNoSmooth",3,!1),l=m(e,"playerControlsWrapperRef",15,void 0),d=m(e,"playerControlsRef",15,void 0),a=m(e,"isAds",3,!1),p=m(e,"logoTargetUrl",3,""),f=m(e,"showAutoplayNext",3,!1),v=m(e,"isOneVideoPlaylist",3,!1),u=m(e,"customFullscreenSupported",3,!0),$=m(e,"endScreenShown",3,!1),w=m(e,"onDisabledPlayPrevChapterClick",3,C1),y=m(e,"onDisabledSeekToInteractiveClick",3,C1),T=Ee().ui.isMobile,I=Y(!1);Nt(()=>{let L=setTimeout(()=>B(I,!0),0);return()=>clearTimeout(L)});var A=ze(),k=pe(A);{var E=L=>{var K=ze(),U=pe(K);{var W=te=>{am(te,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return r()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return v()},get customFullscreenSupported(){return u()},get endScreenShown(){return $()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return y()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(j){l(j)},get playerControlsRef(){return d()},set playerControlsRef(j){d(j)}})},G=te=>{tm(te,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return r()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get isOneVideoPlaylist(){return v()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return u()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(j){l(j)},get playerControlsRef(){return d()},set playerControlsRef(j){d(j)}})};R(U,te=>{n()?te(W):te(G,!1)})}b(L,K)};R(k,L=>{s(I)&&L(E)})}b(t,A),H(),o()}var s4=Se('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"></path></g><defs><filter id="a" width="43.996" height="49.5" x="2.5" y="0" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_100684"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_100684" result="shape"></feBlend></filter></defs></svg>');function lm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=s4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}function dm(t,e){let i=m(e,"reversed",3,!1),o=h(()=>i()?"transform: scaleX(-1);":void 0);lm(t,{get style(){return s(o)}})}var a4=Se('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22" clip-rule="evenodd"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="45" x="-1.5" y="1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104204"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104204" result="shape"></feBlend></filter></defs></svg>');function cm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=a4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}var l4=Se('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="51" x="-1.5" y="-1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104293"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104293" result="shape"></feBlend></filter></defs></svg>');function um(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=l4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}function vu(t,e){let i=m(e,"isOff",3,!1);var o=ze(),n=pe(o);{var r=d=>{um(d,{})},l=d=>{cm(d,{})};R(n,d=>{i()?d(r):d(l,!1)})}b(t,o)}var d4=Se('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"></path></g><defs><filter id="a" width="40.098" height="27.785" x="3.402" y="10.105" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_106627"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_106627" result="shape"></feBlend></filter></defs></svg>');function pm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=d4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}function fm(t,e){let i=m(e,"reversed",3,!1),o=h(()=>i()?"transform: scaleX(-1);":void 0);pm(t,{get style(){return s(o)}})}var c4=Se('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"></path></g><defs><filter id="a" width="37" height="37" x="5.5" y="5.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2340_106922"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2340_106922" result="shape"></feBlend></filter></defs></svg>');function mm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=c4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}function vm(t,e){let i=m(e,"reversed",3,!1),o=h(()=>i()?"transform: scaleX(-1);":void 0);mm(t,{get style(){return s(o)}})}var u4=M('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),p4=M('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),f4=M("<div><!></div>"),m4={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;
262
262
  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"],
263
263
  .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"],
264
264
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
@@ -273,23 +273,23 @@ Try switching the\xA0quality to\xA0Auto.`},wh=v_;var ms=new Map;ms.set(Ch.EN,wh)
273
273
  @keyframes svelte-1ad3n06-fadeOut {
274
274
  0% {opacity:1;}
275
275
  100% {opacity:0;}
276
- }`};function fm(t,e){F(e,!0),q(t,l4);let[i,o]=Be(),n=()=>S(e.data,"$data",i),l=ke().ui.t,d=g(()=>!n()),a=g(()=>{var C;return((C=n())==null?void 0:C.type)==="BACKWARD_SEEK"}),u=g(()=>{var C;return((C=n())==null?void 0:C.type)==="FORWARD_SEEK"}),f=g(()=>{var C;return(C=n())==null?void 0:C.type}),v=g(()=>{var C,T;return(C=n())!=null&&C.t?l(n().t.key,{value:n().t.value||""}):(T=n())==null?void 0:T.text});var p=a4();let b;var x=_(p);{var y=C=>{var T=s4(),E=ve(T),M=_(E);{var k=ce=>{let fe=g(()=>r(f)==="FORWARD_SEEK");sm(ce,{get reversed(){return r(fe)}})};L(M,ce=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(f))&&ce(k)})}var I=P(M,2);{var N=ce=>{bs(ce,{})};L(I,ce=>{r(f)==="PAUSE"&&ce(N)})}var Y=P(I,2);{var D=ce=>{Nr(ce,{})};L(Y,ce=>{r(f)==="PLAY"&&ce(D)})}var H=P(Y,2);{var W=ce=>{xd(ce,{})};L(H,ce=>{r(f)==="REPLAY"&&ce(W)})}var ee=P(H,2);{var K=ce=>{vu(ce,{isOff:!0})};L(ee,ce=>{r(f)==="SUBTITLES_OFF"&&ce(K)})}var de=P(ee,2);{var oe=ce=>{vu(ce,{})};L(de,ce=>{r(f)==="SUBTITLES_ON"&&ce(oe)})}var we=P(de,2);{var Ie=ce=>{let fe=g(()=>r(f)==="RATE_UP");cm(ce,{get reversed(){return r(fe)}})};L(we,ce=>{["RATE_DOWN","RATE_UP"].includes(r(f))&&ce(Ie)})}var pe=P(we,2);{var le=ce=>{let fe=g(()=>r(f)==="EPISODE_NEXT");pm(ce,{get reversed(){return r(fe)}})};L(pe,ce=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(f))&&ce(le)})}var Ae=P(pe,2);{var te=ce=>{Ns(ce,{volume:0})};L(Ae,ce=>{r(f)==="MUTE"&&ce(te)})}var R=P(Ae,2);{var Ge=ce=>{Ns(ce,{volume:1})};L(R,ce=>{r(f)==="VOLUME"&&ce(Ge)})}h(E);var ie=P(E,2);{var Ke=ce=>{var fe=r4(),$e=_(fe,!0);h(fe),O(()=>he($e,r(v))),$(ce,fe)};L(ie,ce=>{r(v)&&ce(Ke)})}$(C,T)};L(x,C=>{!r(d)&&r(f)&&C(y)})}h(p),O(C=>b=J(p,1,"hot-key-helpers-container svelte-1ad3n06",null,b,C),[()=>({hidden:r(d),"hot-key-helpers-container--left":r(a),"hot-key-helpers-container--right":r(u)})]),$(t,p),U(),o()}var d4=Te('<svg><!><path fill="currentColor" fill-opacity=".72" fill-rule="evenodd" d="M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272" clip-rule="evenodd"></path></svg>');function mm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=d4();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(),h(o),$(t,o)}var c4=Te('<svg><!><path fill="currentColor" d="m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"></path></svg>');function vm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=c4();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(),h(o),$(t,o)}function Ds(t,e){F(e,!0);let i=m(e,"direction",3,"left"),o=m(e,"useBtnColor",3,!1),n=g(()=>["up","down"].includes(i())),s=g(()=>["right","down"].includes(i())),l=g(()=>(()=>{let v="";return r(s)&&(v+="transform: rotate(180deg);"),o()&&(v+="color: var(--btn-color, #fff);"),v.length?v:void 0})());var d=Fe(),a=ve(d);{var u=v=>{let p=g(()=>r(s)?"chevron-icon--down":"chevron-icon--up");mm(v,{get style(){return r(l)},get"data-testid"(){return r(p)}})},f=v=>{let p=g(()=>r(s)?"chevron-icon--right":"chevron-icon--left");vm(v,{get style(){return r(l)},get"data-testid"(){return r(p)}})};L(a,v=>{r(n)?v(u):v(f,!1)})}$(t,d),U()}var u4=(t,e,i,o,n,s)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":n();break;case"ArrowRight":s();break}},p4=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},f4=A('<div tabindex="0" role="button"><div class="button-block svelte-1yzc86r" aria-hidden="true"><div class="button-row svelte-1yzc86r"><div class="button button-up svelte-1yzc86r"><!></div> <div class="button button-right svelte-1yzc86r"><!></div></div> <div class="button-row svelte-1yzc86r"><div class="button button-left svelte-1yzc86r"><!></div> <div class="button button-down svelte-1yzc86r"><!></div></div></div></div>'),m4={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 kd(t,e){F(e,!0),q(t,m4);let i=m(e,"isShifted",3,!1),o=ke(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),s=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},a=()=>{o.actions.internal.startCameraManualRotation(-1,0)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),f=z("aria_label_spherical_control");var v=f4();let p;v.__keydown=[u4,n,s,l,a,d],v.__keyup=[p4,n,u];var b=_(v),x=_(b),y=_(x);y.__mousedown=s,y.__mouseup=u;var C=_(y);Ds(C,{direction:"up",useBtnColor:!0}),h(y);var T=P(y,2);T.__mousedown=d,T.__mouseup=u;var E=_(T);Ds(E,{direction:"up",useBtnColor:!0}),h(T),h(x);var M=P(x,2),k=_(M);k.__mousedown=a,k.__mouseup=u;var I=_(k);Ds(I,{direction:"up",useBtnColor:!0}),h(k);var N=P(k,2);N.__mousedown=l,N.__mouseup=u;var Y=_(N);Ds(Y,{direction:"up",useBtnColor:!0}),h(N),h(M),h(b),h(v),O(D=>{p=J(v,1,"immersive-controls svelte-1yzc86r",null,p,D),Oe(v,"aria-label",f)},[()=>({"m-shifted":i()})]),xt("mouseleave",y,u),xt("mouseleave",T,u),xt("mouseleave",k,u),xt("mouseleave",N,u),$(t,v),U()}at(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as $1,Subscription as v4,filterChanged as g4,filter as h4}from"@vkontakte/videoplayer-shared/es2018";var b1=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var gu=class{constructor(){this.flickeringTimeout=b1(1e3);this.subscriptions=new v4;this.isAuto=!1;this.isLive=!1;this.captions$=new $1([]);this.captionsPrepared$=new $1([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(h4(()=>this.isEnabled()),g4()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let i=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&i.push([{value:String(e[0].value),timeAppeared:null}]),i.push(e.reduce((n,{type:s,value:l},d)=>(o&&!d||(s==="timestamp"?n.push({timeAppeared:Number(l),value:""}):n.length===0?n.push({value:String(l)}):n[n.length-1].value=String(l)),n),[])),this.captionsPrepared$.next(i)}};var _4=A('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),b4=A('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),$4=A('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),y4=A('<div><span class="caption svelte-c2x749"><!></span></div>'),x4=A("<div><!></div>"),w4={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;
277
- /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function xa(t,e){F(e,!0),q(t,w4);let[i,o]=Be(),n=()=>S(v,"$currentSubtitle$",i),s=()=>S(b,"$isLive$",i),l=()=>S(x,"$isFullscreen",i),d=()=>S(p,"$isAutoSubtitleCaptionVisible$",i),a=m(e,"isMobile",3,!1),u=ke(),f=Ft(),v=u.state.currentSubtitle$,p=u.state.isAutoSubtitleCaptionVisible$,b=u.state.isLive$,x=u.ui.isFullscreen,y=g(()=>!!n().isAuto),C=g(()=>!!s()),T=g(()=>e.playerSize.width*.02),E=g(()=>a()&&!l()||r(T)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:r(T)),M=j(null);We(()=>{var W,ee,K;(W=r(M))==null||W.setIsAuto(r(y)),(ee=r(M))==null||ee.setIsLive(r(C)),(K=r(M))==null||K.setCaptions(e.captions)});let k=j(ii([[]]));Nt(()=>{B(M,new gu().subscribe(),!0);let W=r(M).captionsPrepared$.subscribe(ee=>{B(k,ee,!0)});return()=>{var ee;(ee=r(M))==null||ee.destroy(),W.unsubscribe()}}),Nt(()=>{if(r(y)){let W=window.setTimeout(()=>{p.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(W)}}else p.set(!1)});let I=g(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var N=x4();let Y;var D=_(N);{var H=W=>{var ee=y4();let K;var de=_(ee),oe=_(de);{var we=pe=>{var le=_4(),Ae=_(le),te=_(Ae,!0);h(Ae),h(le),O(R=>{var Ge;it(Ae,`font-size: ${(Ge=r(E))!=null?Ge:""}px`),he(te,R)},[()=>z("subtitles_auto_caption")]),$(pe,le)},Ie=(pe,le)=>{{var Ae=R=>{var Ge=Fe(),ie=ve(Ge);xi(ie,17,()=>r(k),Bl,(Ke,ce)=>{var fe=b4(),$e=_(fe);xi($e,21,()=>r(ce),({value:Z,timeAppeared:qe})=>qe,(Z,qe)=>{let Ze=()=>r(qe).value,Pe=()=>r(qe).timeAppeared;var re=Fe(),Ee=ve(re);{var Qe=rt=>{var nt=jr();O(()=>he(nt,Ze())),$(rt,nt)};L(Ee,rt=>{(!Pe()||Pe()<=e.position)&&rt(Qe)})}$(Z,re)}),h($e),h(fe),O(()=>{var Z;return it($e,`font-size: ${(Z=r(E))!=null?Z:""}px`)}),$(Ke,fe)}),$(R,Ge)},te=R=>{var Ge=Fe(),ie=ve(Ge);xi(ie,17,()=>e.captions,({value:Ke})=>Ke,(Ke,ce)=>{let fe=()=>r(ce).value;var $e=$4(),Z=_($e),qe=_(Z,!0);h(Z),h($e),O(()=>{var Ze;it(Z,`font-size: ${(Ze=r(E))!=null?Ze:""}px`),he(qe,fe())}),$(Ke,$e)}),$(R,Ge)};L(pe,R=>{var Ge;r(y)&&((Ge=r(k))!=null&&Ge.length)?R(Ae):R(te,!1)},le)}};L(oe,pe=>{r(y)&&d()?pe(we):pe(Ie,!1)})}h(de),h(ee),O(pe=>{var le;K=J(ee,1,"subtitles-caption svelte-c2x749",null,K,pe),it(ee,`--subtitles-caption-margin: ${(le=r(I))!=null?le:""}%`)},[()=>({mobile:a()})]),$(W,ee)};L(D,W=>{var ee;(e.captions.length||(ee=r(k))!=null&&ee.length)&&W(H)})}h(N),O(W=>Y=J(N,1,"subtitles-container svelte-c2x749",null,Y,W),[()=>({shifted:e.shifted,auto:r(y)&&!r(C)&&!d()})]),$(t,N),U(),o()}var S4=A('<div class="text svelte-raurnb"> </div>'),C4=A('<div><div class="icon_wrapper svelte-raurnb"><svg class="icon svelte-raurnb" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)"></path><path d="M0 0h24v24H0z"></path></g></svg></div> <!></div>'),T4={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 Pd(t,e){F(e,!0),q(t,T4);let i=Ft();var o=C4();let n;var s=P(_(o),2);{var l=d=>{var a=S4(),u=_(a);h(a),O(()=>{var f;return he(u,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(f=e.chromecastDeviceName)!=null?f:""}`)}),$(d,a)};L(s,d=>{e.chromecastDeviceName&&d(l)})}h(o),O(d=>{n=J(o,1,"wrapper svelte-raurnb",null,n,d),it(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),U()}var E4=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657s2.315 1.158 4.357-.327c-.007.007 5.357-4.515 11.408-4.515z"></path></svg>');function gm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=E4();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200","aria-hidden":"true","data-testid":"error-icon",viewBox:"460 190 130 90",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(),h(o),$(t,o)}var I4=A('<div class="container svelte-13zpvm8"><!></div>'),k4={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 Ad(t){q(t,k4);var e=I4(),i=_(e);gm(i,{}),h(e),$(t,e)}var P4=A('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),A4=A("<div><!></div>"),M4={hash:"svelte-1ciju45",code:`.container.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer;transition:opacity 0.2s,
276
+ }`};function gm(t,e){D(e,!0),z(t,m4);let[i,o]=Fe(),n=()=>C(e.data,"$data",i),l=Ee().ui.t,d=h(()=>!n()),a=h(()=>{var S;return((S=n())==null?void 0:S.type)==="BACKWARD_SEEK"}),p=h(()=>{var S;return((S=n())==null?void 0:S.type)==="FORWARD_SEEK"}),f=h(()=>{var S;return(S=n())==null?void 0:S.type}),v=h(()=>{var S,T;return(S=n())!=null&&S.t?l(n().t.key,{value:n().t.value||""}):(T=n())==null?void 0:T.text});var u=f4();let $;var w=_(u);{var y=S=>{var T=p4(),I=pe(T),A=_(I);{var k=ce=>{let ne=h(()=>s(f)==="FORWARD_SEEK");dm(ce,{get reversed(){return s(ne)}})};R(A,ce=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(s(f))&&ce(k)})}var E=P(A,2);{var L=ce=>{vs(ce,{})};R(E,ce=>{s(f)==="PAUSE"&&ce(L)})}var K=P(E,2);{var U=ce=>{Br(ce,{})};R(K,ce=>{s(f)==="PLAY"&&ce(U)})}var W=P(K,2);{var G=ce=>{wd(ce,{})};R(W,ce=>{s(f)==="REPLAY"&&ce(G)})}var te=P(W,2);{var j=ce=>{vu(ce,{isOff:!0})};R(te,ce=>{s(f)==="SUBTITLES_OFF"&&ce(j)})}var ae=P(te,2);{var de=ce=>{vu(ce,{})};R(ae,ce=>{s(f)==="SUBTITLES_ON"&&ce(de)})}var we=P(ae,2);{var Re=ce=>{let ne=h(()=>s(f)==="RATE_UP");fm(ce,{get reversed(){return s(ne)}})};R(we,ce=>{["RATE_DOWN","RATE_UP"].includes(s(f))&&ce(Re)})}var me=P(we,2);{var le=ce=>{let ne=h(()=>s(f)==="EPISODE_NEXT");vm(ce,{get reversed(){return s(ne)}})};R(me,ce=>{["EPISODE_PREV","EPISODE_NEXT"].includes(s(f))&&ce(le)})}var Ve=P(me,2);{var ee=ce=>{Ms(ce,{volume:0})};R(Ve,ce=>{s(f)==="MUTE"&&ce(ee)})}var N=P(Ve,2);{var Oe=ce=>{Ms(ce,{volume:1})};R(N,ce=>{s(f)==="VOLUME"&&ce(Oe)})}g(I);var _e=P(I,2);{var ve=ce=>{var ne=u4(),ye=_(ne,!0);g(ne),O(()=>he(ye,s(v))),b(ce,ne)};R(_e,ce=>{s(v)&&ce(ve)})}b(S,T)};R(w,S=>{!s(d)&&s(f)&&S(y)})}g(u),O(S=>$=J(u,1,"hot-key-helpers-container svelte-1ad3n06",null,$,S),[()=>({hidden:s(d),"hot-key-helpers-container--left":s(a),"hot-key-helpers-container--right":s(p)})]),b(t,u),H(),o()}var v4=Se('<svg><!><path fill="currentColor" fill-opacity=".72" fill-rule="evenodd" d="M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272" clip-rule="evenodd"></path></svg>');function hm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=v4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var g4=Se('<svg><!><path fill="currentColor" d="m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"></path></svg>');function _m(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=g4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}function Rs(t,e){D(e,!0);let i=m(e,"direction",3,"left"),o=m(e,"useBtnColor",3,!1),n=h(()=>["up","down"].includes(i())),r=h(()=>["right","down"].includes(i())),l=h(()=>(()=>{let v="";return s(r)&&(v+="transform: rotate(180deg);"),o()&&(v+="color: var(--btn-color, #fff);"),v.length?v:void 0})());var d=ze(),a=pe(d);{var p=v=>{let u=h(()=>s(r)?"chevron-icon--down":"chevron-icon--up");hm(v,{get style(){return s(l)},get"data-testid"(){return s(u)}})},f=v=>{let u=h(()=>s(r)?"chevron-icon--right":"chevron-icon--left");_m(v,{get style(){return s(l)},get"data-testid"(){return s(u)}})};R(a,v=>{s(n)?v(p):v(f,!1)})}b(t,d),H()}var h4=(t,e,i,o,n,r)=>{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":r();break}},_4=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},b4=M('<div tabindex="0" role="button"><div class="button-block svelte-1yzc86r" aria-hidden="true"><div class="button-row svelte-1yzc86r"><div class="button button-up svelte-1yzc86r"><!></div> <div class="button button-right svelte-1yzc86r"><!></div></div> <div class="button-row svelte-1yzc86r"><div class="button button-left svelte-1yzc86r"><!></div> <div class="button button-down svelte-1yzc86r"><!></div></div></div></div>'),$4={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 Pd(t,e){D(e,!0),z(t,$4);let i=m(e,"isShifted",3,!1),o=Ee(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),r=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},a=()=>{o.actions.internal.startCameraManualRotation(-1,0)},p=()=>(o.actions.internal.stopCameraManualRotation(),null),f=F("aria_label_spherical_control");var v=b4();let u;v.__keydown=[h4,n,r,l,a,d],v.__keyup=[_4,n,p];var $=_(v),w=_($),y=_(w);y.__mousedown=r,y.__mouseup=p;var S=_(y);Rs(S,{direction:"up",useBtnColor:!0}),g(y);var T=P(y,2);T.__mousedown=d,T.__mouseup=p;var I=_(T);Rs(I,{direction:"up",useBtnColor:!0}),g(T),g(w);var A=P(w,2),k=_(A);k.__mousedown=a,k.__mouseup=p;var E=_(k);Rs(E,{direction:"up",useBtnColor:!0}),g(k);var L=P(k,2);L.__mousedown=l,L.__mouseup=p;var K=_(L);Rs(K,{direction:"up",useBtnColor:!0}),g(L),g(A),g($),g(v),O(U=>{u=J(v,1,"immersive-controls svelte-1yzc86r",null,u,U),Be(v,"aria-label",f)},[()=>({"m-shifted":i()})]),Tt("mouseleave",y,p),Tt("mouseleave",T,p),Tt("mouseleave",k,p),Tt("mouseleave",L,p),b(t,v),H()}dt(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as T1,Subscription as y4,filterChanged as x4,filter as w4}from"@vkontakte/videoplayer-shared/es2018";var S1=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var gu=class{constructor(){this.flickeringTimeout=S1(1e3);this.subscriptions=new y4;this.isAuto=!1;this.isLive=!1;this.captions$=new T1([]);this.captionsPrepared$=new T1([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(w4(()=>this.isEnabled()),x4()).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:r,value:l},d)=>(o&&!d||(r==="timestamp"?n.push({timeAppeared:Number(l),value:""}):n.length===0?n.push({value:String(l)}):n[n.length-1].value=String(l)),n),[])),this.captionsPrepared$.next(i)}};var C4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),S4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),T4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),E4=M('<div><span class="caption svelte-c2x749"><!></span></div>'),I4=M("<div><!></div>"),k4={hash:"svelte-c2x749",code:`.subtitles-container.svelte-c2x749 {position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration);}.subtitles-container.shifted.svelte-c2x749 {transform:translateY(calc(var(--controls-height) * -1));}.subtitles-caption.svelte-c2x749 {position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center;}.subtitles-caption.mobile.svelte-c2x749 {bottom:8%;}.subtitles-container.auto.svelte-c2x749 .subtitles-caption:where(.svelte-c2x749) {left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin);}.caption.svelte-c2x749 {display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4);}.subtitles-container.auto.svelte-c2x749 .caption:where(.svelte-c2x749) {width:100%;}.caption-line.svelte-c2x749 {display:block;text-align:center;}.subtitles-container.auto.svelte-c2x749 .caption-line:where(.svelte-c2x749) {text-align:left;}.caption-segment.svelte-c2x749 {display:inline-block;line-height:1.2;font-size:13px;
277
+ /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function ba(t,e){D(e,!0),z(t,k4);let[i,o]=Fe(),n=()=>C(v,"$currentSubtitle$",i),r=()=>C($,"$isLive$",i),l=()=>C(w,"$isFullscreen",i),d=()=>C(u,"$isAutoSubtitleCaptionVisible$",i),a=m(e,"isMobile",3,!1),p=Ee(),f=Ft(),v=p.state.currentSubtitle$,u=p.state.isAutoSubtitleCaptionVisible$,$=p.state.isLive$,w=p.ui.isFullscreen,y=h(()=>!!n().isAuto),S=h(()=>!!r()),T=h(()=>e.playerSize.width*.02),I=h(()=>a()&&!l()||s(T)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:s(T)),A=Y(null);qe(()=>{var G,te,j;(G=s(A))==null||G.setIsAuto(s(y)),(te=s(A))==null||te.setIsLive(s(S)),(j=s(A))==null||j.setCaptions(e.captions)});let k=Y(ti([[]]));Nt(()=>{B(A,new gu().subscribe(),!0);let G=s(A).captionsPrepared$.subscribe(te=>{B(k,te,!0)});return()=>{var te;(te=s(A))==null||te.destroy(),G.unsubscribe()}}),Nt(()=>{if(s(y)){let G=window.setTimeout(()=>{u.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(G)}}else u.set(!1)});let E=h(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var L=I4();let K;var U=_(L);{var W=G=>{var te=E4();let j;var ae=_(te),de=_(ae);{var we=me=>{var le=C4(),Ve=_(le),ee=_(Ve,!0);g(Ve),g(le),O(N=>{var Oe;at(Ve,`font-size: ${(Oe=s(I))!=null?Oe:""}px`),he(ee,N)},[()=>F("subtitles_auto_caption")]),b(me,le)},Re=(me,le)=>{{var Ve=N=>{var Oe=ze(),_e=pe(Oe);wi(_e,17,()=>s(k),Ol,(ve,ce)=>{var ne=S4(),ye=_(ne);wi(ye,21,()=>s(ce),({value:Z,timeAppeared:Ke})=>Ke,(Z,Ke)=>{let ue=()=>s(Ke).value,ke=()=>s(Ke).timeAppeared;var Ae=ze(),Te=pe(Ae);{var Qe=nt=>{var _t=Yr();O(()=>he(_t,ue())),b(nt,_t)};R(Te,nt=>{(!ke()||ke()<=e.position)&&nt(Qe)})}b(Z,Ae)}),g(ye),g(ne),O(()=>{var Z;return at(ye,`font-size: ${(Z=s(I))!=null?Z:""}px`)}),b(ve,ne)}),b(N,Oe)},ee=N=>{var Oe=ze(),_e=pe(Oe);wi(_e,17,()=>e.captions,({value:ve})=>ve,(ve,ce)=>{let ne=()=>s(ce).value;var ye=T4(),Z=_(ye),Ke=_(Z,!0);g(Z),g(ye),O(()=>{var ue;at(Z,`font-size: ${(ue=s(I))!=null?ue:""}px`),he(Ke,ne())}),b(ve,ye)}),b(N,Oe)};R(me,N=>{var Oe;s(y)&&((Oe=s(k))!=null&&Oe.length)?N(Ve):N(ee,!1)},le)}};R(de,me=>{s(y)&&d()?me(we):me(Re,!1)})}g(ae),g(te),O(me=>{var le;j=J(te,1,"subtitles-caption svelte-c2x749",null,j,me),at(te,`--subtitles-caption-margin: ${(le=s(E))!=null?le:""}%`)},[()=>({mobile:a()})]),b(G,te)};R(U,G=>{var te;(e.captions.length||(te=s(k))!=null&&te.length)&&G(W)})}g(L),O(G=>K=J(L,1,"subtitles-container svelte-c2x749",null,K,G),[()=>({shifted:e.shifted,auto:s(y)&&!s(S)&&!d()})]),b(t,L),H(),o()}var P4=M('<div class="text svelte-raurnb"> </div>'),A4=M('<div><div class="icon_wrapper svelte-raurnb"><svg class="icon svelte-raurnb" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)"></path><path d="M0 0h24v24H0z"></path></g></svg></div> <!></div>'),M4={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 Ad(t,e){D(e,!0),z(t,M4);let i=Ft();var o=A4();let n;var r=P(_(o),2);{var l=d=>{var a=P4(),p=_(a);g(a),O(()=>{var f;return he(p,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(f=e.chromecastDeviceName)!=null?f:""}`)}),b(d,a)};R(r,d=>{e.chromecastDeviceName&&d(l)})}g(o),O(d=>{n=J(o,1,"wrapper svelte-raurnb",null,n,d),at(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),b(t,o),H()}var L4=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657s2.315 1.158 4.357-.327c-.007.007 5.357-4.515 11.408-4.515z"></path></svg>');function bm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=L4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200","aria-hidden":"true","data-testid":"error-icon",viewBox:"460 190 130 90",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var V4=M('<div class="container svelte-13zpvm8"><!></div>'),R4={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 $a(t){z(t,R4);var e=V4(),i=_(e);bm(i,{}),g(e),b(t,e)}var N4=M('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),B4=M("<div><!></div>"),O4={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,
278
278
  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,
279
- 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 wa(t,e){F(e,!0),q(t,M4);let i=m(e,"iconVisible",3,!0),o=ke(),n=Ft(),s=o.ui.startedByKeyboard$,l=z("tooltip_play"),d=b=>{var y;let x=b.code;["Enter","Space"].includes(x)&&(b.stopPropagation(),b.preventDefault(),s.set(!0),(y=e.startVideo)==null||y.call(e))},a=b=>{var x;b.stopPropagation(),(x=e.startVideo)==null||x.call(e)};var u=A4();let f;u.__click=a;var v=_(u);{var p=b=>{var x=P4();x.__keydown=d;var y=P(_(x),2);Nr(y,{}),h(x),O(()=>Oe(x,"aria-label",l)),$(b,x)};L(v,b=>{i()&&b(p)})}return h(u),O(b=>{f=J(u,1,"container svelte-1ciju45",null,f,b),it(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),$(t,u),U({handlePressKey:d,handleClick:a})}at(["click","keydown"]);var L4=A('<div data-testid="video_title"><span> </span></div>'),V4={hash:"svelte-14hk510",code:`.title.svelte-14hk510 {position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
279
+ 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 ya(t,e){D(e,!0),z(t,O4);let i=m(e,"iconVisible",3,!0),o=Ee(),n=Ft(),r=o.ui.startedByKeyboard$,l=F("tooltip_play"),d=$=>{var y;let w=$.code;["Enter","Space"].includes(w)&&($.stopPropagation(),$.preventDefault(),r.set(!0),(y=e.startVideo)==null||y.call(e))},a=$=>{var w;$.stopPropagation(),(w=e.startVideo)==null||w.call(e)};var p=B4();let f;p.__click=a;var v=_(p);{var u=$=>{var w=N4();w.__keydown=d;var y=P(_(w),2);Br(y,{}),g(w),O(()=>Be(w,"aria-label",l)),b($,w)};R(v,$=>{i()&&$(u)})}return g(p),O($=>{f=J(p,1,"container svelte-1ciju45",null,f,$),at(p,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),b(t,p),H({handlePressKey:d,handleClick:a})}dt(["click","keydown"]);var D4=M('<div data-testid="video_title"><span> </span></div>'),H4={hash:"svelte-14hk510",code:`.title.svelte-14hk510 {position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
280
280
  0deg,
281
281
  rgba(0, 0, 0, 0) 0%,
282
282
  rgba(0, 0, 0, 0.02) 19%,
283
283
  rgba(0, 0, 0, 0.1) 34%,
284
284
  rgba(0, 0, 0, 0.4) 60%,
285
285
  rgba(0, 0, 0, 0.6) 100%
286
- );}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function hm(t,e){F(e,!0),q(t,V4);let i=m(e,"title",3,""),o=m(e,"isHidden",3,!1),n=m(e,"ref",15),s=j(void 0);Nt(()=>{var v;requestAnimationFrame(()=>{var p;(p=e.onVisibilityChanged)==null||p.call(e,!0)});function f(p){var b;p.propertyName==="transform"&&((b=e.onVisibilityChanged)==null||b.call(e,!o()))}return(v=r(s))==null||v.addEventListener("transitionend",f),()=>{var p;return(p=r(s))==null?void 0:p.removeEventListener("transitionend",f)}});var l=L4();let d;var a=_(l),u=_(a,!0);h(a),et(a,f=>n(f),()=>n()),h(l),et(l,f=>B(s,f),()=>r(s)),O(f=>{d=J(l,1,"title svelte-14hk510",null,d,f),he(u,i())},[()=>({hidden:o()})]),$(t,l),U()}var R4=A('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),N4=A('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),B4=A('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),O4=A('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div>'),D4=A("<div><!> <!> <!> <!></div>"),H4={hash:"svelte-gt98rn",code:".timer__container.svelte-gt98rn {display:flex;align-items:flex-start;justify-content:center;}.cell.svelte-gt98rn {display:flex;flex-direction:column;align-items:center;}.cell__value.svelte-gt98rn {font-size:48px;line-height:1.2;font-weight:600;}.small.svelte-gt98rn .cell__value:where(.svelte-gt98rn) {font-size:24px;}.cell__unit.svelte-gt98rn {font-size:14px;line-height:1.2;font-weight:400;}.small.svelte-gt98rn .cell__unit:where(.svelte-gt98rn) {font-size:12px;}.timer__points.svelte-gt98rn {display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600;}.small.svelte-gt98rn .timer__points:where(.svelte-gt98rn) {font-size:20px;}"};function _m(t,e){F(e,!0),q(t,H4);let i=j(""),o=j(""),n=j(""),s=j(""),l,d=32,a=d/2,u=D=>String(D).padStart(2,"0"),f=D=>Math.max(D.length,1),v=D=>`${(e.isSmallSize?a:d)*f(D)}px`,p=D=>{let H=Math.floor(D/86400);H&&(D-=H*86400,B(i,u(H),!0));let W=Math.floor(D/3600);B(o,u(W),!0);let ee=Math.floor(D/60)%60;B(n,u(ee),!0);let K=D%60;B(s,u(K),!0)},b=()=>{let D=Math.floor(Date.now()/1e3),H=e.startTime-D;p(H),H>=1?l=requestAnimationFrame(b):e.onTimerOver()};Nt(()=>{l=requestAnimationFrame(b)}),Xo(()=>{cancelAnimationFrame(l)});var x=D4();let y;var C=_(x);{var T=D=>{var H=R4(),W=ve(H);let ee;var K=_(W),de=_(K,!0);h(K);var oe=P(K,2),we=_(oe,!0);h(oe),h(W);var Ie=P(W,2),pe=_(Ie,!0);h(Ie),O((le,Ae,te)=>{ee=it(W,"",ee,{width:le}),he(de,r(i)),he(we,Ae),he(pe,te)},[()=>v(r(i)),()=>z("waiting_live_day_value"),()=>z("waiting_live_colon")]),$(D,H)};L(C,D=>{r(i)&&D(T)})}var E=P(C,2);{var M=D=>{var H=N4(),W=ve(H);let ee;var K=_(W),de=_(K,!0);h(K);var oe=P(K,2),we=_(oe,!0);h(oe),h(W);var Ie=P(W,2),pe=_(Ie,!0);h(Ie),O((le,Ae,te)=>{ee=it(W,"",ee,{width:le}),he(de,r(o)),he(we,Ae),he(pe,te)},[()=>v(r(o)),()=>z("waiting_live_hour_value"),()=>z("waiting_live_colon")]),$(D,H)};L(E,D=>{r(o)&&D(M)})}var k=P(E,2);{var I=D=>{var H=B4(),W=ve(H);let ee;var K=_(W),de=_(K,!0);h(K);var oe=P(K,2),we=_(oe,!0);h(oe),h(W);var Ie=P(W,2),pe=_(Ie,!0);h(Ie),O((le,Ae,te)=>{ee=it(W,"",ee,{width:le}),he(de,r(n)),he(we,Ae),he(pe,te)},[()=>v(r(n)),()=>z("waiting_live_minute_value"),()=>z("waiting_live_colon")]),$(D,H)};L(k,D=>{r(n)&&D(I)})}var N=P(k,2);{var Y=D=>{var H=O4();let W;var ee=_(H),K=_(ee,!0);h(ee);var de=P(ee,2),oe=_(de,!0);h(de),h(H),O((we,Ie)=>{W=it(H,"",W,{width:we}),he(K,r(s)),he(oe,Ie)},[()=>v(r(s)),()=>z("waiting_live_second_value")]),$(D,H)};L(N,D=>{r(s)&&D(Y)})}h(x),O(D=>y=J(x,1,"timer__container svelte-gt98rn",null,y,D),[()=>({small:e.isSmallSize})]),$(t,x),U()}var F4=A('<div class="waiting svelte-ye9pkq"><span> </span></div>'),U4=A('<div class="upcoming-timer timer svelte-ye9pkq"><span> </span> <!></div>'),z4=A('<div class="waiting-container svelte-ye9pkq"><!></div>'),W4={hash:"svelte-ye9pkq",code:".waiting-container.svelte-ye9pkq {position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;white-space:nowrap;}.waiting-container.svelte-ye9pkq::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1;backdrop-filter:blur(15px);}.waiting.svelte-ye9pkq {position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:2;}.waiting__title.svelte-ye9pkq {font-size:20px;line-height:1.2;font-weight:600;}.upcoming-timer.svelte-ye9pkq {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2;}.timer.svelte-ye9pkq {display:flex;flex-direction:column;align-items:center;justify-content:center;}.timer__title.svelte-ye9pkq {display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:20px;line-height:1.2;font-weight:600;}.small.svelte-ye9pkq {font-size:15px;}"};function Md(t,e){F(e,!0),q(t,W4);let[i,o]=Be(),n=()=>S(e.playerSize,"$playerSize",i),s=g(()=>e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3)),l=g(()=>{var b,x;return((x=(b=n())==null?void 0:b.width)!=null?x:1/0)<=509}),d=j(void 0),a=j(void 0);We(()=>{e.playerSize&&n(),r(s)?requestAnimationFrame(()=>{var b,x;(b=e.onUpcomingLiveViewStateChanged)==null||b.call(e,"default",!1,r(a)),(x=e.onUpcomingLiveViewStateChanged)==null||x.call(e,"expired",!0,r(d))}):requestAnimationFrame(()=>{var b,x;(b=e.onUpcomingLiveViewStateChanged)==null||b.call(e,"default",!0,r(a)),(x=e.onUpcomingLiveViewStateChanged)==null||x.call(e,"expired",!1,r(d))})}),Xo(()=>{var b,x;(b=e.onUpcomingLiveViewStateChanged)==null||b.call(e,"default",!1,r(a)),(x=e.onUpcomingLiveViewStateChanged)==null||x.call(e,"expired",!1,r(d))});var u=z4(),f=_(u);{var v=b=>{var x=F4(),y=_(x);let C;var T=_(y,!0);h(y),h(x),et(x,E=>B(d,E),()=>r(d)),O((E,M)=>{C=J(y,1,"waiting__title svelte-ye9pkq",null,C,E),he(T,M)},[()=>({small:r(l)}),()=>z("waiting_live_upcoming_title")]),$(b,x)},p=b=>{var x=U4(),y=_(x);let C;var T=_(y,!0);h(y);var E=P(y,2);let M=g(()=>e.startTime||0);_m(E,{get isSmallSize(){return r(l)},get startTime(){return r(M)},onTimerOver:()=>B(s,!0)}),h(x),et(x,k=>B(a,k),()=>r(a)),O((k,I)=>{C=J(y,1,"timer__title svelte-ye9pkq",null,C,k),he(T,I)},[()=>({small:r(l)}),()=>z("waiting_live_timer_title")]),$(b,x)};L(f,b=>{r(s)?b(v):b(p,!1)})}h(u),O(()=>it(u,`background-image: url(${e.thumbUrl})`)),$(t,u),U(),o()}var K4=A('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),q4={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 Sa(t,e){F(e,!0),q(t,q4);let i=m(e,"thumbUrl",3,""),o={recover:z("waiting_live_recover_title"),record:z("waiting_record_title")},n=g(()=>o[e.kind]||"");var s=K4(),l=_(s),d=_(l);ma(d,{style:"position: static; transform: translate(0, 0)"});var a=P(d,2),u=_(a,!0);h(a),h(l),h(s),O(()=>{it(s,`background-image: url('${i()}')`),he(u,r(n))}),$(t,s),U()}var Q4=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"></path></svg>');function bm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Q4();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(),h(o),$(t,o)}var G4=A('<div class="select-icon svelte-124aexk"><!></div>'),Y4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function Ld(t){q(t,Y4);var e=G4(),i=_(e);bm(i,{}),h(e),$(t,e)}var j4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},Z4=(t,e)=>{nl(t,()=>e.item.selectItem(e.item.value))},X4=A("<p> </p>"),J4=A('<p class="sublabel svelte-1t7rx2m"> </p>'),e3=A('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),t3={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;
286
+ );}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function $m(t,e){D(e,!0),z(t,H4);let i=m(e,"title",3,""),o=m(e,"isHidden",3,!1),n=m(e,"ref",15),r=Y(void 0);Nt(()=>{var v;requestAnimationFrame(()=>{var u;(u=e.onVisibilityChanged)==null||u.call(e,!0)});function f(u){var $;u.propertyName==="transform"&&(($=e.onVisibilityChanged)==null||$.call(e,!o()))}return(v=s(r))==null||v.addEventListener("transitionend",f),()=>{var u;return(u=s(r))==null?void 0:u.removeEventListener("transitionend",f)}});var l=D4();let d;var a=_(l),p=_(a,!0);g(a),tt(a,f=>n(f),()=>n()),g(l),tt(l,f=>B(r,f),()=>s(r)),O(f=>{d=J(l,1,"title svelte-14hk510",null,d,f),he(p,i())},[()=>({hidden:o()})]),b(t,l),H()}var F4=M('<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),U4=M('<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),z4=M('<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),W4=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),q4=M('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),K4={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 ym(t,e){D(e,!0),z(t,K4);let i=Y(""),o=Y(""),n=Y(""),r=Y(""),l,d=A=>String(A).padStart(2,"0"),a=A=>{let k=Math.floor(A/86400);k&&(A-=k*86400,B(i,d(k),!0));let E=Math.floor(A/3600);B(o,d(E),!0);let L=Math.floor(A/60)%60;B(n,d(L),!0);let K=A%60;B(r,d(K),!0)},p=()=>{let A=Math.floor(Date.now()/1e3),k=e.startTime-A;a(k),k>=1?l=requestAnimationFrame(p):e.onTimerOver()};Nt(()=>{l=requestAnimationFrame(p)}),En(()=>{cancelAnimationFrame(l)});var f=q4(),v=_(f);{var u=A=>{var k=F4(),E=pe(k),L=_(E),K=_(L,!0);g(L);var U=P(L,2),W=_(U,!0);g(U),g(E);var G=P(E,2),te=_(G,!0);g(G),O((j,ae)=>{he(K,s(i)),he(W,j),he(te,ae)},[()=>F("waiting_live_day_value"),()=>F("waiting_live_colon")]),b(A,k)};R(v,A=>{s(i)&&A(u)})}var $=P(v,2);{var w=A=>{var k=U4(),E=pe(k),L=_(E),K=_(L,!0);g(L);var U=P(L,2),W=_(U,!0);g(U),g(E);var G=P(E,2),te=_(G,!0);g(G),O((j,ae)=>{he(K,s(o)),he(W,j),he(te,ae)},[()=>F("waiting_live_hour_value"),()=>F("waiting_live_colon")]),b(A,k)};R($,A=>{s(o)&&A(w)})}var y=P($,2);{var S=A=>{var k=z4(),E=pe(k),L=_(E),K=_(L,!0);g(L);var U=P(L,2),W=_(U,!0);g(U),g(E);var G=P(E,2),te=_(G,!0);g(G),O((j,ae)=>{he(K,s(n)),he(W,j),he(te,ae)},[()=>F("waiting_live_minute_value"),()=>F("waiting_live_colon")]),b(A,k)};R(y,A=>{s(n)&&A(S)})}var T=P(y,2);{var I=A=>{var k=W4(),E=_(k),L=_(E,!0);g(E);var K=P(E,2),U=_(K,!0);g(K),g(k),O(W=>{he(L,s(r)),he(U,W)},[()=>F("waiting_live_second_value")]),b(A,k)};R(T,A=>{s(r)&&A(I)})}g(f),b(t,f),H()}var Q4=Se('<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 xm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Q4();Ie(o,()=>({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}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(4),g(o),b(t,o)}var G4=M('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),Y4=M('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),j4=M('<div class="waiting-container svelte-15pewff"><!></div>'),Z4={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 Md(t,e){D(e,!0),z(t,Z4);let i=Y(!1);qe(()=>{B(i,e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3),!0)});var o=j4(),n=_(o);{var r=d=>{var a=G4(),p=_(a),f=_(p);xm(f,{}),g(p);var v=P(p,2),u=_(v,!0);g(v),g(a),O($=>he(u,$),[()=>F("waiting_live_upcoming_title")]),b(d,a)},l=d=>{var a=Y4(),p=_(a),f=_(p,!0);g(p);var v=P(p,2);let u=h(()=>e.startTime||0);ym(v,{get startTime(){return s(u)},onTimerOver:()=>B(i,!0)}),g(a),O($=>he(f,$),[()=>F("waiting_live_timer_title")]),b(d,a)};R(n,d=>{s(i)?d(r):d(l,!1)})}g(o),O(()=>at(o,`background-image: url(${s(i)?"":e.thumbUrl})`)),b(t,o),H()}var X4=M('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),J4={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 xa(t,e){D(e,!0),z(t,J4);let i=m(e,"thumbUrl",3,""),o={recover:F("waiting_live_recover_title"),record:F("waiting_record_title")},n=h(()=>o[e.kind]||"");var r=X4(),l=_(r),d=_(l);ua(d,{style:"position: static; transform: translate(0, 0)"});var a=P(d,2),p=_(a,!0);g(a),g(l),g(r),O(()=>{at(r,`background-image: url('${i()}')`),he(p,s(n))}),b(t,r),H()}var e3=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"></path></svg>');function wm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=e3();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var t3=M('<div class="select-icon svelte-124aexk"><!></div>'),i3={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function Ld(t){z(t,i3);var e=t3(),i=_(e);wm(i,{}),g(e),b(t,e)}var o3=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},n3=(t,e)=>{nl(t,()=>e.item.selectItem(e.item.value))},r3=M("<p> </p>"),s3=M('<p class="sublabel svelte-1t7rx2m"> </p>'),a3=M('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),l3={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;
287
287
 
288
288
  /**
289
289
  * \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
290
290
  * \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.
291
291
  */margin-left:calc(var(--icon-padding) + var(--select-icon-width));}.label.svelte-1t7rx2m,
292
- .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function $m(t,e){F(e,!0),q(t,t3);let i=m(e,"isMobile",3,!1);var o=e3();let n;o.__click=[j4,e],o.__keydown=[Z4,e];var s=_(o);{var l=x=>{Ld(x,{})};L(s,x=>{e.item.selected&&x(l)})}var d=P(s,2);let a;var u=_(d);{var f=x=>{var y=Fe(),C=ve(y);wi(C,()=>e.item.valueComponent,(T,E)=>{E(T,fs(()=>{var M;return(M=e.item.valueComponentParams)!=null?M:{}}))}),$(x,y)},v=x=>{var y=X4();let C;var T=_(y,!0);h(y),O(E=>{var M;C=J(y,1,"label svelte-1t7rx2m",null,C,E),he(T,(M=e.item.label)!=null?M:e.item.value)},[()=>({mobile:i()})]),$(x,y)};L(u,x=>{e.item.valueComponent?x(f):x(v,!1)})}var p=P(u,2);{var b=x=>{var y=J4(),C=_(y,!0);h(y),O(()=>he(C,e.item.sublabel)),$(x,y)};L(p,x=>{e.item.sublabel&&x(b)})}h(d),h(o),O((x,y,C)=>{n=J(o,1,"item",null,n,x),Oe(o,"data-value",e.item.value),Oe(o,"aria-label",y),Oe(o,"data-testid",e.item.dataTestid),a=J(d,1,"menu-item-value svelte-1t7rx2m",null,a,C),Oe(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var x,y;return(y=(x=e.item.ariaLabel)!=null?x:e.item.label)!=null?y:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),$(t,o),U()}at(["click","keydown"]);var i3=A('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function ym(t,e){F(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"refMenuItems",15),n=g(()=>()=>e.openSubMenuList(e.item.children)),s=g(()=>y=>Gc(y,r(n)));var l=i3();let d;l.__click=function(...y){var C;(C=r(n))==null||C.apply(this,y)},l.__keydown=function(...y){var C;(C=r(s))==null||C.apply(this,y)};var a=_(l);{var u=y=>{Ld(y,{})};L(a,y=>{e.item.selected&&y(u)})}var f=P(a,2);let v;var p=_(f);{var b=y=>{var C=Fe();let T=g(()=>e.item.valueComponent);var E=ve(C);wi(E,()=>r(T),(M,k)=>{k(M,fs(()=>{var I;return(I=e.item.valueComponentParams)!=null?I:{}}))}),$(y,C)},x=y=>{var C=jr();O(()=>he(C,e.item.label)),$(y,C)};L(p,y=>{e.item.valueComponent?y(b):y(x,!1)})}h(f),h(l),et(l,y=>o(o()[e.item.id]=y,!0),()=>{var y;return(y=o())==null?void 0:y[e.item.id]}),O((y,C)=>{var T;d=J(l,1,"item",null,d,y),Oe(l,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),Oe(l,"data-testid",e.item.id),v=J(f,1,"menu-item-value",null,v,C)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),$(t,l),U()}at(["click","keydown"]);var Br={"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 n3=(t,e)=>{Hh(t,e.returnFromSubMenu,e.closeSettingsMenu)},r3=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},s3=(t,e)=>{ed(t)&&(vr(t),e.returnFromSubMenu())},a3=A('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),l3={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
292
+ .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function Cm(t,e){D(e,!0),z(t,l3);let i=m(e,"isMobile",3,!1);var o=a3();let n;o.__click=[o3,e],o.__keydown=[n3,e];var r=_(o);{var l=w=>{Ld(w,{})};R(r,w=>{e.item.selected&&w(l)})}var d=P(r,2);let a;var p=_(d);{var f=w=>{var y=ze(),S=pe(y);Ci(S,()=>e.item.valueComponent,(T,I)=>{I(T,ds(()=>{var A;return(A=e.item.valueComponentParams)!=null?A:{}}))}),b(w,y)},v=w=>{var y=r3();let S;var T=_(y,!0);g(y),O(I=>{var A;S=J(y,1,"label svelte-1t7rx2m",null,S,I),he(T,(A=e.item.label)!=null?A:e.item.value)},[()=>({mobile:i()})]),b(w,y)};R(p,w=>{e.item.valueComponent?w(f):w(v,!1)})}var u=P(p,2);{var $=w=>{var y=s3(),S=_(y,!0);g(y),O(()=>he(S,e.item.sublabel)),b(w,y)};R(u,w=>{e.item.sublabel&&w($)})}g(d),g(o),O((w,y,S)=>{n=J(o,1,"item",null,n,w),Be(o,"data-value",e.item.value),Be(o,"aria-label",y),Be(o,"data-testid",e.item.dataTestid),a=J(d,1,"menu-item-value svelte-1t7rx2m",null,a,S),Be(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,y;return(y=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?y:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),b(t,o),H()}dt(["click","keydown"]);var d3=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Sm(t,e){D(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"refMenuItems",15),n=h(()=>()=>e.openSubMenuList(e.item.children)),r=h(()=>y=>Gc(y,s(n)));var l=d3();let d;l.__click=function(...y){var S;(S=s(n))==null||S.apply(this,y)},l.__keydown=function(...y){var S;(S=s(r))==null||S.apply(this,y)};var a=_(l);{var p=y=>{Ld(y,{})};R(a,y=>{e.item.selected&&y(p)})}var f=P(a,2);let v;var u=_(f);{var $=y=>{var S=ze();let T=h(()=>e.item.valueComponent);var I=pe(S);Ci(I,()=>s(T),(A,k)=>{k(A,ds(()=>{var E;return(E=e.item.valueComponentParams)!=null?E:{}}))}),b(y,S)},w=y=>{var S=Yr();O(()=>he(S,e.item.label)),b(y,S)};R(u,y=>{e.item.valueComponent?y($):y(w,!1)})}g(f),g(l),tt(l,y=>o(o()[e.item.id]=y,!0),()=>{var y;return(y=o())==null?void 0:y[e.item.id]}),O((y,S)=>{var T;d=J(l,1,"item",null,d,y),Be(l,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),Be(l,"data-testid",e.item.id),v=J(f,1,"menu-item-value",null,v,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,l),H()}dt(["click","keydown"]);var Or={"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 u3=(t,e)=>{Kh(t,e.returnFromSubMenu,e.closeSettingsMenu)},p3=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},f3=(t,e)=>{td(t)&&(vr(t),e.returnFromSubMenu())},m3=M('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),v3={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
293
293
  /*\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 {
294
294
  /**
295
295
  * \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.
@@ -299,14 +299,14 @@ Try switching the\xA0quality to\xA0Auto.`},wh=v_;var ms=new Map;ms.set(Ch.EN,wh)
299
299
  var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
300
300
  1px
301
301
  );}.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,
302
- .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function wm(t,e){F(e,!0),q(t,l3);let[i,o]=Be(),n=()=>S(v,"$isFullscreen",i),s=()=>S(p,"$playerSize",i),l=m(e,"isMobile",3,!1),d=m(e,"playerControlsHeight",3,0),a=m(e,"ariaLabelReturnFromSubMenu",19,()=>z("aria_label_submenu_back")),u=m(e,"listRef",15);Nt(()=>{let K=e.items.findIndex(de=>de.selected);u().children[K+1].focus()});let f=ke(),v=f.ui.isFullscreen,p=f.ui.playerSize,b=j(void 0),x=j(0),y=j(0),C=g(()=>l()&&n()?`max-height: ${Math.round(s().height*.6)}px`:l()?"":`max-height: ${s().height-32-r(y)-d()}px; overflow: auto;`),T=g(()=>Math.max(e.minWidth,r(x)));var E=a3();let M;var k=_(E);let I;k.__keydown=[n3,e];var N=_(k);let Y;N.__click=[r3,e],N.__keydown=[s3,e];var D=_(N);Ds(D,{direction:"left"});var H=P(D,2),W=_(H,!0);h(H),h(N),et(N,K=>B(b,K),()=>r(b));var ee=P(N,2);xi(ee,17,()=>e.items,Bl,(K,de)=>{var oe=Fe(),we=ve(oe);{var Ie=le=>{$m(le,{get item(){return r(de)},get isMobile(){return l()}})},pe=(le,Ae)=>{{var te=R=>{ym(R,{get isMobile(){return l()},get item(){return r(de)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};L(le,R=>{r(de).type==="OPEN_SUB_MENU"&&R(te)},Ae)}};L(we,le=>{r(de).type==="SELECT_VALUE"?le(Ie):le(pe,!1)})}$(K,oe)}),h(k),et(k,K=>u(K),()=>u()),h(E),O((K,de,oe)=>{M=J(E,1,"sub-menu menu svelte-7dfsuh",null,M,K),Oe(E,"data-testid",`sub-menu-${e.id}`),it(E,`min-width: ${r(T)}px`),I=J(k,1,"items svelte-7dfsuh",null,I,de),it(k,r(C)),Y=J(N,1,"item header back svelte-7dfsuh",null,Y,oe),Oe(N,"aria-label",a()),he(W,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),Zr(N,"clientWidth",K=>B(x,K)),Zr(N,"clientHeight",K=>B(y,K)),$(t,E),U(),o()}at(["keydown","click"]);import{noop as d3}from"@vkontakte/videoplayer-shared/es2018";var c3=(t,e)=>Gc(t,e()),u3=(t,e)=>{t.stopPropagation(),e()()},p3=A('<div class="value svelte-1ikfjte"> </div>'),f3=A('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),m3={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function Sm(t,e){F(e,!0),q(t,m3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,d3),n=m(e,"valueComponent",3,void 0),s=m(e,"ref",15);var l=f3();let d;l.__click=[u3,o],l.__keydown=[c3,o];var a=_(l),u=_(a);{var f=T=>{$a(T,{get icon(){return e.icon}})},v=T=>{var E=Fe();let M=g(()=>e.icon);var k=ve(E);wi(k,()=>r(M),(I,N)=>{N(I,{})}),$(T,E)};L(u,T=>{typeof e.icon=="string"?T(f):T(v,!1)})}h(a);var p=P(a,2),b=_(p,!0);h(p);var x=P(p,2);{var y=T=>{var E=Fe();let M=g(n);var k=ve(E);wi(k,()=>r(M),(I,N)=>{N(I,{})}),$(T,E)},C=T=>{var E=p3(),M=_(E,!0);h(E),O(()=>he(M,e.value)),$(T,E)};L(x,T=>{n()?T(y):T(C,!1)})}h(l),et(l,T=>s(T),()=>s()),O(T=>{d=J(l,1,"item",null,d,T),Oe(l,"aria-label",e.ariaLabel),Oe(l,"data-testid",e.id),he(b,e.label)},[()=>({mobile:i()})]),$(t,l),U()}at(["click","keydown"]);import{noop as x1}from"@vkontakte/videoplayer-shared/es2018";var v3=(t,e)=>{nl(t,()=>e())},g3=A('<div class="icon icon-error-stub"><div class="inner"></div></div>'),h3=A('<img class="icon" aria-hidden="true"/>'),_3=A('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),b3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Cm(t,e){F(e,!0),q(t,b3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,x1),n=m(e,"closeSettings",3,x1),s=j(!1),l=()=>{B(s,!0)},d=C=>{C==null||C.stopPropagation(),o()(),n()()};var a=_3();let u;a.__click=d,a.__keydown=[v3,d];var f=_(a),v=_(f);{var p=C=>{var T=Fe(),E=ve(T);{var M=I=>{var N=g3();$(I,N)},k=I=>{var N=h3();O(()=>Oe(N,"src",e.icon)),xt("error",N,l),ea(N),$(I,N)};L(E,I=>{r(s)?I(M):I(k,!1)})}$(C,T)},b=C=>{var T=Fe();let E=g(()=>e.icon);var M=ve(T);wi(M,()=>r(E),(k,I)=>{I(k,{})}),$(C,T)};L(v,C=>{typeof e.icon=="string"?C(p):C(b,!1)})}h(f);var x=P(f,2),y=_(x,!0);h(x),h(a),O(C=>{var T;u=J(a,1,"item",null,u,C),Oe(a,"aria-label",(T=e.ariaLabel)!=null?T:e.label),Oe(a,"data-testid",e.id),he(y,e.label)},[()=>({mobile:i()})]),$(t,a),U()}at(["click","keydown"]);import{noop as x3}from"@vkontakte/videoplayer-shared/es2018";var $3=A('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),y3={hash:"svelte-17wbjko",code:'.toggle_wrap.svelte-17wbjko {min-height:15px;padding:0;font-size:12px;line-height:15px;cursor:pointer;user-select:none;}.toggle.svelte-17wbjko {float:right;margin-top:3px;width:28px;height:9px;border-radius:45px;background-color:var(--toggle-color-separator);cursor:pointer;}.toggle.svelte-17wbjko::after {content:"";float:left;position:relative;width:15px;height:15px;border-radius:50%;background-color:var(--toggle-color-off);top:-3px;left:0;transition:left .1s ease;}.toggle.on.svelte-17wbjko::after {background-color:var(--toggle-color-on);left:13px;}.toggle-label.svelte-17wbjko {overflow:hidden;}'};function Tm(t,e){q(t,y3);let i=m(e,"enabled",3,!1);var o=$3(),n=_(o);let s;Ce(2),h(o),O(l=>s=J(n,1,"toggle svelte-17wbjko",null,s,l),[()=>({on:i()})]),$(t,o)}var w3=(t,e,i)=>{Fh(t,e(),o=>i()(o))},S3=(t,e,i)=>{t.stopPropagation(),e()(!i())},C3=A('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),T3=A('<li role="menuitem" tabindex="0"><!></li>');function Em(t,e){F(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,x3),n=m(e,"enabled",3,!1),s=m(e,"tooltipText",3,void 0),l=m(e,"maxTooltipWidth",3,void 0);var d=T3();let a;d.__click=[S3,o,n],d.__keydown=[w3,n,o];var u=_(d);va(u,{get content(){return s()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,v)=>{var p=C3();let b;var x=_(p),y=_(x);{var C=I=>{$a(I,{get icon(){return e.icon}})},T=I=>{var N=Fe();let Y=g(()=>e.icon);var D=ve(N);wi(D,()=>r(Y),(H,W)=>{W(H,{})}),$(I,N)};L(y,I=>{typeof e.icon=="string"?I(C):I(T,!1)})}h(x);var E=P(x,2),M=_(E,!0);h(E);var k=P(E,2);Tm(k,{get enabled(){return n()}}),h(p),O(I=>{b=J(p,1,"switch-wrapper",null,b,I),he(M,e.label)},[()=>({mobile:i()})]),$(f,p)},$$slots:{default:!0}}),h(d),O(f=>{var v;a=J(d,1,"item switch-item",null,a,f),Oe(d,"aria-label",(v=e.ariaLabel)!=null?v:e.label),Oe(d,"data-testid",e.id)},[()=>({mobile:i()})]),$(t,d),U()}at(["click","keydown"]);import{isValidURL as j3,VideoQuality as L1}from"@vkontakte/videoplayer-shared/es2018";var w1=()=>{let t=j(ii([])),e=g(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{B(t,r(t).slice(0,-1),!0)},popAllSubMenus:()=>{B(t,[],!0)}}};var E3=A('<div class="quality-icon svelte-t2qk8t"><!></div>'),I3=A('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),k3={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 Ca(t,e){F(e,!0),q(t,k3);let i=m(e,"isSubCase",3,!1),o=g(()=>Jc(e.quality));var n=I3(),s=_(n);let l;var d=_(s,!0);h(s);var a=P(s,2);{var u=f=>{var v=E3();let p=g(()=>r(o));var b=_(v);wi(b,()=>r(p),(x,y)=>{y(x,{})}),h(v),$(f,v)};L(a,f=>{r(o)&&!e.isMobile&&f(u)})}h(n),O(f=>{l=J(s,1,"svelte-t2qk8t",null,l,f),he(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),$(t,n),U()}import{VideoQuality as P3}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as S1}from"@vkontakte/videoplayer-core/es2018";var C1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},T1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=C1({quality:t,availableQualities:e});return i?t===S1.INVARIANT?z("auto_quality_invariant"):z("auto_quality",{actual:o}):o},E1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===S1.INVARIANT?i:`${i}${C1({quality:t,availableQualities:e})}`:"...";var A3=A('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),M3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function pl(t,e){F(e,!0),q(t,M3);let[i,o]=Be(),n=()=>S(a,"$currentQuality$",i),s=()=>S(u,"$availableQualities$",i),l=()=>S(f,"$isMobile$",i),d=ke(),a=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,v=" \xB7 ",p=g(()=>e.prefix+(e.selected&&n()!==P3.INVARIANT?v:"")),b=g(()=>E1({prefix:r(p),quality:n(),availableQualities:s(),onlyPrefix:!e.selected}));var x=A3(),y=_(x);let C=g(()=>e.selected?n():void 0);Ca(y,{get quality(){return r(C)},get label(){return r(b)},get isMobile(){return l()},isSubCase:!0}),h(x),$(t,x),U(),o()}var L3=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,n="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",s=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${n}|${s}`,"g")},V3={br:!0,span:!0},Im=(t,e={})=>{var d,a,u,f,v,p,b;if(!t)return t;let i={...V3,...e},o=Object.keys(i);if(!o.length)return t;let n=L3(o),s=[],l=0;for(let x of t.matchAll(n)){let y=x[0],C=((d=x.groups)==null?void 0:d.keyhtml)||((a=x.groups)==null?void 0:a.keyi18n)||((u=x.groups)==null?void 0:u.keyhtmlself)||((f=x.groups)==null?void 0:f.keyi18nself)||"",{index:T}=x;if(!i[C]){s.push(t.slice(l,T)),l=T+y.length;continue}let E=(v=x.groups)!=null&&v.childrenhtml?Im(x.groups.childrenhtml,i):"",M=(p=x.groups)!=null&&p.childrenhtml?y.replace(new RegExp((b=x.groups)==null?void 0:b.childrenhtml),()=>E||""):y;s.push(t.slice(l,T),M),l=T+y.length}return l===0?t:(s.push(t.slice(l)),s.join(""))};function Vd(t,e){F(e,!1);let i=m(e,"message",8),o=Im(i());Vr();var n=Fe(),s=ve(n);{var l=d=>{var a=Fe(),u=ve(a);Ol(u,()=>o),$(d,a)};L(s,d=>{o&&d(l)})}$(t,n),U()}var R3=A('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),N3={hash:"svelte-1qk3zto",code:".quality-applies.svelte-1qk3zto {display:flex;justify-content:end;padding:3px 0;color:rgba(255, 255, 255, 0.5);}.quality-applies span {color:#70c1ff;}"};function km(t,e){F(e,!1),q(t,N3),Vr();var i=R3(),o=_(i);let n=Pr(()=>z("quality_applience",{action:`<span>${z("quality_applience_action")}</span>`}));Vd(o,{get message(){return r(n)}}),h(i),$(t,i),U()}var k1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:pl,valueComponentParams:{prefix:z("other_quality"),selected:o},children:"QUALITY"}},Pm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:z("auto_quality_limit"),valueComponent:e?pl:void 0,valueComponentParams:{prefix:z("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),P1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:km,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Am=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:z("high_quality"),valueComponent:t?pl:void 0,valueComponentParams:{prefix:z("high_quality"),selected:i},sublabel:z("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:z("traffic_saving_quality"),valueComponent:t?pl:void 0,valueComponentParams:{prefix:z("traffic_saving_quality"),selected:i},sublabel:z("traffic_saving_quality_description")});var hu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),_u=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(l=su(i))!=null?l:i),o&&i&&n){let d=e.filter(a=>a.label===o&&a.language===i);if(d.length===1)return z("audio_stream_display_language_label",{language:n,label:o});{let a=hu(t,d);return z("audio_stream_display_language_label_index",{language:n,label:o,index:a})}}if(o){let d=e.filter(a=>a.label===o);if(d.length===1)return o;{let a=hu(t,d);return z("audio_stream_display_label_index",{label:o,index:a})}}if(i&&n){let d=e.filter(a=>a.language===i);if(d.length===1)return n;{let a=hu(t,d);return z("audio_stream_display_language_index",{language:n,index:a})}}let s=hu(t,e);return z("audio_stream_display_unknown",{index:s})};var B3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,s=[];return i&&s.push({handler:Pm,selected:e&&!o&&!n||!1}),s.push({handler:Mm,selected:o},{handler:Am,selected:n}),{title:z("submenu_quality"),id:"QUALITY_DETAILS",items:[P1(t),...s.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),k1(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:z("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:Ca,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:s=>e(s,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:z("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Pm,selected:((i=Bc())==null?void 0:i.type)==="auto_quality"},{handler:Mm,selected:((o=Bc())==null?void 0:o.type)==="traffic_saving"},{handler:Am,selected:((n=Bc())==null?void 0:n.type)==="high_quality"}].map(({handler:s,selected:l})=>s({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:z("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:_u(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:z("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:z("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===du?"sub_off":void 0}))})},A1=({subMenuId:t,context:e})=>t?[B3[t](e)]:[];var O3=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z" clip-rule="evenodd"></path></svg>');function Lm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=O3();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(),h(o),$(t,o)}var D3=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"></path></svg>');function Vm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=D3();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",viewBox:"0 0 18 15",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(),h(o),$(t,o)}var H3=Te('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" fill-rule="nonzero" d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"></path></g></svg>');function Rm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=H3();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(),h(o),$(t,o)}var F3=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18" clip-rule="evenodd"></path></svg>');function Nm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=F3();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(),h(o),$(t,o)}var U3=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z" clip-rule="evenodd"></path></svg>');function Bm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=U3();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(),h(o),$(t,o)}var z3=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492" clip-rule="evenodd"></path></svg>');function bu(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=z3();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(),h(o),$(t,o)}var W3=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"></path></svg>');function Om(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=W3();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(),h(o),$(t,o)}var K3=A('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),q3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Dm(t,e){F(e,!0),q(t,q3);let[i,o]=Be(),n=()=>S(u,"$currentQuality$",i),s=()=>S(f,"$availableQualities$",i),l=()=>S(v,"$isAutoQualityEnabled$",i),d=()=>S(p,"$isMobile$",i),a=ke(),u=a.state.currentQuality$,f=a.state.availableQualities$,v=a.state.isAutoQualityEnabled$,p=a.ui.isMobile,b=g(()=>T1({quality:n(),availableQualities:s(),isAutoQualityEnabled:l()}));var x=K3(),y=_(x);Ca(y,{get quality(){return n()},get label(){return r(b)},get isMobile(){return d()}}),h(x),$(t,x),U(),o()}var G3={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?z("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:z("aria_label_menu_quality",{actual:o}),icon:dd,label:z("menu_quality"),value:e,valueComponent:Dm,weight:Br["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Br["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:z("aria_label_submenu_traffic_saving"),icon:Lm,label:z("menu_traffic_saving"),enabled:t,tooltipText:z("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=_u(t,e);return{id:"AUDIO_LANGUAGES",weight:Br["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:z("aria_label_menu_audio_languages",{actual:i}),icon:Vm,label:z("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:Br["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:z("aria_label_menu_rate",{actual:i}),icon:Rm,label:z("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Br["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:z("aria_label_menu_subtitle",{actual:t.displayValue}),icon:cd,label:z("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Br.download,type:"CLICK",onClick:t,label:z("download_video_caption"),ariaLabel:z("aria_label_menu_download"),icon:Nm}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Br.report,type:"CLICK",onClick:t,label:z("menu_report"),ariaLabel:`${z("menu_report")}. ${z("aria_label_new_tab_alert")}`,icon:Bm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Br["copy-data"],type:"CLICK",onClick:t,label:z("menu_copy_debug"),ariaLabel:z("menu_copy_debug"),icon:bu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Br["save-trace-info"],type:"CLICK",onClick:t,label:z("menu_save_debug"),ariaLabel:z("menu_save_debug"),icon:bu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Br["debug-info"],type:"CLICK",onClick:t,ariaLabel:z("aria_label_menu_debug_overlay"),label:z("menu_debug_overlay"),icon:Om,isHiddenFor:["desktop"]})},M1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>G3[n](e)),...i.map(n=>({...n,isAdditional:!0}))].filter(n=>{var s,l,d;return!((s=n==null?void 0:n.isHiddenFor)!=null&&s.length)||!((l=n==null?void 0:n.isHiddenFor)!=null&&l.includes("desktop"))&&!o||!((d=n==null?void 0:n.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(ua)};var Z3=(t,e)=>{Qc(t,e)},X3=A('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),J3=A('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),ex=A("<div><!> <!></div>"),tx={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 {
302
+ .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function Em(t,e){D(e,!0),z(t,v3);let[i,o]=Fe(),n=()=>C(v,"$isFullscreen",i),r=()=>C(u,"$playerSize",i),l=m(e,"isMobile",3,!1),d=m(e,"playerControlsHeight",3,0),a=m(e,"ariaLabelReturnFromSubMenu",19,()=>F("aria_label_submenu_back")),p=m(e,"listRef",15);Nt(()=>{let j=e.items.findIndex(ae=>ae.selected);p().children[j+1].focus()});let f=Ee(),v=f.ui.isFullscreen,u=f.ui.playerSize,$=Y(void 0),w=Y(0),y=Y(0),S=h(()=>l()&&n()?`max-height: ${Math.round(r().height*.6)}px`:l()?"":`max-height: ${r().height-32-s(y)-d()}px; overflow: auto;`),T=h(()=>Math.max(e.minWidth,s(w)));var I=m3();let A;var k=_(I);let E;k.__keydown=[u3,e];var L=_(k);let K;L.__click=[p3,e],L.__keydown=[f3,e];var U=_(L);Rs(U,{direction:"left"});var W=P(U,2),G=_(W,!0);g(W),g(L),tt(L,j=>B($,j),()=>s($));var te=P(L,2);wi(te,17,()=>e.items,Ol,(j,ae)=>{var de=ze(),we=pe(de);{var Re=le=>{Cm(le,{get item(){return s(ae)},get isMobile(){return l()}})},me=(le,Ve)=>{{var ee=N=>{Sm(N,{get isMobile(){return l()},get item(){return s(ae)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};R(le,N=>{s(ae).type==="OPEN_SUB_MENU"&&N(ee)},Ve)}};R(we,le=>{s(ae).type==="SELECT_VALUE"?le(Re):le(me,!1)})}b(j,de)}),g(k),tt(k,j=>p(j),()=>p()),g(I),O((j,ae,de)=>{A=J(I,1,"sub-menu menu svelte-7dfsuh",null,A,j),Be(I,"data-testid",`sub-menu-${e.id}`),at(I,`min-width: ${s(T)}px`),E=J(k,1,"items svelte-7dfsuh",null,E,ae),at(k,s(S)),K=J(L,1,"item header back svelte-7dfsuh",null,K,de),Be(L,"aria-label",a()),he(G,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),Zr(L,"clientWidth",j=>B(w,j)),Zr(L,"clientHeight",j=>B(y,j)),b(t,I),H(),o()}dt(["keydown","click"]);import{noop as g3}from"@vkontakte/videoplayer-shared/es2018";var h3=(t,e)=>Gc(t,e()),_3=(t,e)=>{t.stopPropagation(),e()()},b3=M('<div class="value svelte-1ikfjte"> </div>'),$3=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),y3={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function Im(t,e){D(e,!0),z(t,y3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,g3),n=m(e,"valueComponent",3,void 0),r=m(e,"ref",15);var l=$3();let d;l.__click=[_3,o],l.__keydown=[h3,o];var a=_(l),p=_(a);{var f=T=>{ha(T,{get icon(){return e.icon}})},v=T=>{var I=ze();let A=h(()=>e.icon);var k=pe(I);Ci(k,()=>s(A),(E,L)=>{L(E,{})}),b(T,I)};R(p,T=>{typeof e.icon=="string"?T(f):T(v,!1)})}g(a);var u=P(a,2),$=_(u,!0);g(u);var w=P(u,2);{var y=T=>{var I=ze();let A=h(n);var k=pe(I);Ci(k,()=>s(A),(E,L)=>{L(E,{})}),b(T,I)},S=T=>{var I=b3(),A=_(I,!0);g(I),O(()=>he(A,e.value)),b(T,I)};R(w,T=>{n()?T(y):T(S,!1)})}g(l),tt(l,T=>r(T),()=>r()),O(T=>{d=J(l,1,"item",null,d,T),Be(l,"aria-label",e.ariaLabel),Be(l,"data-testid",e.id),he($,e.label)},[()=>({mobile:i()})]),b(t,l),H()}dt(["click","keydown"]);import{noop as I1}from"@vkontakte/videoplayer-shared/es2018";var x3=(t,e)=>{nl(t,()=>e())},w3=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),C3=M('<img class="icon" aria-hidden="true"/>'),S3=M('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),T3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function km(t,e){D(e,!0),z(t,T3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,I1),n=m(e,"closeSettings",3,I1),r=Y(!1),l=()=>{B(r,!0)},d=S=>{S==null||S.stopPropagation(),o()(),n()()};var a=S3();let p;a.__click=d,a.__keydown=[x3,d];var f=_(a),v=_(f);{var u=S=>{var T=ze(),I=pe(T);{var A=E=>{var L=w3();b(E,L)},k=E=>{var L=C3();O(()=>Be(L,"src",e.icon)),Tt("error",L,l),Zs(L),b(E,L)};R(I,E=>{s(r)?E(A):E(k,!1)})}b(S,T)},$=S=>{var T=ze();let I=h(()=>e.icon);var A=pe(T);Ci(A,()=>s(I),(k,E)=>{E(k,{})}),b(S,T)};R(v,S=>{typeof e.icon=="string"?S(u):S($,!1)})}g(f);var w=P(f,2),y=_(w,!0);g(w),g(a),O(S=>{var T;p=J(a,1,"item",null,p,S),Be(a,"aria-label",(T=e.ariaLabel)!=null?T:e.label),Be(a,"data-testid",e.id),he(y,e.label)},[()=>({mobile:i()})]),b(t,a),H()}dt(["click","keydown"]);import{noop as k3}from"@vkontakte/videoplayer-shared/es2018";var E3=M('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),I3={hash:"svelte-17wbjko",code:'.toggle_wrap.svelte-17wbjko {min-height:15px;padding:0;font-size:12px;line-height:15px;cursor:pointer;user-select:none;}.toggle.svelte-17wbjko {float:right;margin-top:3px;width:28px;height:9px;border-radius:45px;background-color:var(--toggle-color-separator);cursor:pointer;}.toggle.svelte-17wbjko::after {content:"";float:left;position:relative;width:15px;height:15px;border-radius:50%;background-color:var(--toggle-color-off);top:-3px;left:0;transition:left .1s ease;}.toggle.on.svelte-17wbjko::after {background-color:var(--toggle-color-on);left:13px;}.toggle-label.svelte-17wbjko {overflow:hidden;}'};function Pm(t,e){z(t,I3);let i=m(e,"enabled",3,!1);var o=E3(),n=_(o);let r;Ce(2),g(o),O(l=>r=J(n,1,"toggle svelte-17wbjko",null,r,l),[()=>({on:i()})]),b(t,o)}var P3=(t,e,i)=>{Qh(t,e(),o=>i()(o))},A3=(t,e,i)=>{t.stopPropagation(),e()(!i())},M3=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),L3=M('<li role="menuitem" tabindex="0"><!></li>');function Am(t,e){D(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,k3),n=m(e,"enabled",3,!1),r=m(e,"tooltipText",3,void 0),l=m(e,"maxTooltipWidth",3,void 0);var d=L3();let a;d.__click=[A3,o,n],d.__keydown=[P3,n,o];var p=_(d);pa(p,{get content(){return r()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,v)=>{var u=M3();let $;var w=_(u),y=_(w);{var S=E=>{ha(E,{get icon(){return e.icon}})},T=E=>{var L=ze();let K=h(()=>e.icon);var U=pe(L);Ci(U,()=>s(K),(W,G)=>{G(W,{})}),b(E,L)};R(y,E=>{typeof e.icon=="string"?E(S):E(T,!1)})}g(w);var I=P(w,2),A=_(I,!0);g(I);var k=P(I,2);Pm(k,{get enabled(){return n()}}),g(u),O(E=>{$=J(u,1,"switch-wrapper",null,$,E),he(A,e.label)},[()=>({mobile:i()})]),b(f,u)},$$slots:{default:!0}}),g(d),O(f=>{var v;a=J(d,1,"item switch-item",null,a,f),Be(d,"aria-label",(v=e.ariaLabel)!=null?v:e.label),Be(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),H()}dt(["click","keydown"]);import{isValidURL as ox,VideoQuality as D1}from"@vkontakte/videoplayer-shared/es2018";var k1=()=>{let t=Y(ti([])),e=h(()=>(s(t).length?s(t).at(-1):null)||null);return{get current(){return s(e)},pushSubMenu:i=>{s(t).push(i)},popSubMenu:()=>{B(t,s(t).slice(0,-1),!0)},popAllSubMenus:()=>{B(t,[],!0)}}};var V3=M('<div class="quality-icon svelte-t2qk8t"><!></div>'),R3=M('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),N3={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 wa(t,e){D(e,!0),z(t,N3);let i=m(e,"isSubCase",3,!1),o=h(()=>Jc(e.quality));var n=R3(),r=_(n);let l;var d=_(r,!0);g(r);var a=P(r,2);{var p=f=>{var v=V3();let u=h(()=>s(o));var $=_(v);Ci($,()=>s(u),(w,y)=>{y(w,{})}),g(v),b(f,v)};R(a,f=>{s(o)&&!e.isMobile&&f(p)})}g(n),O(f=>{l=J(r,1,"svelte-t2qk8t",null,l,f),he(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,n),H()}import{VideoQuality as B3}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as P1}from"@vkontakte/videoplayer-core/es2018";var A1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},M1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=A1({quality:t,availableQualities:e});return i?t===P1.INVARIANT?F("auto_quality_invariant"):F("auto_quality",{actual:o}):o},L1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===P1.INVARIANT?i:`${i}${A1({quality:t,availableQualities:e})}`:"...";var O3=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),D3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function pl(t,e){D(e,!0),z(t,D3);let[i,o]=Fe(),n=()=>C(a,"$currentQuality$",i),r=()=>C(p,"$availableQualities$",i),l=()=>C(f,"$isMobile$",i),d=Ee(),a=d.state.currentQuality$,p=d.state.availableQualities$,f=d.ui.isMobile,v=" \xB7 ",u=h(()=>e.prefix+(e.selected&&n()!==B3.INVARIANT?v:"")),$=h(()=>L1({prefix:s(u),quality:n(),availableQualities:r(),onlyPrefix:!e.selected}));var w=O3(),y=_(w);let S=h(()=>e.selected?n():void 0);wa(y,{get quality(){return s(S)},get label(){return s($)},get isMobile(){return l()},isSubCase:!0}),g(w),b(t,w),H(),o()}var H3=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,n="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",r=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${n}|${r}`,"g")},F3={br:!0,span:!0},Mm=(t,e={})=>{var d,a,p,f,v,u,$;if(!t)return t;let i={...F3,...e},o=Object.keys(i);if(!o.length)return t;let n=H3(o),r=[],l=0;for(let w of t.matchAll(n)){let y=w[0],S=((d=w.groups)==null?void 0:d.keyhtml)||((a=w.groups)==null?void 0:a.keyi18n)||((p=w.groups)==null?void 0:p.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:T}=w;if(!i[S]){r.push(t.slice(l,T)),l=T+y.length;continue}let I=(v=w.groups)!=null&&v.childrenhtml?Mm(w.groups.childrenhtml,i):"",A=(u=w.groups)!=null&&u.childrenhtml?y.replace(new RegExp(($=w.groups)==null?void 0:$.childrenhtml),()=>I||""):y;r.push(t.slice(l,T),A),l=T+y.length}return l===0?t:(r.push(t.slice(l)),r.join(""))};function Vd(t,e){D(e,!1);let i=m(e,"message",8),o=Mm(i());Vr();var n=ze(),r=pe(n);{var l=d=>{var a=ze(),p=pe(a);Dl(p,()=>o),b(d,a)};R(r,d=>{o&&d(l)})}b(t,n),H()}var U3=M('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),z3={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 Lm(t,e){D(e,!1),z(t,z3),Vr();var i=U3(),o=_(i);let n=Pr(()=>F("quality_applience",{action:`<span>${F("quality_applience_action")}</span>`}));Vd(o,{get message(){return s(n)}}),g(i),b(t,i),H()}var R1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:pl,valueComponentParams:{prefix:F("other_quality"),selected:o},children:"QUALITY"}},Vm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:F("auto_quality_limit"),valueComponent:e?pl:void 0,valueComponentParams:{prefix:F("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),N1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Lm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Rm=({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?pl:void 0,valueComponentParams:{prefix:F("high_quality"),selected:i},sublabel:F("high_quality_description")}),Nm=({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?pl:void 0,valueComponentParams:{prefix:F("traffic_saving_quality"),selected:i},sublabel:F("traffic_saving_quality_description")});var hu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),_u=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(l=su(i))!=null?l:i),o&&i&&n){let d=e.filter(a=>a.label===o&&a.language===i);if(d.length===1)return F("audio_stream_display_language_label",{language:n,label:o});{let a=hu(t,d);return F("audio_stream_display_language_label_index",{language:n,label:o,index:a})}}if(o){let d=e.filter(a=>a.label===o);if(d.length===1)return o;{let a=hu(t,d);return F("audio_stream_display_label_index",{label:o,index:a})}}if(i&&n){let d=e.filter(a=>a.language===i);if(d.length===1)return n;{let a=hu(t,d);return F("audio_stream_display_language_index",{language:n,index:a})}}let r=hu(t,e);return F("audio_stream_display_unknown",{index:r})};var W3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,r=[];return i&&r.push({handler:Vm,selected:e&&!o&&!n||!1}),r.push({handler:Nm,selected:o},{handler:Rm,selected:n}),{title:F("submenu_quality"),id:"QUALITY_DETAILS",items:[N1(t),...r.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),R1(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:wa,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:r=>e(r,"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:Vm,selected:((i=Bc())==null?void 0:i.type)==="auto_quality"},{handler:Nm,selected:((o=Bc())==null?void 0:o.type)==="traffic_saving"},{handler:Rm,selected:((n=Bc())==null?void 0:n.type)==="high_quality"}].map(({handler:r,selected:l})=>r({labelWithQuality:!1,appliesTo:"as-default",selected:l},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:_u(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.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===du?"sub_off":void 0}))})},B1=({subMenuId:t,context:e})=>t?[W3[t](e)]:[];var q3=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z" clip-rule="evenodd"></path></svg>');function Bm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=q3();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var K3=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"></path></svg>');function Om(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=K3();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",viewBox:"0 0 18 15",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var Q3=Se('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" fill-rule="nonzero" d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"></path></g></svg>');function Dm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Q3();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var G3=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18" clip-rule="evenodd"></path></svg>');function Hm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=G3();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var Y3=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z" clip-rule="evenodd"></path></svg>');function Fm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Y3();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var j3=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492" clip-rule="evenodd"></path></svg>');function bu(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=j3();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var Z3=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"></path></svg>');function Um(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=Z3();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var X3=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),J3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function zm(t,e){D(e,!0),z(t,J3);let[i,o]=Fe(),n=()=>C(p,"$currentQuality$",i),r=()=>C(f,"$availableQualities$",i),l=()=>C(v,"$isAutoQualityEnabled$",i),d=()=>C(u,"$isMobile$",i),a=Ee(),p=a.state.currentQuality$,f=a.state.availableQualities$,v=a.state.isAutoQualityEnabled$,u=a.ui.isMobile,$=h(()=>M1({quality:n(),availableQualities:r(),isAutoQualityEnabled:l()}));var w=X3(),y=_(w);wa(y,{get quality(){return n()},get label(){return s($)},get isMobile(){return d()}}),g(w),b(t,w),H(),o()}var tx={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:cd,label:F("menu_quality"),value:e,valueComponent:zm,weight:Or["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Or["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:F("aria_label_submenu_traffic_saving"),icon:Bm,label:F("menu_traffic_saving"),enabled:t,tooltipText:F("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=_u(t,e);return{id:"AUDIO_LANGUAGES",weight:Or["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_audio_languages",{actual:i}),icon:Om,label:F("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(n=>n.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:Or["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_rate",{actual:i}),icon:Dm,label:F("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Or["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_subtitle",{actual:t.displayValue}),icon:ud,label:F("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Or.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:Or.report,type:"CLICK",onClick:t,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,icon:Fm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Or["copy-data"],type:"CLICK",onClick:t,label:F("menu_copy_debug"),ariaLabel:F("menu_copy_debug"),icon:bu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Or["save-trace-info"],type:"CLICK",onClick:t,label:F("menu_save_debug"),ariaLabel:F("menu_save_debug"),icon:bu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Or["debug-info"],type:"CLICK",onClick:t,ariaLabel:F("aria_label_menu_debug_overlay"),label:F("menu_debug_overlay"),icon:Um,isHiddenFor:["desktop"]})},O1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>tx[n](e)),...i.map(n=>({...n,isAdditional:!0}))].filter(n=>{var r,l,d;return!((r=n==null?void 0:n.isHiddenFor)!=null&&r.length)||!((l=n==null?void 0:n.isHiddenFor)!=null&&l.includes("desktop"))&&!o||!((d=n==null?void 0:n.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(la)};var nx=(t,e)=>{Qc(t,e)},rx=M('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),sx=M('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),ax=M("<div><!> <!></div>"),lx={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 {
303
303
  /* \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),
304
304
  .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),
305
305
  .settings-menu.svelte-17or3al .switch-wrapper {padding:0 32px 0 18px;}.settings-menu.svelte-17or3al .item.mobile:not(.switch-item),
306
- .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 Rd(t,e){F(e,!0),q(t,tx);let[i,o]=Be(),n=()=>S(qe,"$settingsMenuVisible",i),s=()=>S(Ze,"$settingsMenuOpenedByKeyboard",i),l=()=>S(Je,"$debugPanelVisible",i),d=()=>S(re,"$isMobile",i),a=()=>S(Mt,"$playerSize",i),u=()=>S(Z,"$hasMpegSources$",i),f=()=>S(Ee,"$mobileNotReportControlHidden$",i),v=()=>S(te,"$autoQualityLimitingAvailable$",i),p=()=>S(fe,"$availableSubtitlesList$",i),b=()=>S(Qe,"$isLiveWithPlaybackSpeed",i),x=()=>S(pe,"$availableAudioStreams$",i),y=()=>S(Ke,"$availablePlaybackRates$",i),C=()=>S(Ie,"$currentAudioStream$",i),T=()=>S(ie,"$currentPlaybackRate$",i),E=()=>S(rt,"$trafficSavingEnabled",i),M=()=>S(le,"$currentQuality$",i),k=()=>S(R,"$isAutoQualityEnabled$",i),I=()=>S(ce,"$currentSubtitle$",i),N=()=>S(qt,"$additionalSettingsMenuItems$",i),Y=()=>S(Ge,"$isAutoQualityAvailable$",i),D=()=>S(Ae,"$availableQualities$",i),H=()=>S(nt,"$highQualityEnabled",i),W=m(e,"ref",15,void 0),ee=m(e,"playerControlsHeight",3,0),K=ii({}),de=ii({}),oe=ke(),we=Ft(),Ie=oe.state.audioStream$,pe=oe.state.availableAudioStreams$,le=oe.state.currentQuality$,Ae=oe.state.availableQualities$,te=oe.state.autoQualityLimitingAvailable$,R=oe.state.isAutoQualityEnabled$,Ge=oe.state.isAutoQualityAvailable$,ie=oe.state.currentPlaybackRate$,Ke=oe.state.availablePlaybackRates$,ce=oe.state.currentSubtitle$,fe=oe.state.availableSubtitlesList$,$e=oe.state.canDownload,Z=oe.state.hasMpegSources$,qe=oe.ui.settingsMenu.visible$,Ze=oe.ui.settingsMenu.openedByBtnKeyboard$,Pe=oe.ui.settingsMenu.ref$,re=oe.ui.isMobile,Ee=oe.ui.mobileNotReportControlHidden$,Qe=oe.state.canChangePlaybackSpeed$,rt=oe.state.trafficSavingEnabled$,nt=oe.state.highQualityEnabled$,Mt=oe.ui.playerSize,Je=oe.ui.debugPanelVisible,dt=oe.state.isInteractiveTime$,qt=oe.ui.additionalSettingsMenuItems$,oi=oe.ui.t,Kt=oe.actions.internal.downloadVideo,wt=oe.actions.internal.closeSettingsMenu,ne=oe.actions.internal.openSettingsSubMenu,Lt=oe.actions.internal.closeSettingsSubMenu,ge=j(!1),X=j(void 0),xe=w1();We(()=>{!n()&&xe.current&&(Lt(de[xe.current]),xe.popAllSubMenus())}),We(()=>{n()||B(X,void 0)}),We(()=>{!xe.current&&r(X)&&Dh(K,r(X))}),We(()=>{W()&&Pe.set(W())});async function He(tt){var Wi;xe.pushSubMenu(tt),await bo(),ne(tt,de[tt]);let Tt=(Wi=W())==null?void 0:Wi.firstElementChild;Tt&&of(Tt)}function me(tt){var Tt;tt==null||tt.stopPropagation(),s()||(Tt=e.returnFocus)==null||Tt.call(e),wt(),B(ge,!1)}function Re(tt,Tt){oe.actions.internal.setQuality(tt,{appliesTo:Tt}),me()}function Xe(tt){oe.actions.internal.setAudioStream(tt),me()}function Ue(tt,Tt){oe.actions.internal.setTrafficSavingEnabled(tt,Tt),we.features.qualityDetailsSubMenuEnabled&&me()}function Pt(tt,Tt){oe.actions.internal.setHighQualityEnabled(tt,Tt),me()}function St(tt){oe.actions.internal.setPlaybackRate(tt),me()}function yt(tt){oe.actions.internal.setSubtitle(tt),me()}function pt(){Kt()}function Mi(){j3(e.supportLink)&&window.open(e.supportLink,"_blank"),oe.actions.internal.reportProblem(),oe.actions.internal.pause()}function di(){il(oe.actions.internal.getDebugTextData())}let ot=()=>{let tt=oe.actions.internal.getTraceTextData(),Tt=new Blob([...tt],{type:"application/json"}),Wi=window.URL.createObjectURL(Tt);sa(Wi,"vk_player_trace_info","json")};function Bt(){Je.set(!l())}function fi(){B(ge,!0)}function Ui(){B(ge,!1)}function uo(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-ee()}px; overflow: auto;`}let zi=g(()=>$e&&u()&&!f()),Qt=g(()=>we.features.trafficSaving&&!f()&&v()&&!we.features.qualityDetailsSubMenuEnabled),po=g(()=>p().length>0&&!f()),It=g(()=>!!b()&&!f()),lt=g(()=>we.features.audioLanguages&&x().length>=2&&!f()),mi=g(()=>!f());Nt(()=>dt.subscribe(tt=>{tt&&!d()&&!r(ge)&&!s()&&me()}));let G=g(()=>{let tt=[r(mi)&&"QUALITY_SETTINGS",r(lt)&&"AUDIO_LANGUAGES",r(It)&&"PLAYBACK_RATE",r(po)&&"SUBTITLES",r(Qt)&&"TRAFFIC_SAVING_SWITCH",r(zi)&&"DOWNLOAD",we.showSupport&&"SHOW_SUPPORT","COPY_DATA",we.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Tt=>!!Tt);return M1({items:tt,context:{qualityDetailsSubMenuEnabled:we.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:y(),currentAudioStream:C(),availableAudioStreams:x(),currentPlaybackRate:T(),selectPlaybackRate:St,trafficSavingEnabled:E(),toggleTrafficSaving:Ue,currentQuality:M()||L1.INVARIANT,isAutoQualityEnabled:k()||!1,currentSubtitle:I(),isMobile:d(),onDownloadClick:pt,onCopyDataClick:di,onReportProblemClick:Mi,onSaveTraceDataClick:ot,toggleShowDebugInfo:Bt},additionalSettingsMenuItems:N()})}),zt=g(()=>A1({subMenuId:xe.current,context:{availablePlaybackRates:y(),selectPlaybackRate:St,trafficSavingEnabled:E(),toggleTrafficSaving:Ue,currentQuality:M()||L1.INVARIANT,isAutoQualityEnabled:k()||!1,isAutoQualityAvailable:Y()||!1,availableQualities:D(),highQualityEnabled:H(),toggleHighQuality:Pt,availableAudioStreams:x(),availableSubtitlesList:p(),closeSettingsMenu:wt,currentAudioStream:C(),isMobile:d(),selectAudioLanguage:Xe,selectQuality:Re,selectSubtitle:yt}}));var li=ex();let Li;var ri=_(li);{var ci=tt=>{var Tt=J3();let Wi;Tt.__keydown=[Z3,wt];var ti=_(Tt);{var Xn=hi=>{var ht=X3();let Vi;var Ho=_(ht),Tn=_(Ho,!0);h(Ho);var si=P(Ho,2);si.__click=me,h(ht),O((Ti,Fo)=>{Vi=J(ht,1,"item header svelte-17or3al",null,Vi,Ti),he(Tn,Fo)},[()=>({mobile:d()}),()=>oi("submenu_settings")]),$(hi,ht)};L(ti,hi=>{d()&&hi(Xn)})}var Ci=P(ti,2);let xo;xi(Ci,21,()=>r(G),hi=>hi.id,(hi,ht)=>{var Vi=Fe(),Ho=ve(Vi);{var Tn=Ti=>{Sm(Ti,{get isMobile(){return d()},get id(){return r(ht).id},get icon(){return r(ht).icon},get label(){return r(ht).label},get ariaLabel(){return r(ht).ariaLabel},get value(){return r(ht).value},get valueComponent(){return r(ht).valueComponent},onClick:()=>{He(r(ht).children),B(X,r(ht).id,!0)},get ref(){return K[r(ht).id]},set ref(Fo){K[r(ht).id]=Fo}})},si=(Ti,Fo)=>{{var En=wo=>{Cm(wo,{get isMobile(){return d()},get id(){return r(ht).id},get onClick(){return r(ht).onClick},get icon(){return r(ht).icon},get label(){return r(ht).label},get ariaLabel(){return r(ht).ariaLabel},closeSettings:me})},Uo=(wo,vn)=>{{var tn=fo=>{Em(fo,{get isMobile(){return d()},get id(){return r(ht).id},get onClick(){return r(ht).onClick},get icon(){return r(ht).icon},get label(){return r(ht).label},get ariaLabel(){return r(ht).ariaLabel},get enabled(){return r(ht).enabled},get tooltipText(){return r(ht).tooltipText},get maxTooltipWidth(){return r(ht).maxTooltipWidth}})};L(wo,fo=>{r(ht).type==="SWITCH"&&fo(tn)},vn)}};L(Ti,wo=>{r(ht).type==="CLICK"?wo(En):wo(Uo,!1)},Fo)}};L(Ho,Ti=>{r(ht).type==="OPEN_SUB_MENU"?Ti(Tn):Ti(si,!1)})}$(hi,Vi)}),h(Ci),et(Ci,hi=>W(hi),()=>W()),h(Tt),O((hi,ht,Vi)=>{Wi=J(Tt,1,"settings-menu menu svelte-17or3al",null,Wi,hi),xo=J(Ci,1,"items",null,xo,ht),it(Ci,Vi)},[()=>({desktop:!d(),mobile:d(),hidden:!!xe.current}),()=>({mobile:d()}),uo]),xt("mouseenter",Tt,fi),xt("mouseleave",Tt,Ui),$(tt,Tt)};L(ri,tt=>{n()&&tt(ci)})}var ct=P(ri,2);xi(ct,17,()=>r(zt),tt=>tt.id,(tt,Tt)=>{let Wi=g(()=>{var ti;return(ti=r(Tt).minWidth)!=null?ti:137});wm(tt,{get isMobile(){return d()},get playerControlsHeight(){return ee()},get returnFromSubMenu(){return xe.popSubMenu},get id(){return r(Tt).id},get title(){return r(Tt).title},get closeSettingsMenu(){return wt},openSubMenuList:He,get items(){return r(Tt).items},get minWidth(){return r(Wi)},get refMenuItems(){return K},get listRef(){return de[r(Tt).id]},set listRef(ti){de[r(Tt).id]=ti}})}),h(li),O(tt=>Li=J(li,1,"settings-menu-container svelte-17or3al",null,Li,tt),[()=>({mobile:d(),hidden:!n()})]),$(t,li),U(),o()}at(["keydown","click"]);var ix=t=>t;function V1(t,{delay:e=0,duration:i=400,easing:o=ix}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:s=>`opacity: ${s*n}`}}var ox=A('<button class="button svelte-1sbbskl"> </button>'),nx={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 Hm(t,e){q(t,nx);var i=ox();i.__click=function(...n){var s;(s=e.onClick)==null||s.apply(this,n)};var o=_(i,!0);h(i),O(()=>he(o,e.label)),$(t,i)}at(["click"]);var rx=A('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),sx={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
306
+ .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 Rd(t,e){D(e,!0),z(t,lx);let[i,o]=Fe(),n=()=>C(Ke,"$settingsMenuVisible",i),r=()=>C(ue,"$settingsMenuOpenedByKeyboard",i),l=()=>C(St,"$debugPanelVisible",i),d=()=>C(Ae,"$isMobile",i),a=()=>C($t,"$playerSize",i),p=()=>C(Z,"$hasMpegSources$",i),f=()=>C(Te,"$mobileNotReportControlHidden$",i),v=()=>C(ee,"$autoQualityLimitingAvailable$",i),u=()=>C(ne,"$availableSubtitlesList$",i),$=()=>C(Qe,"$isLiveWithPlaybackSpeed",i),w=()=>C(me,"$availableAudioStreams$",i),y=()=>C(ve,"$availablePlaybackRates$",i),S=()=>C(Re,"$currentAudioStream$",i),T=()=>C(_e,"$currentPlaybackRate$",i),I=()=>C(nt,"$trafficSavingEnabled",i),A=()=>C(le,"$currentQuality$",i),k=()=>C(N,"$isAutoQualityEnabled$",i),E=()=>C(ce,"$currentSubtitle$",i),L=()=>C(zt,"$additionalSettingsMenuItems$",i),K=()=>C(Oe,"$isAutoQualityAvailable$",i),U=()=>C(Ve,"$availableQualities$",i),W=()=>C(_t,"$highQualityEnabled",i),G=m(e,"ref",15,void 0),te=m(e,"playerControlsHeight",3,0),j=ti({}),ae=ti({}),de=Ee(),we=Ft(),Re=de.state.audioStream$,me=de.state.availableAudioStreams$,le=de.state.currentQuality$,Ve=de.state.availableQualities$,ee=de.state.autoQualityLimitingAvailable$,N=de.state.isAutoQualityEnabled$,Oe=de.state.isAutoQualityAvailable$,_e=de.state.currentPlaybackRate$,ve=de.state.availablePlaybackRates$,ce=de.state.currentSubtitle$,ne=de.state.availableSubtitlesList$,ye=de.state.canDownload,Z=de.state.hasMpegSources$,Ke=de.ui.settingsMenu.visible$,ue=de.ui.settingsMenu.openedByBtnKeyboard$,ke=de.ui.settingsMenu.ref$,Ae=de.ui.isMobile,Te=de.ui.mobileNotReportControlHidden$,Qe=de.state.canChangePlaybackSpeed$,nt=de.state.trafficSavingEnabled$,_t=de.state.highQualityEnabled$,$t=de.ui.playerSize,St=de.ui.debugPanelVisible,Ge=de.state.isInteractiveTime$,zt=de.ui.additionalSettingsMenuItems$,Qt=de.ui.t,Wt=de.actions.internal.downloadVideo,Bt=de.actions.internal.closeSettingsMenu,X=de.actions.internal.openSettingsSubMenu,At=de.actions.internal.closeSettingsSubMenu,fe=Y(!1),be=Y(void 0),re=k1();qe(()=>{!n()&&re.current&&(At(ae[re.current]),re.popAllSubMenus())}),qe(()=>{n()||B(be,void 0)}),qe(()=>{!re.current&&s(be)&&qh(j,s(be))}),qe(()=>{G()&&ke.set(G())});async function De(it){var fi;re.pushSubMenu(it),await ho(),X(it,ae[it]);let ot=(fi=G())==null?void 0:fi.firstElementChild;ot&&sf(ot)}function We(it){var ot;it==null||it.stopPropagation(),r()||(ot=e.returnFocus)==null||ot.call(e),Bt(),B(fe,!1)}function Me(it,ot){de.actions.internal.setQuality(it,{appliesTo:ot}),We()}function Ze(it){de.actions.internal.setAudioStream(it),We()}function Ne(it,ot){de.actions.internal.setTrafficSavingEnabled(it,ot),we.features.qualityDetailsSubMenuEnabled&&We()}function et(it,ot){de.actions.internal.setHighQualityEnabled(it,ot),We()}function kt(it){de.actions.internal.setPlaybackRate(it),We()}function Mt(it){de.actions.internal.setSubtitle(it),We()}function Xe(){Wt()}function oi(){ox(e.supportLink)&&window.open(e.supportLink,"_blank"),de.actions.internal.reportProblem(),de.actions.internal.pause()}function ui(){il(de.actions.internal.getDebugTextData())}let lt=()=>{let it=de.actions.internal.getTraceTextData(),ot=new Blob([...it],{type:"application/json"}),fi=window.URL.createObjectURL(ot);oa(fi,"vk_player_trace_info","json")};function Xt(){St.set(!l())}function Jt(){B(fe,!0)}function li(){B(fe,!1)}function Qi(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-te()}px; overflow: auto;`}let di=h(()=>ye&&p()&&!f()),Gt=h(()=>we.features.trafficSaving&&!f()&&v()&&!we.features.qualityDetailsSubMenuEnabled),Ti=h(()=>u().length>0&&!f()),Lo=h(()=>!!$()&&!f()),Rt=h(()=>we.features.audioLanguages&&w().length>=2&&!f()),bt=h(()=>!f());Nt(()=>Ge.subscribe(it=>{it&&!d()&&!s(fe)&&!r()&&We()}));let Ei=h(()=>{let it=[s(bt)&&"QUALITY_SETTINGS",s(Rt)&&"AUDIO_LANGUAGES",s(Lo)&&"PLAYBACK_RATE",s(Ti)&&"SUBTITLES",s(Gt)&&"TRAFFIC_SAVING_SWITCH",s(di)&&"DOWNLOAD",we.showSupport&&"SHOW_SUPPORT","COPY_DATA",we.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(ot=>!!ot);return O1({items:it,context:{qualityDetailsSubMenuEnabled:we.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:y(),currentAudioStream:S(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:kt,trafficSavingEnabled:I(),toggleTrafficSaving:Ne,currentQuality:A()||D1.INVARIANT,isAutoQualityEnabled:k()||!1,currentSubtitle:E(),isMobile:d(),onDownloadClick:Xe,onCopyDataClick:ui,onReportProblemClick:oi,onSaveTraceDataClick:lt,toggleShowDebugInfo:Xt},additionalSettingsMenuItems:L()})}),Vo=h(()=>B1({subMenuId:re.current,context:{availablePlaybackRates:y(),selectPlaybackRate:kt,trafficSavingEnabled:I(),toggleTrafficSaving:Ne,currentQuality:A()||D1.INVARIANT,isAutoQualityEnabled:k()||!1,isAutoQualityAvailable:K()||!1,availableQualities:U(),highQualityEnabled:W(),toggleHighQuality:et,availableAudioStreams:w(),availableSubtitlesList:u(),closeSettingsMenu:Bt,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:Ze,selectQuality:Me,selectSubtitle:Mt}}));var q=ax();let ut;var pi=_(q);{var Ii=it=>{var ot=sx();let fi;ot.__keydown=[nx,Bt];var Ot=_(ot);{var pn=Li=>{var yt=rx();let Vi;var Yo=_(yt),An=_(Yo,!0);g(Yo);var Ri=P(Yo,2);Ri.__click=We,g(yt),O((Gi,bi)=>{Vi=J(yt,1,"item header svelte-17or3al",null,Vi,Gi),he(An,bi)},[()=>({mobile:d()}),()=>Qt("submenu_settings")]),b(Li,yt)};R(Ot,Li=>{d()&&Li(pn)})}var Ro=P(Ot,2);let Go;wi(Ro,21,()=>s(Ei),Li=>Li.id,(Li,yt)=>{var Vi=ze(),Yo=pe(Vi);{var An=Gi=>{Im(Gi,{get isMobile(){return d()},get id(){return s(yt).id},get icon(){return s(yt).icon},get label(){return s(yt).label},get ariaLabel(){return s(yt).ariaLabel},get value(){return s(yt).value},get valueComponent(){return s(yt).valueComponent},onClick:()=>{De(s(yt).children),B(be,s(yt).id,!0)},get ref(){return j[s(yt).id]},set ref(bi){j[s(yt).id]=bi}})},Ri=(Gi,bi)=>{{var $o=Ui=>{km(Ui,{get isMobile(){return d()},get id(){return s(yt).id},get onClick(){return s(yt).onClick},get icon(){return s(yt).icon},get label(){return s(yt).label},get ariaLabel(){return s(yt).ariaLabel},closeSettings:We})},fn=(Ui,No)=>{{var jo=yo=>{Am(yo,{get isMobile(){return d()},get id(){return s(yt).id},get onClick(){return s(yt).onClick},get icon(){return s(yt).icon},get label(){return s(yt).label},get ariaLabel(){return s(yt).ariaLabel},get enabled(){return s(yt).enabled},get tooltipText(){return s(yt).tooltipText},get maxTooltipWidth(){return s(yt).maxTooltipWidth}})};R(Ui,yo=>{s(yt).type==="SWITCH"&&yo(jo)},No)}};R(Gi,Ui=>{s(yt).type==="CLICK"?Ui($o):Ui(fn,!1)},bi)}};R(Yo,Gi=>{s(yt).type==="OPEN_SUB_MENU"?Gi(An):Gi(Ri,!1)})}b(Li,Vi)}),g(Ro),tt(Ro,Li=>G(Li),()=>G()),g(ot),O((Li,yt,Vi)=>{fi=J(ot,1,"settings-menu menu svelte-17or3al",null,fi,Li),Go=J(Ro,1,"items",null,Go,yt),at(Ro,Vi)},[()=>({desktop:!d(),mobile:d(),hidden:!!re.current}),()=>({mobile:d()}),Qi]),Tt("mouseenter",ot,Jt),Tt("mouseleave",ot,li),b(it,ot)};R(pi,it=>{n()&&it(Ii)})}var ft=P(pi,2);wi(ft,17,()=>s(Vo),it=>it.id,(it,ot)=>{let fi=h(()=>{var Ot;return(Ot=s(ot).minWidth)!=null?Ot:137});Em(it,{get isMobile(){return d()},get playerControlsHeight(){return te()},get returnFromSubMenu(){return re.popSubMenu},get id(){return s(ot).id},get title(){return s(ot).title},get closeSettingsMenu(){return Bt},openSubMenuList:De,get items(){return s(ot).items},get minWidth(){return s(fi)},get refMenuItems(){return j},get listRef(){return ae[s(ot).id]},set listRef(Ot){ae[s(ot).id]=Ot}})}),g(q),O(it=>ut=J(q,1,"settings-menu-container svelte-17or3al",null,ut,it),[()=>({mobile:d(),hidden:!n()})]),b(t,q),H(),o()}dt(["keydown","click"]);var dx=t=>t;function H1(t,{delay:e=0,duration:i=400,easing:o=dx}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:r=>`opacity: ${r*n}`}}var cx=M('<button class="button svelte-1sbbskl"> </button>'),ux={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 Wm(t,e){z(t,ux);var i=cx();i.__click=function(...n){var r;(r=e.onClick)==null||r.apply(this,n)};var o=_(i,!0);g(i),O(()=>he(o,e.label)),b(t,i)}dt(["click"]);var px=M('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),fx={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
307
307
  /**
308
308
  * \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.
309
- */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 Nd(t,e){F(e,!0),q(t,sx);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Ft(),{ui:{t:n}}=ke(),s=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=rx(),d=_(l),a=_(d),u=_(a),f=_(u);Vd(f,{get message(){return s}}),h(u);var v=P(u,2);{var p=x=>{let y=g(()=>n("slow_video_notification_button"));Hm(x,{get label(){return r(y)},get onClick(){return e.onSelectAutoQuality}})};L(v,x=>{o||x(p)})}h(a);var b=P(a,2);pa(b,{get onClick(){return e.onClose}}),h(d),h(l),Tp(3,d,()=>V1,()=>({duration:i})),$(t,l),U()}import{isIntersecting as R1,Subscription as ax}from"@vkontakte/videoplayer-shared/es2018";var Ta="annotation",$u=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var d;let{overlay:o,id:n,controlsBehaviour:s,hideAllControls:l}=i;e.setAttribute("slot",Ta),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(n,{rootElement:e,options:i}),s&&this.runHidingControlsWhenIntersected(n,s),l&&((d=this.store)==null||d.ui.isControlsAvailable.set(!1))}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}async runHidingControlsWhenIntersected(e,{observedSlotElementId:i,controlsToObserve:o}){var f;let n=this.slots.get(e);if(!n)return;let s=await this.findSlotElement(n.rootElement,i,e),{controls:l,hiddenControls:d}=((f=this.store)==null?void 0:f.ui)||{},a=new MutationObserver(v=>v.forEach(()=>{let p=gs(s,this.shadowRootContainer);o.forEach(b=>{let x=l==null?void 0:l[b],y=x?ye(x):null,C=d==null?void 0:d[b];y&&(C==null||C.set(R1(y,p)))})}));a.observe(s,{childList:!0,subtree:!0}),n.observer=a;let u=new ax;o.forEach(v=>{l&&u.add(l[v].subscribe(p=>{let b=d==null?void 0:d[v];p&&p.isDisplayed?b==null||b.set(R1(p,gs(s,this.shadowRootContainer))):b==null||b.set(!1)}))}),n.subs=u}async findSlotElement(e,i,o){return new Promise(n=>{let s=null,l=new MutationObserver(()=>{if(s=e.querySelector(`#${i}`),s){l.disconnect();let a=this.slots.get(o);a&&(a.observerForFindingSlotElement=void 0),n(s)}});l.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=l)})}remove(e){var u,f;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:n,observerForFindingSlotElement:s,subs:l,options:{controlsBehaviour:d,hideAllControls:a}}=i;o&&o.remove(),[n,s].forEach(v=>v==null?void 0:v.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),a&&((u=this.store)==null||u.ui.isControlsAvailable.set(!0)),(f=d==null?void 0:d.controlsToObserve)==null||f.forEach(v=>{var p,b;(b=(p=this.store)==null?void 0:p.ui.hiddenControls[v])==null||b.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var lx=A('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),dx={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;
309
+ */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 Nd(t,e){D(e,!0),z(t,fx);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Ft(),{ui:{t:n}}=Ee(),r=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=px(),d=_(l),a=_(d),p=_(a),f=_(p);Vd(f,{get message(){return r}}),g(p);var v=P(p,2);{var u=w=>{let y=h(()=>n("slow_video_notification_button"));Wm(w,{get label(){return s(y)},get onClick(){return e.onSelectAutoQuality}})};R(v,w=>{o||w(u)})}g(a);var $=P(a,2);da($,{get onClick(){return e.onClose}}),g(d),g(l),Tp(3,d,()=>H1,()=>({duration:i})),b(t,l),H()}import{isIntersecting as F1,Subscription as mx}from"@vkontakte/videoplayer-shared/es2018";var Ca="annotation",$u=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var d;let{overlay:o,id:n,controlsBehaviour:r,hideAllControls:l}=i;e.setAttribute("slot",Ca),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(n,{rootElement:e,options:i}),r&&this.runHidingControlsWhenIntersected(n,r),l&&((d=this.store)==null||d.ui.isControlsAvailable.set(!1))}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}async runHidingControlsWhenIntersected(e,{observedSlotElementId:i,controlsToObserve:o}){var f;let n=this.slots.get(e);if(!n)return;let r=await this.findSlotElement(n.rootElement,i,e),{controls:l,hiddenControls:d}=((f=this.store)==null?void 0:f.ui)||{},a=new MutationObserver(v=>v.forEach(()=>{let u=ps(r,this.shadowRootContainer);o.forEach($=>{let w=l==null?void 0:l[$],y=w?$e(w):null,S=d==null?void 0:d[$];y&&(S==null||S.set(F1(y,u)))})}));a.observe(r,{childList:!0,subtree:!0}),n.observer=a;let p=new mx;o.forEach(v=>{l&&p.add(l[v].subscribe(u=>{let $=d==null?void 0:d[v];u&&u.isDisplayed?$==null||$.set(F1(u,ps(r,this.shadowRootContainer))):$==null||$.set(!1)}))}),n.subs=p}async findSlotElement(e,i,o){return new Promise(n=>{let r=null,l=new MutationObserver(()=>{if(r=e.querySelector(`#${i}`),r){l.disconnect();let a=this.slots.get(o);a&&(a.observerForFindingSlotElement=void 0),n(r)}});l.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=l)})}remove(e){var p,f;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:n,observerForFindingSlotElement:r,subs:l,options:{controlsBehaviour:d,hideAllControls:a}}=i;o&&o.remove(),[n,r].forEach(v=>v==null?void 0:v.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),a&&((p=this.store)==null||p.ui.isControlsAvailable.set(!0)),(f=d==null?void 0:d.controlsToObserve)==null||f.forEach(v=>{var u,$;($=(u=this.store)==null?void 0:u.ui.hiddenControls[v])==null||$.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var vx=M('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),gx={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;
310
310
 
311
311
  animation-name: svelte-f47ws8-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
312
312
 
@@ -337,8 +337,8 @@ Try switching the\xA0quality to\xA0Auto.`},wh=v_;var ms=new Map;ms.set(Ch.EN,wh)
337
337
  opacity: 0;
338
338
  scale: 0;
339
339
  }
340
- }`};function Fm(t,e){F(e,!0),q(t,dx);let[i,o]=Be(),n=()=>S(l,"$isPlaying$",i),s=()=>S(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:l},ui:{aboutToGoNextVideo:d},actions:a}=ke(),{features:{playbackStatusShow:u,playbackStatusAnimationDuration:f,playbackStatusNextVideoAnimationDuration:v}}=Ft(),p=0,b=j(null),x=j(!1);We(()=>{B(b,n()?Nr:bs,!0)}),We(()=>{B(b,s()?Os:null,!0)}),We(()=>{if(u)return p=window.setTimeout(()=>{p=0,s()&&r(b)===Os&&(s()==="next"?a.internal.nextVideoClick(!1):a.internal.prevVideoClick(!1)),B(b,null)},r(b)!==Os?f:v),()=>{p&&(window.clearTimeout(p),p=0)}}),We(()=>{n()&&!r(x)&&(B(x,!0),B(b,null))});var y=Fe(),C=ve(y);{var T=E=>{var M=Fe(),k=ve(M);ia(k,()=>r(b),I=>{var N=lx(),Y=_(N),D=_(Y);let H=g(()=>s()==="prev");wi(D,()=>r(b),(W,ee)=>{ee(W,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return r(H)}})}),h(Y),h(N),O(()=>it(Y,`animation-duration: ${r(b)!==Os?f:v}ms`)),$(I,N)}),$(E,M)};L(C,E=>{r(b)&&u&&E(T)})}$(t,y),U(),o()}var cx=A('<div><div data-testid="video-container"></div></div>'),ux={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
341
- .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 Ea(t,e){F(e,!0),q(t,ux);let[i,o]=Be(),n=()=>S(f,"$rotateAlpha",i),s=()=>S(v,"$playerSize",i),l=()=>S(u,"$playerPhase",i),d=()=>S(p,"$isPlaying$",i),a=m(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:f,playerSize:v},state:{isPlaying$:p}}=ke(),{isSmoothVideoRotate:b}=Ft(),x=g(()=>a()&&n()%180?s().height/s().width:1);var y=cx();let C;y.__contextmenu=function(...M){var k;(k=e.onContextMenu)==null||k.apply(this,M)},y.__mousedown=function(...M){var k;(k=e.onMouseDown)==null||k.apply(this,M)},y.__mouseup=function(...M){var k;(k=e.onMouseUp)==null||k.apply(this,M)},y.__click=function(...M){var k;(k=e.onClick)==null||k.apply(this,M)},y.__dblclick=function(...M){var k;(k=e.onDblClick)==null||k.apply(this,M)};var T=_(y);let E;et(T,M=>a(M),()=>a()),h(y),O((M,k)=>{C=J(y,1,"video-wrapper svelte-1czns9r",null,C,M),E=J(T,1,"video-container svelte-1czns9r",null,E,k),it(T,`transform: rotate(${n()}deg) scale(${r(x)})`),Oe(T,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!b})]),$(t,y),U(),o()}at(["contextmenu","mousedown","mouseup","click","dblclick"]);var px=(t,e,i,o,n,s)=>{if(t.stopPropagation(),e()||o()){s();return}},fx=A("<div><!></div>"),mx=A('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),vx=A("<div><!></div>"),gx=A('<div class="settings-menu svelte-jtgjmv"><!></div>'),hx=A("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),_x=A("<!> <!> <!>",1),bx=A('<div class="blocked svelte-jtgjmv"></div>'),$x=A('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),yx={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 Um(t,e){F(e,!0),q(t,yx);let[i,o]=Be(),n=()=>S(Ln,"$notificationsToShow$",i),s=()=>S(fi,"$playerPhase",i),l=()=>S(zt,"$isLoaderVisible",i),d=()=>S(di,"$adPlaybackState",i),a=()=>S(Tt,"$crashed",i),u=()=>S(Ho,"$isInteractiveTime$",i),f=()=>S(Qt,"$settingsMenuVisible",i),v=()=>S(Tn,"$isInteractiveExpectation$",i),p=()=>S(zi,"$controlsVisible",i),b=()=>S(Ti,"$touched",i),x=()=>S(kn,"$graphIsOpened$",i),y=()=>S(Ui,"$isFullscreen",i),C=()=>S(Or,"$autoplayNextEnabled$",i),T=()=>S(ci,"$postrollPassed",i),E=()=>S(li,"$isEnded$",i),M=()=>S(Ri,"$cursorInside",i),k=()=>S(Jn,"$isControlsAvailable",i),I=()=>S(In,"$fakeIsPlaying$",i),N=()=>S(Xt,"$bottomNoSmooth",i),Y=()=>S(wo,"$interactiveTimeIndicator",i),D=()=>S(xo,"$playerSize",i),H=()=>S(hi,"$is3DVideo",i),W=()=>S(mi,"$contextMenuVisible$",i),ee=()=>S(Mi,"$playbackState$",i),K=()=>S(Fo,"$hotKeyMapData",i),de=()=>S(It,"$scrubbingInProgress",i),oe=()=>S(lt,"$volumeChangingInProgress",i),we=()=>S(Li,"$chromecastConnected$",i),Ie=()=>S(Vn,"$controlsTimeoutActive",i),pe=()=>S(po,"$settingsMenuOpenedByKeyboard",i),le=()=>S(Ao,"$contextMenuOpenedByKeyboard$",i),Ae=()=>S(Ur,"$contextMenuOpenedByHotKey$",i),te=()=>S(hn,"$contextMenuButtonRef$",i),R=()=>S(wr,"$contextMenuLastActiveElem$",i),Ge=()=>S(uo,"$isFullscreenOpenedByKeyboard",i),ie=()=>S(pt,"$language$",i),Ke=()=>S(ht,"$icon3DVideoVisible",i),ce=()=>S(ri,"$chromecastDeviceName$",i),fe=()=>S(Xn,"$currentSubtitle$",i),$e=()=>S(Ci,"$currentSubtitleCaptions$",i),Z=()=>S(ot,"$position$",i),qe=()=>S(Bt,"$duration$",i),Ze=()=>S(ct,"$isLive$",i),Pe=()=>S(tt,"$isPlaying$",i),re=()=>S(tn,"$contextMenuPosition$",i),Ee=()=>S(En,"$showHotKeyMap",i),Qe=()=>S(G,"$debugPanelVisible",i),rt=()=>S(gr,"$userActionsDisabled$",i),nt=m(e,"videoContainer",15),Mt=m(e,"adsSlotId",3,void 0),Je=m(e,"adsParams",3,void 0),dt=m(e,"adsPreviewParam",3,void 0),qt=m(e,"adsAutoplayParam",3,void 0),oi=m(e,"duration",3,void 0),Kt=m(e,"logoTargetUrl",3,""),wt=m(e,"showNextPrevButtons",3,!1),ne=m(e,"nextButtonActive",3,!1),Lt=m(e,"prevButtonActive",3,!1),ge=m(e,"endScreenVideoTitle",3,void 0),X=m(e,"endScreenVideoThumb",3,void 0),xe=m(e,"isOneVideoPlaylist",3,!1),He=m(e,"shadowRootContainer",3,void 0),me=m(e,"outerContainerRef",3,void 0),Re=m(e,"playerStarted",3,!1),Xe=m(e,"fullScreenTarget",3,void 0),Ue=m(e,"showMiniTimer",3,!1),Pt=m(e,"showEndScreen",3,!0),St=m(e,"keyboardControls",15),yt=e.store.getLogger().createComponentLog("Root component"),pt=e.store.interfaceLanguage$,Mi=e.store.state.playbackState$,di=e.store.ads.playbackState,ot=e.store.state.positionWithScrubbing$,Bt=e.store.state.duration$,fi=e.store.playerPhase,Ui=e.store.ui.isFullscreen,uo=e.store.ui.isFullscreenOpenedByKeyboard,zi=e.store.ui.controlsVisible,Qt=e.store.ui.settingsMenu.visible$,po=e.store.ui.settingsMenu.openedByBtnKeyboard$,It=e.store.ui.scrubbingInProgress,lt=e.store.ui.volumeChangingInProgress,mi=e.store.ui.contextMenu.visible$,G=e.store.ui.debugPanelVisible,zt=e.store.state.isLoaderVisible,li=e.store.state.isEnded$,Li=e.store.state.chromecastConnected$,ri=e.store.state.chromecastDeviceName$,ci=e.store.ads.postrollPassed,ct=e.store.state.isLive$,tt=e.store.state.isPlaying$,Tt=e.store.state.crashed$,Wi=e.store.webApi.annotationsApi,ti=e.store.webApi.pictureInPictureApi,Xn=e.store.state.currentSubtitle$,Ci=e.store.state.currentSubtitleCaptions$,xo=e.store.ui.playerSize,hi=e.store.ui.is3DVideo,ht=e.store.ui.icon3DVideoVisible,Vi=e.store.state.isInteractive,Ho=e.store.state.isInteractiveTime$,Tn=e.store.state.isInteractiveExpectation$,si=e.store.state.hasInteractiveBranches,Ti=e.store.ui.touched,Fo=e.store.ui.modals.hotKeyMap.data,En=e.store.ui.modals.hotKeyMap.show,Uo=e.store.ui.overlayContainer$,wo=e.store.ui.controls.interactiveTimeIndicator,vn=e.store.state.showInteractiveTimeIndicator,tn=e.store.ui.contextMenu.position$,fo=e.store.actions.internal.setQuality,mo=e.store.actions.internal.closeSettingsMenu,Or=e.store.ui.autoplayNextEnabled$,gr=e.store.ui.userActionsDisabled,Jn=e.store.ui.isControlsAvailable,er=e.store.ui.videoTitleInfo,tr=e.store.actions.internal.getVideoElement,{fakeIsPlaying$:In,notifications$:is,graphIsOpened$:kn}=co(),Ei=j(void 0),Pn=j(void 0),on=j(void 0),nn=j(void 0),An,Mn,zo;Fo.set(Mh());let{closeNotification:Dr,notificationsToShow$:Ln}=is,ir=g(()=>!!n().slow_video),Ki=()=>Dr("slow_video"),So=g(()=>(s()==="video"&&l()||s()==="ads"&&d()==="inactive")&&!a()),st=j(void 0),Xt=ae(!1),hr,Vn=ae(!1),gn=ae(),Ri=ae(!1),Rn=j(!1),Co=j(!1),Nn=j(!1),To=j(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Bn=g(()=>u()&&!f()&&!(r(Rn)||r(Co))&&!(r(Nn)&&!v())),On=!0,or=g(()=>e.uiConfig.features.thumbTimer&&Ue()&&s()==="video"&&!p()&&!a()&&!Vi&&(e.uiConfig.hideThumbTimerAfterTouch&&!b()||!e.uiConfig.hideThumbTimerAfterTouch)),_r=g(()=>s()==="video"&&!x()&&y()),nr=j(!1),Wo=g(()=>(Pt()||e.showAutoplayNext&&C())&&!!ge()&&!!X()&&(e.showAds&&T()||!e.showAds)&&E()&&!a()&&!r(nr)),Hr=g(()=>M()&&!(p()||r(Wo))&&!u()&&k()),rr=j(!1),br=g(()=>I()!==null),{toggle:rn}=In,Gt=!1,vo=null;ti==null||ti.setContext(yl());let $r=()=>{e.autoplay&&!Vi&&e.uiConfig.controls.showOnStartupAtAutoplay&&Ii(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:$r});let Eo=()=>{window.clearTimeout(An),Vn.set(!1)},yr=()=>{window.clearTimeout(Mn),gn.set(null)},Ii=Se=>{Eo(),Vn.set(!0),An=window.setTimeout(()=>Vn.set(!1),Se);let _e=Se-100;hr=window.setTimeout(()=>{N()&&Xt.set(!1)},_e>0?_e:Se)},Fr=(Se,_e)=>{yr(),gn.set(_e),Mn=window.setTimeout(()=>gn.set(null),Se)},os=hi.subscribe(Se=>{ht.set(Se),Se&&(window.clearTimeout(zo),zo=window.setTimeout(()=>ht.set(!1),e.uiConfig.controls.hide360IconTimeout))}),xr=async()=>{var _e,mt,Ot,ui;let Se=As();if(Se){let Ne=Yl(),bt=Yt();Se=Ne===bt||Ne===He()}if(Se){Ii(e.uiConfig.controls.hideTimeoutFullscreen);try{await(ti==null?void 0:ti.remove())}catch(Ne){yt({message:String(Ne)})}}Ui.set(Se),e.store.getAdmanWrapper().setFullscreen(Se),y()?(mt=(_e=e.store.callbacks)==null?void 0:_e.onFullscreenEnter)==null||mt.call(_e):(ui=(Ot=e.store.callbacks)==null?void 0:Ot.onFullscreenExit)==null||ui.call(Ot)},sr=Se=>{let{width:_e,height:mt}=Se.target;xo.set({width:_e,height:mt})},ft=()=>{let{width:Se,height:_e}=r(Ei).getBoundingClientRect();xo.set({width:Se,height:_e})};Nt(()=>{var _e;return Kc(xr),e.uiConfig.features.annotationsInside&&(Wi==null||Wi.init(r(Ei))),da(ti)&&(ti==null||ti.assignPlayerContainer(r(Ei)),ti==null||ti.registryExternalEventHandlers({resize:sr,leavepictureinpicture:ft})),e.interactiveContainer&&((_e=nt().parentElement)==null||_e.insertBefore(e.interactiveContainer,nt().nextSibling)),()=>{window.clearTimeout(An),window.clearTimeout(hr),window.clearTimeout(Mn),window.clearTimeout(zo),os(),ti==null||ti.dispose().catch(mt=>{yt({message:String(mt)})}),qc(xr)}});let Yt=()=>{let Se=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!me()?r(Ei):me(),_e=Se.getRootNode(),mt=_e instanceof ShadowRoot?_e.host:_e,Ot=Xe()instanceof HTMLElement&&Xe().contains(mt);return e.uiConfig.allowChangingFullscreenTarget&&Xe()&&Ot?Xe():Se},oo=async()=>{As()?(await Wc(document),yt({message:"exit fullscreen"})):(yt({message:"request fullscreen"}),await zc(Yt()))},_i=()=>{mo(),mi.set(!1)},Io=Se=>{x()||(Se.preventDefault(),mi.set(!0),tn.set({left:Se.clientX,top:Se.clientY}))};function no(){Ri.set(!0),Vi||Ii(e.uiConfig.controls.hideTimeoutCursor)}function Ko(){Vi||(Xt.set(!0),Ii(e.uiConfig.controls.hideTimeoutCursor))}function ji(){Ri.set(!1),B(Co,!1),B(Rn,!1),Gt=!1,e.store.actions.internal.releaseCamera(),Ii(e.uiConfig.controls.hideTimeout)}function qo(Se){return Se?Se.offsetTop+qo(Se.offsetParent):0}function je(Se){return Se?Se.offsetLeft+je(Se.offsetParent):0}function At(Se){if(Y()&&vn){let _e=Se.currentTarget,mt=qo(_e),Ot=je(_e),ui=Se.pageX-Ot,Ne=Se.pageY-mt,{left:bt,bottom:Wt,right:ao}=Y(),Go=ao-bt;return ui>=bt-Go&&Ne<=Wt+Go}}function bi(Se){if(r(Ei)){let _e=qo(Se.currentTarget),mt=D().height,Ot=Se.pageY-_e;if(At(Se)){B(Co,!1);return}Ot<40?B(Co,!0):Ot>mt-40?B(Rn,!0):(B(Co,!1),f()||B(Rn,!1))}}function ro(Se){bi(Se),r(Bn)||Ii(e.uiConfig.controls.hideTimeoutCursor),H()&&Gt&&vo&&e.store.actions.internal.moveCameraFocusPX(vo.clientX-Se.clientX,vo.clientY-Se.clientY,Se.timeStamp-vo.timeStamp),vo=Se}let go=Se=>{Se.preventDefault(),Se.button===0&&(Gt=!0,e.store.actions.internal.holdCamera()),Ii(e.uiConfig.controls.hideTimeoutCursor)},ko=Se=>{Se.preventDefault(),Se.button===0&&(vo=Se,Gt=!1,e.store.actions.internal.releaseCamera()),Ii(e.uiConfig.controls.hideTimeoutCursor)},so=Se=>{Se.preventDefault(),On&&(yt({message:"double click on video"}),oo(),Ii(e.uiConfig.controls.hideTimeoutCursor))},Po=Se=>{var _e;if(Se.preventDefault(),W()||f()){_i();return}if(!(E()&&!si)){if(r(br))return rn();if((_e=St())==null||_e.focus(),!Re()){e.firstStart(),Ii(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||ee()!==B1.PLAYING)&&e.store.actions.internal.togglePlay(),Ii(e.uiConfig.controls.hideTimeoutCursor)}},Qo=Se=>{_i(),Ti.set(!0),Ii(e.uiConfig.controls.hideTimeout),Se&&Fr(e.uiConfig.controls.hideHotKeyHelpers,Se)},Ni=()=>{var Se,_e;_i(),(Se=e.store.callbacks)!=null&&Se.onOpenHotKeyMap?(_e=e.store.callbacks)==null||_e.onOpenHotKeyMap(K()):En.update(mt=>!mt)},$i=()=>{Ti.set(!0)},Ao=e.store.ui.contextMenu.openedByBtnKeyboard$,hn=e.store.ui.contextMenu.btnRef$,Zi=j(void 0),Ur=e.store.ui.contextMenu.openedByHotKey$,wr=e.store.ui.contextMenu.lastActiveElem$;We(()=>{Uo.set(r(st))}),We(()=>{B(Nn,r(To)&&ee()!==B1.PLAYING,!0),r(To)||Ct(()=>B(To,!0))}),We(()=>{zi.set((r(Nn)||E()||f()||de()||oe()||we()||Ie())&&!r(Bn)&&(s()==="video"||s()==="ads")&&!a()&&k())}),We(()=>{!de()&&r(rr)&&!u()&&Ii(e.uiConfig.controls.hideTimeoutCursor),Ct(()=>B(rr,de(),!0))}),We(()=>{r(nn),f(),pe(),Ct(()=>td(r(nn),f(),pe()))}),We(()=>{r(Zi),W(),le(),Ae(),Ct(()=>{let Se=le()||Ae();td(r(Zi),W(),Se)})}),We(()=>{let Se=te();Se&&(W(),Ct(()=>ol(Se,W(),Ao)))}),We(()=>{let Se=R();Se&&(W(),Ct(()=>Oh(Se,W(),Ur)))}),We(()=>{var Se;!Ge()&&y()&&(Ct(()=>uo.set(!1)),(Se=St())==null||Se.focus())}),We(()=>{x()&&_i()});let ns=z("video360"),sn=j(void 0),ar=Se=>{er.set(Sn(tr(),{title:r(sn)},"title",Se))},zr=(Se,_e,mt)=>{var ui,Ne,bt;let Ot={...Sn(r(Ei),{upcomingLiveScreen:mt},"upcomingLiveScreen",_e),view:Se};(bt=(Ne=(ui=e.store.callbacks)==null?void 0:ui.uiInfo)==null?void 0:Ne.onUpcomingLiveViewStateChanged)==null||bt.call(Ne,Ot)};var Sr=$x();xt("blur",js,_i);var yi=ve(Sr);yi.__mousemove=ro;var Dn=_(yi);let Hn=g(()=>s()==="ads"),Cr=g(()=>r(br)?rn:void 0);et(df(Dn,{toggleFullscreen:oo,hideContextMenu:_i,showHotKeyHelpers:Qo,showKeyMap:Ni,get isAds(){return r(Hn)},get fakePlayButtonHandler(){return r(Cr)},get nextButtonActive(){return ne()},get prevButtonActive(){return Lt()},children:(Se,_e)=>{var mt=_x(),Ot=ve(mt);Ea(Ot,{get hideCursor(){return r(Hr)},onClick:Po,onContextMenu:Io,onMouseDown:go,onMouseUp:ko,onDblClick:so,get videoContainer(){return nt()},set videoContainer(bt){nt(bt)}});var ui=P(Ot,2);oa(ui,()=>"slot",!1,(bt,Wt)=>{Me(bt,()=>({name:Ta}))});var Ne=P(ui,2);ia(Ne,ie,bt=>{var Wt=hx(),ao=ve(Wt);let Go=g(()=>s()!=="thumb"||a()||Vi&&e.autoplay);wa(ao,{get hidden(){return r(Go)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var lo=P(ao,2);Fm(lo,{});var Er=P(lo,2);{var Wr=ze=>{let ni=g(()=>{var ho;return(ho=e.live)==null?void 0:ho.startTime});Md(ze,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(ni)},get playerSize(){return xo},onUpcomingLiveViewStateChanged:zr})};L(Er,ze=>{s()==="LiveWaitingStart"&&ze(Wr)})}var qi=P(Er,2);{var Bi=ze=>{Sa(ze,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};L(qi,ze=>{s()==="LiveWaitingRecover"&&ze(Bi)})}var an=P(qi,2);{var dr=ze=>{Sa(ze,{kind:"record",get thumbUrl(){return e.thumbUrl}})};L(an,ze=>{s()==="LiveWaitingRecord"&&ze(dr)})}var cr=P(an,2);{var Mo=ze=>{var ni=fx();let ho;var Us=_(ni);jl(Us,{get adsSlotId(){return Mt()},get adsParams(){return Je()},get adsPreviewParam(){return dt()},get adsAutoplayParam(){return qt()},get duration(){return oi()}}),h(ni),O(dn=>ho=J(ni,1,"ads-container svelte-jtgjmv",null,ho,dn),[()=>({hidden:s()!=="ads"})]),$(ze,ni)};L(cr,ze=>{e.showAds&&Re()&&ze(Mo)})}var Fn=P(cr,2);{var Ia=ze=>{let ni=g(()=>!Pt()&&e.showAutoplayNext&&C());sf(ze,{get title(){return ge()},get thumb(){return X()},get isHide(){return r(ni)},clickCloseIcon:()=>B(nr,!0)})};L(Fn,ze=>{r(Wo)&&ge()&&X()&&ze(Ia)})}var _t=P(Fn,2);{var $t=ze=>{let ni=g(()=>!p());hm(ze,{get title(){return e.title},get isHidden(){return r(ni)},onVisibilityChanged:ar,get ref(){return r(sn)},set ref(ho){B(sn,ho,!0)}})};L(_t,ze=>{r(_r)&&ze($t)})}var Xi=P(_t,2);{var ln=ze=>{let ni=g(()=>s()==="video"&&p());kd(ze,{get isShifted(){return r(ni)}})};L(Xi,ze=>{H()&&ze(ln)})}var Ji=P(Xi,2);{var ai=ze=>{var ni=mx(),ho=_(ni);Gl(ho,{get"aria-label"(){return ns}}),h(ni),$(ze,ni)};L(Ji,ze=>{Ke()&&ze(ai)})}var ki=P(Ji,2);{var Hs=ze=>{Pd(ze,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ce()}})};L(ki,ze=>{we()&&ze(Hs)})}var ka=P(ki,2);{var Au=ze=>{xa(ze,{get shifted(){return p()},get captions(){return $e()},get position(){return Z()},get playerSize(){return D()}})};L(ka,ze=>{fe().value!=="off"&&ze(Au)})}var Gd=P(ka,2);{var Mu=ze=>{var ni=vx();ni.__contextmenu=Io,ni.__click=[px,W,mi,f,Qt,_i];var ho=_(ni);Ad(ho,{}),h(ni),$(ze,ni)};L(Gd,ze=>{a()&&ze(Mu)})}var Yd=P(Gd,2);{var Lu=ze=>{let ni=g(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),ho=g(()=>s()==="ads"),Us=g(()=>e.canRewindLive&&qe()!==0);Id(ze,{get bottomHidden(){return r(ni)},get bottomNoSmooth(){return N()},get showControls(){return p()},get isAds(){return r(ho)},get canRewindLive(){return r(Us)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Kt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return wt()},get nextButtonActive(){return ne()},get prevButtonActive(){return Lt()},get isOneVideoPlaylist(){return xe()},customFullscreenSupported:On,toggleFullscreen:oo,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(Pn)},set playerControlsWrapperRef(dn){B(Pn,dn,!0)},get playerControlsRef(){return r(on)},set playerControlsRef(dn){B(on,dn,!0)}})};L(Yd,ze=>{Re()&&ze(Lu)})}var Fs=P(Yd,2);{var Vu=ze=>{var ni=gx(),ho=_(ni);let Us=g(()=>{var dn;return(dn=r(on))==null?void 0:dn.clientHeight});Rd(ho,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(Us)},returnFocus:()=>{var dn;return(dn=St())==null?void 0:dn.focus()},get ref(){return r(nn)},set ref(dn){B(nn,dn,!0)}}),h(ni),$(ze,ni)};L(Fs,ze=>{!we()&&s()!=="ads"&&ze(Vu)})}var vl=P(Fs,2);let jd=g(()=>!r(or));Jl(vl,{get isLive(){return Ze()},get isHidden(){return r(jd)},get isPlaying(){return Pe()},get position(){return Z()},get duration(){return qe()}});var Zd=P(vl,2);fm(Zd,{get data(){return gn}});var gl=P(Zd,2);rf(gl,{get supportLink(){return e.supportLink},returnFocus:()=>{var ze;return(ze=St())==null?void 0:ze.focus()},get visible(){return W()},get playerContainerRef(){return r(Ei)},get controlsContainerRef(){return r(Pn)},get position(){return re()},get menuElementRef(){return r(Zi)},set menuElementRef(ze){B(Zi,ze,!0)}});var Pa=P(gl,2);{var Xd=ze=>{Nd(ze,{onClose:Ki,onSelectAutoQuality:()=>{fo("auto"),Ki()}})};L(Pa,ze=>{r(ir)&&ze(Xd)})}var Jd=P(Pa,2);{var ec=ze=>{ma(ze,{})};L(Jd,ze=>{r(So)&&ze(ec)})}var tc=P(Jd,2);{var Ru=ze=>{pf(ze,{})};L(tc,ze=>{Ee()&&ze(Ru)})}var Nu=P(tc,2);{var Bu=ze=>{nd(ze,{})};L(Nu,ze=>{Qe()&&ze(Bu)})}$(bt,Wt)}),$(Se,mt)},$$slots:{default:!0}}),Se=>St(Se),()=>St());var Tr=P(Dn,2);et(Tr,Se=>B(st,Se),()=>r(st)),h(yi),et(yi,Se=>B(Ei,Se),()=>r(Ei));var rs=P(yi,2);{var lr=Se=>{var _e=bx();$(Se,_e)};L(rs,Se=>{rt()&&Se(lr)})}xt("mouseenter",yi,no),xt("mouseleave",yi,ji),xt("click",yi,$i,!0),xt("focusin",yi,Ko,!0),$(t,Sr),U(),o()}at(["mousemove","contextmenu","click"]);import{clientChecker as Bd,PlaybackState as Ax}from"@vkontakte/videoplayer-core/es2018";import{noop as Mx}from"@vkontakte/videoplayer-shared/es2018";var xx=A('<div></div> <div class="info svelte-nhq2ld"><div class="triangles-wrapper svelte-nhq2ld"><div></div> <div></div> <div></div></div> <p class="step-caption svelte-nhq2ld"> </p></div>',1),wx=A("<div><!></div>"),Sx={hash:"svelte-nhq2ld",code:`.double-click-area.svelte-nhq2ld {position:absolute;top:0;height:100%;width:25%;overflow:hidden;}.double-click-area.left.svelte-nhq2ld {left:0;}.double-click-area.right.svelte-nhq2ld {right:0;}.semicircle.svelte-nhq2ld {position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);}.semicircle.left.svelte-nhq2ld {left:0;border-top-right-radius:50%;border-bottom-right-radius:50%;}.semicircle.right.svelte-nhq2ld {right:0;border-top-left-radius:50%;border-bottom-left-radius:50%;}.info.svelte-nhq2ld {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center;}.triangles-wrapper.svelte-nhq2ld {position:relative;display:flex;margin-bottom:10px;justify-content:center;}.triangle.svelte-nhq2ld {width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;
340
+ }`};function qm(t,e){D(e,!0),z(t,gx);let[i,o]=Fe(),n=()=>C(l,"$isPlaying$",i),r=()=>C(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:l},ui:{aboutToGoNextVideo:d},actions:a}=Ee(),{features:{playbackStatusShow:p,playbackStatusAnimationDuration:f,playbackStatusNextVideoAnimationDuration:v}}=Ft(),u=0,$=Y(null),w=Y(!1);qe(()=>{B($,n()?Br:vs,!0)}),qe(()=>{B($,r()?Vs:null,!0)}),qe(()=>{if(p)return u=window.setTimeout(()=>{u=0,r()&&s($)===Vs&&(r()==="next"?a.internal.nextVideoClick(!1):a.internal.prevVideoClick(!1)),B($,null)},s($)!==Vs?f:v),()=>{u&&(window.clearTimeout(u),u=0)}}),qe(()=>{n()&&!s(w)&&(B(w,!0),B($,null))});var y=ze(),S=pe(y);{var T=I=>{var A=ze(),k=pe(A);Js(k,()=>s($),E=>{var L=vx(),K=_(L),U=_(K);let W=h(()=>r()==="prev");Ci(U,()=>s($),(G,te)=>{te(G,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return s(W)}})}),g(K),g(L),O(()=>at(K,`animation-duration: ${s($)!==Vs?f:v}ms`)),b(E,L)}),b(I,A)};R(S,I=>{s($)&&p&&I(T)})}b(t,y),H(),o()}var hx=M('<div><div data-testid="video-container"></div></div>'),_x={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
341
+ .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 Sa(t,e){D(e,!0),z(t,_x);let[i,o]=Fe(),n=()=>C(f,"$rotateAlpha",i),r=()=>C(v,"$playerSize",i),l=()=>C(p,"$playerPhase",i),d=()=>C(u,"$isPlaying$",i),a=m(e,"videoContainer",15),{playerPhase:p,ui:{rotateAlpha:f,playerSize:v},state:{isPlaying$:u}}=Ee(),{isSmoothVideoRotate:$}=Ft(),w=h(()=>a()&&n()%180?r().height/r().width:1);var y=hx();let S;y.__contextmenu=function(...A){var k;(k=e.onContextMenu)==null||k.apply(this,A)},y.__mousedown=function(...A){var k;(k=e.onMouseDown)==null||k.apply(this,A)},y.__mouseup=function(...A){var k;(k=e.onMouseUp)==null||k.apply(this,A)},y.__click=function(...A){var k;(k=e.onClick)==null||k.apply(this,A)},y.__dblclick=function(...A){var k;(k=e.onDblClick)==null||k.apply(this,A)};var T=_(y);let I;tt(T,A=>a(A),()=>a()),g(y),O((A,k)=>{S=J(y,1,"video-wrapper svelte-1czns9r",null,S,A),I=J(T,1,"video-container svelte-1czns9r",null,I,k),at(T,`transform: rotate(${n()}deg) scale(${s(w)})`),Be(T,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!$})]),b(t,y),H(),o()}dt(["contextmenu","mousedown","mouseup","click","dblclick"]);var bx=(t,e,i,o,n,r)=>{if(t.stopPropagation(),e()||o()){r();return}},$x=M("<div><!></div>"),yx=M('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),xx=M("<div><!></div>"),wx=M('<div class="settings-menu svelte-jtgjmv"><!></div>'),Cx=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Sx=M("<!> <!> <!>",1),Tx=M('<div class="blocked svelte-jtgjmv"></div>'),Ex=M('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),Ix={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 Km(t,e){D(e,!0),z(t,Ix);let[i,o]=Fe(),n=()=>C($r,"$notificationsToShow$",i),r=()=>C(Jt,"$playerPhase",i),l=()=>C(Vo,"$isLoaderVisible",i),d=()=>C(ui,"$adPlaybackState",i),a=()=>C(ot,"$crashed",i),p=()=>C(Yo,"$isInteractiveTime$",i),f=()=>C(Gt,"$settingsMenuVisible",i),v=()=>C(An,"$isInteractiveExpectation$",i),u=()=>C(di,"$controlsVisible",i),$=()=>C(Gi,"$touched",i),w=()=>C(_r,"$graphIsOpened$",i),y=()=>C(li,"$isFullscreen",i),S=()=>C(Xn,"$autoplayNextEnabled$",i),T=()=>C(Ii,"$postrollPassed",i),I=()=>C(q,"$isEnded$",i),A=()=>C(Vn,"$cursorInside",i),k=()=>C(Dr,"$isControlsAvailable",i),E=()=>C(hr,"$fakeIsPlaying$",i),L=()=>C(mi,"$bottomNoSmooth",i),K=()=>C(Ui,"$interactiveTimeIndicator",i),U=()=>C(Go,"$playerSize",i),W=()=>C(Li,"$is3DVideo",i),G=()=>C(bt,"$contextMenuVisible$",i),te=()=>C(oi,"$playbackState$",i),j=()=>C(bi,"$hotKeyMapData",i),ae=()=>C(Lo,"$scrubbingInProgress",i),de=()=>C(Rt,"$volumeChangingInProgress",i),we=()=>C(ut,"$chromecastConnected$",i),Re=()=>C(xo,"$controlsTimeoutActive",i),me=()=>C(Ti,"$settingsMenuOpenedByKeyboard",i),le=()=>C(lo,"$contextMenuOpenedByKeyboard$",i),Ve=()=>C(Ur,"$contextMenuOpenedByHotKey$",i),ee=()=>C(Sr,"$contextMenuButtonRef$",i),N=()=>C(zr,"$contextMenuLastActiveElem$",i),Oe=()=>C(Qi,"$isFullscreenOpenedByKeyboard",i),_e=()=>C(Xe,"$language$",i),ve=()=>C(yt,"$icon3DVideoVisible",i),ce=()=>C(pi,"$chromecastDeviceName$",i),ne=()=>C(pn,"$currentSubtitle$",i),ye=()=>C(Ro,"$currentSubtitleCaptions$",i),Z=()=>C(lt,"$position$",i),Ke=()=>C(Xt,"$duration$",i),ue=()=>C(ft,"$isLive$",i),ke=()=>C(it,"$isPlaying$",i),Ae=()=>C(jo,"$contextMenuPosition$",i),Te=()=>C($o,"$showHotKeyMap",i),Qe=()=>C(Ei,"$debugPanelVisible",i),nt=()=>C(gr,"$userActionsDisabled$",i),_t=m(e,"videoContainer",15),$t=m(e,"adsSlotId",3,void 0),St=m(e,"adsParams",3,void 0),Ge=m(e,"adsPreviewParam",3,void 0),zt=m(e,"adsAutoplayParam",3,void 0),Qt=m(e,"duration",3,void 0),Wt=m(e,"logoTargetUrl",3,""),Bt=m(e,"showNextPrevButtons",3,!1),X=m(e,"nextButtonActive",3,!1),At=m(e,"prevButtonActive",3,!1),fe=m(e,"endScreenVideoTitle",3,void 0),be=m(e,"endScreenVideoThumb",3,void 0),re=m(e,"isOneVideoPlaylist",3,!1),De=m(e,"shadowRootContainer",3,void 0),We=m(e,"outerContainerRef",3,void 0),Me=m(e,"playerStarted",3,!1),Ze=m(e,"fullScreenTarget",3,void 0),Ne=m(e,"showMiniTimer",3,!1),et=m(e,"showEndScreen",3,!0),kt=m(e,"keyboardControls",15),Mt=e.store.getLogger().createComponentLog("Root component"),Xe=e.store.interfaceLanguage$,oi=e.store.state.playbackState$,ui=e.store.ads.playbackState,lt=e.store.state.positionWithScrubbing$,Xt=e.store.state.duration$,Jt=e.store.playerPhase,li=e.store.ui.isFullscreen,Qi=e.store.ui.isFullscreenOpenedByKeyboard,di=e.store.ui.controlsVisible,Gt=e.store.ui.settingsMenu.visible$,Ti=e.store.ui.settingsMenu.openedByBtnKeyboard$,Lo=e.store.ui.scrubbingInProgress,Rt=e.store.ui.volumeChangingInProgress,bt=e.store.ui.contextMenu.visible$,Ei=e.store.ui.debugPanelVisible,Vo=e.store.state.isLoaderVisible,q=e.store.state.isEnded$,ut=e.store.state.chromecastConnected$,pi=e.store.state.chromecastDeviceName$,Ii=e.store.ads.postrollPassed,ft=e.store.state.isLive$,it=e.store.state.isPlaying$,ot=e.store.state.crashed$,fi=e.store.webApi.annotationsApi,Ot=e.store.webApi.pictureInPictureApi,pn=e.store.state.currentSubtitle$,Ro=e.store.state.currentSubtitleCaptions$,Go=e.store.ui.playerSize,Li=e.store.ui.is3DVideo,yt=e.store.ui.icon3DVideoVisible,Vi=e.store.state.isInteractive,Yo=e.store.state.isInteractiveTime$,An=e.store.state.isInteractiveExpectation$,Ri=e.store.state.hasInteractiveBranches,Gi=e.store.ui.touched,bi=e.store.ui.modals.hotKeyMap.data,$o=e.store.ui.modals.hotKeyMap.show,fn=e.store.ui.overlayContainer$,Ui=e.store.ui.controls.interactiveTimeIndicator,No=e.store.state.showInteractiveTimeIndicator,jo=e.store.ui.contextMenu.position$,yo=e.store.actions.internal.setQuality,Zo=e.store.actions.internal.closeSettingsMenu,Xn=e.store.ui.autoplayNextEnabled$,gr=e.store.ui.userActionsDisabled,Dr=e.store.ui.isControlsAvailable,Jn=e.store.ui.videoTitleInfo,Xo=e.store.actions.internal.getVideoElement,{fakeIsPlaying$:hr,notifications$:Hr,graphIsOpened$:_r}=co(),ro=Y(void 0),mn=Y(void 0),Bo=Y(void 0),vn=Y(void 0),Oo,Mn,Ln;bi.set(Bh());let{closeNotification:br,notificationsToShow$:$r}=Hr,pt=h(()=>!!n().slow_video),ei=()=>br("slow_video"),yr=h(()=>(r()==="video"&&l()||r()==="ads"&&d()==="inactive")&&!a()),Ni=Y(void 0),mi=se(!1),er,xo=se(!1),gn=se(),Vn=se(!1),wo=Y(!1),so=Y(!1),Co=Y(!1),Rn=Y(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Nn=h(()=>p()&&!f()&&!(s(wo)||s(so))&&!(s(Co)&&!v())),tr=!0,Bn=h(()=>e.uiConfig.features.thumbTimer&&Ne()&&r()==="video"&&!u()&&!a()&&!Vi&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),ir=h(()=>r()==="video"&&!w()&&y()),or=Y(!1),xr=h(()=>(et()||e.showAutoplayNext&&S())&&!!fe()&&!!be()&&(e.showAds&&T()||!e.showAds)&&I()&&!a()&&!s(or)),On=h(()=>A()&&!(u()||s(xr))&&!p()&&k()),Dn=Y(!1),So=h(()=>E()!==null),{toggle:nr}=hr,ii=!1,Do=null;Ot==null||Ot.setContext(xl());let rr=()=>{e.autoplay&&!Vi&&e.uiConfig.controls.showOnStartupAtAutoplay&&st(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:rr});let sr=()=>{window.clearTimeout(Oo),xo.set(!1)},Hn=()=>{window.clearTimeout(Mn),gn.set(null)},st=xe=>{sr(),xo.set(!0),Oo=window.setTimeout(()=>xo.set(!1),xe);let Pt=xe-100;er=window.setTimeout(()=>{L()&&mi.set(!1)},Pt>0?Pt:xe)},ni=(xe,Pt)=>{Hn(),gn.set(Pt),Mn=window.setTimeout(()=>gn.set(null),xe)},hn=Li.subscribe(xe=>{yt.set(xe),xe&&(window.clearTimeout(Ln),Ln=window.setTimeout(()=>yt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Jo=async()=>{var Pt,He,wt,gi;let xe=Es();if(xe){let $i=jl(),ki=$n();xe=$i===ki||$i===De()}if(xe){st(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Ot==null?void 0:Ot.exit())}catch($i){Mt({message:String($i)})}}li.set(xe),e.store.getAdmanWrapper().setFullscreen(xe),y()?(He=(Pt=e.store.callbacks)==null?void 0:Pt.onFullscreenEnter)==null||He.call(Pt):(gi=(wt=e.store.callbacks)==null?void 0:wt.onFullscreenExit)==null||gi.call(wt)},_n=xe=>{let{width:Pt,height:He}=xe.target;Go.set({width:Pt,height:He})},bn=()=>{let{width:xe,height:Pt}=s(ro).getBoundingClientRect();Go.set({width:xe,height:Pt})};Nt(()=>{var Pt;return qc(Jo),e.uiConfig.features.annotationsInside&&(fi==null||fi.init(s(ro))),sa(Ot)&&(Ot==null||Ot.assignPlayerContainer(s(ro)),Ot==null||Ot.setExternalEventHandlers({resize:_n,leavepictureinpicture:bn})),e.interactiveContainer&&((Pt=_t().parentElement)==null||Pt.insertBefore(e.interactiveContainer,_t().nextSibling)),()=>{window.clearTimeout(Oo),window.clearTimeout(er),window.clearTimeout(Mn),window.clearTimeout(Ln),hn(),Ot==null||Ot.dispose().catch(He=>{Mt({message:String(He)})}),Kc(Jo)}});let $n=()=>{let xe=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!We()?s(ro):We(),Pt=xe.getRootNode(),He=Pt instanceof ShadowRoot?Pt.host:Pt,wt=Ze()instanceof HTMLElement&&Ze().contains(He);return e.uiConfig.allowChangingFullscreenTarget&&Ze()&&wt?Ze():xe},Yi=()=>{bt.set(!1)},uo=()=>{Zo(),Yi()},Fn=async()=>{Yi(),Es()?(await Wc(document),Mt({message:"exit fullscreen"})):(Mt({message:"request fullscreen"}),await zc($n()))},wr=xe=>{w()||(xe.preventDefault(),bt.set(!0),jo.set({left:xe.clientX,top:xe.clientY}))};function Fr(){Vn.set(!0),Vi||st(e.uiConfig.controls.hideTimeoutCursor)}function Cr(){Vi||(mi.set(!0),st(e.uiConfig.controls.hideTimeoutCursor))}function rt(){Vn.set(!1),B(so,!1),B(wo,!1),ii=!1,e.store.actions.internal.releaseCamera(),st(e.uiConfig.controls.hideTimeout)}function mt(xe){return xe?xe.offsetTop+mt(xe.offsetParent):0}function ri(xe){return xe?xe.offsetLeft+ri(xe.offsetParent):0}function ji(xe){if(K()&&No){let Pt=xe.currentTarget,He=mt(Pt),wt=ri(Pt),gi=xe.pageX-wt,$i=xe.pageY-He,{left:ki,bottom:rn,right:Un}=K(),Xi=Un-ki;return gi>=ki-Xi&&$i<=rn+Xi}}function Ho(xe){if(s(ro)){let Pt=mt(xe.currentTarget),He=U().height,wt=xe.pageY-Pt;if(ji(xe)){B(so,!1);return}wt<40?B(so,!0):wt>He-40?B(wo,!0):(B(so,!1),f()||B(wo,!1))}}function ao(xe){Ho(xe),s(Nn)||st(e.uiConfig.controls.hideTimeoutCursor),W()&&ii&&Do&&e.store.actions.internal.moveCameraFocusPX(Do.clientX-xe.clientX,Do.clientY-xe.clientY,xe.timeStamp-Do.timeStamp),Do=xe}let Zi=xe=>{xe.preventDefault(),xe.button===0&&(ii=!0,e.store.actions.internal.holdCamera()),st(e.uiConfig.controls.hideTimeoutCursor)},po=xe=>{xe.preventDefault(),xe.button===0&&(Do=xe,ii=!1,e.store.actions.internal.releaseCamera()),st(e.uiConfig.controls.hideTimeoutCursor)},yn=xe=>{xe.preventDefault(),tr&&(Mt({message:"double click on video"}),Fn(),st(e.uiConfig.controls.hideTimeoutCursor))},en=xe=>{var Pt;if(xe.preventDefault(),G()||f()){uo();return}if(!(I()&&!Ri)){if(s(So))return nr();if((Pt=kt())==null||Pt.focus(),!Me()){e.firstStart(),st(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||te()!==z1.PLAYING)&&e.store.actions.internal.togglePlay(),st(e.uiConfig.controls.hideTimeoutCursor)}},fo=xe=>{uo(),Gi.set(!0),st(e.uiConfig.controls.hideTimeout),xe&&ni(e.uiConfig.controls.hideHotKeyHelpers,xe)},mo=()=>{var xe,Pt;uo(),(xe=e.store.callbacks)!=null&&xe.onOpenHotKeyMap?(Pt=e.store.callbacks)==null||Pt.onOpenHotKeyMap(j()):$o.update(He=>!He)},ar=()=>{Gi.set(!0)},lo=e.store.ui.contextMenu.openedByBtnKeyboard$,Sr=e.store.ui.contextMenu.btnRef$,tn=Y(void 0),Ur=e.store.ui.contextMenu.openedByHotKey$,zr=e.store.ui.contextMenu.lastActiveElem$;qe(()=>{fn.set(s(Ni))}),qe(()=>{B(Co,s(Rn)&&te()!==z1.PLAYING,!0),s(Rn)||Ct(()=>B(Rn,!0))}),qe(()=>{di.set((s(Co)||I()||f()||ae()||de()||we()||Re())&&!s(Nn)&&(r()==="video"||r()==="ads")&&!a()&&k())}),qe(()=>{!ae()&&s(Dn)&&!p()&&st(e.uiConfig.controls.hideTimeoutCursor),Ct(()=>B(Dn,ae(),!0))}),qe(()=>{s(vn),f(),me(),Ct(()=>id(s(vn),f(),me()))}),qe(()=>{s(tn),G(),le(),Ve(),Ct(()=>{let xe=le()||Ve();id(s(tn),G(),xe)})}),qe(()=>{let xe=ee();xe&&(G(),Ct(()=>ol(xe,G(),lo)))}),qe(()=>{let xe=N();xe&&(G(),Ct(()=>Wh(xe,G(),Ur)))}),qe(()=>{var xe;!Oe()&&y()&&(Ct(()=>Qi.set(!1)),(xe=kt())==null||xe.focus())}),qe(()=>{w()&&uo()});let is=F("video360"),Fo=Y(void 0),lr=xe=>{Jn.set(Nr(Xo(),{title:s(Fo)},"title",xe))};var on=Ex();Tt("blur",Qs,uo);var To=pe(on);To.__mousemove=ao;var dr=_(To);let Tr=h(()=>r()==="ads"),Ye=h(()=>s(So)?nr:void 0);tt(pf(dr,{toggleFullscreen:Fn,hideContextMenu:uo,showHotKeyHelpers:fo,showKeyMap:mo,get isAds(){return s(Tr)},get fakePlayButtonHandler(){return s(Ye)},get nextButtonActive(){return X()},get prevButtonActive(){return At()},children:(xe,Pt)=>{var He=Sx(),wt=pe(He);Sa(wt,{get hideCursor(){return s(On)},onClick:en,onContextMenu:wr,onMouseDown:Zi,onMouseUp:po,onDblClick:yn,get videoContainer(){return _t()},set videoContainer(ki){_t(ki)}});var gi=P(wt,2);ea(gi,()=>"slot",!1,(ki,rn)=>{Ie(ki,()=>({name:Ca}))});var $i=P(gi,2);Js($i,_e,ki=>{var rn=Cx(),Un=pe(rn);let Xi=h(()=>r()!=="thumb"||a()||Vi&&e.autoplay);ya(Un,{get hidden(){return s(Xi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var yi=P(Un,2);qm(yi,{});var xi=P(yi,2);{var zi=je=>{let si=h(()=>{var to;return(to=e.live)==null?void 0:to.startTime});Md(je,{get thumbUrl(){return e.thumbUrl},get startTime(){return s(si)}})};R(xi,je=>{r()==="LiveWaitingStart"&&je(zi)})}var cr=P(xi,2);{var Er=je=>{xa(je,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(cr,je=>{r()==="LiveWaitingRecover"&&je(Er)})}var vo=P(cr,2);{var Ta=je=>{xa(je,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(vo,je=>{r()==="LiveWaitingRecord"&&je(Ta)})}var Ea=P(vo,2);{var vl=je=>{var si=$x();let to;var Ds=_(si);Zl(Ds,{get adsSlotId(){return $t()},get adsParams(){return St()},get adsPreviewParam(){return Ge()},get adsAutoplayParam(){return zt()},get duration(){return Qt()}}),g(si),O(Uo=>to=J(si,1,"ads-container svelte-jtgjmv",null,to,Uo),[()=>({hidden:r()!=="ads"})]),b(je,si)};R(Ea,je=>{e.showAds&&Me()&&je(vl)})}var Ns=P(Ea,2);{var Ia=je=>{let si=h(()=>!et()&&e.showAutoplayNext&&S());df(je,{get title(){return fe()},get thumb(){return be()},get isHide(){return s(si)},clickCloseIcon:()=>B(or,!0)})};R(Ns,je=>{s(xr)&&fe()&&be()&&je(Ia)})}var ct=P(Ns,2);{var xt=je=>{let si=h(()=>!u());$m(je,{get title(){return e.title},get isHidden(){return s(si)},onVisibilityChanged:lr,get ref(){return s(Fo)},set ref(to){B(Fo,to,!0)}})};R(ct,je=>{s(ir)&&je(xt)})}var Ji=P(ct,2);{var sn=je=>{let si=h(()=>r()==="video"&&u());Pd(je,{get isShifted(){return s(si)}})};R(Ji,je=>{W()&&je(sn)})}var eo=P(Ji,2);{var ai=je=>{var si=yx(),to=_(si);Yl(to,{get"aria-label"(){return is}}),g(si),b(je,si)};R(eo,je=>{ve()&&je(ai)})}var Pi=P(eo,2);{var Bs=je=>{Ad(je,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ce()}})};R(Pi,je=>{we()&&je(Bs)})}var ka=P(Pi,2);{var Au=je=>{ba(je,{get shifted(){return u()},get captions(){return ye()},get position(){return Z()},get playerSize(){return U()}})};R(ka,je=>{ne().value!=="off"&&je(Au)})}var Gd=P(ka,2);{var Mu=je=>{var si=xx();si.__contextmenu=wr,si.__click=[bx,G,bt,f,Gt,uo];var to=_(si);$a(to,{}),g(si),b(je,si)};R(Gd,je=>{a()&&je(Mu)})}var Yd=P(Gd,2);{var Lu=je=>{let si=h(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"),to=h(()=>r()==="ads"),Ds=h(()=>e.canRewindLive&&Ke()!==0);kd(je,{get bottomHidden(){return s(si)},get bottomNoSmooth(){return L()},get showControls(){return u()},get isAds(){return s(to)},get canRewindLive(){return s(Ds)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Wt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Bt()},get nextButtonActive(){return X()},get prevButtonActive(){return At()},get isOneVideoPlaylist(){return re()},customFullscreenSupported:tr,toggleFullscreen:Fn,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return s(mn)},set playerControlsWrapperRef(Uo){B(mn,Uo,!0)},get playerControlsRef(){return s(Bo)},set playerControlsRef(Uo){B(Bo,Uo,!0)}})};R(Yd,je=>{Me()&&je(Lu)})}var jd=P(Yd,2);{var Vu=je=>{var si=wx(),to=_(si);let Ds=h(()=>{var Uo;return(Uo=s(Bo))==null?void 0:Uo.clientHeight});Rd(to,{get supportLink(){return e.supportLink},get playerControlsHeight(){return s(Ds)},returnFocus:()=>{var Uo;return(Uo=kt())==null?void 0:Uo.focus()},get ref(){return s(vn)},set ref(Uo){B(vn,Uo,!0)}}),g(si),b(je,si)};R(jd,je=>{!we()&&r()!=="ads"&&je(Vu)})}var Os=P(jd,2);let Ru=h(()=>!s(Bn));ed(Os,{get isLive(){return ue()},get isHidden(){return s(Ru)},get isPlaying(){return ke()},get position(){return Z()},get duration(){return Ke()}});var gl=P(Os,2);gm(gl,{get data(){return gn}});var hl=P(gl,2);lf(hl,{get supportLink(){return e.supportLink},returnFocus:()=>{var je;return(je=kt())==null?void 0:je.focus()},get visible(){return G()},get playerContainerRef(){return s(ro)},get controlsContainerRef(){return s(mn)},get position(){return Ae()},get menuElementRef(){return s(tn)},set menuElementRef(je){B(tn,je,!0)}});var Zd=P(hl,2);{var Xd=je=>{Nd(je,{onClose:ei,onSelectAutoQuality:()=>{yo("auto"),ei()}})};R(Zd,je=>{s(pt)&&je(Xd)})}var Pa=P(Zd,2);{var Jd=je=>{ua(je,{})};R(Pa,je=>{s(yr)&&je(Jd)})}var ec=P(Pa,2);{var tc=je=>{vf(je,{})};R(ec,je=>{Te()&&je(tc)})}var Nu=P(ec,2);{var Bu=je=>{rd(je,{})};R(Nu,je=>{Qe()&&je(Bu)})}b(ki,rn)}),b(xe,He)},$$slots:{default:!0}}),xe=>kt(xe),()=>kt());var qt=P(dr,2);tt(qt,xe=>B(Ni,xe),()=>s(Ni)),g(To),tt(To,xe=>B(ro,xe),()=>s(ro));var vi=P(To,2);{var nn=xe=>{var Pt=Tx();b(xe,Pt)};R(vi,xe=>{nt()&&xe(nn)})}Tt("mouseenter",To,Fr),Tt("mouseleave",To,rt),Tt("click",To,ar,!0),Tt("focusin",To,Cr,!0),b(t,on),H(),o()}dt(["mousemove","contextmenu","click"]);import{clientChecker as Bd,PlaybackState as Ox}from"@vkontakte/videoplayer-core/es2018";import{noop as Dx}from"@vkontakte/videoplayer-shared/es2018";var kx=M('<div></div> <div class="info svelte-nhq2ld"><div class="triangles-wrapper svelte-nhq2ld"><div></div> <div></div> <div></div></div> <p class="step-caption svelte-nhq2ld"> </p></div>',1),Px=M("<div><!></div>"),Ax={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;
342
342
  animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
343
343
  .triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
344
344
  .triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
@@ -354,7 +354,7 @@ Try switching the\xA0quality to\xA0Auto.`},wh=v_;var ms=new Map;ms.set(Ch.EN,wh)
354
354
  100% {
355
355
  opacity: 0;
356
356
  }
357
- }.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 yu(t,e){F(e,!0),q(t,Sx);let i=m(e,"seekStep",3,0),o=j(!1),n=0,s=0,l=j(ii(i())),d=v=>{v.stopPropagation(),s+=1,B(l,i()*(s-1)),s===1?e.handleSingleFirstClick(v):(B(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{s=0,B(o,!1)},300)};Xo(()=>{window.clearTimeout(n)});var a=wx();a.__click=d;var u=_(a);{var f=v=>{var p=xx(),b=ve(p),x=P(b,2),y=_(x),C=_(y),T=P(C,2),E=P(T,2);h(y);var M=P(y,2),k=_(M,!0);h(M),h(x),O(I=>{var N,Y,D,H;J(b,1,`semicircle ${(N=e.side)!=null?N:""}`,"svelte-nhq2ld"),J(C,1,`triangle ${(Y=e.side)!=null?Y:""}`,"svelte-nhq2ld"),J(T,1,`triangle ${(D=e.side)!=null?D:""}`,"svelte-nhq2ld"),J(E,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),he(k,I)},[()=>z("doubletap_seek_step",{seconds:r(l).toFixed(0)})]),$(v,p)};L(u,v=>{r(o)&&v(f)})}h(a),O(()=>{var v;return J(a,1,`double-click-area ${(v=e.side)!=null?v:""}`,"svelte-nhq2ld")}),$(t,a),U()}at(["click"]);var Cx=(t,e,i)=>{e(!1),i()},Tx=A('<div class="overlay svelte-1qdxi6t"></div> <div class="next-video svelte-1qdxi6t"><div class="top svelte-1qdxi6t"><div class="caption svelte-1qdxi6t"> </div> <!></div> <div class="row svelte-1qdxi6t"><div class="column svelte-1qdxi6t"><div class="thumb svelte-1qdxi6t"><div></div> <!></div></div> <div class="column svelte-1qdxi6t"><div class="title svelte-1qdxi6t"> </div></div></div></div>',1),Ex={hash:"svelte-1qdxi6t",code:".overlay.svelte-1qdxi6t {width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute;}.next-video.svelte-1qdxi6t {position:absolute;top:50%;left:50%;z-index:var(--end-screen-mobile-z-index);transform:translate(-50%, -50%);display:flex;flex-direction:column;max-width:362px;min-width:320px;margin:0 auto;padding-bottom:12px;}.top.svelte-1qdxi6t {display:flex;justify-content:space-between;}.caption.svelte-1qdxi6t {font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8;}.row.svelte-1qdxi6t {height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%;}.column.svelte-1qdxi6t {display:flex;flex-direction:column;flex-basis:50%;}.thumb.svelte-1qdxi6t {width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around;}.thumb-overlay.svelte-1qdxi6t {width:100%;height:100%;position:absolute;}.thumb-overlay.withOpacity.svelte-1qdxi6t {background:var(--black);opacity:0.3;}.title.svelte-1qdxi6t {padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden;}"};function zm(t,e){F(e,!0),q(t,Ex);let[i,o]=Be(),n=()=>S(d,"$autoplayNextEnabled$",i),s=()=>S(a,"$timerNextVideoRunning$",i),l=ke(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,p=l.actions.internal.nextVideoAnnouncementAuto,b=l.actions.internal.nextVideoAnnouncementCancel,x=()=>{u(!1),p()},y=()=>{e.clickCloseIcon(),b()};Nt(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var C=Fe(),T=ve(C);{var E=M=>{var k=Tx(),I=P(ve(k),2),N=_(I),Y=_(N),D=_(Y,!0);h(Y);var H=P(Y,2);pa(H,{onClick:y}),h(N);var W=P(N,2);W.__click=[Cx,u,v];var ee=_(W),K=_(ee),de=_(K);let oe;var we=P(de,2);{var Ie=te=>{rd(te,{get isRunning(){return s()},onTimerEnded:x})};L(we,te=>{n()&&te(Ie)})}h(K),h(ee);var pe=P(ee,2),le=_(pe),Ae=_(le,!0);h(le),h(pe),h(W),h(I),O((te,R)=>{he(D,te),it(K,`background-image: url('${e.thumb}')`),oe=J(de,1,"thumb-overlay svelte-1qdxi6t",null,oe,R),he(Ae,e.title)},[()=>n()?z("end_screen_next_video"):z("end_screen_recommended_video"),()=>({withOpacity:n()})]),$(M,k)};L(T,M=>{e.isHide||M(E)})}$(t,C),U(),o()}at(["click"]);import{clientChecker as Ix}from"@vkontakte/videoplayer-core/es2018";var O1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Nt(()=>{Ix.device.isIOS&&(o=setTimeout(()=>{let s=t().querySelector("video");if(!s)return;let l=()=>e(!0),d=()=>e(!1);s.addEventListener("webkitbeginfullscreen",l),s.addEventListener("webkitendfullscreen",d),i=()=>{s.removeEventListener("webkitbeginfullscreen",l),s.removeEventListener("webkitendfullscreen",d)}},0))}),Xo(()=>{i==null||i(),clearTimeout(o)})};import{VideoFormat as kx}from"@vkontakte/videoplayer-core/es2018";var xu=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 Px}from"@vkontakte/videoplayer-core/es2018";var D1=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:s,currentFormat$:l,availableTextTracks$:d}=t.state,a=null,u=()=>e().querySelector("video"),f=()=>Px.device.isIOS&&ye(l)===kx.DASH_LIVE_CMAF,v=()=>{a==null||a(),a=null},p=b=>{if(v(),!f()||!b)return;let x=u();if(!x)return;let y=new xu(x),C=ye(d),T=ye(s),E=ye(n);for(let I of C)T.some(Y=>Y.value===I.id)&&y.attach(I,E.value===I.id);let M=d.subscribe(I=>{for(let N of I)y.updateSrc(N)}),k=()=>{let I=y.getCurrentShowingId();o(ye(s).find(N=>N.value===I))};x.textTracks.addEventListener("change",k),a=()=>{M(),y.detachAll(),x.textTracks.removeEventListener("change",k)}};Nt(()=>i.subscribe(p)),Xo(v)};var Lx=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},Vx=A("<!> <!>",1),Rx=A("<div><!></div>"),Nx=A('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),Bx=A("<div><!></div>"),Ox=A('<div class="settings-mobile svelte-7yl31d"><!></div>'),Dx=A("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Hx=A('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),Fx={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 Wm(t,e){var xr,sr;F(e,!0),q(t,Fx);let[i,o]=Be(),n=()=>S(St,"$playerPhase",i),s=()=>S(zi,"$isLoaderVisible",i),l=()=>S(Xe,"$adPlaybackState",i),d=()=>S(ci,"$crashed",i),a=()=>S(Pn,"$notificationsToShow$",i),u=()=>S(Re,"$playbackState$",i),f=()=>S(xe,"$graphIsOpened$",i),v=()=>S(di,"$interactiveHideMobileControls",i),p=()=>S(Qt,"$isEnded$",i),b=()=>S(Ho,"$isInteractiveExpectation$",i),x=()=>S(pt,"$controlsVisible",i),y=()=>S(Ti,"$touched",i),C=()=>S(En,"$autoplayNextEnabled$",i),T=()=>S(lt,"$postrollPassed",i),E=()=>S(An,"$bottomNoSmooth",i),M=()=>S(Tt,"$videoSize",i),k=()=>S(Ci,"$playerSize",i),I=()=>S(yt,"$isFullscreen",i),N=()=>S(Ue,"$position$",i),Y=()=>S(Pt,"$duration$",i),D=()=>S(Uo,"$loadedMetadata",i),H=()=>S(ot,"$settingsMenuVisible",i),W=()=>S(fi,"$scrubbingInProgress",i),ee=()=>S(Ui,"$volumeChangingInProgress",i),K=()=>S(po,"$chromecastConnected$",i),de=()=>S(Mi,"$isControlsAvailable",i),oe=()=>S(Vi,"$isInteractiveTime$",i),we=()=>S(Li,"$isActiveLive",i),Ie=()=>S(Bt,"$settingsMenuOpenedByKeyboard",i),pe=()=>S(me,"$language$",i),le=()=>S(si,"$disabledControls$",i),Ae=()=>S(xo,"$is3DVideo",i),te=()=>S(hi,"$icon3DVideoVisible",i),R=()=>S(It,"$chromecastDeviceName$",i),Ge=()=>S(Wi,"$currentSubtitle$",i),ie=()=>S(ti,"$currentSubtitleCaptions$",i),Ke=()=>S(Xn,"$realDuration$",i),ce=()=>S(zt,"$isLive$",i),fe=()=>S(li,"$isPlaying$",i),$e=()=>S(uo,"$debugPanelVisible",i),Z=m(e,"videoContainer",15),qe=m(e,"adsSlotId",3,void 0),Ze=m(e,"adsParams",3,void 0),Pe=m(e,"adsPreviewParam",3,void 0),re=m(e,"adsAutoplayParam",3,void 0),Ee=m(e,"duration",3,void 0),Qe=m(e,"logoTargetUrl",3,""),rt=m(e,"showNextPrevButtons",3,!1),nt=m(e,"nextButtonActive",3,!1),Mt=m(e,"prevButtonActive",3,!1),Je=m(e,"endScreenVideoTitle",3,void 0),dt=m(e,"endScreenVideoThumb",3,void 0),qt=m(e,"isOneVideoPlaylist",3,!1),oi=m(e,"shadowRootContainer",3,void 0),Kt=m(e,"outerContainerRef",3,void 0),wt=m(e,"showMiniTimer",3,!1),ne=m(e,"fullScreenTarget",3,void 0),Lt=m(e,"playerStarted",3,!1),ge=m(e,"showEndScreen",3,!0),{notifications$:X,graphIsOpened$:xe}=co(),He=e.store.getLogger().createComponentLog("Root component"),me=e.store.interfaceLanguage$,Re=e.store.state.playbackState$,Xe=e.store.ads.playbackState,Ue=e.store.state.positionWithScrubbing$,Pt=e.store.state.duration$,St=e.store.playerPhase,yt=e.store.ui.isFullscreen,pt=e.store.ui.controlsVisible,Mi=e.store.ui.isControlsAvailable,di=e.store.ui.interactiveHideMobileControls,ot=e.store.ui.settingsMenu.visible$,Bt=e.store.ui.settingsMenu.openedByBtnKeyboard$,fi=e.store.ui.scrubbingInProgress,Ui=e.store.ui.volumeChangingInProgress,uo=e.store.ui.debugPanelVisible,zi=e.store.state.isLoaderVisible,Qt=e.store.state.isEnded$,po=e.store.state.chromecastConnected$,It=e.store.state.chromecastDeviceName$,lt=e.store.ads.postrollPassed,mi=e.store.ui.mobileUnmuteButtonExpanded,G=e.store.ui.mobileUnmuteButtonVisible,zt=e.store.state.isLive$,li=e.store.state.isPlaying$,Li=e.store.state.isActiveLive$,ri=e.store.state.isRewindableLive$,ci=e.store.state.crashed$,ct=e.store.webApi.annotationsApi,tt=e.store.webApi.pictureInPictureApi,Tt=e.store.state.videoSize$,Wi=e.store.state.currentSubtitle$,ti=e.store.state.currentSubtitleCaptions$,Xn=e.store.state.duration$,Ci=e.store.ui.playerSize,xo=e.store.ui.is3DVideo,hi=e.store.ui.icon3DVideoVisible,ht=e.store.state.isInteractive,Vi=e.store.state.isInteractiveTime$,Ho=e.store.state.isInteractiveExpectation$,Tn=e.store.state.hasInteractiveBranches,si=e.store.ui.controls.disabledControls$,Ti=e.store.ui.touched,Fo=e.store.ui.overlayContainer$,En=e.store.ui.autoplayNextEnabled$,Uo=e.store.state.loadedMetadata$,wo=e.store.actions.internal.closeSettingsMenu,vn=(xr=e.store.callbacks)==null?void 0:xr.onDisabledPlayPrevChapterClick,tn=(sr=e.store.callbacks)==null?void 0:sr.onDisabledSeekToInteractiveClick,fo=e.store.actions.internal.setQuality,mo=j(void 0),Or=j(void 0),gr=j(void 0),Jn=j(void 0),er,tr,In,is=g(()=>(n()==="video"&&s()||n()==="ads"&&l()==="inactive")&&!d()),kn=j(void 0),{closeNotification:Ei,notificationsToShow$:Pn}=X,on=g(()=>!!a().slow_video),nn=()=>Ei("slow_video"),An=ae(!1),Mn,zo=j(!1),Dr=g(()=>u()!==Ax.PLAYING),Ln=j(!1),ir=g(()=>f()||v()||!r(zo)&&(p()&&!!Tn||r(Dr)&&b())),Ki=j(!0),So=g(()=>e.uiConfig.features.thumbTimer&&wt()&&n()==="video"&&!x()&&!d()&&!ht&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),st=j(!1),Xt=g(()=>(ge()||e.showAutoplayNext&&C())&&!!Je()&&!!dt()&&(e.showAds&&T()||!e.showAds)&&p()&&!d()&&!r(st)),hr=j(!1);tt==null||tt.setContext(yl());let Vn=ft=>{clearTimeout(tr),ft&&(G.set(!0),mi.set(!0),tr=setTimeout(()=>{mi.set(!1)},e.uiConfig.controls.collapseMobileUnmute),ht||Ri(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:Vn});let gn=()=>{clearTimeout(er),B(zo,!1),v()&&di.set(!1)},Ri=ft=>{gn(),B(zo,!0),er=setTimeout(()=>B(zo,!1),ft);let Yt=ft-100;Mn=setTimeout(()=>{E()&&An.set(!1)},Yt>0?Yt:ft)},Rn=xo.subscribe(ft=>{hi.set(ft),ft&&(clearTimeout(In),In=setTimeout(()=>hi.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Co=async(ft=As())=>{var Yt,oo,_i,Io,no,Ko;if(ft&&!Bd.device.isIOS){let ji=Yl(),qo=or(),je=Bd.browser.isSamsungBrowser&&ji===oi();ft=ji===qo||je}if(ft){Ri(e.uiConfig.controls.hideTimeoutFullscreen);try{await(tt==null?void 0:tt.remove())}catch(ji){He({message:String(ji)})}try{let ji=(Yt=M())!=null&&Yt.width&&((oo=M())!=null&&oo.height)?M():k();await Ph(ji)}catch(ji){He({message:String(ji)})}}yt.set(ft),e.store.getAdmanWrapper().setFullscreen(ft),I()?(Io=(_i=e.store.callbacks)==null?void 0:_i.onFullscreenEnter)==null||Io.call(_i):(Ko=(no=e.store.callbacks)==null?void 0:no.onFullscreenExit)==null||Ko.call(no)},Nn=ft=>{let Yt=ft;Ci.set({width:Yt.target.width,height:Yt.target.height})};Nt(()=>{var ft;return Kc(Co),e.uiConfig.features.annotationsInside&&(ct==null||ct.init(r(mo))),da(tt)&&(tt==null||tt.assignPlayerContainer(r(mo)),tt==null||tt.registryExternalEventHandlers({resize:Nn})),B(Ki,!Bd.device.isIphoneOrOldIpad),e.interactiveContainer&&((ft=Z().parentElement)==null||ft.insertBefore(e.interactiveContainer,Z().nextSibling)),()=>{clearTimeout(er),clearTimeout(Mn),clearTimeout(tr),clearTimeout(In),Rn(),tt==null||tt.dispose().catch(Yt=>{He({message:String(Yt)})}),qc(Co)}});let To=j(!0),Bn=j(!0),On=ft=>{let Yt=N()+(ft==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Yt<0?(B(To,!1),Yt=0):Yt>=Y()&&(B(Bn,!1),Yt=Y()),B(Ln,!0),e.seekTime(Yt)},or=()=>{let ft=Bd.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Kt()?r(mo):Kt(),Yt=ft.getRootNode(),oo=Yt instanceof ShadowRoot?Yt.host:Yt,_i=ne()instanceof HTMLElement&&ne().contains(oo);return e.uiConfig.allowChangingFullscreenTarget&&ne()&&_i?ne():ft},_r=async()=>{try{if(As())await Wc(document),He({message:"exit fullscreen"});else{if(He({message:"request fullscreen"}),Bd.device.isIOS&&!D())return;await zc(or())}}catch(ft){He({message:String(ft)})}},nr=()=>{wo()},Wo=ft=>{if(ft.preventDefault(),H()){nr();return}if(!Lt()){e.firstStart(),Ri(e.uiConfig.controls.hideTimeoutCursor);return}B(Ln,!1),x()?gn():Ri(e.uiConfig.controls.hideTimeoutMobile)},Hr=()=>{Ti.set(!0)},rr=()=>{ht||(An.set(!0),Ri(e.uiConfig.controls.hideTimeoutCursor))},br=ft=>{vn&&(vn(ft),Ri(e.uiConfig.controls.hideTimeoutMobile))},rn=ft=>{tn&&(tn(ft),Ri(e.uiConfig.controls.hideTimeoutMobile))};We(()=>{Fo.set(r(kn))}),We(()=>{pt.set((r(Dr)||H()||W()||ee()||K()||!r(Xt)&&(p()||r(zo)&&!r(Ln)))&&!r(ir)&&n()==="video"&&!d()&&de())}),We(()=>{!W()&&r(hr)&&!oe()&&Ri(e.uiConfig.controls.hideTimeoutMobile),B(hr,W(),!0)}),We(()=>{B(To,N()>0),B(Bn,!we()&&N()<Y(),!0)}),We(()=>{td(r(Jn),H(),Ie(),!0)});let Gt=z("aria_label_video_player"),vo=z("video360");O1({fullScreenChangeHandler:Co,getFullscreenTarget:or}),D1({store:e.store,getFullscreenTarget:or});let $r=(ft,Yt,oo)=>{var Io,no,Ko;let _i={...Sn(r(mo),{upcomingLiveScreen:oo},"upcomingLiveScreen",Yt),view:ft};(Ko=(no=(Io=e.store.callbacks)==null?void 0:Io.uiInfo)==null?void 0:no.onUpcomingLiveViewStateChanged)==null||Ko.call(no,_i)};var Eo=Hx();xt("blur",js,nr);var yr=_(Eo);Ea(yr,{onClick:Wo,get videoContainer(){return Z()},set videoContainer(ft){Z(ft)}});var Ii=P(yr,2);oa(Ii,()=>"slot",!1,(ft,Yt)=>{Me(ft,()=>({name:Ta}))});var Fr=P(Ii,2);ia(Fr,pe,ft=>{var Yt=Dx(),oo=ve(Yt);let _i=g(()=>n()!=="thumb"||d()||ht&&e.autoplay);wa(oo,{get hidden(){return r(_i)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Io=P(oo,2);{var no=_e=>{var mt=Vx(),Ot=ve(mt);{var ui=Wt=>{let ao=g(()=>e.uiConfig.controls.seekStepMobile/1e3);yu(Wt,{side:"left",get seekStep(){return r(ao)},handleSingleFirstClick:Wo,handleSecondClick:()=>On("backward")})};L(Ot,Wt=>{r(To)&&Wt(ui)})}var Ne=P(Ot,2);{var bt=Wt=>{let ao=g(()=>e.uiConfig.controls.seekStepMobile/1e3);yu(Wt,{side:"right",get seekStep(){return r(ao)},handleSingleFirstClick:Wo,handleSecondClick:()=>On("forward")})};L(Ne,Wt=>{r(Bn)&&Wt(bt)})}$(_e,mt)};L(Io,_e=>{e.canRewindLive&&ri&&!le().has("TIMELINE")&&_e(no)})}var Ko=P(Io,2);{var ji=_e=>{let mt=g(()=>{var Ot;return(Ot=e.live)==null?void 0:Ot.startTime});Md(_e,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(mt)},get playerSize(){return Ci},onUpcomingLiveViewStateChanged:$r})};L(Ko,_e=>{n()==="LiveWaitingStart"&&_e(ji)})}var qo=P(Ko,2);{var je=_e=>{Sa(_e,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};L(qo,_e=>{n()==="LiveWaitingRecover"&&_e(je)})}var At=P(qo,2);{var bi=_e=>{Sa(_e,{kind:"record",get thumbUrl(){return e.thumbUrl}})};L(At,_e=>{n()==="LiveWaitingRecord"&&_e(bi)})}var ro=P(At,2);{var go=_e=>{var mt=Rx();let Ot;var ui=_(mt);jl(ui,{get adsSlotId(){return qe()},get adsParams(){return Ze()},get adsPreviewParam(){return Pe()},get adsAutoplayParam(){return re()},get duration(){return Ee()}}),h(mt),O(Ne=>Ot=J(mt,1,"ads-container svelte-7yl31d",null,Ot,Ne),[()=>({hidden:n()!=="ads"})]),$(_e,mt)};L(ro,_e=>{e.showAds&&Lt()&&_e(go)})}var ko=P(ro,2);{var so=_e=>{let mt=g(()=>!ge()&&e.showAutoplayNext&&C());zm(_e,{get title(){return Je()},get thumb(){return dt()},get isHide(){return r(mt)},clickCloseIcon:()=>B(st,!0)})};L(ko,_e=>{r(Xt)&&Je()&&dt()&&_e(so)})}var Po=P(ko,2);{var Qo=_e=>{kd(_e,{})};L(Po,_e=>{Ae()&&_e(Qo)})}var Ni=P(Po,2);{var $i=_e=>{var mt=Nx(),Ot=_(mt);Gl(Ot,{get"aria-label"(){return vo}}),h(mt),$(_e,mt)};L(Ni,_e=>{te()&&_e($i)})}var Ao=P(Ni,2);{var hn=_e=>{Pd(_e,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return R()}})};L(Ao,_e=>{K()&&_e(hn)})}var Zi=P(Ao,2);{var Ur=_e=>{xa(_e,{get shifted(){return x()},get captions(){return ie()},get position(){return N()},get playerSize(){return k()},isMobile:!0})};L(Zi,_e=>{Ge().value!=="off"&&_e(Ur)})}var wr=P(Zi,2);{var ns=_e=>{var mt=Bx();mt.__click=[Lx,H,ot,nr];var Ot=_(mt);Ad(Ot,{}),h(mt),$(_e,mt)};L(wr,_e=>{d()&&_e(ns)})}var sn=P(wr,2);{var ar=_e=>{let mt=g(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),Ot=g(()=>n()==="ads"),ui=g(()=>e.canRewindLive&&Ke()!==0);Id(_e,{get bottomHidden(){return r(mt)},get showControls(){return x()},get bottomNoSmooth(){return E()},get isAds(){return r(Ot)},get canRewindLive(){return r(ui)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Qe()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return rt()},get nextButtonActive(){return nt()},get prevButtonActive(){return Mt()},get isOneVideoPlaylist(){return qt()},get customFullscreenSupported(){return r(Ki)},get endScreenShown(){return r(Xt)},toggleFullscreen:_r,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:br,onDisabledSeekToInteractiveClick:rn,get playerControlsWrapperRef(){return r(Or)},set playerControlsWrapperRef(Ne){B(Or,Ne,!0)},get playerControlsRef(){return r(gr)},set playerControlsRef(Ne){B(gr,Ne,!0)}})};L(sn,_e=>{Lt()&&_e(ar)})}var zr=P(sn,2);{var Sr=_e=>{var mt=Ox(),Ot=_(mt);Rd(Ot,{get supportLink(){return e.supportLink},get returnFocus(){return Mx},get ref(){return r(Jn)},set ref(ui){B(Jn,ui,!0)}}),h(mt),$(_e,mt)};L(zr,_e=>{H()&&_e(Sr)})}var yi=P(zr,2);let Dn=g(()=>!r(So));Jl(yi,{get isLive(){return ce()},get isHidden(){return r(Dn)},get isPlaying(){return fe()},get position(){return N()},get duration(){return Y()}});var Hn=P(yi,2);{var Cr=_e=>{ma(_e,{})};L(Hn,_e=>{r(is)&&_e(Cr)})}var Tr=P(Hn,2);{var rs=_e=>{nd(_e,{})};L(Tr,_e=>{$e()&&_e(rs)})}var lr=P(Tr,2);{var Se=_e=>{Nd(_e,{onClose:nn,onSelectAutoQuality:()=>{fo("auto"),nn()}})};L(lr,_e=>{r(on)&&_e(Se)})}$(ft,Yt)});var os=P(Fr,2);et(os,ft=>B(kn,ft),()=>r(kn)),h(Eo),et(Eo,ft=>B(mo,ft),()=>r(mo)),O(()=>Oe(Eo,"aria-label",Gt)),xt("click",Eo,Hr,!0),xt("focusin",Eo,rr,!0),$(t,Eo),U(),o()}at(["click"]);function wu(t){let e="";return Yi(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Yi(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Yi(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Yi(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Yi(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Yi(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Yi(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Yi(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Yi(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Yi(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Yi(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Yi(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Yi(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),Yi(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),Yi(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),Yi(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),Yi(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),Yi(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),Yi(t.font)&&(e+=`--font:${t.font};`),Yi(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),Yi(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function Yi(t){return typeof t=="string"&&!t.includes(";")}import{debounceFn as Ux}from"@vkontakte/videoplayer-shared/es2018";var zx=A('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),Wx={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 Km(t,e){F(e,!0),q(t,Wx);let[i,o]=Be(),n=()=>S(ee,"$playerSize",i),s=()=>S(I,"$isPlaying$",i),l=()=>S(M,"$duration$",i),d=()=>S(D,"$positionWithScrubbing$",i),a=()=>S(T,"$playerPhase",i),u=()=>S(E,"$crashed$",i),f=()=>S(N,"$currentSubtitle$",i),v=()=>S(Y,"$currentSubtitleCaptions$",i),p=()=>S(k,"$positionExact$",i),b=()=>S(H,"$isLive$",i),x=()=>S(W,"$isRewindableLive$",i),y=m(e,"outsideDuration",3,0),C=m(e,"videoContainer",15),{playerPhase:T,state:{crashed$:E,duration$:M,positionExact$:k,isPlaying$:I,currentSubtitle$:N,currentSubtitleCaptions$:Y,positionWithScrubbing$:D,isLive$:H,isRewindableLive$:W},ui:{playerSize:ee,controls:K},actions:{internal:{getVideoElement:de}}}=ke(),oe=8,we=j(!1),Ie=ii({}),pe=()=>{B(we,!0)},le=()=>{B(we,!1)},Ae=Ux(dl,260);We(()=>{n(),Ae(de(),K,Ie,r(we))});let te=g(()=>s()?mn(l()-d()):mn(isFinite(l())?l():y()));var R=zx(),Ge=_(R);Ea(Ge,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(Ee){C(Ee)}});var ie=P(Ge,2);oa(ie,()=>"slot",!1,(Ee,Qe)=>{Me(Ee,()=>({name:Ta}))});var Ke=P(ie,2);let ce=g(()=>a()!=="thumb"||u());wa(Ke,{get hidden(){return r(ce)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var fe=P(Ke,2);{var $e=Ee=>{xa(Ee,{shifted:!1,get captions(){return v()},get position(){return p()},get playerSize(){return n()}})};L(fe,Ee=>{f().value!=="off"&&Ee($e)})}var Z=P(fe,2),qe=_(Z);Xl(qe,{get isLive(){return b()},get isPlaying(){return s()},get time(){return r(te)}}),h(Z);var Ze=P(Z,2);let Pe;var re=_(Ze);ha(re,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return x()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:oe,tooltipRightOffset:oe,get ref(){return Ie.timeline},set ref(Ee){Ie.timeline=Ee}}),h(Ze),h(R),O(Ee=>Pe=J(Ze,1,"timeline svelte-1qfjf44",null,Pe,Ee),[()=>({visible:r(we)})]),xt("mouseenter",R,pe),xt("mouseleave",R,le),$(t,R),U(),o()}var Yx=A("<div><!></div>"),jx={hash:"svelte-oba660",code:`.root.svelte-oba660 {--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;
357
+ }.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 yu(t,e){D(e,!0),z(t,Ax);let i=m(e,"seekStep",3,0),o=Y(!1),n=0,r=0,l=Y(ti(i())),d=v=>{v.stopPropagation(),r+=1,B(l,i()*(r-1)),r===1?e.handleSingleFirstClick(v):(B(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{r=0,B(o,!1)},300)};En(()=>{window.clearTimeout(n)});var a=Px();a.__click=d;var p=_(a);{var f=v=>{var u=kx(),$=pe(u),w=P($,2),y=_(w),S=_(y),T=P(S,2),I=P(T,2);g(y);var A=P(y,2),k=_(A,!0);g(A),g(w),O(E=>{var L,K,U,W;J($,1,`semicircle ${(L=e.side)!=null?L:""}`,"svelte-nhq2ld"),J(S,1,`triangle ${(K=e.side)!=null?K:""}`,"svelte-nhq2ld"),J(T,1,`triangle ${(U=e.side)!=null?U:""}`,"svelte-nhq2ld"),J(I,1,`triangle ${(W=e.side)!=null?W:""}`,"svelte-nhq2ld"),he(k,E)},[()=>F("doubletap_seek_step",{seconds:s(l).toFixed(0)})]),b(v,u)};R(p,v=>{s(o)&&v(f)})}g(a),O(()=>{var v;return J(a,1,`double-click-area ${(v=e.side)!=null?v:""}`,"svelte-nhq2ld")}),b(t,a),H()}dt(["click"]);var Mx=(t,e,i)=>{e(!1),i()},Lx=M('<div class="overlay svelte-1qdxi6t"></div> <div class="next-video svelte-1qdxi6t"><div class="top svelte-1qdxi6t"><div class="caption svelte-1qdxi6t"> </div> <!></div> <div class="row svelte-1qdxi6t"><div class="column svelte-1qdxi6t"><div class="thumb svelte-1qdxi6t"><div></div> <!></div></div> <div class="column svelte-1qdxi6t"><div class="title svelte-1qdxi6t"> </div></div></div></div>',1),Vx={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 Qm(t,e){D(e,!0),z(t,Vx);let[i,o]=Fe(),n=()=>C(d,"$autoplayNextEnabled$",i),r=()=>C(a,"$timerNextVideoRunning$",i),l=Ee(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,p=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,u=l.actions.internal.nextVideoAnnouncementAuto,$=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{p(!1),u()},y=()=>{e.clickCloseIcon(),$()};Nt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var S=ze(),T=pe(S);{var I=A=>{var k=Lx(),E=P(pe(k),2),L=_(E),K=_(L),U=_(K,!0);g(K);var W=P(K,2);da(W,{onClick:y}),g(L);var G=P(L,2);G.__click=[Mx,p,v];var te=_(G),j=_(te),ae=_(j);let de;var we=P(ae,2);{var Re=ee=>{sd(ee,{get isRunning(){return r()},onTimerEnded:w})};R(we,ee=>{n()&&ee(Re)})}g(j),g(te);var me=P(te,2),le=_(me),Ve=_(le,!0);g(le),g(me),g(G),g(E),O((ee,N)=>{he(U,ee),at(j,`background-image: url('${e.thumb}')`),de=J(ae,1,"thumb-overlay svelte-1qdxi6t",null,de,N),he(Ve,e.title)},[()=>n()?F("end_screen_next_video"):F("end_screen_recommended_video"),()=>({withOpacity:n()})]),b(A,k)};R(T,A=>{e.isHide||A(I)})}b(t,S),H(),o()}dt(["click"]);import{clientChecker as Rx}from"@vkontakte/videoplayer-core/es2018";var W1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Nt(()=>{Rx.device.isIOS&&(o=setTimeout(()=>{let r=t().querySelector("video");if(!r)return;let l=()=>e(!0),d=()=>e(!1);r.addEventListener("webkitbeginfullscreen",l),r.addEventListener("webkitendfullscreen",d),i=()=>{r.removeEventListener("webkitbeginfullscreen",l),r.removeEventListener("webkitendfullscreen",d)}},0))}),En(()=>{i==null||i(),clearTimeout(o)})};import{VideoFormat as Nx}from"@vkontakte/videoplayer-core/es2018";var xu=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 Bx}from"@vkontakte/videoplayer-core/es2018";var q1=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:r,currentFormat$:l,availableTextTracks$:d}=t.state,a=null,p=()=>e().querySelector("video"),f=()=>Bx.device.isIOS&&$e(l)===Nx.DASH_LIVE_CMAF,v=()=>{a==null||a(),a=null},u=$=>{if(v(),!f()||!$)return;let w=p();if(!w)return;let y=new xu(w),S=$e(d),T=$e(r),I=$e(n);for(let E of S)T.some(K=>K.value===E.id)&&y.attach(E,I.value===E.id);let A=d.subscribe(E=>{for(let L of E)y.updateSrc(L)}),k=()=>{let E=y.getCurrentShowingId();o($e(r).find(L=>L.value===E))};w.textTracks.addEventListener("change",k),a=()=>{A(),y.detachAll(),w.textTracks.removeEventListener("change",k)}};Nt(()=>i.subscribe(u)),En(v)};var Hx=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},Fx=M("<!> <!>",1),Ux=M("<div><!></div>"),zx=M('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),Wx=M("<div><!></div>"),qx=M('<div class="settings-mobile svelte-7yl31d"><!></div>'),Kx=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Qx=M('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),Gx={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 Gm(t,e){var sr,Hn;D(e,!0),z(t,Gx);let[i,o]=Fe(),n=()=>C(Ne,"$playerPhase",i),r=()=>C(li,"$isLoaderVisible",i),l=()=>C(We,"$adPlaybackState",i),d=()=>C(Vo,"$crashed",i),a=()=>C(hr,"$notificationsToShow$",i),p=()=>C(De,"$playbackState$",i),f=()=>C(fe,"$graphIsOpened$",i),v=()=>C(Xe,"$interactiveHideMobileControls",i),u=()=>C(Qi,"$isEnded$",i),$=()=>C(Go,"$isInteractiveExpectation$",i),w=()=>C(kt,"$controlsVisible",i),y=()=>C(Vi,"$touched",i),S=()=>C(An,"$autoplayNextEnabled$",i),T=()=>C(Ti,"$postrollPassed",i),I=()=>C(ro,"$bottomNoSmooth",i),A=()=>C(pi,"$videoSize",i),k=()=>C(ot,"$playerSize",i),E=()=>C(et,"$isFullscreen",i),L=()=>C(Me,"$position$",i),K=()=>C(Ze,"$duration$",i),U=()=>C(Ri,"$loadedMetadata",i),W=()=>C(oi,"$settingsMenuVisible",i),G=()=>C(lt,"$scrubbingInProgress",i),te=()=>C(Xt,"$volumeChangingInProgress",i),j=()=>C(di,"$chromecastConnected$",i),ae=()=>C(Mt,"$isControlsAvailable",i),de=()=>C(Ro,"$isInteractiveTime$",i),we=()=>C(bt,"$isActiveLive",i),Re=()=>C(ui,"$settingsMenuOpenedByKeyboard",i),me=()=>C(re,"$language$",i),le=()=>C(yt,"$disabledControls$",i),Ve=()=>C(fi,"$is3DVideo",i),ee=()=>C(Ot,"$icon3DVideoVisible",i),N=()=>C(Gt,"$chromecastDeviceName$",i),Oe=()=>C(Ii,"$currentSubtitle$",i),_e=()=>C(ft,"$currentSubtitleCaptions$",i),ve=()=>C(it,"$realDuration$",i),ce=()=>C(Lo,"$isLive$",i),ne=()=>C(Rt,"$isPlaying$",i),ye=()=>C(Jt,"$debugPanelVisible",i),Z=m(e,"videoContainer",15),Ke=m(e,"adsSlotId",3,void 0),ue=m(e,"adsParams",3,void 0),ke=m(e,"adsPreviewParam",3,void 0),Ae=m(e,"adsAutoplayParam",3,void 0),Te=m(e,"duration",3,void 0),Qe=m(e,"logoTargetUrl",3,""),nt=m(e,"showNextPrevButtons",3,!1),_t=m(e,"nextButtonActive",3,!1),$t=m(e,"prevButtonActive",3,!1),St=m(e,"endScreenVideoTitle",3,void 0),Ge=m(e,"endScreenVideoThumb",3,void 0),zt=m(e,"isOneVideoPlaylist",3,!1),Qt=m(e,"showMiniTimer",3,!1),Wt=m(e,"fullScreenTarget",3,void 0),Bt=m(e,"playerStarted",3,!1),X=m(e,"showEndScreen",3,!0),{notifications$:At,graphIsOpened$:fe}=co(),be=e.store.getLogger().createComponentLog("Root component"),re=e.store.interfaceLanguage$,De=e.store.state.playbackState$,We=e.store.ads.playbackState,Me=e.store.state.positionWithScrubbing$,Ze=e.store.state.duration$,Ne=e.store.playerPhase,et=e.store.ui.isFullscreen,kt=e.store.ui.controlsVisible,Mt=e.store.ui.isControlsAvailable,Xe=e.store.ui.interactiveHideMobileControls,oi=e.store.ui.settingsMenu.visible$,ui=e.store.ui.settingsMenu.openedByBtnKeyboard$,lt=e.store.ui.scrubbingInProgress,Xt=e.store.ui.volumeChangingInProgress,Jt=e.store.ui.debugPanelVisible,li=e.store.state.isLoaderVisible,Qi=e.store.state.isEnded$,di=e.store.state.chromecastConnected$,Gt=e.store.state.chromecastDeviceName$,Ti=e.store.ads.postrollPassed,Lo=e.store.state.isLive$,Rt=e.store.state.isPlaying$,bt=e.store.state.isActiveLive$,Ei=e.store.state.isRewindableLive$,Vo=e.store.state.crashed$,q=e.store.webApi.annotationsApi,ut=e.store.webApi.pictureInPictureApi,pi=e.store.state.videoSize$,Ii=e.store.state.currentSubtitle$,ft=e.store.state.currentSubtitleCaptions$,it=e.store.state.duration$,ot=e.store.ui.playerSize,fi=e.store.ui.is3DVideo,Ot=e.store.ui.icon3DVideoVisible,pn=e.store.state.isInteractive,Ro=e.store.state.isInteractiveTime$,Go=e.store.state.isInteractiveExpectation$,Li=e.store.state.hasInteractiveBranches,yt=e.store.ui.controls.disabledControls$,Vi=e.store.ui.touched,Yo=e.store.ui.overlayContainer$,An=e.store.ui.autoplayNextEnabled$,Ri=e.store.state.loadedMetadata$,Gi=e.store.actions.internal.closeSettingsMenu,bi=(sr=e.store.callbacks)==null?void 0:sr.onDisabledPlayPrevChapterClick,$o=(Hn=e.store.callbacks)==null?void 0:Hn.onDisabledSeekToInteractiveClick,fn=e.store.actions.internal.setQuality,Ui=Y(void 0),No=Y(void 0),jo=Y(void 0),yo=Y(void 0),Zo,Xn,gr,Dr=h(()=>(n()==="video"&&r()||n()==="ads"&&l()==="inactive")&&!d()),Jn=Y(void 0),{closeNotification:Xo,notificationsToShow$:hr}=At,Hr=h(()=>!!a().slow_video),_r=()=>Xo("slow_video"),ro=se(!1),mn,Bo=Y(!1),vn=h(()=>p()!==Ox.PLAYING),Oo=Y(!1),Mn=h(()=>f()||v()||!s(Bo)&&(u()&&!!Li||s(vn)&&$())),Ln=Y(!0),br=h(()=>e.uiConfig.features.thumbTimer&&Qt()&&n()==="video"&&!w()&&!d()&&!pn&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),$r=Y(!1),pt=h(()=>(X()||e.showAutoplayNext&&S())&&!!St()&&!!Ge()&&(e.showAds&&T()||!e.showAds)&&u()&&!d()&&!s($r)),ei=Y(!1);ut==null||ut.setContext(xl());let yr=st=>{clearTimeout(Xn),st&&!pn&&mi(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:yr});let Ni=()=>{clearTimeout(Zo),B(Bo,!1),v()&&Xe.set(!1)},mi=st=>{Ni(),B(Bo,!0),Zo=setTimeout(()=>B(Bo,!1),st);let ni=st-100;mn=setTimeout(()=>{I()&&ro.set(!1)},ni>0?ni:st)},er=fi.subscribe(st=>{Ot.set(st),st&&(clearTimeout(gr),gr=setTimeout(()=>Ot.set(!1),e.uiConfig.controls.hide360IconTimeout))}),xo=async(st=Es())=>{var ni,hn,Jo,_n,bn,$n;if(st&&!Bd.device.isIOS){let Yi=jl(),uo=Co(),Fn=Bd.browser.isSamsungBrowser&&Yi===e.shadowRootContainer;st=Yi===uo||Fn}if(st){mi(e.uiConfig.controls.hideTimeoutFullscreen);try{await(ut==null?void 0:ut.exit())}catch(Yi){be({message:String(Yi)})}try{let Yi=(ni=A())!=null&&ni.width&&((hn=A())!=null&&hn.height)?A():k();await Rh(Yi)}catch(Yi){be({message:String(Yi)})}}et.set(st),e.store.getAdmanWrapper().setFullscreen(st),E()?(_n=(Jo=e.store.callbacks)==null?void 0:Jo.onFullscreenEnter)==null||_n.call(Jo):($n=(bn=e.store.callbacks)==null?void 0:bn.onFullscreenExit)==null||$n.call(bn)},gn=st=>{let ni=st;ot.set({width:ni.target.width,height:ni.target.height})};Nt(()=>{var st;return qc(xo),e.uiConfig.features.annotationsInside&&(q==null||q.init(s(Ui))),sa(ut)&&(ut==null||ut.assignPlayerContainer(s(Ui)),ut==null||ut.setExternalEventHandlers({resize:gn})),B(Ln,!Bd.device.isIphoneOrOldIpad),e.interactiveContainer&&((st=Z().parentElement)==null||st.insertBefore(e.interactiveContainer,Z().nextSibling)),()=>{clearTimeout(Zo),clearTimeout(mn),clearTimeout(Xn),clearTimeout(gr),er(),ut==null||ut.dispose().catch(ni=>{be({message:String(ni)})}),Kc(xo)}});let Vn=Y(!0),wo=Y(!0),so=st=>{let ni=L()+(st==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;ni<0?(B(Vn,!1),ni=0):ni>=K()&&(B(wo,!1),ni=K()),B(Oo,!0),e.seekTime(ni)},Co=()=>Bd.device.isIOS?s(Ui):!e.uiConfig.allowChangingFullscreenTarget||!Wt()?e.outerContainerRef:Wt().contains(e.outerContainerRef)?Wt():e.outerContainerRef,Rn=async()=>{try{if(Es())await Wc(document),be({message:"exit fullscreen"});else{if(be({message:"request fullscreen"}),Bd.device.isIOS&&!U())return;await zc(Co())}}catch(st){be({message:String(st)})}},Nn=()=>{Gi()},tr=st=>{if(st.preventDefault(),W()){Nn();return}if(!Bt()){e.firstStart(),mi(e.uiConfig.controls.hideTimeoutCursor);return}B(Oo,!1),w()?Ni():mi(e.uiConfig.controls.hideTimeoutMobile)},Bn=()=>{Vi.set(!0)},ir=()=>{pn||(ro.set(!0),mi(e.uiConfig.controls.hideTimeoutCursor))},or=st=>{bi&&(bi(st),mi(e.uiConfig.controls.hideTimeoutMobile))},xr=st=>{$o&&($o(st),mi(e.uiConfig.controls.hideTimeoutMobile))};qe(()=>{Yo.set(s(Jn))}),qe(()=>{kt.set((s(vn)||W()||G()||te()||j()||!s(pt)&&(u()||s(Bo)&&!s(Oo)))&&!s(Mn)&&n()==="video"&&!d()&&ae())}),qe(()=>{!G()&&s(ei)&&!de()&&mi(e.uiConfig.controls.hideTimeoutMobile),B(ei,G(),!0)}),qe(()=>{B(Vn,L()>0),B(wo,!we()&&L()<K(),!0)}),qe(()=>{id(s(yo),W(),Re(),!0)});let On=F("aria_label_video_player"),Dn=F("video360");W1({fullScreenChangeHandler:xo,getFullscreenTarget:Co}),q1({store:e.store,getFullscreenTarget:Co});var So=Qx();Tt("blur",Qs,Nn);var nr=_(So);Sa(nr,{onClick:tr,get videoContainer(){return Z()},set videoContainer(st){Z(st)}});var ii=P(nr,2);ea(ii,()=>"slot",!1,(st,ni)=>{Ie(st,()=>({name:Ca}))});var Do=P(ii,2);Js(Do,me,st=>{var ni=Kx(),hn=pe(ni);let Jo=h(()=>n()!=="thumb"||d()||pn&&e.autoplay);ya(hn,{get hidden(){return s(Jo)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var _n=P(hn,2);{var bn=Ye=>{var qt=Fx(),vi=pe(qt);{var nn=He=>{let wt=h(()=>e.uiConfig.controls.seekStepMobile/1e3);yu(He,{side:"left",get seekStep(){return s(wt)},handleSingleFirstClick:tr,handleSecondClick:()=>so("backward")})};R(vi,He=>{s(Vn)&&He(nn)})}var xe=P(vi,2);{var Pt=He=>{let wt=h(()=>e.uiConfig.controls.seekStepMobile/1e3);yu(He,{side:"right",get seekStep(){return s(wt)},handleSingleFirstClick:tr,handleSecondClick:()=>so("forward")})};R(xe,He=>{s(wo)&&He(Pt)})}b(Ye,qt)};R(_n,Ye=>{e.canRewindLive&&Ei&&!le().has("TIMELINE")&&Ye(bn)})}var $n=P(_n,2);{var Yi=Ye=>{let qt=h(()=>{var vi;return(vi=e.live)==null?void 0:vi.startTime});Md(Ye,{get thumbUrl(){return e.thumbUrl},get startTime(){return s(qt)}})};R($n,Ye=>{n()==="LiveWaitingStart"&&Ye(Yi)})}var uo=P($n,2);{var Fn=Ye=>{xa(Ye,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(uo,Ye=>{n()==="LiveWaitingRecover"&&Ye(Fn)})}var wr=P(uo,2);{var Fr=Ye=>{xa(Ye,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(wr,Ye=>{n()==="LiveWaitingRecord"&&Ye(Fr)})}var Cr=P(wr,2);{var rt=Ye=>{var qt=Ux();let vi;var nn=_(qt);Zl(nn,{get adsSlotId(){return Ke()},get adsParams(){return ue()},get adsPreviewParam(){return ke()},get adsAutoplayParam(){return Ae()},get duration(){return Te()}}),g(qt),O(xe=>vi=J(qt,1,"ads-container svelte-7yl31d",null,vi,xe),[()=>({hidden:n()!=="ads"})]),b(Ye,qt)};R(Cr,Ye=>{e.showAds&&Bt()&&Ye(rt)})}var mt=P(Cr,2);{var ri=Ye=>{let qt=h(()=>!X()&&e.showAutoplayNext&&S());Qm(Ye,{get title(){return St()},get thumb(){return Ge()},get isHide(){return s(qt)},clickCloseIcon:()=>B($r,!0)})};R(mt,Ye=>{s(pt)&&St()&&Ge()&&Ye(ri)})}var ji=P(mt,2);{var Ho=Ye=>{Pd(Ye,{})};R(ji,Ye=>{Ve()&&Ye(Ho)})}var ao=P(ji,2);{var Zi=Ye=>{var qt=zx(),vi=_(qt);Yl(vi,{get"aria-label"(){return Dn}}),g(qt),b(Ye,qt)};R(ao,Ye=>{ee()&&Ye(Zi)})}var po=P(ao,2);{var yn=Ye=>{Ad(Ye,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return N()}})};R(po,Ye=>{j()&&Ye(yn)})}var en=P(po,2);{var fo=Ye=>{ba(Ye,{get shifted(){return w()},get captions(){return _e()},get position(){return L()},get playerSize(){return k()},isMobile:!0})};R(en,Ye=>{Oe().value!=="off"&&Ye(fo)})}var mo=P(en,2);{var ar=Ye=>{var qt=Wx();qt.__click=[Hx,W,oi,Nn];var vi=_(qt);$a(vi,{}),g(qt),b(Ye,qt)};R(mo,Ye=>{d()&&Ye(ar)})}var lo=P(mo,2);{var Sr=Ye=>{let qt=h(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),vi=h(()=>n()==="ads"),nn=h(()=>e.canRewindLive&&ve()!==0);kd(Ye,{get bottomHidden(){return s(qt)},get showControls(){return w()},get bottomNoSmooth(){return I()},get isAds(){return s(vi)},get canRewindLive(){return s(nn)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Qe()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return nt()},get nextButtonActive(){return _t()},get prevButtonActive(){return $t()},get isOneVideoPlaylist(){return zt()},get customFullscreenSupported(){return s(Ln)},get endScreenShown(){return s(pt)},toggleFullscreen:Rn,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:or,onDisabledSeekToInteractiveClick:xr,get playerControlsWrapperRef(){return s(No)},set playerControlsWrapperRef(xe){B(No,xe,!0)},get playerControlsRef(){return s(jo)},set playerControlsRef(xe){B(jo,xe,!0)}})};R(lo,Ye=>{Bt()&&Ye(Sr)})}var tn=P(lo,2);{var Ur=Ye=>{var qt=qx(),vi=_(qt);Rd(vi,{get supportLink(){return e.supportLink},get returnFocus(){return Dx},get ref(){return s(yo)},set ref(nn){B(yo,nn,!0)}}),g(qt),b(Ye,qt)};R(tn,Ye=>{W()&&Ye(Ur)})}var zr=P(tn,2);let is=h(()=>!s(br));ed(zr,{get isLive(){return ce()},get isHidden(){return s(is)},get isPlaying(){return ne()},get position(){return L()},get duration(){return K()}});var Fo=P(zr,2);{var lr=Ye=>{ua(Ye,{})};R(Fo,Ye=>{s(Dr)&&Ye(lr)})}var on=P(Fo,2);{var To=Ye=>{rd(Ye,{})};R(on,Ye=>{ye()&&Ye(To)})}var dr=P(on,2);{var Tr=Ye=>{Nd(Ye,{onClose:_r,onSelectAutoQuality:()=>{fn("auto"),_r()}})};R(dr,Ye=>{s(Hr)&&Ye(Tr)})}b(st,ni)});var rr=P(Do,2);tt(rr,st=>B(Jn,st),()=>s(Jn)),g(So),tt(So,st=>B(Ui,st),()=>s(Ui)),O(()=>Be(So,"aria-label",On)),Tt("click",So,Bn,!0),Tt("focusin",So,ir,!0),b(t,So),H(),o()}dt(["click"]);function wu(t){let e="";return Ki(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Ki(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Ki(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Ki(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Ki(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Ki(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Ki(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Ki(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Ki(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Ki(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Ki(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Ki(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Ki(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),Ki(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),Ki(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),Ki(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),Ki(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),Ki(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),Ki(t.font)&&(e+=`--font:${t.font};`),Ki(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),Ki(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function Ki(t){return typeof t=="string"&&!t.includes(";")}import{debounceFn as Yx}from"@vkontakte/videoplayer-shared/es2018";var jx=M('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),Zx={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 Ym(t,e){D(e,!0),z(t,Zx);let[i,o]=Fe(),n=()=>C(te,"$playerSize",i),r=()=>C(E,"$isPlaying$",i),l=()=>C(A,"$duration$",i),d=()=>C(U,"$positionWithScrubbing$",i),a=()=>C(T,"$playerPhase",i),p=()=>C(I,"$crashed$",i),f=()=>C(L,"$currentSubtitle$",i),v=()=>C(K,"$currentSubtitleCaptions$",i),u=()=>C(k,"$positionExact$",i),$=()=>C(W,"$isLive$",i),w=()=>C(G,"$isRewindableLive$",i),y=m(e,"outsideDuration",3,0),S=m(e,"videoContainer",15),{playerPhase:T,state:{crashed$:I,duration$:A,positionExact$:k,isPlaying$:E,currentSubtitle$:L,currentSubtitleCaptions$:K,positionWithScrubbing$:U,isLive$:W,isRewindableLive$:G},ui:{playerSize:te,controls:j},actions:{internal:{getVideoElement:ae}}}=Ee(),de=8,we=Y(!1),Re=ti({}),me=()=>{B(we,!0)},le=()=>{B(we,!1)},Ve=Yx(dl,260);qe(()=>{n(),Ve(ae(),j,Re,s(we))});let ee=h(()=>r()?un(l()-d()):un(isFinite(l())?l():y()));var N=jx(),Oe=_(N);Sa(Oe,{hideCursor:!1,get videoContainer(){return S()},set videoContainer(Te){S(Te)}});var _e=P(Oe,2);ea(_e,()=>"slot",!1,(Te,Qe)=>{Ie(Te,()=>({name:Ca}))});var ve=P(_e,2);let ce=h(()=>a()!=="thumb"||p());ya(ve,{get hidden(){return s(ce)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var ne=P(ve,2);{var ye=Te=>{ba(Te,{shifted:!1,get captions(){return v()},get position(){return u()},get playerSize(){return n()}})};R(ne,Te=>{f().value!=="off"&&Te(ye)})}var Z=P(ne,2),Ke=_(Z);Jl(Ke,{get isLive(){return $()},get isPlaying(){return r()},get time(){return s(ee)}}),g(Z);var ue=P(Z,2);let ke;var Ae=_(ue);ma(Ae,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:de,tooltipRightOffset:de,get ref(){return Re.timeline},set ref(Te){Re.timeline=Te}}),g(ue),g(N),O(Te=>ke=J(ue,1,"timeline svelte-1qfjf44",null,ke,Te),[()=>({visible:s(we)})]),Tt("mouseenter",N,me),Tt("mouseleave",N,le),b(t,N),H(),o()}var i5=M("<div><!></div>"),o5={hash:"svelte-oba660",code:`.root.svelte-oba660 {--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;
358
358
 
359
359
  /* USER DEFINED COLORS */
360
360
 
@@ -387,5 +387,5 @@ Try switching the\xA0quality to\xA0Auto.`},wh=v_;var ms=new Map;ms.set(Ch.EN,wh)
387
387
  /* --vk-vp-int-custom-font - vk video player interactive custom font */font-family:var(--vk-vp-int-custom-font, inherit);}*:focus, *:focus-visible {outline:none;}*:focus-visible {box-shadow:var(--focused-element-shadow);border-radius:var(--focused-outline-radius);}*.focus-hidden:focus-visible {box-shadow:none;}
388
388
  /* 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);}
389
389
 
390
- /* \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 Qm(t,e){F(e,!0),q(t,jx);let[i,o]=Be(),n=()=>S(qt,"$isLive$",i),s=m(e,"sources",7),l=m(e,"store",7),d=m(e,"microStoresRoot",7),a=m(e,"videoConfig",7),u=m(e,"uiConfig",7),f=m(e,"title",7),v=m(e,"thumbUrl",7),p=m(e,"interactiveContainer",7),b=m(e,"interactiveController",7),x=m(e,"subtitles",7),y=m(e,"live",7),C=m(e,"preload",7),T=m(e,"autoplay",7),E=m(e,"volume",7,void 0),M=m(e,"muted",7,void 0),k=m(e,"fromTime",7),I=m(e,"canRewindLive",7),N=m(e,"showAds",7),Y=m(e,"adsSlotId",7,void 0),D=m(e,"adsParams",7,void 0),H=m(e,"adsPreviewParam",7,void 0),W=m(e,"adsAutoplayParam",7,void 0),ee=m(e,"duration",7,void 0),K=m(e,"logoClickable",7),de=m(e,"logoHidden",7),oe=m(e,"isMobile",7),we=m(e,"showNextPrevButtons",7,!1),Ie=m(e,"nextButtonActive",7,!1),pe=m(e,"prevButtonActive",7,!1),le=m(e,"endScreenVideoTitle",7,void 0),Ae=m(e,"endScreenVideoThumb",7,void 0),te=m(e,"isOneVideoPlaylist",7,!1),R=m(e,"supportLink",7),Ge=m(e,"shadowRootContainer",7,void 0),ie=m(e,"outerContainerRef",7,void 0),Ke=m(e,"fullScreenTarget",7,void 0),ce=m(e,"failoverHosts",7,void 0),fe=m(e,"showMiniTimer",7,!1),$e=m(e,"saveRate",7),Z=m(e,"seekToInteractive",7,H1),qe=m(e,"playPrevChapter",7,H1),Ze=m(e,"volumeMultiplier",7),Pe=m(e,"showAutoplayNext",7),re=m(e,"showEndScreen",7,!0),Ee=m(e,"keyboardControls",15,void 0),{subscribers:Qe,stores:rt}=d();Wg(u());let nt=Ft(),Mt=u().logoLink,Je=l().ui.debugPanelVisible,dt=l().ui.playerSize,qt=l().state.isLive$,Kt=l().state.isInteractive&&qm.device.isAndroid,wt=j(void 0),ne=null,Lt=j(!1);l().getAdmanWrapper().init({switchFromAdsToVideo:l().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:l().actions.internal.switchFromVideoToAds,setMuted:l().actions.external.setMuted},l().ads,{isMobile:l().ui.isMobile,mobileUnmuteButtonVisible:l().ui.mobileUnmuteButtonVisible,vsid:l().vsid}),eh(l(),rt),We(()=>{var G,zt;l().ui.isMobile.set(oe()),(zt=(G=a().callbacks)==null?void 0:G.onDomReady)==null||zt.call(G)});let ge=(G=!1)=>{B(Lt,!0),G?l().actions.external.firstStart(N()):l().actions.internal.firstStart(N())},X=()=>{if(nt.features.qualityDetailsSubMenuEnabled){let G=$h(l().videoId);if(G)switch(G.type){case"high_quality":l().actions.internal.setHighQualityEnabled(!0,G.appliesTo);break;case"traffic_saving":l().actions.internal.setTrafficSavingEnabled(!0,G.appliesTo);break;case"exact_quality":l().actions.internal.setQuality(G.quality);break}}else{yh(l().videoId),Up()&&l().actions.internal.setTrafficSavingEnabled(!0);let zt=Op(l().videoId);zt&&l().actions.internal.setQuality(zt)}};function xe(G){var ci,ct,tt;let zt=s()||G;zt&&l().initVideo({container:r(wt),sources:zt,failoverHosts:ce(),subtitles:x(),volumeMultiplier:Ze()});let li=qx.get(zl)==="true";Je.set(li),k()>0&&l().actions.external.seekTime(k());let Li=oe()?nt.volumeDefault:(ct=(ci=E())!=null?ci:Rc())!=null?ct:nt.volumeDefault,ri=(tt=M())!=null?tt:mh();if(l().actions.external.setVolume(Li),l().actions.external.setMuted(ri),l().getAdmanWrapper().setInitialVolume(ri?0:Li),X(),nt.features.saveRate&&$e()){let Tt=hh();Tt&&!n()&&l().actions.internal.setPlaybackRate(Tt)}if(Pe()){let Tt=bh();Tt&&l().actions.internal.setAutoplayNextEnabled(Tt)}l().ui.isAutoplay.set(T()),T()?ge():C()&&nt.features.preload&&l().actions.internal.preload()}let He=G=>{if(window.ResizeObserver){let zt,li;ne=new ResizeObserver(Qx(Li=>{let ri=Li[0];if(ri.contentBoxSize){let ci=Array.isArray(ri.contentBoxSize)?ri.contentBoxSize[0]:ri.contentBoxSize;zt=ci.inlineSize,li=ci.blockSize}else ri.contentRect&&(zt=ri.contentRect.width,li=ri.contentRect.height);dt.set({width:zt,height:li})},300)),ne.observe(G)}dt.set({width:G.clientWidth,height:G.clientHeight})},me=()=>{document.hidden&&l().actions.external.stop()};Nt(()=>{var li,Li,ri,ci;Kt&&document.addEventListener("visibilitychange",me),nt.debugLog&&l().actions.internal.startLogging(),He(r(wt));let G=Qe.map(ct=>ct.init({store:l(),microStores:rt,config:a(),interactiveController:b(),uiConfig:u()})),zt=()=>{Kt&&document.removeEventListener("visibilitychange",me),ne==null||ne.disconnect(),G.forEach(ct=>ct.unsubscribe()),l().destroy()};return((li=y())==null?void 0:li.status)==="upcoming"?(l().actions.internal.setLiveWaitingStart(!0),zt):((Li=y())==null?void 0:Li.status)==="waiting"?(l().actions.internal.setLiveWaitingRecover(!0),zt):(((ri=y())==null?void 0:ri.status)==="finished"||((ci=y())==null?void 0:ci.status)==="postlive")&&!(s()&&Kx(s(),{useManagedMediaSource:e.coreConfig.useManagedMediaSource!==!1,useOldMSEDetection:e.coreConfig.useOldMSEDetection===!0}))?(l().actions.internal.setLiveWaitingRecord(!0),zt):(xe(),zt)});function Re(){r(Lt)?l().actions.external.play():ge(!0)}function Xe(){l().actions.external.pause()}function Ue(G){l().actions.external.setMuted(G)}function Pt(){l().actions.external.toggleSubtitle()}function St(){var G;(G=l().webApi.slotsApi)!=null&&G.haveSlots()&&l().actions.external.hideControls()}function yt(){var G;(G=l().webApi.slotsApi)!=null&&G.haveSlots()&&l().actions.external.showControls()}function pt(G){oe()||G>=0&&G<=1&&l().actions.external.setVolume(G)}function Mi(G){l().actions.internal.seekTime(G,Gx.UNKNOWN)}function di(G){l().actions.external.seekEpisodeStartTime(G)}function ot(){l().actions.external.returnFocusToEpisodes()}function Bt(G){l().actions.external.setPlaybackRate(G)}function fi(G){l().actions.external.setAutoQualityLimits(G)}let Ui=wu(nt.view),uo=a().playerView==="preview";var zi=Yx();let Qt;var po=_(zi);{var It=G=>{Wm(G,{get store(){return l()},get uiConfig(){return nt},get thumbUrl(){return v()},get interactiveContainer(){return p()},get live(){return y()},get autoplay(){return T()},get canRewindLive(){return I()},get showAds(){return N()},get adsSlotId(){return Y()},get adsParams(){return D()},get adsPreviewParam(){return H()},get adsAutoplayParam(){return W()},get duration(){return ee()},get logoClickable(){return K()},get logoHidden(){return de()},get logoTargetUrl(){return Mt},get nextButtonActive(){return Ie()},get prevButtonActive(){return pe()},get endScreenVideoTitle(){return le()},get endScreenVideoThumb(){return Ae()},get isOneVideoPlaylist(){return te()},get supportLink(){return R()},get shadowRootContainer(){return Ge()},get outerContainerRef(){return ie()},get fullScreenTarget(){return Ke()},get showMiniTimer(){return fe()},get playerStarted(){return r(Lt)},get seekToInteractive(){return Z()},get playPrevChapter(){return qe()},firstStart:ge,seekTime:Mi,get showEndScreen(){return re()},get showAutoplayNext(){return Pe()},get showNextPrevButtons(){return we()},get videoContainer(){return r(wt)},set videoContainer(zt){B(wt,zt,!0)}})},lt=G=>{var zt=Fe(),li=ve(zt);{var Li=ci=>{Km(ci,{get thumbUrl(){return v()},get outsideDuration(){return ee()},get canRewindLive(){return I()},get videoContainer(){return r(wt)},set videoContainer(ct){B(wt,ct,!0)}})},ri=ci=>{Um(ci,{get store(){return l()},get uiConfig(){return nt},get title(){return f()},get thumbUrl(){return v()},get interactiveContainer(){return p()},get live(){return y()},get autoplay(){return T()},get canRewindLive(){return I()},get showAds(){return N()},get adsSlotId(){return Y()},get adsParams(){return D()},get adsPreviewParam(){return H()},get adsAutoplayParam(){return W()},get duration(){return ee()},get logoClickable(){return K()},get logoHidden(){return de()},get logoTargetUrl(){return Mt},get nextButtonActive(){return Ie()},get prevButtonActive(){return pe()},get endScreenVideoTitle(){return le()},get endScreenVideoThumb(){return Ae()},get isOneVideoPlaylist(){return te()},get supportLink(){return R()},get shadowRootContainer(){return Ge()},get outerContainerRef(){return ie()},get fullScreenTarget(){return Ke()},get showMiniTimer(){return fe()},get playerStarted(){return r(Lt)},get seekToInteractive(){return Z()},get playPrevChapter(){return qe()},firstStart:ge,get showEndScreen(){return re()},get showAutoplayNext(){return Pe()},get showNextPrevButtons(){return we()},get videoContainer(){return r(wt)},set videoContainer(ct){B(wt,ct,!0)},get keyboardControls(){return Ee()},set keyboardControls(ct){Ee(ct)}})};L(li,ci=>{uo?ci(Li):ci(ri,!1)})}$(G,zt)};L(po,G=>{oe()?G(It):G(lt,!1)})}h(zi),O(G=>{Qt=J(zi,1,"root svelte-oba660",null,Qt,G),it(zi,Ui)},[()=>({"root--miui-browser":qm.device.isMobile&&qm.browser.isMiuiBrowser,"visible-outside":uo})]),$(t,zi);var mi=U({initVideo:xe,play:Re,pause:Xe,setMuted:Ue,toggleSubtitle:Pt,hideControls:St,showControls:yt,setVolume:pt,seekTime:Mi,seekEpisodeStartTime:di,returnFocusToEpisodes:ot,setPlaybackRate:Bt,setAutoQualityLimits:fi,get sources(){return s()},set sources(G){s(G)},get store(){return l()},set store(G){l(G)},get microStoresRoot(){return d()},set microStoresRoot(G){d(G)},get videoConfig(){return a()},set videoConfig(G){a(G)},get uiConfig(){return u()},set uiConfig(G){u(G)},get title(){return f()},set title(G){f(G)},get thumbUrl(){return v()},set thumbUrl(G){v(G)},get interactiveContainer(){return p()},set interactiveContainer(G){p(G)},get interactiveController(){return b()},set interactiveController(G){b(G)},get subtitles(){return x()},set subtitles(G){x(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 E()},set volume(G){E(G)},get muted(){return M()},set muted(G){M(G)},get fromTime(){return k()},set fromTime(G){k(G)},get canRewindLive(){return I()},set canRewindLive(G){I(G)},get showAds(){return N()},set showAds(G){N(G)},get adsSlotId(){return Y()},set adsSlotId(G){Y(G)},get adsParams(){return D()},set adsParams(G){D(G)},get adsPreviewParam(){return H()},set adsPreviewParam(G){H(G)},get adsAutoplayParam(){return W()},set adsAutoplayParam(G){W(G)},get duration(){return ee()},set duration(G){ee(G)},get logoClickable(){return K()},set logoClickable(G){K(G)},get logoHidden(){return de()},set logoHidden(G){de(G)},get isMobile(){return oe()},set isMobile(G){oe(G)},get showNextPrevButtons(){return we()},set showNextPrevButtons(G){we(G)},get nextButtonActive(){return Ie()},set nextButtonActive(G){Ie(G)},get prevButtonActive(){return pe()},set prevButtonActive(G){pe(G)},get endScreenVideoTitle(){return le()},set endScreenVideoTitle(G){le(G)},get endScreenVideoThumb(){return Ae()},set endScreenVideoThumb(G){Ae(G)},get isOneVideoPlaylist(){return te()},set isOneVideoPlaylist(G){te(G)},get supportLink(){return R()},set supportLink(G){R(G)},get shadowRootContainer(){return Ge()},set shadowRootContainer(G){Ge(G)},get outerContainerRef(){return ie()},set outerContainerRef(G){ie(G)},get fullScreenTarget(){return Ke()},set fullScreenTarget(G){Ke(G)},get failoverHosts(){return ce()},set failoverHosts(G){ce(G)},get showMiniTimer(){return fe()},set showMiniTimer(G){fe(G)},get saveRate(){return $e()},set saveRate(G){$e(G)},get showAutoplayNext(){return Pe()},set showAutoplayNext(G){Pe(G)},get seekToInteractive(){return Z()},set seekToInteractive(G){Z(G)},get playPrevChapter(){return qe()},set playPrevChapter(G){qe(G)},get volumeMultiplier(){return Ze()},set volumeMultiplier(G){Ze(G)},get showEndScreen(){return re()},set showEndScreen(G){re(G)},get keyboardControls(){return Ee()},set keyboardControls(G){Ee(G)}});return o(),mi}var Zx=Te('<svg><!><path fill="currentColor" d="M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"></path></svg>');function Gm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Zx();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(),h(o),$(t,o)}function Ym(t,e){let i=m(e,"isWhite",3,!1),o=g(()=>i()?"color: #fff;":"color: #909499;");Gm(t,{get style(){return r(o)}})}var Xx=A('<div class="title svelte-1y9fytq"> </div>'),Jx=A('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),e5={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 jm(t,e){q(t,e5);var i=Jx(),o=_(i);{var n=d=>{var a=Xx(),u=_(a,!0);h(a),O(()=>he(u,e.title)),$(d,a)};L(o,d=>{e.title&&d(n)})}var s=P(o,2);{var l=d=>{let a=g(()=>!!e.thumbUrl);Ym(d,{get isWhite(){return r(a)}})};L(s,d=>{(!e.title||!e.thumbUrl)&&d(l)})}h(i),O(()=>it(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),$(t,i)}import{now as T5}from"@vkontakte/videoplayer-shared/es2018";import{cloneDeepWith as E5,InterfaceLanguage as I5,isNonNullable as iv,Logger as k5,Observable as P5,Subscription as G1,once as A5,InternalsExposure as M5,skip as L5}from"@vkontakte/videoplayer-shared/es2018";import{clientChecker as Y1,isMobile as V5}from"@vkontakte/videoplayer-core/es2018";import{OneStat as R5,ThinOneStat as N5,MediascopePixel as B5}from"@vkontakte/videoplayer-statistics/es2018";import{Logger as t5,Subscription as i5}from"@vkontakte/videoplayer-shared/es2018";var Su=class{constructor(){this.subscription=new i5,this.logger=new t5,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,s]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,s)}catch(l){throw new Error(`The media session action "${n}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var s,l;let o=ye(e.state.currentPlaybackRate$),n=ye(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(l=(s=navigator.mediaSession).setPositionState)==null||l.call(s,{position:i,playbackRate:o,duration:n})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${n}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{ValueSubject as Jm,detectEmbed as l5}from"@vkontakte/videoplayer-shared/es2018";var o5=Te('<svg><!><g fill="var(--btn-color, #fff)"><path d="m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"></path><path d="M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"></path></g></svg>');function Zm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=o5();Me(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img",...i}));var n=_(o);be(n,()=>{var s;return(s=e.children)!=null?s:se}),Ce(),h(o),$(t,o)}var n5=A('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),r5={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 Xm(t,e){F(e,!0),q(t,r5);let[i,o]=Be(),n=()=>S(u,"$interfaceLanguage$",i),s=()=>S(f,"$isMobile$",i),l=ke(),d=Ft(),a=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,f=l.ui.isMobile,v=l.ui.t,p=g(()=>n()&&v("pip_dummy_title")),b=wu(d.view);var x=n5();let y;var C=_(x);let T;var E=_(C);Zm(E,{}),h(C);var M=P(C,2),k=_(M,!0);h(M),h(x),O((I,N)=>{y=J(x,1,"player-pip-dummy svelte-1pbsod4",null,y,I),it(x,b),T=J(C,1,"dummy-image svelte-1pbsod4",null,T,N),he(k,r(p))},[()=>({"is-pip-api":a}),()=>({desktop:!s()})]),$(t,x),U(),o()}var s5=Object.defineProperty,a5=(t,e,i)=>e in t?s5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,fl=(t,e,i)=>a5(t,typeof e!="symbol"?e+"":e,i),d5=460,c5=280,Od=class{constructor({enabled:e=!0}={enabled:!0}){fl(this,"playerDomElement"),fl(this,"playerParentShadowRoot"),fl(this,"playerDummyElement"),fl(this,"svelteContext"),fl(this,"pipWindow"),fl(this,"info",{isActive$:new Jm(!1),isEnabled$:new Jm(!1),type:1}),this.info.isEnabled$=new Jm(e)}isSupported(){let{isEmbed:e}=l5();return"documentPictureInPicture"in window&&!e}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}async request(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:d5,height:c5,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(u=>u.cssText).join(" ")).filter(Boolean).join(`
391
- `),n=document.createElement("style");n.textContent=o;let s=this.createStretchedContainer(),l=s.attachShadow({mode:"open"});l.append(n),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=us(Xm,d),(e=this.pipWindow)==null||e.document.body.append(s),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(ta(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})}async remove(){return new Promise(e=>{var i;this.pipWindow&&((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 F1(t){return t instanceof Od}var Cu=class{static getLatestSupportedVersion(e){let i=new la(e),o=new Od(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Dd(t,e){var n,s;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(s=(n=e[l])!=null?n:t[l])!=null?s:void 0;return o}var U1="Inner error. Unexpectedly root annotation container null reference exception",z1="Annotation with such name already exists",W1="Annotation with such name does not exist";var ml=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as u5,Subscription as p5,throttleFn as f5}from"@vkontakte/videoplayer-shared/es2018";var m5="1",v5=100,Tu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new p5}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=f5(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},v5);this.subscriptions.add(u5(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 ml(U1);if(this.annotations.has(e))throw new ml(z1);i.style.zIndex=(o=i.style.zIndex)!=null?o:m5,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 ml(W1);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let n=e.offsetTop,s=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return n<0||s<0||s+l>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as Eu,Subscription as g5}from"@vkontakte/videoplayer-shared/es2018";var en=class{init({store:e,microStores:i,interactiveController:o,config:n}){return Eu(e),Eu(i),Eu(n),n.interactiveData&&Eu(o),this.subscription=new g5,this.subscription}};var Hd=class extends en{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(s=>{this.state$.set(s?!0:null)})),o}};var Fd=class extends en{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:s}=i,{fakeIsPlaying$:l}=n,{isInteractiveExpectation$:d,isPlaying$:a}=s.state,{controlsVisible:u,isMobile:f}=s.ui,v=ye(f),p=()=>v&&ye(u);return o.add(u.subscribe(b=>{if(!v)return;let x=ye(l);ye(a)?this.state$.set(b):x!==null&&this.state$.set(!x||b)})),o.add(a.subscribe(b=>{this.state$.set(!b||p())})),o.add(l.subscribe(b=>{if(b===null)return;let x=ye(d);if(p()){this.state$.set(!0);return}x&&this.state$.set(!b)})),o}};var Ud=class extends en{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=ae("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(s=>{s.length&&(s.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};import{combine as h5}from"@vkontakte/videoplayer-shared/es2018";var ev=ae(!1),Iu=null,zd=class extends en{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...ev,set:(i,o=!1)=>{i!==ye(ev)&&(this.clearTimeout(),ev.set(i),!i&&Iu&&(Iu=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:n,config:s}=i,{isInteractiveTime$:l,isPlaying$:d}=n.state,a=n.ui.controlsVisible,{interactiveTimeIndicator:u}=n.ui.controls;o.add(a.subscribe(v=>{ye(l)&&v&&this.state$.set(!1)}));let f=(s==null?void 0:s.interactiveData)||{tooltipHelpHintActive:!1};return o.add(h5({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:v,isInteractiveTime$:p,interactiveTimeIndicator:b})=>{var x,y;if(!(!v||!(b!=null&&b.isDisplayed))){if(!p)return this.state$.set(!1);f.tooltipHelpHintActive&&Iu===null&&(Iu=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(y=(x=n.callbacks)==null?void 0:x.onInteractiveTimeIndicatorHintDeactivated)==null||y.call(x))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as _5,noop as b5}from"@vkontakte/videoplayer-shared/es2018";var Wd=class extends en{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...ae(null),toggle:b5};this.checkIfShouldHide=i=>Bs(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:s}=i,l=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide(ye(l)))return;let a=ye(this.state$),{isEnded$:u,playbackState$:f}=n.state,{disabledControls$:v}=n.ui.controls,p=ye(u),b=ye(f);if(a)try{await(s==null?void 0:s.toggleGraphView(!1)),this.state$.set(!1),v.remove(Ap),!p&&this.graphMadePause&&n.actions.internal.play()}catch(x){d({message:"Cant hide graph"})}else{this.graphMadePause=b==="playing";try{await(s==null?void 0:s.toggleGraphView(!0)),this.state$.set(!0),v.add(Ap),!p&&this.graphMadePause&&n.actions.internal.pause()}catch(x){d({message:"Cant show graph"})}}},o.add(_5({graphIsOpened:this.state$,currentGridType:l}).subscribe(async({graphIsOpened:a,currentGridType:u})=>{if(this.checkIfShouldHide(u)&&a)try{await(s==null?void 0:s.toggleGraphView(!1)),this.state$.set(!1)}catch(v){d({message:"Cant hide graph"})}})),o}};import{ValueSubject as K1}from"@vkontakte/videoplayer-shared/es2018";var Kd=class extends en{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:ae(!1),isEnabled$:ae(!1),type$:ae(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:s,isEnabled$:l,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new K1(!1),isEnabled$:new K1(!1)}};return o.add(s.subscribe(a=>{this.state$.isActive$.set(a)})),o.add(l.subscribe(a=>{this.state$.isEnabled$.set(a)})),this.state$.type$.set(d),o}};import{filter as x5,filterChanged as w5}from"@vkontakte/videoplayer-shared/es2018";import{safeStorage as tv}from"@vkontakte/videoplayer-shared/es2018";var q1=({maxShowCount:t,timeout:e})=>{let i=[t!==0?$5({maxCount:t}):void 0,e!==0?y5({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},$5=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,tv.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}}},y5=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(tv.get(e)||"{}")}catch(s){return{}}},o=s=>tv.set(e,JSON.stringify(s)),n=s=>{let l=i();delete l[s],o(l)};return{notificationShowed:s=>{o({...i(),[s]:{timeout:t,launchTime:Date.now()}})},canShowNotification:s=>{let l=i()[s];if(l){let d=Date.now()-l.launchTime>t;return d&&n(s),d}else return!0}}};var qd=class extends en{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:ae({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:s,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:a}}}=i;this.notificationManager=q1({maxShowCount:s,timeout:l});let u=n.getPlayer();return o.add(u.events.severeStallOccured$.pipe(w5(),x5(f=>f)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(a&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var Q1=()=>[Hd,Fd,Ud,zd,Wd,Kd,qd].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 Qd}from"@vkontakte/videoplayer-shared/es2018";var ku=class{constructor(e){this.shadowRoot=e;this.lastFocusedNode=null;this.init=()=>{this.shadowRoot.addEventListener("focusin",this.handleFocusChange)};this.handleFocusChange=()=>{this.lastFocusedNode=this.shadowRoot.activeElement};this.restoreFocus=()=>{var e;(e=this.lastFocusedNode)==null||e.focus()};this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange)}};var S5=Object.defineProperty,C5=(t,e,i)=>e in t?S5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ei=(t,e,i)=>C5(t,typeof e!="symbol"?e+"":e,i),O5={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:I5.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:V5(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Cn=j(void 0),Pu=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,"focusManager"),ei(this,"prevIsid"),ei(this,"isInited",!1),ei(this,"internalsExposure",null),ei(this,"shadowDOMCallbacksDisabled",!1),ei(this,"createOneStat",(e,i={})=>{var o,n,s,l;if(!this.videoConfig)return;let{albumId:d,statPlace:a,statUserSalt:u,statTrackCode:f,statVKAppId:v,refreshStatAuthToken:p,autoplay:b,isMobile:x,isTouch:y,refDomain:C,deviceId:T,interactiveData:E}=Dd(this.videoConfig,i),M=(o=E==null?void 0:E.projectInfo)==null?void 0:o.pid,k=(s=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?s:!1;k&&(this.prevIsid=void 0);let{unitedVideoId:I,isClip:N=!1}=e;if(this.uiConfig.features.statistics&&I)try{return new R5({movieId:I,albumId:d,place:a,trackCode:f,vkAppId:v,autoplay:(l=b&&!this.interactiveController)!=null?l:!1,mobile:y!=null?y:x,clip:N,refDomain:C,deviceId:T,...M&&(!this.isInited||k)&&{projectId:Number(M)}},{refreshAuthToken:p,userSalt:u,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}catch(D){console.error(D),this.log({message:D.message})}}),Qd.create("ui"),this.logger=new k5,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new G1,this.interactiveSubscription=new G1,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,s=ii({title:o,thumbUrl:n}),l={target:this.playerContainer,props:s};this.svelteStubComponent=us(jm,l)}disconnectedCallback(){var e,i,o,n,s,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(n=this.mediaSessionApi)==null||n.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.subscription.unsubscribe(),(s=this.unsubscribePlayerPhaseSubscription)==null||s.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),Qd.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:n,refreshStatAuthToken:s}=Dd(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new N5.ThinOneStat({deviceId:o,movieId:l,preload:n},{config:this.statisticsConfig,refreshAuthToken:s})}createPlayer(e,i={},o){var n,s,l,d,a,u,f,v,p;if(!this.videoConfig)return;let{albumId:b,statPlace:x,statAuthToken:y,preload:C,autoplay:T,volume:E,muted:M,fromTime:k,canRewindLive:I,supportLink:N,showAds:Y,adsSlotId:D,adsParams:H={},adsPreviewParam:W,adsAutoplayParam:ee,interfaceLanguage:K,isCyrillicRelatedInterface:de,logoClickable:oe,logoHidden:we,isMobile:Ie,isTouch:pe,isAudioDisabled:le,isLiveCatchUpMode:Ae,fullScreenTarget:te,failoverHosts:R,canDownload:Ge,callbacks:ie,interactiveData:Ke,showThumbTimer:ce,additionalButtons:fe=[],additionalSettingsMenuItems:$e=[],additionalContextMenuItems:Z=[],repeat:qe,saveRate:Ze,volumeMultiplier:Pe,showEndScreen:re,showAutoplayNext:Ee,mediascopePixels:Qe}=Dd(this.videoConfig,i),{sources:rt,title:nt,thumbUrl:Mt,unitedVideoId:Je,isClip:dt=!1,duration:qt,adsParams:oi={},videoEpisodes:Kt,previewThumbsData:wt,subtitles:ne,live:Lt}=e,ge={...H,...oi},X=this.getNextVideoInfo(),xe={sources:rt,title:nt,thumbUrl:Mt,subtitles:ne,unitedVideoId:Je,isClip:dt,live:Lt,albumId:b,statPlace:x,autoplay:T,muted:M,volume:E,fromTime:k,canRewindLive:I,showAds:Y,adsSlotId:D,adsParams:ge,adsPreviewParam:W,adsAutoplayParam:ee,duration:qt,logoClickable:oe,logoHidden:we,isTouch:pe!=null?pe:Ie,repeat:qe,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:X.nextVideoTitle,endScreenVideoThumb:X.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},He={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(xe)}`});let me=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),Re=(me==null?void 0:me.oneStat)||this.createOneStat(e,i),Xe=this.createThinOneStat(e,i),Ue;Qe&&(Ue=new B5({pixels:Qe})),(Re||Xe)&&(this.statistics=new au(Re,Xe,Ue,me==null?void 0:me.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new aa(this.uiConfig.sentry,{version:el,env:Mc},{movieId:Je,albumId:b,place:x,autoplay:(s=T&&!this.interactiveController)!=null?s:!1,mobile:pe!=null?pe:Ie,clip:dt}),this.interactiveController&&((a=this.prevIsid)!=null||(this.prevIsid=(d=(l=this.statistics)==null?void 0:l.oneStat)==null?void 0:d.isid$.getValue())),this.sentry={...this.sentry,...aa.getInstance()};let St=!!Ke,yt=[],pt="tooltip_interactive_go_back_disabled_first";if(St&&this.interactiveController){let Bt=this.interactiveController.state.isInitialChapter$.getValue(),fi=this.interactiveController.getHistoryState();Bt&&yt.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||yt.push("SEEK_TO_INTERACTIVE_BUTTON"),fi.hasPrevChapter$.getValue()||(yt.push("PLAY_PREV_CHAPTER_BUTTON"),Bt||(fi.isGoBackLimited$.getValue()?pt="tooltip_interactive_go_back_disabled_limit":pt="tooltip_interactive_go_back_disabled"))}let Mi=()=>{var Bt;this.isInited=!1,this.prevIsid=void 0;let fi=(o==null?void 0:o.info.isEnded$.getValue())&&((Bt=this.interactiveController)==null?void 0:Bt.state.isEndChapter$.getValue());ie.onReplayInteractiveVideo&&!fi?ie.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=l1({player:o,interfaceLanguage:K,isCyrillicRelatedInterface:de,videoId:Je,isClip:dt,isLiveCatchUpMode:Ae,isAudioDisabled:le,statAuthToken:y,callbacks:ie,webApi:He,videoEpisodes:Kt,previewThumbsData:wt,canDownload:Ge,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:yt,isInteractive:St,saveRate:Ze,interactiveRanges$:(u=this.interactiveController)==null?void 0:u.state.interactiveRanges$,isInteractiveTime$:(f=this.interactiveController)==null?void 0:f.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:Mi,playPrevChapterDisabledTooltip:pt,hasInteractiveBranches:!!((p=(v=this.interactiveController)==null?void 0:v.getChapterBranches())!=null&&p.length),additionalButtons:this.uiConfig.features.additionalButtons?fe:[],additionalSettingsMenuItems:$e!=null?$e:[],additionalContextMenuItems:Z!=null?Z:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:qe&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:di}=this.microStoresRoot=Q1(),ot=()=>{var Bt,fi,Ui,uo,zi,Qt;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(It=>{var lt;return(lt=ie==null?void 0:ie.onCurrentFormatChanged)==null?void 0:lt.call(ie,It)})),this.subscription.add(di.interactiveControlsOpacity$.subscribe(It=>{var lt;It!==null&&((lt=this==null?void 0:this.interactiveController)==null||lt.setDisabledControls(It))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(It=>{var lt;return(lt=ie==null?void 0:ie.onThroughputEstimationChanged)==null?void 0:lt.call(ie,It)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(It=>{var lt;return(lt=ie==null?void 0:ie.onTrafficSavingEnabledChanged)==null?void 0:lt.call(ie,It)})),this.subscription.add(new P5(It=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(lt=>It.next(lt)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?L5(1):It=>It).subscribe(It=>{var lt;return(lt=ie==null?void 0:ie.onCurrentPlaybackRateChanged)==null?void 0:lt.call(ie,It)})),this.subscription.add(this.store.state.volume$.subscribe(It=>{var lt;return(lt=ie==null?void 0:ie.onVolumeChange)==null?void 0:lt.call(ie,It)})),this.subscription.add(this.store.state.muted$.subscribe(It=>{var lt,mi,G,zt;if(It)(lt=ie==null?void 0:ie.onMute)==null||lt.call(ie);else{let li=(G=((mi=this.store)==null?void 0:mi.state.volume$)&&ye(this.store.state.volume$))!=null?G:0;(zt=ie==null?void 0:ie.onUnmute)==null||zt.call(ie,li)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(It=>{var lt;return(lt=ie==null?void 0:ie.onVideoBitrateChanged)==null?void 0:lt.call(ie,It)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(It=>{var lt;let mi=(lt=this.store)==null?void 0:lt.ui.controls.disabledControls$;mi&&(It&&!mi.includes(Wl)&&mi.add(Wl),It||mi.remove(Wl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async It=>{var lt;if(!Y1.browser.isSamsungBrowser||!It||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((lt=this.videoConfig)==null?void 0:lt.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(It=>{var lt;return(lt=ie==null?void 0:ie.onVSIDChanged)==null?void 0:lt.call(ie,It)})),this.initMediaSession(),B(Cn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:rt,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,coreConfig:this.coreConfig,title:nt,thumbUrl:Mt,subtitles:ne,live:Lt,preload:C,autoplay:T,muted:M,volume:E,fromTime:k,canRewindLive:I,supportLink:N,showAds:Y,adsSlotId:D,adsParams:ge,adsPreviewParam:W,adsAutoplayParam:ee,duration:qt,logoClickable:oe,logoHidden:we,isMobile:pe!=null?pe:Ie,failoverHosts:R,fullScreenTarget:te,saveRate:Ze,shadowRootContainer:this.shadowRootContainer,showMiniTimer:ce,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:X.nextVideoTitle,endScreenVideoThumb:X.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Pe,showEndScreen:re,showAutoplayNext:Ee},!0);let po={target:this.playerContainer,props:r(Cn)};this.svelteRootComponent=us(Qm,po),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Ui=(fi=(Bt=this.videoConfig)==null?void 0:Bt.callbacks)==null?void 0:fi.onInited)==null||Ui.call(fi)),(uo=this.internalsExposure)==null||uo.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Qt=(zi=this.videoConfig)==null?void 0:zi.callbacks)!=null&&Qt.onDevNullLog)?Qd.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Qd.destroy("ui")};this.coreConfig.asyncResolveClientChecker?Y1.isInited$.subscribe(Bt=>{Bt&&(console.log("UI SDK async start"),ot())}):ot()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,n=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!n)return;let s=(i=this.videoConfig)==null?void 0:i.callbacks;s&&this.subscription.add(o.playerPhase.subscribe(d=>{var a;return(a=s.onPlayerPhaseChanged)==null?void 0:a.call(s,d)})).add(o.state.playbackState$.subscribe(d=>{var a;return d&&((a=s.onPlaybackStateChanged)==null?void 0:a.call(s,d))})).add(o.state.isLive$.subscribe(d=>{var a;return(a=s.onIsLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isActiveLive$.subscribe(d=>{var a;return(a=s.onIsActiveLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var a;return(a=s.onIsAudioAvailableChanged)==null?void 0:a.call(s,d)})).add(o.state.currentQuality$.subscribe(d=>{var a;return(a=s.onCurrentQualityChanged)==null?void 0:a.call(s,d)})).add(o.state.availableQualities$.subscribe(d=>{var a;return(a=s.onAvailableQualitiesChanged)==null?void 0:a.call(s,d.map(({value:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&s.onAudioLanguagesAvailable&&s.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var a,u;return d?(a=s.onPiPEnter)==null?void 0:a.call(s):(u=s.onPiPExit)==null?void 0:u.call(s)}));let l=s==null?void 0:s.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var a;return(a=l.onControlsVisibleChanged)==null?void 0:a.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var a;return(a=l.onIsMobileChanged)==null?void 0:a.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var a;return(a=l.onPlayerSizeChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var a;return(a=l.onPrevButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var a;return(a=l.onPlayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var a;return(a=l.onReplayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var a;return(a=l.onNextButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var a;return(a=l.onPlayPrevChapterChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var a;return(a=l.onSeekToInteractiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var a;return(a=l.onGraphButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var a;return(a=l.onLiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var a;return(a=l.onTimeUpdateChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var a;return(a=l.onEpisodesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var a;return(a=l.onSubtitlesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var a;return(a=l.onTopLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var a;return(a=l.onTopRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var a;return(a=l.onBottomLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var a;return(a=l.onBottomRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var a;return(a=l.onMiddleControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var a;return(a=l.onBottomControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var a;return(a=l.onTitleChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var a;return(a=l.onSettingsChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var a;return(a=l.onFullscreenChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var a;return(a=l.onChromecastChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var a;return(a=l.onPipChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var a;return(a=l.onVkLogoChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var a;return(a=l.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var a;return(a=l.onTimelineChanged)==null?void 0:a.call(l,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let n=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!n){this.log({message:"no next video"});return}this.isInited&&iv(n.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(n.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(n,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}async initInteractives(){var e,i,o,n,s,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=await import("@vkontakte/videoplayer-interactive/es2018");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let a=(i=this.store)==null?void 0:i.interfaceLanguage$,u=a?ye(a):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:v,historyApi:p,videoLoader:b}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:u,graph:this.uiConfig.features.interactiveGraph,projectInfo:f,initChapterId:v,historyApi:p,vkVideoLoader: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$:x,isSeekable$:y}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(y.subscribe(T=>{if(!this.isInited)return;let E=this.store;T?E.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):E.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(x.subscribe(T=>{this.store&&this.store.state.isInteractiveExpectation$.set(T)}));let C=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(T=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...T.config,title:(f==null?void 0:f.title)||T.config.title};let E=C?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(T.player,E),C&&(C=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:T,actionType:E})=>{var M,k,I,N,Y,D;if(!this.store||!this.microStoresRoot)return;let H=x.getValue();if(T==="action-choice"&&E==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Kl)),T==="action-choice-canceled"){let W=ye(this.store.state.isPlaying$)||H;if(((I=(M=this.videoConfig)==null?void 0:M.isTouch)!=null?I:(k=this.videoConfig)!=null&&k.isMobile)&&W){this.store.ui.interactiveHideMobileControls.set(!0);return}(D=(N=this.videoConfig)==null?void 0:(Y=N.callbacks).onDisabledInteractiveClick)==null||D.call(Y)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:T,removeAllOpenURI:E})=>{this.store&&T==="container-fake-removed"&&E&&this.store.ui.controls.disabledControls$.remove(Kl)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let T=this.interactiveController.getHistoryState();this.subscription.add(T.history$.subscribe(E=>{var M,k,I;E.length&&((I=(k=(M=this.videoConfig)==null?void 0:M.callbacks)==null?void 0:k.onInteractiveHistoryChanged)==null||I.call(k,E))}))}(l=(s=this.videoConfig)==null?void 0:s.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(T=>{var E,M,k;(k=(E=this.videoConfig)==null?void 0:(M=E.callbacks).onInteractiveChapterChanged)==null||k.call(M,T.chapter,T.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var T,E,M,k;(T=this.microStoresRoot)==null||T.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(k=(E=this.videoConfig)==null?void 0:(M=E.callbacks).onInteractiveTimeIndicatorClick)==null||k.call(M)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(T=>{this.log({message:T.toString()})}))}catch(d){this.log({message:d.message})}}initPlayer(e,i={}){var o,n,s,l,d,a,u,f,v,p,b,x,y,C,T,E,M,k,I,N,Y,D,H,W,ee,K;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=Dd(O5,E5(e,de=>de instanceof HTMLElement?de:void 0)),this.uiConfig=zg((o=i.ui)!=null?o:{}),this.coreConfig=(n=i.core)!=null?n:{configName:[]},this.statisticsConfig=(s=i.statistics)!=null?s:{},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:(l=this.uiConfig.sentry)!=null?l:{}},this.uiConfig.features.exposeInternalsToGlobal&&((d=this.internalsExposure)!=null||(this.internalsExposure=new M5("UI"))),Qd.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((a=this.videoConfig)==null?void 0:a.showAds)],numbers:[T5()]}),iv(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(f=(u=this.uiConfig.features.mediaSession)!=null?u:this.videoConfig.isMediaSessionEnabled)!=null?f:!0),iv(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(p=(v=this.uiConfig.features.pip)!=null?v:this.videoConfig.isPictureInPictureEnabled)!=null?p:!0,this.uiConfig.features.dpip=(x=(b=this.uiConfig.features.dpip)!=null?b:this.videoConfig.isPictureInPictureEnabled)!=null?x:!0),this.videoConfig.isTouch=(C=(y=this.uiConfig.isMobile)!=null?y:this.videoConfig.isTouch)!=null?C:this.videoConfig.isMobile,(T=this.videoConfig).autoplay&&(T.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(E=this.uiConfig.ads.enable)!=null?E:this.videoConfig.showAds,this.videoConfig.adsSlotId=(M=this.uiConfig.ads.slot)!=null?M:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(k=this.uiConfig.ads.preview)!=null?k:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((I=this.uiConfig.showLogo)!=null?I:!this.videoConfig.logoHidden),(N=this.videoConfig).canRewindLive&&(N.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(Y=this.videoConfig.supportLink)!=null?Y:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(D=this.uiConfig.features.endScreen)!=null?D:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(H=this.uiConfig.features.autoplayNext)!=null?H:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(W=this.uiConfig.features.nextPrevButtons)!=null?W:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((ee=this.videoConfig.videos)!=null&&ee[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=Cu.getLatestSupportedVersion(de):this.pictureInPictureApi=new la(de)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Su:void 0,this.slotsApi=this.uiConfig.features.slots?new $u:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Tu(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),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]),F1(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(K=this.slotsApi)==null||K.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new ku(this._shadowRoot):void 0}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();r(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)}isLiveTailPlaying(){var e;let i=(e=this.store)==null?void 0:e.getPlayer();if(!i)return!1;let{info:o}=i;return o.canPlayLiveTailBuffer$.getValue()&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),n=e||!o;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${o}`});let s=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};n&&s(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;n||s(),(l=this.store)==null||l.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let n=()=>{var s;(s=this.store)==null||s.actions.internal.setLiveWaitingRecord(!0)};o&&n(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var s;o||n(),(s=this.store)==null||s.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),n=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let s=()=>{var l,d;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!1),(d=this.store)==null||d.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(n){s();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=s)}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(e){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=ye(this.store.state.positionExact$),l=ye(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe(A5()).subscribe(()=>{l&&n>=l.time?this.seekTime(l.time):this.seekTime(n),e==null||e()});let d=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&(this.statistics.oneStat&&this.statistics.oneStat.updateContext(e),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}restoreFocus(){var e;(e=this.focusManager)==null||e.restoreFocus()}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}setAutoplayNext(e){var i;(i=this.store)==null||i.actions.internal.setAutoplayNextEnabled(e)}unmountComponent(e){e&&ta(e)}};import{InterfaceLanguage as xJ,VKNumericLanguage as wJ,loadVKLangPack as SJ}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as TJ,VideoFormat as EJ}from"@vkontakte/videoplayer-core/es2018";var mJ=()=>{window.customElements.define("vk-video-player",Pu)};export{lu as ControlButtonType,Jr as GridTypes,xJ as InterfaceLanguage,id as MenuItemType,vs as PlayerPhase,el as VERSION,wJ as VKNumericLanguage,EJ as VideoFormat,TJ as VideoQuality,SJ as loadVKLangPack,mJ as registerPlayerWebComponent};
390
+ /* \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 Zm(t,e){D(e,!0),z(t,o5);let[i,o]=Fe(),n=()=>C(Qt,"$isLive$",i),r=()=>C(Gt,"$availableSubtitlesList$",i),l=m(e,"sources",7),d=m(e,"store",7),a=m(e,"microStoresRoot",7),p=m(e,"videoConfig",7),f=m(e,"uiConfig",7),v=m(e,"title",7),u=m(e,"thumbUrl",7),$=m(e,"interactiveContainer",7),w=m(e,"interactiveController",7),y=m(e,"subtitles",7),S=m(e,"live",7),T=m(e,"preload",7),I=m(e,"autoplay",7),A=m(e,"volume",7,void 0),k=m(e,"muted",7,void 0),E=m(e,"fromTime",7),L=m(e,"canRewindLive",7),K=m(e,"showAds",7),U=m(e,"adsSlotId",7,void 0),W=m(e,"adsParams",7,void 0),G=m(e,"adsPreviewParam",7,void 0),te=m(e,"adsAutoplayParam",7,void 0),j=m(e,"duration",7,void 0),ae=m(e,"logoClickable",7),de=m(e,"logoHidden",7),we=m(e,"isMobile",7),Re=m(e,"showNextPrevButtons",7,!1),me=m(e,"nextButtonActive",7,!1),le=m(e,"prevButtonActive",7,!1),Ve=m(e,"endScreenVideoTitle",7,void 0),ee=m(e,"endScreenVideoThumb",7,void 0),N=m(e,"isOneVideoPlaylist",7,!1),Oe=m(e,"supportLink",7),_e=m(e,"shadowRootContainer",7),ve=m(e,"outerContainerRef",7),ce=m(e,"fullScreenTarget",7,void 0),ne=m(e,"failoverHosts",7,void 0),ye=m(e,"showMiniTimer",7,!1),Z=m(e,"saveRate",7),Ke=m(e,"seekToInteractive",7,K1),ue=m(e,"playPrevChapter",7,K1),ke=m(e,"volumeMultiplier",7),Ae=m(e,"showAutoplayNext",7),Te=m(e,"showEndScreen",7,!0),Qe=m(e,"keyboardControls",15,void 0),{subscribers:nt,stores:_t}=a();Yg(f());let $t=Ft(),St=f().logoLink,Ge=d().ui.debugPanelVisible,zt=d().ui.playerSize,Qt=d().state.isLive$,Bt=d().state.isInteractive&&jm.device.isAndroid,X=Y(void 0),At=null,fe=Y(!1);d().getAdmanWrapper().init({switchFromAdsToVideo:d().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:d().actions.internal.switchFromVideoToAds,setMuted:d().actions.external.setMuted},d().ads,{vsid:d().vsid}),rh(d(),_t),qe(()=>{var q,ut;d().ui.isMobile.set(we()),(ut=(q=p().callbacks)==null?void 0:q.onDomReady)==null||ut.call(q)});let be=(q=!1)=>{B(fe,!0),q?d().actions.external.firstStart(K()):d().actions.internal.firstStart(K())},re=()=>{if($t.features.qualityDetailsSubMenuEnabled){let q=Sh(d().videoId);if(q)switch(q.type){case"high_quality":d().actions.internal.setHighQualityEnabled(!0,q.appliesTo);break;case"traffic_saving":d().actions.internal.setTrafficSavingEnabled(!0,q.appliesTo);break;case"exact_quality":d().actions.internal.setQuality(q.quality);break}}else{Th(d().videoId),zp()&&d().actions.internal.setTrafficSavingEnabled(!0);let ut=Dp(d().videoId);ut&&d().actions.internal.setQuality(ut)}};function De(q){var it,ot,fi;let ut=l()||q;ut&&d().initVideo({container:s(X),sources:ut,failoverHosts:ne(),subtitles:y(),volumeMultiplier:ke()});let pi=Jx.get(Wl)==="true";Ge.set(pi),E()>0&&d().actions.external.seekTime(E());let Ii=we()?$t.volumeDefault:(ot=(it=A())!=null?it:Rc())!=null?ot:$t.volumeDefault,ft=(fi=k())!=null?fi:bh();if(d().actions.external.setVolume(Ii),d().actions.external.setMuted(ft),d().getAdmanWrapper().setInitialVolume(ft?0:Ii),re(),$t.features.saveRate&&Z()){let Ot=xh();Ot&&!n()&&d().actions.internal.setPlaybackRate(Ot)}if(Ae()){let Ot=Ch();Ot&&d().actions.internal.setAutoplayNextEnabled(Ot)}d().ui.isAutoplay.set(I()),I()?be():T()&&$t.features.preload&&d().actions.internal.preload()}let We=q=>{if(window.ResizeObserver){let ut,pi;At=new ResizeObserver(e5(Ii=>{let ft=Ii[0];if(ft.contentBoxSize){let it=Array.isArray(ft.contentBoxSize)?ft.contentBoxSize[0]:ft.contentBoxSize;ut=it.inlineSize,pi=it.blockSize}else ft.contentRect&&(ut=ft.contentRect.width,pi=ft.contentRect.height);zt.set({width:ut,height:pi})},300)),At.observe(q)}zt.set({width:q.clientWidth,height:q.clientHeight})},Me=()=>{document.hidden&&d().actions.external.stop()};Nt(()=>{var pi,Ii,ft,it;Bt&&document.addEventListener("visibilitychange",Me),$t.debugLog&&d().actions.internal.startLogging(),We(s(X));let q=nt.map(ot=>ot.init({store:d(),microStores:_t,config:p(),interactiveController:w(),uiConfig:f()})),ut=()=>{Bt&&document.removeEventListener("visibilitychange",Me),At==null||At.disconnect(),q.forEach(ot=>ot.unsubscribe()),d().destroy()};return((pi=S())==null?void 0:pi.status)==="upcoming"?(d().actions.internal.setLiveWaitingStart(!0),ut):((Ii=S())==null?void 0:Ii.status)==="waiting"?(d().actions.internal.setLiveWaitingRecover(!0),ut):(((ft=S())==null?void 0:ft.status)==="finished"||((it=S())==null?void 0:it.status)==="postlive")&&!(l()&&Xx(l()))?(d().actions.internal.setLiveWaitingRecord(!0),ut):(De(),ut)});function Ze(){s(fe)?d().actions.external.play():be(!0)}function Ne(){d().actions.external.pause()}function et(q){d().actions.external.setMuted(q)}function kt(){d().actions.external.toggleSubtitle()}function Mt(){var q;(q=d().webApi.slotsApi)!=null&&q.haveSlots()&&d().actions.external.hideControls()}function Xe(){var q;(q=d().webApi.slotsApi)!=null&&q.haveSlots()&&d().actions.external.showControls()}function oi(q){we()||q>=0&&q<=1&&d().actions.external.setVolume(q)}function ui(q){d().actions.internal.seekTime(q,t5.UNKNOWN)}function lt(q){d().actions.external.seekEpisodeStartTime(q)}function Xt(){d().actions.external.returnFocusToEpisodes()}function Jt(q){d().actions.external.setPlaybackRate(q)}function li(q){d().actions.external.setAutoQualityLimits(q)}let Qi=wu($t.view),di=p().playerView==="preview",Gt=d().state.availableSubtitlesList$;if($t.features.initSubtitles){let q=!1;qe(()=>{if(!q&&r().length){q=!0;let ut=qp();if(ut){let pi=r().find(Ii=>Ii.language===ut);d().actions.internal.setSubtitle(pi)}}})}var Ti=i5();let Lo;var Rt=_(Ti);{var bt=q=>{Gm(q,{get store(){return d()},get uiConfig(){return $t},get thumbUrl(){return u()},get interactiveContainer(){return $()},get live(){return S()},get autoplay(){return I()},get canRewindLive(){return L()},get showAds(){return K()},get adsSlotId(){return U()},get adsParams(){return W()},get adsPreviewParam(){return G()},get adsAutoplayParam(){return te()},get duration(){return j()},get logoClickable(){return ae()},get logoHidden(){return de()},get logoTargetUrl(){return St},get nextButtonActive(){return me()},get prevButtonActive(){return le()},get endScreenVideoTitle(){return Ve()},get endScreenVideoThumb(){return ee()},get isOneVideoPlaylist(){return N()},get supportLink(){return Oe()},get shadowRootContainer(){return _e()},get outerContainerRef(){return ve()},get fullScreenTarget(){return ce()},get showMiniTimer(){return ye()},get playerStarted(){return s(fe)},get seekToInteractive(){return Ke()},get playPrevChapter(){return ue()},firstStart:be,seekTime:ui,get showEndScreen(){return Te()},get showAutoplayNext(){return Ae()},get showNextPrevButtons(){return Re()},get videoContainer(){return s(X)},set videoContainer(ut){B(X,ut,!0)}})},Ei=q=>{var ut=ze(),pi=pe(ut);{var Ii=it=>{Ym(it,{get thumbUrl(){return u()},get outsideDuration(){return j()},get canRewindLive(){return L()},get videoContainer(){return s(X)},set videoContainer(ot){B(X,ot,!0)}})},ft=it=>{Km(it,{get store(){return d()},get uiConfig(){return $t},get title(){return v()},get thumbUrl(){return u()},get interactiveContainer(){return $()},get live(){return S()},get autoplay(){return I()},get canRewindLive(){return L()},get showAds(){return K()},get adsSlotId(){return U()},get adsParams(){return W()},get adsPreviewParam(){return G()},get adsAutoplayParam(){return te()},get duration(){return j()},get logoClickable(){return ae()},get logoHidden(){return de()},get logoTargetUrl(){return St},get nextButtonActive(){return me()},get prevButtonActive(){return le()},get endScreenVideoTitle(){return Ve()},get endScreenVideoThumb(){return ee()},get isOneVideoPlaylist(){return N()},get supportLink(){return Oe()},get shadowRootContainer(){return _e()},get outerContainerRef(){return ve()},get fullScreenTarget(){return ce()},get showMiniTimer(){return ye()},get playerStarted(){return s(fe)},get seekToInteractive(){return Ke()},get playPrevChapter(){return ue()},firstStart:be,get showEndScreen(){return Te()},get showAutoplayNext(){return Ae()},get showNextPrevButtons(){return Re()},get videoContainer(){return s(X)},set videoContainer(ot){B(X,ot,!0)},get keyboardControls(){return Qe()},set keyboardControls(ot){Qe(ot)}})};R(pi,it=>{di?it(Ii):it(ft,!1)})}b(q,ut)};R(Rt,q=>{we()?q(bt):q(Ei,!1)})}g(Ti),O(q=>{Lo=J(Ti,1,"root svelte-oba660",null,Lo,q),at(Ti,Qi)},[()=>({"root--miui-browser":jm.device.isMobile&&jm.browser.isMiuiBrowser,"visible-outside":di})]),b(t,Ti);var Vo=H({initVideo:De,play:Ze,pause:Ne,setMuted:et,toggleSubtitle:kt,hideControls:Mt,showControls:Xe,setVolume:oi,seekTime:ui,seekEpisodeStartTime:lt,returnFocusToEpisodes:Xt,setPlaybackRate:Jt,setAutoQualityLimits:li,get sources(){return l()},set sources(q){l(q)},get store(){return d()},set store(q){d(q)},get microStoresRoot(){return a()},set microStoresRoot(q){a(q)},get videoConfig(){return p()},set videoConfig(q){p(q)},get uiConfig(){return f()},set uiConfig(q){f(q)},get title(){return v()},set title(q){v(q)},get thumbUrl(){return u()},set thumbUrl(q){u(q)},get interactiveContainer(){return $()},set interactiveContainer(q){$(q)},get interactiveController(){return w()},set interactiveController(q){w(q)},get subtitles(){return y()},set subtitles(q){y(q)},get live(){return S()},set live(q){S(q)},get preload(){return T()},set preload(q){T(q)},get autoplay(){return I()},set autoplay(q){I(q)},get volume(){return A()},set volume(q){A(q)},get muted(){return k()},set muted(q){k(q)},get fromTime(){return E()},set fromTime(q){E(q)},get canRewindLive(){return L()},set canRewindLive(q){L(q)},get showAds(){return K()},set showAds(q){K(q)},get adsSlotId(){return U()},set adsSlotId(q){U(q)},get adsParams(){return W()},set adsParams(q){W(q)},get adsPreviewParam(){return G()},set adsPreviewParam(q){G(q)},get adsAutoplayParam(){return te()},set adsAutoplayParam(q){te(q)},get duration(){return j()},set duration(q){j(q)},get logoClickable(){return ae()},set logoClickable(q){ae(q)},get logoHidden(){return de()},set logoHidden(q){de(q)},get isMobile(){return we()},set isMobile(q){we(q)},get showNextPrevButtons(){return Re()},set showNextPrevButtons(q){Re(q)},get nextButtonActive(){return me()},set nextButtonActive(q){me(q)},get prevButtonActive(){return le()},set prevButtonActive(q){le(q)},get endScreenVideoTitle(){return Ve()},set endScreenVideoTitle(q){Ve(q)},get endScreenVideoThumb(){return ee()},set endScreenVideoThumb(q){ee(q)},get isOneVideoPlaylist(){return N()},set isOneVideoPlaylist(q){N(q)},get supportLink(){return Oe()},set supportLink(q){Oe(q)},get shadowRootContainer(){return _e()},set shadowRootContainer(q){_e(q)},get outerContainerRef(){return ve()},set outerContainerRef(q){ve(q)},get fullScreenTarget(){return ce()},set fullScreenTarget(q){ce(q)},get failoverHosts(){return ne()},set failoverHosts(q){ne(q)},get showMiniTimer(){return ye()},set showMiniTimer(q){ye(q)},get saveRate(){return Z()},set saveRate(q){Z(q)},get showAutoplayNext(){return Ae()},set showAutoplayNext(q){Ae(q)},get seekToInteractive(){return Ke()},set seekToInteractive(q){Ke(q)},get playPrevChapter(){return ue()},set playPrevChapter(q){ue(q)},get volumeMultiplier(){return ke()},set volumeMultiplier(q){ke(q)},get showEndScreen(){return Te()},set showEndScreen(q){Te(q)},get keyboardControls(){return Qe()},set keyboardControls(q){Qe(q)}});return o(),Vo}var n5=Se('<svg><!><path fill="currentColor" d="M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"></path></svg>');function Xm(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=n5();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}function Jm(t,e){let i=m(e,"isWhite",3,!1),o=h(()=>i()?"color: #fff;":"color: #909499;");Xm(t,{get style(){return s(o)}})}var r5=M('<div class="title svelte-1y9fytq"> </div>'),s5=M('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),a5={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 ev(t,e){z(t,a5);var i=s5(),o=_(i);{var n=d=>{var a=r5(),p=_(a,!0);g(a),O(()=>he(p,e.title)),b(d,a)};R(o,d=>{e.title&&d(n)})}var r=P(o,2);{var l=d=>{let a=h(()=>!!e.thumbUrl);Jm(d,{get isWhite(){return s(a)}})};R(r,d=>{(!e.title||!e.thumbUrl)&&d(l)})}g(i),O(()=>at(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}var l5=M('<div class="playerError svelte-m5iv29"><!></div>'),d5={hash:"svelte-m5iv29",code:".playerError.svelte-m5iv29 {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}"};function tv(t){z(t,d5);var e=l5(),i=_(e);$a(i,{}),g(e),b(t,e)}import{now as R5,ValueSubject as N5}from"@vkontakte/videoplayer-shared/es2018";import{cloneDeepWith as B5,InterfaceLanguage as O5,isNonNullable as av,Logger as D5,Observable as H5,Subscription as e0,once as F5,InternalsExposure as U5,skip as z5}from"@vkontakte/videoplayer-shared/es2018";import{clientChecker as t0,isMobile as W5}from"@vkontakte/videoplayer-core/es2018";import{OneStat as q5,ThinOneStat as K5,MediascopePixel as Q5}from"@vkontakte/videoplayer-statistics/es2018";import{Logger as c5,Subscription as u5}from"@vkontakte/videoplayer-shared/es2018";var Cu=class{constructor(){this.subscription=new u5,this.logger=new c5,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,r]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,r)}catch(l){throw new Error(`The media session action "${n}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var r,l;let o=$e(e.state.currentPlaybackRate$),n=$e(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(l=(r=navigator.mediaSession).setPositionState)==null||l.call(r,{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 nv,detectEmbed as h5}from"@vkontakte/videoplayer-shared/es2018";var p5=Se('<svg><!><g fill="var(--btn-color, #fff)"><path d="m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"></path><path d="M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"></path></g></svg>');function iv(t,e){let i=Le(e,["$$slots","$$events","$$legacy","children"]);var o=p5();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img",...i}));var n=_(o);ge(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var f5=M('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),m5={hash:"svelte-1pbsod4",code:".player-pip-dummy.svelte-1pbsod4 {width:100%;height:100%;background-color:#19191A;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.player-pip-dummy.is-pip-api.svelte-1pbsod4 {position:relative;}.dummy-image.svelte-1pbsod4 svg {transform:scale(1.07143);}.dummy-image.desktop.svelte-1pbsod4 {transform:scale(1.07143) rotate(-90deg) rotateY(180deg);}.title.svelte-1pbsod4 {font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center;}"};function ov(t,e){D(e,!0),z(t,m5);let[i,o]=Fe(),n=()=>C(p,"$interfaceLanguage$",i),r=()=>C(f,"$isMobile$",i),l=Ee(),d=Ft(),a=!!l.webApi.pictureInPictureApi,p=l.interfaceLanguage$,f=l.ui.isMobile,v=l.ui.t,u=h(()=>n()&&v("pip_dummy_title")),$=wu(d.view);var w=f5();let y;var S=_(w);let T;var I=_(S);iv(I,{}),g(S);var A=P(S,2),k=_(A,!0);g(A),g(w),O((E,L)=>{y=J(w,1,"player-pip-dummy svelte-1pbsod4",null,y,E),at(w,$),T=J(S,1,"dummy-image svelte-1pbsod4",null,T,L),he(k,s(u))},[()=>({"is-pip-api":a}),()=>({desktop:!r()})]),b(t,w),H(),o()}var v5=Object.defineProperty,g5=(t,e,i)=>e in t?v5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,fl=(t,e,i)=>g5(t,typeof e!="symbol"?e+"":e,i),_5=460,b5=280,Od=class{constructor({enabled:e=!0}={enabled:!0}){fl(this,"playerDomElement"),fl(this,"playerParentShadowRoot"),fl(this,"playerDummyElement"),fl(this,"svelteContext"),fl(this,"pipWindow"),fl(this,"info",{isActive$:new nv(!1),isEnabled$:new nv(!1),type:1}),this.info.isEnabled$=new nv(e)}isSupported(){let{isEmbed:e}=h5();return"documentPictureInPicture"in window&&!e}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}async request(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:_5,height:b5,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(p=>p.cssText).join(" ")).filter(Boolean).join(`
391
+ `),n=document.createElement("style");n.textContent=o;let r=this.createStretchedContainer(),l=r.attachShadow({mode:"open"});l.append(n),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=jr(ov,d),(e=this.pipWindow)==null||e.document.body.append(r),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(Xs(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})}async exit(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})}async dispose(){await this.exit()}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function Q1(t){return t instanceof Od}var Su=class{static getLatestSupportedVersion(e){let i=new ra(e),o=new Od(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Dd(t,e){var n,r;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(r=(n=e[l])!=null?n:t[l])!=null?r:void 0;return o}var G1="Inner error. Unexpectedly root annotation container null reference exception",Y1="Annotation with such name already exists",j1="Annotation with such name does not exist";var ml=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as $5,Subscription as y5,throttleFn as x5}from"@vkontakte/videoplayer-shared/es2018";var w5="1",C5=100,Tu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new y5}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=x5(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},C5);this.subscriptions.add($5(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 ml(G1);if(this.annotations.has(e))throw new ml(Y1);i.style.zIndex=(o=i.style.zIndex)!=null?o:w5,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 ml(j1);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,r=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return n<0||r<0||r+l>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as Eu,Subscription as S5}from"@vkontakte/videoplayer-shared/es2018";var Qo=class{init({store:e,microStores:i,interactiveController:o,config:n}){return Eu(e),Eu(i),Eu(n),n.interactiveData&&Eu(o),this.subscription=new S5,this.subscription}};var Hd=class extends Qo{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...se(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(r=>{this.state$.set(r?!0:null)})),o}};var Fd=class extends Qo{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...se(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:n,store:r}=i,{fakeIsPlaying$:l}=n,{isInteractiveExpectation$:d,isPlaying$:a}=r.state,{controlsVisible:p,isMobile:f}=r.ui,v=$e(f),u=()=>v&&$e(p);return o.add(p.subscribe($=>{if(!v)return;let w=$e(l);$e(a)?this.state$.set($):w!==null&&this.state$.set(!w||$)})),o.add(a.subscribe($=>{this.state$.set(!$||u())})),o.add(l.subscribe($=>{if($===null)return;let w=$e(d);if(u()){this.state$.set(!0);return}w&&this.state$.set(!$)})),o}};var Ud=class extends Qo{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=se("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(r=>{r.length&&(r.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};import{combine as T5}from"@vkontakte/videoplayer-shared/es2018";var rv=se(!1),Iu=null,zd=class extends Qo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...rv,set:(i,o=!1)=>{i!==$e(rv)&&(this.clearTimeout(),rv.set(i),!i&&Iu&&(Iu=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:n,config:r}=i,{isInteractiveTime$:l,isPlaying$:d}=n.state,a=n.ui.controlsVisible,{interactiveTimeIndicator:p}=n.ui.controls;o.add(a.subscribe(v=>{$e(l)&&v&&this.state$.set(!1)}));let f=(r==null?void 0:r.interactiveData)||{tooltipHelpHintActive:!1};return o.add(T5({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:p}).subscribe(({isPlaying$:v,isInteractiveTime$:u,interactiveTimeIndicator:$})=>{var w,y;if(!(!v||!($!=null&&$.isDisplayed))){if(!u)return this.state$.set(!1);f.tooltipHelpHintActive&&Iu===null&&(Iu=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(y=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||y.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as E5,noop as I5}from"@vkontakte/videoplayer-shared/es2018";var Wd=class extends Qo{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...se(null),toggle:I5};this.checkIfShouldHide=i=>Ls(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:r}=i,l=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide($e(l)))return;let a=$e(this.state$),{isEnded$:p,playbackState$:f}=n.state,{disabledControls$:v}=n.ui.controls,u=$e(p),$=$e(f);if(a)try{await(r==null?void 0:r.toggleGraphView(!1)),this.state$.set(!1),v.remove(Ap),!u&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=$==="playing";try{await(r==null?void 0:r.toggleGraphView(!0)),this.state$.set(!0),v.add(Ap),!u&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add(E5({graphIsOpened:this.state$,currentGridType:l}).subscribe(async({graphIsOpened:a,currentGridType:p})=>{if(this.checkIfShouldHide(p)&&a)try{await(r==null?void 0:r.toggleGraphView(!1)),this.state$.set(!1)}catch(v){d({message:"Cant hide graph"})}})),o}};import{ValueSubject as Z1}from"@vkontakte/videoplayer-shared/es2018";var qd=class extends Qo{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:se(!1),isEnabled$:se(!1),type$:se(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:r,isEnabled$:l,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new Z1(!1),isEnabled$:new Z1(!1)}};return o.add(r.subscribe(a=>{this.state$.isActive$.set(a)})),o.add(l.subscribe(a=>{this.state$.isEnabled$.set(a)})),this.state$.type$.set(d),o}};import{filter as A5,filterChanged as M5}from"@vkontakte/videoplayer-shared/es2018";import{safeStorage as sv}from"@vkontakte/videoplayer-shared/es2018";var X1=({maxShowCount:t,timeout:e})=>{let i=[t!==0?k5({maxCount:t}):void 0,e!==0?P5({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},k5=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,sv.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}}},P5=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(sv.get(e)||"{}")}catch(r){return{}}},o=r=>sv.set(e,JSON.stringify(r)),n=r=>{let l=i();delete l[r],o(l)};return{notificationShowed:r=>{o({...i(),[r]:{timeout:t,launchTime:Date.now()}})},canShowNotification:r=>{let l=i()[r];if(l){let d=Date.now()-l.launchTime>t;return d&&n(r),d}else return!0}}};var Kd=class extends Qo{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:se({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:r,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:a}}}=i;this.notificationManager=X1({maxShowCount:r,timeout:l});let p=n.getPlayer();return o.add(p.events.severeStallOccured$.pipe(M5(),A5(f=>f)).subscribe(()=>{d&&!p.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(a&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var J1=()=>[Hd,Fd,Ud,zd,Wd,qd,Kd].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 Qd}from"@vkontakte/videoplayer-shared/es2018";var ku=class{constructor(e){this.shadowRoot=e;this.lastFocusedNode=null;this.init=()=>{this.shadowRoot.addEventListener("focusin",this.handleFocusChange)};this.handleFocusChange=()=>{this.lastFocusedNode=this.shadowRoot.activeElement};this.restoreFocus=()=>{var e;(e=this.lastFocusedNode)==null||e.focus()};this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange)}};var L5=Object.defineProperty,V5=(t,e,i)=>e in t?L5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Kt=(t,e,i)=>V5(t,typeof e!="symbol"?e+"":e,i),G5={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:O5.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:W5(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Pn=Y(void 0),Pu=class extends HTMLElement{constructor(){super(),Kt(this,"svelteStubComponent"),Kt(this,"svelteRootComponent"),Kt(this,"svelteErrorComponent"),Kt(this,"store"),Kt(this,"microStoresRoot"),Kt(this,"statistics"),Kt(this,"sentry"),Kt(this,"_shadowRoot"),Kt(this,"playerContainer"),Kt(this,"rootContainer"),Kt(this,"shadowRootContainer"),Kt(this,"uiConfig"),Kt(this,"coreConfig"),Kt(this,"statisticsConfig"),Kt(this,"interactiveController"),Kt(this,"interactiveContainer"),Kt(this,"graphMadePause"),Kt(this,"currentPlayingVideoIndex",0),Kt(this,"needToRepeatPlaylist",!1),Kt(this,"videoConfig"),Kt(this,"pictureInPictureApi"),Kt(this,"mediaSessionApi"),Kt(this,"unsubscribePlayerPhaseSubscription"),Kt(this,"logger"),Kt(this,"log"),Kt(this,"subscription"),Kt(this,"interactiveSubscription"),Kt(this,"annotationsApi"),Kt(this,"slotsApi"),Kt(this,"focusManager"),Kt(this,"prevIsid"),Kt(this,"isInited",!1),Kt(this,"internalsExposure",null),Kt(this,"shadowDOMCallbacksDisabled",!1),Kt(this,"fatalError$",new N5(null)),Kt(this,"createOneStat",(e,i={})=>{var o,n,r,l;if(!this.videoConfig)return;let{albumId:d,statPlace:a,statUserSalt:p,statTrackCode:f,statVKAppId:v,refreshStatAuthToken:u,autoplay:$,isMobile:w,isTouch:y,refDomain:S,deviceId:T,interactiveData:I}=Dd(this.videoConfig,i),A=(o=I==null?void 0:I.projectInfo)==null?void 0:o.pid,k=(r=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?r:!1;k&&(this.prevIsid=void 0);let{unitedVideoId:E,isClip:L=!1}=e;if(this.uiConfig.features.statistics&&E)try{return new q5({movieId:E,albumId:d,place:a,trackCode:f,vkAppId:v,autoplay:(l=$&&!this.interactiveController)!=null?l:!1,mobile:y!=null?y:w,clip:L,refDomain:S,deviceId:T,...A&&(!this.isInited||k)&&{projectId:Number(A)}},{refreshAuthToken:u,userSalt:p,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}catch(U){console.error(U),this.log({message:U.message})}}),Qd.create("ui"),this.logger=new D5,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new e0,this.interactiveSubscription=new e0,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=jr(tv,{target:this.playerContainer}))})}connectedCallback(){var e,i;if(this.rootContainer)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,n=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,r=ti({title:o,thumbUrl:n}),l={target:this.playerContainer,props:r};this.svelteStubComponent=jr(ev,l)}disconnectedCallback(){var e,i,o,n,r,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(n=this.mediaSessionApi)==null||n.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),this.subscription.unsubscribe(),(r=this.unsubscribePlayerPhaseSubscription)==null||r.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),Qd.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:n,refreshStatAuthToken:r}=Dd(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new K5.ThinOneStat({deviceId:o,movieId:l,preload:n},{config:this.statisticsConfig,refreshAuthToken:r})}createPlayer(e,i={},o){var n,r,l,d,a,p,f,v,u,$;if(!this.videoConfig)return;let{albumId:w,statPlace:y,statAuthToken:S,preload:T,autoplay:I,volume:A,muted:k,fromTime:E,canRewindLive:L,supportLink:K,showAds:U,adsSlotId:W,adsParams:G={},adsPreviewParam:te,adsAutoplayParam:j,interfaceLanguage:ae,isCyrillicRelatedInterface:de,logoClickable:we,logoHidden:Re,isMobile:me,isTouch:le,isAudioDisabled:Ve,isLiveCatchUpMode:ee,fullScreenTarget:N,failoverHosts:Oe,canDownload:_e,callbacks:ve,interactiveData:ce,showThumbTimer:ne,additionalButtons:ye=[],additionalSettingsMenuItems:Z=[],additionalContextMenuItems:Ke=[],repeat:ue,saveRate:ke,volumeMultiplier:Ae,showEndScreen:Te,showAutoplayNext:Qe,mediascopePixels:nt}=Dd(this.videoConfig,i),{sources:_t,title:$t,thumbUrl:St,unitedVideoId:Ge,isClip:zt=!1,duration:Qt,adsParams:Wt={},videoEpisodes:Bt,previewThumbsData:X,subtitles:At,live:fe}=e;if(!_t&&!fe){let Jt=new Error("empty sources and live");this.fatalError$.next(Jt),(n=ve.onCrashed)==null||n.call(ve,Jt.message);return}let be={...G,...Wt},re=this.getNextVideoInfo(),De={sources:_t,title:$t,thumbUrl:St,subtitles:At,unitedVideoId:Ge,isClip:zt,live:fe,albumId:w,statPlace:y,autoplay:I,muted:k,volume:A,fromTime:E,canRewindLive:L,showAds:U,adsSlotId:W,adsParams:be,adsPreviewParam:te,adsAutoplayParam:j,duration:Qt,logoClickable:we,logoHidden:Re,isTouch:le!=null?le:me,repeat:ue,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:re.nextVideoTitle,endScreenVideoThumb:re.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},We={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(De)}`});let Me=(r=this.interactiveController)==null?void 0:r.state.statistics$.getValue(),Ze=(Me==null?void 0:Me.oneStat)||this.createOneStat(e,i),Ne=this.createThinOneStat(e,i),et;nt&&(et=new Q5({pixels:nt})),(Ze||Ne)&&(this.statistics=new au(Ze,Ne,et,Me==null?void 0:Me.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new na(this.uiConfig.sentry,{version:el,env:Mc},{movieId:Ge,albumId:w,place:y,autoplay:(l=I&&!this.interactiveController)!=null?l:!1,mobile:le!=null?le:me,clip:zt}),this.interactiveController&&((p=this.prevIsid)!=null||(this.prevIsid=(a=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:a.isid$.getValue())),this.sentry={...this.sentry,...na.getInstance()};let Mt=!!ce,Xe=[],oi="tooltip_interactive_go_back_disabled_first";if(Mt&&this.interactiveController){let Jt=this.interactiveController.state.isInitialChapter$.getValue(),li=this.interactiveController.getHistoryState();Jt&&Xe.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Xe.push("SEEK_TO_INTERACTIVE_BUTTON"),li.hasPrevChapter$.getValue()||(Xe.push("PLAY_PREV_CHAPTER_BUTTON"),Jt||(li.isGoBackLimited$.getValue()?oi="tooltip_interactive_go_back_disabled_limit":oi="tooltip_interactive_go_back_disabled"))}let ui=()=>{var Jt;this.isInited=!1,this.prevIsid=void 0;let li=(o==null?void 0:o.info.isEnded$.getValue())&&((Jt=this.interactiveController)==null?void 0:Jt.state.isEndChapter$.getValue());ve.onReplayInteractiveVideo&&!li?ve.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=m1({player:o,interfaceLanguage:ae,isCyrillicRelatedInterface:de,videoId:Ge,isClip:zt,isLiveCatchUpMode:ee,isAudioDisabled:Ve,statAuthToken:S,callbacks:ve,webApi:We,videoEpisodes:Bt,previewThumbsData:X,canDownload:_e,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Xe,isInteractive:Mt,saveRate:ke,interactiveRanges$:(f=this.interactiveController)==null?void 0:f.state.interactiveRanges$,isInteractiveTime$:(v=this.interactiveController)==null?void 0:v.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:ui,playPrevChapterDisabledTooltip:oi,hasInteractiveBranches:!!(($=(u=this.interactiveController)==null?void 0:u.getChapterBranches())!=null&&$.length),additionalButtons:this.uiConfig.features.additionalButtons?ye:[],additionalSettingsMenuItems:Z!=null?Z:[],additionalContextMenuItems:Ke!=null?Ke:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:ue&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:lt}=this.microStoresRoot=J1(),Xt=()=>{var Jt,li,Qi,di,Gt,Ti;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Rt=>{var bt;return(bt=ve==null?void 0:ve.onCurrentFormatChanged)==null?void 0:bt.call(ve,Rt)})),this.subscription.add(lt.interactiveControlsOpacity$.subscribe(Rt=>{var bt;Rt!==null&&((bt=this==null?void 0:this.interactiveController)==null||bt.setDisabledControls(Rt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Rt=>{var bt;return(bt=ve==null?void 0:ve.onThroughputEstimationChanged)==null?void 0:bt.call(ve,Rt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Rt=>{var bt;return(bt=ve==null?void 0:ve.onTrafficSavingEnabledChanged)==null?void 0:bt.call(ve,Rt)})),this.subscription.add(new H5(Rt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(bt=>Rt.next(bt)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?z5(1):Rt=>Rt).subscribe(Rt=>{var bt;return(bt=ve==null?void 0:ve.onCurrentPlaybackRateChanged)==null?void 0:bt.call(ve,Rt)})),this.subscription.add(this.store.state.volume$.subscribe(Rt=>{var bt;return(bt=ve==null?void 0:ve.onVolumeChange)==null?void 0:bt.call(ve,Rt)})),this.subscription.add(this.store.state.muted$.subscribe(Rt=>{var bt,Ei,Vo,q;if(Rt)(bt=ve==null?void 0:ve.onMute)==null||bt.call(ve);else{let ut=(Vo=((Ei=this.store)==null?void 0:Ei.state.volume$)&&$e(this.store.state.volume$))!=null?Vo:0;(q=ve==null?void 0:ve.onUnmute)==null||q.call(ve,ut)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Rt=>{var bt;return(bt=ve==null?void 0:ve.onVideoBitrateChanged)==null?void 0:bt.call(ve,Rt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Rt=>{var bt;let Ei=(bt=this.store)==null?void 0:bt.ui.controls.disabledControls$;Ei&&(Rt&&!Ei.includes(ql)&&Ei.add(ql),Rt||Ei.remove(ql))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async Rt=>{var bt;if(!t0.browser.isSamsungBrowser||!Rt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((bt=this.videoConfig)==null?void 0:bt.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Rt=>{var bt;return(bt=ve==null?void 0:ve.onVSIDChanged)==null?void 0:bt.call(ve,Rt)})),this.initMediaSession(),B(Pn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:_t,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:$t,thumbUrl:St,subtitles:At,live:fe,preload:T,autoplay:I,muted:k,volume:A,fromTime:E,canRewindLive:L,supportLink:K,showAds:U,adsSlotId:W,adsParams:be,adsPreviewParam:te,adsAutoplayParam:j,duration:Qt,logoClickable:we,logoHidden:Re,isMobile:le!=null?le:me,failoverHosts:Oe,fullScreenTarget:N,saveRate:ke,shadowRootContainer:this.shadowRootContainer,showMiniTimer:ne,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:re.nextVideoTitle,endScreenVideoThumb:re.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Ae,showEndScreen:Te,showAutoplayNext:Qe},!0);let Lo={target:this.playerContainer,props:s(Pn)};this.svelteRootComponent=jr(Zm,Lo),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Qi=(li=(Jt=this.videoConfig)==null?void 0:Jt.callbacks)==null?void 0:li.onInited)==null||Qi.call(li)),(di=this.internalsExposure)==null||di.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Ti=(Gt=this.videoConfig)==null?void 0:Gt.callbacks)!=null&&Ti.onDevNullLog)?Qd.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Qd.destroy("ui")};this.coreConfig.asyncResolveClientChecker?t0.isInited$.subscribe(Jt=>{Jt&&(console.log("UI SDK async start"),Xt())}):Xt()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,n=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!n)return;let r=(i=this.videoConfig)==null?void 0:i.callbacks;r&&this.subscription.add(o.playerPhase.subscribe(d=>{var a;return(a=r.onPlayerPhaseChanged)==null?void 0:a.call(r,d)})).add(o.state.playbackState$.subscribe(d=>{var a;return d&&((a=r.onPlaybackStateChanged)==null?void 0:a.call(r,d))})).add(o.state.isLive$.subscribe(d=>{var a;return(a=r.onIsLiveChanged)==null?void 0:a.call(r,d)})).add(o.state.isActiveLive$.subscribe(d=>{var a;return(a=r.onIsActiveLiveChanged)==null?void 0:a.call(r,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var a;return(a=r.onIsAudioAvailableChanged)==null?void 0:a.call(r,d)})).add(o.state.currentQuality$.subscribe(d=>{var a;return(a=r.onCurrentQualityChanged)==null?void 0:a.call(r,d)})).add(o.state.availableQualities$.subscribe(d=>{var a;return(a=r.onAvailableQualitiesChanged)==null?void 0:a.call(r,d.map(({value:p})=>p).filter(p=>p!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&r.onAudioLanguagesAvailable&&r.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var a,p;return d?(a=r.onPiPEnter)==null?void 0:a.call(r):(p=r.onPiPExit)==null?void 0:p.call(r)}));let l=r==null?void 0:r.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var a;return(a=l.onControlsVisibleChanged)==null?void 0:a.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var a;return(a=l.onIsMobileChanged)==null?void 0:a.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var a;return(a=l.onPlayerSizeChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var a;return(a=l.onPrevButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var a;return(a=l.onPlayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var a;return(a=l.onReplayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var a;return(a=l.onNextButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var a;return(a=l.onPlayPrevChapterChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var a;return(a=l.onSeekToInteractiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var a;return(a=l.onGraphButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var a;return(a=l.onLiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var a;return(a=l.onTimeUpdateChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var a;return(a=l.onEpisodesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var a;return(a=l.onSubtitlesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var a;return(a=l.onTopLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var a;return(a=l.onTopRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var a;return(a=l.onBottomLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var a;return(a=l.onBottomRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var a;return(a=l.onMiddleControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var a;return(a=l.onBottomControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var a;return(a=l.onTitleChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var a;return(a=l.onSettingsChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var a;return(a=l.onFullscreenChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var a;return(a=l.onChromecastChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var a;return(a=l.onPipChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var a;return(a=l.onVkLogoChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var a;return(a=l.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var a;return(a=l.onTimelineChanged)==null?void 0:a.call(l,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let n=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!n){this.log({message:"no next video"});return}this.isInited&&av(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,r,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=await import("@vkontakte/videoplayer-interactive/es2018");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let a=(i=this.store)==null?void 0:i.interfaceLanguage$,p=a?$e(a):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:v,historyApi:u,videoLoader:$}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:p,graph:this.uiConfig.features.interactiveGraph,projectInfo:f,initChapterId:v,historyApi:u,vkVideoLoader:$,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation},endChapterHistoryFix:this.uiConfig.features.interactiveHistoryEndChapterFix});let{isInteractiveExpectation$:w,isSeekable$:y}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(y.subscribe(T=>{if(!this.isInited)return;let I=this.store;T?I.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):I.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(w.subscribe(T=>{this.store&&this.store.state.isInteractiveExpectation$.set(T)}));let S=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(T=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...T.config,title:(f==null?void 0:f.title)||T.config.title};let I=S?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(T.player,I),S&&(S=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:T,actionType:I})=>{var A,k,E,L,K,U;if(!this.store||!this.microStoresRoot)return;let W=w.getValue();if(T==="action-choice"&&I==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Kl)),T==="action-choice-canceled"){let G=$e(this.store.state.isPlaying$)||W;if(((E=(A=this.videoConfig)==null?void 0:A.isTouch)!=null?E:(k=this.videoConfig)!=null&&k.isMobile)&&G){this.store.ui.interactiveHideMobileControls.set(!0);return}(U=(L=this.videoConfig)==null?void 0:(K=L.callbacks).onDisabledInteractiveClick)==null||U.call(K)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:T,removeAllOpenURI:I})=>{this.store&&T==="container-fake-removed"&&I&&this.store.ui.controls.disabledControls$.remove(Kl)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let T=this.interactiveController.getHistoryState();this.subscription.add(T.history$.subscribe(I=>{var A,k,E;I.length&&((E=(k=(A=this.videoConfig)==null?void 0:A.callbacks)==null?void 0:k.onInteractiveHistoryChanged)==null||E.call(k,I))}))}(l=(r=this.videoConfig)==null?void 0:r.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(T=>{var I,A,k;(k=(I=this.videoConfig)==null?void 0:(A=I.callbacks).onInteractiveChapterChanged)==null||k.call(A,T.chapter,T.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var T,I,A,k;(T=this.microStoresRoot)==null||T.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(k=(I=this.videoConfig)==null?void 0:(A=I.callbacks).onInteractiveTimeIndicatorClick)==null||k.call(A)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(T=>{this.log({message:T.toString()})}))}catch(d){this.log({message:d.message})}}initPlayer(e,i={}){var o,n,r,l,d,a,p,f,v,u,$,w,y,S,T,I,A,k,E,L,K,U,W,G,te,j,ae,de;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let we=new Error("empty videos");this.fatalError$.next(we),(n=(o=e.callbacks)==null?void 0:o.onCrashed)==null||n.call(o,we.message);return}else this.fatalError$.next(null);if(this.videoConfig=Dd(G5,B5(e,we=>we instanceof HTMLElement?we:void 0)),this.uiConfig=Gg((r=i.ui)!=null?r:{}),this.coreConfig=(l=i.core)!=null?l:{configName:[]},this.statisticsConfig=(d=i.statistics)!=null?d:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer&&(this.rootContainer.style.minHeight="unset"),this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},this.uiConfig.features.exposeInternalsToGlobal&&((p=this.internalsExposure)!=null||(this.internalsExposure=new U5("UI"))),Qd.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((f=this.videoConfig)==null?void 0:f.showAds)],numbers:[R5()]}),av(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(u=(v=this.uiConfig.features.mediaSession)!=null?v:this.videoConfig.isMediaSessionEnabled)!=null?u:!0),av(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(w=($=this.uiConfig.features.pip)!=null?$:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0,this.uiConfig.features.dpip=(S=(y=this.uiConfig.features.dpip)!=null?y:this.videoConfig.isPictureInPictureEnabled)!=null?S:!0),this.videoConfig.isTouch=(I=(T=this.uiConfig.isMobile)!=null?T:this.videoConfig.isTouch)!=null?I:this.videoConfig.isMobile,(A=this.videoConfig).autoplay&&(A.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(k=this.uiConfig.ads.enable)!=null?k:this.videoConfig.showAds,this.videoConfig.adsSlotId=(E=this.uiConfig.ads.slot)!=null?E:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(L=this.uiConfig.ads.preview)!=null?L:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((K=this.uiConfig.showLogo)!=null?K:!this.videoConfig.logoHidden),(U=this.videoConfig).canRewindLive&&(U.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(W=this.videoConfig.supportLink)!=null?W:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(G=this.uiConfig.features.endScreen)!=null?G:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(te=this.uiConfig.features.autoplayNext)!=null?te:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(j=this.uiConfig.features.nextPrevButtons)!=null?j:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((ae=this.videoConfig.videos)!=null&&ae[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let we={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Su.getLatestSupportedVersion(we):this.pictureInPictureApi=new ra(we)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Cu:void 0,this.slotsApi=this.uiConfig.features.slots?new $u:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Tu(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteErrorComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),Q1(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(de=this.slotsApi)==null||de.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new ku(this._shadowRoot):void 0}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();s(Pn)&&(s(Pn).showNextPrevButtons=this.needToShowNextPrevButtons(),s(Pn).nextButtonActive=this.isNextButtonActive(),s(Pn).prevButtonActive=this.isPrevButtonActive(),s(Pn).endScreenVideoTitle=o.nextVideoTitle,s(Pn).endScreenVideoThumb=o.nextVideoThumb,s(Pn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",n=>this.seekTime(n.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>{var n,r,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(r=(n=this.videoConfig)==null?void 0:n.callbacks)==null?void 0:r.onNextVideoClick)==null||l.call(r)}catch(d){this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{var n,r,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(r=(n=this.videoConfig)==null?void 0:n.callbacks)==null?void 0:r.onPrevVideoClick)==null||l.call(r)}catch(d){this.log({message:"onPrevVideoClick callback failed to execute"})}else this.playPrevVideo()}])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,n;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}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,s(Pn)&&(s(Pn).needToRepeatPlaylist=this.needToRepeatPlaylist,s(Pn).showNextPrevButtons=this.needToShowNextPrevButtons(),s(Pn).nextButtonActive=this.isNextButtonActive(),s(Pn).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)}isLiveTailPlaying(){var e;let i=(e=this.store)==null?void 0:e.getPlayer();if(!i)return!1;let{info:o}=i;return o.canPlayLiveTailBuffer$.getValue()&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),n=e||!o;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${o}`});let r=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};n&&r(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;n||r(),(l=this.store)==null||l.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let n=()=>{var r;(r=this.store)==null||r.actions.internal.setLiveWaitingRecord(!0)};o&&n(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var r;o||n(),(r=this.store)==null||r.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),n=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let r=()=>{var l,d;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!1),(d=this.store)==null||d.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(n){r();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=r)}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(e){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=$e(this.store.state.positionExact$),l=$e(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe(F5()).subscribe(()=>{l&&n>=l.time?this.seekTime(l.time):this.seekTime(n),e==null||e()});let d=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&(this.statistics.oneStat&&this.statistics.oneStat.updateContext(e),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}restoreFocus(){var e;(e=this.focusManager)==null||e.restoreFocus()}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}setAutoplayNext(e){var i;(i=this.store)==null||i.actions.internal.setAutoplayNextEnabled(e)}unmountComponent(e){e&&Xs(e)}};import{InterfaceLanguage as NJ,VKNumericLanguage as BJ,loadVKLangPack as OJ}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as HJ,VideoFormat as FJ}from"@vkontakte/videoplayer-core/es2018";var IJ=()=>{window.customElements.define("vk-video-player",Pu)};export{lu as ControlButtonType,Jr as GridTypes,NJ as InterfaceLanguage,od as MenuItemType,us as PlayerPhase,el as VERSION,BJ as VKNumericLanguage,FJ as VideoFormat,HJ as VideoQuality,OJ as loadVKLangPack,IJ as registerPlayerWebComponent};