@vkontakte/videoplayer 1.1.75-beta.0 → 1.1.75-dev.3ba5a3c2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es2018.esm.js CHANGED
@@ -1,59 +1,59 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.75-beta.0
3
- * Thu, 23 Oct 2025 12:40:33 GMT
2
+ * @vkontakte/videoplayer v1.1.75-dev.3ba5a3c2.0
3
+ * Mon, 27 Oct 2025 11:43:16 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-75/doc/
5
5
  */
6
- var V0=Object.defineProperty;var Vv=t=>{throw TypeError(t)};var R0=(t,e,i)=>e in t?V0(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var Xn=(t,e,i)=>R0(t,typeof e!="symbol"?e+"":e,i),ip=(t,e,i)=>e.has(t)||Vv("Cannot "+i);var Ri=(t,e,i)=>(ip(t,e,"read from private field"),i?i.call(t):e.get(t)),Ps=(t,e,i)=>e.has(t)?Vv("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Ma=(t,e,i,o)=>(ip(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Rv=(t,e,i)=>(ip(t,e,"access private method"),i);var Ls="[",Ms="[!",Qs="]",es={};var Qi=Symbol(),Tn=Symbol("filename"),Nv=Symbol("hmr"),Ov="http://www.w3.org/1999/xhtml",fc="http://www.w3.org/2000/svg";var op="@attach";var mc=!0;var Dv,Fv,Bv=(Fv=(Dv=globalThis.process)==null?void 0:Dv.env)==null?void 0:Fv.NODE_ENV,Pe=Bv&&!Bv.toLowerCase().startsWith("prod");var Jn=Array.isArray,Hv=Array.prototype.indexOf,Sl=Array.from,np=Object.keys,Ji=Object.defineProperty,Yo=Object.getOwnPropertyDescriptor,vc=Object.getOwnPropertyDescriptors,rp=Object.prototype,Uv=Array.prototype,Gs=Object.getPrototypeOf,sp=Object.isExtensible;function Vs(t){return typeof t=="function"}var ae=()=>{};function zv(t){return t()}function Rs(t){for(var e=0;e<t.length;e++)t[e]()}var Bo=Symbol("$state"),Va=Symbol("legacy props"),Wv=Symbol(""),gc=Symbol("proxy path"),hc=1,Ra=3,er=8;function _c(t){return t===this.v}function Na(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Kv(t,e){return t!==e}function Oa(t){return!Na(t,this.v)}function qv(){if(Pe){let t=new Error(`derived_references_self
6
+ var l_=Object.defineProperty;var eg=t=>{throw TypeError(t)};var d_=(t,e,i)=>e in t?l_(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var Xn=(t,e,i)=>d_(t,typeof e!="symbol"?e+"":e,i),vp=(t,e,i)=>e.has(t)||eg("Cannot "+i);var Oi=(t,e,i)=>(vp(t,e,"read from private field"),i?i.call(t):e.get(t)),Ds=(t,e,i)=>e.has(t)?eg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),tl=(t,e,i,o)=>(vp(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),tg=(t,e,i)=>(vp(t,e,"access private method"),i);var Bs="[",Hs="[!",da="]",es={};var Ji=Symbol(),Mn=Symbol("filename"),ig=Symbol("hmr"),og="http://www.w3.org/1999/xhtml",Mc="http://www.w3.org/2000/svg";var mp="@attach";var Lc=!0;var rg,sg,ng=(sg=(rg=globalThis.process)==null?void 0:rg.env)==null?void 0:sg.NODE_ENV,Le=ng&&!ng.toLowerCase().startsWith("prod");var Jn=Array.isArray,ag=Array.prototype.indexOf,Ql=Array.from,gp=Object.keys,ro=Object.defineProperty,Bo=Object.getOwnPropertyDescriptor,Vc=Object.getOwnPropertyDescriptors,hp=Object.prototype,lg=Array.prototype,ca=Object.getPrototypeOf,_p=Object.isExtensible;function Fs(t){return typeof t=="function"}var ce=()=>{};function dg(t){return t()}function Us(t){for(var e=0;e<t.length;e++)t[e]()}var Ho=Symbol("$state"),il=Symbol("legacy props"),cg=Symbol(""),Rc=Symbol("proxy path"),Nc=1,ol=3,er=8;function Oc(t){return t===this.v}function nl(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function ug(t,e){return t!==e}function rl(t){return!nl(t,this.v)}function pg(){if(Le){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 Qv(t){if(Pe){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 fg(t){if(Le){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 Gv(){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 jv(t){if(Pe){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 vg(){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 mg(t){if(Le){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 Yv(){if(Pe){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 gg(){if(Le){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 Zv(){if(Pe){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 hg(){if(Le){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 Xv(){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 Jv(t){if(Pe){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 _g(){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 bg(t){if(Le){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 eg(t){if(Pe){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 $g(t){if(Le){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 tg(t){if(Pe){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 yg(t){if(Le){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 ig(){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 og(){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 ng(){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 ts=!1,is=!1;function rg(){ts=!0}var Cl=null;function us(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
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;Ji(e,"stack",{value:n.join(`
25
- `)}),Ji(e,"name",{value:`${t}Error`})}return e}function Nr(t,e){return t.label=e,bc(t.v,e),t}function bc(t,e){var i;return(i=t==null?void 0:t[gc])==null||i.call(t,e),t}function Ba(t){if(Pe){let e=new Error(`lifecycle_outside_component
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 xg(){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 wg(){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 Sg(){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 ts=!1,is=!1;function Cg(){ts=!0}var Gl=null;function hs(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
23
+ `),r=[`
24
+ `];for(let s=0;s<o.length;s++){let l=o[s];if(l!=="Error"){if(l.includes("validate_each_keys"))return null;l.includes("svelte/src/internal")||r.push(l)}}if(r.length===1)return null;ro(e,"stack",{value:r.join(`
25
+ `)}),ro(e,"name",{value:`${t}Error`})}return e}function Ur(t,e){return t.label=e,Dc(t.v,e),t}function Dc(t,e){var i;return(i=t==null?void 0:t[Rc])==null||i.call(t,e),t}function sl(t){if(Le){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 Tl(t){Vt=t}var tr=null;function El(t){tr=t}function Da(t){return dp("getContext").get(t)}function Fa(t,e){return dp("setContext").set(t,e),e}function Il(){return dp("getAllContexts")}function U(t,e=!1,i){var o=Vt={p:Vt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};ts&&!e&&(Vt.l={s:null,u:null,r1:[],r2:wr(!1)}),Do(()=>{o.d=!0}),Pe&&(Vt.function=i,tr=i)}function z(t){var l,d;let e=Vt;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=vt,o=Et;e.e=null;try{for(var n=0;n<a.length;n++){var s=a[n];eo(s.effect),Fi(s.reaction),_o(s.fn)}}finally{eo(i),Fi(o)}}Vt=e.p,Pe&&(tr=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function os(){return!ts||Vt!==null&&Vt.l===null}function dp(t){var e;return Vt===null&&Ba(t),(e=Vt.c)!=null?e:Vt.c=new Map(O0(Vt)||void 0)}function O0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var B0=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function Zt(t){if(typeof t!="object"||t===null||Bo in t)return t;let e=Gs(t);if(e!==rp&&e!==Uv)return t;var i=new Map,o=Jn(t),n=X(0),s=Pe&&is?us("CreatedAt"):null,l=Et,d=f=>{var m=Et;Fi(l);var u=f();return Fi(m),u};o&&i.set("length",X(t.length,s));var a="";function p(f){a=f,Nr(n,`${a} version`);for(let[m,u]of i)Nr(u,js(a,m))}return new Proxy(t,{defineProperty(f,m,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&ig();var y=i.get(m);return y===void 0?y=d(()=>{var w=X(u.value,s);return i.set(m,w),Pe&&typeof m=="string"&&Nr(w,js(a,m)),w}):O(y,u.value,!0),!0},deleteProperty(f,m){var u=i.get(m);if(u===void 0){if(m in f){let x=d(()=>X(Qi,s));i.set(m,x),cp(n),Pe&&Nr(x,js(a,m))}}else{if(o&&typeof m=="string"){var y=i.get("length"),w=Number(m);Number.isInteger(w)&&w<y.v&&O(y,w)}O(u,Qi),cp(n)}return!0},get(f,m,u){var T;if(m===Bo)return t;if(Pe&&m===gc)return p;var y=i.get(m),w=m in f;if(y===void 0&&(!w||(T=Yo(f,m))!=null&&T.writable)&&(y=d(()=>{var C=Zt(w?f[m]:Qi),E=X(C,s);return Pe&&Nr(E,js(a,m)),E}),i.set(m,y)),y!==void 0){var x=r(y);return x===Qi?void 0:x}return Reflect.get(f,m,u)},getOwnPropertyDescriptor(f,m){var u=Reflect.getOwnPropertyDescriptor(f,m);if(u&&"value"in u){var y=i.get(m);y&&(u.value=r(y))}else if(u===void 0){var w=i.get(m),x=w==null?void 0:w.v;if(w!==void 0&&x!==Qi)return{enumerable:!0,configurable:!0,value:x,writable:!0}}return u},has(f,m){var x;if(m===Bo)return!0;var u=i.get(m),y=u!==void 0&&u.v!==Qi||Reflect.has(f,m);if(u!==void 0||vt!==null&&(!y||(x=Yo(f,m))!=null&&x.writable)){u===void 0&&(u=d(()=>{var T=y?Zt(f[m]):Qi,C=X(T,s);return Pe&&Nr(C,js(a,m)),C}),i.set(m,u));var w=r(u);if(w===Qi)return!1}return y},set(f,m,u,y){var B;var w=i.get(m),x=m in f;if(o&&m==="length")for(var T=u;T<w.v;T+=1){var C=i.get(T+"");C!==void 0?O(C,Qi):T in f&&(C=d(()=>X(Qi,s)),i.set(T+"",C),Pe&&Nr(C,js(a,T)))}if(w===void 0)(!x||(B=Yo(f,m))!=null&&B.writable)&&(w=d(()=>X(void 0,s)),O(w,Zt(u)),i.set(m,w),Pe&&Nr(w,js(a,m)));else{x=w.v!==Qi;var E=d(()=>Zt(u));O(w,E)}var R=Reflect.getOwnPropertyDescriptor(f,m);if(R!=null&&R.set&&R.set.call(y,u),!x){if(o&&typeof m=="string"){var I=i.get("length"),k=Number(m);Number.isInteger(k)&&k>=I.v&&O(I,k+1)}cp(n)}return!0},ownKeys(f){r(n);var m=Reflect.ownKeys(f).filter(w=>{var x=i.get(w);return x===void 0||x.v!==Qi});for(var[u,y]of i)y.v!==Qi&&!(u in f)&&m.push(u);return m},setPrototypeOf(){og()}})}function js(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:B0.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function cp(t,e=1){O(t,t.v+e)}function Ha(t){try{if(t!==null&&typeof t=="object"&&Bo in t)return t[Bo]}catch(e){}return t}function up(t,e){return Object.is(Ha(t),Ha(e))}function Or(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:_c,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:vt};return Pe&&is&&(o.created=us("CreatedAt")),o}function g(t){let e=Or(t);return xc(e),e}function Br(t){let e=Or(t);return e.equals=Oa,e}function $c(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Hi(e[i])}}var pp=[];function D0(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function vp(t){var e,i=vt;if(eo(D0(t)),Pe){let o=Ys;fp(new Set);try{pp.includes(t)&&qv(),pp.push(t),$c(t),e=yc(t)}finally{eo(i),fp(o),pp.pop()}}else try{$c(t),e=yc(t)}finally{eo(i)}return e}function gp(t){var e=vp(t);if(t.equals(e)||(t.v=e,t.wv=kl()),!ps){var i=(fs||(t.f&256)!==0)&&t.deps!==null?4096:1024;cn(t,i)}}var Ys=new Set,Ua=new Map;function fp(t){Ys=t}function wr(t,e){var i={f:0,v:t,reactions:null,equals:_c,rv:0,wv:0};return Pe&&is&&(i.created=e!=null?e:us("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function X(t,e){let i=wr(t,e);return xc(i),i}function ns(t,e=!1,i=!0){var n,s;let o=wr(t);return e||(o.equals=Oa),ts&&i&&Vt!==null&&Vt.l!==null&&((s=(n=Vt.l).s)!=null?s:n.s=[]).push(o),o}function O(t,e,i=!1){var n;Et!==null&&(!nr||(Et.f&262144)!==0)&&os()&&(Et.f&262162)!==0&&!((n=Ho)!=null&&n[1].includes(t)&&Ho[0]===Et)&&ng();let o=i?Zt(e):e;return Pe&&bc(o,t.label),za(t,o)}function za(t,e){if(!t.equals(e)){var i=t.v;if(ps?Ua.set(t,e):Ua.set(t,i),t.v=e,Pe&&is&&(t.updated=us("UpdatedAt"),vt!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&vp(t),cn(t,(t.f&256)===0?1024:4096)),t.wv=kl(),ag(t,2048),os()&&vt!==null&&(vt.f&1024)!==0&&(vt.f&96)===0&&(or===null?lg([t]):or.push(t)),Pe&&Ys.size>0){let o=Array.from(Ys);for(let n of o)(n.f&1024)!==0&&cn(n,4096),Xs(n)&&Wa(n);Ys.clear()}}return e}function ag(t,e){var i=t.reactions;if(i!==null)for(var o=os(),n=i.length,s=0;s<n;s++){var l=i[s],d=l.f;if((d&2048)===0&&!(!o&&l===vt)){if(Pe&&(d&262144)!==0){Ys.add(l);continue}cn(l,e),(d&1280)!==0&&((d&2)!==0?ag(l,4096):Pl(l))}}}var Ka="font-weight: bold",qa="font-weight: normal";function dg(t,e,i){Pe?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 Ht=null;function jl(t){Ht=t}var tr=null;function Yl(t){tr=t}function al(t){return yp("getContext").get(t)}function ll(t,e){return yp("setContext").set(t,e),e}function Zl(){return yp("getAllContexts")}function F(t,e=!1,i){var o=Ht={p:Ht,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};ts&&!e&&(Ht.l={s:null,u:null,r1:[],r2:br(!1)}),Co(()=>{o.d=!0}),Le&&(Ht.function=i,tr=i)}function U(t){var l,d;let e=Ht;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=$t,o=Vt;e.e=null;try{for(var r=0;r<a.length;r++){var s=a[r];so(s.effect),zi(s.reaction),To(s.fn)}}finally{so(i),zi(o)}}Ht=e.p,Le&&(tr=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function os(){return!ts||Ht!==null&&Ht.l===null}function yp(t){var e;return Ht===null&&sl(t),(e=Ht.c)!=null?e:Ht.c=new Map(u_(Ht)||void 0)}function u_(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var p_=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function ai(t){if(typeof t!="object"||t===null||Ho in t)return t;let e=ca(t);if(e!==hp&&e!==lg)return t;var i=new Map,o=Jn(t),r=Q(0),s=Le&&is?hs("CreatedAt"):null,l=Vt,d=f=>{var v=Vt;zi(l);var p=f();return zi(v),p};o&&i.set("length",Q(t.length,s));var a="";function u(f){a=f,Ur(r,`${a} version`);for(let[v,p]of i)Ur(p,ua(a,v))}return new Proxy(t,{defineProperty(f,v,p){(!("value"in p)||p.configurable===!1||p.enumerable===!1||p.writable===!1)&&xg();var y=i.get(v);return y===void 0?y=d(()=>{var w=Q(p.value,s);return i.set(v,w),Le&&typeof v=="string"&&Ur(w,ua(a,v)),w}):N(y,p.value,!0),!0},deleteProperty(f,v){var p=i.get(v);if(p===void 0){if(v in f){let x=d(()=>Q(Ji,s));i.set(v,x),xp(r),Le&&Ur(x,ua(a,v))}}else{if(o&&typeof v=="string"){var y=i.get("length"),w=Number(v);Number.isInteger(w)&&w<y.v&&N(y,w)}N(p,Ji),xp(r)}return!0},get(f,v,p){var C;if(v===Ho)return t;if(Le&&v===Rc)return u;var y=i.get(v),w=v in f;if(y===void 0&&(!w||(C=Bo(f,v))!=null&&C.writable)&&(y=d(()=>{var T=ai(w?f[v]:Ji),E=Q(T,s);return Le&&Ur(E,ua(a,v)),E}),i.set(v,y)),y!==void 0){var x=n(y);return x===Ji?void 0:x}return Reflect.get(f,v,p)},getOwnPropertyDescriptor(f,v){var p=Reflect.getOwnPropertyDescriptor(f,v);if(p&&"value"in p){var y=i.get(v);y&&(p.value=n(y))}else if(p===void 0){var w=i.get(v),x=w==null?void 0:w.v;if(w!==void 0&&x!==Ji)return{enumerable:!0,configurable:!0,value:x,writable:!0}}return p},has(f,v){var x;if(v===Ho)return!0;var p=i.get(v),y=p!==void 0&&p.v!==Ji||Reflect.has(f,v);if(p!==void 0||$t!==null&&(!y||(x=Bo(f,v))!=null&&x.writable)){p===void 0&&(p=d(()=>{var C=y?ai(f[v]):Ji,T=Q(C,s);return Le&&Ur(T,ua(a,v)),T}),i.set(v,p));var w=n(p);if(w===Ji)return!1}return y},set(f,v,p,y){var O;var w=i.get(v),x=v in f;if(o&&v==="length")for(var C=p;C<w.v;C+=1){var T=i.get(C+"");T!==void 0?N(T,Ji):C in f&&(T=d(()=>Q(Ji,s)),i.set(C+"",T),Le&&Ur(T,ua(a,C)))}if(w===void 0)(!x||(O=Bo(f,v))!=null&&O.writable)&&(w=d(()=>Q(void 0,s)),N(w,ai(p)),i.set(v,w),Le&&Ur(w,ua(a,v)));else{x=w.v!==Ji;var E=d(()=>ai(p));N(w,E)}var R=Reflect.getOwnPropertyDescriptor(f,v);if(R!=null&&R.set&&R.set.call(y,p),!x){if(o&&typeof v=="string"){var A=i.get("length"),I=Number(v);Number.isInteger(I)&&I>=A.v&&N(A,I+1)}xp(r)}return!0},ownKeys(f){n(r);var v=Reflect.ownKeys(f).filter(w=>{var x=i.get(w);return x===void 0||x.v!==Ji});for(var[p,y]of i)y.v!==Ji&&!(p in f)&&v.push(p);return v},setPrototypeOf(){wg()}})}function ua(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:p_.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function xp(t,e=1){N(t,t.v+e)}function dl(t){try{if(t!==null&&typeof t=="object"&&Ho in t)return t[Ho]}catch(e){}return t}function wp(t,e){return Object.is(dl(t),dl(e))}function zr(t){var e=2050,i=Vt!==null&&(Vt.f&2)!==0?Vt:null;$t===null||i!==null&&(i.f&256)!==0?e|=256:$t.f|=1048576;let o={ctx:Ht,deps:null,effects:null,equals:Oc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:$t};return Le&&is&&(o.created=hs("CreatedAt")),o}function m(t){let e=zr(t);return Fc(e),e}function bn(t){let e=zr(t);return e.equals=rl,e}function Bc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Wi(e[i])}}var Sp=[];function f_(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function Ep(t){var e,i=$t;if(so(f_(t)),Le){let o=pa;Cp(new Set);try{Sp.includes(t)&&pg(),Sp.push(t),Bc(t),e=Hc(t)}finally{so(i),Cp(o),Sp.pop()}}else try{Bc(t),e=Hc(t)}finally{so(i)}return e}function Ip(t){var e=Ep(t);if(t.equals(e)||(t.v=e,t.wv=Xl()),!_s){var i=(bs||(t.f&256)!==0)&&t.deps!==null?4096:1024;$n(t,i)}}var pa=new Set,cl=new Map;function Cp(t){pa=t}function br(t,e){var i={f:0,v:t,reactions:null,equals:Oc,rv:0,wv:0};return Le&&is&&(i.created=e!=null?e:hs("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function Q(t,e){let i=br(t,e);return Fc(i),i}function ns(t,e=!1,i=!0){var r,s;let o=br(t);return e||(o.equals=rl),ts&&i&&Ht!==null&&Ht.l!==null&&((s=(r=Ht.l).s)!=null?s:r.s=[]).push(o),o}function N(t,e,i=!1){var r;Vt!==null&&(!nr||(Vt.f&262144)!==0)&&os()&&(Vt.f&262162)!==0&&!((r=Uo)!=null&&r[1].includes(t)&&Uo[0]===Vt)&&Sg();let o=i?ai(e):e;return Le&&Dc(o,t.label),ul(t,o)}function ul(t,e){if(!t.equals(e)){var i=t.v;if(_s?cl.set(t,e):cl.set(t,i),t.v=e,Le&&is&&(t.updated=hs("UpdatedAt"),$t!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&Ep(t),$n(t,(t.f&256)===0?1024:4096)),t.wv=Xl(),Eg(t,2048),os()&&$t!==null&&($t.f&1024)!==0&&($t.f&96)===0&&(or===null?Ig([t]):or.push(t)),Le&&pa.size>0){let o=Array.from(pa);for(let r of o)(r.f&1024)!==0&&$n(r,4096),va(r)&&pl(r);pa.clear()}}return e}function Eg(t,e){var i=t.reactions;if(i!==null)for(var o=os(),r=i.length,s=0;s<r;s++){var l=i[s],d=l.f;if((d&2048)===0&&!(!o&&l===$t)){if(Le&&(d&262144)!==0){pa.add(l);continue}$n(l,e),(d&1280)!==0&&((d&2)!==0?Eg(l,4096):ed(l))}}}var fl="font-weight: bold",vl="font-weight: normal";function kg(t,e,i){Le?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`,Ka,qa):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function cg(t){Pe?console.warn(`%c[svelte] hydration_html_changed
29
+ https://svelte.dev/e/hydration_attribute_changed`,fl,vl):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Ag(t){Le?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`,Ka,qa):console.warn("https://svelte.dev/e/hydration_html_changed")}function Ns(t){Pe?console.warn(`%c[svelte] hydration_mismatch
31
+ https://svelte.dev/e/hydration_html_changed`,fl,vl):console.warn("https://svelte.dev/e/hydration_html_changed")}function zs(t){Le?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`,Ka,qa):console.warn("https://svelte.dev/e/hydration_mismatch")}function ug(){Pe?console.warn(`%c[svelte] lifecycle_double_unmount
33
+ https://svelte.dev/e/hydration_mismatch`,fl,vl):console.warn("https://svelte.dev/e/hydration_mismatch")}function Pg(){Le?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`,Ka,qa):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function pg(){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",Ka,qa):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function wc(t){Pe?console.warn(`%c[svelte] state_proxy_equality_mismatch
35
+ https://svelte.dev/e/lifecycle_double_unmount`,fl,vl):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Mg(){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",fl,vl):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Uc(t){Le?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`,Ka,qa):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Xe=!1;function to(t){Xe=t}var gt;function fi(t){if(t===null)throw Ns(),es;return gt=t}function Ui(){return fi(Uo(gt))}function h(t){if(Xe){if(Uo(gt)!==null)throw Ns(),es;gt=t}}function xe(t=1){if(Xe){for(var e=t,i=gt;e--;)i=Uo(i);gt=i}}function Js(){for(var t=0,e=gt;;){if(e.nodeType===er){var i=e.data;if(i===Qs){if(t===0)return e;t-=1}else(i===Ls||i===Ms)&&(t+=1)}var o=Uo(e);e.remove(),e=o}}function Sc(t){if(!t||t.nodeType!==er)throw Ns(),es;return t.data}function fg(){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(Ha(this[a])===s){wc("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(Ha(this[a])===s){wc("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(Ha(this[a])===s){wc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var ea,mg,Ll,vg,gg;function Cc(){if(ea===void 0){ea=window,mg=document,Ll=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;vg=Yo(e,"firstChild").get,gg=Yo(e,"nextSibling").get,sp(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),sp(i)&&(i.__t=void 0),Pe&&(t.__svelte_meta=null,fg())}}function un(t=""){return document.createTextNode(t)}function yi(t){return vg.call(t)}function Uo(t){return gg.call(t)}function _(t,e){if(!Xe)return yi(t);var i=yi(gt);if(i===null)i=gt.appendChild(un());else if(e&&i.nodeType!==Ra){var o=un();return i==null||i.before(o),fi(o),o}return fi(i),i}function fe(t,e){var n,s;if(!Xe){var i=yi(t);return i.nodeType===8&&i.data===""?Uo(i):i}if(e&&((n=gt)==null?void 0:n.nodeType)!==Ra){var o=un();return(s=gt)==null||s.before(o),fi(o),o}return gt}function A(t,e=1,i=!1){let o=Xe?gt:t;for(var n;e--;)n=o,o=Uo(o);if(!Xe)return o;if(i&&(o==null?void 0:o.nodeType)!==Ra){var s=un();return o===null?n==null||n.after(s):o.before(s),fi(s),s}return fi(o),o}function Ml(t){t.textContent=""}function bp(t){vt===null&&Et===null&&jv(t),Et!==null&&(Et.f&256)!==0&&vt===null&&Gv(),ps&&Qv(t)}function F0(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function ta(t,e,i,o=!0){var a;var n=vt;if(Pe)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(Pe&&(s.component_function=tr),i)try{Wa(s),s.f|=32768}catch(p){throw Hi(s),p}else e!==null&&Pl(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&&F0(s,n),Et!==null&&(Et.f&2)!==0)){var d=Et;((a=d.effects)!=null?a:d.effects=[]).push(s)}return s}function Do(t){let e=ta(8,null,!1);return cn(e,1024),e.teardown=t,e}function qe(t){var n;bp("$effect");var e=vt!==null&&(vt.f&32)!==0&&Vt!==null&&!Vt.m;if(Pe&&Ji(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 Nl(t){return bp("$effect.pre"),Pe&&Ji(t,"name",{value:"$effect.pre"}),zo(t)}function Ic(t){let e=ta(64,t,!0);return()=>{Hi(e)}}function _g(t){let e=ta(64,t,!0);return(i={})=>new Promise(o=>{i.outro?An(e,()=>{Hi(e),o(void 0)}):(Hi(e),o(void 0))})}function _o(t){return ta(4,t,!1)}function zo(t){return ta(8,t,!0)}function D(t,e=[],i=Or){if(Pe)return zo(()=>{var n=vt,s=()=>t(...l.map(r));Ji(n.fn,"name",{value:"{expression}"}),Ji(s,"name",{value:"{expression}"});let l=e.map(i);zi(s)});let o=e.map(i);return zi(()=>t(...o.map(r)))}function zi(t,e=0){return ta(24|e,t,!0)}function Ni(t,e=!0){return ta(40,t,!0,e)}function $p(t){var e=t.teardown;if(e!==null){let i=ps,o=Et;hp(!0),Fi(null);try{e.call(null)}finally{hp(i),Fi(o)}}}function yp(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:Hi(i,e),i=o}}function bg(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Hi(e),e=i}}function Hi(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(xp(t.nodes_start,t.nodes_end),i=!0),yp(t,e&&!i),Ol(t,0),cn(t,16384);var o=t.transitions;if(o!==null)for(let s of o)s.stop();$p(t);var n=t.parent;n!==null&&n.first!==null&&wp(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 xp(t,e){for(;t!==null;){var i=t===e?null:Uo(t);t.remove(),t=i}}function wp(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 An(t,e){var i=[];kc(t,i,!0),Sp(i,()=>{Hi(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 kc(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;kc(o,e,s?i:!1),o=n}}}function vs(t){$g(t,!0)}function $g(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;$g(i,n?e:!1),i=o}if(t.transitions!==null)for(let s of t.transitions)(s.is_global||e)&&s.in()}}var Bl=[],Cp=[];function yg(){var t=Bl;Bl=[],Rs(t)}function H0(){var t=Cp;Cp=[],Rs(t)}function pn(t){Bl.length===0&&queueMicrotask(yg),Bl.push(t)}function xg(){Bl.length>0&&yg(),Cp.length>0&&H0()}function Sg(t){var e=vt;if(Pe&&t instanceof Error&&U0(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else Dl(t,e)}function Dl(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var wg=new WeakSet;function U0(t,e){var l,d;if(wg.has(t))return;wg.add(t);let i=Yo(t,"message");if(!(i&&!i.configurable)){for(var o=Ll?" ":" ",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[Tn].split("/").pop()}`,s=s.p;Ji(t,"message",{value:t.message+`
40
- ${n}
41
- `}),t.stack&&Ji(t,"stack",{value:t.stack.split(`
37
+ https://svelte.dev/e/state_proxy_equality_mismatch`,fl,vl):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var ot=!1;function ao(t){ot=t}var yt;function Si(t){if(t===null)throw zs(),es;return yt=t}function Ki(){return Si(zo(yt))}function g(t){if(ot){if(zo(yt)!==null)throw zs(),es;yt=t}}function Te(t=1){if(ot){for(var e=t,i=yt;e--;)i=zo(i);yt=i}}function ma(){for(var t=0,e=yt;;){if(e.nodeType===er){var i=e.data;if(i===da){if(t===0)return e;t-=1}else(i===Bs||i===Hs)&&(t+=1)}var o=zo(e);e.remove(),e=o}}function zc(t){if(!t||t.nodeType!==er)throw zs(),es;return t.data}function Lg(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:r}=t;t.indexOf=function(s,l){let d=i.call(this,s,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(dl(this[a])===s){Uc("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(dl(this[a])===s){Uc("array.lastIndexOf(...)");break}}return d},t.includes=function(s,l){let d=r.call(this,s,l);if(!d){for(let a=0;a<this.length;a+=1)if(dl(this[a])===s){Uc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=r}}var ga,Vg,td,Rg,Ng;function Wc(){if(ga===void 0){ga=window,Vg=document,td=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;Rg=Bo(e,"firstChild").get,Ng=Bo(e,"nextSibling").get,_p(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),_p(i)&&(i.__t=void 0),Le&&(t.__svelte_meta=null,Lg())}}function yn(t=""){return document.createTextNode(t)}function Ti(t){return Rg.call(t)}function zo(t){return Ng.call(t)}function _(t,e){if(!ot)return Ti(t);var i=Ti(yt);if(i===null)i=yt.appendChild(yn());else if(e&&i.nodeType!==ol){var o=yn();return i==null||i.before(o),Si(o),o}return Si(i),i}function pe(t,e){var r,s;if(!ot){var i=Ti(t);return i.nodeType===8&&i.data===""?zo(i):i}if(e&&((r=yt)==null?void 0:r.nodeType)!==ol){var o=yn();return(s=yt)==null||s.before(o),Si(o),o}return yt}function P(t,e=1,i=!1){let o=ot?yt:t;for(var r;e--;)r=o,o=zo(o);if(!ot)return o;if(i&&(o==null?void 0:o.nodeType)!==ol){var s=yn();return o===null?r==null||r.after(s):o.before(s),Si(s),s}return Si(o),o}function id(t){t.textContent=""}function Pp(t){$t===null&&Vt===null&&mg(t),Vt!==null&&(Vt.f&256)!==0&&$t===null&&vg(),_s&&fg(t)}function v_(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function ha(t,e,i,o=!0){var a;var r=$t;if(Le)for(;r!==null&&(r.f&262144)!==0;)r=r.parent;var s={ctx:Ht,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:r,prev:null,teardown:null,transitions:null,wv:0};if(Le&&(s.component_function=tr),i)try{pl(s),s.f|=32768}catch(u){throw Wi(s),u}else e!==null&&ed(s);var l=i&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&1048704)===0;if(!l&&o&&(r!==null&&v_(s,r),Vt!==null&&(Vt.f&2)!==0)){var d=Vt;((a=d.effects)!=null?a:d.effects=[]).push(s)}return s}function Co(t){let e=ha(8,null,!1);return $n(e,1024),e.teardown=t,e}function ze(t){var r;Pp("$effect");var e=$t!==null&&($t.f&32)!==0&&Ht!==null&&!Ht.m;if(Le&&ro(t,"name",{value:"$effect"}),e){var i=Ht;((r=i.e)!=null?r:i.e=[]).push({fn:t,effect:$t,reaction:Vt})}else{var o=To(t);return o}}function rd(t){return Pp("$effect.pre"),Le&&ro(t,"name",{value:"$effect.pre"}),Wo(t)}function Qc(t){let e=ha(64,t,!0);return()=>{Wi(e)}}function Dg(t){let e=ha(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Nn(e,()=>{Wi(e),o(void 0)}):(Wi(e),o(void 0))})}function To(t){return ha(4,t,!1)}function Wo(t){return ha(8,t,!0)}function D(t,e=[],i=zr){if(Le)return Wo(()=>{var r=$t,s=()=>t(...l.map(n));ro(r.fn,"name",{value:"{expression}"}),ro(s,"name",{value:"{expression}"});let l=e.map(i);qi(s)});let o=e.map(i);return qi(()=>t(...o.map(n)))}function qi(t,e=0){return ha(24|e,t,!0)}function Di(t,e=!0){return ha(40,t,!0,e)}function Mp(t){var e=t.teardown;if(e!==null){let i=_s,o=Vt;kp(!0),zi(null);try{e.call(null)}finally{kp(i),zi(o)}}}function Lp(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:Wi(i,e),i=o}}function Bg(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Wi(e),e=i}}function Wi(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(Vp(t.nodes_start,t.nodes_end),i=!0),Lp(t,e&&!i),sd(t,0),$n(t,16384);var o=t.transitions;if(o!==null)for(let s of o)s.stop();Mp(t);var r=t.parent;r!==null&&r.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 Vp(t,e){for(;t!==null;){var i=t===e?null:zo(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 Nn(t,e){var i=[];Gc(t,i,!0),Np(i,()=>{Wi(t),e&&e()})}function Np(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var r of t)r.out(o)}else e()}function Gc(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let l of t.transitions)(l.is_global||i)&&e.push(l);for(var o=t.first;o!==null;){var r=o.next,s=(o.f&65536)!==0||(o.f&32)!==0;Gc(o,e,s?i:!1),o=r}}}function ys(t){Hg(t,!0)}function Hg(t,e){if((t.f&8192)!==0){t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,r=(i.f&65536)!==0||(i.f&32)!==0;Hg(i,r?e:!1),i=o}if(t.transitions!==null)for(let s of t.transitions)(s.is_global||e)&&s.in()}}var ad=[],Op=[];function Fg(){var t=ad;ad=[],Us(t)}function m_(){var t=Op;Op=[],Us(t)}function xn(t){ad.length===0&&queueMicrotask(Fg),ad.push(t)}function Ug(){ad.length>0&&Fg(),Op.length>0&&m_()}function Wg(t){var e=$t;if(Le&&t instanceof Error&&g_(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else ld(t,e)}function ld(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var zg=new WeakSet;function g_(t,e){var l,d;if(zg.has(t))return;zg.add(t);let i=Bo(t,"message");if(!(i&&!i.configurable)){for(var o=td?" ":" ",r=`
38
+ ${o}in ${((l=e.fn)==null?void 0:l.name)||"<unknown>"}`,s=e.ctx;s!==null;)r+=`
39
+ ${o}in ${(d=s.function)==null?void 0:d[Mn].split("/").pop()}`,s=s.p;ro(t,"message",{value:t.message+`
40
+ ${r}
41
+ `}),t.stack&&ro(t,"stack",{value:t.stack.split(`
42
42
  `).filter(a=>!a.includes("svelte/src/internal")).join(`
43
- `)})}}var ia=!1,Qa=null,oa=!1,ps=!1;function hp(t){ps=t}var Fl=[],Hl=[],Et=null,nr=!1;function Fi(t){Et=t}var vt=null;function eo(t){vt=t}var Ho=null;function xc(t){Et!==null&&Et.f&2097152&&(Ho===null?Ho=[Et,[t]]:Ho[1].push(t))}var fn=null,rr=0,or=null;function lg(t){or=t}var Eg=1,Pc=0,fs=!1,Lc=null;function kl(){return++Eg}function Xs(t){var m,u;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var n,s,l=(e&512)!==0,d=o&&vt!==null&&!fs,a=i.length;if(l||d){var p=t,f=p.parent;for(n=0;n<a;n++)s=i[n],(l||!((m=s==null?void 0:s.reactions)!=null&&m.includes(p)))&&((u=s.reactions)!=null?u:s.reactions=[]).push(p);l&&(p.f^=512),d&&f!==null&&(f.f&256)===0&&(p.f^=256)}for(n=0;n<a;n++)if(s=i[n],Xs(s)&&gp(s),s.wv>t.wv)return!0}(!o||vt!==null&&!fs)&&cn(t,1024)}return!1}function Ig(t,e,i=!0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var s=o[n];Ho!=null&&Ho[1].includes(t)&&Ho[0]===Et||((s.f&2)!==0?Ig(s,e,!1):e===s&&(i?cn(s,2048):(s.f&1024)!==0&&cn(s,4096),Pl(s)))}}function yc(t){var y,w;var e=fn,i=rr,o=or,n=Et,s=fs,l=Ho,d=Vt,a=nr,p=t.f;fn=null,rr=0,or=null,fs=(p&256)!==0&&(nr||!oa||Et===null),Et=(p&96)===0?t:null,Ho=null,Tl(t.ctx),nr=!1,Pc++,t.f|=2097152;try{var f=(0,t.fn)(),m=t.deps;if(fn!==null){var u;if(Ol(t,rr),m!==null&&rr>0)for(m.length=rr+fn.length,u=0;u<fn.length;u++)m[rr+u]=fn[u];else t.deps=m=fn;if(!fs||(p&2)!==0&&t.reactions!==null)for(u=rr;u<m.length;u++)((w=(y=m[u]).reactions)!=null?w:y.reactions=[]).push(t)}else m!==null&&rr<m.length&&(Ol(t,rr),m.length=rr);if(os()&&or!==null&&!nr&&m!==null&&(t.f&6146)===0)for(u=0;u<or.length;u++)Ig(or[u],t);return n!==null&&n!==t&&(Pc++,or!==null&&(o===null?o=or:o.push(...or))),f}catch(x){Sg(x)}finally{fn=e,rr=i,or=o,Et=n,fs=s,Ho=l,Tl(d),nr=a,t.f^=2097152}}function z0(t,e){let i=e.reactions;if(i!==null){var o=Hv.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),$c(e),Ol(e,0))}function Ol(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)z0(t,i[o])}function Wa(t){var e=t.f;if((e&16384)===0){cn(t,1024);var i=vt,o=oa;if(vt=t,oa=!0,Pe){var n=tr;El(t.component_function)}try{(e&16)!==0?bg(t):yp(t),$p(t);var s=yc(t);if(t.teardown=typeof s=="function"?s:null,t.wv=Eg,Pe&&is&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=kl(),l.set_during_effect=!1);Pe&&Hl.push(t)}finally{oa=o,vt=i,Pe&&El(n)}}}function Cg(){console.error("Last ten effects were: ",Hl.slice(-10).map(t=>t.fn)),Hl=[]}function W0(){try{Yv()}catch(t){if(Pe&&Ji(t,"stack",{value:""}),Qa!==null)if(Pe)try{Dl(t,Qa)}catch(e){throw Cg(),e}else Dl(t,Qa);else throw Pe&&Cg(),t}}function Ep(){var t=oa;try{var e=0;for(oa=!0;Fl.length>0;){e++>1e3&&W0();var i=Fl,o=i.length;Fl=[];for(var n=0;n<o;n++){var s=q0(i[n]);K0(s)}Ua.clear()}}finally{ia=!1,oa=t,Qa=null,Pe&&(Hl=[])}}function K0(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&Xs(o)&&(Wa(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?wp(o):o.fn=null))}}function Pl(t){ia||(ia=!0,queueMicrotask(Ep));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}}Fl.push(e)}function q0(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:Xs(i)&&Wa(i);var l=i.first;if(l!==null){i=l;continue}}var d=i.parent;for(i=i.next;i===null&&d!==null;)i=d.next,d=d.parent}return e}function Ga(t){var e;for(t&&(ia=!0,Ep(),ia=!0,e=t());;){if(xg(),Fl.length===0)return ia=!1,Qa=null,Pe&&(Hl=[]),e;ia=!0,Ep()}}async function bo(){await Promise.resolve(),Ga()}function r(t){var e=t.f,i=(e&2)!==0;if(Lc!==null&&Lc.add(t),Et!==null&&!nr){if(!(Ho!=null&&Ho[1].includes(t))||Ho[0]!==Et){var o=Et.deps;t.rv<Pc&&(t.rv=Pc,fn===null&&o!==null&&o[rr]===t?rr++:fn===null?fn=[t]:(!fs||!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,Xs(n)&&gp(n)),Pe&&is&&!nr&&Cl!==null&&Et!==null&&Cl.reaction===Et)if(t.trace)t.trace();else{var l=us("TracedAt");if(l){var d=Cl.entries.get(t);d===void 0&&(d={traces:[]},Cl.entries.set(t,d));var a=d.traces[d.traces.length-1];l.stack!==(a==null?void 0:a.stack)&&d.traces.push(l)}}return ps&&Ua.has(t)?Ua.get(t):t.v}function xt(t){var e=nr;try{return nr=!0,t()}finally{nr=e}}var Q0=-7169;function cn(t,e){t.f=t.f&Q0|e}function Vc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Bo in t)Mc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Bo in i&&Mc(i)}}}function Mc(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{Mc(t[o],e)}catch(n){}let i=Gs(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=vc(i);for(let n in o){let s=o[n].get;if(s)try{s.call(t)}catch(l){}}}}}function Ip(t,e){if(e){let i=document.body;t.autofocus=!0,pn(()=>{document.activeElement===i&&t.focus()})}}function Ul(t){var e=Et,i=vt;Fi(null),eo(null);try{return t()}finally{Fi(e),eo(i)}}var kp=new Set,Rc=new Set;function na(t){if(!Xe)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Ap(t,e,i,o={}){function n(s){if(o.capture||ja.call(e,s),!s.cancelBubble)return Ul(()=>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 Ct(t,e,i,o,n){var s={capture:o,passive:n},l=Ap(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Do(()=>{e.removeEventListener(t,l,s)})}function dt(t){for(var e=0;e<t.length;e++)kp.add(t[e]);for(var i of Rc)i(t)}function ja(t){var E;var e=this,i=e.ownerDocument,o=t.type,n=((E=t.composedPath)==null?void 0:E.call(t))||[],s=n[0]||t.target,l=0,d=t.__root;if(d){var a=n.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var p=n.indexOf(e);if(p===-1)return;a<=p&&(l=a)}if(s=n[l]||t.target,s!==e){Ji(t,"currentTarget",{configurable:!0,get(){return s||i}});var f=Et,m=vt;Fi(null),eo(null);try{for(var u,y=[];s!==null;){var w=s.assignedSlot||s.parentNode||s.host||null;try{var x=s["__"+o];if(x!=null&&(!s.disabled||t.target===s))if(Jn(x)){var[T,...C]=x;T.apply(s,[t,...C])}else x.call(s,t)}catch(R){u?y.push(R):u=R}if(t.cancelBubble||w===e||w===null)break;s=w}if(u){for(let R of y)queueMicrotask(()=>{throw R});throw u}}finally{t.__root=e,delete t.currentTarget,Fi(f),eo(m)}}}var j0;function kg(){j0=void 0}function Ya(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 M(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,s=!t.startsWith("<!>");return()=>{if(Xe)return $o(gt,null),gt;n===void 0&&(n=Ya(s?t:"<!>"+t),i||(n=yi(n)));var l=o||Ll?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=yi(l),a=l.lastChild;$o(d,a)}else $o(l,l);return l}}function X0(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(Xe)return $o(gt,null),gt;if(!l){var d=Ya(s),a=yi(d);if(n)for(l=document.createDocumentFragment();yi(a);)l.appendChild(yi(a));else l=yi(a)}var p=l.cloneNode(!0);if(n){var f=yi(p),m=p.lastChild;$o(f,m)}else $o(p,p);return p}}function we(t,e){return X0(t,e,"svg")}function rs(t=""){if(!Xe){var e=un(t+"");return $o(e,e),e}var i=gt;return i.nodeType!==Ra&&(i.before(i=un()),fi(i)),$o(i,i),i}function Fe(){if(Xe)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(Xe){vt.nodes_end=gt,Ui();return}t!==null&&t.before(e)}var J0=/\r/g;function Pg(t){t=t.replace(J0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Lg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var e_=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Mg(t){return e_.includes(t)}var t_=["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 i_={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Vg(t){var e;return t=t.toLowerCase(),(e=i_[t])!=null?e:t}var xS=[...t_,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var o_=["touchstart","touchmove"];function Rg(t){return o_.includes(t)}var n_=["$state","$state.raw","$derived","$derived.by"],wS=[...n_,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var r_=["textarea","script","style","title"];function Ng(t){return r_.includes(t)}function Nc(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var zl=!0;function Oc(t){zl=t}function ve(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function Hr(t,e){return Og(t,e)}function Lp(t,e){var l;Cc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=Xe,n=gt;try{for(var s=yi(i);s&&(s.nodeType!==er||s.data!==Ls);)s=Uo(s);if(!s)throw es;to(!0),fi(s),Ui();let d=Og(t,{...e,anchor:s});if(gt===null||gt.nodeType!==er||gt.data!==Qs)throw Ns(),es;return to(!1),d}catch(d){if(d===es)return e.recover===!1&&Zv(),Cc(),Ml(i),to(!1),Hr(t,e);throw d}finally{to(o),fi(n),kg()}}var Za=new Map;function Og(t,{target:e,anchor:i,props:o={},events:n,context:s,intro:l=!0}){Cc();var d=new Set,a=m=>{for(var u=0;u<m.length;u++){var y=m[u];if(!d.has(y)){d.add(y);var w=Rg(y);e.addEventListener(y,ja,{passive:w});var x=Za.get(y);x===void 0?(document.addEventListener(y,ja,{passive:w}),Za.set(y,1)):Za.set(y,x+1)}}};a(Sl(kp)),Rc.add(a);var p=void 0,f=_g(()=>{var m=i!=null?i:e.appendChild(un());return Ni(()=>{if(s){U({});var u=Vt;u.c=s}n&&(o.$$events=n),Xe&&$o(m,null),zl=l,p=t(m,o)||{},zl=!0,Xe&&(vt.nodes_end=gt),s&&z()}),()=>{var w;for(var u of d){e.removeEventListener(u,ja);var y=Za.get(u);--y===0?(document.removeEventListener(u,ja),Za.delete(u)):Za.set(u,y)}Rc.delete(a),m!==i&&((w=m.parentNode)==null||w.removeChild(m))}});return Pp.set(p,f),p}var Pp=new WeakMap;function ra(t,e){let i=Pp.get(t);return i?(Pp.delete(t),i(e)):(Pe&&ug(),Promise.resolve())}function ge(t,e,...i){var o=t,n=ae,s;zi(()=>{n!==(n=e())&&(s&&(Hi(s),s=null),Pe&&n==null&&Xv(),s=Ni(()=>n(o,...i)))},65536),Xe&&(o=gt)}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;tg(e)},set:o=>{i=o}})}};d_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var d_;function Pt(t){Vt===null&&Ba("onMount"),ts&&Vt.l!==null?l_(Vt).m.push(t):qe(()=>{let e=xt(t);if(typeof e=="function")return e})}function Jo(t){Vt===null&&Ba("onDestroy"),Pt(()=>()=>xt(t))}function l_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var Bg=new Map;function Dg(t,e){var i=Bg.get(t);i||(i=new Set,Bg.set(t,i)),i.add(e)}function V(t,e,[i,o]=[0,0]){Xe&&i===0&&Ui();var n=t,s=null,l=null,d=Qi,a=i>0?65536:0,p=!1;let f=(u,y=!0)=>{p=!0,m(y,u)},m=(u,y)=>{if(d===(d=u))return;let w=!1;if(Xe&&o!==-1){if(i===0){let T=Sc(n);T===Ls?o=0:T===Ms?o=1/0:(o=parseInt(T.substring(1)),o!==o&&(o=d?1/0:-1))}let x=o>i;!!d===x&&(n=Js(),fi(n),to(!1),w=!0,o=-1)}d?(s?vs(s):y&&(s=Ni(()=>y(n))),l&&An(l,()=>{l=null})):(l?vs(l):y&&(l=Ni(()=>y(n,[i+1,o]))),s&&An(s,()=>{s=null})),w&&to(!0)};zi(()=>{p=!1,e(f),p||m(null,null)},a),Xe&&(n=gt)}function gs(t,e,i){Xe&&Ui();var o=t,n=Qi,s,l=os()?Kv:Na;zi(()=>{l(n,n=e())&&(s&&An(s),s=Ni(()=>i(o)))}),Xe&&(o=gt)}var Bs=null;function Rp(t){Bs=t}function Wl(t,e){return e}function p_(t,e,i,o){for(var n=[],s=e.length,l=0;l<s;l++)kc(e[l].e,n,!0);var d=s>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;Ml(a),a.append(i),o.clear(),Os(t,e[0].prev,e[s-1].next)}Sp(n,()=>{for(var p=0;p<s;p++){var f=e[p];d||(o.delete(f.k),Os(t,f.prev,f.next)),Hi(f.e,!d)}})}function ki(t,e,i,o,n,s=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var p=t;l=Xe?fi(yi(p)):p.appendChild(un())}Xe&&Ui();var f=null,m=!1,u=Br(()=>{var y=i();return Jn(y)?y:y==null?[]:Sl(y)});zi(()=>{var y=r(u),w=y.length;if(m&&w===0)return;m=w===0;let x=!1;if(Xe){var T=Sc(l)===Ms;T!==(w===0)&&(l=Js(),fi(l),to(!1),x=!0)}if(Xe){for(var C=null,E,R=0;R<w;R++){if(gt.nodeType===er&&gt.data===Qs){l=gt,x=!0,to(!1);break}var I=y[R],k=o(I,R);E=Ug(gt,d,C,null,I,k,R,n,e,i),d.items.set(k,E),C=E}w>0&&fi(Js())}Xe||f_(y,d,l,n,e,o,i),s!==null&&(w===0?f?vs(f):f=Ni(()=>s(l)):f!==null&&An(f,()=>{f=null})),x&&to(!0),r(u)}),Xe&&(l=gt)}function f_(t,e,i,o,n,s,l){var J,pe,me,ue;var d=(n&8)!==0,a=(n&3)!==0,p=t.length,f=e.items,m=e.first,u=m,y,w=null,x,T=[],C=[],E,R,I,k;if(d)for(k=0;k<p;k+=1)E=t[k],R=s(E,k),I=f.get(R),I!==void 0&&((J=I.a)==null||J.measure(),(x!=null?x:x=new Set).add(I));for(k=0;k<p;k+=1){if(E=t[k],R=s(E,k),I=f.get(R),I===void 0){var B=u?u.e.nodes_start:i;w=Ug(B,e,w,w===null?e.first:w.next,E,R,k,o,n,l),f.set(R,w),T=[],C=[],u=w.next;continue}if(a&&m_(I,E,k,n),(I.e.f&8192)!==0&&(vs(I.e),d&&((pe=I.a)==null||pe.unfix(),(x!=null?x:x=new Set).delete(I))),I!==u){if(y!==void 0&&y.has(I)){if(T.length<C.length){var F=C[0],H;w=F.prev;var W=T[0],Y=T[T.length-1];for(H=0;H<T.length;H+=1)Fg(T[H],F,i);for(H=0;H<C.length;H+=1)y.delete(C[H]);Os(e,W.prev,Y.next),Os(e,w,W),Os(e,Y,F),u=F,w=Y,k-=1,T=[],C=[]}else y.delete(I),Fg(I,u,i),Os(e,I.prev,I.next),Os(e,I,w===null?e.first:w.next),Os(e,w,I),w=I;continue}for(T=[],C=[];u!==null&&u.k!==R;)(u.e.f&8192)===0&&(y!=null?y:y=new Set).add(u),C.push(u),u=u.next;if(u===null)continue;I=u}T.push(I),w=I,u=I.next}if(u!==null||y!==void 0){for(var oe=y===void 0?[]:Sl(y);u!==null;)(u.e.f&8192)===0&&oe.push(u),u=u.next;var G=oe.length;if(G>0){var he=(n&4)!==0&&p===0?i:null;if(d){for(k=0;k<G;k+=1)(me=oe[k].a)==null||me.measure();for(k=0;k<G;k+=1)(ue=oe[k].a)==null||ue.fix()}p_(e,oe,he,f)}}d&&pn(()=>{var Le;if(x!==void 0)for(I of x)(Le=I.a)==null||Le.apply()}),vt.first=e.first&&e.first.e,vt.last=w&&w.e}function m_(t,e,i,o){(o&1)!==0&&za(t.v,e),(o&2)!==0?za(t.i,i):t.i=i}function Ug(t,e,i,o,n,s,l,d,a,p){var f=Bs,m=(a&1)!==0,u=(a&16)===0,y=m?u?ns(n,!1,!1):wr(n):n,w=(a&2)===0?l:wr(l);Pe&&m&&(y.trace=()=>{var T=typeof w=="number"?l:w.v;p()[T]});var x={i:w,v:y,k:s,a:null,e:null,prev:i,next:o};Bs=x;try{return x.e=Ni(()=>d(t,y,w,p),Xe),x.e.prev=i&&i.e,x.e.next=o&&o.e,i===null?e.first=x:(i.next=x,i.e.next=x.e),o!==null&&(o.prev=x,o.e.prev=x.e),x}finally{Bs=f}}function Fg(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,s=t.e.nodes_start;s!==o;){var l=Uo(s);n.before(s),s=l}}function Os(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 v_(t,e,i){var s,l;if(!e||e===Pg(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=tr)!=null&&l[Tn]&&(o=`in ${tr[Tn]}`),cg(Nc(o))}function Kl(t,e,i=!1,o=!1,n=!1){var s=t,l="";D(()=>{var y;var d=vt;if(l===(l=(y=e())!=null?y:"")){Xe&&Ui();return}if(d.nodes_start!==null&&(xp(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(Xe){for(var a=gt.data,p=Ui(),f=p;p!==null&&(p.nodeType!==er||p.data!=="");)f=p,p=Uo(p);if(p===null)throw Ns(),es;Pe&&!n&&v_(p.parentNode,a,l),$o(gt,f),s=fi(p);return}var m=l+"";i?m=`<svg>${m}</svg>`:o&&(m=`<math>${m}</math>`);var u=Ya(m);if((i||o)&&(u=yi(u)),$o(yi(u),u.lastChild),i||o)for(;yi(u);)s.before(yi(u));else s.before(u)}})}function Ai(t,e,i){Xe&&Ui();var o=t,n,s;zi(()=>{n!==(n=e())&&(s&&(An(s),s=null),n&&(s=Ni(()=>i(o,n))))},65536),Xe&&(o=gt)}function sa(t,e,i,o,n,s){var w;let l=Xe;Xe&&Ui();var d=Pe&&s&&((w=Vt)==null?void 0:w.function[Tn]),a,p,f=null;Xe&&gt.nodeType===hc&&(f=gt,Ui());var m=Xe?gt:t,u,y=Bs;zi(()=>{let x=e()||null;var T=n?n():i||x==="svg"?fc:null;if(x!==a){var C=Bs;Rp(y),u&&(x===null?An(u,()=>{u=null,p=null}):x===p?vs(u):(Hi(u),Oc(!1))),x&&x!==p&&(u=Ni(()=>{if(f=Xe?f:T?document.createElementNS(T,x):document.createElement(x),Pe&&s&&(f.__svelte_meta={loc:{file:d,line:s[0],column:s[1]}}),$o(f,f),o){Xe&&Ng(x)&&f.append(document.createComment(""));var E=Xe?yi(f):f.appendChild(un());Xe&&(E===null?to(!1):fi(E)),o(f,E)}vt.nodes_end=f,m.before(f)})),a=x,a&&(p=a),Oc(!0),Rp(C)}},65536),l&&(to(!0),fi(m))}var Op;function zg(t){return Op=t.target,new Np(t)}var hs,Sr,Np=class{constructor(e){Ps(this,hs);Ps(this,Sr);var s,l;var i=new Map,o=(d,a)=>{var p=ns(a,!1,!1);return i.set(d,p),p};let n=new Proxy({...e.props||{},$$events:{}},{get(d,a){var p;return r((p=i.get(a))!=null?p:o(a,Reflect.get(d,a)))},has(d,a){var p;return a===Va?!0:(r((p=i.get(a))!=null?p:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,p){var f;return O((f=i.get(a))!=null?f:o(a,p),p),Reflect.set(d,a,p)}});Ma(this,Sr,(e.hydrate?Lp:Hr)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(s=e.intro)!=null?s:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&Ga(),Ma(this,hs,n.$$events);for(let d of Object.keys(Ri(this,Sr)))d==="$set"||d==="$destroy"||d==="$on"||Ji(this,d,{get(){return Ri(this,Sr)[d]},set(a){Ri(this,Sr)[d]=a},enumerable:!0});Ri(this,Sr).$set=d=>{Object.assign(n,d)},Ri(this,Sr).$destroy=()=>{ra(Ri(this,Sr))}}$set(e){Ri(this,Sr).$set(e)}$on(e,i){Ri(this,hs)[e]=Ri(this,hs)[e]||[];let o=(...n)=>i.call(this,...n);return Ri(this,hs)[e].push(o),()=>{Ri(this,hs)[e]=Ri(this,hs)[e].filter(n=>n!==o)}}$destroy(){Ri(this,Sr).$destroy()}};hs=new WeakMap,Sr=new WeakMap;function K(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=Op)==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),Pe&&Dg(e.hash,d)}})}function _s(t,e){var i=void 0,o;zi(()=>{i!==(i=e())&&(o&&(Hi(o),o=null),i&&(o=Ni(()=>{_o(()=>i(t))})))})}function Wg(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=Wg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Kg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Wg(t))&&(o&&(o+=" "),o+=e);return o}function ql(t){return typeof t=="object"?Kg(t):t!=null?t:""}var qg=[...`
44
- \r\f\xA0\v\uFEFF`];function Gg(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||qg.includes(o[l-1]))&&(d===o.length||qg.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function Qg(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 Bp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function jg(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(Bp)),n&&a.push(...Object.keys(n).map(Bp));var p=0,f=-1;let x=t.length;for(var m=0;m<x;m++){var u=t[m];if(d?u==="/"&&t[m-1]==="*"&&(d=!1):s?s===u&&(s=!1):u==="/"&&t[m+1]==="*"?d=!0:u==='"'||u==="'"?s=u:u==="("?l++:u===")"&&l--,!d&&s===!1&&l===0){if(u===":"&&f===-1)f=m;else if(u===";"||m===x-1){if(f!==-1){var y=Bp(t.substring(p,f).trim());if(!a.includes(y)){u!==";"&&m++;var w=t.substring(p,m).trim();i+=" "+w+";"}}p=m+1,f=-1}}}}return o&&(i+=Qg(o)),n&&(i+=Qg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ne(t,e,i,o,n,s){var l=t.__className;if(Xe||l!==i||l===void 0){var d=Gg(i,o,s);(!Xe||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(s&&n!==s)for(var a in s){var p=!!s[a];(n==null||p!==!!n[a])&&t.classList.toggle(a,p)}return s}function Dp(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 at(t,e,i,o){var n=t.__style;if(Xe||n!==e){var s=jg(e,o);(!Xe||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}else o&&(Array.isArray(o)?(Dp(t,i==null?void 0:i[0],o[0]),Dp(t,i==null?void 0:i[1],o[1],"important")):Dp(t,i,o));return o}function Ql(t,e,i){if(t.multiple){if(e==null)return;if(!Jn(e))return pg();for(var o of t.options)o.selected=e.includes(Yg(o));return}for(o of t.options){var n=Yg(o);if(up(n,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Fp(t){var e=new MutationObserver(()=>{Ql(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Do(()=>{e.disconnect()})}function Yg(t){return"__value"in t?t.__value:t.value}var Xa=Symbol("class"),Ja=Symbol("style"),Jg=Symbol("is custom element"),eh=Symbol("is html");function th(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function He(t,e,i,o){var n=oh(t);if(Xe&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||w_(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Wv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&nh(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function ih(t,e,i,o,n=!1){var I;var s=oh(t),l=s[Jg],d=!s[eh];let a=Xe&&l;a&&to(!1);var p=e||{},f=t.tagName==="OPTION";for(var m in e)m in i||(i[m]=null);i.class?i.class=ql(i.class):(o||i[Xa])&&(i.class=null),i[Ja]&&((I=i.style)!=null||(i.style=null));var u=nh(t);for(let k in i){let B=i[k];if(f&&k==="value"&&B==null){t.value=t.__value="",p[k]=B;continue}if(k==="class"){var y=t.namespaceURI==="http://www.w3.org/1999/xhtml";ne(t,y,B,o,e==null?void 0:e[Xa],i[Xa]),p[k]=B,p[Xa]=i[Xa];continue}if(k==="style"){at(t,B,e==null?void 0:e[Ja],i[Ja]),p[k]=B,p[Ja]=i[Ja];continue}var w=p[k];if(!(B===w&&!(B===void 0&&t.hasAttribute(k)))){p[k]=B;var x=k[0]+k[1];if(x!=="$$")if(x==="on"){let F={},H="$$"+k,W=k.slice(2);var T=Mg(W);if(Lg(W)&&(W=W.slice(0,-7),F.capture=!0),!T&&w){if(B!=null)continue;t.removeEventListener(W,p[H],F),p[H]=null}if(B!=null)if(T)t[`__${W}`]=B,dt([W]);else{let Y=function(oe){p[k].call(this,oe)};var R=Y;p[H]=Ap(W,t,Y,F)}else T&&(t[`__${W}`]=void 0)}else if(k==="style")He(t,k,B);else if(k==="autofocus")Ip(t,!!B);else if(!l&&(k==="__value"||k==="value"&&B!=null))t.value=t.__value=B;else if(k==="selected"&&f)th(t,B);else{var C=k;d||(C=Vg(C));var E=C==="defaultValue"||C==="defaultChecked";if(B==null&&!l&&!E)if(s[k]=null,C==="value"||C==="checked"){let F=t,H=e===void 0;if(C==="value"){let W=F.defaultValue;F.removeAttribute(C),F.defaultValue=W,F.value=F.__value=H?W:null}else{let W=F.defaultChecked;F.removeAttribute(C),F.defaultChecked=W,F.checked=H?W:!1}}else t.removeAttribute(k);else E||u.includes(C)&&(l||typeof B!="string")?t[C]=B:typeof B!="function"&&He(t,C,B,n)}}}return a&&to(!0),p}function Ie(t,e,i=[],o,n=!1,s=Or){let l=i.map(s);var d=void 0,a={},p=t.nodeName==="SELECT",f=!1;if(zi(()=>{var u=e(...l.map(r)),y=ih(t,d,u,o,n);f&&p&&"value"in u&&Ql(t,u.value,!1);for(let x of Object.getOwnPropertySymbols(a))u[x]||Hi(a[x]);for(let x of Object.getOwnPropertySymbols(u)){var w=u[x];x.description===op&&(!d||w!==d[x])&&(a[x]&&Hi(a[x]),a[x]=Ni(()=>_s(t,()=>w))),y[x]=w}d=y}),p){var m=t;_o(()=>{Ql(m,d.value),Fp(m)})}f=!0}function oh(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Jg]:t.nodeName.includes("-"),[eh]:t.namespaceURI===Ov}}var Zg=new Map;function nh(t){var e=Zg.get(t.nodeName);if(e)return e;Zg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=vc(o);for(var s in i)i[s].set&&e.push(s);o=Gs(o)}return e}function w_(t,e,i){var o;Pe&&(e==="srcset"&&S_(t,i)||Hp((o=t.getAttribute(e))!=null?o:"",i)||dg(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Hp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Xg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function S_(t,e){var i=Xg(t.srcset),o=Xg(e);return o.length===i.length&&o.every(([n,s],l)=>s===i[l][1]&&(Hp(i[l][0],n)||Hp(n,i[l][0])))}var C_=mc?()=>performance.now():()=>Date.now(),Ur={tick:t=>(mc?requestAnimationFrame:ae)(t),now:()=>C_(),tasks:new Set};function rh(){let t=Ur.now();Ur.tasks.forEach(e=>{e.c(t)||(Ur.tasks.delete(e),e.f())}),Ur.tasks.size!==0&&Ur.tick(rh)}function sh(t){let e;return Ur.tasks.size===0&&Ur.tick(rh),{promise:new Promise(i=>{Ur.tasks.add(e={c:t,f:i})}),abort(){Ur.tasks.delete(e)}}}function Bc(t,e){Ul(()=>{t.dispatchEvent(new CustomEvent(e))})}function k_(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 ah(t){let e={},i=t.split(";");for(let o of i){let[n,s]=o.split(":");if(!n||s===void 0)break;let l=k_(n.trim());e[l]=s.trim()}return e}var A_=t=>t;function zp(t,e,i,o){var R;var n=(t&1)!==0,s=(t&2)!==0,l=n&&s,d=(t&4)!==0,a=l?"both":n?"in":"out",p,f=e.inert,m=e.style.overflow,u,y;function w(){var B;var I=Et,k=vt;Fi(null),eo(null);try{return p!=null?p:p=i()(e,(B=o==null?void 0:o())!=null?B:{},{direction:a})}finally{Fi(I),eo(k)}}var x={is_global:d,in(){var I;if(e.inert=f,!n){y==null||y.abort(),(I=y==null?void 0:y.reset)==null||I.call(y);return}s||u==null||u.abort(),Bc(e,"introstart"),u=Up(e,w(),y,1,()=>{Bc(e,"introend"),u==null||u.abort(),u=p=void 0,e.style.overflow=m})},out(I){if(!s){I==null||I(),p=void 0;return}e.inert=!0,Bc(e,"outrostart"),y=Up(e,w(),u,0,()=>{Bc(e,"outroend"),I==null||I()})},stop:()=>{u==null||u.abort(),y==null||y.abort()}},T=vt;if(((R=T.transitions)!=null?R:T.transitions=[]).push(x),n&&zl){var C=d;if(!C){for(var E=T.parent;E&&(E.f&65536)!==0;)for(;(E=E.parent)&&(E.f&16)===0;);C=!E||(E.f&32768)!==0}C&&_o(()=>{xt(()=>x.in())})}}function Up(t,e,i,o,n){var s=o===1;if(Vs(e)){var l,d=!1;return pn(()=>{if(!d){var T=e({direction:s?"in":"out"});l=Up(t,T,i,o,n)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:ae,deactivate:ae,reset:ae,t:()=>o};let{delay:a=0,css:p,tick:f,easing:m=A_}=e;var u=[];if(s&&i===void 0&&(f&&f(0,1),p)){var y=ah(p(0,1));u.push(y,y)}var w=()=>1-o,x=t.animate(u,{duration:a,fill:"forwards"});return x.onfinish=()=>{var W;x.cancel();var T=(W=i==null?void 0:i.t())!=null?W:1-o;i==null||i.abort();var C=o-T,E=e.duration*Math.abs(C),R=[];if(E>0){var I=!1;if(p)for(var k=Math.ceil(E/16.666666666666668),B=0;B<=k;B+=1){var F=T+C*m(B/k),H=ah(p(F,1-F));R.push(H),I||(I=H.overflow==="hidden")}I&&(t.style.overflow="hidden"),w=()=>{var Y=x.currentTime;return T+C*m(Y/E)},f&&sh(()=>{if(x.playState!=="running")return!1;var Y=w();return f(Y,1-Y),!0})}x=t.animate(R,{duration:E,fill:"forwards"}),x.onfinish=()=>{w=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{x&&(x.cancel(),x.effect=null,x.onfinish=ae)},deactivate:()=>{n=ae},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var Ds,el,Gl,Fc,lh,Hc=class Hc{constructor(e){Ps(this,Fc);Ps(this,Ds,new WeakMap);Ps(this,el);Ps(this,Gl);Ma(this,Gl,e)}observe(e,i){var o=Ri(this,Ds).get(e)||new Set;return o.add(i),Ri(this,Ds).set(e,o),Rv(this,Fc,lh).call(this).observe(e,Ri(this,Gl)),()=>{var n=Ri(this,Ds).get(e);n.delete(i),n.size===0&&(Ri(this,Ds).delete(e),Ri(this,el).unobserve(e))}}};Ds=new WeakMap,el=new WeakMap,Gl=new WeakMap,Fc=new WeakSet,lh=function(){var e;return(e=Ri(this,el))!=null?e:Ma(this,el,new ResizeObserver(i=>{for(var o of i){Hc.entries.set(o.target,o);for(var n of Ri(this,Ds).get(o.target)||[])n(o)}}))},Xn(Hc,"entries",new WeakMap);var Wp=Hc;var P_=new Wp({box:"border-box"});function sr(t,e,i){var o=P_.observe(t,()=>i(t[e]));_o(()=>(xt(()=>i(t[e])),o))}function dh(t,e){return t===e||(t==null?void 0:t[Bo])===e}function st(t={},e,i,o){return _o(()=>{var n,s;return zo(()=>{n=s,s=(o==null?void 0:o())||[],xt(()=>{t!==i(...s)&&(e(t,...s),n&&dh(i(...n),t)&&e(null,...n))})}),()=>{pn(()=>{s&&dh(i(...s),t)&&e(null,...s)})}}),t}function zr(t=!1){let e=Vt,i=e.l.u;if(!i)return;let o=()=>Vc(e.s);if(t){let n=0,s={},l=Or(()=>{let d=!1,a=e.s;for(let p in a)a[p]!==s[p]&&(s[p]=a[p],d=!0);return d&&n++,n});o=()=>r(l)}i.b.length&&Nl(()=>{ch(e,o),Rs(i.b)}),qe(()=>{let n=xt(()=>i.m.map(zv));return()=>{for(let s of n)typeof s=="function"&&s()}}),i.a.length&&qe(()=>{ch(e,o),Rs(i.a)})}function ch(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}function jl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ae;let o=xt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var tl=[];function Cr(t,e){return{subscribe:se(t,e).subscribe}}function se(t,e=ae){let i=null,o=new Set;function n(d){if(Na(t,d)&&(t=d,i)){let a=!tl.length;for(let p of o)p[1](),tl.push(p,t);if(a){for(let p=0;p<tl.length;p+=2)tl[p][0](tl[p+1]);tl.length=0}}}function s(d){n(d(t))}function l(d,a=ae){let p=[d,a];return o.add(p),o.size===1&&(i=e(n,s)||ae),d(t),()=>{o.delete(p),o.size===0&&i&&(i(),i=null)}}return{set:n,update:s,subscribe:l}}function mi(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 Cr(i,(l,d)=>{let a=!1,p=[],f=0,m=ae,u=()=>{if(f)return;m();let w=e(o?p[0]:p,l,d);s?l(w):m=typeof w=="function"?w:ae},y=n.map((w,x)=>jl(w,T=>{p[x]=T,f&=~(1<<x),a&&u()},()=>{f|=1<<x}));return a=!0,u(),function(){Rs(y),m(),a=!1}})}function $e(t){let e;return jl(t,i=>e=i)(),e}var Uc=!1,Kp=Symbol();function S(t,e,i){var s;let o=(s=i[e])!=null?s:i[e]={store:null,source:ns(void 0),unsubscribe:ae};if(o.store!==t&&!(Kp in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=ae;else{var n=!0;o.unsubscribe=jl(t,l=>{n?o.source.v=l:O(o.source,l)}),n=!1}return t&&Kp in i?$e(t):r(o.source)}function Be(){let t={};function e(){Do(()=>{for(var i in t)t[i].unsubscribe();Ji(t,Kp,{enumerable:!1,value:!0})})}return[t,e]}function qp(t){var e=Uc;try{return Uc=!1,[t(),Uc]}finally{Uc=e}}var B_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Pe&&eg(`${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(Pe?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},B_)}var D_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Vs(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];Vs(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(Vs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Yo(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Bo||e===Va)return!1;for(let i of t.props)if(Vs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Vs(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 bs(...t){return new Proxy({props:t},D_)}function uh(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function v(t,e,i,o){var F,H;var n=(i&1)!==0,s=!ts||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,p;l?[p,a]=qp(()=>t[e]):p=t[e];var f=Bo in t||Va in t,m=l&&((H=(F=Yo(t,e))==null?void 0:F.set)!=null?H:f&&e in t&&(W=>t[e]=W))||void 0,u=o,y=!0,w=!1,x=()=>(w=!0,y&&(y=!1,d?u=xt(o):u=o),u);p===void 0&&o!==void 0&&(m&&s&&Jv(e),p=x(),m&&m(p));var T;if(s)T=()=>{var W=t[e];return W===void 0?x():(y=!0,w=!1,W)};else{var C=(n?Or:Br)(()=>t[e]);C.f|=131072,T=()=>{var W=r(C);return W!==void 0&&(u=void 0),W===void 0?u:W}}if((i&4)===0&&s)return T;if(m){var E=t.$$legacy;return function(W,Y){return arguments.length>0?((!s||!Y||E||a)&&m(Y?T():W),W):T()}}var R=!1,I=!1,k=ns(p),B=Or(()=>{var W=T(),Y=r(k);return R?(R=!1,I=!0,Y):(I=!1,k.v=W)});return l&&r(B),n||(B.equals=Oa),function(W,Y){if(Lc!==null&&(R=I,T(),r(k)),arguments.length>0){let oe=Y?r(B):s&&l?Zt(W):W;if(!B.equals(oe)){if(R=!0,O(k,oe),w&&u!==void 0&&(u=oe),uh(B))return W;xt(()=>r(B))}return W}return uh(B)?B.v:r(B)}}var F_;typeof HTMLElement=="function"&&(F_=class extends HTMLElement{constructor(e,i,o){super();Xn(this,"$$ctor");Xn(this,"$$s");Xn(this,"$$c");Xn(this,"$$cn",!1);Xn(this,"$$d",{});Xn(this,"$$r",!1);Xn(this,"$$p_d",{});Xn(this,"$$l",{});Xn(this,"$$l_u",new Map);Xn(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=H_(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]=Qp(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=zg({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=Ic(()=>{zo(()=>{var s;this.$$r=!0;for(let l of np(this.$$c)){if(!((s=this.$$p_d[l])!=null&&s.reflect))continue;this.$$d[l]=this.$$c[l];let d=Qp(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]=Qp(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 np(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Qp(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 H_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var ph="5";var fh,mh,vh;typeof window!="undefined"&&((vh=(mh=(fh=window.__svelte)!=null?fh:window.__svelte={}).v)!=null?vh:mh.v=new Set).add(ph);import{areValidLiveRecordSources as R5,clientChecker as mv}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-core/es2018";import{noop as b0,safeStorage as N5,throttleFn as O5}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as B5}from"@vkontakte/videoplayer-statistics/es2018";import{InterfaceLanguage as U_,fillWithDefault as z_,VideoQuality as gh}from"@vkontakte/videoplayer-shared/es2018";var W_={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:U_.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:gh.Q_480P,highQualityLimit:gh.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,returnFocusOnControlsHide:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,interactiveHistoryEndChapterFix:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1,usePerformanceFix:!1,userVideoPrefs:!1,savePreferredStatesOnUserActionOnly:!1,useLoopSetting:!1,doubleForwardAvailable:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,paramsOverride:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null},userSalt:"0",doubleForwardActivationTime:600,playbackStatusAnimationDuration:1e3,playbackStatusNextVideoAnimationDuration:1e3},hh=t=>z_(t,W_),_h=t=>Fa("ui-config",t),Tt=()=>Da("ui-config");var Yl="vk_player_debug_panel_opened";var bh="videoplayer",$h="videoplayer";var ss={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},yh=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),xh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),wh=new Set(["ShiftRight","ShiftLeft"]);var Sh=["TIMELINE"],Zl=[...Sh,"GRAPH_BUTTON"],Gp=[...Sh,"PLAY_BUTTON"],Xl=[...Zl,"PLAY_BUTTON"];var as=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(as||{}),la={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Ch,VERSION as K_}from"@vkontakte/videoplayer-shared/es2018";import{VERSION as q_}from"@vkontakte/videoplayer-core/es2018";import{VERSION as Q_}from"@vkontakte/videoplayer-statistics/es2018";var zc="prod",il="1.1.75-beta.0";var da=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Th=Symbol("storeContext"),Eh=Symbol("microStoresContext"),Ih=(t,e)=>{Fa(Th,t),Fa(Eh,e),zc==="dev"&&(window.app={store:t,microStores:e})},Ce=()=>{let t=Da(Th);return Ch(t,"Store context is empty!"),t},lo=()=>{let t=Da(Eh);return Ch(t,"MicroStores context is empty!"),t},Xt=(t,e)=>Kc(t,t.getValue(),e),Kc=(t,e,i)=>Cr(e,o=>{let n=t.subscribe(s=>{o(s),i==null||i(s)});return()=>n.unsubscribe()}),kh=(t,e,i,o)=>{var B,F,H,W,Y,oe,G,he;let n=t.info,{width:s,height:l}=$e(i.ui.playerSize),d=(F=(B=n.throughputEstimation$.getValue())==null?void 0:B.toFixed(0))!=null?F:0,a=(W=(H=n.rttEstimation$.getValue())==null?void 0:H.toFixed(0))!=null?W:0,p=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${il} (core: ${q_}, stat: ${Q_}, shared: ${K_})`,m=$e(i.state.errorLog$),u=m.length?`
45
- `+m.map((J,pe)=>{var Me;let me=`${pe}) Type: ${J.id}
46
- `,ue=`Message: ${J.message} (${J.thrown})
47
- `,Le=`Trace: ${(Me=J.thrown)==null?void 0:Me.stack}
48
- `;return me+ue+Le}).join(`
49
- `):void 0,y=i.state.isAudioDisabled?"disabled":$e(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),x=t.info.currentAudioStream$.getValue(),T=[];w&&T.push(`Video: ${(Y=w==null?void 0:w.codec)!=null?Y:""}`+(w!=null&&w.hdr?" (HDR)":"")),x&&T.push(`Audio: ${(oe=x==null?void 0:x.codec)!=null?oe:""}`+(x!=null&&x.language?` (${x.language})`:""));let C=n.currentQuality$.getValue(),E="";if(C){let J=n.availableQualitiesFps$.getValue()[C];E=J?`${J}fps`:""}let R=(he=(G=n.currentBuffer$.getValue())==null?void 0:G.end)!=null?he:0,I=Math.max(R-$e(i.state.positionExact$),0),k={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:T.join(", "),Quality:`${p} ${C} ${E}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:y,Position:`${$e(i.state.positionExact$)}s`,Buffer:`${I}s`,State:`${$e(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${s}x${l}`,URL:window.location.href,Errors:u};return Object.entries(k).filter(([J,pe])=>pe!==void 0).map(([J,pe])=>`${J}: ${pe}`).join(`
50
- `)},Ah=(t,e,i)=>{var F,H,W,Y;let o=t.info,{width:n,height:s}=$e(i.ui.playerSize),l={version:il,viewport:`${n}x${s}`,volume:Math.round($e(i.state.volume$)*100)};l.id=i.videoId,o.currentFormat$.getValue()&&(l.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(l.cdn=o.hostname$.getValue());let p=o.intrinsicVideoSize$.getValue();p&&(l.videoSize=`${p.width}x${p.height}`);let f=o.currentBuffer$.getValue(),m=o.isLive$.getValue(),u=o.liveBufferTime$.getValue();f&&(m&&u?l.buffer=f.end-u:l.buffer=Math.max(f.end-$e(i.state.positionExact$),0)),l.position=$e(i.state.positionExact$);let y=o.throughputEstimation$.getValue();y&&(l.speed=y);let w=o.videoBitrate$.getValue();w&&(l.bitrate=w);let x=o.liveLatency$.getValue();x&&(l.liveLatency=x);let T=o.currentVideoSegmentLength$.getValue();T&&(l.currentVideoSegmentLength=T);let C=o.currentAudioSegmentLength$.getValue();C&&(l.currentAudioSegmentLength=C);let E=$e(i.vsid);typeof E=="string"&&(l.vsid=E);let R=(F=t.info.currentVideoStream$.getValue())==null?void 0:F.codec;R&&(l.videoCodec=R);let I=(H=t.info.currentAudioStream$.getValue())==null?void 0:H.codec;I&&(l.audioCodec=I),((W=t.info.currentVideoStream$.getValue())==null?void 0:W.hdr)&&(l.hdr=!0);let B=(Y=t.info.currentAudioStream$.getValue())==null?void 0:Y.language;return B&&(l.audioLanguage=B),l},Ph=(t,e)=>da(t,e,"mp4"),Lh=t=>!t.type,Mh=t=>!!t.type,Vh=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},Wc=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 Xp,safeStorage as Oi}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-core/es2018";var Rh="vk_player_prefer_traffic_saving_enabled",Nh="vk_player_preferred_volume",Oh="vk_player_prefer_volume_mute",Jp="vk_player_preferred_quality",jp="vk_player_preferred_default_quality_settings",Yp="vk_player_preferred_quality_settings_by_video",Bh="vk_player_preferred_stream_language",Dh="vk_player_preferred_rate",Fh="vk_player_preferred_autoplay_next",Zp="vk_player_preferred_subtitles_language",Hh="vk_player_user_video_prefs",Uh=t=>t>1?1:t<0?0:t,ef=t=>Oi.set(Nh,Uh(t).toString(10)),qc=()=>{let t=Oi.get(Nh);return Xp(t)?void 0:Uh(parseFloat(t))},tf=(t,e)=>Oi.set(Jp,JSON.stringify({videoId:t,value:e})),Qc=()=>Oi.remove(Jp),of=t=>{let e=Oi.get(Jp);if(Xp(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Qc();return}return o},nf=(t,e)=>{e?Oi.set(t,"true"):Oi.remove(t)},rf=t=>Oi.get(t)==="true",sf=t=>nf(Oh,t),zh=()=>rf(Oh),Jl=t=>nf(Rh,t),af=()=>rf(Rh),Wh=()=>Oi.get(Bh),lf=t=>Oi.set(Bh,t),df=()=>Oi.get(Zp),cf=t=>{t?Oi.set(Zp,t):Oi.remove(Zp)},Kh=t=>Oi.set(Dh,JSON.stringify({rate:t})),qh=()=>{let t=Oi.get(Dh);if(Xp(t))return;let{rate:e}=JSON.parse(t);return e},Qh=t=>nf(Fh,t),Gh=()=>rf(Fh),G_=()=>{let t=f=>{Oi.set(jp,JSON.stringify(f))},e=()=>{try{let f=Oi.get(jp);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=Oi.get(Yp);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{Oi.set(Yp,JSON.stringify(f))},n=f=>{p(f);let m=f?i():null;if(m&&(m==null?void 0:m.videoId)===f)return{...m,appliesTo:"to-video"};m&&s();let u=e();return u?{...u,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},s=()=>{Oi.remove(Yp)},l=()=>{Oi.remove(jp)},d=(f,m="as-default")=>{f.type==="exact_quality"||m==="to-video"?o(f):t(f)},a=f=>{let m=n(f);if(m){switch(m.type){case"traffic_saving":Jl(!0);break;case"exact_quality":tf(f,m.quality)}s(),l()}},p=f=>{let m=of(f);if(m){o({type:"exact_quality",videoId:f,quality:m});return}af()&&t({type:"traffic_saving",videoId:f}),Jl(!1),Qc()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:df,savePreferredSubtitlesLanguage:cf}},{getPreferredQualitySettings:jh,migrateSettingsToLegacyWay:Yh,savePreferredQualitySettings:Gc,savePreferredDefaultQualitySettings:GL,removePreferredQualitySettingsByVideo:jL,getPreferredDefaultQualitySettings:jc}=G_(),j_=3,Y_=3,Zh=()=>{let t=Oi.get(Hh);if(t)try{return JSON.parse(t)}catch(e){return null}return null},Yc=(t,e)=>{var n,s;let i=Zh();return(s=(n=i==null?void 0:i[t])==null?void 0:n[e])!=null?s:null},uf=(t,e,i)=>{var l,d,a;let o=(l=Zh())!=null?l:{},n=(a=(d=o[t])==null?void 0:d[e])!=null?a:{};Object.assign(n,i,{updatedTs:Date.now()}),t in o||(o[t]={}),o[t][e]=n;let s=Z_(o);Oi.set(Hh,JSON.stringify(s))};function Z_(t){let e=Object.entries(t).reduce((o,[n,s])=>{let l=0;return Object.values(s).forEach(d=>{l<d.updatedTs&&(l=d.updatedTs)}),o.push([n,l]),o},[]);return e.sort(([,o],[,n])=>o>n?-1:1),e.splice(Y_),e.reduce((o,[n])=>(o[n]=X_(t[n]),o),{})}function X_(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(j_),Object.fromEntries(e)}import{PlaybackState as g0}from"@vkontakte/videoplayer-core/es2018";var J_=we('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"></path><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-opacity=".12" stroke-width=".5" d="m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"></path></g><defs><filter id="a" width="75" height="44" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_618_12297"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_618_12297" result="shape"></feBlend></filter></defs></svg>');function ed(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=J_();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 s;return(s=e.children)!=null?s:ae}),xe(2),h(o),$(t,o)}import{isNullable as e1,InterfaceLanguage as t1}from"@vkontakte/videoplayer-shared/es2018";var eb={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_pip_close:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_sound_unavailable:"\u0417\u0432\u0443\u043A \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",tooltip_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving:"\u0420\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",aria_label_context_menu:"\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_autoplay:"\u0410\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
43
+ `)})}}var _a=!1,ml=null,ba=!1,_s=!1;function kp(t){_s=t}var dd=[],cd=[],Vt=null,nr=!1;function zi(t){Vt=t}var $t=null;function so(t){$t=t}var Uo=null;function Fc(t){Vt!==null&&Vt.f&2097152&&(Uo===null?Uo=[Vt,[t]]:Uo[1].push(t))}var wn=null,rr=0,or=null;function Ig(t){or=t}var Qg=1,Yc=0,bs=!1,Zc=null;function Xl(){return++Qg}function va(t){var v,p;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var r,s,l=(e&512)!==0,d=o&&$t!==null&&!bs,a=i.length;if(l||d){var u=t,f=u.parent;for(r=0;r<a;r++)s=i[r],(l||!((v=s==null?void 0:s.reactions)!=null&&v.includes(u)))&&((p=s.reactions)!=null?p:s.reactions=[]).push(u);l&&(u.f^=512),d&&f!==null&&(f.f&256)===0&&(u.f^=256)}for(r=0;r<a;r++)if(s=i[r],va(s)&&Ip(s),s.wv>t.wv)return!0}(!o||$t!==null&&!bs)&&$n(t,1024)}return!1}function Gg(t,e,i=!0){var o=t.reactions;if(o!==null)for(var r=0;r<o.length;r++){var s=o[r];Uo!=null&&Uo[1].includes(t)&&Uo[0]===Vt||((s.f&2)!==0?Gg(s,e,!1):e===s&&(i?$n(s,2048):(s.f&1024)!==0&&$n(s,4096),ed(s)))}}function Hc(t){var y,w;var e=wn,i=rr,o=or,r=Vt,s=bs,l=Uo,d=Ht,a=nr,u=t.f;wn=null,rr=0,or=null,bs=(u&256)!==0&&(nr||!ba||Vt===null),Vt=(u&96)===0?t:null,Uo=null,jl(t.ctx),nr=!1,Yc++,t.f|=2097152;try{var f=(0,t.fn)(),v=t.deps;if(wn!==null){var p;if(sd(t,rr),v!==null&&rr>0)for(v.length=rr+wn.length,p=0;p<wn.length;p++)v[rr+p]=wn[p];else t.deps=v=wn;if(!bs||(u&2)!==0&&t.reactions!==null)for(p=rr;p<v.length;p++)((w=(y=v[p]).reactions)!=null?w:y.reactions=[]).push(t)}else v!==null&&rr<v.length&&(sd(t,rr),v.length=rr);if(os()&&or!==null&&!nr&&v!==null&&(t.f&6146)===0)for(p=0;p<or.length;p++)Gg(or[p],t);return r!==null&&r!==t&&(Yc++,or!==null&&(o===null?o=or:o.push(...or))),f}catch(x){Wg(x)}finally{wn=e,rr=i,or=o,Vt=r,bs=s,Uo=l,jl(d),nr=a,t.f^=2097152}}function h_(t,e){let i=e.reactions;if(i!==null){var o=ag.call(i,t);if(o!==-1){var r=i.length-1;r===0?i=e.reactions=null:(i[o]=i[r],i.pop())}}i===null&&(e.f&2)!==0&&(wn===null||!wn.includes(e))&&($n(e,4096),(e.f&768)===0&&(e.f^=512),Bc(e),sd(e,0))}function sd(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)h_(t,i[o])}function pl(t){var e=t.f;if((e&16384)===0){$n(t,1024);var i=$t,o=ba;if($t=t,ba=!0,Le){var r=tr;Yl(t.component_function)}try{(e&16)!==0?Bg(t):Lp(t),Mp(t);var s=Hc(t);if(t.teardown=typeof s=="function"?s:null,t.wv=Qg,Le&&is&&(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&&cd.push(t)}finally{ba=o,$t=i,Le&&Yl(r)}}}function Kg(){console.error("Last ten effects were: ",cd.slice(-10).map(t=>t.fn)),cd=[]}function __(){try{gg()}catch(t){if(Le&&ro(t,"stack",{value:""}),ml!==null)if(Le)try{ld(t,ml)}catch(e){throw Kg(),e}else ld(t,ml);else throw Le&&Kg(),t}}function Bp(){var t=ba;try{var e=0;for(ba=!0;dd.length>0;){e++>1e3&&__();var i=dd,o=i.length;dd=[];for(var r=0;r<o;r++){var s=$_(i[r]);b_(s)}cl.clear()}}finally{_a=!1,ba=t,ml=null,Le&&(cd=[])}}function b_(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&va(o)&&(pl(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Rp(o):o.fn=null))}}function ed(t){_a||(_a=!0,queueMicrotask(Bp));for(var e=ml=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}dd.push(e)}function $_(t){for(var e=[],i=t;i!==null;){var o=i.f,r=(o&96)!==0,s=r&&(o&1024)!==0;if(!s&&(o&8192)===0){(o&4)!==0?e.push(i):r?i.f^=1024:va(i)&&pl(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 gl(t){var e;for(t&&(_a=!0,Bp(),_a=!0,e=t());;){if(Ug(),dd.length===0)return _a=!1,ml=null,Le&&(cd=[]),e;_a=!0,Bp()}}async function Eo(){await Promise.resolve(),gl()}function n(t){var e=t.f,i=(e&2)!==0;if(Zc!==null&&Zc.add(t),Vt!==null&&!nr){if(!(Uo!=null&&Uo[1].includes(t))||Uo[0]!==Vt){var o=Vt.deps;t.rv<Yc&&(t.rv=Yc,wn===null&&o!==null&&o[rr]===t?rr++:wn===null?wn=[t]:(!bs||!wn.includes(t))&&wn.push(t))}}else if(i&&t.deps===null&&t.effects===null){var r=t,s=r.parent;s!==null&&(s.f&256)===0&&(r.f^=256)}if(i&&(r=t,va(r)&&Ip(r)),Le&&is&&!nr&&Gl!==null&&Vt!==null&&Gl.reaction===Vt)if(t.trace)t.trace();else{var l=hs("TracedAt");if(l){var d=Gl.entries.get(t);d===void 0&&(d={traces:[]},Gl.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 _s&&cl.has(t)?cl.get(t):t.v}function kt(t){var e=nr;try{return nr=!0,t()}finally{nr=e}}var y_=-7169;function $n(t,e){t.f=t.f&y_|e}function Jc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Ho in t)Xc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Ho 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(r){}let i=ca(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Vc(i);for(let r in o){let s=o[r].get;if(s)try{s.call(t)}catch(l){}}}}}function Hp(t,e){if(e){let i=document.body;t.autofocus=!0,xn(()=>{document.activeElement===i&&t.focus()})}}function ud(t){var e=Vt,i=$t;zi(null),so(null);try{return t()}finally{zi(e),so(i)}}var Fp=new Set,eu=new Set;function $a(t){if(!ot)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 Up(t,e,i,o={}){function r(s){if(o.capture||hl.call(e,s),!s.cancelBubble)return ud(()=>i==null?void 0:i.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?xn(()=>{e.addEventListener(t,r,o)}):e.addEventListener(t,r,o),r}function wt(t,e,i,o,r){var s={capture:o,passive:r},l=Up(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Co(()=>{e.removeEventListener(t,l,s)})}function lt(t){for(var e=0;e<t.length;e++)Fp.add(t[e]);for(var i of eu)i(t)}function hl(t){var E;var e=this,i=e.ownerDocument,o=t.type,r=((E=t.composedPath)==null?void 0:E.call(t))||[],s=r[0]||t.target,l=0,d=t.__root;if(d){var a=r.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var u=r.indexOf(e);if(u===-1)return;a<=u&&(l=a)}if(s=r[l]||t.target,s!==e){ro(t,"currentTarget",{configurable:!0,get(){return s||i}});var f=Vt,v=$t;zi(null),so(null);try{for(var p,y=[];s!==null;){var w=s.assignedSlot||s.parentNode||s.host||null;try{var x=s["__"+o];if(x!=null&&(!s.disabled||t.target===s))if(Jn(x)){var[C,...T]=x;C.apply(s,[t,...T])}else x.call(s,t)}catch(R){p?y.push(R):p=R}if(t.cancelBubble||w===e||w===null)break;s=w}if(p){for(let R of y)queueMicrotask(()=>{throw R});throw p}}finally{t.__root=e,delete t.currentTarget,zi(f),so(v)}}}var w_;function jg(){w_=void 0}function _l(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Io(t,e){var i=$t;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function M(t,e){var i=(e&1)!==0,o=(e&2)!==0,r,s=!t.startsWith("<!>");return()=>{if(ot)return Io(yt,null),yt;r===void 0&&(r=_l(s?t:"<!>"+t),i||(r=Ti(r)));var l=o||td?document.importNode(r,!0):r.cloneNode(!0);if(i){var d=Ti(l),a=l.lastChild;Io(d,a)}else Io(l,l);return l}}function T_(t,e,i="svg"){var o=!t.startsWith("<!>"),r=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(ot)return Io(yt,null),yt;if(!l){var d=_l(s),a=Ti(d);if(r)for(l=document.createDocumentFragment();Ti(a);)l.appendChild(Ti(a));else l=Ti(a)}var u=l.cloneNode(!0);if(r){var f=Ti(u),v=u.lastChild;Io(f,v)}else Io(u,u);return u}}function Ee(t,e){return T_(t,e,"svg")}function rs(t=""){if(!ot){var e=yn(t+"");return Io(e,e),e}var i=yt;return i.nodeType!==ol&&(i.before(i=yn()),Si(i)),Io(i,i),i}function He(){if(ot)return Io(yt,null),yt;var t=document.createDocumentFragment(),e=document.createComment(""),i=yn();return t.append(e,i),Io(e,i),t}function b(t,e){if(ot){$t.nodes_end=yt,Ki();return}t!==null&&t.before(e)}var E_=/\r/g;function Zg(t){t=t.replace(E_,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Xg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var I_=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Jg(t){return I_.includes(t)}var k_=["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 A_={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 eh(t){var e;return t=t.toLowerCase(),(e=A_[t])!=null?e:t}var $C=[...k_,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var P_=["touchstart","touchmove"];function th(t){return P_.includes(t)}var M_=["$state","$state.raw","$derived","$derived.by"],yC=[...M_,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var L_=["textarea","script","style","title"];function ih(t){return L_.includes(t)}function tu(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var pd=!0;function iu(t){pd=t}function ve(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function qr(t,e){return oh(t,e)}function Wp(t,e){var l;Wc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=ot,r=yt;try{for(var s=Ti(i);s&&(s.nodeType!==er||s.data!==Bs);)s=zo(s);if(!s)throw es;ao(!0),Si(s),Ki();let d=oh(t,{...e,anchor:s});if(yt===null||yt.nodeType!==er||yt.data!==da)throw zs(),es;return ao(!1),d}catch(d){if(d===es)return e.recover===!1&&hg(),Wc(),id(i),ao(!1),qr(t,e);throw d}finally{ao(o),Si(r),jg()}}var bl=new Map;function oh(t,{target:e,anchor:i,props:o={},events:r,context:s,intro:l=!0}){Wc();var d=new Set,a=v=>{for(var p=0;p<v.length;p++){var y=v[p];if(!d.has(y)){d.add(y);var w=th(y);e.addEventListener(y,hl,{passive:w});var x=bl.get(y);x===void 0?(document.addEventListener(y,hl,{passive:w}),bl.set(y,1)):bl.set(y,x+1)}}};a(Ql(Fp)),eu.add(a);var u=void 0,f=Dg(()=>{var v=i!=null?i:e.appendChild(yn());return Di(()=>{if(s){F({});var p=Ht;p.c=s}r&&(o.$$events=r),ot&&Io(v,null),pd=l,u=t(v,o)||{},pd=!0,ot&&($t.nodes_end=yt),s&&U()}),()=>{var w;for(var p of d){e.removeEventListener(p,hl);var y=bl.get(p);--y===0?(document.removeEventListener(p,hl),bl.delete(p)):bl.set(p,y)}eu.delete(a),v!==i&&((w=v.parentNode)==null||w.removeChild(v))}});return zp.set(u,f),u}var zp=new WeakMap;function ya(t,e){let i=zp.get(t);return i?(zp.delete(t),i(e)):(Le&&Pg(),Promise.resolve())}function _e(t,e,...i){var o=t,r=ce,s;qi(()=>{r!==(r=e())&&(s&&(Wi(s),s=null),Le&&r==null&&_g(),s=Di(()=>r(o,...i)))},65536),ot&&(o=yt)}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;yg(e)},set:o=>{i=o}})}};O_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var O_;function Rt(t){Ht===null&&sl("onMount"),ts&&Ht.l!==null?N_(Ht).m.push(t):ze(()=>{let e=kt(t);if(typeof e=="function")return e})}function on(t){Ht===null&&sl("onDestroy"),Rt(()=>()=>kt(t))}function N_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var nh=new Map;function rh(t,e){var i=nh.get(t);i||(i=new Set,nh.set(t,i)),i.add(e)}function V(t,e,[i,o]=[0,0]){ot&&i===0&&Ki();var r=t,s=null,l=null,d=Ji,a=i>0?65536:0,u=!1;let f=(p,y=!0)=>{u=!0,v(y,p)},v=(p,y)=>{if(d===(d=p))return;let w=!1;if(ot&&o!==-1){if(i===0){let C=zc(r);C===Bs?o=0:C===Hs?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let x=o>i;!!d===x&&(r=ma(),Si(r),ao(!1),w=!0,o=-1)}d?(s?ys(s):y&&(s=Di(()=>y(r))),l&&Nn(l,()=>{l=null})):(l?ys(l):y&&(l=Di(()=>y(r,[i+1,o]))),s&&Nn(s,()=>{s=null})),w&&ao(!0)};qi(()=>{u=!1,e(f),u||v(null,null)},a),ot&&(r=yt)}function xs(t,e,i){ot&&Ki();var o=t,r=Ji,s,l=os()?ug:nl;qi(()=>{l(r,r=e())&&(s&&Nn(s),s=Di(()=>i(o)))}),ot&&(o=yt)}var Ks=null;function Qp(t){Ks=t}function fd(t,e){return e}function H_(t,e,i,o){for(var r=[],s=e.length,l=0;l<s;l++)Gc(e[l].e,r,!0);var d=s>0&&r.length===0&&i!==null;if(d){var a=i.parentNode;id(a),a.append(i),o.clear(),Ws(t,e[0].prev,e[s-1].next)}Np(r,()=>{for(var u=0;u<s;u++){var f=e[u];d||(o.delete(f.k),Ws(t,f.prev,f.next)),Wi(f.e,!d)}})}function wi(t,e,i,o,r,s=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var u=t;l=ot?Si(Ti(u)):u.appendChild(yn())}ot&&Ki();var f=null,v=!1,p=bn(()=>{var y=i();return Jn(y)?y:y==null?[]:Ql(y)});qi(()=>{var y=n(p),w=y.length;if(v&&w===0)return;v=w===0;let x=!1;if(ot){var C=zc(l)===Hs;C!==(w===0)&&(l=ma(),Si(l),ao(!1),x=!0)}if(ot){for(var T=null,E,R=0;R<w;R++){if(yt.nodeType===er&&yt.data===da){l=yt,x=!0,ao(!1);break}var A=y[R],I=o(A,R);E=lh(yt,d,T,null,A,I,R,r,e,i),d.items.set(I,E),T=E}w>0&&Si(ma())}ot||F_(y,d,l,r,e,o,i),s!==null&&(w===0?f?ys(f):f=Di(()=>s(l)):f!==null&&Nn(f,()=>{f=null})),x&&ao(!0),n(p)}),ot&&(l=yt)}function F_(t,e,i,o,r,s,l){var X,fe,re,le;var d=(r&8)!==0,a=(r&3)!==0,u=t.length,f=e.items,v=e.first,p=v,y,w=null,x,C=[],T=[],E,R,A,I;if(d)for(I=0;I<u;I+=1)E=t[I],R=s(E,I),A=f.get(R),A!==void 0&&((X=A.a)==null||X.measure(),(x!=null?x:x=new Set).add(A));for(I=0;I<u;I+=1){if(E=t[I],R=s(E,I),A=f.get(R),A===void 0){var O=p?p.e.nodes_start:i;w=lh(O,e,w,w===null?e.first:w.next,E,R,I,o,r,l),f.set(R,w),C=[],T=[],p=w.next;continue}if(a&&U_(A,E,I,r),(A.e.f&8192)!==0&&(ys(A.e),d&&((fe=A.a)==null||fe.unfix(),(x!=null?x:x=new Set).delete(A))),A!==p){if(y!==void 0&&y.has(A)){if(C.length<T.length){var H=T[0],B;w=H.prev;var z=C[0],Z=C[C.length-1];for(B=0;B<C.length;B+=1)sh(C[B],H,i);for(B=0;B<T.length;B+=1)y.delete(T[B]);Ws(e,z.prev,Z.next),Ws(e,w,z),Ws(e,Z,H),p=H,w=Z,I-=1,C=[],T=[]}else y.delete(A),sh(A,p,i),Ws(e,A.prev,A.next),Ws(e,A,w===null?e.first:w.next),Ws(e,w,A),w=A;continue}for(C=[],T=[];p!==null&&p.k!==R;)(p.e.f&8192)===0&&(y!=null?y:y=new Set).add(p),T.push(p),p=p.next;if(p===null)continue;A=p}C.push(A),w=A,p=A.next}if(p!==null||y!==void 0){for(var ae=y===void 0?[]:Ql(y);p!==null;)(p.e.f&8192)===0&&ae.push(p),p=p.next;var q=ae.length;if(q>0){var de=(r&4)!==0&&u===0?i:null;if(d){for(I=0;I<q;I+=1)(re=ae[I].a)==null||re.measure();for(I=0;I<q;I+=1)(le=ae[I].a)==null||le.fix()}H_(e,ae,de,f)}}d&&xn(()=>{var Me;if(x!==void 0)for(A of x)(Me=A.a)==null||Me.apply()}),$t.first=e.first&&e.first.e,$t.last=w&&w.e}function U_(t,e,i,o){(o&1)!==0&&ul(t.v,e),(o&2)!==0?ul(t.i,i):t.i=i}function lh(t,e,i,o,r,s,l,d,a,u){var f=Ks,v=(a&1)!==0,p=(a&16)===0,y=v?p?ns(r,!1,!1):br(r):r,w=(a&2)===0?l:br(l);Le&&v&&(y.trace=()=>{var C=typeof w=="number"?l:w.v;u()[C]});var x={i:w,v:y,k:s,a:null,e:null,prev:i,next:o};Ks=x;try{return x.e=Di(()=>d(t,y,w,u),ot),x.e.prev=i&&i.e,x.e.next=o&&o.e,i===null?e.first=x:(i.next=x,i.e.next=x.e),o!==null&&(o.prev=x,o.e.prev=x.e),x}finally{Ks=f}}function sh(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,r=e?e.e.nodes_start:i,s=t.e.nodes_start;s!==o;){var l=zo(s);r.before(s),s=l}}function Ws(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 z_(t,e,i){var s,l;if(!e||e===Zg(String(i!=null?i:"")))return;let o,r=(s=t.__svelte_meta)==null?void 0:s.loc;r?o=`near ${r.file}:${r.line}:${r.column}`:(l=tr)!=null&&l[Mn]&&(o=`in ${tr[Mn]}`),Ag(tu(o))}function vd(t,e,i=!1,o=!1,r=!1){var s=t,l="";D(()=>{var y;var d=$t;if(l===(l=(y=e())!=null?y:"")){ot&&Ki();return}if(d.nodes_start!==null&&(Vp(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(ot){for(var a=yt.data,u=Ki(),f=u;u!==null&&(u.nodeType!==er||u.data!=="");)f=u,u=zo(u);if(u===null)throw zs(),es;Le&&!r&&z_(u.parentNode,a,l),Io(yt,f),s=Si(u);return}var v=l+"";i?v=`<svg>${v}</svg>`:o&&(v=`<math>${v}</math>`);var p=_l(v);if((i||o)&&(p=Ti(p)),Io(Ti(p),p.lastChild),i||o)for(;Ti(p);)s.before(Ti(p));else s.before(p)}})}function Pi(t,e,i){ot&&Ki();var o=t,r,s;qi(()=>{r!==(r=e())&&(s&&(Nn(s),s=null),r&&(s=Di(()=>i(o,r))))},65536),ot&&(o=yt)}function xa(t,e,i,o,r,s){var w;let l=ot;ot&&Ki();var d=Le&&s&&((w=Ht)==null?void 0:w.function[Mn]),a,u,f=null;ot&&yt.nodeType===Nc&&(f=yt,Ki());var v=ot?yt:t,p,y=Ks;qi(()=>{let x=e()||null;var C=r?r():i||x==="svg"?Mc:null;if(x!==a){var T=Ks;Qp(y),p&&(x===null?Nn(p,()=>{p=null,u=null}):x===u?ys(p):(Wi(p),iu(!1))),x&&x!==u&&(p=Di(()=>{if(f=ot?f:C?document.createElementNS(C,x):document.createElement(x),Le&&s&&(f.__svelte_meta={loc:{file:d,line:s[0],column:s[1]}}),Io(f,f),o){ot&&ih(x)&&f.append(document.createComment(""));var E=ot?Ti(f):f.appendChild(yn());ot&&(E===null?ao(!1):Si(E)),o(f,E)}$t.nodes_end=f,v.before(f)})),a=x,a&&(u=a),iu(!0),Qp(T)}},65536),l&&(ao(!0),Si(v))}var jp;function dh(t){return jp=t.target,new Gp(t)}var ws,$r,Gp=class{constructor(e){Ds(this,ws);Ds(this,$r);var s,l;var i=new Map,o=(d,a)=>{var u=ns(a,!1,!1);return i.set(d,u),u};let r=new Proxy({...e.props||{},$$events:{}},{get(d,a){var u;return n((u=i.get(a))!=null?u:o(a,Reflect.get(d,a)))},has(d,a){var u;return a===il?!0:(n((u=i.get(a))!=null?u:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,u){var f;return N((f=i.get(a))!=null?f:o(a,u),u),Reflect.set(d,a,u)}});tl(this,$r,(e.hydrate?Wp:qr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:(s=e.intro)!=null?s:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&gl(),tl(this,ws,r.$$events);for(let d of Object.keys(Oi(this,$r)))d==="$set"||d==="$destroy"||d==="$on"||ro(this,d,{get(){return Oi(this,$r)[d]},set(a){Oi(this,$r)[d]=a},enumerable:!0});Oi(this,$r).$set=d=>{Object.assign(r,d)},Oi(this,$r).$destroy=()=>{ya(Oi(this,$r))}}$set(e){Oi(this,$r).$set(e)}$on(e,i){Oi(this,ws)[e]=Oi(this,ws)[e]||[];let o=(...r)=>i.call(this,...r);return Oi(this,ws)[e].push(o),()=>{Oi(this,ws)[e]=Oi(this,ws)[e].filter(r=>r!==o)}}$destroy(){Oi(this,$r).$destroy()}};ws=new WeakMap,$r=new WeakMap;function W(t,e){xn(()=>{var r,s,l;var i=t.getRootNode(),o=i.host?i:(l=(r=i.head)!=null?r:i.ownerDocument.head)!=null?l:(s=jp)==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&&rh(e.hash,d)}})}function Ss(t,e){var i=void 0,o;qi(()=>{i!==(i=e())&&(o&&(Wi(o),o=null),i&&(o=Di(()=>{To(()=>i(t))})))})}function ch(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(i=ch(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function uh(){for(var t,e,i=0,o="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=ch(t))&&(o&&(o+=" "),o+=e);return o}function md(t){return typeof t=="object"?uh(t):t!=null?t:""}var ph=[...`
44
+ \r\f\xA0\v\uFEFF`];function vh(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var r in i)if(i[r])o=o?o+" "+r:r;else if(o.length)for(var s=r.length,l=0;(l=o.indexOf(r,l))>=0;){var d=l+s;(l===0||ph.includes(o[l-1]))&&(d===o.length||ph.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function fh(t,e=!1){var i=e?" !important;":";",o="";for(var r in t){var s=t[r];s!=null&&s!==""&&(o+=" "+r+": "+s+i)}return o}function Yp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function mh(t,e){if(e){var i="",o,r;if(Array.isArray(e)?(o=e[0],r=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var s=!1,l=0,d=!1,a=[];o&&a.push(...Object.keys(o).map(Yp)),r&&a.push(...Object.keys(r).map(Yp));var u=0,f=-1;let x=t.length;for(var v=0;v<x;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===x-1){if(f!==-1){var y=Yp(t.substring(u,f).trim());if(!a.includes(y)){p!==";"&&v++;var w=t.substring(u,v).trim();i+=" "+w+";"}}u=v+1,f=-1}}}}return o&&(i+=fh(o)),r&&(i+=fh(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ne(t,e,i,o,r,s){var l=t.__className;if(ot||l!==i||l===void 0){var d=vh(i,o,s);(!ot||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(s&&r!==s)for(var a in s){var u=!!s[a];(r==null||u!==!!r[a])&&t.classList.toggle(a,u)}return s}function Zp(t,e={},i,o){for(var r in i){var s=i[r];e[r]!==s&&(i[r]==null?t.style.removeProperty(r):t.style.setProperty(r,s,o))}}function Xe(t,e,i,o){var r=t.__style;if(ot||r!==e){var s=mh(e,o);(!ot||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}else o&&(Array.isArray(o)?(Zp(t,i==null?void 0:i[0],o[0]),Zp(t,i==null?void 0:i[1],o[1],"important")):Zp(t,i,o));return o}function gd(t,e,i){if(t.multiple){if(e==null)return;if(!Jn(e))return Mg();for(var o of t.options)o.selected=e.includes(gh(o));return}for(o of t.options){var r=gh(o);if(wp(r,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Xp(t){var e=new MutationObserver(()=>{gd(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Co(()=>{e.disconnect()})}function gh(t){return"__value"in t?t.__value:t.value}var $l=Symbol("class"),yl=Symbol("style"),bh=Symbol("is custom element"),$h=Symbol("is html");function yh(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function We(t,e,i,o){var r=wh(t);if(ot&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||Z_(t,e,i!=null?i:"");return}r[e]!==(r[e]=i)&&(e==="loading"&&(t[cg]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Sh(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function xh(t,e,i,o,r=!1){var A;var s=wh(t),l=s[bh],d=!s[$h];let a=ot&&l;a&&ao(!1);var u=e||{},f=t.tagName==="OPTION";for(var v in e)v in i||(i[v]=null);i.class?i.class=md(i.class):(o||i[$l])&&(i.class=null),i[yl]&&((A=i.style)!=null||(i.style=null));var p=Sh(t);for(let I in i){let O=i[I];if(f&&I==="value"&&O==null){t.value=t.__value="",u[I]=O;continue}if(I==="class"){var y=t.namespaceURI==="http://www.w3.org/1999/xhtml";ne(t,y,O,o,e==null?void 0:e[$l],i[$l]),u[I]=O,u[$l]=i[$l];continue}if(I==="style"){Xe(t,O,e==null?void 0:e[yl],i[yl]),u[I]=O,u[yl]=i[yl];continue}var w=u[I];if(!(O===w&&!(O===void 0&&t.hasAttribute(I)))){u[I]=O;var x=I[0]+I[1];if(x!=="$$")if(x==="on"){let H={},B="$$"+I,z=I.slice(2);var C=Jg(z);if(Xg(z)&&(z=z.slice(0,-7),H.capture=!0),!C&&w){if(O!=null)continue;t.removeEventListener(z,u[B],H),u[B]=null}if(O!=null)if(C)t[`__${z}`]=O,lt([z]);else{let Z=function(ae){u[I].call(this,ae)};var R=Z;u[B]=Up(z,t,Z,H)}else C&&(t[`__${z}`]=void 0)}else if(I==="style")We(t,I,O);else if(I==="autofocus")Hp(t,!!O);else if(!l&&(I==="__value"||I==="value"&&O!=null))t.value=t.__value=O;else if(I==="selected"&&f)yh(t,O);else{var T=I;d||(T=eh(T));var E=T==="defaultValue"||T==="defaultChecked";if(O==null&&!l&&!E)if(s[I]=null,T==="value"||T==="checked"){let H=t,B=e===void 0;if(T==="value"){let z=H.defaultValue;H.removeAttribute(T),H.defaultValue=z,H.value=H.__value=B?z:null}else{let z=H.defaultChecked;H.removeAttribute(T),H.defaultChecked=z,H.checked=B?z:!1}}else t.removeAttribute(I);else E||p.includes(T)&&(l||typeof O!="string")?t[T]=O:typeof O!="function"&&We(t,T,O,r)}}}return a&&ao(!0),u}function ke(t,e,i=[],o,r=!1,s=zr){let l=i.map(s);var d=void 0,a={},u=t.nodeName==="SELECT",f=!1;if(qi(()=>{var p=e(...l.map(n)),y=xh(t,d,p,o,r);f&&u&&"value"in p&&gd(t,p.value,!1);for(let x of Object.getOwnPropertySymbols(a))p[x]||Wi(a[x]);for(let x of Object.getOwnPropertySymbols(p)){var w=p[x];x.description===mp&&(!d||w!==d[x])&&(a[x]&&Wi(a[x]),a[x]=Di(()=>Ss(t,()=>w))),y[x]=w}d=y}),u){var v=t;To(()=>{gd(v,d.value),Xp(v)})}f=!0}function wh(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[bh]:t.nodeName.includes("-"),[$h]:t.namespaceURI===og}}var hh=new Map;function Sh(t){var e=hh.get(t.nodeName);if(e)return e;hh.set(t.nodeName,e=[]);for(var i,o=t,r=Element.prototype;r!==o;){i=Vc(o);for(var s in i)i[s].set&&e.push(s);o=ca(o)}return e}function Z_(t,e,i){var o;Le&&(e==="srcset"&&X_(t,i)||Jp((o=t.getAttribute(e))!=null?o:"",i)||kg(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Jp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function _h(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function X_(t,e){var i=_h(t.srcset),o=_h(e);return o.length===i.length&&o.every(([r,s],l)=>s===i[l][1]&&(Jp(i[l][0],r)||Jp(r,i[l][0])))}var J_=Lc?()=>performance.now():()=>Date.now(),Qr={tick:t=>(Lc?requestAnimationFrame:ce)(t),now:()=>J_(),tasks:new Set};function Ch(){let t=Qr.now();Qr.tasks.forEach(e=>{e.c(t)||(Qr.tasks.delete(e),e.f())}),Qr.tasks.size!==0&&Qr.tick(Ch)}function Th(t){let e;return Qr.tasks.size===0&&Qr.tick(Ch),{promise:new Promise(i=>{Qr.tasks.add(e={c:t,f:i})}),abort(){Qr.tasks.delete(e)}}}function ou(t,e){ud(()=>{t.dispatchEvent(new CustomEvent(e))})}function ob(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 Eh(t){let e={},i=t.split(";");for(let o of i){let[r,s]=o.split(":");if(!r||s===void 0)break;let l=ob(r.trim());e[l]=s.trim()}return e}var nb=t=>t;function Gr(t,e,i,o){var R;var r=(t&1)!==0,s=(t&2)!==0,l=r&&s,d=(t&4)!==0,a=l?"both":r?"in":"out",u,f=e.inert,v=e.style.overflow,p,y;function w(){var O;var A=Vt,I=$t;zi(null),so(null);try{return u!=null?u:u=i()(e,(O=o==null?void 0:o())!=null?O:{},{direction:a})}finally{zi(A),so(I)}}var x={is_global:d,in(){var A;if(e.inert=f,!r){y==null||y.abort(),(A=y==null?void 0:y.reset)==null||A.call(y);return}s||p==null||p.abort(),ou(e,"introstart"),p=ef(e,w(),y,1,()=>{ou(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=v})},out(A){if(!s){A==null||A(),u=void 0;return}e.inert=!0,ou(e,"outrostart"),y=ef(e,w(),p,0,()=>{ou(e,"outroend"),A==null||A()})},stop:()=>{p==null||p.abort(),y==null||y.abort()}},C=$t;if(((R=C.transitions)!=null?R:C.transitions=[]).push(x),r&&pd){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&&To(()=>{kt(()=>x.in())})}}function ef(t,e,i,o,r){var s=o===1;if(Fs(e)){var l,d=!1;return xn(()=>{if(!d){var C=e({direction:s?"in":"out"});l=ef(t,C,i,o,r)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return r(),{abort:ce,deactivate:ce,reset:ce,t:()=>o};let{delay:a=0,css:u,tick:f,easing:v=nb}=e;var p=[];if(s&&i===void 0&&(f&&f(0,1),u)){var y=Eh(u(0,1));p.push(y,y)}var w=()=>1-o,x=t.animate(p,{duration:a,fill:"forwards"});return x.onfinish=()=>{var z;x.cancel();var C=(z=i==null?void 0:i.t())!=null?z:1-o;i==null||i.abort();var T=o-C,E=e.duration*Math.abs(T),R=[];if(E>0){var A=!1;if(u)for(var I=Math.ceil(E/16.666666666666668),O=0;O<=I;O+=1){var H=C+T*v(O/I),B=Eh(u(H,1-H));R.push(B),A||(A=B.overflow==="hidden")}A&&(t.style.overflow="hidden"),w=()=>{var Z=x.currentTime;return C+T*v(Z/E)},f&&Th(()=>{if(x.playState!=="running")return!1;var Z=w();return f(Z,1-Z),!0})}x=t.animate(R,{duration:E,fill:"forwards"}),x.onfinish=()=>{w=()=>o,f==null||f(o,1-o),r()}},{abort:()=>{x&&(x.cancel(),x.effect=null,x.onfinish=ce)},deactivate:()=>{r=ce},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}function tf(t,e,i){var o=Bo(t,e);o&&o.set&&(t[e]=i,Co(()=>{t[e]=null}))}var qs,xl,hd,ru,Ih,su=class su{constructor(e){Ds(this,ru);Ds(this,qs,new WeakMap);Ds(this,xl);Ds(this,hd);tl(this,hd,e)}observe(e,i){var o=Oi(this,qs).get(e)||new Set;return o.add(i),Oi(this,qs).set(e,o),tg(this,ru,Ih).call(this).observe(e,Oi(this,hd)),()=>{var r=Oi(this,qs).get(e);r.delete(i),r.size===0&&(Oi(this,qs).delete(e),Oi(this,xl).unobserve(e))}}};qs=new WeakMap,xl=new WeakMap,hd=new WeakMap,ru=new WeakSet,Ih=function(){var e;return(e=Oi(this,xl))!=null?e:tl(this,xl,new ResizeObserver(i=>{for(var o of i){su.entries.set(o.target,o);for(var r of Oi(this,qs).get(o.target)||[])r(o)}}))},Xn(su,"entries",new WeakMap);var of=su;var rb=new of({box:"border-box"});function Sn(t,e,i){var o=rb.observe(t,()=>i(t[e]));To(()=>(kt(()=>i(t[e])),o))}function kh(t,e){return t===e||(t==null?void 0:t[Ho])===e}function st(t={},e,i,o){return To(()=>{var r,s;return Wo(()=>{r=s,s=(o==null?void 0:o())||[],kt(()=>{t!==i(...s)&&(e(t,...s),r&&kh(i(...r),t)&&e(null,...r))})}),()=>{xn(()=>{s&&kh(i(...s),t)&&e(null,...s)})}}),t}function Ko(t=!1){let e=Ht,i=e.l.u;if(!i)return;let o=()=>Jc(e.s);if(t){let r=0,s={},l=zr(()=>{let d=!1,a=e.s;for(let u in a)a[u]!==s[u]&&(s[u]=a[u],d=!0);return d&&r++,r});o=()=>n(l)}i.b.length&&rd(()=>{Ah(e,o),Us(i.b)}),ze(()=>{let r=kt(()=>i.m.map(dg));return()=>{for(let s of r)typeof s=="function"&&s()}}),i.a.length&&ze(()=>{Ah(e,o),Us(i.a)})}function Ah(t,e){if(t.l.s)for(let i of t.l.s)n(i);e()}function _d(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ce;let o=kt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var wl=[];function yr(t,e){return{subscribe:se(t,e).subscribe}}function se(t,e=ce){let i=null,o=new Set;function r(d){if(nl(t,d)&&(t=d,i)){let a=!wl.length;for(let u of o)u[1](),wl.push(u,t);if(a){for(let u=0;u<wl.length;u+=2)wl[u][0](wl[u+1]);wl.length=0}}}function s(d){r(d(t))}function l(d,a=ce){let u=[d,a];return o.add(u),o.size===1&&(i=e(r,s)||ce),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:r,update:s,subscribe:l}}function _i(t,e,i){let o=!Array.isArray(t),r=o?[t]:t;if(!r.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let s=e.length<2;return yr(i,(l,d)=>{let a=!1,u=[],f=0,v=ce,p=()=>{if(f)return;v();let w=e(o?u[0]:u,l,d);s?l(w):v=typeof w=="function"?w:ce},y=r.map((w,x)=>_d(w,C=>{u[x]=C,f&=~(1<<x),a&&p()},()=>{f|=1<<x}));return a=!0,p(),function(){Us(y),v(),a=!1}})}function be(t){let e;return _d(t,i=>e=i)(),e}var au=!1,nf=Symbol();function S(t,e,i){var s;let o=(s=i[e])!=null?s:i[e]={store:null,source:ns(void 0),unsubscribe:ce};if(o.store!==t&&!(nf in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=ce;else{var r=!0;o.unsubscribe=_d(t,l=>{r?o.source.v=l:N(o.source,l)}),r=!1}return t&&nf in i?be(t):n(o.source)}function De(){let t={};function e(){Co(()=>{for(var i in t)t[i].unsubscribe();ro(t,nf,{enumerable:!1,value:!0})})}return[t,e]}function rf(t){var e=au;try{return au=!1,[t(),au]}finally{au=e}}var pb={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Le&&$g(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Re(t,e,i){return new Proxy(Le?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},pb)}var fb={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Fs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let r=t.props[o];Fs(r)&&(r=r());let s=Bo(r,e);if(s&&s.set)return s.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Fs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let r=Bo(o,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===Ho||e===il)return!1;for(let i of t.props)if(Fs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Fs(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 Cs(...t){return new Proxy({props:t},fb)}function Ph(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function h(t,e,i,o){var H,B;var r=(i&1)!==0,s=!ts||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,u;l?[u,a]=rf(()=>t[e]):u=t[e];var f=Ho in t||il in t,v=l&&((B=(H=Bo(t,e))==null?void 0:H.set)!=null?B:f&&e in t&&(z=>t[e]=z))||void 0,p=o,y=!0,w=!1,x=()=>(w=!0,y&&(y=!1,d?p=kt(o):p=o),p);u===void 0&&o!==void 0&&(v&&s&&bg(e),u=x(),v&&v(u));var C;if(s)C=()=>{var z=t[e];return z===void 0?x():(y=!0,w=!1,z)};else{var T=(r?zr:bn)(()=>t[e]);T.f|=131072,C=()=>{var z=n(T);return z!==void 0&&(p=void 0),z===void 0?p:z}}if((i&4)===0&&s)return C;if(v){var E=t.$$legacy;return function(z,Z){return arguments.length>0?((!s||!Z||E||a)&&v(Z?C():z),z):C()}}var R=!1,A=!1,I=ns(u),O=zr(()=>{var z=C(),Z=n(I);return R?(R=!1,A=!0,Z):(A=!1,I.v=z)});return l&&n(O),r||(O.equals=rl),function(z,Z){if(Zc!==null&&(R=A,C(),n(I)),arguments.length>0){let ae=Z?n(O):s&&l?ai(z):z;if(!O.equals(ae)){if(R=!0,N(I,ae),w&&p!==void 0&&(p=ae),Ph(O))return z;kt(()=>n(O))}return z}return Ph(O)?O.v:n(O)}}var vb;typeof HTMLElement=="function"&&(vb=class extends HTMLElement{constructor(e,i,o){super();Xn(this,"$$ctor");Xn(this,"$$s");Xn(this,"$$c");Xn(this,"$$cn",!1);Xn(this,"$$d",{});Xn(this,"$$r",!1);Xn(this,"$$p_d",{});Xn(this,"$$l",{});Xn(this,"$$l_u",new Map);Xn(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let r=this.$$c.$on(e,i);this.$$l_u.set(i,r)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let r=this.$$l_u.get(i);r&&(r(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(s){return l=>{let d=document.createElement("slot");s!=="default"&&(d.name=s),b(l,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},r=mb(this);for(let s of this.$$s)s in r&&(s==="default"&&!this.$$d.children?(this.$$d.children=i(s),o.default=!0):o[s]=i(s));for(let s of this.attributes){let l=this.$$g_p(s.name);l in this.$$d||(this.$$d[l]=sf(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=dh({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=Qc(()=>{Wo(()=>{var s;this.$$r=!0;for(let l of gp(this.$$c)){if(!((s=this.$$p_d[l])!=null&&s.reflect))continue;this.$$d[l]=this.$$c[l];let d=sf(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let s in this.$$l)for(let l of this.$$l[s]){let d=this.$$c.$on(s,l);this.$$l_u.set(l,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var r;this.$$r||(e=this.$$g_p(e),this.$$d[e]=sf(e,o,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return gp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function sf(t,e,i,o){var s;let r=(s=i[t])==null?void 0:s.type;if(e=r==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(r){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(r){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function mb(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Mh="5";var Lh,Vh,Rh;typeof window!="undefined"&&((Rh=(Vh=(Lh=window.__svelte)!=null?Lh:window.__svelte={}).v)!=null?Rh:Vh.v=new Set).add(Mh);import{areValidLiveRecordSources as Lw,clientChecker as Rm}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-core/es2018";import{noop as z0,safeStorage as Vw,throttleFn as Rw}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as Nw}from"@vkontakte/videoplayer-statistics/es2018";import{InterfaceLanguage as gb,fillWithDefault as hb,VideoQuality as Nh}from"@vkontakte/videoplayer-shared/es2018";var _b={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:gb.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:Nh.Q_480P,highQualityLimit:Nh.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,returnFocusOnControlsHide:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,interactiveHistoryEndChapterFix:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1,usePerformanceFix:!1,userVideoPrefs:!1,savePreferredStatesOnUserActionOnly:!1,useLoopSetting:!1,doubleForwardAvailable:!1,useRichSeek:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,paramsOverride:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null},userSalt:"0",doubleForwardActivationTime:600,playbackStatusAnimationDuration:1e3,playbackStatusNextVideoAnimationDuration:1e3,suitableDurationForUsingRichSeek:180},Oh=t=>hb(t,_b),Dh=t=>ll("ui-config",t),Lt=()=>al("ui-config");var bd="vk_player_debug_panel_opened";var Bh="videoplayer",Hh="videoplayer";var ss={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Fh=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Uh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),zh=new Set(["ShiftRight","ShiftLeft"]);var Wh=["TIMELINE"],$d=[...Wh,"GRAPH_BUTTON"],af=[...Wh,"PLAY_BUTTON"],yd=[...$d,"PLAY_BUTTON"];var as=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(as||{}),Sa={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Kh,VERSION as bb}from"@vkontakte/videoplayer-shared/es2018";import{VERSION as $b}from"@vkontakte/videoplayer-core/es2018";import{VERSION as yb}from"@vkontakte/videoplayer-statistics/es2018";var lu="prod",Sl="1.1.75-dev.3ba5a3c2.0";var Ca=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var qh=Symbol("storeContext"),Qh=Symbol("microStoresContext"),Gh=(t,e)=>{ll(qh,t),ll(Qh,e),lu==="dev"&&(window.app={store:t,microStores:e})},he=()=>{let t=al(qh);return Kh(t,"Store context is empty!"),t},ho=()=>{let t=al(Qh);return Kh(t,"MicroStores context is empty!"),t},li=(t,e)=>cu(t,t.getValue(),e),cu=(t,e,i)=>yr(e,o=>{let r=t.subscribe(s=>{o(s),i==null||i(s)});return()=>r.unsubscribe()}),jh=(t,e,i,o)=>{var H,B,z,Z,ae,q,de,X,fe;let r=t.info,{width:s,height:l}=be(i.ui.playerSize),d=(B=(H=r.throughputEstimation$.getValue())==null?void 0:H.toFixed(0))!=null?B:0,a=(Z=(z=r.rttEstimation$.getValue())==null?void 0:z.toFixed(0))!=null?Z:0,u=r.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${Sl} (core: ${$b}, stat: ${yb}, shared: ${bb})`,v=be(i.state.errorLog$),p=v.length?`
45
+ `+v.map((re,le)=>{var Ne;let Me=`${le}) Type: ${re.id}
46
+ `,we=`Message: ${re.message} (${re.thrown})
47
+ `,te=`Trace: ${(Ne=re.thrown)==null?void 0:Ne.stack}
48
+ `;return Me+we+te}).join(`
49
+ `):void 0,y=i.state.isAudioDisabled?"disabled":be(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),x=t.info.currentAudioStream$.getValue(),C=[];w&&C.push(`Video: ${(ae=w==null?void 0:w.codec)!=null?ae:""}`+(w!=null&&w.hdr?" (HDR)":"")),x&&C.push(`Audio: ${(q=x==null?void 0:x.codec)!=null?q:""}`+(x!=null&&x.language?` (${x.language})`:""));let T=r.currentQuality$.getValue(),E="";if(T){let re=r.availableQualitiesFps$.getValue()[T];E=re?`${re}fps`:""}let R=r.httpConnectionType$.getValue(),A=(X=(de=r.currentBuffer$.getValue())==null?void 0:de.end)!=null?X:0,I=Math.max(A-be(i.state.positionExact$),0),O={Version:f,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:be(i.vsid),"Content host":r.hostname$.getValue(),"Connection type":R?R+(r.httpConnectionReused$.getValue()?" (reused)":""):"",Throughput:`${d}Kbps @ ${a}ms RTT`,Format:r.currentFormat$.getValue(),"Available Formats":e!=null&&e.sources?Object.keys(e.sources).join(", "):"",Streams:C.join(", "),Quality:`${u} ${T!=null?T:""} ${E}`,"Available qualities":r.availableQualities$.getValue().join(", "),Audio:y,Position:`${be(i.state.positionExact$)}s`,Buffer:`${I}s`,State:`${be(i.playerPhase)} ${(fe=r.playbackState$.getValue())!=null?fe:""}`,"Player size":`${s}x${l}`,URL:window.location.href,Errors:p};return Object.entries(O).filter(([re,le])=>le!==void 0).map(([re,le])=>`${re}: ${le}`).join(`
50
+ `)},Yh=(t,e,i)=>{var H,B,z,Z;let o=t.info,{width:r,height:s}=be(i.ui.playerSize),l={version:Sl,viewport:`${r}x${s}`,volume:Math.round(be(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-be(i.state.positionExact$),0)),l.position=be(i.state.positionExact$);let y=o.throughputEstimation$.getValue();y&&(l.speed=y);let w=o.videoBitrate$.getValue();w&&(l.bitrate=w);let x=o.liveLatency$.getValue();x&&(l.liveLatency=x);let C=o.currentVideoSegmentLength$.getValue();C&&(l.currentVideoSegmentLength=C);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let E=be(i.vsid);typeof E=="string"&&(l.vsid=E);let R=(H=t.info.currentVideoStream$.getValue())==null?void 0:H.codec;R&&(l.videoCodec=R);let A=(B=t.info.currentAudioStream$.getValue())==null?void 0:B.codec;A&&(l.audioCodec=A),((z=t.info.currentVideoStream$.getValue())==null?void 0:z.hdr)&&(l.hdr=!0);let O=(Z=t.info.currentAudioStream$.getValue())==null?void 0:Z.language;return O&&(l.audioLanguage=O),l},Zh=(t,e)=>Ca(t,e,"mp4"),Xh=t=>!t.type,Jh=t=>!!t.type,e1=()=>{let e=[],i=0;return{add:(o,r)=>{e[i]=[o,r],i=(i+1)%10},find:o=>e.find(([r])=>r===o)}},du=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 uf,safeStorage as Ei}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-core/es2018";var xb="vk_player_",t1="vk_player_prefer_traffic_saving_enabled",i1="vk_player_preferred_volume",o1="vk_player_prefer_volume_mute",pf="vk_player_preferred_quality",lf="vk_player_preferred_default_quality_settings",df="vk_player_preferred_quality_settings_by_video",n1="vk_player_preferred_stream_language",r1="vk_player_preferred_rate",s1="vk_player_preferred_autoplay_next",cf="vk_player_preferred_subtitles_language",a1="vk_player_user_video_prefs",l1=`${xb}preview_track_close_tooltip`,d1=t=>t>1?1:t<0?0:t,ff=t=>Ei.set(i1,d1(t).toString(10)),uu=()=>{let t=Ei.get(i1);return uf(t)?void 0:d1(parseFloat(t))},vf=(t,e)=>Ei.set(pf,JSON.stringify({videoId:t,value:e})),pu=()=>Ei.remove(pf),mf=t=>{let e=Ei.get(pf);if(uf(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){pu();return}return o},gf=(t,e)=>{e?Ei.set(t,"true"):Ei.remove(t)},hf=t=>Ei.get(t)==="true",_f=t=>gf(o1,t),c1=()=>hf(o1),xd=t=>gf(t1,t),bf=()=>hf(t1),u1=()=>Ei.get(n1),$f=t=>Ei.set(n1,t),yf=()=>Ei.get(cf),xf=t=>{t?Ei.set(cf,t):Ei.remove(cf)},p1=t=>Ei.set(r1,JSON.stringify({rate:t})),f1=()=>{let t=Ei.get(r1);if(uf(t))return;let{rate:e}=JSON.parse(t);return e},v1=t=>gf(s1,t),m1=()=>hf(s1),wb=()=>{let t=f=>{Ei.set(lf,JSON.stringify(f))},e=()=>{try{let f=Ei.get(lf);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=Ei.get(df);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{Ei.set(df,JSON.stringify(f))},r=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=()=>{Ei.remove(df)},l=()=>{Ei.remove(lf)},d=(f,v="as-default")=>{f.type==="exact_quality"||v==="to-video"?o(f):t(f)},a=f=>{let v=r(f);if(v){switch(v.type){case"traffic_saving":xd(!0);break;case"exact_quality":vf(f,v.quality)}s(),l()}},u=f=>{let v=mf(f);if(v){o({type:"exact_quality",videoId:f,quality:v});return}bf()&&t({type:"traffic_saving",videoId:f}),xd(!1),pu()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:yf,savePreferredSubtitlesLanguage:xf}},{getPreferredQualitySettings:g1,migrateSettingsToLegacyWay:h1,savePreferredQualitySettings:fu,savePreferredDefaultQualitySettings:KL,removePreferredQualitySettingsByVideo:qL,getPreferredDefaultQualitySettings:vu}=wb(),Sb=3,Cb=3,_1=()=>{let t=Ei.get(a1);if(t)try{return JSON.parse(t)}catch(e){return null}return null},mu=(t,e)=>{var r,s;let i=_1();return(s=(r=i==null?void 0:i[t])==null?void 0:r[e])!=null?s:null},wf=(t,e,i)=>{var l,d,a;let o=(l=_1())!=null?l:{},r=(a=(d=o[t])==null?void 0:d[e])!=null?a:{};Object.assign(r,i,{updatedTs:Date.now()}),t in o||(o[t]={}),o[t][e]=r;let s=Tb(o);Ei.set(a1,JSON.stringify(s))};function Tb(t){let e=Object.entries(t).reduce((o,[r,s])=>{let l=0;return Object.values(s).forEach(d=>{l<d.updatedTs&&(l=d.updatedTs)}),o.push([r,l]),o},[]);return e.sort(([,o],[,r])=>o>r?-1:1),e.splice(Cb),e.reduce((o,[r])=>(o[r]=Eb(t[r]),o),{})}function Eb(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(Sb),Object.fromEntries(e)}function b1(){Ei.set(l1,JSON.stringify(!0))}function $1(){let t=Ei.get(l1);try{return t?JSON.parse(t):!1}catch(e){return!1}}import{PlaybackState as H0}from"@vkontakte/videoplayer-core/es2018";var Ib=Ee('<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 wd(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Ib();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}import{isNullable as w1,InterfaceLanguage as S1}from"@vkontakte/videoplayer-shared/es2018";var kb={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_pip_close:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_sound_unavailable:"\u0417\u0432\u0443\u043A \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",tooltip_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving:"\u0420\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",aria_label_context_menu:"\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_autoplay:"\u0410\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
51
51
  \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u043E \u043D\u0430\xA0\xAB\u0410\u0432\u0442\u043E\xBB`,slow_video_notification_suggest_description:`\u0412\u0438\u0434\u0435\u043E \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E -
52
- \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0430 \xAB\u0410\u0432\u0442\u043E\xBB`,double_forward_label:"2x"},Xh=eb;var tb={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`,double_forward_label:"2x",preview_track_notification_text:"\u041F\u043E\u0442\u044F\u043D\u0438\u0442\u0435 \u0432\u0432\u0435\u0440\u0445 \u0434\u043B\u044F \u0442\u043E\u0447\u043D\u043E\u0439 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0438",preview_track_close_tooltip:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u0440\u0435\u0436\u0438\u043C\u0430 \u0442\u043E\u0447\u043D\u043E\u0439 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0438"},y1=kb;var Ab={auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but\xA0at\xA0lower quality",quality_applience:"You can\xA0{action} the\xA0default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for\xA0all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_pip_close:"Expand video",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Volume off",tooltip_volume_muted:"Turn volume on",tooltip_sound_unavailable:"Sound unavailable",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",tooltip_context_menu_open:"Open context menu",tooltip_context_menu_close:"Close context menu",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay:"Display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving:"Data saving mode",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",aria_label_autoplay:"Autoplay",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
53
53
  so\xA0the\xA0quality was changed to\xA0Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
54
- Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},Jh=tb;var $s=new Map;$s.set(t1.EN,Jh);$s.set(t1.RU,Xh);var i1=new Map,pf=({language:t,pack:e,fallback:i})=>{if($s.has(t)){let o=$s.get(t);$s.set(t,{...o,...e})}else $s.set(t,e);i1.set(t,i)},ff=t=>$s.has(t),mf=(t,e,i,o)=>{var l;let n=$s.get(t),s=n==null?void 0:n[e];if(e1(s)){let d=(l=i1.get(t))!=null?l:o,a=d?$s.get(d):void 0;s=a==null?void 0:a[e]}return e1(s)?e+Object.values(i!=null?i:{}).join(" "):i?s.replaceAll(/{(\w+?)}/g,(d,a)=>{var p;return(p=i[a])!=null?p:""}):s},q=(t,e)=>{let{interfaceLanguage$:i}=Ce(),o=$e(i),n=Tt();return mf(o,t,e,n.defaultLanguage)};import"@vkontakte/videoplayer-core/es2018";var ol;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(ol||(ol={}));var ib=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ob=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,nb=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Zc="?",rb="X-Sentry-Auth",sb=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function ab(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=ib.exec(i[s]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||Zc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=nb.exec(i[s]))n={filename:o[2],function:o[1]||Zc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=ob.exec(i[s]))s===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||Zc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=Zc),e.push(n)}return e.length?{value:o1(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function o1(t){return(t&&t.message||"No error message").split(`
56
- `).filter(i=>!!i)[0]}function lb(t){try{let e=ab(t);if(e)return e}catch(e){}return{value:o1(t),type:t&&t.name,stacktrace:{frames:[]}}}function db(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Xc=class{constructor(e){if(e&&e.dsn){let i=sb.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:[lb(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(rb,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:db(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function n1(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function cb(){return window}var Jc=class t extends Xc{constructor(e,i=cb()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=p=>p,beforeBreadcrumb:s=p=>p,blacklistUrls:l=[],ignoreErrors:d=[],release:a=void 0}=this.options||{};this.plugins=o.map(p=>new p(this)),this.beforeSend=n,this.beforeBreadcrumb=s,this.blacklistUrls=l,this.ignoreErrors=d,this.release=a}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new t({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send({...this.getRequestBlank(),message:e,level:i})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>n1(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=>n1(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 eu,Subscription as ub}from"@vkontakte/videoplayer-shared/es2018";var tu=null,ca=class{constructor(e,i,o={}){!tu&&e.dsn&&(this.sentryClient=new Jc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new ub,this.options=e,this.context=o,tu=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),tu=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:n,context:s,options:l}=this,{sampleRate:d=0,whiteErrorIdList:a,whiteErrorCategoryList:p=[],blackErrorIdList:f,blackErrorCategoryList:m}=l,{errorType:u,category:y}=i;if(eu(y)&&m.includes(y)||eu(u)&&f.includes(u))return;if(Math.random()<=d||eu(y)&&p.includes(y)||eu(u)&&a.includes(u)){Object.keys(i).length&&n.setTags({version:this.version,...i}),(Object.keys(s).length||Object.keys(o).length)&&n.setExtras({...s,...o});try{u&&n.captureMessage(u,i.fatal?ol.fatal:ol.error),n.report(e)}catch(x){console.error(x)}}}static getInstance(){return tu}};var ys=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(ys||{});var iu=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?(e.webkitEnterFullscreen(),Promise.resolve()):Promise.reject()},ou=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),r1=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,s1=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},td=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Fs=()=>!!td(),nu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},ru=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},a1=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 l1}from"@vkontakte/videoplayer-core/es2018";var d1=()=>({title:q("hotkey_map_modal_title"),closeBtnText:q("hotkey_map_modal_close_btn_text"),groups:[{title:q("hotkey_map_group_title_common"),items:[{description:q("hotkey_map_item_mute_description"),value:q("hotkey_map_item_mute_value")},{description:q("hotkey_map_item_volume_up_description"),value:q("hotkey_map_item_volume_up_value")},{description:q("hotkey_map_item_volume_down_description"),value:q("hotkey_map_item_volume_down_value")},{description:q("hotkey_map_item_pip_description"),value:q("hotkey_map_item_pip_value")},{description:q("hotkey_map_item_full_screen_description"),value:q("hotkey_map_item_full_screen_value")},{description:q("hotkey_map_item_show_context_menu_description"),value:q("hotkey_map_item_show_context_menu_value")},{description:q("hotkey_map_item_show_hotkey_map_description"),value:q("hotkey_map_item_show_hotkey_map_value")}]},{title:q("hotkey_map_group_title_playback"),items:[{description:q("hotkey_map_item_play_toggle_description"),value:q("hotkey_map_item_play_toggle_value")},{description:q("hotkey_map_item_seek_backward_description"),value:q("hotkey_map_item_seek_backward_value")},{description:q("hotkey_map_item_seek_forward_description"),value:q("hotkey_map_item_seek_forward_value")},{description:q("hotkey_map_item_fast_seek_backward_description"),value:q("hotkey_map_item_fast_seek_backward_value")},{description:q("hotkey_map_item_fast_seek_forward_description"),value:q("hotkey_map_item_fast_seek_forward_value")},{description:q("hotkey_map_item_rate_down_description"),value:q("hotkey_map_item_rate_down_value")},{description:q("hotkey_map_item_rate_up_description"),value:q("hotkey_map_item_rate_up_value")},{description:q("hotkey_map_item_prev_frame_description"),value:q("hotkey_map_item_prev_frame_value")},{description:q("hotkey_map_item_next_frame_description"),value:q("hotkey_map_item_next_frame_value")},{description:q("hotkey_map_item_jump_seek_description"),value:q("hotkey_map_item_jump_seek_value")},{description:q("hotkey_map_item_next_video_description"),value:q("hotkey_map_item_next_video_value")},{description:q("hotkey_map_item_prev_video_description"),value:q("hotkey_map_item_prev_video_value")}]},{title:q("hotkey_map_group_title_subtitles"),items:[{description:q("hotkey_map_item_subtitles_toggle_description"),value:q("hotkey_map_item_subtitles_toggle_value")}]},{title:q("hotkey_map_group_title_episodes"),items:[{description:q("hotkey_map_item_prev_episode_description"),value:l1.device.isApple?q("hotkey_map_item_prev_episode_mac_value"):q("hotkey_map_item_prev_episode_pc_value")},{description:q("hotkey_map_item_next_episode_description"),value:l1.device.isApple?q("hotkey_map_item_next_episode_mac_value"):q("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as pb,ValueSubject as vf}from"@vkontakte/videoplayer-shared/es2018";var ua=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:pb(this.onResize.bind(this),300)};this.info={isActive$:new vf(!1),isEnabled$:new vf(!1),type:0};this.info.isEnabled$=new vf(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.removeEventHandlers(),await this.request(),this.addEventHandlers())}async request(){var e;if(!(!this.isSupported()||this.isActive()))try{await((e=this.videoElement)==null?void 0:e.requestPictureInPicture())}catch(i){this.isRequested=!1}}async exit(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.removeEventHandlers(),this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"),this.addEventHandlers())}addEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}setExternalEventHandlers(e){this.externalEventHandlers={...e}}removeEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.removeEventHandlers(),await this.exit(),this.info.isActive$.next(!1),this.isRequested=!1}onEnterPictureInPicture(e){var n,s;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(s=(n=this.externalEventHandlers).enterpictureinpicture)==null||s.call(n,e))}onLeavePictureInPicture(e){var n,s;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,this.eventHandlers.resize.cancel(),o==null||o.removeEventListener("resize",this.eventHandlers.resize),(s=(n=this.externalEventHandlers).leavepictureinpicture)==null||s.call(n,e)}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function pa(t){return t instanceof ua}import{devNull as c1,now as u1}from"@vkontakte/videoplayer-shared/es2018";rg();function hf(t,e){U(e,!1);let i=Ce();Pt(()=>{i.getAdmanWrapper().startPostroll()}),zr(),z()}import{noop as fb}from"@vkontakte/videoplayer-shared/es2018";var mb=(t,e,i)=>{t.stopPropagation(),r(e)&&i()()},vb=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>'),gb=M("<div><!></div>"),hb={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 _f(t,e){U(e,!0),K(t,hb);let[i,o]=Be(),n=()=>S(p,"$isMobile",i),s=v(e,"position",3,0),l=v(e,"secondsToWatchBeforeSkip",3,0),d=v(e,"skipAd",3,fb),p=Ce().ui.isMobile,f=g(()=>s()>0&&s()>=l());var m=gb();let u;m.__click=[mb,f,d];var y=_(m);{var w=T=>{var C=vb(),E=_(C);xe(),h(C),D(R=>ve(E,`${R!=null?R:""} `),[()=>q("skip_ads_now")]),$(T,C)},x=T=>{var C=rs();D(E=>ve(C,E),[()=>q("skip_ads_after",{time:Math.ceil(l()-s()).toFixed(0)})]),$(T,C)};V(y,T=>{r(f)?T(w):T(x,!1)})}h(m),D(T=>u=ne(m,1,"container svelte-1k4i25s",null,u,T),[()=>({"container-mobile":n(),skippable:r(f)})]),$(t,m),z(),o()}dt(["click"]);var _b=M('<button class="go-to-site svelte-1dzpmjp"> </button>'),bb={hash:"svelte-1dzpmjp",code:"button.go-to-site.svelte-1dzpmjp {position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black;}"};function bf(t,e){U(e,!1),K(t,bb),zr();var i=_b(),o=_(i,!0);h(i),D(n=>ve(o,n),[()=>q("visit_advertiser")],Br),$(t,i),z()}var $b=M('<div class="top-gradient-mobile svelte-354ajf"></div>'),yb=M('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),xb={hash:"svelte-354ajf",code:`.container.svelte-354ajf {width:100%;height:100%;}.top-gradient-mobile.svelte-354ajf {position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
54
+ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x",preview_track_notification_text:"pull up to open precise rewind",preview_track_close_tooltip:"dismiss precise rewind"},x1=Ab;var Ts=new Map;Ts.set(S1.EN,x1);Ts.set(S1.RU,y1);var C1=new Map,Sf=({language:t,pack:e,fallback:i})=>{if(Ts.has(t)){let o=Ts.get(t);Ts.set(t,{...o,...e})}else Ts.set(t,e);C1.set(t,i)},Cf=t=>Ts.has(t),Tf=(t,e,i,o)=>{var l;let r=Ts.get(t),s=r==null?void 0:r[e];if(w1(s)){let d=(l=C1.get(t))!=null?l:o,a=d?Ts.get(d):void 0;s=a==null?void 0:a[e]}return w1(s)?e+Object.values(i!=null?i:{}).join(" "):i?s.replaceAll(/{(\w+?)}/g,(d,a)=>{var u;return(u=i[a])!=null?u:""}):s},j=(t,e)=>{let{interfaceLanguage$:i}=he(),o=be(i),r=Lt();return Tf(o,t,e,r.defaultLanguage)};import"@vkontakte/videoplayer-core/es2018";var Cl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(Cl||(Cl={}));var Pb=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Mb=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,Lb=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,gu="?",Vb="X-Sentry-Auth",Rb=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Nb(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
55
+ `),o,r;for(let s=0;s<i.length;++s){if(o=Pb.exec(i[s]))r={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||gu,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=Lb.exec(i[s]))r={filename:o[2],function:o[1]||gu,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=Mb.exec(i[s]))s===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),r={filename:o[3],function:o[1]||gu,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!r.function&&r.lineno&&(r.function=gu),e.push(r)}return e.length?{value:T1(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function T1(t){return(t&&t.message||"No error message").split(`
56
+ `).filter(i=>!!i)[0]}function Ob(t){try{let e=Nb(t);if(e)return e}catch(e){}return{value:T1(t),type:t&&t.name,stacktrace:{frames:[]}}}function Db(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var hu=class{constructor(e){if(e&&e.dsn){let i=Rb.exec(e.dsn),o=i?i.slice(1):[],r=o[5].split("/"),s=r.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(s?"/"+s:"")+"/api/"+r.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[Ob(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(Vb,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:Db(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function E1(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function Bb(){return window}var _u=class t extends hu{constructor(e,i=Bb()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:r=u=>u,beforeBreadcrumb:s=u=>u,blacklistUrls:l=[],ignoreErrors:d=[],release:a=void 0}=this.options||{};this.plugins=o.map(u=>new u(this)),this.beforeSend=r,this.beforeBreadcrumb=s,this.blacklistUrls=l,this.ignoreErrors=d,this.release=a}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...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=>E1(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=>E1(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let r=this._state[o],s=Array.isArray(r)?r:null,l=e[o],d=Array.isArray(l)?l:null;return{...i,[o]:s||d?[...s||[],...d||[]]:{...typeof r!="string"?r:{},...typeof l!="string"?l:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};import{isNonNullable as bu,Subscription as Hb}from"@vkontakte/videoplayer-shared/es2018";var $u=null,Ta=class{constructor(e,i,o={}){!$u&&e.dsn&&(this.sentryClient=new _u({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new Hb,this.options=e,this.context=o,$u=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),$u=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:r,context:s,options:l}=this,{sampleRate:d=0,whiteErrorIdList:a,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:v}=l,{errorType:p,category:y}=i;if(bu(y)&&v.includes(y)||bu(p)&&f.includes(p))return;if(Math.random()<=d||bu(y)&&u.includes(y)||bu(p)&&a.includes(p)){Object.keys(i).length&&r.setTags({version:this.version,...i}),(Object.keys(s).length||Object.keys(o).length)&&r.setExtras({...s,...o});try{p&&r.captureMessage(p,i.fatal?Cl.fatal:Cl.error),r.report(e)}catch(x){console.error(x)}}}static getInstance(){return $u}};var ls=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(ls||{});var yu=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?(e.webkitEnterFullscreen(),Promise.resolve()):Promise.reject()},xu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),I1=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,k1=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},Sd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Qs=()=>!!Sd(),wu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Su=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},A1=t=>{let e=window.screen;return(async r=>e.orientation?e.orientation.lock(r):e.mozLockOrientation?e.mozLockOrientation(r):e.msLockOrientation?e.msLockOrientation(r):Promise.reject())(((r={width:0,height:0})=>r.width<=r.height?"portrait":"landscape")(t))};import{clientChecker as P1}from"@vkontakte/videoplayer-core/es2018";var M1=()=>({title:j("hotkey_map_modal_title"),closeBtnText:j("hotkey_map_modal_close_btn_text"),groups:[{title:j("hotkey_map_group_title_common"),items:[{description:j("hotkey_map_item_mute_description"),value:j("hotkey_map_item_mute_value")},{description:j("hotkey_map_item_volume_up_description"),value:j("hotkey_map_item_volume_up_value")},{description:j("hotkey_map_item_volume_down_description"),value:j("hotkey_map_item_volume_down_value")},{description:j("hotkey_map_item_pip_description"),value:j("hotkey_map_item_pip_value")},{description:j("hotkey_map_item_full_screen_description"),value:j("hotkey_map_item_full_screen_value")},{description:j("hotkey_map_item_show_context_menu_description"),value:j("hotkey_map_item_show_context_menu_value")},{description:j("hotkey_map_item_show_hotkey_map_description"),value:j("hotkey_map_item_show_hotkey_map_value")}]},{title:j("hotkey_map_group_title_playback"),items:[{description:j("hotkey_map_item_play_toggle_description"),value:j("hotkey_map_item_play_toggle_value")},{description:j("hotkey_map_item_seek_backward_description"),value:j("hotkey_map_item_seek_backward_value")},{description:j("hotkey_map_item_seek_forward_description"),value:j("hotkey_map_item_seek_forward_value")},{description:j("hotkey_map_item_fast_seek_backward_description"),value:j("hotkey_map_item_fast_seek_backward_value")},{description:j("hotkey_map_item_fast_seek_forward_description"),value:j("hotkey_map_item_fast_seek_forward_value")},{description:j("hotkey_map_item_rate_down_description"),value:j("hotkey_map_item_rate_down_value")},{description:j("hotkey_map_item_rate_up_description"),value:j("hotkey_map_item_rate_up_value")},{description:j("hotkey_map_item_prev_frame_description"),value:j("hotkey_map_item_prev_frame_value")},{description:j("hotkey_map_item_next_frame_description"),value:j("hotkey_map_item_next_frame_value")},{description:j("hotkey_map_item_jump_seek_description"),value:j("hotkey_map_item_jump_seek_value")},{description:j("hotkey_map_item_next_video_description"),value:j("hotkey_map_item_next_video_value")},{description:j("hotkey_map_item_prev_video_description"),value:j("hotkey_map_item_prev_video_value")}]},{title:j("hotkey_map_group_title_subtitles"),items:[{description:j("hotkey_map_item_subtitles_toggle_description"),value:j("hotkey_map_item_subtitles_toggle_value")}]},{title:j("hotkey_map_group_title_episodes"),items:[{description:j("hotkey_map_item_prev_episode_description"),value:P1.device.isApple?j("hotkey_map_item_prev_episode_mac_value"):j("hotkey_map_item_prev_episode_pc_value")},{description:j("hotkey_map_item_next_episode_description"),value:P1.device.isApple?j("hotkey_map_item_next_episode_mac_value"):j("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as Fb,ValueSubject as Ef}from"@vkontakte/videoplayer-shared/es2018";var Ea=class{constructor({enabled:e=!0}={enabled:!0}){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:Fb(this.onResize.bind(this),300)};this.info={isActive$:new Ef(!1),isEnabled$:new Ef(!1),type:0};this.info.isEnabled$=new Ef(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 r,s;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(s=(r=this.externalEventHandlers).enterpictureinpicture)==null||s.call(r,e))}onLeavePictureInPicture(e){var r,s;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,this.eventHandlers.resize.cancel(),o==null||o.removeEventListener("resize",this.eventHandlers.resize),(s=(r=this.externalEventHandlers).leavepictureinpicture)==null||s.call(r,e)}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function Ia(t){return t instanceof Ea}import{devNull as L1,now as V1}from"@vkontakte/videoplayer-shared/es2018";Cg();function kf(t,e){F(e,!1);let i=he();Rt(()=>{i.getAdmanWrapper().startPostroll()}),Ko(),U()}import{noop as Ub}from"@vkontakte/videoplayer-shared/es2018";var zb=(t,e,i)=>{t.stopPropagation(),n(e)&&i()()},Wb=M('<div class="skip svelte-1k4i25s"> <svg class="icon svelte-1k4i25s" width="7" height="12" viewBox="0 0 7 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"></path></svg></div>'),Kb=M("<div><!></div>"),qb={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 Af(t,e){F(e,!0),W(t,qb);let[i,o]=De(),r=()=>S(u,"$isMobile",i),s=h(e,"position",3,0),l=h(e,"secondsToWatchBeforeSkip",3,0),d=h(e,"skipAd",3,Ub),u=he().ui.isMobile,f=m(()=>s()>0&&s()>=l());var v=Kb();let p;v.__click=[zb,f,d];var y=_(v);{var w=C=>{var T=Wb(),E=_(T);Te(),g(T),D(R=>ve(E,`${R!=null?R:""} `),[()=>j("skip_ads_now")]),b(C,T)},x=C=>{var T=rs();D(E=>ve(T,E),[()=>j("skip_ads_after",{time:Math.ceil(l()-s()).toFixed(0)})]),b(C,T)};V(y,C=>{n(f)?C(w):C(x,!1)})}g(v),D(C=>p=ne(v,1,"container svelte-1k4i25s",null,p,C),[()=>({"container-mobile":r(),skippable:n(f)})]),b(t,v),U(),o()}lt(["click"]);var Qb=M('<button class="go-to-site svelte-1dzpmjp"> </button>'),Gb={hash:"svelte-1dzpmjp",code:"button.go-to-site.svelte-1dzpmjp {position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black;}"};function Pf(t,e){F(e,!1),W(t,Gb),Ko();var i=Qb(),o=_(i,!0);g(i),D(r=>ve(o,r),[()=>j("visit_advertiser")],bn),b(t,i),U()}var jb=M('<div class="top-gradient-mobile svelte-354ajf"></div>'),Yb=M('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),Zb={hash:"svelte-354ajf",code:`.container.svelte-354ajf {width:100%;height:100%;}.top-gradient-mobile.svelte-354ajf {position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
57
57
  360deg,
58
58
  rgba(0, 0, 0, 0) 0%,
59
59
  rgba(0, 0, 0, 0.05) 12%,
@@ -63,7 +63,7 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},Jh=tb;var $
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 od(t,e){U(e,!0),K(t,xb);let[i,o]=Be(),n=()=>S(H,"$canSkipAd",i),s=()=>S(F,"$adPlaybackState",i),l=()=>S(E,"$isMobile",i),d=()=>S(W,"$adPosition",i),a=()=>S(Y,"$secondsToWatchBeforeSkipAd",i),p=()=>S(C,"$isVideoEnded",i),f=v(e,"adsSlotId",3,void 0),m=v(e,"adsParams",3,void 0),u=v(e,"adsAutoplayParam",3,void 0),y=v(e,"duration",3,0),w=v(e,"adsExternalApi",3,void 0),x=Ce(),T=Tt(),C=x.state.isEnded$,E=x.ui.isMobile,R=T.ads.isMobileGoToSiteButton,I=X(void 0),k=X(void 0),B=!1,F=x.ads.playbackState,H=x.ads.canSkip,W=x.ads.position,Y=x.ads.secondsToWatchBeforeSkip,oe=g(()=>n()&&s()!=="inactive"),G=g(()=>l()&&s()!=="inactive"&&R);Pt(()=>{var Te;let P=x.getAdmanWrapper();if(c1.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[u1(),f()]}),!f()){P.onAdmanLoadingError();return}let ot=async Ke=>{await P.initAdman(Ke),B=!0},Oe=new AbortController,Q=()=>{Oe.abort()},{width:te,height:Re}=$e(x.ui.playerSize),Je=$e(x.ui.isFullscreen),ye=(Te=u())!=null?Te:$e(x.ui.isAutoplay),ee=T.ads.paramsOverride,Se={width:te,height:Re,isFullscreen:Je,isAutoplay:ye,adsContainer:r(I),adsVideoElement:r(k),slotId:f(),params:m(),paramsOverride:ee,duration:y(),externalApi:w()};return window.AdmanHTML?ot(Se):P.loadAdman(Oe.signal).then(()=>ot(Se)).catch(()=>{P.onAdmanLoadingError()}),()=>{c1.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[u1(),f()]}),!B&&Q()}});var he=yb(),J=_(he);{var pe=P=>{var ot=$b();$(P,ot)};V(J,P=>{l()&&P(pe)})}var me=A(J,2);st(me,P=>O(k,P),()=>r(k));var ue=A(me,2);{var Le=P=>{_f(P,{get position(){return d()},get secondsToWatchBeforeSkip(){return a()},get skipAd(){return x.actions.internal.skipAd}})};V(ue,P=>{r(oe)&&P(Le)})}var Me=A(ue,2);{var le=P=>{hf(P,{})};V(Me,P=>{p()&&P(le)})}var Ne=A(Me,2);{var re=P=>{bf(P,{})};V(Ne,P=>{r(G)&&P(re)})}h(he),st(he,P=>O(I,P),()=>r(I)),$(t,he),z(),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 wb=we('<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 $f(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=wb();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 s;return(s=e.children)!=null?s:ae}),xe(2),h(o),$(t,o)}var Sb=we('<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 yf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Sb();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 s;return(s=e.children)!=null?s:ae}),xe(2),h(o),$(t,o)}function nd(t,e){let i=v(e,"isActive",3,!1);var o=Fe(),n=fe(o);{var s=d=>{yf(d,{})},l=d=>{$f(d,{})};V(n,d=>{i()?d(s):d(l,!1)})}$(t,o)}var Cb=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>'),Tb=M('<div class="live-icon svelte-1s15d2i"><!></div>'),Eb=M('<span class="text svelte-1s15d2i"> </span>'),Ib=M("<div><!> <!></div>"),kb={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 Td(t,e){F(e,!0),W(t,Zb);let[i,o]=De(),r=()=>S(B,"$canSkipAd",i),s=()=>S(H,"$adPlaybackState",i),l=()=>S(E,"$isMobile",i),d=()=>S(z,"$adPosition",i),a=()=>S(Z,"$secondsToWatchBeforeSkipAd",i),u=()=>S(T,"$isVideoEnded",i),f=h(e,"adsSlotId",3,void 0),v=h(e,"adsParams",3,void 0),p=h(e,"adsAutoplayParam",3,void 0),y=h(e,"duration",3,0),w=h(e,"adsExternalApi",3,void 0),x=he(),C=Lt(),T=x.state.isEnded$,E=x.ui.isMobile,R=C.ads.isMobileGoToSiteButton,A=Q(void 0),I=Q(void 0),O=!1,H=x.ads.playbackState,B=x.ads.canSkip,z=x.ads.position,Z=x.ads.secondsToWatchBeforeSkip,ae=m(()=>r()&&s()!=="inactive"),q=m(()=>l()&&s()!=="inactive"&&R);Rt(()=>{var ge;let k=x.getAdmanWrapper();if(L1.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[V1(),f()]}),!f()){k.onAdmanLoadingError();return}let Ke=async Fe=>{await k.initAdman(Fe),O=!0},Ve=new AbortController,Y=()=>{Ve.abort()},{width:oe,height:Be}=be(x.ui.playerSize),Ye=be(x.ui.isFullscreen),me=(ge=p())!=null?ge:be(x.ui.isAutoplay),J=C.ads.paramsOverride,Ie={width:oe,height:Be,isFullscreen:Ye,isAutoplay:me,adsContainer:n(A),adsVideoElement:n(I),slotId:f(),params:v(),paramsOverride:J,duration:y(),externalApi:w()};return window.AdmanHTML?Ke(Ie):k.loadAdman(Ve.signal).then(()=>Ke(Ie)).catch(()=>{k.onAdmanLoadingError()}),()=>{L1.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[V1(),f()]}),!O&&Y()}});var de=Yb(),X=_(de);{var fe=k=>{var Ke=jb();b(k,Ke)};V(X,k=>{l()&&k(fe)})}var re=P(X,2);st(re,k=>N(I,k),()=>n(I));var le=P(re,2);{var Me=k=>{Af(k,{get position(){return d()},get secondsToWatchBeforeSkip(){return a()},get skipAd(){return x.actions.internal.skipAd}})};V(le,k=>{n(ae)&&k(Me)})}var we=P(le,2);{var te=k=>{kf(k,{})};V(we,k=>{u()&&k(te)})}var Ne=P(we,2);{var ue=k=>{Pf(k,{})};V(Ne,k=>{n(q)&&k(ue)})}g(de),st(de,k=>N(A,k),()=>n(A)),b(t,de),U(),o()}var qo=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let o=Math.floor(e/60);e-=o*60;let r=[o,e].map(s=>String(s).padStart(2,"0")).join(":");return i>0&&(r=`${i}:${r}`),r};var Xb=Ee('<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 Mf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Xb();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}var Jb=Ee('<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 Lf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Jb();ke(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 r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}function Ed(t,e){let i=h(e,"isActive",3,!1);var o=He(),r=pe(o);{var s=d=>{Lf(d,{})},l=d=>{Mf(d,{})};V(r,d=>{i()?d(s):d(l,!1)})}b(t,o)}var e$=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>'),t$=M('<div class="live-icon svelte-1s15d2i"><!></div>'),i$=M('<span class="text svelte-1s15d2i"> </span>'),o$=M("<div><!> <!></div>"),n$={hash:"svelte-1s15d2i",code:`.wrapper.svelte-1s15d2i {padding:2px 6px;white-space:nowrap;border-radius:4px;background-color:var(--black-alpha-40);transition:visibility var(--controls-transition-duration),
67
67
  opacity var(--controls-transition-duration);}.wrapper.live.svelte-1s15d2i {font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red);padding:0 7px;}.equalizer.svelte-1s15d2i {display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px;}.live.svelte-1s15d2i .equalizer:where(.svelte-1s15d2i) {margin-top:-2px;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i) {width:2px;height:10px;margin-right:2px;background:var(--btn-color, --white);position:absolute;bottom:0;transform-origin:50% 100%;
68
68
  animation: 1.5s infinite linear alternate;animation-play-state:paused;}.playing.svelte-1s15d2i .equalizer:where(.svelte-1s15d2i) .col:where(.svelte-1s15d2i) {animation-play-state:running;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(1) {left:0;
69
69
  animation-name: svelte-1s15d2i-thumb-timer-equalizer-col1;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(2) {left:3px;
@@ -134,10 +134,10 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},Jh=tb;var $
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 rd(t,e){K(t,kb);let i=v(e,"withEqualizer",3,!1),o=v(e,"isLive",3,!1),n=v(e,"isPlaying",3,!1);var s=Ib();let l;var d=_(s);{var a=u=>{var y=Cb();$(u,y)};V(d,u=>{i()&&u(a)})}var p=A(d,2);{var f=u=>{var y=Tb(),w=_(y);nd(w,{isActive:!0}),h(y),$(u,y)},m=u=>{var y=Eb(),w=_(y,!0);h(y),D(()=>ve(w,e.time)),$(u,y)};V(p,u=>{o()?u(f):u(m,!1)})}h(s),D(u=>l=ne(s,1,"wrapper svelte-1s15d2i",null,l,u),[()=>({live:o(),playing:n()})]),$(t,s)}var nl=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var Ab=M('<div role="timer" data-testid="thumb-timer"><!></div>'),Pb={hash:"svelte-c6gowj",code:`.thumb-timer.svelte-c6gowj {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;transition:visibility var(--controls-transition-duration),
138
- opacity var(--controls-transition-duration);}`};function sd(t,e){U(e,!0),K(t,Pb);let[i,o]=Be(),n=()=>S(f,"$disabled",i),s=v(e,"isHidden",3,!1),l=v(e,"isLive",3,!1),d=v(e,"isPlaying",3,!1),a=Tt(),p=g(()=>mn(e.duration-e.position)),f=se(!1);var m=Ab();let u;var y=_(m);rd(y,{get time(){return r(p)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),h(m),_s(m,()=>nl(s()&&a.features.usePerformanceFix,f,a.disableInvisibleComponentsTimeout)),D(w=>u=ne(m,1,"thumb-timer svelte-c6gowj",null,u,w),[()=>({"out-of-flow":n(),hidden:s()})]),$(t,m),z(),o()}var rl=t=>{if(!navigator.clipboard){p1(t);return}navigator.clipboard.writeText(t).catch(()=>p1(t))};function p1(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 Ub}from"@vkontakte/videoplayer-core/es2018";import{clientChecker as f1}from"@vkontakte/videoplayer-core/es2018";var xf="focus-hidden";var Tr=t=>{t.stopPropagation(),t.preventDefault()},wf=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(xf)},Mb=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},Vb=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},Rb=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},Nb=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},m1=t=>t.code==="Escape",Ob=t=>t.code==="ArrowLeft",ad=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},v1=t=>{Rb(t)?(Tr(t),Vb(t.target)):Nb(t)&&(Tr(t),Mb(t.target))},zs=t=>!f1.device.isAndroid&&(t==null?void 0:t.detail)===0||f1.device.isAndroid&&(t==null?void 0:t.pointerType)==="",sl=async(t,e,i)=>{await bo(),t&&!t.classList.contains("opened")&&!e&&$e(i)&&(await bo(),i.set(!1),t.focus())},g1=async(t,e,i)=>{await bo(),t&&!e&&$e(i)&&(i.set(!1),t.focus())},ld=async(t,e,i,o=!1)=>{if(await bo(),!!t&&e&&!o){let s=t.children[0];s==null||s.classList.toggle(xf,!i),s==null||s.focus()}},h1=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},su=(t,e)=>{v1(t),wf(t.target),m1(t)&&(Tr(t),e())},au=async(t,e)=>{ad(t,["ArrowRight"])&&(Tr(t),e())},_1=async(t,e,i)=>{if(v1(t),Ob(t)){Tr(t),e();return}m1(t)&&(Tr(t),i())},al=(t,e)=>{ad(t)&&(Tr(t),e())},b1=(t,e,i)=>{if(ad(t))Tr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),Tr(t);return}o==="ArrowRight"&&!e&&(i(!0),Tr(t))}},$1=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},y1=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 lu,isValidURL as zb}from"@vkontakte/videoplayer-shared/es2018";var Wr={"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 x1}from"@vkontakte/videoplayer-shared/es2018";var Db=(t,e)=>{al(t,()=>e())},Fb=M('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),Hb={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 Sf(t,e){U(e,!0),K(t,Hb);let i=v(e,"onClick",3,x1),o=v(e,"closeContextMenu",3,x1),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var s=Fb();s.__click=n,s.__keydown=[Db,n];var l=_(s,!0);h(s),D(()=>{var d;He(s,"aria-label",(d=e.ariaLabel)!=null?d:e.label),He(s,"data-testid",e.id),ve(l,e.label)}),$(t,s),z()}dt(["click","keydown"]);var ma=(t,e)=>t.weight-e.weight;var dd=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(dd||{});var Wb=(t,e)=>{su(t,e)},Kb=t=>{t.preventDefault()},qb=M('<ul role="menu" class="svelte-1p5ukkp"></ul>'),Qb={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 Cf(t,e){U(e,!0),K(t,Qb);let[i,o]=Be(),n=()=>S(oe,"$isLive$",i),s=()=>S(pe,"$isPiPEnabled$",i),l=()=>S(Y,"$chromecastState$",i),d=()=>S(me,"$pictureInPictureApiIsActive$",i),a=()=>S(J,"$isLooped$",i),p=()=>S(G,"$positionExact$",i),f=()=>S(F,"$additionalContextMenuItems$",i),m=v(e,"visible",3,!1),u=v(e,"position",19,()=>({top:0,left:0})),y=v(e,"playerContainerRef",3,void 0),w=v(e,"controlsContainerRef",3,void 0),x=v(e,"menuElementRef",15,void 0),T=X(0),C=X(0),E=Ce(),{pictureInPicture$:R}=lo(),I=Tt(),k=E.ui.contextMenu.visible$,B=E.ui.debugPanelVisible,F=E.ui.additionalContextMenuItems$,H=E.ui.t,W=E.actions.internal.togglePictureInPicture,Y=E.state.chromecastState$,oe=E.state.isLive$,G=E.state.positionExact$,he=E.state.isInteractive,J=E.state.looped$,{isEnabled$:pe,isActive$:me}=R,ue=g(()=>{var ce;return I.features.copyVideoLink&&((ce=E.callbacks)==null?void 0:ce.onCopyVideoLink)}),Le=g(()=>r(ue)&&!n()&&!he),Me=g(()=>{var ce;return!!((ce=E.callbacks)!=null&&ce.onCopyEmbedCodeClicked)}),le=g(()=>s()&&l()!==Ub.CONNECTED&&!he),Ne=g(()=>!he),re=g(()=>I.features.videoRotate&&!he),P=g(()=>I.showSupport&&!d()),ot=g(()=>I.features.saveTraceInfoToFile),Oe=()=>{var ce;k.set(!1),(ce=e.returnFocus)==null||ce.call(e)},Q=(ce,De)=>{if(!x()||!y()||!w())return;let be=x().getBoundingClientRect(),Ze=y().getBoundingClientRect();O(T,ce-Ze.left),O(C,De-Ze.top),r(T)+be.width>Ze.width&&O(T,Ze.width-be.width),r(C)+be.height>Ze.height&&O(C,Ze.height-be.height),O(T,Math.max(r(T),0),!0),O(C,Math.max(r(C),0),!0)};qe(()=>{(async()=>{if(x()&&y()&&w()){await bo();let{top:De,left:be,bottom:Ze,right:At}=u(),bt=be!=null?be:0,Lt=De!=null?De:0,vi=x().getBoundingClientRect();lu(be)&&!lu(At)&&(bt=At-vi.width),lu(De)&&!lu(Ze)&&(Lt=Ze-vi.height),bt=Math.max(bt,0),Lt=Math.max(Lt,0),Q(bt,Lt)}})()});let te=()=>{E.actions.internal.videoRotate()},Re=()=>{zb(e.supportLink)&&window.open(e.supportLink,"_blank"),E.actions.internal.reportProblem(),E.actions.internal.pause()},Je=()=>{let ce=E.actions.internal.getDebugTextData();if(I.features.saveDebugInfoToFile){let De=new Blob([...ce],{type:"plain/text"}),be=window.URL.createObjectURL(De);da(be,"vk_player_debug_info","txt")}else rl(E.actions.internal.getDebugTextData())},ye=()=>{let ce=E.actions.internal.getTraceTextData(),De=new Blob([...ce],{type:"application/json"}),be=window.URL.createObjectURL(De);da(be,"vk_player_trace_info","json")},ee=()=>{B.set(!0)},Se=async()=>{var ce;try{W()}finally{(ce=e.returnFocus)==null||ce.call(e)}},Te=()=>{E.actions.internal.setLooped(!a())},Ke=()=>{var ce,De;if(r(Me)){let be=(De=(ce=E.callbacks)==null?void 0:ce.onCopyEmbedCodeClicked)==null?void 0:De.call(ce);be&&rl(be)}},tt=(ce=!1)=>{var De,be;if((De=E.callbacks)!=null&&De.onCopyVideoLink){let Ze=(be=E.callbacks)==null?void 0:be.onCopyVideoLink(ce,p());Ze&&rl(Ze)}},pt=g(()=>I.features.saveDebugInfoToFile?H("menu_save_debug"):H("menu_copy_debug")),lt=g(()=>r(ue)?{id:"copy-link",weight:Wr["copy-link"],label:H("menu_copy_video_link"),onClick:()=>tt()}:void 0),mt=g(()=>r(Le)?{id:"copy-link-timestamp",weight:Wr["copy-link-timestamp"],label:H("menu_copy_video_link_with_timestamp"),onClick:()=>tt(!0)}:void 0),it=g(()=>r(Me)?{id:"copy-embed-code",weight:Wr["copy-embed-code"],label:H("menu_copy_embed_code"),onClick:Ke}:void 0),Dt=g(()=>r(le)?{id:"pip",weight:Wr.pip,label:d()?H("menu_pip_close"):H("menu_pip"),onClick:Se}:void 0),Wt=g(()=>r(Ne)?{id:"video-loop",weight:Wr["video-loop"],label:a()?H("menu_video_loop_off"):H("menu_video_loop_on"),ariaLabel:H("aria_label_menu_loop"),onClick:Te}:void 0),Qt=g(()=>r(re)?{id:"rotate",weight:Wr.rotate,label:H("menu_video_rotate"),ariaLabel:H("aria_label_menu_rotate"),onClick:te}:void 0),Kt=g(()=>r(P)?{id:"report",weight:Wr.report,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,onClick:Re}:void 0),ke=g(()=>({id:"save-debug",weight:Wr["save-debug"],label:r(pt),onClick:Je})),qt=g(()=>r(ot)?{id:"save-trace",weight:Wr["save-trace"],label:H("menu_save_debug"),onClick:ye}:void 0),_e=g(()=>({id:"debug-info",weight:Wr["debug-info"],label:H("menu_debug_overlay"),ariaLabel:H("aria_label_menu_debug_overlay"),onClick:ee})),Ee=g(()=>[r(lt),r(mt),r(it),r(Dt),r(Wt),r(Qt),r(Kt),r(ke),r(qt),r(_e),...f()].filter(ce=>!!ce).sort(ma));var de=Fe(),Qe=fe(de);{var Ue=ce=>{var De=qb();De.__contextmenu=[Kb],De.__keydown=[Wb,Oe],ki(De,21,()=>r(Ee),be=>be.id,(be,Ze)=>{Sf(be,{get id(){return r(Ze).id},get label(){return r(Ze).label},get ariaLabel(){return r(Ze).ariaLabel},get onClick(){return r(Ze).onClick},closeContextMenu:Oe})}),h(De),st(De,be=>x(be),()=>x()),D(()=>{var be,Ze;return at(De,`top: ${(be=r(C))!=null?be:""}px; left: ${(Ze=r(T))!=null?Ze:""}px;`)}),$(ce,De)};V(Qe,ce=>{m()&&ce(Ue)})}$(t,de),z(),o()}dt(["contextmenu","keydown"]);var du=class{constructor(e){this.value=e,this.next=null}};var ll=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new du(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>'),jb={hash:"svelte-1ssl9eb",code:".container.svelte-1ssl9eb {display:inline-block;width:120px;height:16px;}canvas.svelte-1ssl9eb {transform:scale(1, -1);margin-top:2px;}"};function cd(t,e){U(e,!0),K(t,jb);let i=v(e,"values",19,()=>[]),o=X(void 0),n=X(null),s=16,l=120,d=60,a=l/d;Pt(()=>{r(o).width=l,r(o).height=s,O(n,r(o).getContext("2d"),!0)});function p(u,y,w,x,T){T===0&&(T=1),u.fillStyle="#fff",u.fillRect(y,w,x,T)}qe(()=>{let u="";if(r(n)){let y=i()[0];for(let x=1;x<i().length;x++)i()[x]>y&&(y=i()[x]);r(n).clearRect(0,0,l,s);let w=d-1;for(let x=i().length-1;x>=0;x--){let T=w*a,C=y>0?s*(i()[x]/y):0;p(r(n),T,0,a,C),u=C+" "+u,w--}}});var f=Gb(),m=_(f);st(m,u=>O(o,u),()=>r(o)),h(f),$(t,f),z()}import{safeStorage as w1}from"@vkontakte/videoplayer-shared/es2018";var Yb=(t,e)=>{t.stopPropagation(),w1.remove(Yl),e.set(!1)},Zb=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Video id</div> <span> </span></div>'),Xb=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">VSID</div> <span> </span></div>'),Jb=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Provider</div> <span> </span></div>'),e$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Streams</div> <span> </span></div>'),t$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Viewport</div> <span> </span></div>'),i$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Video size</div> <span> </span></div>'),o$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">CDN host</div> <span> </span></div>'),n$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Volume</div> <span> </span></div>'),r$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Position</div> <span> </span></div>'),s$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Buffer</div> <span> </span></div>'),a$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Live latency</div> <span> </span></div>'),l$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Segment</div> <span> </span></div>'),d$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Network</div> <!> <span> </span></div>'),c$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">V bitrate</div> <!> <span> </span></div>'),u$=M('<div role="region"><button class="close svelte-lx3h69" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-lx3h69"><div class="svelte-lx3h69"><div class="svelte-lx3h69">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-lx3h69"><div class="svelte-lx3h69">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-lx3h69"><div class="svelte-lx3h69">FPS</div> <!> <span> </span></div></div></div>'),p$={hash:"svelte-lx3h69",code:".container.svelte-lx3h69 {background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left;user-select:text;}.container-mobile.svelte-lx3h69 {top:16px;left:16px;}button.close.svelte-lx3h69 {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.svelte-lx3h69 {padding:5px;}.content.svelte-lx3h69 > div:where(.svelte-lx3h69) > div:where(.svelte-lx3h69) {display:inline-block;text-align:right;width:60px;padding:0 5px;}"};function ud(t,e){U(e,!0),K(t,p$);let[i,o]=Be(),n=()=>S(d,"$isMobile",i),s=Ce(),l=s.ui.debugPanelVisible,d=s.ui.isMobile,a=X(Zt(s.actions.internal.getDebugPanelData())),p=s.actions.internal.getVideoElement(),f=X(0),m=X(0),u=X(0),y=new ll(60),w=new ll(60),x=new ll(60),T=X(Zt([])),C=X(Zt([])),E=X(Zt([])),R=q("aria_label_debug_panel");Pt(()=>{w1.set(Yl,"true"),s.actions.internal.startLogging(),p&&(O(m,p.getVideoPlaybackQuality().droppedVideoFrames,!0),O(f,p.getVideoPlaybackQuality().totalVideoFrames,!0));let _e=window.setInterval(()=>{O(a,s.actions.internal.getDebugPanelData(),!0)},500),Ee;return p&&(Ee=window.setInterval(()=>{if(p){O(m,p.getVideoPlaybackQuality().droppedVideoFrames,!0);let de=p.getVideoPlaybackQuality().totalVideoFrames;O(u,de-r(f)),O(f,de,!0),y.push(r(u)),r(a).speed&&w.push(r(a).speed),r(a).bitrate&&x.push(r(a).bitrate),O(T,y.getValuesFromBottom(),!0),O(C,w.getValuesFromBottom(),!0),O(E,x.getValuesFromBottom(),!0)}},1e3)),()=>{s.actions.internal.stopLogging(),clearInterval(_e),Ee&&clearInterval(Ee)}});var I=u$();let k;var B=_(I);B.__click=[Yb,l];var F=A(B,2),H=_(F),W=A(_(H),2),Y=_(W,!0);h(W),h(H);var oe=A(H,2);{var G=_e=>{var Ee=Zb(),de=A(_(Ee),2),Qe=_(de,!0);h(de),h(Ee),D(()=>ve(Qe,r(a).id)),$(_e,Ee)};V(oe,_e=>{r(a).id&&_e(G)})}var he=A(oe,2);{var J=_e=>{var Ee=Xb(),de=A(_(Ee),2),Qe=_(de,!0);h(de),h(Ee),D(()=>ve(Qe,r(a).vsid)),$(_e,Ee)};V(he,_e=>{r(a).vsid&&_e(J)})}var pe=A(he,2);{var me=_e=>{var Ee=Jb(),de=A(_(Ee),2),Qe=_(de,!0);h(de),h(Ee),D(()=>ve(Qe,r(a).provider)),$(_e,Ee)};V(pe,_e=>{r(a).provider&&_e(me)})}var ue=A(pe,2);{var Le=_e=>{var Ee=e$(),de=A(_(Ee),2),Qe=_(de);h(de),h(Ee),D(()=>{var Ue,ce;return ve(Qe,`Video: ${(Ue=r(a).videoCodec||"")!=null?Ue:""} ${r(a).hdr?"(HDR)":""}
137
+ }.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function Id(t,e){W(t,n$);let i=h(e,"withEqualizer",3,!1),o=h(e,"isLive",3,!1),r=h(e,"isPlaying",3,!1);var s=o$();let l;var d=_(s);{var a=p=>{var y=e$();b(p,y)};V(d,p=>{i()&&p(a)})}var u=P(d,2);{var f=p=>{var y=t$(),w=_(y);Ed(w,{isActive:!0}),g(y),b(p,y)},v=p=>{var y=i$(),w=_(y,!0);g(y),D(()=>ve(w,e.time)),b(p,y)};V(u,p=>{o()?p(f):p(v,!1)})}g(s),D(p=>l=ne(s,1,"wrapper svelte-1s15d2i",null,l,p),[()=>({live:o(),playing:r()})]),b(t,s)}var Tl=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var r$=M('<div role="timer" data-testid="thumb-timer"><!></div>'),s$={hash:"svelte-c6gowj",code:`.thumb-timer.svelte-c6gowj {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;transition:visibility var(--controls-transition-duration),
138
+ opacity var(--controls-transition-duration);}`};function kd(t,e){F(e,!0),W(t,s$);let[i,o]=De(),r=()=>S(f,"$disabled",i),s=h(e,"isHidden",3,!1),l=h(e,"isLive",3,!1),d=h(e,"isPlaying",3,!1),a=Lt(),u=m(()=>qo(e.duration-e.position)),f=se(!1);var v=r$();let p;var y=_(v);Id(y,{get time(){return n(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),g(v),Ss(v,()=>Tl(s()&&a.features.usePerformanceFix,f,a.disableInvisibleComponentsTimeout)),D(w=>p=ne(v,1,"thumb-timer svelte-c6gowj",null,p,w),[()=>({"out-of-flow":r(),hidden:s()})]),b(t,v),U(),o()}var El=t=>{if(!navigator.clipboard){R1(t);return}navigator.clipboard.writeText(t).catch(()=>R1(t))};function R1(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 h$}from"@vkontakte/videoplayer-core/es2018";import{clientChecker as N1}from"@vkontakte/videoplayer-core/es2018";var Vf="focus-hidden";var xr=t=>{t.stopPropagation(),t.preventDefault()},Rf=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(Vf)},l$=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},d$=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},c$=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},u$=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},O1=t=>t.code==="Escape",p$=t=>t.code==="ArrowLeft",Ad=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},D1=t=>{c$(t)?(xr(t),d$(t.target)):u$(t)&&(xr(t),l$(t.target))},Ys=t=>!N1.device.isAndroid&&(t==null?void 0:t.detail)===0||N1.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Il=async(t,e,i)=>{await Eo(),t&&!t.classList.contains("opened")&&!e&&be(i)&&(await Eo(),i.set(!1),t.focus())},B1=async(t,e,i)=>{await Eo(),t&&!e&&be(i)&&(i.set(!1),t.focus())},Pd=async(t,e,i,o=!1)=>{if(await Eo(),!!t&&e&&!o){let s=t.children[0];s==null||s.classList.toggle(Vf,!i),s==null||s.focus()}},H1=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Cu=(t,e)=>{D1(t),Rf(t.target),O1(t)&&(xr(t),e())},Tu=async(t,e)=>{Ad(t,["ArrowRight"])&&(xr(t),e())},F1=async(t,e,i)=>{if(D1(t),p$(t)){xr(t),e();return}O1(t)&&(xr(t),i())},kl=(t,e)=>{Ad(t)&&(xr(t),e())},U1=(t,e,i)=>{if(Ad(t))xr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),xr(t);return}o==="ArrowRight"&&!e&&(i(!0),xr(t))}},z1=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,r=e.top+i;return{right:o,bottom:r}},W1=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,r=e.left+o;return{bottom:e.bottom+i,left:r}};import{isNullable as Eu,isValidURL as _$}from"@vkontakte/videoplayer-shared/es2018";var jr={"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 K1}from"@vkontakte/videoplayer-shared/es2018";var v$=(t,e)=>{kl(t,()=>e())},m$=M('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),g$={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),W(t,g$);let i=h(e,"onClick",3,K1),o=h(e,"closeContextMenu",3,K1),r=d=>{d==null||d.stopPropagation(),i()(),o()()};var s=m$();s.__click=r,s.__keydown=[v$,r];var l=_(s,!0);g(s),D(()=>{var d;We(s,"aria-label",(d=e.ariaLabel)!=null?d:e.label),We(s,"data-testid",e.id),ve(l,e.label)}),b(t,s),U()}lt(["click","keydown"]);var Aa=(t,e)=>t.weight-e.weight;var Md=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Md||{});var b$=(t,e)=>{Cu(t,e)},$$=t=>{t.preventDefault()},y$=M('<ul role="menu" class="svelte-1p5ukkp"></ul>'),x$={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 Of(t,e){F(e,!0),W(t,x$);let[i,o]=De(),r=()=>S(fe,"$playerPhase",i),s=()=>S(ae,"$isLive$",i),l=()=>S(re,"$isPiPEnabled$",i),d=()=>S(Z,"$chromecastState$",i),a=()=>S(le,"$pictureInPictureApiIsActive$",i),u=()=>S(X,"$isLooped$",i),f=()=>S(q,"$positionExact$",i),v=()=>S(H,"$additionalContextMenuItems$",i),p=h(e,"visible",3,!1),y=h(e,"position",19,()=>({top:0,left:0})),w=h(e,"playerContainerRef",3,void 0),x=h(e,"menuElementRef",15,void 0),C=Q(0),T=Q(0),E=he(),{pictureInPicture$:R}=ho(),A=Lt(),I=E.ui.contextMenu.visible$,O=E.ui.debugPanelVisible,H=E.ui.additionalContextMenuItems$,B=E.ui.t,z=E.actions.internal.togglePictureInPicture,Z=E.state.chromecastState$,ae=E.state.isLive$,q=E.state.positionExact$,de=E.state.isInteractive,X=E.state.looped$,fe=E.playerPhase,{isEnabled$:re,isActive$:le}=R,Me=m(()=>r()==="video"),we=m(()=>!!s()&&n(Me)),te=m(()=>["thumb","LiveWaitingStart","LiveWaitingRecover","LiveWaitingRecord"].includes(r())),Ne=m(()=>{var ye;return A.features.copyVideoLink&&((ye=E.callbacks)==null?void 0:ye.onCopyVideoLink)}),ue=m(()=>n(Ne)&&!n(te)&&!de&&!n(we)),k=m(()=>{var ye;return!!((ye=E.callbacks)!=null&&ye.onCopyEmbedCodeClicked)}),Ke=m(()=>l()&&d()!==h$.CONNECTED&&!de&&n(Me)),Ve=m(()=>!de&&!n(te)&&!n(we)),Y=m(()=>A.features.videoRotate&&!de&&!n(te)),oe=m(()=>A.showSupport&&!a()),Be=m(()=>A.features.saveTraceInfoToFile),Ye=()=>{var ye;I.set(!1),(ye=e.returnFocus)==null||ye.call(e)},me=(ye,it)=>{if(!x()||!w())return;let qe=x().getBoundingClientRect(),at=w().getBoundingClientRect();N(C,ye-at.left),N(T,it-at.top),n(C)+qe.width>at.width&&N(C,at.width-qe.width),n(T)+qe.height>at.height&&N(T,at.height-qe.height),N(C,Math.max(n(C),0),!0),N(T,Math.max(n(T),0),!0)};ze(()=>{(async()=>{if(x()&&w()){await Eo();let{top:it,left:qe,bottom:at,right:Jt}=y(),ni=qe!=null?qe:0,fi=it!=null?it:0,bi=x().getBoundingClientRect();Eu(qe)&&!Eu(Jt)&&(ni=Jt-bi.width),Eu(it)&&!Eu(at)&&(fi=at-bi.height),ni=Math.max(ni,0),fi=Math.max(fi,0),me(ni,fi)}})()});let J=()=>{E.actions.internal.videoRotate()},Ie=()=>{_$(e.supportLink)&&window.open(e.supportLink,"_blank"),E.actions.internal.reportProblem(),E.actions.internal.pause()},ge=()=>{let ye=E.actions.internal.getDebugTextData();if(A.features.saveDebugInfoToFile){let it=new Blob([...ye],{type:"plain/text"}),qe=window.URL.createObjectURL(it);Ca(qe,"vk_player_debug_info","txt")}else El(E.actions.internal.getDebugTextData())},Fe=()=>{let ye=E.actions.internal.getTraceTextData(),it=new Blob([...ye],{type:"application/json"}),qe=window.URL.createObjectURL(it);Ca(qe,"vk_player_trace_info","json")},Ze=()=>{O.set(!0)},Ge=async()=>{var ye;try{z()}finally{(ye=e.returnFocus)==null||ye.call(e)}},dt=()=>{E.actions.internal.setLooped(!u())},Je=()=>{var ye,it;if(n(k)){let qe=(it=(ye=E.callbacks)==null?void 0:ye.onCopyEmbedCodeClicked)==null?void 0:it.call(ye);qe&&El(qe)}},Ot=(ye=!1)=>{var it,qe;if((it=E.callbacks)!=null&&it.onCopyVideoLink){let at=(qe=E.callbacks)==null?void 0:qe.onCopyVideoLink(ye,f());at&&El(at)}},nt=m(()=>A.features.saveDebugInfoToFile?B("menu_save_debug"):B("menu_copy_debug")),Nt=m(()=>n(Ne)?{id:"copy-link",weight:jr["copy-link"],label:B("menu_copy_video_link"),onClick:()=>Ot()}:void 0),Wt=m(()=>n(ue)?{id:"copy-link-timestamp",weight:jr["copy-link-timestamp"],label:B("menu_copy_video_link_with_timestamp"),onClick:()=>Ot(!0)}:void 0),Ct=m(()=>n(k)?{id:"copy-embed-code",weight:jr["copy-embed-code"],label:B("menu_copy_embed_code"),onClick:Je}:void 0),Xt=m(()=>n(Ke)?{id:"pip",weight:jr.pip,label:a()?B("menu_pip_close"):B("menu_pip"),onClick:Ge}:void 0),Ut=m(()=>n(Ve)?{id:"video-loop",weight:jr["video-loop"],label:u()?B("menu_video_loop_off"):B("menu_video_loop_on"),ariaLabel:B("aria_label_menu_loop"),onClick:dt}:void 0),Se=m(()=>n(Y)?{id:"rotate",weight:jr.rotate,label:B("menu_video_rotate"),ariaLabel:B("aria_label_menu_rotate"),onClick:J}:void 0),xe=m(()=>n(oe)?{id:"report",weight:jr.report,label:B("menu_report"),ariaLabel:`${B("menu_report")}. ${B("aria_label_new_tab_alert")}`,onClick:Ie}:void 0),ee=m(()=>({id:"save-debug",weight:jr["save-debug"],label:n(nt),onClick:ge})),Ce=m(()=>n(Be)?{id:"save-trace",weight:jr["save-trace"],label:B("menu_save_debug"),onClick:Fe}:void 0),Pe=m(()=>({id:"debug-info",weight:jr["debug-info"],label:B("menu_debug_overlay"),ariaLabel:B("aria_label_menu_debug_overlay"),onClick:Ze})),Tt=m(()=>[n(Nt),n(Wt),n(Ct),n(Xt),n(Ut),n(Se),n(xe),n(ee),n(Ce),n(Pe),...v()].filter(ye=>!!ye).sort(Aa));var Oe=He(),ct=pe(Oe);{var bt=ye=>{var it=y$();it.__contextmenu=[$$],it.__keydown=[b$,Ye],wi(it,21,()=>n(Tt),qe=>qe.id,(qe,at)=>{Nf(qe,{get id(){return n(at).id},get label(){return n(at).label},get ariaLabel(){return n(at).ariaLabel},get onClick(){return n(at).onClick},closeContextMenu:Ye})}),g(it),st(it,qe=>x(qe),()=>x()),D(()=>{var qe,at;return Xe(it,`top: ${(qe=n(T))!=null?qe:""}px; left: ${(at=n(C))!=null?at:""}px;`)}),b(ye,it)};V(ct,ye=>{p()&&ye(bt)})}b(t,Oe),U(),o()}lt(["contextmenu","keydown"]);var Iu=class{constructor(e){this.value=e,this.next=null}};var Al=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Iu(e);this.top?(this.top.next=i,this.top=i):(this.top=i,this.bottom=i),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}};var w$=M('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),S$={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 Ld(t,e){F(e,!0),W(t,S$);let i=h(e,"values",19,()=>[]),o=Q(void 0),r=Q(null),s=16,l=120,d=60,a=l/d;Rt(()=>{n(o).width=l,n(o).height=s,N(r,n(o).getContext("2d"),!0)});function u(p,y,w,x,C){C===0&&(C=1),p.fillStyle="#fff",p.fillRect(y,w,x,C)}ze(()=>{let p="";if(n(r)){let y=i()[0];for(let x=1;x<i().length;x++)i()[x]>y&&(y=i()[x]);n(r).clearRect(0,0,l,s);let w=d-1;for(let x=i().length-1;x>=0;x--){let C=w*a,T=y>0?s*(i()[x]/y):0;u(n(r),C,0,a,T),p=T+" "+p,w--}}});var f=w$(),v=_(f);st(v,p=>N(o,p),()=>n(o)),g(f),b(t,f),U()}import{safeStorage as q1}from"@vkontakte/videoplayer-shared/es2018";var C$=(t,e)=>{t.stopPropagation(),q1.remove(bd),e.set(!1)},T$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Video id</div> <span> </span></div>'),E$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">VSID</div> <span> </span></div>'),I$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Provider</div> <span> </span></div>'),k$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Streams</div> <span> </span></div>'),A$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Viewport</div> <span> </span></div>'),P$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Video size</div> <span> </span></div>'),M$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">CDN host</div> <span> </span></div>'),L$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Volume</div> <span> </span></div>'),V$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Position</div> <span> </span></div>'),R$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Buffer</div> <span> </span></div>'),N$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Live latency</div> <span> </span></div>'),O$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Segment</div> <span> </span></div>'),D$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Network</div> <!> <span> </span></div>'),B$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">V bitrate</div> <!> <span> </span></div>'),H$=M('<div role="region"><button class="close svelte-lx3h69" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-lx3h69"><div class="svelte-lx3h69"><div class="svelte-lx3h69">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-lx3h69"><div class="svelte-lx3h69">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-lx3h69"><div class="svelte-lx3h69">FPS</div> <!> <span> </span></div></div></div>'),F$={hash:"svelte-lx3h69",code:".container.svelte-lx3h69 {background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left;user-select:text;}.container-mobile.svelte-lx3h69 {top:16px;left:16px;}button.close.svelte-lx3h69 {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.svelte-lx3h69 {padding:5px;}.content.svelte-lx3h69 > div:where(.svelte-lx3h69) > div:where(.svelte-lx3h69) {display:inline-block;text-align:right;width:60px;padding:0 5px;}"};function Vd(t,e){F(e,!0),W(t,F$);let[i,o]=De(),r=()=>S(d,"$isMobile",i),s=he(),l=s.ui.debugPanelVisible,d=s.ui.isMobile,a=Q(ai(s.actions.internal.getDebugPanelData())),u=s.actions.internal.getVideoElement(),f=Q(0),v=Q(0),p=Q(0),y=new Al(60),w=new Al(60),x=new Al(60),C=Q(ai([])),T=Q(ai([])),E=Q(ai([])),R=j("aria_label_debug_panel");Rt(()=>{q1.set(bd,"true"),s.actions.internal.startLogging(),u&&(N(v,u.getVideoPlaybackQuality().droppedVideoFrames,!0),N(f,u.getVideoPlaybackQuality().totalVideoFrames,!0));let Se=window.setInterval(()=>{N(a,s.actions.internal.getDebugPanelData(),!0)},500),xe;return u&&(xe=window.setInterval(()=>{if(u){N(v,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let ee=u.getVideoPlaybackQuality().totalVideoFrames;N(p,ee-n(f)),N(f,ee,!0),y.push(n(p)),n(a).speed&&w.push(n(a).speed),n(a).bitrate&&x.push(n(a).bitrate),N(C,y.getValuesFromBottom(),!0),N(T,w.getValuesFromBottom(),!0),N(E,x.getValuesFromBottom(),!0)}},1e3)),()=>{s.actions.internal.stopLogging(),clearInterval(Se),xe&&clearInterval(xe)}});var A=H$();let I;var O=_(A);O.__click=[C$,l];var H=P(O,2),B=_(H),z=P(_(B),2),Z=_(z,!0);g(z),g(B);var ae=P(B,2);{var q=Se=>{var xe=T$(),ee=P(_(xe),2),Ce=_(ee,!0);g(ee),g(xe),D(()=>ve(Ce,n(a).id)),b(Se,xe)};V(ae,Se=>{n(a).id&&Se(q)})}var de=P(ae,2);{var X=Se=>{var xe=E$(),ee=P(_(xe),2),Ce=_(ee,!0);g(ee),g(xe),D(()=>ve(Ce,n(a).vsid)),b(Se,xe)};V(de,Se=>{n(a).vsid&&Se(X)})}var fe=P(de,2);{var re=Se=>{var xe=I$(),ee=P(_(xe),2),Ce=_(ee,!0);g(ee),g(xe),D(()=>ve(Ce,n(a).provider)),b(Se,xe)};V(fe,Se=>{n(a).provider&&Se(re)})}var le=P(fe,2);{var Me=Se=>{var xe=k$(),ee=P(_(xe),2),Ce=_(ee);g(ee),g(xe),D(()=>{var Pe,Tt;return ve(Ce,`Video: ${(Pe=n(a).videoCodec||"")!=null?Pe:""} ${n(a).hdr?"(HDR)":""}
139
139
  &
140
- Audio: ${(ce=r(a).audioCodec||"")!=null?ce:""} ${r(a).audioLanguage?`(${r(a).audioLanguage})`:""}`)}),$(_e,Ee)};V(ue,_e=>{(r(a).videoCodec||r(a).audioCodec)&&_e(Le)})}var Me=A(ue,2);{var le=_e=>{var Ee=t$(),de=A(_(Ee),2),Qe=_(de,!0);h(de),h(Ee),D(()=>ve(Qe,r(a).viewport)),$(_e,Ee)};V(Me,_e=>{r(a).viewport&&_e(le)})}var Ne=A(Me,2);{var re=_e=>{var Ee=i$(),de=A(_(Ee),2),Qe=_(de,!0);h(de),h(Ee),D(()=>ve(Qe,r(a).videoSize)),$(_e,Ee)};V(Ne,_e=>{r(a).videoSize&&_e(re)})}var P=A(Ne,2);{var ot=_e=>{var Ee=o$(),de=A(_(Ee),2),Qe=_(de,!0);h(de),h(Ee),D(()=>ve(Qe,r(a).cdn)),$(_e,Ee)};V(P,_e=>{r(a).cdn&&_e(ot)})}var Oe=A(P,2);{var Q=_e=>{var Ee=n$(),de=A(_(Ee),2),Qe=_(de);h(de),h(Ee),D(()=>{var Ue;return ve(Qe,`${(Ue=r(a).volume)!=null?Ue:""} %`)}),$(_e,Ee)};V(Oe,_e=>{r(a).volume&&_e(Q)})}var te=A(Oe,2);{var Re=_e=>{var Ee=r$(),de=A(_(Ee),2),Qe=_(de);h(de),h(Ee),D(Ue=>ve(Qe,`${Ue!=null?Ue:""} s`),[()=>r(a).position.toFixed(2)]),$(_e,Ee)};V(te,_e=>{r(a).position&&_e(Re)})}var Je=A(te,2);{var ye=_e=>{var Ee=s$(),de=A(_(Ee),2),Qe=_(de);h(de),h(Ee),D(Ue=>ve(Qe,`${Ue!=null?Ue:""} s`),[()=>r(a).buffer.toFixed(2)]),$(_e,Ee)};V(Je,_e=>{r(a).buffer&&_e(ye)})}var ee=A(Je,2);{var Se=_e=>{var Ee=a$(),de=A(_(Ee),2),Qe=_(de);h(de),h(Ee),D(Ue=>ve(Qe,`${Ue!=null?Ue:""} s`),[()=>r(a).liveLatency.toFixed(2)]),$(_e,Ee)};V(ee,_e=>{r(a).liveLatency&&_e(Se)})}var Te=A(ee,2);{var Ke=_e=>{var Ee=l$(),de=A(_(Ee),2),Qe=_(de,!0);h(de),h(Ee),D(Ue=>ve(Qe,Ue),[()=>[{value:r(a).currentVideoSegmentLength,title:"Video:"},{value:r(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Ue})=>Ue).map(({value:Ue,title:ce})=>`${ce} ${((Ue!=null?Ue:0)/1e3).toFixed(2)} s`).join(" & ")]),$(_e,Ee)};V(Te,_e=>{(r(a).currentVideoSegmentLength||r(a).currentAudioSegmentLength)&&_e(Ke)})}var tt=A(Te,2),pt=A(_(tt),2),lt=_(pt);h(pt),h(tt);var mt=A(tt,2);{var it=_e=>{var Ee=d$(),de=A(_(Ee),2);cd(de,{get values(){return r(C)}});var Qe=A(de,2),Ue=_(Qe);h(Qe),h(Ee),D(ce=>ve(Ue,`${ce!=null?ce:""} Kbps`),[()=>r(a).speed.toFixed(2)]),$(_e,Ee)};V(mt,_e=>{r(a).speed&&_e(it)})}var Dt=A(mt,2);{var Wt=_e=>{var Ee=c$(),de=A(_(Ee),2);cd(de,{get values(){return r(E)}});var Qe=A(de,2),Ue=_(Qe);h(Qe),h(Ee),D(ce=>ve(Ue,`${ce!=null?ce:""} Kbps`),[()=>r(a).bitrate.toFixed(2)]),$(_e,Ee)};V(Dt,_e=>{r(a).bitrate&&_e(Wt)})}var Qt=A(Dt,2),Kt=A(_(Qt),2);cd(Kt,{get values(){return r(T)}});var ke=A(Kt,2),qt=_(ke,!0);h(ke),h(Qt),h(F),h(I),D(_e=>{var Ee,de;k=ne(I,1,"container svelte-lx3h69",null,k,_e),He(I,"aria-label",R),ve(Y,r(a).version),ve(lt,`${(Ee=r(m))!=null?Ee:""} / ${(de=r(f))!=null?de:""} frames`),ve(qt,r(u))},[()=>({"container-mobile":n()})]),$(t,I),z(),o()}dt(["click"]);import{noop as f$}from"@vkontakte/videoplayer-shared/es2018";var m$=(t,e)=>{t.stopPropagation(),e()()},v$=M('<div class="close svelte-1ome55p"></div>'),g$={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 va(t,e){U(e,!0),K(t,g$);let i=v(e,"onClick",3,f$);var o=v$();o.__click=[m$,i],$(t,o),z()}dt(["click"]);import{noop as h$}from"@vkontakte/videoplayer-shared/es2018";var _$=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>'),b$={hash:"svelte-8jhsry",code:".timer.svelte-8jhsry {border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around;}.timer.svelte-8jhsry:hover {background:rgba(31, 31, 31, .85)}.timer-canvas.svelte-8jhsry {width:50px;height:50px;position:absolute;}.timer-play-icon.svelte-8jhsry {width:22px;height:26px;}"};function pd(t,e){U(e,!0),K(t,b$);let i=v(e,"isRunning",3,!0),o=v(e,"onTimerEnded",3,h$),n=5e3,s=X(void 0),l,d,a=0,p;qe(()=>{i()&&xt(()=>{d=Date.now(),a=requestAnimationFrame(m)})});let f=()=>{a&&(cancelAnimationFrame(a),a=0)},m=()=>{f(),i()&&(p=(Date.now()-d)/n,p<1?(l==null||l.clearRect(0,0,100,100),l==null||l.beginPath(),l==null||l.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*p),l==null||l.stroke(),a=requestAnimationFrame(m)):o()())};Pt(()=>{l=r(s).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),Jo(()=>{f()});var u=_$(),y=_(u);st(y,w=>O(s,w),()=>r(s)),xe(2),h(u),$(t,u),z()}var $$=(t,e,i)=>{e(!1),i()},y$=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),x$={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 Tf(t,e){U(e,!0),K(t,x$);let[i,o]=Be(),n=()=>S(d,"$autoplayNextEnabled$",i),s=()=>S(a,"$timerNextVideoRunning$",i),l=Ce(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,p=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,m=l.actions.internal.nextVideoAnnouncementClick,u=l.actions.internal.nextVideoAnnouncementAuto,y=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(p(!1),u())},x=()=>{e.clickCloseIcon(),y()};Pt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var T=Fe(),C=fe(T);{var E=R=>{var I=y$(),k=A(fe(I),2),B=_(k),F=_(B),H=_(F,!0);h(F);var W=A(F,2);va(W,{onClick:x}),h(B);var Y=A(B,2);Y.__click=[$$,p,m];var oe=_(Y),G=_(oe),he=_(G);let J;var pe=A(he,2);{var me=le=>{let Ne=g(()=>s()&&n());pd(le,{get isRunning(){return r(Ne)},onTimerEnded:w})};V(pe,le=>{n()&&le(me)})}h(G),h(oe);var ue=A(oe,2),Le=_(ue),Me=_(Le,!0);h(Le),h(ue),h(Y),h(k),D((le,Ne)=>{ve(H,le),at(G,`background-image: url('${e.thumb}')`),J=ne(he,1,"thumb-overlay svelte-jfbaax",null,J,Ne),ve(Me,e.title)},[()=>q("end_screen_next_video"),()=>({withOpacity:n()})]),$(R,I)};V(C,R=>{e.isHide||R(E)})}$(t,T),z(),o()}dt(["click"]);import{PlaybackState as ga}from"@vkontakte/videoplayer-core/es2018";import{checkNever as S$}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as Pn}from"@vkontakte/videoplayer-statistics/es2018";var Ef=(t,e)=>Math.min(+(t+e).toFixed(2),1),If=(t,e)=>Math.max(+(t-e).toFixed(2),0),cu=(t,e,i)=>{let o=Ef(e,i);e<1&&t.actions.internal.setVolume(o)},uu=(t,e,i)=>{let o=If(e,i);e>0&&t.actions.internal.setVolume(o)};var Ws=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);function pu(){var t,e,i;return(i=(e=(t=document.activeElement)==null?void 0:t.shadowRoot)==null?void 0:e.activeElement)!=null?i:null}var C$=(t,e)=>{e(t)},T$=M('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),E$={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function kf(t,e){var Qe,Ue;U(e,!0),K(t,E$);let[i,o]=Be(),n=()=>S(pe,"$disabledControls$",i),s=()=>S(Se,"$isInteractiveTime$",i),l=()=>S(Te,"$showInteractiveTimeIndicatorTooltip$",i),d=()=>S(Y,"$playbackState$",i),a=()=>S(Q,"$isEnded$",i),p=()=>S(ot,"$doubleForwardAvailable$",i),f=()=>S(P,"$doubleForwardOn$",i),m=()=>S(oe,"$adPlaybackState",i),u=()=>S(G,"$positionExact$",i),y=()=>S(he,"$duration$",i),w=()=>S(ye,"$isAudioAvailable$",i),x=()=>S(J,"$volume$",i),T=()=>S(Me,"$availablePlaybackRates$",i),C=()=>S(Le,"$currentPlaybackRate$",i),E=()=>S(me,"$muted$",i),R=()=>S(ue,"$currentSubtitle$",i),I=()=>S(te,"$overlayContainer$",i),k=v(e,"nextButtonActive",3,!1),B=v(e,"prevButtonActive",3,!1),F=Ce(),H=Tt(),W=F.getLogger().createComponentLog("KeyboardControls component"),Y=F.state.playbackState$,oe=F.ads.playbackState,G=F.state.positionExact$,he=F.state.duration$,J=F.state.volume$,pe=F.ui.controls.disabledControls$,me=F.state.muted$,ue=F.state.currentSubtitle$,Le=F.state.currentPlaybackRate$,Me=F.state.availablePlaybackRates$,le=F.ui.contextMenu.openedByHotKey$,Ne=F.ui.contextMenu.lastActiveElem$,re=F.ui.contextMenu.visible$,P=F.ui.doubleForwardOn$,ot=F.ui.doubleForwardAvailable$,Oe=F.ui.contextMenu.position$,Q=F.state.isEnded$,te=F.ui.overlayContainer$,Re=(Qe=F.callbacks)==null?void 0:Qe.onAudioDoesNotExistHint,Je=(Ue=F.callbacks)==null?void 0:Ue.onAudioDisabledHint,ye=F.state.isAudioAvailable$,ee=F.state.isAudioDisabled,Se=F.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Te}=lo(),Ke=0,tt=!0,pt=X(void 0),lt=ce=>(ce!==tt&&(tt=ce,Ke=0),Ke+=1,(H.controls.seekStepKeyboard+H.controls.seekStepKeyboard*Ke)/1e3),mt=!0,it=({type:ce,repeat:De,disableDoubleForward:be})=>{let Ze=()=>{if(!n().has("PLAY_BUTTON"))if(s()&&l()&&Te.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{F.actions.internal.togglePlay();let bt="PLAY";d()===ga.PAUSED?bt="PAUSE":a()&&(bt="REPLAY"),e.showHotKeyHelpers({type:bt})}},At=ce==="down";if(!p()||be){At&&Ze(),mt=!0;return}if(At)mt=!1;else if(mt)return;if(At){!De&&e.startDoubleForwardActivationTimer();return}f()||Ze(),e.stopDoubleForward(),mt=!0},Dt=(ce,De=!1)=>{var Jt,ni;let be=ce.target,Ze=(Jt=be==null?void 0:be.getAttribute("role"))==null?void 0:Jt.includes("menuitem"),At=be.classList.contains("btn"),bt=ce.code;if(At&&bt==="Space")return!1;let Lt=xh.has(bt);if(Ze&&Lt)return!1;let vi=!yh.has(bt);if(ce.ctrlKey&&vi||ce.altKey&&vi||ce.metaKey)return!1;let Yt=Ze&&bt==="Escape";wh.has(bt)||Yt||e.hideContextMenu();let gi=d()===ga.PLAYING||d()===ga.PAUSED,Ti=e.isAds&&(m()==="paused"||m()==="playing"),co=!Ti&&!n().has("TIMELINE");if(!(gi||Ti))return!1;W({message:`key down, code: ${bt}, isExternal = ${De}`});let uo=!1,wt=()=>{uo=!0,De||ce.preventDefault()};switch(bt){case"KeyJ":case"ArrowLeft":{if(!co)break;if(ce.ctrlKey||ce.altKey){let ze=F.actions.internal.getPrevEpisode();F.actions.internal.seekToPrevEpisode(ze),ze&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:ze.text}),wt()}else{let ze=ce.shiftKey?lt(!1):H.controls.seekStepKeyboard/1e3,It=Math.max(u()-ze,0);u()>0&&(F.actions.internal.seekTime(It,Pn.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:ze.toString()}),wt())}break}case"KeyL":case"ArrowRight":{if(!co)break;if(ce.ctrlKey||ce.altKey){let ze=F.actions.internal.getNextEpisode();F.actions.internal.seekToNextEpisode(ze),ze&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:ze.text}),wt()}else{let ze=ce.shiftKey?lt(!0):H.controls.seekStepKeyboard/1e3,It=Math.min(u()+ze,y());Math.round(u())<Math.round(y())&&(F.actions.internal.seekTime(It,Pn.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:ze.toString()}),wt())}break}case"ArrowUp":{if(Ws({isAudioDisabled:ee,audioDisabledHintCallback:Je,isAudioAvailable:w(),audioIsNotExistHintCallback:Re,isAds:e.isAds})){let ze=x(),It=H.controls.volumeStepKeyboard,xi=ze<=1;if(cu(F,ze,It),xi){let Wi=Math.round(Ef(ze,It)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Wi}})}}wt();break}case"ArrowDown":{if(Ws({isAudioDisabled:ee,audioDisabledHintCallback:Je,isAudioAvailable:w(),audioIsNotExistHintCallback:Re,isAds:e.isAds})){let ze=x(),It=H.controls.volumeStepKeyboard,xi=ze>=0;if(uu(F,ze,It),xi){let Wi=Math.round(If(ze,It)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Wi}})}}wt();break}case"Comma":{if(ce.shiftKey){if(!f()){F.actions.internal.decrementPlaybackRate();let ze=T().find(It=>It.value===C());e.showHotKeyHelpers({type:"RATE_DOWN",text:ze==null?void 0:ze.displayValue}),wt()}}else{if(Ti||d()!==ga.PAUSED)break;let ze=Math.max(u()-H.controls.seekStepFrame/1e3,0);u()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),F.actions.internal.clearDelayedBufferingCheckTimeout(),F.actions.internal.seekTime(ze,Pn.DOUBLE_TAP),wt())}break}case"Period":{if(ce.shiftKey){if(!f()){F.actions.internal.incrementPlaybackRate();let ze=T().find(It=>It.value===C());e.showHotKeyHelpers({type:"RATE_UP",text:ze==null?void 0:ze.displayValue}),wt()}}else{if(Ti||d()!==ga.PAUSED)break;let ze=Math.min(u()+H.controls.seekStepFrame/1e3,y());u()<y()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),F.actions.internal.clearDelayedBufferingCheckTimeout(),F.actions.internal.seekTime(ze,Pn.DOUBLE_TAP),wt())}break}case"KeyK":case"Space":it({type:"down",repeat:ce.repeat,disableDoubleForward:"KeyK"===bt}),wt();break;case"KeyM":{Ws({isAudioDisabled:ee,audioDisabledHintCallback:Je,isAudioAvailable:w(),audioIsNotExistHintCallback:Re,isAds:e.isAds})&&(e.showHotKeyHelpers({type:E()?"VOLUME":"MUTE"}),F.actions.internal.toggleMuted()),wt();break}case"KeyF":e.toggleFullscreen(),wt();break;case"KeyC":F.actions.internal.toggleSubtitle(),R().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(ni=R())==null?void 0:ni.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),wt();break;case"KeyI":F.actions.internal.togglePictureInPicture(),wt();break;case"Digit1":case"Numpad1":if(ce.shiftKey){let ze=y1(I());Oe.set(ze),Ne.set(be),le.set(!0),re.set(!0),wt();break}e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.1,Pn.DOUBLE_TAP),wt();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.2,Pn.DOUBLE_TAP),wt();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.3,Pn.DOUBLE_TAP),wt();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.4,Pn.DOUBLE_TAP),wt();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.5,Pn.DOUBLE_TAP),wt();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.6,Pn.DOUBLE_TAP),wt();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.7,Pn.DOUBLE_TAP),wt();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.8,Pn.DOUBLE_TAP),wt();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(.9,Pn.DOUBLE_TAP),wt();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),F.actions.internal.seekToPercent(0,Pn.DOUBLE_TAP),wt();break;case"Slash":{ce.shiftKey&&H.features.hotKeyMapModal&&(e.showKeyMap(),wt());break}case"KeyN":ce.shiftKey&&k()&&(F.actions.internal.nextVideoClick(),wt());break;case"KeyP":ce.shiftKey&&B()&&(F.actions.internal.prevVideoClick(),wt());break;case"ShiftLeft":case"ShiftRight":wt();break;case"Tab":case"Escape":case"Enter":break;default:S$(bt);break}return uo},Wt=ce=>{let De=ce.code;if(ce.ctrlKey||ce.altKey||ce.metaKey)return;let be=d()===ga.PLAYING||d()===ga.PAUSED,Ze=e.isAds&&(m()==="paused"||m()==="playing");if(be||Ze)switch(De){case"ShiftLeft":case"ShiftRight":Ke=0;break;case"Space":it({type:"up"});break}},Qt=q("aria_label_video_player"),Kt=()=>{var ce;return(ce=r(pt))==null?void 0:ce.focus()},ke=()=>r(pt)===pu(),qt=ce=>ce.type==="keydown"?Dt(ce,!0):(ce.type==="keyup"&&Wt(ce),!1);var _e=T$();_e.__keyup=Wt,_e.__keydown=[C$,Dt];var Ee=_(_e);ge(Ee,()=>{var ce;return(ce=e.children)!=null?ce:ae}),h(_e),st(_e,ce=>O(pt,ce),()=>r(pt)),D(()=>He(_e,"aria-label",Qt)),$(t,_e);var de=z({focus:Kt,isFocused:ke,handleExternalKeyboardEvent:qt});return o(),de}dt(["keyup","keydown"]);var I$=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>'),k$={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: ${(Tt=n(a).audioCodec||"")!=null?Tt:""} ${n(a).audioLanguage?`(${n(a).audioLanguage})`:""}`)}),b(Se,xe)};V(le,Se=>{(n(a).videoCodec||n(a).audioCodec)&&Se(Me)})}var we=P(le,2);{var te=Se=>{var xe=A$(),ee=P(_(xe),2),Ce=_(ee,!0);g(ee),g(xe),D(()=>ve(Ce,n(a).viewport)),b(Se,xe)};V(we,Se=>{n(a).viewport&&Se(te)})}var Ne=P(we,2);{var ue=Se=>{var xe=P$(),ee=P(_(xe),2),Ce=_(ee,!0);g(ee),g(xe),D(()=>ve(Ce,n(a).videoSize)),b(Se,xe)};V(Ne,Se=>{n(a).videoSize&&Se(ue)})}var k=P(Ne,2);{var Ke=Se=>{var xe=M$(),ee=P(_(xe),2),Ce=_(ee,!0);g(ee),g(xe),D(()=>ve(Ce,n(a).cdn)),b(Se,xe)};V(k,Se=>{n(a).cdn&&Se(Ke)})}var Ve=P(k,2);{var Y=Se=>{var xe=L$(),ee=P(_(xe),2),Ce=_(ee);g(ee),g(xe),D(()=>{var Pe;return ve(Ce,`${(Pe=n(a).volume)!=null?Pe:""} %`)}),b(Se,xe)};V(Ve,Se=>{n(a).volume&&Se(Y)})}var oe=P(Ve,2);{var Be=Se=>{var xe=V$(),ee=P(_(xe),2),Ce=_(ee);g(ee),g(xe),D(Pe=>ve(Ce,`${Pe!=null?Pe:""} s`),[()=>n(a).position.toFixed(2)]),b(Se,xe)};V(oe,Se=>{n(a).position&&Se(Be)})}var Ye=P(oe,2);{var me=Se=>{var xe=R$(),ee=P(_(xe),2),Ce=_(ee);g(ee),g(xe),D(Pe=>ve(Ce,`${Pe!=null?Pe:""} s`),[()=>n(a).buffer.toFixed(2)]),b(Se,xe)};V(Ye,Se=>{n(a).buffer&&Se(me)})}var J=P(Ye,2);{var Ie=Se=>{var xe=N$(),ee=P(_(xe),2),Ce=_(ee);g(ee),g(xe),D(Pe=>ve(Ce,`${Pe!=null?Pe:""} s`),[()=>n(a).liveLatency.toFixed(2)]),b(Se,xe)};V(J,Se=>{n(a).liveLatency&&Se(Ie)})}var ge=P(J,2);{var Fe=Se=>{var xe=O$(),ee=P(_(xe),2),Ce=_(ee,!0);g(ee),g(xe),D(Pe=>ve(Ce,Pe),[()=>[{value:n(a).currentVideoSegmentLength,title:"Video:"},{value:n(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Pe})=>Pe).map(({value:Pe,title:Tt})=>`${Tt} ${((Pe!=null?Pe:0)/1e3).toFixed(2)} s`).join(" & ")]),b(Se,xe)};V(ge,Se=>{(n(a).currentVideoSegmentLength||n(a).currentAudioSegmentLength)&&Se(Fe)})}var Ze=P(ge,2),Ge=P(_(Ze),2),dt=_(Ge);g(Ge),g(Ze);var Je=P(Ze,2);{var Ot=Se=>{var xe=D$(),ee=P(_(xe),2);Ld(ee,{get values(){return n(T)}});var Ce=P(ee,2),Pe=_(Ce);g(Ce),g(xe),D(Tt=>ve(Pe,`${Tt!=null?Tt:""} Kbps`),[()=>n(a).speed.toFixed(2)]),b(Se,xe)};V(Je,Se=>{n(a).speed&&Se(Ot)})}var nt=P(Je,2);{var Nt=Se=>{var xe=B$(),ee=P(_(xe),2);Ld(ee,{get values(){return n(E)}});var Ce=P(ee,2),Pe=_(Ce);g(Ce),g(xe),D(Tt=>ve(Pe,`${Tt!=null?Tt:""} Kbps`),[()=>n(a).bitrate.toFixed(2)]),b(Se,xe)};V(nt,Se=>{n(a).bitrate&&Se(Nt)})}var Wt=P(nt,2),Ct=P(_(Wt),2);Ld(Ct,{get values(){return n(C)}});var Xt=P(Ct,2),Ut=_(Xt,!0);g(Xt),g(Wt),g(H),g(A),D(Se=>{var xe,ee;I=ne(A,1,"container svelte-lx3h69",null,I,Se),We(A,"aria-label",R),ve(Z,n(a).version),ve(dt,`${(xe=n(v))!=null?xe:""} / ${(ee=n(f))!=null?ee:""} frames`),ve(Ut,n(p))},[()=>({"container-mobile":r()})]),b(t,A),U(),o()}lt(["click"]);import{noop as U$}from"@vkontakte/videoplayer-shared/es2018";var z$=(t,e)=>{t.stopPropagation(),e()()},W$=M('<div class="close svelte-1ome55p"></div>'),K$={hash:"svelte-1ome55p",code:".close.svelte-1ome55p {cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px;}.close.svelte-1ome55p:hover {opacity:1;}.close.svelte-1ome55p:before, .close.svelte-1ome55p:after {position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white);}.close.svelte-1ome55p:before {transform:rotate(45deg);}.close.svelte-1ome55p:after {transform:rotate(-45deg);}"};function Es(t,e){F(e,!0),W(t,K$);let i=h(e,"onClick",3,U$);var o=W$();o.__click=[z$,i],b(t,o),U()}lt(["click"]);import{noop as q$}from"@vkontakte/videoplayer-shared/es2018";var Q$=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>'),G$={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),W(t,G$);let i=h(e,"isRunning",3,!0),o=h(e,"onTimerEnded",3,q$),r=5e3,s=Q(void 0),l,d,a=0,u;ze(()=>{i()&&kt(()=>{d=Date.now(),a=requestAnimationFrame(v)})});let f=()=>{a&&(cancelAnimationFrame(a),a=0)},v=()=>{f(),i()&&(u=(Date.now()-d)/r,u<1?(l==null||l.clearRect(0,0,100,100),l==null||l.beginPath(),l==null||l.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*u),l==null||l.stroke(),a=requestAnimationFrame(v)):o()())};Rt(()=>{l=n(s).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),on(()=>{f()});var p=Q$(),y=_(p);st(y,w=>N(s,w),()=>n(s)),Te(2),g(p),b(t,p),U()}var j$=(t,e,i)=>{e(!1),i()},Y$=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),Z$={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){F(e,!0),W(t,Z$);let[i,o]=De(),r=()=>S(d,"$autoplayNextEnabled$",i),s=()=>S(a,"$timerNextVideoRunning$",i),l=he(),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,y=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{r()&&(u(!1),p())},x=()=>{e.clickCloseIcon(),y()};Rt(()=>{e.isHide||f(),e.isHide&&r()&&(u(!1),p())});var C=He(),T=pe(C);{var E=R=>{var A=Y$(),I=P(pe(A),2),O=_(I),H=_(O),B=_(H,!0);g(H);var z=P(H,2);Es(z,{onClick:x}),g(O);var Z=P(O,2);Z.__click=[j$,u,v];var ae=_(Z),q=_(ae),de=_(q);let X;var fe=P(de,2);{var re=te=>{let Ne=m(()=>s()&&r());Rd(te,{get isRunning(){return n(Ne)},onTimerEnded:w})};V(fe,te=>{r()&&te(re)})}g(q),g(ae);var le=P(ae,2),Me=_(le),we=_(Me,!0);g(Me),g(le),g(Z),g(I),D((te,Ne)=>{ve(B,te),Xe(q,`background-image: url('${e.thumb}')`),X=ne(de,1,"thumb-overlay svelte-jfbaax",null,X,Ne),ve(we,e.title)},[()=>j("end_screen_next_video"),()=>({withOpacity:r()})]),b(R,A)};V(T,R=>{e.isHide||R(E)})}b(t,C),U(),o()}lt(["click"]);import{PlaybackState as Pa}from"@vkontakte/videoplayer-core/es2018";import{checkNever as J$}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as On}from"@vkontakte/videoplayer-statistics/es2018";var Bf=(t,e)=>Math.min(+(t+e).toFixed(2),1),Hf=(t,e)=>Math.max(+(t-e).toFixed(2),0),ku=(t,e,i)=>{let o=Bf(e,i);e<1&&t.actions.internal.setVolume(o)},Au=(t,e,i)=>{let o=Hf(e,i);e>0&&t.actions.internal.setVolume(o)};var Zs=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:r})=>t?i?!0:(o==null||o(),!1):e?!0:(r==null||r(),!1);function Pu(){var t,e,i;return(i=(e=(t=document.activeElement)==null?void 0:t.shadowRoot)==null?void 0:e.activeElement)!=null?i:null}var e2=(t,e)=>{e(t)},t2=M('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),i2={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Ff(t,e){var Pe,Tt;F(e,!0),W(t,i2);let[i,o]=De(),r=()=>S(fe,"$disabledControls$",i),s=()=>S(Ie,"$isInteractiveTime$",i),l=()=>S(ge,"$showInteractiveTimeIndicatorTooltip$",i),d=()=>S(Z,"$playbackState$",i),a=()=>S(Y,"$isEnded$",i),u=()=>S(Ke,"$doubleForwardAvailable$",i),f=()=>S(k,"$doubleForwardOn$",i),v=()=>S(oe,"$overlayContainer$",i),p=()=>S(ae,"$adPlaybackState",i),y=()=>S(q,"$positionExact$",i),w=()=>S(de,"$duration$",i),x=()=>S(me,"$isAudioAvailable$",i),C=()=>S(X,"$volume$",i),T=()=>S(we,"$availablePlaybackRates$",i),E=()=>S(Me,"$currentPlaybackRate$",i),R=()=>S(re,"$muted$",i),A=()=>S(le,"$currentSubtitle$",i),I=h(e,"nextButtonActive",3,!1),O=h(e,"prevButtonActive",3,!1),H=he(),B=Lt(),z=H.getLogger().createComponentLog("KeyboardControls component"),Z=H.state.playbackState$,ae=H.ads.playbackState,q=H.state.positionExact$,de=H.state.duration$,X=H.state.volume$,fe=H.ui.controls.disabledControls$,re=H.state.muted$,le=H.state.currentSubtitle$,Me=H.state.currentPlaybackRate$,we=H.state.availablePlaybackRates$,te=H.ui.contextMenu.openedByHotKey$,Ne=H.ui.contextMenu.lastActiveElem$,ue=H.ui.contextMenu.visible$,k=H.ui.doubleForwardOn$,Ke=H.ui.doubleForwardAvailable$,Ve=H.ui.contextMenu.position$,Y=H.state.isEnded$,oe=H.ui.overlayContainer$,Be=(Pe=H.callbacks)==null?void 0:Pe.onAudioDoesNotExistHint,Ye=(Tt=H.callbacks)==null?void 0:Tt.onAudioDisabledHint,me=H.state.isAudioAvailable$,J=H.state.isAudioDisabled,Ie=H.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:ge}=ho(),Fe=0,Ze=!0,Ge=Q(void 0),dt=Oe=>(Oe!==Ze&&(Ze=Oe,Fe=0),Fe+=1,(B.controls.seekStepKeyboard+B.controls.seekStepKeyboard*Fe)/1e3),Je=!0,Ot=({type:Oe,repeat:ct,disableDoubleForward:bt})=>{let ye=()=>{if(!r().has("PLAY_BUTTON"))if(s()&&l()&&ge.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{H.actions.internal.togglePlay();let qe="PLAY";d()===Pa.PAUSED?qe="PAUSE":a()&&(qe="REPLAY"),e.showHotKeyHelpers({type:qe})}},it=Oe==="down";if(!u()||bt){it&&ye(),Je=!0;return}if(it)Je=!1;else if(Je)return;if(it){!ct&&e.startDoubleForwardActivationTimer();return}f()||ye(),e.stopDoubleForward(),Je=!0},nt=Oe=>{let ct=W1(v());Ve.set(ct),Ne.set(Oe.target),te.set(!0),ue.set(!0)},Nt=(Oe,ct=!1)=>{var Ii,Qt;let bt=Oe.target,ye=(Ii=bt==null?void 0:bt.getAttribute("role"))==null?void 0:Ii.includes("menuitem"),it=bt.classList.contains("btn"),qe=Oe.code;if(it&&qe==="Space")return!1;let at=Uh.has(qe);if(ye&&at)return!1;let Jt=!Fh.has(qe);if(Oe.ctrlKey&&Jt||Oe.altKey&&Jt||Oe.metaKey)return!1;let ni=ye&&qe==="Escape";zh.has(qe)||ni||e.hideContextMenu();let fi=d()===Pa.PLAYING||d()===Pa.PAUSED,bi=e.isAds&&(p()==="paused"||p()==="playing"),io=!bi&&!r().has("TIMELINE"),lo=Oe.shiftKey&&["Digit1","Numpad1"].includes(qe);if(!lo&&!(fi||bi))return!1;z({message:`key down, code: ${qe}, isExternal = ${ct}`});let di=!1,vt=()=>{di=!0,ct||Oe.preventDefault()};if(lo)return nt(Oe),vt(),!0;switch(qe){case"KeyJ":case"ArrowLeft":{if(!io)break;if(Oe.ctrlKey||Oe.altKey){let St=H.actions.internal.getPrevEpisode();H.actions.internal.seekToPrevEpisode(St),St&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:St.text}),vt()}else{let St=Oe.shiftKey?dt(!1):B.controls.seekStepKeyboard/1e3,ti=Math.max(y()-St,0);y()>0&&(H.actions.internal.seekTime(ti,On.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:St.toString()}),vt())}break}case"KeyL":case"ArrowRight":{if(!io)break;if(Oe.ctrlKey||Oe.altKey){let St=H.actions.internal.getNextEpisode();H.actions.internal.seekToNextEpisode(St),St&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:St.text}),vt()}else{let St=Oe.shiftKey?dt(!0):B.controls.seekStepKeyboard/1e3,ti=Math.min(y()+St,w());Math.round(y())<Math.round(w())&&(H.actions.internal.seekTime(ti,On.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:St.toString()}),vt())}break}case"ArrowUp":{if(Zs({isAudioDisabled:J,audioDisabledHintCallback:Ye,isAudioAvailable:x(),audioIsNotExistHintCallback:Be,isAds:e.isAds})){let St=C(),ti=B.controls.volumeStepKeyboard,Gt=St<=1;if(ku(H,St,ti),Gt){let xt=Math.round(Bf(St,ti)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:xt}})}}vt();break}case"ArrowDown":{if(Zs({isAudioDisabled:J,audioDisabledHintCallback:Ye,isAudioAvailable:x(),audioIsNotExistHintCallback:Be,isAds:e.isAds})){let St=C(),ti=B.controls.volumeStepKeyboard,Gt=St>=0;if(Au(H,St,ti),Gt){let xt=Math.round(Hf(St,ti)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:xt}})}}vt();break}case"Comma":{if(Oe.shiftKey){if(!f()){H.actions.internal.decrementPlaybackRate();let St=T().find(ti=>ti.value===E());e.showHotKeyHelpers({type:"RATE_DOWN",text:St==null?void 0:St.displayValue}),vt()}}else{if(bi||d()!==Pa.PAUSED)break;let St=Math.max(y()-B.controls.seekStepFrame/1e3,0);y()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),H.actions.internal.clearDelayedBufferingCheckTimeout(),H.actions.internal.seekTime(St,On.DOUBLE_TAP),vt())}break}case"Period":{if(Oe.shiftKey){if(!f()){H.actions.internal.incrementPlaybackRate();let St=T().find(ti=>ti.value===E());e.showHotKeyHelpers({type:"RATE_UP",text:St==null?void 0:St.displayValue}),vt()}}else{if(bi||d()!==Pa.PAUSED)break;let St=Math.min(y()+B.controls.seekStepFrame/1e3,w());y()<w()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),H.actions.internal.clearDelayedBufferingCheckTimeout(),H.actions.internal.seekTime(St,On.DOUBLE_TAP),vt())}break}case"KeyK":case"Space":Ot({type:"down",repeat:Oe.repeat,disableDoubleForward:"KeyK"===qe}),vt();break;case"KeyM":{Zs({isAudioDisabled:J,audioDisabledHintCallback:Ye,isAudioAvailable:x(),audioIsNotExistHintCallback:Be,isAds:e.isAds})&&(e.showHotKeyHelpers({type:R()?"VOLUME":"MUTE"}),H.actions.internal.toggleMuted()),vt();break}case"KeyF":e.toggleFullscreen(),vt();break;case"KeyC":H.actions.internal.toggleSubtitle(),A().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(Qt=A())==null?void 0:Qt.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),vt();break;case"KeyI":H.actions.internal.togglePictureInPicture(),vt();break;case"Digit1":case"Numpad1":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.1,On.DOUBLE_TAP),vt();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.2,On.DOUBLE_TAP),vt();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.3,On.DOUBLE_TAP),vt();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.4,On.DOUBLE_TAP),vt();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.5,On.DOUBLE_TAP),vt();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.6,On.DOUBLE_TAP),vt();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.7,On.DOUBLE_TAP),vt();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.8,On.DOUBLE_TAP),vt();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(.9,On.DOUBLE_TAP),vt();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),H.actions.internal.seekToPercent(0,On.DOUBLE_TAP),vt();break;case"Slash":{Oe.shiftKey&&B.features.hotKeyMapModal&&(e.showKeyMap(),vt());break}case"KeyN":Oe.shiftKey&&I()&&(H.actions.internal.nextVideoClick(),vt());break;case"KeyP":Oe.shiftKey&&O()&&(H.actions.internal.prevVideoClick(),vt());break;case"ShiftLeft":case"ShiftRight":vt();break;case"Tab":case"Escape":case"Enter":break;default:J$(qe);break}return di},Wt=Oe=>{let ct=Oe.code;if(Oe.ctrlKey||Oe.altKey||Oe.metaKey)return;let bt=d()===Pa.PLAYING||d()===Pa.PAUSED,ye=e.isAds&&(p()==="paused"||p()==="playing");if(bt||ye)switch(ct){case"ShiftLeft":case"ShiftRight":Fe=0;break;case"Space":Ot({type:"up"});break}},Ct=j("aria_label_video_player"),Xt=()=>{var Oe;return(Oe=n(Ge))==null?void 0:Oe.focus()},Ut=()=>n(Ge)===Pu(),Se=Oe=>Oe.type==="keydown"?Nt(Oe,!0):(Oe.type==="keyup"&&Wt(Oe),!1);var xe=t2();xe.__keyup=Wt,xe.__keydown=[e2,Nt];var ee=_(xe);_e(ee,()=>{var Oe;return(Oe=e.children)!=null?Oe:ce}),g(xe),st(xe,Oe=>N(Ge,Oe),()=>n(Ge)),D(()=>We(xe,"aria-label",Ct)),b(t,xe);var Ce=U({focus:Xt,isFocused:Ut,handleExternalKeyboardEvent:Se});return o(),Ce}lt(["keyup","keydown"]);var o2=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>'),n2={hash:"svelte-1dbnjb1",code:`.container.svelte-1dbnjb1 {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex;}.dot.svelte-1dbnjb1:nth-child(1) {animation-delay:calc(0 * 180ms);}.dot.svelte-1dbnjb1:nth-child(2) {animation-delay:calc(1 * 180ms);}.dot.svelte-1dbnjb1:nth-child(3) {animation-delay:calc(2 * 180ms);}
141
141
 
142
142
  @keyframes svelte-1dbnjb1-dot_animation {
143
143
  0% {
@@ -150,7 +150,7 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},Jh=tb;var $
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 ha(t,e){K(t,k$);let i=v(e,"style",3,"");var o=I$();D(()=>at(o,i())),$(t,o)}var A$=we('<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 Af(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=A$();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 s;return(s=e.children)!=null?s:ae}),xe(2),h(o),$(t,o)}import{noop as dl}from"@vkontakte/videoplayer-shared/es2018";var P$=t=>{t.stopPropagation()},L$=M("<button><!></button>"),M$={hash:"svelte-7jez3e",code:`button.btn.svelte-7jez3e {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;
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){W(t,n2);let i=h(e,"style",3,"");var o=o2();D(()=>Xe(o,i())),b(t,o)}var r2=Ee('<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 Uf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=r2();ke(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 r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}import{noop as Pl}from"@vkontakte/videoplayer-shared/es2018";var s2=t=>{t.stopPropagation()},a2=M("<button><!></button>"),l2={hash:"svelte-7jez3e",code:`button.btn.svelte-7jez3e {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;
154
154
  /**
155
155
  * \u0412 \u0441\u0430\u0444\u0430\u0440\u0438 \u043F\u0440\u0438 \u0445\u043E\u0432\u0435\u0440\u0435 \u043F\u043E\u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u043E\u043F\u0430\u0441\u0438\u0442\u0438, \u0432\u0438\u0434\u0438\u043C\u043E, \u0441\u0430\u0444\u0430\u0440\u0438 \u043A\u0440\u0438\u0432\u043E \u0432\u044B\u043D\u043E\u0441\u0438\u0442 \u044D\u0442\u043E \u0432 \u043E\u0442\u0434\u0435\u043B\u044C\u043D\u044B\u0439 \u0441\u043B\u043E\u0439
156
156
  * \u0438\u0437 \u0437\u0430 \u044D\u0442\u043E\u0433\u043E \u043C\u043E\u0436\u0435\u0442 \u043E\u0431\u0440\u0435\u0437\u0430\u0442\u044C\u0441\u044F \u0448\u0438\u043B\u0434\u0438\u043A \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0430, \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u0432\u044B\u043B\u0430\u0437\u0438\u0435\u0442 \u0437\u0430 \u043F\u0440\u0435\u0434\u0435\u043B\u044B \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430.
@@ -162,25 +162,27 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},Jh=tb;var $
162
162
  /* mobile */
163
163
  /* container mobile */button.btn-m.svelte-7jez3e {position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}button.btn-m--play.svelte-7jez3e {width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px;}.btn-m--play.svelte-7jez3e svg {transform:scale(2);}button.btn-m--prev.svelte-7jez3e,
164
164
  button.btn-m--next.svelte-7jez3e {position:absolute;width:50px;height:50px;}button.btn-m--prev.svelte-7jez3e {right:calc(100% + 35px);}button.btn-m--next.svelte-7jez3e {left:calc(100% + 35px);}button.btn.svelte-7jez3e:disabled {cursor:default;
165
- /* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}button.btn.svelte-7jez3e:not(.btn-full-opacity):disabled {opacity:0.4;}button.btn.svelte-7jez3e:not(:disabled):hover {opacity:0.8;}button.pr-0.svelte-7jez3e {padding-right:0;}button.pl-0.svelte-7jez3e {padding-left:0;}`};function Rt(t,e){U(e,!0),K(t,M$);let i=v(e,"className",3,""),o=v(e,"style",3,""),n=v(e,"disabled",3,void 0),s=v(e,"testId",3,void 0),l=v(e,"ariaHidden",3,void 0),d=v(e,"ariaLabel",3,void 0),a=v(e,"ref",15,void 0),p=v(e,"ariaKeyShortCut",3,void 0),f=v(e,"ariaExpanded",3,void 0),m=v(e,"tabIndex",3,0),u=v(e,"click",3,dl),y=v(e,"focus",3,dl),w=v(e,"blur",3,dl),x=g(()=>u()===dl?null:I=>{I.stopPropagation(),u()(I)}),T=g(()=>y()===dl?null:I=>{I.preventDefault(),y()()}),C=g(()=>w()===dl?null:I=>{I.preventDefault(),w()()});var E=L$();E.__pointerdown=[P$],E.__click=function(...I){var k;(k=r(x))==null||k.apply(this,I)};var R=_(E);ge(R,()=>{var I;return(I=e.children)!=null?I:ae}),h(E),st(E,I=>a(I),()=>a()),D(()=>{var I,k,B,F,H,W,Y,oe;ne(E,1,`btn ${(I=i())!=null?I:""}`,"svelte-7jez3e"),at(E,o()||null),E.disabled=(k=n())!=null?k:null,He(E,"aria-hidden",(B=l())!=null?B:null),He(E,"aria-label",(F=d())!=null?F:null),He(E,"aria-keyshortcuts",(H=p())!=null?H:null),He(E,"aria-expanded",(W=f())!=null?W:null),He(E,"data-testid",(Y=s())!=null?Y:null),He(E,"tabindex",m()),He(E,"role",e.role),He(E,"aria-checked",(oe=e.areaChecked)!=null?oe:null)}),Ct("focus",E,function(...I){var k;(k=r(T))==null||k.apply(this,I)}),Ct("blur",E,function(...I){var k;(k=r(C))==null||k.apply(this,I)}),$(t,E),z()}dt(["pointerdown","click"]);var V$=M('<div class="modal-header svelte-ijitjb"><h3 class="modal-title svelte-ijitjb"> </h3> <!></div>'),R$=M('<div class="modal-overlay svelte-ijitjb"><div class="modal-container svelte-ijitjb"><!> <div class="modal-scroll svelte-ijitjb"><div class="modal-main svelte-ijitjb"><!></div></div></div></div>'),N$={hash:"svelte-ijitjb",code:".modal-overlay.svelte-ijitjb {position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center;}.modal-container.svelte-ijitjb {display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px;}.modal-header.svelte-ijitjb {box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24);}.modal-title.svelte-ijitjb {margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.modal-scroll.svelte-ijitjb {overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar {width:8px;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-track {box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-thumb:hover {background-color:#777;}.modal-main.svelte-ijitjb {margin:-8px -4px 0 0;}"};function Pf(t,e){U(e,!0),K(t,N$);let i=v(e,"showHeader",3,!0),o=v(e,"showCloseCross",3,!0),n=q("hotkey_map_modal_close_btn_text");var s=R$(),l=_(s),d=_(l);{var a=u=>{var y=V$(),w=_(y),x=_(w,!0);h(w);var T=A(w,2);{var C=E=>{Rt(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return n},children:(R,I)=>{Af(R,{})},$$slots:{default:!0}})};V(T,E=>{o()&&E(C)})}h(y),D(()=>ve(x,e.title)),$(u,y)};V(d,u=>{i()&&u(a)})}var p=A(d,2),f=_(p),m=_(f);ge(m,()=>{var u;return(u=e.children)!=null?u:ae}),h(f),h(p),h(l),h(s),$(t,s),z()}var O$=new Set(["BR"]),S1=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;O$.has(l)||(n=s.parentElement)==null||n.removeChild(s)}return e.innerHTML};var B$=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>'),D$=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>'),F$=M('<div class="hot-key-map svelte-quklnq"></div>'),H$={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,
165
+ /* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}button.btn.svelte-7jez3e:not(.btn-full-opacity):disabled {opacity:0.4;}button.btn.svelte-7jez3e:not(:disabled):hover {opacity:0.8;}button.pr-0.svelte-7jez3e {padding-right:0;}button.pl-0.svelte-7jez3e {padding-left:0;}`};function Ft(t,e){F(e,!0),W(t,l2);let i=h(e,"className",3,""),o=h(e,"style",3,""),r=h(e,"disabled",3,void 0),s=h(e,"testId",3,void 0),l=h(e,"ariaHidden",3,void 0),d=h(e,"ariaLabel",3,void 0),a=h(e,"ref",15,void 0),u=h(e,"ariaKeyShortCut",3,void 0),f=h(e,"ariaExpanded",3,void 0),v=h(e,"tabIndex",3,0),p=h(e,"click",3,Pl),y=h(e,"focus",3,Pl),w=h(e,"blur",3,Pl),x=m(()=>p()===Pl?null:A=>{A.stopPropagation(),p()(A)}),C=m(()=>y()===Pl?null:A=>{A.preventDefault(),y()()}),T=m(()=>w()===Pl?null:A=>{A.preventDefault(),w()()});var E=a2();E.__pointerdown=[s2],E.__click=function(...A){var I;(I=n(x))==null||I.apply(this,A)};var R=_(E);_e(R,()=>{var A;return(A=e.children)!=null?A:ce}),g(E),st(E,A=>a(A),()=>a()),D(()=>{var A,I,O,H,B,z,Z,ae;ne(E,1,`btn ${(A=i())!=null?A:""}`,"svelte-7jez3e"),Xe(E,o()||null),E.disabled=(I=r())!=null?I:null,We(E,"aria-hidden",(O=l())!=null?O:null),We(E,"aria-label",(H=d())!=null?H:null),We(E,"aria-keyshortcuts",(B=u())!=null?B:null),We(E,"aria-expanded",(z=f())!=null?z:null),We(E,"data-testid",(Z=s())!=null?Z:null),We(E,"tabindex",v()),We(E,"role",e.role),We(E,"aria-checked",(ae=e.areaChecked)!=null?ae:null)}),wt("focus",E,function(...A){var I;(I=n(C))==null||I.apply(this,A)}),wt("blur",E,function(...A){var I;(I=n(T))==null||I.apply(this,A)}),b(t,E),U()}lt(["pointerdown","click"]);var d2=M('<div class="modal-header svelte-ijitjb"><h3 class="modal-title svelte-ijitjb"> </h3> <!></div>'),c2=M('<div class="modal-overlay svelte-ijitjb"><div class="modal-container svelte-ijitjb"><!> <div class="modal-scroll svelte-ijitjb"><div class="modal-main svelte-ijitjb"><!></div></div></div></div>'),u2={hash:"svelte-ijitjb",code:".modal-overlay.svelte-ijitjb {position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center;}.modal-container.svelte-ijitjb {display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px;}.modal-header.svelte-ijitjb {box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24);}.modal-title.svelte-ijitjb {margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.modal-scroll.svelte-ijitjb {overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar {width:8px;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-track {box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-thumb:hover {background-color:#777;}.modal-main.svelte-ijitjb {margin:-8px -4px 0 0;}"};function zf(t,e){F(e,!0),W(t,u2);let i=h(e,"showHeader",3,!0),o=h(e,"showCloseCross",3,!0),r=j("hotkey_map_modal_close_btn_text");var s=c2(),l=_(s),d=_(l);{var a=p=>{var y=d2(),w=_(y),x=_(w,!0);g(w);var C=P(w,2);{var T=E=>{Ft(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return r},children:(R,A)=>{Uf(R,{})},$$slots:{default:!0}})};V(C,E=>{o()&&E(T)})}g(y),D(()=>ve(x,e.title)),b(p,y)};V(d,p=>{i()&&p(a)})}var u=P(d,2),f=_(u),v=_(f);_e(v,()=>{var p;return(p=e.children)!=null?p:ce}),g(f),g(u),g(l),g(s),b(t,s),U()}var p2=new Set(["BR"]),Q1=t=>{var r;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let s=i[o],l=s.tagName;p2.has(l)||(r=s.parentElement)==null||r.removeChild(s)}return e.innerHTML};var f2=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>'),v2=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>'),m2=M('<div class="hot-key-map svelte-quklnq"></div>'),g2={hash:"svelte-quklnq",code:`.hot-key-map.svelte-quklnq {color:var(--black);box-sizing:border-box;overflow-x:hidden;}.hot-key-map-group.svelte-quklnq {border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px;}.hot-key-map-group.svelte-quklnq:last-child {border-bottom:none;}.hot-key-map-group-title.svelte-quklnq {color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.hot-key-map-group-title.svelte-quklnq,
166
166
  .hot-key-map-item.svelte-quklnq {padding:12px 0;margin:0;width:100%;}.hot-key-map-group-items.svelte-quklnq {box-sizing:border-box;list-style:none;padding:0;margin:0;}.hot-key-map-item.svelte-quklnq {box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width: 156px;--videoplayer-hotkey-item-value-padding-left: 24px;}.hot-key-map-item-description.svelte-quklnq {color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px;}.hot-key-map-item-value.svelte-quklnq {color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px;}.hot-key-map-item-description.svelte-quklnq,
167
- .hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function Lf(t,e){U(e,!1),K(t,H$);let[i,o]=Be(),n=()=>S(l,"$data",i),s=Ce(),{data:l,show:d}=s.ui.modals.hotKeyMap,a=()=>{d.set(!1)};zr(),Pf(t,{get title(){return n().title},onClose:a,children:(p,f)=>{var m=F$();ki(m,5,()=>n().groups,({title:u,items:y})=>u,(u,y)=>{let w=()=>r(y).title,x=()=>r(y).items;var T=D$(),C=_(T),E=_(C,!0);h(C);var R=A(C,2);ki(R,5,x,({description:I,value:k})=>k,(I,k)=>{let B=()=>r(k).description,F=()=>r(k).value;var H=B$(),W=_(H),Y=_(W);Kl(Y,()=>S1(B())),h(W);var oe=A(W,2),G=_(oe,!0);h(oe),h(H),D(()=>ve(G,F())),$(I,H)}),h(R),h(T),D(()=>ve(E,w())),$(u,T)}),h(m),$(p,m)},$$slots:{default:!0}}),z(),o()}import{noop as Y1}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as W1,PlaybackState as hm}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-shared/es2018";var U$=M('<div class="pillow svelte-1oe0j8n"><!></div>'),z$={hash:"svelte-1oe0j8n",code:".pillow.svelte-1oe0j8n {background-color:#679FF8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;padding:2px 4px;border-radius:12px;}"};function Mf(t,e){K(t,z$);var i=U$(),o=_(i);ge(o,()=>{var n;return(n=e.children)!=null?n:ae}),h(i),$(t,i)}import{VideoQuality as vd}from"@vkontakte/videoplayer-shared/es2018";var W$=we('<svg><!><path fill="currentColor" d="M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"></path><path fill="currentColor" fill-rule="evenodd" d="m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z" clip-rule="evenodd"></path></svg>');function Vf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=W$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);ge(n,()=>{var s;return(s=e.children)!=null?s:ae}),xe(2),h(o),$(t,o)}var K$=we('<svg><!><path fill="currentColor" d="M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"></path><path fill="currentColor" fill-rule="evenodd" d="M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524" clip-rule="evenodd"></path></svg>');function Rf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=K$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);ge(n,()=>{var s;return(s=e.children)!=null?s:ae}),xe(2),h(o),$(t,o)}var q$=we('<svg><!><path fill="currentColor" d="M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"></path></svg>');function Nf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=q$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);ge(n,()=>{var s;return(s=e.children)!=null?s:ae}),xe(),h(o),$(t,o)}var Q$=we('<svg><!><path fill="currentColor" d="M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"></path></svg>');function fd(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Q$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i}));var n=_(o);ge(n,()=>{var s;return(s=e.children)!=null?s:ae}),xe(),h(o),$(t,o)}var G$=we('<svg><!><path fill="currentColor" d="M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"></path><path fill="currentColor" fill-rule="evenodd" d="M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02" clip-rule="evenodd"></path></svg>');function md(t,e){let i=Ve(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 s;return(s=e.children)!=null?s:ae}),xe(2),h(o),$(t,o)}var fu=t=>{switch(t){case vd.Q_720P:return Nf;case vd.Q_1080P:return fd;case vd.Q_1440P:return md;case vd.Q_2160P:return Vf;case vd.Q_4320P:return Rf}};var j$=we('<svg><!><path fill="var(--btn-color, #fff)" d="M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"></path></svg>');function Of(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=j$();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 s;return(s=e.children)!=null?s:ae}),xe(),h(o),$(t,o)}var Y$=we('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5" class="_full"></path></svg>');function Bf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Y$();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 s;return(s=e.children)!=null?s:ae}),xe(2),h(o),$(t,o)}var Z$=M('<div aria-hidden="true"><!> <!></div>'),X$={hash:"svelte-8t5w85",code:'.icon.svelte-8t5w85 {display:flex;position:relative;width:24px;height:24px;}.icon.svelte-8t5w85 .pillow {position:absolute;top:1px;right:-9px;}.icon.triple.svelte-8t5w85 .pillow {right:-13px;}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full {visibility:hidden;opacity:0;}'};function gd(t,e){U(e,!0),K(t,X$);let i=v(e,"isMobile",3,!1),o=v(e,"currentQuality",3,void 0),n=g(()=>fu(o())),s=g(()=>!!r(n)&&[fd,md].includes(r(n)));var l=Fe(),d=fe(l);{var a=f=>{Of(f,{})},p=f=>{var m=Z$();let u;var y=_(m);{var w=C=>{Mf(C,{children:(E,R)=>{var I=Fe(),k=fe(I);Ai(k,()=>r(n),(B,F)=>{F(B,{})}),$(E,I)},$$slots:{default:!0}})};V(y,C=>{r(n)&&C(w)})}var x=A(y,2);let T=g(()=>r(n)?"settings-icon--labeled":"settings-icon");Bf(x,{get"data-testid"(){return r(T)},fill:"var(--btn-color, #fff)"}),h(m),D(C=>u=ne(m,1,"icon svelte-8t5w85",null,u,C),[()=>({triple:r(s)})]),$(f,m)};V(d,f=>{i()?f(a):f(p,!1)})}$(t,l),z()}var J$=M('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),e2={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function cl(t,e){U(e,!0),K(t,e2);let[i,o]=Be(),n=()=>S(p,"$settingsMenuVisible",i),s=()=>S(u,"$isMobile",i),l=()=>S(a,"$currentQuality",i),d=Ce(),a=d.state.currentQuality$,p=d.ui.settingsMenu.visible$,f=d.actions.internal.openSettingsMenu,m=d.actions.internal.closeSettingsMenu,u=d.ui.isMobile,y=d.ui.t,w=X(void 0);qe(()=>{r(w)&&xt(()=>{e.ref$.set(r(w))})});let x=y("aria_label_settings");async function T(E){let R=zs(E);n()?m():f(R,bo)}let C=g(()=>n()?"opened":"");Rt(t,{get className(){return r(C)},testId:"btn-settings",click:T,get ariaLabel(){return x},get ariaExpanded(){return n()},get ref(){return r(w)},set ref(E){O(w,E,!0)},children:(E,R)=>{var I=J$(),k=_(I);gd(k,{get isMobile(){return s()},get currentQuality(){return l()}}),h(I),$(E,I)},$$slots:{default:!0}}),z(),o()}var t2=we('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.538 4c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.334v3.076c0 .948 0 1.714-.05 2.334-.053.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.922c-.267-.523-.377-1.087-.43-1.726C2 15.252 2 14.486 2 13.538v-3.076c0-.948 0-1.714.05-2.334.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.267 1.087-.377 1.726-.43C6.748 4 7.514 4 8.462 4zM6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9m.9-4.7a.9.9 0 1 0 0 1.8h1.7a.9.9 0 1 0 0-1.8zm7.6 4.7a.9.9 0 0 1 .9-.9h1.7a.9.9 0 0 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9m-2.6-4.7a.9.9 0 1 0 0 1.8h5.2a.9.9 0 0 0 0-1.8z" clip-rule="evenodd"></path></svg>');function Df(t,e){let i=Ve(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":"subtitle-pained-icon",viewBox:"0 0 24 24",role:"img",...i}));var n=_(o);ge(n,()=>{var s;return(s=e.children)!=null?s:ae}),xe(),h(o),$(t,o)}var i2=we('<svg><!><g fill="var(--btn-color, #fff)" fill-rule="evenodd" clip-rule="evenodd"><path d="M8.462 4h7.076c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.333v3.077c0 .948 0 1.713-.05 2.334-.053.64-.163 1.203-.43 1.725a4.4 4.4 0 0 1-1.922 1.923c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.923c-.267-.522-.377-1.086-.43-1.725C2 15.252 2 14.486 2 13.538v-3.077c0-.947 0-1.713.05-2.333.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.266 1.087-.376 1.726-.428C6.748 4 7.514 4 8.462 4M6.275 5.845c-.528.043-.83.123-1.055.238A2.6 2.6 0 0 0 4.083 7.22c-.115.227-.195.527-.238 1.055C3.8 8.813 3.8 9.504 3.8 10.5v3c0 .995 0 1.687.045 2.225.043.528.123.829.238 1.055a2.6 2.6 0 0 0 1.137 1.136c.226.116.527.196 1.055.24.538.043 1.23.044 2.225.044h7c.995 0 1.687 0 2.226-.045.527-.043.828-.123 1.054-.239a2.6 2.6 0 0 0 1.137-1.136c.115-.226.195-.527.238-1.055.044-.538.045-1.23.045-2.225v-3c0-.995 0-1.687-.045-2.226-.043-.528-.123-.828-.238-1.054a2.6 2.6 0 0 0-1.137-1.137c-.226-.115-.527-.195-1.055-.238-.538-.044-1.23-.045-2.225-.045h-7c-.995 0-1.687 0-2.226.045"></path><path d="M6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M6 11.1a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M14.5 14.9a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9M11 11.1a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8h-5.2a.9.9 0 0 1-.9-.9"></path></g></svg>');function hd(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=i2();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 s;return(s=e.children)!=null?s:ae}),xe(),h(o),$(t,o)}function Ff(t,e){U(e,!0);let i=v(e,"isSubtitlesEnabled",3,!1),n=Ce().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 ss.KeyC},role:"button",children:(l,d)=>{var a=Fe(),p=fe(a);{var f=u=>{Df(u,{})},m=u=>{hd(u,{})};V(p,u=>{i()?u(f):u(m,!1)})}$(l,a)},$$slots:{default:!0}}),z()}var o2=M('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),n2=M('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),r2={hash:"svelte-sz9er7",code:".time.svelte-sz9er7 {display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px;color:var(--controls-time);}.time.mobile.svelte-sz9er7 {padding:0 0 0 8px;}.current.svelte-sz9er7 {position:relative;}.duration.svelte-sz9er7 {opacity:0.7;}.duration.svelte-sz9er7:before {content:' / ';white-space:pre;}"};function _d(t,e){U(e,!0),K(t,r2);let i=v(e,"isMobile",3,!1),o=v(e,"isHidden",3,!1),n=v(e,"showDuration",3,!0),s=v(e,"ref",15),l=Tt(),d=se(!1),a=g(()=>mn(e.duration)),p=g(()=>mn(e.position));var f=n2();let m;var u=_(f),y=_(u,!0);h(u);var w=A(u,2);{var x=T=>{var C=o2(),E=_(C,!0);h(C),D(()=>ve(E,r(a))),$(T,C)};V(w,T=>{n()&&T(x)})}h(f),_s(f,()=>nl(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),st(f,T=>s(T),()=>s()),D(T=>{m=ne(f,1,"time svelte-sz9er7",null,m,T),ve(y,r(p))},[()=>({mobile:i()})]),$(t,f),z()}import{noop as mu}from"@vkontakte/videoplayer-shared/es2018";var s2=we('<svg xmlns="http://www.w3.org/2000/svg" class="icon svelte-v40k9i" aria-hidden="true"><g fill="var(--btn-color, #fff)" fill-rule="evenodd"><path d="M2 9.94595C2 9.41522 2.41461 8.97693 2.94453 8.94749L5.775 8.79025C6.24338 8.76422 6.6877 8.57439 7.03029 8.25394L11.3169 4.24433C11.9558 3.64667 13 4.09974 13 4.97464V19.0253C13 19.9002 11.9558 20.3533 11.3169 19.7556L7.03029 15.746C6.6877 15.4255 6.24337 15.2357 5.77499 15.2097L2.94453 15.0524C2.41461 15.023 2 14.5847 2 14.054V9.94595Z"></path><path class="cross svelte-v40k9i" d="M22.4636 8.26359C22.8151 7.91212 23.3849 7.91212 23.7364 8.26359C24.0879 8.61506 24.0879 9.18491 23.7364 9.53638L21.2728 12L23.7364 14.4636C24.0879 14.815 24.0879 15.3849 23.7364 15.7364C23.3849 16.0878 22.8151 16.0878 22.4636 15.7364L20 13.2728L17.5364 15.7364C17.1849 16.0878 16.6151 16.0878 16.2636 15.7364C15.9121 15.3849 15.9121 14.815 16.2636 14.4636L18.7272 12L16.2636 9.53638C15.9121 9.18491 15.9121 8.61506 16.2636 8.26359C16.6151 7.91212 17.1849 7.91212 17.5364 8.26359L20 10.7272L22.4636 8.26359Z"></path><path class="wave1 svelte-v40k9i" d="M15.7484 8.89758C16.0811 8.52829 16.6501 8.49862 17.0194 8.83132C17.8726 9.59994 18.4 10.7425 18.4 12C18.4 13.2575 17.8726 14.4001 17.0194 15.1687C16.6501 15.5014 16.0811 15.4717 15.7484 15.1024C15.4157 14.7331 15.4453 14.1641 15.8146 13.8314C16.2849 13.4077 16.6 12.753 16.6 12C16.6 11.2471 16.2849 10.5923 15.8146 10.1686C15.4453 9.83595 15.4157 9.26687 15.7484 8.89758Z"></path><path class="wave2 svelte-v40k9i" d="M18.8141 6.67424C19.1924 6.35184 19.7605 6.39716 20.0829 6.77547C21.2779 8.17774 22 10.0053 22 12C22 13.9946 21.2779 15.8222 20.0829 17.2245C19.7605 17.6028 19.1924 17.6481 18.8141 17.3257C18.4358 17.0033 18.3905 16.4353 18.7129 16.057C19.639 14.9702 20.2 13.5535 20.2 12C20.2 10.4464 19.639 9.02976 18.7129 7.943C18.3905 7.56469 18.4358 6.99665 18.8141 6.67424Z"></path></g></svg>'),a2={hash:"svelte-v40k9i",code:`.icon.svelte-v40k9i {display:block;width:24px;height:24px;}.icon.svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .wave1:where(.svelte-v40k9i),
167
+ .hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function Wf(t,e){F(e,!1),W(t,g2);let[i,o]=De(),r=()=>S(l,"$data",i),s=he(),{data:l,show:d}=s.ui.modals.hotKeyMap,a=()=>{d.set(!1)};Ko(),zf(t,{get title(){return r().title},onClose:a,children:(u,f)=>{var v=m2();wi(v,5,()=>r().groups,({title:p,items:y})=>p,(p,y)=>{let w=()=>n(y).title,x=()=>n(y).items;var C=v2(),T=_(C),E=_(T,!0);g(T);var R=P(T,2);wi(R,5,x,({description:A,value:I})=>I,(A,I)=>{let O=()=>n(I).description,H=()=>n(I).value;var B=f2(),z=_(B),Z=_(z);vd(Z,()=>Q1(O())),g(z);var ae=P(z,2),q=_(ae,!0);g(ae),g(B),D(()=>ve(q,H())),b(A,B)}),g(R),g(C),D(()=>ve(E,w())),b(p,C)}),g(v),b(u,v)},$$slots:{default:!0}}),U(),o()}import{noop as y0}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as m0,PlaybackState as Nv}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-shared/es2018";var h2=M('<div class="pillow svelte-1oe0j8n"><!></div>'),_2={hash:"svelte-1oe0j8n",code:".pillow.svelte-1oe0j8n {background-color:#679FF8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;padding:2px 4px;border-radius:12px;}"};function Kf(t,e){W(t,_2);var i=h2(),o=_(i);_e(o,()=>{var r;return(r=e.children)!=null?r:ce}),g(i),b(t,i)}import{VideoQuality as Dd}from"@vkontakte/videoplayer-shared/es2018";var b2=Ee('<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 qf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=b2();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}var $2=Ee('<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 Qf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=$2();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}var y2=Ee('<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=Re(e,["$$slots","$$events","$$legacy","children"]);var o=y2();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var x2=Ee('<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 Nd(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=x2();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var w2=Ee('<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 Od(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=w2();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}var Mu=t=>{switch(t){case Dd.Q_720P:return Gf;case Dd.Q_1080P:return Nd;case Dd.Q_1440P:return Od;case Dd.Q_2160P:return qf;case Dd.Q_4320P:return Qf}};var S2=Ee('<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 jf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=S2();ke(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 r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var C2=Ee('<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=Re(e,["$$slots","$$events","$$legacy","children"]);var o=C2();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}var T2=M('<div aria-hidden="true"><!> <!></div>'),E2={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 Bd(t,e){F(e,!0),W(t,E2);let i=h(e,"isMobile",3,!1),o=h(e,"currentQuality",3,void 0),r=m(()=>Mu(o())),s=m(()=>!!n(r)&&[Nd,Od].includes(n(r)));var l=He(),d=pe(l);{var a=f=>{jf(f,{})},u=f=>{var v=T2();let p;var y=_(v);{var w=T=>{Kf(T,{children:(E,R)=>{var A=He(),I=pe(A);Pi(I,()=>n(r),(O,H)=>{H(O,{})}),b(E,A)},$$slots:{default:!0}})};V(y,T=>{n(r)&&T(w)})}var x=P(y,2);let C=m(()=>n(r)?"settings-icon--labeled":"settings-icon");Yf(x,{get"data-testid"(){return n(C)},fill:"var(--btn-color, #fff)"}),g(v),D(T=>p=ne(v,1,"icon svelte-8t5w85",null,p,T),[()=>({triple:n(s)})]),b(f,v)};V(d,f=>{i()?f(a):f(u,!1)})}b(t,l),U()}var I2=M('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),k2={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function Ml(t,e){F(e,!0),W(t,k2);let[i,o]=De(),r=()=>S(u,"$settingsMenuVisible",i),s=()=>S(p,"$isMobile",i),l=()=>S(a,"$currentQuality",i),d=he(),a=d.state.currentQuality$,u=d.ui.settingsMenu.visible$,f=d.actions.internal.openSettingsMenu,v=d.actions.internal.closeSettingsMenu,p=d.ui.isMobile,y=d.ui.t,w=Q(void 0);ze(()=>{n(w)&&kt(()=>{e.ref$.set(n(w))})});let x=y("aria_label_settings");async function C(E){let R=Ys(E);r()?v():f(R,Eo)}let T=m(()=>r()?"opened":"");Ft(t,{get className(){return n(T)},testId:"btn-settings",click:C,get ariaLabel(){return x},get ariaExpanded(){return r()},get ref(){return n(w)},set ref(E){N(w,E,!0)},children:(E,R)=>{var A=I2(),I=_(A);Bd(I,{get isMobile(){return s()},get currentQuality(){return l()}}),g(A),b(E,A)},$$slots:{default:!0}}),U(),o()}var A2=Ee('<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 Zf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=A2();ke(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 r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var P2=Ee('<svg><!><g fill="var(--btn-color, #fff)" fill-rule="evenodd" clip-rule="evenodd"><path d="M8.462 4h7.076c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.333v3.077c0 .948 0 1.713-.05 2.334-.053.64-.163 1.203-.43 1.725a4.4 4.4 0 0 1-1.922 1.923c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.923c-.267-.522-.377-1.086-.43-1.725C2 15.252 2 14.486 2 13.538v-3.077c0-.947 0-1.713.05-2.333.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.266 1.087-.376 1.726-.428C6.748 4 7.514 4 8.462 4M6.275 5.845c-.528.043-.83.123-1.055.238A2.6 2.6 0 0 0 4.083 7.22c-.115.227-.195.527-.238 1.055C3.8 8.813 3.8 9.504 3.8 10.5v3c0 .995 0 1.687.045 2.225.043.528.123.829.238 1.055a2.6 2.6 0 0 0 1.137 1.136c.226.116.527.196 1.055.24.538.043 1.23.044 2.225.044h7c.995 0 1.687 0 2.226-.045.527-.043.828-.123 1.054-.239a2.6 2.6 0 0 0 1.137-1.136c.115-.226.195-.527.238-1.055.044-.538.045-1.23.045-2.225v-3c0-.995 0-1.687-.045-2.226-.043-.528-.123-.828-.238-1.054a2.6 2.6 0 0 0-1.137-1.137c-.226-.115-.527-.195-1.055-.238-.538-.044-1.23-.045-2.225-.045h-7c-.995 0-1.687 0-2.226.045"></path><path d="M6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M6 11.1a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M14.5 14.9a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9M11 11.1a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8h-5.2a.9.9 0 0 1-.9-.9"></path></g></svg>');function Hd(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=P2();ke(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 r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}function Xf(t,e){F(e,!0);let i=h(e,"isSubtitlesEnabled",3,!1),r=he().ui.t,s=m(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));Ft(t,{testId:"btn-Subtitles",get ariaLabel(){return n(s)},get click(){return e.click},get ariaKeyShortCut(){return ss.KeyC},role:"button",children:(l,d)=>{var a=He(),u=pe(a);{var f=p=>{Zf(p,{})},v=p=>{Hd(p,{})};V(u,p=>{i()?p(f):p(v,!1)})}b(l,a)},$$slots:{default:!0}}),U()}var M2=M('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),L2=M('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),V2={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 Fd(t,e){F(e,!0),W(t,V2);let i=h(e,"isMobile",3,!1),o=h(e,"isHidden",3,!1),r=h(e,"showDuration",3,!0),s=h(e,"ref",15),l=Lt(),d=se(!1),a=m(()=>qo(e.duration)),u=m(()=>qo(e.position));var f=L2();let v;var p=_(f),y=_(p,!0);g(p);var w=P(p,2);{var x=C=>{var T=M2(),E=_(T,!0);g(T),D(()=>ve(E,n(a))),b(C,T)};V(w,C=>{r()&&C(x)})}g(f),Ss(f,()=>Tl(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),st(f,C=>s(C),()=>s()),D(C=>{v=ne(f,1,"time svelte-sz9er7",null,v,C),ve(y,n(u))},[()=>({mobile:i()})]),b(t,f),U()}import{noop as Lu}from"@vkontakte/videoplayer-shared/es2018";var R2=Ee('<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>'),N2={hash:"svelte-v40k9i",code:`.icon.svelte-v40k9i {display:block;width:24px;height:24px;}.icon.svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .wave1:where(.svelte-v40k9i),
168
168
  .icon[data-value='off'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:visible;}.icon[data-value='mid'].svelte-v40k9i .wave2:where(.svelte-v40k9i),
169
- .icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function Ks(t,e){K(t,a2);let i=v(e,"volume",3,1),o=v(e,"muted",3,!1),n=(d,a)=>a?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",s=g(()=>n(i(),o()));var l=s2();D(()=>{var d;He(l,"data-value",r(s)),He(l,"data-testid",`volume-${(d=r(s))!=null?d:""}-icon`)}),$(t,l)}import{isNonNullable as T1,noop as Ln}from"@vkontakte/videoplayer-shared/es2018";import{noop as Uf}from"@vkontakte/videoplayer-shared/es2018";import{noop as d2}from"@vkontakte/videoplayer-shared/es2018";var l2=M('<div class="overlay"><!></div>');function Hf(t,e){U(e,!0);let[i,o]=Be(),n=()=>S(l,"$overlayContainer$",i),l=Ce().ui.overlayContainer$,d=X(void 0),a=u=>{!u||!r(d)||!u.contains(r(d))||u.removeChild(r(d))},p=u=>{!u||!r(d)||u.contains(r(d))||u.appendChild(r(d))};qe(()=>{p(n())}),Pt(()=>(p(n()),()=>a(n())));var f=l2(),m=_(f);ge(m,()=>{var u;return(u=e.children)!=null?u:ae}),h(f),st(f,u=>O(d,u),()=>r(d)),$(t,f),z(),o()}var c2=M('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),u2=M("<div><!></div> <!>",1),p2={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 _a(t,e){U(e,!0),K(t,p2);let[i,o]=Be(),n=()=>S(Y,"$overlayContainer$",i),s=()=>S(W,"$containerSize",i),l=v(e,"isMobile",3,!1),d=v(e,"content",3,""),a=v(e,"active",15,!1),p=v(e,"translateX",3,0),f=v(e,"translateY",3,0),m=v(e,"isFullWidthWrapper",3,!1),u=v(e,"maxTooltipWidth",3,void 0),y=v(e,"placement",3,"top"),w=v(e,"onVisibilityChange",3,d2),x=5,T=X(void 0),C=X(void 0),E,R=X(0),I=X(0),k=X(0),B=X(0),F=Tt(),H=Ce(),W=H.ui.playerSize,Y=H.ui.overlayContainer$;qe(()=>{xt(()=>{w()(a())})});let oe=H.getLogger().createComponentLog("Tooltip component"),G=()=>{if(!n()||!r(C)||!r(T))return;O(I,x);let ee=n().getBoundingClientRect(),Se=r(T).getBoundingClientRect(),Te=Se.width,Ke=r(C).clientWidth,tt=s().width,pt=(Te-Ke)/2,lt=Se.left+p()-ee.left,mt=lt+pt,it=Se.top+f()-ee.top,Dt=Ke/2-x,Wt=mt<8,Qt=mt+Ke>tt-8;Wt&&(mt=8,Dt=lt+Se.width/2-2.5*x),Qt&&(mt=tt-8-Ke,Dt=Se.left-ee.left+Se.width/2-mt-x),O(k,mt,!0),O(B,it),O(R,Dt,!0)},he=()=>{!n()||!r(C)||!r(T)||O(I,-x)},J=()=>{if(!n()||!r(C)||!r(T))return;O(R,x);let ee=n().getBoundingClientRect(),Se=r(T).getBoundingClientRect(),Te=Se.height,Ke=r(C).clientHeight,tt=(Te-Ke)/2+Ke,pt=Se.left+p()-ee.left-r(C).clientWidth,lt=2,mt=pt-x;mt<8&&(mt=8);let Dt=Se.top+f()-ee.top+tt,Wt=lt-tt/2,Qt=lt-x;O(k,mt,!0),O(B,Dt),O(I,Wt),O(R,Qt)},pe=()=>{!n()||!r(C)||!r(T)||O(R,-x)},me=()=>{switch(y()){case"top":G();break;case"bottom":he();break;case"left":J();break;default:pe()}},ue=()=>{try{if(!n()||!r(T))return;me(),a(!0)}catch(ee){oe({message:String(ee)})}},Le=()=>{a(!1)},Me=()=>{r(C)&&(E||(E=window.setTimeout(ue,F.controls.hideTimeoutTooltips)),a()&&ue())},le=()=>{Le(),window.clearTimeout(E),E=void 0},Ne=(ee,Se,Te)=>{let Ke="";switch(y()){case"top":Ke=`transform: translate(${ee}px, ${Se}px);`;break;case"bottom":Ke=`transform: translate(${ee}px, ${Se}px); top: auto; bottom: 100%;`;break;case"left":Ke=`transform: translate(${ee}px, ${Se}px); left: 0; right: auto;`;break;default:Ke=`transform: translate(${ee}px, ${Se}px);`}return Ke+=` max-width: ${u()===void 0?"auto":`${u()}px`};`,Ke+=` opacity: ${Te?1:0}; visibility: ${Te?"visible":"hidden"}`,Ke},re=(ee,Se)=>{let Te="";switch(y()){case"top":Te=`transform: translate(${ee}px, ${Se}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Te=`transform: translate(${ee}px, ${Se}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Te=`transform: translate(${ee}px, ${Se}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Te=`transform: translate(${ee}px, ${Se}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Te},P=g(()=>Ne(r(k),r(B),a())),ot=g(()=>re(r(R),r(I)));Pt(me),Jo(()=>window.clearTimeout(E));var Oe=u2(),Q=fe(Oe);let te;Q.__mousemove=Me,Q.__mousedown=le,Q.__mouseup=function(...ee){var Se;(Se=e.disableMouseupTooltipShow?void 0:Me)==null||Se.apply(this,ee)};var Re=_(Q);ge(Re,()=>{var ee;return(ee=e.children)!=null?ee:ae}),h(Q),st(Q,ee=>O(T,ee),()=>r(T));var Je=A(Q,2);{var ye=ee=>{Hf(ee,{children:(Se,Te)=>{var Ke=c2(),tt=_(Ke),pt=_(tt,!0);h(tt);var lt=A(tt,2);h(Ke),st(Ke,mt=>O(C,mt),()=>r(C)),D(()=>{at(Ke,r(P)),ve(pt,d()),at(lt,r(ot))}),$(Se,Ke)},$$slots:{default:!0}})};V(Je,ee=>{d()&&!l()&&ee(ye)})}D(ee=>te=ne(Q,1,"tooltip-wrapper svelte-hxlyne",null,te,ee),[()=>({"full-width":m()})]),Ct("mouseenter",Q,Me),Ct("mouseleave",Q,le),$(t,Oe),z(),o()}dt(["mousemove","mousedown","mouseup"]);var C1=t=>{t.stopPropagation()},f2=M("<div><!></div>"),m2={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 yo(t,e){U(e,!0),K(t,m2);let[i,o]=Be(),n=()=>S(p,"$isGraphOpened$",i),s=()=>S(a,"$isMobile",i),l=Ce(),d=lo(),a=l.ui.isMobile,p=d.graphIsOpened$,f=l.ui.t,m=v(e,"className",3,""),u=v(e,"disabled",3,!1),y=v(e,"hasTooltip",3,!0),w=v(e,"ref",15,void 0),x=v(e,"width",15,void 0),T=v(e,"isFullWidthTooltip",3,!0),C=v(e,"tooltipContent",3,""),E=v(e,"tooltipActive",3,!1),R=v(e,"tooltipPlacement",3,"top"),I=v(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),k=v(e,"isAriaHidden",3,!1),B=v(e,"onTooltipVisibilityChange",3,Uf),F=v(e,"initialTranslateXPx",3,0),H=v(e,"initialTranslateYPx",19,()=>-18),W=v(e,"mouseEnter",3,Uf),Y=v(e,"mouseLeave",3,Uf),oe=g(()=>u()?n()?f("tooltip_disabled_when_graph_on"):I():C());var G=f2();G.__pointerdown=[C1],G.__click=[C1];var he=_(G);{var J=me=>{_a(me,{get content(){return r(oe)},get translateX(){return F()},get translateY(){return H()},get isFullWidthWrapper(){return T()},get active(){return E()},get placement(){return R()},get onVisibilityChange(){return B()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},children:(ue,Le)=>{var Me=Fe(),le=fe(Me);ge(le,()=>{var Ne;return(Ne=e.children)!=null?Ne:ae}),$(ue,Me)},$$slots:{default:!0}})},pe=me=>{var ue=Fe(),Le=fe(ue);ge(Le,()=>{var Me;return(Me=e.children)!=null?Me:ae}),$(me,ue)};V(he,me=>{y()&&r(oe)&&!s()?me(J):me(pe,!1)})}h(G),st(G,me=>w(me),()=>w()),D(()=>{var me;ne(G,1,`btn-container ${(me=m())!=null?me:""}`,"svelte-p9r045"),He(G,"aria-hidden",k()||null)}),Ct("mouseenter",G,function(...me){var ue;(ue=W())==null||ue.apply(this,me)}),Ct("mouseleave",G,function(...me){var ue;(ue=Y())==null||ue.apply(this,me)}),sr(G,"clientWidth",x),$(t,G),z(),o()}dt(["pointerdown","click"]);var v2=we('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect width="20" height="20" rx="10" fill="var(--btn-color, #fff)"></rect><path d="M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"></path></svg>');function bd(t,e){"use strict";var i=v2(),o=_(i),n=A(o);h(i),D(()=>{He(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),He(o,"fill-opacity",e.completed?1:.24),He(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),$(t,i)}var g2=M("<div><!></div>"),h2={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 zf(t,e){U(e,!0),K(t,h2);let o=Ce().ui.t,n=X(0),s=g(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));yo(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=g2();let p;var f=_(a);let m=g(()=>!!e.videoEpisode.completed);bd(f,{get completed(){return r(m)}}),h(a),D(u=>{p=ne(a,1,"interactive-episode-icon svelte-bklhpe",null,p,u),at(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),sr(a,"clientWidth",u=>O(n,u)),$(l,a)},$$slots:{default:!0}}),z()}var _2=M('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),b2=M('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),$2={hash:"svelte-1u6kv8l",code:`.video-episodes-wrap.svelte-1u6kv8l {position:absolute;width:100%;height:100%;}.video-episode.svelte-1u6kv8l {position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:calc(-1 * var(--slider-height));padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s;}.video-episode.svelte-1u6kv8l:not(.disabled):where(:hover, :active) {transform:scaleY(1.5);}.video-episode-inner.svelte-1u6kv8l,
170
- .video-episode-loaded.svelte-1u6kv8l,
171
- .video-episode-filled.svelte-1u6kv8l {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1u6kv8l {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode-loaded.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function Wf(t,e){K(t,$2);let i=v(e,"videoEpisodes",19,()=>[]);var o=b2();ki(o,21,i,n=>n.from,(n,s)=>{var l=_2();let d;var a=_(l),p=_(a),f=A(p,2);let m;h(a),h(l),D((u,y)=>{d=ne(l,1,"video-episode svelte-1u6kv8l",null,d,u),at(l,`left: ${r(s).from}%; width: ${r(s).width}%`),at(p,`transform: translateX(${r(s).loadedWidth/r(s).width*100}%)`),m=ne(f,1,"video-episode-filled svelte-1u6kv8l",null,m,y),at(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 y2(t,e,i,o,n,s,l){if(t.preventDefault(),e()&&O(i,e().getBoundingClientRect(),!0),o()||r(n)||!e())return;O(n,!0);let d=s(t.clientX,t.clientY);l()(d),e().setPointerCapture(t.pointerId)}function x2(t,e,i,o,n,s,l,d){if(t.preventDefault(),e())return;let a=i(t.clientX,t.clientY),p=o(t.clientX);n()(a,p,r(s).width),r(l)&&d()(a)}function w2(t,e,i,o,n){if(t.preventDefault(),e()||!r(i))return;O(i,!1);let s=o(t.clientX,t.clientY);n()(s)}function S2(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function C2(t,e,i,o,n,s){let l=e(t.clientX,t.clientY);i()&&o()(l),O(n,!1),s()(l)}var T2=M("<div></div>"),E2=M('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),I2=M('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),k2={hash:"svelte-1tpemng",code:`.interactive-icons.svelte-1tpemng {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-1tpemng {top:-10px;}.slider.svelte-1tpemng {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-1tpemng {cursor:default;}.slider.svelte-1tpemng:before {
172
- /* hit area */content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2);}.bars.svelte-1tpemng {position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg);}.loaded.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;will-change:transform;}.filled.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}.slider.square.svelte-1tpemng,
173
- .slider.square.svelte-1tpemng > .bars:where(.svelte-1tpemng),
174
- .slider.square.svelte-1tpemng .loaded:where(.svelte-1tpemng),
175
- .slider.square.svelte-1tpemng .filled:where(.svelte-1tpemng) {border-radius:unset;}.filled.active-live.svelte-1tpemng {background-color:var(--timeline-slider-filled-active-live-bg);}.filled.ads.svelte-1tpemng {background-color:var(--slider-filled-ads);}.handleWrap.svelte-1tpemng {position:absolute;left:-100%;width:100%;}.handle.svelte-1tpemng {position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-handle-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s, visibility 0.2s;will-change:opacity, transform;}.handle.active-live.svelte-1tpemng {background-color:var(--timeline-slider-handle-active-live-bg);}.slider.svelte-1tpemng:hover .handle:where(.svelte-1tpemng),
176
- .slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {transform:scale(1.3);}.slider-vertical.svelte-1tpemng {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-1tpemng {cursor:default;opacity:0.4;}`};function ba(t,e){U(e,!0),K(t,k2);let i=v(e,"ref",15,void 0),o=v(e,"className",3,""),n=v(e,"testId",3,void 0),s=v(e,"isHidden",3,!1),l=v(e,"isVertical",3,!1),d=v(e,"isActiveLive",3,!1),a=v(e,"isMobile",3,!1),p=v(e,"squareBorders",3,!1),f=v(e,"videoEpisodes",19,()=>[]),m=v(e,"withWheelHandler",3,!1),u=v(e,"isInteractive",3,!1),y=v(e,"disabled",3,!1),w=v(e,"hideHandel",3,!1),x=v(e,"onPointerDown",3,Ln),T=v(e,"onHandleMove",3,Ln),C=v(e,"onPointerUp",3,Ln),E=v(e,"onPointerEnter",3,Ln),R=v(e,"onPointerMove",3,Ln),I=v(e,"onPointerLeave",3,Ln),k=v(e,"onMouseEnter",3,Ln),B=v(e,"onMouseLeave",3,Ln),F=v(e,"onWheelUp",3,Ln),H=v(e,"onWheelDown",3,Ln),W=v(e,"onWheelLeft",3,Ln),Y=v(e,"onWheelRight",3,Ln),oe=v(e,"onDisabledClick",3,Ln),G=v(e,"loadedProgress",3,0),he=v(e,"filledProgress",3,0),J=v(e,"handleProgress",3,0),pe=v(e,"ariaLabel",3,""),me=v(e,"ariaValueMin",3,void 0),ue=v(e,"ariaValueMax",3,void 0),Le=v(e,"ariaValueNow",3,void 0),Me=v(e,"ariaValueText",3,""),le=v(e,"onContextMenu",3,Ln),Ne=Tt(),re=X(void 0),P=X(!1),ot=g(()=>{var de;return(de=ue())!=null?de:0}),Oe=g(()=>{var de;return T1(f())&&((de=f()[f().length-1])==null?void 0:de.time)<r(ot)}),Q=g(()=>T1(f())&&f().length&&r(Oe)&&r(ot)?Ke(G()*100,he()*100):[]);function te(de){if(de.preventDefault(),i()&&O(re,i().getBoundingClientRect(),!0),y())return;let Qe=Se(de.clientX,de.clientY),Ue=Te(de.clientX);E()(Qe,Ue,r(re).width)}function Re(de){de.preventDefault(),!y()&&I()()}function Je(){k()()}function ye(){B()()}function ee(de){y()||m()&&(de.preventDefault(),de.deltaY<0?F()():de.deltaY>0?H()():de.deltaX>0?Y()():W()())}function Se(de,Qe){return l()?Math.max(0,Math.min(1,(r(re).height-(Qe-r(re).top))/r(re).height)):Math.min(Math.max(de-r(re).x,0),r(re).width)/r(re).width}function Te(de){return Math.min(Math.max(de-r(re).x,0),r(re).width)}function Ke(de,Qe){let Ue=Ne.features.episodesClustering&&!u()?Ne.episodeMinWidthPc:0,ce=[],De=f()[0].time/r(ot)*100,be=0,Ze=0;for(let Lt=1;Lt<f().length;Lt++)be=f()[Lt].time/r(ot)*100,be-De>Ue&&(ce.push({from:De,width:Math.max(0,be-De),loadedWidth:Math.max(0,Math.min(be,de)-De),filledWidth:Math.max(0,Math.min(be,Qe)-De),interactive:f()[Lt-1].interactive,completed:f()[Lt-1].completed}),De=f()[Lt].time/r(ot)*100,Ze++);let At={from:De,width:Math.max(0,100-De),loadedWidth:Math.max(0,Math.min(de,100)-De),filledWidth:Math.max(0,Math.min(Qe,100)-De),interactive:f()[Ze].interactive,completed:f()[Ze].completed};100-De<Ue?(Ze-=1,ce[Ze].width+=100-De,ce[Ze].loadedWidth+=Math.max(0,Math.min(de,100)-De),ce[Ze].filledWidth+=Math.max(0,Math.min(Qe,100)-De)):ce[Ze]=At;let bt=f()[0].time;if(bt!==0){let Lt=bt/r(ot)*100;ce.unshift({from:0,width:Lt,loadedWidth:Math.min(Lt,de),filledWidth:Math.min(Lt,Qe)})}return ce}function tt(de){return Math.max(0,Math.min(100,de*100))}var pt=I2(),lt=fe(pt);{var mt=de=>{var Qe=T2();let Ue;ki(Qe,21,()=>r(Q),ce=>ce.from,(ce,De)=>{var be=Fe(),Ze=fe(be);{var At=bt=>{zf(bt,{get videoEpisode(){return r(De)},get disabled(){return y()}})};V(Ze,bt=>{r(De).interactive&&bt(At)})}$(ce,be)}),h(Qe),D(ce=>Ue=ne(Qe,1,"interactive-icons svelte-1tpemng",null,Ue,ce),[()=>({mobile:a(),hidden:a()&&!r(P)})]),$(de,Qe)};V(lt,de=>{u()&&de(mt)})}var it=A(lt,2);let Dt;it.__pointerdown=[y2,i,re,y,P,Se,x],it.__pointermove=[x2,y,Se,Te,R,re,P,T],it.__pointerup=[w2,y,P,Se,C],it.__click=[S2,y,oe,Se],it.__contextmenu=[C2,Se,y,oe,P,le];var Wt=_(it);{var Qt=de=>{Wf(de,{get videoEpisodes(){return r(Q)},get disabled(){return y()},get isMobile(){return a()}})},Kt=de=>{var Qe=E2(),Ue=_(Qe),ce=A(Ue,2);let De;h(Qe),D((be,Ze,At)=>{at(Ue,be),De=ne(ce,1,"filled svelte-1tpemng",null,De,Ze),at(ce,At)},[()=>`transform: translateX(${tt(G())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${tt(he())}%);`]),$(de,Qe)};V(Wt,de=>{r(Q).length?de(Qt):de(Kt,!1)})}var ke=A(Wt,2);let qt;var _e=_(ke);let Ee;h(ke),h(it),st(it,de=>i(de),()=>i()),D((de,Qe,Ue,ce)=>{var De,be;Dt=ne(it,1,`slider ${(De=o())!=null?De:""}`,"svelte-1tpemng",Dt,de),He(it,"aria-label",pe()),He(it,"aria-valuemin",me()),He(it,"aria-valuemax",ue()),He(it,"aria-valuenow",Le()),He(it,"aria-valuetext",Me()),He(it,"data-testid",(be=n())!=null?be:null),qt=ne(ke,1,"handleWrap svelte-1tpemng",null,qt,Qe),at(ke,Ue),Ee=ne(_e,1,"handle svelte-1tpemng",null,Ee,ce)},[()=>({disabled:y(),"slider-dragging":r(P),hidden:s(),"slider-vertical":l(),"no-handle":w(),square:p()}),()=>({hidden:w()}),()=>`transform: translateX(${tt(J())}%);`,()=>({"active-live":d()})]),Ct("pointerenter",it,te),Ct("pointerleave",it,Re),Ct("mouseenter",it,Je),Ct("mouseleave",it,ye),Ct("wheel",it,ee),$(t,pt),z()}dt(["pointerdown","pointermove","pointerup","click","contextmenu"]);var Gi=(t,e)=>la[t]>=la[e],E1=(t,e)=>la[t]<la[e],xs=(t,e)=>la[t]<=la[e],I1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var P2=M("<div><!></div>"),L2=M("<div><!> <!></div>"),M2={hash:"svelte-1auih1j",code:".volumeBar-container.svelte-1auih1j {display:flex;align-items:center;}.volumeBar-container.vertical.svelte-1auih1j, .vertical.svelte-1auih1j .tooltip-wrapper, .vertical.svelte-1auih1j .btn {width:40px;}.volumeBar.svelte-1auih1j {display:flex;align-items:center;margin:0 8px;position:relative;width:70px;--slider-height: var(--slider-volume-height);--slider-radius: var(--slider-volume-radius);--slider-handle-size: var(--slider-volume-handle-size);--slider-bg: var(--volume-slider-bg);--slider-filled-bg: var(--volume-slider-filled-bg);--slider-handle-bg: var(--volume-slider-handle-bg);}.volumeBar-slider-vertical {width:50px !important;}.volumeBar-vertical.svelte-1auih1j {padding:0 8px 0 0;width:0;}"};function Kf(t,e){var ee,Se;U(e,!0),K(t,M2);let[i,o]=Be(),n=()=>S(E,"$isAudioAvailable$",i),s=()=>S(m,"$muted$",i),l=()=>S(f,"$volume$",i),d=()=>S(x,"$currentGridType$",i),a=Ce(),p=Tt(),f=a.state.volume$,m=a.state.muted$,{setVolume:u,startVolumeChanging:y,stopVolumeChanging:w}=a.actions.internal,x=a.ui.currentGridType$,T=(ee=a.callbacks)==null?void 0:ee.onAudioDoesNotExistHint,C=(Se=a.callbacks)==null?void 0:Se.onAudioDisabledHint,E=a.state.isAudioAvailable$,R=a.state.isAudioDisabled,I=a.ui.t,k=X(!1),B,F=g(()=>e.isAds||n()),H=g(()=>!r(F)||s()||l()===0),W=g(()=>xs(d(),"s")),Y=g(()=>r(W)?"":r(H)?!n()||R?I("tooltip_sound_unavailable"):I("tooltip_volume"):I("tooltip_volume_muted")),oe=g(()=>r(H)?I("tooltip_volume"):I("tooltip_volume_muted")),G=g(()=>r(H)?0:l()),he=!1,J=g(()=>e.isAds?!1:R?!C:n()?!1:!T);function pe(Te){y(),u(Te)}function me(){cu(a,l(),p.controls.volumeStepWheel)}function ue(){uu(a,l(),p.controls.volumeStepWheel)}function Le(Te){u(Te)}function Me(Te){u(Te),w()}function le(){he=!0}function Ne(){he=!1,ot()}function re(){clearTimeout(B),O(k,!0)}function P(){ot()}function ot(){B=window.setTimeout(()=>{he||O(k,!1)},p.controls.volumeBarTimeout)}function Oe(Te){Te.preventDefault(),Te.deltaY<0?me():Te.deltaY>0&&ue()}var Q=L2();let te;var Re=_(Q);_a(Re,{get content(){return r(Y)},translateY:-18,children:(Te,Ke)=>{let tt=g(()=>r(W)?"btn-volume-vertical":"btn-volume-horizontal");Rt(Te,{className:"btn-full-opacity",get disabled(){return r(J)},get testId(){return r(tt)},get ariaLabel(){return r(oe)},get click(){return e.click},get ariaKeyShortCut(){return ss.KeyM},role:"button",children:(pt,lt)=>{Ks(pt,{get volume(){return l()},get muted(){return r(H)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Je=A(Re,2);{var ye=Te=>{var Ke=P2();let tt;var pt=_(Ke);let lt=g(()=>r(W)?"volumeBar-slider-vertical":""),mt=g(()=>r(W)&&!r(k)),it=g(()=>r(W)?le:mu),Dt=g(()=>r(W)?Ne:mu),Wt=g(()=>Math.round(r(G)*100)),Qt=g(()=>`${Math.round(r(G)*100)}%`),Kt=g(()=>r(W)?"volume-slider-vertical":"volume-slider");ba(pt,{get className(){return r(lt)},get isHidden(){return r(mt)},get isVertical(){return r(W)},withWheelHandler:!0,onWheelUp:me,onWheelDown:ue,onPointerDown:pe,onHandleMove:Le,onPointerUp:Me,get onPointerEnter(){return r(it)},get onPointerLeave(){return r(Dt)},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(Wt)},get ariaValueText(){return r(Qt)},get filledProgress(){return r(G)},get handleProgress(){return r(G)},get testId(){return r(Kt)}}),h(Ke),D(ke=>tt=ne(Ke,1,"volumeBar svelte-1auih1j",null,tt,ke),[()=>({"volumeBar-vertical":r(W)})]),$(Te,Ke)};V(Je,Te=>{r(F)&&Te(ye)})}h(Q),D(Te=>te=ne(Q,1,"volumeBar-container svelte-1auih1j",null,te,Te),[()=>({vertical:r(W)})]),Ct("mouseenter",Q,function(...Te){var Ke;(Ke=r(W)?re:mu)==null||Ke.apply(this,Te)}),Ct("mouseleave",Q,function(...Te){var Ke;(Ke=r(W)?P:mu)==null||Ke.apply(this,Te)}),Ct("wheel",Q,Oe),$(t,Q),z(),o()}import{noop as N2}from"@vkontakte/videoplayer-shared/es2018";var V2=we('<svg><!><g fill-rule="evenodd"><path d="M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z" class="_exit"></path><path d="M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z" class="_enter"></path></g></svg>');function qf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=V2();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 s;return(s=e.children)!=null?s:ae}),xe(),h(o),$(t,o)}var R2={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
177
- svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function Qf(t,e){K(t,R2);let i=v(e,"isFullscreen",8,!1),o=Br(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");qf(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function $d(t,e){U(e,!0);let i=v(e,"isFullscreen",3,!1),o=v(e,"click",3,N2),n=Ce(),s=n.ui.isFullscreenOpenedByKeyboard,l=n.ui.t,d=g(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Rt(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:p=>{let f=zs(p);s.set(f),o()()},get ariaKeyShortCut(){return ss.KeyF},role:"button",children:(p,f)=>{Qf(p,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),z()}var O2=we('<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 Gf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=O2();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 s;return(s=e.children)!=null?s:ae}),xe(),h(o),$(t,o)}var B2=we('<svg><!><svg data-logo="vk_video"><path d="M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z"></path></svg><svg x="4" y="3" data-logo="play_market"><path d="M0 1.261v15.474c0 .435.114.778.335.988l.002.002 9.178-8.728L.332.282C.075.532 0 .92 0 1.26"></path><path d="M.332.282.384.235c.34-.3.881-.326 1.482 0L12.623 6.04 10.018 8.52zm10.286 8.747 2.884 2.452-.532.288-.345.184-2.572-2.446-9.716 8.218c.336.34.9.378 1.529.044l11.104-6 .534-.286-.002-.002 2.725-1.472c1.03-.56 1.03-1.47 0-2.022l-2.77-1.495-.833-.452-.001.001.834.45.098.054z"></path></svg><svg x="3" data-logo="app_store"><path d="M17.623 16.365a11.4 11.4 0 0 1-1.15 2.03q-.906 1.27-1.48 1.758-.885.8-1.901.823-.732.001-1.757-.412-1.029-.412-1.892-.411-.906 0-1.945.411-1.04.413-1.68.434-.975.041-1.946-.845-.62-.53-1.548-1.82-.995-1.376-1.637-3.195Q.001 13.173 0 11.33 0 9.218.93 7.69a5.4 5.4 0 0 1 1.946-1.934 5.3 5.3 0 0 1 2.63-.73q.774.002 2.036.465 1.26.466 1.614.467.267 0 1.79-.55 1.44-.508 2.433-.424 2.699.214 4.047 2.094-2.412 1.437-2.387 4.019.022 2.01 1.481 3.34.66.615 1.48.954a16 16 0 0 1-.377.973M13.499.42q0 1.576-1.168 2.939c-.94 1.079-2.075 1.702-3.307 1.604a3 3 0 0 1-.025-.398c0-1.008.446-2.087 1.24-2.97q.595-.67 1.51-1.114.915-.438 1.728-.481.023.21.022.42"></path></svg><path d="M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"></path><path d="M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35" class="_ru"></path><path d="M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635" class="_en"></path></svg>');function jf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=B2();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"var(--btn-color, #fff)","fill-rule":"evenodd","aria-hidden":"true","clip-rule":"evenodd",viewBox:"0 0 95 24",role:"img",...i}));var n=_(o);ge(n,()=>{var s;return(s=e.children)!=null?s:ae}),xe(6),h(o),$(t,o)}var D2={hash:"svelte-e5e2xr",code:`svg [data-logo],
169
+ .icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function Xs(t,e){W(t,N2);let i=h(e,"volume",3,1),o=h(e,"muted",3,!1),r=(d,a)=>a?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",s=m(()=>r(i(),o()));var l=R2();D(()=>{var d;We(l,"data-value",n(s)),We(l,"data-testid",`volume-${(d=n(s))!=null?d:""}-icon`)}),b(t,l)}import{isNonNullable as j1,noop as Dn}from"@vkontakte/videoplayer-shared/es2018";import{noop as ev}from"@vkontakte/videoplayer-shared/es2018";import{noop as D2}from"@vkontakte/videoplayer-shared/es2018";var O2=M('<div class="overlay"><!></div>');function Jf(t,e){F(e,!0);let[i,o]=De(),r=()=>S(l,"$overlayContainer$",i),l=he().ui.overlayContainer$,d=Q(void 0),a=p=>{!p||!n(d)||!p.contains(n(d))||p.removeChild(n(d))},u=p=>{!p||!n(d)||p.contains(n(d))||p.appendChild(n(d))};ze(()=>{u(r())}),Rt(()=>(u(r()),()=>a(r())));var f=O2(),v=_(f);_e(v,()=>{var p;return(p=e.children)!=null?p:ce}),g(f),st(f,p=>N(d,p),()=>n(d)),b(t,f),U(),o()}var B2=M('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),H2=M("<div><!></div> <!>",1),F2={hash:"svelte-hxlyne",code:'.tooltip-wrapper.svelte-hxlyne {display:flex;flex-direction:column;min-width:0;}.full-width.svelte-hxlyne {width:100%;}.tooltip.svelte-hxlyne {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0;}.content.svelte-hxlyne {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.tooltip-pointer.svelte-hxlyne {position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;}'};function La(t,e){F(e,!0),W(t,F2);let[i,o]=De(),r=()=>S(Z,"$overlayContainer$",i),s=()=>S(z,"$containerSize",i),l=h(e,"isMobile",3,!1),d=h(e,"content",3,""),a=h(e,"active",15,!1),u=h(e,"translateX",3,0),f=h(e,"translateY",3,0),v=h(e,"isFullWidthWrapper",3,!1),p=h(e,"maxTooltipWidth",3,void 0),y=h(e,"placement",3,"top"),w=h(e,"onVisibilityChange",3,D2),x=5,C=Q(void 0),T=Q(void 0),E,R=Q(0),A=Q(0),I=Q(0),O=Q(0),H=Lt(),B=he(),z=B.ui.playerSize,Z=B.ui.overlayContainer$;ze(()=>{kt(()=>{w()(a())})});let ae=B.getLogger().createComponentLog("Tooltip component"),q=()=>{if(!r()||!n(T)||!n(C))return;N(A,x);let J=r().getBoundingClientRect(),Ie=n(C).getBoundingClientRect(),ge=Ie.width,Fe=n(T).clientWidth,Ze=s().width,Ge=(ge-Fe)/2,dt=Ie.left+u()-J.left,Je=dt+Ge,Ot=Ie.top+f()-J.top,nt=Fe/2-x,Nt=Je<8,Wt=Je+Fe>Ze-8;Nt&&(Je=8,nt=dt+Ie.width/2-2.5*x),Wt&&(Je=Ze-8-Fe,nt=Ie.left-J.left+Ie.width/2-Je-x),N(I,Je,!0),N(O,Ot),N(R,nt,!0)},de=()=>{!r()||!n(T)||!n(C)||N(A,-x)},X=()=>{if(!r()||!n(T)||!n(C))return;N(R,x);let J=r().getBoundingClientRect(),Ie=n(C).getBoundingClientRect(),ge=Ie.height,Fe=n(T).clientHeight,Ze=(ge-Fe)/2+Fe,Ge=Ie.left+u()-J.left-n(T).clientWidth,dt=2,Je=Ge-x;Je<8&&(Je=8);let nt=Ie.top+f()-J.top+Ze,Nt=dt-Ze/2,Wt=dt-x;N(I,Je,!0),N(O,nt),N(A,Nt),N(R,Wt)},fe=()=>{!r()||!n(T)||!n(C)||N(R,-x)},re=()=>{switch(y()){case"top":q();break;case"bottom":de();break;case"left":X();break;default:fe()}},le=()=>{try{if(!r()||!n(C))return;re(),a(!0)}catch(J){ae({message:String(J)})}},Me=()=>{a(!1)},we=()=>{n(T)&&(E||(E=window.setTimeout(le,H.controls.hideTimeoutTooltips)),a()&&le())},te=()=>{Me(),window.clearTimeout(E),E=void 0},Ne=(J,Ie,ge)=>{let Fe="";switch(y()){case"top":Fe=`transform: translate(${J}px, ${Ie}px);`;break;case"bottom":Fe=`transform: translate(${J}px, ${Ie}px); top: auto; bottom: 100%;`;break;case"left":Fe=`transform: translate(${J}px, ${Ie}px); left: 0; right: auto;`;break;default:Fe=`transform: translate(${J}px, ${Ie}px);`}return Fe+=` max-width: ${p()===void 0?"auto":`${p()}px`};`,Fe+=` opacity: ${ge?1:0}; visibility: ${ge?"visible":"hidden"}`,Fe},ue=(J,Ie)=>{let ge="";switch(y()){case"top":ge=`transform: translate(${J}px, ${Ie}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":ge=`transform: translate(${J}px, ${Ie}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":ge=`transform: translate(${J}px, ${Ie}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:ge=`transform: translate(${J}px, ${Ie}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return ge},k=m(()=>Ne(n(I),n(O),a())),Ke=m(()=>ue(n(R),n(A)));Rt(re),on(()=>window.clearTimeout(E));var Ve=H2(),Y=pe(Ve);let oe;Y.__mousemove=we,Y.__mousedown=te,Y.__mouseup=function(...J){var Ie;(Ie=e.disableMouseupTooltipShow?void 0:we)==null||Ie.apply(this,J)};var Be=_(Y);_e(Be,()=>{var J;return(J=e.children)!=null?J:ce}),g(Y),st(Y,J=>N(C,J),()=>n(C));var Ye=P(Y,2);{var me=J=>{Jf(J,{children:(Ie,ge)=>{var Fe=B2(),Ze=_(Fe),Ge=_(Ze,!0);g(Ze);var dt=P(Ze,2);g(Fe),st(Fe,Je=>N(T,Je),()=>n(T)),D(()=>{Xe(Fe,n(k)),ve(Ge,d()),Xe(dt,n(Ke))}),b(Ie,Fe)},$$slots:{default:!0}})};V(Ye,J=>{d()&&!l()&&J(me)})}D(J=>oe=ne(Y,1,"tooltip-wrapper svelte-hxlyne",null,oe,J),[()=>({"full-width":v()})]),wt("mouseenter",Y,we),wt("mouseleave",Y,te),b(t,Ve),U(),o()}lt(["mousemove","mousedown","mouseup"]);var G1=t=>{t.stopPropagation()},U2=M("<div><!></div>"),z2={hash:"svelte-p9r045",code:".btn-container.svelte-p9r045 {position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent;}.w-max.svelte-p9r045 {width:100%;min-width:0;}"};function ko(t,e){F(e,!0),W(t,z2);let[i,o]=De(),r=()=>S(u,"$isGraphOpened$",i),s=()=>S(a,"$isMobile",i),l=he(),d=ho(),a=l.ui.isMobile,u=d.graphIsOpened$,f=l.ui.t,v=h(e,"className",3,""),p=h(e,"disabled",3,!1),y=h(e,"hasTooltip",3,!0),w=h(e,"ref",15,void 0),x=h(e,"width",15,void 0),C=h(e,"isFullWidthTooltip",3,!0),T=h(e,"tooltipContent",3,""),E=h(e,"tooltipActive",3,!1),R=h(e,"tooltipPlacement",3,"top"),A=h(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),I=h(e,"isAriaHidden",3,!1),O=h(e,"onTooltipVisibilityChange",3,ev),H=h(e,"initialTranslateXPx",3,0),B=h(e,"initialTranslateYPx",19,()=>-18),z=h(e,"mouseEnter",3,ev),Z=h(e,"mouseLeave",3,ev),ae=m(()=>p()?r()?f("tooltip_disabled_when_graph_on"):A():T());var q=U2();q.__pointerdown=[G1],q.__click=[G1];var de=_(q);{var X=re=>{La(re,{get content(){return n(ae)},get translateX(){return H()},get translateY(){return B()},get isFullWidthWrapper(){return C()},get active(){return E()},get placement(){return R()},get onVisibilityChange(){return O()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},children:(le,Me)=>{var we=He(),te=pe(we);_e(te,()=>{var Ne;return(Ne=e.children)!=null?Ne:ce}),b(le,we)},$$slots:{default:!0}})},fe=re=>{var le=He(),Me=pe(le);_e(Me,()=>{var we;return(we=e.children)!=null?we:ce}),b(re,le)};V(de,re=>{y()&&n(ae)&&!s()?re(X):re(fe,!1)})}g(q),st(q,re=>w(re),()=>w()),D(()=>{var re;ne(q,1,`btn-container ${(re=v())!=null?re:""}`,"svelte-p9r045"),We(q,"aria-hidden",I()||null)}),wt("mouseenter",q,function(...re){var le;(le=z())==null||le.apply(this,re)}),wt("mouseleave",q,function(...re){var le;(le=Z())==null||le.apply(this,re)}),Sn(q,"clientWidth",x),b(t,q),U(),o()}lt(["pointerdown","click"]);var W2=Ee('<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 Ud(t,e){"use strict";var i=W2(),o=_(i),r=P(o);g(i),D(()=>{We(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),We(o,"fill-opacity",e.completed?1:.24),We(r,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(t,i)}var K2=M("<div><!></div>"),q2={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 tv(t,e){F(e,!0),W(t,q2);let o=he().ui.t,r=Q(0),s=m(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));ko(t,{get tooltipContent(){return n(s)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return n(r)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var a=K2();let u;var f=_(a);let v=m(()=>!!e.videoEpisode.completed);Ud(f,{get completed(){return n(v)}}),g(a),D(p=>{u=ne(a,1,"interactive-episode-icon svelte-bklhpe",null,u,p),Xe(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Sn(a,"clientWidth",p=>N(r,p)),b(l,a)},$$slots:{default:!0}}),U()}var Q2=M('<div><div class="video-episode-inner svelte-1uc247w"><div class="video-episode-loaded svelte-1uc247w"></div> <div></div></div></div>'),G2=M('<div class="video-episodes-wrap svelte-1uc247w"></div>'),j2={hash:"svelte-1uc247w",code:`.video-episodes-wrap.svelte-1uc247w {position:absolute;width:100%;height:100%;}.video-episode.svelte-1uc247w {position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:calc(-1 * var(--slider-height));padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s;}.video-episode.svelte-1uc247w:first-child {padding-left:0;}.video-episode.svelte-1uc247w:last-child {padding-right:0;}.video-episode.svelte-1uc247w:not(.disabled):where(:hover, :active) {transform:scaleY(1.5);}.video-episode-inner.svelte-1uc247w,
170
+ .video-episode-loaded.svelte-1uc247w,
171
+ .video-episode-filled.svelte-1uc247w {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1uc247w {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode.svelte-1uc247w:first-child .video-episode-inner:where(.svelte-1uc247w),
172
+ .video-episode.svelte-1uc247w:last-child .video-episode-inner:where(.svelte-1uc247w) {width:calc(100% - var(--slider-video-episode-gap));}.video-episode-loaded.svelte-1uc247w {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1uc247w {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function iv(t,e){W(t,j2);let i=h(e,"videoEpisodes",19,()=>[]);var o=G2();wi(o,21,i,r=>r.from,(r,s)=>{var l=Q2();let d;var a=_(l),u=_(a),f=P(u,2);let v;g(a),g(l),D((p,y)=>{d=ne(l,1,"video-episode svelte-1uc247w",null,d,p),Xe(l,`left: ${n(s).from}%; width: ${n(s).width}%`),Xe(u,`transform: translateX(${n(s).loadedWidth/n(s).width*100}%)`),v=ne(f,1,"video-episode-filled svelte-1uc247w",null,v,y),Xe(f,`transform: translateX(${n(s).filledWidth/n(s).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(r,l)}),g(o),b(t,o)}function Y2(t,e,i,o,r,s,l){if(t.preventDefault(),e()&&N(i,e().getBoundingClientRect(),!0),o()||n(r)||!e())return;N(r,!0);let d=s(t.clientX,t.clientY);l()(d,t),e().setPointerCapture(t.pointerId)}function Z2(t,e,i,o,r,s,l,d){if(t.preventDefault(),e())return;let a=i(t.clientX,t.clientY),u=o(t.clientX);r()(a,u,n(s).width,t),n(l)&&d()(a)}function X2(t,e,i,o,r){if(t.preventDefault(),e()||!n(i))return;N(i,!1);let s=o(t.clientX,t.clientY);r()(s,t)}function J2(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function ey(t,e,i,o,r,s){let l=e(t.clientX,t.clientY);i()&&o()(l),N(r,!1),s()(l)}var ty=M("<div></div>"),iy=M('<div class="bars svelte-12bsb23"><div class="loaded svelte-12bsb23"></div> <div></div></div>'),oy=M('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),ny={hash:"svelte-12bsb23",code:`.interactive-icons.svelte-12bsb23 {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-12bsb23 {top:-10px;}.slider.svelte-12bsb23 {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-12bsb23 {cursor:default;}.slider.svelte-12bsb23:before {
173
+ /* hit area */content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2);}.bars.svelte-12bsb23 {position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg);}.loaded.svelte-12bsb23 {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;will-change:transform;}.filled.svelte-12bsb23 {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}.slider.square.svelte-12bsb23,
174
+ .slider.square.svelte-12bsb23 > .bars:where(.svelte-12bsb23),
175
+ .slider.square.svelte-12bsb23 .loaded:where(.svelte-12bsb23),
176
+ .slider.square.svelte-12bsb23 .filled:where(.svelte-12bsb23) {border-radius:unset;}.filled.active-live.svelte-12bsb23 {background-color:var(--timeline-slider-filled-active-live-bg);}.filled.ads.svelte-12bsb23 {background-color:var(--slider-filled-ads);}.handleWrap.svelte-12bsb23 {position:absolute;left:-100%;width:100%;}.handle.svelte-12bsb23 {position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-handle-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s;will-change:opacity, transform;}.handle.active-live.svelte-12bsb23 {background-color:var(--timeline-slider-handle-active-live-bg);}.handle-always-visible.svelte-12bsb23 .handle:where(.svelte-12bsb23),
177
+ .slider.svelte-12bsb23:hover .handle:where(.svelte-12bsb23),
178
+ .slider-dragging.svelte-12bsb23 .handle:where(.svelte-12bsb23) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-12bsb23 .handle:where(.svelte-12bsb23) {transform:scale(1.3);}.slider-vertical.svelte-12bsb23 {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-12bsb23 {cursor:default;opacity:0.4;}`};function Va(t,e){F(e,!0),W(t,ny);let i=h(e,"ref",15,void 0),o=h(e,"className",3,""),r=h(e,"testId",3,void 0),s=h(e,"isHidden",3,!1),l=h(e,"isVertical",3,!1),d=h(e,"isActiveLive",3,!1),a=h(e,"isMobile",3,!1),u=h(e,"squareBorders",3,!1),f=h(e,"videoEpisodes",19,()=>[]),v=h(e,"withWheelHandler",3,!1),p=h(e,"isInteractive",3,!1),y=h(e,"disabled",3,!1),w=h(e,"hideHandel",3,!1),x=h(e,"onPointerDown",3,Dn),C=h(e,"onHandleMove",3,Dn),T=h(e,"onPointerUp",3,Dn),E=h(e,"onPointerEnter",3,Dn),R=h(e,"onPointerMove",3,Dn),A=h(e,"onPointerLeave",3,Dn),I=h(e,"onMouseEnter",3,Dn),O=h(e,"onMouseLeave",3,Dn),H=h(e,"onWheelUp",3,Dn),B=h(e,"onWheelDown",3,Dn),z=h(e,"onWheelLeft",3,Dn),Z=h(e,"onWheelRight",3,Dn),ae=h(e,"onDisabledClick",3,Dn),q=h(e,"loadedProgress",3,0),de=h(e,"filledProgress",3,0),X=h(e,"handleProgress",3,0),fe=h(e,"ariaLabel",3,""),re=h(e,"ariaValueMin",3,void 0),le=h(e,"ariaValueMax",3,void 0),Me=h(e,"ariaValueNow",3,void 0),we=h(e,"ariaValueText",3,""),te=h(e,"onContextMenu",3,Dn),Ne=h(e,"handleAlwaysVisible",3,!1),ue=Lt(),k=Q(void 0),Ke=Q(!1),Ve=m(()=>{var Ce;return(Ce=le())!=null?Ce:0}),Y=m(()=>{var Ce;return j1(f())&&((Ce=f()[f().length-1])==null?void 0:Ce.time)<n(Ve)}),oe=m(()=>j1(f())&&f().length&&n(Y)&&n(Ve)?Ze(q()*100,de()*100):[]);function Be(Ce){if(Ce.preventDefault(),i()&&N(k,i().getBoundingClientRect(),!0),y())return;let Pe=ge(Ce.clientX,Ce.clientY),Tt=Fe(Ce.clientX);E()(Pe,Tt,n(k).width)}function Ye(Ce){Ce.preventDefault(),!y()&&A()()}function me(){I()()}function J(){O()()}function Ie(Ce){y()||v()&&(Ce.preventDefault(),Ce.deltaY<0?H()():Ce.deltaY>0?B()():Ce.deltaX>0?Z()():z()())}function ge(Ce,Pe){return l()?Math.max(0,Math.min(1,(n(k).height-(Pe-n(k).top))/n(k).height)):Math.min(Math.max(Ce-n(k).x,0),n(k).width)/n(k).width}function Fe(Ce){return Math.min(Math.max(Ce-n(k).x,0),n(k).width)}function Ze(Ce,Pe){let Tt=ue.features.episodesClustering&&!p()?ue.episodeMinWidthPc:0,Oe=[],ct=f()[0].time/n(Ve)*100,bt=0,ye=0;for(let at=1;at<f().length;at++)bt=f()[at].time/n(Ve)*100,bt-ct>Tt&&(Oe.push({from:ct,width:Math.max(0,bt-ct),loadedWidth:Math.max(0,Math.min(bt,Ce)-ct),filledWidth:Math.max(0,Math.min(bt,Pe)-ct),interactive:f()[at-1].interactive,completed:f()[at-1].completed}),ct=f()[at].time/n(Ve)*100,ye++);let it={from:ct,width:Math.max(0,100-ct),loadedWidth:Math.max(0,Math.min(Ce,100)-ct),filledWidth:Math.max(0,Math.min(Pe,100)-ct),interactive:f()[ye].interactive,completed:f()[ye].completed};100-ct<Tt?(ye-=1,Oe[ye].width+=100-ct,Oe[ye].loadedWidth+=Math.max(0,Math.min(Ce,100)-ct),Oe[ye].filledWidth+=Math.max(0,Math.min(Pe,100)-ct)):Oe[ye]=it;let qe=f()[0].time;if(qe!==0){let at=qe/n(Ve)*100;Oe.unshift({from:0,width:at,loadedWidth:Math.min(at,Ce),filledWidth:Math.min(at,Pe)})}return Oe}function Ge(Ce){return Math.max(0,Math.min(100,Ce*100))}var dt=oy(),Je=pe(dt);{var Ot=Ce=>{var Pe=ty();let Tt;wi(Pe,21,()=>n(oe),Oe=>Oe.from,(Oe,ct)=>{var bt=He(),ye=pe(bt);{var it=qe=>{tv(qe,{get videoEpisode(){return n(ct)},get disabled(){return y()}})};V(ye,qe=>{n(ct).interactive&&qe(it)})}b(Oe,bt)}),g(Pe),D(Oe=>Tt=ne(Pe,1,"interactive-icons svelte-12bsb23",null,Tt,Oe),[()=>({mobile:a(),hidden:a()&&!n(Ke)})]),b(Ce,Pe)};V(Je,Ce=>{p()&&Ce(Ot)})}var nt=P(Je,2);let Nt;nt.__pointerdown=[Y2,i,k,y,Ke,ge,x],nt.__pointermove=[Z2,y,ge,Fe,R,k,Ke,C],nt.__pointerup=[X2,y,Ke,ge,T],nt.__click=[J2,y,ae,ge],nt.__contextmenu=[ey,ge,y,ae,Ke,te];var Wt=_(nt);{var Ct=Ce=>{iv(Ce,{get videoEpisodes(){return n(oe)},get disabled(){return y()},get isMobile(){return a()}})},Xt=Ce=>{var Pe=iy(),Tt=_(Pe),Oe=P(Tt,2);let ct;g(Pe),D((bt,ye,it)=>{Xe(Tt,bt),ct=ne(Oe,1,"filled svelte-12bsb23",null,ct,ye),Xe(Oe,it)},[()=>`transform: translateX(${Ge(q())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${Ge(de())}%);`]),b(Ce,Pe)};V(Wt,Ce=>{n(oe).length?Ce(Ct):Ce(Xt,!1)})}var Ut=P(Wt,2);let Se;var xe=_(Ut);let ee;g(Ut),g(nt),st(nt,Ce=>i(Ce),()=>i()),D((Ce,Pe,Tt,Oe)=>{var ct,bt;Nt=ne(nt,1,`slider ${(ct=o())!=null?ct:""}`,"svelte-12bsb23",Nt,Ce),We(nt,"aria-label",fe()),We(nt,"aria-valuemin",re()),We(nt,"aria-valuemax",le()),We(nt,"aria-valuenow",Me()),We(nt,"aria-valuetext",we()),We(nt,"data-testid",(bt=r())!=null?bt:null),Se=ne(Ut,1,"handleWrap svelte-12bsb23",null,Se,Pe),Xe(Ut,Tt),ee=ne(xe,1,"handle svelte-12bsb23",null,ee,Oe)},[()=>({disabled:y(),"slider-dragging":n(Ke),hidden:s(),"handle-always-visible":Ne(),"slider-vertical":l(),"no-handle":w(),square:u()}),()=>({hidden:w()}),()=>`transform: translateX(${Ge(X())}%);`,()=>({"active-live":d()})]),wt("pointerenter",nt,Be),wt("pointerleave",nt,Ye),wt("mouseenter",nt,me),wt("mouseleave",nt,J),wt("wheel",nt,Ie),b(t,dt),U()}lt(["pointerdown","pointermove","pointerup","click","contextmenu"]);var eo=(t,e)=>Sa[t]>=Sa[e],Y1=(t,e)=>Sa[t]<Sa[e],Is=(t,e)=>Sa[t]<=Sa[e],Z1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var sy=M("<div><!></div>"),ay=M("<div><!> <!></div>"),ly={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 ov(t,e){var J,Ie;F(e,!0),W(t,ly);let[i,o]=De(),r=()=>S(E,"$isAudioAvailable$",i),s=()=>S(v,"$muted$",i),l=()=>S(f,"$volume$",i),d=()=>S(x,"$currentGridType$",i),a=he(),u=Lt(),f=a.state.volume$,v=a.state.muted$,{setVolume:p,startVolumeChanging:y,stopVolumeChanging:w}=a.actions.internal,x=a.ui.currentGridType$,C=(J=a.callbacks)==null?void 0:J.onAudioDoesNotExistHint,T=(Ie=a.callbacks)==null?void 0:Ie.onAudioDisabledHint,E=a.state.isAudioAvailable$,R=a.state.isAudioDisabled,A=a.ui.t,I=Q(!1),O,H=m(()=>e.isAds||r()),B=m(()=>!n(H)||s()||l()===0),z=m(()=>Is(d(),"s")),Z=m(()=>n(z)?"":n(B)?!r()||R?A("tooltip_sound_unavailable"):A("tooltip_volume"):A("tooltip_volume_muted")),ae=m(()=>n(B)?A("tooltip_volume"):A("tooltip_volume_muted")),q=m(()=>n(B)?0:l()),de=!1,X=m(()=>e.isAds?!1:R?!T:r()?!1:!C);function fe(ge){y(),p(ge)}function re(){ku(a,l(),u.controls.volumeStepWheel)}function le(){Au(a,l(),u.controls.volumeStepWheel)}function Me(ge){p(ge)}function we(ge){p(ge),w()}function te(){de=!0}function Ne(){de=!1,Ke()}function ue(){clearTimeout(O),N(I,!0)}function k(){Ke()}function Ke(){O=window.setTimeout(()=>{de||N(I,!1)},u.controls.volumeBarTimeout)}function Ve(ge){ge.preventDefault(),ge.deltaY<0?re():ge.deltaY>0&&le()}var Y=ay();let oe;var Be=_(Y);La(Be,{get content(){return n(Z)},translateY:-18,children:(ge,Fe)=>{let Ze=m(()=>n(z)?"btn-volume-vertical":"btn-volume-horizontal");Ft(ge,{className:"btn-full-opacity",get disabled(){return n(X)},get testId(){return n(Ze)},get ariaLabel(){return n(ae)},get click(){return e.click},get ariaKeyShortCut(){return ss.KeyM},role:"button",children:(Ge,dt)=>{Xs(Ge,{get volume(){return l()},get muted(){return n(B)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Ye=P(Be,2);{var me=ge=>{var Fe=sy();let Ze;var Ge=_(Fe);let dt=m(()=>n(z)?"volumeBar-slider-vertical":""),Je=m(()=>n(z)&&!n(I)),Ot=m(()=>n(z)?te:Lu),nt=m(()=>n(z)?Ne:Lu),Nt=m(()=>Math.round(n(q)*100)),Wt=m(()=>`${Math.round(n(q)*100)}%`),Ct=m(()=>n(z)?"volume-slider-vertical":"volume-slider");Va(Ge,{get className(){return n(dt)},get isHidden(){return n(Je)},get isVertical(){return n(z)},withWheelHandler:!0,onWheelUp:re,onWheelDown:le,onPointerDown:fe,onHandleMove:Me,onPointerUp:we,get onPointerEnter(){return n(Ot)},get onPointerLeave(){return n(nt)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return n(Nt)},get ariaValueText(){return n(Wt)},get filledProgress(){return n(q)},get handleProgress(){return n(q)},get testId(){return n(Ct)}}),g(Fe),D(Xt=>Ze=ne(Fe,1,"volumeBar svelte-1auih1j",null,Ze,Xt),[()=>({"volumeBar-vertical":n(z)})]),b(ge,Fe)};V(Ye,ge=>{n(H)&&ge(me)})}g(Y),D(ge=>oe=ne(Y,1,"volumeBar-container svelte-1auih1j",null,oe,ge),[()=>({vertical:n(z)})]),wt("mouseenter",Y,function(...ge){var Fe;(Fe=n(z)?ue:Lu)==null||Fe.apply(this,ge)}),wt("mouseleave",Y,function(...ge){var Fe;(Fe=n(z)?k:Lu)==null||Fe.apply(this,ge)}),wt("wheel",Y,Ve),b(t,Y),U(),o()}import{noop as uy}from"@vkontakte/videoplayer-shared/es2018";var dy=Ee('<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 nv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=dy();ke(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 r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var cy={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
179
+ svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function rv(t,e){W(t,cy);let i=h(e,"isFullscreen",8,!1),o=bn(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");nv(t,{get"data-testid"(){return n(o)},fill:"var(--btn-color, #fff)"})}function zd(t,e){F(e,!0);let i=h(e,"isFullscreen",3,!1),o=h(e,"click",3,uy),r=he(),s=r.ui.isFullscreenOpenedByKeyboard,l=r.ui.t,d=m(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Ft(t,{testId:"btn-fullscreen",get ariaLabel(){return n(d)},click:u=>{let f=Ys(u);s.set(f),o()()},get ariaKeyShortCut(){return ss.KeyF},role:"button",children:(u,f)=>{rv(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),U()}var py=Ee('<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 sv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=py();ke(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 r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var fy=Ee('<svg><!><svg data-logo="vk_video"><path d="M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z"></path></svg><svg x="4" y="3" data-logo="play_market"><path d="M0 1.261v15.474c0 .435.114.778.335.988l.002.002 9.178-8.728L.332.282C.075.532 0 .92 0 1.26"></path><path d="M.332.282.384.235c.34-.3.881-.326 1.482 0L12.623 6.04 10.018 8.52zm10.286 8.747 2.884 2.452-.532.288-.345.184-2.572-2.446-9.716 8.218c.336.34.9.378 1.529.044l11.104-6 .534-.286-.002-.002 2.725-1.472c1.03-.56 1.03-1.47 0-2.022l-2.77-1.495-.833-.452-.001.001.834.45.098.054z"></path></svg><svg x="3" data-logo="app_store"><path d="M17.623 16.365a11.4 11.4 0 0 1-1.15 2.03q-.906 1.27-1.48 1.758-.885.8-1.901.823-.732.001-1.757-.412-1.029-.412-1.892-.411-.906 0-1.945.411-1.04.413-1.68.434-.975.041-1.946-.845-.62-.53-1.548-1.82-.995-1.376-1.637-3.195Q.001 13.173 0 11.33 0 9.218.93 7.69a5.4 5.4 0 0 1 1.946-1.934 5.3 5.3 0 0 1 2.63-.73q.774.002 2.036.465 1.26.466 1.614.467.267 0 1.79-.55 1.44-.508 2.433-.424 2.699.214 4.047 2.094-2.412 1.437-2.387 4.019.022 2.01 1.481 3.34.66.615 1.48.954a16 16 0 0 1-.377.973M13.499.42q0 1.576-1.168 2.939c-.94 1.079-2.075 1.702-3.307 1.604a3 3 0 0 1-.025-.398c0-1.008.446-2.087 1.24-2.97q.595-.67 1.51-1.114.915-.438 1.728-.481.023.21.022.42"></path></svg><path d="M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"></path><path d="M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35" class="_ru"></path><path d="M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635" class="_en"></path></svg>');function av(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=fy();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"var(--btn-color, #fff)","fill-rule":"evenodd","aria-hidden":"true","clip-rule":"evenodd",viewBox:"0 0 95 24",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(6),g(o),b(t,o)}var vy={hash:"svelte-e5e2xr",code:`svg [data-logo],
178
180
  svg[data-testid="vk-video-logo-icon--short"] ._ru,
179
181
  svg[data-testid="vk-video-logo-icon--short"] ._en,
180
182
  svg[data-testid="vk-video-logo-icon"] ._en,
181
183
  svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}svg[data-logo="vk_video"] [data-logo="vk_video"],
182
184
  svg[data-logo="play_market"] [data-logo="play_market"],
183
- svg[data-logo="app_store"] [data-logo="app_store"] {visibility:visible;opacity:1;}`};function Yf(t,e){U(e,!0),K(t,D2);let i=v(e,"short",3,!1),o=v(e,"isCyrillic",3,!0),n=v(e,"logo",19,()=>"vk_video"),s="vk-video-logo-icon--short",l=24,d=g(()=>!o()&&!i()?91:i()?l:95),a=g(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?s:"vk-video-logo-icon"),p=g(()=>`0 0 ${r(d)} 24`);jf(t,{get width(){return r(d)},height:"24",get viewBox(){return r(p)},get"data-testid"(){return r(a)},get"data-logo"(){return n()}}),z()}function yd(t,e){U(e,!0);let[i,o]=Be(),n=()=>S(y,"$isMobile",i),s=()=>S(u,"$currentGridType$",i),l=()=>S(x,"$isCyrillicRelatedInterface$",i),d=v(e,"ref",15,void 0),a=v(e,"logoClickable",3,!1),p=v(e,"targetUrl",3,""),f=Tt(),m=Ce(),u=m.ui.currentGridType$,y=m.ui.isMobile,w=m.ui.t,x=m.isCyrillicRelatedInterface$,T=g(()=>f.logoType!=="vk"),C=g(()=>r(T)?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),E=g(()=>(n()&&xs(s(),"m")||xs(s(),"l"))&&r(T)),R=()=>{var B,F;e.click(),(B=m.callbacks)!=null&&B.onLogoClicked?(F=m.callbacks)==null||F.onLogoClicked():p()&&window.open(p(),"_blank")},I=g(()=>!a()),k=g(()=>r(T)?"btn-vk-video-logo":"btn-vk-logo");Rt(t,{className:"btn-full-opacity",get disabled(){return r(I)},click:R,get testId(){return r(k)},get ariaLabel(){return r(C)},get ref(){return d()},set ref(B){d(B)},children:(B,F)=>{var H=Fe(),W=fe(H);{var Y=G=>{Yf(G,{get logo(){return f.logoType},get short(){return r(E)},get isCyrillic(){return l()}})},oe=G=>{Gf(G,{})};V(W,G=>{r(T)?G(Y):G(oe,!1)})}$(B,H)},$$slots:{default:!0}}),z(),o()}import{ChromecastState as z2}from"@vkontakte/videoplayer-core/es2018";import{ChromecastState as A1}from"@vkontakte/videoplayer-core/es2018";var F2=we('<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-mobile-icon" class="svelte-8z1bf5"><g filter="url(#b)" clip-path="url(#a)" class="svelte-8z1bf5"><mask id="c" maskUnits="userSpaceOnUse" x="1.1" y="3.1" width="22" height="18" fill="#000" class="svelte-8z1bf5"><path d="M1.1 3.1h22v18h-22z" class="svelte-8z1bf5"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path></mask><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path><path d="m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z" fill="#000" fill-opacity=".12" mask="url(#c)" class="svelte-8z1bf5"></path></g><defs class="svelte-8z1bf5"><clipPath id="a" class="svelte-8z1bf5"><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path></clipPath><filter id="b" x="-3.4" y="-1.4" width="30.8" height="26.802" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" class="svelte-8z1bf5"><feFlood flood-opacity="0" result="BackgroundImageFix" class="svelte-8z1bf5"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" class="svelte-8z1bf5"></feColorMatrix><feOffset class="svelte-8z1bf5"></feOffset><feGaussianBlur stdDeviation="2.5" class="svelte-8z1bf5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0" class="svelte-8z1bf5"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_4085_178456" class="svelte-8z1bf5"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_4085_178456" result="shape" class="svelte-8z1bf5"></feBlend></filter></defs></svg>'),H2=we('<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-icon"><g fill="none" fill-rule="evenodd" class="svelte-8z1bf5"><path class="wave wave1 svelte-8z1bf5" d="M1 18v3h3c0-1.66-1.34-3-3-3z" fill="var(--btn-color, #fff)"></path><path class="wave wave2 svelte-8z1bf5" d="M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z" fill="var(--btn-color, #fff)"></path><path class="wave wave3 svelte-8z1bf5" d="M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z" fill="var(--btn-color, #fff)"></path><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)" class="svelte-8z1bf5"></path><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z" fill="var(--btn-color, #fff)"></path></g></svg>'),U2={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
185
+ svg[data-logo="app_store"] [data-logo="app_store"] {visibility:visible;opacity:1;}`};function lv(t,e){F(e,!0),W(t,vy);let i=h(e,"short",3,!1),o=h(e,"isCyrillic",3,!0),r=h(e,"logo",19,()=>"vk_video"),s="vk-video-logo-icon--short",l=24,d=m(()=>!o()&&!i()?91:i()?l:95),a=m(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?s:"vk-video-logo-icon"),u=m(()=>`0 0 ${n(d)} 24`);av(t,{get width(){return n(d)},height:"24",get viewBox(){return n(u)},get"data-testid"(){return n(a)},get"data-logo"(){return r()}}),U()}function Wd(t,e){F(e,!0);let[i,o]=De(),r=()=>S(y,"$isMobile",i),s=()=>S(p,"$currentGridType$",i),l=()=>S(x,"$isCyrillicRelatedInterface$",i),d=h(e,"ref",15,void 0),a=h(e,"logoClickable",3,!1),u=h(e,"targetUrl",3,""),f=Lt(),v=he(),p=v.ui.currentGridType$,y=v.ui.isMobile,w=v.ui.t,x=v.isCyrillicRelatedInterface$,C=m(()=>f.logoType!=="vk"),T=m(()=>n(C)?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),E=m(()=>(r()&&Is(s(),"m")||Is(s(),"l"))&&n(C)),R=()=>{var O,H;e.click(),(O=v.callbacks)!=null&&O.onLogoClicked?(H=v.callbacks)==null||H.onLogoClicked():u()&&window.open(u(),"_blank")},A=m(()=>!a()),I=m(()=>n(C)?"btn-vk-video-logo":"btn-vk-logo");Ft(t,{className:"btn-full-opacity",get disabled(){return n(A)},click:R,get testId(){return n(I)},get ariaLabel(){return n(T)},get ref(){return d()},set ref(O){d(O)},children:(O,H)=>{var B=He(),z=pe(B);{var Z=q=>{lv(q,{get logo(){return f.logoType},get short(){return n(E)},get isCyrillic(){return l()}})},ae=q=>{sv(q,{})};V(z,q=>{n(C)?q(Z):q(ae,!1)})}b(O,B)},$$slots:{default:!0}}),U(),o()}import{ChromecastState as _y}from"@vkontakte/videoplayer-core/es2018";import{ChromecastState as J1}from"@vkontakte/videoplayer-core/es2018";var my=Ee('<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>'),gy=Ee('<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>'),hy={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
184
186
  animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
185
187
  animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
186
188
  animation-name: svelte-8z1bf5-wave3;}
@@ -228,9 +230,7 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},Jh=tb;var $
228
230
  100% {
229
231
  opacity: 1;
230
232
  }
231
- }`};function Zf(t,e){U(e,!0),K(t,U2);let i=v(e,"isMobile",3,!1),o=g(()=>e.iconState===A1.CONNECTED),n=g(()=>e.iconState===A1.CONNECTING);var s=Fe(),l=fe(s);{var d=p=>{var f=F2(),m=_(f),u=_(m),y=_(u);xe(),h(u);var w=A(u);xe(),h(m);var x=A(m),T=_(x),C=_(T);h(T),xe(),h(x),h(f),D(()=>{He(y,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),He(w,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),He(C,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),$(p,f)},a=p=>{var f=H2();let m;var u=_(f),y=A(_(u),5);let w;h(u),h(f),D((x,T)=>{m=ne(f,0,"svelte-8z1bf5",null,m,x),w=ne(y,0,"svelte-8z1bf5",null,w,T)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),$(p,f)};V(l,p=>{i()?p(d):p(a,!1)})}$(t,s),z()}import{noop as W2}from"@vkontakte/videoplayer-shared/es2018";function xd(t,e){U(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"click",3,W2),l=Ce().ui.t,d=g(()=>e.state===z2.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Rt(t,{get ariaLabel(){return r(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(a){i(a)},children:(a,p)=>{Zf(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),z()}var K2=M('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),q2={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 Xf(t,e){K(t,q2);let i=v(e,"active",3,!1),o=v(e,"pointer",3,!1),n=v(e,"translateXPx",3,0),s=v(e,"translateYPx",3,0),l=v(e,"leftOffset",3,0),d=v(e,"rightOffset",3,0),a=X(void 0),p=X(void 0);function f(T){if(!r(p))return 0;let{width:C}=r(p).getBoundingClientRect(),E=C/2;return T<E?E+l():T>e.containerWidth-E?e.containerWidth-E-d():T}let m=g(()=>f(n()));var u=K2(),y=_(u);let w;var x=_(y);ge(x,()=>{var T;return(T=e.children)!=null?T:ae}),h(y),st(y,T=>O(p,T),()=>r(p)),h(u),st(u,T=>O(a,T),()=>r(a)),D(T=>{at(u,`transform: translate(${r(m)}px, ${s()}px);`),w=ne(y,1,"tooltip svelte-5ygsa2",null,w,T),at(y,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),$(t,u)}var vu=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var P1=t=>!!(Math.round(Math.abs(t)/90)%2),L1=t=>Math.abs(t)/90%4===1;var Q2=M('<div class="preview svelte-1wqg760"></div>'),G2=M('<div class="time svelte-1wqg760"> </div>'),j2=M('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),Y2={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 Jf(t,e){U(e,!0),K(t,Y2);let[i,o]=Be(),n=()=>S(w,"$rotateAlpha",i),s=()=>S(x,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=v(e,"time",3,""),a=v(e,"isMobile",3,!1),p=v(e,"videoEpisodes",19,()=>[]),f=v(e,"progress",3,0),m=v(e,"duration",3,0),u=v(e,"isInteractive",3,!1),y=Ce(),w=y.ui.rotateAlpha,x=y.ui.playerSize,T=X(0),C=X(0),E=X(""),R=X(0),I=X(0),k=X(0),B=X(0),F=g(()=>vu(f(),m(),p())),H=g(()=>P1(n())),W=g(()=>L1(n())),Y=g(he),oe=g(()=>(r(W)?1:-1)*(r(T)/2-r(C)/2)),G=g(()=>r(oe)*-1);qe(()=>{(Q=>{O(T,Q.width,!0),O(C,Q.height,!0)})(pe())}),qe(()=>{(Q=>{O(E,Q.imgSrc,!0),O(R,Q.imgWidth,!0),O(I,Q.imgHeight,!0),O(k,Q.imgOffsetX,!0),O(B,Q.imgOffsetY,!0)})(me(f()))});function he(){var Je;let Q=a()?l.MOBILE:l.DESKTOP,{isVertical:te}=J(),Re=30;return(Je=r(F))!=null&&Je.text&&(Re+=16),(te||r(H))&&(Re+=18,Re+=50),Math.min(Math.max(s().height-Re,0),Q)}function J(){let Q=e.previewThumbsData.frameWidth,te=e.previewThumbsData.frameHeight,Re=te>Q;return{width:Q,height:te,isHorizontal:!Re,isVertical:Re}}function pe(){let{height:Q,isHorizontal:te,isVertical:Re,width:Je}=J();return te&&(Q=Q/Je*r(Y),Je=r(Y)),Re&&(Je=Je/Q*r(Y),Q=r(Y)),{width:Je,height:Q}}function me(Q){let te;e.previewThumbsData.isUV?te=Math.floor(m()*Q/e.previewThumbsData.frequency):te=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*Q)));let Re=Math.floor(te/e.previewThumbsData.countPerImage),Je=Math.floor(te%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),ye=te%e.previewThumbsData.countPerRow,ee=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Re===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(ee=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&ee++);let Se=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Re===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Se=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Te=r(T)*Se,Ke=r(C)*ee,tt=-ye*r(T),pt=-Je*r(C);return{imgSrc:e.previewThumbsData.links[Re],imgWidth:Te,imgHeight:Ke,imgOffsetX:tt,imgOffsetY:pt}}var ue=j2();let Le;var Me=_(ue);{var le=Q=>{var te=Q2();D(()=>at(te,`width: ${r(T)}px; height: ${r(C)}px; background-image: url(${r(E)}); background-size: ${r(R)}px ${r(I)}px; background-position: ${r(k)}px ${r(B)}px;
232
- transform: rotate(${n()}deg) ${r(H)?`translate(${r(oe)}px, ${r(G)}px)`:""};
233
- `)),$(Q,te)};V(Me,Q=>{r(E)&&Q(le)})}var Ne=A(Me,2),re=_(Ne);{var P=Q=>{var te=Fe(),Re=fe(te);{var Je=ee=>{var Se=rs();D(Te=>ve(Se,Te),[()=>q("tooltip_episode_unfinished")]),$(ee,Se)},ye=ee=>{var Se=rs();D(()=>ve(Se,r(F).text||"")),$(ee,Se)};V(Re,ee=>{u()&&r(F).completed===!1?ee(Je):ee(ye,!1)})}$(Q,te)};V(re,Q=>{r(F)&&Q(P)})}h(Ne);var ot=A(Ne,2);{var Oe=Q=>{var te=G2(),Re=_(te,!0);h(te),D(()=>ve(Re,d())),$(Q,te)};V(ot,Q=>{u()||Q(Oe)})}h(ue),D(Q=>{Le=ne(ue,1,"timeline-preview svelte-1wqg760",null,Le,Q),at(ue,`width: ${r(H)?r(C):r(T)}px;`)},[()=>({mobile:a()})]),$(t,ue),z(),o()}var Z2=M('<span class="time svelte-1jr6obn"> </span>'),X2=M("<!> <!>",1),J2={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 em(t,e){var de,Qe,Ue,ce,De;U(e,!0),K(t,J2);let[i,o]=Be(),n=()=>S(oe,"$interactiveEpisodes$",i),s=()=>S(k,"$duration$",i),l=()=>S(I,"$position$",i),d=()=>S(J,"$isInteractiveExpectation$",i),a=()=>S(he,"$isInteractiveTime$",i),p=()=>S(B,"$isLive$",i),f=()=>S(H,"$isMobile",i),m=()=>S(F,"$isActiveLive$",i),u=()=>S(R,"$bufferedProgress$",i),y=()=>S(ue,"$disabledControls$",i),w=v(e,"showTimeline",3,!1),x=v(e,"withEpisodes",3,!0),T=v(e,"ref",15,void 0),C=Ce(),E=Tt(),R=C.state.bufferedProgress$,I=C.state.positionWithScrubbing$,k=C.state.duration$,B=C.state.isLive$,F=C.state.isActiveLive$,H=C.ui.isMobile,W=E.features.episodes&&x()?C.actions.internal.getVideoEpisodes():void 0,Y=C.actions.internal.getPreviewThumbsData(),oe=C.state.interactiveEpisodes$,G=C.state.isInteractive,he=C.state.isInteractiveTime$,J=C.state.isInteractiveExpectation$,pe=C.actions.internal.correctSeekTimeToInteractive,me=(de=C.callbacks)==null?void 0:de.onDisabledTimelineClick,ue=C.ui.controls.disabledControls$,Le=(Ue=(Qe=C.callbacks)==null?void 0:Qe.uiInfo)==null?void 0:Ue.onTimelineMouseEnter,Me=(De=(ce=C.callbacks)==null?void 0:ce.uiInfo)==null?void 0:De.onTimelineMouseLeave,le=C.ui.t,Ne=E.features.interactiveResponsiveUi,re=g(()=>G?n():W),P=g(()=>mn(s())),ot=g(()=>mn(l())),Oe=g(()=>l()/s()),Q=g(()=>d()||a()),te=X(!1),Re=X(""),Je=X(0),ye=X(0),ee=X(0),Se=g(()=>({containerWidth:r(ye),translateXPx:r(Je),translateYPx:G&&Y?-36:-16,active:r(te)&&w()&&!r(Q)&&!Ne,pointer:!E.features.timelinePreview||!Y||p()})),Te=le("aria_timeline"),Ke=g(()=>le("aria_timeline_value",{position:r(ot),duration:r(P)}));function tt(be){return!pe||!G?be:pe(be*s())/s()}function pt(be){C.actions.internal.startScrubbing(tt(be))}function lt(be){a()||C.actions.internal.progressScrubbing(tt(be))}function mt(be){C.actions.internal.completeScrubbing(tt(be)),O(te,!1)}function it(be,Ze,At){Qt(be,Ze,At),O(te,!0)}function Dt(be,Ze,At){Qt(be,Ze,At),O(te,!0)}function Wt(){O(te,!1)}function Qt(be,Ze,At){O(ee,tt(be),!0),O(Je,Ze,!0),At&&O(ye,At,!0),O(Re,Kt(be),!0)}function Kt(be){let Ze=mn((p()?1-be:be)*s());return p()?`-${Ze}`:Ze}var ke=X2(),qt=fe(ke);Xf(qt,bs(()=>r(Se),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(be,Ze)=>{var At=Fe(),bt=fe(At);{var Lt=Yt=>{Jf(Yt,{get time(){return r(Re)},get isMobile(){return f()},get videoEpisodes(){return r(re)},get previewThumbsData(){return Y},get progress(){return r(ee)},get duration(){return s()},get isInteractive(){return G}})},vi=Yt=>{var gi=Z2(),Ti=_(gi,!0);h(gi),D(()=>ve(Ti,r(Re))),$(Yt,gi)};V(bt,Yt=>{E.features.timelinePreview&&Y&&!p()?Yt(Lt):Yt(vi,!1)})}$(be,At)},$$slots:{default:!0}}));var _e=A(qt,2);let Ee=g(()=>y().has("TIMELINE"));ba(_e,{className:"timeline-slider",get isActiveLive(){return m()},get isMobile(){return f()},get ariaLabel(){return Te},ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return l()},get ariaValueText(){return r(Ke)},get loadedProgress(){return u()},get filledProgress(){return r(Oe)},get handleProgress(){return r(Oe)},get videoEpisodes(){return r(re)},onPointerDown:pt,onHandleMove:lt,onPointerMove:Dt,onPointerUp:mt,onPointerEnter:it,onPointerLeave:Wt,get onMouseEnter(){return Le},get onMouseLeave(){return Me},get onDisabledClick(){return me},get isInteractive(){return G},get disabled(){return r(Ee)},get hideHandel(){return a()},testId:"progress_bar",onContextMenu:mt,get ref(){return T()},set ref(be){T(be)}}),$(t,ke),z(),o()}var ey={hash:"svelte-1yate8h",code:".timeline-ads-slider {--slider-bg: var(--timeline-slider-bg);--slider-filled-bg: var(--timeline-slider-filled-bg);--slider-handle-bg: var(--timeline-slider-handle-bg);--slider-loaded-bg: var(--timeline-slider-loaded-bg);}"};function wd(t,e){U(e,!0),K(t,ey);let[i,o]=Be(),n=()=>S(a,"$isMobile",i),s=v(e,"position",3,0),l=v(e,"duration",3,0),d=Ce(),a=d.ui.isMobile,p=d.ui.t,f=g(()=>mn(l())),m=g(()=>mn(s())),u=g(()=>s()/l()),y=g(()=>p("aria_timeline_value",{position:r(m),duration:r(f)})),w=g(()=>Math.round(r(u)*100));ba(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return r(w)},get ariaValueText(){return r(y)},get filledProgress(){return r(u)},hideHandel:!0,get squareBorders(){return n()}}),z(),o()}var ty=M("<div><!></div>"),iy=M("<div></div>"),oy={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 $a(t,e){U(e,!0),K(t,oy);let[i,o]=Be(),n=()=>S(T,"$isLive$",i),s=()=>S(R,"$isMobile",i),l=()=>S(I,"$disabled",i),d=()=>S(E,"$adPosition",i),a=()=>S(C,"$adDuration",i),p=v(e,"isAds",3,!1),f=v(e,"isHidden",3,!1),m=v(e,"timelineNotAvailable",3,!1),u=v(e,"needPadding",3,!0),y=v(e,"ref",15,void 0),w=Ce(),x=Tt(),T=w.state.isLive$,C=w.ads.duration,E=w.ads.position,R=w.ui.isMobile,I=se(!1),k=g(()=>!m()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||p()));var B=Fe(),F=fe(B);{var H=Y=>{var oe=ty();let G;var he=_(oe);{var J=me=>{wd(me,{get position(){return d()},get duration(){return a()}})},pe=me=>{em(me,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return r(k)},get withEpisodes(){return e.withEpisodes},get ref(){return y()},set ref(ue){y(ue)}})};V(he,me=>{p()?me(J):me(pe,!1)})}h(oe),_s(oe,()=>nl(f()&&x.features.usePerformanceFix,I,x.disableInvisibleComponentsTimeout)),D(me=>G=ne(oe,1,"timeline svelte-41cp6d",null,G,me),[()=>({withoutPadding:!u(),mobile:s(),"out-of-flow":l()})]),$(Y,oe)},W=Y=>{var oe=iy();let G;D(he=>G=ne(oe,1,"timeline-stub svelte-41cp6d",null,G,he),[()=>({mobile:s()})]),$(Y,oe)};V(F,Y=>{r(k)?Y(H):Y(W,!1)})}$(t,B),z(),o()}import{noop as sy}from"@vkontakte/videoplayer-shared/es2018";var ny=we('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"></path></svg>');function tm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=ny();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 s;return(s=e.children)!=null?s:ae}),xe(3),h(o),$(t,o)}var ry=we('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708" clip-rule="evenodd" opacity=".7"></path></svg>');function im(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=ry();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 s;return(s=e.children)!=null?s:ae}),xe(),h(o),$(t,o)}var ay=M('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),ly=M('<span class="text svelte-1yhs2ga"> </span>'),dy=M('<span class="text count svelte-1yhs2ga"> </span>'),cy=M("<!> <!>",1),uy={hash:"svelte-1yhs2ga",code:".text.svelte-1yhs2ga {padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.text.count.svelte-1yhs2ga {overflow:visible;}.text.mobile.svelte-1yhs2ga {padding:0 3px 0 4px;}.chevron-episodes.svelte-1yhs2ga {margin-bottom:-4px;}"};function Sd(t,e){var J,pe,me;U(e,!0),K(t,uy);let[i,o]=Be(),n=()=>S(w,"$currentGridType$",i),s=()=>S(x,"$openedByKeyboard$",i),l=()=>S(T,"$panelOpened$",i),d=()=>S(C,"$isMobile",i),a=v(e,"position",3,0),p=v(e,"duration",3,0),f=v(e,"timeCodes",19,()=>[]),m=Ce(),u=(pe=(J=m.callbacks)==null?void 0:J.onEpisodeChanged)!=null?pe:sy,y=!!((me=m.callbacks)!=null&&me.onEpisodeClicked),w=m.ui.currentGridType$,x=m.ui.episodes.openedByKeyboard$,T=m.ui.episodes.panelOpened$,C=m.ui.isMobile,E=m.ui.t,R=X(void 0),I=ue=>{var Me,le,Ne;if(!!((Me=m.callbacks)!=null&&Me.onEpisodeClicked)){let re=zs(ue);x.set(re),T.set(!0),(Ne=(le=m.callbacks)==null?void 0:le.onEpisodeClicked)==null||Ne.call(le,re)}},k=X(null),B=g(()=>a()/p());qe(()=>{var Le;let ue=vu(r(B),p(),f());ue?((Le=r(k))==null?void 0:Le.time)!==ue.time&&(u(ue),O(k,ue,!0)):O(k,null)});let F=g(()=>{var ue;return((ue=r(k))==null?void 0:ue.text)||""}),H=g(()=>Gi(n(),"xl")?"FULL":Gi(n(),"m")&&E1(n(),"xl")?"COUNT":"SHORT"),W=g(()=>`${E("tooltip_episodes")}: ${r(F)}`),Y=async(ue,Le,Me)=>{await bo(),(ue==null?void 0:ue.getAttribute("aria-expanded"))==="false"&&Le&&!Me&&xt(()=>{x.set(!1),ue.focus()})};qe(()=>{Y(r(R),s(),l())});var oe=Fe(),G=fe(oe);{var he=ue=>{let Le=g(()=>d()?"px-0":""),Me=g(()=>!y);Rt(ue,{get className(){var le;return`w-max btn-full-opacity btn-jc-l ${(le=r(Le))!=null?le:""}`},testId:"btn-episodes",click:I,get disabled(){return r(Me)},get ariaExpanded(){return l()},get ariaLabel(){return r(W)},get ref(){return r(R)},set ref(le){O(R,le,!0)},children:(le,Ne)=>{var re=Fe(),P=fe(re);{var ot=Q=>{var te=ay(),Re=fe(te),Je=_(Re,!0);h(Re);var ye=A(Re,2),ee=_(ye);im(ee,{}),h(ye),D(()=>ve(Je,r(F))),$(Q,te)},Oe=Q=>{var te=cy(),Re=fe(te);tm(Re,{});var Je=A(Re,2);{var ye=Se=>{var Te=ly(),Ke=_(Te,!0);h(Te),D(()=>ve(Ke,r(F))),$(Se,Te)},ee=(Se,Te)=>{{var Ke=tt=>{var pt=dy(),lt=_(pt,!0);h(pt),D(()=>ve(lt,f().length)),$(tt,pt)};V(Se,tt=>{r(H)==="COUNT"&&tt(Ke)},Te)}};V(Je,Se=>{r(H)==="FULL"?Se(ye):Se(ee,!1)})}$(Q,te)};V(P,Q=>{d()?Q(ot):Q(Oe,!1)})}$(le,re)},$$slots:{default:!0}})};V(G,ue=>{r(k)&&ue(he)})}$(t,oe),z(),o()}import{debounceFn as K1}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as $y,PlaybackState as Td,Player as yy,PredefinedQualityLimits as ds,VideoFormat as Ed,clientChecker as B1}from"@vkontakte/videoplayer-core/es2018";import{assertNonNullable as ar,getHighestQuality as xy,InterfaceLanguage as wy,isInvariantQuality as Sy,isNonNullable as Cy,loadVKLangPack as Ty,Logger as Ey,map as D1,merge as Iy,Observable as wu,Subject as Su,Subscription as lm,TracerFactory as ky,ValueSubject as Ay,VideoQuality as Py,devNull as Ly,now as My,filter as Vy,once as Ry}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as Ss}from"@vkontakte/videoplayer-statistics/es2018";import{detectEmbed as py,devNull as Gt,isNonNullable as fy,now as jt}from"@vkontakte/videoplayer-shared/es2018";import{addScript as my,Subject as en,clearVideoElement as vy}from"@vkontakte/videoplayer-shared/es2018";var gy="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",gu=class{constructor(e,i){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new en,loadStarted$:new en,loadEnded$:new en,loadError$:new en,ready$:new en,slotRequested$:new en,started$:new en,timeRemained$:new en,paused$:new en,resumed$:new en,ended$:new en,empty$:new en,skipped$:new en,clicked$:new en,closed$:new en,error$:new en};this.loadAdman=e=>(Gt.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 s=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[jt()]}),i(),this.events.loadEnded$.next()):(Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[jt()]}),o())};my(gy,e,this.loadTimeout).then(()=>{Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[jt()]}),window.AdmanHTML?(Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[jt()]}),i(),this.events.loadEnded$.next()):(Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[jt()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout))}).catch(l=>{Gt.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 s=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[jt()]}),i(),this.events.loadEnded$.next()):(Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[jt()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[jt()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Gt.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(()=>{Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[jt()]}),!d&&(window.AdmanHTML?(Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[jt()]}),i(),this.events.loadEnded$.next()):(Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[jt()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout)))},l).finally(()=>{clearTimeout(n),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Gt.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)=>{var o;Gt.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(),(o=this.externalApi)!=null&&o.videoTrackAdEvent&&this.safeExternalCall(this.externalApi.videoTrackAdEvent,e,String(i.bannerID))):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{var o;((o=this.adsState)!=null&&o.playbackState?$e(this.adsState.playbackState):void 0)!=="inactive"&&(this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized"))};this.onAdPaused=()=>{var e;Gt.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;Gt.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(Gt.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;Gt.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;Gt.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;Gt.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.currentAdSection==="postroll"&&this.setPostrollPassed(!0)):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[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")=>{Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[jt()]}),this.log({message:e}),this.events.error$.next(e),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Gt.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")}async initAdman(e){var R,I;if(Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[jt(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isAutoplay:n,adsContainer:s,adsVideoElement:l,slotId:d,params:a={},paramsOverride:p={},duration:f,externalApi:m}=e;this.externalApi=m;let u,y=this.playerState&&$e(this.playerState.vsid);y&&(this.isVsidOriginal?u=y:u=parseInt(y,36));let{isEmbed:w,immediateOrigin:x}=py(),T=(R=w?x:window.location.href)!=null?R:window.location.href,C={...a,dl:encodeURIComponent(T),autoplay:n?1:0,player_width:i,player_height:o,...u?{request_id:u}:{},duration:f,...p};C=Object.fromEntries(Object.entries(C).filter(([k,B])=>fy(B)));let E={slot:d,wrapper:s,videoEl:l,videoQuality:o,params:C,browser:{mobile:!1}};try{let k=new window.AdmanHTML;if(k.onReady(this.onAdsReady),k.onStarted(this.onAdStarted),k.onPlayed(this.onAdPlayed),k.onPaused(this.onAdPaused),k.adMidrollPoint(this.onAdMidrollPoint),k.onClosed(this.onAdClosed),k.onSkipped(this.onAdSkipped),k.onClicked(this.onAdClicked),k.onTimeRemained(this.onAdTimeRemained),k.onCompleted(this.onAdCompleted),k.onError(this.onAdError),k.setDebug(!1),(I=this.externalApi)!=null&&I.videoGetAds){let B=await this.safeExternalCall(this.externalApi.videoGetAds,C);B&&(delete E.slot,delete E.params,Object.assign(E,{json:B}))}k.init(E),this.adman=k,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(E)}`})}catch(k){Gt.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,s;if(Gt.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}`});else{let l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(s=(n=this.actions).switchFromAdsToVideo)==null||s.call(n,!i)}}setPostrollPassed(e){var i;(i=this.adsState)==null||i.postrollPassed.set(e),this.log({message:"postroll passed"})}togglePlay(){var e;if(Gt.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(Gt.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(Gt.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(){this.watchDogTimeout&&this.stopWatchDog(),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Gt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[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(Gt.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(Gt.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,s,l,d,a,p,f,m,u;Gt.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),(s=this.adman)==null||s.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(a=this.adman)==null||a.onClicked(void 0),(p=this.adman)==null||p.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(m=this.adman)==null||m.onError(void 0),(u=this.adman)==null||u.destroy(),this.videoElement&&vy(this.videoElement),this.isDestroyed=!0}async safeExternalCall(e,...i){var o;try{return await e(...i)}catch(n){return this.onAdError((o=n==null?void 0:n.message)!=null?o:"External call failed"),null}}};var M1=t=>{let e=Math.round(t);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var om=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],n=e.split(this.twoLinesRegExp);for(let s of n){let l={startTime:0,endTime:0,texts:[],lang:i},d=s.split(this.oneLineRegExp);for(let a of d)if(!l.startTime&&!l.endTime){let p=new hu,{startTime:f,endTime:m}=p.parse(a);l.startTime=f,l.endTime=m}else if(a.trim()!==""){let p=new nm,{texts:f}=p.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},hu=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",n="0"){let s=Number(e)*60*60,l=Number(i)*60,d=Number(o),a=+`0.${n}`;return s+l+d+a}},nm=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,a=[];for(;d<l.length;){let p=["<",">"].reduce((f,m)=>{let u=l.indexOf(m,d);return f===-1||f>u?u:f},-1);if(p===-1){a.push(l.substring(d));break}a.push(l.substring(d,p)),d=p+1}return a}}),s=new hu;for(let l of n)s.isTime(l)?i.texts.push({type:"timestamp",value:s.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},V1=om;import{isNonNullable as rm}from"@vkontakte/videoplayer-shared/es2018";var ya,Pi,sm=0,am=!1,R1="",N1=(t,e=0,i=0)=>t<e&&t<i,_u=(t,e=0,i=0)=>t>=e&&t<=i,hy=(t,e=0,i=0)=>t>e&&t>i,O1=(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})=>_u(t,p,f));let s=t>=sm,l=t<sm;if(sm=t,l&&(am=!1),rm(ya)&&_u(t,ya.startTime,ya.endTime)&&R1===e.value)return ya;if(!rm(Pi)&&(n!=null&&n.length)&&!am){Pi=n.find(({startTime:p,endTime:f})=>_u(t,p,f)||s&&N1(t,p,f)),ya=void 0,!rm(Pi)&&n[n.length-1].endTime<t&&(am=!0);return}else{if(_u(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime))return ya=Pi,Pi=void 0,R1=e.value,ya;(s&&hy(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime)||l&&N1(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime))&&(Pi=void 0)}};var bu={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"},_y={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"},Cd=t=>{var e,i;return(i=(e=bu[t])!=null?e:bu[_y[t]])!=null?i:void 0};import{Subscription as by}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-statistics/es2018";var $u=class{constructor(e,i,o,n=new by){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 yu=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(yu||{});var ls=t=>t!=null?t:0,ws=(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(ls(i==null?void 0:i.top)-ls(o==null?void 0:o.top)),left:Math.round(ls(i==null?void 0:i.left)-ls(o==null?void 0:o.left)),bottom:Math.round(ls(i==null?void 0:i.bottom)-ls(o==null?void 0:o.top)),right:Math.round(ls(i==null?void 0:i.right)-ls(o==null?void 0:o.left))}},ul=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:ls(e==null?void 0:e.width),height:ls(e==null?void 0:e.height)}};var xu="off";var F1=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:s,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:p,videoEpisodes:f,previewThumbsData:m,uiConfig:u,coreConfig:y,player:w,disabledControls:x,isInteractive:T,interactiveRanges$:C,isInteractiveTime$:E,replayInteractive:R,stopPlayer:I,hasInteractiveBranches:k,playPrevChapterDisabledTooltip:B,additionalButtons:F,additionalSettingsMenuItems:H,additionalContextMenuItems:W,playPrevVideo:Y,playNextVideo:oe,onVideoChanged:G,looped:he=!1,statistics:J,saveRate:pe,internalsExposure:me,playerView:ue,playerId:Le})=>{var Pv,Lv,Mv;let Me={...y,configName:[...(Pv=y.configName)!=null?Pv:[],"ui"],isAudioDisabled:l,live:{...(Lv=y.live)!=null?Lv:{},isLiveCatchUpMode:!!n}},le=u,Ne=ky.createRootTracer(le.features.tracer),re=Ne.createComponentTracer("Store"),P=w||new yy(Me,Ne,{playerId:Le});me==null||me.expose({corePlayer:P});let ot=new Ey,Oe=new gu(ot,{loadTimeout:le.ads.loadTimeout,initTimeout:le.ads.initTimeout,runtimeTimeout:le.ads.runtimeTimeout,useAdmanFromNPM:le.ads.useAdmanFromNPM,volumeMultiplier:le.ads.volumeMultiplier,isVsidOriginal:le.ads.isVsidOriginal}),Q=ca.getInstance(),te=p==null?void 0:p.pictureInPictureApi,Re=p==null?void 0:p.annotationsApi,Je=p==null?void 0:p.slotsApi,ye=ot.createComponentLog("Store"),ee,Se,Te={},Ke=new Wc,tt=new lm,pt="",lt=se(!1),mt=J&&J.oneStat?Xt(J.oneStat.vsid$):Cr(void 0),it=se(Fs()),Dt=se(!1),Wt=()=>r1(document,B1.device.isIOS),Qt=(Mv=te==null?void 0:te.info.isActive$)!=null?Mv:new Ay(!1),Kt=se(0),ke=se(!1),qt=se(!1),_e=se([]),Ee=Iy(P.events.fatalError$,P.events.managedError$).subscribe(c=>_e.update(b=>[...b,c])),de=Cr(!1,c=>{let b=P.events.fatalError$.subscribe(()=>c(!0));return()=>b.unsubscribe()}),Qe=async c=>{var ie;let b=Object.values(wy).includes(c);if(le.downloadVKLanguages&&(b&&le.updateBuiltinLanguages||!ff(c))){let Ae;try{Ae=await Ty(c,bh,$h)}catch(nt){(ie=J==null?void 0:J.oneStat)==null||ie.logError({errorType:"VKLangPack",fatal:!1}),Q==null||Q.report(nt,{errorType:"VKLangPack",fatal:!1})}Ae&&(pf({language:c,pack:Ae,fallback:le.defaultLanguage}),Ue.set(c))}ff(c)&&Ue.set(c)},Ue=se(t),ce=se(e);Qe(t);let De=(c,b)=>{let L=$e(Ue);return mf(L,c,b,le.defaultLanguage)},be=se("thumb");be.subscribe(c=>{c==="ads"&&P.info.playbackState$.getValue()&&bt()});let Ze=(()=>{let c=mi([de,be],([b,L])=>b?"crashed":L);return{...c,is:b=>$e(c)===b}})(),At=se(),bt=()=>{At.set({muted:P.info.muted$.getValue()})},Lt=(()=>{let c=se(new Set(x));return{...c,add:b=>{c.update(L=>new Set([...L].concat(b)))},remove:b=>{c.update(L=>{let ie=[...L];return new Set(Array.isArray(b)?ie.filter(Ae=>!b.includes(Ae)):ie.filter(Ae=>Ae!==b))})},includes:b=>{let L=$e(c);return Array.isArray(b)?b.every(ie=>L.has(ie)):L.has(b)}}})(),vi=se({width:0,height:0}),Yt=null,gi=P.info.isBuffering$,Ti=Cr(gi.getValue(),c=>{let b=gi.subscribe(L=>{L&&Yt===null?Yt=window.setTimeout(()=>{c(gi.getValue()),Yt=null},le.loaderDelay):c(L)});return()=>{b.unsubscribe(),Yt&&clearTimeout(Yt)}});re.log("create store"),ye({message:"create store"});let co=c=>{let b=c.container,L=()=>{xi=new MutationObserver(Ae=>{let{removedNodes:nt}=Ae[0];nt.length&&b.append(P.experimental.element$.getValue())}),xi.observe(b,{childList:!0})},ie=P.experimental.element$.getValue();if(ie)b.append(ie),L();else{let Ae=P.experimental.element$.pipe(Vy(nt=>!!nt),Ry()).subscribe(nt=>{b.append(nt),L()});tt.add(Ae)}},uo=c=>{ye({message:`init video, config: ${JSON.stringify(c)}`}),T?co(c):(Ly.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[My()]}),P.initVideo(c)),re.log("init video",{isInteractive:T}),c.subtitles&&P.setExternalTextTracks(c.subtitles),ee=c,pt=c.subtitlesForcedLanguage||""},wt=new Su,Jt=c=>wt.next(c),ni=new Su,ze=new Su,It=new Su,xi=null,Wi={actionRewind$:ni,actionSeek$:ze,inPiP$:Qt,inFullscreen$:new wu(c=>it.subscribe(b=>c.next(b))),actionSetSubtitle$:It,nextMovie$:wt},po={actionSeek$:ze,playerSize$:new wu(c=>vi.subscribe(b=>c.next(b))),inPiP$:Qt,inFullscreen$:new wu(c=>it.subscribe(b=>c.next(b))),isLoaderVisible$:new wu(c=>Ti.subscribe(b=>c.next(b)))};if(J){let{oneStat:c,thinOneStat:b,mediascopePixel:L,statSubscription:ie}=J;c&&(T||ie.add(c.attachTo(P)),ie.add(c.attachToUi(Wi)),ie.add(c.attachToAds(Oe.events)),c.authorize(s).catch(Ae=>{ye({message:`onestat auth error ${String(Ae)}`})}),L&&L.attachTo(P)),b&&(ie.add(b.attachTo(P,Oe.events)),ie.add(b.attachToUi(po)),ie.add(b.attachToAds(Oe.events)),b.updateContext({isMobile:$e(lt)}),b.authorize(s))}if(Q){let c=new lm,b=(L,ie)=>c.add(L.subscribe(ie));if(b(P.events.managedError$,L=>{Q.logIError(L)}),b(P.events.fatalError$,L=>{Q.logIError(L,!0)}),J){let{oneStat:L}=J;L&&b(L.experimental.error$,ie=>{Q.logIError(ie)})}Q.sentrySubscription.add(c)}let $t=()=>{if(B1.device.isIOS&&Se)try{s1(Se)}catch(c){ye({message:`exitIosSafariFullscreen failed: ${c}`})}};tt.add(P.experimental.element$.subscribe(c=>{c&&(Se=c,c.classList.add("player-media"),pa(te)&&te.updateVideoElement(),T&&c.setAttribute("pip","false"),ue==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(P.events.ended$.subscribe(()=>{var c;$t(),(c=a==null?void 0:a.onEnded)==null||c.call(a)})).add(P.events.looped$.subscribe(()=>{var c;(c=a==null?void 0:a.onLooped)==null||c.call(a)})).add(P.events.started$.subscribe(async()=>{var b,L;pa(te)&&await(te==null?void 0:te.revealPictureInPicture());let c=P.info.muted$.getValue();(b=a==null?void 0:a.onStarted)==null||b.call(a),(L=Te.onStarted)==null||L.call(Te,c)})).add(P.events.willSeek$.subscribe(({from:c,to:b})=>{var L;(L=a==null?void 0:a.onSeek)==null||L.call(a,c,b)})).add(P.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=a==null?void 0:a.onAutoplaySoundProhibited)==null||c.call(a)})).add(P.info.position$.subscribe(c=>{var L;let b=P.info.duration$.getValue();isFinite(b)&&b>0&&((L=a==null?void 0:a.onTimeupdate)==null||L.call(a,b,c),Oe.setPosition(c,b))})).add(P.events.fatalError$.subscribe(c=>{var b;(b=a==null?void 0:a.onCrashed)==null||b.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(P.events.fetcherRecoverableError$.subscribe(c=>{var b;(b=a==null?void 0:a.onRecoverableError)==null||b.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(P.events.loadedMetadata$.subscribe(()=>{ke.set(!0)})).add(P.info.is3DVideo$.subscribe(c=>{qt.set(c)})).add(P.info.isEnded$.subscribe(c=>{T&&(c?(E!=null&&E.getValue()&&Lt.add(Xl),Lt.add("PLAY_BUTTON")):Lt.remove("PLAY_BUTTON"))})).add(P.info.liveTime$.subscribe(c=>{var b;(b=a==null?void 0:a.onLiveTime)==null||b.call(a,c)})).add(P.info.isStalled$.subscribe(c=>{var b;(b=a==null?void 0:a.onStalledChanged)==null||b.call(a,c)})).add(P.info.isLiveEnded$.subscribe(c=>{var b;return c&&((b=a==null?void 0:a.onLiveEnded)==null?void 0:b.call(a))})).add(Oe.events.loadStarted$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:b.call(c)})).add(Oe.events.loadEnded$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:b.call(c)})).add(Oe.events.loadError$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadError)==null?void 0:b.call(c)})).add(Oe.events.init$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onInit)==null?void 0:b.call(c)})).add(Oe.events.ready$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onReady)==null?void 0:b.call(c)})).add(Oe.events.started$.subscribe(c=>{var b,L;return(L=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onStarted)==null?void 0:L.call(b,c)})).add(Oe.events.timeRemained$.subscribe(c=>{var b,L;return(L=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onTimeRemained)==null?void 0:L.call(b,c)})).add(Oe.events.ended$.subscribe(c=>{var b,L;return(L=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onCompleted)==null?void 0:L.call(b,c)})).add(Oe.events.empty$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onEmpty)==null?void 0:b.call(c)})).add(Oe.events.clicked$.subscribe(c=>{var b,L;return(L=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onClicked)==null?void 0:L.call(b,c)})).add(Oe.events.closed$.subscribe(c=>{var b,L;return(L=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onClosed)==null?void 0:L.call(b,c)})).add(Oe.events.error$.subscribe(c=>{var b,L;return(L=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onError)==null?void 0:L.call(b,c)})).add(Oe.events.paused$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onPaused)==null?void 0:b.call(c)})).add(Oe.events.resumed$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onResumed)==null?void 0:b.call(c)}));let je=new lm,Li=()=>{var nt,St,Mt;let{debugLog:c}=le,b,L="#9df7b7",ie="#efd169";if(c&&c!==!0){let{colors:Bt}=c;b=c.tag,L=(nt=Bt==null?void 0:Bt[0])!=null?nt:L,ie=(Mt=(St=Bt==null?void 0:Bt[1])!=null?St:Bt==null?void 0:Bt[0])!=null?Mt:ie}let Ae=b?`: ${b}`:"";je.add(P.events.log$.subscribe(Bt=>{console.debug(`%c sdk${Ae} `,`background:${L};`,`sdk component: ${Bt.component}`,Bt.message)})).add(ot.log$.subscribe(Bt=>{console.debug(`%c ui${Ae} `,`background:${ie};`,`ui component: ${Bt.component}.`,Bt.message)}))},xo=()=>{je.unsubscribe()},wo=(c,b)=>{re.log("start camera manual rotation",{mx:c,my:b}),P.startCameraManualRotation(c,b)},on=(c=!1)=>{re.log("stop camera manual rotation",{immediate:c}),P.stopCameraManualRotation(c)},N=(c,b,L)=>{re.log("move camera focus px",{xpx:c,ypx:b,dt:L}),P.moveCameraFocusPX(c,b,L)},et=()=>{P.holdCamera()},Ht=()=>{P.releaseCamera()},Ut=Cr(P.info.position$.getValue(),c=>{let b,L,ie=()=>{let Ae=P.info.playbackState$.getValue(),nt=P.info.isLive$.getValue(),St=P.info.duration$.getValue(),Mt=P.info.position$.getValue();if(Ae&&[Td.PLAYING,Td.PAUSED].includes(Ae)){let Bt=nt?Mt-St:P.getExactTime();Bt!==L&&c(Bt),L=Bt}b=requestAnimationFrame(ie)};return ie(),()=>cancelAnimationFrame(b)}),ft=Xt(P.info.playbackState$),ei=Xt(P.info.currentBuffer$),hi=Xt(P.info.isEnded$),ci=Xt(P.info.isLive$),ht=le.features.playbackRate?Xt(P.info.canChangePlaybackSpeed$):Cr(!1),Ei=Xt(P.info.liveBufferTime$),io=Xt(P.info.volume$),vn=Xt(P.info.muted$),gn=Kc(P.info.predefinedQualityLimitType$.pipe(D1(c=>c===ds.TRAFFIC_SAVING)),P.info.predefinedQualityLimitType$.getValue()===ds.TRAFFIC_SAVING),li=Kc(P.info.predefinedQualityLimitType$.pipe(D1(c=>c===ds.HIGH_QUALITY)),P.info.predefinedQualityLimitType$.getValue()===ds.HIGH_QUALITY),oo=Xt(P.info.autoQualityLimitingAvailable$),lr=Xt(P.info.availableQualities$),no=Xt(P.info.availableQualitiesFps$),Yi=Xt(P.info.chromecastState$),Rn=Xt(P.info.chromecastDeviceName$),Wo=Xt(P.info.currentFormat$),So=Xt(P.info.throughputEstimation$),dr=Xt(P.info.videoBitrate$),Nn=Xt(P.info.intrinsicVideoSize$),cr=Xt(P.info.duration$),cs=Xt(P.info.isAudioAvailable$),Qr=()=>{Yt&&clearTimeout(Yt),Yt=null},hn=mi([cr,ci],([c,b])=>b?-c:c),On=mi([ft],([c])=>c===Td.PLAYING),_n=Xt(P.info.atLiveEdge$),Ko=Xt(P.info.atLiveDurationEdge$),qo=Xt(P.info.position$),Bn=mi([qo,cr],([c,b])=>isFinite(c)&&isFinite(b)&&!!b),ur=mi([Yi],([c])=>c===$y.CONNECTED),Gr=Xt(P.info.availableVideoStreams$),ro=le.features.audioLanguages?Xt(P.info.availableAudioStreams$):Cr([]),Er=Xt(P.info.currentVideoStream$),nn=Xt(P.info.currentAudioStream$),bn=c=>{c.language&&lf(c.language),P.setVideoStream(c)},Dn=(c,b)=>{P.setAudioStream(c),pi(b)&&(c.language&&lf(c.language),le.features.userVideoPrefs&&i&&uf(le.userSalt,String(i),{audioTrackId:c.id}))},pr=c=>{let b;if(c.length===1&&(b=c.at(0)),b!=null||(b=c.find(ie=>"isDefault"in ie&&ie.isDefault)),le.features.userVideoPrefs&&i){let ie=Yc(le.userSalt,String(i));if(ie!=null&&ie.audioTrackId){let Ae=c.find(nt=>nt.id===ie.audioTrackId);b=Ae!=null?Ae:b}}let L=Wh();return L&&(b!=null||(b=c.find(({language:ie})=>L===ie))),b!=null||(b=c.at(0)),b},Fn=c=>{re.log("change audio stream",{id:c});let b=P.info.availableAudioStreams$.getValue().find(L=>L.id===c);b&&Dn(b,!0)},fo=!1;tt.add(P.info.availableAudioStreams$.subscribe(c=>{if(!fo&&c.length){let b=pr(c);b&&(P.setAudioStream(b),fo=!0)}})),ro.subscribe(c=>{var b;(b=a==null?void 0:a.onAvailableAudioStreamsChanged)==null||b.call(a,c.map(({label:L="",id:ie="",language:Ae=""})=>({label:L,language:Ae,id:ie})))}),nn.subscribe(c=>{var b;return c&&((b=a==null?void 0:a.onAudioStreamChanged)==null?void 0:b.call(a,c.id))});let jr=!1;tt.add(P.info.availableVideoStreams$.subscribe(c=>{if(!jr&&c.length){let b=pr(c);b&&(P.setVideoStream(b),jr=!0)}}));let $n=se(void 0),ct=Xt(P.info.isAutoQualityEnabled$,c=>c&&$n.set(void 0)),ri=Xt(P.info.currentQuality$,()=>$n.set(void 0)),rn=mi([$n,ri],([c,b])=>c!=null?c:b),yn=mi(Wo,c=>c!==Ed.MPEG),Ir=mi([lr,no,ct,rn,yn],([c,b,L,ie,Ae])=>{let nt=[];Ae&&nt.push({value:"auto",displayValue:De("auto_quality_option"),selected:L});let St=c.filter(Mt=>!Sy(Mt));for(let Mt of St){let Bt=b[Mt];nt.push({value:Mt,displayValue:`${Mt}${Bt?M1(Bt):""}`,selected:L?!1:Mt===ie})}return nt}),Co=Xt(P.info.currentPlaybackRate$),sn=mi([Co,_n,Ko],([c,b,L])=>{let ie=L||T?1:le.controls.playbackRateMin,Ae=b?1:le.controls.playbackRateMax,nt=le.controls.playbackRateStep,St=[];for(let Mt=ie;Mt<=Ae;Mt+=nt)St.push({value:Mt,displayValue:Mt===1?De("playback_rate_1"):De("playback_rate",{multiplier:Mt.toString(10)}),selected:c===Mt});return St}),di={displayValue:De("subtitles_off"),value:xu,language:""},Ii=se({...di}),To=le.features.subtitles?Xt(P.info.availableTextTracks$):Cr([]),Hn=Vh(),fr=mi([To,Ii],([c,b],L)=>{var nt;let ie=[],Ae=c.find(({id:St})=>St===b.value);if(Ae!=null&&Ae.url){let[,St]=(nt=Hn.find(Ae.url))!=null?nt:[];if(St){L(St);return}Ke.download(Ae.url).then(Mt=>{if(!Mt||Ke.isDestroyed())return;let Bt=new V1,As=Ae.language;if(As){let L0=!!Ae.isAuto,M0=Bt.parse(Mt,As);ie.push({lang:As,subtitles:M0,isAuto:L0,id:Ae.id})}Hn.add(Ae.url,ie),$e(Ii).value===b.value&&L(ie)}).catch(Mt=>{var Bt;(Bt=J==null?void 0:J.oneStat)==null||Bt.logError({errorType:"Subtitles download",fatal:!1}),Q==null||Q.report(Mt,{errorType:"Subtitles download",fatal:!1})})}L(ie)}),kr=mi([Co,On,Ii],([c,b,L],ie)=>{let St;if(P.info.isLive$.getValue()&&b&&L.value!==di.value){let Bt=()=>{let As=1e3/(3*c);St=setTimeout(Bt,As),ie(Date.now())};return Bt(),()=>clearTimeout(St)}}),mr=mi([To,Ii],([c,b])=>{if(!c.length)return[];let L=[];for(let{language:ie,isAuto:Ae,id:nt}of c){let St=ie&&Cd(ie);ie&&St&&L.push({displayValue:Ae?De("subtitles_auto",{language:St}):St,value:nt,selected:(b==null?void 0:b.value)===nt,isAuto:Ae,language:ie})}return L.length?(L.unshift({...di,selected:(b==null?void 0:b.value)===di.value}),L):[]}),Un={available:[],prev:[]},zn=()=>{var b,L;let c=P.experimental.getCurrentTime$.getValue();return(L=(b=c==null?void 0:c())!=null?b:Se==null?void 0:Se.currentTime)!=null?L:0},Eo=mi([Ut,Ii,fr,kr],([c,b,L,ie])=>{var nt;let Ae=P.info.isLive$.getValue();if(Ae&&Un.prev!==L){let St=L.find(({id:Bt})=>Bt===b.value),Mt=Un.prev.find(({id:Bt})=>Bt===b.value);if(St){let Bt={...St,subtitles:[...(nt=Mt==null?void 0:Mt.subtitles)!=null?nt:[],...St.subtitles]};Un.available=[Bt],Un.prev=L}}if(b&&b.value!==di.value){let St=Ae?zn():c,Mt=Ae?Un.available:L;return O1(St,b,Mt,Ae)}}),Wn=mi([Eo],([c])=>c!=null&&c.texts?c.texts:[]);tt.add(Ii.subscribe(c=>{var b,L;if(c.value===di.value)(b=a==null?void 0:a.onSubtitleOff)==null||b.call(a);else{let ie=Object.entries(bu).find(([Ae,nt])=>nt===c.displayValue);(L=a==null?void 0:a.onSubtitleOn)==null||L.call(a,ie?ie[0]:"",c.value)}}));let vr=se(!0),ti=mi([ei,hn,qo,Ei],([c,b,L,ie])=>{var Mt;let Ae=(Mt=c==null?void 0:c.end)!=null?Mt:0;if(!ie)return Ae/b;let St=-L+ie-b;return(Ae-St)/b}),an=Xt(P.info.availableSources$),gr=mi([an],([c])=>Object.keys((c==null?void 0:c[Ed.MPEG])||{}).length>0),xn=()=>{var L,ie,Ae;let c=Object.keys(((ie=(L=P.info.availableSources$)==null?void 0:L.getValue())==null?void 0:ie[Ed.MPEG])||{}),b=xy(c)||Py.Q_144P;return(Ae=ee.sources[Ed.MPEG])==null?void 0:Ae[b]},ut=()=>{var b;let c=xn();if(c)re.log("download video",{url:c}),Ph(c,((b=ee==null?void 0:ee.meta)==null?void 0:b.title)||"video");else{let L="There is no URL for download video";re.log("download video",{message:L}),ye({message:L})}},ii=()=>{ye({message:"toggle muted"});let c=P.info.muted$.getValue();P.info.volume$.getValue()===0&&!c?wn(Xi(),!1):Qo(!c,!1)},Zi=()=>{var c;if(Ot.ui.settingsMenu.visible$.set(!1),!$e(Ot.ui.settingsSubMenu.visible$)){let b=$e(Ot.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&b){let ie=ul(b),Ae={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:ie,position:Ae,name:"settings"})}}re.log("close settings menu")},mo=async(c,b=()=>Promise.resolve())=>{var Ae;Ot.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Ot.ui.settingsMenu.visible$.set(!0),await b();let L=$e(Ot.ui.settingsMenu.ref$),ie=La();if((Ae=a==null?void 0:a.uiInfo)!=null&&Ae.onSettingsMenu&&L&&ie){let St=ul(L),Mt=ws(L,ie);a.uiInfo.onSettingsMenu({visible:!0,size:St,position:Mt,name:"settings"})}re.log("open settings menu",{wasOpenedByKeyboard:c})},ui=(c,b=!1)=>{var nt;Ot.ui.settingsSubMenu.visible$.set(!1);let L=$e(Ot.ui.settingsMenu.ref$),ie=La(),Ae=$e(Ot.ui.settingsMenu.visible$);if((nt=a==null?void 0:a.uiInfo)!=null&&nt.onSettingsMenu&&L&&ie)if(Ae&&!b){let Mt=ul(L),Bt=ws(L,ie);a.uiInfo.onSettingsMenu({visible:!0,size:Mt,position:Bt,name:"settings"})}else{let Mt=ul(c),Bt={top:0,left:0,bottom:0,right:0},As=$e(Ot.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:Mt,position:Bt,name:As})}re.log("close settings sub menu")},Io=(c,b)=>{var ie;Ot.ui.settingsSubMenu.visible$.set(!0),Ot.ui.settingsSubMenu.ref$.set(b),Ot.ui.settingsSubMenu.name$.set(c);let L=La();if((ie=a==null?void 0:a.uiInfo)!=null&&ie.onSettingsMenu&&b&&L){let nt=ul(b),St=ws(b,L);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:nt,position:St})}re.log("open settings sub menu",{name:c})},Xi=()=>{var b;let c=Math.max(le.volumeMinRestore,(b=qc())!=null?b:0);return c===0?le.volumeDefault:c},pi=c=>{let b=le.features.savePreferredStatesOnUserActionOnly;return!b||b&&!c},wn=(c,b)=>{let L=c===0?Xi():c,ie=P.info.muted$.getValue();ye({message:`set volume, volume: ${c}, preferredVolume: ${L}`});let Ae=!l||Ze.is("ads");ie&&c>0&&Ae&&(ie=!1,pi(b)&&sf(!1)),P.setVolume(c,ie),Oe.setVolume(c),pi(b)&&ef(L)},Qo=(c,b)=>{let L=P.info.volume$.getValue();ye({message:`set muted, currentVolume: ${L}, mute: ${c}`});let ie=Ze.is("ads");if(P.setMuted(c,ie),Oe.setVolume(c?0:L),pi(b)&&(!ie||!c)&&sf(c),!c&&L===0){let Ae=Xi();P.setVolume(Ae),pi(b)&&ef(Ae),Oe.setVolume(Ae)}},hr=se(!1),Ar=c=>{var b,L;re.log("set looped",{isLooped:c}),hr.set(c),P.setLooped(c),(L=(b=a==null?void 0:a.uiInfo)==null?void 0:b.onLoopedChanged)==null||L.call(b,c)};Ar(he);let Go=()=>{var c,b;(b=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||b.call(c)},Pr=(c,b=!1)=>{var L;ye({message:`set autoplayNextEnabled, value: ${c}`}),re.log("set autoplay next enabled",{autoplayNextEnabled:c}),Ot.ui.autoplayNextEnabled$.set(c),Qh(c),b&&((L=a==null?void 0:a.onSetAutoplayNextEnabled)==null||L.call(a,c))},Lr=c=>{ye({message:`set timerNextVideoRunning, value: ${c}`}),re.log("set timer next video running",{timerNextVideoRunning:c}),Ot.ui.timerNextVideoRunning$.set(c)},ko=(c=!0)=>{var L;let b=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{b=(L=a==null?void 0:a.onPrevVideoClick)==null?void 0:L.call(a)}catch(ie){ye({message:"onPrevVideoClick callback failed to execute"})}G(!0),b&&Y()},Kn=(c=!0)=>{var L;let b=!0;if(c&&(a!=null&&a.onNextVideoClick))try{b=(L=a==null?void 0:a.onNextVideoClick)==null?void 0:L.call(a)}catch(ie){ye({message:"onNextVideoClick callback failed to execute"})}G(!1),b&&oe()},Mr=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},qn=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},rt=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},kt=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},_i=()=>{P.prepare()},so=()=>{ar(Ot);let c=$e(Ot.ui.controls.disabledControls$),b=$e(Ot.playerPhase),L={playerPhase:b,isInteractive:T,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(ye({message:"toggle play"}),b==="ads"){L.action="play",re.log("toggle adman play",L),Oe.togglePlay();return}let ie=()=>{var nt;ye({message:"toggle play, call player.play"}),L.action="play",P.play(),(nt=a==null?void 0:a.onPlay)==null||nt.call(a)},Ae=()=>{var nt;ye({message:"toggle play, call player.pause"}),L.action="pause",P.pause(),(nt=a==null?void 0:a.onPause)==null||nt.call(a)};if(P.info.isEnded$.getValue()){if(ye({message:"toggle play, video ended, seek to 0"}),ni.next(),ze.next(Ss.REWIND),T){R==null||R();return}P.seekTime(0),ie()}else P.info.playbackState$.getValue()!==Td.PLAYING?ie():Ae();re.log("toggle play",L)},Mi=(c,{changeReason:b="default",appliesTo:L="to-video"}={},ie)=>{ye({message:`set quality, quality: ${c}`}),re.log("set quality",{quality:c}),P.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Ae}=le.features;Qc(),c!=="auto"?(Ae?(Gc({type:"exact_quality",quality:c,videoId:i},L),P.setPredefinedQualityLimits(ds.UNKNOWN)):tf(i,c),$n.set(c),P.setQuality(c)):Ae&&b==="default"&&(Sn("auto_quality",L,ie),$e(gn)&&Ki(!1,void 0,ie),$e(li)&&Vi(!1,void 0,ie))},Ki=(c,b="as-default",L)=>{ye({message:`set trafficSavingEnabled, value: ${c}`}),re.log("set traffic saving enabled",{trafficSavingEnabled:c});let ie=c?ds.TRAFFIC_SAVING:ds.UNKNOWN;le.features.qualityDetailsSubMenuEnabled?(vo(ie,b,L),Jl(!1)):(P.setPredefinedQualityLimits(ie),pi(L)&&Jl(c))},Vi=(c,b="as-default",L)=>{ye({message:`set highQualityEnabled, value: ${c}`}),re.log("set high quality enabled",{highQualityEnabled:c}),vo(c?ds.HIGH_QUALITY:ds.UNKNOWN,b,L)},vo=(c,b,L)=>{c!==ds.UNKNOWN&&($e(oo)&&!$e(ct)&&Mi("auto",{appliesTo:b,changeReason:"limit-changed"},L),Sn(c,b,L)),P.setPredefinedQualityLimits(c)},Sn=(c,b,L)=>{pi(L)&&(Gc({type:c,videoId:i},b),b==="as-default"&&Gc({type:c,videoId:i},"to-video"))},Ao=(c,b=!0)=>{re.log("set playback rate",{playbackRate:c}),P.setPlaybackRate(c),le.features.saveRate&&pe&&!P.info.isLive$.getValue()&&b&&Kh(c)},Po=()=>{let c=$e(sn),b=c.findIndex(({selected:ie})=>ie);if(b===c.length-1)return;let L=c[b+1];Ao(L.value)},Lo=()=>{let c=$e(sn),b=c.findIndex(({selected:ie})=>ie);if(b===0)return;let L=c[b-1];Ao(L.value)},Qn=(c={...di,selected:!1},b)=>{re.log("set subtitles",{...c}),c.value!==di.value&&It.next(c.isAuto?c.value+"_auto":c.value),Ii.set(c),pi(b)&&(cf(c.value===di.value?void 0:c.language),le.features.userVideoPrefs&&i&&uf(le.userSalt,String(i),{subtitleTrackId:c.value===di.value?void 0:c.value}))},Cn=c=>{re.log("toggle subtitles");let b=$e(Ii);(b==null?void 0:b.value)===di.value?br(c):Gn(c)},_r=(c,b)=>{re.log("change subtitle",{enabled:c}),c?br(!0,b):Gn(!0)},br=(c,b)=>{re.log("subtitle on");let L=$e(mr),ie=$e(Ue),Ae=pt!=null?pt:ie,nt;b&&(nt=L.find(St=>St.value===b)),nt!=null||(nt=L.filter(St=>St.value!==di.value).find(St=>St.language===Ae)),Qn(nt!=null?nt:L[1],c)},Gn=c=>{re.log("subtitle off"),Qn(void 0,c)};tt.add(P.info.availableTextTracks$.subscribe(c=>{var L;function b(){let ie=[];for(let{language:Ae,isAuto:nt,id:St}of c){let Mt=Ae&&Cd(Ae);Ae&&Mt&&ie.push({id:St,language:Ae,title:nt?De("subtitles_auto",{language:Mt}):Mt})}return ie}(L=a==null?void 0:a.onAvailableSubtitlesChanged)==null||L.call(a,b())}));let Vr=se(!0),Yr=c=>{Vr.set(c)},We=(c,b,L=!0)=>{var ie;if(ye({message:`seek to time, time: ${c}`}),re.log("seek to time",{time:c,action:b,forcePrecise:L}),ze.next(b),P.info.isLive$.getValue()){let Ae=P.info.duration$.getValue(),nt=Math.min(0,Ae+c);P.seekTime(nt,L)}else{if(E!=null&&E.getValue())return;P.info.isEnded$.getValue()&&(ye({message:"seek after ended, call callbacks.onPlay"}),(ie=a==null?void 0:a.onPlay)==null||ie.call(a)),P.seekTime(Iv(c),L)}},zt=c=>{ye({message:`seek to episode start time: ${c}`}),re.log("seek to episode start time",{time:c}),We(c,Ss.EPISODE,!0)},bi=(c,b)=>{ye({message:`seek to percent, percent: ${c}`}),re.log("seek to percent",{percent:c,action:b});let L=$e(hn)*c;We(L,b,!1)},ln=c=>{ye({message:`seek external, time: ${c}`}),re.log("seek external",{time:c}),ze.next(Ss.UNKNOWN),P.seekTime(P.info.isLive$.getValue()?-c:c)},Mo=c=>{var ie,Ae;let b=(ie=c.max)!=null?ie:"none",L=(Ae=c.min)!=null?Ae:"none";ye({message:`set auto quality limitation. Max: ${b}. Min: ${L}`}),re.log("set auto quality limits",{max:b,min:L}),P.setAutoQualityLimits(c)},Vo=c=>{ye({message:`seek external to episode start time: ${c}`}),re.log("seek external to episode start time",{time:c}),We(c,Ss.EPISODE,!0)},Ro=c=>{ye({message:`set playback rate to: ${c}`}),re.log("set playback rate external",{playbackRate:c}),P.setPlaybackRate(c)},jn=se(void 0),Zr=se(!1),Is=c=>{ye({message:`start scrubbing, progress: ${c}`}),re.log("start scrubbing",{progress:c}),Zr.set(!0),$r(c)},$r=c=>{jn.set(c)},Xr,Z,Ge=()=>{jn.set(void 0),Zr.set(!1)},Nt=()=>{clearTimeout(Z),clearTimeout(Xr),Xr=window.setTimeout(()=>{Ge()},500),Se==null||Se.removeEventListener("seeked",Nt)},oi=c=>{ye({message:`complete scrubbing, progress: ${c}`}),re.log("complete scrubbing",{progress:c}),bi(c,Ss.SLIDER),$e(Ot.ui.isMobile)&&$e(Ot.state.currentFormat$)===Ed.HLS?(Se==null||Se.addEventListener("seeked",Nt),Z=window.setTimeout(()=>{Nt()},300)):Ge()},wi=mi([Ut,hn,jn],([c,b,L],ie)=>{ie(Cy(L)?L*b:c)}),Si=se(!1),Bi=()=>{Si.set(!0)},Yn=()=>{Si.set(!1)},Ci=mi([vi],([{width:c}],b)=>{let L=I1(c);b(L)}),$i=F.filter(c=>Lh(c)),No=mi([Ci,lt],([c,b])=>b?$i.filter(L=>!L.hideOnMobile):$i.filter(L=>{var ie;return!((ie=L.hideOnDesktopGridTypes)!=null&&ie.includes(c))})),go=se(F.filter(c=>Mh(c))),yr=mi([go,Ci],([c,b])=>c.filter(L=>{var ie;return!((ie=L.hideOnDesktopGridTypes)!=null&&ie.includes(b))})),ho=mi([yr,No],([c,b])=>[...le.features.additionalButtonsDesktopControlPanelRight?c.filter(L=>L.type==="desktop-control-panel-right"):[],...le.features.additionalButtons?b.map((L,ie)=>{var Ae;return{id:ie,weight:ie,type:"desktop-control-panel-right",testId:L.testId,icon:L.iconUrl,onClick:L.onClick,ariaLabel:(Ae=L.ariaLabel)!=null?Ae:L.tooltip,tooltipText:L.tooltip}}):[]]),Zn=se(H),yt=mi([Zn],([c])=>le.features.additionalSettingsMenuItems?c.map(b=>b.type==="SWITCH"?{...b,onClick:b.onChangeEnabled}:b):[]),_t=(c,b)=>{let L=$e(go).map(ie=>ie.id!==c?ie:{...ie,...b});go.set(L)},ao=c=>{let b=$e(go);if(b.some(L=>L.id===c.id)){ye({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),go.set(b)},jo=c=>{let b=$e(go);if(!b.some(L=>L.id===c)){ye({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}b=b.filter(L=>L.id!==c),go.set(b)},qi=c=>{ze.next(Ss.LIVE),ye({message:"live switch to low latency "+c}),re.log("live switch to low latency "+c),P.setLiveLowLatency(c)},si=(c,b)=>{let L=$e(Zn).map(ie=>ie.id!==c?ie:{...ie,...b});Zn.set(L)},Di=c=>{let b=$e(Zn);if(b.some(L=>L.id===c.id)){ye({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),Zn.set(b)},ks=c=>{let b=$e(Zn);if(!b.some(L=>L.id===c)){ye({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}b=b.filter(L=>L.id!==c),Zn.set(b)},Rr=se(W),ic=mi([Rr],([c])=>le.features.additionalContextMenuItems?c:[]),Ku=(c,b)=>{let L=$e(Rr).map(ie=>ie.id!==c?ie:{...ie,...b});Rr.set(L)},oc=c=>{let b=$e(Rr);if(b.some(L=>L.id===c.id)){ye({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),Rr.set(b)},qu=c=>{let b=$e(Rr);if(!b.some(L=>L.id===c)){ye({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}b=b.filter(L=>L.id!==c),Rr.set(b)},nc=mi([lt,de],([c,b],L)=>{L(c&&b)}),Qu=()=>{ze.next(Ss.LIVE),ye({message:"switch to active live"}),re.log("switch to active live"),P.seekTime(0),P.info.playbackState$.getValue()!==Td.PLAYING&&Ot.actions.internal.togglePlay()},rc=()=>{re.log("skip adman"),Oe.skip()},Gu=(c=!0)=>{var ie;ar(Ot),ye({message:`switch from ads to video, callPlay: ${c}`}),re.log("switch from ads to video",{callPlay:c}),be.set("video"),c&&P.play(),l&&Qo(!0,!0);let b=(ie=$e(At))==null?void 0:ie.muted,L=!P.info.muted$.getValue();b!==void 0&&!L&&Qo(b,!0),At.set(void 0)},sc=()=>{ar(Ot),ye({message:"switch from video to ads"}),re.log("switch from video to ads"),Ot.actions.internal.pause(),$t(),be.set("ads")},ju=c=>{ar(Ot);let b=c?"LiveWaitingStart":"thumb";re.log("set live waiting start",{state:c,playerPhase:b}),be.set(b)},ac=c=>{ar(Ot);let b=c?"LiveWaitingRecover":"thumb";re.log("set live waiting recover",{state:c,playerPhase:b}),be.set(b)},Yu=c=>{ar(Ot);let b=c?"LiveWaitingRecord":"thumb";re.log("set live waiting record",{state:c,playerPhase:b}),be.set(b)},lc=()=>(ar(Ot),re.log("get debug text data"),kh(P,ee,Ot,Ne.getTraceId())),Zu=()=>(ar(Ot),JSON.stringify(Ne.getFinishedSpans())),dc=()=>(ar(Ot),Ah(P,ee,Ot)),La=()=>Se,cc=()=>{ye({message:"toggle chromecast"}),re.log("toggle chromecast"),P.toggleChromecast()},bl=c=>{var L;if(ar(Ot),P.info.isEnded$.getValue())return;let b=!c;if($e(Ot.playerPhase)==="ads"){ye({message:`pause ads, internalCall: ${b}`}),re.log("pause ads",{internalCall:b}),Oe.pause();return}ye({message:`pause video, internalCall: ${b}`}),re.log("pause video",{internalCall:b}),b&&((L=a==null?void 0:a.onPause)==null||L.call(a)),P.pause()},$l=c=>{var L;ar(Ot);let b=!c;if($e(Ot.playerPhase)==="ads"){ye({message:`play ads, internalCall: ${b}`}),re.log("play ads",{internalCall:b}),Oe.play();return}ye({message:`play video, internalCall: ${b}`}),re.log("play video",{internalCall:b}),b&&((L=a==null?void 0:a.onPlay)==null||L.call(a)),P.play()},Xu=c=>{ar(Ot);let b=!c;if($e(Ot.playerPhase)==="ads"){ye({message:"player cannot be stopped during ads via external method"});return}ye({message:`player will be stopped, internalCall: ${b}`}),I==null||I()},yl=(c,b)=>{ar(Ot),ye({message:`first start, show ads: ${c}, internalCall: ${!b}`}),re.log("first start",{showAds:c,external:b}),c?be.set("ads"):(be.set("video"),b?P.play():Ot.actions.internal.togglePlay())},xl=()=>(ye({message:"getting time codes"}),f),wl=()=>{let c=xl();if(!c||[0,1].includes(c.length))return;let b=P.info.position$.getValue();return c.find(L=>L.time>b)},Ju=c=>{let b=c;b||(b=wl());let L=P.info.position$.getValue();re.log("seek to next episode",{currentTime:L,...b}),b&&(ye({message:"seek to next episode"}),We(b.time,Ss.EPISODE,!0))},uc=()=>{let c=xl();if(!c||[0,1].includes(c.length))return;let b=P.info.position$.getValue(),L=c.findIndex(Ae=>Ae.time>b),ie=L===-1?c.length-2:L-2;if(!(ie<0))return c[ie]},ep=c=>{let b=c;b||(b=uc());let L=P.info.position$.getValue();re.log("seek to prev episode",{currentTime:L,...b}),b&&(ye({message:"seek to prev episode"}),We(b.time,Ss.EPISODE,!0))},Ye=()=>(ye({message:"getting preview thumbs data"}),re.log("get preview thumbs data",{...m}),m),ai=async()=>{let c=te==null?void 0:te.isActive(),b="none";te!=null&&te.isActive()?(b="exit",await(te==null?void 0:te.exit())):(b="request",await(te==null?void 0:te.request())),re.log("toggle picture in picture",{isActive:c,action:b})},Oo=(c=-90)=>{re.log("rotate video",{alphaDiff:c}),Kt.update(b=>b+c)},Jr=se([]);C==null||C.subscribe(c=>{let b=[];for(let L=0;L<c.length;L++){let{range:[ie,Ae],subjects:nt}=c[L];L===0&&ie!==0&&b.push({time:0,text:"",interactive:!1,completed:!0}),b.push({time:ie/1e3,text:"",interactive:!0,completed:le.features.interactiveTimeOpenUri?!nt.length||nt.every(St=>St.isRemoved):!nt.length}),Ae!==1/0&&b.push({time:Ae/1e3,text:"",interactive:!1,completed:!0})}Jr.set(b)});let dn=se(!1);E==null||E.subscribe(c=>{c&&$e(Zr)&&Ge()});let Iv=c=>{if(!T)return c;let b=$e(Jr),L=$e(hn),Ae=$e(qo)/L,nt=b.find(St=>St.interactive&&!St.completed&&St.time>Ae);return typeof(nt==null?void 0:nt.time)=="number"?Math.min(c,nt.time-.05):c},k0=()=>{Ot.ui.episodes.panelOpened$.set(!1)},A0=()=>{re.log("destroy store"),clearTimeout(Z),clearTimeout(Xr),tt.unsubscribe(),je.unsubscribe(),P.destroy(),Oe.destroy(),J==null||J.destroy(),Q==null||Q.destroy(),Ee.unsubscribe(),xi==null||xi.disconnect(),xi=null,Ke.destroy()},P0=mi([_n,Ze,ht],([c,b,L])=>u.features.doubleForwardAvailable&&!c&&b==="video"&&L),tp=se(!1),kv=2,pc=null,Av=c=>{if(!$e(On)&&c)return;let b=P.info.currentPlaybackRate$.getValue();c?b!==kv&&(pc=b,Ao(kv,!1),tp.set(!0)):(pc&&Ao(pc,!1),tp.set(!1),pc=null)};Ze.subscribe(c=>{c!=="video"&&Av(!1)});let Ot={interfaceLanguage$:Ue,isCyrillicRelatedInterface$:ce,initVideo:uo,videoId:i,isClip:o,playerPhase:Ze,vsid:mt,state:{positionExact$:Ut,positionWithScrubbing$:wi,duration$:hn,playbackState$:ft,isPlaying$:On,isLoaderVisible:Ti,bufferedProgress$:ti,isLive$:ci,canChangePlaybackSpeed$:ht,isActiveLive$:_n,isOldestAvailableLive$:Ko,isRewindableLive$:Bn,isEnded$:hi,muted$:vn,volume$:io,trafficSavingEnabled$:gn,highQualityEnabled$:li,autoQualityLimitingAvailable$:oo,availableVideoStreams$:Gr,availableAudioStreams$:ro,videoStream$:Er,audioStream$:nn,currentQuality$:rn,isAutoQualityEnabled$:ct,availableQualities$:Ir,currentPlaybackRate$:Co,availablePlaybackRates$:sn,currentSubtitle$:Ii,availableTextTracks$:To,availableSubtitlesList$:mr,currentSubtitleCaptions$:Wn,isAutoSubtitleCaptionVisible$:vr,chromecastState$:Yi,chromecastDeviceName$:Rn,chromecastConnected$:ur,currentFormat$:Wo,throughputEstimation$:So,videoBitrate$:dr,videoSize$:Nn,errorLog$:_e,crashed$:de,isAudioAvailable$:cs,isAudioDisabled:!!l,canDownload:le.features.download&&!!d,availableSources$:an,hasMpegSources$:gr,isInteractive:T,showInteractiveGraph:le.features.interactiveGraph,showSeekToInteractive:le.features.seekToInteractive,showPlayPrevChapter:le.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:le.features.interactiveTimeIndicator&&!!$e(Jr).length,interactiveEpisodes$:Jr,isInteractiveTime$:E?Xt(E):se(!1),isInteractiveExpectation$:dn,hasInteractiveBranches:k,playPrevChapterDisabledTooltip:B,looped$:hr,loadedMetadata$:ke,isAutoQualityAvailable$:yn},ui:{t:De,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:F.length?F.reduce(c=>[...c,se(void 0)],[]):[],disabledControls$:Lt},modals:{hotKeyMap:{show:se(!1),data:se({title:"",closeBtnText:"",groups:[]})}},isFullscreen:it,isFullscreenOpenedByKeyboard:Dt,rotateAlpha:Kt,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:vi,isMobile:lt,mobileNotReportControlHidden$:nc,icon3DVideoVisible:se(!1),scrubbingInProgress:Zr,volumeChangingInProgress:Si,is3DVideo:qt,currentGridType$:Ci,additionalButtonsDeprecated$:No,additionalDesktopControlPanelRightButtons$:ho,additionalSettingsMenuItems$:yt,additionalContextMenuItems$:ic,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)},userActionsDisabled:se(!1),hiddenControls:{volume:se(!1),vkLogo:se(!1),pip:se(!1),chromecast:se(!1),settings:se(!1)},isControlsAvailable:Vr,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),doubleForwardOn$:tp,doubleForwardAvailable$:P0},ads:{position:se(0),duration:se(0),playbackState:se("inactive"),canSkip:se(!1),secondsToWatchBeforeSkip:se(0),postrollPassed:se(!1)},webApi:{pictureInPictureApi:te,annotationsApi:Re,slotsApi:Je},actions:{internal:{preload:_i,firstStart:c=>yl(c,!1),play:()=>$l(!1),pause:()=>bl(!1),togglePlay:so,toggleMuted:ii,openSettingsMenu:mo,closeSettingsMenu:Zi,openSettingsSubMenu:Io,closeSettingsSubMenu:ui,setVolume:c=>wn(c,!1),setMuted:c=>Qo(c,!1),startVolumeChanging:Bi,stopVolumeChanging:Yn,setVideoStream:bn,setAudioStream:c=>Dn(c,!1),setQuality:(c,b)=>Mi(c,b,!1),setTrafficSavingEnabled:(c,b)=>Ki(c,b,!1),setHighQualityEnabled:(c,b)=>Vi(c,b,!1),setPlaybackRate:Ao,incrementPlaybackRate:Po,decrementPlaybackRate:Lo,setSubtitle:c=>Qn(c,!1),toggleSubtitle:()=>Cn(!1),togglePictureInPicture:ai,startScrubbing:Is,progressScrubbing:$r,completeScrubbing:oi,toggleChromecast:cc,switchToActiveLive:Qu,switchFromAdsToVideo:Gu,switchFromVideoToAds:sc,skipAd:rc,setLiveWaitingStart:ju,setLiveWaitingRecover:ac,setLiveWaitingRecord:Yu,getDebugTextData:lc,getTraceTextData:Zu,getDebugPanelData:dc,getVideoElement:La,seekTime:(c,b,L)=>We(c,b,L),clearDelayedBufferingCheckTimeout:Qr,seekEpisodeStartTime:zt,seekToPercent:bi,getNextEpisode:wl,seekToNextEpisode:Ju,getPrevEpisode:uc,seekToPrevEpisode:ep,startLogging:Li,stopLogging:xo,startCameraManualRotation:wo,stopCameraManualRotation:on,moveCameraFocusPX:N,holdCamera:et,releaseCamera:Ht,getVideoEpisodes:xl,getPreviewThumbsData:Ye,downloadVideo:ut,addLanguage:pf,setLanguage:Qe,nextMovie:Jt,videoRotate:Oo,correctSeekTimeToInteractive:Iv,replayInteractive:R,setLooped:Ar,reportProblem:Go,setAutoplayNextEnabled:Pr,setTimerNextVideoRunning:Lr,prevVideoClick:ko,nextVideoClick:Kn,nextVideoAnnouncementShow:Mr,nextVideoAnnouncementClick:qn,nextVideoAnnouncementAuto:rt,nextVideoAnnouncementCancel:kt,checkFullscreenSupport:Wt,changeDoubleForwardOn:Av},external:{firstStart:c=>yl(c,!0),play:()=>$l(!0),pause:()=>bl(!0),stop:()=>Xu(!0),seekTime:c=>ln(c),seekEpisodeStartTime:c=>Vo(c),setPlaybackRate:c=>Ro(c),setAutoQualityLimits:c=>Mo(c),setMuted:c=>Qo(c,!0),toggleSubtitle:()=>Cn(!0),changeSubtitle:_r,setVolume:c=>wn(c,!0),returnFocusToEpisodes:k0,updateAdditionalSettingsItem:si,addAdditionalSettingsItem:Di,removeAdditionalSettingsItem:ks,updateAdditionalContextItem:Ku,addAdditionalContextItem:oc,removeAdditionalContextItem:qu,updateAdditionalButton:_t,addAdditionalButton:ao,removeAdditionalButton:jo,setLiveLowLatency:qi,hideControls:()=>Yr(!1),showControls:()=>Yr(!0),setQuality:c=>Mi(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>Ki(c,"to-video",!0),setHighQualityEnabled:c=>Vi(c,"to-video",!0),changeAudioStream:Fn}},callbacks:a,setUiCallbacks:c=>{Te={...c}},getAdmanWrapper:()=>Oe,getLogger:()=>ot,getPlayer:()=>P,destroy:A0};return Ot};function Mn(t,e,i,o){var f;let n=(f=e[i])==null?void 0:f.getBoundingClientRect(),s=o&&!!n&&!!(n.right-n.left),{top:l,left:d,bottom:a,right:p}=ws(e[i],t||void 0);return{left:s?d:0,right:s?p:0,top:s?l:0,bottom:s?a:0,isDisplayed:s}}var Ny=["disabledControls$","additionalButtons"],Oy=["interactiveTimeIndicator"],fl=(t,e,i,o)=>{if(t){for(let[n,s]of Object.entries(e))if(!Ny.includes(n)){let l=o||Oy.includes(n);s.set(Mn(t,i,n,l))}}};var Cu=async(t,e,i)=>{await bo(),e&&i&&(i.focus(),t.set(!1))};var By=we('<svg><!><path fill="var(--btn-color, #fff)" d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"></path></svg>');function dm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=By();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 s;return(s=e.children)!=null?s:ae}),xe(),h(o),$(t,o)}function cm(t,e){U(e,!0);let[i,o]=Be(),n=()=>S(a,"$contextMenuVisible$",i),s=v(e,"disabled",3,!1),l=v(e,"ariaLabel",3,""),d=Ce(),a=d.ui.contextMenu.visible$,p=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,m=d.ui.contextMenu.position$,u=d.ui.contextMenu.btnRef$,y=X(void 0);qe(()=>{r(y)&&xt(()=>{u.set(r(y))})});let w=E=>{let R=zs(E),I=$1(r(y));m.set(I),p.set(R),a.set(!n())},x=()=>{f.set(!0)},T=()=>{f.set(!1)},C=g(()=>n()?"opened":"");Rt(t,{get className(){return r(C)},testId:"btn-context-menu",get disabled(){return s()},get ariaLabel(){return l()},click:w,focus:x,blur:T,get ariaExpanded(){return n()},get ref(){return r(y)},set ref(E){O(y,E,!0)},children:(E,R)=>{dm(E,{})},$$slots:{default:!0}}),z(),o()}var Dy=t=>{t.stopPropagation()},Fy=M("<div><!> <div></div> <div></div></div>"),Hy={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
233
+ }`};function dv(t,e){F(e,!0),W(t,hy);let i=h(e,"isMobile",3,!1),o=m(()=>e.iconState===J1.CONNECTED),r=m(()=>e.iconState===J1.CONNECTING);var s=He(),l=pe(s);{var d=u=>{var f=my(),v=_(f),p=_(v),y=_(p);Te(),g(p);var w=P(p);Te(),g(v);var x=P(v),C=_(x),T=_(C);g(C),Te(),g(x),g(f),D(()=>{We(y,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)"),We(w,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)"),We(T,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)")}),b(u,f)},a=u=>{var f=gy();let v;var p=_(f),y=P(_(p),5);let w;g(p),g(f),D((x,C)=>{v=ne(f,0,"svelte-8z1bf5",null,v,x),w=ne(y,0,"svelte-8z1bf5",null,w,C)},[()=>({connecting:n(r)}),()=>({hidden:!n(o)})]),b(u,f)};V(l,u=>{i()?u(d):u(a,!1)})}b(t,s),U()}import{noop as by}from"@vkontakte/videoplayer-shared/es2018";function Kd(t,e){F(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"click",3,by),l=he().ui.t,d=m(()=>e.state===_y.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Ft(t,{get ariaLabel(){return n(d)},get click(){return r()},testId:"btn-chromecast",get ref(){return i()},set ref(a){i(a)},children:(a,u)=>{dv(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),U()}import{noop as xy}from"@vkontakte/videoplayer-shared/es2018";var $y=Ee('<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 cv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=$y();ke(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 r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(3),g(o),b(t,o)}var yy=Ee('<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 uv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=yy();ke(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 r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var Vu=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var wy=M('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),Sy=M('<span class="text svelte-1yhs2ga"> </span>'),Cy=M('<span class="text count svelte-1yhs2ga"> </span>'),Ty=M("<!> <!>",1),Ey={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 qd(t,e){var X,fe,re;F(e,!0),W(t,Ey);let[i,o]=De(),r=()=>S(w,"$currentGridType$",i),s=()=>S(x,"$openedByKeyboard$",i),l=()=>S(C,"$panelOpened$",i),d=()=>S(T,"$isMobile",i),a=h(e,"position",3,0),u=h(e,"duration",3,0),f=h(e,"timeCodes",19,()=>[]),v=he(),p=(fe=(X=v.callbacks)==null?void 0:X.onEpisodeChanged)!=null?fe:xy,y=!!((re=v.callbacks)!=null&&re.onEpisodeClicked),w=v.ui.currentGridType$,x=v.ui.episodes.openedByKeyboard$,C=v.ui.episodes.panelOpened$,T=v.ui.isMobile,E=v.ui.t,R=Q(void 0),A=le=>{var we,te,Ne;if(!!((we=v.callbacks)!=null&&we.onEpisodeClicked)){let ue=Ys(le);x.set(ue),C.set(!0),(Ne=(te=v.callbacks)==null?void 0:te.onEpisodeClicked)==null||Ne.call(te,ue)}},I=Q(null),O=m(()=>a()/u());ze(()=>{var Me;let le=Vu(n(O),u(),f());le?((Me=n(I))==null?void 0:Me.time)!==le.time&&(p(le),N(I,le,!0)):N(I,null)});let H=m(()=>{var le;return((le=n(I))==null?void 0:le.text)||""}),B=m(()=>eo(r(),"xl")?"FULL":eo(r(),"m")&&Y1(r(),"xl")?"COUNT":"SHORT"),z=m(()=>`${E("tooltip_episodes")}: ${n(H)}`),Z=async(le,Me,we)=>{await Eo(),(le==null?void 0:le.getAttribute("aria-expanded"))==="false"&&Me&&!we&&kt(()=>{x.set(!1),le.focus()})};ze(()=>{Z(n(R),s(),l())});var ae=He(),q=pe(ae);{var de=le=>{let Me=m(()=>d()?"px-0":""),we=m(()=>!y);Ft(le,{get className(){var te;return`w-max btn-full-opacity btn-jc-l ${(te=n(Me))!=null?te:""}`},testId:"btn-episodes",click:A,get disabled(){return n(we)},get ariaExpanded(){return l()},get ariaLabel(){return n(z)},get ref(){return n(R)},set ref(te){N(R,te,!0)},children:(te,Ne)=>{var ue=He(),k=pe(ue);{var Ke=Y=>{var oe=wy(),Be=pe(oe),Ye=_(Be,!0);g(Be);var me=P(Be,2),J=_(me);uv(J,{}),g(me),D(()=>ve(Ye,n(H))),b(Y,oe)},Ve=Y=>{var oe=Ty(),Be=pe(oe);cv(Be,{});var Ye=P(Be,2);{var me=Ie=>{var ge=Sy(),Fe=_(ge,!0);g(ge),D(()=>ve(Fe,n(H))),b(Ie,ge)},J=(Ie,ge)=>{{var Fe=Ze=>{var Ge=Cy(),dt=_(Ge,!0);g(Ge),D(()=>ve(dt,f().length)),b(Ze,Ge)};V(Ie,Ze=>{n(B)==="COUNT"&&Ze(Fe)},ge)}};V(Ye,Ie=>{n(B)==="FULL"?Ie(me):Ie(J,!1)})}b(Y,oe)};V(k,Y=>{d()?Y(Ke):Y(Ve,!1)})}b(te,ue)},$$slots:{default:!0}})};V(q,le=>{n(I)&&le(de)})}b(t,ae),U(),o()}import{debounceFn as g0}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as Ny,PlaybackState as Rl,Player as Oy,PredefinedQualityLimits as cs,VideoFormat as Gd,clientChecker as r0}from"@vkontakte/videoplayer-core/es2018";import{assertNonNullable as sr,getHighestQuality as Dy,InterfaceLanguage as By,isInvariantQuality as Hy,isNonNullable as Fy,loadVKLangPack as Uy,Logger as zy,map as s0,merge as Wy,Observable as Fu,Subject as Uu,Subscription as hv,TracerFactory as Ky,ValueSubject as qy,VideoQuality as Qy,devNull as Gy,now as jy,filter as Yy,once as Zy}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as As}from"@vkontakte/videoplayer-statistics/es2018";import{detectEmbed as Iy,devNull as ii,isNonNullable as ky,now as oi}from"@vkontakte/videoplayer-shared/es2018";import{addScript as Ay,Subject as nn,clearVideoElement as Py}from"@vkontakte/videoplayer-shared/es2018";var My="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Ru=class{constructor(e,i){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new nn,loadStarted$:new nn,loadEnded$:new nn,loadError$:new nn,ready$:new nn,slotRequested$:new nn,started$:new nn,timeRemained$:new nn,paused$:new nn,resumed$:new nn,ended$:new nn,empty$:new nn,skipped$:new nn,clicked$:new nn,closed$:new nn,error$:new nn};this.loadAdman=e=>(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[oi()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let s=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[oi()]}),i(),this.events.loadEnded$.next()):(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[oi()]}),o())};Ay(My,e,this.loadTimeout).then(()=>{ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[oi()]}),window.AdmanHTML?(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[oi()]}),i(),this.events.loadEnded$.next()):(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[oi()]}),window.admanAsyncInit=s,r=window.setTimeout(s,this.initTimeout))}).catch(l=>{ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[oi()]}),o(),clearTimeout(r)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let s=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[oi()]}),i(),this.events.loadEnded$.next()):(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[oi()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[oi()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[oi()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[oi()]}),!d&&(window.AdmanHTML?(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[oi()]}),i(),this.events.loadEnded$.next()):(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[oi()]}),window.admanAsyncInit=s,r=window.setTimeout(s,this.initTimeout)))},l).finally(()=>{clearTimeout(r),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[oi()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{var o;ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[oi(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"})),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog(),(o=this.externalApi)!=null&&o.videoTrackAdEvent&&this.safeExternalCall(this.externalApi.videoTrackAdEvent,e,String(i.bannerID))):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{var o;((o=this.adsState)!=null&&o.playbackState?be(this.adsState.playbackState):void 0)!=="inactive"&&(this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized"))};this.onAdPaused=()=>{var e;ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[oi()]}),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;ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[oi()]}),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(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[oi()]}),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;ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[oi()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[oi()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[oi()]}),this.log({message:"ad completed"}),this.currentAdSection?(this.events.ended$.next(this.currentAdSection),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0)):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[oi()]}),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")=>{ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[oi()]}),this.log({message:e}),this.events.error$.next(e),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[oi()]}),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")}async initAdman(e){var R,A;if(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[oi(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isAutoplay:r,adsContainer:s,adsVideoElement:l,slotId:d,params:a={},paramsOverride:u={},duration:f,externalApi:v}=e;this.externalApi=v;let p,y=this.playerState&&be(this.playerState.vsid);y&&(this.isVsidOriginal?p=y:p=parseInt(y,36));let{isEmbed:w,immediateOrigin:x}=Iy(),C=(R=w?x:window.location.href)!=null?R:window.location.href,T={...a,dl:encodeURIComponent(C),autoplay:r?1:0,player_width:i,player_height:o,...p?{request_id:p}:{},duration:f,...u};T=Object.fromEntries(Object.entries(T).filter(([I,O])=>ky(O)));let E={slot:d,wrapper:s,videoEl:l,videoQuality:o,params:T,browser:{mobile:!1}};try{let I=new window.AdmanHTML;if(I.onReady(this.onAdsReady),I.onStarted(this.onAdStarted),I.onPlayed(this.onAdPlayed),I.onPaused(this.onAdPaused),I.adMidrollPoint(this.onAdMidrollPoint),I.onClosed(this.onAdClosed),I.onSkipped(this.onAdSkipped),I.onClicked(this.onAdClicked),I.onTimeRemained(this.onAdTimeRemained),I.onCompleted(this.onAdCompleted),I.onError(this.onAdError),(A=this.externalApi)!=null&&A.videoGetAds){let O=await this.safeExternalCall(this.externalApi.videoGetAds,T);O&&(delete E.slot,delete E.params,Object.assign(E,{json:O}))}I.init(E),this.adman=I,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(E)}`})}catch(I){ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(I)],numbers:[oi()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,r,s;if(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[oi()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.log({message:`switch to video, isPostroll: ${i}`});else{let l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(s=(r=this.actions).switchFromAdsToVideo)==null||s.call(r,!i)}}setPostrollPassed(e){var i;(i=this.adsState)==null||i.postrollPassed.set(e),this.log({message:"postroll passed"})}togglePlay(){var e;if(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[oi()]}),this.adsState){this.log({message:"toggle play"});let i=be(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(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[oi()]}),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(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[oi()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&this.stopWatchDog(),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[oi()]}),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(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[oi()]}),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(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[oi()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,r,s,l,d,a,u,f,v,p;ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[oi()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(r=this.adman)==null||r.onPaused(void 0),(s=this.adman)==null||s.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(a=this.adman)==null||a.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(v=this.adman)==null||v.onError(void 0),(p=this.adman)==null||p.destroy(),this.videoElement&&Py(this.videoElement),this.isDestroyed=!0}async safeExternalCall(e,...i){var o;try{return await e(...i)}catch(r){return this.onAdError((o=r==null?void 0:r.message)!=null?o:"External call failed"),null}}};var e0=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 pv=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],r=e.split(this.twoLinesRegExp);for(let s of r){let l={startTime:0,endTime:0,texts:[],lang:i},d=s.split(this.oneLineRegExp);for(let a of d)if(!l.startTime&&!l.endTime){let u=new Nu,{startTime:f,endTime:v}=u.parse(a);l.startTime=f,l.endTime=v}else if(a.trim()!==""){let u=new fv,{texts:f}=u.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},Nu=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",r="0"){let s=Number(e)*60*60,l=Number(i)*60,d=Number(o),a=+`0.${r}`;return s+l+d+a}},fv=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},r=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,a=[];for(;d<l.length;){let u=["<",">"].reduce((f,v)=>{let p=l.indexOf(v,d);return f===-1||f>p?p:f},-1);if(u===-1){a.push(l.substring(d));break}a.push(l.substring(d,u)),d=u+1}return a}}),s=new Nu;for(let l of r)s.isTime(l)?i.texts.push({type:"timestamp",value:s.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},t0=pv;import{isNonNullable as vv}from"@vkontakte/videoplayer-shared/es2018";var Ra,Mi,mv=0,gv=!1,i0="",o0=(t,e=0,i=0)=>t<e&&t<i,Ou=(t,e=0,i=0)=>t>=e&&t<=i,Ly=(t,e=0,i=0)=>t>e&&t>i,n0=(t,e,i,o=!1)=>{var d;let r=(d=i.find(({id:a})=>a===e.value))==null?void 0:d.subtitles;if(o)return r==null?void 0:r.find(({startTime:u,endTime:f})=>Ou(t,u,f));let s=t>=mv,l=t<mv;if(mv=t,l&&(gv=!1),vv(Ra)&&Ou(t,Ra.startTime,Ra.endTime)&&i0===e.value)return Ra;if(!vv(Mi)&&(r!=null&&r.length)&&!gv){Mi=r.find(({startTime:u,endTime:f})=>Ou(t,u,f)||s&&o0(t,u,f)),Ra=void 0,!vv(Mi)&&r[r.length-1].endTime<t&&(gv=!0);return}else{if(Ou(t,Mi==null?void 0:Mi.startTime,Mi==null?void 0:Mi.endTime))return Ra=Mi,Mi=void 0,i0=e.value,Ra;(s&&Ly(t,Mi==null?void 0:Mi.startTime,Mi==null?void 0:Mi.endTime)||l&&o0(t,Mi==null?void 0:Mi.startTime,Mi==null?void 0:Mi.endTime))&&(Mi=void 0)}};var Du={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"},Vy={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"},Qd=t=>{var e,i;return(i=(e=Du[t])!=null?e:Du[Vy[t]])!=null?i:void 0};import{Subscription as Ry}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-statistics/es2018";var Bu=class{constructor(e,i,o,r=new Ry){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=r}destroy(){var e,i,o;(e=this.oneStat)==null||e.destroy(),(i=this.thinOneStat)==null||i.destroy(),(o=this.mediascopePixel)==null||o.destroy(),this.statSubscription.unsubscribe()}};var Hu=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Hu||{});var ds=t=>t!=null?t:0,ks=(t,e)=>{var r,s;let i=(r=t==null?void 0:t.getBoundingClientRect)==null?void 0:r.call(t),o=(s=e==null?void 0:e.getBoundingClientRect)==null?void 0:s.call(e);return{top:Math.round(ds(i==null?void 0:i.top)-ds(o==null?void 0:o.top)),left:Math.round(ds(i==null?void 0:i.left)-ds(o==null?void 0:o.left)),bottom:Math.round(ds(i==null?void 0:i.bottom)-ds(o==null?void 0:o.top)),right:Math.round(ds(i==null?void 0:i.right)-ds(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:ds(e==null?void 0:e.width),height:ds(e==null?void 0:e.height)}};var Bn="off";var Vl=t=>!!(Math.round(Math.abs(t)/90)%2);var a0=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:r,statAuthToken:s,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:u,videoEpisodes:f,previewThumbsData:v,uiConfig:p,coreConfig:y,player:w,disabledControls:x,isInteractive:C,interactiveRanges$:T,isInteractiveTime$:E,replayInteractive:R,stopPlayer:A,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:O,additionalButtons:H,additionalSettingsMenuItems:B,additionalContextMenuItems:z,playPrevVideo:Z,playNextVideo:ae,onVideoChanged:q,looped:de=!1,statistics:X,saveRate:fe,internalsExposure:re,playerView:le,playerId:Me})=>{var Zm,Xm,Jm;let we={...y,configName:[...(Zm=y.configName)!=null?Zm:[],"ui"],isAudioDisabled:l,live:{...(Xm=y.live)!=null?Xm:{},isLiveCatchUpMode:!!r}},te=p,Ne=Ky.createRootTracer(te.features.tracer),ue=Ne.createComponentTracer("Store"),k=w||new Oy(we,Ne,{playerId:Me});re==null||re.expose({corePlayer:k});let Ke=new zy,Ve=new Ru(Ke,{loadTimeout:te.ads.loadTimeout,initTimeout:te.ads.initTimeout,runtimeTimeout:te.ads.runtimeTimeout,useAdmanFromNPM:te.ads.useAdmanFromNPM,volumeMultiplier:te.ads.volumeMultiplier,isVsidOriginal:te.ads.isVsidOriginal}),Y=Ta.getInstance(),oe=u==null?void 0:u.pictureInPictureApi,Be=u==null?void 0:u.annotationsApi,Ye=u==null?void 0:u.slotsApi,me=Ke.createComponentLog("Store"),J,Ie,ge={},Fe=new du,Ze=new hv,Ge="",dt=se(!1),Je=X&&X.oneStat?li(X.oneStat.vsid$):yr(void 0),Ot=se(Qs()),nt=se(!1),Nt=()=>I1(document,r0.device.isIOS),Wt=(Jm=oe==null?void 0:oe.info.isActive$)!=null?Jm:new qy(!1),Ct=se(0),Xt=se(!1),Ut=se(!1),Se=se([]),xe=Wy(k.events.fatalError$,k.events.managedError$).subscribe(c=>Se.update($=>[...$,c])),ee=yr(!1,c=>{let $=k.events.fatalError$.subscribe(()=>c(!0));return()=>$.unsubscribe()}),Ce=async c=>{var ie;let $=Object.values(By).includes(c);if(te.downloadVKLanguages&&($&&te.updateBuiltinLanguages||!Cf(c))){let Ae;try{Ae=await Uy(c,Bh,Hh)}catch(rt){(ie=X==null?void 0:X.oneStat)==null||ie.logError({errorType:"VKLangPack",fatal:!1}),Y==null||Y.report(rt,{errorType:"VKLangPack",fatal:!1})}Ae&&(Sf({language:c,pack:Ae,fallback:te.defaultLanguage}),Pe.set(c),Tt.update(rt=>rt+1))}Cf(c)&&Pe.set(c)},Pe=se(t),Tt=se(0),Oe=se(e);Ce(t);let ct=(c,$)=>{let L=be(Pe);return Tf(L,c,$,te.defaultLanguage)},bt=se("thumb");bt.subscribe(c=>{c==="ads"&&k.info.playbackState$.getValue()&&qe()});let ye=(()=>{let c=_i([ee,bt],([$,L])=>$?"crashed":L);return{...c,is:$=>be(c)===$}})(),it=se(),qe=()=>{it.set({muted:k.info.muted$.getValue()})},at=(()=>{let c=se(new Set(x));return{...c,add:$=>{c.update(L=>new Set([...L].concat($)))},remove:$=>{c.update(L=>{let ie=[...L];return new Set(Array.isArray($)?ie.filter(Ae=>!$.includes(Ae)):ie.filter(Ae=>Ae!==$))})},includes:$=>{let L=be(c);return Array.isArray($)?$.every(ie=>L.has(ie)):L.has($)}}})(),Jt=se({width:0,height:0}),ni=null,fi=k.info.isBuffering$,bi=yr(fi.getValue(),c=>{let $=fi.subscribe(L=>{L&&ni===null?ni=window.setTimeout(()=>{c(fi.getValue()),ni=null},te.loaderDelay):c(L)});return()=>{$.unsubscribe(),ni&&clearTimeout(ni)}});ue.log("create store"),me({message:"create store"});let io=c=>{let $=c.container,L=()=>{ti=new MutationObserver(Ae=>{let{removedNodes:rt}=Ae[0];rt.length&&$.append(k.experimental.element$.getValue())}),ti.observe($,{childList:!0})},ie=k.experimental.element$.getValue();if(ie)$.append(ie),L();else{let Ae=k.experimental.element$.pipe(Yy(rt=>!!rt),Zy()).subscribe(rt=>{$.append(rt),L()});Ze.add(Ae)}},lo=c=>{me({message:`init video, config: ${JSON.stringify(c)}`}),C?io(c):(Gy.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[jy()]}),k.initVideo(c)),ue.log("init video",{isInteractive:C}),c.subtitles&&k.setExternalTextTracks(c.subtitles),J=c,Ge=c.subtitlesForcedLanguage||""},di=new Uu,vt=c=>di.next(c),Ii=new Uu,Qt=new Uu,St=new Uu,ti=null,Gt={actionRewind$:Ii,actionSeek$:Qt,inPiP$:Wt,inFullscreen$:new Fu(c=>Ot.subscribe($=>c.next($))),actionSetSubtitle$:St,nextMovie$:di},xt={actionSeek$:Qt,playerSize$:new Fu(c=>Jt.subscribe($=>c.next($))),inPiP$:Wt,inFullscreen$:new Fu(c=>Ot.subscribe($=>c.next($))),isLoaderVisible$:new Fu(c=>bi.subscribe($=>c.next($)))};if(X){let{oneStat:c,thinOneStat:$,mediascopePixel:L,statSubscription:ie}=X;c&&(C||ie.add(c.attachTo(k)),ie.add(c.attachToUi(Gt)),ie.add(c.attachToAds(Ve.events)),c.authorize(s).catch(Ae=>{me({message:`onestat auth error ${String(Ae)}`})}),L&&L.attachTo(k)),$&&(ie.add($.attachTo(k,Ve.events)),ie.add($.attachToUi(xt)),ie.add($.attachToAds(Ve.events)),$.updateContext({isMobile:be(dt)}),$.authorize(s))}if(Y){let c=new hv,$=(L,ie)=>c.add(L.subscribe(ie));if($(k.events.managedError$,L=>{Y.logIError(L)}),$(k.events.fatalError$,L=>{Y.logIError(L,!0)}),X){let{oneStat:L}=X;L&&$(L.experimental.error$,ie=>{Y.logIError(ie)})}Y.sentrySubscription.add(c)}let je=()=>{if(r0.device.isIOS&&Ie)try{k1(Ie)}catch(c){me({message:`exitIosSafariFullscreen failed: ${c}`})}};Ze.add(k.experimental.element$.subscribe(c=>{c&&(Ie=c,c.classList.add("player-media"),Ia(oe)&&oe.updateVideoElement(),C&&c.setAttribute("pip","false"),le==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(k.events.ended$.subscribe(()=>{var c;je(),(c=a==null?void 0:a.onEnded)==null||c.call(a)})).add(k.events.looped$.subscribe(()=>{var c;(c=a==null?void 0:a.onLooped)==null||c.call(a)})).add(k.events.started$.subscribe(async()=>{var $,L;Ia(oe)&&await(oe==null?void 0:oe.revealPictureInPicture());let c=k.info.muted$.getValue();($=a==null?void 0:a.onStarted)==null||$.call(a),(L=ge.onStarted)==null||L.call(ge,c)})).add(k.events.willSeek$.subscribe(({from:c,to:$})=>{var L;(L=a==null?void 0:a.onSeek)==null||L.call(a,c,$)})).add(k.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=a==null?void 0:a.onAutoplaySoundProhibited)==null||c.call(a)})).add(k.info.position$.subscribe(c=>{var L;let $=k.info.duration$.getValue();isFinite($)&&$>0&&((L=a==null?void 0:a.onTimeupdate)==null||L.call(a,$,c),Ve.setPosition(c,$))})).add(k.events.fatalError$.subscribe(c=>{var $;($=a==null?void 0:a.onCrashed)==null||$.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(k.events.fetcherRecoverableError$.subscribe(c=>{var $;($=a==null?void 0:a.onRecoverableError)==null||$.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(k.events.loadedMetadata$.subscribe(()=>{Xt.set(!0)})).add(k.info.is3DVideo$.subscribe(c=>{Ut.set(c)})).add(k.info.isEnded$.subscribe(c=>{C&&(c?(E!=null&&E.getValue()&&at.add(yd),at.add("PLAY_BUTTON")):at.remove("PLAY_BUTTON"))})).add(k.info.liveTime$.subscribe(c=>{var $;($=a==null?void 0:a.onLiveTime)==null||$.call(a,c)})).add(k.info.isStalled$.subscribe(c=>{var $;($=a==null?void 0:a.onStalledChanged)==null||$.call(a,c)})).add(k.info.isLiveEnded$.subscribe(c=>{var $;return c&&(($=a==null?void 0:a.onLiveEnded)==null?void 0:$.call(a))})).add(Ve.events.loadStarted$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:$.call(c)})).add(Ve.events.loadEnded$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:$.call(c)})).add(Ve.events.loadError$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadError)==null?void 0:$.call(c)})).add(Ve.events.init$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onInit)==null?void 0:$.call(c)})).add(Ve.events.ready$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onReady)==null?void 0:$.call(c)})).add(Ve.events.started$.subscribe(c=>{var $,L;return(L=($=a==null?void 0:a.adsInfo)==null?void 0:$.onStarted)==null?void 0:L.call($,c)})).add(Ve.events.timeRemained$.subscribe(c=>{var $,L;return(L=($=a==null?void 0:a.adsInfo)==null?void 0:$.onTimeRemained)==null?void 0:L.call($,c)})).add(Ve.events.ended$.subscribe(c=>{var $,L;return(L=($=a==null?void 0:a.adsInfo)==null?void 0:$.onCompleted)==null?void 0:L.call($,c)})).add(Ve.events.empty$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onEmpty)==null?void 0:$.call(c)})).add(Ve.events.clicked$.subscribe(c=>{var $,L;return(L=($=a==null?void 0:a.adsInfo)==null?void 0:$.onClicked)==null?void 0:L.call($,c)})).add(Ve.events.closed$.subscribe(c=>{var $,L;return(L=($=a==null?void 0:a.adsInfo)==null?void 0:$.onClosed)==null?void 0:L.call($,c)})).add(Ve.events.error$.subscribe(c=>{var $,L;return(L=($=a==null?void 0:a.adsInfo)==null?void 0:$.onError)==null?void 0:L.call($,c)})).add(Ve.events.paused$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onPaused)==null?void 0:$.call(c)})).add(Ve.events.resumed$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onResumed)==null?void 0:$.call(c)}));let $i=new hv,_o=()=>{var rt,Pt,Bt;let{debugLog:c}=te,$,L="#9df7b7",ie="#efd169";if(c&&c!==!0){let{colors:Kt}=c;$=c.tag,L=(rt=Kt==null?void 0:Kt[0])!=null?rt:L,ie=(Bt=(Pt=Kt==null?void 0:Kt[1])!=null?Pt:Kt==null?void 0:Kt[0])!=null?Bt:ie}let Ae=$?`: ${$}`:"";$i.add(k.events.log$.subscribe(Kt=>{console.debug(`%c sdk${Ae} `,`background:${L};`,`sdk component: ${Kt.component}`,Kt.message)})).add(Ke.log$.subscribe(Kt=>{console.debug(`%c ui${Ae} `,`background:${ie};`,`ui component: ${Kt.component}.`,Kt.message)}))},Qo=()=>{$i.unsubscribe()},sn=(c,$)=>{ue.log("start camera manual rotation",{mx:c,my:$}),k.startCameraManualRotation(c,$)},Et=(c=!1)=>{ue.log("stop camera manual rotation",{immediate:c}),k.stopCameraManualRotation(c)},Dt=(c,$,L)=>{ue.log("move camera focus px",{xpx:c,ypx:$,dt:L}),k.moveCameraFocusPX(c,$,L)},K=()=>{k.holdCamera()},Mt=()=>{k.releaseCamera()},ei=yr(k.info.position$.getValue(),c=>{let $,L,ie=()=>{let Ae=k.info.playbackState$.getValue(),rt=k.info.isLive$.getValue(),Pt=k.info.duration$.getValue(),Bt=k.info.position$.getValue();if(Ae&&[Rl.PLAYING,Rl.PAUSED].includes(Ae)){let Kt=rt?Bt-Pt:k.getExactTime();Kt!==L&&c(Kt),L=Kt}$=requestAnimationFrame(ie)};return ie(),()=>cancelAnimationFrame($)}),pt=li(k.info.playbackState$),It=li(k.info.currentBuffer$),qt=li(k.info.isEnded$),ut=li(k.info.isLive$),Li=te.features.playbackRate?li(k.info.canChangePlaybackSpeed$):yr(!1),Bi=li(k.info.liveBufferTime$),Go=li(k.info.volume$),Ao=li(k.info.muted$),oo=cu(k.info.predefinedQualityLimitType$.pipe(s0(c=>c===cs.TRAFFIC_SAVING)),k.info.predefinedQualityLimitType$.getValue()===cs.TRAFFIC_SAVING),Hi=cu(k.info.predefinedQualityLimitType$.pipe(s0(c=>c===cs.HIGH_QUALITY)),k.info.predefinedQualityLimitType$.getValue()===cs.HIGH_QUALITY),lr=li(k.info.autoQualityLimitingAvailable$),co=li(k.info.availableQualities$),uo=li(k.info.availableQualitiesFps$),Vi=li(k.info.chromecastState$),an=li(k.info.chromecastDeviceName$),Po=li(k.info.currentFormat$),dr=li(k.info.throughputEstimation$),cr=li(k.info.videoBitrate$),wr=li(k.info.intrinsicVideoSize$),Zr=li(k.info.duration$),ps=li(k.info.isAudioAvailable$),Xr=()=>{ni&&clearTimeout(ni),ni=null},bo=_i([Zr,ut],([c,$])=>$?-c:c),Un=_i([pt],([c])=>c===Rl.PLAYING),Mo=li(k.info.atLiveEdge$),ln=li(k.info.atLiveDurationEdge$),Cn=li(k.info.position$),ur=_i([Cn,Zr],([c,$])=>isFinite(c)&&isFinite($)&&!!$),Sr=_i([Vi],([c])=>c===Ny.CONNECTED),Cr=li(k.info.availableVideoStreams$),Tr=te.features.audioLanguages?li(k.info.availableAudioStreams$):yr([]),Er=li(k.info.currentVideoStream$),Qi=li(k.info.currentAudioStream$),Ir=c=>{c.language&&$f(c.language),k.setVideoStream(c)},Tn=(c,$)=>{k.setAudioStream(c),vo($)&&(c.language&&$f(c.language),te.features.userVideoPrefs&&i&&wf(te.userSalt,String(i),{audioTrackId:c.id}))},dn=c=>{let $;if(c.length===1&&($=c.at(0)),$!=null||($=c.find(ie=>"isDefault"in ie&&ie.isDefault)),te.features.userVideoPrefs&&i){let ie=mu(te.userSalt,String(i));if(ie!=null&&ie.audioTrackId){let Ae=c.find(rt=>rt.id===ie.audioTrackId);$=Ae!=null?Ae:$}}let L=u1();return L&&($!=null||($=c.find(({language:ie})=>L===ie))),$!=null||($=c.at(0)),$},po=c=>{ue.log("change audio stream",{id:c});let $=k.info.availableAudioStreams$.getValue().find(L=>L.id===c);$&&Tn($,!0)},pr=!1;Ze.add(k.info.availableAudioStreams$.subscribe(c=>{if(!pr&&c.length){let $=dn(c);$&&(k.setAudioStream($),pr=!0)}})),Tr.subscribe(c=>{var $;($=a==null?void 0:a.onAvailableAudioStreamsChanged)==null||$.call(a,c.map(({label:L="",id:ie="",language:Ae=""})=>({label:L,language:Ae,id:ie})))}),Qi.subscribe(c=>{var $;return c&&(($=a==null?void 0:a.onAudioStreamChanged)==null?void 0:$.call(a,c.id))});let En=!1;Ze.add(k.info.availableVideoStreams$.subscribe(c=>{if(!En&&c.length){let $=dn(c);$&&(k.setVideoStream($),En=!0)}}));let mt=se(void 0),pi=li(k.info.isAutoQualityEnabled$,c=>c&&mt.set(void 0)),kr=li(k.info.currentQuality$,()=>mt.set(void 0)),zn=_i([mt,kr],([c,$])=>c!=null?c:$),Ar=_i(Po,c=>c!==Gd.MPEG),In=_i([co,uo,pi,zn,Ar],([c,$,L,ie,Ae])=>{let rt=[];Ae&&rt.push({value:"auto",displayValue:ct("auto_quality_option"),selected:L});let Pt=c.filter(Bt=>!Hy(Bt));for(let Bt of Pt){let Kt=$[Bt];rt.push({value:Bt,displayValue:`${Bt}${Kt?e0(Kt):""}`,selected:L?!1:Bt===ie})}return rt}),kn=li(k.info.currentPlaybackRate$),Lo=_i([kn,Mo,ln],([c,$,L])=>{let ie=L||C?1:te.controls.playbackRateMin,Ae=$?1:te.controls.playbackRateMax,rt=te.controls.playbackRateStep,Pt=[];for(let Bt=ie;Bt<=Ae;Bt+=rt)Pt.push({value:Bt,displayValue:Bt===1?ct("playback_rate_1"):ct("playback_rate",{multiplier:Bt.toString(10)}),selected:c===Bt});return Pt}),Vo=()=>({displayValue:ct("subtitles_off"),value:Bn,language:""}),cn=se(Vo()),fo=_i([cn,Tt],([c],$)=>{c.value===Bn?$(Vo()):$(c)}),Ro=te.features.subtitles?li(k.info.availableTextTracks$):yr([]),jo=e1(),fr=_i([Ro,fo],([c,$],L)=>{var rt;let ie=[],Ae=c.find(({id:Pt})=>Pt===$.value);if(Ae!=null&&Ae.url){let[,Pt]=(rt=jo.find(Ae.url))!=null?rt:[];if(Pt){L(Pt);return}Fe.download(Ae.url).then(Bt=>{if(!Bt||Fe.isDestroyed())return;let Kt=new t0,Os=Ae.language;if(Os){let s_=!!Ae.isAuto,a_=Kt.parse(Bt,Os);ie.push({lang:Os,subtitles:a_,isAuto:s_,id:Ae.id})}jo.add(Ae.url,ie),be(fo).value===$.value&&L(ie)}).catch(Bt=>{var Kt;(Kt=X==null?void 0:X.oneStat)==null||Kt.logError({errorType:"Subtitles download",fatal:!1}),Y==null||Y.report(Bt,{errorType:"Subtitles download",fatal:!1})})}L(ie)}),Pr=_i([kn,Un,fo],([c,$,L],ie)=>{let Pt;if(k.info.isLive$.getValue()&&$&&L.value!==Bn){let Kt=()=>{let Os=1e3/(3*c);Pt=setTimeout(Kt,Os),ie(Date.now())};return Kt(),()=>clearTimeout(Pt)}}),un=_i([Ro,fo],([c,$])=>{if(!c.length)return[];let L=[];for(let{language:ie,isAuto:Ae,id:rt}of c){let Pt=ie&&Qd(ie);ie&&Pt&&L.push({displayValue:Ae?ct("subtitles_auto",{language:Pt}):Pt,value:rt,selected:($==null?void 0:$.value)===rt,isAuto:Ae,language:ie})}return L.length?(L.unshift({...Vo(),selected:($==null?void 0:$.value)===Bn}),L):[]}),Fi={available:[],prev:[]},vr=()=>{var $,L;let c=k.experimental.getCurrentTime$.getValue();return(L=($=c==null?void 0:c())!=null?$:Ie==null?void 0:Ie.currentTime)!=null?L:0},Mr=_i([ei,fo,fr,Pr],([c,$,L,ie])=>{var rt;let Ae=k.info.isLive$.getValue();if(Ae&&Fi.prev!==L){let Pt=L.find(({id:Kt})=>Kt===$.value),Bt=Fi.prev.find(({id:Kt})=>Kt===$.value);if(Pt){let Kt={...Pt,subtitles:[...(rt=Bt==null?void 0:Bt.subtitles)!=null?rt:[],...Pt.subtitles]};Fi.available=[Kt],Fi.prev=L}}if($&&$.value!==Bn){let Pt=Ae?vr():c,Bt=Ae?Fi.available:L;return n0(Pt,$,Bt,Ae)}}),An=_i([Mr],([c])=>c!=null&&c.texts?c.texts:[]);Ze.add(fo.subscribe(c=>{var $,L;if(c.value===Bn)($=a==null?void 0:a.onSubtitleOff)==null||$.call(a);else{let ie=Object.entries(Du).find(([Ae,rt])=>rt===c.displayValue);(L=a==null?void 0:a.onSubtitleOn)==null||L.call(a,ie?ie[0]:"",c.value)}}));let Wn=se(!0),Lr=_i([It,bo,Cn,Bi],([c,$,L,ie])=>{var Bt;let Ae=(Bt=c==null?void 0:c.end)!=null?Bt:0;if(!ie)return Ae/$;let Pt=-L+ie-$;return(Ae-Pt)/$}),Kn=li(k.info.availableSources$),tt=_i([Kn],([c])=>Object.keys((c==null?void 0:c[Gd.MPEG])||{}).length>0),ri=()=>{var L,ie,Ae;let c=Object.keys(((ie=(L=k.info.availableSources$)==null?void 0:L.getValue())==null?void 0:ie[Gd.MPEG])||{}),$=Dy(c)||Qy.Q_144P;return(Ae=J.sources[Gd.MPEG])==null?void 0:Ae[$]},Ri=()=>{var $;let c=ri();if(c)ue.log("download video",{url:c}),Zh(c,(($=J==null?void 0:J.meta)==null?void 0:$.title)||"video");else{let L="There is no URL for download video";ue.log("download video",{message:L}),me({message:L})}},Ni=()=>{me({message:"toggle muted"});let c=k.info.muted$.getValue();k.info.volume$.getValue()===0&&!c?qn(Pn(),!1):Qn(!c,!1)},pn=()=>{var c;if(zt.ui.settingsMenu.visible$.set(!1),!be(zt.ui.settingsSubMenu.visible$)){let $=be(zt.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&$){let ie=Ll($),Ae={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:ie,position:Ae,name:"settings"})}}ue.log("close settings menu")},$o=async(c,$=()=>Promise.resolve())=>{var Ae;zt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),zt.ui.settingsMenu.visible$.set(!0),await $();let L=be(zt.ui.settingsMenu.ref$),ie=aa();if((Ae=a==null?void 0:a.uiInfo)!=null&&Ae.onSettingsMenu&&L&&ie){let Pt=Ll(L),Bt=ks(L,ie);a.uiInfo.onSettingsMenu({visible:!0,size:Pt,position:Bt,name:"settings"})}ue.log("open settings menu",{wasOpenedByKeyboard:c})},yo=(c,$=!1)=>{var rt;zt.ui.settingsSubMenu.visible$.set(!1);let L=be(zt.ui.settingsMenu.ref$),ie=aa(),Ae=be(zt.ui.settingsMenu.visible$);if((rt=a==null?void 0:a.uiInfo)!=null&&rt.onSettingsMenu&&L&&ie)if(Ae&&!$){let Bt=Ll(L),Kt=ks(L,ie);a.uiInfo.onSettingsMenu({visible:!0,size:Bt,position:Kt,name:"settings"})}else{let Bt=Ll(c),Kt={top:0,left:0,bottom:0,right:0},Os=be(zt.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:Bt,position:Kt,name:Os})}ue.log("close settings sub menu")},vi=(c,$)=>{var ie;zt.ui.settingsSubMenu.visible$.set(!0),zt.ui.settingsSubMenu.ref$.set($),zt.ui.settingsSubMenu.name$.set(c);let L=aa();if((ie=a==null?void 0:a.uiInfo)!=null&&ie.onSettingsMenu&&$&&L){let rt=Ll($),Pt=ks($,L);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:rt,position:Pt})}ue.log("open settings sub menu",{name:c})},Pn=()=>{var $;let c=Math.max(te.volumeMinRestore,($=uu())!=null?$:0);return c===0?te.volumeDefault:c},vo=c=>{let $=te.features.savePreferredStatesOnUserActionOnly;return!$||$&&!c},qn=(c,$)=>{let L=c===0?Pn():c,ie=k.info.muted$.getValue();me({message:`set volume, volume: ${c}, preferredVolume: ${L}`});let Ae=!l||ye.is("ads");ie&&c>0&&Ae&&(ie=!1,vo($)&&_f(!1)),k.setVolume(c,ie),Ve.setVolume(c),vo($)&&ff(L)},Qn=(c,$)=>{let L=k.info.volume$.getValue();me({message:`set muted, currentVolume: ${L}, mute: ${c}`});let ie=ye.is("ads");if(k.setMuted(c,ie),Ve.setVolume(c?0:L),vo($)&&(!ie||!c)&&_f(c),!c&&L===0){let Ae=Pn();k.setVolume(Ae),vo($)&&ff(Ae),Ve.setVolume(Ae)}},Vr=se(!1),Rr=c=>{var $,L;ue.log("set looped",{isLooped:c}),Vr.set(c),k.setLooped(c),(L=($=a==null?void 0:a.uiInfo)==null?void 0:$.onLoopedChanged)==null||L.call($,c)};Rr(de);let fn=()=>{var c,$;($=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||$.call(c)},vn=(c,$=!1)=>{var L;me({message:`set autoplayNextEnabled, value: ${c}`}),ue.log("set autoplay next enabled",{autoplayNextEnabled:c}),zt.ui.autoplayNextEnabled$.set(c),v1(c),$&&((L=a==null?void 0:a.onSetAutoplayNextEnabled)==null||L.call(a,c))},mr=c=>{me({message:`set timerNextVideoRunning, value: ${c}`}),ue.log("set timer next video running",{timerNextVideoRunning:c}),zt.ui.timerNextVideoRunning$.set(c)},mn=(c=!0)=>{var L;let $=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{$=(L=a==null?void 0:a.onPrevVideoClick)==null?void 0:L.call(a)}catch(ie){me({message:"onPrevVideoClick callback failed to execute"})}q(!0),$&&Z()},Nr=(c=!0)=>{var L;let $=!0;if(c&&(a!=null&&a.onNextVideoClick))try{$=(L=a==null?void 0:a.onNextVideoClick)==null?void 0:L.call(a)}catch(ie){me({message:"onNextVideoClick callback failed to execute"})}q(!1),$&&ae()},et=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},At=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},yi=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},mo=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},No=()=>{k.prepare()},xo=()=>{sr(zt);let c=be(zt.ui.controls.disabledControls$),$=be(zt.playerPhase),L={playerPhase:$,isInteractive:C,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(me({message:"toggle play"}),$==="ads"){L.action="play",ue.log("toggle adman play",L),Ve.togglePlay();return}let ie=()=>{var rt;me({message:"toggle play, call player.play"}),L.action="play",k.play(),(rt=a==null?void 0:a.onPlay)==null||rt.call(a)},Ae=()=>{var rt;me({message:"toggle play, call player.pause"}),L.action="pause",k.pause(),(rt=a==null?void 0:a.onPause)==null||rt.call(a)};if(k.info.isEnded$.getValue()){if(me({message:"toggle play, video ended, seek to 0"}),Ii.next(),Qt.next(As.REWIND),C){R==null||R();return}k.seekTime(0),ie()}else k.info.playbackState$.getValue()!==Rl.PLAYING?ie():Ae();ue.log("toggle play",L)},Gi=(c,{changeReason:$="default",appliesTo:L="to-video"}={},ie)=>{me({message:`set quality, quality: ${c}`}),ue.log("set quality",{quality:c}),k.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Ae}=te.features;pu(),c!=="auto"?(Ae?(fu({type:"exact_quality",quality:c,videoId:i},L),k.setPredefinedQualityLimits(cs.UNKNOWN)):vf(i,c),mt.set(c),k.setQuality(c)):Ae&&$==="default"&&(wo("auto_quality",L,ie),be(oo)&&ki(!1,void 0,ie),be(Hi)&&Yo(!1,void 0,ie))},ki=(c,$="as-default",L)=>{me({message:`set trafficSavingEnabled, value: ${c}`}),ue.log("set traffic saving enabled",{trafficSavingEnabled:c});let ie=c?cs.TRAFFIC_SAVING:cs.UNKNOWN;te.features.qualityDetailsSubMenuEnabled?(Oo(ie,$,L),xd(!1)):(k.setPredefinedQualityLimits(ie),vo(L)&&xd(c))},Yo=(c,$="as-default",L)=>{me({message:`set highQualityEnabled, value: ${c}`}),ue.log("set high quality enabled",{highQualityEnabled:c}),Oo(c?cs.HIGH_QUALITY:cs.UNKNOWN,$,L)},Oo=(c,$,L)=>{c!==cs.UNKNOWN&&(be(lr)&&!be(pi)&&Gi("auto",{appliesTo:$,changeReason:"limit-changed"},L),wo(c,$,L)),k.setPredefinedQualityLimits(c)},wo=(c,$,L)=>{vo(L)&&(fu({type:c,videoId:i},$),$==="as-default"&&fu({type:c,videoId:i},"to-video"))},ji=(c,$=!0)=>{ue.log("set playback rate",{playbackRate:c}),k.setPlaybackRate(c),te.features.saveRate&&fe&&!k.info.isLive$.getValue()&&$&&p1(c)},Or=()=>{let c=be(Lo),$=c.findIndex(({selected:ie})=>ie);if($===c.length-1)return;let L=c[$+1];ji(L.value)},Gn=()=>{let c=be(Lo),$=c.findIndex(({selected:ie})=>ie);if($===0)return;let L=c[$-1];ji(L.value)},jn=(c={...Vo(),selected:!1},$)=>{ue.log("set subtitles",{...c}),c.value!==Bn&&St.next(c.isAuto?c.value+"_auto":c.value),cn.set(c),vo($)&&(xf(c.value===Bn?void 0:c.language),te.features.userVideoPrefs&&i&&wf(te.userSalt,String(i),{subtitleTrackId:c.value===Bn?void 0:c.value}))},gr=c=>{ue.log("toggle subtitles");let $=be(fo);($==null?void 0:$.value)===Bn?Dr(c):Jr(c)},fs=(c,$)=>{ue.log("change subtitle",{enabled:c}),c?Dr(!0,$):Jr(!0)},Dr=(c,$)=>{ue.log("subtitle on");let L=be(un),ie=be(Pe),Ae=Ge!=null?Ge:ie,rt;$&&(rt=L.find(Pt=>Pt.value===$)),rt!=null||(rt=L.filter(Pt=>Pt.value!==Bn).find(Pt=>Pt.language===Ae)),jn(rt!=null?rt:L[1],c)},Jr=c=>{ue.log("subtitle off"),jn(void 0,c)};Ze.add(k.info.availableTextTracks$.subscribe(c=>{var L;function $(){let ie=[];for(let{language:Ae,isAuto:rt,id:Pt}of c){let Bt=Ae&&Qd(Ae);Ae&&Bt&&ie.push({id:Pt,language:Ae,title:rt?ct("subtitles_auto",{language:Bt}):Bt})}return ie}(L=a==null?void 0:a.onAvailableSubtitlesChanged)==null||L.call(a,$())}));let Qe=se(!0),Yt=c=>{Qe.set(c)},mi=(c,$,L=!0)=>{var ie;if(me({message:`seek to time, time: ${c}`}),ue.log("seek to time",{time:c,action:$,forcePrecise:L}),Qt.next($),k.info.isLive$.getValue()){let Ae=k.info.duration$.getValue(),rt=Math.min(0,Ae+c);k.seekTime(rt,L)}else{if(E!=null&&E.getValue())return;k.info.isEnded$.getValue()&&(me({message:"seek after ended, call callbacks.onPlay"}),(ie=a==null?void 0:a.onPlay)==null||ie.call(a)),k.seekTime(Jo(c),L)}},gn=c=>{me({message:`seek to episode start time: ${c}`}),ue.log("seek to episode start time",{time:c}),mi(c,As.EPISODE,!0)},Do=(c,$,L=!1)=>{me({message:`seek to percent, percent: ${c}`}),ue.log("seek to percent",{percent:c,action:$});let ie=be(bo)*c;mi(ie,$,L)},Br=c=>{me({message:`seek external, time: ${c}`}),ue.log("seek external",{time:c}),Qt.next(As.UNKNOWN),k.seekTime(k.info.isLive$.getValue()?-c:c)},Zo=c=>{var ie,Ae;let $=(ie=c.max)!=null?ie:"none",L=(Ae=c.min)!=null?Ae:"none";me({message:`set auto quality limitation. Max: ${$}. Min: ${L}`}),ue.log("set auto quality limits",{max:$,min:L}),k.setAutoQualityLimits(c)},Hr=c=>{me({message:`seek external to episode start time: ${c}`}),ue.log("seek external to episode start time",{time:c}),mi(c,As.EPISODE,!0)},Vs=c=>{me({message:`set playback rate to: ${c}`}),ue.log("set playback rate external",{playbackRate:c}),k.setPlaybackRate(c)},Yi=se(!1),Fr=se(!1),ea=_i([bo],([c])=>!!v&&c>=te.suitableDurationForUsingRichSeek&&te.features.useRichSeek&&!C),gt=((v==null?void 0:v.frameWidth)||0)>=((v==null?void 0:v.frameHeight)||0),ci=_i([Ct],([c])=>{let $=Vl(c);return gt?!$:$});Ze.add(ye.subscribe(c=>{c!=="video"&&Yi.set(!1)}));let go=se(void 0),hn=se(!1),$e=c=>{me({message:`start scrubbing, progress: ${c}`}),ue.log("start scrubbing",{progress:c}),hn.set(!0),ft(c)},ft=c=>{go.set(c)},si,xi,ui=()=>{go.set(void 0),hn.set(!1)},Zt=()=>{clearTimeout(xi),clearTimeout(si),si=window.setTimeout(()=>{ui()},500),Ie==null||Ie.removeEventListener("seeked",Zt)},Ci=(c,$=!1)=>{me({message:`complete scrubbing, progress: ${c}`}),ue.log("complete scrubbing",{progress:c}),Do(c,As.SLIDER,$),be(zt.ui.isMobile)&&be(zt.state.currentFormat$)===Gd.HLS?(Ie==null||Ie.addEventListener("seeked",Zt),xi=window.setTimeout(()=>{Zt()},300)):ui()},_n=_i([ei,bo,go],([c,$,L],ie)=>{ie(Fy(L)?L*$:c)}),Xo=se(!1),Ai=()=>{Xo.set(!0)},Qa=()=>{Xo.set(!1)},ta=_i([Jt],([{width:c}],$)=>{let L=Z1(c);$(L)}),ia=H.filter(c=>Xh(c)),oa=_i([ta,dt],([c,$])=>$?ia.filter(L=>!L.hideOnMobile):ia.filter(L=>{var ie;return!((ie=L.hideOnDesktopGridTypes)!=null&&ie.includes(c))})),Yn=se(H.filter(c=>Jh(c))),vs=_i([Yn,ta],([c,$])=>c.filter(L=>{var ie;return!((ie=L.hideOnDesktopGridTypes)!=null&&ie.includes($))})),na=_i([vs,oa],([c,$])=>[...te.features.additionalButtonsDesktopControlPanelRight?c.filter(L=>L.type==="desktop-control-panel-right"):[],...te.features.additionalButtons?$.map((L,ie)=>{var Ae;return{id:ie,weight:ie,type:"desktop-control-panel-right",testId:L.testId,icon:L.iconUrl,onClick:L.onClick,ariaLabel:(Ae=L.ariaLabel)!=null?Ae:L.tooltip,tooltipText:L.tooltip}}):[]]),hr=se(B),Ga=_i([hr],([c])=>te.features.additionalSettingsMenuItems?c.map($=>$.type==="SWITCH"?{...$,onClick:$.onChangeEnabled}:$):[]),ms=(c,$)=>{let L=be(Yn).map(ie=>ie.id!==c?ie:{...ie,...$});Yn.set(L)},gs=c=>{let $=be(Yn);if($.some(L=>L.id===c.id)){me({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}$.push(c),Yn.set($)},ja=c=>{let $=be(Yn);if(!$.some(L=>L.id===c)){me({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}$=$.filter(L=>L.id!==c),Yn.set($)},ra=c=>{Qt.next(As.LIVE),me({message:"live switch to low latency "+c}),ue.log("live switch to low latency "+c),k.setLiveLowLatency(c)},zl=(c,$)=>{let L=be(hr).map(ie=>ie.id!==c?ie:{...ie,...$});hr.set(L)},Ya=c=>{let $=be(hr);if($.some(L=>L.id===c.id)){me({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}$.push(c),hr.set($)},Wl=c=>{let $=be(hr);if(!$.some(L=>L.id===c)){me({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}$=$.filter(L=>L.id!==c),hr.set($)},Zn=se(z),Kl=_i([Zn],([c])=>te.features.additionalContextMenuItems?c:[]),Za=(c,$)=>{let L=be(Zn).map(ie=>ie.id!==c?ie:{...ie,...$});Zn.set(L)},Xa=c=>{let $=be(Zn);if($.some(L=>L.id===c.id)){me({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}$.push(c),Zn.set($)},sa=c=>{let $=be(Zn);if(!$.some(L=>L.id===c)){me({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}$=$.filter(L=>L.id!==c),Zn.set($)},ht=_i([dt,ee],([c,$],L)=>{L(c&&$)}),_t=()=>{Qt.next(As.LIVE),me({message:"switch to active live"}),ue.log("switch to active live"),k.seekTime(0),k.info.playbackState$.getValue()!==Rl.PLAYING&&zt.actions.internal.togglePlay()},Zi=()=>{ue.log("skip adman"),Ve.skip()},So=(c=!0)=>{var ie;sr(zt),me({message:`switch from ads to video, callPlay: ${c}`}),ue.log("switch from ads to video",{callPlay:c}),bt.set("video"),c&&k.play(),l&&Qn(!0,!0);let $=(ie=be(it))==null?void 0:ie.muted,L=!k.info.muted$.getValue();$!==void 0&&!L&&Qn($,!0),it.set(void 0)},Xi=()=>{sr(zt),me({message:"switch from video to ads"}),ue.log("switch from video to ads"),zt.actions.internal.pause(),je(),bt.set("ads")},gi=c=>{sr(zt);let $=c?"LiveWaitingStart":"thumb";ue.log("set live waiting start",{state:c,playerPhase:$}),bt.set($)},Ui=c=>{sr(zt);let $=c?"LiveWaitingRecover":"thumb";ue.log("set live waiting recover",{state:c,playerPhase:$}),bt.set($)},Rs=c=>{sr(zt);let $=c?"LiveWaitingRecord":"thumb";ue.log("set live waiting record",{state:c,playerPhase:$}),bt.set($)},ql=()=>(sr(zt),ue.log("get debug text data"),jh(k,J,zt,Ne.getTraceId())),Sc=()=>(sr(zt),JSON.stringify(Ne.getFinishedSpans())),dp=()=>(sr(zt),Yh(k,J,zt)),aa=()=>Ie,Cc=()=>{me({message:"toggle chromecast"}),ue.log("toggle chromecast"),k.toggleChromecast()},Ns=c=>{var L;if(sr(zt),k.info.isEnded$.getValue())return;let $=!c;if(be(zt.playerPhase)==="ads"){me({message:`pause ads, internalCall: ${$}`}),ue.log("pause ads",{internalCall:$}),Ve.pause();return}me({message:`pause video, internalCall: ${$}`}),ue.log("pause video",{internalCall:$}),$&&((L=a==null?void 0:a.onPause)==null||L.call(a)),k.pause()},Ja=c=>{var L;sr(zt);let $=!c;if(be(zt.playerPhase)==="ads"){me({message:`play ads, internalCall: ${$}`}),ue.log("play ads",{internalCall:$}),Ve.play();return}me({message:`play video, internalCall: ${$}`}),ue.log("play video",{internalCall:$}),$&&((L=a==null?void 0:a.onPlay)==null||L.call(a)),k.play()},Tc=c=>{sr(zt);let $=!c;if(be(zt.playerPhase)==="ads"){me({message:"player cannot be stopped during ads via external method"});return}me({message:`player will be stopped, internalCall: ${$}`}),A==null||A()},Ec=(c,$)=>{sr(zt),me({message:`first start, show ads: ${c}, internalCall: ${!$}`}),ue.log("first start",{showAds:c,external:$}),c?bt.set("ads"):(bt.set("video"),$?k.play():zt.actions.internal.togglePlay())},el=()=>(me({message:"getting time codes"}),f),Ic=()=>{let c=el();if(!c||[0,1].includes(c.length))return;let $=k.info.position$.getValue();return c.find(L=>L.time>$)},kc=c=>{let $=c;$||($=Ic());let L=k.info.position$.getValue();ue.log("seek to next episode",{currentTime:L,...$}),$&&(me({message:"seek to next episode"}),mi($.time,As.EPISODE,!0))},Ac=()=>{let c=el();if(!c||[0,1].includes(c.length))return;let $=k.info.position$.getValue(),L=c.findIndex(Ae=>Ae.time>$),ie=L===-1?c.length-2:L-2;if(!(ie<0))return c[ie]},cp=c=>{let $=c;$||($=Ac());let L=k.info.position$.getValue();ue.log("seek to prev episode",{currentTime:L,...$}),$&&(me({message:"seek to prev episode"}),mi($.time,As.EPISODE,!0))},up=()=>(me({message:"getting preview thumbs data"}),ue.log("get preview thumbs data",{...v}),v),Ue=async()=>{let c=oe==null?void 0:oe.isActive(),$="none";oe!=null&&oe.isActive()?($="exit",await(oe==null?void 0:oe.exit())):($="request",await(oe==null?void 0:oe.request())),ue.log("toggle picture in picture",{isActive:c,action:$})},hi=(c=-90)=>{ue.log("rotate video",{alphaDiff:c}),Ct.update($=>$+c)},no=se([]);T==null||T.subscribe(c=>{let $=[];for(let L=0;L<c.length;L++){let{range:[ie,Ae],subjects:rt}=c[L];L===0&&ie!==0&&$.push({time:0,text:"",interactive:!1,completed:!0}),$.push({time:ie/1e3,text:"",interactive:!0,completed:te.features.interactiveTimeOpenUri?!rt.length||rt.every(Pt=>Pt.isRemoved):!rt.length}),Ae!==1/0&&$.push({time:Ae/1e3,text:"",interactive:!1,completed:!0})}no.set($)});let la=se(!1);E==null||E.subscribe(c=>{c&&be(hn)&&ui()});let Jo=c=>{if(!C)return c;let $=be(no),L=be(bo),Ae=be(Cn)/L,rt=$.find(Pt=>Pt.interactive&&!Pt.completed&&Pt.time>Ae);return typeof(rt==null?void 0:rt.time)=="number"?Math.min(c,rt.time-.05):c},J0=()=>{zt.ui.episodes.panelOpened$.set(!1)},e_=()=>{ue.log("destroy store"),clearTimeout(xi),clearTimeout(si),Ze.unsubscribe(),$i.unsubscribe(),k.destroy(),Ve.destroy(),X==null||X.destroy(),Y==null||Y.destroy(),xe.unsubscribe(),ti==null||ti.disconnect(),ti=null,Fe.destroy()},t_=_i([Mo,ye,Li],([c,$,L])=>p.features.doubleForwardAvailable&&!c&&$==="video"&&L),pp=se(!1),jm=2,Pc=null,Ym=c=>{if(!be(Un)&&c)return;let $=k.info.currentPlaybackRate$.getValue();c?$!==jm&&(Pc=$,ji(jm,!1),pp.set(!0)):(Pc&&ji(Pc,!1),pp.set(!1),Pc=null)};ye.subscribe(c=>{c!=="video"&&Ym(!1)});let i_=()=>{Ns(!1),Yi.set(!0)},o_=()=>{Ja(!1),Yi.set(!1)},fp=!1,n_=()=>{Fr.set(!0),fp=k.info.playbackState$.getValue()===Rl.PLAYING,Ns(!1)},r_=()=>{Fr.set(!1),!be(Yi)&&fp&&Ja(!1),fp=!1};k.events.playing$.subscribe(()=>{be(Yi)&&Ns(!1)});let zt={interfaceLanguage$:Pe,isCyrillicRelatedInterface$:Oe,initVideo:lo,videoId:i,isClip:o,playerPhase:ye,vsid:Je,state:{positionExact$:ei,positionWithScrubbing$:_n,duration$:bo,playbackState$:pt,isPlaying$:Un,isLoaderVisible:bi,bufferedProgress$:Lr,isLive$:ut,canChangePlaybackSpeed$:Li,isActiveLive$:Mo,isOldestAvailableLive$:ln,isRewindableLive$:ur,isEnded$:qt,muted$:Ao,volume$:Go,trafficSavingEnabled$:oo,highQualityEnabled$:Hi,autoQualityLimitingAvailable$:lr,availableVideoStreams$:Cr,availableAudioStreams$:Tr,videoStream$:Er,audioStream$:Qi,currentQuality$:zn,isAutoQualityEnabled$:pi,availableQualities$:In,currentPlaybackRate$:kn,availablePlaybackRates$:Lo,currentSubtitle$:fo,availableTextTracks$:Ro,availableSubtitlesList$:un,currentSubtitleCaptions$:An,isAutoSubtitleCaptionVisible$:Wn,chromecastState$:Vi,chromecastDeviceName$:an,chromecastConnected$:Sr,currentFormat$:Po,throughputEstimation$:dr,videoBitrate$:cr,videoSize$:wr,errorLog$:Se,crashed$:ee,isAudioAvailable$:ps,isAudioDisabled:!!l,canDownload:te.features.download&&!!d,availableSources$:Kn,hasMpegSources$:tt,isInteractive:C,showInteractiveGraph:te.features.interactiveGraph,showSeekToInteractive:te.features.seekToInteractive,showPlayPrevChapter:te.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:te.features.interactiveTimeIndicator&&!!be(no).length,interactiveEpisodes$:no,isInteractiveTime$:E?li(E):se(!1),isInteractiveExpectation$:la,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:O,looped$:Vr,loadedMetadata$:Xt,isAutoQualityAvailable$:Ar,previewTrackActive:Yi,previewTrackDragInProgress:Fr},ui:{t:ct,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:H.length?H.reduce(c=>[...c,se(void 0)],[]):[],disabledControls$:at},modals:{hotKeyMap:{show:se(!1),data:se({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Ot,isFullscreenOpenedByKeyboard:nt,rotateAlpha:Ct,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:Jt,isMobile:dt,mobileNotReportControlHidden$:ht,icon3DVideoVisible:se(!1),scrubbingInProgress:hn,volumeChangingInProgress:Xo,is3DVideo:Ut,currentGridType$:ta,additionalButtonsDeprecated$:oa,additionalDesktopControlPanelRightButtons$:na,additionalSettingsMenuItems$:Ga,additionalContextMenuItems$:Kl,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)},userActionsDisabled:se(!1),hiddenControls:{volume:se(!1),vkLogo:se(!1),pip:se(!1),chromecast:se(!1),settings:se(!1)},isControlsAvailable:Qe,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),doubleForwardOn$:pp,doubleForwardAvailable$:t_,previewTrackNotificationVisible:se(!1),previewTrackActive:Yi,previewTrackDragInProgress:Fr,previewTrackAvailable:ea,isPreviewTrackHorizontallyAligned:ci},ads:{position:se(0),duration:se(0),playbackState:se("inactive"),canSkip:se(!1),secondsToWatchBeforeSkip:se(0),postrollPassed:se(!1)},webApi:{pictureInPictureApi:oe,annotationsApi:Be,slotsApi:Ye},actions:{internal:{preload:No,firstStart:c=>Ec(c,!1),play:()=>Ja(!1),pause:()=>Ns(!1),togglePlay:xo,toggleMuted:Ni,openSettingsMenu:$o,closeSettingsMenu:pn,openSettingsSubMenu:vi,closeSettingsSubMenu:yo,setVolume:c=>qn(c,!1),setMuted:c=>Qn(c,!1),startVolumeChanging:Ai,stopVolumeChanging:Qa,setVideoStream:Ir,setAudioStream:c=>Tn(c,!1),setQuality:(c,$)=>Gi(c,$,!1),setTrafficSavingEnabled:(c,$)=>ki(c,$,!1),setHighQualityEnabled:(c,$)=>Yo(c,$,!1),setPlaybackRate:ji,incrementPlaybackRate:Or,decrementPlaybackRate:Gn,setSubtitle:c=>jn(c,!1),toggleSubtitle:()=>gr(!1),togglePictureInPicture:Ue,startScrubbing:$e,progressScrubbing:ft,completeScrubbing:Ci,toggleChromecast:Cc,switchToActiveLive:_t,switchFromAdsToVideo:So,switchFromVideoToAds:Xi,skipAd:Zi,setLiveWaitingStart:gi,setLiveWaitingRecover:Ui,setLiveWaitingRecord:Rs,getDebugTextData:ql,getTraceTextData:Sc,getDebugPanelData:dp,getVideoElement:aa,seekTime:(c,$,L)=>mi(c,$,L),clearDelayedBufferingCheckTimeout:Xr,seekEpisodeStartTime:gn,seekToPercent:Do,getNextEpisode:Ic,seekToNextEpisode:kc,getPrevEpisode:Ac,seekToPrevEpisode:cp,startLogging:_o,stopLogging:Qo,startCameraManualRotation:sn,stopCameraManualRotation:Et,moveCameraFocusPX:Dt,holdCamera:K,releaseCamera:Mt,getVideoEpisodes:el,getPreviewThumbsData:up,downloadVideo:Ri,addLanguage:Sf,setLanguage:Ce,nextMovie:vt,videoRotate:hi,correctSeekTimeToInteractive:Jo,replayInteractive:R,setLooped:Rr,reportProblem:fn,setAutoplayNextEnabled:vn,setTimerNextVideoRunning:mr,prevVideoClick:mn,nextVideoClick:Nr,nextVideoAnnouncementShow:et,nextVideoAnnouncementClick:At,nextVideoAnnouncementAuto:yi,nextVideoAnnouncementCancel:mo,checkFullscreenSupport:Nt,changeDoubleForwardOn:Ym,closePreviewTrack:o_,previewTrackOpened:i_,previewTrackDragStarted:n_,previewTrackDragFinished:r_},external:{firstStart:c=>Ec(c,!0),play:()=>Ja(!0),pause:()=>Ns(!0),stop:()=>Tc(!0),seekTime:c=>Br(c),seekEpisodeStartTime:c=>Hr(c),setPlaybackRate:c=>Vs(c),setAutoQualityLimits:c=>Zo(c),setMuted:c=>Qn(c,!0),toggleSubtitle:()=>gr(!0),changeSubtitle:fs,setVolume:c=>qn(c,!0),returnFocusToEpisodes:J0,updateAdditionalSettingsItem:zl,addAdditionalSettingsItem:Ya,removeAdditionalSettingsItem:Wl,updateAdditionalContextItem:Za,addAdditionalContextItem:Xa,removeAdditionalContextItem:sa,updateAdditionalButton:ms,addAdditionalButton:gs,removeAdditionalButton:ja,setLiveLowLatency:ra,hideControls:()=>Yt(!1),showControls:()=>Yt(!0),setQuality:c=>Gi(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>ki(c,"to-video",!0),setHighQualityEnabled:c=>Yo(c,"to-video",!0),changeAudioStream:po}},callbacks:a,setUiCallbacks:c=>{ge={...c}},getAdmanWrapper:()=>Ve,getLogger:()=>Ke,getPlayer:()=>k,destroy:e_};return zt};function Hn(t,e,i,o){var f;let r=(f=e[i])==null?void 0:f.getBoundingClientRect(),s=o&&!!r&&!!(r.right-r.left),{top:l,left:d,bottom:a,right:u}=ks(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 Xy=["disabledControls$","additionalButtons"],Jy=["interactiveTimeIndicator"],Ol=(t,e,i,o)=>{if(t){for(let[r,s]of Object.entries(e))if(!Xy.includes(r)){let l=o||Jy.includes(r);s.set(Hn(t,i,r,l))}}};var zu=async(t,e,i)=>{await Eo(),e&&i&&(i.focus(),t.set(!1))};var e4=Ee('<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 _v(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=e4();ke(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 r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}function bv(t,e){F(e,!0);let[i,o]=De(),r=()=>S(a,"$contextMenuVisible$",i),s=h(e,"disabled",3,!1),l=h(e,"ariaLabel",3,""),d=he(),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$,y=Q(void 0);ze(()=>{n(y)&&kt(()=>{p.set(n(y))})});let w=E=>{let R=Ys(E),A=z1(n(y));v.set(A),u.set(R),a.set(!r())},x=()=>{f.set(!0)},C=()=>{f.set(!1)},T=m(()=>r()?"opened":"");Ft(t,{get className(){return n(T)},testId:"btn-context-menu",get disabled(){return s()},get ariaLabel(){return l()},click:w,focus:x,blur:C,get ariaExpanded(){return r()},get ref(){return n(y)},set ref(E){N(y,E,!0)},children:(E,R)=>{_v(E,{})},$$slots:{default:!0}}),U(),o()}var t4=t=>{t.stopPropagation()},i4=M("<div><!> <div></div> <div></div></div>"),o4={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
234
234
 
235
235
  @media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
236
236
  }
@@ -255,8 +255,16 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},Jh=tb;var $
255
255
  opacity: 0;
256
256
  }
257
257
  }.pulse.svelte-od3veb {display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);
258
- animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function Id(t,e){var Q;U(e,!0),K(t,Hy);let[i,o]=Be(),n=()=>S(T,"$isMobile",i),s=()=>S(I,"$areControlsVisible",i),l=()=>S(B,"$currentGridType$",i),d=()=>S(E,"$isInteractiveTime$",i),a=()=>S(x,"$interactiveControlsOpacity$",i),p=()=>S(R,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>S(C,"$isFullscreen",i),m=v(e,"ref",15,void 0),u=X(void 0),y=Ce(),w=lo(),{interactiveControlsOpacity$:x}=w,T=y.ui.isMobile,C=y.ui.isFullscreen,E=y.state.isInteractiveTime$,R=w.showInteractiveTimeIndicatorTooltip$,I=y.ui.controlsVisible,k=(Q=y.callbacks)==null?void 0:Q.onInteractiveTimeIndicatorClick,B=y.ui.currentGridType$,F=g(()=>!n()&&s()),H=g(()=>xs(l(),"s")),W=g(()=>!d()||!!a()||r(F)),Y=X(!1);qe(()=>{O(Y,r(W),!0)});let oe=()=>{O(Y,!0)},G=()=>{var te;he(),(te=r(u))==null||te.addEventListener("animationiteration",oe,{once:!0})},he=()=>{var te;O(Y,!1),(te=r(u))==null||te.removeEventListener("animationiteration",oe)},J=te=>{R.set(te)},pe=g(()=>p()&&!r(W));qe(()=>{p()?G():he()});let me=()=>{r(W)||(R.set(!0),k==null||k())};Jo(()=>{R.clearTimeout(),he()});let ue=()=>{R.set(!1)},Le=q("tooltip_interactive_interaction_time_indicator");var Me=Fy();let le;Me.__mousemove=[Dy],Me.__click=me;var Ne=_(Me);yo(Ne,{get tooltipContent(){return Le},get tooltipActive(){return r(pe)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:J,get ref(){return m()},set ref(te){m(te)},children:(te,Re)=>{bd(te,{completed:!0})},$$slots:{default:!0}});var re=A(Ne,2);let P;st(re,te=>m(te),()=>m());var ot=A(re,2);let Oe;st(ot,te=>O(u,te),()=>r(u)),h(Me),D((te,Re,Je)=>{le=ne(Me,1,"interactive-episode-icon-animated svelte-od3veb",null,le,te),P=ne(re,1,"ref-block svelte-od3veb",null,P,Re),Oe=ne(ot,1,"pulse svelte-od3veb",null,Oe,Je)},[()=>({mobile:n(),fullscreen:f(),invisible:r(W),"icon-small":r(H)}),()=>({hidden:r(W)}),()=>({paused:r(Y)})]),Ct("mouseleave",Me,ue),$(t,Me),z(),o()}dt(["mousemove","click"]);function Tu(t,e){U(e,!0);let i=v(e,"tooltipEnabled",3,!0),o=v(e,"disabled",3,!1),n=v(e,"className",3,void 0),s=v(e,"ref",15);yo(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 p=g(()=>e.buttonComponent);var f=fe(a);Ai(f,()=>r(p),(m,u)=>{u(m,bs(()=>{var y;return(y=e.buttonComponentProps)!=null?y:{}}))}),$(l,a)},$$slots:{default:!0}}),z()}var Cs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var zy=we('<svg><!><path fill="var(--btn-color, #fff)" d="M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"></path></svg>');function um(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=zy();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 s;return(s=e.children)!=null?s:ae}),xe(),h(o),$(t,o)}function kd(t,e){let i=v(e,"isPrev",3,!1),o=v(e,"isMobile",3,!1),n=v(e,"width",3,"24"),s=v(e,"height",3,"24"),l=g(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=g(()=>i()?"prev-icon":"next-icon");um(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 Wy=M('<div class="icon-background-mobile svelte-xtk2k4"></div>'),Ky=M("<!> <!>",1),qy={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 xa(t,e){U(e,!0),K(t,qy);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"disabled",3,!1),l=Ce().ui.t,d=g(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),a=g(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),p=g(()=>`btn-${o()?"m":"d"}--${e.type}`);Rt(t,{get className(){return r(p)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return n()},get ariaLabel(){return r(d)},get click(){return e.click},get ariaKeyShortCut(){return r(a)},get ref(){return i()},set ref(f){i(f)},children:(f,m)=>{var u=Ky(),y=fe(u);{var w=C=>{var E=Wy();$(C,E)};V(y,C=>{o()&&C(w)})}var x=A(y,2);let T=g(()=>e.type==="prev");kd(x,{get isMobile(){return o()},get isPrev(){return r(T)}}),$(f,u)},$$slots:{default:!0}}),z()}var Qy=we('<svg><!><path fill="var(--btn-color, #fff)" d="M12 10.096a.4.4 0 0 1-.67.296L7.044 6.493a.67.67 0 0 1 0-.986l4.288-3.899a.4.4 0 0 1 .669.296V5a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"></path></svg>');function Ad(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Qy();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 s;return(s=e.children)!=null?s:ae}),xe(),h(o),$(t,o)}import{noop as Gy}from"@vkontakte/videoplayer-shared/es2018";var jy=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Yy=M("<!> <div><!></div>",1),Zy={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function ml(t,e){U(e,!0),K(t,Zy);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"disabled",3,!1),s=v(e,"className",3,""),l=v(e,"click",3,Gy),d=q("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 ss.KeyK},get ref(){return i()},set ref(p){i(p)},children:(p,f)=>{var m=Yy(),u=fe(m);{var y=C=>{var E=jy();$(C,E)};V(u,C=>{o()&&C(y)})}var w=A(u,2);let x;var T=_(w);Ad(T,{}),h(w),D(C=>x=ne(w,1,"svelte-1ot3duq",null,x,C),[()=>({mobile:o()})]),$(p,m)},$$slots:{default:!0}}),z()}var Xy=we('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="play-icon"><path d="M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"></path></svg>');function Kr(t,e){"use strict";let i=v(e,"width",3,"24"),o=v(e,"height",3,"24"),n=v(e,"viewBox",3,"0 0 24 24"),s=v(e,"fill",3,"var(--btn-color)");var l=Xy(),d=_(l);h(l),D(()=>{He(l,"width",i()),He(l,"height",o()),He(l,"viewBox",n()),He(d,"fill",s())}),$(t,l)}var Jy=we('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="pause-icon"><path d="M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"></path></svg>');function Ts(t,e){"use strict";let i=v(e,"width",3,"24"),o=v(e,"height",3,"24"),n=v(e,"viewBox",3,"0 0 24 24"),s=v(e,"fill",3,"var(--btn-color)");var l=Jy(),d=_(l);h(l),D(()=>{He(l,"width",i()),He(l,"height",o()),He(l,"viewBox",n()),He(d,"fill",s())}),$(t,l)}import{noop as e4}from"@vkontakte/videoplayer-shared/es2018";var t4=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),i4=M("<!> <div><!></div>",1),o4={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function vl(t,e){U(e,!0),K(t,o4);let[i,o]=Be(),n=()=>S(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=lo(),l=v(e,"ref",15,void 0),d=v(e,"isMobile",3,!1),a=v(e,"isPlaying",3,!1),p=v(e,"disabled",3,!1),f=v(e,"className",3,""),m=v(e,"click",3,e4),y=Ce().ui.t,{toggle:w}=s,x=g(()=>w),T=g(()=>n()!==null),C=g(()=>r(T)?n():a()),E=g(()=>r(C)?y("tooltip_pause"):y("tooltip_play")),R=g(()=>r(C)?Ts:Kr),I=g(()=>`${d()?"btn-m--play":""} ${f()}`),k=g(()=>r(T)?r(x):m());Rt(t,{get className(){return r(I)},testId:"btn-play",get click(){return r(k)},get disabled(){return p()},get ariaLabel(){return r(E)},get ariaKeyShortCut(){return ss.KeyK},get ref(){return l()},set ref(B){l(B)},children:(B,F)=>{var H=i4();let W=g(()=>r(R));var Y=fe(H);{var oe=pe=>{var me=t4();$(pe,me)};V(Y,pe=>{d()&&pe(oe)})}var G=A(Y,2);let he;var J=_(G);Ai(J,()=>r(W),(pe,me)=>{me(pe,{})}),h(G),D(pe=>he=ne(G,1,"svelte-1ot3duq",null,he,pe),[()=>({mobile:d()})]),$(B,H)},$$slots:{default:!0}}),z(),o()}var n4=we('<svg><!><path fill="var(--btn-color, #fff)" d="M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"></path></svg>');function pm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=n4();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 s;return(s=e.children)!=null?s:ae}),xe(),h(o),$(t,o)}function Pd(t,e){U(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),s=q("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)=>{pm(d,{})},$$slots:{default:!0}}),z()}var r4=M('<span class="gutter svelte-et3q1q"><span><!></span></span>'),s4={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 Ld(t,e){U(e,!0),K(t,s4);let[i,o]=Be(),n=()=>S(a,"$autoplayNextEnabled$",i),s=v(e,"ref",15,void 0),l=Ce(),d=l.ui.t,a=l.ui.autoplayNextEnabled$,p=l.actions.internal.setAutoplayNextEnabled,f=()=>{p(!n(),!0)},m=d("aria_label_autoplay"),u=g(()=>n()?"true":"false");Rt(t,{click:f,get ariaLabel(){return m},role:"switch",get areaChecked(){return r(u)},get ref(){return s()},set ref(y){s(y)},children:(y,w)=>{var x=r4(),T=_(x);let C;var E=_(T);{var R=k=>{Kr(k,{width:"14",height:"14",fill:"#000"})},I=k=>{Ts(k,{width:"14",height:"14",fill:"#000"})};V(E,k=>{n()?k(R):k(I,!1)})}h(T),h(x),D(k=>C=ne(T,1,"toggler svelte-et3q1q",null,C,k),[()=>({enabled:n()})]),$(y,x)},$$slots:{default:!0}}),z(),o()}var a4=we('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"></path></svg>');function fm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=a4();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 s;return(s=e.children)!=null?s:ae}),xe(2),h(o),$(t,o)}function Md(t,e){U(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),s=q("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)=>{fm(d,{})},$$slots:{default:!0}}),z()}var l4=we('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z" class="_closed" clip-rule="evenodd"></path></svg>');function mm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=l4();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 s;return(s=e.children)!=null?s:ae}),xe(2),h(o),$(t,o)}var d4={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function vm(t,e){K(t,d4);let i=v(e,"isOpened",3,!1),o=g(()=>i()?"graph-close-icon":"graph-open-icon");mm(t,{get"data-testid"(){return r(o)}})}function Vd(t,e){U(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),s=v(e,"graphIsOpened",3,!1),d=Ce().ui.t,a=g(()=>s()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),p=g(()=>o()?"hidden":"");Rt(t,{get className(){return r(p)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return r(a)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,m)=>{let u=g(()=>!!s());vm(f,{get isOpened(){return r(u)}})},$$slots:{default:!0}}),z()}import{PlaybackState as H1}from"@vkontakte/videoplayer-core/es2018";function Rd(t,e){U(e,!0);let[i,o]=Be(),n=()=>S(p,"$playbackState$",i),s=v(e,"isMobile",3,!1),l=v(e,"isLiveActive",3,!1),d=v(e,"ariaLabel",3,""),a=Ce(),p=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,m=a.actions.internal.togglePlay,u=g(()=>()=>{if(!l()){f();return}n()===H1.PAUSED&&m()}),y=g(()=>s()?"":"btn--live btn-full-opacity"),w=g(()=>l()?"btn-live":"btn-live-offset"),x=g(()=>l()&&n()===H1.PLAYING);Rt(t,{get className(){return r(y)},get testId(){return r(w)},get disabled(){return r(x)},get ariaLabel(){return d()},get click(){return r(u)},children:(T,C)=>{nd(T,{get isActive(){return l()}})},$$slots:{default:!0}}),z(),o()}import{noop as U1}from"@vkontakte/videoplayer-shared/es2018";var c4=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),u4=M('<img class="icon" aria-hidden="true"/>');function wa(t,e){"use strict";let i=X(!1),o=()=>{O(i,!0)};var n=Fe(),s=fe(n);{var l=a=>{var p=c4();$(a,p)},d=a=>{var p=u4();D(()=>He(p,"src",e.icon)),Ct("error",p,o),na(p),$(a,p)};V(s,a=>{r(i)?a(l):a(d,!1)})}$(t,n)}function gm(t,e){U(e,!0);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,U1),n=v(e,"ref",15),s=g(()=>o()===U1),l=g(()=>r(s)||i()),d=g(()=>r(s)?"btn-full-opacity":"");yo(t,{get disabled(){return r(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get ref(){return n()},set ref(a){n(a)},children:(a,p)=>{let f=g(()=>{var m;return(m=e.testId)!=null?m:e.id});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:(m,u)=>{wa(m,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),z()}var z1=t=>!!t.buttonComponent;var Es={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var Eu=(t,e,i,o)=>{if(t)for(let[n,s]of Object.entries(e))s.set(Mn(t,i,n,o))};var m4=M('<div><!> <div class="controls svelte-1iiubm3" data-testid="player_controls"><div class="controls-left svelte-1iiubm3"><!> <!> <!></div> <div class="controls-right svelte-1iiubm3"></div></div></div> <!>',1),v4={hash:"svelte-1iiubm3",code:".wrapper-bottom.svelte-1iiubm3 {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-1iiubm3::before {content:'';height:var(--controls-gradient-height);background:var(--controls-gradient);position:absolute;width:100%;}.wrapper-bottom.svelte-1iiubm3 > :where(.svelte-1iiubm3) {pointer-events:auto;}.controls.svelte-1iiubm3 {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 var(--controls-desktop-padding-horizontal) 4px;box-sizing:border-box;}.controls-left.svelte-1iiubm3, .controls-right.svelte-1iiubm3 {display:flex;align-content:center;}.controls-left.svelte-1iiubm3 {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-1iiubm3 > *:not(:first-child), .controls-right.svelte-1iiubm3 > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-1iiubm3 {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1iiubm3 {transition:none;}"};function _m(t,e){var ho,Zn;U(e,!0),K(t,v4);let[i,o]=Be(),n=()=>S($t,"$disabledControls$",i),s=()=>S(Ut,"$adPlaybackState",i),l=()=>S(bt,"$playbackState$",i),d=()=>S(po,"$currentSubtitle$",i),a=()=>S(Yt,"$isEnded$",i),p=()=>S(hi,"$currentGridType$",i),f=()=>S(gi,"$isLive$",i),m=()=>S(xi,"$chromecastState$",i),u=()=>S(uo,"$isPictureInPictureActive",i),y=()=>S(wt,"$pictureInPictureType$",i),w=()=>S(Wi,"$availableSubtitlesList$",i),x=()=>S(xo,"$contextMenuOpenedByKeyboard$",i),T=()=>S(Li,"$showContextMenuBtn$",i),C=()=>S(ei,"$playerSize",i),E=()=>S(co,"$isRewindableLive$",i),R=()=>S(Ti,"$isActiveLive$",i),I=()=>S(dr,"$graphIsOpened$",i),k=()=>S(je,"$contextMenuVisible$",i),B=()=>S(ft,"$isFullscreen",i),F=()=>S(ht,"$autoplayNextEnabled",i),H=()=>S(r(gr),"$prevButton",i),W=()=>S(r(xn),"$replayButton",i),Y=()=>S(r(ut),"$playButton",i),oe=()=>S(r(ii),"$nextButton",i),G=()=>S(r(Zi),"$playPrevChapterButton",i),he=()=>S(r(mo),"$seekToInteractiveButton",i),J=()=>S(r(ui),"$interactiveGraphButton",i),pe=()=>S(r(Io),"$liveButton",i),me=()=>S(r(Xi),"$time",i),ue=()=>S(r(pi),"$episodes",i),Le=()=>S(r(wn),"$vkLogo",i),Me=()=>S(r(Qo),"$volume",i),le=()=>S(r(hr),"$subtitles",i),Ne=()=>S(r(Ar),"$settings",i),re=()=>S(r(Go),"$context",i),P=()=>S(r(Pr),"$fullscreen",i),ot=()=>S(r(Lr),"$chromecast",i),Oe=()=>S(ci,"$additionalDesktopControlPanelRightButtons$",i),Q=()=>S(oo,"$isInteractiveTime$",i),te=()=>S(Jt,"$settingsMenuVisible",i),Re=()=>S(_i,"$settingButtonRef$",i),Je=()=>S(wo,"$startedByKeyboard$",i),ye=()=>S(Lt,"$isAudioAvailable$",i),ee=()=>S(Kt,"$fakeIsPlaying$",i),Se=()=>S(So,"$seekToInteractiveDisabledTooltip$",i),Te=()=>S(Ht,"$adPosition",i),Ke=()=>S(At,"$position$",i),tt=()=>S(et,"$adDuration",i),pt=()=>S(Ze,"$duration$",i),lt=v(e,"playerControlsWrapperRef",15,void 0),mt=v(e,"playerControlsRef",15,void 0),it=v(e,"isAds",3,!1),Dt=v(e,"logoTargetUrl",3,""),Wt=v(e,"isOneVideoPlaylist",3,!1),Qt=v(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Kt}=lo(),ke=Ce(),qt=lo(),_e=Tt(),Ee=ke.actions.internal.toggleMuted,de=ke.actions.internal.togglePlay,Qe=ke.actions.internal.pause,Ue=ke.actions.internal.toggleSubtitle,ce=ke.actions.internal.checkFullscreenSupport,De=(ho=ke.callbacks)==null?void 0:ho.onAudioDoesNotExistHint,be=(Zn=ke.callbacks)==null?void 0:Zn.onAudioDisabledHint,Ze=ke.state.duration$,At=ke.state.positionWithScrubbing$,bt=ke.state.playbackState$,Lt=ke.state.isAudioAvailable$,vi=ke.state.isAudioDisabled,Yt=ke.state.isEnded$,gi=ke.state.isLive$,Ti=ke.state.isActiveLive$,co=ke.state.isRewindableLive$,{isActive$:uo,type$:wt}=qt.pictureInPicture$,Jt=ke.ui.settingsMenu.visible$,ni=ke.ui.settingsMenu.openedByBtnKeyboard$,ze=ke.ui.controls,It=ke.actions.internal.getVideoEpisodes(),xi=ke.state.chromecastState$,Wi=ke.state.availableSubtitlesList$,po=ke.state.currentSubtitle$,$t=ze.disabledControls$,je=ke.ui.contextMenu.visible$,Li=ke.ui.contextMenu.showContextMenuBtn$,xo=ke.ui.contextMenu.openedByBtnKeyboard$,wo=ke.ui.startedByKeyboard$,on=ke.ui.controlBlocks,N=ke.ui.t,et=ke.ads.duration,Ht=ke.ads.position,Ut=ke.ads.playbackState,ft=ke.ui.isFullscreen,ei=ke.ui.playerSize,hi=ke.ui.currentGridType$,ci=ke.ui.additionalDesktopControlPanelRightButtons$,ht=ke.ui.autoplayNextEnabled$,Ei=ke.actions.internal.getVideoElement,io=ke.actions.internal.replayInteractive,vn=ke.actions.internal.prevVideoClick,gn=ke.actions.internal.nextVideoClick,li=ke.state.isInteractive,oo=ke.state.isInteractiveTime$,lr=ke.state.showInteractiveGraph,no=ke.state.showSeekToInteractive,Yi=ke.state.showPlayPrevChapter,Rn=ke.state.showInteractiveTimeIndicator,Wo=ke.state.playPrevChapterDisabledTooltip,So=qt.seekToInteractiveDisabledTooltip$,dr=qt.graphIsOpened$,Nn=_e.features.interactiveResponsiveUi,cr=g(()=>n().has("EPISODE_BUTTON")),cs=g(()=>n().has("GRAPH_BUTTON")),Qr=g(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),hn=g(()=>n().has("PLAY_BUTTON")),On=g(()=>n().has("REPLAY_BUTTON")),_n=g(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),Ko=()=>ke.actions.internal.toggleChromecast(),qo=g(()=>it()?s()==="playing":l()===hm.PLAYING),Bn=g(()=>d().value!=="off"),ur=g(()=>a()&&!it()||li),Gr=g(()=>Nn?r(ur)&&Gi(p(),"m"):r(ur)),ro=g(()=>!a()||li||it()),Er=g(()=>Gi(p(),"m")),nn=g(()=>e.showNextPrevButtons&&Gi(p(),"m")&&!it()&&e.nextButtonActive),bn=g(()=>e.showNextPrevButtons&&Gi(p(),"m")&&!it()&&e.prevButtonActive),Dn=g(()=>!it()&&!!f()),pr=g(()=>m()!==W1.NOT_AVAILABLE&&!(u()&&y()===1)&&Gi(p(),"m")&&!li),Fn=g(()=>e.showAutoplayNext&&!Wt()&&Gi(p(),"s")),fo=g(()=>w().length>0&&Gi(p(),"m")),jr=g(()=>x()||T()),$n=g(()=>Gi(p(),"s")&&!it()),ct=g(()=>!e.logoHidden&&!it()),ri=g(()=>_e.features.fullscreen&&ce()&&(e.logoHidden||Gi(p(),Nn?"xs":"s"))&&!(u()&&y()===1)&&(li?Qt():!0)),rn=g(()=>(!f()||it())&&!(_e.features.interactiveHideTime&&li)),yn=g(()=>C().width>100),Ir=g(()=>lr&&Gi(p(),"m")),Co=g(()=>Nn?no&&Gi(p(),"s"):no),sn=g(()=>Nn?Yi&&Gi(p(),"s"):Yi),di=g(()=>!it()&&!f()&&!!(It!=null&&It.length)&&r(Er)&&!r(cr)),Ii=g(()=>!E()||!!R()),To=g(()=>I()?N("tooltip_interactive_graph_on"):N("tooltip_interactive_graph_off")),Hn=g(()=>k()?N("tooltip_context_menu_close"):N("tooltip_context_menu_open")),fr=(yt,_t)=>yt?_t&&_t===hm.PAUSED?N("tooltip_play"):"":N("tooltip_live"),kr=g(()=>fr(r(Ii),l())),mr=g(()=>_e.logoType==="vk_video"?N("tooltip_vk_video_logo"):N("tooltip_vk_logo")),Un=g(()=>r(Bn)?N("tooltip_subtitles_on"):N("tooltip_subtitles_off")),zn=g(()=>B()?N("tooltip_fullscreen_on"):N("tooltip_fullscreen_off")),Eo=g(()=>m()===W1.CONNECTED?N("tooltip_chromecast_on"):N("tooltip_chromecast_off")),Wn=g(()=>F()?N("tooltip_autoplay_on"):N("tooltip_autoplay_off")),vr=X(0),ti=Zt({}),an=Zt({}),gr=g(()=>ze.prevButton),xn=g(()=>ze.replayButton),ut=g(()=>ze.playButton),ii=g(()=>ze.nextButton),Zi=g(()=>ze.playPrevChapterButton),mo=g(()=>ze.seekToInteractiveButton),ui=g(()=>ze.interactiveGraphButton),Io=g(()=>ze.liveButton),Xi=g(()=>ze.time),pi=g(()=>ze.episodes),wn=g(()=>ze.vkLogo),Qo=g(()=>ze.volume),hr=g(()=>ze.subtitles),Ar=g(()=>ze.settings),Go=g(()=>ze.context),Pr=g(()=>ze.fullscreen),Lr=g(()=>ze.chromecast),ko=g(()=>({prevButton:H()?H().right-H().left:0,replayButton:W()?W().right-W().left:0,playButton:Y()?Y().right-Y().left:0,nextButton:oe()?oe().right-oe().left:0,playPrevChapterButton:G()?G().right-G().left:0,seekToInteractiveButton:he()?he().right-he().left:0,interactiveGraphButton:J()?J().right-J().left:0,liveButton:pe()?pe().right-pe().left:0,time:me()?me().right-me().left:0,episodes:ue()?ue().right-ue().left:0,vkLogo:Le()?Le().right-Le().left:0,volume:Me()?Me().right-Me().left:0,subtitles:le()?le().right-le().left:0,settings:Ne()?Ne().right-Ne().left:0,context:re()?re().right-re().left:0,fullscreen:P()?P().right-P().left:0,chromecast:ot()?ot().right-ot().left:0,additionalButtons:Oe().length?Oe().reduce(yt=>[...yt,40],[]):[]})),Kn=X(0);qe(()=>{(!r(Kn)||r(Kn)<r(ko).time)&&xt(()=>O(Kn,r(ko).time,!0))});let Mr=X(!1);qe(()=>{let yt=0;r(di)&&(Gi(p(),"xl")?yt=r(ko).time:yt=60);let _t=r(ko).prevButton+r(ko).playButton+r(ko).nextButton+r(ko).seekToInteractiveButton+r(ko).interactiveGraphButton+r(ko).liveButton+r(Kn)+yt;O(Mr,r(rn)&&r(vr)>=_t,!0)});let qn=g(()=>r(Mr)&&Gi(p(),"m")),rt=K1(fl,260),kt=K1(Eu,260);qe(()=>{C(),Q(),rt(Ei(),ze,ti,e.showControls),kt(Ei(),on,an,e.showControls)}),qe(()=>{an.bottom=lt()});let _i=se();qe(()=>{te(),Re()&&xt(()=>sl(Re(),te(),ni))});let so;qe(()=>{Je(),xt(()=>Cu(wo,Je(),so))});function Mi(){Ws({isAudioDisabled:vi,isAudioAvailable:ye(),isAds:it(),audioIsNotExistHintCallback:De,audioDisabledHintCallback:be})&&Ee()}let Ki=li?io:de,Vi=g(()=>ee()!==null),vo=g(()=>r(Vi)?ee():r(qo)),Sn=g(()=>r(vo)?N("tooltip_pause"):N("tooltip_play")),Ao=N("tooltip_episodes"),Po=g(()=>{var yt,_t,ao,jo;return r(bn)?{id:"prevButton",type:"desktop-control-panel-left",weight:Cs.prevButton,buttonComponent:xa,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:vn.bind(null,!0)},tooltipEnabled:!((_t=(yt=ke.callbacks)==null?void 0:yt.uiInfo)!=null&&_t.onPrevButtonMouseEnter)&&!((jo=(ao=ke.callbacks)==null?void 0:ao.uiInfo)!=null&&jo.onPrevButtonMouseLeave),mouseEnter:()=>{var qi,si,Di;(Di=(si=(qi=ke.callbacks)==null?void 0:qi.uiInfo)==null?void 0:si.onPrevButtonMouseEnter)==null||Di.call(si,Mn(Ei(),ti,"prevButton",e.showControls))},mouseLeave:()=>{var qi,si,Di;(Di=(si=(qi=ke.callbacks)==null?void 0:qi.uiInfo)==null?void 0:si.onPrevButtonMouseLeave)==null||Di.call(si,Mn(Ei(),ti,"prevButton",e.showControls))},tooltipText:N("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Lo=g(()=>r(Gr)?{id:"replayButton",type:"desktop-control-panel-left",weight:Cs.replayButton,buttonComponent:ml,buttonComponentProps:{disabled:r(On),click:Ki},tooltipText:N("tooltip_restart"),disabled:r(On)}:void 0),Qn=g(()=>r(ro)?{id:"playButton",type:"desktop-control-panel-left",weight:Cs.playButton,buttonComponent:vl,buttonComponentProps:{disabled:r(hn),isPlaying:r(qo),click:de},tooltipText:r(Sn),disabled:r(hn)}:void 0),Cn=g(()=>{var yt,_t,ao,jo;return r(nn)?{id:"nextButton",type:"desktop-control-panel-left",weight:Cs.nextButton,buttonComponent:xa,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:gn.bind(null,!0)},tooltipEnabled:!((_t=(yt=ke.callbacks)==null?void 0:yt.uiInfo)!=null&&_t.onNextButtonMouseEnter)&&!((jo=(ao=ke.callbacks)==null?void 0:ao.uiInfo)!=null&&jo.onNextButtonMouseLeave),mouseEnter:()=>{var qi,si,Di;(Di=(si=(qi=ke.callbacks)==null?void 0:qi.uiInfo)==null?void 0:si.onNextButtonMouseEnter)==null||Di.call(si,Mn(Ei(),ti,"nextButton",e.showControls))},mouseLeave:()=>{var qi,si,Di;(Di=(si=(qi=ke.callbacks)==null?void 0:qi.uiInfo)==null?void 0:si.onNextButtonMouseLeave)==null||Di.call(si,Mn(Ei(),ti,"nextButton",e.showControls))},tooltipText:N("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),_r=g(()=>li&&r(sn)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Cs.playPrevChapterButton,buttonComponent:Pd,buttonComponentProps:{disabled:r(_n),click:e.playPrevChapter},tooltipText:N("tooltip_interactive_go_back"),disabledTooltipContent:N(Wo),disabled:r(_n)}:void 0),br=g(()=>li&&r(Co)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Cs.seekToInteractiveButton,buttonComponent:Md,buttonComponentProps:{disabled:r(Qr),click:e.seekToInteractive},tooltipText:N("tooltip_interactive_seek"),disabled:r(Qr),disabledTooltipContent:N(Se())}:void 0),Gn=g(()=>li&&r(Ir)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Cs.interactiveGraphButton,buttonComponent:Vd,buttonComponentProps:{disabled:r(cs),click:dr.toggle,graphIsOpened:I()},tooltipText:r(To)}:void 0),Vr=g(()=>r(Dn)?{id:"liveButton",type:"desktop-control-panel-left",weight:Cs.liveButton,buttonComponent:Rd,buttonComponentProps:{isLiveActive:r(Ii),ariaLabel:r(kr)},tooltipText:r(kr),disabled:r(Ii)&&l()===hm.PLAYING}:void 0),Yr=g(()=>[r(Po),r(Lo),r(Qn),r(Cn),r(_r),r(br),r(Gn),r(Vr)].filter(yt=>!!yt).sort(ma)),We=g(()=>r(ct)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Es.vkLogo,buttonComponent:yd,buttonComponentProps:{targetUrl:Dt(),logoClickable:e.logoClickable,click:Qe},tooltipText:r(mr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),zt=g(()=>r(Fn)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Es.autoplayNext,buttonComponent:Ld,tooltipText:r(Wn)}:void 0),bi=g(()=>({id:"volume",type:"desktop-control-panel-right",weight:Es.volume,buttonComponent:Kf,buttonComponentProps:{click:Mi,isAds:it()}})),ln=g(()=>r(fo)?{id:"subtitles",type:"desktop-control-panel-right",weight:Es.subtitles,buttonComponent:Ff,buttonComponentProps:{isSubtitlesEnabled:r(Bn),click:Ue},tooltipText:r(Un)}:void 0),Mo=g(()=>r($n)?{id:"settings",type:"desktop-control-panel-right",weight:Es.settings,buttonComponent:cl,buttonComponentProps:{ref$:_i},tooltipText:te()?void 0:N("tooltip_settings_off")}:void 0),Vo=g(()=>_e.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Es.context,buttonComponent:cm,buttonComponentProps:{ariaLabel:N("aria_label_context_menu")},className:r(jr)?"":"out-of-view",tooltipText:r(Hn)}:void 0),Ro=g(()=>r(ri)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Es.fullscreen,buttonComponent:$d,buttonComponentProps:{isFullscreen:B(),click:e.toggleFullscreen},tooltipText:r(zn)}:void 0),jn=g(()=>r(pr)?{id:"chromecast",type:"desktop-control-panel-right",weight:Es.chromecast,buttonComponent:xd,buttonComponentProps:{state:m(),click:Ko},tooltipText:r(Eo)}:void 0),Zr=g(()=>[r(We),r(zt),r(bi),r(ln),r(Mo),r(Vo),r(Ro),r(jn),...Oe()].filter(yt=>!!yt).sort(ma));var Is=m4(),$r=fe(Is);let Xr;var Z=_($r);let Ge=g(()=>!e.showControls),Nt=g(()=>!r(yn));$a(Z,{get isHidden(){return r(Ge)},get timelineNotAvailable(){return r(Nt)},get isAds(){return it()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return E()},get ref(){return ti.timeline},set ref(yt){ti.timeline=yt}});var oi=A(Z,2),wi=_(oi),Si=_(wi);ki(Si,17,()=>r(Yr),yt=>yt.id,(yt,_t)=>{Tu(yt,{get buttonComponent(){return r(_t).buttonComponent},get buttonComponentProps(){return r(_t).buttonComponentProps},get tooltipText(){return r(_t).tooltipText},get disabledTooltipContent(){return r(_t).disabledTooltipContent},get disabled(){return r(_t).disabled},get className(){return r(_t).className},get tooltipEnabled(){return r(_t).tooltipEnabled},get mouseEnter(){return r(_t).mouseEnter},get mouseLeave(){return r(_t).mouseLeave},get ref(){return ti[r(_t).id]},set ref(ao){ti[r(_t).id]=ao}})});var Bi=A(Si,2);{var Yn=yt=>{let _t=g(()=>!e.showControls),ao=g(()=>it()?Te():Ke()),jo=g(()=>it()?tt():pt());_d(yt,{get isHidden(){return r(_t)},isMobile:!1,get showDuration(){return r(qn)},get position(){return r(ao)},get duration(){return r(jo)},get ref(){return ti.time},set ref(qi){ti.time=qi}})};V(Bi,yt=>{r(rn)&&yt(Yn)})}var Ci=A(Bi,2);let $i=g(()=>!r(di));yo(Ci,{className:"w-max",get disabled(){return r($i)},get tooltipContent(){return Ao},get ref(){return ti.episodes},set ref(yt){ti.episodes=yt},children:(yt,_t)=>{var ao=Fe(),jo=fe(ao);{var qi=si=>{Sd(si,{get position(){return Ke()},get duration(){return pt()},get timeCodes(){return It}})};V(jo,si=>{r(di)&&si(qi)})}$(yt,ao)},$$slots:{default:!0}}),h(wi);var No=A(wi,2);ki(No,21,()=>r(Zr),yt=>yt.id,(yt,_t)=>{var ao=Fe(),jo=fe(ao);{var qi=Di=>{Tu(Di,{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 ti[r(_t).id]},set ref(ks){ti[r(_t).id]=ks}})},si=Di=>{let ks=g(()=>!!r(_t).disabled);gm(Di,{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(ks)},get onClick(){return r(_t).onClick},get disableMouseupTooltipShow(){return r(_t).disableMouseupTooltipShow},get ref(){return ti[r(_t).id]},set ref(Rr){ti[r(_t).id]=Rr}})};V(jo,Di=>{z1(r(_t))?Di(qi):Di(si,!1)})}$(yt,ao)}),h(No),h(oi),st(oi,yt=>mt(yt),()=>mt()),h($r),st($r,yt=>lt(yt),()=>lt());var go=A($r,2);{var yr=yt=>{Id(yt,{get ref(){return ti.interactiveTimeIndicator},set ref(_t){ti.interactiveTimeIndicator=_t}})};V(go,yt=>{Rn&&yt(yr)})}D(yt=>Xr=ne($r,1,"wrapper-bottom svelte-1iiubm3",null,Xr,yt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),sr(wi,"clientWidth",yt=>O(vr,yt)),$(t,Is),z(),o()}import{ChromecastState as Q1,PlaybackState as G1}from"@vkontakte/videoplayer-core/es2018";import{noop as q1}from"@vkontakte/videoplayer-shared/es2018";var g4=M('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),h4=M('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),_4={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 bm(t,e){K(t,_4);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,q1),n=g(()=>o()===q1),s=g(()=>r(n)||i()),l=X(!1),d=()=>{O(l,!0)},a=g(()=>r(n)?"btn-full-opacity":"");Rt(t,{get className(){return r(a)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(s)},get testId(){return e.testId},children:(p,f)=>{var m=Fe(),u=fe(m);{var y=x=>{var T=g4();$(x,T)},w=x=>{var T=h4();D(()=>He(T,"src",e.iconUrl)),Ct("error",T,d),na(T),$(x,T)};V(u,x=>{r(l)?x(y):x(w,!1)})}$(p,m)},$$slots:{default:!0}})}var b4=we('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" d="M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"></path></g></svg>');function $m(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=b4();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 s;return(s=e.children)!=null?s:ae}),xe(),h(o),$(t,o)}import{noop as $4}from"@vkontakte/videoplayer-shared/es2018";var y4=M('<div class="container svelte-yslgu" aria-hidden="true"><!></div>'),x4={hash:"svelte-yslgu",code:".container.svelte-yslgu {display:flex;align-items:center;}"};function Iu(t,e){U(e,!0),K(t,x4);let i=v(e,"muted",3,!1),o=v(e,"click",3,$4),n=v(e,"ref",15,void 0),l=Ce().ui.t,d=g(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),a=g(()=>i()?$m:Ks),p=g(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Rt(t,{get testId(){return r(p)},get click(){return o()},get ariaLabel(){return r(d)},role:"button",get ref(){return n()},set ref(f){n(f)},children:(f,m)=>{var u=y4();let y=g(()=>r(a));var w=_(u);Ai(w,()=>r(y),(x,T)=>{T(x,{})}),h(u),$(f,u)},$$slots:{default:!0}}),z()}var w4=we('<svg><!><path fill="var(--btn-color, #fff)" d="M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z" class="hidden-not-active"></path><path fill="var(--btn-color, #fff)" d="m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z" class="hidden-active"></path></svg>');function ym(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=w4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i}));var n=_(o);ge(n,()=>{var s;return(s=e.children)!=null?s:ae}),xe(3),h(o),$(t,o)}var S4={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
259
- svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function xm(t,e){K(t,S4);let i=v(e,"isActive",3,!1),o=g(()=>i()?"color: #2688EB;":"color: #fff;"),n=g(()=>i()?"pip-icon--active":"pip-icon");ym(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}import{noop as C4}from"@vkontakte/videoplayer-shared/es2018";function wm(t,e){U(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"isPictureInPictureActive",3,!1),n=v(e,"click",3,C4),s=q("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)=>{xm(l,{get isActive(){return o()}})},$$slots:{default:!0}}),z()}import{debounceFn as j1}from"@vkontakte/videoplayer-shared/es2018";var T4=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},E4=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},I4=M("<div><!></div>"),k4=M("<div><!></div>"),A4=M("<div><!></div>"),P4=M("<!> <!> <!>",1),L4=M("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),M4=M('<div class="wrapper-middle svelte-tg0ura"><!></div>'),V4=M("<div><!></div> <!> <div><!></div>",1),R4=M('<div aria-hidden="true">\xB7</div> <!>',1),N4=M('<!> <!> <div><div><div class="controls mobile svelte-tg0ura"><div class="controls-group contain svelte-tg0ura"><!> <!> <!> <!></div> <div class="controls-group svelte-tg0ura"><!> <!> <!></div></div> <!></div></div> <!>',1),O4={hash:"svelte-tg0ura",code:`.wrapper-bottom.svelte-tg0ura {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px;}.wrapper-bottom.svelte-tg0ura::before {content:'';height:var(--controls-gradient-height);background:var(--controls-gradient);position:absolute;width:100%;}.wrapper-bottom.svelte-tg0ura > :where(.svelte-tg0ura) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-tg0ura {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-tg0ura {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;z-index:var(--controls-container-z-index);}.wrapper-top-right.svelte-tg0ura {position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex;z-index:var(--controls-container-z-index);}.wrapper-top-left.svelte-tg0ura {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-tg0ura,
258
+ animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function jd(t,e){var Y;F(e,!0),W(t,o4);let[i,o]=De(),r=()=>S(C,"$isMobile",i),s=()=>S(A,"$areControlsVisible",i),l=()=>S(O,"$currentGridType$",i),d=()=>S(E,"$isInteractiveTime$",i),a=()=>S(x,"$interactiveControlsOpacity$",i),u=()=>S(R,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>S(T,"$isFullscreen",i),v=h(e,"ref",15,void 0),p=Q(void 0),y=he(),w=ho(),{interactiveControlsOpacity$:x}=w,C=y.ui.isMobile,T=y.ui.isFullscreen,E=y.state.isInteractiveTime$,R=w.showInteractiveTimeIndicatorTooltip$,A=y.ui.controlsVisible,I=(Y=y.callbacks)==null?void 0:Y.onInteractiveTimeIndicatorClick,O=y.ui.currentGridType$,H=m(()=>!r()&&s()),B=m(()=>Is(l(),"s")),z=m(()=>!d()||!!a()||n(H)),Z=Q(!1);ze(()=>{N(Z,n(z),!0)});let ae=()=>{N(Z,!0)},q=()=>{var oe;de(),(oe=n(p))==null||oe.addEventListener("animationiteration",ae,{once:!0})},de=()=>{var oe;N(Z,!1),(oe=n(p))==null||oe.removeEventListener("animationiteration",ae)},X=oe=>{R.set(oe)},fe=m(()=>u()&&!n(z));ze(()=>{u()?q():de()});let re=()=>{n(z)||(R.set(!0),I==null||I())};on(()=>{R.clearTimeout(),de()});let le=()=>{R.set(!1)},Me=j("tooltip_interactive_interaction_time_indicator");var we=i4();let te;we.__mousemove=[t4],we.__click=re;var Ne=_(we);ko(Ne,{get tooltipContent(){return Me},get tooltipActive(){return n(fe)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:X,get ref(){return v()},set ref(oe){v(oe)},children:(oe,Be)=>{Ud(oe,{completed:!0})},$$slots:{default:!0}});var ue=P(Ne,2);let k;st(ue,oe=>v(oe),()=>v());var Ke=P(ue,2);let Ve;st(Ke,oe=>N(p,oe),()=>n(p)),g(we),D((oe,Be,Ye)=>{te=ne(we,1,"interactive-episode-icon-animated svelte-od3veb",null,te,oe),k=ne(ue,1,"ref-block svelte-od3veb",null,k,Be),Ve=ne(Ke,1,"pulse svelte-od3veb",null,Ve,Ye)},[()=>({mobile:r(),fullscreen:f(),invisible:n(z),"icon-small":n(B)}),()=>({hidden:n(z)}),()=>({paused:n(Z)})]),wt("mouseleave",we,le),b(t,we),U(),o()}lt(["mousemove","click"]);function Wu(t,e){F(e,!0);let i=h(e,"tooltipEnabled",3,!0),o=h(e,"disabled",3,!1),r=h(e,"className",3,void 0),s=h(e,"ref",15);ko(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return r()},get ref(){return s()},set ref(l){s(l)},children:(l,d)=>{var a=He();let u=m(()=>e.buttonComponent);var f=pe(a);Pi(f,()=>n(u),(v,p)=>{p(v,Cs(()=>{var y;return(y=e.buttonComponentProps)!=null?y:{}}))}),b(l,a)},$$slots:{default:!0}}),U()}var Ps={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var r4=Ee('<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 $v(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=r4();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}function Yd(t,e){let i=h(e,"isPrev",3,!1),o=h(e,"isMobile",3,!1),r=h(e,"width",3,"24"),s=h(e,"height",3,"24"),l=m(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=m(()=>i()?"prev-icon":"next-icon");$v(t,{get style(){return n(l)},get width(){return r()},get height(){return s()},get viewBox(){return e.viewBox},get"data-testid"(){return n(d)}})}var s4=M('<div class="icon-background-mobile svelte-xtk2k4"></div>'),a4=M("<!> <!>",1),l4={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 Na(t,e){F(e,!0),W(t,l4);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"disabled",3,!1),l=he().ui.t,d=m(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),a=m(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=m(()=>`btn-${o()?"m":"d"}--${e.type}`);Ft(t,{get className(){return n(u)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return r()},get ariaLabel(){return n(d)},get click(){return e.click},get ariaKeyShortCut(){return n(a)},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{var p=a4(),y=pe(p);{var w=T=>{var E=s4();b(T,E)};V(y,T=>{o()&&T(w)})}var x=P(y,2);let C=m(()=>e.type==="prev");Yd(x,{get isMobile(){return o()},get isPrev(){return n(C)}}),b(f,p)},$$slots:{default:!0}}),U()}var d4=Ee('<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 Zd(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=d4();ke(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 r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}import{noop as c4}from"@vkontakte/videoplayer-shared/es2018";var u4=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),p4=M("<!> <div><!></div>",1),f4={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 Dl(t,e){F(e,!0),W(t,f4);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"disabled",3,!1),s=h(e,"className",3,""),l=h(e,"click",3,c4),d=j("tooltip_restart"),a=m(()=>`${o()?"btn-m--play":""} ${s()}`);Ft(t,{get className(){return n(a)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return r()},get click(){return l()},get ariaKeyShortCut(){return ss.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,f)=>{var v=p4(),p=pe(v);{var y=T=>{var E=u4();b(T,E)};V(p,T=>{o()&&T(y)})}var w=P(p,2);let x;var C=_(w);Zd(C,{}),g(w),D(T=>x=ne(w,1,"svelte-1ot3duq",null,x,T),[()=>({mobile:o()})]),b(u,v)},$$slots:{default:!0}}),U()}var v4=Ee('<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 ar(t,e){"use strict";let i=h(e,"width",3,"24"),o=h(e,"height",3,"24"),r=h(e,"viewBox",3,"0 0 24 24"),s=h(e,"fill",3,"var(--btn-color)");var l=v4(),d=_(l);g(l),D(()=>{We(l,"width",i()),We(l,"height",o()),We(l,"viewBox",r()),We(d,"fill",s())}),b(t,l)}var m4=Ee('<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 Ms(t,e){"use strict";let i=h(e,"width",3,"24"),o=h(e,"height",3,"24"),r=h(e,"viewBox",3,"0 0 24 24"),s=h(e,"fill",3,"var(--btn-color)");var l=m4(),d=_(l);g(l),D(()=>{We(l,"width",i()),We(l,"height",o()),We(l,"viewBox",r()),We(d,"fill",s())}),b(t,l)}import{noop as g4}from"@vkontakte/videoplayer-shared/es2018";var h4=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),_4=M("<!> <div><!></div>",1),b4={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function Bl(t,e){F(e,!0),W(t,b4);let[i,o]=De(),r=()=>S(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=ho(),l=h(e,"ref",15,void 0),d=h(e,"isMobile",3,!1),a=h(e,"isPlaying",3,!1),u=h(e,"disabled",3,!1),f=h(e,"className",3,""),v=h(e,"click",3,g4),y=he().ui.t,{toggle:w}=s,x=m(()=>w),C=m(()=>r()!==null),T=m(()=>n(C)?r():a()),E=m(()=>n(T)?y("tooltip_pause"):y("tooltip_play")),R=m(()=>n(T)?Ms:ar),A=m(()=>`${d()?"btn-m--play":""} ${f()}`),I=m(()=>n(C)?n(x):v());Ft(t,{get className(){return n(A)},testId:"btn-play",get click(){return n(I)},get disabled(){return u()},get ariaLabel(){return n(E)},get ariaKeyShortCut(){return ss.KeyK},get ref(){return l()},set ref(O){l(O)},children:(O,H)=>{var B=_4();let z=m(()=>n(R));var Z=pe(B);{var ae=fe=>{var re=h4();b(fe,re)};V(Z,fe=>{d()&&fe(ae)})}var q=P(Z,2);let de;var X=_(q);Pi(X,()=>n(z),(fe,re)=>{re(fe,{})}),g(q),D(fe=>de=ne(q,1,"svelte-1ot3duq",null,de,fe),[()=>({mobile:d()})]),b(O,B)},$$slots:{default:!0}}),U(),o()}var $4=Ee('<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 yv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=$4();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}function Xd(t,e){F(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),s=j("tooltip_interactive_go_back"),l=m(()=>o()?"hidden":"");Ft(t,{get className(){return n(l)},testId:"btn-play-prev-chapter",get ariaLabel(){return s},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{yv(d,{})},$$slots:{default:!0}}),U()}var y4=M('<span class="gutter svelte-et3q1q"><span><!></span></span>'),x4={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 Jd(t,e){F(e,!0),W(t,x4);let[i,o]=De(),r=()=>S(a,"$autoplayNextEnabled$",i),s=h(e,"ref",15,void 0),l=he(),d=l.ui.t,a=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,f=()=>{u(!r(),!0)},v=d("aria_label_autoplay"),p=m(()=>r()?"true":"false");Ft(t,{click:f,get ariaLabel(){return v},role:"switch",get areaChecked(){return n(p)},get ref(){return s()},set ref(y){s(y)},children:(y,w)=>{var x=y4(),C=_(x);let T;var E=_(C);{var R=I=>{ar(I,{width:"14",height:"14",fill:"#000"})},A=I=>{Ms(I,{width:"14",height:"14",fill:"#000"})};V(E,I=>{r()?I(R):I(A,!1)})}g(C),g(x),D(I=>T=ne(C,1,"toggler svelte-et3q1q",null,T,I),[()=>({enabled:r()})]),b(y,x)},$$slots:{default:!0}}),U(),o()}var w4=Ee('<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 xv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=w4();ke(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 r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}function ec(t,e){F(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),s=j("tooltip_interactive_seek"),l=m(()=>o()?"hidden":"");Ft(t,{get className(){return n(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return s},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{xv(d,{})},$$slots:{default:!0}}),U()}var S4=Ee('<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 wv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=S4();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}var C4={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Sv(t,e){W(t,C4);let i=h(e,"isOpened",3,!1),o=m(()=>i()?"graph-close-icon":"graph-open-icon");wv(t,{get"data-testid"(){return n(o)}})}function tc(t,e){F(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),s=h(e,"graphIsOpened",3,!1),d=he().ui.t,a=m(()=>s()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=m(()=>o()?"hidden":"");Ft(t,{get className(){return n(u)},testId:"btn-graph",get disabled(){return r()},get ariaLabel(){return n(a)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{let p=m(()=>!!s());Sv(f,{get isOpened(){return n(p)}})},$$slots:{default:!0}}),U()}import{PlaybackState as l0}from"@vkontakte/videoplayer-core/es2018";function ic(t,e){F(e,!0);let[i,o]=De(),r=()=>S(u,"$playbackState$",i),s=h(e,"isMobile",3,!1),l=h(e,"isLiveActive",3,!1),d=h(e,"ariaLabel",3,""),a=he(),u=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,v=a.actions.internal.togglePlay,p=m(()=>()=>{if(!l()){f();return}r()===l0.PAUSED&&v()}),y=m(()=>s()?"":"btn--live btn-full-opacity"),w=m(()=>l()?"btn-live":"btn-live-offset"),x=m(()=>l()&&r()===l0.PLAYING);Ft(t,{get className(){return n(y)},get testId(){return n(w)},get disabled(){return n(x)},get ariaLabel(){return d()},get click(){return n(p)},children:(C,T)=>{Ed(C,{get isActive(){return l()}})},$$slots:{default:!0}}),U(),o()}import{noop as d0}from"@vkontakte/videoplayer-shared/es2018";var T4=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),E4=M('<img class="icon" aria-hidden="true"/>');function Oa(t,e){"use strict";let i=Q(!1),o=()=>{N(i,!0)};var r=He(),s=pe(r);{var l=a=>{var u=T4();b(a,u)},d=a=>{var u=E4();D(()=>We(u,"src",e.icon)),wt("error",u,o),$a(u),b(a,u)};V(s,a=>{n(i)?a(l):a(d,!1)})}b(t,r)}function Cv(t,e){F(e,!0);let i=h(e,"disabled",3,!1),o=h(e,"onClick",3,d0),r=h(e,"ref",15),s=m(()=>o()===d0),l=m(()=>n(s)||i()),d=m(()=>n(s)?"btn-full-opacity":"");ko(t,{get disabled(){return n(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get ref(){return r()},set ref(a){r(a)},children:(a,u)=>{let f=m(()=>{var v;return(v=e.testId)!=null?v:e.id});Ft(a,{get className(){return n(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(l)},get testId(){return n(f)},children:(v,p)=>{Oa(v,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),U()}var c0=t=>!!t.buttonComponent;var Ls={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var Ku=(t,e,i,o)=>{if(t)for(let[r,s]of Object.entries(e))s.set(Hn(t,i,r,o))};import{interpolate as Tv}from"@vkontakte/videoplayer-shared/es2018";var u0=10,p0=40,Ev=.2,k4=.5,A4=65,P4=114,M4=4,f0=({onPreviewTrackOpened:t,getTimelineRef:e,isHorizontal:i})=>{let o=m(()=>i?A4:P4),r=Q(!1),s=Q(0),l=Q(0),d=m(()=>n(o)+u0-p0-M4),a=m(()=>Tv(n(s),[Ev,1],[0,-n(d)])),u=m(()=>Tv(n(s),[Ev,1],[0,p0])),f=m(()=>Tv(n(s),[Ev,1],[0,n(o)+u0]));return{progressBarY:()=>n(a),controlsY:()=>n(u),calculatedHeight:()=>n(f),onPointerDown:x=>{var C;N(l,((C=e())==null?void 0:C.getBoundingClientRect().bottom)||0,!0),N(r,!0)},onPointerMove:x=>{if(!n(r))return;let C=Math.max(Math.min(x.clientY-n(l),0),-n(d));N(s,Math.abs(C/n(d)),!0)},onPointerUp:()=>{N(r,!1),N(s,n(s)>=k4?1:0,!0),n(s)===1&&t()},closePreviewTrack:()=>{N(s,0)}}};var L4=t=>t;function us(t,{delay:e=0,duration:i=400,easing:o=L4}={}){let r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:s=>`opacity: ${s*r}`}}var V4=M('<span class="root svelte-mx6l45"> </span>'),R4={hash:"svelte-mx6l45",code:".root.svelte-mx6l45 {font-size:13px;line-height:16px;color:rgba(255, 255, 255, 1);box-shadow:0px 8px 24px 0px rgba(0, 0, 0, 0.08);box-shadow:0px 0px 2px 0px rgba(0, 0, 0, 0.08);font-weight:500;}"};function Iv(t,e){W(t,R4);var i=V4(),o=_(i,!0);g(i),D(()=>ve(o,e.time)),b(t,i)}var N4=M('<div class="tooltip-wrapper svelte-1xyyqd0"><div><!></div></div>'),O4={hash:"svelte-1xyyqd0",code:'.tooltip-wrapper.svelte-1xyyqd0 {position:relative;display:block;}.tooltip.svelte-1xyyqd0 {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms;bottom:100%;transform:translateX(-50%);}.pointer.svelte-1xyyqd0:after {position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px);}.tooltip.active.svelte-1xyyqd0 {opacity:1;visibility:visible;}'};function kv(t,e){W(t,O4);let i=h(e,"active",3,!1),o=h(e,"pointer",3,!1),r=h(e,"translateXPx",3,0),s=h(e,"translateYPx",3,0),l=h(e,"leftOffset",3,0),d=h(e,"rightOffset",3,0),a=Q(void 0),u=Q(void 0);function f(C){if(!n(u))return 0;let{width:T}=n(u).getBoundingClientRect(),E=T/2;return C<E?E+l():C>e.containerWidth-E?e.containerWidth-E-d():C}let v=m(()=>f(r()));var p=N4(),y=_(p);let w;var x=_(y);_e(x,()=>{var C;return(C=e.children)!=null?C:ce}),g(y),st(y,C=>N(u,C),()=>n(u)),g(p),st(p,C=>N(a,C),()=>n(a)),D(C=>{Xe(p,`transform: translate(${n(v)}px, ${s()}px);`),w=ne(y,1,"tooltip svelte-1xyyqd0",null,w,C),Xe(y,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,p)}var v0=t=>Math.abs(t)/90%4===1;var D4=M('<div class="preview svelte-1wqg760"></div>'),B4=M('<div class="time svelte-1wqg760"> </div>'),H4=M('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),F4={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 Av(t,e){F(e,!0),W(t,F4);let[i,o]=De(),r=()=>S(w,"$rotateAlpha",i),s=()=>S(x,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=h(e,"time",3,""),a=h(e,"isMobile",3,!1),u=h(e,"videoEpisodes",19,()=>[]),f=h(e,"progress",3,0),v=h(e,"duration",3,0),p=h(e,"isInteractive",3,!1),y=he(),w=y.ui.rotateAlpha,x=y.ui.playerSize,C=Q(0),T=Q(0),E=Q(""),R=Q(0),A=Q(0),I=Q(0),O=Q(0),H=m(()=>Vu(f(),v(),u())),B=m(()=>Vl(r())),z=m(()=>v0(r())),Z=m(de),ae=m(()=>(n(z)?1:-1)*(n(C)/2-n(T)/2)),q=m(()=>n(ae)*-1);ze(()=>{(Y=>{N(C,Y.width,!0),N(T,Y.height,!0)})(fe())}),ze(()=>{(Y=>{N(E,Y.imgSrc,!0),N(R,Y.imgWidth,!0),N(A,Y.imgHeight,!0),N(I,Y.imgOffsetX,!0),N(O,Y.imgOffsetY,!0)})(re(f()))});function de(){var Ye;let Y=a()?l.MOBILE:l.DESKTOP,{isVertical:oe}=X(),Be=30;return(Ye=n(H))!=null&&Ye.text&&(Be+=16),(oe||n(B))&&(Be+=18,Be+=50),Math.min(Math.max(s().height-Be,0),Y)}function X(){let Y=e.previewThumbsData.frameWidth,oe=e.previewThumbsData.frameHeight,Be=oe>Y;return{width:Y,height:oe,isHorizontal:!Be,isVertical:Be}}function fe(){let{height:Y,isHorizontal:oe,isVertical:Be,width:Ye}=X();return oe&&(Y=Y/Ye*n(Z),Ye=n(Z)),Be&&(Ye=Ye/Y*n(Z),Y=n(Z)),{width:Ye,height:Y}}function re(Y){let oe;e.previewThumbsData.isUV?oe=Math.floor(v()*Y/e.previewThumbsData.frequency):oe=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*Y)));let Be=Math.floor(oe/e.previewThumbsData.countPerImage),Ye=Math.floor(oe%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),me=oe%e.previewThumbsData.countPerRow,J=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Be===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(J=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&J++);let Ie=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Be===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Ie=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let ge=n(C)*Ie,Fe=n(T)*J,Ze=-me*n(C),Ge=-Ye*n(T);return{imgSrc:e.previewThumbsData.links[Be],imgWidth:ge,imgHeight:Fe,imgOffsetX:Ze,imgOffsetY:Ge}}var le=H4();let Me;var we=_(le);{var te=Y=>{var oe=D4();D(()=>Xe(oe,`width: ${n(C)}px; height: ${n(T)}px; background-image: url(${n(E)}); background-size: ${n(R)}px ${n(A)}px; background-position: ${n(I)}px ${n(O)}px;
259
+ transform: rotate(${r()}deg) ${n(B)?`translate(${n(ae)}px, ${n(q)}px)`:""};
260
+ `)),b(Y,oe)};V(we,Y=>{n(E)&&Y(te)})}var Ne=P(we,2),ue=_(Ne);{var k=Y=>{var oe=He(),Be=pe(oe);{var Ye=J=>{var Ie=rs();D(ge=>ve(Ie,ge),[()=>j("tooltip_episode_unfinished")]),b(J,Ie)},me=J=>{var Ie=rs();D(()=>ve(Ie,n(H).text||"")),b(J,Ie)};V(Be,J=>{p()&&n(H).completed===!1?J(Ye):J(me,!1)})}b(Y,oe)};V(ue,Y=>{n(H)&&Y(k)})}g(Ne);var Ke=P(Ne,2);{var Ve=Y=>{var oe=B4(),Be=_(oe,!0);g(oe),D(()=>ve(Be,d())),b(Y,oe)};V(Ke,Y=>{p()||Y(Ve)})}g(le),D(Y=>{Me=ne(le,1,"timeline-preview svelte-1wqg760",null,Me,Y),Xe(le,`width: ${n(B)?n(T):n(C)}px;`)},[()=>({mobile:a()})]),b(t,le),U(),o()}var U4=M('<span class="time svelte-1jr6obn"> </span>'),z4=M("<!> <!>",1),W4={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 Pv(t,e){var Pe,Tt,Oe,ct,bt;F(e,!0),W(t,W4);let[i,o]=De(),r=()=>S(q,"$interactiveEpisodes$",i),s=()=>S(O,"$duration$",i),l=()=>S(I,"$position$",i),d=()=>S(fe,"$isInteractiveExpectation$",i),a=()=>S(X,"$isInteractiveTime$",i),u=()=>S(we,"$previewTrackActive",i),f=()=>S(H,"$isLive$",i),v=()=>S(Me,"$disabledControls$",i),p=()=>S(z,"$isMobile",i),y=()=>S(B,"$isActiveLive$",i),w=()=>S(A,"$bufferedProgress$",i),x=h(e,"showTimeline",3,!1),C=h(e,"withEpisodes",3,!0),T=h(e,"ref",15,void 0),E=he(),R=Lt(),A=E.state.bufferedProgress$,I=E.state.positionWithScrubbing$,O=E.state.duration$,H=E.state.isLive$,B=E.state.isActiveLive$,z=E.ui.isMobile,Z=R.features.episodes&&C()?E.actions.internal.getVideoEpisodes():void 0,ae=E.actions.internal.getPreviewThumbsData(),q=E.state.interactiveEpisodes$,de=E.state.isInteractive,X=E.state.isInteractiveTime$,fe=E.state.isInteractiveExpectation$,re=E.actions.internal.correctSeekTimeToInteractive,le=(Pe=E.callbacks)==null?void 0:Pe.onDisabledTimelineClick,Me=E.ui.controls.disabledControls$,we=E.ui.previewTrackActive,te=(Oe=(Tt=E.callbacks)==null?void 0:Tt.uiInfo)==null?void 0:Oe.onTimelineMouseEnter,Ne=(bt=(ct=E.callbacks)==null?void 0:ct.uiInfo)==null?void 0:bt.onTimelineMouseLeave,ue=E.ui.t,k=R.features.interactiveResponsiveUi,Ke=m(()=>de?r():Z),Ve=m(()=>qo(s())),Y=m(()=>qo(l())),oe=m(()=>l()/s()),Be=m(()=>d()||a()),Ye=Q(!1),me=Q(""),J=Q(0),Ie=Q(0),ge=Q(0),Fe=m(()=>({containerWidth:n(Ie),translateXPx:n(J),translateYPx:de&&ae?-36:-16,active:n(Ye)&&x()&&!n(Be)&&!k&&!u(),pointer:!R.features.timelinePreview||!ae||f()})),Ze=ue("aria_timeline"),Ge=m(()=>ue("aria_timeline_value",{position:n(Y),duration:n(Ve)}));function dt(ye){return!re||!de?ye:re(ye*s())/s()}function Je(ye,it){var qe;(qe=e.onSliderPointerDown)==null||qe.call(e,it),E.actions.internal.startScrubbing(dt(ye))}function Ot(ye){a()||E.actions.internal.progressScrubbing(dt(ye))}function nt(ye){var it;E.actions.internal.completeScrubbing(dt(ye)),N(Ye,!1),(it=e.onSliderPointerUp)==null||it.call(e)}function Nt(ye,it,qe){var at;(at=e.onSliderPointerEnter)==null||at.call(e,ye),Xt(ye,it,qe),N(Ye,!0)}function Wt(ye,it,qe,at){var Jt;(Jt=e.onSliderMove)==null||Jt.call(e,at,ye),Xt(ye,it,qe),N(Ye,!0)}function Ct(){var ye;N(Ye,!1),(ye=e.onSliderLeave)==null||ye.call(e)}function Xt(ye,it,qe){N(ge,dt(ye),!0),N(J,it,!0),qe&&N(Ie,qe,!0),N(me,Ut(ye),!0)}function Ut(ye){let it=qo((f()?1-ye:ye)*s());return f()?`-${it}`:it}let Se=m(()=>v().has("TIMELINE"));var xe=z4(),ee=pe(xe);kv(ee,Cs(()=>n(Fe),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(ye,it)=>{var qe=He(),at=pe(qe);{var Jt=fi=>{Av(fi,{get time(){return n(me)},get isMobile(){return p()},get videoEpisodes(){return n(Ke)},get previewThumbsData(){return ae},get progress(){return n(ge)},get duration(){return s()},get isInteractive(){return de}})},ni=fi=>{var bi=U4(),io=_(bi,!0);g(bi),D(()=>ve(io,n(me))),b(fi,bi)};V(at,fi=>{R.features.timelinePreview&&ae&&!f()?fi(Jt):fi(ni,!1)})}b(ye,qe)},$$slots:{default:!0}}));var Ce=P(ee,2);Va(Ce,{className:"timeline-slider",get isActiveLive(){return y()},get isMobile(){return p()},get ariaLabel(){return Ze},ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return l()},get ariaValueText(){return n(Ge)},get loadedProgress(){return w()},get filledProgress(){return n(oe)},get handleProgress(){return n(oe)},get videoEpisodes(){return n(Ke)},onPointerDown:Je,onHandleMove:Ot,onPointerMove:Wt,onPointerUp:nt,onPointerEnter:Nt,onPointerLeave:Ct,get onMouseEnter(){return te},get onMouseLeave(){return Ne},get onDisabledClick(){return le},get isInteractive(){return de},get disabled(){return n(Se)},get handleAlwaysVisible(){return u()},get hideHandel(){return a()},testId:"progress_bar",onContextMenu:nt,get ref(){return T()},set ref(ye){T(ye)}}),b(t,xe),U(),o()}var K4={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 oc(t,e){F(e,!0),W(t,K4);let[i,o]=De(),r=()=>S(a,"$isMobile",i),s=h(e,"position",3,0),l=h(e,"duration",3,0),d=he(),a=d.ui.isMobile,u=d.ui.t,f=m(()=>qo(l())),v=m(()=>qo(s())),p=m(()=>s()/l()),y=m(()=>u("aria_timeline_value",{position:n(v),duration:n(f)})),w=m(()=>Math.round(n(p)*100));Va(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return n(w)},get ariaValueText(){return n(y)},get filledProgress(){return n(p)},hideHandel:!0,get squareBorders(){return r()}}),U(),o()}var q4=M("<div><!></div>"),Q4=M("<div></div>"),G4={hash:"svelte-1b7iyrc",code:".timeline.svelte-1b7iyrc {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;box-sizing:border-box;}.timeline.mobile.svelte-1b7iyrc {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-1b7iyrc {padding:0;}.timeline-stub.svelte-1b7iyrc {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-1b7iyrc {height:8px;}"};function Da(t,e){F(e,!0),W(t,G4);let[i,o]=De(),r=()=>S(C,"$isLive$",i),s=()=>S(R,"$isMobile",i),l=()=>S(A,"$disabled",i),d=()=>S(E,"$adPosition",i),a=()=>S(T,"$adDuration",i),u=h(e,"isAds",3,!1),f=h(e,"isHidden",3,!1),v=h(e,"timelineNotAvailable",3,!1),p=h(e,"needPadding",3,!0),y=h(e,"ref",15,void 0),w=he(),x=Lt(),C=w.state.isLive$,T=w.ads.duration,E=w.ads.position,R=w.ui.isMobile,A=se(!1),I=m(()=>!v()&&(!r()||r()&&e.canRewindLive&&e.isRewindableLive||u()));var O=He(),H=pe(O);{var B=Z=>{var ae=q4();let q;var de=_(ae);{var X=re=>{oc(re,{get position(){return d()},get duration(){return a()}})},fe=re=>{Pv(re,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return n(I)},get withEpisodes(){return e.withEpisodes},get onSliderMove(){return e.onSliderMove},get onSliderPointerDown(){return e.onSliderPointerDown},get onSliderPointerUp(){return e.onSliderPointerUp},get onSliderLeave(){return e.onSliderLeave},get onSliderPointerEnter(){return e.onSliderPointerEnter},get ref(){return y()},set ref(le){y(le)}})};V(de,re=>{u()?re(X):re(fe,!1)})}g(ae),Ss(ae,()=>Tl(f()&&x.features.usePerformanceFix,A,x.disableInvisibleComponentsTimeout)),D(re=>q=ne(ae,1,"timeline svelte-1b7iyrc",null,q,re),[()=>({withoutPadding:!p(),mobile:s(),"out-of-flow":l()})]),b(Z,ae)},z=Z=>{var ae=Q4();let q;D(de=>q=ne(ae,1,"timeline-stub svelte-1b7iyrc",null,q,de),[()=>({mobile:s()})]),b(Z,ae)};V(H,Z=>{n(I)?Z(B):Z(z,!1)})}b(t,O),U(),o()}import{getRangeAroundIndex as j4}from"@vkontakte/videoplayer-shared/es2018";var Y4=(t,e,i,o,r,s,l)=>{N(e,!0),N(i,t.clientX,!0),N(o,n(r),!0),s(l())},Z4=M("<div></div>"),X4=M('<div><div class="track svelte-j4sfvm"></div></div>'),J4={hash:"svelte-j4sfvm",code:`.root.svelte-j4sfvm {height:var(--preview-track-frame-height-horizontal);position:relative;overflow:hidden;width:100%;display:flex;}.root.is-vertical-video.svelte-j4sfvm,
261
+ .root.vertically-rotated.svelte-j4sfvm {height:var(--preview-track-frame-height-vertical);}
262
+
263
+ /**
264
+ * \u041A\u0430\u0440\u0435\u0442\u043A\u0430, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0443\u043A\u0430\u0437\u044B\u0432\u0430\u0435\u0442 \u043D\u0430 \u0442\u0435\u043A\u0443\u0449\u0438\u0439 \u043A\u0430\u0434\u0440.
265
+ */.root.svelte-j4sfvm::after {content:'';height:100%;z-index:1;margin:0 auto;width:3px;background-color:rgba(255, 255, 255, 1);box-shadow:0px 2px 2px 0px rgba(0, 0, 0, 0.12);box-shadow:0px 0px 2px 0px rgba(0, 0, 0, 0.06);pointer-events:none;}.track.svelte-j4sfvm {position:absolute;bottom:0;left:0;top:0;display:flex;padding:0 50%;}.frame.svelte-j4sfvm {flex-shrink:0;position:absolute;pointer-events:none;background-position-y:calc(-1 * var(--frame-height) * var(--row-index));background-position-x:calc(-1 * var(--column-index)*var(--frame-width));background-size:calc(var(--frame-width)*var(--column-numbers)) calc(var(--frame-height)*var(--row-numbers));width:var(--frame-width);height:var(--frame-height);transform-origin:center;}.vertically-rotated.svelte-j4sfvm .frame:where(.svelte-j4sfvm) {transform-origin:0 0;}.rotate-1.svelte-j4sfvm {transform:rotate(-90deg) translateX(-100%);}.rotate-2.svelte-j4sfvm {transform:rotate(-180deg);}.rotate-3.svelte-j4sfvm {transform:rotate(-270deg) translateY(-100%);}`};function Lv(t,e){F(e,!0),W(t,J4);let[i,o]=De(),r=()=>S(R,"$rotateAlpha",i),s=()=>S(x,"$position$",i),l=()=>S(w,"$duration$",i),d=he(),{countPerImage:a=0,countPerRow:u=0,countTotal:f=0,links:v=[],frameHeight:p=0,frameWidth:y=0}=d.actions.internal.getPreviewThumbsData()||{},{duration$:w,positionWithScrubbing$:x}=d.state,{startScrubbing:C,progressScrubbing:T,completeScrubbing:E}=d.actions.internal,R=d.ui.rotateAlpha,A=Q(void 0),I=Q(!1),O=Q(0),H=Q(0),B=Q(0),z=Q(0),Z=m(()=>p<=y),ae=m(()=>Vl(r())),q=m(()=>n(Z)?!n(ae):n(ae)),de=114,X=65,fe=3,re=m(()=>n(q)?de:X),le=m(()=>n(Z)?de:X),Me=m(()=>n(Z)?"var(--preview-track-frame-height-horizontal)":"var(--preview-track-frame-height-vertical)"),we=m(()=>f*n(re)),te=Q(0);ze(()=>{N(z,Math.ceil(-n(B)/n(re))-1),N(B,-n(we)*s()/l())});let Ne=()=>{E(ue(),!0)},ue=()=>l()*-n(B)/n(we)/l(),k=!1,Ke=Ge=>{if(!n(I))return!1;let dt=Ge.clientX-n(O);N(B,n(H)+dt),N(B,Math.max(Math.min(n(B),0),-n(we)),!0),Math.abs(dt)>1&&(k=!0),T(ue())},Ve=Ge=>{n(I)&&(N(I,!1),!k&&Ge&&N(B,-(Ge.offsetX-n(te)/2)),k=!1,Ne())},Y=()=>{n(I)&&Ve()},oe=m(()=>a/u),Be=(Ge,dt)=>{if(Ge!==v.length-1)return u;let Je=0,Ot=dt*u;for(let nt=1;nt<=u;nt++)Ge*a+Je+Ot<f&&Je++;return Je},Ye=m(()=>Math.floor(n(z)/a)),me=m(()=>j4(3,n(Ye),v.length-1)),J=(Ge,dt,Je)=>{let Ot=a*n(re);return Ge*Ot+dt*n(re)*u+n(te)/2-fe/2+Je*n(re)},Ie=m(()=>[`--row-numbers: ${n(oe)}`,`--column-numbers: ${u}`,`--frame-width: ${n(le)}px`,`--frame-height: ${n(Me)}`].join(";"));var ge=X4();let Fe;var Ze=_(ge);Ze.__pointerdown=[Y4,I,O,H,B,C,ue],Ze.__pointermove=Ke,Ze.__pointerup=Ve,wi(Ze,20,()=>n(me),Ge=>Ge,(Ge,dt)=>{var Je=He(),Ot=pe(Je);wi(Ot,16,()=>Array.from({length:n(oe)},(nt,Nt)=>Nt),nt=>nt,(nt,Nt)=>{var Wt=He(),Ct=pe(Wt);wi(Ct,16,()=>Array.from({length:Be(dt,Nt)},(Xt,Ut)=>Ut),Xt=>Xt,(Xt,Ut)=>{var Se=Z4();D((xe,ee)=>{Xe(Se,xe),ne(Se,1,ee,"svelte-j4sfvm")},[()=>`--row-index: ${Nt}; --column-index: ${Ut}; left: ${J(dt,Nt,Ut)}px; background-image: url(${v[dt]});`,()=>`frame rotate-${Math.abs(r())/90%4}`]),b(Xt,Se)}),b(nt,Wt)}),b(Ge,Je)}),g(Ze),g(ge),st(ge,Ge=>N(A,Ge),()=>n(A)),D(Ge=>{Fe=ne(ge,1,"root svelte-j4sfvm",null,Fe,Ge),Xe(ge,n(Ie)),Xe(Ze,`transform: translateX(${n(B)}px); width: ${n(we)}px;`)},[()=>({"is-vertical-video":!n(Z),"vertically-rotated":n(ae)})]),wt("mouseleave",Ze,Y),Sn(ge,"clientWidth",Ge=>N(te,Ge)),b(t,ge),U(),o()}lt(["pointerdown","pointermove","pointerup"]);var e3=M('<div class="notification svelte-1u3ref1"><span class="description svelte-1u3ref1"> </span></div>'),t3={hash:"svelte-1u3ref1",code:".notification.svelte-1u3ref1 {padding:9px 14px 10px 12px;background:var(--notification-bg);border-radius:var(--notification-radius);}.description.svelte-1u3ref1 {line-height:18px;font-size:14px;}"};function Vv(t,e){F(e,!1),W(t,t3);let i=340,{ui:{t:o}}=he();Ko();var r=e3(),s=_(r),l=_(s,!0);g(s),g(r),D(d=>ve(l,d),[()=>o("preview_track_close_tooltip")],bn),Gr(3,r,()=>us,()=>({duration:i})),b(t,r),U()}import{getRangeAroundIndex as i3}from"@vkontakte/videoplayer-shared/es2018";var o3=M('<div class="preview-track-close tooltip svelte-19h243g"><!></div>'),n3=M('<div class="preview-track-control svelte-19h243g"><!> <div class="preview-track-close svelte-19h243g"><!></div> <!></div>'),r3=M('<div class="wrapper-preview-track svelte-19h243g"><!></div>'),s3=M('<div class="enriched-timeline svelte-19h243g"><!> <!> <!></div>'),a3={hash:"svelte-19h243g",code:`.enriched-timeline.svelte-19h243g {padding:var(--timeline-padding-vertical-top) var(--timeline-padding-horizontal)
266
+ var(--timeline-padding-vertical-bottom);position:relative;pointer-events:auto;}.preview-track-control.svelte-19h243g {top:calc((var(--timeline-height) + var(--preview-track-controls-top)) * -1);position:absolute;left:0;right:0;padding:0 calc(var(--timeline-padding-horizontal));display:flex;align-items:center;justify-content:center;pointer-events:none;}.preview-track-close.svelte-19h243g {position:absolute;right:calc(var(--timeline-padding-horizontal));pointer-events:auto;}.preview-track-close.tooltip.svelte-19h243g {bottom:32px;opacity:0;transition:opacity 200ms;}.preview-track-close.svelte-19h243g:hover + .tooltip:where(.svelte-19h243g) {opacity:1;}.wrapper-preview-track.svelte-19h243g {position:absolute;left:0;right:0;overflow:hidden;z-index:-1;padding:0 calc(var(--timeline-padding-horizontal));box-sizing:border-box;}`};function Rv(t,e){F(e,!0),W(t,a3);let[i,o]=De(),r=()=>S(x,"$playerSize",i),s=()=>S(w,"$duration$",i),l=()=>S(C,"$previewTrackActive",i),d=()=>S(p,"$position$",i),a=()=>S(y,"$isRewindableLive$",i),u=h(e,"timelineRef",15,void 0),f=he(),v=200,{positionWithScrubbing$:p,isRewindableLive$:y,duration$:w}=f.state,{playerSize:x,previewTrackActive:C}=f.ui,{countPerImage:T=0,links:E=[],frequency:R=0}=f.actions.internal.getPreviewThumbsData()||{},A=m(()=>r().width>100),I=Q(!$1()),O=()=>{n(I)&&(b1(),N(I,!1))},H=re=>{let le=Math.floor(s()*re/R),Me=Math.floor(le/T),we=i3(3,Me,E.length-1);for(let te of we){let Ne=new Image;Ne.src=E[te]}},B=(re,le)=>{H(le),!l()&&e.onTimelineMove(re)};var z=s3(),Z=_(z);{var ae=re=>{var le=n3(),Me=_(le);let we=m(()=>qo(d()));Iv(Me,{get time(){return n(we)}});var te=P(Me,2),Ne=_(te);Es(Ne,{onClick:()=>f.actions.internal.closePreviewTrack()}),g(te);var ue=P(te,2);{var k=Ke=>{var Ve=o3(),Y=_(Ve);Vv(Y,{}),g(Ve),b(Ke,Ve)};V(ue,Ke=>{n(I)&&Ke(k)})}g(le),wt("mouseleave",te,O),Gr(3,le,()=>us,()=>({duration:v})),b(re,le)};V(Z,re=>{l()&&re(ae)})}var q=P(Z,2);let de=m(()=>!n(A));Da(q,{get isHidden(){return n(de)},get isAds(){return e.isAds},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return a()},onSliderMove:B,get onSliderPointerDown(){return e.onTimelinePointerDown},get onSliderPointerUp(){return e.onTimelinePointerUp},get onSliderLeave(){return e.onTimelinePointerLeave},onSliderPointerEnter:H,get ref(){return u()},set ref(re){u(re)}});var X=P(q,2);{var fe=re=>{var le=r3(),Me=_(le);Lv(Me,{}),g(le),D(()=>Xe(le,`height: ${e.animatedPreviewTrackHeight}px;`)),b(re,le)};V(X,re=>{e.previewTrackAvailable&&re(fe)})}g(z),D(()=>Xe(z,`transform: translateY(${e.animatedOffsetY}px);`)),b(t,z),U(),o()}var d3=M('<div><!> <div class="controls svelte-1ojrdvx" data-testid="player_controls"><div class="controls-left svelte-1ojrdvx"><!> <!> <!></div> <div class="controls-right svelte-1ojrdvx"></div></div></div> <!>',1),c3={hash:"svelte-1ojrdvx",code:".wrapper-bottom.svelte-1ojrdvx {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-1ojrdvx::before {content:'';height:var(--controls-gradient-height);background:var(--controls-gradient);position:absolute;width:100%;}.wrapper-bottom.svelte-1ojrdvx > :where(.svelte-1ojrdvx) {pointer-events:auto;}.controls.svelte-1ojrdvx {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;padding:0 var(--controls-desktop-padding-horizontal) 4px;box-sizing:border-box;}.controls-left.svelte-1ojrdvx, .controls-right.svelte-1ojrdvx {display:flex;align-content:center;}.controls-left.svelte-1ojrdvx {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-1ojrdvx > *:not(:first-child), .controls-right.svelte-1ojrdvx > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-1ojrdvx {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1ojrdvx {transition:none;}"};function Ov(t,e){var Xa,sa;F(e,!0),W(t,c3);let[i,o]=De(),r=()=>S(Qo,"$disabledControls$",i),s=()=>S(ut,"$adPlaybackState",i),l=()=>S(ni,"$playbackState$",i),d=()=>S(_o,"$currentSubtitle$",i),a=()=>S(io,"$isEnded$",i),u=()=>S(Go,"$currentGridType$",i),f=()=>S(lo,"$isLive$",i),v=()=>S(je,"$chromecastState$",i),p=()=>S(Ii,"$isPictureInPictureActive",i),y=()=>S(Qt,"$pictureInPictureType$",i),w=()=>S($i,"$availableSubtitlesList$",i),x=()=>S(Dt,"$contextMenuOpenedByKeyboard$",i),C=()=>S(Et,"$showContextMenuBtn$",i),T=()=>S(vt,"$isRewindableLive$",i),E=()=>S(di,"$isActiveLive$",i),R=()=>S(Xr,"$graphIsOpened$",i),A=()=>S(sn,"$contextMenuVisible$",i),I=()=>S(Li,"$isFullscreen",i),O=()=>S(oo,"$autoplayNextEnabled",i),H=()=>S(n(Ri),"$prevButton",i),B=()=>S(n(Ni),"$replayButton",i),z=()=>S(n(pn),"$playButton",i),Z=()=>S(n($o),"$nextButton",i),ae=()=>S(n(yo),"$playPrevChapterButton",i),q=()=>S(n(vi),"$seekToInteractiveButton",i),de=()=>S(n(Pn),"$interactiveGraphButton",i),X=()=>S(n(vo),"$liveButton",i),fe=()=>S(n(qn),"$time",i),re=()=>S(n(Qn),"$episodes",i),le=()=>S(n(Vr),"$vkLogo",i),Me=()=>S(n(Rr),"$volume",i),we=()=>S(n(fn),"$subtitles",i),te=()=>S(n(vn),"$settings",i),Ne=()=>S(n(mr),"$context",i),ue=()=>S(n(mn),"$fullscreen",i),k=()=>S(n(Nr),"$chromecast",i),Ke=()=>S(Ao,"$additionalDesktopControlPanelRightButtons$",i),Ve=()=>S(Bi,"$playerSize",i),Y=()=>S(an,"$isInteractiveTime$",i),oe=()=>S(ci,"$previewTrackActive",i),Be=()=>S(St,"$settingsMenuVisible",i),Ye=()=>S(Gi,"$settingButtonRef$",i),me=()=>S(K,"$startedByKeyboard$",i),J=()=>S(fi,"$isAudioAvailable$",i),Ie=()=>S(xe,"$fakeIsPlaying$",i),ge=()=>S(ps,"$seekToInteractiveDisabledTooltip$",i),Fe=()=>S($e,"$isPreviewTrackHorizontallyAligned$",i),Ze=()=>S(hn,"$previewTrackAvailable",i),Ge=()=>S(go,"$previewTrackDragInProgress",i),dt=()=>S(qt,"$adPosition",i),Je=()=>S(Jt,"$position$",i),Ot=()=>S(It,"$adDuration",i),nt=()=>S(at,"$duration$",i),Nt=h(e,"playerControlsWrapperRef",15,void 0),Wt=h(e,"playerControlsRef",15,void 0),Ct=h(e,"isAds",3,!1),Xt=h(e,"logoTargetUrl",3,""),Ut=h(e,"isOneVideoPlaylist",3,!1),Se=h(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:xe}=ho(),ee=he(),Ce=ho(),Pe=Lt(),Tt=ee.actions.internal.toggleMuted,Oe=ee.actions.internal.togglePlay,ct=ee.actions.internal.pause,bt=ee.actions.internal.toggleSubtitle,ye=ee.actions.internal.checkFullscreenSupport,it=(Xa=ee.callbacks)==null?void 0:Xa.onAudioDoesNotExistHint,qe=(sa=ee.callbacks)==null?void 0:sa.onAudioDisabledHint,at=ee.state.duration$,Jt=ee.state.positionWithScrubbing$,ni=ee.state.playbackState$,fi=ee.state.isAudioAvailable$,bi=ee.state.isAudioDisabled,io=ee.state.isEnded$,lo=ee.state.isLive$,di=ee.state.isActiveLive$,vt=ee.state.isRewindableLive$,{isActive$:Ii,type$:Qt}=Ce.pictureInPicture$,St=ee.ui.settingsMenu.visible$,ti=ee.ui.settingsMenu.openedByBtnKeyboard$,Gt=ee.ui.controls,xt=ee.actions.internal.getVideoEpisodes(),je=ee.state.chromecastState$,$i=ee.state.availableSubtitlesList$,_o=ee.state.currentSubtitle$,Qo=Gt.disabledControls$,sn=ee.ui.contextMenu.visible$,Et=ee.ui.contextMenu.showContextMenuBtn$,Dt=ee.ui.contextMenu.openedByBtnKeyboard$,K=ee.ui.startedByKeyboard$,Mt=ee.ui.controlBlocks,ei=ee.ui.previewTrackNotificationVisible,pt=ee.ui.t,It=ee.ads.duration,qt=ee.ads.position,ut=ee.ads.playbackState,Li=ee.ui.isFullscreen,Bi=ee.ui.playerSize,Go=ee.ui.currentGridType$,Ao=ee.ui.additionalDesktopControlPanelRightButtons$,oo=ee.ui.autoplayNextEnabled$,Hi=ee.actions.internal.getVideoElement,lr=ee.actions.internal.replayInteractive,co=ee.actions.internal.prevVideoClick,uo=ee.actions.internal.nextVideoClick,Vi=ee.state.isInteractive,an=ee.state.isInteractiveTime$,Po=ee.state.showInteractiveGraph,dr=ee.state.showSeekToInteractive,cr=ee.state.showPlayPrevChapter,wr=ee.state.showInteractiveTimeIndicator,Zr=ee.state.playPrevChapterDisabledTooltip,ps=Ce.seekToInteractiveDisabledTooltip$,Xr=Ce.graphIsOpened$,bo=Pe.features.interactiveResponsiveUi,Un=m(()=>r().has("EPISODE_BUTTON")),Mo=m(()=>r().has("GRAPH_BUTTON")),ln=m(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),Cn=m(()=>r().has("PLAY_BUTTON")),ur=m(()=>r().has("REPLAY_BUTTON")),Sr=m(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),Cr=()=>ee.actions.internal.toggleChromecast(),Tr=m(()=>Ct()?s()==="playing":l()===Nv.PLAYING),Er=m(()=>d().value!=="off"),Qi=m(()=>a()&&!Ct()||Vi),Ir=m(()=>bo?n(Qi)&&eo(u(),"m"):n(Qi)),Tn=m(()=>!a()||Vi||Ct()),dn=m(()=>eo(u(),"m")),po=m(()=>e.showNextPrevButtons&&eo(u(),"m")&&!Ct()&&e.nextButtonActive),pr=m(()=>e.showNextPrevButtons&&eo(u(),"m")&&!Ct()&&e.prevButtonActive),En=m(()=>!Ct()&&!!f()),mt=m(()=>v()!==m0.NOT_AVAILABLE&&!(p()&&y()===1)&&eo(u(),"m")&&!Vi),pi=m(()=>e.showAutoplayNext&&!Ut()&&eo(u(),"s")),kr=m(()=>w().length>0&&eo(u(),"m")),zn=m(()=>x()||C()),Ar=m(()=>eo(u(),"s")&&!Ct()),In=m(()=>!e.logoHidden&&!Ct()),kn=m(()=>Pe.features.fullscreen&&ye()&&(e.logoHidden||eo(u(),bo?"xs":"s"))&&!(p()&&y()===1)&&(Vi?Se():!0)),Lo=m(()=>(!f()||Ct())&&!(Pe.features.interactiveHideTime&&Vi)),Vo=m(()=>Po&&eo(u(),"m")),cn=m(()=>bo?dr&&eo(u(),"s"):dr),fo=m(()=>bo?cr&&eo(u(),"s"):cr),Ro=m(()=>!Ct()&&!f()&&!!(xt!=null&&xt.length)&&n(dn)&&!n(Un)),jo=m(()=>!T()||!!E()),fr=m(()=>R()?pt("tooltip_interactive_graph_on"):pt("tooltip_interactive_graph_off")),Pr=m(()=>A()?pt("tooltip_context_menu_close"):pt("tooltip_context_menu_open")),un=(ht,_t)=>ht?_t&&_t===Nv.PAUSED?pt("tooltip_play"):"":pt("tooltip_live"),Fi=m(()=>un(n(jo),l())),vr=m(()=>Pe.logoType==="vk_video"?pt("tooltip_vk_video_logo"):pt("tooltip_vk_logo")),Mr=m(()=>n(Er)?pt("tooltip_subtitles_on"):pt("tooltip_subtitles_off")),An=m(()=>I()?pt("tooltip_fullscreen_on"):pt("tooltip_fullscreen_off")),Wn=m(()=>v()===m0.CONNECTED?pt("tooltip_chromecast_on"):pt("tooltip_chromecast_off")),Lr=m(()=>O()?pt("tooltip_autoplay_on"):pt("tooltip_autoplay_off")),Kn=Q(0),tt=ai({}),ri=ai({}),Ri=m(()=>Gt.prevButton),Ni=m(()=>Gt.replayButton),pn=m(()=>Gt.playButton),$o=m(()=>Gt.nextButton),yo=m(()=>Gt.playPrevChapterButton),vi=m(()=>Gt.seekToInteractiveButton),Pn=m(()=>Gt.interactiveGraphButton),vo=m(()=>Gt.liveButton),qn=m(()=>Gt.time),Qn=m(()=>Gt.episodes),Vr=m(()=>Gt.vkLogo),Rr=m(()=>Gt.volume),fn=m(()=>Gt.subtitles),vn=m(()=>Gt.settings),mr=m(()=>Gt.context),mn=m(()=>Gt.fullscreen),Nr=m(()=>Gt.chromecast),et=m(()=>({prevButton:H()?H().right-H().left:0,replayButton:B()?B().right-B().left:0,playButton:z()?z().right-z().left:0,nextButton:Z()?Z().right-Z().left:0,playPrevChapterButton:ae()?ae().right-ae().left:0,seekToInteractiveButton:q()?q().right-q().left:0,interactiveGraphButton:de()?de().right-de().left:0,liveButton:X()?X().right-X().left:0,time:fe()?fe().right-fe().left:0,episodes:re()?re().right-re().left:0,vkLogo:le()?le().right-le().left:0,volume:Me()?Me().right-Me().left:0,subtitles:we()?we().right-we().left:0,settings:te()?te().right-te().left:0,context:Ne()?Ne().right-Ne().left:0,fullscreen:ue()?ue().right-ue().left:0,chromecast:k()?k().right-k().left:0,additionalButtons:Ke().length?Ke().reduce(ht=>[...ht,40],[]):[]})),At=Q(0);ze(()=>{(!n(At)||n(At)<n(et).time)&&kt(()=>N(At,n(et).time,!0))});let yi=Q(!1);ze(()=>{let ht=0;n(Ro)&&(eo(u(),"xl")?ht=n(et).time:ht=60);let _t=n(et).prevButton+n(et).playButton+n(et).nextButton+n(et).seekToInteractiveButton+n(et).interactiveGraphButton+n(et).liveButton+n(At)+ht;N(yi,n(Lo)&&n(Kn)>=_t,!0)});let mo=m(()=>n(yi)&&eo(u(),"m")),No=g0(Ol,260),xo=g0(Ku,260);ze(()=>{Ve(),Y(),oe(),No(Hi(),Gt,tt,e.showControls),xo(Hi(),Mt,ri,e.showControls)}),ze(()=>{ri.bottom=Nt()});let Gi=se();ze(()=>{Be(),Ye()&&kt(()=>Il(Ye(),Be(),ti))});let ki;ze(()=>{me(),kt(()=>zu(K,me(),ki))});function Yo(){Zs({isAudioDisabled:bi,isAudioAvailable:J(),isAds:Ct(),audioIsNotExistHintCallback:it,audioDisabledHintCallback:qe})&&Tt()}let Oo=Vi?lr:Oe,wo=m(()=>Ie()!==null),ji=m(()=>n(wo)?Ie():n(Tr)),Or=m(()=>n(ji)?pt("tooltip_pause"):pt("tooltip_play")),Gn=pt("tooltip_episodes"),jn=m(()=>{var ht,_t,Zi,So;return n(pr)?{id:"prevButton",type:"desktop-control-panel-left",weight:Ps.prevButton,buttonComponent:Na,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:co.bind(null,!0)},tooltipEnabled:!((_t=(ht=ee.callbacks)==null?void 0:ht.uiInfo)!=null&&_t.onPrevButtonMouseEnter)&&!((So=(Zi=ee.callbacks)==null?void 0:Zi.uiInfo)!=null&&So.onPrevButtonMouseLeave),mouseEnter:()=>{var Xi,gi,Ui;(Ui=(gi=(Xi=ee.callbacks)==null?void 0:Xi.uiInfo)==null?void 0:gi.onPrevButtonMouseEnter)==null||Ui.call(gi,Hn(Hi(),tt,"prevButton",e.showControls))},mouseLeave:()=>{var Xi,gi,Ui;(Ui=(gi=(Xi=ee.callbacks)==null?void 0:Xi.uiInfo)==null?void 0:gi.onPrevButtonMouseLeave)==null||Ui.call(gi,Hn(Hi(),tt,"prevButton",e.showControls))},tooltipText:pt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),gr=m(()=>n(Ir)?{id:"replayButton",type:"desktop-control-panel-left",weight:Ps.replayButton,buttonComponent:Dl,buttonComponentProps:{disabled:n(ur),click:Oo},tooltipText:pt("tooltip_restart"),disabled:n(ur)}:void 0),fs=m(()=>n(Tn)?{id:"playButton",type:"desktop-control-panel-left",weight:Ps.playButton,buttonComponent:Bl,buttonComponentProps:{disabled:n(Cn),isPlaying:n(Tr),click:Oe},tooltipText:n(Or),disabled:n(Cn)}:void 0),Dr=m(()=>{var ht,_t,Zi,So;return n(po)?{id:"nextButton",type:"desktop-control-panel-left",weight:Ps.nextButton,buttonComponent:Na,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:uo.bind(null,!0)},tooltipEnabled:!((_t=(ht=ee.callbacks)==null?void 0:ht.uiInfo)!=null&&_t.onNextButtonMouseEnter)&&!((So=(Zi=ee.callbacks)==null?void 0:Zi.uiInfo)!=null&&So.onNextButtonMouseLeave),mouseEnter:()=>{var Xi,gi,Ui;(Ui=(gi=(Xi=ee.callbacks)==null?void 0:Xi.uiInfo)==null?void 0:gi.onNextButtonMouseEnter)==null||Ui.call(gi,Hn(Hi(),tt,"nextButton",e.showControls))},mouseLeave:()=>{var Xi,gi,Ui;(Ui=(gi=(Xi=ee.callbacks)==null?void 0:Xi.uiInfo)==null?void 0:gi.onNextButtonMouseLeave)==null||Ui.call(gi,Hn(Hi(),tt,"nextButton",e.showControls))},tooltipText:pt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Jr=m(()=>Vi&&n(fo)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Ps.playPrevChapterButton,buttonComponent:Xd,buttonComponentProps:{disabled:n(Sr),click:e.playPrevChapter},tooltipText:pt("tooltip_interactive_go_back"),disabledTooltipContent:pt(Zr),disabled:n(Sr)}:void 0),Qe=m(()=>Vi&&n(cn)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Ps.seekToInteractiveButton,buttonComponent:ec,buttonComponentProps:{disabled:n(ln),click:e.seekToInteractive},tooltipText:pt("tooltip_interactive_seek"),disabled:n(ln),disabledTooltipContent:pt(ge())}:void 0),Yt=m(()=>Vi&&n(Vo)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Ps.interactiveGraphButton,buttonComponent:tc,buttonComponentProps:{disabled:n(Mo),click:Xr.toggle,graphIsOpened:R()},tooltipText:n(fr)}:void 0),mi=m(()=>n(En)?{id:"liveButton",type:"desktop-control-panel-left",weight:Ps.liveButton,buttonComponent:ic,buttonComponentProps:{isLiveActive:n(jo),ariaLabel:n(Fi)},tooltipText:n(Fi),disabled:n(jo)&&l()===Nv.PLAYING}:void 0),gn=m(()=>[n(jn),n(gr),n(fs),n(Dr),n(Jr),n(Qe),n(Yt),n(mi)].filter(ht=>!!ht).sort(Aa)),Do=m(()=>n(In)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Ls.vkLogo,buttonComponent:Wd,buttonComponentProps:{targetUrl:Xt(),logoClickable:e.logoClickable,click:ct},tooltipText:n(vr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Br=m(()=>n(pi)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Ls.autoplayNext,buttonComponent:Jd,tooltipText:n(Lr)}:void 0),Zo=m(()=>({id:"volume",type:"desktop-control-panel-right",weight:Ls.volume,buttonComponent:ov,buttonComponentProps:{click:Yo,isAds:Ct()}})),Hr=m(()=>n(kr)?{id:"subtitles",type:"desktop-control-panel-right",weight:Ls.subtitles,buttonComponent:Xf,buttonComponentProps:{isSubtitlesEnabled:n(Er),click:bt},tooltipText:n(Mr)}:void 0),Vs=m(()=>n(Ar)?{id:"settings",type:"desktop-control-panel-right",weight:Ls.settings,buttonComponent:Ml,buttonComponentProps:{ref$:Gi},tooltipText:Be()?void 0:pt("tooltip_settings_off")}:void 0),Yi=m(()=>Pe.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Ls.context,buttonComponent:bv,buttonComponentProps:{ariaLabel:pt("aria_label_context_menu")},className:n(zn)?"":"out-of-view",tooltipText:n(Pr)}:void 0),Fr=m(()=>n(kn)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Ls.fullscreen,buttonComponent:zd,buttonComponentProps:{isFullscreen:I(),click:e.toggleFullscreen},tooltipText:n(An)}:void 0),ea=m(()=>n(mt)?{id:"chromecast",type:"desktop-control-panel-right",weight:Ls.chromecast,buttonComponent:Kd,buttonComponentProps:{state:v(),click:Cr},tooltipText:n(Wn)}:void 0),gt=m(()=>[n(Do),n(Br),n(Zo),n(Hr),n(Vs),n(Yi),n(Fr),n(ea),...Ke()].filter(ht=>!!ht).sort(Aa)),ci=ee.ui.previewTrackActive,go=ee.ui.previewTrackDragInProgress,hn=ee.ui.previewTrackAvailable,$e=ee.ui.isPreviewTrackHorizontallyAligned,ft=m(()=>f0({onPreviewTrackOpened:ee.actions.internal.previewTrackOpened,getTimelineRef:()=>tt.timeline,isHorizontal:Fe()})),si=m(()=>n(ft).progressBarY),xi=m(()=>n(ft).controlsY),ui=m(()=>n(ft).onPointerDown),Zt=m(()=>n(ft).onPointerMove),Ci=m(()=>n(ft).onPointerUp),_n=m(()=>n(ft).calculatedHeight),Xo=m(()=>n(ft).closePreviewTrack);ze(()=>{oe()?ei.set(!1):n(Xo)()});let Ai;Rt(()=>()=>Ai&&clearTimeout(Ai));let Qa=ht=>{oe()||!Ze()||(n(ui)(ht),Ai=setTimeout(()=>{ee.actions.internal.previewTrackDragStarted()},200))},ta=()=>{oe()||n(Ci)(),Ai&&clearTimeout(Ai),Ge()&&ee.actions.internal.previewTrackDragFinished()},ia=ht=>{n(Zt)(ht),!oe()&&Ze()&&!oe()&&ei.set(!0)},oa=()=>{ei.set(!1)};var Yn=d3(),vs=pe(Yn);let na;var hr=_(vs);{var Ga=ht=>{let _t=m(()=>n(si)()),Zi=m(()=>n(_n)());Rv(ht,{get animatedOffsetY(){return n(_t)},get animatedPreviewTrackHeight(){return n(Zi)},get canRewindLive(){return e.canRewindLive},get isAds(){return Ct()},onTimelineMove:ia,onTimelinePointerDown:Qa,onTimelinePointerUp:ta,onTimelinePointerLeave:oa,get previewTrackAvailable(){return Ze()},get timelineRef(){return tt.timeline},set timelineRef(So){tt.timeline=So}})};V(hr,ht=>{e.showControls&&ht(Ga)})}var ms=P(hr,2),gs=_(ms),ja=_(gs);wi(ja,17,()=>n(gn),ht=>ht.id,(ht,_t)=>{Wu(ht,{get buttonComponent(){return n(_t).buttonComponent},get buttonComponentProps(){return n(_t).buttonComponentProps},get tooltipText(){return n(_t).tooltipText},get disabledTooltipContent(){return n(_t).disabledTooltipContent},get disabled(){return n(_t).disabled},get className(){return n(_t).className},get tooltipEnabled(){return n(_t).tooltipEnabled},get mouseEnter(){return n(_t).mouseEnter},get mouseLeave(){return n(_t).mouseLeave},get ref(){return tt[n(_t).id]},set ref(Zi){tt[n(_t).id]=Zi}})});var ra=P(ja,2);{var zl=ht=>{let _t=m(()=>!e.showControls),Zi=m(()=>Ct()?dt():Je()),So=m(()=>Ct()?Ot():nt());Fd(ht,{get isHidden(){return n(_t)},isMobile:!1,get showDuration(){return n(mo)},get position(){return n(Zi)},get duration(){return n(So)},get ref(){return tt.time},set ref(Xi){tt.time=Xi}})};V(ra,ht=>{n(Lo)&&ht(zl)})}var Ya=P(ra,2);let Wl=m(()=>!n(Ro));ko(Ya,{className:"w-max",get disabled(){return n(Wl)},get tooltipContent(){return Gn},get ref(){return tt.episodes},set ref(ht){tt.episodes=ht},children:(ht,_t)=>{var Zi=He(),So=pe(Zi);{var Xi=gi=>{qd(gi,{get position(){return Je()},get duration(){return nt()},get timeCodes(){return xt}})};V(So,gi=>{n(Ro)&&gi(Xi)})}b(ht,Zi)},$$slots:{default:!0}}),g(gs);var Zn=P(gs,2);wi(Zn,21,()=>n(gt),ht=>ht.id,(ht,_t)=>{var Zi=He(),So=pe(Zi);{var Xi=Ui=>{Wu(Ui,{get buttonComponent(){return n(_t).buttonComponent},get buttonComponentProps(){return n(_t).buttonComponentProps},get tooltipText(){return n(_t).tooltipText},get disabledTooltipContent(){return n(_t).disabledTooltipContent},get disabled(){return n(_t).disabled},get className(){return n(_t).className},get ref(){return tt[n(_t).id]},set ref(Rs){tt[n(_t).id]=Rs}})},gi=Ui=>{let Rs=m(()=>!!n(_t).disabled);Cv(Ui,{get id(){return n(_t).id},get testId(){return n(_t).testId},get icon(){return n(_t).icon},get ariaLabel(){return n(_t).ariaLabel},get tooltipText(){return n(_t).tooltipText},get disabledTooltipContent(){return n(_t).disabledTooltipContent},get disabled(){return n(Rs)},get onClick(){return n(_t).onClick},get disableMouseupTooltipShow(){return n(_t).disableMouseupTooltipShow},get ref(){return tt[n(_t).id]},set ref(ql){tt[n(_t).id]=ql}})};V(So,Ui=>{c0(n(_t))?Ui(Xi):Ui(gi,!1)})}b(ht,Zi)}),g(Zn),g(ms),st(ms,ht=>Wt(ht),()=>Wt()),g(vs),st(vs,ht=>Nt(ht),()=>Nt());var Kl=P(vs,2);{var Za=ht=>{jd(ht,{get ref(){return tt.interactiveTimeIndicator},set ref(_t){tt.interactiveTimeIndicator=_t}})};V(Kl,ht=>{wr&&ht(Za)})}D((ht,_t)=>{na=ne(vs,1,"wrapper-bottom svelte-1ojrdvx",null,na,ht),Xe(ms,_t),ms.inert=oe()},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth||Ge()}),()=>`transform: translateY(${n(xi)()}px);`]),Sn(gs,"clientWidth",ht=>N(Kn,ht)),b(t,Yn),U(),o()}import{ChromecastState as _0,PlaybackState as b0}from"@vkontakte/videoplayer-core/es2018";import{noop as h0}from"@vkontakte/videoplayer-shared/es2018";var u3=M('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),p3=M('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),f3={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 Dv(t,e){W(t,f3);let i=h(e,"disabled",3,!1),o=h(e,"onClick",3,h0),r=m(()=>o()===h0),s=m(()=>n(r)||i()),l=Q(!1),d=()=>{N(l,!0)},a=m(()=>n(r)?"btn-full-opacity":"");Ft(t,{get className(){return n(a)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(s)},get testId(){return e.testId},children:(u,f)=>{var v=He(),p=pe(v);{var y=x=>{var C=u3();b(x,C)},w=x=>{var C=p3();D(()=>We(C,"src",e.iconUrl)),wt("error",C,d),$a(C),b(x,C)};V(p,x=>{n(l)?x(y):x(w,!1)})}b(u,v)},$$slots:{default:!0}})}var v3=Ee('<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 Bv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=v3();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}import{noop as m3}from"@vkontakte/videoplayer-shared/es2018";var g3=M('<div class="container svelte-yslgu" aria-hidden="true"><!></div>'),h3={hash:"svelte-yslgu",code:".container.svelte-yslgu {display:flex;align-items:center;}"};function qu(t,e){F(e,!0),W(t,h3);let i=h(e,"muted",3,!1),o=h(e,"click",3,m3),r=h(e,"ref",15,void 0),l=he().ui.t,d=m(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),a=m(()=>i()?Bv:Xs),u=m(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Ft(t,{get testId(){return n(u)},get click(){return o()},get ariaLabel(){return n(d)},role:"button",get ref(){return r()},set ref(f){r(f)},children:(f,v)=>{var p=g3();let y=m(()=>n(a));var w=_(p);Pi(w,()=>n(y),(x,C)=>{C(x,{})}),g(p),b(f,p)},$$slots:{default:!0}}),U()}var _3=Ee('<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 Hv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=_3();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(3),g(o),b(t,o)}var b3={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
267
+ svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function Fv(t,e){W(t,b3);let i=h(e,"isActive",3,!1),o=m(()=>i()?"color: #2688EB;":"color: #fff;"),r=m(()=>i()?"pip-icon--active":"pip-icon");Hv(t,{get style(){return n(o)},get"data-testid"(){return n(r)}})}import{noop as $3}from"@vkontakte/videoplayer-shared/es2018";function Uv(t,e){F(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"isPictureInPictureActive",3,!1),r=h(e,"click",3,$3),s=j("menu_pip");Ft(t,{testId:"btn-pip",get ariaLabel(){return s},get click(){return r()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{Fv(l,{get isActive(){return o()}})},$$slots:{default:!0}}),U()}import{debounceFn as $0}from"@vkontakte/videoplayer-shared/es2018";var y3=(t,e,i,o)=>{n(e)&&i.onDisabledPlayPrevChapterClick(n(o))},x3=(t,e,i,o)=>{n(e)&&i.onDisabledSeekToInteractiveClick(n(o))},w3=M("<div><!></div>"),S3=M("<div><!></div>"),C3=M("<div><!></div>"),T3=M("<!> <!> <!>",1),E3=M("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),I3=M('<div class="wrapper-middle svelte-tg0ura"><!></div>'),k3=M("<div><!></div> <!> <div><!></div>",1),A3=M('<div aria-hidden="true">\xB7</div> <!>',1),P3=M('<!> <!> <div><div><div class="controls mobile svelte-tg0ura"><div class="controls-group contain svelte-tg0ura"><!> <!> <!> <!></div> <div class="controls-group svelte-tg0ura"><!> <!> <!></div></div> <!></div></div> <!>',1),M3={hash:"svelte-tg0ura",code:`.wrapper-bottom.svelte-tg0ura {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px;}.wrapper-bottom.svelte-tg0ura::before {content:'';height:var(--controls-gradient-height);background:var(--controls-gradient);position:absolute;width:100%;}.wrapper-bottom.svelte-tg0ura > :where(.svelte-tg0ura) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-tg0ura {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-tg0ura {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;z-index:var(--controls-container-z-index);}.wrapper-top-right.svelte-tg0ura {position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex;z-index:var(--controls-container-z-index);}.wrapper-top-left.svelte-tg0ura {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-tg0ura,
260
268
  .wrapper-middle-left-second.svelte-tg0ura,
261
269
  .wrapper-middle-right.svelte-tg0ura {position:absolute;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.wrapper-middle-left.svelte-tg0ura {left:12px;}.wrapper-middle-left-second.svelte-tg0ura {left:64px;}.wrapper-middle-right.svelte-tg0ura {right:12px;}.controls.svelte-tg0ura {width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box;justify-content:space-between;}.controls-group.svelte-tg0ura {display:flex;}.controls-group.contain.svelte-tg0ura {min-width:0;}.controls-group.svelte-tg0ura > *:not(:first-child) {margin-left:8px;}.hidden.svelte-tg0ura {visibility:hidden;opacity:0;}.controls-hidden.svelte-tg0ura {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-tg0ura {transition:none;}.overlay-mobile.svelte-tg0ura {position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.3);pointer-events:none;transition:opacity var(--controls-transition-duration);}
262
270
 
@@ -264,7 +272,7 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},Jh=tb;var $
264
272
  }
265
273
 
266
274
  @media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-tg0ura {top:12px;left:44px;}.wrapper-top-right.fullscreen.svelte-tg0ura {top:12px;right:44px;}.wrapper-middle-left.fullscreen.svelte-tg0ura {left:44px;}.wrapper-middle-left-second.fullscreen.svelte-tg0ura {left:96px;}.wrapper-middle-right.fullscreen.svelte-tg0ura {right:44px;}.controls-wrapper.fullscreen.svelte-tg0ura {position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px);}
267
- }`};function Sm(t,e){var Mr,qn;U(e,!0),K(t,O4);let[i,o]=Be(),n=()=>S(io,"$seekToInteractiveDisabledTooltip$",i),s=()=>S(po,"$disabledControls$",i),l=()=>S(qt,"$playbackState$",i),d=()=>S(wo,"$adPlaybackState",i),a=()=>S(de,"$isEnded$",i),p=()=>S(N,"$playerSize",i),f=()=>S(Ze,"$scrubbingInProgress",i),m=()=>S(xi,"$chromecastState$",i),u=()=>S(bt,"$isPictureInPictureActive",i),y=()=>S(Lt,"$pictureInPictureType$",i),w=()=>S(At,"$mobileNotReportControlHidden$",i),x=()=>S(ni,"$chromecastHidden",i),T=()=>S(Qt,"$playerPhase",i),C=()=>S(wt,"$pipHidden",i),E=()=>S(je,"$currentGridType$",i),R=()=>S(co,"$vkLogoHidden",i),I=()=>S(Ti,"$volumeHidden",i),k=()=>S(Qe,"$isLive$",i),B=()=>S(vi,"$settingsMenuVisible",i),F=()=>S(be,"$isRewindableLive$",i),H=()=>S(De,"$isActiveLive$",i),W=()=>S(_e,"$isAudioAvailable$",i),Y=()=>S(ce,"$muted$",i),oe=()=>S(Ue,"$volume$",i),G=()=>S(ei,"$isInteractiveTime$",i),he=()=>S(To,"$settingButtonRef$",i),J=()=>S($t,"$startedByKeyboard$",i),pe=()=>S(on,"$isFullscreen",i),me=()=>S(et,"$additionalButtons$",i),ue=()=>S(uo,"$autoplayNextToggleHidden",i),Le=()=>S(Wi,"$crashed$",i),Me=()=>S(Jt,"$settingsHidden",i),le=()=>S(vn,"$graphIsOpened$",i),Ne=()=>S(xo,"$adPosition",i),re=()=>S(Li,"$adDuration",i),P=()=>S(ke,"$position$",i),ot=()=>S(Kt,"$duration$",i),Oe=v(e,"playerControlsWrapperRef",15,void 0),Q=v(e,"playerControlsRef",15,void 0),te=v(e,"isAds",3,!1),Re=v(e,"logoTargetUrl",3,""),Je=v(e,"isOneVideoPlaylist",3,!1),ye=v(e,"customFullscreenSupported",3,!0),ee=Ce(),Se=lo(),Te=Tt(),Ke=ee.actions.internal.toggleMuted,tt=ee.actions.internal.togglePlay,pt=ee.actions.internal.pause,lt=ee.actions.internal.prevVideoClick,mt=ee.actions.internal.nextVideoClick,it=ee.actions.internal.checkFullscreenSupport,Dt=(Mr=ee.callbacks)==null?void 0:Mr.onAudioDoesNotExistHint,Wt=(qn=ee.callbacks)==null?void 0:qn.onAudioDisabledHint,Qt=ee.playerPhase,Kt=ee.state.duration$,ke=ee.state.positionWithScrubbing$,qt=ee.state.playbackState$,_e=ee.state.isAudioAvailable$,Ee=ee.state.isAudioDisabled,de=ee.state.isEnded$,Qe=ee.state.isLive$,Ue=ee.state.volume$,ce=ee.state.muted$,De=ee.state.isActiveLive$,be=ee.state.isRewindableLive$,Ze=ee.ui.scrubbingInProgress,At=ee.ui.mobileNotReportControlHidden$,{isActive$:bt,type$:Lt}=Se.pictureInPicture$,vi=ee.ui.settingsMenu.visible$,Yt=ee.ui.settingsMenu.openedByBtnKeyboard$,gi=ee.ui.controls,{volume:Ti,vkLogo:co,autoplayNextToggle:uo,pip:wt,settings:Jt,chromecast:ni}=ee.ui.hiddenControls,ze=ee.actions.internal.getVideoEpisodes(),It=ee.webApi.pictureInPictureApi,xi=ee.state.chromecastState$,Wi=ee.state.crashed$,po=gi.disabledControls$,$t=ee.ui.startedByKeyboard$,je=ee.ui.currentGridType$,Li=ee.ads.duration,xo=ee.ads.position,wo=ee.ads.playbackState,on=ee.ui.isFullscreen,N=ee.ui.playerSize,et=ee.ui.additionalButtonsDeprecated$,Ht=ee.actions.internal.getVideoElement,Ut=ee.actions.internal.replayInteractive,ft=ee.state.isInteractive,ei=ee.state.isInteractiveTime$,hi=ee.state.showInteractiveGraph,ci=ee.state.showSeekToInteractive,ht=ee.state.showPlayPrevChapter,Ei=ee.state.showInteractiveTimeIndicator,io=Se.seekToInteractiveDisabledTooltip$,vn=Se.graphIsOpened$,gn=ee.ui.controlBlocks,li=g(()=>q(ee.state.playPrevChapterDisabledTooltip)),oo=g(()=>q(n())),lr=g(()=>s().has("EPISODE_BUTTON")),no=g(()=>s().has("GRAPH_BUTTON")),Yi=g(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),Rn=g(()=>s().has("PLAY_BUTTON")),Wo=g(()=>s().has("REPLAY_BUTTON")),So=g(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),dr=g(()=>l()===G1.PLAYING),Nn=g(()=>d()==="paused"),cr=g(()=>a()&&!te()&&!ft),cs=g(()=>!a()||te()),Qr=g(()=>e.showNextPrevButtons&&!te()&&e.prevButtonActive),hn=g(()=>e.showNextPrevButtons&&!te()&&e.nextButtonActive),On=g(()=>p().width>300),_n=g(()=>p().width>400),Ko=g(f),qo=g(()=>m()!==Q1.NOT_AVAILABLE&&!(u()&&y()===1)&&!w()&&!ft&&!x()),Bn=g(()=>T()==="LiveWaitingStart"),ur=g(()=>!!It&&m()!==Q1.CONNECTED&&!w()&&(y()===1&&r(Bn)||!r(Bn))&&!r(Ko)&&!ft&&!C()),Gr=X(!1);Pt(()=>{let rt=It==null?void 0:It.info.isActive$.subscribe(kt=>O(Gr,kt,!0));return()=>rt==null?void 0:rt.unsubscribe()});let ro=g(()=>!r(Ko)&&Gi(E(),"s")),Er=g(()=>!e.logoHidden&&p().width>350&&!R()),nn=g(()=>Te.features.fullscreen&&it()&&!(u()&&y()===1)&&(ft?ye():!0)&&!r(Ko)&&!r(Gr)),bn=g(()=>!I()&&!r(Ko)),Dn=g(()=>(!k()||te())&&p().width>260&&!r(Ko)&&!(Te.features.interactiveHideTime&&ft)),pr=g(()=>B()||e.showControls),Fn=g(()=>!te()&&!k()&&!!(ze!=null&&ze.length)&&r(On)&&!r(lr)&&!r(Ko)),fo=g(()=>!F()||!!H()),jr=g(()=>hi&&Gi(E(),"m")),$n=g(()=>!W()||Y()||oe()===0),ct=Zt({}),ri=Zt({}),rn=j1(fl,260),yn=j1(Eu,260);qe(()=>{p(),G(),rn(Ht(),gi,ct,e.showControls),yn(Ht(),gn,ri,e.showControls)});let Ir=()=>ee.actions.internal.toggleChromecast();async function Co(){It!=null&&It.isActive()?await(It==null?void 0:It.exit()):await(It==null?void 0:It.request())}function sn(){Ws({isAudioDisabled:Ee,audioDisabledHintCallback:Wt,isAudioAvailable:W(),audioIsNotExistHintCallback:Dt,isAds:te()})&&Ke()}let di=X(""),Ii=(rt,kt)=>{if(!rt){O(di,q("tooltip_live"),!0);return}kt&&kt===G1.PAUSED&&O(di,q("tooltip_play"),!0)};qe(()=>{Ii(r(fo),l())});let To=se();qe(()=>{he()&&sl(he(),B(),Yt)}),qe(()=>{Cu($t,J(),ct.playButton)}),qe(()=>{ri.bottom=Oe()});var Hn=N4(),fr=fe(Hn);{var kr=rt=>{var kt=L4(),_i=fe(kt);let so;var Mi=A(_i,2);let Ki;st(Mi,Z=>ri.topLeft=Z,()=>ri==null?void 0:ri.topLeft);var Vi=A(Mi,2);let vo;var Sn=_(Vi);ki(Sn,1,me,({iconUrl:Z,ariaLabel:Ge,testId:Nt,onClick:oi,tooltip:wi})=>Z,(Z,Ge)=>{let Nt=()=>r(Ge).iconUrl,oi=()=>r(Ge).ariaLabel,wi=()=>r(Ge).testId,Si=()=>r(Ge).onClick,Bi=()=>r(Ge).tooltip,Yn=g(()=>{var Ci;return(Ci=oi())!=null?Ci:Bi()});bm(Z,{get iconUrl(){return Nt()},get ariaLabel(){return r(Yn)},get testId(){return wi()},get onClick(){return Si()}})});var Ao=A(Sn,2);{var Po=Z=>{Ld(Z,{get ref(){return ct.autoplayNextToggle},set ref(Ge){ct.autoplayNextToggle=Ge}})};V(Ao,Z=>{e.showAutoplayNext&&!Je()&&!ue()&&Z(Po)})}var Lo=A(Ao,2);{var Qn=Z=>{xd(Z,{isMobile:!0,click:Ir,get state(){return m()},get ref(){return ct.chromecast},set ref(Ge){ct.chromecast=Ge}})};V(Lo,Z=>{r(qo)&&Z(Qn)})}var Cn=A(Lo,2);{var _r=Z=>{wm(Z,{click:Co,get isPictureInPictureActive(){return u()},get ref(){return ct.pip},set ref(Ge){ct.pip=Ge}})};V(Cn,Z=>{r(ur)&&Z(_r)})}var br=A(Cn,2);{var Gn=Z=>{cl(Z,{get ref$(){return To}})};V(br,Z=>{Le()&&!Me()&&Z(Gn)})}var Vr=A(br,2);{var Yr=Z=>{yd(Z,{get click(){return pt},get targetUrl(){return Re()},get logoClickable(){return e.logoClickable},get ref(){return ct.vkLogo},set ref(Ge){ct.vkLogo=Ge}})};V(Vr,Z=>{r(Er)&&Z(Yr)})}h(Vi),st(Vi,Z=>ri.topRight=Z,()=>ri==null?void 0:ri.topRight);var We=A(Vi,2);let zt;var bi=_(We);{var ln=Z=>{let Ge=g(()=>lt.bind(null,!0));xa(Z,{get click(){return r(Ge)},type:"prev",isMobile:!0,get ref(){return ct.prevButton},set ref(Nt){ct.prevButton=Nt}})};V(bi,Z=>{r(Qr)&&Z(ln)})}var Mo=A(bi,2);{var Vo=Z=>{vl(Z,{get disabled(){return r(Rn)},get click(){return tt},isMobile:!0,get isPlaying(){return r(dr)},get ref(){return ct.playButton},set ref(Ge){ct.playButton=Ge}})};V(Mo,Z=>{r(cs)&&Z(Vo)})}var Ro=A(Mo,2);{var jn=Z=>{ml(Z,{get disabled(){return r(Wo)},get click(){return tt},isMobile:!0,get ref(){return ct.replayButton},set ref(Ge){ct.replayButton=Ge}})};V(Ro,Z=>{r(cr)&&Z(jn)})}var Zr=A(Ro,2);{var Is=Z=>{let Ge=g(()=>mt.bind(null,!0));xa(Z,{get click(){return r(Ge)},type:"next",isMobile:!0,get ref(){return ct.nextButton},set ref(Nt){ct.nextButton=Nt}})};V(Zr,Z=>{r(hn)&&Z(Is)})}h(We),st(We,Z=>ri.middle=Z,()=>ri==null?void 0:ri.middle);var $r=A(We,2);{var Xr=Z=>{var Ge=P4(),Nt=fe(Ge);{var oi=Ci=>{var $i=I4();let No;$i.__click=[T4,So,e,li];var go=_($i);let yr=g(()=>!e.showControls);Pd(go,{get hidden(){return r(yr)},get disabled(){return r(So)},get click(){return e.playPrevChapter},get ref(){return ct.playPrevChapterButton},set ref(ho){ct.playPrevChapterButton=ho}}),h($i),D(ho=>No=ne($i,1,"wrapper-middle-left svelte-tg0ura",null,No,ho),[()=>({fullscreen:pe(),hidden:!e.showControls})]),$(Ci,$i)};V(Nt,Ci=>{ht&&Ci(oi)})}var wi=A(Nt,2);{var Si=Ci=>{var $i=k4();let No;var go=_($i);let yr=g(()=>!e.showControls&&!le());Vd(go,{get hidden(){return r(yr)},get disabled(){return r(no)},get click(){return vn.toggle},get graphIsOpened(){return le()},get ref(){return ct.interactiveGraphButton},set ref(ho){ct.interactiveGraphButton=ho}}),h($i),D(ho=>No=ne($i,1,ql(ht?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-tg0ura",No,ho),[()=>({fullscreen:pe(),hidden:!e.showControls&&!le()})]),$(Ci,$i)};V(wi,Ci=>{r(jr)&&Ci(Si)})}var Bi=A(wi,2);{var Yn=Ci=>{var $i=A4();let No;$i.__click=[E4,Yi,e,oo];var go=_($i);let yr=g(()=>!e.showControls);Md(go,{get hidden(){return r(yr)},get disabled(){return r(Yi)},get click(){return e.seekToInteractive},get ref(){return ct.seekToInteractiveButton},set ref(ho){ct.seekToInteractiveButton=ho}}),h($i),D(ho=>No=ne($i,1,"wrapper-middle-right svelte-tg0ura",null,No,ho),[()=>({fullscreen:pe(),hidden:!e.showControls})]),$(Ci,$i)};V(Bi,Ci=>{ci&&Ci(Yn)})}$(Z,Ge)};V($r,Z=>{ft&&!f()&&Z(Xr)})}D((Z,Ge,Nt,oi)=>{so=ne(_i,1,"overlay-mobile svelte-tg0ura",null,so,Z),Ki=ne(Mi,1,"wrapper-top-left svelte-tg0ura",null,Ki,Ge),vo=ne(Vi,1,"wrapper-top-right svelte-tg0ura",null,vo,Nt),zt=ne(We,1,"wrapper-middle svelte-tg0ura",null,zt,oi)},[()=>({hidden:!r(pr)}),()=>({hidden:!e.showControls,fullscreen:pe()}),()=>({hidden:!e.showControls&&!w(),fullscreen:pe()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),$(rt,kt)};V(fr,rt=>{te()||rt(kr)})}var mr=A(fr,2);{var Un=rt=>{var kt=V4(),_i=fe(kt);let so;var Mi=_(_i);Iu(Mi,{get muted(){return Y()},click:sn,get ref(){return ct.volume},set ref(Po){ct.volume=Po}}),h(_i);var Ki=A(_i,2);{var Vi=Po=>{var Lo=M4(),Qn=_(Lo);let Cn=g(()=>!r(Nn));vl(Qn,{get disabled(){return r(Rn)},get click(){return tt},isMobile:!0,get isPlaying(){return r(Cn)},get ref(){return ct.playButton},set ref(_r){ct.playButton=_r}}),h(Lo),$(Po,Lo)};V(Ki,Po=>{r(Nn)&&Po(Vi)})}var vo=A(Ki,2);let Sn;var Ao=_(vo);wd(Ao,{get position(){return Ne()},get duration(){return re()}}),h(vo),D((Po,Lo)=>{so=ne(_i,1,"wrapper-top-right svelte-tg0ura",null,so,Po),Sn=ne(vo,1,"wrapper-bottom ads-timeline-mobile svelte-tg0ura",null,Sn,Lo)},[()=>({fullscreen:pe()}),()=>({fullscreen:pe()})]),$(rt,kt)};V(mr,rt=>{te()&&d()!=="inactive"&&rt(Un)})}var zn=A(mr,2);let Eo;var Wn=_(zn);let vr;var ti=_(Wn),an=_(ti),gr=_(an);{var xn=rt=>{yo(rt,{get disabled(){return r(Wo)},get ref(){return ct.replayButton},set ref(kt){ct.replayButton=kt},children:(kt,_i)=>{ml(kt,{get disabled(){return r(Wo)},get click(){return Ut}})},$$slots:{default:!0}})};V(gr,rt=>{ft&&rt(xn)})}var ut=A(gr,2);{var ii=rt=>{yo(rt,{get ref(){return ct.liveButton},set ref(kt){ct.liveButton=kt},children:(kt,_i)=>{Rd(kt,{get isLiveActive(){return r(fo)},isMobile:!0,get ariaLabel(){return r(di)}})},$$slots:{default:!0}})};V(ut,rt=>{!te()&&k()&&rt(ii)})}var Zi=A(ut,2);{var mo=rt=>{let kt=g(()=>te()?Ne():P()),_i=g(()=>te()?re():ot()),so=g(()=>!e.showControls);_d(rt,{get showDuration(){return r(_n)},get position(){return r(kt)},get duration(){return r(_i)},isMobile:!0,get isHidden(){return r(so)},get ref(){return ct.time},set ref(Mi){ct.time=Mi}})};V(Zi,rt=>{r(Dn)&&rt(mo)})}var ui=A(Zi,2);let Io=g(()=>!r(Fn));yo(ui,{className:"w-max",get disabled(){return r(Io)},get ref(){return ct.episodes},set ref(rt){ct.episodes=rt},children:(rt,kt)=>{var _i=Fe(),so=fe(_i);{var Mi=Ki=>{var Vi=R4(),vo=A(fe(Vi),2);Sd(vo,{get position(){return P()},get duration(){return ot()},get timeCodes(){return ze}}),$(Ki,Vi)};V(so,Ki=>{r(Fn)&&Ki(Mi)})}$(rt,_i)},$$slots:{default:!0}}),h(an),st(an,rt=>ri.bottomLeft=rt,()=>ri==null?void 0:ri.bottomLeft);var Xi=A(an,2),pi=_(Xi);{var wn=rt=>{yo(rt,{get ref(){return ct.volume},set ref(kt){ct.volume=kt},children:(kt,_i)=>{Iu(kt,{get muted(){return r($n)},click:sn})},$$slots:{default:!0}})};V(pi,rt=>{r(bn)&&rt(wn)})}var Qo=A(pi,2);{var hr=rt=>{yo(rt,{get ref(){return ct.settings},set ref(kt){ct.settings=kt},children:(kt,_i)=>{cl(kt,{get ref$(){return To}})},$$slots:{default:!0}})};V(Qo,rt=>{r(ro)&&rt(hr)})}var Ar=A(Qo,2);{var Go=rt=>{yo(rt,{get ref(){return ct.fullscreen},set ref(kt){ct.fullscreen=kt},children:(kt,_i)=>{$d(kt,{get click(){return e.toggleFullscreen},get isFullscreen(){return pe()}})},$$slots:{default:!0}})};V(Ar,rt=>{r(nn)&&rt(Go)})}h(Xi),st(Xi,rt=>ri.bottomRight=rt,()=>ri==null?void 0:ri.bottomRight),h(ti),st(ti,rt=>Q(rt),()=>Q());var Pr=A(ti,2);let Lr=g(()=>!e.showControls);$a(Pr,{get isHidden(){return r(Lr)},get isAds(){return te()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return F()},get ref(){return ct.timeline},set ref(rt){ct.timeline=rt}}),h(Wn),h(zn),st(zn,rt=>Oe(rt),()=>Oe());var ko=A(zn,2);{var Kn=rt=>{Id(rt,{get ref(){return ct.interactiveTimeIndicator},set ref(kt){ct.interactiveTimeIndicator=kt}})};V(ko,rt=>{Ei&&rt(Kn)})}D((rt,kt)=>{Eo=ne(zn,1,"wrapper-bottom mobile svelte-tg0ura",null,Eo,rt),vr=ne(Wn,1,"controls-wrapper svelte-tg0ura",null,vr,kt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:pe()})]),$(t,Hn),z(),o()}dt(["click"]);function Nd(t,e){U(e,!0);let[i,o]=Be(),n=()=>S(C,"$isMobile",i),s=v(e,"bottomNoSmooth",3,!1),l=v(e,"playerControlsWrapperRef",15,void 0),d=v(e,"playerControlsRef",15,void 0),a=v(e,"isAds",3,!1),p=v(e,"logoTargetUrl",3,""),f=v(e,"showAutoplayNext",3,!1),m=v(e,"isOneVideoPlaylist",3,!1),u=v(e,"customFullscreenSupported",3,!0),y=v(e,"endScreenShown",3,!1),w=v(e,"onDisabledPlayPrevChapterClick",3,Y1),x=v(e,"onDisabledSeekToInteractiveClick",3,Y1),C=Ce().ui.isMobile,E=X(!1);Pt(()=>{let B=setTimeout(()=>O(E,!0),0);return()=>clearTimeout(B)});var R=Fe(),I=fe(R);{var k=B=>{var F=Fe(),H=fe(F);{var W=oe=>{Sm(oe,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return m()},get customFullscreenSupported(){return u()},get endScreenShown(){return y()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return x()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(G){l(G)},get playerControlsRef(){return d()},set playerControlsRef(G){d(G)}})},Y=oe=>{_m(oe,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get isOneVideoPlaylist(){return m()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return u()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(G){l(G)},get playerControlsRef(){return d()},set playerControlsRef(G){d(G)}})};V(H,oe=>{n()?oe(W):oe(Y,!1)})}$(B,F)};V(I,B=>{r(E)&&B(k)})}$(t,R),z(),o()}var B4=we('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"></path></g><defs><filter id="a" width="43.996" height="49.5" x="2.5" y="0" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_100684"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_100684" result="shape"></feBlend></filter></defs></svg>');function Cm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=B4();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 s;return(s=e.children)!=null?s:ae}),xe(2),h(o),$(t,o)}function Tm(t,e){let i=v(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);Cm(t,{get style(){return r(o)}})}var D4=we('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22" clip-rule="evenodd"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="45" x="-1.5" y="1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104204"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104204" result="shape"></feBlend></filter></defs></svg>');function Em(t,e){let i=Ve(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":"subtitles-on-icon",role:"img",...i}));var n=_(o);ge(n,()=>{var s;return(s=e.children)!=null?s:ae}),xe(2),h(o),$(t,o)}var F4=we('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="51" x="-1.5" y="-1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104293"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104293" result="shape"></feBlend></filter></defs></svg>');function Im(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=F4();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 s;return(s=e.children)!=null?s:ae}),xe(2),h(o),$(t,o)}function ku(t,e){let i=v(e,"isOff",3,!1);var o=Fe(),n=fe(o);{var s=d=>{Im(d,{})},l=d=>{Em(d,{})};V(n,d=>{i()?d(s):d(l,!1)})}$(t,o)}var H4=we('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"></path></g><defs><filter id="a" width="40.098" height="27.785" x="3.402" y="10.105" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_106627"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_106627" result="shape"></feBlend></filter></defs></svg>');function km(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=H4();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 s;return(s=e.children)!=null?s:ae}),xe(2),h(o),$(t,o)}function Am(t,e){let i=v(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);km(t,{get style(){return r(o)}})}var U4=we('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"></path></g><defs><filter id="a" width="37" height="37" x="5.5" y="5.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2340_106922"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2340_106922" result="shape"></feBlend></filter></defs></svg>');function Pm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=U4();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 s;return(s=e.children)!=null?s:ae}),xe(2),h(o),$(t,o)}function Lm(t,e){let i=v(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);Pm(t,{get style(){return r(o)}})}var z4=M('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),W4=M('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),K4=M("<div><!></div>"),q4={hash:"svelte-1ad3n06",code:`.hot-key-helpers-container.svelte-1ad3n06 {position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;
275
+ }`};function zv(t,e){var mn,Nr;F(e,!0),W(t,M3);let[i,o]=De(),r=()=>S(Bi,"$seekToInteractiveDisabledTooltip$",i),s=()=>S(Gt,"$disabledControls$",i),l=()=>S(Ut,"$playbackState$",i),d=()=>S(Qo,"$adPlaybackState",i),a=()=>S(ee,"$isEnded$",i),u=()=>S(Et,"$playerSize",i),f=()=>S(bt,"$scrubbingInProgress",i),v=()=>S(St,"$chromecastState$",i),p=()=>S(it,"$isPictureInPictureActive",i),y=()=>S(qe,"$pictureInPictureType$",i),w=()=>S(ye,"$mobileNotReportControlHidden$",i),x=()=>S(vt,"$chromecastHidden",i),C=()=>S(Wt,"$playerPhase",i),T=()=>S(lo,"$pipHidden",i),E=()=>S(je,"$currentGridType$",i),R=()=>S(bi,"$vkLogoHidden",i),A=()=>S(fi,"$volumeHidden",i),I=()=>S(Ce,"$isLive$",i),O=()=>S(at,"$settingsMenuVisible",i),H=()=>S(ct,"$isRewindableLive$",i),B=()=>S(Oe,"$isActiveLive$",i),z=()=>S(Se,"$isAudioAvailable$",i),Z=()=>S(Tt,"$muted$",i),ae=()=>S(Pe,"$volume$",i),q=()=>S(pt,"$isInteractiveTime$",i),de=()=>S(cn,"$settingButtonRef$",i),X=()=>S(xt,"$startedByKeyboard$",i),fe=()=>S(sn,"$isFullscreen",i),re=()=>S(Dt,"$additionalButtons$",i),le=()=>S(io,"$autoplayNextToggleHidden",i),Me=()=>S(ti,"$crashed$",i),we=()=>S(di,"$settingsHidden",i),te=()=>S(Go,"$graphIsOpened$",i),Ne=()=>S(_o,"$adPosition",i),ue=()=>S($i,"$adDuration",i),k=()=>S(Xt,"$position$",i),Ke=()=>S(Ct,"$duration$",i),Ve=h(e,"playerControlsWrapperRef",15,void 0),Y=h(e,"playerControlsRef",15,void 0),oe=h(e,"isAds",3,!1),Be=h(e,"logoTargetUrl",3,""),Ye=h(e,"isOneVideoPlaylist",3,!1),me=h(e,"customFullscreenSupported",3,!0),J=he(),Ie=ho(),ge=Lt(),Fe=J.actions.internal.toggleMuted,Ze=J.actions.internal.togglePlay,Ge=J.actions.internal.pause,dt=J.actions.internal.prevVideoClick,Je=J.actions.internal.nextVideoClick,Ot=J.actions.internal.checkFullscreenSupport,nt=(mn=J.callbacks)==null?void 0:mn.onAudioDoesNotExistHint,Nt=(Nr=J.callbacks)==null?void 0:Nr.onAudioDisabledHint,Wt=J.playerPhase,Ct=J.state.duration$,Xt=J.state.positionWithScrubbing$,Ut=J.state.playbackState$,Se=J.state.isAudioAvailable$,xe=J.state.isAudioDisabled,ee=J.state.isEnded$,Ce=J.state.isLive$,Pe=J.state.volume$,Tt=J.state.muted$,Oe=J.state.isActiveLive$,ct=J.state.isRewindableLive$,bt=J.ui.scrubbingInProgress,ye=J.ui.mobileNotReportControlHidden$,{isActive$:it,type$:qe}=Ie.pictureInPicture$,at=J.ui.settingsMenu.visible$,Jt=J.ui.settingsMenu.openedByBtnKeyboard$,ni=J.ui.controls,{volume:fi,vkLogo:bi,autoplayNextToggle:io,pip:lo,settings:di,chromecast:vt}=J.ui.hiddenControls,Ii=J.actions.internal.getVideoEpisodes(),Qt=J.webApi.pictureInPictureApi,St=J.state.chromecastState$,ti=J.state.crashed$,Gt=ni.disabledControls$,xt=J.ui.startedByKeyboard$,je=J.ui.currentGridType$,$i=J.ads.duration,_o=J.ads.position,Qo=J.ads.playbackState,sn=J.ui.isFullscreen,Et=J.ui.playerSize,Dt=J.ui.additionalButtonsDeprecated$,K=J.actions.internal.getVideoElement,Mt=J.actions.internal.replayInteractive,ei=J.state.isInteractive,pt=J.state.isInteractiveTime$,It=J.state.showInteractiveGraph,qt=J.state.showSeekToInteractive,ut=J.state.showPlayPrevChapter,Li=J.state.showInteractiveTimeIndicator,Bi=Ie.seekToInteractiveDisabledTooltip$,Go=Ie.graphIsOpened$,Ao=J.ui.controlBlocks,oo=m(()=>j(J.state.playPrevChapterDisabledTooltip)),Hi=m(()=>j(r())),lr=m(()=>s().has("EPISODE_BUTTON")),co=m(()=>s().has("GRAPH_BUTTON")),uo=m(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),Vi=m(()=>s().has("PLAY_BUTTON")),an=m(()=>s().has("REPLAY_BUTTON")),Po=m(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),dr=m(()=>l()===b0.PLAYING),cr=m(()=>d()==="paused"),wr=m(()=>a()&&!oe()&&!ei),Zr=m(()=>!a()||oe()),ps=m(()=>e.showNextPrevButtons&&!oe()&&e.prevButtonActive),Xr=m(()=>e.showNextPrevButtons&&!oe()&&e.nextButtonActive),bo=m(()=>u().width>300),Un=m(()=>u().width>400),Mo=m(f),ln=m(()=>v()!==_0.NOT_AVAILABLE&&!(p()&&y()===1)&&!w()&&!ei&&!x()),Cn=m(()=>C()==="LiveWaitingStart"),ur=m(()=>!!Qt&&v()!==_0.CONNECTED&&!w()&&(y()===1&&n(Cn)||!n(Cn))&&!n(Mo)&&!ei&&!T()),Sr=Q(!1);Rt(()=>{let et=Qt==null?void 0:Qt.info.isActive$.subscribe(At=>N(Sr,At,!0));return()=>et==null?void 0:et.unsubscribe()});let Cr=m(()=>!n(Mo)&&eo(E(),"s")),Tr=m(()=>!e.logoHidden&&u().width>350&&!R()),Er=m(()=>ge.features.fullscreen&&Ot()&&!(p()&&y()===1)&&(ei?me():!0)&&!n(Mo)&&!n(Sr)),Qi=m(()=>!A()&&!n(Mo)),Ir=m(()=>(!I()||oe())&&u().width>260&&!n(Mo)&&!(ge.features.interactiveHideTime&&ei)),Tn=m(()=>O()||e.showControls),dn=m(()=>!oe()&&!I()&&!!(Ii!=null&&Ii.length)&&n(bo)&&!n(lr)&&!n(Mo)),po=m(()=>!H()||!!B()),pr=m(()=>It&&eo(E(),"m")),En=m(()=>!z()||Z()||ae()===0),mt=ai({}),pi=ai({}),kr=$0(Ol,260),zn=$0(Ku,260);ze(()=>{u(),q(),kr(K(),ni,mt,e.showControls),zn(K(),Ao,pi,e.showControls)});let Ar=()=>J.actions.internal.toggleChromecast();async function In(){Qt!=null&&Qt.isActive()?await(Qt==null?void 0:Qt.exit()):await(Qt==null?void 0:Qt.request())}function kn(){Zs({isAudioDisabled:xe,audioDisabledHintCallback:Nt,isAudioAvailable:z(),audioIsNotExistHintCallback:nt,isAds:oe()})&&Fe()}let Lo=Q(""),Vo=(et,At)=>{if(!et){N(Lo,j("tooltip_live"),!0);return}At&&At===b0.PAUSED&&N(Lo,j("tooltip_play"),!0)};ze(()=>{Vo(n(po),l())});let cn=se();ze(()=>{de()&&Il(de(),O(),Jt)}),ze(()=>{zu(xt,X(),mt.playButton)}),ze(()=>{pi.bottom=Ve()});var fo=P3(),Ro=pe(fo);{var jo=et=>{var At=E3(),yi=pe(At);let mo;var No=P(yi,2);let xo;st(No,gt=>pi.topLeft=gt,()=>pi==null?void 0:pi.topLeft);var Gi=P(No,2);let ki;var Yo=_(Gi);wi(Yo,1,re,({iconUrl:gt,ariaLabel:ci,testId:go,onClick:hn,tooltip:$e})=>gt,(gt,ci)=>{let go=()=>n(ci).iconUrl,hn=()=>n(ci).ariaLabel,$e=()=>n(ci).testId,ft=()=>n(ci).onClick,si=()=>n(ci).tooltip,xi=m(()=>{var ui;return(ui=hn())!=null?ui:si()});Dv(gt,{get iconUrl(){return go()},get ariaLabel(){return n(xi)},get testId(){return $e()},get onClick(){return ft()}})});var Oo=P(Yo,2);{var wo=gt=>{Jd(gt,{get ref(){return mt.autoplayNextToggle},set ref(ci){mt.autoplayNextToggle=ci}})};V(Oo,gt=>{e.showAutoplayNext&&!Ye()&&!le()&&gt(wo)})}var ji=P(Oo,2);{var Or=gt=>{Kd(gt,{isMobile:!0,click:Ar,get state(){return v()},get ref(){return mt.chromecast},set ref(ci){mt.chromecast=ci}})};V(ji,gt=>{n(ln)&&gt(Or)})}var Gn=P(ji,2);{var jn=gt=>{Uv(gt,{click:In,get isPictureInPictureActive(){return p()},get ref(){return mt.pip},set ref(ci){mt.pip=ci}})};V(Gn,gt=>{n(ur)&&gt(jn)})}var gr=P(Gn,2);{var fs=gt=>{Ml(gt,{get ref$(){return cn}})};V(gr,gt=>{Me()&&!we()&&gt(fs)})}var Dr=P(gr,2);{var Jr=gt=>{Wd(gt,{get click(){return Ge},get targetUrl(){return Be()},get logoClickable(){return e.logoClickable},get ref(){return mt.vkLogo},set ref(ci){mt.vkLogo=ci}})};V(Dr,gt=>{n(Tr)&&gt(Jr)})}g(Gi),st(Gi,gt=>pi.topRight=gt,()=>pi==null?void 0:pi.topRight);var Qe=P(Gi,2);let Yt;var mi=_(Qe);{var gn=gt=>{let ci=m(()=>dt.bind(null,!0));Na(gt,{get click(){return n(ci)},type:"prev",isMobile:!0,get ref(){return mt.prevButton},set ref(go){mt.prevButton=go}})};V(mi,gt=>{n(ps)&&gt(gn)})}var Do=P(mi,2);{var Br=gt=>{Bl(gt,{get disabled(){return n(Vi)},get click(){return Ze},isMobile:!0,get isPlaying(){return n(dr)},get ref(){return mt.playButton},set ref(ci){mt.playButton=ci}})};V(Do,gt=>{n(Zr)&&gt(Br)})}var Zo=P(Do,2);{var Hr=gt=>{Dl(gt,{get disabled(){return n(an)},get click(){return Ze},isMobile:!0,get ref(){return mt.replayButton},set ref(ci){mt.replayButton=ci}})};V(Zo,gt=>{n(wr)&&gt(Hr)})}var Vs=P(Zo,2);{var Yi=gt=>{let ci=m(()=>Je.bind(null,!0));Na(gt,{get click(){return n(ci)},type:"next",isMobile:!0,get ref(){return mt.nextButton},set ref(go){mt.nextButton=go}})};V(Vs,gt=>{n(Xr)&&gt(Yi)})}g(Qe),st(Qe,gt=>pi.middle=gt,()=>pi==null?void 0:pi.middle);var Fr=P(Qe,2);{var ea=gt=>{var ci=T3(),go=pe(ci);{var hn=ui=>{var Zt=w3();let Ci;Zt.__click=[y3,Po,e,oo];var _n=_(Zt);let Xo=m(()=>!e.showControls);Xd(_n,{get hidden(){return n(Xo)},get disabled(){return n(Po)},get click(){return e.playPrevChapter},get ref(){return mt.playPrevChapterButton},set ref(Ai){mt.playPrevChapterButton=Ai}}),g(Zt),D(Ai=>Ci=ne(Zt,1,"wrapper-middle-left svelte-tg0ura",null,Ci,Ai),[()=>({fullscreen:fe(),hidden:!e.showControls})]),b(ui,Zt)};V(go,ui=>{ut&&ui(hn)})}var $e=P(go,2);{var ft=ui=>{var Zt=S3();let Ci;var _n=_(Zt);let Xo=m(()=>!e.showControls&&!te());tc(_n,{get hidden(){return n(Xo)},get disabled(){return n(co)},get click(){return Go.toggle},get graphIsOpened(){return te()},get ref(){return mt.interactiveGraphButton},set ref(Ai){mt.interactiveGraphButton=Ai}}),g(Zt),D(Ai=>Ci=ne(Zt,1,md(ut?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-tg0ura",Ci,Ai),[()=>({fullscreen:fe(),hidden:!e.showControls&&!te()})]),b(ui,Zt)};V($e,ui=>{n(pr)&&ui(ft)})}var si=P($e,2);{var xi=ui=>{var Zt=C3();let Ci;Zt.__click=[x3,uo,e,Hi];var _n=_(Zt);let Xo=m(()=>!e.showControls);ec(_n,{get hidden(){return n(Xo)},get disabled(){return n(uo)},get click(){return e.seekToInteractive},get ref(){return mt.seekToInteractiveButton},set ref(Ai){mt.seekToInteractiveButton=Ai}}),g(Zt),D(Ai=>Ci=ne(Zt,1,"wrapper-middle-right svelte-tg0ura",null,Ci,Ai),[()=>({fullscreen:fe(),hidden:!e.showControls})]),b(ui,Zt)};V(si,ui=>{qt&&ui(xi)})}b(gt,ci)};V(Fr,gt=>{ei&&!f()&&gt(ea)})}D((gt,ci,go,hn)=>{mo=ne(yi,1,"overlay-mobile svelte-tg0ura",null,mo,gt),xo=ne(No,1,"wrapper-top-left svelte-tg0ura",null,xo,ci),ki=ne(Gi,1,"wrapper-top-right svelte-tg0ura",null,ki,go),Yt=ne(Qe,1,"wrapper-middle svelte-tg0ura",null,Yt,hn)},[()=>({hidden:!n(Tn)}),()=>({hidden:!e.showControls,fullscreen:fe()}),()=>({hidden:!e.showControls&&!w(),fullscreen:fe()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),b(et,At)};V(Ro,et=>{oe()||et(jo)})}var fr=P(Ro,2);{var Pr=et=>{var At=k3(),yi=pe(At);let mo;var No=_(yi);qu(No,{get muted(){return Z()},click:kn,get ref(){return mt.volume},set ref(wo){mt.volume=wo}}),g(yi);var xo=P(yi,2);{var Gi=wo=>{var ji=I3(),Or=_(ji);let Gn=m(()=>!n(cr));Bl(Or,{get disabled(){return n(Vi)},get click(){return Ze},isMobile:!0,get isPlaying(){return n(Gn)},get ref(){return mt.playButton},set ref(jn){mt.playButton=jn}}),g(ji),b(wo,ji)};V(xo,wo=>{n(cr)&&wo(Gi)})}var ki=P(xo,2);let Yo;var Oo=_(ki);oc(Oo,{get position(){return Ne()},get duration(){return ue()}}),g(ki),D((wo,ji)=>{mo=ne(yi,1,"wrapper-top-right svelte-tg0ura",null,mo,wo),Yo=ne(ki,1,"wrapper-bottom ads-timeline-mobile svelte-tg0ura",null,Yo,ji)},[()=>({fullscreen:fe()}),()=>({fullscreen:fe()})]),b(et,At)};V(fr,et=>{oe()&&d()!=="inactive"&&et(Pr)})}var un=P(fr,2);let Fi;var vr=_(un);let Mr;var An=_(vr),Wn=_(An),Lr=_(Wn);{var Kn=et=>{ko(et,{get disabled(){return n(an)},get ref(){return mt.replayButton},set ref(At){mt.replayButton=At},children:(At,yi)=>{Dl(At,{get disabled(){return n(an)},get click(){return Mt}})},$$slots:{default:!0}})};V(Lr,et=>{ei&&et(Kn)})}var tt=P(Lr,2);{var ri=et=>{ko(et,{get ref(){return mt.liveButton},set ref(At){mt.liveButton=At},children:(At,yi)=>{ic(At,{get isLiveActive(){return n(po)},isMobile:!0,get ariaLabel(){return n(Lo)}})},$$slots:{default:!0}})};V(tt,et=>{!oe()&&I()&&et(ri)})}var Ri=P(tt,2);{var Ni=et=>{let At=m(()=>oe()?Ne():k()),yi=m(()=>oe()?ue():Ke()),mo=m(()=>!e.showControls);Fd(et,{get showDuration(){return n(Un)},get position(){return n(At)},get duration(){return n(yi)},isMobile:!0,get isHidden(){return n(mo)},get ref(){return mt.time},set ref(No){mt.time=No}})};V(Ri,et=>{n(Ir)&&et(Ni)})}var pn=P(Ri,2);let $o=m(()=>!n(dn));ko(pn,{className:"w-max",get disabled(){return n($o)},get ref(){return mt.episodes},set ref(et){mt.episodes=et},children:(et,At)=>{var yi=He(),mo=pe(yi);{var No=xo=>{var Gi=A3(),ki=P(pe(Gi),2);qd(ki,{get position(){return k()},get duration(){return Ke()},get timeCodes(){return Ii}}),b(xo,Gi)};V(mo,xo=>{n(dn)&&xo(No)})}b(et,yi)},$$slots:{default:!0}}),g(Wn),st(Wn,et=>pi.bottomLeft=et,()=>pi==null?void 0:pi.bottomLeft);var yo=P(Wn,2),vi=_(yo);{var Pn=et=>{ko(et,{get ref(){return mt.volume},set ref(At){mt.volume=At},children:(At,yi)=>{qu(At,{get muted(){return n(En)},click:kn})},$$slots:{default:!0}})};V(vi,et=>{n(Qi)&&et(Pn)})}var vo=P(vi,2);{var qn=et=>{ko(et,{get ref(){return mt.settings},set ref(At){mt.settings=At},children:(At,yi)=>{Ml(At,{get ref$(){return cn}})},$$slots:{default:!0}})};V(vo,et=>{n(Cr)&&et(qn)})}var Qn=P(vo,2);{var Vr=et=>{ko(et,{get ref(){return mt.fullscreen},set ref(At){mt.fullscreen=At},children:(At,yi)=>{zd(At,{get click(){return e.toggleFullscreen},get isFullscreen(){return fe()}})},$$slots:{default:!0}})};V(Qn,et=>{n(Er)&&et(Vr)})}g(yo),st(yo,et=>pi.bottomRight=et,()=>pi==null?void 0:pi.bottomRight),g(An),st(An,et=>Y(et),()=>Y());var Rr=P(An,2);let fn=m(()=>!e.showControls);Da(Rr,{get isHidden(){return n(fn)},get isAds(){return oe()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return H()},get ref(){return mt.timeline},set ref(et){mt.timeline=et}}),g(vr),g(un),st(un,et=>Ve(et),()=>Ve());var vn=P(un,2);{var mr=et=>{jd(et,{get ref(){return mt.interactiveTimeIndicator},set ref(At){mt.interactiveTimeIndicator=At}})};V(vn,et=>{Li&&et(mr)})}D((et,At)=>{Fi=ne(un,1,"wrapper-bottom mobile svelte-tg0ura",null,Fi,et),Mr=ne(vr,1,"controls-wrapper svelte-tg0ura",null,Mr,At)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:fe()})]),b(t,fo),U(),o()}lt(["click"]);function nc(t,e){F(e,!0);let[i,o]=De(),r=()=>S(T,"$isMobile",i),s=h(e,"bottomNoSmooth",3,!1),l=h(e,"playerControlsWrapperRef",15,void 0),d=h(e,"playerControlsRef",15,void 0),a=h(e,"isAds",3,!1),u=h(e,"logoTargetUrl",3,""),f=h(e,"showAutoplayNext",3,!1),v=h(e,"isOneVideoPlaylist",3,!1),p=h(e,"customFullscreenSupported",3,!0),y=h(e,"endScreenShown",3,!1),w=h(e,"onDisabledPlayPrevChapterClick",3,y0),x=h(e,"onDisabledSeekToInteractiveClick",3,y0),T=he().ui.isMobile,E=Q(!1);Rt(()=>{let O=setTimeout(()=>N(E,!0),0);return()=>clearTimeout(O)});var R=He(),A=pe(R);{var I=O=>{var H=He(),B=pe(H);{var z=ae=>{zv(ae,{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 y()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return x()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(q){l(q)},get playerControlsRef(){return d()},set playerControlsRef(q){d(q)}})},Z=ae=>{Ov(ae,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get isOneVideoPlaylist(){return v()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return p()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(q){l(q)},get playerControlsRef(){return d()},set playerControlsRef(q){d(q)}})};V(B,ae=>{r()?ae(z):ae(Z,!1)})}b(O,H)};V(A,O=>{n(E)&&O(I)})}b(t,R),U(),o()}var L3=Ee('<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 Wv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=L3();ke(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 r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}function Kv(t,e){let i=h(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);Wv(t,{get style(){return n(o)}})}var V3=Ee('<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 qv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=V3();ke(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 r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}var R3=Ee('<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 Qv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=R3();ke(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 r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}function Qu(t,e){let i=h(e,"isOff",3,!1);var o=He(),r=pe(o);{var s=d=>{Qv(d,{})},l=d=>{qv(d,{})};V(r,d=>{i()?d(s):d(l,!1)})}b(t,o)}var N3=Ee('<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 Gv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=N3();ke(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 r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}function jv(t,e){let i=h(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);Gv(t,{get style(){return n(o)}})}var O3=Ee('<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 Yv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=O3();ke(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 r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),g(o),b(t,o)}function Zv(t,e){let i=h(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);Yv(t,{get style(){return n(o)}})}var D3=M('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),B3=M('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),H3=M("<div><!></div>"),F3={hash:"svelte-1ad3n06",code:`.hot-key-helpers-container.svelte-1ad3n06 {position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;
268
276
  animation: svelte-1ad3n06-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box;}.hot-key-helpers-container.svelte-1ad3n06 > div:where(.svelte-1ad3n06) {width:48px;height:48px;display:flex;justify-content:center;align-items:center;}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-off-icon"],
269
277
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-max-icon"] {transform:scale(2);}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="replay-icon"],
270
278
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
@@ -279,23 +287,23 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},Jh=tb;var $
279
287
  @keyframes svelte-1ad3n06-fadeOut {
280
288
  0% {opacity:1;}
281
289
  100% {opacity:0;}
282
- }`};function Mm(t,e){U(e,!0),K(t,q4);let[i,o]=Be(),n=()=>S(e.data,"$data",i),s=Ce(),{features:l}=Tt(),d=s.ui.t,a=g(()=>!n()),p=g(()=>{var C;return((C=n())==null?void 0:C.type)==="BACKWARD_SEEK"}),f=g(()=>{var C;return((C=n())==null?void 0:C.type)==="FORWARD_SEEK"}),m=g(()=>{var C;return(C=n())==null?void 0:C.type}),u=g(()=>{var C,E;return(C=n())!=null&&C.t?d(n().t.key,{value:n().t.value||""}):(E=n())==null?void 0:E.text});var y=K4();let w;var x=_(y);{var T=C=>{var E=W4(),R=fe(E),I=_(R);{var k=Q=>{let te=g(()=>r(m)==="FORWARD_SEEK");Tm(Q,{get reversed(){return r(te)}})};V(I,Q=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(m))&&Q(k)})}var B=A(I,2);{var F=Q=>{Ts(Q,{})};V(B,Q=>{r(m)==="PAUSE"&&!l.playbackStatusShow&&Q(F)})}var H=A(B,2);{var W=Q=>{Kr(Q,{})};V(H,Q=>{r(m)==="PLAY"&&!l.playbackStatusShow&&Q(W)})}var Y=A(H,2);{var oe=Q=>{Ad(Q,{})};V(Y,Q=>{r(m)==="REPLAY"&&!l.playbackStatusShow&&Q(oe)})}var G=A(Y,2);{var he=Q=>{ku(Q,{isOff:!0})};V(G,Q=>{r(m)==="SUBTITLES_OFF"&&Q(he)})}var J=A(G,2);{var pe=Q=>{ku(Q,{})};V(J,Q=>{r(m)==="SUBTITLES_ON"&&Q(pe)})}var me=A(J,2);{var ue=Q=>{let te=g(()=>r(m)==="RATE_UP");Am(Q,{get reversed(){return r(te)}})};V(me,Q=>{["RATE_DOWN","RATE_UP"].includes(r(m))&&Q(ue)})}var Le=A(me,2);{var Me=Q=>{let te=g(()=>r(m)==="EPISODE_NEXT");Lm(Q,{get reversed(){return r(te)}})};V(Le,Q=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(m))&&Q(Me)})}var le=A(Le,2);{var Ne=Q=>{Ks(Q,{volume:0})};V(le,Q=>{r(m)==="MUTE"&&Q(Ne)})}var re=A(le,2);{var P=Q=>{Ks(Q,{volume:1})};V(re,Q=>{r(m)==="VOLUME"&&Q(P)})}h(R);var ot=A(R,2);{var Oe=Q=>{var te=z4(),Re=_(te,!0);h(te),D(()=>ve(Re,r(u))),$(Q,te)};V(ot,Q=>{r(u)&&Q(Oe)})}$(C,E)};V(x,C=>{!r(a)&&r(m)&&C(T)})}h(y),D(C=>w=ne(y,1,"hot-key-helpers-container svelte-1ad3n06",null,w,C),[()=>({hidden:r(a),"hot-key-helpers-container--left":r(p),"hot-key-helpers-container--right":r(f)})]),$(t,y),z(),o()}var Q4=we('<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 Vm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Q4();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 s;return(s=e.children)!=null?s:ae}),xe(),h(o),$(t,o)}var G4=we('<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 Rm(t,e){let i=Ve(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 s;return(s=e.children)!=null?s:ae}),xe(),h(o),$(t,o)}function qs(t,e){U(e,!0);let i=v(e,"direction",3,"left"),o=v(e,"useBtnColor",3,!1),n=g(()=>["up","down"].includes(i())),s=g(()=>["right","down"].includes(i())),l=g(()=>(()=>{let m="";return r(s)&&(m+="transform: rotate(180deg);"),o()&&(m+="color: var(--btn-color, #fff);"),m.length?m:void 0})());var d=Fe(),a=fe(d);{var p=m=>{let u=g(()=>r(s)?"chevron-icon--down":"chevron-icon--up");Vm(m,{get style(){return r(l)},get"data-testid"(){return r(u)}})},f=m=>{let u=g(()=>r(s)?"chevron-icon--right":"chevron-icon--left");Rm(m,{get style(){return r(l)},get"data-testid"(){return r(u)}})};V(a,m=>{r(n)?m(p):m(f,!1)})}$(t,d),z()}var j4=(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}},Y4=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},Z4=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>'),X4={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 Od(t,e){U(e,!0),K(t,X4);let i=v(e,"isShifted",3,!1),o=Ce(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),s=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},a=()=>{o.actions.internal.startCameraManualRotation(-1,0)},p=()=>(o.actions.internal.stopCameraManualRotation(),null),f=q("aria_label_spherical_control");var m=Z4();let u;m.__keydown=[j4,n,s,l,a,d],m.__keyup=[Y4,n,p];var y=_(m),w=_(y),x=_(w);x.__mousedown=s,x.__mouseup=p;var T=_(x);qs(T,{direction:"up",useBtnColor:!0}),h(x);var C=A(x,2);C.__mousedown=d,C.__mouseup=p;var E=_(C);qs(E,{direction:"up",useBtnColor:!0}),h(C),h(w);var R=A(w,2),I=_(R);I.__mousedown=a,I.__mouseup=p;var k=_(I);qs(k,{direction:"up",useBtnColor:!0}),h(I);var B=A(I,2);B.__mousedown=l,B.__mouseup=p;var F=_(B);qs(F,{direction:"up",useBtnColor:!0}),h(B),h(R),h(y),h(m),D(H=>{u=ne(m,1,"immersive-controls svelte-1yzc86r",null,u,H),He(m,"aria-label",f)},[()=>({"m-shifted":i()})]),Ct("mouseleave",x,p),Ct("mouseleave",C,p),Ct("mouseleave",I,p),Ct("mouseleave",B,p),$(t,m),z()}dt(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as X1,Subscription as J4,filterChanged as e3,filter as t3}from"@vkontakte/videoplayer-shared/es2018";var Z1=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var Au=class{constructor(){this.flickeringTimeout=Z1(1e3);this.subscriptions=new J4;this.isAuto=!1;this.isLive=!1;this.captions$=new X1([]);this.captionsPrepared$=new X1([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(t3(()=>this.isEnabled()),e3()).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 i3=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),o3=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),n3=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),r3=M('<div><span class="caption svelte-c2x749"><!></span></div>'),s3=M("<div><!></div>"),a3={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;
283
- /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function Ca(t,e){U(e,!0),K(t,a3);let[i,o]=Be(),n=()=>S(m,"$currentSubtitle$",i),s=()=>S(y,"$isLive$",i),l=()=>S(w,"$isFullscreen",i),d=()=>S(u,"$isAutoSubtitleCaptionVisible$",i),a=v(e,"isMobile",3,!1),p=Ce(),f=Tt(),m=p.state.currentSubtitle$,u=p.state.isAutoSubtitleCaptionVisible$,y=p.state.isLive$,w=p.ui.isFullscreen,x=g(()=>!!n().isAuto),T=g(()=>!!s()),C=g(()=>e.playerSize.width*.02),E=g(()=>a()&&!l()||r(C)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:r(C)),R=X(null);qe(()=>{var Y,oe,G;(Y=r(R))==null||Y.setIsAuto(r(x)),(oe=r(R))==null||oe.setIsLive(r(T)),(G=r(R))==null||G.setCaptions(e.captions)});let I=X(Zt([[]]));Pt(()=>{O(R,new Au().subscribe(),!0);let Y=r(R).captionsPrepared$.subscribe(oe=>{O(I,oe,!0)});return()=>{var oe;(oe=r(R))==null||oe.destroy(),Y.unsubscribe()}}),Pt(()=>{if(r(x)){let Y=window.setTimeout(()=>{u.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(Y)}}else u.set(!1)});let k=g(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var B=s3();let F;var H=_(B);{var W=Y=>{var oe=r3();let G;var he=_(oe),J=_(he);{var pe=ue=>{var Le=i3(),Me=_(Le),le=_(Me,!0);h(Me),h(Le),D(Ne=>{var re;at(Me,`font-size: ${(re=r(E))!=null?re:""}px`),ve(le,Ne)},[()=>q("subtitles_auto_caption")]),$(ue,Le)},me=(ue,Le)=>{{var Me=Ne=>{var re=Fe(),P=fe(re);ki(P,17,()=>r(I),Wl,(ot,Oe)=>{var Q=o3(),te=_(Q);ki(te,21,()=>r(Oe),({value:Re,timeAppeared:Je})=>Je,(Re,Je)=>{let ye=()=>r(Je).value,ee=()=>r(Je).timeAppeared;var Se=Fe(),Te=fe(Se);{var Ke=tt=>{var pt=rs();D(()=>ve(pt,ye())),$(tt,pt)};V(Te,tt=>{(!ee()||ee()<=e.position)&&tt(Ke)})}$(Re,Se)}),h(te),h(Q),D(()=>{var Re;return at(te,`font-size: ${(Re=r(E))!=null?Re:""}px`)}),$(ot,Q)}),$(Ne,re)},le=Ne=>{var re=Fe(),P=fe(re);ki(P,17,()=>e.captions,({value:ot})=>ot,(ot,Oe)=>{let Q=()=>r(Oe).value;var te=n3(),Re=_(te),Je=_(Re,!0);h(Re),h(te),D(()=>{var ye;at(Re,`font-size: ${(ye=r(E))!=null?ye:""}px`),ve(Je,Q())}),$(ot,te)}),$(Ne,re)};V(ue,Ne=>{var re;r(x)&&((re=r(I))!=null&&re.length)?Ne(Me):Ne(le,!1)},Le)}};V(J,ue=>{r(x)&&d()?ue(pe):ue(me,!1)})}h(he),h(oe),D(ue=>{var Le;G=ne(oe,1,"subtitles-caption svelte-c2x749",null,G,ue),at(oe,`--subtitles-caption-margin: ${(Le=r(k))!=null?Le:""}%`)},[()=>({mobile:a()})]),$(Y,oe)};V(H,Y=>{var oe;(e.captions.length||(oe=r(I))!=null&&oe.length)&&Y(W)})}h(B),D(Y=>F=ne(B,1,"subtitles-container svelte-c2x749",null,F,Y),[()=>({shifted:e.shifted,auto:r(x)&&!r(T)&&!d()})]),$(t,B),z(),o()}var l3=M('<div class="text svelte-raurnb"> </div>'),d3=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>'),c3={hash:"svelte-raurnb",code:".wrapper.svelte-raurnb {height:100%;background-position:center;background-size:contain;background-repeat:no-repeat;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column;}.wrapper.bgCover.svelte-raurnb {background-size:cover;}.icon_wrapper.svelte-raurnb {display:flex;flex-direction:column;align-items:center;width:400px;}.icon.svelte-raurnb {width:50px;height:50px;}.text.svelte-raurnb {margin-top:20px;}"};function Bd(t,e){U(e,!0),K(t,c3);let i=Tt();var o=d3();let n;var s=A(_(o),2);{var l=d=>{var a=l3(),p=_(a);h(a),D(()=>{var f;return ve(p,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(f=e.chromecastDeviceName)!=null?f:""}`)}),$(d,a)};V(s,d=>{e.chromecastDeviceName&&d(l)})}h(o),D(d=>{n=ne(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})]),$(t,o),z()}var u3=we('<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 Nm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=u3();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 s;return(s=e.children)!=null?s:ae}),xe(),h(o),$(t,o)}var p3=M('<div class="container svelte-13zpvm8"><!></div>'),f3={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 Ta(t){K(t,f3);var e=p3(),i=_(e);Nm(i,{}),h(e),$(t,e)}var m3=M('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),v3=M("<div><!></div>"),g3={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,
290
+ }`};function Xv(t,e){F(e,!0),W(t,F3);let[i,o]=De(),r=()=>S(e.data,"$data",i),s=he(),{features:l}=Lt(),d=s.ui.t,a=m(()=>!r()),u=m(()=>{var T;return((T=r())==null?void 0:T.type)==="BACKWARD_SEEK"}),f=m(()=>{var T;return((T=r())==null?void 0:T.type)==="FORWARD_SEEK"}),v=m(()=>{var T;return(T=r())==null?void 0:T.type}),p=m(()=>{var T,E;return(T=r())!=null&&T.t?d(r().t.key,{value:r().t.value||""}):(E=r())==null?void 0:E.text});var y=H3();let w;var x=_(y);{var C=T=>{var E=B3(),R=pe(E),A=_(R);{var I=Y=>{let oe=m(()=>n(v)==="FORWARD_SEEK");Kv(Y,{get reversed(){return n(oe)}})};V(A,Y=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(n(v))&&Y(I)})}var O=P(A,2);{var H=Y=>{Ms(Y,{})};V(O,Y=>{n(v)==="PAUSE"&&!l.playbackStatusShow&&Y(H)})}var B=P(O,2);{var z=Y=>{ar(Y,{})};V(B,Y=>{n(v)==="PLAY"&&!l.playbackStatusShow&&Y(z)})}var Z=P(B,2);{var ae=Y=>{Zd(Y,{})};V(Z,Y=>{n(v)==="REPLAY"&&!l.playbackStatusShow&&Y(ae)})}var q=P(Z,2);{var de=Y=>{Qu(Y,{isOff:!0})};V(q,Y=>{n(v)==="SUBTITLES_OFF"&&Y(de)})}var X=P(q,2);{var fe=Y=>{Qu(Y,{})};V(X,Y=>{n(v)==="SUBTITLES_ON"&&Y(fe)})}var re=P(X,2);{var le=Y=>{let oe=m(()=>n(v)==="RATE_UP");jv(Y,{get reversed(){return n(oe)}})};V(re,Y=>{["RATE_DOWN","RATE_UP"].includes(n(v))&&Y(le)})}var Me=P(re,2);{var we=Y=>{let oe=m(()=>n(v)==="EPISODE_NEXT");Zv(Y,{get reversed(){return n(oe)}})};V(Me,Y=>{["EPISODE_PREV","EPISODE_NEXT"].includes(n(v))&&Y(we)})}var te=P(Me,2);{var Ne=Y=>{Xs(Y,{volume:0})};V(te,Y=>{n(v)==="MUTE"&&Y(Ne)})}var ue=P(te,2);{var k=Y=>{Xs(Y,{volume:1})};V(ue,Y=>{n(v)==="VOLUME"&&Y(k)})}g(R);var Ke=P(R,2);{var Ve=Y=>{var oe=D3(),Be=_(oe,!0);g(oe),D(()=>ve(Be,n(p))),b(Y,oe)};V(Ke,Y=>{n(p)&&Y(Ve)})}b(T,E)};V(x,T=>{!n(a)&&n(v)&&T(C)})}g(y),D(T=>w=ne(y,1,"hot-key-helpers-container svelte-1ad3n06",null,w,T),[()=>({hidden:n(a),"hot-key-helpers-container--left":n(u),"hot-key-helpers-container--right":n(f)})]),b(t,y),U(),o()}var U3=Ee('<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 Jv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=U3();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var z3=Ee('<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 em(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=z3();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}function Js(t,e){F(e,!0);let i=h(e,"direction",3,"left"),o=h(e,"useBtnColor",3,!1),r=m(()=>["up","down"].includes(i())),s=m(()=>["right","down"].includes(i())),l=m(()=>(()=>{let v="";return n(s)&&(v+="transform: rotate(180deg);"),o()&&(v+="color: var(--btn-color, #fff);"),v.length?v:void 0})());var d=He(),a=pe(d);{var u=v=>{let p=m(()=>n(s)?"chevron-icon--down":"chevron-icon--up");Jv(v,{get style(){return n(l)},get"data-testid"(){return n(p)}})},f=v=>{let p=m(()=>n(s)?"chevron-icon--right":"chevron-icon--left");em(v,{get style(){return n(l)},get"data-testid"(){return n(p)}})};V(a,v=>{n(r)?v(u):v(f,!1)})}b(t,d),U()}var W3=(t,e,i,o,r,s)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":r();break;case"ArrowRight":s();break}},K3=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},q3=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>'),Q3={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 rc(t,e){F(e,!0),W(t,Q3);let i=h(e,"isShifted",3,!1),o=he(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),s=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},a=()=>{o.actions.internal.startCameraManualRotation(-1,0)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),f=j("aria_label_spherical_control");var v=q3();let p;v.__keydown=[W3,r,s,l,a,d],v.__keyup=[K3,r,u];var y=_(v),w=_(y),x=_(w);x.__mousedown=s,x.__mouseup=u;var C=_(x);Js(C,{direction:"up",useBtnColor:!0}),g(x);var T=P(x,2);T.__mousedown=d,T.__mouseup=u;var E=_(T);Js(E,{direction:"up",useBtnColor:!0}),g(T),g(w);var R=P(w,2),A=_(R);A.__mousedown=a,A.__mouseup=u;var I=_(A);Js(I,{direction:"up",useBtnColor:!0}),g(A);var O=P(A,2);O.__mousedown=l,O.__mouseup=u;var H=_(O);Js(H,{direction:"up",useBtnColor:!0}),g(O),g(R),g(y),g(v),D(B=>{p=ne(v,1,"immersive-controls svelte-1yzc86r",null,p,B),We(v,"aria-label",f)},[()=>({"m-shifted":i()})]),wt("mouseleave",x,u),wt("mouseleave",T,u),wt("mouseleave",A,u),wt("mouseleave",O,u),b(t,v),U()}lt(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as w0,Subscription as G3,filterChanged as j3,filter as Y3}from"@vkontakte/videoplayer-shared/es2018";var x0=(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=x0(1e3);this.subscriptions=new G3;this.isAuto=!1;this.isLive=!1;this.captions$=new w0([]);this.captionsPrepared$=new w0([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(Y3(()=>this.isEnabled()),j3()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let i=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&i.push([{value:String(e[0].value),timeAppeared:null}]),i.push(e.reduce((r,{type:s,value:l},d)=>(o&&!d||(s==="timestamp"?r.push({timeAppeared:Number(l),value:""}):r.length===0?r.push({value:String(l)}):r[r.length-1].value=String(l)),r),[])),this.captionsPrepared$.next(i)}};var Z3=M('<span class="caption-line svelte-1i1hgvc"><span class="caption-segment svelte-1i1hgvc"> </span></span>'),X3=M('<span class="caption-line svelte-1i1hgvc"><span class="caption-segment svelte-1i1hgvc"></span></span>'),J3=M('<span class="caption-line svelte-1i1hgvc"><span class="caption-segment svelte-1i1hgvc"> </span></span>'),ex=M('<div><span class="caption svelte-1i1hgvc"><!></span></div>'),tx=M("<div><!></div>"),ix={hash:"svelte-1i1hgvc",code:`.subtitles-container.svelte-1i1hgvc {position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration);}.subtitles-container.shifted.svelte-1i1hgvc {transform:translateY(calc(var(--controls-height) * -1));}.subtitles-container.preview-track-active.svelte-1i1hgvc {transform:translateY(calc(var(--preview-track-height) * -1));}.preview-track-active.svelte-1i1hgvc .subtitles-caption:where(.svelte-1i1hgvc) {bottom:var(--preview-track-controls-top-offset);}.subtitles-caption.svelte-1i1hgvc {position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center;}.subtitles-caption.mobile.svelte-1i1hgvc {bottom:8%;}.subtitles-container.auto.svelte-1i1hgvc .subtitles-caption:where(.svelte-1i1hgvc) {left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin);}.caption.svelte-1i1hgvc {display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4);}.subtitles-container.auto.svelte-1i1hgvc .caption:where(.svelte-1i1hgvc) {width:100%;}.caption-line.svelte-1i1hgvc {display:block;text-align:center;}.subtitles-container.auto.svelte-1i1hgvc .caption-line:where(.svelte-1i1hgvc) {text-align:left;}.caption-segment.svelte-1i1hgvc {display:inline-block;line-height:1.2;font-size:13px;
291
+ /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function Ha(t,e){F(e,!0),W(t,ix);let[i,o]=De(),r=()=>S(p,"$currentSubtitle$",i),s=()=>S(w,"$isLive$",i),l=()=>S(x,"$isFullscreen",i),d=()=>S(C,"$previewTrackActive",i),a=()=>S(y,"$isAutoSubtitleCaptionVisible$",i),u=h(e,"isMobile",3,!1),f=he(),v=Lt(),p=f.state.currentSubtitle$,y=f.state.isAutoSubtitleCaptionVisible$,w=f.state.isLive$,x=f.ui.isFullscreen,C=f.ui.previewTrackActive,T=m(()=>!!r().isAuto),E=m(()=>!!s()),R=m(()=>e.playerSize.width*.02),A=m(()=>u()&&!l()||n(R)<=v.minSubtitlesFontSize?v.minSubtitlesFontSize:n(R)),I=Q(null);ze(()=>{var q,de,X;(q=n(I))==null||q.setIsAuto(n(T)),(de=n(I))==null||de.setIsLive(n(E)),(X=n(I))==null||X.setCaptions(e.captions)});let O=Q(ai([[]]));Rt(()=>{N(I,new Gu().subscribe(),!0);let q=n(I).captionsPrepared$.subscribe(de=>{N(O,de,!0)});return()=>{var de;(de=n(I))==null||de.destroy(),q.unsubscribe()}}),Rt(()=>{if(n(T)){let q=window.setTimeout(()=>{y.set(!1)},v.autoSubtitlesTimeout);return()=>{window.clearTimeout(q)}}else y.set(!1)});let H=m(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var B=tx();let z;var Z=_(B);{var ae=q=>{var de=ex();let X;var fe=_(de),re=_(fe);{var le=we=>{var te=Z3(),Ne=_(te),ue=_(Ne,!0);g(Ne),g(te),D(k=>{var Ke;Xe(Ne,`font-size: ${(Ke=n(A))!=null?Ke:""}px`),ve(ue,k)},[()=>j("subtitles_auto_caption")]),b(we,te)},Me=(we,te)=>{{var Ne=k=>{var Ke=He(),Ve=pe(Ke);wi(Ve,17,()=>n(O),fd,(Y,oe)=>{var Be=X3(),Ye=_(Be);wi(Ye,21,()=>n(oe),({value:me,timeAppeared:J})=>J,(me,J)=>{let Ie=()=>n(J).value,ge=()=>n(J).timeAppeared;var Fe=He(),Ze=pe(Fe);{var Ge=dt=>{var Je=rs();D(()=>ve(Je,Ie())),b(dt,Je)};V(Ze,dt=>{(!ge()||ge()<=e.position)&&dt(Ge)})}b(me,Fe)}),g(Ye),g(Be),D(()=>{var me;return Xe(Ye,`font-size: ${(me=n(A))!=null?me:""}px`)}),b(Y,Be)}),b(k,Ke)},ue=k=>{var Ke=He(),Ve=pe(Ke);wi(Ve,17,()=>e.captions,({value:Y})=>Y,(Y,oe)=>{let Be=()=>n(oe).value;var Ye=J3(),me=_(Ye),J=_(me,!0);g(me),g(Ye),D(()=>{var Ie;Xe(me,`font-size: ${(Ie=n(A))!=null?Ie:""}px`),ve(J,Be())}),b(Y,Ye)}),b(k,Ke)};V(we,k=>{var Ke;n(T)&&((Ke=n(O))!=null&&Ke.length)?k(Ne):k(ue,!1)},te)}};V(re,we=>{n(T)&&a()?we(le):we(Me,!1)})}g(fe),g(de),D(we=>{var te;X=ne(de,1,"subtitles-caption svelte-1i1hgvc",null,X,we),Xe(de,`--subtitles-caption-margin: ${(te=n(H))!=null?te:""}%`)},[()=>({mobile:u()})]),b(q,de)};V(Z,q=>{var de;(e.captions.length||(de=n(O))!=null&&de.length)&&q(ae)})}g(B),D(q=>z=ne(B,1,"subtitles-container svelte-1i1hgvc",null,z,q),[()=>({shifted:e.shifted,"preview-track-active":d(),auto:n(T)&&!n(E)&&!a()})]),b(t,B),U(),o()}var ox=M('<div class="text svelte-raurnb"> </div>'),nx=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>'),rx={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 sc(t,e){F(e,!0),W(t,rx);let i=Lt();var o=nx();let r;var s=P(_(o),2);{var l=d=>{var a=ox(),u=_(a);g(a),D(()=>{var f;return ve(u,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(f=e.chromecastDeviceName)!=null?f:""}`)}),b(d,a)};V(s,d=>{e.chromecastDeviceName&&d(l)})}g(o),D(d=>{r=ne(o,1,"wrapper svelte-raurnb",null,r,d),Xe(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),b(t,o),U()}var sx=Ee('<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 tm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=sx();ke(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 r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var ax=M('<div class="container svelte-13zpvm8"><!></div>'),lx={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 Fa(t){W(t,lx);var e=ax(),i=_(e);tm(i,{}),g(e),b(t,e)}var dx=M('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),cx=M("<div><!></div>"),ux={hash:"svelte-1ciju45",code:`.container.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer;transition:opacity 0.2s,
284
292
  visibility 0.2s;will-change:opacity;}.container.hidden.svelte-1ciju45 {opacity:0;visibility:hidden;}.container.bgCover.svelte-1ciju45 {background-size:cover;}.playButton.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;}.playButtonBackground.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s,
285
- transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1ciju45:hover .playButtonBackground:where(.svelte-1ciju45) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1ciju45 svg {transform:scale(2);}`};function Ea(t,e){U(e,!0),K(t,g3);let i=v(e,"iconVisible",3,!0),o=Ce(),n=Tt(),s=o.ui.startedByKeyboard$,l=q("tooltip_play"),d=y=>{var x;let w=y.code;["Enter","Space"].includes(w)&&(y.stopPropagation(),y.preventDefault(),s.set(!0),(x=e.startVideo)==null||x.call(e))},a=y=>{var w;y.stopPropagation(),(w=e.startVideo)==null||w.call(e)};var p=v3();let f;p.__click=a;var m=_(p);{var u=y=>{var w=m3();w.__keydown=d;var x=A(_(w),2);Kr(x,{}),h(w),D(()=>He(w,"aria-label",l)),$(y,w)};V(m,y=>{i()&&y(u)})}return h(p),D(y=>{f=ne(p,1,"container svelte-1ciju45",null,f,y),at(p,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),$(t,p),z({handlePressKey:d,handleClick:a})}dt(["click","keydown"]);var h3=M('<div data-testid="video_title"><span> </span></div>'),_3={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(
293
+ transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1ciju45:hover .playButtonBackground:where(.svelte-1ciju45) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1ciju45 svg {transform:scale(2);}`};function Ua(t,e){F(e,!0),W(t,ux);let i=h(e,"iconVisible",3,!0),o=he(),r=Lt(),s=o.ui.startedByKeyboard$,l=j("tooltip_play"),d=y=>{var x;let w=y.code;["Enter","Space"].includes(w)&&(y.stopPropagation(),y.preventDefault(),s.set(!0),(x=e.startVideo)==null||x.call(e))},a=y=>{var w,x;y.stopPropagation(),(w=e.startVideo)==null||w.call(e),(x=e.onClick)==null||x.call(e,y)};var u=cx();let f;u.__click=a,u.__contextmenu=function(...y){var w;(w=e.onContextMenu)==null||w.apply(this,y)};var v=_(u);{var p=y=>{var w=dx();w.__keydown=d;var x=P(_(w),2);ar(x,{}),g(w),D(()=>We(w,"aria-label",l)),b(y,w)};V(v,y=>{i()&&y(p)})}return g(u),D(y=>{f=ne(u,1,"container svelte-1ciju45",null,f,y),Xe(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:r.features.previewNoEmptySpace})]),b(t,u),U({handlePressKey:d,handleClick:a})}lt(["click","contextmenu","keydown"]);var px=M('<div data-testid="video_title"><span> </span></div>'),fx={hash:"svelte-14hk510",code:`.title.svelte-14hk510 {position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
286
294
  0deg,
287
295
  rgba(0, 0, 0, 0) 0%,
288
296
  rgba(0, 0, 0, 0.02) 19%,
289
297
  rgba(0, 0, 0, 0.1) 34%,
290
298
  rgba(0, 0, 0, 0.4) 60%,
291
299
  rgba(0, 0, 0, 0.6) 100%
292
- );}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function Om(t,e){U(e,!0),K(t,_3);let i=v(e,"title",3,""),o=v(e,"isHidden",3,!1),n=v(e,"ref",15),s=X(void 0);Pt(()=>{var m;requestAnimationFrame(()=>{var u;(u=e.onVisibilityChanged)==null||u.call(e,!0)});function f(u){var y;u.propertyName==="transform"&&((y=e.onVisibilityChanged)==null||y.call(e,!o()))}return(m=r(s))==null||m.addEventListener("transitionend",f),()=>{var u;return(u=r(s))==null?void 0:u.removeEventListener("transitionend",f)}});var l=h3();let d;var a=_(l),p=_(a,!0);h(a),st(a,f=>n(f),()=>n()),h(l),st(l,f=>O(s,f),()=>r(s)),D(f=>{d=ne(l,1,"title svelte-14hk510",null,d,f),ve(p,i())},[()=>({hidden:o()})]),$(t,l),z()}import{throttleFn as C3}from"@vkontakte/videoplayer-shared/es2018";var b3=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),$3=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),y3=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),x3=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div>'),w3=M("<div><!> <!> <!> <!></div>"),S3={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 Bm(t,e){U(e,!0),K(t,S3);let i=X(""),o=X(""),n=X(""),s=X(""),l,d=32,a=d/2,p=H=>String(H).padStart(2,"0"),f=H=>Math.max(H.length,1),m=H=>`${(e.isSmallSize?a:d)*f(H)}px`,u=H=>{let W=Math.floor(H/86400);W&&(H-=W*86400,O(i,p(W),!0));let Y=Math.floor(H/3600);O(o,p(Y),!0);let oe=Math.floor(H/60)%60;O(n,p(oe),!0);let G=H%60;O(s,p(G),!0)},y=()=>{let H=Math.floor(Date.now()/1e3),W=e.startTime-H;u(W),W>=1?l=requestAnimationFrame(y):e.onTimerOver()};Pt(()=>{l=requestAnimationFrame(y)}),Jo(()=>{cancelAnimationFrame(l)});var w=w3();let x;var T=_(w);{var C=H=>{var W=b3(),Y=fe(W);let oe;var G=_(Y),he=_(G,!0);h(G);var J=A(G,2),pe=_(J,!0);h(J),h(Y);var me=A(Y,2),ue=_(me,!0);h(me),D((Le,Me,le)=>{oe=at(Y,"",oe,{width:Le}),ve(he,r(i)),ve(pe,Me),ve(ue,le)},[()=>m(r(i)),()=>q("waiting_live_day_value"),()=>q("waiting_live_colon")]),$(H,W)};V(T,H=>{r(i)&&H(C)})}var E=A(T,2);{var R=H=>{var W=$3(),Y=fe(W);let oe;var G=_(Y),he=_(G,!0);h(G);var J=A(G,2),pe=_(J,!0);h(J),h(Y);var me=A(Y,2),ue=_(me,!0);h(me),D((Le,Me,le)=>{oe=at(Y,"",oe,{width:Le}),ve(he,r(o)),ve(pe,Me),ve(ue,le)},[()=>m(r(o)),()=>q("waiting_live_hour_value"),()=>q("waiting_live_colon")]),$(H,W)};V(E,H=>{r(o)&&H(R)})}var I=A(E,2);{var k=H=>{var W=y3(),Y=fe(W);let oe;var G=_(Y),he=_(G,!0);h(G);var J=A(G,2),pe=_(J,!0);h(J),h(Y);var me=A(Y,2),ue=_(me,!0);h(me),D((Le,Me,le)=>{oe=at(Y,"",oe,{width:Le}),ve(he,r(n)),ve(pe,Me),ve(ue,le)},[()=>m(r(n)),()=>q("waiting_live_minute_value"),()=>q("waiting_live_colon")]),$(H,W)};V(I,H=>{r(n)&&H(k)})}var B=A(I,2);{var F=H=>{var W=x3();let Y;var oe=_(W),G=_(oe,!0);h(oe);var he=A(oe,2),J=_(he,!0);h(he),h(W),D((pe,me)=>{Y=at(W,"",Y,{width:pe}),ve(G,r(s)),ve(J,me)},[()=>m(r(s)),()=>q("waiting_live_second_value")]),$(H,W)};V(B,H=>{r(s)&&H(F)})}h(w),D(H=>x=ne(w,1,"timer__container svelte-gt98rn",null,x,H),[()=>({small:e.isSmallSize})]),$(t,w),z()}var T3=M('<div class="waiting svelte-17m8dcd"><span> </span></div>'),E3=M('<div class="upcoming-timer timer svelte-17m8dcd"><span> </span> <!></div>'),I3=M('<div class="waiting-container svelte-17m8dcd"><!></div>'),k3={hash:"svelte-17m8dcd",code:".waiting-container.svelte-17m8dcd {position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;white-space:nowrap;}.waiting-container.svelte-17m8dcd::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1;backdrop-filter:blur(15px);}.waiting.svelte-17m8dcd {position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:2;}.waiting__title.svelte-17m8dcd {font-size:20px;line-height:1.2;font-weight:600;}.upcoming-timer.svelte-17m8dcd {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2;}.timer.svelte-17m8dcd {display:flex;flex-direction:column;align-items:center;justify-content:center;}.timer__title.svelte-17m8dcd {display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:20px;line-height:1.2;font-weight:600;}.small.svelte-17m8dcd {font-size:15px;}.medium.svelte-17m8dcd {font-size:17px;}"};function Dd(t,e){U(e,!0),K(t,k3);let i=v(e,"startTime",3,0),o=g(()=>i()<Math.floor(Date.now()/1e3)),n=X(void 0),s=X(void 0),l=0,d=X(void 0),a=X(void 0),p=g(()=>{var T,C;return((T=r(d))!=null?T:1/0)<=509||((C=r(a))!=null?C:1/0)<=320}),f=g(()=>{var T,C;return!r(p)&&(((T=r(d))!=null?T:1/0)<=699||((C=r(a))!=null?C:1/0)<=599)}),m=e.onUpcomingLiveViewStateChanged?C3(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let T={type:r(o)?"expired":"default",size:r(p)?"s":r(f)?"m":"l"},C=r(o)?r(n):r(s);e.onUpcomingLiveViewStateChanged(T,C)})},300):void 0;qe(()=>{r(a),r(d),r(o),m==null||m()}),Jo(()=>{if(cancelAnimationFrame(l),m==null||m.cancel(),e.onUpcomingLiveViewStateChanged){let T={type:r(o)?"expired":"default",size:r(p)?"s":r(f)?"m":"l"};e.onUpcomingLiveViewStateChanged(T)}});var u=I3(),y=_(u);{var w=T=>{var C=T3(),E=_(C);let R;var I=_(E,!0);h(E),h(C),st(C,k=>O(n,k),()=>r(n)),D((k,B)=>{R=ne(E,1,"waiting__title svelte-17m8dcd",null,R,k),ve(I,B)},[()=>({medium:r(f),small:r(p)}),()=>q("waiting_live_upcoming_title")]),$(T,C)},x=T=>{var C=E3(),E=_(C);let R;var I=_(E,!0);h(E);var k=A(E,2);let B=g(()=>r(p)||r(f)),F=g(()=>i()||0);Bm(k,{get isSmallSize(){return r(B)},get startTime(){return r(F)},onTimerOver:()=>O(o,!0)}),h(C),st(C,H=>O(s,H),()=>r(s)),D((H,W)=>{R=ne(E,1,"timer__title svelte-17m8dcd",null,R,H),ve(I,W)},[()=>({medium:r(f),small:r(p)}),()=>q("waiting_live_timer_title")]),$(T,C)};V(y,T=>{r(o)?T(w):T(x,!1)})}h(u),D(()=>at(u,`background-image: url(${e.thumbUrl})`)),sr(u,"clientWidth",T=>O(d,T)),sr(u,"clientHeight",T=>O(a,T)),$(t,u),z()}var A3=M('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),P3={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 Ia(t,e){U(e,!0),K(t,P3);let i=v(e,"thumbUrl",3,""),o={recover:q("waiting_live_recover_title"),record:q("waiting_record_title")},n=g(()=>o[e.kind]||"");var s=A3(),l=_(s),d=_(l);ha(d,{style:"position: static; transform: translate(0, 0)"});var a=A(d,2),p=_(a,!0);h(a),h(l),h(s),D(()=>{at(s,`background-image: url('${i()}')`),ve(p,r(n))}),$(t,s),z()}var L3=we('<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 Dm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=L3();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 s;return(s=e.children)!=null?s:ae}),xe(),h(o),$(t,o)}var M3=M('<div class="select-icon svelte-124aexk"><!></div>'),V3={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function Fd(t){K(t,V3);var e=M3(),i=_(e);Dm(i,{}),h(e),$(t,e)}var R3=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},N3=(t,e)=>{al(t,()=>e.item.selectItem(e.item.value))},O3=M("<p> </p>"),B3=M('<p class="sublabel svelte-1t7rx2m"> </p>'),D3=M('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),F3={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;
300
+ );}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function im(t,e){F(e,!0),W(t,fx);let i=h(e,"title",3,""),o=h(e,"isHidden",3,!1),r=h(e,"ref",15),s=Q(void 0);Rt(()=>{var v;requestAnimationFrame(()=>{var p;(p=e.onVisibilityChanged)==null||p.call(e,!0)});function f(p){var y;p.propertyName==="transform"&&((y=e.onVisibilityChanged)==null||y.call(e,!o()))}return(v=n(s))==null||v.addEventListener("transitionend",f),()=>{var p;return(p=n(s))==null?void 0:p.removeEventListener("transitionend",f)}});var l=px();let d;var a=_(l),u=_(a,!0);g(a),st(a,f=>r(f),()=>r()),g(l),st(l,f=>N(s,f),()=>n(s)),D(f=>{d=ne(l,1,"title svelte-14hk510",null,d,f),ve(u,i())},[()=>({hidden:o()})]),b(t,l),U()}import{throttleFn as $x}from"@vkontakte/videoplayer-shared/es2018";var vx=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),mx=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),gx=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),hx=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div>'),_x=M("<div><!> <!> <!> <!></div>"),bx={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 om(t,e){F(e,!0),W(t,bx);let i=Q(""),o=Q(""),r=Q(""),s=Q(""),l,d=32,a=d/2,u=B=>String(B).padStart(2,"0"),f=B=>Math.max(B.length,1),v=B=>`${(e.isSmallSize?a:d)*f(B)}px`,p=B=>{let z=Math.floor(B/86400);z&&(B-=z*86400,N(i,u(z),!0));let Z=Math.floor(B/3600);N(o,u(Z),!0);let ae=Math.floor(B/60)%60;N(r,u(ae),!0);let q=B%60;N(s,u(q),!0)},y=()=>{let B=Math.floor(Date.now()/1e3),z=e.startTime-B;p(z),z>=1?l=requestAnimationFrame(y):e.onTimerOver()};Rt(()=>{l=requestAnimationFrame(y)}),on(()=>{cancelAnimationFrame(l)});var w=_x();let x;var C=_(w);{var T=B=>{var z=vx(),Z=pe(z);let ae;var q=_(Z),de=_(q,!0);g(q);var X=P(q,2),fe=_(X,!0);g(X),g(Z);var re=P(Z,2),le=_(re,!0);g(re),D((Me,we,te)=>{ae=Xe(Z,"",ae,{width:Me}),ve(de,n(i)),ve(fe,we),ve(le,te)},[()=>v(n(i)),()=>j("waiting_live_day_value"),()=>j("waiting_live_colon")]),b(B,z)};V(C,B=>{n(i)&&B(T)})}var E=P(C,2);{var R=B=>{var z=mx(),Z=pe(z);let ae;var q=_(Z),de=_(q,!0);g(q);var X=P(q,2),fe=_(X,!0);g(X),g(Z);var re=P(Z,2),le=_(re,!0);g(re),D((Me,we,te)=>{ae=Xe(Z,"",ae,{width:Me}),ve(de,n(o)),ve(fe,we),ve(le,te)},[()=>v(n(o)),()=>j("waiting_live_hour_value"),()=>j("waiting_live_colon")]),b(B,z)};V(E,B=>{n(o)&&B(R)})}var A=P(E,2);{var I=B=>{var z=gx(),Z=pe(z);let ae;var q=_(Z),de=_(q,!0);g(q);var X=P(q,2),fe=_(X,!0);g(X),g(Z);var re=P(Z,2),le=_(re,!0);g(re),D((Me,we,te)=>{ae=Xe(Z,"",ae,{width:Me}),ve(de,n(r)),ve(fe,we),ve(le,te)},[()=>v(n(r)),()=>j("waiting_live_minute_value"),()=>j("waiting_live_colon")]),b(B,z)};V(A,B=>{n(r)&&B(I)})}var O=P(A,2);{var H=B=>{var z=hx();let Z;var ae=_(z),q=_(ae,!0);g(ae);var de=P(ae,2),X=_(de,!0);g(de),g(z),D((fe,re)=>{Z=Xe(z,"",Z,{width:fe}),ve(q,n(s)),ve(X,re)},[()=>v(n(s)),()=>j("waiting_live_second_value")]),b(B,z)};V(O,B=>{n(s)&&B(H)})}g(w),D(B=>x=ne(w,1,"timer__container svelte-gt98rn",null,x,B),[()=>({small:e.isSmallSize})]),b(t,w),U()}var yx=M('<div class="waiting svelte-17m8dcd"><span> </span></div>'),xx=M('<div class="upcoming-timer timer svelte-17m8dcd"><span> </span> <!></div>'),wx=M('<div class="waiting-container svelte-17m8dcd"><!></div>'),Sx={hash:"svelte-17m8dcd",code:".waiting-container.svelte-17m8dcd {position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;white-space:nowrap;}.waiting-container.svelte-17m8dcd::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1;backdrop-filter:blur(15px);}.waiting.svelte-17m8dcd {position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:2;}.waiting__title.svelte-17m8dcd {font-size:20px;line-height:1.2;font-weight:600;}.upcoming-timer.svelte-17m8dcd {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2;}.timer.svelte-17m8dcd {display:flex;flex-direction:column;align-items:center;justify-content:center;}.timer__title.svelte-17m8dcd {display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:20px;line-height:1.2;font-weight:600;}.small.svelte-17m8dcd {font-size:15px;}.medium.svelte-17m8dcd {font-size:17px;}"};function ac(t,e){F(e,!0),W(t,Sx);let i=h(e,"startTime",3,0),o=m(()=>i()<Math.floor(Date.now()/1e3)),r=Q(void 0),s=Q(void 0),l=0,d=Q(void 0),a=Q(void 0),u=m(()=>{var C,T;return((C=n(d))!=null?C:1/0)<=509||((T=n(a))!=null?T:1/0)<=320}),f=m(()=>{var C,T;return!n(u)&&(((C=n(d))!=null?C:1/0)<=699||((T=n(a))!=null?T:1/0)<=599)}),v=e.onUpcomingLiveViewStateChanged?$x(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let C={type:n(o)?"expired":"default",size:n(u)?"s":n(f)?"m":"l"},T=n(o)?n(r):n(s);e.onUpcomingLiveViewStateChanged(C,T)})},300):void 0;ze(()=>{n(a),n(d),n(o),v==null||v()}),on(()=>{if(cancelAnimationFrame(l),v==null||v.cancel(),e.onUpcomingLiveViewStateChanged){let C={type:n(o)?"expired":"default",size:n(u)?"s":n(f)?"m":"l"};e.onUpcomingLiveViewStateChanged(C)}});var p=wx();p.__contextmenu=function(...C){var T;(T=e.onContextMenu)==null||T.apply(this,C)},p.__click=function(...C){var T;(T=e.onClick)==null||T.apply(this,C)};var y=_(p);{var w=C=>{var T=yx(),E=_(T);let R;var A=_(E,!0);g(E),g(T),st(T,I=>N(r,I),()=>n(r)),D((I,O)=>{R=ne(E,1,"waiting__title svelte-17m8dcd",null,R,I),ve(A,O)},[()=>({medium:n(f),small:n(u)}),()=>j("waiting_live_upcoming_title")]),b(C,T)},x=C=>{var T=xx(),E=_(T);let R;var A=_(E,!0);g(E);var I=P(E,2);let O=m(()=>n(u)||n(f)),H=m(()=>i()||0);om(I,{get isSmallSize(){return n(O)},get startTime(){return n(H)},onTimerOver:()=>N(o,!0)}),g(T),st(T,B=>N(s,B),()=>n(s)),D((B,z)=>{R=ne(E,1,"timer__title svelte-17m8dcd",null,R,B),ve(A,z)},[()=>({medium:n(f),small:n(u)}),()=>j("waiting_live_timer_title")]),b(C,T)};V(y,C=>{n(o)?C(w):C(x,!1)})}g(p),D(()=>Xe(p,`background-image: url(${e.thumbUrl})`)),Sn(p,"clientWidth",C=>N(d,C)),Sn(p,"clientHeight",C=>N(a,C)),b(t,p),U()}lt(["contextmenu","click"]);var Cx=M('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),Tx={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 za(t,e){F(e,!0),W(t,Tx);let i=h(e,"thumbUrl",3,""),o={recover:j("waiting_live_recover_title"),record:j("waiting_record_title")},r=m(()=>o[e.kind]||"");var s=Cx();s.__contextmenu=function(...f){var v;(v=e.onContextMenu)==null||v.apply(this,f)},s.__click=function(...f){var v;(v=e.onClick)==null||v.apply(this,f)};var l=_(s),d=_(l);Ma(d,{style:"position: static; transform: translate(0, 0)"});var a=P(d,2),u=_(a,!0);g(a),g(l),g(s),D(()=>{Xe(s,`background-image: url('${i()}')`),ve(u,n(r))}),b(t,s),U()}lt(["contextmenu","click"]);var Ex=Ee('<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 nm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Ex();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var Ix=M('<div class="select-icon svelte-124aexk"><!></div>'),kx={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function lc(t){W(t,kx);var e=Ix(),i=_(e);nm(i,{}),g(e),b(t,e)}var Ax=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},Px=(t,e)=>{kl(t,()=>e.item.selectItem(e.item.value))},Mx=M("<p> </p>"),Lx=M('<p class="sublabel svelte-1t7rx2m"> </p>'),Vx=M('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),Rx={hash:"svelte-1t7rx2m",code:`.menu-item-value.svelte-1t7rx2m {display:flex;flex-direction:column;align-items:end;min-width:0;}.menu-item-value[data-selected='false'].svelte-1t7rx2m {--select-icon-width: 16px;--icon-padding: 12px;
293
301
 
294
302
  /**
295
303
  * \u0415\u0441\u043B\u0438 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D(\u0438\u043A\u043E\u043D\u043A\u0430 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442), \u0442\u043E \u0434\u043E\u043B\u0436\u043D\u044B \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043F\u0443\u0441\u0442\u043E\u0435 \u043C\u0435\u0441\u0442\u043E
296
304
  * \u0447\u0442\u043E\u0431\u044B \u0432\u0441\u0435 \u043B\u0435\u0439\u0431\u043B\u044B \u043D\u0430\u0447\u0438\u043D\u0430\u043B\u0438\u0441\u044C \u0441 \u043E\u0434\u043D\u043E\u0433\u043E \u043E\u0442\u0441\u0442\u0443\u043F\u0430.
297
305
  */margin-left:calc(var(--icon-padding) + var(--select-icon-width));}.label.svelte-1t7rx2m,
298
- .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function Fm(t,e){U(e,!0),K(t,F3);let i=v(e,"isMobile",3,!1);var o=D3();let n;o.__click=[R3,e],o.__keydown=[N3,e];var s=_(o);{var l=w=>{Fd(w,{})};V(s,w=>{e.item.selected&&w(l)})}var d=A(s,2);let a;var p=_(d);{var f=w=>{var x=Fe(),T=fe(x);Ai(T,()=>e.item.valueComponent,(C,E)=>{E(C,bs(()=>{var R;return(R=e.item.valueComponentParams)!=null?R:{}}))}),$(w,x)},m=w=>{var x=O3();let T;var C=_(x,!0);h(x),D(E=>{var R;T=ne(x,1,"label svelte-1t7rx2m",null,T,E),ve(C,(R=e.item.label)!=null?R:e.item.value)},[()=>({mobile:i()})]),$(w,x)};V(p,w=>{e.item.valueComponent?w(f):w(m,!1)})}var u=A(p,2);{var y=w=>{var x=B3(),T=_(x,!0);h(x),D(()=>ve(T,e.item.sublabel)),$(w,x)};V(u,w=>{e.item.sublabel&&w(y)})}h(d),h(o),D((w,x,T)=>{n=ne(o,1,"item",null,n,w),He(o,"data-value",e.item.value),He(o,"aria-label",x),He(o,"data-testid",e.item.dataTestid),a=ne(d,1,"menu-item-value svelte-1t7rx2m",null,a,T),He(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,x;return(x=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?x:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),$(t,o),z()}dt(["click","keydown"]);var H3=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Hm(t,e){U(e,!0);let i=v(e,"isMobile",3,!1),o=v(e,"refMenuItems",15),n=g(()=>()=>e.openSubMenuList(e.item.children)),s=g(()=>x=>au(x,r(n)));var l=H3();let d;l.__click=function(...x){var T;(T=r(n))==null||T.apply(this,x)},l.__keydown=function(...x){var T;(T=r(s))==null||T.apply(this,x)};var a=_(l);{var p=x=>{Fd(x,{})};V(a,x=>{e.item.selected&&x(p)})}var f=A(a,2);let m;var u=_(f);{var y=x=>{var T=Fe();let C=g(()=>e.item.valueComponent);var E=fe(T);Ai(E,()=>r(C),(R,I)=>{I(R,bs(()=>{var k;return(k=e.item.valueComponentParams)!=null?k:{}}))}),$(x,T)},w=x=>{var T=rs();D(()=>ve(T,e.item.label)),$(x,T)};V(u,x=>{e.item.valueComponent?x(y):x(w,!1)})}h(f),h(l),st(l,x=>o(o()[e.item.id]=x,!0),()=>{var x;return(x=o())==null?void 0:x[e.item.id]}),D((x,T)=>{var C;d=ne(l,1,"item",null,d,x),He(l,"aria-label",(C=e.item.ariaLabel)!=null?C:e.item.label),He(l,"data-testid",e.item.id),m=ne(f,1,"menu-item-value",null,m,T)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),$(t,l),z()}dt(["click","keydown"]);var qr={"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 z3=(t,e)=>{_1(t,e.returnFromSubMenu,e.closeSettingsMenu)},W3=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},K3=(t,e)=>{ad(t)&&(Tr(t),e.returnFromSubMenu())},q3=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>'),Q3={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
306
+ .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function rm(t,e){F(e,!0),W(t,Rx);let i=h(e,"isMobile",3,!1);var o=Vx();let r;o.__click=[Ax,e],o.__keydown=[Px,e];var s=_(o);{var l=w=>{lc(w,{})};V(s,w=>{e.item.selected&&w(l)})}var d=P(s,2);let a;var u=_(d);{var f=w=>{var x=He(),C=pe(x);Pi(C,()=>e.item.valueComponent,(T,E)=>{E(T,Cs(()=>{var R;return(R=e.item.valueComponentParams)!=null?R:{}}))}),b(w,x)},v=w=>{var x=Mx();let C;var T=_(x,!0);g(x),D(E=>{var R;C=ne(x,1,"label svelte-1t7rx2m",null,C,E),ve(T,(R=e.item.label)!=null?R:e.item.value)},[()=>({mobile:i()})]),b(w,x)};V(u,w=>{e.item.valueComponent?w(f):w(v,!1)})}var p=P(u,2);{var y=w=>{var x=Lx(),C=_(x,!0);g(x),D(()=>ve(C,e.item.sublabel)),b(w,x)};V(p,w=>{e.item.sublabel&&w(y)})}g(d),g(o),D((w,x,C)=>{r=ne(o,1,"item",null,r,w),We(o,"data-value",e.item.value),We(o,"aria-label",x),We(o,"data-testid",e.item.dataTestid),a=ne(d,1,"menu-item-value svelte-1t7rx2m",null,a,C),We(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,x;return(x=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?x:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),b(t,o),U()}lt(["click","keydown"]);var Nx=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function sm(t,e){F(e,!0);let i=h(e,"isMobile",3,!1),o=h(e,"refMenuItems",15),r=m(()=>()=>e.openSubMenuList(e.item.children)),s=m(()=>x=>Tu(x,n(r)));var l=Nx();let d;l.__click=function(...x){var C;(C=n(r))==null||C.apply(this,x)},l.__keydown=function(...x){var C;(C=n(s))==null||C.apply(this,x)};var a=_(l);{var u=x=>{lc(x,{})};V(a,x=>{e.item.selected&&x(u)})}var f=P(a,2);let v;var p=_(f);{var y=x=>{var C=He();let T=m(()=>e.item.valueComponent);var E=pe(C);Pi(E,()=>n(T),(R,A)=>{A(R,Cs(()=>{var I;return(I=e.item.valueComponentParams)!=null?I:{}}))}),b(x,C)},w=x=>{var C=rs();D(()=>ve(C,e.item.label)),b(x,C)};V(p,x=>{e.item.valueComponent?x(y):x(w,!1)})}g(f),g(l),st(l,x=>o(o()[e.item.id]=x,!0),()=>{var x;return(x=o())==null?void 0:x[e.item.id]}),D((x,C)=>{var T;d=ne(l,1,"item",null,d,x),We(l,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),We(l,"data-testid",e.item.id),v=ne(f,1,"menu-item-value",null,v,C)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,l),U()}lt(["click","keydown"]);var Yr={"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 Dx=(t,e)=>{F1(t,e.returnFromSubMenu,e.closeSettingsMenu)},Bx=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},Hx=(t,e)=>{Ad(t)&&(xr(t),e.returnFromSubMenu())},Fx=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>'),Ux={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
299
307
  /*\u0414\u043B\u044F \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u0438 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0433\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430 \u0441\u043F\u0438\u0441\u043A\u0430*/--edge-item-padding-vertical-mobile: calc(6px + var(--item-padding-vertical-mobile));--edge-item-padding-vertical: calc(8px + var(--item-padding-vertical));}.sub-menu.svelte-7dfsuh .item.mobile {padding:var(--item-padding-vertical-mobile) 17px;line-height:var(--item-label-line-height);font-size:14px;}.sub-menu.svelte-7dfsuh {
300
308
  /**
301
309
  * \u0422\u0430\u043A \u043A\u0430\u043A \u0443 \u043D\u0430\u0441 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0441\u0442\u0438\u043A\u0438, \u043D\u0443\u0436\u043D\u043E \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0430\u0434\u0434\u0438\u043D\u0433 \u0441 \u0432\u044B\u0441\u043E\u0442\u0443 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0430.
@@ -305,14 +313,14 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},Jh=tb;var $
305
313
  var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
306
314
  1px
307
315
  );}.sub-menu.svelte-7dfsuh .items:where(.svelte-7dfsuh) .item.header:where(.svelte-7dfsuh) {position:absolute;top:0;left:0;right:0;min-width:max-content;display:flex;justify-content:space-between;border-bottom:var(--divider-border);}.header.svelte-7dfsuh .title:where(.svelte-7dfsuh) {margin-left:8px;}.sub-menu.svelte-7dfsuh .item {padding:var(--item-padding-vertical) 12px;padding-right:22px;}.items.svelte-7dfsuh .item:first-child:not(.mobile) {padding-top:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item:last-child:not(.mobile) {padding-bottom:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item.mobile:first-child {padding-top:var(--edge-item-padding-vertical-mobile);}.items.svelte-7dfsuh .item.mobile:last-child {padding-bottom:var(--edge-item-padding-vertical-mobile);}.sub-menu.svelte-7dfsuh .item.bottomBordered {border-bottom:var(--divider-border);}.sub-menu.svelte-7dfsuh .item .sublabel {line-height:14px;font-size:12px;}.sub-menu.svelte-7dfsuh .item:not(.mobile) .label,
308
- .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function zm(t,e){U(e,!0),K(t,Q3);let[i,o]=Be(),n=()=>S(m,"$isFullscreen",i),s=()=>S(u,"$playerSize",i),l=v(e,"isMobile",3,!1),d=v(e,"playerControlsHeight",3,0),a=v(e,"ariaLabelReturnFromSubMenu",19,()=>q("aria_label_submenu_back")),p=v(e,"listRef",15);Pt(()=>{let G=e.items.findIndex(he=>he.selected);p().children[G+1].focus()});let f=Ce(),m=f.ui.isFullscreen,u=f.ui.playerSize,y=X(void 0),w=X(0),x=X(0),T=g(()=>l()&&n()?`max-height: ${Math.round(s().height*.6)}px`:l()?"":`max-height: ${s().height-32-r(x)-d()}px; overflow: auto;`),C=g(()=>Math.max(e.minWidth,r(w)));var E=q3();let R;var I=_(E);let k;I.__keydown=[z3,e];var B=_(I);let F;B.__click=[W3,e],B.__keydown=[K3,e];var H=_(B);qs(H,{direction:"left"});var W=A(H,2),Y=_(W,!0);h(W),h(B),st(B,G=>O(y,G),()=>r(y));var oe=A(B,2);ki(oe,17,()=>e.items,Wl,(G,he)=>{var J=Fe(),pe=fe(J);{var me=Le=>{Fm(Le,{get item(){return r(he)},get isMobile(){return l()}})},ue=(Le,Me)=>{{var le=Ne=>{Hm(Ne,{get isMobile(){return l()},get item(){return r(he)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(Le,Ne=>{r(he).type==="OPEN_SUB_MENU"&&Ne(le)},Me)}};V(pe,Le=>{r(he).type==="SELECT_VALUE"?Le(me):Le(ue,!1)})}$(G,J)}),h(I),st(I,G=>p(G),()=>p()),h(E),D((G,he,J)=>{R=ne(E,1,"sub-menu menu svelte-7dfsuh",null,R,G),He(E,"data-testid",`sub-menu-${e.id}`),at(E,`min-width: ${r(C)}px`),k=ne(I,1,"items svelte-7dfsuh",null,k,he),at(I,r(T)),F=ne(B,1,"item header back svelte-7dfsuh",null,F,J),He(B,"aria-label",a()),ve(Y,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),sr(B,"clientWidth",G=>O(w,G)),sr(B,"clientHeight",G=>O(x,G)),$(t,E),z(),o()}dt(["keydown","click"]);import{noop as G3}from"@vkontakte/videoplayer-shared/es2018";var j3=(t,e)=>au(t,e()),Y3=(t,e)=>{t.stopPropagation(),e()()},Z3=M('<div class="value svelte-1ikfjte"> </div>'),X3=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),J3={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function Wm(t,e){U(e,!0),K(t,J3);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,G3),n=v(e,"valueComponent",3,void 0),s=v(e,"ref",15);var l=X3();let d;l.__click=[Y3,o],l.__keydown=[j3,o];var a=_(l),p=_(a);{var f=C=>{wa(C,{get icon(){return e.icon}})},m=C=>{var E=Fe();let R=g(()=>e.icon);var I=fe(E);Ai(I,()=>r(R),(k,B)=>{B(k,{})}),$(C,E)};V(p,C=>{typeof e.icon=="string"?C(f):C(m,!1)})}h(a);var u=A(a,2),y=_(u,!0);h(u);var w=A(u,2);{var x=C=>{var E=Fe();let R=g(n);var I=fe(E);Ai(I,()=>r(R),(k,B)=>{B(k,{})}),$(C,E)},T=C=>{var E=Z3(),R=_(E,!0);h(E),D(()=>ve(R,e.value)),$(C,E)};V(w,C=>{n()?C(x):C(T,!1)})}h(l),st(l,C=>s(C),()=>s()),D(C=>{d=ne(l,1,"item",null,d,C),He(l,"aria-label",e.ariaLabel),He(l,"data-testid",e.id),ve(y,e.label)},[()=>({mobile:i()})]),$(t,l),z()}dt(["click","keydown"]);import{noop as e0}from"@vkontakte/videoplayer-shared/es2018";var ex=(t,e)=>{al(t,()=>e())},tx=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),ix=M('<img class="icon" aria-hidden="true"/>'),ox=M('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),nx={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Km(t,e){U(e,!0),K(t,nx);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,e0),n=v(e,"closeSettings",3,e0),s=X(!1),l=()=>{O(s,!0)},d=T=>{T==null||T.stopPropagation(),o()(),n()()};var a=ox();let p;a.__click=d,a.__keydown=[ex,d];var f=_(a),m=_(f);{var u=T=>{var C=Fe(),E=fe(C);{var R=k=>{var B=tx();$(k,B)},I=k=>{var B=ix();D(()=>He(B,"src",e.icon)),Ct("error",B,l),na(B),$(k,B)};V(E,k=>{r(s)?k(R):k(I,!1)})}$(T,C)},y=T=>{var C=Fe();let E=g(()=>e.icon);var R=fe(C);Ai(R,()=>r(E),(I,k)=>{k(I,{})}),$(T,C)};V(m,T=>{typeof e.icon=="string"?T(u):T(y,!1)})}h(f);var w=A(f,2),x=_(w,!0);h(w),h(a),D(T=>{var C;p=ne(a,1,"item",null,p,T),He(a,"aria-label",(C=e.ariaLabel)!=null?C:e.label),He(a,"data-testid",e.id),ve(x,e.label)},[()=>({mobile:i()})]),$(t,a),z()}dt(["click","keydown"]);import{noop as ax}from"@vkontakte/videoplayer-shared/es2018";var rx=M('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),sx={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 qm(t,e){K(t,sx);let i=v(e,"enabled",3,!1);var o=rx(),n=_(o);let s;xe(2),h(o),D(l=>s=ne(n,1,"toggle svelte-17wbjko",null,s,l),[()=>({on:i()})]),$(t,o)}var lx=(t,e,i)=>{b1(t,e(),o=>i()(o))},dx=(t,e,i)=>{t.stopPropagation(),e()(!i())},cx=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),ux=M('<li role="menuitem" tabindex="0"><!></li>');function Qm(t,e){U(e,!0);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,ax),n=v(e,"enabled",3,!1),s=v(e,"tooltipText",3,void 0),l=v(e,"maxTooltipWidth",3,void 0);var d=ux();let a;d.__click=[dx,o,n],d.__keydown=[lx,n,o];var p=_(d);_a(p,{get content(){return s()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,m)=>{var u=cx();let y;var w=_(u),x=_(w);{var T=k=>{wa(k,{get icon(){return e.icon}})},C=k=>{var B=Fe();let F=g(()=>e.icon);var H=fe(B);Ai(H,()=>r(F),(W,Y)=>{Y(W,{})}),$(k,B)};V(x,k=>{typeof e.icon=="string"?k(T):k(C,!1)})}h(w);var E=A(w,2),R=_(E,!0);h(E);var I=A(E,2);qm(I,{get enabled(){return n()}}),h(u),D(k=>{y=ne(u,1,"switch-wrapper",null,y,k),ve(R,e.label)},[()=>({mobile:i()})]),$(f,u)},$$slots:{default:!0}}),h(d),D(f=>{var m;a=ne(d,1,"item switch-item",null,a,f),He(d,"aria-label",(m=e.ariaLabel)!=null?m:e.label),He(d,"data-testid",e.id)},[()=>({mobile:i()})]),$(t,d),z()}dt(["click","keydown"]);import{isValidURL as Rx,VideoQuality as u0}from"@vkontakte/videoplayer-shared/es2018";var t0=()=>{let t=X(Zt([])),e=g(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{O(t,r(t).slice(0,-1),!0)},popAllSubMenus:()=>{O(t,[],!0)}}};var px=M('<div class="quality-icon svelte-t2qk8t"><!></div>'),fx=M('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),mx={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 ka(t,e){U(e,!0),K(t,mx);let i=v(e,"isSubCase",3,!1),o=g(()=>fu(e.quality));var n=fx(),s=_(n);let l;var d=_(s,!0);h(s);var a=A(s,2);{var p=f=>{var m=px();let u=g(()=>r(o));var y=_(m);Ai(y,()=>r(u),(w,x)=>{x(w,{})}),h(m),$(f,m)};V(a,f=>{r(o)&&!e.isMobile&&f(p)})}h(n),D(f=>{l=ne(s,1,"svelte-t2qk8t",null,l,f),ve(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),$(t,n),z()}import{VideoQuality as vx}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as i0}from"@vkontakte/videoplayer-core/es2018";var o0=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},n0=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=o0({quality:t,availableQualities:e});return i?t===i0.INVARIANT?q("auto_quality_invariant"):q("auto_quality",{actual:o}):o},r0=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===i0.INVARIANT?i:`${i}${o0({quality:t,availableQualities:e})}`:"...";var gx=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),hx={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function gl(t,e){U(e,!0),K(t,hx);let[i,o]=Be(),n=()=>S(a,"$currentQuality$",i),s=()=>S(p,"$availableQualities$",i),l=()=>S(f,"$isMobile$",i),d=Ce(),a=d.state.currentQuality$,p=d.state.availableQualities$,f=d.ui.isMobile,m=" \xB7 ",u=g(()=>e.prefix+(e.selected&&n()!==vx.INVARIANT?m:"")),y=g(()=>r0({prefix:r(u),quality:n(),availableQualities:s(),onlyPrefix:!e.selected}));var w=gx(),x=_(w);let T=g(()=>e.selected?n():void 0);ka(x,{get quality(){return r(T)},get label(){return r(y)},get isMobile(){return l()},isSubCase:!0}),h(w),$(t,w),z(),o()}var _x=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")},bx={br:!0,span:!0},Gm=(t,e={})=>{var d,a,p,f,m,u,y;if(!t)return t;let i={...bx,...e},o=Object.keys(i);if(!o.length)return t;let n=_x(o),s=[],l=0;for(let w of t.matchAll(n)){let x=w[0],T=((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:C}=w;if(!i[T]){s.push(t.slice(l,C)),l=C+x.length;continue}let E=(m=w.groups)!=null&&m.childrenhtml?Gm(w.groups.childrenhtml,i):"",R=(u=w.groups)!=null&&u.childrenhtml?x.replace(new RegExp((y=w.groups)==null?void 0:y.childrenhtml),()=>E||""):x;s.push(t.slice(l,C),R),l=C+x.length}return l===0?t:(s.push(t.slice(l)),s.join(""))};function Hd(t,e){U(e,!1);let i=v(e,"message",8),o=Gm(i());zr();var n=Fe(),s=fe(n);{var l=d=>{var a=Fe(),p=fe(a);Kl(p,()=>o),$(d,a)};V(s,d=>{o&&d(l)})}$(t,n),z()}var $x=M('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),yx={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 jm(t,e){U(e,!1),K(t,yx),zr();var i=$x(),o=_(i);let n=Br(()=>q("quality_applience",{action:`<span>${q("quality_applience_action")}</span>`}));Hd(o,{get message(){return r(n)}}),h(i),$(t,i),z()}var a0=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:gl,valueComponentParams:{prefix:q("other_quality"),selected:o},children:"QUALITY"}},Ym=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:q("auto_quality_limit"),valueComponent:e?gl:void 0,valueComponentParams:{prefix:q("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),l0=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:jm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Zm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:q("high_quality"),valueComponent:t?gl:void 0,valueComponentParams:{prefix:q("high_quality"),selected:i},sublabel:q("high_quality_description")}),Xm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"QUALITY_TRAFFIC_SAVING",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:q("traffic_saving_quality"),valueComponent:t?gl:void 0,valueComponentParams:{prefix:q("traffic_saving_quality"),selected:i},sublabel:q("traffic_saving_quality_description")});var Pu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Lu=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(l=Cd(i))!=null?l:i),o&&i&&n){let d=e.filter(a=>a.label===o&&a.language===i);if(d.length===1)return q("audio_stream_display_language_label",{language:n,label:o});{let a=Pu(t,d);return q("audio_stream_display_language_label_index",{language:n,label:o,index:a})}}if(o){let d=e.filter(a=>a.label===o);if(d.length===1)return o;{let a=Pu(t,d);return q("audio_stream_display_label_index",{label:o,index:a})}}if(i&&n){let d=e.filter(a=>a.language===i);if(d.length===1)return n;{let a=Pu(t,d);return q("audio_stream_display_language_index",{language:n,index:a})}}let s=Pu(t,e);return q("audio_stream_display_unknown",{index:s})};var xx={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,s=[];return i&&s.push({handler:Ym,selected:e&&!o&&!n||!1}),s.push({handler:Xm,selected:o},{handler:Zm,selected:n}),{title:q("submenu_quality"),id:"QUALITY_DETAILS",items:[l0(t),...s.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),a0(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:q("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:ka,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:s=>e(s,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:q("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Ym,selected:((i=jc())==null?void 0:i.type)==="auto_quality"},{handler:Xm,selected:((o=jc())==null?void 0:o.type)==="traffic_saving"},{handler:Zm,selected:((n=jc())==null?void 0:n.type)==="high_quality"}].map(({handler:s,selected:l})=>s({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:q("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===(i==null?void 0:i.id),label:Lu(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:q("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),SUBTITLES:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"SUBTITLES",minWidth:164,title:q("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===xu?"sub_off":void 0}))})},d0=({subMenuId:t,context:e})=>t?[xx[t](e)]:[];var wx=we('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z" clip-rule="evenodd"></path></svg>');function Jm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=wx();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 s;return(s=e.children)!=null?s:ae}),xe(),h(o),$(t,o)}var Sx=we('<svg><!><path fill="var(--btn-color, #fff)" d="M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"></path></svg>');function ev(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Sx();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 s;return(s=e.children)!=null?s:ae}),xe(),h(o),$(t,o)}var Cx=we('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" fill-rule="nonzero" d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"></path></g></svg>');function tv(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Cx();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 s;return(s=e.children)!=null?s:ae}),xe(),h(o),$(t,o)}var Tx=we('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18" clip-rule="evenodd"></path></svg>');function iv(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Tx();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 s;return(s=e.children)!=null?s:ae}),xe(),h(o),$(t,o)}var Ex=we('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z" clip-rule="evenodd"></path></svg>');function ov(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Ex();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 s;return(s=e.children)!=null?s:ae}),xe(),h(o),$(t,o)}var Ix=we('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492" clip-rule="evenodd"></path></svg>');function Mu(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Ix();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 s;return(s=e.children)!=null?s:ae}),xe(),h(o),$(t,o)}var kx=we('<svg><!><path fill="var(--btn-color, #fff)" d="M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"></path></svg>');function nv(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=kx();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 s;return(s=e.children)!=null?s:ae}),xe(),h(o),$(t,o)}var Ax=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),Px={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function rv(t,e){U(e,!0),K(t,Px);let[i,o]=Be(),n=()=>S(p,"$currentQuality$",i),s=()=>S(f,"$availableQualities$",i),l=()=>S(m,"$isAutoQualityEnabled$",i),d=()=>S(u,"$isMobile$",i),a=Ce(),p=a.state.currentQuality$,f=a.state.availableQualities$,m=a.state.isAutoQualityEnabled$,u=a.ui.isMobile,y=g(()=>n0({quality:n(),availableQualities:s(),isAutoQualityEnabled:l()}));var w=Ax(),x=_(w);ka(x,{get quality(){return n()},get label(){return r(y)},get isMobile(){return d()}}),h(w),$(t,w),z(),o()}var Mx={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?q("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_quality",{actual:o}),icon:gd,label:q("menu_quality"),value:e,valueComponent:rv,weight:qr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:qr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:q("aria_label_submenu_traffic_saving"),icon:Jm,label:q("menu_traffic_saving"),enabled:t,tooltipText:q("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=Lu(t,e);return{id:"AUDIO_LANGUAGES",weight:qr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_audio_languages",{actual:i}),icon:ev,label:q("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(n=>n.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:qr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_rate",{actual:i}),icon:tv,label:q("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:qr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_subtitle",{actual:t.displayValue}),icon:hd,label:q("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:qr.download,type:"CLICK",onClick:t,label:q("download_video_caption"),ariaLabel:q("aria_label_menu_download"),icon:iv}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:qr.report,type:"CLICK",onClick:t,label:q("menu_report"),ariaLabel:`${q("menu_report")}. ${q("aria_label_new_tab_alert")}`,icon:ov,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:qr["copy-data"],type:"CLICK",onClick:t,label:q("menu_copy_debug"),ariaLabel:q("menu_copy_debug"),icon:Mu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:qr["save-trace-info"],type:"CLICK",onClick:t,label:q("menu_save_debug"),ariaLabel:q("menu_save_debug"),icon:Mu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:qr["debug-info"],type:"CLICK",onClick:t,ariaLabel:q("aria_label_menu_debug_overlay"),label:q("menu_debug_overlay"),icon:nv,isHiddenFor:["desktop"]})},c0=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>Mx[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(ma)};var Nx=(t,e)=>{su(t,e)},Ox=M('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),Bx=M('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),Dx=M("<div><!> <!></div>"),Fx={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
316
+ .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function lm(t,e){F(e,!0),W(t,Ux);let[i,o]=De(),r=()=>S(v,"$isFullscreen",i),s=()=>S(p,"$playerSize",i),l=h(e,"isMobile",3,!1),d=h(e,"playerControlsHeight",3,0),a=h(e,"ariaLabelReturnFromSubMenu",19,()=>j("aria_label_submenu_back")),u=h(e,"listRef",15);Rt(()=>{let q=e.items.findIndex(de=>de.selected);u().children[q+1].focus()});let f=he(),v=f.ui.isFullscreen,p=f.ui.playerSize,y=Q(void 0),w=Q(0),x=Q(0),C=m(()=>l()&&r()?`max-height: ${Math.round(s().height*.6)}px`:l()?"":`max-height: ${s().height-32-n(x)-d()}px; overflow: auto;`),T=m(()=>Math.max(e.minWidth,n(w)));var E=Fx();let R;var A=_(E);let I;A.__keydown=[Dx,e];var O=_(A);let H;O.__click=[Bx,e],O.__keydown=[Hx,e];var B=_(O);Js(B,{direction:"left"});var z=P(B,2),Z=_(z,!0);g(z),g(O),st(O,q=>N(y,q),()=>n(y));var ae=P(O,2);wi(ae,17,()=>e.items,fd,(q,de)=>{var X=He(),fe=pe(X);{var re=Me=>{rm(Me,{get item(){return n(de)},get isMobile(){return l()}})},le=(Me,we)=>{{var te=Ne=>{sm(Ne,{get isMobile(){return l()},get item(){return n(de)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(Me,Ne=>{n(de).type==="OPEN_SUB_MENU"&&Ne(te)},we)}};V(fe,Me=>{n(de).type==="SELECT_VALUE"?Me(re):Me(le,!1)})}b(q,X)}),g(A),st(A,q=>u(q),()=>u()),g(E),D((q,de,X)=>{R=ne(E,1,"sub-menu menu svelte-7dfsuh",null,R,q),We(E,"data-testid",`sub-menu-${e.id}`),Xe(E,`min-width: ${n(T)}px`),I=ne(A,1,"items svelte-7dfsuh",null,I,de),Xe(A,n(C)),H=ne(O,1,"item header back svelte-7dfsuh",null,H,X),We(O,"aria-label",a()),ve(Z,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),Sn(O,"clientWidth",q=>N(w,q)),Sn(O,"clientHeight",q=>N(x,q)),b(t,E),U(),o()}lt(["keydown","click"]);import{noop as zx}from"@vkontakte/videoplayer-shared/es2018";var Wx=(t,e)=>Tu(t,e()),Kx=(t,e)=>{t.stopPropagation(),e()()},qx=M('<div class="value svelte-1ikfjte"> </div>'),Qx=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),Gx={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function dm(t,e){F(e,!0),W(t,Gx);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,zx),r=h(e,"valueComponent",3,void 0),s=h(e,"ref",15);var l=Qx();let d;l.__click=[Kx,o],l.__keydown=[Wx,o];var a=_(l),u=_(a);{var f=T=>{Oa(T,{get icon(){return e.icon}})},v=T=>{var E=He();let R=m(()=>e.icon);var A=pe(E);Pi(A,()=>n(R),(I,O)=>{O(I,{})}),b(T,E)};V(u,T=>{typeof e.icon=="string"?T(f):T(v,!1)})}g(a);var p=P(a,2),y=_(p,!0);g(p);var w=P(p,2);{var x=T=>{var E=He();let R=m(r);var A=pe(E);Pi(A,()=>n(R),(I,O)=>{O(I,{})}),b(T,E)},C=T=>{var E=qx(),R=_(E,!0);g(E),D(()=>ve(R,e.value)),b(T,E)};V(w,T=>{r()?T(x):T(C,!1)})}g(l),st(l,T=>s(T),()=>s()),D(T=>{d=ne(l,1,"item",null,d,T),We(l,"aria-label",e.ariaLabel),We(l,"data-testid",e.id),ve(y,e.label)},[()=>({mobile:i()})]),b(t,l),U()}lt(["click","keydown"]);import{noop as C0}from"@vkontakte/videoplayer-shared/es2018";var jx=(t,e)=>{kl(t,()=>e())},Yx=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),Zx=M('<img class="icon" aria-hidden="true"/>'),Xx=M('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),Jx={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function cm(t,e){F(e,!0),W(t,Jx);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,C0),r=h(e,"closeSettings",3,C0),s=Q(!1),l=()=>{N(s,!0)},d=C=>{C==null||C.stopPropagation(),o()(),r()()};var a=Xx();let u;a.__click=d,a.__keydown=[jx,d];var f=_(a),v=_(f);{var p=C=>{var T=He(),E=pe(T);{var R=I=>{var O=Yx();b(I,O)},A=I=>{var O=Zx();D(()=>We(O,"src",e.icon)),wt("error",O,l),$a(O),b(I,O)};V(E,I=>{n(s)?I(R):I(A,!1)})}b(C,T)},y=C=>{var T=He();let E=m(()=>e.icon);var R=pe(T);Pi(R,()=>n(E),(A,I)=>{I(A,{})}),b(C,T)};V(v,C=>{typeof e.icon=="string"?C(p):C(y,!1)})}g(f);var w=P(f,2),x=_(w,!0);g(w),g(a),D(C=>{var T;u=ne(a,1,"item",null,u,C),We(a,"aria-label",(T=e.ariaLabel)!=null?T:e.label),We(a,"data-testid",e.id),ve(x,e.label)},[()=>({mobile:i()})]),b(t,a),U()}lt(["click","keydown"]);import{noop as i5}from"@vkontakte/videoplayer-shared/es2018";var e5=M('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),t5={hash:"svelte-17wbjko",code:'.toggle_wrap.svelte-17wbjko {min-height:15px;padding:0;font-size:12px;line-height:15px;cursor:pointer;user-select:none;}.toggle.svelte-17wbjko {float:right;margin-top:3px;width:28px;height:9px;border-radius:45px;background-color:var(--toggle-color-separator);cursor:pointer;}.toggle.svelte-17wbjko::after {content:"";float:left;position:relative;width:15px;height:15px;border-radius:50%;background-color:var(--toggle-color-off);top:-3px;left:0;transition:left .1s ease;}.toggle.on.svelte-17wbjko::after {background-color:var(--toggle-color-on);left:13px;}.toggle-label.svelte-17wbjko {overflow:hidden;}'};function um(t,e){W(t,t5);let i=h(e,"enabled",3,!1);var o=e5(),r=_(o);let s;Te(2),g(o),D(l=>s=ne(r,1,"toggle svelte-17wbjko",null,s,l),[()=>({on:i()})]),b(t,o)}var o5=(t,e,i)=>{U1(t,e(),o=>i()(o))},n5=(t,e,i)=>{t.stopPropagation(),e()(!i())},r5=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),s5=M('<li role="menuitem" tabindex="0"><!></li>');function pm(t,e){F(e,!0);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,i5),r=h(e,"enabled",3,!1),s=h(e,"tooltipText",3,void 0),l=h(e,"maxTooltipWidth",3,void 0);var d=s5();let a;d.__click=[n5,o,r],d.__keydown=[o5,r,o];var u=_(d);La(u,{get content(){return s()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,v)=>{var p=r5();let y;var w=_(p),x=_(w);{var C=I=>{Oa(I,{get icon(){return e.icon}})},T=I=>{var O=He();let H=m(()=>e.icon);var B=pe(O);Pi(B,()=>n(H),(z,Z)=>{Z(z,{})}),b(I,O)};V(x,I=>{typeof e.icon=="string"?I(C):I(T,!1)})}g(w);var E=P(w,2),R=_(E,!0);g(E);var A=P(E,2);um(A,{get enabled(){return r()}}),g(p),D(I=>{y=ne(p,1,"switch-wrapper",null,y,I),ve(R,e.label)},[()=>({mobile:i()})]),b(f,p)},$$slots:{default:!0}}),g(d),D(f=>{var v;a=ne(d,1,"item switch-item",null,a,f),We(d,"aria-label",(v=e.ariaLabel)!=null?v:e.label),We(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),U()}lt(["click","keydown"]);import{isValidURL as A5,VideoQuality as N0}from"@vkontakte/videoplayer-shared/es2018";var T0=()=>{let t=Q(ai([])),e=m(()=>(n(t).length?n(t).at(-1):null)||null);return{get current(){return n(e)},pushSubMenu:i=>{n(t).push(i)},popSubMenu:()=>{N(t,n(t).slice(0,-1),!0)},popAllSubMenus:()=>{N(t,[],!0)}}};var a5=M('<div class="quality-icon svelte-t2qk8t"><!></div>'),l5=M('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),d5={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){F(e,!0),W(t,d5);let i=h(e,"isSubCase",3,!1),o=m(()=>Mu(e.quality));var r=l5(),s=_(r);let l;var d=_(s,!0);g(s);var a=P(s,2);{var u=f=>{var v=a5();let p=m(()=>n(o));var y=_(v);Pi(y,()=>n(p),(w,x)=>{x(w,{})}),g(v),b(f,v)};V(a,f=>{n(o)&&!e.isMobile&&f(u)})}g(r),D(f=>{l=ne(s,1,"svelte-t2qk8t",null,l,f),ve(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,r),U()}import{VideoQuality as c5}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as E0}from"@vkontakte/videoplayer-core/es2018";var I0=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},k0=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=I0({quality:t,availableQualities:e});return i?t===E0.INVARIANT?j("auto_quality_invariant"):j("auto_quality",{actual:o}):o},A0=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===E0.INVARIANT?i:`${i}${I0({quality:t,availableQualities:e})}`:"...";var u5=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),p5={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Hl(t,e){F(e,!0),W(t,p5);let[i,o]=De(),r=()=>S(a,"$currentQuality$",i),s=()=>S(u,"$availableQualities$",i),l=()=>S(f,"$isMobile$",i),d=he(),a=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,v=" \xB7 ",p=m(()=>e.prefix+(e.selected&&r()!==c5.INVARIANT?v:"")),y=m(()=>A0({prefix:n(p),quality:r(),availableQualities:s(),onlyPrefix:!e.selected}));var w=u5(),x=_(w);let C=m(()=>e.selected?r():void 0);Wa(x,{get quality(){return n(C)},get label(){return n(y)},get isMobile(){return l()},isSubCase:!0}),g(w),b(t,w),U(),o()}var f5=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,r="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",s=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${r}|${s}`,"g")},v5={br:!0,span:!0},fm=(t,e={})=>{var d,a,u,f,v,p,y;if(!t)return t;let i={...v5,...e},o=Object.keys(i);if(!o.length)return t;let r=f5(o),s=[],l=0;for(let w of t.matchAll(r)){let x=w[0],C=((d=w.groups)==null?void 0:d.keyhtml)||((a=w.groups)==null?void 0:a.keyi18n)||((u=w.groups)==null?void 0:u.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:T}=w;if(!i[C]){s.push(t.slice(l,T)),l=T+x.length;continue}let E=(v=w.groups)!=null&&v.childrenhtml?fm(w.groups.childrenhtml,i):"",R=(p=w.groups)!=null&&p.childrenhtml?x.replace(new RegExp((y=w.groups)==null?void 0:y.childrenhtml),()=>E||""):x;s.push(t.slice(l,T),R),l=T+x.length}return l===0?t:(s.push(t.slice(l)),s.join(""))};function dc(t,e){F(e,!1);let i=h(e,"message",8),o=fm(i());Ko();var r=He(),s=pe(r);{var l=d=>{var a=He(),u=pe(a);vd(u,()=>o),b(d,a)};V(s,d=>{o&&d(l)})}b(t,r),U()}var m5=M('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),g5={hash:"svelte-1qk3zto",code:".quality-applies.svelte-1qk3zto {display:flex;justify-content:end;padding:3px 0;color:rgba(255, 255, 255, 0.5);}.quality-applies span {color:#70c1ff;}"};function vm(t,e){F(e,!1),W(t,g5),Ko();var i=m5(),o=_(i);let r=bn(()=>j("quality_applience",{action:`<span>${j("quality_applience_action")}</span>`}));dc(o,{get message(){return n(r)}}),g(i),b(t,i),U()}var M0=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:Hl,valueComponentParams:{prefix:j("other_quality"),selected:o},children:"QUALITY"}},mm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:j("auto_quality_limit"),valueComponent:e?Hl:void 0,valueComponentParams:{prefix:j("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),L0=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:vm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),gm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:j("high_quality"),valueComponent:t?Hl:void 0,valueComponentParams:{prefix:j("high_quality"),selected:i},sublabel:j("high_quality_description")}),hm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"QUALITY_TRAFFIC_SAVING",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:j("traffic_saving_quality"),valueComponent:t?Hl:void 0,valueComponentParams:{prefix:j("traffic_saving_quality"),selected:i},sublabel:j("traffic_saving_quality_description")});var ju=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Yu=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,r;if(i==="und"?r=void 0:i&&(r=(l=Qd(i))!=null?l:i),o&&i&&r){let d=e.filter(a=>a.label===o&&a.language===i);if(d.length===1)return j("audio_stream_display_language_label",{language:r,label:o});{let a=ju(t,d);return j("audio_stream_display_language_label_index",{language:r,label:o,index:a})}}if(o){let d=e.filter(a=>a.label===o);if(d.length===1)return o;{let a=ju(t,d);return j("audio_stream_display_label_index",{label:o,index:a})}}if(i&&r){let d=e.filter(a=>a.language===i);if(d.length===1)return r;{let a=ju(t,d);return j("audio_stream_display_language_index",{language:r,index:a})}}let s=ju(t,e);return j("audio_stream_display_unknown",{index:s})};var h5={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:r}=t,s=[];return i&&s.push({handler:mm,selected:e&&!o&&!r||!1}),s.push({handler:hm,selected:o},{handler:gm,selected:r}),{title:j("submenu_quality"),id:"QUALITY_DETAILS",items:[L0(t),...s.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),M0(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:j("submenu_quality"),closeSettingsMenu:t,items:i.map(r=>({type:"SELECT_VALUE",value:r.value,valueComponent:Wa,valueComponentParams:{quality:r.value,label:r.displayValue,isMobile:o,isSubCase:!0},selectItem:s=>e(s,"to-video"),selected:r.selected,label:r.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,r;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:j("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:mm,selected:((i=vu())==null?void 0:i.type)==="auto_quality"},{handler:hm,selected:((o=vu())==null?void 0:o.type)==="traffic_saving"},{handler:gm,selected:((r=vu())==null?void 0:r.type)==="high_quality"}].map(({handler:s,selected:l})=>s({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:j("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(r=>({type:"SELECT_VALUE",value:r,dataValue:r.id,selectItem:o,selected:r.id===(i==null?void 0:i.id),label:Yu(r,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:j("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:j("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===Bn?"sub_off":void 0}))})},V0=({subMenuId:t,context:e})=>t?[h5[t](e)]:[];var _5=Ee('<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 _m(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=_5();ke(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 r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var b5=Ee('<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 bm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=b5();ke(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 r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var $5=Ee('<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 $m(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=$5();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var y5=Ee('<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 ym(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=y5();ke(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 r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var x5=Ee('<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 xm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=x5();ke(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 r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var w5=Ee('<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 Zu(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=w5();ke(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 r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var S5=Ee('<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 wm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=S5();ke(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 r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var C5=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),T5={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Sm(t,e){F(e,!0),W(t,T5);let[i,o]=De(),r=()=>S(u,"$currentQuality$",i),s=()=>S(f,"$availableQualities$",i),l=()=>S(v,"$isAutoQualityEnabled$",i),d=()=>S(p,"$isMobile$",i),a=he(),u=a.state.currentQuality$,f=a.state.availableQualities$,v=a.state.isAutoQualityEnabled$,p=a.ui.isMobile,y=m(()=>k0({quality:r(),availableQualities:s(),isAutoQualityEnabled:l()}));var w=C5(),x=_(w);Wa(x,{get quality(){return r()},get label(){return n(y)},get isMobile(){return d()}}),g(w),b(t,w),U(),o()}var I5={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?j("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:j("aria_label_menu_quality",{actual:o}),icon:Bd,label:j("menu_quality"),value:e,valueComponent:Sm,weight:Yr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Yr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:j("aria_label_submenu_traffic_saving"),icon:_m,label:j("menu_traffic_saving"),enabled:t,tooltipText:j("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=Yu(t,e);return{id:"AUDIO_LANGUAGES",weight:Yr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:j("aria_label_menu_audio_languages",{actual:i}),icon:bm,label:j("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(r=>r.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:Yr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:j("aria_label_menu_rate",{actual:i}),icon:$m,label:j("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Yr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:j("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Hd,label:j("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Yr.download,type:"CLICK",onClick:t,label:j("download_video_caption"),ariaLabel:j("aria_label_menu_download"),icon:ym}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Yr.report,type:"CLICK",onClick:t,label:j("menu_report"),ariaLabel:`${j("menu_report")}. ${j("aria_label_new_tab_alert")}`,icon:xm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Yr["copy-data"],type:"CLICK",onClick:t,label:j("menu_copy_debug"),ariaLabel:j("menu_copy_debug"),icon:Zu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Yr["save-trace-info"],type:"CLICK",onClick:t,label:j("menu_save_debug"),ariaLabel:j("menu_save_debug"),icon:Zu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Yr["debug-info"],type:"CLICK",onClick:t,ariaLabel:j("aria_label_menu_debug_overlay"),label:j("menu_debug_overlay"),icon:wm,isHiddenFor:["desktop"]})},R0=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(r=>I5[r](e)),...i.map(r=>({...r,isAdditional:!0}))].filter(r=>{var s,l,d;return!((s=r==null?void 0:r.isHiddenFor)!=null&&s.length)||!((l=r==null?void 0:r.isHiddenFor)!=null&&l.includes("desktop"))&&!o||!((d=r==null?void 0:r.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(Aa)};var P5=(t,e)=>{Cu(t,e)},M5=M('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),L5=M('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),V5=M("<div><!> <!></div>"),R5={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
309
317
  /* \u043D\u0443\u0436\u043D\u043E \u0447\u0442\u043E\u0431 \u043C\u0435\u043D\u044E \u043D\u0435 \u0441\u043A\u0430\u043A\u0430\u043B\u043E \u0432 \u0448\u0438\u0440\u0438\u043D\u0435 \u043F\u0440\u0438 \u0441\u043C\u0435\u043D\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u044F, \u043E\u0441\u043E\u0431\u043E \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u043E \u043F\u0440\u0438 \u0430\u0432\u0442\u043E \u0440\u0435\u0436\u0438\u043C\u0435 */min-width:300px;}.settings-menu-container.svelte-17or3al .menu.mobile {width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px;}.settings-menu-container.svelte-17or3al .menu.mobile.hidden {display:none;}.settings-menu-container.svelte-17or3al .menu .item:not(.switch-item),
310
318
  .settings-menu-container.svelte-17or3al .menu .switch-wrapper {align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;white-space:nowrap;position:relative;}.settings-menu-container.svelte-17or3al .menu .item:hover {background-color:var(--settings-item-bg-hover);}.settings-menu-container.svelte-17or3al .menu .item.mobile:hover {background:var(--mobile-settings-bg);}.settings-menu.svelte-17or3al .item:not(.switch-item),
311
319
  .settings-menu.svelte-17or3al .switch-wrapper {padding:0 32px 0 18px;}.settings-menu.svelte-17or3al .item.mobile:not(.switch-item),
312
- .settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function Ud(t,e){U(e,!0),K(t,Fx);let[i,o]=Be(),n=()=>S(Je,"$settingsMenuVisible",i),s=()=>S(ye,"$settingsMenuOpenedByKeyboard",i),l=()=>S(mt,"$debugPanelVisible",i),d=()=>S(Se,"$isMobile",i),a=()=>S(lt,"$playerSize",i),p=()=>S(Re,"$hasMpegSources$",i),f=()=>S(Te,"$mobileNotReportControlHidden$",i),m=()=>S(le,"$autoQualityLimitingAvailable$",i),u=()=>S(Q,"$availableSubtitlesList$",i),y=()=>S(Ke,"$isLiveWithPlaybackSpeed",i),w=()=>S(ue,"$availableAudioStreams$",i),x=()=>S(ot,"$availablePlaybackRates$",i),T=()=>S(me,"$currentAudioStream$",i),C=()=>S(P,"$currentPlaybackRate$",i),E=()=>S(tt,"$trafficSavingEnabled",i),R=()=>S(Le,"$currentQuality$",i),I=()=>S(Ne,"$isAutoQualityEnabled$",i),k=()=>S(Oe,"$currentSubtitle$",i),B=()=>S(Dt,"$additionalSettingsMenuItems$",i),F=()=>S(re,"$isAutoQualityAvailable$",i),H=()=>S(Me,"$availableQualities$",i),W=()=>S(pt,"$highQualityEnabled",i),Y=v(e,"ref",15,void 0),oe=v(e,"playerControlsHeight",3,0),G=Zt({}),he=Zt({}),J=Ce(),pe=Tt(),me=J.state.audioStream$,ue=J.state.availableAudioStreams$,Le=J.state.currentQuality$,Me=J.state.availableQualities$,le=J.state.autoQualityLimitingAvailable$,Ne=J.state.isAutoQualityEnabled$,re=J.state.isAutoQualityAvailable$,P=J.state.currentPlaybackRate$,ot=J.state.availablePlaybackRates$,Oe=J.state.currentSubtitle$,Q=J.state.availableSubtitlesList$,te=J.state.canDownload,Re=J.state.hasMpegSources$,Je=J.ui.settingsMenu.visible$,ye=J.ui.settingsMenu.openedByBtnKeyboard$,ee=J.ui.settingsMenu.ref$,Se=J.ui.isMobile,Te=J.ui.mobileNotReportControlHidden$,Ke=J.state.canChangePlaybackSpeed$,tt=J.state.trafficSavingEnabled$,pt=J.state.highQualityEnabled$,lt=J.ui.playerSize,mt=J.ui.debugPanelVisible,it=J.state.isInteractiveTime$,Dt=J.ui.additionalSettingsMenuItems$,Wt=J.ui.t,Qt=J.actions.internal.downloadVideo,Kt=J.actions.internal.closeSettingsMenu,ke=J.actions.internal.openSettingsSubMenu,qt=J.actions.internal.closeSettingsSubMenu,_e=X(!1),Ee=X(void 0),de=t0();qe(()=>{!n()&&de.current&&(qt(he[de.current]),de.popAllSubMenus())}),qe(()=>{n()||O(Ee,void 0)}),qe(()=>{!de.current&&r(Ee)&&h1(G,r(Ee))}),qe(()=>{Y()&&ee.set(Y())});async function Qe(N){var Ht;de.pushSubMenu(N),await bo(),ke(N,he[N]);let et=(Ht=Y())==null?void 0:Ht.firstElementChild;et&&wf(et)}function Ue(N){var et;N==null||N.stopPropagation(),s()||(et=e.returnFocus)==null||et.call(e),Kt(),O(_e,!1)}function ce(N,et){J.actions.internal.setQuality(N,{appliesTo:et}),Ue()}function De(N){J.actions.internal.setAudioStream(N),Ue()}function be(N,et){J.actions.internal.setTrafficSavingEnabled(N,et),pe.features.qualityDetailsSubMenuEnabled&&Ue()}function Ze(N,et){J.actions.internal.setHighQualityEnabled(N,et),Ue()}function At(N){J.actions.internal.setPlaybackRate(N),Ue()}function bt(N){J.actions.internal.setSubtitle(N),Ue()}function Lt(){Qt()}function vi(){Rx(e.supportLink)&&window.open(e.supportLink,"_blank"),J.actions.internal.reportProblem(),J.actions.internal.pause()}function Yt(){rl(J.actions.internal.getDebugTextData())}let gi=()=>{let N=J.actions.internal.getTraceTextData(),et=new Blob([...N],{type:"application/json"}),Ht=window.URL.createObjectURL(et);da(Ht,"vk_player_trace_info","json")};function Ti(){mt.set(!l())}function co(){O(_e,!0)}function uo(){O(_e,!1)}function wt(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-oe()}px; overflow: auto;`}let Jt=g(()=>te&&p()&&!f()),ni=g(()=>pe.features.trafficSaving&&!f()&&m()&&!pe.features.qualityDetailsSubMenuEnabled),ze=g(()=>u().length>0&&!f()),It=g(()=>!!y()&&!f()),xi=g(()=>pe.features.audioLanguages&&w().length>=2&&!f()),Wi=g(()=>!f());Pt(()=>it.subscribe(N=>{N&&!d()&&!r(_e)&&!s()&&Ue()}));let po=g(()=>{let N=[r(Wi)&&"QUALITY_SETTINGS",r(xi)&&"AUDIO_LANGUAGES",r(It)&&"PLAYBACK_RATE",r(ze)&&"SUBTITLES",r(ni)&&"TRAFFIC_SAVING_SWITCH",r(Jt)&&"DOWNLOAD",pe.showSupport&&"SHOW_SUPPORT","COPY_DATA",pe.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(et=>!!et);return c0({items:N,context:{qualityDetailsSubMenuEnabled:pe.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:x(),currentAudioStream:T(),availableAudioStreams:w(),currentPlaybackRate:C(),selectPlaybackRate:At,trafficSavingEnabled:E(),toggleTrafficSaving:be,currentQuality:R()||u0.INVARIANT,isAutoQualityEnabled:I()||!1,currentSubtitle:k(),isMobile:d(),onDownloadClick:Lt,onCopyDataClick:Yt,onReportProblemClick:vi,onSaveTraceDataClick:gi,toggleShowDebugInfo:Ti},additionalSettingsMenuItems:B()})}),$t=g(()=>d0({subMenuId:de.current,context:{availablePlaybackRates:x(),selectPlaybackRate:At,trafficSavingEnabled:E(),toggleTrafficSaving:be,currentQuality:R()||u0.INVARIANT,isAutoQualityEnabled:I()||!1,isAutoQualityAvailable:F()||!1,availableQualities:H(),highQualityEnabled:W(),toggleHighQuality:Ze,availableAudioStreams:w(),availableSubtitlesList:u(),closeSettingsMenu:Kt,currentAudioStream:T(),isMobile:d(),selectAudioLanguage:De,selectQuality:ce,selectSubtitle:bt}}));var je=Dx();let Li;var xo=_(je);{var wo=N=>{var et=Bx();let Ht;et.__keydown=[Nx,Kt];var Ut=_(et);{var ft=ci=>{var ht=Ox();let Ei;var io=_(ht),vn=_(io,!0);h(io);var gn=A(io,2);gn.__click=Ue,h(ht),D((li,oo)=>{Ei=ne(ht,1,"item header svelte-17or3al",null,Ei,li),ve(vn,oo)},[()=>({mobile:d()}),()=>Wt("submenu_settings")]),$(ci,ht)};V(Ut,ci=>{d()&&ci(ft)})}var ei=A(Ut,2);let hi;ki(ei,21,()=>r(po),ci=>ci.id,(ci,ht)=>{var Ei=Fe(),io=fe(Ei);{var vn=li=>{Wm(li,{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:()=>{Qe(r(ht).children),O(Ee,r(ht).id,!0)},get ref(){return G[r(ht).id]},set ref(oo){G[r(ht).id]=oo}})},gn=(li,oo)=>{{var lr=Yi=>{Km(Yi,{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:Ue})},no=(Yi,Rn)=>{{var Wo=So=>{Qm(So,{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}})};V(Yi,So=>{r(ht).type==="SWITCH"&&So(Wo)},Rn)}};V(li,Yi=>{r(ht).type==="CLICK"?Yi(lr):Yi(no,!1)},oo)}};V(io,li=>{r(ht).type==="OPEN_SUB_MENU"?li(vn):li(gn,!1)})}$(ci,Ei)}),h(ei),st(ei,ci=>Y(ci),()=>Y()),h(et),D((ci,ht,Ei)=>{Ht=ne(et,1,"settings-menu menu svelte-17or3al",null,Ht,ci),hi=ne(ei,1,"items",null,hi,ht),at(ei,Ei)},[()=>({desktop:!d(),mobile:d(),hidden:!!de.current}),()=>({mobile:d()}),wt]),Ct("mouseenter",et,co),Ct("mouseleave",et,uo),$(N,et)};V(xo,N=>{n()&&N(wo)})}var on=A(xo,2);ki(on,17,()=>r($t),N=>N.id,(N,et)=>{let Ht=g(()=>{var Ut;return(Ut=r(et).minWidth)!=null?Ut:137});zm(N,{get isMobile(){return d()},get playerControlsHeight(){return oe()},get returnFromSubMenu(){return de.popSubMenu},get id(){return r(et).id},get title(){return r(et).title},get closeSettingsMenu(){return Kt},openSubMenuList:Qe,get items(){return r(et).items},get minWidth(){return r(Ht)},get refMenuItems(){return G},get listRef(){return he[r(et).id]},set listRef(Ut){he[r(et).id]=Ut}})}),h(je),D(N=>Li=ne(je,1,"settings-menu-container svelte-17or3al",null,Li,N),[()=>({mobile:d(),hidden:!n()})]),$(t,je),z(),o()}dt(["keydown","click"]);var Hx=t=>t;function p0(t,{delay:e=0,duration:i=400,easing:o=Hx}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:s=>`opacity: ${s*n}`}}var Ux=M('<button class="btn svelte-1f0voc7"> </button>'),zx={hash:"svelte-1f0voc7",code:"button.btn.svelte-1f0voc7 {margin-top:12px;font-size:14px;line-height:18px;background:rgba(255, 255, 255, 0.1);padding:6px 12px 7px;border-radius:8px;}"};function sv(t,e){K(t,zx);var i=Ux();i.__click=function(...n){var s;(s=e.onClick)==null||s.apply(this,n)};var o=_(i,!0);h(i),D(()=>ve(o,e.label)),$(t,i)}dt(["click"]);var Wx=M('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),Kx={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
320
+ .settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function cc(t,e){F(e,!0),W(t,R5);let[i,o]=De(),r=()=>S(Ye,"$settingsMenuVisible",i),s=()=>S(me,"$settingsMenuOpenedByKeyboard",i),l=()=>S(Je,"$debugPanelVisible",i),d=()=>S(Ie,"$isMobile",i),a=()=>S(dt,"$playerSize",i),u=()=>S(Be,"$hasMpegSources$",i),f=()=>S(ge,"$mobileNotReportControlHidden$",i),v=()=>S(te,"$autoQualityLimitingAvailable$",i),p=()=>S(Y,"$availableSubtitlesList$",i),y=()=>S(Fe,"$isLiveWithPlaybackSpeed",i),w=()=>S(le,"$availableAudioStreams$",i),x=()=>S(Ke,"$availablePlaybackRates$",i),C=()=>S(re,"$currentAudioStream$",i),T=()=>S(k,"$currentPlaybackRate$",i),E=()=>S(Ze,"$trafficSavingEnabled",i),R=()=>S(Me,"$currentQuality$",i),A=()=>S(Ne,"$isAutoQualityEnabled$",i),I=()=>S(Ve,"$currentSubtitle$",i),O=()=>S(nt,"$additionalSettingsMenuItems$",i),H=()=>S(ue,"$isAutoQualityAvailable$",i),B=()=>S(we,"$availableQualities$",i),z=()=>S(Ge,"$highQualityEnabled",i),Z=h(e,"ref",15,void 0),ae=h(e,"playerControlsHeight",3,0),q=ai({}),de=ai({}),X=he(),fe=Lt(),re=X.state.audioStream$,le=X.state.availableAudioStreams$,Me=X.state.currentQuality$,we=X.state.availableQualities$,te=X.state.autoQualityLimitingAvailable$,Ne=X.state.isAutoQualityEnabled$,ue=X.state.isAutoQualityAvailable$,k=X.state.currentPlaybackRate$,Ke=X.state.availablePlaybackRates$,Ve=X.state.currentSubtitle$,Y=X.state.availableSubtitlesList$,oe=X.state.canDownload,Be=X.state.hasMpegSources$,Ye=X.ui.settingsMenu.visible$,me=X.ui.settingsMenu.openedByBtnKeyboard$,J=X.ui.settingsMenu.ref$,Ie=X.ui.isMobile,ge=X.ui.mobileNotReportControlHidden$,Fe=X.state.canChangePlaybackSpeed$,Ze=X.state.trafficSavingEnabled$,Ge=X.state.highQualityEnabled$,dt=X.ui.playerSize,Je=X.ui.debugPanelVisible,Ot=X.state.isInteractiveTime$,nt=X.ui.additionalSettingsMenuItems$,Nt=X.ui.t,Wt=X.actions.internal.downloadVideo,Ct=X.actions.internal.closeSettingsMenu,Xt=X.actions.internal.openSettingsSubMenu,Ut=X.actions.internal.closeSettingsSubMenu,Se=Q(!1),xe=Q(void 0),ee=T0();ze(()=>{!r()&&ee.current&&(Ut(de[ee.current]),ee.popAllSubMenus())}),ze(()=>{r()||N(xe,void 0)}),ze(()=>{!ee.current&&n(xe)&&H1(q,n(xe))}),ze(()=>{Z()&&J.set(Z())});async function Ce(Et){var K;ee.pushSubMenu(Et),await Eo(),Xt(Et,de[Et]);let Dt=(K=Z())==null?void 0:K.firstElementChild;Dt&&Rf(Dt)}function Pe(Et){var Dt;Et==null||Et.stopPropagation(),s()||(Dt=e.returnFocus)==null||Dt.call(e),Ct(),N(Se,!1)}function Tt(Et,Dt){X.actions.internal.setQuality(Et,{appliesTo:Dt}),Pe()}function Oe(Et){X.actions.internal.setAudioStream(Et),Pe()}function ct(Et,Dt){X.actions.internal.setTrafficSavingEnabled(Et,Dt),fe.features.qualityDetailsSubMenuEnabled&&Pe()}function bt(Et,Dt){X.actions.internal.setHighQualityEnabled(Et,Dt),Pe()}function ye(Et){X.actions.internal.setPlaybackRate(Et),Pe()}function it(Et){X.actions.internal.setSubtitle(Et),Pe()}function qe(){Wt()}function at(){A5(e.supportLink)&&window.open(e.supportLink,"_blank"),X.actions.internal.reportProblem(),X.actions.internal.pause()}function Jt(){El(X.actions.internal.getDebugTextData())}let ni=()=>{let Et=X.actions.internal.getTraceTextData(),Dt=new Blob([...Et],{type:"application/json"}),K=window.URL.createObjectURL(Dt);Ca(K,"vk_player_trace_info","json")};function fi(){Je.set(!l())}function bi(){N(Se,!0)}function io(){N(Se,!1)}function lo(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-ae()}px; overflow: auto;`}let di=m(()=>oe&&u()&&!f()),vt=m(()=>fe.features.trafficSaving&&!f()&&v()&&!fe.features.qualityDetailsSubMenuEnabled),Ii=m(()=>p().length>0&&!f()),Qt=m(()=>!!y()&&!f()),St=m(()=>fe.features.audioLanguages&&w().length>=2&&!f()),ti=m(()=>!f());Rt(()=>Ot.subscribe(Et=>{Et&&!d()&&!n(Se)&&!s()&&Pe()}));let Gt=m(()=>{let Et=[n(ti)&&"QUALITY_SETTINGS",n(St)&&"AUDIO_LANGUAGES",n(Qt)&&"PLAYBACK_RATE",n(Ii)&&"SUBTITLES",n(vt)&&"TRAFFIC_SAVING_SWITCH",n(di)&&"DOWNLOAD",fe.showSupport&&"SHOW_SUPPORT","COPY_DATA",fe.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Dt=>!!Dt);return R0({items:Et,context:{qualityDetailsSubMenuEnabled:fe.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:x(),currentAudioStream:C(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:ye,trafficSavingEnabled:E(),toggleTrafficSaving:ct,currentQuality:R()||N0.INVARIANT,isAutoQualityEnabled:A()||!1,currentSubtitle:I(),isMobile:d(),onDownloadClick:qe,onCopyDataClick:Jt,onReportProblemClick:at,onSaveTraceDataClick:ni,toggleShowDebugInfo:fi},additionalSettingsMenuItems:O()})}),xt=m(()=>V0({subMenuId:ee.current,context:{availablePlaybackRates:x(),selectPlaybackRate:ye,trafficSavingEnabled:E(),toggleTrafficSaving:ct,currentQuality:R()||N0.INVARIANT,isAutoQualityEnabled:A()||!1,isAutoQualityAvailable:H()||!1,availableQualities:B(),highQualityEnabled:z(),toggleHighQuality:bt,availableAudioStreams:w(),availableSubtitlesList:p(),closeSettingsMenu:Ct,currentAudioStream:C(),isMobile:d(),selectAudioLanguage:Oe,selectQuality:Tt,selectSubtitle:it}}));var je=V5();let $i;var _o=_(je);{var Qo=Et=>{var Dt=L5();let K;Dt.__keydown=[P5,Ct];var Mt=_(Dt);{var ei=qt=>{var ut=M5();let Li;var Bi=_(ut),Go=_(Bi,!0);g(Bi);var Ao=P(Bi,2);Ao.__click=Pe,g(ut),D((oo,Hi)=>{Li=ne(ut,1,"item header svelte-17or3al",null,Li,oo),ve(Go,Hi)},[()=>({mobile:d()}),()=>Nt("submenu_settings")]),b(qt,ut)};V(Mt,qt=>{d()&&qt(ei)})}var pt=P(Mt,2);let It;wi(pt,21,()=>n(Gt),qt=>qt.id,(qt,ut)=>{var Li=He(),Bi=pe(Li);{var Go=oo=>{dm(oo,{get isMobile(){return d()},get id(){return n(ut).id},get icon(){return n(ut).icon},get label(){return n(ut).label},get ariaLabel(){return n(ut).ariaLabel},get value(){return n(ut).value},get valueComponent(){return n(ut).valueComponent},onClick:()=>{Ce(n(ut).children),N(xe,n(ut).id,!0)},get ref(){return q[n(ut).id]},set ref(Hi){q[n(ut).id]=Hi}})},Ao=(oo,Hi)=>{{var lr=uo=>{cm(uo,{get isMobile(){return d()},get id(){return n(ut).id},get onClick(){return n(ut).onClick},get icon(){return n(ut).icon},get label(){return n(ut).label},get ariaLabel(){return n(ut).ariaLabel},closeSettings:Pe})},co=(uo,Vi)=>{{var an=Po=>{pm(Po,{get isMobile(){return d()},get id(){return n(ut).id},get onClick(){return n(ut).onClick},get icon(){return n(ut).icon},get label(){return n(ut).label},get ariaLabel(){return n(ut).ariaLabel},get enabled(){return n(ut).enabled},get tooltipText(){return n(ut).tooltipText},get maxTooltipWidth(){return n(ut).maxTooltipWidth}})};V(uo,Po=>{n(ut).type==="SWITCH"&&Po(an)},Vi)}};V(oo,uo=>{n(ut).type==="CLICK"?uo(lr):uo(co,!1)},Hi)}};V(Bi,oo=>{n(ut).type==="OPEN_SUB_MENU"?oo(Go):oo(Ao,!1)})}b(qt,Li)}),g(pt),st(pt,qt=>Z(qt),()=>Z()),g(Dt),D((qt,ut,Li)=>{K=ne(Dt,1,"settings-menu menu svelte-17or3al",null,K,qt),It=ne(pt,1,"items",null,It,ut),Xe(pt,Li)},[()=>({desktop:!d(),mobile:d(),hidden:!!ee.current}),()=>({mobile:d()}),lo]),wt("mouseenter",Dt,bi),wt("mouseleave",Dt,io),b(Et,Dt)};V(_o,Et=>{r()&&Et(Qo)})}var sn=P(_o,2);wi(sn,17,()=>n(xt),Et=>Et.id,(Et,Dt)=>{let K=m(()=>{var Mt;return(Mt=n(Dt).minWidth)!=null?Mt:137});lm(Et,{get isMobile(){return d()},get playerControlsHeight(){return ae()},get returnFromSubMenu(){return ee.popSubMenu},get id(){return n(Dt).id},get title(){return n(Dt).title},get closeSettingsMenu(){return Ct},openSubMenuList:Ce,get items(){return n(Dt).items},get minWidth(){return n(K)},get refMenuItems(){return q},get listRef(){return de[n(Dt).id]},set listRef(Mt){de[n(Dt).id]=Mt}})}),g(je),D(Et=>$i=ne(je,1,"settings-menu-container svelte-17or3al",null,$i,Et),[()=>({mobile:d(),hidden:!r()})]),b(t,je),U(),o()}lt(["keydown","click"]);var N5=M('<button class="btn svelte-1f0voc7"> </button>'),O5={hash:"svelte-1f0voc7",code:"button.btn.svelte-1f0voc7 {margin-top:12px;font-size:14px;line-height:18px;background:rgba(255, 255, 255, 0.1);padding:6px 12px 7px;border-radius:8px;}"};function Cm(t,e){W(t,O5);var i=N5();i.__click=function(...r){var s;(s=e.onClick)==null||s.apply(this,r)};var o=_(i,!0);g(i),D(()=>ve(o,e.label)),b(t,i)}lt(["click"]);var D5=M('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),B5={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
313
321
  /**
314
322
  * \u0415\u0441\u043B\u0438 \u043D\u0435 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u043C \u0443 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 \u0441\u043E\u0431\u044B\u0442\u0438\u044F, \u0442\u043E \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u043C \u043F\u043E \u044D\u0442\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0432\u044B\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E.
315
- */pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function zd(t,e){U(e,!0),K(t,Kx);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Tt(),{ui:{t:n}}=Ce(),s=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=Wx(),d=_(l),a=_(d),p=_(a),f=_(p);Hd(f,{get message(){return s}}),h(p);var m=A(p,2);{var u=w=>{let x=g(()=>n("slow_video_notification_button"));sv(w,{get label(){return r(x)},get onClick(){return e.onSelectAutoQuality}})};V(m,w=>{o||w(u)})}h(a);var y=A(a,2);va(y,{get onClick(){return e.onClose}}),h(d),h(l),zp(3,d,()=>p0,()=>({duration:i})),$(t,l),z()}import{isIntersecting as f0,Subscription as qx}from"@vkontakte/videoplayer-shared/es2018";var Aa="annotation",Vu=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",Aa),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(m=>m.forEach(()=>{let u=ws(s,this.shadowRootContainer);o.forEach(y=>{let w=l==null?void 0:l[y],x=w?$e(w):null,T=d==null?void 0:d[y];x&&(T==null||T.set(f0(x,u)))})}));a.observe(s,{childList:!0,subtree:!0}),n.observer=a;let p=new qx;o.forEach(m=>{l&&p.add(l[m].subscribe(u=>{let y=d==null?void 0:d[m];u&&u.isDisplayed?y==null||y.set(f0(u,ws(s,this.shadowRootContainer))):y==null||y.set(!1)}))}),n.subs=p}async findSlotElement(e,i,o){return new Promise(n=>{let s=null,l=new MutationObserver(()=>{if(s=e.querySelector(`#${i}`),s){l.disconnect();let a=this.slots.get(o);a&&(a.observerForFindingSlotElement=void 0),n(s)}});l.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=l)})}remove(e){var p,f;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:n,observerForFindingSlotElement:s,subs:l,options:{controlsBehaviour:d,hideAllControls:a}}=i;o&&o.remove(),[n,s].forEach(m=>m==null?void 0:m.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(m=>{var u,y;(y=(u=this.store)==null?void 0:u.ui.hiddenControls[m])==null||y.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var Qx=M('<div class="container svelte-16aykgd"><!></div>'),Gx={hash:"svelte-16aykgd",code:`.container.svelte-16aykgd {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
323
+ */pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function uc(t,e){F(e,!0),W(t,B5);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Lt(),{ui:{t:r}}=he(),s=r(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=D5(),d=_(l),a=_(d),u=_(a),f=_(u);dc(f,{get message(){return s}}),g(u);var v=P(u,2);{var p=w=>{let x=m(()=>r("slow_video_notification_button"));Cm(w,{get label(){return n(x)},get onClick(){return e.onSelectAutoQuality}})};V(v,w=>{o||w(p)})}g(a);var y=P(a,2);Es(y,{get onClick(){return e.onClose}}),g(d),g(l),Gr(3,d,()=>us,()=>({duration:i})),b(t,l),U()}import{isIntersecting as O0,Subscription as H5}from"@vkontakte/videoplayer-shared/es2018";var Ka="annotation",Xu=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var d;let{overlay:o,id:r,controlsBehaviour:s,hideAllControls:l}=i;e.setAttribute("slot",Ka),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(r,{rootElement:e,options:i}),s&&this.runHidingControlsWhenIntersected(r,s),l&&((d=this.store)==null||d.ui.isControlsAvailable.set(!1))}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}async runHidingControlsWhenIntersected(e,{observedSlotElementId:i,controlsToObserve:o}){var f;let r=this.slots.get(e);if(!r)return;let s=await this.findSlotElement(r.rootElement,i,e),{controls:l,hiddenControls:d}=((f=this.store)==null?void 0:f.ui)||{},a=new MutationObserver(v=>v.forEach(()=>{let p=ks(s,this.shadowRootContainer);o.forEach(y=>{let w=l==null?void 0:l[y],x=w?be(w):null,C=d==null?void 0:d[y];x&&(C==null||C.set(O0(x,p)))})}));a.observe(s,{childList:!0,subtree:!0}),r.observer=a;let u=new H5;o.forEach(v=>{l&&u.add(l[v].subscribe(p=>{let y=d==null?void 0:d[v];p&&p.isDisplayed?y==null||y.set(O0(p,ks(s,this.shadowRootContainer))):y==null||y.set(!1)}))}),r.subs=u}async findSlotElement(e,i,o){return new Promise(r=>{let s=null,l=new MutationObserver(()=>{if(s=e.querySelector(`#${i}`),s){l.disconnect();let a=this.slots.get(o);a&&(a.observerForFindingSlotElement=void 0),r(s)}});l.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=l)})}remove(e){var u,f;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:r,observerForFindingSlotElement:s,subs:l,options:{controlsBehaviour:d,hideAllControls:a}}=i;o&&o.remove(),[r,s].forEach(v=>v==null?void 0:v.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),a&&((u=this.store)==null||u.ui.isControlsAvailable.set(!0)),(f=d==null?void 0:d.controlsToObserve)==null||f.forEach(v=>{var p,y;(y=(p=this.store)==null?void 0:p.ui.hiddenControls[v])==null||y.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var F5=M('<div class="container svelte-16aykgd"><!></div>'),U5={hash:"svelte-16aykgd",code:`.container.svelte-16aykgd {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
316
324
 
317
325
  animation-name: svelte-16aykgd-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
318
326
 
@@ -343,8 +351,11 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},Jh=tb;var $
343
351
  opacity: 0;
344
352
  scale: 0;
345
353
  }
346
- }`};function Wd(t,e){K(t,Gx);let i=v(e,"isPrev",3,!1);var o=Fe(),n=fe(o);gs(n,()=>e.Icon,s=>{var l=Qx(),d=_(l);Ai(d,()=>e.Icon,(a,p)=>{p(a,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return i()}})}),h(l),D(()=>at(l,`animation-duration: ${e.duration}ms`)),$(s,l)}),$(t,o)}import{PlaybackState as m0}from"@vkontakte/videoplayer-core/es2018";var jx=M('<div class="container svelte-1sw36pi"><!></div>'),Yx={hash:"svelte-1sw36pi",code:".container.svelte-1sw36pi {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}"};function av(t,e){U(e,!0),K(t,Yx);let[i,o]=Be(),n=()=>S(l,"$playbackState$",i),s=()=>S(d,"$isPlaying$",i),{state:{playbackState$:l,isPlaying$:d}}=Ce(),{features:{playbackStatusShow:a},playbackStatusAnimationDuration:p}=Tt(),f=0,m=X(null),u=X(!1);qe(()=>{n()===m0.PLAYING?O(m,Kr,!0):n()===m0.PAUSED?O(m,Ts,!0):O(m,null)}),qe(()=>{if(a)return f=window.setTimeout(()=>{f=0,O(m,null)},p),()=>{f&&(window.clearTimeout(f),f=0)}}),qe(()=>{s()&&!r(u)&&(O(u,!0),O(m,null))});var y=Fe(),w=fe(y);{var x=T=>{var C=jx(),E=_(C);Wd(E,{get duration(){return p},get Icon(){return r(m)}}),h(C),$(T,C)};V(w,T=>{r(m)&&a&&T(x)})}$(t,y),z(),o()}var Zx=M('<div><div data-testid="video-container"></div></div>'),Xx={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
347
- .video-container.svelte-1czns9r {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1czns9r {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1czns9r {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1czns9r {transition:none;}.nocursor.svelte-1czns9r {cursor:none;}`};function Pa(t,e){U(e,!0),K(t,Xx);let[i,o]=Be(),n=()=>S(f,"$rotateAlpha",i),s=()=>S(m,"$playerSize",i),l=()=>S(p,"$playerPhase",i),d=()=>S(u,"$isPlaying$",i),a=v(e,"videoContainer",15),{playerPhase:p,ui:{rotateAlpha:f,playerSize:m},state:{isPlaying$:u}}=Ce(),{isSmoothVideoRotate:y}=Tt(),w=g(()=>a()&&n()%180?s().height/s().width:1);var x=Zx();let T;x.__contextmenu=function(...R){var I;(I=e.onContextMenu)==null||I.apply(this,R)},x.__mousedown=function(...R){var I;(I=e.onMouseDown)==null||I.apply(this,R)},x.__mouseup=function(...R){var I;(I=e.onMouseUp)==null||I.apply(this,R)},x.__click=function(...R){var I;(I=e.onClick)==null||I.apply(this,R)},x.__dblclick=function(...R){var I;(I=e.onDblClick)==null||I.apply(this,R)};var C=_(x);let E;st(C,R=>a(R),()=>a()),h(x),D((R,I)=>{T=ne(x,1,"video-wrapper svelte-1czns9r",null,T,R),E=ne(C,1,"video-container svelte-1czns9r",null,E,I),at(C,`transform: rotate(${n()}deg) scale(${r(w)})`),He(C,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!y})]),$(t,x),z(),o()}dt(["contextmenu","mousedown","mouseup","click","dblclick"]);var Jx=we('<svg><!><path fill="currentColor" d="M8 7.389V5.725c0-.52.57-.84 1.015-.569l3.721 2.275a.667.667 0 0 1 0 1.138l-3.721 2.275A.667.667 0 0 1 8 10.275V8.611l-3.652 2.233a.667.667 0 0 1-1.014-.569v-4.55c0-.52.57-.84 1.014-.569z"></path></svg>');function lv(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Jx();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",role:"img",...i}));var n=_(o);ge(n,()=>{var s;return(s=e.children)!=null?s:ae}),xe(),h(o),$(t,o)}var e5=M('<div><span class="text svelte-1gi6268"> </span> <!></div>'),t5={hash:"svelte-1gi6268",code:".root.svelte-1gi6268 {padding:6px 12px;gap:4px;background-color:var(--double-forward-bg);color:var(--white);display:flex;border-radius:100px;position:absolute;top:24px;left:50%;transform:translateX(-50%);transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);visibility:hidden;opacity:0;pointer-events:none;}.root.visible.svelte-1gi6268 {transform:translateX(-50%);visibility:visible;opacity:1;}.text.svelte-1gi6268 {font-size:13px;line-height:16px;font-weight:600;}"};function dv(t,e){U(e,!0),K(t,t5);let{ui:{t:i}}=Ce();var o=e5();let n;var s=_(o),l=_(s,!0);h(s);var d=A(s,2);lv(d,{}),h(o),D((a,p)=>{n=ne(o,1,"root svelte-1gi6268",null,n,a),ve(l,p)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),$(t,o),z()}var i5=(t,e,i,o,n,s)=>{if(t.stopPropagation(),e()||o()){s();return}},o5=M("<div><!></div>"),n5=M('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),r5=M("<div><!></div>"),s5=M('<div class="settings-menu svelte-jtgjmv"><!></div>'),a5=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),l5=M("<!> <!> <!>",1),d5=M('<div class="blocked svelte-jtgjmv"></div>'),c5=M('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),u5={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 cv(t,e){U(e,!0),K(t,u5);let[i,o]=Be(),n=()=>S(jr,"$notificationsToShow$",i),s=()=>S(uo,"$playerPhase",i),l=()=>S(je,"$isLoaderVisible",i),d=()=>S(gi,"$adPlaybackState",i),a=()=>S(Ht,"$crashed",i),p=()=>S(vn,"$isInteractiveTime$",i),f=()=>S(ze,"$settingsMenuVisible",i),m=()=>S(gn,"$isInteractiveExpectation$",i),u=()=>S(ni,"$controlsVisible",i),y=()=>S(oo,"$touched",i),w=()=>S(Gr,"$graphIsOpened$",i),x=()=>S(wt,"$isFullscreen",i),T=()=>S(cr,"$autoplayNextEnabled$",i),C=()=>S(on,"$postrollPassed",i),E=()=>S(Li,"$isEnded$",i),R=()=>S(di,"$cursorInside",i),I=()=>S(Qr,"$isControlsAvailable",i),k=()=>S(On,"$doubleForwardOn$",i),B=()=>S(Bn,"$fakeIsPlaying$",i),F=()=>S(yn,"$bottomNoSmooth",i),H=()=>S(Rn,"$interactiveTimeIndicator",i),W=()=>S(ci,"$playerSize",i),Y=()=>S(ht,"$is3DVideo",i),oe=()=>S(_n,"$doubleForwardAvailable$",i),G=()=>S(po,"$contextMenuVisible$",i),he=()=>S(Yt,"$playbackState$",i),J=()=>S(lr,"$hotKeyMapData",i),pe=()=>S(xi,"$scrubbingInProgress",i),me=()=>S(Wi,"$volumeChangingInProgress",i),ue=()=>S(xo,"$chromecastConnected$",i),Le=()=>S(Co,"$controlsTimeoutActive",i),Me=()=>S(It,"$settingsMenuOpenedByKeyboard",i),le=()=>S(_r,"$contextMenuOpenedByKeyboard$",i),Ne=()=>S(Vr,"$contextMenuOpenedByHotKey$",i),re=()=>S(br,"$contextMenuButtonRef$",i),P=()=>S(Yr,"$contextMenuLastActiveElem$",i),ot=()=>S(Jt,"$isFullscreenOpenedByKeyboard",i),Oe=()=>S(vi,"$language$",i),Q=()=>S(Ei,"$icon3DVideoVisible",i),te=()=>S(wo,"$chromecastDeviceName$",i),Re=()=>S(ei,"$currentSubtitle$",i),Je=()=>S(hi,"$currentSubtitleCaptions$",i),ye=()=>S(Ti,"$position$",i),ee=()=>S(co,"$duration$",i),Se=()=>S(N,"$isLive$",i),Te=()=>S(et,"$isPlaying$",i),Ke=()=>S(So,"$contextMenuPosition$",i),tt=()=>S(no,"$showHotKeyMap",i),pt=()=>S($t,"$debugPanelVisible",i),lt=()=>S(cs,"$userActionsDisabled$",i),mt=v(e,"videoContainer",15),it=v(e,"adsSlotId",3,void 0),Dt=v(e,"adsParams",3,void 0),Wt=v(e,"adsAutoplayParam",3,void 0),Qt=v(e,"duration",3,void 0),Kt=v(e,"logoTargetUrl",3,""),ke=v(e,"showNextPrevButtons",3,!1),qt=v(e,"nextButtonActive",3,!1),_e=v(e,"prevButtonActive",3,!1),Ee=v(e,"endScreenVideoTitle",3,void 0),de=v(e,"endScreenVideoThumb",3,void 0),Qe=v(e,"isOneVideoPlaylist",3,!1),Ue=v(e,"shadowRootContainer",3,void 0),ce=v(e,"outerContainerRef",3,void 0),De=v(e,"playerStarted",3,!1),be=v(e,"fullScreenTarget",3,void 0),Ze=v(e,"showMiniTimer",3,!1),At=v(e,"showEndScreen",3,!0),bt=v(e,"keyboardControls",15),Lt=e.store.getLogger().createComponentLog("Root component"),vi=e.store.interfaceLanguage$,Yt=e.store.state.playbackState$,gi=e.store.ads.playbackState,Ti=e.store.state.positionWithScrubbing$,co=e.store.state.duration$,uo=e.store.playerPhase,wt=e.store.ui.isFullscreen,Jt=e.store.ui.isFullscreenOpenedByKeyboard,ni=e.store.ui.controlsVisible,ze=e.store.ui.settingsMenu.visible$,It=e.store.ui.settingsMenu.openedByBtnKeyboard$,xi=e.store.ui.scrubbingInProgress,Wi=e.store.ui.volumeChangingInProgress,po=e.store.ui.contextMenu.visible$,$t=e.store.ui.debugPanelVisible,je=e.store.state.isLoaderVisible,Li=e.store.state.isEnded$,xo=e.store.state.chromecastConnected$,wo=e.store.state.chromecastDeviceName$,on=e.store.ads.postrollPassed,N=e.store.state.isLive$,et=e.store.state.isPlaying$,Ht=e.store.state.crashed$,Ut=e.store.webApi.annotationsApi,ft=e.store.webApi.pictureInPictureApi,ei=e.store.state.currentSubtitle$,hi=e.store.state.currentSubtitleCaptions$,ci=e.store.ui.playerSize,ht=e.store.ui.is3DVideo,Ei=e.store.ui.icon3DVideoVisible,io=e.store.state.isInteractive,vn=e.store.state.isInteractiveTime$,gn=e.store.state.isInteractiveExpectation$,li=e.store.state.hasInteractiveBranches,oo=e.store.ui.touched,lr=e.store.ui.modals.hotKeyMap.data,no=e.store.ui.modals.hotKeyMap.show,Yi=e.store.ui.overlayContainer$,Rn=e.store.ui.controls.interactiveTimeIndicator,Wo=e.store.state.showInteractiveTimeIndicator,So=e.store.ui.contextMenu.position$,dr=e.store.actions.internal.setQuality,Nn=e.store.actions.internal.closeSettingsMenu,cr=e.store.ui.autoplayNextEnabled$,cs=e.store.ui.userActionsDisabled,Qr=e.store.ui.isControlsAvailable,hn=e.store.ui.videoTitleInfo,On=e.store.ui.doubleForwardOn$,_n=e.store.ui.doubleForwardAvailable$,Ko=e.store.actions.internal.getVideoElement,qo=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:Bn,notifications$:ur,graphIsOpened$:Gr}=lo(),ro=X(void 0),Er=X(void 0),nn=X(void 0),bn=X(void 0),Dn,pr,Fn;lr.set(d1());let{closeNotification:fo,notificationsToShow$:jr}=ur,$n=g(()=>!!n().slow_video),ct=()=>fo("slow_video"),ri=g(()=>(s()==="video"&&l()||s()==="ads"&&d()==="inactive")&&!a()),rn=X(void 0),yn=se(!1),Ir,Co=se(!1),sn=se(),di=se(!1),Ii=X(!1),To=X(!1),Hn=X(!1),fr=X(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),kr=g(()=>p()&&!f()&&!(r(Ii)||r(To))&&!(r(Hn)&&!m())),mr=!0,Un=g(()=>e.uiConfig.features.thumbTimer&&Ze()&&s()==="video"&&!u()&&!a()&&!io&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),zn=g(()=>s()==="video"&&!w()&&x()),Eo=X(!1),Wn=g(()=>(At()||e.showAutoplayNext&&T())&&!!Ee()&&!!de()&&(e.showAds&&C()||!e.showAds)&&E()&&!a()&&!r(Eo)),vr=g(()=>R()&&!(u()||r(Wn))&&!p()&&I()&&!k()),ti=X(!1),an=g(()=>B()!==null),{toggle:gr}=Bn,xn=!1,ut=null;ft==null||ft.setContext(Il());let ii=()=>{e.autoplay&&!io&&e.uiConfig.controls.showOnStartupAtAutoplay&&ui(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:ii});let Zi=()=>{window.clearTimeout(Dn),Co.set(!1)},mo=()=>{window.clearTimeout(pr),sn.set(null)},ui=Z=>{Zi(),Co.set(!0),Dn=window.setTimeout(()=>Co.set(!1),Z);let Ge=Z-100;Ir=window.setTimeout(()=>{F()&&yn.set(!1)},Ge>0?Ge:Z)},Io=(Z,Ge)=>{mo(),sn.set(Ge),pr=window.setTimeout(()=>sn.set(null),Z)},Xi=ht.subscribe(Z=>{Ei.set(Z),Z&&(window.clearTimeout(Fn),Fn=window.setTimeout(()=>Ei.set(!1),e.uiConfig.controls.hide360IconTimeout))}),pi=async()=>{var Ge,Nt,oi,wi;let Z=Fs();if(Z){let Si=td(),Bi=hr();Z=Si===Bi||Si===Ue()}if(Z){ui(e.uiConfig.controls.hideTimeoutFullscreen);try{await(ft==null?void 0:ft.exit())}catch(Si){Lt({message:String(Si)})}}wt.set(Z),e.store.getAdmanWrapper().setFullscreen(Z),x()?(Nt=(Ge=e.store.callbacks)==null?void 0:Ge.onFullscreenEnter)==null||Nt.call(Ge):(wi=(oi=e.store.callbacks)==null?void 0:oi.onFullscreenExit)==null||wi.call(oi)},wn=Z=>{let{width:Ge,height:Nt}=Z.target;ci.set({width:Ge,height:Nt})},Qo=()=>{let{width:Z,height:Ge}=r(ro).getBoundingClientRect();ci.set({width:Z,height:Ge})};Pt(()=>{var Ge;return nu(pi),e.uiConfig.features.annotationsInside&&(Ut==null||Ut.init(r(ro))),pa(ft)&&(ft==null||ft.assignPlayerContainer(r(ro)),ft==null||ft.setExternalEventHandlers({resize:wn,leavepictureinpicture:Qo})),e.interactiveContainer&&((Ge=mt().parentElement)==null||Ge.insertBefore(e.interactiveContainer,mt().nextSibling)),()=>{window.clearTimeout(Dn),window.clearTimeout(Ir),window.clearTimeout(pr),window.clearTimeout(Fn),Xi(),ft==null||ft.dispose().catch(Nt=>{Lt({message:String(Nt)})}),ru(pi)}});let hr=()=>{let Z=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!ce()?r(ro):ce(),Ge=Z.getRootNode(),Nt=Ge instanceof ShadowRoot?Ge.host:Ge,oi=be()instanceof HTMLElement&&be().contains(Nt);return e.uiConfig.allowChangingFullscreenTarget&&be()&&oi?be():Z},Ar=()=>{po.set(!1)},Go=()=>{Nn(),Ar()},Pr=async()=>{if(!qo()){Lt({message:"fullscreen disabled"});return}Ar(),Fs()?(await ou(document),Lt({message:"exit fullscreen"})):(Lt({message:"request fullscreen"}),await iu(hr()))},Lr=Z=>{w()||(Z.preventDefault(),po.set(!0),So.set({left:Z.clientX,top:Z.clientY}))};function ko(){di.set(!0),io||ui(e.uiConfig.controls.hideTimeoutCursor)}function Kn(Z){var wi,Si;let{relatedTarget:Ge}=Z,oi=!!(Ge&&((wi=r(nn))!=null&&wi.contains(Ge)))&&((Si=bt())==null?void 0:Si.isFocused());!io&&!oi&&(yn.set(!0),ui(e.uiConfig.controls.hideTimeoutCursor))}function Mr(){di.set(!1),O(To,!1),O(Ii,!1),xn=!1,e.store.actions.internal.releaseCamera(),ui(e.uiConfig.controls.hideTimeout),k()&&Vi()}function qn(Z){return Z?Z.offsetTop+qn(Z.offsetParent):0}function rt(Z){return Z?Z.offsetLeft+rt(Z.offsetParent):0}function kt(Z){if(H()&&Wo){let Ge=Z.currentTarget,Nt=qn(Ge),oi=rt(Ge),wi=Z.pageX-oi,Si=Z.pageY-Nt,{left:Bi,bottom:Yn,right:Ci}=H(),$i=Ci-Bi;return wi>=Bi-$i&&Si<=Yn+$i}}function _i(Z){if(r(ro)){let Ge=qn(Z.currentTarget),Nt=W().height,oi=Z.pageY-Ge;if(kt(Z)){O(To,!1);return}oi<40?O(To,!0):oi>Nt-40?O(Ii,!0):(O(To,!1),f()||O(Ii,!1))}}function so(Z){_i(Z),!r(kr)&&!k()&&ui(e.uiConfig.controls.hideTimeoutCursor),Y()&&xn&&ut&&e.store.actions.internal.moveCameraFocusPX(ut.clientX-Z.clientX,ut.clientY-Z.clientY,Z.timeStamp-ut.timeStamp),ut=Z}let Mi=null,Ki=()=>{Mi=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),Zi()},e.uiConfig.doubleForwardActivationTime)},Vi=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),Mi&&clearTimeout(Mi),Mi=null},vo=Z=>{Z.preventDefault(),Z.button===0&&(xn=!0,e.store.actions.internal.holdCamera(),oe()&&Ki()),!xn&&ui(e.uiConfig.controls.hideTimeoutCursor)},Sn=Z=>{Z.preventDefault(),Z.button===0&&(ut=Z,xn=!1,e.store.actions.internal.releaseCamera()),!k()&&ui(e.uiConfig.controls.hideTimeoutCursor)},Ao=Z=>{Z.preventDefault(),mr&&(Lt({message:"double click on video"}),Pr(),ui(e.uiConfig.controls.hideTimeoutCursor))},Po=Z=>{var Ge;if(Z.preventDefault(),k()){Vi();return}if(Mi&&Vi(),G()||f()){Go();return}if(!(E()&&!li)){if(r(an))return gr();if((Ge=bt())==null||Ge.focus(),!De()){e.firstStart(),ui(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||he()!==g0.PLAYING)&&e.store.actions.internal.togglePlay(),ui(e.uiConfig.controls.hideTimeoutCursor)}},Lo=Z=>{Go(),oo.set(!0),ui(e.uiConfig.controls.hideTimeout),Z&&Io(e.uiConfig.controls.hideHotKeyHelpers,Z)},Qn=()=>{var Z,Ge;Go(),(Z=e.store.callbacks)!=null&&Z.onOpenHotKeyMap?(Ge=e.store.callbacks)==null||Ge.onOpenHotKeyMap(J()):no.update(Nt=>!Nt)},Cn=()=>{oo.set(!0)},_r=e.store.ui.contextMenu.openedByBtnKeyboard$,br=e.store.ui.contextMenu.btnRef$,Gn=X(void 0),Vr=e.store.ui.contextMenu.openedByHotKey$,Yr=e.store.ui.contextMenu.lastActiveElem$;qe(()=>{Yi.set(r(rn))}),qe(()=>{O(Hn,r(fr)&&he()!==g0.PLAYING,!0),r(fr)||xt(()=>O(fr,!0))}),qe(()=>{var Ge,Nt;let Z=(r(Hn)||E()||f()||pe()||me()||ue()||Le())&&!r(kr)&&(s()==="video"||s()==="ads")&&!a()&&I();ni.set(Z),!Z&&!Le()&&e.uiConfig.returnFocusOnControlsHide&&((Ge=r(nn))!=null&&Ge.contains(pu()))&&((Nt=bt())==null||Nt.focus())}),qe(()=>{!pe()&&r(ti)&&!p()&&ui(e.uiConfig.controls.hideTimeoutCursor),xt(()=>O(ti,pe(),!0))}),qe(()=>{r(bn),f(),Me(),xt(()=>ld(r(bn),f(),Me()))}),qe(()=>{r(Gn),G(),le(),Ne(),xt(()=>{let Z=le()||Ne();ld(r(Gn),G(),Z)})}),qe(()=>{let Z=re();Z&&(G(),xt(()=>sl(Z,G(),_r)))}),qe(()=>{let Z=P();Z&&(G(),xt(()=>g1(Z,G(),Vr)))}),qe(()=>{var Z;!ot()&&x()&&(xt(()=>Jt.set(!1)),(Z=bt())==null||Z.focus())}),qe(()=>{w()&&Go()});let We=q("video360"),zt=X(void 0),bi=Z=>{hn.set(Mn(Ko(),{title:r(zt)},"title",Z))},ln=(Z,Ge)=>{var Si,Bi;let Nt=(Bi=(Si=e.store.callbacks)==null?void 0:Si.uiInfo)==null?void 0:Bi.onUpcomingLiveViewStateChanged;if(!Nt)return;let oi=!!Ge,wi={...Mn(r(ro),{upcomingLiveScreen:Ge},"upcomingLiveScreen",oi),...Z};Nt(wi)};var Mo=c5();Ct("blur",ea,Go);var Vo=fe(Mo);Vo.__mousemove=so;var Ro=_(Vo);let jn=g(()=>s()==="ads"),Zr=g(()=>r(an)?gr:void 0);st(kf(Ro,{startDoubleForwardActivationTimer:Ki,stopDoubleForward:Vi,toggleFullscreen:Pr,hideContextMenu:Go,showHotKeyHelpers:Lo,showKeyMap:Qn,get isAds(){return r(jn)},get fakePlayButtonHandler(){return r(Zr)},get nextButtonActive(){return qt()},get prevButtonActive(){return _e()},children:(Z,Ge)=>{var Nt=l5(),oi=fe(Nt);Pa(oi,{get hideCursor(){return r(vr)},onClick:Po,onContextMenu:Lr,onMouseDown:vo,onMouseUp:Sn,onDblClick:Ao,get videoContainer(){return mt()},set videoContainer(Bi){mt(Bi)}});var wi=A(oi,2);sa(wi,()=>"slot",!1,(Bi,Yn)=>{Ie(Bi,()=>({name:Aa}))});var Si=A(wi,2);gs(Si,Oe,Bi=>{var Yn=a5(),Ci=fe(Yn);let $i=g(()=>s()!=="thumb"||a()||io&&e.autoplay);Ea(Ci,{get hidden(){return r($i)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var No=A(Ci,2);av(No,{});var go=A(No,2);dv(go,{get isVisible(){return k()}});var yr=A(go,2);{var ho=Ye=>{let ai=g(()=>{var Oo;return(Oo=e.live)==null?void 0:Oo.startTime});Dd(Ye,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(ai)},onUpcomingLiveViewStateChanged:ln})};V(yr,Ye=>{s()==="LiveWaitingStart"&&Ye(ho)})}var Zn=A(yr,2);{var yt=Ye=>{Ia(Ye,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(Zn,Ye=>{s()==="LiveWaitingRecover"&&Ye(yt)})}var _t=A(Zn,2);{var ao=Ye=>{Ia(Ye,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(_t,Ye=>{s()==="LiveWaitingRecord"&&Ye(ao)})}var jo=A(_t,2);{var qi=Ye=>{var ai=o5();let Oo;var Jr=_(ai);od(Jr,{get adsSlotId(){return it()},get adsParams(){return Dt()},get adsAutoplayParam(){return Wt()},get duration(){return Qt()},get adsExternalApi(){return e.adsExternalApi}}),h(ai),D(dn=>Oo=ne(ai,1,"ads-container svelte-jtgjmv",null,Oo,dn),[()=>({hidden:s()!=="ads"})]),$(Ye,ai)};V(jo,Ye=>{e.showAds&&De()&&Ye(qi)})}var si=A(jo,2);{var Di=Ye=>{let ai=g(()=>!At()&&e.showAutoplayNext&&T());Tf(Ye,{get title(){return Ee()},get thumb(){return de()},get isHide(){return r(ai)},clickCloseIcon:()=>O(Eo,!0)})};V(si,Ye=>{r(Wn)&&Ee()&&de()&&Ye(Di)})}var ks=A(si,2);{var Rr=Ye=>{let ai=g(()=>!u());Om(Ye,{get title(){return e.title},get isHidden(){return r(ai)},onVisibilityChanged:bi,get ref(){return r(zt)},set ref(Oo){O(zt,Oo,!0)}})};V(ks,Ye=>{r(zn)&&Ye(Rr)})}var ic=A(ks,2);{var Ku=Ye=>{let ai=g(()=>s()==="video"&&u());Od(Ye,{get isShifted(){return r(ai)}})};V(ic,Ye=>{Y()&&Ye(Ku)})}var oc=A(ic,2);{var qu=Ye=>{var ai=n5(),Oo=_(ai);ed(Oo,{get"aria-label"(){return We}}),h(ai),$(Ye,ai)};V(oc,Ye=>{Q()&&Ye(qu)})}var nc=A(oc,2);{var Qu=Ye=>{Bd(Ye,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return te()}})};V(nc,Ye=>{ue()&&Ye(Qu)})}var rc=A(nc,2);{var Gu=Ye=>{Ca(Ye,{get shifted(){return u()},get captions(){return Je()},get position(){return ye()},get playerSize(){return W()}})};V(rc,Ye=>{Re().value!=="off"&&Ye(Gu)})}var sc=A(rc,2);{var ju=Ye=>{var ai=r5();ai.__contextmenu=Lr,ai.__click=[i5,G,po,f,ze,Go];var Oo=_(ai);Ta(Oo,{}),h(ai),$(Ye,ai)};V(sc,Ye=>{a()&&Ye(ju)})}var ac=A(sc,2);{var Yu=Ye=>{let ai=g(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),Oo=g(()=>s()==="ads"),Jr=g(()=>e.canRewindLive&&ee()!==0);Nd(Ye,{get bottomHidden(){return r(ai)},get bottomNoSmooth(){return F()},get showControls(){return u()},get isAds(){return r(Oo)},get canRewindLive(){return r(Jr)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Kt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return ke()},get nextButtonActive(){return qt()},get prevButtonActive(){return _e()},get isOneVideoPlaylist(){return Qe()},customFullscreenSupported:mr,toggleFullscreen:Pr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(Er)},set playerControlsWrapperRef(dn){O(Er,dn,!0)},get playerControlsRef(){return r(nn)},set playerControlsRef(dn){O(nn,dn,!0)}})};V(ac,Ye=>{De()&&Ye(Yu)})}var lc=A(ac,2);{var Zu=Ye=>{var ai=s5(),Oo=_(ai);let Jr=g(()=>{var dn;return(dn=r(nn))==null?void 0:dn.clientHeight});Ud(Oo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(Jr)},returnFocus:()=>{var dn;return(dn=bt())==null?void 0:dn.focus()},get ref(){return r(bn)},set ref(dn){O(bn,dn,!0)}}),h(ai),$(Ye,ai)};V(lc,Ye=>{!ue()&&s()!=="ads"&&Ye(Zu)})}var dc=A(lc,2);let La=g(()=>!r(Un));sd(dc,{get isLive(){return Se()},get isHidden(){return r(La)},get isPlaying(){return Te()},get position(){return ye()},get duration(){return ee()}});var cc=A(dc,2);Mm(cc,{get data(){return sn}});var bl=A(cc,2);Cf(bl,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ye;return(Ye=bt())==null?void 0:Ye.focus()},get visible(){return G()},get playerContainerRef(){return r(ro)},get controlsContainerRef(){return r(Er)},get position(){return Ke()},get menuElementRef(){return r(Gn)},set menuElementRef(Ye){O(Gn,Ye,!0)}});var $l=A(bl,2);{var Xu=Ye=>{zd(Ye,{onClose:ct,onSelectAutoQuality:()=>{dr("auto"),ct()}})};V($l,Ye=>{r($n)&&Ye(Xu)})}var yl=A($l,2);{var xl=Ye=>{ha(Ye,{})};V(yl,Ye=>{r(ri)&&Ye(xl)})}var wl=A(yl,2);{var Ju=Ye=>{Lf(Ye,{})};V(wl,Ye=>{tt()&&Ye(Ju)})}var uc=A(wl,2);{var ep=Ye=>{ud(Ye,{})};V(uc,Ye=>{pt()&&Ye(ep)})}$(Bi,Yn)}),$(Z,Nt)},$$slots:{default:!0}}),Z=>bt(Z),()=>bt());var Is=A(Ro,2);st(Is,Z=>O(rn,Z),()=>r(rn)),h(Vo),st(Vo,Z=>O(ro,Z),()=>r(ro));var $r=A(Vo,2);{var Xr=Z=>{var Ge=d5();$(Z,Ge)};V($r,Z=>{lt()&&Z(Xr)})}Ct("mouseenter",Vo,ko),Ct("mouseleave",Vo,Mr),Ct("click",Vo,Cn,!0),Ct("focusin",Vo,Kn,!0),$(t,Mo),z(),o()}dt(["mousemove","contextmenu","click"]);import{clientChecker as Kd,PlaybackState as y5}from"@vkontakte/videoplayer-core/es2018";import{noop as x5}from"@vkontakte/videoplayer-shared/es2018";var p5=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),f5=M("<div><!></div>"),m5={hash:"svelte-nhq2ld",code:`.double-click-area.svelte-nhq2ld {position:absolute;top:0;height:100%;width:25%;overflow:hidden;}.double-click-area.left.svelte-nhq2ld {left:0;}.double-click-area.right.svelte-nhq2ld {right:0;}.semicircle.svelte-nhq2ld {position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);}.semicircle.left.svelte-nhq2ld {left:0;border-top-right-radius:50%;border-bottom-right-radius:50%;}.semicircle.right.svelte-nhq2ld {right:0;border-top-left-radius:50%;border-bottom-left-radius:50%;}.info.svelte-nhq2ld {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center;}.triangles-wrapper.svelte-nhq2ld {position:relative;display:flex;margin-bottom:10px;justify-content:center;}.triangle.svelte-nhq2ld {width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;
354
+ }`};function pc(t,e){W(t,U5);let i=h(e,"isPrev",3,!1);var o=He(),r=pe(o);xs(r,()=>e.Icon,s=>{var l=F5(),d=_(l);Pi(d,()=>e.Icon,(a,u)=>{u(a,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return i()}})}),g(l),D(()=>Xe(l,`animation-duration: ${e.duration}ms`)),b(s,l)}),b(t,o)}import{PlaybackState as D0}from"@vkontakte/videoplayer-core/es2018";var z5=M('<div class="container svelte-1sw36pi"><!></div>'),W5={hash:"svelte-1sw36pi",code:".container.svelte-1sw36pi {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}"};function Tm(t,e){F(e,!0),W(t,W5);let[i,o]=De(),r=()=>S(a,"$playbackState$",i),s=()=>S(f,"$previewTrackActive",i),l=()=>S(v,"$previewTrackDragInProgress",i),d=()=>S(u,"$isPlaying$",i),{state:{playbackState$:a,isPlaying$:u},ui:{previewTrackActive:f,previewTrackDragInProgress:v}}=he(),{features:{playbackStatusShow:p},playbackStatusAnimationDuration:y}=Lt(),w=0,x=Q(null),C=Q(!1);ze(()=>{r()===D0.PLAYING?N(x,ar,!0):r()===D0.PAUSED?N(x,Ms,!0):N(x,null)}),ze(()=>{if(!(!p||s()||l()))return w=window.setTimeout(()=>{w=0,N(x,null)},y),()=>{w&&(window.clearTimeout(w),w=0)}}),ze(()=>{d()&&!n(C)&&(N(C,!0),N(x,null))});var T=He(),E=pe(T);{var R=A=>{var I=z5(),O=_(I);pc(O,{get duration(){return y},get Icon(){return n(x)}}),g(I),b(A,I)};V(E,A=>{n(x)&&p&&A(R)})}b(t,T),U(),o()}var K5=M('<div><div data-testid="video-container"></div></div>'),q5={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
355
+ .video-container.svelte-1czns9r {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1czns9r {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1czns9r {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1czns9r {transition:none;}.nocursor.svelte-1czns9r {cursor:none;}`};function qa(t,e){F(e,!0),W(t,q5);let[i,o]=De(),r=()=>S(f,"$rotateAlpha",i),s=()=>S(v,"$playerSize",i),l=()=>S(u,"$playerPhase",i),d=()=>S(p,"$isPlaying$",i),a=h(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:f,playerSize:v},state:{isPlaying$:p}}=he(),{isSmoothVideoRotate:y}=Lt(),w=m(()=>a()&&r()%180?s().height/s().width:1);var x=K5();let C;x.__contextmenu=function(...R){var A;(A=e.onContextMenu)==null||A.apply(this,R)},x.__mousedown=function(...R){var A;(A=e.onMouseDown)==null||A.apply(this,R)},x.__mouseup=function(...R){var A;(A=e.onMouseUp)==null||A.apply(this,R)},x.__click=function(...R){var A;(A=e.onClick)==null||A.apply(this,R)},x.__dblclick=function(...R){var A;(A=e.onDblClick)==null||A.apply(this,R)};var T=_(x);let E;st(T,R=>a(R),()=>a()),g(x),D((R,A)=>{C=ne(x,1,"video-wrapper svelte-1czns9r",null,C,R),E=ne(T,1,"video-container svelte-1czns9r",null,E,A),Xe(T,`transform: rotate(${r()}deg) scale(${n(w)})`),We(T,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!y})]),b(t,x),U(),o()}lt(["contextmenu","mousedown","mouseup","click","dblclick"]);var Q5=Ee('<svg><!><path fill="currentColor" d="M8 7.389V5.725c0-.52.57-.84 1.015-.569l3.721 2.275a.667.667 0 0 1 0 1.138l-3.721 2.275A.667.667 0 0 1 8 10.275V8.611l-3.652 2.233a.667.667 0 0 1-1.014-.569v-4.55c0-.52.57-.84 1.014-.569z"></path></svg>');function Em(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Q5();ke(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",role:"img",...i}));var r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var G5=M('<div><span class="text svelte-1gi6268"> </span> <!></div>'),j5={hash:"svelte-1gi6268",code:".root.svelte-1gi6268 {padding:6px 12px;gap:4px;background-color:var(--double-forward-bg);color:var(--white);display:flex;border-radius:100px;position:absolute;top:24px;left:50%;transform:translateX(-50%);transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);visibility:hidden;opacity:0;pointer-events:none;}.root.visible.svelte-1gi6268 {transform:translateX(-50%);visibility:visible;opacity:1;}.text.svelte-1gi6268 {font-size:13px;line-height:16px;font-weight:600;}"};function Im(t,e){F(e,!0),W(t,j5);let{ui:{t:i}}=he();var o=G5();let r;var s=_(o),l=_(s,!0);g(s);var d=P(s,2);Em(d,{}),g(o),D((a,u)=>{r=ne(o,1,"root svelte-1gi6268",null,r,a),ve(l,u)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),b(t,o),U()}var Y5=M('<div class="container svelte-1k32wyl" role="button"><div class="icon svelte-1k32wyl"><!></div></div>'),Z5={hash:"svelte-1k32wyl",code:".container.svelte-1k32wyl {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;background-color:rgba(0, 0, 0, 0.48);cursor:pointer;}.icon.svelte-1k32wyl {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;transition:transform 0.2s;transition-timing-function:ease-out;will-change:transform;}.container.svelte-1k32wyl:hover .icon:where(.svelte-1k32wyl) {transform:scale(1.15);}"};function km(t,e){F(e,!1),W(t,Z5);let o=he().actions.internal.closePreviewTrack,r=200,s=u=>{u.stopPropagation(),o()};Ko();var l=Y5();l.__click=s;var d=_(l),a=_(d);return ar(a,{width:"40",height:"40",viewBox:"0 0 24 24"}),g(d),g(l),Gr(3,l,()=>us,()=>({duration:r})),b(t,l),tf(e,"handleClick",s),U({handleClick:s})}lt(["click"]);var X5=M('<div class="container svelte-17g9o6z"><div class="notification svelte-17g9o6z"><span class="text svelte-17g9o6z"> </span></div></div>'),J5={hash:"svelte-17g9o6z",code:`.container.svelte-17g9o6z {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
356
+ /**
357
+ * \u0415\u0441\u043B\u0438 \u043D\u0435 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u043C \u0443 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 \u0441\u043E\u0431\u044B\u0442\u0438\u044F, \u0442\u043E \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u043C \u043F\u043E \u044D\u0442\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0432\u044B\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E.
358
+ */pointer-events:none;}.notification.svelte-17g9o6z {padding:10px 16px;background-color:var(--black-alpha-40);border-radius:var(--notification-radius);}.text.svelte-17g9o6z {line-height:18px;font-size:14px;font-weight:500;}`};function Am(t,e){F(e,!1),W(t,J5);let{ui:{t:i}}=he();Ko();var o=X5(),r=_(o),s=_(r),l=_(s,!0);g(s),g(r),g(o),D(d=>ve(l,d),[()=>i("preview_track_notification_text")],bn),Gr(3,r,()=>us,()=>({duration:340})),b(t,o),U()}var ew=(t,e,i,o,r,s)=>{if(t.stopPropagation(),e()||o()){s();return}},tw=M("<div><!></div>"),iw=M('<div class="spherical-video-icon svelte-nqua3g"><!></div>'),ow=M("<div><!></div>"),nw=M('<div class="settings-menu svelte-nqua3g"><!></div>'),rw=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),sw=M("<!> <!> <!>",1),aw=M('<div class="blocked svelte-nqua3g"></div>'),lw=M('<div class="player-wrapper svelte-nqua3g"><!> <div class="overlay-container"></div></div> <!>',1),dw={hash:"svelte-nqua3g",code:".player-wrapper.svelte-nqua3g {position:absolute;width:100%;height:100%;}.blocked.svelte-nqua3g {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-nqua3g .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-nqua3g {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-nqua3g {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-nqua3g {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-nqua3g {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s;}"};function Pm(t,e){F(e,!0),W(t,dw);let[i,o]=De(),r=()=>S(pi,"$notificationsToShow$",i),s=()=>S(di,"$playerPhase",i),l=()=>S(_o,"$isLoaderVisible",i),d=()=>S(bi,"$adPlaybackState",i),a=()=>S(ei,"$crashed",i),u=()=>S(oo,"$isInteractiveTime$",i),f=()=>S(St,"$settingsMenuVisible",i),v=()=>S(Hi,"$isInteractiveExpectation$",i),p=()=>S(Qt,"$controlsVisible",i),y=()=>S(co,"$touched",i),w=()=>S(Er,"$graphIsOpened$",i),x=()=>S(vt,"$isFullscreen",i),C=()=>S(ps,"$autoplayNextEnabled$",i),T=()=>S(Dt,"$postrollPassed",i),E=()=>S(Qo,"$isEnded$",i),R=()=>S(fo,"$cursorInside",i),A=()=>S(bo,"$isControlsAvailable",i),I=()=>S(Mo,"$doubleForwardOn$",i),O=()=>S(Cr,"$fakeIsPlaying$",i),H=()=>S(kn,"$bottomNoSmooth",i),B=()=>S(Po,"$interactiveTimeIndicator",i),z=()=>S(Li,"$playerSize",i),Z=()=>S(Bi,"$is3DVideo",i),ae=()=>S(ln,"$doubleForwardAvailable$",i),q=()=>S(je,"$contextMenuVisible$",i),de=()=>S(fi,"$playbackState$",i),X=()=>S(uo,"$hotKeyMapData",i),fe=()=>S(Gt,"$scrubbingInProgress",i),re=()=>S(xt,"$volumeChangingInProgress",i),le=()=>S(sn,"$chromecastConnected$",i),Me=()=>S(Vo,"$controlsTimeoutActive",i),we=()=>S(ti,"$settingsMenuOpenedByKeyboard",i),te=()=>S(Dr,"$contextMenuOpenedByKeyboard$",i),Ne=()=>S(Yt,"$contextMenuOpenedByHotKey$",i),ue=()=>S(Jr,"$contextMenuButtonRef$",i),k=()=>S(mi,"$contextMenuLastActiveElem$",i),Ke=()=>S(Ii,"$isFullscreenOpenedByKeyboard",i),Ve=()=>S(ni,"$language$",i),Y=()=>S(gn,"$previewTrackActive$",i),oe=()=>S(Go,"$icon3DVideoVisible",i),Be=()=>S(Et,"$chromecastDeviceName$",i),Ye=()=>S(qt,"$currentSubtitle$",i),me=()=>S(ut,"$currentSubtitleCaptions$",i),J=()=>S(io,"$position$",i),Ie=()=>S(lo,"$duration$",i),ge=()=>S(K,"$isLive$",i),Fe=()=>S(Mt,"$isPlaying$",i),Ze=()=>S(cr,"$contextMenuPosition$",i),Ge=()=>S(Cn,"$previewTrackNotificationVisible$",i),dt=()=>S(Vi,"$showHotKeyMap",i),Je=()=>S($i,"$debugPanelVisible",i),Ot=()=>S(Xr,"$userActionsDisabled$",i),nt=h(e,"videoContainer",15),Nt=h(e,"adsSlotId",3,void 0),Wt=h(e,"adsParams",3,void 0),Ct=h(e,"adsAutoplayParam",3,void 0),Xt=h(e,"duration",3,void 0),Ut=h(e,"logoTargetUrl",3,""),Se=h(e,"showNextPrevButtons",3,!1),xe=h(e,"nextButtonActive",3,!1),ee=h(e,"prevButtonActive",3,!1),Ce=h(e,"endScreenVideoTitle",3,void 0),Pe=h(e,"endScreenVideoThumb",3,void 0),Tt=h(e,"isOneVideoPlaylist",3,!1),Oe=h(e,"shadowRootContainer",3,void 0),ct=h(e,"outerContainerRef",3,void 0),bt=h(e,"playerStarted",3,!1),ye=h(e,"fullScreenTarget",3,void 0),it=h(e,"showMiniTimer",3,!1),qe=h(e,"showEndScreen",3,!0),at=h(e,"keyboardControls",15),Jt=e.store.getLogger().createComponentLog("Root component"),ni=e.store.interfaceLanguage$,fi=e.store.state.playbackState$,bi=e.store.ads.playbackState,io=e.store.state.positionWithScrubbing$,lo=e.store.state.duration$,di=e.store.playerPhase,vt=e.store.ui.isFullscreen,Ii=e.store.ui.isFullscreenOpenedByKeyboard,Qt=e.store.ui.controlsVisible,St=e.store.ui.settingsMenu.visible$,ti=e.store.ui.settingsMenu.openedByBtnKeyboard$,Gt=e.store.ui.scrubbingInProgress,xt=e.store.ui.volumeChangingInProgress,je=e.store.ui.contextMenu.visible$,$i=e.store.ui.debugPanelVisible,_o=e.store.state.isLoaderVisible,Qo=e.store.state.isEnded$,sn=e.store.state.chromecastConnected$,Et=e.store.state.chromecastDeviceName$,Dt=e.store.ads.postrollPassed,K=e.store.state.isLive$,Mt=e.store.state.isPlaying$,ei=e.store.state.crashed$,pt=e.store.webApi.annotationsApi,It=e.store.webApi.pictureInPictureApi,qt=e.store.state.currentSubtitle$,ut=e.store.state.currentSubtitleCaptions$,Li=e.store.ui.playerSize,Bi=e.store.ui.is3DVideo,Go=e.store.ui.icon3DVideoVisible,Ao=e.store.state.isInteractive,oo=e.store.state.isInteractiveTime$,Hi=e.store.state.isInteractiveExpectation$,lr=e.store.state.hasInteractiveBranches,co=e.store.ui.touched,uo=e.store.ui.modals.hotKeyMap.data,Vi=e.store.ui.modals.hotKeyMap.show,an=e.store.ui.overlayContainer$,Po=e.store.ui.controls.interactiveTimeIndicator,dr=e.store.state.showInteractiveTimeIndicator,cr=e.store.ui.contextMenu.position$,wr=e.store.actions.internal.setQuality,Zr=e.store.actions.internal.closeSettingsMenu,ps=e.store.ui.autoplayNextEnabled$,Xr=e.store.ui.userActionsDisabled,bo=e.store.ui.isControlsAvailable,Un=e.store.ui.videoTitleInfo,Mo=e.store.ui.doubleForwardOn$,ln=e.store.ui.doubleForwardAvailable$,Cn=e.store.ui.previewTrackNotificationVisible,ur=e.store.actions.internal.getVideoElement,Sr=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:Cr,notifications$:Tr,graphIsOpened$:Er}=ho(),Qi=Q(void 0),Ir=Q(void 0),Tn=Q(void 0),dn=Q(void 0),po,pr,En;uo.set(M1());let{closeNotification:mt,notificationsToShow$:pi}=Tr,kr=m(()=>!!r().slow_video),zn=()=>mt("slow_video"),Ar=m(()=>(s()==="video"&&l()||s()==="ads"&&d()==="inactive")&&!a()),In=Q(void 0),kn=se(!1),Lo,Vo=se(!1),cn=se(),fo=se(!1),Ro=Q(!1),jo=Q(!1),fr=Q(!1),Pr=Q(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),un=m(()=>u()&&!f()&&!(n(Ro)||n(jo))&&!(n(fr)&&!v())),Fi=!0,vr=m(()=>e.uiConfig.features.thumbTimer&&it()&&s()==="video"&&!p()&&!a()&&!Ao&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),Mr=m(()=>s()==="video"&&!w()&&x()),An=Q(!1),Wn=m(()=>(qe()||e.showAutoplayNext&&C())&&!!Ce()&&!!Pe()&&(e.showAds&&T()||!e.showAds)&&E()&&!a()&&!n(An)),Lr=m(()=>R()&&!(p()||n(Wn))&&!u()&&A()&&!I()),Kn=Q(!1),tt=m(()=>O()!==null),{toggle:ri}=Cr,Ri=!1,Ni=null;It==null||It.setContext(Zl());let pn=()=>{e.autoplay&&!Ao&&e.uiConfig.controls.showOnStartupAtAutoplay&&vi(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:pn});let $o=()=>{window.clearTimeout(po),Vo.set(!1)},yo=()=>{window.clearTimeout(pr),cn.set(null)},vi=$e=>{$o(),Vo.set(!0),po=window.setTimeout(()=>Vo.set(!1),$e);let ft=$e-100;Lo=window.setTimeout(()=>{H()&&kn.set(!1)},ft>0?ft:$e)},Pn=($e,ft)=>{yo(),cn.set(ft),pr=window.setTimeout(()=>cn.set(null),$e)},vo=Bi.subscribe($e=>{Go.set($e),$e&&(window.clearTimeout(En),En=window.setTimeout(()=>Go.set(!1),e.uiConfig.controls.hide360IconTimeout))}),qn=async()=>{var ft,si,xi,ui;let $e=Qs();if($e){let Zt=Sd(),Ci=Rr();$e=Zt===Ci||Zt===Oe()}if($e){vi(e.uiConfig.controls.hideTimeoutFullscreen);try{await(It==null?void 0:It.exit())}catch(Zt){Jt({message:String(Zt)})}}vt.set($e),e.store.getAdmanWrapper().setFullscreen($e),x()?(si=(ft=e.store.callbacks)==null?void 0:ft.onFullscreenEnter)==null||si.call(ft):(ui=(xi=e.store.callbacks)==null?void 0:xi.onFullscreenExit)==null||ui.call(xi)},Qn=$e=>{let{width:ft,height:si}=$e.target;Li.set({width:ft,height:si})},Vr=()=>{let{width:$e,height:ft}=n(Qi).getBoundingClientRect();Li.set({width:$e,height:ft})};Rt(()=>{var ft;return wu(qn),e.uiConfig.features.annotationsInside&&(pt==null||pt.init(n(Qi))),Ia(It)&&(It==null||It.assignPlayerContainer(n(Qi)),It==null||It.setExternalEventHandlers({resize:Qn,leavepictureinpicture:Vr})),e.interactiveContainer&&((ft=nt().parentElement)==null||ft.insertBefore(e.interactiveContainer,nt().nextSibling)),()=>{window.clearTimeout(po),window.clearTimeout(Lo),window.clearTimeout(pr),window.clearTimeout(En),vo(),It==null||It.dispose().catch(si=>{Jt({message:String(si)})}),Su(qn)}});let Rr=()=>{let $e=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!ct()?n(Qi):ct(),ft=$e.getRootNode(),si=ft instanceof ShadowRoot?ft.host:ft,xi=ye()instanceof HTMLElement&&ye().contains(si);return e.uiConfig.allowChangingFullscreenTarget&&ye()&&xi?ye():$e},fn=()=>{je.set(!1)},vn=()=>{Zr(),fn()},mr=async()=>{if(!Sr()){Jt({message:"fullscreen disabled"});return}fn(),Qs()?(await xu(document),Jt({message:"exit fullscreen"})):(Jt({message:"request fullscreen"}),await yu(Rr()))},mn=$e=>{w()||($e.preventDefault(),je.set(!0),cr.set({left:$e.clientX,top:$e.clientY}))};function Nr(){fo.set(!0),Ao||vi(e.uiConfig.controls.hideTimeoutCursor)}function et($e){var ui,Zt;let{relatedTarget:ft}=$e,xi=!!(ft&&((ui=n(Tn))!=null&&ui.contains(ft)))&&((Zt=at())==null?void 0:Zt.isFocused());!Ao&&!xi&&(kn.set(!0),vi(e.uiConfig.controls.hideTimeoutCursor))}function At(){fo.set(!1),N(jo,!1),N(Ro,!1),Ri=!1,e.store.actions.internal.releaseCamera(),vi(e.uiConfig.controls.hideTimeout),I()&&Oo()}function yi($e){return $e?$e.offsetTop+yi($e.offsetParent):0}function mo($e){return $e?$e.offsetLeft+mo($e.offsetParent):0}function No($e){if(B()&&dr){let ft=$e.currentTarget,si=yi(ft),xi=mo(ft),ui=$e.pageX-xi,Zt=$e.pageY-si,{left:Ci,bottom:_n,right:Xo}=B(),Ai=Xo-Ci;return ui>=Ci-Ai&&Zt<=_n+Ai}}function xo($e){if(n(Qi)){let ft=yi($e.currentTarget),si=z().height,xi=$e.pageY-ft;if(No($e)){N(jo,!1);return}xi<40?N(jo,!0):xi>si-40?N(Ro,!0):(N(jo,!1),f()||N(Ro,!1))}}function Gi($e){xo($e),!n(un)&&!I()&&vi(e.uiConfig.controls.hideTimeoutCursor),Z()&&Ri&&Ni&&e.store.actions.internal.moveCameraFocusPX(Ni.clientX-$e.clientX,Ni.clientY-$e.clientY,$e.timeStamp-Ni.timeStamp),Ni=$e}let ki=null,Yo=()=>{ki=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),$o()},e.uiConfig.doubleForwardActivationTime)},Oo=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),ki&&clearTimeout(ki),ki=null},wo=$e=>{$e.preventDefault(),$e.button===0&&(Ri=!0,e.store.actions.internal.holdCamera(),ae()&&Yo()),!Ri&&vi(e.uiConfig.controls.hideTimeoutCursor)},ji=$e=>{$e.preventDefault(),$e.button===0&&(Ni=$e,Ri=!1,e.store.actions.internal.releaseCamera()),!I()&&vi(e.uiConfig.controls.hideTimeoutCursor)},Or=$e=>{$e.preventDefault(),Fi&&(Jt({message:"double click on video"}),mr(),vi(e.uiConfig.controls.hideTimeoutCursor))},Gn=$e=>{var ft;if($e.preventDefault(),I()){Oo();return}if(ki&&Oo(),q()||f()){vn();return}if(!(E()&&!lr)){if(n(tt))return ri();if((ft=at())==null||ft.focus(),!bt()){e.firstStart(),vi(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||de()!==H0.PLAYING)&&e.store.actions.internal.togglePlay(),vi(e.uiConfig.controls.hideTimeoutCursor)}},jn=$e=>{vn(),co.set(!0),vi(e.uiConfig.controls.hideTimeout),$e&&Pn(e.uiConfig.controls.hideHotKeyHelpers,$e)},gr=()=>{var $e,ft;vn(),($e=e.store.callbacks)!=null&&$e.onOpenHotKeyMap?(ft=e.store.callbacks)==null||ft.onOpenHotKeyMap(X()):Vi.update(si=>!si)},fs=()=>{co.set(!0)},Dr=e.store.ui.contextMenu.openedByBtnKeyboard$,Jr=e.store.ui.contextMenu.btnRef$,Qe=Q(void 0),Yt=e.store.ui.contextMenu.openedByHotKey$,mi=e.store.ui.contextMenu.lastActiveElem$,gn=e.store.ui.previewTrackActive;ze(()=>{an.set(n(In))}),ze(()=>{N(fr,n(Pr)&&de()!==H0.PLAYING,!0),n(Pr)||kt(()=>N(Pr,!0))}),ze(()=>{var ft,si;let $e=(n(fr)||E()||f()||fe()||re()||le()||Me())&&!n(un)&&(s()==="video"||s()==="ads")&&!a()&&A();Qt.set($e),!$e&&!Me()&&e.uiConfig.returnFocusOnControlsHide&&((ft=n(Tn))!=null&&ft.contains(Pu()))&&((si=at())==null||si.focus())}),ze(()=>{!fe()&&n(Kn)&&!u()&&vi(e.uiConfig.controls.hideTimeoutCursor),kt(()=>N(Kn,fe(),!0))}),ze(()=>{n(dn),f(),we(),kt(()=>Pd(n(dn),f(),we()))}),ze(()=>{n(Qe),q(),te(),Ne(),kt(()=>{let $e=te()||Ne();Pd(n(Qe),q(),$e)})}),ze(()=>{let $e=ue();$e&&(q(),kt(()=>Il($e,q(),Dr)))}),ze(()=>{let $e=k();$e&&(q(),kt(()=>B1($e,q(),Yt)))}),ze(()=>{var $e;!Ke()&&x()&&(kt(()=>Ii.set(!1)),($e=at())==null||$e.focus())}),ze(()=>{w()&&vn()});let Do=j("video360"),Br=Q(void 0),Zo=$e=>{Un.set(Hn(ur(),{title:n(Br)},"title",$e))},Hr=($e,ft)=>{var Zt,Ci;let si=(Ci=(Zt=e.store.callbacks)==null?void 0:Zt.uiInfo)==null?void 0:Ci.onUpcomingLiveViewStateChanged;if(!si)return;let xi=!!ft,ui={...Hn(n(Qi),{upcomingLiveScreen:ft},"upcomingLiveScreen",xi),...$e};si(ui)};var Vs=lw();wt("blur",ga,vn);var Yi=pe(Vs);Yi.__mousemove=Gi;var Fr=_(Yi);let ea=m(()=>s()==="ads"),gt=m(()=>n(tt)?ri:void 0);st(Ff(Fr,{startDoubleForwardActivationTimer:Yo,stopDoubleForward:Oo,toggleFullscreen:mr,hideContextMenu:vn,showHotKeyHelpers:jn,showKeyMap:gr,get isAds(){return n(ea)},get fakePlayButtonHandler(){return n(gt)},get nextButtonActive(){return xe()},get prevButtonActive(){return ee()},children:($e,ft)=>{var si=sw(),xi=pe(si);qa(xi,{get hideCursor(){return n(Lr)},onClick:Gn,onContextMenu:mn,onMouseDown:wo,onMouseUp:ji,onDblClick:Or,get videoContainer(){return nt()},set videoContainer(Ci){nt(Ci)}});var ui=P(xi,2);xa(ui,()=>"slot",!1,(Ci,_n)=>{ke(Ci,()=>({name:Ka}))});var Zt=P(ui,2);xs(Zt,Ve,Ci=>{var _n=rw(),Xo=pe(_n);let Ai=m(()=>s()!=="thumb"||a()||Ao&&e.autoplay);Ua(Xo,{get hidden(){return n(Ai)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart},onContextMenu:mn,onClick:fn});var Qa=P(Xo,2);{var ta=Ue=>{km(Ue,{})};V(Qa,Ue=>{Y()&&Ue(ta)})}var ia=P(Qa,2);Tm(ia,{});var oa=P(ia,2);Im(oa,{get isVisible(){return I()}});var Yn=P(oa,2);{var vs=Ue=>{let hi=m(()=>{var no;return(no=e.live)==null?void 0:no.startTime});ac(Ue,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(hi)},onUpcomingLiveViewStateChanged:Hr,onContextMenu:mn,onClick:fn})};V(Yn,Ue=>{s()==="LiveWaitingStart"&&Ue(vs)})}var na=P(Yn,2);{var hr=Ue=>{za(Ue,{kind:"recover",get thumbUrl(){return e.thumbUrl},onContextMenu:mn,onClick:fn})};V(na,Ue=>{s()==="LiveWaitingRecover"&&Ue(hr)})}var Ga=P(na,2);{var ms=Ue=>{za(Ue,{kind:"record",get thumbUrl(){return e.thumbUrl},onContextMenu:mn,onClick:fn})};V(Ga,Ue=>{s()==="LiveWaitingRecord"&&Ue(ms)})}var gs=P(Ga,2);{var ja=Ue=>{var hi=tw();let no;var la=_(hi);Td(la,{get adsSlotId(){return Nt()},get adsParams(){return Wt()},get adsAutoplayParam(){return Ct()},get duration(){return Xt()},get adsExternalApi(){return e.adsExternalApi}}),g(hi),D(Jo=>no=ne(hi,1,"ads-container svelte-nqua3g",null,no,Jo),[()=>({hidden:s()!=="ads"})]),b(Ue,hi)};V(gs,Ue=>{e.showAds&&bt()&&Ue(ja)})}var ra=P(gs,2);{var zl=Ue=>{let hi=m(()=>!qe()&&e.showAutoplayNext&&C());Df(Ue,{get title(){return Ce()},get thumb(){return Pe()},get isHide(){return n(hi)},clickCloseIcon:()=>N(An,!0)})};V(ra,Ue=>{n(Wn)&&Ce()&&Pe()&&Ue(zl)})}var Ya=P(ra,2);{var Wl=Ue=>{let hi=m(()=>!p());im(Ue,{get title(){return e.title},get isHidden(){return n(hi)},onVisibilityChanged:Zo,get ref(){return n(Br)},set ref(no){N(Br,no,!0)}})};V(Ya,Ue=>{n(Mr)&&Ue(Wl)})}var Zn=P(Ya,2);{var Kl=Ue=>{let hi=m(()=>s()==="video"&&p());rc(Ue,{get isShifted(){return n(hi)}})};V(Zn,Ue=>{Z()&&Ue(Kl)})}var Za=P(Zn,2);{var Xa=Ue=>{var hi=iw(),no=_(hi);wd(no,{get"aria-label"(){return Do}}),g(hi),b(Ue,hi)};V(Za,Ue=>{oe()&&Ue(Xa)})}var sa=P(Za,2);{var ht=Ue=>{sc(Ue,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Be()}})};V(sa,Ue=>{le()&&Ue(ht)})}var _t=P(sa,2);{var Zi=Ue=>{Ha(Ue,{get shifted(){return p()},get captions(){return me()},get position(){return J()},get playerSize(){return z()}})};V(_t,Ue=>{Ye().value!=="off"&&Ue(Zi)})}var So=P(_t,2);{var Xi=Ue=>{var hi=ow();hi.__contextmenu=mn,hi.__click=[ew,q,je,f,St,vn];var no=_(hi);Fa(no,{}),g(hi),b(Ue,hi)};V(So,Ue=>{a()&&Ue(Xi)})}var gi=P(So,2);{var Ui=Ue=>{let hi=m(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),no=m(()=>s()==="ads"),la=m(()=>e.canRewindLive&&Ie()!==0);nc(Ue,{get bottomHidden(){return n(hi)},get bottomNoSmooth(){return H()},get showControls(){return p()},get isAds(){return n(no)},get canRewindLive(){return n(la)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ut()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Se()},get nextButtonActive(){return xe()},get prevButtonActive(){return ee()},get isOneVideoPlaylist(){return Tt()},customFullscreenSupported:Fi,toggleFullscreen:mr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return n(Ir)},set playerControlsWrapperRef(Jo){N(Ir,Jo,!0)},get playerControlsRef(){return n(Tn)},set playerControlsRef(Jo){N(Tn,Jo,!0)}})};V(gi,Ue=>{bt()&&Ue(Ui)})}var Rs=P(gi,2);{var ql=Ue=>{var hi=nw(),no=_(hi);let la=m(()=>{var Jo;return(Jo=n(Tn))==null?void 0:Jo.clientHeight});cc(no,{get supportLink(){return e.supportLink},get playerControlsHeight(){return n(la)},returnFocus:()=>{var Jo;return(Jo=at())==null?void 0:Jo.focus()},get ref(){return n(dn)},set ref(Jo){N(dn,Jo,!0)}}),g(hi),b(Ue,hi)};V(Rs,Ue=>{!le()&&s()!=="ads"&&Ue(ql)})}var Sc=P(Rs,2);let dp=m(()=>!n(vr));kd(Sc,{get isLive(){return ge()},get isHidden(){return n(dp)},get isPlaying(){return Fe()},get position(){return J()},get duration(){return Ie()}});var aa=P(Sc,2);Xv(aa,{get data(){return cn}});var Cc=P(aa,2);Of(Cc,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ue;return(Ue=at())==null?void 0:Ue.focus()},get visible(){return q()},get playerContainerRef(){return n(Qi)},get position(){return Ze()},get menuElementRef(){return n(Qe)},set menuElementRef(Ue){N(Qe,Ue,!0)}});var Ns=P(Cc,2);{var Ja=Ue=>{uc(Ue,{onClose:zn,onSelectAutoQuality:()=>{wr("auto"),zn()}})};V(Ns,Ue=>{n(kr)&&Ue(Ja)})}var Tc=P(Ns,2);{var Ec=Ue=>{Am(Ue,{})};V(Tc,Ue=>{Ge()&&Ue(Ec)})}var el=P(Tc,2);{var Ic=Ue=>{Ma(Ue,{})};V(el,Ue=>{n(Ar)&&Ue(Ic)})}var kc=P(el,2);{var Ac=Ue=>{Wf(Ue,{})};V(kc,Ue=>{dt()&&Ue(Ac)})}var cp=P(kc,2);{var up=Ue=>{Vd(Ue,{})};V(cp,Ue=>{Je()&&Ue(up)})}b(Ci,_n)}),b($e,si)},$$slots:{default:!0}}),$e=>at($e),()=>at());var ci=P(Fr,2);st(ci,$e=>N(In,$e),()=>n(In)),g(Yi),st(Yi,$e=>N(Qi,$e),()=>n(Qi));var go=P(Yi,2);{var hn=$e=>{var ft=aw();b($e,ft)};V(go,$e=>{Ot()&&$e(hn)})}wt("mouseenter",Yi,Nr),wt("mouseleave",Yi,At),wt("click",Yi,fs,!0),wt("focusin",Yi,et,!0),b(t,Vs),U(),o()}lt(["mousemove","contextmenu","click"]);import{clientChecker as fc,PlaybackState as bw}from"@vkontakte/videoplayer-core/es2018";import{noop as $w}from"@vkontakte/videoplayer-shared/es2018";var cw=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),uw=M("<div><!></div>"),pw={hash:"svelte-nhq2ld",code:`.double-click-area.svelte-nhq2ld {position:absolute;top:0;height:100%;width:25%;overflow:hidden;}.double-click-area.left.svelte-nhq2ld {left:0;}.double-click-area.right.svelte-nhq2ld {right:0;}.semicircle.svelte-nhq2ld {position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);}.semicircle.left.svelte-nhq2ld {left:0;border-top-right-radius:50%;border-bottom-right-radius:50%;}.semicircle.right.svelte-nhq2ld {right:0;border-top-left-radius:50%;border-bottom-left-radius:50%;}.info.svelte-nhq2ld {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center;}.triangles-wrapper.svelte-nhq2ld {position:relative;display:flex;margin-bottom:10px;justify-content:center;}.triangle.svelte-nhq2ld {width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;
348
359
  animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
349
360
  .triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
350
361
  .triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
@@ -360,7 +371,7 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},Jh=tb;var $
360
371
  100% {
361
372
  opacity: 0;
362
373
  }
363
- }.triangle.left.svelte-nhq2ld {border-right:8px solid var(--white);}.triangle.right.svelte-nhq2ld {border-left:8px solid var(--white);}.triangle.svelte-nhq2ld:not(:last-child) {margin-right:5px;}.step-caption.svelte-nhq2ld {margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white);}`};function Ru(t,e){U(e,!0),K(t,m5);let i=v(e,"seekStep",3,0),o=X(!1),n=0,s=0,l=X(Zt(i())),d=m=>{m.stopPropagation(),s+=1,O(l,i()*(s-1)),s===1?e.handleSingleFirstClick(m):(O(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{s=0,O(o,!1)},300)};Jo(()=>{window.clearTimeout(n)});var a=f5();a.__click=d;var p=_(a);{var f=m=>{var u=p5(),y=fe(u),w=A(y,2),x=_(w),T=_(x),C=A(T,2),E=A(C,2);h(x);var R=A(x,2),I=_(R,!0);h(R),h(w),D(k=>{var B,F,H,W;ne(y,1,`semicircle ${(B=e.side)!=null?B:""}`,"svelte-nhq2ld"),ne(T,1,`triangle ${(F=e.side)!=null?F:""}`,"svelte-nhq2ld"),ne(C,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),ne(E,1,`triangle ${(W=e.side)!=null?W:""}`,"svelte-nhq2ld"),ve(I,k)},[()=>q("doubletap_seek_step",{seconds:r(l).toFixed(0)})]),$(m,u)};V(p,m=>{r(o)&&m(f)})}h(a),D(()=>{var m;return ne(a,1,`double-click-area ${(m=e.side)!=null?m:""}`,"svelte-nhq2ld")}),$(t,a),z()}dt(["click"]);var v5=(t,e,i)=>{e(!1),i()},g5=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),h5={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 uv(t,e){U(e,!0),K(t,h5);let[i,o]=Be(),n=()=>S(d,"$autoplayNextEnabled$",i),s=()=>S(a,"$timerNextVideoRunning$",i),l=Ce(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,p=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,m=l.actions.internal.nextVideoAnnouncementClick,u=l.actions.internal.nextVideoAnnouncementAuto,y=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{p(!1),u()},x=()=>{e.clickCloseIcon(),y()};Pt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var T=Fe(),C=fe(T);{var E=R=>{var I=g5(),k=A(fe(I),2),B=_(k),F=_(B),H=_(F,!0);h(F);var W=A(F,2);va(W,{onClick:x}),h(B);var Y=A(B,2);Y.__click=[v5,p,m];var oe=_(Y),G=_(oe),he=_(G);let J;var pe=A(he,2);{var me=le=>{pd(le,{get isRunning(){return s()},onTimerEnded:w})};V(pe,le=>{n()&&le(me)})}h(G),h(oe);var ue=A(oe,2),Le=_(ue),Me=_(Le,!0);h(Le),h(ue),h(Y),h(k),D((le,Ne)=>{ve(H,le),at(G,`background-image: url('${e.thumb}')`),J=ne(he,1,"thumb-overlay svelte-1qdxi6t",null,J,Ne),ve(Me,e.title)},[()=>n()?q("end_screen_next_video"):q("end_screen_recommended_video"),()=>({withOpacity:n()})]),$(R,I)};V(C,R=>{e.isHide||R(E)})}$(t,T),z(),o()}dt(["click"]);import{clientChecker as _5}from"@vkontakte/videoplayer-core/es2018";var h0=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Pt(()=>{_5.device.isIOS&&(o=setTimeout(()=>{let s=t().querySelector("video");if(!s)return;let l=()=>e(!0),d=()=>e(!1);s.addEventListener("webkitbeginfullscreen",l),s.addEventListener("webkitendfullscreen",d),i=()=>{s.removeEventListener("webkitbeginfullscreen",l),s.removeEventListener("webkitendfullscreen",d)}},0))}),Jo(()=>{i==null||i(),clearTimeout(o)})};import{VideoFormat as b5}from"@vkontakte/videoplayer-core/es2018";var Nu=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 $5}from"@vkontakte/videoplayer-core/es2018";var _0=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:s,currentFormat$:l,availableTextTracks$:d}=t.state,a=null,p=()=>e().querySelector("video"),f=()=>$5.device.isIOS&&$e(l)===b5.DASH_LIVE_CMAF,m=()=>{a==null||a(),a=null},u=y=>{if(m(),!f()||!y)return;let w=p();if(!w)return;let x=new Nu(w),T=$e(d),C=$e(s),E=$e(n);for(let k of T)C.some(F=>F.value===k.id)&&x.attach(k,E.value===k.id);let R=d.subscribe(k=>{for(let B of k)x.updateSrc(B)}),I=()=>{let k=x.getCurrentShowingId();o($e(s).find(B=>B.value===k))};w.textTracks.addEventListener("change",I),a=()=>{R(),x.detachAll(),w.textTracks.removeEventListener("change",I)}};Pt(()=>i.subscribe(u)),Jo(m)};var w5=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},S5=M("<!> <!>",1),C5=M("<div><!></div>"),T5=M('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),E5=M("<div><!></div>"),I5=M('<div class="settings-mobile svelte-7yl31d"><!></div>'),k5=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),A5=M('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),P5={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 pv(t,e){var gr,xn;U(e,!0),K(t,P5);let[i,o]=Be(),n=()=>S(De,"$playerPhase",i),s=()=>S(co,"$isLoaderVisible",i),l=()=>S(Qe,"$adPlaybackState",i),d=()=>S(po,"$crashed",i),a=()=>S(Qr,"$notificationsToShow$",i),p=()=>S(de,"$playbackState$",i),f=()=>S(qt,"$graphIsOpened$",i),m=()=>S(bt,"$interactiveHideMobileControls",i),u=()=>S(uo,"$isEnded$",i),y=()=>S(ei,"$isInteractiveExpectation$",i),w=()=>S(Ze,"$controlsVisible",i),x=()=>S(ht,"$touched",i),T=()=>S(io,"$autoplayNextEnabled$",i),C=()=>S(ni,"$postrollPassed",i),E=()=>S(_n,"$bottomNoSmooth",i),R=()=>S(Li,"$videoSize",i),I=()=>S(N,"$playerSize",i),k=()=>S(be,"$isFullscreen",i),B=()=>S(Ue,"$position$",i),F=()=>S(ce,"$duration$",i),H=()=>S(vn,"$loadedMetadata",i),W=()=>S(Lt,"$settingsMenuVisible",i),Y=()=>S(Yt,"$scrubbingInProgress",i),oe=()=>S(gi,"$volumeChangingInProgress",i),G=()=>S(wt,"$chromecastConnected$",i),he=()=>S(At,"$isControlsAvailable",i),J=()=>S(ft,"$isInteractiveTime$",i),pe=()=>S(xi,"$isActiveLive",i),me=()=>S(vi,"$settingsMenuOpenedByKeyboard",i),ue=()=>S(Ee,"$language$",i),Le=()=>S(ci,"$disabledControls$",i),Me=()=>S(et,"$is3DVideo",i),le=()=>S(Ht,"$icon3DVideoVisible",i),Ne=()=>S(Jt,"$chromecastDeviceName$",i),re=()=>S(xo,"$currentSubtitle$",i),P=()=>S(wo,"$currentSubtitleCaptions$",i),ot=()=>S(on,"$realDuration$",i),Oe=()=>S(ze,"$isLive$",i),Q=()=>S(It,"$isPlaying$",i),te=()=>S(Ti,"$debugPanelVisible",i),Re=v(e,"videoContainer",15),Je=v(e,"adsSlotId",3,void 0),ye=v(e,"adsParams",3,void 0),ee=v(e,"adsAutoplayParam",3,void 0),Se=v(e,"duration",3,void 0),Te=v(e,"logoTargetUrl",3,""),Ke=v(e,"showNextPrevButtons",3,!1),tt=v(e,"nextButtonActive",3,!1),pt=v(e,"prevButtonActive",3,!1),lt=v(e,"endScreenVideoTitle",3,void 0),mt=v(e,"endScreenVideoThumb",3,void 0),it=v(e,"isOneVideoPlaylist",3,!1),Dt=v(e,"showMiniTimer",3,!1),Wt=v(e,"fullScreenTarget",3,void 0),Qt=v(e,"playerStarted",3,!1),Kt=v(e,"showEndScreen",3,!0),{notifications$:ke,graphIsOpened$:qt}=lo(),_e=e.store.getLogger().createComponentLog("Root component"),Ee=e.store.interfaceLanguage$,de=e.store.state.playbackState$,Qe=e.store.ads.playbackState,Ue=e.store.state.positionWithScrubbing$,ce=e.store.state.duration$,De=e.store.playerPhase,be=e.store.ui.isFullscreen,Ze=e.store.ui.controlsVisible,At=e.store.ui.isControlsAvailable,bt=e.store.ui.interactiveHideMobileControls,Lt=e.store.ui.settingsMenu.visible$,vi=e.store.ui.settingsMenu.openedByBtnKeyboard$,Yt=e.store.ui.scrubbingInProgress,gi=e.store.ui.volumeChangingInProgress,Ti=e.store.ui.debugPanelVisible,co=e.store.state.isLoaderVisible,uo=e.store.state.isEnded$,wt=e.store.state.chromecastConnected$,Jt=e.store.state.chromecastDeviceName$,ni=e.store.ads.postrollPassed,ze=e.store.state.isLive$,It=e.store.state.isPlaying$,xi=e.store.state.isActiveLive$,Wi=e.store.state.isRewindableLive$,po=e.store.state.crashed$,$t=e.store.webApi.annotationsApi,je=e.store.webApi.pictureInPictureApi,Li=e.store.state.videoSize$,xo=e.store.state.currentSubtitle$,wo=e.store.state.currentSubtitleCaptions$,on=e.store.state.duration$,N=e.store.ui.playerSize,et=e.store.ui.is3DVideo,Ht=e.store.ui.icon3DVideoVisible,Ut=e.store.state.isInteractive,ft=e.store.state.isInteractiveTime$,ei=e.store.state.isInteractiveExpectation$,hi=e.store.state.hasInteractiveBranches,ci=e.store.ui.controls.disabledControls$,ht=e.store.ui.touched,Ei=e.store.ui.overlayContainer$,io=e.store.ui.autoplayNextEnabled$,vn=e.store.state.loadedMetadata$,gn=e.store.actions.internal.closeSettingsMenu,li=(gr=e.store.callbacks)==null?void 0:gr.onDisabledPlayPrevChapterClick,oo=(xn=e.store.callbacks)==null?void 0:xn.onDisabledSeekToInteractiveClick,lr=e.store.actions.internal.setQuality,no=X(void 0),Yi=X(void 0),Rn=X(void 0),Wo=X(void 0),So,dr,Nn=g(()=>(n()==="video"&&s()||n()==="ads"&&l()==="inactive")&&!d()),cr=X(void 0),{closeNotification:cs,notificationsToShow$:Qr}=ke,hn=g(()=>!!a().slow_video),On=()=>cs("slow_video"),_n=se(!1),Ko,qo=X(!1),Bn=g(()=>p()!==y5.PLAYING),ur=X(!1),Gr=g(()=>f()||m()||!r(qo)&&(u()&&!!hi||r(Bn)&&y())),ro=X(!0),Er=g(()=>e.uiConfig.features.thumbTimer&&Dt()&&n()==="video"&&!w()&&!d()&&!Ut&&(e.uiConfig.hideThumbTimerAfterTouch&&!x()||!e.uiConfig.hideThumbTimerAfterTouch)),nn=X(!1),bn=g(()=>(Kt()||e.showAutoplayNext&&T())&&!!lt()&&!!mt()&&(e.showAds&&C()||!e.showAds)&&u()&&!d()&&!r(nn)),Dn=X(!1);je==null||je.setContext(Il());let pr=ut=>{ut&&!Ut&&fo(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:pr});let Fn=()=>{clearTimeout(So),O(qo,!1),m()&&bt.set(!1)},fo=ut=>{Fn(),O(qo,!0),So=setTimeout(()=>O(qo,!1),ut);let ii=ut-100;Ko=setTimeout(()=>{E()&&_n.set(!1)},ii>0?ii:ut)},jr=et.subscribe(ut=>{Ht.set(ut),ut&&(clearTimeout(dr),dr=setTimeout(()=>Ht.set(!1),e.uiConfig.controls.hide360IconTimeout))}),$n=async(ut=Fs())=>{var ii,Zi,mo,ui,Io,Xi;if(ut&&!Kd.device.isIOS){let pi=td(),wn=Co(),Qo=Kd.browser.isSamsungBrowser&&pi===e.shadowRootContainer;ut=pi===wn||Qo}if(ut){fo(e.uiConfig.controls.hideTimeoutFullscreen);try{await(je==null?void 0:je.exit())}catch(pi){_e({message:String(pi)})}try{let pi=(ii=R())!=null&&ii.width&&((Zi=R())!=null&&Zi.height)?R():I();await a1(pi)}catch(pi){_e({message:String(pi)})}}be.set(ut),e.store.getAdmanWrapper().setFullscreen(ut),k()?(ui=(mo=e.store.callbacks)==null?void 0:mo.onFullscreenEnter)==null||ui.call(mo):(Xi=(Io=e.store.callbacks)==null?void 0:Io.onFullscreenExit)==null||Xi.call(Io)},ct=ut=>{let ii=ut,{width:Zi,height:mo}=ii.target;N.set({width:Zi,height:mo})},ri=()=>{let{width:ut,height:ii}=r(no).getBoundingClientRect();N.set({width:ut,height:ii})};Pt(()=>{var ut;return nu($n),e.uiConfig.features.annotationsInside&&($t==null||$t.init(r(no))),pa(je)&&(je==null||je.assignPlayerContainer(r(no)),je==null||je.setExternalEventHandlers({resize:ct,leavepictureinpicture:ri})),O(ro,!Kd.device.isIphoneOrOldIpad),e.interactiveContainer&&((ut=Re().parentElement)==null||ut.insertBefore(e.interactiveContainer,Re().nextSibling)),()=>{clearTimeout(So),clearTimeout(Ko),clearTimeout(dr),jr(),je==null||je.dispose().catch(ii=>{_e({message:String(ii)})}),ru($n)}});let rn=X(!0),yn=X(!0),Ir=ut=>{let ii=B()+(ut==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;ii<0?(O(rn,!1),ii=0):ii>=F()&&(O(yn,!1),ii=F()),O(ur,!0),e.seekTime(ii)},Co=()=>Kd.device.isIOS?r(no):!e.uiConfig.allowChangingFullscreenTarget||!Wt()?e.outerContainerRef:Wt().contains(e.outerContainerRef)?Wt():e.outerContainerRef,sn=async()=>{try{if(Fs())await ou(document),_e({message:"exit fullscreen"});else{if(_e({message:"request fullscreen"}),Kd.device.isIOS&&!H())return;await iu(Co())}}catch(ut){_e({message:String(ut)})}},di=()=>{gn()},Ii=ut=>{if(ut.preventDefault(),W()){di();return}if(!Qt()){e.firstStart(),fo(e.uiConfig.controls.hideTimeoutCursor);return}O(ur,!1),w()?Fn():fo(e.uiConfig.controls.hideTimeoutMobile)},To=()=>{ht.set(!0)},Hn=()=>{Ut||(_n.set(!0),fo(e.uiConfig.controls.hideTimeoutCursor))},fr=ut=>{li&&(li(ut),fo(e.uiConfig.controls.hideTimeoutMobile))},kr=ut=>{oo&&(oo(ut),fo(e.uiConfig.controls.hideTimeoutMobile))};qe(()=>{Ei.set(r(cr))}),qe(()=>{Ze.set((r(Bn)||W()||Y()||oe()||G()||!r(bn)&&(u()||r(qo)&&!r(ur)))&&!r(Gr)&&n()==="video"&&!d()&&he())}),qe(()=>{!Y()&&r(Dn)&&!J()&&fo(e.uiConfig.controls.hideTimeoutMobile),O(Dn,Y(),!0)}),qe(()=>{O(rn,B()>0),O(yn,!pe()&&B()<F(),!0)}),qe(()=>{ld(r(Wo),W(),me(),!0)});let mr=q("aria_label_video_player"),Un=q("video360");h0({fullScreenChangeHandler:$n,getFullscreenTarget:Co}),_0({store:e.store,getFullscreenTarget:Co});let zn=(ut,ii)=>{var Io,Xi;let Zi=(Xi=(Io=e.store.callbacks)==null?void 0:Io.uiInfo)==null?void 0:Xi.onUpcomingLiveViewStateChanged;if(!Zi)return;let mo=!!ii,ui={...Mn(r(no),{upcomingLiveScreen:ii},"upcomingLiveScreen",mo),...ut};Zi(ui)};var Eo=A5();Ct("blur",ea,di);var Wn=_(Eo);Pa(Wn,{onClick:Ii,get videoContainer(){return Re()},set videoContainer(ut){Re(ut)}});var vr=A(Wn,2);sa(vr,()=>"slot",!1,(ut,ii)=>{Ie(ut,()=>({name:Aa}))});var ti=A(vr,2);gs(ti,ue,ut=>{var ii=k5(),Zi=fe(ii);let mo=g(()=>n()!=="thumb"||d()||Ut&&e.autoplay);Ea(Zi,{get hidden(){return r(mo)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var ui=A(Zi,2);{var Io=We=>{var zt=S5(),bi=fe(zt);{var ln=Ro=>{let jn=g(()=>e.uiConfig.controls.seekStepMobile/1e3);Ru(Ro,{side:"left",get seekStep(){return r(jn)},handleSingleFirstClick:Ii,handleSecondClick:()=>Ir("backward")})};V(bi,Ro=>{r(rn)&&Ro(ln)})}var Mo=A(bi,2);{var Vo=Ro=>{let jn=g(()=>e.uiConfig.controls.seekStepMobile/1e3);Ru(Ro,{side:"right",get seekStep(){return r(jn)},handleSingleFirstClick:Ii,handleSecondClick:()=>Ir("forward")})};V(Mo,Ro=>{r(yn)&&Ro(Vo)})}$(We,zt)};V(ui,We=>{e.canRewindLive&&Wi&&!Le().has("TIMELINE")&&We(Io)})}var Xi=A(ui,2);{var pi=We=>{let zt=g(()=>{var bi;return(bi=e.live)==null?void 0:bi.startTime});Dd(We,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(zt)},onUpcomingLiveViewStateChanged:zn})};V(Xi,We=>{n()==="LiveWaitingStart"&&We(pi)})}var wn=A(Xi,2);{var Qo=We=>{Ia(We,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(wn,We=>{n()==="LiveWaitingRecover"&&We(Qo)})}var hr=A(wn,2);{var Ar=We=>{Ia(We,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(hr,We=>{n()==="LiveWaitingRecord"&&We(Ar)})}var Go=A(hr,2);{var Pr=We=>{var zt=C5();let bi;var ln=_(zt);od(ln,{get adsSlotId(){return Je()},get adsParams(){return ye()},get adsAutoplayParam(){return ee()},get duration(){return Se()},get adsExternalApi(){return e.adsExternalApi}}),h(zt),D(Mo=>bi=ne(zt,1,"ads-container svelte-7yl31d",null,bi,Mo),[()=>({hidden:n()!=="ads"})]),$(We,zt)};V(Go,We=>{e.showAds&&Qt()&&We(Pr)})}var Lr=A(Go,2);{var ko=We=>{let zt=g(()=>!Kt()&&e.showAutoplayNext&&T());uv(We,{get title(){return lt()},get thumb(){return mt()},get isHide(){return r(zt)},clickCloseIcon:()=>O(nn,!0)})};V(Lr,We=>{r(bn)&&lt()&&mt()&&We(ko)})}var Kn=A(Lr,2);{var Mr=We=>{Od(We,{})};V(Kn,We=>{Me()&&We(Mr)})}var qn=A(Kn,2);{var rt=We=>{var zt=T5(),bi=_(zt);ed(bi,{get"aria-label"(){return Un}}),h(zt),$(We,zt)};V(qn,We=>{le()&&We(rt)})}var kt=A(qn,2);{var _i=We=>{Bd(We,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Ne()}})};V(kt,We=>{G()&&We(_i)})}var so=A(kt,2);{var Mi=We=>{Ca(We,{get shifted(){return w()},get captions(){return P()},get position(){return B()},get playerSize(){return I()},isMobile:!0})};V(so,We=>{re().value!=="off"&&We(Mi)})}var Ki=A(so,2);{var Vi=We=>{var zt=E5();zt.__click=[w5,W,Lt,di];var bi=_(zt);Ta(bi,{}),h(zt),$(We,zt)};V(Ki,We=>{d()&&We(Vi)})}var vo=A(Ki,2);{var Sn=We=>{let zt=g(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),bi=g(()=>n()==="ads"),ln=g(()=>e.canRewindLive&&ot()!==0);Nd(We,{get bottomHidden(){return r(zt)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return r(bi)},get canRewindLive(){return r(ln)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Te()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Ke()},get nextButtonActive(){return tt()},get prevButtonActive(){return pt()},get isOneVideoPlaylist(){return it()},get customFullscreenSupported(){return r(ro)},get endScreenShown(){return r(bn)},toggleFullscreen:sn,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:fr,onDisabledSeekToInteractiveClick:kr,get playerControlsWrapperRef(){return r(Yi)},set playerControlsWrapperRef(Mo){O(Yi,Mo,!0)},get playerControlsRef(){return r(Rn)},set playerControlsRef(Mo){O(Rn,Mo,!0)}})};V(vo,We=>{Qt()&&We(Sn)})}var Ao=A(vo,2);{var Po=We=>{var zt=I5(),bi=_(zt);Ud(bi,{get supportLink(){return e.supportLink},get returnFocus(){return x5},get ref(){return r(Wo)},set ref(ln){O(Wo,ln,!0)}}),h(zt),$(We,zt)};V(Ao,We=>{W()&&We(Po)})}var Lo=A(Ao,2);let Qn=g(()=>!r(Er));sd(Lo,{get isLive(){return Oe()},get isHidden(){return r(Qn)},get isPlaying(){return Q()},get position(){return B()},get duration(){return F()}});var Cn=A(Lo,2);{var _r=We=>{ha(We,{})};V(Cn,We=>{r(Nn)&&We(_r)})}var br=A(Cn,2);{var Gn=We=>{ud(We,{})};V(br,We=>{te()&&We(Gn)})}var Vr=A(br,2);{var Yr=We=>{zd(We,{onClose:On,onSelectAutoQuality:()=>{lr("auto"),On()}})};V(Vr,We=>{r(hn)&&We(Yr)})}$(ut,ii)});var an=A(ti,2);st(an,ut=>O(cr,ut),()=>r(cr)),h(Eo),st(Eo,ut=>O(no,ut),()=>r(no)),D(()=>He(Eo,"aria-label",mr)),Ct("click",Eo,To,!0),Ct("focusin",Eo,Hn,!0),$(t,Eo),z(),o()}dt(["click"]);function Ou(t){let e="";return ji(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),ji(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),ji(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),ji(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),ji(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),ji(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),ji(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),ji(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),ji(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),ji(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),ji(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),ji(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),ji(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),ji(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),ji(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),ji(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),ji(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),ji(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),ji(t.font)&&(e+=`--font:${t.font};`),ji(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),ji(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function ji(t){return typeof t=="string"&&!t.includes(";")}import{debounceFn as L5}from"@vkontakte/videoplayer-shared/es2018";var M5=M('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),V5={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 fv(t,e){U(e,!0),K(t,V5);let[i,o]=Be(),n=()=>S(oe,"$playerSize",i),s=()=>S(k,"$isPlaying$",i),l=()=>S(R,"$duration$",i),d=()=>S(H,"$positionWithScrubbing$",i),a=()=>S(C,"$playerPhase",i),p=()=>S(E,"$crashed$",i),f=()=>S(B,"$currentSubtitle$",i),m=()=>S(F,"$currentSubtitleCaptions$",i),u=()=>S(I,"$positionExact$",i),y=()=>S(W,"$isLive$",i),w=()=>S(Y,"$isRewindableLive$",i),x=v(e,"outsideDuration",3,0),T=v(e,"videoContainer",15),{playerPhase:C,state:{crashed$:E,duration$:R,positionExact$:I,isPlaying$:k,currentSubtitle$:B,currentSubtitleCaptions$:F,positionWithScrubbing$:H,isLive$:W,isRewindableLive$:Y},ui:{playerSize:oe,controls:G},actions:{internal:{getVideoElement:he}}}=Ce(),J=8,pe=X(!1),me=Zt({}),ue=()=>{O(pe,!0)},Le=()=>{O(pe,!1)},Me=L5(fl,260);qe(()=>{n(),Me(he(),G,me,r(pe))});let le=g(()=>s()?mn(l()-d()):mn(isFinite(l())?l():x()));var Ne=M5(),re=_(Ne);Pa(re,{hideCursor:!1,get videoContainer(){return T()},set videoContainer(Te){T(Te)}});var P=A(re,2);sa(P,()=>"slot",!1,(Te,Ke)=>{Ie(Te,()=>({name:Aa}))});var ot=A(P,2);let Oe=g(()=>a()!=="thumb"||p());Ea(ot,{get hidden(){return r(Oe)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var Q=A(ot,2);{var te=Te=>{Ca(Te,{shifted:!1,get captions(){return m()},get position(){return u()},get playerSize(){return n()}})};V(Q,Te=>{f().value!=="off"&&Te(te)})}var Re=A(Q,2),Je=_(Re);rd(Je,{get isLive(){return y()},get isPlaying(){return s()},get time(){return r(le)}}),h(Re);var ye=A(Re,2);let ee;var Se=_(ye);$a(Se,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:J,tooltipRightOffset:J,get ref(){return me.timeline},set ref(Te){me.timeline=Te}}),h(ye),h(Ne),D(Te=>ee=ne(ye,1,"timeline svelte-1qfjf44",null,ee,Te),[()=>({visible:r(pe)})]),Ct("mouseenter",Ne,ue),Ct("mouseleave",Ne,Le),$(t,Ne),z(),o()}var D5=M("<div><!></div>"),F5={hash:"svelte-78n29",code:`.vk-vp-root.svelte-78n29 {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--controls-desktop-padding-horizontal: 4px;--focused: var(--white);--focused-outline-width: 2px;--focused-outline-radius: 0;--focused-element-shadow: inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
374
+ }.triangle.left.svelte-nhq2ld {border-right:8px solid var(--white);}.triangle.right.svelte-nhq2ld {border-left:8px solid var(--white);}.triangle.svelte-nhq2ld:not(:last-child) {margin-right:5px;}.step-caption.svelte-nhq2ld {margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white);}`};function Ju(t,e){F(e,!0),W(t,pw);let i=h(e,"seekStep",3,0),o=Q(!1),r=0,s=0,l=Q(ai(i())),d=v=>{v.stopPropagation(),s+=1,N(l,i()*(s-1)),s===1?e.handleSingleFirstClick(v):(N(o,!0),e.handleSecondClick()),window.clearTimeout(r),r=window.setTimeout(()=>{s=0,N(o,!1)},300)};on(()=>{window.clearTimeout(r)});var a=uw();a.__click=d;var u=_(a);{var f=v=>{var p=cw(),y=pe(p),w=P(y,2),x=_(w),C=_(x),T=P(C,2),E=P(T,2);g(x);var R=P(x,2),A=_(R,!0);g(R),g(w),D(I=>{var O,H,B,z;ne(y,1,`semicircle ${(O=e.side)!=null?O:""}`,"svelte-nhq2ld"),ne(C,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),ne(T,1,`triangle ${(B=e.side)!=null?B:""}`,"svelte-nhq2ld"),ne(E,1,`triangle ${(z=e.side)!=null?z:""}`,"svelte-nhq2ld"),ve(A,I)},[()=>j("doubletap_seek_step",{seconds:n(l).toFixed(0)})]),b(v,p)};V(u,v=>{n(o)&&v(f)})}g(a),D(()=>{var v;return ne(a,1,`double-click-area ${(v=e.side)!=null?v:""}`,"svelte-nhq2ld")}),b(t,a),U()}lt(["click"]);var fw=(t,e,i)=>{e(!1),i()},vw=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),mw={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 Mm(t,e){F(e,!0),W(t,mw);let[i,o]=De(),r=()=>S(d,"$autoplayNextEnabled$",i),s=()=>S(a,"$timerNextVideoRunning$",i),l=he(),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,y=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{u(!1),p()},x=()=>{e.clickCloseIcon(),y()};Rt(()=>{e.isHide||f(),e.isHide&&r()&&(u(!1),p())});var C=He(),T=pe(C);{var E=R=>{var A=vw(),I=P(pe(A),2),O=_(I),H=_(O),B=_(H,!0);g(H);var z=P(H,2);Es(z,{onClick:x}),g(O);var Z=P(O,2);Z.__click=[fw,u,v];var ae=_(Z),q=_(ae),de=_(q);let X;var fe=P(de,2);{var re=te=>{Rd(te,{get isRunning(){return s()},onTimerEnded:w})};V(fe,te=>{r()&&te(re)})}g(q),g(ae);var le=P(ae,2),Me=_(le),we=_(Me,!0);g(Me),g(le),g(Z),g(I),D((te,Ne)=>{ve(B,te),Xe(q,`background-image: url('${e.thumb}')`),X=ne(de,1,"thumb-overlay svelte-1qdxi6t",null,X,Ne),ve(we,e.title)},[()=>r()?j("end_screen_next_video"):j("end_screen_recommended_video"),()=>({withOpacity:r()})]),b(R,A)};V(T,R=>{e.isHide||R(E)})}b(t,C),U(),o()}lt(["click"]);import{clientChecker as gw}from"@vkontakte/videoplayer-core/es2018";var F0=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Rt(()=>{gw.device.isIOS&&(o=setTimeout(()=>{let s=t().querySelector("video");if(!s)return;let l=()=>e(!0),d=()=>e(!1);s.addEventListener("webkitbeginfullscreen",l),s.addEventListener("webkitendfullscreen",d),i=()=>{s.removeEventListener("webkitbeginfullscreen",l),s.removeEventListener("webkitendfullscreen",d)}},0))}),on(()=>{i==null||i(),clearTimeout(o)})};import{VideoFormat as hw}from"@vkontakte/videoplayer-core/es2018";var ep=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 _w}from"@vkontakte/videoplayer-core/es2018";var U0=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:r,availableSubtitlesList$:s,currentFormat$:l,availableTextTracks$:d}=t.state,a=null,u=()=>e().querySelector("video"),f=()=>_w.device.isIOS&&be(l)===hw.DASH_LIVE_CMAF,v=()=>{a==null||a(),a=null},p=y=>{if(v(),!f()||!y)return;let w=u();if(!w)return;let x=new ep(w),C=be(d),T=be(s),E=be(r);for(let I of C)T.some(H=>H.value===I.id)&&x.attach(I,E.value===I.id);let R=d.subscribe(I=>{for(let O of I)x.updateSrc(O)}),A=()=>{let I=x.getCurrentShowingId();o(be(s).find(O=>O.value===I))};w.textTracks.addEventListener("change",A),a=()=>{R(),x.detachAll(),w.textTracks.removeEventListener("change",A)}};Rt(()=>i.subscribe(p)),on(v)};var yw=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},xw=M("<!> <!>",1),ww=M("<div><!></div>"),Sw=M('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),Cw=M("<div><!></div>"),Tw=M('<div class="settings-mobile svelte-7yl31d"><!></div>'),Ew=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Iw=M('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),kw={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 Lm(t,e){var Lr,Kn;F(e,!0),W(t,kw);let[i,o]=De(),r=()=>S(Oe,"$playerPhase",i),s=()=>S(bi,"$isLoaderVisible",i),l=()=>S(Ce,"$adPlaybackState",i),d=()=>S(Gt,"$crashed",i),a=()=>S(ps,"$notificationsToShow$",i),u=()=>S(ee,"$playbackState$",i),f=()=>S(Ut,"$graphIsOpened$",i),v=()=>S(it,"$interactiveHideMobileControls",i),p=()=>S(io,"$isEnded$",i),y=()=>S(pt,"$isInteractiveExpectation$",i),w=()=>S(bt,"$controlsVisible",i),x=()=>S(ut,"$touched",i),C=()=>S(Bi,"$autoplayNextEnabled$",i),T=()=>S(vt,"$postrollPassed",i),E=()=>S(Un,"$bottomNoSmooth",i),R=()=>S($i,"$videoSize",i),A=()=>S(Et,"$playerSize",i),I=()=>S(ct,"$isFullscreen",i),O=()=>S(Pe,"$position$",i),H=()=>S(Tt,"$duration$",i),B=()=>S(Go,"$loadedMetadata",i),z=()=>S(qe,"$settingsMenuVisible",i),Z=()=>S(Jt,"$scrubbingInProgress",i),ae=()=>S(ni,"$volumeChangingInProgress",i),q=()=>S(lo,"$chromecastConnected$",i),de=()=>S(ye,"$isControlsAvailable",i),X=()=>S(ei,"$isInteractiveTime$",i),fe=()=>S(St,"$isActiveLive",i),re=()=>S(at,"$settingsMenuOpenedByKeyboard",i),le=()=>S(xe,"$language$",i),Me=()=>S(qt,"$disabledControls$",i),we=()=>S(Dt,"$is3DVideo",i),te=()=>S(K,"$icon3DVideoVisible",i),Ne=()=>S(di,"$chromecastDeviceName$",i),ue=()=>S(_o,"$currentSubtitle$",i),k=()=>S(Qo,"$currentSubtitleCaptions$",i),Ke=()=>S(sn,"$realDuration$",i),Ve=()=>S(Ii,"$isLive$",i),Y=()=>S(Qt,"$isPlaying$",i),oe=()=>S(fi,"$debugPanelVisible",i),Be=h(e,"videoContainer",15),Ye=h(e,"adsSlotId",3,void 0),me=h(e,"adsParams",3,void 0),J=h(e,"adsAutoplayParam",3,void 0),Ie=h(e,"duration",3,void 0),ge=h(e,"logoTargetUrl",3,""),Fe=h(e,"showNextPrevButtons",3,!1),Ze=h(e,"nextButtonActive",3,!1),Ge=h(e,"prevButtonActive",3,!1),dt=h(e,"endScreenVideoTitle",3,void 0),Je=h(e,"endScreenVideoThumb",3,void 0),Ot=h(e,"isOneVideoPlaylist",3,!1),nt=h(e,"showMiniTimer",3,!1),Nt=h(e,"fullScreenTarget",3,void 0),Wt=h(e,"playerStarted",3,!1),Ct=h(e,"showEndScreen",3,!0),{notifications$:Xt,graphIsOpened$:Ut}=ho(),Se=e.store.getLogger().createComponentLog("Root component"),xe=e.store.interfaceLanguage$,ee=e.store.state.playbackState$,Ce=e.store.ads.playbackState,Pe=e.store.state.positionWithScrubbing$,Tt=e.store.state.duration$,Oe=e.store.playerPhase,ct=e.store.ui.isFullscreen,bt=e.store.ui.controlsVisible,ye=e.store.ui.isControlsAvailable,it=e.store.ui.interactiveHideMobileControls,qe=e.store.ui.settingsMenu.visible$,at=e.store.ui.settingsMenu.openedByBtnKeyboard$,Jt=e.store.ui.scrubbingInProgress,ni=e.store.ui.volumeChangingInProgress,fi=e.store.ui.debugPanelVisible,bi=e.store.state.isLoaderVisible,io=e.store.state.isEnded$,lo=e.store.state.chromecastConnected$,di=e.store.state.chromecastDeviceName$,vt=e.store.ads.postrollPassed,Ii=e.store.state.isLive$,Qt=e.store.state.isPlaying$,St=e.store.state.isActiveLive$,ti=e.store.state.isRewindableLive$,Gt=e.store.state.crashed$,xt=e.store.webApi.annotationsApi,je=e.store.webApi.pictureInPictureApi,$i=e.store.state.videoSize$,_o=e.store.state.currentSubtitle$,Qo=e.store.state.currentSubtitleCaptions$,sn=e.store.state.duration$,Et=e.store.ui.playerSize,Dt=e.store.ui.is3DVideo,K=e.store.ui.icon3DVideoVisible,Mt=e.store.state.isInteractive,ei=e.store.state.isInteractiveTime$,pt=e.store.state.isInteractiveExpectation$,It=e.store.state.hasInteractiveBranches,qt=e.store.ui.controls.disabledControls$,ut=e.store.ui.touched,Li=e.store.ui.overlayContainer$,Bi=e.store.ui.autoplayNextEnabled$,Go=e.store.state.loadedMetadata$,Ao=e.store.actions.internal.closeSettingsMenu,oo=(Lr=e.store.callbacks)==null?void 0:Lr.onDisabledPlayPrevChapterClick,Hi=(Kn=e.store.callbacks)==null?void 0:Kn.onDisabledSeekToInteractiveClick,lr=e.store.actions.internal.setQuality,co=Q(void 0),uo=Q(void 0),Vi=Q(void 0),an=Q(void 0),Po,dr,cr=m(()=>(r()==="video"&&s()||r()==="ads"&&l()==="inactive")&&!d()),wr=Q(void 0),{closeNotification:Zr,notificationsToShow$:ps}=Xt,Xr=m(()=>!!a().slow_video),bo=()=>Zr("slow_video"),Un=se(!1),Mo,ln=Q(!1),Cn=m(()=>u()!==bw.PLAYING),ur=Q(!1),Sr=m(()=>f()||v()||!n(ln)&&(p()&&!!It||n(Cn)&&y())),Cr=Q(!0),Tr=m(()=>e.uiConfig.features.thumbTimer&&nt()&&r()==="video"&&!w()&&!d()&&!Mt&&(e.uiConfig.hideThumbTimerAfterTouch&&!x()||!e.uiConfig.hideThumbTimerAfterTouch)),Er=Q(!1),Qi=m(()=>(Ct()||e.showAutoplayNext&&C())&&!!dt()&&!!Je()&&(e.showAds&&T()||!e.showAds)&&p()&&!d()&&!n(Er)),Ir=Q(!1);je==null||je.setContext(Zl());let Tn=tt=>{tt&&!Mt&&po(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:Tn});let dn=()=>{clearTimeout(Po),N(ln,!1),v()&&it.set(!1)},po=tt=>{dn(),N(ln,!0),Po=setTimeout(()=>N(ln,!1),tt);let ri=tt-100;Mo=setTimeout(()=>{E()&&Un.set(!1)},ri>0?ri:tt)},pr=Dt.subscribe(tt=>{K.set(tt),tt&&(clearTimeout(dr),dr=setTimeout(()=>K.set(!1),e.uiConfig.controls.hide360IconTimeout))}),En=async(tt=Qs())=>{var ri,Ri,Ni,pn,$o,yo;if(tt&&!fc.device.isIOS){let vi=Sd(),Pn=In(),vo=fc.browser.isSamsungBrowser&&vi===e.shadowRootContainer;tt=vi===Pn||vo}if(tt){po(e.uiConfig.controls.hideTimeoutFullscreen);try{await(je==null?void 0:je.exit())}catch(vi){Se({message:String(vi)})}try{let vi=(ri=R())!=null&&ri.width&&((Ri=R())!=null&&Ri.height)?R():A();await A1(vi)}catch(vi){Se({message:String(vi)})}}ct.set(tt),e.store.getAdmanWrapper().setFullscreen(tt),I()?(pn=(Ni=e.store.callbacks)==null?void 0:Ni.onFullscreenEnter)==null||pn.call(Ni):(yo=($o=e.store.callbacks)==null?void 0:$o.onFullscreenExit)==null||yo.call($o)},mt=tt=>{let ri=tt,{width:Ri,height:Ni}=ri.target;Et.set({width:Ri,height:Ni})},pi=()=>{let{width:tt,height:ri}=n(co).getBoundingClientRect();Et.set({width:tt,height:ri})};Rt(()=>{var tt;return wu(En),e.uiConfig.features.annotationsInside&&(xt==null||xt.init(n(co))),Ia(je)&&(je==null||je.assignPlayerContainer(n(co)),je==null||je.setExternalEventHandlers({resize:mt,leavepictureinpicture:pi})),N(Cr,!fc.device.isIphoneOrOldIpad),e.interactiveContainer&&((tt=Be().parentElement)==null||tt.insertBefore(e.interactiveContainer,Be().nextSibling)),()=>{clearTimeout(Po),clearTimeout(Mo),clearTimeout(dr),pr(),je==null||je.dispose().catch(ri=>{Se({message:String(ri)})}),Su(En)}});let kr=Q(!0),zn=Q(!0),Ar=tt=>{let ri=O()+(tt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;ri<0?(N(kr,!1),ri=0):ri>=H()&&(N(zn,!1),ri=H()),N(ur,!0),e.seekTime(ri)},In=()=>fc.device.isIOS?n(co):!e.uiConfig.allowChangingFullscreenTarget||!Nt()?e.outerContainerRef:Nt().contains(e.outerContainerRef)?Nt():e.outerContainerRef,kn=async()=>{try{if(Qs())await xu(document),Se({message:"exit fullscreen"});else{if(Se({message:"request fullscreen"}),fc.device.isIOS&&!B())return;await yu(In())}}catch(tt){Se({message:String(tt)})}},Lo=()=>{Ao()},Vo=tt=>{if(tt.preventDefault(),z()){Lo();return}if(!Wt()){e.firstStart(),po(e.uiConfig.controls.hideTimeoutCursor);return}N(ur,!1),w()?dn():po(e.uiConfig.controls.hideTimeoutMobile)},cn=()=>{ut.set(!0)},fo=()=>{Mt||(Un.set(!0),po(e.uiConfig.controls.hideTimeoutCursor))},Ro=tt=>{oo&&(oo(tt),po(e.uiConfig.controls.hideTimeoutMobile))},jo=tt=>{Hi&&(Hi(tt),po(e.uiConfig.controls.hideTimeoutMobile))};ze(()=>{Li.set(n(wr))}),ze(()=>{bt.set((n(Cn)||z()||Z()||ae()||q()||!n(Qi)&&(p()||n(ln)&&!n(ur)))&&!n(Sr)&&r()==="video"&&!d()&&de())}),ze(()=>{!Z()&&n(Ir)&&!X()&&po(e.uiConfig.controls.hideTimeoutMobile),N(Ir,Z(),!0)}),ze(()=>{N(kr,O()>0),N(zn,!fe()&&O()<H(),!0)}),ze(()=>{Pd(n(an),z(),re(),!0)});let fr=j("aria_label_video_player"),Pr=j("video360");F0({fullScreenChangeHandler:En,getFullscreenTarget:In}),U0({store:e.store,getFullscreenTarget:In});let un=(tt,ri)=>{var $o,yo;let Ri=(yo=($o=e.store.callbacks)==null?void 0:$o.uiInfo)==null?void 0:yo.onUpcomingLiveViewStateChanged;if(!Ri)return;let Ni=!!ri,pn={...Hn(n(co),{upcomingLiveScreen:ri},"upcomingLiveScreen",Ni),...tt};Ri(pn)};var Fi=Iw();wt("blur",ga,Lo);var vr=_(Fi);qa(vr,{onClick:Vo,get videoContainer(){return Be()},set videoContainer(tt){Be(tt)}});var Mr=P(vr,2);xa(Mr,()=>"slot",!1,(tt,ri)=>{ke(tt,()=>({name:Ka}))});var An=P(Mr,2);xs(An,le,tt=>{var ri=Ew(),Ri=pe(ri);let Ni=m(()=>r()!=="thumb"||d()||Mt&&e.autoplay);Ua(Ri,{get hidden(){return n(Ni)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var pn=P(Ri,2);{var $o=Qe=>{var Yt=xw(),mi=pe(Yt);{var gn=Zo=>{let Hr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);Ju(Zo,{side:"left",get seekStep(){return n(Hr)},handleSingleFirstClick:Vo,handleSecondClick:()=>Ar("backward")})};V(mi,Zo=>{n(kr)&&Zo(gn)})}var Do=P(mi,2);{var Br=Zo=>{let Hr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);Ju(Zo,{side:"right",get seekStep(){return n(Hr)},handleSingleFirstClick:Vo,handleSecondClick:()=>Ar("forward")})};V(Do,Zo=>{n(zn)&&Zo(Br)})}b(Qe,Yt)};V(pn,Qe=>{e.canRewindLive&&ti&&!Me().has("TIMELINE")&&Qe($o)})}var yo=P(pn,2);{var vi=Qe=>{let Yt=m(()=>{var mi;return(mi=e.live)==null?void 0:mi.startTime});ac(Qe,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(Yt)},onUpcomingLiveViewStateChanged:un})};V(yo,Qe=>{r()==="LiveWaitingStart"&&Qe(vi)})}var Pn=P(yo,2);{var vo=Qe=>{za(Qe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(Pn,Qe=>{r()==="LiveWaitingRecover"&&Qe(vo)})}var qn=P(Pn,2);{var Qn=Qe=>{za(Qe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(qn,Qe=>{r()==="LiveWaitingRecord"&&Qe(Qn)})}var Vr=P(qn,2);{var Rr=Qe=>{var Yt=ww();let mi;var gn=_(Yt);Td(gn,{get adsSlotId(){return Ye()},get adsParams(){return me()},get adsAutoplayParam(){return J()},get duration(){return Ie()},get adsExternalApi(){return e.adsExternalApi}}),g(Yt),D(Do=>mi=ne(Yt,1,"ads-container svelte-7yl31d",null,mi,Do),[()=>({hidden:r()!=="ads"})]),b(Qe,Yt)};V(Vr,Qe=>{e.showAds&&Wt()&&Qe(Rr)})}var fn=P(Vr,2);{var vn=Qe=>{let Yt=m(()=>!Ct()&&e.showAutoplayNext&&C());Mm(Qe,{get title(){return dt()},get thumb(){return Je()},get isHide(){return n(Yt)},clickCloseIcon:()=>N(Er,!0)})};V(fn,Qe=>{n(Qi)&&dt()&&Je()&&Qe(vn)})}var mr=P(fn,2);{var mn=Qe=>{rc(Qe,{})};V(mr,Qe=>{we()&&Qe(mn)})}var Nr=P(mr,2);{var et=Qe=>{var Yt=Sw(),mi=_(Yt);wd(mi,{get"aria-label"(){return Pr}}),g(Yt),b(Qe,Yt)};V(Nr,Qe=>{te()&&Qe(et)})}var At=P(Nr,2);{var yi=Qe=>{sc(Qe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Ne()}})};V(At,Qe=>{q()&&Qe(yi)})}var mo=P(At,2);{var No=Qe=>{Ha(Qe,{get shifted(){return w()},get captions(){return k()},get position(){return O()},get playerSize(){return A()},isMobile:!0})};V(mo,Qe=>{ue().value!=="off"&&Qe(No)})}var xo=P(mo,2);{var Gi=Qe=>{var Yt=Cw();Yt.__click=[yw,z,qe,Lo];var mi=_(Yt);Fa(mi,{}),g(Yt),b(Qe,Yt)};V(xo,Qe=>{d()&&Qe(Gi)})}var ki=P(xo,2);{var Yo=Qe=>{let Yt=m(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"||r()==="ads"),mi=m(()=>r()==="ads"),gn=m(()=>e.canRewindLive&&Ke()!==0);nc(Qe,{get bottomHidden(){return n(Yt)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return n(mi)},get canRewindLive(){return n(gn)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return ge()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Fe()},get nextButtonActive(){return Ze()},get prevButtonActive(){return Ge()},get isOneVideoPlaylist(){return Ot()},get customFullscreenSupported(){return n(Cr)},get endScreenShown(){return n(Qi)},toggleFullscreen:kn,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Ro,onDisabledSeekToInteractiveClick:jo,get playerControlsWrapperRef(){return n(uo)},set playerControlsWrapperRef(Do){N(uo,Do,!0)},get playerControlsRef(){return n(Vi)},set playerControlsRef(Do){N(Vi,Do,!0)}})};V(ki,Qe=>{Wt()&&Qe(Yo)})}var Oo=P(ki,2);{var wo=Qe=>{var Yt=Tw(),mi=_(Yt);cc(mi,{get supportLink(){return e.supportLink},get returnFocus(){return $w},get ref(){return n(an)},set ref(gn){N(an,gn,!0)}}),g(Yt),b(Qe,Yt)};V(Oo,Qe=>{z()&&Qe(wo)})}var ji=P(Oo,2);let Or=m(()=>!n(Tr));kd(ji,{get isLive(){return Ve()},get isHidden(){return n(Or)},get isPlaying(){return Y()},get position(){return O()},get duration(){return H()}});var Gn=P(ji,2);{var jn=Qe=>{Ma(Qe,{})};V(Gn,Qe=>{n(cr)&&Qe(jn)})}var gr=P(Gn,2);{var fs=Qe=>{Vd(Qe,{})};V(gr,Qe=>{oe()&&Qe(fs)})}var Dr=P(gr,2);{var Jr=Qe=>{uc(Qe,{onClose:bo,onSelectAutoQuality:()=>{lr("auto"),bo()}})};V(Dr,Qe=>{n(Xr)&&Qe(Jr)})}b(tt,ri)});var Wn=P(An,2);st(Wn,tt=>N(wr,tt),()=>n(wr)),g(Fi),st(Fi,tt=>N(co,tt),()=>n(co)),D(()=>We(Fi,"aria-label",fr)),wt("click",Fi,cn,!0),wt("focusin",Fi,fo,!0),b(t,Fi),U(),o()}lt(["click"]);function tp(t){let e="";return to(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),to(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),to(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),to(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),to(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),to(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),to(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),to(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),to(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),to(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),to(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),to(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),to(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),to(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),to(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),to(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),to(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),to(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),to(t.font)&&(e+=`--font:${t.font};`),to(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),to(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function to(t){return typeof t=="string"&&!t.includes(";")}import{debounceFn as Aw}from"@vkontakte/videoplayer-shared/es2018";var Pw=M('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),Mw={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 Vm(t,e){F(e,!0),W(t,Mw);let[i,o]=De(),r=()=>S(ae,"$playerSize",i),s=()=>S(I,"$isPlaying$",i),l=()=>S(R,"$duration$",i),d=()=>S(B,"$positionWithScrubbing$",i),a=()=>S(T,"$playerPhase",i),u=()=>S(E,"$crashed$",i),f=()=>S(O,"$currentSubtitle$",i),v=()=>S(H,"$currentSubtitleCaptions$",i),p=()=>S(A,"$positionExact$",i),y=()=>S(z,"$isLive$",i),w=()=>S(Z,"$isRewindableLive$",i),x=h(e,"outsideDuration",3,0),C=h(e,"videoContainer",15),{playerPhase:T,state:{crashed$:E,duration$:R,positionExact$:A,isPlaying$:I,currentSubtitle$:O,currentSubtitleCaptions$:H,positionWithScrubbing$:B,isLive$:z,isRewindableLive$:Z},ui:{playerSize:ae,controls:q},actions:{internal:{getVideoElement:de}}}=he(),X=8,fe=Q(!1),re=ai({}),le=()=>{N(fe,!0)},Me=()=>{N(fe,!1)},we=Aw(Ol,260);ze(()=>{r(),we(de(),q,re,n(fe))});let te=m(()=>s()?qo(l()-d()):qo(isFinite(l())?l():x()));var Ne=Pw(),ue=_(Ne);qa(ue,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(ge){C(ge)}});var k=P(ue,2);xa(k,()=>"slot",!1,(ge,Fe)=>{ke(ge,()=>({name:Ka}))});var Ke=P(k,2);let Ve=m(()=>a()!=="thumb"||u());Ua(Ke,{get hidden(){return n(Ve)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var Y=P(Ke,2);{var oe=ge=>{Ha(ge,{shifted:!1,get captions(){return v()},get position(){return p()},get playerSize(){return r()}})};V(Y,ge=>{f().value!=="off"&&ge(oe)})}var Be=P(Y,2),Ye=_(Be);Id(Ye,{get isLive(){return y()},get isPlaying(){return s()},get time(){return n(te)}}),g(Be);var me=P(Be,2);let J;var Ie=_(me);Da(Ie,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:X,tooltipRightOffset:X,get ref(){return re.timeline},set ref(ge){re.timeline=ge}}),g(me),g(Ne),D(ge=>J=ne(me,1,"timeline svelte-1qfjf44",null,J,ge),[()=>({visible:n(fe)})]),wt("mouseenter",Ne,le),wt("mouseleave",Ne,Me),b(t,Ne),U(),o()}var Ow=M("<div><!></div>"),Dw={hash:"svelte-3c0y7j",code:`.vk-vp-root.svelte-3c0y7j {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--controls-desktop-padding-horizontal: 4px;--focused: var(--white);--focused-outline-width: 2px;--focused-outline-radius: 0;--focused-element-shadow: inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
364
375
 
365
376
  /* USER DEFINED COLORS */
366
377
 
@@ -386,12 +397,12 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},Jh=tb;var $
386
397
  rgba(9, 9, 9, 0.46) 80%,
387
398
  rgba(10, 10, 10, 0.48) 86.67%,
388
399
  rgba(10, 10, 10, 0.50) 100%
389
- );--timeline-preview-shadow: rgba(0, 0, 0, 0.08);--timeline-preview-bg: rgba(34, 34, 34, 1);--timeline-padding-horizontal: 10px;--settings-bg: rgba(0, 0, 0, 0.72);--settings-item-bg-hover: rgba(255, 255, 255, 0.08);--settings-radius: 8px;--mobile-settings-bg: #2c2d2e;--divider-border: 1px solid var(--white-alpha-24);--toggle-color-separator: #363738;--toggle-color-off: #656565;--toggle-color-on: #71aaeb;--toggle-color-autoplay-on: var(--white);--notification-bg: #2C2D2E;--notification-radius: 8px;--button-hover-transition: opacity 0.2s;--video-container-z-index: 0;--controls-container-z-index: 1;--ads-container-z-index: 1;--end-screen-mobile-z-index: 1;--notification-z-index: 1;--thumb-timer-z-index: 2;--debug-panel-z-index: 2;--settings-menu-z-index: 2;--context-menu-z-index: 3;--hot-key-helpers-container-z-index: 3;--overlay-container-z-index: 4;--rotate-transition-duration: 0.25s;--btn-color: var(--white);--double-forward-bg: rgba(0, 0, 0, 0.6);position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;
390
- /* --vk-vp-custom-font - vk video player custom font */font-family:var(--vk-vp-custom-font, var(--font));background:var(--black);}.vk-vp-root.visible-outside.svelte-78n29 {overflow:visible;}
400
+ );--timeline-preview-shadow: rgba(0, 0, 0, 0.08);--timeline-preview-bg: rgba(34, 34, 34, 1);--timeline-padding-horizontal: 10px;--timeline-padding-vertical-top: 3px;--timeline-padding-vertical-bottom: 4px;--timeline-height: calc(var(--timeline-padding-vertical-bottom) + var(--timeline-padding-vertical-top) + var(--slider-height));--preview-track-frame-height-vertical: 114px;--preview-track-frame-height-horizontal: 65px;--preview-track-controls-top: 16px;--preview-track-time-line-height: 16px;--preview-track-bottom-offset: 10px;--preview-track-height: calc(var(--preview-track-frame-height-vertical)+var(--preview-track-bottom-offset));--preview-track-controls-top-offset: calc((var(--timeline-height) + var(--preview-track-controls-top) + var(--preview-track-time-line-height)));--settings-bg: rgba(0, 0, 0, 0.72);--settings-item-bg-hover: rgba(255, 255, 255, 0.08);--settings-radius: 8px;--mobile-settings-bg: #2c2d2e;--divider-border: 1px solid var(--white-alpha-24);--toggle-color-separator: #363738;--toggle-color-off: #656565;--toggle-color-on: #71aaeb;--toggle-color-autoplay-on: var(--white);--notification-bg: #2C2D2E;--notification-radius: 8px;--button-hover-transition: opacity 0.2s;--video-container-z-index: 0;--controls-container-z-index: 1;--ads-container-z-index: 1;--end-screen-mobile-z-index: 1;--notification-z-index: 1;--thumb-timer-z-index: 2;--debug-panel-z-index: 2;--settings-menu-z-index: 2;--context-menu-z-index: 3;--hot-key-helpers-container-z-index: 3;--overlay-container-z-index: 4;--rotate-transition-duration: 0.25s;--btn-color: var(--white);--double-forward-bg: rgba(0, 0, 0, 0.6);position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;
401
+ /* --vk-vp-custom-font - vk video player custom font */font-family:var(--vk-vp-custom-font, var(--font));background:var(--black);}.vk-vp-root.visible-outside.svelte-3c0y7j {overflow:visible;}
391
402
 
392
- /* css reset start */.vk-vp-root.svelte-78n29 * {-webkit-tap-highlight-color:transparent;}.vk-vp-root.svelte-78n29 button {border:none;margin:0;padding:0;width:auto;overflow:visible;background:transparent;color:inherit;font:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer;}.vk-vp-root.svelte-78n29 p {margin:0;}.vk-vp-root.svelte-78n29 svg:not(.interactive-root svg) {pointer-events:none;}.vk-vp-root.svelte-78n29 .interactive-root {
393
- /* --vk-vp-int-custom-font - vk video player interactive custom font */font-family:var(--vk-vp-int-custom-font, inherit);}.vk-vp-root.svelte-78n29 *:focus, .vk-vp-root.svelte-78n29 *:focus-visible {outline:none;}.vk-vp-root.svelte-78n29 *:focus-visible {box-shadow:var(--focused-element-shadow);border-radius:var(--focused-outline-radius);}.vk-vp-root.svelte-78n29 *.focus-hidden:focus-visible {box-shadow:none;}
394
- /* css reset end */.vk-vp-root.svelte-78n29 .hidden {visibility:hidden;opacity:0;}.vk-vp-root.svelte-78n29 .out-of-flow {content-visibility:hidden !important;}.vk-vp-root.svelte-78n29 .overlay-container {pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index);}
403
+ /* css reset start */.vk-vp-root.svelte-3c0y7j * {-webkit-tap-highlight-color:transparent;}.vk-vp-root.svelte-3c0y7j button {border:none;margin:0;padding:0;width:auto;overflow:visible;background:transparent;color:inherit;font:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer;}.vk-vp-root.svelte-3c0y7j p {margin:0;}.vk-vp-root.svelte-3c0y7j svg:not(.interactive-root svg) {pointer-events:none;}.vk-vp-root.svelte-3c0y7j .interactive-root {
404
+ /* --vk-vp-int-custom-font - vk video player interactive custom font */font-family:var(--vk-vp-int-custom-font, inherit);}.vk-vp-root.svelte-3c0y7j *:focus, .vk-vp-root.svelte-3c0y7j *:focus-visible {outline:none;}.vk-vp-root.svelte-3c0y7j *:focus-visible {box-shadow:var(--focused-element-shadow);border-radius:var(--focused-outline-radius);}.vk-vp-root.svelte-3c0y7j *.focus-hidden:focus-visible {box-shadow:none;}
405
+ /* css reset end */.vk-vp-root.svelte-3c0y7j .hidden {visibility:hidden;opacity:0;}.vk-vp-root.svelte-3c0y7j .out-of-flow {content-visibility:hidden !important;}.vk-vp-root.svelte-3c0y7j .overlay-container {pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index);}
395
406
 
396
- /* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.vk-vp-root.svelte-78n29 .out-of-view {position:absolute !important;left:-1000vh !important;}.vk-vp-root.svelte-78n29 .icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function vv(t,e){U(e,!0),K(t,F5);let[i,o]=Be(),n=()=>S(Wt,"$isLive$",i),s=()=>S(po,"$availableSubtitlesList$",i),l=v(e,"sources",7),d=v(e,"store",7),a=v(e,"microStoresRoot",7),p=v(e,"videoConfig",7),f=v(e,"uiConfig",7),m=v(e,"title",7),u=v(e,"thumbUrl",7),y=v(e,"interactiveContainer",7),w=v(e,"interactiveController",7),x=v(e,"subtitles",7),T=v(e,"subtitlesForcedLanguage",7),C=v(e,"live",7),E=v(e,"preload",7),R=v(e,"autoplay",7),I=v(e,"volume",7,void 0),k=v(e,"muted",7,void 0),B=v(e,"fromTime",7),F=v(e,"canRewindLive",7),H=v(e,"showAds",7),W=v(e,"adsSlotId",7,void 0),Y=v(e,"adsParams",7,void 0),oe=v(e,"adsAutoplayParam",7,void 0),G=v(e,"duration",7,void 0),he=v(e,"logoClickable",7),J=v(e,"logoHidden",7),pe=v(e,"isMobile",7),me=v(e,"showNextPrevButtons",7,!1),ue=v(e,"nextButtonActive",7,!1),Le=v(e,"prevButtonActive",7,!1),Me=v(e,"endScreenVideoTitle",7,void 0),le=v(e,"endScreenVideoThumb",7,void 0),Ne=v(e,"isOneVideoPlaylist",7,!1),re=v(e,"supportLink",7),P=v(e,"shadowRootContainer",7),ot=v(e,"outerContainerRef",7),Oe=v(e,"fullScreenTarget",7,void 0),Q=v(e,"failoverHosts",7,void 0),te=v(e,"showMiniTimer",7,!1),Re=v(e,"saveRate",7),Je=v(e,"seekToInteractive",7,b0),ye=v(e,"playPrevChapter",7,b0),ee=v(e,"volumeMultiplier",7),Se=v(e,"showAutoplayNext",7),Te=v(e,"showEndScreen",7,!0),Ke=v(e,"keyboardControls",15,void 0),{subscribers:tt,stores:pt}=a();_h(f());let lt=Tt(),mt=f().logoLink,it=d().ui.debugPanelVisible,Dt=d().ui.playerSize,Wt=d().state.isLive$,Kt=d().state.isInteractive&&mv.device.isAndroid,ke=X(void 0),qt=null,_e=X(!1);d().getAdmanWrapper().init({switchFromAdsToVideo:d().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:d().actions.internal.switchFromVideoToAds,setMuted:d().actions.external.setMuted},d().ads,{vsid:d().vsid}),Ih(d(),pt),qe(()=>{var N,et;d().ui.isMobile.set(pe()),(et=(N=p().callbacks)==null?void 0:N.onDomReady)==null||et.call(N)});let Ee=(N=!1)=>{O(_e,!0),N?d().actions.external.firstStart(H()):d().actions.internal.firstStart(H())},de=()=>{if(lt.features.qualityDetailsSubMenuEnabled){let N=jh(d().videoId);if(N)switch(N.type){case"high_quality":d().actions.internal.setHighQualityEnabled(!0,N.appliesTo);break;case"traffic_saving":d().actions.internal.setTrafficSavingEnabled(!0,N.appliesTo);break;case"exact_quality":d().actions.internal.setQuality(N.quality);break}}else{Yh(d().videoId),af()&&d().actions.internal.setTrafficSavingEnabled(!0);let et=of(d().videoId);et&&d().actions.internal.setQuality(et)}};function Qe(N){var ei,hi,ci;let et=l()||N;et&&d().initVideo({container:r(ke),sources:et,failoverHosts:Q(),subtitles:x(),subtitlesForcedLanguage:T(),volumeMultiplier:ee()});let Ht=N5.get(Yl)==="true";it.set(Ht),B()>0&&d().actions.external.seekTime(B());let Ut=pe()?lt.volumeDefault:(hi=(ei=I())!=null?ei:qc())!=null?hi:lt.volumeDefault,ft=(ci=k())!=null?ci:zh();if(d().actions.external.setVolume(Ut),d().actions.external.setMuted(ft),d().getAdmanWrapper().setInitialVolume(ft?0:Ut),de(),lt.features.saveRate&&Re()){let ht=qh();ht&&!n()&&d().actions.internal.setPlaybackRate(ht)}if(Se()){let ht=Gh();ht&&d().actions.internal.setAutoplayNextEnabled(ht)}d().ui.isAutoplay.set(R()),R()&&Ee(),E()&&lt.features.preload&&d().actions.internal.preload()}let Ue=N=>{if(window.ResizeObserver){let et,Ht;qt=new ResizeObserver(O5(Ut=>{let ft=Ut[0];if(ft.contentBoxSize){let ei=Array.isArray(ft.contentBoxSize)?ft.contentBoxSize[0]:ft.contentBoxSize;et=ei.inlineSize,Ht=ei.blockSize}else ft.contentRect&&(et=ft.contentRect.width,Ht=ft.contentRect.height);Dt.set({width:et,height:Ht})},300)),qt.observe(N)}Dt.set({width:N.clientWidth,height:N.clientHeight})},ce=()=>{document.hidden&&d().actions.external.stop()};Pt(()=>{var Ht,Ut,ft,ei;Kt&&document.addEventListener("visibilitychange",ce),lt.debugLog&&d().actions.internal.startLogging(),Ue(r(ke));let N=tt.map(hi=>hi.init({store:d(),microStores:pt,config:p(),interactiveController:w(),uiConfig:f()})),et=()=>{Kt&&document.removeEventListener("visibilitychange",ce),qt==null||qt.disconnect(),N.forEach(hi=>hi.unsubscribe()),d().destroy()};return((Ht=C())==null?void 0:Ht.status)==="upcoming"?(d().actions.internal.setLiveWaitingStart(!0),et):((Ut=C())==null?void 0:Ut.status)==="waiting"?(d().actions.internal.setLiveWaitingRecover(!0),et):(((ft=C())==null?void 0:ft.status)==="finished"||((ei=C())==null?void 0:ei.status)==="postlive")&&!(l()&&R5(l()))?(d().actions.internal.setLiveWaitingRecord(!0),et):(Qe(),et)});function De(){r(_e)?d().actions.external.play():Ee(!0)}function be(){d().actions.external.pause()}function Ze(N){d().actions.external.setMuted(N)}function At(){d().actions.external.toggleSubtitle()}function bt(N,et){d().actions.external.changeSubtitle(N,et)}function Lt(N){d().actions.external.changeAudioStream(N)}function vi(){var N;(N=d().webApi.slotsApi)!=null&&N.haveSlots()&&d().actions.external.hideControls()}function Yt(){var N;(N=d().webApi.slotsApi)!=null&&N.haveSlots()&&d().actions.external.showControls()}function gi(N){pe()||N>=0&&N<=1&&d().actions.external.setVolume(N)}function Ti(N){d().actions.internal.seekTime(N,B5.UNKNOWN)}function co(N){d().actions.external.seekEpisodeStartTime(N)}function uo(){d().actions.external.returnFocusToEpisodes()}function wt(N){d().actions.external.setPlaybackRate(N)}function Jt(N){d().actions.external.setAutoQualityLimits(N)}function ni(){d().actions.external.setQuality("auto")}function ze(N){d().actions.external.setTrafficSavingEnabled(N)}function It(N){d().actions.external.setHighQualityEnabled(N)}let xi=Ou(lt.view),Wi=p().playerView==="preview",po=d().state.availableSubtitlesList$;if(lt.features.initSubtitles){let N=!1;qe(()=>{var et;if(!N&&s().length){N=!0;let Ht;if(lt.features.userVideoPrefs&&d().videoId){let ft=Yc(lt.userSalt,String(d().videoId));ft!=null&&ft.subtitleTrackId&&(Ht=s().find(ei=>ei.value===ft.subtitleTrackId))}let Ut=(et=T())!=null?et:df();Ut&&(Ht=s().find(ft=>ft.language===Ut)),d().actions.internal.setSubtitle(Ht)}})}var $t=D5();let je;var Li=_($t);{var xo=N=>{pv(N,{get store(){return d()},get uiConfig(){return lt},get thumbUrl(){return u()},get interactiveContainer(){return y()},get live(){return C()},get autoplay(){return R()},get canRewindLive(){return F()},get showAds(){return H()},get adsSlotId(){return W()},get adsParams(){return Y()},get adsAutoplayParam(){return oe()},get duration(){return G()},get logoClickable(){return he()},get logoHidden(){return J()},get logoTargetUrl(){return mt},get nextButtonActive(){return ue()},get prevButtonActive(){return Le()},get endScreenVideoTitle(){return Me()},get endScreenVideoThumb(){return le()},get isOneVideoPlaylist(){return Ne()},get supportLink(){return re()},get shadowRootContainer(){return P()},get outerContainerRef(){return ot()},get fullScreenTarget(){return Oe()},get showMiniTimer(){return te()},get playerStarted(){return r(_e)},get seekToInteractive(){return Je()},get playPrevChapter(){return ye()},firstStart:Ee,seekTime:Ti,get showEndScreen(){return Te()},get showAutoplayNext(){return Se()},get showNextPrevButtons(){return me()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return r(ke)},set videoContainer(et){O(ke,et,!0)}})},wo=N=>{var et=Fe(),Ht=fe(et);{var Ut=ei=>{fv(ei,{get thumbUrl(){return u()},get outsideDuration(){return G()},get canRewindLive(){return F()},get videoContainer(){return r(ke)},set videoContainer(hi){O(ke,hi,!0)}})},ft=ei=>{cv(ei,{get store(){return d()},get uiConfig(){return lt},get title(){return m()},get thumbUrl(){return u()},get interactiveContainer(){return y()},get live(){return C()},get autoplay(){return R()},get canRewindLive(){return F()},get showAds(){return H()},get adsSlotId(){return W()},get adsParams(){return Y()},get adsAutoplayParam(){return oe()},get duration(){return G()},get logoClickable(){return he()},get logoHidden(){return J()},get logoTargetUrl(){return mt},get nextButtonActive(){return ue()},get prevButtonActive(){return Le()},get endScreenVideoTitle(){return Me()},get endScreenVideoThumb(){return le()},get isOneVideoPlaylist(){return Ne()},get supportLink(){return re()},get shadowRootContainer(){return P()},get outerContainerRef(){return ot()},get fullScreenTarget(){return Oe()},get showMiniTimer(){return te()},get playerStarted(){return r(_e)},get seekToInteractive(){return Je()},get playPrevChapter(){return ye()},firstStart:Ee,get showEndScreen(){return Te()},get showAutoplayNext(){return Se()},get showNextPrevButtons(){return me()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return r(ke)},set videoContainer(hi){O(ke,hi,!0)},get keyboardControls(){return Ke()},set keyboardControls(hi){Ke(hi)}})};V(Ht,ei=>{Wi?ei(Ut):ei(ft,!1)})}$(N,et)};V(Li,N=>{pe()?N(xo):N(wo,!1)})}h($t),D(N=>{je=ne($t,1,"vk-vp-root svelte-78n29",null,je,N),at($t,xi)},[()=>({"root--miui-browser":mv.device.isMobile&&mv.browser.isMiuiBrowser,"visible-outside":Wi})]),$(t,$t);var on=z({initVideo:Qe,play:De,pause:be,setMuted:Ze,toggleSubtitle:At,changeSubtitle:bt,changeAudioStream:Lt,hideControls:vi,showControls:Yt,setVolume:gi,seekTime:Ti,seekEpisodeStartTime:co,returnFocusToEpisodes:uo,setPlaybackRate:wt,setAutoQualityLimits:Jt,setAutoQuality:ni,toggleTrafficSaving:ze,toggleHighQuality:It,get sources(){return l()},set sources(N){l(N)},get store(){return d()},set store(N){d(N)},get microStoresRoot(){return a()},set microStoresRoot(N){a(N)},get videoConfig(){return p()},set videoConfig(N){p(N)},get uiConfig(){return f()},set uiConfig(N){f(N)},get title(){return m()},set title(N){m(N)},get thumbUrl(){return u()},set thumbUrl(N){u(N)},get interactiveContainer(){return y()},set interactiveContainer(N){y(N)},get interactiveController(){return w()},set interactiveController(N){w(N)},get subtitles(){return x()},set subtitles(N){x(N)},get subtitlesForcedLanguage(){return T()},set subtitlesForcedLanguage(N){T(N)},get live(){return C()},set live(N){C(N)},get preload(){return E()},set preload(N){E(N)},get autoplay(){return R()},set autoplay(N){R(N)},get volume(){return I()},set volume(N){I(N)},get muted(){return k()},set muted(N){k(N)},get fromTime(){return B()},set fromTime(N){B(N)},get canRewindLive(){return F()},set canRewindLive(N){F(N)},get showAds(){return H()},set showAds(N){H(N)},get adsSlotId(){return W()},set adsSlotId(N){W(N)},get adsParams(){return Y()},set adsParams(N){Y(N)},get adsAutoplayParam(){return oe()},set adsAutoplayParam(N){oe(N)},get duration(){return G()},set duration(N){G(N)},get logoClickable(){return he()},set logoClickable(N){he(N)},get logoHidden(){return J()},set logoHidden(N){J(N)},get isMobile(){return pe()},set isMobile(N){pe(N)},get showNextPrevButtons(){return me()},set showNextPrevButtons(N){me(N)},get nextButtonActive(){return ue()},set nextButtonActive(N){ue(N)},get prevButtonActive(){return Le()},set prevButtonActive(N){Le(N)},get endScreenVideoTitle(){return Me()},set endScreenVideoTitle(N){Me(N)},get endScreenVideoThumb(){return le()},set endScreenVideoThumb(N){le(N)},get isOneVideoPlaylist(){return Ne()},set isOneVideoPlaylist(N){Ne(N)},get supportLink(){return re()},set supportLink(N){re(N)},get shadowRootContainer(){return P()},set shadowRootContainer(N){P(N)},get outerContainerRef(){return ot()},set outerContainerRef(N){ot(N)},get fullScreenTarget(){return Oe()},set fullScreenTarget(N){Oe(N)},get failoverHosts(){return Q()},set failoverHosts(N){Q(N)},get showMiniTimer(){return te()},set showMiniTimer(N){te(N)},get saveRate(){return Re()},set saveRate(N){Re(N)},get showAutoplayNext(){return Se()},set showAutoplayNext(N){Se(N)},get seekToInteractive(){return Je()},set seekToInteractive(N){Je(N)},get playPrevChapter(){return ye()},set playPrevChapter(N){ye(N)},get volumeMultiplier(){return ee()},set volumeMultiplier(N){ee(N)},get showEndScreen(){return Te()},set showEndScreen(N){Te(N)},get keyboardControls(){return Ke()},set keyboardControls(N){Ke(N)}});return o(),on}var H5=we('<svg><!><path fill="currentColor" d="M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"></path></svg>');function gv(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=H5();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 s;return(s=e.children)!=null?s:ae}),xe(),h(o),$(t,o)}function hv(t,e){let i=v(e,"isWhite",3,!1),o=g(()=>i()?"color: #fff;":"color: #909499;");gv(t,{get style(){return r(o)}})}var U5=M('<div class="title svelte-1y9fytq"> </div>'),z5=M('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),W5={hash:"svelte-1y9fytq",code:".playerStub.svelte-1y9fytq {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.title.svelte-1y9fytq {position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}"};function _v(t,e){K(t,W5);var i=z5(),o=_(i);{var n=d=>{var a=U5(),p=_(a,!0);h(a),D(()=>ve(p,e.title)),$(d,a)};V(o,d=>{e.title&&d(n)})}var s=A(o,2);{var l=d=>{let a=g(()=>!!e.thumbUrl);hv(d,{get isWhite(){return r(a)}})};V(s,d=>{(!e.title||!e.thumbUrl)&&d(l)})}h(i),D(()=>at(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),$(t,i)}var K5=M('<div class="playerError svelte-m5iv29"><!></div>'),q5={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 bv(t){K(t,q5);var e=K5(),i=_(e);Ta(i,{}),h(e),$(t,e)}import{now as $w,ValueSubject as yw}from"@vkontakte/videoplayer-shared/es2018";import{cloneDeepWith as xw,InterfaceLanguage as ww,isNonNullable as Tv,Logger as Sw,Observable as Cw,Subscription as E0,once as Tw,InternalsExposure as Ew,skip as Iw,getPlayerId as kw}from"@vkontakte/videoplayer-shared/es2018";import{clientChecker as I0,isMobile as Aw}from"@vkontakte/videoplayer-core/es2018";import{OneStat as Pw,ThinOneStat as Lw,MediascopePixel as Mw}from"@vkontakte/videoplayer-statistics/es2018";import{Logger as Q5,Subscription as G5}from"@vkontakte/videoplayer-shared/es2018";var Bu=class{constructor(){this.subscription=new G5,this.logger=new Q5,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=$e(e.state.currentPlaybackRate$),n=$e(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 xv,detectEmbed as ew}from"@vkontakte/videoplayer-shared/es2018";var j5=we('<svg><!><g fill="var(--btn-color, #fff)"><path d="m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"></path><path d="M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"></path></g></svg>');function $v(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=j5();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 s;return(s=e.children)!=null?s:ae}),xe(),h(o),$(t,o)}var Y5=M('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),Z5={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 yv(t,e){U(e,!0),K(t,Z5);let[i,o]=Be(),n=()=>S(p,"$interfaceLanguage$",i),s=()=>S(f,"$isMobile$",i),l=Ce(),d=Tt(),a=!!l.webApi.pictureInPictureApi,p=l.interfaceLanguage$,f=l.ui.isMobile,m=l.ui.t,u=g(()=>n()&&m("pip_dummy_title")),y=Ou(d.view);var w=Y5();let x;var T=_(w);let C;var E=_(T);$v(E,{}),h(T);var R=A(T,2),I=_(R,!0);h(R),h(w),D((k,B)=>{x=ne(w,1,"player-pip-dummy svelte-1pbsod4",null,x,k),at(w,y),C=ne(T,1,"dummy-image svelte-1pbsod4",null,C,B),ve(I,r(u))},[()=>({"is-pip-api":a}),()=>({desktop:!s()})]),$(t,w),z(),o()}var X5=Object.defineProperty,J5=(t,e,i)=>e in t?X5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,hl=(t,e,i)=>J5(t,typeof e!="symbol"?e+"":e,i),tw=460,iw=280,qd=class{constructor({enabled:e=!0}={enabled:!0}){hl(this,"playerDomElement"),hl(this,"playerParentShadowRoot"),hl(this,"playerDummyElement"),hl(this,"svelteContext"),hl(this,"pipWindow"),hl(this,"info",{isActive$:new xv(!1),isEnabled$:new xv(!1),type:1}),this.info.isEnabled$=new xv(e)}isSupported(){let{isEmbed:e}=ew();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:tw,height:iw,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(`
397
- `),n=document.createElement("style");n.textContent=o;let s=this.createStretchedContainer(),l=s.attachShadow({mode:"open"});l.append(n),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Hr(yv,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||(ra(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 $0(t){return t instanceof qd}var Du=class{static getLatestSupportedVersion(e){let i=new ua(e),o=new qd(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Qd(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 y0="Inner error. Unexpectedly root annotation container null reference exception",x0="Annotation with such name already exists",w0="Annotation with such name does not exist";var _l=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as ow,Subscription as nw,throttleFn as rw}from"@vkontakte/videoplayer-shared/es2018";var sw="1",aw=100,Fu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new nw}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=rw(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},aw);this.subscriptions.add(ow(this.rootAnnotationsContainer).subscribe(({width:o,height:n})=>{this.playerSize={width:o,height:n},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new _l(y0);if(this.annotations.has(e))throw new _l(x0);i.style.zIndex=(o=i.style.zIndex)!=null?o:sw,i.style.position="absolute",this.rootAnnotationsContainer.append(i),this.annotations.set(e,i)}get(e){let i=this.annotations.get(e);if(!i)throw new _l(w0);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 Hu,Subscription as lw}from"@vkontakte/videoplayer-shared/es2018";var tn=class{init({store:e,microStores:i,interactiveController:o,config:n}){return Hu(e),Hu(i),Hu(n),n.interactiveData&&Hu(o),this.subscription=new lw,this.subscription}};var Gd=class extends tn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...se(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(s=>{this.state$.set(s?!0:null)})),o}};var jd=class extends tn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...se(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:n,store:s}=i,{fakeIsPlaying$:l}=n,{isInteractiveExpectation$:d,isPlaying$:a}=s.state,{controlsVisible:p,isMobile:f}=s.ui,m=$e(f),u=()=>m&&$e(p);return o.add(p.subscribe(y=>{if(!m)return;let w=$e(l);$e(a)?this.state$.set(y):w!==null&&this.state$.set(!w||y)})),o.add(a.subscribe(y=>{this.state$.set(!y||u())})),o.add(l.subscribe(y=>{if(y===null)return;let w=$e(d);if(u()){this.state$.set(!0);return}w&&this.state$.set(!y)})),o}};var Yd=class extends tn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=se("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(s=>{s.length&&(s.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};import{combine as dw}from"@vkontakte/videoplayer-shared/es2018";var wv=se(!1),Uu=null,Zd=class extends tn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...wv,set:(i,o=!1)=>{i!==$e(wv)&&(this.clearTimeout(),wv.set(i),!i&&Uu&&(Uu=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:n,config:s}=i,{isInteractiveTime$:l,isPlaying$:d}=n.state,a=n.ui.controlsVisible,{interactiveTimeIndicator:p}=n.ui.controls;o.add(a.subscribe(m=>{$e(l)&&m&&this.state$.set(!1)}));let f=(s==null?void 0:s.interactiveData)||{tooltipHelpHintActive:!1};return o.add(dw({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:p}).subscribe(({isPlaying$:m,isInteractiveTime$:u,interactiveTimeIndicator:y})=>{var w,x;if(!(!m||!(y!=null&&y.isDisplayed))){if(!u)return this.state$.set(!1);f.tooltipHelpHintActive&&Uu===null&&(Uu=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(x=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||x.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as cw,noop as uw}from"@vkontakte/videoplayer-shared/es2018";var Xd=class extends tn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...se(null),toggle:uw};this.checkIfShouldHide=i=>xs(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($e(l)))return;let a=$e(this.state$),{isEnded$:p,playbackState$:f}=n.state,{disabledControls$:m}=n.ui.controls,u=$e(p),y=$e(f);if(a)try{await(s==null?void 0:s.toggleGraphView(!1)),this.state$.set(!1),m.remove(Gp),!u&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=y==="playing";try{await(s==null?void 0:s.toggleGraphView(!0)),this.state$.set(!0),m.add(Gp),!u&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add(cw({graphIsOpened:this.state$,currentGridType:l}).subscribe(async({graphIsOpened:a,currentGridType:p})=>{if(this.checkIfShouldHide(p)&&a)try{await(s==null?void 0:s.toggleGraphView(!1)),this.state$.set(!1)}catch(m){d({message:"Cant hide graph"})}})),o}};import{ValueSubject as S0}from"@vkontakte/videoplayer-shared/es2018";var Jd=class extends tn{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:se(!1),isEnabled$:se(!1),type$:se(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:s,isEnabled$:l,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new S0(!1),isEnabled$:new S0(!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 mw,filterChanged as vw}from"@vkontakte/videoplayer-shared/es2018";import{safeStorage as Sv}from"@vkontakte/videoplayer-shared/es2018";var C0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?pw({maxCount:t}):void 0,e!==0?fw({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},pw=({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}}},fw=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Sv.get(e)||"{}")}catch(s){return{}}},o=s=>Sv.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 ec=class extends tn{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:se({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:s,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:a}}}=i;this.notificationManager=C0({maxShowCount:s,timeout:l});let p=n.getPlayer();return o.add(p.events.severeStallOccured$.pipe(vw(),mw(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 T0=()=>[Gd,jd,Yd,Zd,Xd,Jd,ec].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});import{devNull as tc}from"@vkontakte/videoplayer-shared/es2018";var zu=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 gw=M('<div class="root svelte-9ubj1t"><!></div>'),hw={hash:"svelte-9ubj1t",code:".root.svelte-9ubj1t {position:absolute;display:flex;inset:0;align-items:center;justify-content:center;pointer-events:none;z-index:1;}"};function Cv(t,e){U(e,!0),K(t,hw);let i=null,o=X(null);qe(()=>(r(o)&&(i=window.setTimeout(()=>{O(o,null)},e.animationDuration)),()=>{i&&clearTimeout(i)}));function n(a){e.playbackStatusShow&&O(o,a?"prev":"next",!0)}var s=Fe(),l=fe(s);{var d=a=>{var p=Fe(),f=fe(p);gs(f,()=>r(o),m=>{var u=gw(),y=_(u);let w=g(()=>r(o)==="prev");Wd(y,{get duration(){return e.animationDuration},get Icon(){return kd},get isPrev(){return r(w)}}),h(u),$(m,u)}),$(a,p)};V(l,a=>{e.playbackStatusShow&&r(o)&&a(d)})}return $(t,s),z({startVideoChangedAnimation:n})}var _w=Object.defineProperty,bw=(t,e,i)=>e in t?_w(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Ft=(t,e,i)=>bw(t,typeof e!="symbol"?e+"":e,i),Vw={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:ww.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:Aw(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Vn=X(void 0),Ev=Zt({animationDuration:0,playbackStatusShow:!1}),Wu=class extends HTMLElement{constructor(){super(),Ft(this,"svelteStubComponent"),Ft(this,"svelteRootComponent"),Ft(this,"sveltePersistentLayerComponent"),Ft(this,"svelteErrorComponent"),Ft(this,"store"),Ft(this,"microStoresRoot"),Ft(this,"statistics"),Ft(this,"sentry"),Ft(this,"_shadowRoot"),Ft(this,"playerContainer"),Ft(this,"rootContainer"),Ft(this,"shadowRootContainer"),Ft(this,"playerId"),Ft(this,"uiConfig"),Ft(this,"coreConfig"),Ft(this,"statisticsConfig"),Ft(this,"interactiveController"),Ft(this,"interactiveContainer"),Ft(this,"graphMadePause"),Ft(this,"currentPlayingVideoIndex",0),Ft(this,"needToRepeatPlaylist",!1),Ft(this,"videoConfig"),Ft(this,"pictureInPictureApi"),Ft(this,"mediaSessionApi"),Ft(this,"unsubscribePlayerPhaseSubscription"),Ft(this,"logger"),Ft(this,"log"),Ft(this,"subscription"),Ft(this,"interactiveSubscription"),Ft(this,"annotationsApi"),Ft(this,"slotsApi"),Ft(this,"focusManager"),Ft(this,"prevIsid"),Ft(this,"isInited",!1),Ft(this,"internalsExposure",null),Ft(this,"shadowDOMCallbacksDisabled",!1),Ft(this,"fatalError$",new yw(null)),Ft(this,"createOneStat",(e,i={})=>{var o,n,s,l;if(!this.videoConfig)return;let{albumId:d,statPlace:a,statUserSalt:p,statTrackCode:f,statVKAppId:m,refreshStatAuthToken:u,autoplay:y,isMobile:w,isTouch:x,refDomain:T,deviceId:C,interactiveData:E}=Qd(this.videoConfig,i),R=(o=E==null?void 0:E.projectInfo)==null?void 0:o.pid,I=(s=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?s:!1;I&&(this.prevIsid=void 0);let{unitedVideoId:k,isClip:B=!1}=e;if(this.uiConfig.features.statistics&&k)try{return new Pw({movieId:k,albumId:d,place:a,trackCode:f,vkAppId:m,autoplay:(l=y&&!this.interactiveController)!=null?l:!1,mobile:x!=null?x:w,clip:B,refDomain:T,deviceId:C,isPreviewPlayerView:this.videoConfig.playerView==="preview",...R&&(!this.isInited||I)&&{projectId:Number(R)}},{refreshAuthToken:u,userSalt:p,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}catch(H){console.error(H),this.log({message:H.message})}}),tc.create("ui"),this.logger=new Sw,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=Hr(bv,{target:this.playerContainer}))})}connectedCallback(){var e,i;if(this.rootContainer)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,n=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,s=Zt({title:o,thumbUrl:n}),l={target:this.playerContainer,props:s};this.svelteStubComponent=Hr(_v,l),this.sveltePersistentLayerComponent=Hr(Cv,{target:this.playerContainer,props:Ev})}updatePersistentLayerProps(){if(!this.uiConfig)return;let{playbackStatusNextVideoAnimationDuration:e,features:{playbackStatusShow:i,playbackStatusNextVideoShow:o}}=this.uiConfig;Ev.animationDuration=e,Ev.playbackStatusShow=i&&o}disconnectedCallback(){var e,i,o,n,s,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(n=this.mediaSessionApi)==null||n.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),this.unmountComponent(this.sveltePersistentLayerComponent),this.subscription.unsubscribe(),(s=this.unsubscribePlayerPhaseSubscription)==null||s.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),tc.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}=Qd(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new Lw.ThinOneStat({deviceId:o,movieId:l,preload:n,isPreviewPlayerView:this.videoConfig.playerView==="preview"},{config:this.statisticsConfig,refreshAuthToken:s})}createPlayer(e,i={},o){var n,s,l,d,a,p,f,m,u,y;if(!this.videoConfig)return;let{albumId:w,statPlace:x,statAuthToken:T,preload:C,autoplay:E,volume:R,muted:I,fromTime:k,canRewindLive:B,supportLink:F,showAds:H,adsSlotId:W,adsParams:Y={},adsAutoplayParam:oe,interfaceLanguage:G,isCyrillicRelatedInterface:he,logoClickable:J,logoHidden:pe,isMobile:me,isTouch:ue,isAudioDisabled:Le,isLiveCatchUpMode:Me,fullScreenTarget:le,failoverHosts:Ne,canDownload:re,callbacks:P,interactiveData:ot,showThumbTimer:Oe,additionalButtons:Q=[],additionalSettingsMenuItems:te=[],additionalContextMenuItems:Re=[],repeat:Je,loop:ye,saveRate:ee,volumeMultiplier:Se,showEndScreen:Te,showAutoplayNext:Ke,mediascopePixels:tt}=Qd(this.videoConfig,i),{sources:pt,title:lt,thumbUrl:mt,unitedVideoId:it,isClip:Dt=!1,duration:Wt,adsParams:Qt={},videoEpisodes:Kt,previewThumbsData:ke,subtitles:qt,subtitlesForcedLanguage:_e,live:Ee,adsExternalApi:de}=e;if(!pt&&!Ee){let Jt=new Error("empty sources and live");this.fatalError$.next(Jt),(n=P.onCrashed)==null||n.call(P,Jt.message);return}let Qe={...Y,...Qt},Ue=this.getNextVideoInfo(),ce={sources:pt,title:lt,thumbUrl:mt,subtitles:qt,subtitlesForcedLanguage:_e,unitedVideoId:it,isClip:Dt,live:Ee,albumId:w,statPlace:x,autoplay:E,muted:I,volume:R,fromTime:k,canRewindLive:B,showAds:H,adsSlotId:W,adsParams:Qe,adsAutoplayParam:oe,duration:Wt,logoClickable:J,logoHidden:pe,isTouch:ue!=null?ue:me,repeat:Je,loop:ye,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ue.nextVideoTitle,endScreenVideoThumb:Ue.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},De={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(ce)}`});let be=(s=this.interactiveController)==null?void 0:s.state.statistics$.getValue(),Ze=(be==null?void 0:be.oneStat)||this.createOneStat(e,i),At=this.createThinOneStat(e,i),bt;tt&&(bt=new Mw({pixels:tt})),(Ze||At)&&(this.statistics=new $u(Ze,At,bt,be==null?void 0:be.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new ca(this.uiConfig.sentry,{version:il,env:zc},{movieId:it,albumId:w,place:x,autoplay:(l=E&&!this.interactiveController)!=null?l:!1,mobile:ue!=null?ue:me,clip:Dt}),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,...ca.getInstance()};let vi=!!ot,Yt=[],gi="tooltip_interactive_go_back_disabled_first";if(vi&&this.interactiveController){let Jt=this.interactiveController.state.isInitialChapter$.getValue(),ni=this.interactiveController.getHistoryState();Jt&&Yt.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Yt.push("SEEK_TO_INTERACTIVE_BUTTON"),ni.hasPrevChapter$.getValue()||(Yt.push("PLAY_PREV_CHAPTER_BUTTON"),Jt||(ni.isGoBackLimited$.getValue()?gi="tooltip_interactive_go_back_disabled_limit":gi="tooltip_interactive_go_back_disabled"))}let Ti=()=>{var Jt;this.isInited=!1,this.prevIsid=void 0;let ni=(o==null?void 0:o.info.isEnded$.getValue())&&((Jt=this.interactiveController)==null?void 0:Jt.state.isEndChapter$.getValue());P.onReplayInteractiveVideo&&!ni?P.onReplayInteractiveVideo():this.replayInteractiveVideo()},co=Je&&this.videoConfig.videos.length===1;this.store=F1({player:o,interfaceLanguage:G,isCyrillicRelatedInterface:he,videoId:it,isClip:Dt,isLiveCatchUpMode:Me,isAudioDisabled:Le,statAuthToken:T,callbacks:P,webApi:De,videoEpisodes:Kt,previewThumbsData:ke,canDownload:re,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Yt,isInteractive:vi,saveRate:ee,interactiveRanges$:(f=this.interactiveController)==null?void 0:f.state.interactiveRanges$,isInteractiveTime$:(m=this.interactiveController)==null?void 0:m.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:Ti,playPrevChapterDisabledTooltip:gi,hasInteractiveBranches:!!((y=(u=this.interactiveController)==null?void 0:u.getChapterBranches())!=null&&y.length),additionalButtons:this.uiConfig.features.additionalButtons?Q:[],additionalSettingsMenuItems:te!=null?te:[],additionalContextMenuItems:Re!=null?Re:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:Jt=>{var ni;return(ni=this.sveltePersistentLayerComponent)==null?void 0:ni.startVideoChangedAnimation(Jt)},looped:this.uiConfig.features.useLoopSetting?ye:co,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:uo}=this.microStoresRoot=T0(),wt=()=>{var Jt,ni,ze,It,xi,Wi;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe($t=>{var je;return(je=P==null?void 0:P.onCurrentFormatChanged)==null?void 0:je.call(P,$t)})),this.subscription.add(uo.interactiveControlsOpacity$.subscribe($t=>{var je;$t!==null&&((je=this==null?void 0:this.interactiveController)==null||je.setDisabledControls($t))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe($t=>{var je;return(je=P==null?void 0:P.onThroughputEstimationChanged)==null?void 0:je.call(P,$t)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe($t=>{var je;return(je=P==null?void 0:P.onTrafficSavingEnabledChanged)==null?void 0:je.call(P,$t)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe($t=>{var je;return(je=P==null?void 0:P.onHighQualityEnabledChanged)==null?void 0:je.call(P,$t)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe($t=>{var je;return(je=P==null?void 0:P.onAutoQualityEnabledChanged)==null?void 0:je.call(P,!!$t)})),this.subscription.add(new Cw($t=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(je=>$t.next(je)))}).pipe(Iw(1)).subscribe($t=>{var je;return(je=P==null?void 0:P.onCurrentPlaybackRateChanged)==null?void 0:je.call(P,$t)})),this.subscription.add(this.store.state.volume$.subscribe($t=>{var je;return(je=P==null?void 0:P.onVolumeChange)==null?void 0:je.call(P,$t)})),this.subscription.add(this.store.state.muted$.subscribe($t=>{var je,Li,xo,wo;if($t)(je=P==null?void 0:P.onMute)==null||je.call(P);else{let on=(xo=((Li=this.store)==null?void 0:Li.state.volume$)&&$e(this.store.state.volume$))!=null?xo:0;(wo=P==null?void 0:P.onUnmute)==null||wo.call(P,on)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe($t=>{var je;return(je=P==null?void 0:P.onVideoBitrateChanged)==null?void 0:je.call(P,$t)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe($t=>{var je;let Li=(je=this.store)==null?void 0:je.ui.controls.disabledControls$;Li&&($t&&!Li.includes(Zl)&&Li.add(Zl),$t||Li.remove(Zl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async $t=>{var je;if(!I0.browser.isSamsungBrowser||!$t||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((je=this.videoConfig)==null?void 0:je.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe($t=>{var je;return(je=P==null?void 0:P.onVSIDChanged)==null?void 0:je.call(P,$t)})),this.initMediaSession(),O(Vn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:pt,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:lt,thumbUrl:mt,subtitles:qt,subtitlesForcedLanguage:_e,live:Ee,preload:C,autoplay:E,muted:I,volume:R,fromTime:k,canRewindLive:B,supportLink:F,showAds:H,adsSlotId:W,adsParams:Qe,adsAutoplayParam:oe,duration:Wt,logoClickable:J,logoHidden:pe,isMobile:ue!=null?ue:me,failoverHosts:Ne,fullScreenTarget:le,saveRate:ee,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Oe,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ue.nextVideoTitle,endScreenVideoThumb:Ue.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Se,showEndScreen:Te,showAutoplayNext:Ke,adsExternalApi:de},!0);let po={target:this.playerContainer,props:r(Vn)};this.svelteRootComponent=Hr(vv,po),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(ze=(ni=(Jt=this.videoConfig)==null?void 0:Jt.callbacks)==null?void 0:ni.onInited)==null||ze.call(ni)),(It=this.internalsExposure)==null||It.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Wi=(xi=this.videoConfig)==null?void 0:xi.callbacks)!=null&&Wi.onDevNullLog)?tc.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):tc.destroy("ui")};this.coreConfig.asyncResolveClientChecker?I0.isInited$.subscribe(Jt=>{Jt&&(console.log("UI SDK async start"),wt())}):wt()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,n=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!n)return;let s=(i=this.videoConfig)==null?void 0:i.callbacks;s&&this.subscription.add(o.playerPhase.subscribe(d=>{var a;return(a=s.onPlayerPhaseChanged)==null?void 0:a.call(s,d)})).add(o.state.playbackState$.subscribe(d=>{var a;return d&&((a=s.onPlaybackStateChanged)==null?void 0:a.call(s,d))})).add(o.state.isLive$.subscribe(d=>{var a;return(a=s.onIsLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isActiveLive$.subscribe(d=>{var a;return(a=s.onIsActiveLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var a;return(a=s.onIsAudioAvailableChanged)==null?void 0:a.call(s,d)})).add(o.state.currentQuality$.subscribe(d=>{var a;return(a=s.onCurrentQualityChanged)==null?void 0:a.call(s,d)})).add(o.state.availableQualities$.subscribe(d=>{var a;return(a=s.onAvailableQualitiesChanged)==null?void 0:a.call(s,d.map(({value:p})=>p).filter(p=>p!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&s.onAudioLanguagesAvailable&&s.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var a,p;return d?(a=s.onPiPEnter)==null?void 0:a.call(s):(p=s.onPiPExit)==null?void 0:p.call(s)}));let l=s==null?void 0:s.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var a;return(a=l.onControlsVisibleChanged)==null?void 0:a.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var a;return(a=l.onIsMobileChanged)==null?void 0:a.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var a;return(a=l.onPlayerSizeChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var a;return(a=l.onPrevButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var a;return(a=l.onPlayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var a;return(a=l.onReplayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var a;return(a=l.onNextButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var a;return(a=l.onPlayPrevChapterChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var a;return(a=l.onSeekToInteractiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var a;return(a=l.onGraphButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var a;return(a=l.onLiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var a;return(a=l.onTimeUpdateChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var a;return(a=l.onEpisodesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var a;return(a=l.onSubtitlesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var a;return(a=l.onTopLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var a;return(a=l.onTopRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var a;return(a=l.onBottomLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var a;return(a=l.onBottomRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var a;return(a=l.onMiddleControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var a;return(a=l.onBottomControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var a;return(a=l.onTitleChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var a;return(a=l.onSettingsChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var a;return(a=l.onFullscreenChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var a;return(a=l.onChromecastChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var a;return(a=l.onPipChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var a;return(a=l.onVkLogoChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var a;return(a=l.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var a;return(a=l.onTimelineChanged)==null?void 0:a.call(l,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let n=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!n){this.log({message:"no next video"});return}this.isInited&&Tv(n.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(n.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(n,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}async initInteractives(){var e,i,o,n,s,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=await import("@vkontakte/videoplayer-interactive/es2018");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let a=(i=this.store)==null?void 0:i.interfaceLanguage$,p=a?$e(a):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:m,historyApi:u,videoLoader:y}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:p,graph:this.uiConfig.features.interactiveGraph,projectInfo:f,initChapterId:m,historyApi:u,vkVideoLoader:y,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation},endChapterHistoryFix:this.uiConfig.features.interactiveHistoryEndChapterFix});let{isInteractiveExpectation$:w,isSeekable$:x}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(x.subscribe(C=>{if(!this.isInited)return;let E=this.store;C?E.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):E.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(w.subscribe(C=>{this.store&&this.store.state.isInteractiveExpectation$.set(C)}));let T=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(C=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...C.config,title:(f==null?void 0:f.title)||C.config.title};let E=T?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(C.player,E),T&&(T=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:C,actionType:E})=>{var R,I,k,B,F,H;if(!this.store||!this.microStoresRoot)return;let W=w.getValue();if(C==="action-choice"&&E==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Xl)),C==="action-choice-canceled"){let Y=$e(this.store.state.isPlaying$)||W;if(((k=(R=this.videoConfig)==null?void 0:R.isTouch)!=null?k:(I=this.videoConfig)!=null&&I.isMobile)&&Y){this.store.ui.interactiveHideMobileControls.set(!0);return}(H=(B=this.videoConfig)==null?void 0:(F=B.callbacks).onDisabledInteractiveClick)==null||H.call(F)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:C,removeAllOpenURI:E})=>{this.store&&C==="container-fake-removed"&&E&&this.store.ui.controls.disabledControls$.remove(Xl)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let C=this.interactiveController.getHistoryState();this.subscription.add(C.history$.subscribe(E=>{var R,I,k;E.length&&((k=(I=(R=this.videoConfig)==null?void 0:R.callbacks)==null?void 0:I.onInteractiveHistoryChanged)==null||k.call(I,E))}))}(l=(s=this.videoConfig)==null?void 0:s.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(C=>{var E,R,I;(I=(E=this.videoConfig)==null?void 0:(R=E.callbacks).onInteractiveChapterChanged)==null||I.call(R,C.chapter,C.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var C,E,R,I;(C=this.microStoresRoot)==null||C.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(I=(E=this.videoConfig)==null?void 0:(R=E.callbacks).onInteractiveTimeIndicatorClick)==null||I.call(R)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(C=>{this.log({message:C.toString()})}))}catch(d){this.log({message:d.message})}}initPlayer(e,i={}){var o,n,s,l,d,a,p,f,m,u,y,w,x,T,C,E,R,I,k,B,F,H,W,Y,oe,G,he,J;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let pe=new Error("empty videos");this.fatalError$.next(pe),(n=(o=e.callbacks)==null?void 0:o.onCrashed)==null||n.call(o,pe.message);return}else this.fatalError$.next(null);if(this.videoConfig=Qd(Vw,xw(e,pe=>pe instanceof HTMLElement?pe:void 0)),this.playerId=kw(e.playerId),this.uiConfig=hh((s=i.ui)!=null?s:{}),this.updatePersistentLayerProps(),this.coreConfig=(l=i.core)!=null?l:{configName:[]},this.statisticsConfig=(d=i.statistics)!=null?d:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer&&(this.rootContainer.style.minHeight="unset"),this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},this.uiConfig.features.exposeInternalsToGlobal&&((p=this.internalsExposure)!=null||(this.internalsExposure=new Ew("ui",this.playerId))),tc.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:[$w()]}),Tv(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(u=(m=this.uiConfig.features.mediaSession)!=null?m:this.videoConfig.isMediaSessionEnabled)!=null?u:!0),Tv(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(w=(y=this.uiConfig.features.pip)!=null?y:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0,this.uiConfig.features.dpip=(T=(x=this.uiConfig.features.dpip)!=null?x:this.videoConfig.isPictureInPictureEnabled)!=null?T:!0),this.uiConfig.ads.paramsOverride={preview:(C=this.uiConfig.ads.preview)!=null?C:this.videoConfig.adsPreviewParam,...this.uiConfig.ads.paramsOverride},this.videoConfig.isTouch=(R=(E=this.uiConfig.isMobile)!=null?E:this.videoConfig.isTouch)!=null?R:this.videoConfig.isMobile,(I=this.videoConfig).autoplay&&(I.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(k=this.uiConfig.ads.enable)!=null?k:this.videoConfig.showAds,this.videoConfig.adsSlotId=(B=this.uiConfig.ads.slot)!=null?B:this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!((F=this.uiConfig.showLogo)!=null?F:!this.videoConfig.logoHidden),(H=this.videoConfig).canRewindLive&&(H.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(W=this.videoConfig.supportLink)!=null?W:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(Y=this.uiConfig.features.endScreen)!=null?Y:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(oe=this.uiConfig.features.autoplayNext)!=null?oe:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(G=this.uiConfig.features.nextPrevButtons)!=null?G:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((he=this.videoConfig.videos)!=null&&he[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let pe={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Du.getLatestSupportedVersion(pe):this.pictureInPictureApi=new ua(pe)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Bu:void 0,this.slotsApi=this.uiConfig.features.slots?new Vu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Fu(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]),$0(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(J=this.slotsApi)==null||J.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new zu(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(Vn)&&(r(Vn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Vn).nextButtonActive=this.isNextButtonActive(),r(Vn).prevButtonActive=this.isPrevButtonActive(),r(Vn).endScreenVideoTitle=o.nextVideoTitle,r(Vn).endScreenVideoThumb=o.nextVideoThumb,r(Vn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",n=>this.seekTime(n.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>{var n,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(n=this.videoConfig)==null?void 0:n.callbacks)==null?void 0:s.onNextVideoClick)==null||l.call(s)}catch(d){this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{var n,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(n=this.videoConfig)==null?void 0:n.callbacks)==null?void 0:s.onPrevVideoClick)==null||l.call(s)}catch(d){this.log({message:"onPrevVideoClick callback failed to execute"})}else this.playPrevVideo()}])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,n;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}changeSubtitle(e,i){var o;this.log({message:"change subtitle"}),(o=this.svelteRootComponent)==null||o.changeSubtitle(e,i)}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,r(Vn)&&(r(Vn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(Vn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Vn).nextButtonActive=this.isNextButtonActive(),r(Vn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(e)}setAutoQuality(){var e;(e=this.svelteRootComponent)==null||e.setAutoQuality()}toggleTrafficSaving(e){var i;(i=this.svelteRootComponent)==null||i.toggleTrafficSaving(e)}toggleHighQuality(e){var i;(i=this.svelteRootComponent)==null||i.toggleHighQuality(e)}changeAudioStream(e){var i;(i=this.svelteRootComponent)==null||i.changeAudioStream(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}async setLanguage(e){var i;await((i=this.store)==null?void 0:i.actions.internal.setLanguage(e))}setLiveStart(e){var i,o;let n=this.isLiveTailPlaying();this.log({message:`live started: liveTailPlaying = ${n}`}),n||((i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0}))}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){var e;let i=(e=this.store)==null?void 0:e.getPlayer();if(!i)return!1;let{info:o}=i;return o.canPlayLiveTailBuffer$.getValue()&&!o.isStalled$.getValue()&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),n=e||!o;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${o}`});let s=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};n&&s(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;n||s(),(l=this.store)==null||l.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let n=()=>{var s;(s=this.store)==null||s.actions.internal.setLiveWaitingRecord(!0)};o&&n(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var s;o||n(),(s=this.store)==null||s.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),n=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let s=()=>{var l,d;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!1),(d=this.store)==null||d.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(n){s();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=s)}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}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(Tw()).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)}getTotalViewTime(){var e,i;return(i=(e=this.statistics)==null?void 0:e.thinOneStat)==null?void 0:i.getTotalViewTime()}unmountComponent(e){e&&ra(e)}};import{InterfaceLanguage as Zee,VKNumericLanguage as Xee,loadVKLangPack as Jee}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as tte,VideoFormat as ite}from"@vkontakte/videoplayer-core/es2018";var zee=()=>{window.customElements.define("vk-video-player",Wu)};export{yu as ControlButtonType,as as GridTypes,Zee as InterfaceLanguage,dd as MenuItemType,ys as PlayerPhase,il as VERSION,Xee as VKNumericLanguage,ite as VideoFormat,tte as VideoQuality,Jee as loadVKLangPack,zee as registerPlayerWebComponent};
407
+ /* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.vk-vp-root.svelte-3c0y7j .out-of-view {position:absolute !important;left:-1000vh !important;}.vk-vp-root.svelte-3c0y7j .icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function Nm(t,e){F(e,!0),W(t,Dw);let[i,o]=De(),r=()=>S(Wt,"$isLive$",i),s=()=>S(xt,"$availableSubtitlesList$",i),l=()=>S(je,"$isPreviewTrackHorizontallyAligned$",i),d=h(e,"sources",7),a=h(e,"store",7),u=h(e,"microStoresRoot",7),f=h(e,"videoConfig",7),v=h(e,"uiConfig",7),p=h(e,"title",7),y=h(e,"thumbUrl",7),w=h(e,"interactiveContainer",7),x=h(e,"interactiveController",7),C=h(e,"subtitles",7),T=h(e,"subtitlesForcedLanguage",7),E=h(e,"live",7),R=h(e,"preload",7),A=h(e,"autoplay",7),I=h(e,"volume",7,void 0),O=h(e,"muted",7,void 0),H=h(e,"fromTime",7),B=h(e,"canRewindLive",7),z=h(e,"showAds",7),Z=h(e,"adsSlotId",7,void 0),ae=h(e,"adsParams",7,void 0),q=h(e,"adsAutoplayParam",7,void 0),de=h(e,"duration",7,void 0),X=h(e,"logoClickable",7),fe=h(e,"logoHidden",7),re=h(e,"isMobile",7),le=h(e,"showNextPrevButtons",7,!1),Me=h(e,"nextButtonActive",7,!1),we=h(e,"prevButtonActive",7,!1),te=h(e,"endScreenVideoTitle",7,void 0),Ne=h(e,"endScreenVideoThumb",7,void 0),ue=h(e,"isOneVideoPlaylist",7,!1),k=h(e,"supportLink",7),Ke=h(e,"shadowRootContainer",7),Ve=h(e,"outerContainerRef",7),Y=h(e,"fullScreenTarget",7,void 0),oe=h(e,"failoverHosts",7,void 0),Be=h(e,"showMiniTimer",7,!1),Ye=h(e,"saveRate",7),me=h(e,"seekToInteractive",7,z0),J=h(e,"playPrevChapter",7,z0),Ie=h(e,"volumeMultiplier",7),ge=h(e,"showAutoplayNext",7),Fe=h(e,"showEndScreen",7,!0),Ze=h(e,"keyboardControls",15,void 0),{subscribers:Ge,stores:dt}=u();Dh(v());let Je=Lt(),Ot=v().logoLink,nt=a().ui.debugPanelVisible,Nt=a().ui.playerSize,Wt=a().state.isLive$,Xt=a().state.isInteractive&&Rm.device.isAndroid,Ut=Q(void 0),Se=null,xe=Q(!1);a().getAdmanWrapper().init({switchFromAdsToVideo:a().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:a().actions.internal.switchFromVideoToAds,setMuted:a().actions.external.setMuted},a().ads,{vsid:a().vsid}),Gh(a(),dt),ze(()=>{var K,Mt;a().ui.isMobile.set(re()),(Mt=(K=f().callbacks)==null?void 0:K.onDomReady)==null||Mt.call(K)});let ee=(K=!1)=>{N(xe,!0),K?a().actions.external.firstStart(z()):a().actions.internal.firstStart(z())},Ce=()=>{if(Je.features.qualityDetailsSubMenuEnabled){let K=g1(a().videoId);if(K)switch(K.type){case"high_quality":a().actions.internal.setHighQualityEnabled(!0,K.appliesTo);break;case"traffic_saving":a().actions.internal.setTrafficSavingEnabled(!0,K.appliesTo);break;case"exact_quality":a().actions.internal.setQuality(K.quality);break}}else{h1(a().videoId),bf()&&a().actions.internal.setTrafficSavingEnabled(!0);let Mt=mf(a().videoId);Mt&&a().actions.internal.setQuality(Mt)}};function Pe(K){var qt,ut,Li;let Mt=d()||K;Mt&&a().initVideo({container:n(Ut),sources:Mt,failoverHosts:oe(),subtitles:C(),subtitlesForcedLanguage:T(),volumeMultiplier:Ie()});let ei=Vw.get(bd)==="true";nt.set(ei),H()>0&&a().actions.external.seekTime(H());let pt=re()?Je.volumeDefault:(ut=(qt=I())!=null?qt:uu())!=null?ut:Je.volumeDefault,It=(Li=O())!=null?Li:c1();if(a().actions.external.setVolume(pt),a().actions.external.setMuted(It),a().getAdmanWrapper().setInitialVolume(It?0:pt),Ce(),Je.features.saveRate&&Ye()){let Bi=f1();Bi&&!r()&&a().actions.internal.setPlaybackRate(Bi)}if(ge()){let Bi=m1();Bi&&a().actions.internal.setAutoplayNextEnabled(Bi)}a().ui.isAutoplay.set(A()),A()&&ee(),R()&&Je.features.preload&&a().actions.internal.preload()}let Tt=K=>{if(window.ResizeObserver){let Mt,ei;Se=new ResizeObserver(Rw(pt=>{let It=pt[0];if(It.contentBoxSize){let qt=Array.isArray(It.contentBoxSize)?It.contentBoxSize[0]:It.contentBoxSize;Mt=qt.inlineSize,ei=qt.blockSize}else It.contentRect&&(Mt=It.contentRect.width,ei=It.contentRect.height);Nt.set({width:Mt,height:ei})},300)),Se.observe(K)}Nt.set({width:K.clientWidth,height:K.clientHeight})},Oe=()=>{document.hidden&&a().actions.external.stop()};Rt(()=>{var ei,pt,It,qt;Xt&&document.addEventListener("visibilitychange",Oe),Je.debugLog&&a().actions.internal.startLogging(),Tt(n(Ut));let K=Ge.map(ut=>ut.init({store:a(),microStores:dt,config:f(),interactiveController:x(),uiConfig:v()})),Mt=()=>{Xt&&document.removeEventListener("visibilitychange",Oe),Se==null||Se.disconnect(),K.forEach(ut=>ut.unsubscribe()),a().destroy()};return((ei=E())==null?void 0:ei.status)==="upcoming"?(a().actions.internal.setLiveWaitingStart(!0),Mt):((pt=E())==null?void 0:pt.status)==="waiting"?(a().actions.internal.setLiveWaitingRecover(!0),Mt):(((It=E())==null?void 0:It.status)==="finished"||((qt=E())==null?void 0:qt.status)==="postlive")&&!(d()&&Lw(d()))?(a().actions.internal.setLiveWaitingRecord(!0),Mt):(Pe(),Mt)});function ct(){n(xe)?a().actions.external.play():ee(!0)}function bt(){a().actions.external.pause()}function ye(K){a().actions.external.setMuted(K)}function it(){a().actions.external.toggleSubtitle()}function qe(K,Mt){a().actions.external.changeSubtitle(K,Mt)}function at(K){a().actions.external.changeAudioStream(K)}function Jt(){var K;(K=a().webApi.slotsApi)!=null&&K.haveSlots()&&a().actions.external.hideControls()}function ni(){var K;(K=a().webApi.slotsApi)!=null&&K.haveSlots()&&a().actions.external.showControls()}function fi(K){re()||K>=0&&K<=1&&a().actions.external.setVolume(K)}function bi(K){a().actions.internal.seekTime(K,Nw.UNKNOWN)}function io(K){a().actions.external.seekEpisodeStartTime(K)}function lo(){a().actions.external.returnFocusToEpisodes()}function di(K){a().actions.external.setPlaybackRate(K)}function vt(K){a().actions.external.setAutoQualityLimits(K)}function Ii(){a().actions.external.setQuality("auto")}function Qt(K){a().actions.external.setTrafficSavingEnabled(K)}function St(K){a().actions.external.setHighQualityEnabled(K)}let ti=tp(Je.view),Gt=f().playerView==="preview",xt=a().state.availableSubtitlesList$;if(Je.features.initSubtitles){let K=!1;ze(()=>{var Mt;if(!K&&s().length){K=!0;let ei;if(Je.features.userVideoPrefs&&a().videoId){let It=mu(Je.userSalt,String(a().videoId));It!=null&&It.subtitleTrackId&&(ei=s().find(qt=>qt.value===It.subtitleTrackId))}let pt=(Mt=T())!=null?Mt:yf();pt&&(ei=s().find(It=>It.language===pt)),a().actions.internal.setSubtitle(ei)}})}let je=a().ui.isPreviewTrackHorizontallyAligned;var $i=Ow();let _o;var Qo=_($i);{var sn=K=>{Lm(K,{get store(){return a()},get uiConfig(){return Je},get thumbUrl(){return y()},get interactiveContainer(){return w()},get live(){return E()},get autoplay(){return A()},get canRewindLive(){return B()},get showAds(){return z()},get adsSlotId(){return Z()},get adsParams(){return ae()},get adsAutoplayParam(){return q()},get duration(){return de()},get logoClickable(){return X()},get logoHidden(){return fe()},get logoTargetUrl(){return Ot},get nextButtonActive(){return Me()},get prevButtonActive(){return we()},get endScreenVideoTitle(){return te()},get endScreenVideoThumb(){return Ne()},get isOneVideoPlaylist(){return ue()},get supportLink(){return k()},get shadowRootContainer(){return Ke()},get outerContainerRef(){return Ve()},get fullScreenTarget(){return Y()},get showMiniTimer(){return Be()},get playerStarted(){return n(xe)},get seekToInteractive(){return me()},get playPrevChapter(){return J()},firstStart:ee,seekTime:bi,get showEndScreen(){return Fe()},get showAutoplayNext(){return ge()},get showNextPrevButtons(){return le()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(Ut)},set videoContainer(Mt){N(Ut,Mt,!0)}})},Et=K=>{var Mt=He(),ei=pe(Mt);{var pt=qt=>{Vm(qt,{get thumbUrl(){return y()},get outsideDuration(){return de()},get canRewindLive(){return B()},get videoContainer(){return n(Ut)},set videoContainer(ut){N(Ut,ut,!0)}})},It=qt=>{Pm(qt,{get store(){return a()},get uiConfig(){return Je},get title(){return p()},get thumbUrl(){return y()},get interactiveContainer(){return w()},get live(){return E()},get autoplay(){return A()},get canRewindLive(){return B()},get showAds(){return z()},get adsSlotId(){return Z()},get adsParams(){return ae()},get adsAutoplayParam(){return q()},get duration(){return de()},get logoClickable(){return X()},get logoHidden(){return fe()},get logoTargetUrl(){return Ot},get nextButtonActive(){return Me()},get prevButtonActive(){return we()},get endScreenVideoTitle(){return te()},get endScreenVideoThumb(){return Ne()},get isOneVideoPlaylist(){return ue()},get supportLink(){return k()},get shadowRootContainer(){return Ke()},get outerContainerRef(){return Ve()},get fullScreenTarget(){return Y()},get showMiniTimer(){return Be()},get playerStarted(){return n(xe)},get seekToInteractive(){return me()},get playPrevChapter(){return J()},firstStart:ee,get showEndScreen(){return Fe()},get showAutoplayNext(){return ge()},get showNextPrevButtons(){return le()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(Ut)},set videoContainer(ut){N(Ut,ut,!0)},get keyboardControls(){return Ze()},set keyboardControls(ut){Ze(ut)}})};V(ei,qt=>{Gt?qt(pt):qt(It,!1)})}b(K,Mt)};V(Qo,K=>{re()?K(sn):K(Et,!1)})}g($i),D(K=>{_o=ne($i,1,"vk-vp-root svelte-3c0y7j",null,_o,K),Xe($i,ti)},[()=>({"root--miui-browser":Rm.device.isMobile&&Rm.browser.isMiuiBrowser,"visible-outside":Gt,"preview-track-horizontally-alinged":l()})]),b(t,$i);var Dt=U({initVideo:Pe,play:ct,pause:bt,setMuted:ye,toggleSubtitle:it,changeSubtitle:qe,changeAudioStream:at,hideControls:Jt,showControls:ni,setVolume:fi,seekTime:bi,seekEpisodeStartTime:io,returnFocusToEpisodes:lo,setPlaybackRate:di,setAutoQualityLimits:vt,setAutoQuality:Ii,toggleTrafficSaving:Qt,toggleHighQuality:St,get sources(){return d()},set sources(K){d(K)},get store(){return a()},set store(K){a(K)},get microStoresRoot(){return u()},set microStoresRoot(K){u(K)},get videoConfig(){return f()},set videoConfig(K){f(K)},get uiConfig(){return v()},set uiConfig(K){v(K)},get title(){return p()},set title(K){p(K)},get thumbUrl(){return y()},set thumbUrl(K){y(K)},get interactiveContainer(){return w()},set interactiveContainer(K){w(K)},get interactiveController(){return x()},set interactiveController(K){x(K)},get subtitles(){return C()},set subtitles(K){C(K)},get subtitlesForcedLanguage(){return T()},set subtitlesForcedLanguage(K){T(K)},get live(){return E()},set live(K){E(K)},get preload(){return R()},set preload(K){R(K)},get autoplay(){return A()},set autoplay(K){A(K)},get volume(){return I()},set volume(K){I(K)},get muted(){return O()},set muted(K){O(K)},get fromTime(){return H()},set fromTime(K){H(K)},get canRewindLive(){return B()},set canRewindLive(K){B(K)},get showAds(){return z()},set showAds(K){z(K)},get adsSlotId(){return Z()},set adsSlotId(K){Z(K)},get adsParams(){return ae()},set adsParams(K){ae(K)},get adsAutoplayParam(){return q()},set adsAutoplayParam(K){q(K)},get duration(){return de()},set duration(K){de(K)},get logoClickable(){return X()},set logoClickable(K){X(K)},get logoHidden(){return fe()},set logoHidden(K){fe(K)},get isMobile(){return re()},set isMobile(K){re(K)},get showNextPrevButtons(){return le()},set showNextPrevButtons(K){le(K)},get nextButtonActive(){return Me()},set nextButtonActive(K){Me(K)},get prevButtonActive(){return we()},set prevButtonActive(K){we(K)},get endScreenVideoTitle(){return te()},set endScreenVideoTitle(K){te(K)},get endScreenVideoThumb(){return Ne()},set endScreenVideoThumb(K){Ne(K)},get isOneVideoPlaylist(){return ue()},set isOneVideoPlaylist(K){ue(K)},get supportLink(){return k()},set supportLink(K){k(K)},get shadowRootContainer(){return Ke()},set shadowRootContainer(K){Ke(K)},get outerContainerRef(){return Ve()},set outerContainerRef(K){Ve(K)},get fullScreenTarget(){return Y()},set fullScreenTarget(K){Y(K)},get failoverHosts(){return oe()},set failoverHosts(K){oe(K)},get showMiniTimer(){return Be()},set showMiniTimer(K){Be(K)},get saveRate(){return Ye()},set saveRate(K){Ye(K)},get showAutoplayNext(){return ge()},set showAutoplayNext(K){ge(K)},get seekToInteractive(){return me()},set seekToInteractive(K){me(K)},get playPrevChapter(){return J()},set playPrevChapter(K){J(K)},get volumeMultiplier(){return Ie()},set volumeMultiplier(K){Ie(K)},get showEndScreen(){return Fe()},set showEndScreen(K){Fe(K)},get keyboardControls(){return Ze()},set keyboardControls(K){Ze(K)}});return o(),Dt}var Bw=Ee('<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 Om(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Bw();ke(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 r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}function Dm(t,e){let i=h(e,"isWhite",3,!1),o=m(()=>i()?"color: #fff;":"color: #909499;");Om(t,{get style(){return n(o)}})}var Hw=M('<div class="title svelte-1y9fytq"> </div>'),Fw=M('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),Uw={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 Bm(t,e){W(t,Uw);var i=Fw(),o=_(i);{var r=d=>{var a=Hw(),u=_(a,!0);g(a),D(()=>ve(u,e.title)),b(d,a)};V(o,d=>{e.title&&d(r)})}var s=P(o,2);{var l=d=>{let a=m(()=>!!e.thumbUrl);Dm(d,{get isWhite(){return n(a)}})};V(s,d=>{(!e.title||!e.thumbUrl)&&d(l)})}g(i),D(()=>Xe(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}var zw=M('<div class="playerError svelte-m5iv29"><!></div>'),Ww={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 Hm(t){W(t,Ww);var e=zw(),i=_(e);Fa(i,{}),g(e),b(t,e)}import{now as _6,ValueSubject as b6}from"@vkontakte/videoplayer-shared/es2018";import{cloneDeepWith as $6,InterfaceLanguage as y6,isNonNullable as Qm,Logger as x6,Observable as w6,Subscription as Z0,once as S6,InternalsExposure as C6,skip as T6,getPlayerId as E6}from"@vkontakte/videoplayer-shared/es2018";import{clientChecker as X0,isMobile as I6}from"@vkontakte/videoplayer-core/es2018";import{OneStat as k6,ThinOneStat as A6,MediascopePixel as P6}from"@vkontakte/videoplayer-statistics/es2018";import{Logger as Kw,Subscription as qw}from"@vkontakte/videoplayer-shared/es2018";var ip=class{constructor(){this.subscription=new qw,this.logger=new Kw,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[r,s]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,r,s)}catch(l){throw new Error(`The media session action "${r}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var s,l;let o=be(e.state.currentPlaybackRate$),r=be(e.state.duration$);if(!(!isFinite(i)||!isFinite(r)))try{(l=(s=navigator.mediaSession).setPositionState)==null||l.call(s,{position:i,playbackRate:o,duration:r})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${r}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{ValueSubject as zm,detectEmbed as Xw}from"@vkontakte/videoplayer-shared/es2018";var Qw=Ee('<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 Fm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Qw();ke(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 r=_(o);_e(r,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),g(o),b(t,o)}var Gw=M('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),jw={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 Um(t,e){F(e,!0),W(t,jw);let[i,o]=De(),r=()=>S(u,"$interfaceLanguage$",i),s=()=>S(f,"$isMobile$",i),l=he(),d=Lt(),a=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,f=l.ui.isMobile,v=l.ui.t,p=m(()=>r()&&v("pip_dummy_title")),y=tp(d.view);var w=Gw();let x;var C=_(w);let T;var E=_(C);Fm(E,{}),g(C);var R=P(C,2),A=_(R,!0);g(R),g(w),D((I,O)=>{x=ne(w,1,"player-pip-dummy svelte-1pbsod4",null,x,I),Xe(w,y),T=ne(C,1,"dummy-image svelte-1pbsod4",null,T,O),ve(A,n(p))},[()=>({"is-pip-api":a}),()=>({desktop:!s()})]),b(t,w),U(),o()}var Yw=Object.defineProperty,Zw=(t,e,i)=>e in t?Yw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Fl=(t,e,i)=>Zw(t,typeof e!="symbol"?e+"":e,i),Jw=460,e6=280,vc=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 zm(!1),isEnabled$:new zm(!1),type:1}),this.info.isEnabled$=new zm(e)}isSupported(){let{isEmbed:e}=Xw();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:Jw,height:e6,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(u=>u.cssText).join(" ")).filter(Boolean).join(`
408
+ `),r=document.createElement("style");r.textContent=o;let s=this.createStretchedContainer(),l=s.attachShadow({mode:"open"});l.append(r),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=qr(Um,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||(ya(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 W0(t){return t instanceof vc}var op=class{static getLatestSupportedVersion(e){let i=new Ea(e),o=new vc(e);if(o.isSupported())return o;if(i.isSupported())return i}};function mc(t,e){var r,s;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(s=(r=e[l])!=null?r:t[l])!=null?s:void 0;return o}var K0="Inner error. Unexpectedly root annotation container null reference exception",q0="Annotation with such name already exists",Q0="Annotation with such name does not exist";var Ul=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as t6,Subscription as i6,throttleFn as o6}from"@vkontakte/videoplayer-shared/es2018";var n6="1",r6=100,np=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new i6}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=o6(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},r6);this.subscriptions.add(t6(this.rootAnnotationsContainer).subscribe(({width:o,height:r})=>{this.playerSize={width:o,height:r},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new Ul(K0);if(this.annotations.has(e))throw new Ul(q0);i.style.zIndex=(o=i.style.zIndex)!=null?o:n6,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 Ul(Q0);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let r=e.offsetTop,s=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return r<0||s<0||s+l>i||r+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as rp,Subscription as s6}from"@vkontakte/videoplayer-shared/es2018";var rn=class{init({store:e,microStores:i,interactiveController:o,config:r}){return rp(e),rp(i),rp(r),r.interactiveData&&rp(o),this.subscription=new s6,this.subscription}};var gc=class extends rn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...se(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:r}=i.store.state;return o.add(r.subscribe(s=>{this.state$.set(s?!0:null)})),o}};var hc=class extends rn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...se(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:r,store:s}=i,{fakeIsPlaying$:l}=r,{isInteractiveExpectation$:d,isPlaying$:a}=s.state,{controlsVisible:u,isMobile:f}=s.ui,v=be(f),p=()=>v&&be(u);return o.add(u.subscribe(y=>{if(!v)return;let w=be(l);be(a)?this.state$.set(y):w!==null&&this.state$.set(!w||y)})),o.add(a.subscribe(y=>{this.state$.set(!y||p())})),o.add(l.subscribe(y=>{if(y===null)return;let w=be(d);if(p()){this.state$.set(!0);return}w&&this.state$.set(!y)})),o}};var _c=class extends rn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=se("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:r}=i;return o.add(r.state.interactiveEpisodes$.subscribe(s=>{s.length&&(s.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};import{combine as a6}from"@vkontakte/videoplayer-shared/es2018";var Wm=se(!1),sp=null,bc=class extends rn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Wm,set:(i,o=!1)=>{i!==be(Wm)&&(this.clearTimeout(),Wm.set(i),!i&&sp&&(sp=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:r,config:s}=i,{isInteractiveTime$:l,isPlaying$:d}=r.state,a=r.ui.controlsVisible,{interactiveTimeIndicator:u}=r.ui.controls;o.add(a.subscribe(v=>{be(l)&&v&&this.state$.set(!1)}));let f=(s==null?void 0:s.interactiveData)||{tooltipHelpHintActive:!1};return o.add(a6({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:v,isInteractiveTime$:p,interactiveTimeIndicator:y})=>{var w,x;if(!(!v||!(y!=null&&y.isDisplayed))){if(!p)return this.state$.set(!1);f.tooltipHelpHintActive&&sp===null&&(sp=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(x=(w=r.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||x.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as l6,noop as d6}from"@vkontakte/videoplayer-shared/es2018";var $c=class extends rn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...se(null),toggle:d6};this.checkIfShouldHide=i=>Is(i,"s")}init(i){let o=super.init(i),{store:r,interactiveController:s}=i,l=r.ui.currentGridType$,d=r.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide(be(l)))return;let a=be(this.state$),{isEnded$:u,playbackState$:f}=r.state,{disabledControls$:v}=r.ui.controls,p=be(u),y=be(f);if(a)try{await(s==null?void 0:s.toggleGraphView(!1)),this.state$.set(!1),v.remove(af),!p&&this.graphMadePause&&r.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=y==="playing";try{await(s==null?void 0:s.toggleGraphView(!0)),this.state$.set(!0),v.add(af),!p&&this.graphMadePause&&r.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add(l6({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 G0}from"@vkontakte/videoplayer-shared/es2018";var yc=class extends rn{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:r}=i,{info:{isActive$:s,isEnabled$:l,type:d}}=r.webApi.pictureInPictureApi||{info:{isActive$:new G0(!1),isEnabled$:new G0(!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 p6,filterChanged as f6}from"@vkontakte/videoplayer-shared/es2018";import{safeStorage as Km}from"@vkontakte/videoplayer-shared/es2018";var j0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?c6({maxCount:t}):void 0,e!==0?u6({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(r=>r.notificationShowed(o)),canShowNotification:o=>i.every(r=>r.canShowNotification(o))}},c6=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,r;e[i]=((o=e[i])!=null?o:0)+1,Km.set("videoplayer_notifications_manager_count",JSON.stringify((r=e[i])!=null?r:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},u6=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Km.get(e)||"{}")}catch(s){return{}}},o=s=>Km.set(e,JSON.stringify(s)),r=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&&r(s),d}else return!0}}};var xc=class extends rn{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:r,uiConfig:{features:{maxCountShowSlowVideoNotification:s,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:a}}}=i;this.notificationManager=j0({maxShowCount:s,timeout:l});let u=r.getPlayer();return o.add(u.events.severeStallOccured$.pipe(f6(),p6(f=>f)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(a&&r.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var Y0=()=>[gc,hc,_c,bc,$c,yc,xc].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 wc}from"@vkontakte/videoplayer-shared/es2018";var ap=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 v6=M('<div class="root svelte-9ubj1t"><!></div>'),m6={hash:"svelte-9ubj1t",code:".root.svelte-9ubj1t {position:absolute;display:flex;inset:0;align-items:center;justify-content:center;pointer-events:none;z-index:1;}"};function qm(t,e){F(e,!0),W(t,m6);let i=null,o=Q(null);ze(()=>(n(o)&&(i=window.setTimeout(()=>{N(o,null)},e.animationDuration)),()=>{i&&clearTimeout(i)}));function r(a){e.playbackStatusShow&&N(o,a?"prev":"next",!0)}var s=He(),l=pe(s);{var d=a=>{var u=He(),f=pe(u);xs(f,()=>n(o),v=>{var p=v6(),y=_(p);let w=m(()=>n(o)==="prev");pc(y,{get duration(){return e.animationDuration},get Icon(){return Yd},get isPrev(){return n(w)}}),g(p),b(v,p)}),b(a,u)};V(l,a=>{e.playbackStatusShow&&n(o)&&a(d)})}return b(t,s),U({startVideoChangedAnimation:r})}var g6=Object.defineProperty,h6=(t,e,i)=>e in t?g6(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,jt=(t,e,i)=>h6(t,typeof e!="symbol"?e+"":e,i),M6={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:y6.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:I6(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Fn=Q(void 0),Gm=ai({animationDuration:0,playbackStatusShow:!1}),lp=class extends HTMLElement{constructor(){super(),jt(this,"svelteStubComponent"),jt(this,"svelteRootComponent"),jt(this,"sveltePersistentLayerComponent"),jt(this,"svelteErrorComponent"),jt(this,"store"),jt(this,"microStoresRoot"),jt(this,"statistics"),jt(this,"sentry"),jt(this,"_shadowRoot"),jt(this,"playerContainer"),jt(this,"rootContainer"),jt(this,"shadowRootContainer"),jt(this,"playerId"),jt(this,"uiConfig"),jt(this,"coreConfig"),jt(this,"statisticsConfig"),jt(this,"interactiveController"),jt(this,"interactiveContainer"),jt(this,"graphMadePause"),jt(this,"currentPlayingVideoIndex",0),jt(this,"needToRepeatPlaylist",!1),jt(this,"videoConfig"),jt(this,"pictureInPictureApi"),jt(this,"mediaSessionApi"),jt(this,"unsubscribePlayerPhaseSubscription"),jt(this,"logger"),jt(this,"log"),jt(this,"subscription"),jt(this,"interactiveSubscription"),jt(this,"annotationsApi"),jt(this,"slotsApi"),jt(this,"focusManager"),jt(this,"prevIsid"),jt(this,"isInited",!1),jt(this,"internalsExposure",null),jt(this,"shadowDOMCallbacksDisabled",!1),jt(this,"fatalError$",new b6(null)),jt(this,"createOneStat",(e,i={})=>{var o,r,s,l;if(!this.videoConfig)return;let{albumId:d,statPlace:a,statUserSalt:u,statTrackCode:f,statVKAppId:v,refreshStatAuthToken:p,autoplay:y,isMobile:w,isTouch:x,refDomain:C,deviceId:T,interactiveData:E}=mc(this.videoConfig,i),R=(o=E==null?void 0:E.projectInfo)==null?void 0:o.pid,A=(s=(r=this.interactiveController)==null?void 0:r.state.isReplay$.getValue())!=null?s:!1;A&&(this.prevIsid=void 0);let{unitedVideoId:I,isClip:O=!1}=e;if(this.uiConfig.features.statistics&&I)try{return new k6({movieId:I,albumId:d,place:a,trackCode:f,vkAppId:v,autoplay:(l=y&&!this.interactiveController)!=null?l:!1,mobile:x!=null?x:w,clip:O,refDomain:C,deviceId:T,isPreviewPlayerView:this.videoConfig.playerView==="preview",...R&&(!this.isInited||A)&&{projectId:Number(R)}},{refreshAuthToken:p,userSalt:u,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}catch(B){console.error(B),this.log({message:B.message})}}),wc.create("ui"),this.logger=new x6,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Z0,this.interactiveSubscription=new Z0,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=qr(Hm,{target:this.playerContainer}))})}connectedCallback(){var e,i;if(this.rootContainer)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,r=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,s=ai({title:o,thumbUrl:r}),l={target:this.playerContainer,props:s};this.svelteStubComponent=qr(Bm,l),this.sveltePersistentLayerComponent=qr(qm,{target:this.playerContainer,props:Gm})}updatePersistentLayerProps(){if(!this.uiConfig)return;let{playbackStatusNextVideoAnimationDuration:e,features:{playbackStatusShow:i,playbackStatusNextVideoShow:o}}=this.uiConfig;Gm.animationDuration=e,Gm.playbackStatusShow=i&&o}disconnectedCallback(){var e,i,o,r,s,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(r=this.mediaSessionApi)==null||r.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),this.unmountComponent(this.sveltePersistentLayerComponent),this.subscription.unsubscribe(),(s=this.unsubscribePlayerPhaseSubscription)==null||s.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),wc.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:r,refreshStatAuthToken:s}=mc(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new A6.ThinOneStat({deviceId:o,movieId:l,preload:r,isPreviewPlayerView:this.videoConfig.playerView==="preview"},{config:this.statisticsConfig,refreshAuthToken:s})}createPlayer(e,i={},o){var r,s,l,d,a,u,f,v,p,y;if(!this.videoConfig)return;let{albumId:w,statPlace:x,statAuthToken:C,preload:T,autoplay:E,volume:R,muted:A,fromTime:I,canRewindLive:O,supportLink:H,showAds:B,adsSlotId:z,adsParams:Z={},adsAutoplayParam:ae,interfaceLanguage:q,isCyrillicRelatedInterface:de,logoClickable:X,logoHidden:fe,isMobile:re,isTouch:le,isAudioDisabled:Me,isLiveCatchUpMode:we,fullScreenTarget:te,failoverHosts:Ne,canDownload:ue,callbacks:k,interactiveData:Ke,showThumbTimer:Ve,additionalButtons:Y=[],additionalSettingsMenuItems:oe=[],additionalContextMenuItems:Be=[],repeat:Ye,loop:me,saveRate:J,volumeMultiplier:Ie,showEndScreen:ge,showAutoplayNext:Fe,mediascopePixels:Ze}=mc(this.videoConfig,i),{sources:Ge,title:dt,thumbUrl:Je,unitedVideoId:Ot,isClip:nt=!1,duration:Nt,adsParams:Wt={},videoEpisodes:Ct,previewThumbsData:Xt,subtitles:Ut,subtitlesForcedLanguage:Se,live:xe,adsExternalApi:ee}=e;if(!Ge&&!xe){let di=new Error("empty sources and live");this.fatalError$.next(di),(r=k.onCrashed)==null||r.call(k,di.message);return}let Ce={...Z,...Wt},Pe=this.getNextVideoInfo(),Tt={sources:Ge,title:dt,thumbUrl:Je,subtitles:Ut,subtitlesForcedLanguage:Se,unitedVideoId:Ot,isClip:nt,live:xe,albumId:w,statPlace:x,autoplay:E,muted:A,volume:R,fromTime:I,canRewindLive:O,showAds:B,adsSlotId:z,adsParams:Ce,adsAutoplayParam:ae,duration:Nt,logoClickable:X,logoHidden:fe,isTouch:le!=null?le:re,repeat:Ye,loop:me,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Pe.nextVideoTitle,endScreenVideoThumb:Pe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Oe={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(Tt)}`});let ct=(s=this.interactiveController)==null?void 0:s.state.statistics$.getValue(),bt=(ct==null?void 0:ct.oneStat)||this.createOneStat(e,i),ye=this.createThinOneStat(e,i),it;Ze&&(it=new P6({pixels:Ze})),(bt||ye)&&(this.statistics=new Bu(bt,ye,it,ct==null?void 0:ct.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Ta(this.uiConfig.sentry,{version:Sl,env:lu},{movieId:Ot,albumId:w,place:x,autoplay:(l=E&&!this.interactiveController)!=null?l:!1,mobile:le!=null?le:re,clip:nt}),this.interactiveController&&((u=this.prevIsid)!=null||(this.prevIsid=(a=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:a.isid$.getValue())),this.sentry={...this.sentry,...Ta.getInstance()};let at=!!Ke,Jt=[],ni="tooltip_interactive_go_back_disabled_first";if(at&&this.interactiveController){let di=this.interactiveController.state.isInitialChapter$.getValue(),vt=this.interactiveController.getHistoryState();di&&Jt.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Jt.push("SEEK_TO_INTERACTIVE_BUTTON"),vt.hasPrevChapter$.getValue()||(Jt.push("PLAY_PREV_CHAPTER_BUTTON"),di||(vt.isGoBackLimited$.getValue()?ni="tooltip_interactive_go_back_disabled_limit":ni="tooltip_interactive_go_back_disabled"))}let fi=()=>{var di;this.isInited=!1,this.prevIsid=void 0;let vt=(o==null?void 0:o.info.isEnded$.getValue())&&((di=this.interactiveController)==null?void 0:di.state.isEndChapter$.getValue());k.onReplayInteractiveVideo&&!vt?k.onReplayInteractiveVideo():this.replayInteractiveVideo()},bi=Ye&&this.videoConfig.videos.length===1;this.store=a0({player:o,interfaceLanguage:q,isCyrillicRelatedInterface:de,videoId:Ot,isClip:nt,isLiveCatchUpMode:we,isAudioDisabled:Me,statAuthToken:C,callbacks:k,webApi:Oe,videoEpisodes:Ct,previewThumbsData:Xt,canDownload:ue,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Jt,isInteractive:at,saveRate:J,interactiveRanges$:(f=this.interactiveController)==null?void 0:f.state.interactiveRanges$,isInteractiveTime$:(v=this.interactiveController)==null?void 0:v.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:fi,playPrevChapterDisabledTooltip:ni,hasInteractiveBranches:!!((y=(p=this.interactiveController)==null?void 0:p.getChapterBranches())!=null&&y.length),additionalButtons:this.uiConfig.features.additionalButtons?Y:[],additionalSettingsMenuItems:oe!=null?oe:[],additionalContextMenuItems:Be!=null?Be:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:di=>{var vt;return(vt=this.sveltePersistentLayerComponent)==null?void 0:vt.startVideoChangedAnimation(di)},looped:this.uiConfig.features.useLoopSetting?me:bi,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:io}=this.microStoresRoot=Y0(),lo=()=>{var di,vt,Ii,Qt,St,ti;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(xt=>{var je;return(je=k==null?void 0:k.onCurrentFormatChanged)==null?void 0:je.call(k,xt)})),this.subscription.add(io.interactiveControlsOpacity$.subscribe(xt=>{var je;xt!==null&&((je=this==null?void 0:this.interactiveController)==null||je.setDisabledControls(xt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(xt=>{var je;return(je=k==null?void 0:k.onThroughputEstimationChanged)==null?void 0:je.call(k,xt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(xt=>{var je;return(je=k==null?void 0:k.onTrafficSavingEnabledChanged)==null?void 0:je.call(k,xt)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(xt=>{var je;return(je=k==null?void 0:k.onHighQualityEnabledChanged)==null?void 0:je.call(k,xt)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(xt=>{var je;return(je=k==null?void 0:k.onAutoQualityEnabledChanged)==null?void 0:je.call(k,!!xt)})),this.subscription.add(new w6(xt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(je=>xt.next(je)))}).pipe(T6(1)).subscribe(xt=>{var je;return(je=k==null?void 0:k.onCurrentPlaybackRateChanged)==null?void 0:je.call(k,xt)})),this.subscription.add(this.store.state.volume$.subscribe(xt=>{var je;return(je=k==null?void 0:k.onVolumeChange)==null?void 0:je.call(k,xt)})),this.subscription.add(this.store.state.muted$.subscribe(xt=>{var je,$i,_o,Qo;if(xt)(je=k==null?void 0:k.onMute)==null||je.call(k);else{let sn=(_o=(($i=this.store)==null?void 0:$i.state.volume$)&&be(this.store.state.volume$))!=null?_o:0;(Qo=k==null?void 0:k.onUnmute)==null||Qo.call(k,sn)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(xt=>{var je;return(je=k==null?void 0:k.onVideoBitrateChanged)==null?void 0:je.call(k,xt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(xt=>{var je;let $i=(je=this.store)==null?void 0:je.ui.controls.disabledControls$;$i&&(xt&&!$i.includes($d)&&$i.add($d),xt||$i.remove($d))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async xt=>{var je;if(!X0.browser.isSamsungBrowser||!xt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((je=this.videoConfig)==null?void 0:je.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(xt=>{var je;return(je=k==null?void 0:k.onVSIDChanged)==null?void 0:je.call(k,xt)})),this.initMediaSession(),N(Fn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Ge,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:dt,thumbUrl:Je,subtitles:Ut,subtitlesForcedLanguage:Se,live:xe,preload:T,autoplay:E,muted:A,volume:R,fromTime:I,canRewindLive:O,supportLink:H,showAds:B,adsSlotId:z,adsParams:Ce,adsAutoplayParam:ae,duration:Nt,logoClickable:X,logoHidden:fe,isMobile:le!=null?le:re,failoverHosts:Ne,fullScreenTarget:te,saveRate:J,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Ve,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Pe.nextVideoTitle,endScreenVideoThumb:Pe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Ie,showEndScreen:ge,showAutoplayNext:Fe,adsExternalApi:ee},!0);let Gt={target:this.playerContainer,props:n(Fn)};this.svelteRootComponent=qr(Nm,Gt),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Ii=(vt=(di=this.videoConfig)==null?void 0:di.callbacks)==null?void 0:vt.onInited)==null||Ii.call(vt)),(Qt=this.internalsExposure)==null||Qt.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=(St=this.videoConfig)==null?void 0:St.callbacks)!=null&&ti.onDevNullLog)?wc.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):wc.destroy("ui")};this.coreConfig.asyncResolveClientChecker?X0.isInited$.subscribe(di=>{di&&(console.log("UI SDK async start"),lo())}):lo()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,r=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!r)return;let s=(i=this.videoConfig)==null?void 0:i.callbacks;s&&this.subscription.add(o.playerPhase.subscribe(d=>{var a;return(a=s.onPlayerPhaseChanged)==null?void 0:a.call(s,d)})).add(o.state.playbackState$.subscribe(d=>{var a;return d&&((a=s.onPlaybackStateChanged)==null?void 0:a.call(s,d))})).add(o.state.isLive$.subscribe(d=>{var a;return(a=s.onIsLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isActiveLive$.subscribe(d=>{var a;return(a=s.onIsActiveLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var a;return(a=s.onIsAudioAvailableChanged)==null?void 0:a.call(s,d)})).add(o.state.currentQuality$.subscribe(d=>{var a;return(a=s.onCurrentQualityChanged)==null?void 0:a.call(s,d)})).add(o.state.availableQualities$.subscribe(d=>{var a;return(a=s.onAvailableQualitiesChanged)==null?void 0:a.call(s,d.map(({value:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&s.onAudioLanguagesAvailable&&s.onAudioLanguagesAvailable()})).add(r.pictureInPicture$.isActive$.subscribe(d=>{var a,u;return d?(a=s.onPiPEnter)==null?void 0:a.call(s):(u=s.onPiPExit)==null?void 0:u.call(s)}));let l=s==null?void 0:s.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var a;return(a=l.onControlsVisibleChanged)==null?void 0:a.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var a;return(a=l.onIsMobileChanged)==null?void 0:a.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var a;return(a=l.onPlayerSizeChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var a;return(a=l.onPrevButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var a;return(a=l.onPlayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var a;return(a=l.onReplayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var a;return(a=l.onNextButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var a;return(a=l.onPlayPrevChapterChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var a;return(a=l.onSeekToInteractiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var a;return(a=l.onGraphButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var a;return(a=l.onLiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var a;return(a=l.onTimeUpdateChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var a;return(a=l.onEpisodesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var a;return(a=l.onSubtitlesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var a;return(a=l.onTopLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var a;return(a=l.onTopRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var a;return(a=l.onBottomLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var a;return(a=l.onBottomRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var a;return(a=l.onMiddleControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var a;return(a=l.onBottomControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var a;return(a=l.onTitleChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var a;return(a=l.onSettingsChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var a;return(a=l.onFullscreenChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var a;return(a=l.onChromecastChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var a;return(a=l.onPipChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var a;return(a=l.onVkLogoChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var a;return(a=l.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var a;return(a=l.onTimelineChanged)==null?void 0:a.call(l,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let r=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!r){this.log({message:"no next video"});return}this.isInited&&Qm(r.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(r.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(r,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}async initInteractives(){var e,i,o,r,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?be(a):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:v,historyApi:p,videoLoader:y}=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:y,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation},endChapterHistoryFix:this.uiConfig.features.interactiveHistoryEndChapterFix});let{isInteractiveExpectation$:w,isSeekable$:x}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(x.subscribe(T=>{if(!this.isInited)return;let E=this.store;T?E.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):E.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(w.subscribe(T=>{this.store&&this.store.state.isInteractiveExpectation$.set(T)}));let 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 R,A,I,O,H,B;if(!this.store||!this.microStoresRoot)return;let z=w.getValue();if(T==="action-choice"&&E==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(yd)),T==="action-choice-canceled"){let Z=be(this.store.state.isPlaying$)||z;if(((I=(R=this.videoConfig)==null?void 0:R.isTouch)!=null?I:(A=this.videoConfig)!=null&&A.isMobile)&&Z){this.store.ui.interactiveHideMobileControls.set(!0);return}(B=(O=this.videoConfig)==null?void 0:(H=O.callbacks).onDisabledInteractiveClick)==null||B.call(H)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:T,removeAllOpenURI:E})=>{this.store&&T==="container-fake-removed"&&E&&this.store.ui.controls.disabledControls$.remove(yd)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let T=this.interactiveController.getHistoryState();this.subscription.add(T.history$.subscribe(E=>{var R,A,I;E.length&&((I=(A=(R=this.videoConfig)==null?void 0:R.callbacks)==null?void 0:A.onInteractiveHistoryChanged)==null||I.call(A,E))}))}(l=(s=this.videoConfig)==null?void 0:s.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(T=>{var E,R,A;(A=(E=this.videoConfig)==null?void 0:(R=E.callbacks).onInteractiveChapterChanged)==null||A.call(R,T.chapter,T.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var T,E,R,A;(T=this.microStoresRoot)==null||T.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(A=(E=this.videoConfig)==null?void 0:(R=E.callbacks).onInteractiveTimeIndicatorClick)==null||A.call(R)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(T=>{this.log({message:T.toString()})}))}catch(d){this.log({message:d.message})}}initPlayer(e,i={}){var o,r,s,l,d,a,u,f,v,p,y,w,x,C,T,E,R,A,I,O,H,B,z,Z,ae,q,de,X;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let fe=new Error("empty videos");this.fatalError$.next(fe),(r=(o=e.callbacks)==null?void 0:o.onCrashed)==null||r.call(o,fe.message);return}else this.fatalError$.next(null);if(this.videoConfig=mc(M6,$6(e,fe=>fe instanceof HTMLElement?fe:void 0)),this.playerId=E6(e.playerId),this.uiConfig=Oh((s=i.ui)!=null?s:{}),this.updatePersistentLayerProps(),this.coreConfig=(l=i.core)!=null?l:{configName:[]},this.statisticsConfig=(d=i.statistics)!=null?d:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer&&(this.rootContainer.style.minHeight="unset"),this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},this.uiConfig.features.exposeInternalsToGlobal&&((u=this.internalsExposure)!=null||(this.internalsExposure=new C6("ui",this.playerId))),wc.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:[_6()]}),Qm(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(p=(v=this.uiConfig.features.mediaSession)!=null?v:this.videoConfig.isMediaSessionEnabled)!=null?p:!0),Qm(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(w=(y=this.uiConfig.features.pip)!=null?y:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0,this.uiConfig.features.dpip=(C=(x=this.uiConfig.features.dpip)!=null?x:this.videoConfig.isPictureInPictureEnabled)!=null?C:!0),this.uiConfig.ads.paramsOverride={preview:(T=this.uiConfig.ads.preview)!=null?T:this.videoConfig.adsPreviewParam,...this.uiConfig.ads.paramsOverride},this.videoConfig.isTouch=(R=(E=this.uiConfig.isMobile)!=null?E:this.videoConfig.isTouch)!=null?R:this.videoConfig.isMobile,(A=this.videoConfig).autoplay&&(A.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(I=this.uiConfig.ads.enable)!=null?I:this.videoConfig.showAds,this.videoConfig.adsSlotId=(O=this.uiConfig.ads.slot)!=null?O:this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!((H=this.uiConfig.showLogo)!=null?H:!this.videoConfig.logoHidden),(B=this.videoConfig).canRewindLive&&(B.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(z=this.videoConfig.supportLink)!=null?z:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(Z=this.uiConfig.features.endScreen)!=null?Z:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(ae=this.uiConfig.features.autoplayNext)!=null?ae:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(q=this.uiConfig.features.nextPrevButtons)!=null?q:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((de=this.videoConfig.videos)!=null&&de[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let fe={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=op.getLatestSupportedVersion(fe):this.pictureInPictureApi=new Ea(fe)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new ip:void 0,this.slotsApi=this.uiConfig.features.slots?new Xu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new np(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]),W0(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(X=this.slotsApi)==null||X.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new ap(this._shadowRoot):void 0}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();n(Fn)&&(n(Fn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Fn).nextButtonActive=this.isNextButtonActive(),n(Fn).prevButtonActive=this.isPrevButtonActive(),n(Fn).endScreenVideoTitle=o.nextVideoTitle,n(Fn).endScreenVideoThumb=o.nextVideoThumb,n(Fn).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",r=>this.seekTime(r.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>{var r,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:s.onNextVideoClick)==null||l.call(s)}catch(d){this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{var r,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:s.onPrevVideoClick)==null||l.call(s)}catch(d){this.log({message:"onPrevVideoClick callback failed to execute"})}else this.playPrevVideo()}])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,r;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(r=this.svelteRootComponent)==null||r.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}changeSubtitle(e,i){var o;this.log({message:"change subtitle"}),(o=this.svelteRootComponent)==null||o.changeSubtitle(e,i)}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,n(Fn)&&(n(Fn).needToRepeatPlaylist=this.needToRepeatPlaylist,n(Fn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Fn).nextButtonActive=this.isNextButtonActive(),n(Fn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,r;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(r=this.svelteRootComponent)==null||r.setAutoQualityLimits(e)}setAutoQuality(){var e;(e=this.svelteRootComponent)==null||e.setAutoQuality()}toggleTrafficSaving(e){var i;(i=this.svelteRootComponent)==null||i.toggleTrafficSaving(e)}toggleHighQuality(e){var i;(i=this.svelteRootComponent)==null||i.toggleHighQuality(e)}changeAudioStream(e){var i;(i=this.svelteRootComponent)==null||i.changeAudioStream(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}async setLanguage(e){var i;await((i=this.store)==null?void 0:i.actions.internal.setLanguage(e))}setLiveStart(e){var i,o;let r=this.isLiveTailPlaying();this.log({message:`live started: liveTailPlaying = ${r}`}),r||((i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0}))}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){var e;let i=(e=this.store)==null?void 0:e.getPlayer();if(!i)return!1;let{info:o}=i;return o.canPlayLiveTailBuffer$.getValue()&&!o.isStalled$.getValue()&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),r=e||!o;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${o}`});let s=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};r&&s(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;r||s(),(l=this.store)==null||l.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let r=()=>{var s;(s=this.store)==null||s.actions.internal.setLiveWaitingRecord(!0)};o&&r(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var s;o||r(),(s=this.store)==null||s.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),r=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let s=()=>{var l,d;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!1),(d=this.store)==null||d.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(r){s();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=s)}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(e){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let r=be(this.store.state.positionExact$),l=be(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe(S6()).subscribe(()=>{l&&r>=l.time?this.seekTime(l.time):this.seekTime(r),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)}getTotalViewTime(){var e,i;return(i=(e=this.statistics)==null?void 0:e.thinOneStat)==null?void 0:i.getTotalViewTime()}unmountComponent(e){e&&ya(e)}};import{InterfaceLanguage as Hie,VKNumericLanguage as Fie,loadVKLangPack as Uie}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as Wie,VideoFormat as Kie}from"@vkontakte/videoplayer-core/es2018";var Mie=()=>{window.customElements.define("vk-video-player",lp)};export{Hu as ControlButtonType,as as GridTypes,Hie as InterfaceLanguage,Md as MenuItemType,ls as PlayerPhase,Sl as VERSION,Fie as VKNumericLanguage,Kie as VideoFormat,Wie as VideoQuality,Uie as loadVKLangPack,Mie as registerPlayerWebComponent};